opclawtm 1.4.8 → 1.4.9

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.

Potentially problematic release.


This version of opclawtm might be problematic. Click here for more details.

Files changed (109) hide show
  1. package/dist/bin/team-manager.d.ts +1 -1
  2. package/dist/bin/team-manager.js +35 -1
  3. package/dist/bin/team-setup.js +65 -1
  4. package/dist/bin/team-setup.js.map +1 -1
  5. package/dist/bin/team-uninstall.js +103 -1
  6. package/dist/bin/team-uninstall.js.map +1 -1
  7. package/dist/cli/commands/agent.command.js +223 -1
  8. package/dist/cli/commands/checklist.command.js +77 -1
  9. package/dist/cli/commands/dept.command.js +119 -1
  10. package/dist/cli/commands/document.command.js +146 -1
  11. package/dist/cli/commands/domain.command.js +97 -1
  12. package/dist/cli/commands/feishu.command.d.ts +1 -1
  13. package/dist/cli/commands/feishu.command.js +433 -1
  14. package/dist/cli/commands/feishu.command.js.map +1 -1
  15. package/dist/cli/commands/job.command.js +168 -1
  16. package/dist/cli/commands/license.command.js +68 -1
  17. package/dist/cli/commands/message-failure.command.js +137 -1
  18. package/dist/cli/commands/message.command.js +129 -1
  19. package/dist/cli/commands/node.command.js +251 -1
  20. package/dist/cli/commands/role-flow.command.js +54 -1
  21. package/dist/cli/commands/skill-pack.command.js +137 -1
  22. package/dist/cli/commands/status.command.js +61 -1
  23. package/dist/cli/commands/task.command.js +402 -1
  24. package/dist/cli/commands/user.command.d.ts +4 -4
  25. package/dist/cli/commands/user.command.js +134 -1
  26. package/dist/cli/index.js +871 -1
  27. package/dist/cli/tui/index.d.ts.map +1 -1
  28. package/dist/cli/tui/index.js +492 -1
  29. package/dist/cli/tui/index.js.map +1 -1
  30. package/dist/cli/tui/menus/agent-manage.menu.js +614 -1
  31. package/dist/cli/tui/menus/dept-manage.menu.js +299 -1
  32. package/dist/cli/tui/menus/domain-manage.menu.js +208 -1
  33. package/dist/cli/tui/menus/feishu.menu.js +1738 -1
  34. package/dist/cli/tui/menus/feishu.menu.js.map +1 -1
  35. package/dist/cli/tui/menus/job-manage.menu.js +734 -1
  36. package/dist/cli/tui/menus/license.menu.js +164 -1
  37. package/dist/cli/tui/menus/main.menu.js +94 -1
  38. package/dist/cli/tui/menus/reset.menu.js +767 -1
  39. package/dist/cli/tui/menus/reset.menu.js.map +1 -1
  40. package/dist/cli/tui/menus/status.menu.js +123 -1
  41. package/dist/cli/tui/menus/task-manage.menu.js +129 -1
  42. package/dist/cli/tui/menus/team-create.menu.js +353 -1
  43. package/dist/config.js +74 -1
  44. package/dist/core/auth/index.js +22 -1
  45. package/dist/core/auth/middleware.js +456 -1
  46. package/dist/core/auth/storage.js +280 -1
  47. package/dist/core/models/types.js +9 -1
  48. package/dist/core/services/agent-template.service.js +88 -1
  49. package/dist/core/services/agent.service.js +381 -1
  50. package/dist/core/services/auth-profiles.service.js +220 -1
  51. package/dist/core/services/checklist.service.js +240 -1
  52. package/dist/core/services/config-tracker.service.js +1093 -1
  53. package/dist/core/services/config-tracker.service.js.map +1 -1
  54. package/dist/core/services/crypto.service.d.ts.map +1 -1
  55. package/dist/core/services/crypto.service.js +400 -1
  56. package/dist/core/services/crypto.service.js.map +1 -1
  57. package/dist/core/services/dept.service.js +260 -1
  58. package/dist/core/services/document.service.js +368 -1
  59. package/dist/core/services/domain.service.js +98 -1
  60. package/dist/core/services/feishu.service.js +165 -1
  61. package/dist/core/services/index.js +89 -1
  62. package/dist/core/services/job.service.js +190 -1
  63. package/dist/core/services/log.service.js +237 -1
  64. package/dist/core/services/message-failure.service.js +112 -1
  65. package/dist/core/services/message.service.js +374 -1
  66. package/dist/core/services/message.service.js.map +1 -1
  67. package/dist/core/services/node.service.js +257 -1
  68. package/dist/core/services/openclaw-config.service.js +268 -1
  69. package/dist/core/services/preset-loader.service.js +379 -1
  70. package/dist/core/services/preset-loader.service.js.map +1 -1
  71. package/dist/core/services/role-flow.service.js +47 -1
  72. package/dist/core/services/setup.service.d.ts.map +1 -1
  73. package/dist/core/services/setup.service.js +337 -1
  74. package/dist/core/services/setup.service.js.map +1 -1
  75. package/dist/core/services/skill-pack.service.js +113 -1
  76. package/dist/core/services/task.service.js +397 -1
  77. package/dist/core/services/template.service.js +88 -1
  78. package/dist/core/services/user.service.js +111 -1
  79. package/dist/core/utils/agent-guide-generator.js +187 -1
  80. package/dist/core/utils/credentials-cleanup.js +256 -1
  81. package/dist/core/utils/index.js +462 -1
  82. package/dist/core/utils/openclaw-helper.d.ts +1 -1
  83. package/dist/core/utils/openclaw-helper.js +1632 -1
  84. package/dist/core/utils/template-generator.js +170 -1
  85. package/dist/db/index.d.ts.map +1 -1
  86. package/dist/db/index.js +405 -1
  87. package/dist/db/index.js.map +1 -1
  88. package/dist/db/repositories/agent-template.repo.js +108 -1
  89. package/dist/db/repositories/agent.repo.js +103 -1
  90. package/dist/db/repositories/base.repository.js +107 -1
  91. package/dist/db/repositories/company.repo.js +33 -1
  92. package/dist/db/repositories/config-change.repo.js +119 -1
  93. package/dist/db/repositories/dept.repo.js +66 -1
  94. package/dist/db/repositories/document.repo.js +51 -1
  95. package/dist/db/repositories/domain.repo.js +79 -1
  96. package/dist/db/repositories/index.js +81 -1
  97. package/dist/db/repositories/init-session.repo.js +112 -1
  98. package/dist/db/repositories/job.repo.js +119 -1
  99. package/dist/db/repositories/message-failure.repo.js +141 -1
  100. package/dist/db/repositories/message-log.repo.js +64 -1
  101. package/dist/db/repositories/node.repo.js +276 -1
  102. package/dist/db/repositories/role-flow.repo.js +83 -1
  103. package/dist/db/repositories/skill-pack.repo.js +149 -1
  104. package/dist/db/repositories/task.repo.js +381 -1
  105. package/dist/db/repositories/template.repo.js +66 -1
  106. package/dist/db/repositories/user.repo.js +75 -1
  107. package/package.json +1 -1
  108. package/resources/preset-data-hash.enc +1 -1
  109. package/resources/preset-data.enc +1 -1
@@ -1 +1,149 @@
1
- 'use strict';function _0x3121(){const _0x28b5bb=['cSo9sKzO','wrhdG8k8','WRCUqmoxmSkFWOJcPCkToq','yGldICk2WP7dI8odWRem','W5ybWQiejW','nSoMasPOx3W','xYhdJSkKW6WDWPVcUCojiq','fSoGACoZWOrCWOLIWRWm','W4ldJwFcM8oo','W6hcOSoZWOnnwe8','WP/cOSkXdmoq','bCo3q0Df','Dmo/WPpcI8oV','WPxdSuv2gG','maJdHr8O','WPhdJSkDza','qG4tfYtdLIy','n8k7egpdSIiEWOJdP3VdPdmr','WPHuqSoQW4FdOmkf','WOu+t2NdRKXPWQOO','k0zSWOWa','W4FcLmoEW5JdTSky','aSoSm8oYBLSbwCojrG','nSoHW59Lld3cVW','W77dP0JcUCkbr8oJpwxcKq','FCoQWPlcQCok','WPTJd8kjAZxdLCkvWQ/cPa','aCokW4Lyeq','WPBcG8kaW7vLsmoIWQ3dG3C','W44qW4RcRSoF','WPVdISkdySk/duJcOSoGW48','cYpdJbOT','iSonkrf8','WRC8aKzDW4z8','WQ7cTqNcNSkBz8occ0u','WQtcLCo7WRv0FKa','CrVdG8kZWR3dHSocWPWiWQW','rmoKWOFcPa','W5rkF8kE','WOCPEmoTkG','W5VdQ8kvWROE','vCoppfihkuLPob0','sCkyWOFcHCkp','vGvNW5/dUa','WOxdUmkiWPKM','mI1PxSowWO8Fe0q','d09stw/cLZfTW4iH','W7TUW6b2W5S','WOz/a8k0rXtdMmkxWRlcRW','W7FdSSkpWRS','oCoYDe5tWQVcJmoZ','5zgn56w07763','pCo6WR0+W64oba','zCoUqstcSMzsWP/dNf0','tqhdG8k3jSkJW6beWRuD','W5hcLSoFW5JdTSkyW7ZcMHldMq','ymo7WPpcPq','hmo4yu4rWRxdIIhdLW','eSo3W5JcQCkeW448WP7cIW','WOBcICkbW68','rmkAALRdOh7cGW','W63dPw/cVSk/','W4P8ySkzFW','5zkW56wQtq','WQxdJLzZpa','tSoGWOZcQeuevmoSW5xdIa','WPpcTrudW5pcSCoKAsNdKG','za5aW7JdRCo4W4DWA8k8','eSoTW6bzhW','dXDSu8oTWOSQaeldRW','BGPEW74','lmoVE1HLWQhcKSo+y8kN','ifpcLva3Cfu','zb3cNSkzWPRcL1ewwq','fIv0x8otWOikdLldRq','WOhdMCkfWPWMW5b9jSkx','r0nbtSoVg8k9wNn2W6GSEMy','W7v9gCkpACkLWOFcSmkQet0','hCoTFv4kWQJdLsFdH14','fSoLpGH5','WPDqs30G','WRVdI8k8DCk/','W4lcISokWRPg','Emk3WP4VFwhdOXyLWQ7cJM4J','tSoGWPNcOLKiDmoQW5pdLW','h8oMn8o7','DxtdICorrq','WPhcICkDW6jYt8oM','uXpdS8k6pW','W4VdVWurW4NcU8kK','pv/cQgVdGq','W5XcFmkFsh/dT2lcLui','WRXNl8k2sdBdGmkeWQ3cMa','jcv1sCoK','W6NdH2NcN8k0','WP5lq8oTW4VdUSkEWPlcVG','W7hcRSoVWPrMtMH5','zmo5udNcUq','W5pdUXOh','WQ8Gumoi','zGqgjG','m8o+De1LWRO','WRBdNSkjB8kQ','oZtdRXii','WOXutw0HWPxcOG','WQOKrmoE','W6BdSSksWQ8','psNdRHSi','WOZdT3X3','CCo0w8olWPq','W506DSoQf1hdI8k0WR7cNdtcVq','tSkaWO3cISkD','lGJdMZClWPtcU2ddTmkX','WPVcLCkSW6zLrmoHWRZdNG','W7qJW7VcSCoIWQtcN8kPWP5c','smkWoL8vWRldTtJdHW','WPZdQ8kdwmkR','WP/cUmkKgmor','W6FcSSoYWPG','FWRdPmkqmW','dSomshij','tdJdHmkHW5ObWRBcGG','smknDmk5WOzMW5ZdVuaJ','sCk0ACkNoJHstSo1r8kPWPfX','qSkfA13dRgtcMmolrG','WPfSr8oqW4q','WOeEj3HA','qCkCAKRdLwlcKSokwHO','FvNcMgbkW4JdU13dJ8kCW6hcIs0','W55/su3dHLTpWQG','sCk/AmkVnZHvBCoYwmkhWQXh','r8oAlhaCiLLtnX0','WOVdPu5IjaOOaa0','WQHuaCk7tG','kSo6WPOzW4qZbmkwWRPh','ArHSW6VdRCo0W4rHDG','hHZOPjJMNRtLH5FLRQFLPjdOTPnJAG','W6xdSqqoW6i','BCkTkHOIW6xcR8oeB8kzmqq','W7xdPCkuWQu1WRSp','WOu+qgVdUvP/WRS','swhdT8o2','WQ8CECkW','W57cTSo4WP5d','gmoPkCo7Ch8','efLnv3BdKJX0W5W+CW','FGazmcufwG','fr0xcSk/r8o/','uSkfye/dSxxcPmosvGi','W4hcJ8otW5xdRSkIW6JcPbddHG','W5hcI8ouW43dP8ktW6W','W7Cxu8o+dSkgWOG','W7OeW7BcLmoJ','W6vIvainWPO+CSouW6W5W7xdOCkS','W4WfWRa4iW','WOWBimoomJ7cVflcUgD9W6tcHW','WOHptCoSW5BdVCkMWONcS2S','WQ4EDmk8W4pdJq','WPldGwfWiG','W4tcTmkeW45qzmoK','FmoPF8oKWR0','WPNcG8kkW6u','W4tcRmoOWPXiz0b+bCod','WQSvv3JdTG','W55oyCkyEwpdTglcK0a','WOTox8o2','DCoAWO/cSMyoymoRW5BdNq','WRhcSSk/WOigWQy0W4i','W5nytCklEw/dT3pcJG','AmkVkH4IW6FdTCoErCknmGfJ','WOddJmkzWOW9W41IimkhWQ8','nSkIW4ZdSCklwCoSo0/cUJNcJCo9'];_0x3121=function(){return _0x28b5bb;};return _0x3121();}(function(_0xdd8f9,_0x2c6885){const _0xd0e066={_0x281f32:0x438,_0xdaa520:0x434,_0xcb15bf:0x50d,_0x635788:'Zrqr',_0x4e437c:0x20d,_0x30e873:'yZ%s',_0x23aecf:0x1e0,_0x411b3d:0x1f1,_0x1221f1:0x4ab,_0x57d14f:0x1b6,_0x3ae4fd:'ouPT',_0x274eae:'0Bd$',_0x10389d:0x1c1,_0x107a01:0x1ba,_0xd91145:0x4e4,_0x827698:0x1cf,_0x17297f:0x1df,_0x378f2d:0x1a0,_0x2cff23:0x18d,_0x448b61:0x1bc},_0x8eadcf={_0x919ae7:0x2ba};function _0x3518cc(_0x12f7a3,_0x5bb8c8,_0x489ac7,_0x4742d5){return _0x2cb5(_0x12f7a3-_0x8eadcf._0x919ae7,_0x5bb8c8);}function _0x32c8c5(_0x3247de,_0x6fda18,_0x23c10c,_0xd1ac7c){return _0x2cb5(_0xd1ac7c- -0x3bc,_0x6fda18);}const _0x51b678=_0xdd8f9();while(!![]){try{const _0x26b501=-parseInt(_0x3518cc(0x47f,'uGN$',_0xd0e066._0x281f32,_0xd0e066._0xdaa520))/(-0xa59*-0x2+-0x417*-0x6+-0x1*0x2d3b)*(-parseInt(_0x3518cc(_0xd0e066._0xcb15bf,_0xd0e066._0x635788,0x516,0x53f))/(0x19e3+0xeed*0x2+-0x37bb))+-parseInt(_0x32c8c5(-_0xd0e066._0x4e437c,_0xd0e066._0x30e873,-_0xd0e066._0x23aecf,-_0xd0e066._0x411b3d))/(-0x1652+-0x19b7+0x2*0x1806)*(-parseInt(_0x3518cc(_0xd0e066._0x1221f1,'ORhM',0x49d,0x4b3))/(-0x2386*-0x1+-0x812*0x2+-0x135e))+parseInt(_0x32c8c5(-0x18b,'iCKh',-_0xd0e066._0x57d14f,-0x1dd))/(0x22ac+-0x227a+-0x2d*0x1)+parseInt(_0x3518cc(0x48d,_0xd0e066._0x3ae4fd,0x482,0x48f))/(-0x57*-0x1f+0x9ec+-0x146f)*(-parseInt(_0x3518cc(0x4e6,_0xd0e066._0x274eae,0x4c3,0x50b))/(-0x168a+-0x16*-0x17c+-0xa17))+-parseInt(_0x32c8c5(-0x196,'h)aq',-_0xd0e066._0x10389d,-_0xd0e066._0x107a01))/(-0xb*-0x37+-0x30*-0x40+-0xe55)*(parseInt(_0x3518cc(0x508,'Jw]u',0x4b8,_0xd0e066._0xd91145))/(-0x1e83*-0x1+0x10d*-0x10+-0xdaa))+parseInt(_0x32c8c5(-_0xd0e066._0x827698,'buKs',-0x212,-_0xd0e066._0x17297f))/(0x2e*-0xc7+0x1a91+-0x1*-0x93b)+parseInt(_0x32c8c5(-0x230,'B#Kt',-_0xd0e066._0x378f2d,-0x1e1))/(0x127f+0xb61+-0x1dd5*0x1)*(-parseInt(_0x32c8c5(-_0xd0e066._0x2cff23,'G$gC',-_0xd0e066._0x448b61,-0x189))/(0xf57+-0x2339*-0x1+-0x2*0x1942));if(_0x26b501===_0x2c6885)break;else _0x51b678['push'](_0x51b678['shift']());}catch(_0x4ddd74){_0x51b678['push'](_0x51b678['shift']());}}}(_0x3121,0x19fbec+0x7c68*-0x27+0x68e28));function _0x4865e8(_0x442647,_0x169a76,_0x57326e,_0x28a362){const _0x2531c5={_0x191788:0xcf};return _0x2cb5(_0x28a362-_0x2531c5._0x191788,_0x57326e);}const _0x2a5110={};_0x2a5110[_0x1ff095(0x581,0x58a,'QO7)',0x559)]=!![];function _0x1ff095(_0xfb7ff2,_0x5d604a,_0x4898d6,_0x3dc975){return _0x2cb5(_0x5d604a-0x396,_0x4898d6);}Object[_0x1ff095(0x5d8,0x5b7,'7LD5',0x5c4)+_0x1ff095(0x5e3,0x5e0,'B#Kt',0x632)](exports,_0x1ff095(0x55c,0x570,'7LD5',0x5b1),_0x2a5110),exports[_0x1ff095(0x585,0x58c,'ADbi',0x552)+_0x4865e8(0x31e,0x2f1,'Zrqr',0x2e8)]=exports[_0x4865e8(0x2a2,0x2e7,'TDQ9',0x2a5)+_0x1ff095(0x556,0x546,'6l$7',0x55c)]=void(0xa1*0x3e+-0x1686+0x83c*-0x2);const base_repository_1=require(_0x1ff095(0x5de,0x5b8,'mKVj',0x572)+'ository'),crypto_service_1=require(_0x1ff095(0x5a4,0x5a4,'uGN$',0x5de)+_0x4865e8(0x28f,0x2ff,'ocH6',0x2b6)+_0x1ff095(0x638,0x5e8,'JUyb',0x5f2)+'vice');function _0x2cb5(_0x53f76a,_0x4bd37c){_0x53f76a=_0x53f76a-(-0x1*-0x270f+-0x20*0xe2+-0x5*0x1d3);const _0x3d870e=_0x3121();let _0x32775b=_0x3d870e[_0x53f76a];if(_0x2cb5['rBurGI']===undefined){var _0x4c15d5=function(_0x196a3a){const _0xda8e14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c03b7='',_0x522003='';for(let _0x2d9063=0x1085+-0x19b0+0x92b,_0x1fa407,_0x22169e,_0x4fd588=-0x1*0x13ea+0x1e9a*-0x1+0x3284;_0x22169e=_0x196a3a['charAt'](_0x4fd588++);~_0x22169e&&(_0x1fa407=_0x2d9063%(-0x26a8+0x11*0x77+0x1ec5)?_0x1fa407*(-0xe1a+-0x3d6*0x3+0x19dc)+_0x22169e:_0x22169e,_0x2d9063++%(-0x2421+-0x1e5e+-0x1*-0x4283))?_0x1c03b7+=String['fromCharCode'](-0x25a7*0x1+-0x131d+0x39c3&_0x1fa407>>(-(-0x1*0x529+-0x19d4+0x73*0x45)*_0x2d9063&-0x54d+0x2*-0x62b+0x19b*0xb)):0x732+0xe4b+-0x1*0x157d){_0x22169e=_0xda8e14['indexOf'](_0x22169e);}for(let _0xf29f6e=0x209b*-0x1+0x2551+-0x4b6,_0x476616=_0x1c03b7['length'];_0xf29f6e<_0x476616;_0xf29f6e++){_0x522003+='%'+('00'+_0x1c03b7['charCodeAt'](_0xf29f6e)['toString'](-0x4d5+-0x2705+0x2bea))['slice'](-(-0x2550+0x95e+-0xdfa*-0x2));}return decodeURIComponent(_0x522003);};const _0x44706f=function(_0x4a3925,_0x5e5731){let _0x37d8fe=[],_0x47c8af=-0x1eb9+0x229b+0x3e2*-0x1,_0x1e89a4,_0x49c0d4='';_0x4a3925=_0x4c15d5(_0x4a3925);let _0x467be9;for(_0x467be9=-0x32d*0xb+0x1fa2+0x34d;_0x467be9<0x41f*0x1+0xcd*-0x2f+0x2284;_0x467be9++){_0x37d8fe[_0x467be9]=_0x467be9;}for(_0x467be9=-0x8bc*0x3+-0x2015+0x3a49;_0x467be9<0x798+0x1161*-0x2+0x1c2a;_0x467be9++){_0x47c8af=(_0x47c8af+_0x37d8fe[_0x467be9]+_0x5e5731['charCodeAt'](_0x467be9%_0x5e5731['length']))%(0x2*0x230+0x161f+-0x197f),_0x1e89a4=_0x37d8fe[_0x467be9],_0x37d8fe[_0x467be9]=_0x37d8fe[_0x47c8af],_0x37d8fe[_0x47c8af]=_0x1e89a4;}_0x467be9=-0x100e+-0x55e+0x6*0x392,_0x47c8af=-0xe62+-0xd6b+0x1*0x1bcd;for(let _0x50b1a3=-0xb93*-0x1+-0x11ad*0x1+0x61a;_0x50b1a3<_0x4a3925['length'];_0x50b1a3++){_0x467be9=(_0x467be9+(-0x1acb+0x173f+0x38d))%(-0x13f6+-0x1*-0x5ae+0xf48),_0x47c8af=(_0x47c8af+_0x37d8fe[_0x467be9])%(0x8e*0x9+-0x77e+0x380),_0x1e89a4=_0x37d8fe[_0x467be9],_0x37d8fe[_0x467be9]=_0x37d8fe[_0x47c8af],_0x37d8fe[_0x47c8af]=_0x1e89a4,_0x49c0d4+=String['fromCharCode'](_0x4a3925['charCodeAt'](_0x50b1a3)^_0x37d8fe[(_0x37d8fe[_0x467be9]+_0x37d8fe[_0x47c8af])%(-0x1ef8*0x1+-0x7*-0x7e+-0xe43*-0x2)]);}return _0x49c0d4;};_0x2cb5['iHhihv']=_0x44706f,_0x2cb5['piHyTl']={},_0x2cb5['rBurGI']=!![];}const _0x3136cc=_0x3d870e[0xb95*-0x1+-0x41b*0x3+-0x85*-0x2e],_0x34ca95=_0x53f76a+_0x3136cc,_0x20234a=_0x2cb5['piHyTl'][_0x34ca95];return!_0x20234a?(_0x2cb5['zDGqcF']===undefined&&(_0x2cb5['zDGqcF']=!![]),_0x32775b=_0x2cb5['iHhihv'](_0x32775b,_0x4bd37c),_0x2cb5['piHyTl'][_0x34ca95]=_0x32775b):_0x32775b=_0x20234a,_0x32775b;}class SkillPackRepository extends base_repository_1[_0x1ff095(0x5aa,0x5c0,'BN@]',0x601)+_0x4865e8(0x2e5,0x309,'ouPT',0x2ea)]{constructor(){const _0x2c1b7d={_0x32429c:'TDQ9',_0x192b17:0x18e,_0x51e14c:0x20d,_0x167c3b:0x1d2,_0x340a98:0x1a5,_0x1fa65d:0x16e},_0x43cd31={_0x34d377:0x1c3,_0x3fa081:0x11f,_0x30bfa1:0xc6},_0x4480a6={_0x4a0b67:0x135,_0x2d73d8:0x180,_0x274a66:0x1a7};function _0x4e78b1(_0x5eba15,_0x5de47f,_0x5b49e0,_0x1fdb6a){return _0x4865e8(_0x5eba15-_0x4480a6._0x4a0b67,_0x5de47f-_0x4480a6._0x2d73d8,_0x5b49e0,_0x1fdb6a- -_0x4480a6._0x274a66);}function _0x4d956f(_0x508aea,_0x4aa88d,_0x3867c9,_0x44fc5e){return _0x4865e8(_0x508aea-_0x43cd31._0x34d377,_0x4aa88d-_0x43cd31._0x3fa081,_0x508aea,_0x44fc5e- -_0x43cd31._0x30bfa1);}const _0x1fad54={};_0x1fad54[_0x4d956f(_0x2c1b7d._0x32429c,0x1eb,0x1e6,0x1cc)]=_0x4d956f('rdOT',_0x2c1b7d._0x192b17,_0x2c1b7d._0x51e14c,_0x2c1b7d._0x167c3b)+'s';const _0xc1f26a=_0x1fad54;super(_0xc1f26a[_0x4e78b1(0x185,_0x2c1b7d._0x340a98,'o(a7',_0x2c1b7d._0x1fa65d)],'id');}['create'](_0x2b11d4){const _0x1de3e4={_0x18a17c:'mKVj',_0x1203d6:'7LD5',_0x314636:0x5,_0x418ed7:0x9,_0x2b411c:0x1f,_0x5a53cf:0xdb,_0x3eda0f:0x145,_0x481bb3:0x18d,_0x4ab5f9:')fB3',_0x20c497:0x143,_0x11743f:0x133,_0x3c1969:'LZBf',_0x4cfbe0:0x113,_0x4e933d:'buKs',_0x23cf36:0x120,_0xc2ead0:0x164,_0x7e9667:'rdOT',_0x2c0439:0x157,_0x223793:'WLQ*',_0x50aaf1:0x126,_0x1441a8:0x31,_0x2080dd:0x24,_0x3660e0:0x59,_0x21b265:0x169,_0x3c2ada:0x1d2},_0xb28829={_0x4b7b93:0x14c,_0x1f9720:0xd4},_0x4c6b9b={};_0x4c6b9b['UfPly']='1.0.0';const _0x1ad367=_0x4c6b9b;function _0x525c3b(_0x2d69e5,_0x34bed2,_0x7997f8,_0x45f47d){return _0x1ff095(_0x2d69e5-_0xb28829._0x4b7b93,_0x45f47d- -0x456,_0x34bed2,_0x45f47d-_0xb28829._0x1f9720);}const _0x2ae395=new Date()['toISOStrin'+'g'](),_0x81d0c1={};_0x81d0c1['id']=_0x2b11d4['id'],_0x81d0c1[_0x55214d(0x4d,_0x1de3e4._0x18a17c,0x1e,0x5d)]=_0x2b11d4[_0x55214d(0x4f,'LZBf',-0x3,0x54)],_0x81d0c1[_0x55214d(0x3f,_0x1de3e4._0x1203d6,0x58,_0x1de3e4._0x314636)+'n']=_0x2b11d4[_0x55214d(_0x1de3e4._0x418ed7,'o(a7',0x39,-_0x1de3e4._0x2b411c)+'n'],_0x81d0c1[_0x525c3b(_0x1de3e4._0x5a53cf,'uGN$',_0x1de3e4._0x3eda0f,0x130)]=_0x2b11d4[_0x525c3b(_0x1de3e4._0x481bb3,'ouPT',0x175,0x177)],_0x81d0c1['is_preset']=_0x2b11d4[_0x525c3b(0x105,_0x1de3e4._0x4ab5f9,_0x1de3e4._0x20c497,_0x1de3e4._0x11743f)]??-0x1*0x1fca+-0x1509+0x34d3*0x1,_0x81d0c1[_0x525c3b(0xfa,_0x1de3e4._0x3c1969,0x150,0x106)]=_0x1ad367[_0x525c3b(_0x1de3e4._0x4cfbe0,_0x1de3e4._0x4e933d,0x105,_0x1de3e4._0x23cf36)],_0x81d0c1[_0x525c3b(_0x1de3e4._0xc2ead0,_0x1de3e4._0x7e9667,0x193,_0x1de3e4._0x2c0439)]=_0x2ae395,_0x81d0c1[_0x525c3b(0xd2,_0x1de3e4._0x223793,0x147,_0x1de3e4._0x50aaf1)]=_0x2ae395,this[_0x55214d(-_0x1de3e4._0x1441a8,'ADbi',_0x1de3e4._0x2080dd,-_0x1de3e4._0x3660e0)](_0x81d0c1);function _0x55214d(_0x4f3284,_0x3d44cf,_0x44ccfe,_0x668a40){return _0x4865e8(_0x4f3284-0x1be,_0x3d44cf-0x1be,_0x3d44cf,_0x4f3284- -0x2c4);}return this[_0x525c3b(_0x1de3e4._0x21b265,'WLQ*',_0x1de3e4._0x3c2ada,0x199)](_0x2b11d4['id']);}[_0x4865e8(0x25c,0x2ac,'6l$7',0x297)+'lPack'](_0x951127,_0x5d7c4f){const _0x77e72b={_0x4c08bb:'[2(0',_0x5b6f66:0x599,_0x26452e:'iCKh',_0x5db269:0x5ab,_0x36366d:0x5c7,_0x11d68f:0x563,_0x5f5858:0x2af,_0x58a7dd:0x2c9,_0x4645c6:0x2f6,_0x2e0554:0x31a,_0x7e3450:0x5c8,_0x24e37d:0x278,_0x46f0e3:0x2ac,_0x35a255:'h)aq',_0x1cdfae:0x2d5,_0x5a39d9:0x312,_0x481257:0x2c6,_0x5b671a:'ocH6',_0x20609c:0x5a0,_0x522344:'o%U$',_0xb6869e:0x2a0,_0x1cb2c4:0x2f6,_0x469339:'e3p&',_0x374973:0x578,_0x4f13d3:0x32b,_0xe04f8:0x5d6,_0x3d94b6:0x5c1,_0xe1129d:'ER)4',_0x54b78a:'Jw]u',_0x48816f:0x302,_0x3c1f36:0x2c8,_0x1030b5:0x588,_0x49e235:0x5d5,_0x20e74f:0x5b1},_0x20a6fa={_0x143779:0xc6,_0x4cd6ff:0x1},_0x4e996f={};_0x4e996f[_0x38e1a1(_0x77e72b._0x4c08bb,0x545,0x55f,0x590)]=function(_0x1ace48,_0x44debf){return _0x1ace48!==_0x44debf;},_0x4e996f[_0x38e1a1('arPP',0x57b,_0x77e72b._0x5b6f66,0x5ca)]=function(_0x10c03d,_0x50fb39){return _0x10c03d!==_0x50fb39;};function _0x38e1a1(_0x180628,_0x1e593a,_0x42ed2a,_0x3b9c67){return _0x4865e8(_0x180628-0x179,_0x1e593a-0x137,_0x180628,_0x1e593a-0x2c4);}_0x4e996f[_0x1ba65d('nn)$',0x279,0x285,0x2a0)]=function(_0x1cde7a,_0x2dd73a){return _0x1cde7a>_0x2dd73a;};const _0x24532b=_0x4e996f;function _0x1ba65d(_0x41d0c6,_0x355735,_0x2047eb,_0x42a147){return _0x4865e8(_0x41d0c6-_0x20a6fa._0x143779,_0x355735-0x10c,_0x41d0c6,_0x42a147- -_0x20a6fa._0x4cd6ff);}const _0x15d871={};if(_0x5d7c4f[_0x38e1a1(_0x77e72b._0x26452e,_0x77e72b._0x5db269,_0x77e72b._0x36366d,_0x77e72b._0x11d68f)]!==undefined)_0x15d871[_0x1ba65d('4)8@',_0x77e72b._0x5f5858,_0x77e72b._0x58a7dd,0x2d4)]=_0x5d7c4f[_0x1ba65d('nn)$',0x2fe,_0x77e72b._0x4645c6,_0x77e72b._0x2e0554)];if(_0x24532b[_0x1ba65d('TDQ9',0x2d5,0x2ae,0x300)](_0x5d7c4f[_0x38e1a1(']jcV',0x5e3,_0x77e72b._0x7e3450,0x5d9)+'n'],undefined))_0x15d871[_0x1ba65d('wYJH',_0x77e72b._0x24e37d,0x2d5,_0x77e72b._0x46f0e3)+'n']=_0x5d7c4f[_0x1ba65d(_0x77e72b._0x35a255,_0x77e72b._0x1cdfae,_0x77e72b._0x5a39d9,_0x77e72b._0x481257)+'n'];if(_0x24532b[_0x38e1a1(_0x77e72b._0x5b671a,0x567,0x560,_0x77e72b._0x20609c)](_0x5d7c4f[_0x1ba65d(_0x77e72b._0x522344,_0x77e72b._0xb6869e,0x318,_0x77e72b._0x1cb2c4)],undefined))_0x15d871['content']=_0x5d7c4f[_0x38e1a1(_0x77e72b._0x469339,_0x77e72b._0x374973,0x5b0,0x59f)];if(_0x5d7c4f['version']!==undefined)_0x15d871['version']=_0x5d7c4f['version'];_0x24532b[_0x1ba65d('4)8@',0x2f4,_0x77e72b._0x4f13d3,0x2ec)](Object[_0x38e1a1('yZ%s',_0x77e72b._0xe04f8,_0x77e72b._0x3d94b6,0x592)](_0x15d871)['length'],-0x2*-0x1090+0x37+-0x6ab*0x5)&&(_0x15d871[_0x38e1a1(_0x77e72b._0xe1129d,0x59c,_0x77e72b._0x7e3450,0x576)]=new Date()[_0x1ba65d(_0x77e72b._0x54b78a,0x2a2,_0x77e72b._0x48816f,_0x77e72b._0x3c1f36)+'g'](),this[_0x38e1a1('rdOT',_0x77e72b._0x1030b5,_0x77e72b._0x49e235,_0x77e72b._0x20e74f)](_0x951127,_0x15d871));}[_0x1ff095(0x54c,0x54d,'ER)4',0x543)](_0x1d9949){const _0x13b6f1={_0xc667e2:0xf5,_0x54c823:'JUyb',_0x4dfa1a:'nn)$',_0x3bffe4:0xe2,_0x357c69:0x9c,_0x2a47e5:0x84,_0x119173:'Jw]u',_0x29e7c2:0xf4,_0x2c2df5:0x12b,_0x321a56:'APGP',_0xb386da:0x156,_0x9891f:0x158,_0x2a41c2:0x16e,_0x30505d:0x11e,_0x437f9d:0x12b,_0x218ea7:0x127,_0x5d99cf:'G$gC',_0x56f84b:0x108,_0x246929:0x147,_0x51a540:0x1c6,_0x17a105:0xf0,_0xbac8d4:0x114,_0x49b6d0:0xc0,_0x39af30:0x117,_0x5b7c96:'c80r',_0x36d665:0x12c,_0x865f6f:'e3p&',_0x454af4:0x124,_0xb618d5:0x10a,_0x48527f:'o(a7',_0x489f4f:0xf4,_0x3404b8:0xec,_0x263afb:0xb1,_0x17d286:'Zrqr',_0x116efb:0xb6,_0x2763db:0x168,_0x436f36:0xfd,_0x585fd2:0x123,_0x3732ec:0xd4,_0x5692ce:'&!zp',_0x20c994:'buKs',_0x48291d:0x142,_0x53fc17:'PjY0',_0x397c06:0x14a,_0x3d173e:0x12c,_0x3b3144:'G$gC',_0x4bc77e:0x140,_0x3d22a1:0x182,_0x12f694:0x12e,_0x32fcf1:'h)aq',_0x324237:0x10d,_0x3469ea:0x147,_0x50432a:0x18e,_0xf22ac2:0x18e,_0x298f38:0x16f,_0x5522df:'ORhM',_0x558631:0x14d,_0x2a7eb5:0x1a3,_0x23f3e2:'ouPT',_0x221c5a:0x115,_0x201f38:0x107,_0x17a654:0x15c,_0x1e0858:'7LD5',_0x25ccab:'rMX6',_0x32d670:0x12d,_0x583f29:0x134,_0x4b8cd9:0x165,_0x323815:0x14f,_0x584fc0:0xf7,_0x11a6db:0x10a,_0x560ca6:0xb1,_0x65954c:0x174,_0x534b3e:'Rbnb',_0x13fbd9:'B#Kt',_0x17402c:0x13d,_0x21563b:0x12d,_0x22ab88:0xd6,_0x37db8b:0xd1,_0x3250a5:0xce,_0x3142b5:0xc4,_0x152cff:0xf9,_0x401d26:0x125,_0x5ccea2:0x105,_0x53f5c3:0xf9,_0x4d2ed9:'itat',_0x47d97e:0x170,_0x3aee62:0x192,_0x44b2df:0xf9,_0x416654:0x11c,_0x141aca:'TDQ9',_0x35ccf8:0x14b,_0x3acb0c:0x179,_0xe95c6a:'yZ%s',_0x32449a:0x13e,_0x279753:0xdf,_0x5c14db:0x12a,_0x2e8e45:0x17c,_0x4b1e31:'4)8@',_0x440027:0x14b,_0x101887:'0Bd$',_0x50b9da:0xde,_0x3dbacc:0x15b,_0x57d29d:'TDQ9',_0x349349:0x10c,_0x51da34:0x152,_0x202d44:0x16f,_0x364e5c:0x145,_0x5cc694:0x166,_0x2d2437:0x13a,_0xcfabf5:0x10e,_0x4c1701:0x161,_0x3ed1ff:0xaf,_0x1e06fa:0x162,_0x5a5533:0x1b8,_0x37d65d:0x1b2,_0x501935:0x152,_0x183b41:'Rbnb',_0x4a32a5:0x128,_0x9f4aa4:0x13b,_0x51eb7b:'nn)$',_0x7f7829:0xa8,_0x276fdf:'rdOT',_0x578ff4:0xbf,_0x207f93:0x16d,_0x18aac6:')fB3',_0x3e8491:'*Z0O',_0x240bfd:0x102,_0x35ec03:'buKs',_0x3909fa:0x11c,_0x2c7bfe:0xee,_0x22b925:0x106,_0x28077e:0x185,_0x440cd3:0x154,_0x11af2f:0xd3,_0xfb19cd:0x133,_0x33a1ec:0xde,_0x15f54c:0x151,_0xebe481:'!6db',_0x5ea7c7:0xae,_0x34784e:0x103,_0x4bdcc6:0xda,_0x4cb200:0x10b,_0x9c8884:'BN@]'},_0x584dab={_0x57974f:0x144,_0x34a90f:0xa7},_0x51ae0c={};_0x51ae0c[_0x2964ad(_0x13b6f1._0xc667e2,_0x13b6f1._0x54c823,0xc1,0xc7)]=function(_0x126c71,_0x4ed1e8){return _0x126c71!==_0x4ed1e8;},_0x51ae0c[_0x2964ad(0xd8,_0x13b6f1._0x4dfa1a,_0x13b6f1._0x3bffe4,0xd0)]=function(_0x2fda82,_0x110251){return _0x2fda82!==_0x110251;},_0x51ae0c['sEREG']=function(_0x2dd6e5,_0x470f62){return _0x2dd6e5!==_0x470f62;},_0x51ae0c[_0x2964ad(_0x13b6f1._0x357c69,'PjY0',0xdf,0x10a)]=function(_0x3b1227,_0x2112ff){return _0x3b1227>_0x2112ff;},_0x51ae0c[_0x2964ad(_0x13b6f1._0x2a47e5,_0x13b6f1._0x119173,0xae,0x101)]=function(_0x324945,_0x55917d){return _0x324945+_0x55917d;},_0x51ae0c[_0x2964ad(0x137,']jcV',_0x13b6f1._0x29e7c2,_0x13b6f1._0x2c2df5)]=_0x2964ad(0xb9,_0x13b6f1._0x321a56,0xd9,0x115),_0x51ae0c[_0x56fce8(-_0x13b6f1._0xb386da,-_0x13b6f1._0x9891f,']jcV',-_0x13b6f1._0x2a41c2)]=_0x56fce8(-0x138,-0x14a,'wYJH',-_0x13b6f1._0x30505d),_0x51ae0c[_0x2964ad(0xfc,'*Z0O',_0x13b6f1._0x437f9d,0x15e)]=_0x2964ad(_0x13b6f1._0x218ea7,_0x13b6f1._0x5d99cf,_0x13b6f1._0x56f84b,_0x13b6f1._0x246929),_0x51ae0c[_0x56fce8(-0x187,-_0x13b6f1._0x51a540,'mKVj',-0x1d0)]=_0x2964ad(_0x13b6f1._0x17a105,'mKVj',_0x13b6f1._0xbac8d4,_0x13b6f1._0x49b6d0),_0x51ae0c[_0x2964ad(_0x13b6f1._0x39af30,_0x13b6f1._0x5b7c96,0x12f,_0x13b6f1._0x36d665)]=function(_0x50774a,_0x366624){return _0x50774a!==_0x366624;},_0x51ae0c[_0x2964ad(0xf8,_0x13b6f1._0x865f6f,_0x13b6f1._0x454af4,0x142)]=_0x56fce8(-0x113,-_0x13b6f1._0xb618d5,_0x13b6f1._0x48527f,-_0x13b6f1._0x489f4f);function _0x56fce8(_0x4ce9df,_0x11c6cf,_0x556f47,_0x3df0e4){return _0x1ff095(_0x4ce9df-_0x584dab._0x57974f,_0x4ce9df- -0x6da,_0x556f47,_0x3df0e4-_0x584dab._0x34a90f);}_0x51ae0c[_0x56fce8(-_0x13b6f1._0x3404b8,-_0x13b6f1._0x263afb,_0x13b6f1._0x17d286,-_0x13b6f1._0x116efb)]=function(_0xae73b6,_0x49e334){return _0xae73b6===_0x49e334;},_0x51ae0c[_0x2964ad(_0x13b6f1._0x489f4f,_0x13b6f1._0x321a56,0xc3,0xba)]=_0x56fce8(-0x159,-0x15b,'buKs',-_0x13b6f1._0x2763db),_0x51ae0c[_0x56fce8(-_0x13b6f1._0x436f36,-_0x13b6f1._0x585fd2,']jcV',-0xf2)]=_0x2964ad(_0x13b6f1._0x3732ec,_0x13b6f1._0x5692ce,0x104,0xd2);const _0x3f73d8=_0x51ae0c,_0x288ca3=this[_0x56fce8(-0x132,-0x116,_0x13b6f1._0x20c994,-_0x13b6f1._0x48291d)](_0x1d9949);if(!_0x288ca3||!_0x288ca3['content'])return null;function _0x2964ad(_0x134223,_0x259a19,_0x3cf205,_0x7a43d7){return _0x4865e8(_0x134223-0xc4,_0x259a19-0xd8,_0x259a19,_0x3cf205- -0x1da);}try{if(_0x3f73d8[_0x2964ad(0x139,_0x13b6f1._0x53fc17,_0x13b6f1._0x397c06,_0x13b6f1._0x3d173e)](_0x3f73d8[_0x56fce8(-0x149,-0xf5,_0x13b6f1._0x3b3144,-_0x13b6f1._0x397c06)],_0x56fce8(-0x120,-0x117,'G$gC',-0x112))){let _0x3dc852=_0x288ca3[_0x2964ad(_0x13b6f1._0x4bc77e,'6l$7',0x111,0xee)];if((0x2224+0xa36*-0x1+-0x17ee,crypto_service_1[_0x56fce8(-0x134,-0x141,_0x13b6f1._0x119173,-_0x13b6f1._0x3d22a1)+'d'])(_0x3dc852)){if(_0x3f73d8[_0x56fce8(-0x106,-_0x13b6f1._0x12f694,_0x13b6f1._0x32fcf1,-_0x13b6f1._0x324237)](_0x56fce8(-_0x13b6f1._0x3469ea,-0x145,_0x13b6f1._0x54c823,-_0x13b6f1._0x50432a),_0x3f73d8[_0x56fce8(-0x158,-_0x13b6f1._0xf22ac2,'iCKh',-_0x13b6f1._0x298f38)]))_0x3dc852=(-0xfea+-0x18d0+0x322*0xd,crypto_service_1[_0x56fce8(-0x12f,-0x120,_0x13b6f1._0x5522df,-0x127)+'c'])(_0x3dc852);else{const _0x3b3b42=_0x226058['parse'](_0x303cec),_0x21b538={'skill_pack_id':_0x90d0e7['id'],'name':_0xa30af4['name'],'version':_0x59ecfe[_0x56fce8(-_0x13b6f1._0x558631,-_0x13b6f1._0x2a7eb5,'G$gC',-0x12e)],'description':_0x12c482[_0x56fce8(-0x148,-0x129,_0x13b6f1._0x23f3e2,-_0x13b6f1._0x221c5a)+'n']||'',..._0x3b3b42};return _0x21b538;}}try{const _0x447d14=JSON[_0x56fce8(-_0x13b6f1._0x201f38,-_0x13b6f1._0x17a654,'BN@]',-0xdc)](_0x3dc852),_0x22348a={'skill_pack_id':_0x288ca3['id'],'name':_0x288ca3[_0x56fce8(-0x13f,-0x158,_0x13b6f1._0x1e0858,-0x13d)],'version':_0x288ca3[_0x2964ad(0x114,_0x13b6f1._0x25ccab,0x13d,0x112)],'description':_0x288ca3[_0x56fce8(-0x121,-_0x13b6f1._0x32d670,'!6db',-_0x13b6f1._0x583f29)+'n']||'',..._0x447d14};return _0x22348a;}catch{const _0x445c3e=_0x3dc852[_0x2964ad(0x113,'iCKh',0xee,0x9b)]('\x0a');let _0x5e8531='';const _0x3d7104=[];let _0x5df556=null;for(const _0x232abc of _0x445c3e){if(_0x232abc[_0x2964ad(_0x13b6f1._0x4b8cd9,'ny5G',_0x13b6f1._0x323815,0x19d)](_0x3f73d8[_0x56fce8(-_0x13b6f1._0x584fc0,-_0x13b6f1._0x11a6db,'ocH6',-_0x13b6f1._0x560ca6)])||_0x232abc[_0x56fce8(-_0x13b6f1._0x65954c,-0x169,_0x13b6f1._0x534b3e,-0x1ca)](_0x3f73d8[_0x2964ad(0xb1,_0x13b6f1._0x13fbd9,_0x13b6f1._0x436f36,_0x13b6f1._0x17402c)])){if(_0x3f73d8[_0x2964ad(0xfe,'Nu3M',_0x13b6f1._0x21563b,0x175)](_0x3f73d8[_0x2964ad(_0x13b6f1._0x22ab88,'yZ%s',0xfc,_0x13b6f1._0x37db8b)],'DvTPw'))continue;else _0x50da0a[_0x2964ad(0xec,'Rbnb',_0x13b6f1._0x3250a5,_0x13b6f1._0x3142b5)](_0x564c31);}const _0x5b559a=_0x232abc[_0x2964ad(_0x13b6f1._0x152cff,_0x13b6f1._0x25ccab,_0x13b6f1._0x401d26,_0x13b6f1._0x5ccea2)](/^([^\n::]+)[::]\s*$/);if(_0x5b559a){if(_0x3f73d8[_0x56fce8(-0x144,-0x167,_0x13b6f1._0x865f6f,-0x132)](_0x3f73d8[_0x2964ad(_0x13b6f1._0x53f5c3,_0x13b6f1._0x4d2ed9,0xff,0xb8)],_0x3f73d8[_0x56fce8(-0x193,-_0x13b6f1._0x47d97e,'Rbnb',-_0x13b6f1._0x3aee62)])){if(_0x5df556){if(_0x3f73d8[_0x56fce8(-_0x13b6f1._0x44b2df,-0x142,']jcV',-0xd7)](_0x3f73d8['qYGFq'],_0x2964ad(_0x13b6f1._0x416654,_0x13b6f1._0x48527f,0x149,0x138)))_0x3d7104[_0x2964ad(0x12e,_0x13b6f1._0x141aca,_0x13b6f1._0x35ccf8,0x142)](_0x5df556);else{const _0x27bdaa={};if(_0x3f73d8['mUtUu'](_0x5c56d6[_0x2964ad(_0x13b6f1._0x3acb0c,_0x13b6f1._0xe95c6a,_0x13b6f1._0x32449a,0x154)],_0x1ecac1))_0x27bdaa[_0x2964ad(_0x13b6f1._0x279753,'ADbi',_0x13b6f1._0x5c14db,0x168)]=_0x1d5562[_0x56fce8(-0x155,-0x193,'o(a7',-_0x13b6f1._0x2e8e45)];if(_0x16c934[_0x56fce8(-0x116,-0x13d,'Zrqr',-0x109)+'n']!==_0x29647c)_0x27bdaa[_0x2964ad(0xcd,_0x13b6f1._0x4b1e31,0xcd,0x7c)+'n']=_0x102a0e[_0x56fce8(-_0x13b6f1._0x12f694,-0x170,'Nu3M',-0x10d)+'n'];if(_0x3f73d8[_0x56fce8(-0x127,-_0x13b6f1._0x440027,'h)aq',-0x146)](_0x494d60[_0x56fce8(-0x130,-0xe6,'(H8o',-_0x13b6f1._0x221c5a)],_0x1cb294))_0x27bdaa[_0x2964ad(0x104,_0x13b6f1._0x101887,0xbc,0x9c)]=_0x1a9577[_0x2964ad(0xd6,'[2(0',0xf6,_0x13b6f1._0x50b9da)];if(_0x3f73d8['sEREG'](_0x4736c4['version'],_0x4b0899))_0x27bdaa[_0x56fce8(-_0x13b6f1._0x3dbacc,-0x113,_0x13b6f1._0x57d29d,-_0x13b6f1._0x349349)]=_0x2937a0[_0x56fce8(-0x10b,-_0x13b6f1._0x51da34,'mKVj',-0x138)];_0x3f73d8[_0x56fce8(-0xf5,-0xbd,'itat',-0x116)](_0x20a246[_0x56fce8(-_0x13b6f1._0x202d44,-_0x13b6f1._0x364e5c,'ouPT',-_0x13b6f1._0x5cc694)](_0x27bdaa)[_0x2964ad(0xfc,_0x13b6f1._0x20c994,_0x13b6f1._0x2d2437,_0x13b6f1._0xcfabf5)],0xa*-0x2d0+0x293*0x4+-0x11d4*-0x1)&&(_0x27bdaa[_0x56fce8(-_0x13b6f1._0x4bc77e,-_0x13b6f1._0x4c1701,'kVRh',-0xef)]=new _0x3dfab0()[_0x2964ad(0xea,'(H8o',_0x13b6f1._0x3ed1ff,0xed)+'g'](),this[_0x56fce8(-0x173,-_0x13b6f1._0x1e06fa,'^^*b',-_0x13b6f1._0x5a5533)](_0x3c6f74,_0x27bdaa));}}_0x5df556={'title':_0x5b559a[-0x9*0x24b+0xd3d+0x767][_0x56fce8(-_0x13b6f1._0x3d22a1,-0x1b8,'^^*b',-_0x13b6f1._0x37d65d)](),'content':''};continue;}else _0x1e906d[_0x56fce8(-_0x13b6f1._0x501935,-_0x13b6f1._0x436f36,_0x13b6f1._0x183b41,-_0x13b6f1._0x4a32a5)]+=_0x3f73d8[_0x2964ad(_0x13b6f1._0x9f4aa4,_0x13b6f1._0x51eb7b,_0x13b6f1._0x221c5a,0x102)](_0x27503f,'\x0a');}_0x5df556?_0x5df556[_0x2964ad(_0x13b6f1._0x7f7829,_0x13b6f1._0x276fdf,_0x13b6f1._0x578ff4,0x6e)]+=_0x3f73d8[_0x56fce8(-_0x13b6f1._0x207f93,-0x19c,_0x13b6f1._0x18aac6,-0x14d)](_0x232abc,'\x0a'):_0x232abc[_0x56fce8(-0x183,-0x143,_0x13b6f1._0x3e8491,-0x15b)]()&&!_0x232abc[_0x2964ad(_0x13b6f1._0x240bfd,_0x13b6f1._0x35ec03,_0x13b6f1._0x3909fa,_0x13b6f1._0x2c7bfe)]('适用')&&(_0x5e8531+=_0x232abc+'\x0a');}return _0x5df556&&_0x3d7104[_0x2964ad(0xde,'Nu3M',_0x13b6f1._0x22ab88,0xdb)](_0x5df556),{'skill_pack_id':_0x288ca3['id'],'name':_0x288ca3[_0x2964ad(0xf3,'!6db',0x11b,_0x13b6f1._0x22b925)],'version':_0x288ca3[_0x56fce8(-_0x13b6f1._0x28077e,-_0x13b6f1._0x440cd3,_0x13b6f1._0x13fbd9,-0x134)],'description':_0x288ca3[_0x2964ad(0x11d,'wYJH',_0x13b6f1._0x11af2f,0x10c)+'n']||_0x5e8531[_0x56fce8(-_0x13b6f1._0xfb19cd,-_0x13b6f1._0x33a1ec,_0x13b6f1._0x13fbd9,-_0x13b6f1._0x15f54c)](),'sections':_0x3d7104};}}else{const _0x243c86={};return _0x243c86[_0x2964ad(0x66,_0x13b6f1._0xebe481,0xb0,_0x13b6f1._0x5ea7c7)]=0x1,this['findWhere'](_0x243c86);}}catch(_0x15b61c){return console[_0x56fce8(-_0x13b6f1._0x34784e,-0x13e,'ORhM',-_0x13b6f1._0x4bdcc6)](_0x2964ad(_0x13b6f1._0x4cb200,_0x13b6f1._0x9c8884,0x11a,0x108)+_0x2964ad(0xf4,'o%U$',0xb1,0x8f)+_0x1d9949,_0x15b61c),null;}}[_0x4865e8(0x22e,0x28e,'6l$7',0x282)](){const _0x2f2302={_0x5d8463:'kVRh'},_0x3d468c={_0x382cbf:0x1cb},_0x558f39={_0x2ed18b:0x5f,_0x436252:0x2e8},_0x5b801b={};function _0x10dd80(_0x94e730,_0x3cfaf0,_0x2cd605,_0x42386c){return _0x1ff095(_0x94e730-_0x558f39._0x2ed18b,_0x42386c- -_0x558f39._0x436252,_0x94e730,_0x42386c-0x1d2);}_0x5b801b[_0x3a1645(0x231,0x259,0x292,'4)8@')]=0x1;function _0x3a1645(_0x2354df,_0xcdf2e2,_0x13156e,_0x224a0c){return _0x4865e8(_0x2354df-0x1,_0xcdf2e2-_0x3d468c._0x382cbf,_0x224a0c,_0xcdf2e2- -0x52);}return this[_0x10dd80(_0x2f2302._0x5d8463,0x249,0x2a3,0x291)](_0x5b801b);}[_0x1ff095(0x57e,0x5d1,'4)8@',0x5a8)](){const _0x3cac6e={_0xaaf1d9:0x5e2,_0x1de551:'ouPT',_0x21a292:0x5ec,_0x3e9950:0x4fd,_0x5cca5f:0x4b2},_0x440541={_0x2cc602:0x31,_0x303596:0x12b,_0x969498:0x2c2},_0x13be93={};_0x13be93[_0x5d9e34(_0x3cac6e._0xaaf1d9,0x5e5,_0x3cac6e._0x1de551,_0x3cac6e._0x21a292)]=0x0;function _0x2df58c(_0x3e6f5f,_0x365432,_0x1a4dfd,_0x736c75){return _0x4865e8(_0x3e6f5f-0xb9,_0x365432-0x4e,_0x3e6f5f,_0x736c75-0x1d6);}function _0x5d9e34(_0xc74c23,_0x56b762,_0x17f3e2,_0x40a97d){return _0x4865e8(_0xc74c23-_0x440541._0x2cc602,_0x56b762-_0x440541._0x303596,_0x17f3e2,_0xc74c23-_0x440541._0x969498);}return this[_0x2df58c('BN@]',_0x3cac6e._0x3e9950,0x4bc,_0x3cac6e._0x5cca5f)](_0x13be93);}[_0x1ff095(0x532,0x556,')fB3',0x558)](_0x26675b){const _0x3a8160={_0x4cf543:0x38a,_0x598c57:0x409,_0x1e80d6:'Nu3M',_0x49b259:0x2ea,_0x2c66dc:'nn)$',_0x2914cc:0x33a},_0x17b696={_0x3e43b5:0x9d,_0x3f106a:0x1a4,_0x4bbecf:0x20b},_0x59321b={_0x2385e9:0x2c,_0x36e92d:0x1e9},_0x17a822={};function _0x16cc82(_0x219caf,_0x48eb1b,_0x10faf1,_0x7df9cc){return _0x4865e8(_0x219caf-_0x59321b._0x2385e9,_0x48eb1b-_0x59321b._0x36e92d,_0x10faf1,_0x48eb1b-0xa6);}_0x17a822[_0x16cc82(0x368,0x380,'!6db',_0x3a8160._0x4cf543)]=function(_0x3f1be2,_0x131ec5){return _0x3f1be2===_0x131ec5;};const _0x317b1d=_0x17a822;function _0x358495(_0x13c40d,_0x5917a9,_0x35b0e1,_0x2e4c7e){return _0x4865e8(_0x13c40d-_0x17b696._0x3e43b5,_0x5917a9-_0x17b696._0x3f106a,_0x5917a9,_0x13c40d- -_0x17b696._0x4bbecf);}const _0x2a2e6a=this[_0x16cc82(_0x3a8160._0x598c57,0x3b5,'TDQ9',0x3bc)](_0x26675b);return _0x2a2e6a?_0x317b1d[_0x358495(0x11b,_0x3a8160._0x1e80d6,0x11b,0x145)](_0x2a2e6a[_0x16cc82(_0x3a8160._0x49b259,0x32d,_0x3a8160._0x2c66dc,_0x3a8160._0x2914cc)],-0x2e*-0x5e+-0x1781*0x1+-0x34f*-0x2):![];}}exports[_0x1ff095(0x604,0x5d2,'Jw]u',0x61c)+_0x1ff095(0x5a6,0x5c1,'wYJH',0x605)]=SkillPackRepository,exports[_0x1ff095(0x52a,0x578,'yZ%s',0x5be)+_0x4865e8(0x2d2,0x311,'Rbnb',0x30e)]=new SkillPackRepository();
1
+ "use strict";
2
+ /**
3
+ * 技能包 Repository
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.skillPackRepository = exports.SkillPackRepository = void 0;
7
+ const base_repository_1 = require("./base.repository");
8
+ const crypto_service_1 = require("../../core/services/crypto.service");
9
+ class SkillPackRepository extends base_repository_1.BaseRepository {
10
+ constructor() {
11
+ super('skill_packs', 'id');
12
+ }
13
+ /**
14
+ * 创建技能包
15
+ */
16
+ create(data) {
17
+ const now = new Date().toISOString();
18
+ this.insert({
19
+ id: data.id,
20
+ name: data.name,
21
+ description: data.description,
22
+ content: data.content,
23
+ is_preset: data.is_preset ?? 0,
24
+ version: '1.0.0',
25
+ created_at: now,
26
+ updated_at: now
27
+ });
28
+ return this.findById(data.id);
29
+ }
30
+ /**
31
+ * 更新技能包
32
+ */
33
+ updateSkillPack(id, data) {
34
+ const updateData = {};
35
+ if (data.name !== undefined)
36
+ updateData.name = data.name;
37
+ if (data.description !== undefined)
38
+ updateData.description = data.description;
39
+ if (data.content !== undefined)
40
+ updateData.content = data.content;
41
+ if (data.version !== undefined)
42
+ updateData.version = data.version;
43
+ if (Object.keys(updateData).length > 0) {
44
+ updateData.updated_at = new Date().toISOString();
45
+ this.update(id, updateData);
46
+ }
47
+ }
48
+ /**
49
+ * 获取技能包内容(支持JSON和Markdown格式,支持加密数据)
50
+ */
51
+ getContent(id) {
52
+ const skillPack = this.findById(id);
53
+ if (!skillPack || !skillPack.content)
54
+ return null;
55
+ try {
56
+ // 先解密(如果是加密的)
57
+ let content = skillPack.content;
58
+ if ((0, crypto_service_1.isEncrypted)(content)) {
59
+ content = (0, crypto_service_1.decryptSync)(content);
60
+ }
61
+ // 尝试解析为 JSON
62
+ try {
63
+ const parsed = JSON.parse(content);
64
+ return {
65
+ skill_pack_id: skillPack.id,
66
+ name: skillPack.name,
67
+ version: skillPack.version,
68
+ description: skillPack.description || '',
69
+ ...parsed
70
+ };
71
+ }
72
+ catch {
73
+ // JSON 解析失败,作为 Markdown 处理
74
+ // 解析 Markdown 格式的技能包
75
+ const lines = content.split('\n');
76
+ let description = '';
77
+ const sections = [];
78
+ let currentSection = null;
79
+ for (const line of lines) {
80
+ // 检测标题行(如 "名称:xxx")
81
+ if (line.startsWith('名称:') || line.startsWith('名称:')) {
82
+ // 名称已经在 skillPack.name 中
83
+ continue;
84
+ }
85
+ // 检测章节标题(如 "目标:"、"方法:"等)
86
+ const sectionMatch = line.match(/^([^\n::]+)[::]\s*$/);
87
+ if (sectionMatch) {
88
+ // 保存上一个章节
89
+ if (currentSection) {
90
+ sections.push(currentSection);
91
+ }
92
+ currentSection = {
93
+ title: sectionMatch[1].trim(),
94
+ content: ''
95
+ };
96
+ continue;
97
+ }
98
+ // 添加到当前章节
99
+ if (currentSection) {
100
+ currentSection.content += line + '\n';
101
+ }
102
+ else {
103
+ // 没有章节时,作为描述
104
+ if (line.trim() && !line.startsWith('适用')) {
105
+ description += line + '\n';
106
+ }
107
+ }
108
+ }
109
+ // 保存最后一个章节
110
+ if (currentSection) {
111
+ sections.push(currentSection);
112
+ }
113
+ return {
114
+ skill_pack_id: skillPack.id,
115
+ name: skillPack.name,
116
+ version: skillPack.version,
117
+ description: skillPack.description || description.trim(),
118
+ sections
119
+ };
120
+ }
121
+ }
122
+ catch (error) {
123
+ console.error(`[SkillPack] 解析内容失败: ${id}`, error);
124
+ return null;
125
+ }
126
+ }
127
+ /**
128
+ * 获取所有预置技能包
129
+ */
130
+ findPreset() {
131
+ return this.findWhere({ is_preset: 1 });
132
+ }
133
+ /**
134
+ * 获取所有用户自定义技能包
135
+ */
136
+ findCustom() {
137
+ return this.findWhere({ is_preset: 0 });
138
+ }
139
+ /**
140
+ * 检查是否为预置数据
141
+ */
142
+ isPreset(id) {
143
+ const skillPack = this.findById(id);
144
+ return skillPack ? skillPack.is_preset === 1 : false;
145
+ }
146
+ }
147
+ exports.SkillPackRepository = SkillPackRepository;
148
+ exports.skillPackRepository = new SkillPackRepository();
149
+ //# sourceMappingURL=skill-pack.repo.js.map