@treasuredata/tdx 0.8.10 → 0.8.11

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 (131) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/client/cdp-api-client.d.ts +10 -1
  6. package/dist/client/cdp-api-client.d.ts.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/cdp-api-client.js.map +1 -1
  9. package/dist/client/engage-api-client.js +1 -1
  10. package/dist/client/http-client.js +1 -1
  11. package/dist/client/llm-api-client.js +1 -1
  12. package/dist/client/rate-limiter.js +1 -1
  13. package/dist/client/td-api-client.js +1 -1
  14. package/dist/client/trino-api-client.js +1 -1
  15. package/dist/client/workflow-client.js +1 -1
  16. package/dist/commands/activations.js +1 -1
  17. package/dist/commands/api-command.js +1 -1
  18. package/dist/commands/auth-command.js +1 -1
  19. package/dist/commands/chat-command.js +1 -1
  20. package/dist/commands/claude-command.js +1 -1
  21. package/dist/commands/claude-statusline-command.js +1 -1
  22. package/dist/commands/claude-usage-command.js +1 -1
  23. package/dist/commands/command.js +1 -1
  24. package/dist/commands/connection-command.js +1 -1
  25. package/dist/commands/context-command.js +1 -1
  26. package/dist/commands/databases.js +1 -1
  27. package/dist/commands/describe.js +1 -1
  28. package/dist/commands/engage-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/llm-command.js +1 -1
  32. package/dist/commands/llm-proxy.js +1 -1
  33. package/dist/commands/parent-segment-command.js +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.d.ts.map +1 -1
  41. package/dist/commands/segment-push-command.js +1 -1
  42. package/dist/commands/segment-push-command.js.map +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segments.js +1 -1
  46. package/dist/commands/show.js +1 -1
  47. package/dist/commands/tables.js +1 -1
  48. package/dist/commands/use-command.js +1 -1
  49. package/dist/commands/user-command.js +1 -1
  50. package/dist/commands/workflow-command.js +1 -1
  51. package/dist/core/auth.js +1 -1
  52. package/dist/core/config.js +1 -1
  53. package/dist/core/connection-cache.js +1 -1
  54. package/dist/core/credential-cache.js +1 -1
  55. package/dist/core/global-context.js +1 -1
  56. package/dist/core/keychain.js +1 -1
  57. package/dist/core/profile.js +1 -1
  58. package/dist/core/project-config.js +1 -1
  59. package/dist/core/session.js +1 -1
  60. package/dist/core/user-cache.js +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/proxy/anthropic-adapter.js +1 -1
  63. package/dist/proxy/claude-usage-tracker.js +1 -1
  64. package/dist/proxy/context-signature.js +1 -1
  65. package/dist/proxy/conversation-utils.js +1 -1
  66. package/dist/proxy/server.js +1 -1
  67. package/dist/proxy/session-cache.js +1 -1
  68. package/dist/sdk/api.js +1 -1
  69. package/dist/sdk/connection.js +1 -1
  70. package/dist/sdk/engage.js +1 -1
  71. package/dist/sdk/errors.js +1 -1
  72. package/dist/sdk/index.js +1 -1
  73. package/dist/sdk/job.js +1 -1
  74. package/dist/sdk/journey.d.ts +15 -1
  75. package/dist/sdk/journey.d.ts.map +1 -1
  76. package/dist/sdk/journey.js +1 -1
  77. package/dist/sdk/journey.js.map +1 -1
  78. package/dist/sdk/llm.js +1 -1
  79. package/dist/sdk/query.js +1 -1
  80. package/dist/sdk/segment/child-segment-yaml.d.ts +1 -1
  81. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  82. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  83. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  84. package/dist/sdk/segment/journey-yaml.d.ts +5 -0
  85. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  86. package/dist/sdk/segment/journey-yaml.js +1 -1
  87. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  88. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  89. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  90. package/dist/sdk/segment.js +1 -1
  91. package/dist/sdk/user.js +1 -1
  92. package/dist/sdk/workflow.js +1 -1
  93. package/dist/types/cdp.d.ts +37 -0
  94. package/dist/types/cdp.d.ts.map +1 -1
  95. package/dist/types/endpoints.js +1 -1
  96. package/dist/types/index.d.ts +1 -1
  97. package/dist/types/index.d.ts.map +1 -1
  98. package/dist/types/index.js +1 -1
  99. package/dist/utils/agent-ref-parser.js +1 -1
  100. package/dist/utils/async.js +1 -1
  101. package/dist/utils/chat-cache.js +1 -1
  102. package/dist/utils/colors.js +1 -1
  103. package/dist/utils/command-output.js +1 -1
  104. package/dist/utils/constants.js +1 -1
  105. package/dist/utils/diff.js +1 -1
  106. package/dist/utils/fields-display.js +1 -1
  107. package/dist/utils/file-permissions.js +1 -1
  108. package/dist/utils/format-detector.js +1 -1
  109. package/dist/utils/formatters.js +1 -1
  110. package/dist/utils/journey-utils.js +1 -1
  111. package/dist/utils/json-loader.js +1 -1
  112. package/dist/utils/llm-backup-utils.js +1 -1
  113. package/dist/utils/model-aliases.js +1 -1
  114. package/dist/utils/model-factors.js +1 -1
  115. package/dist/utils/option-validation.js +1 -1
  116. package/dist/utils/port.js +1 -1
  117. package/dist/utils/process.js +1 -1
  118. package/dist/utils/prompt.js +1 -1
  119. package/dist/utils/segment-path-parser.js +1 -1
  120. package/dist/utils/segment-ref-parser.js +1 -1
  121. package/dist/utils/spinner.js +1 -1
  122. package/dist/utils/sql-parser.js +1 -1
  123. package/dist/utils/sse-parser.js +1 -1
  124. package/dist/utils/string-utils.js +1 -1
  125. package/dist/utils/table-ref-parser.js +1 -1
  126. package/dist/utils/tdx-config.js +1 -1
  127. package/dist/utils/tdx-logger.js +1 -1
  128. package/dist/utils/tree-formatter.js +1 -1
  129. package/dist/utils/version-check.js +1 -1
  130. package/dist/utils/workflow-utils.js +1 -1
  131. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x27479e,_0x55c5b6){const _0x59df19=a94_0x4599,_0x32fac3=_0x27479e();while(!![]){try{const _0x4c3eb4=-parseInt(_0x59df19(0xf9))/0x1+-parseInt(_0x59df19(0xea))/0x2+parseInt(_0x59df19(0xfd))/0x3*(parseInt(_0x59df19(0x104))/0x4)+-parseInt(_0x59df19(0xf3))/0x5+parseInt(_0x59df19(0x109))/0x6*(-parseInt(_0x59df19(0x10a))/0x7)+parseInt(_0x59df19(0xf8))/0x8*(parseInt(_0x59df19(0xed))/0x9)+parseInt(_0x59df19(0x100))/0xa;if(_0x4c3eb4===_0x55c5b6)break;else _0x32fac3['push'](_0x32fac3['shift']());}catch(_0xb8a712){_0x32fac3['push'](_0x32fac3['shift']());}}}(a94_0x2195,0x84b96));import a94_0x5d5cf5 from'chalk';function a94_0x2195(){const _0xaf93f9=['size','push','1701400XMwBjU','\x20+\x20','some','repeat','removed','248dyITwk','26827sLEUBT','split','\x20-\x20','fill','1513209ceKfPF','\x20\x20\x20','type','9003480Oxxgic','length','green','add','4fVfIVA','content','has','padStart','added','18yteUfv','1985214YKolTR','new','unchanged','forEach','1221296bwPdHj','map','join','280872uwenKy','\x20\x20...','old','max'];a94_0x2195=function(){return _0xaf93f9;};return a94_0x2195();}export function generateDiff(_0x425453,_0xf3679a){const _0x209520=a94_0x4599,_0x5dfd7f=_0x425453[_0x209520(0xfa)]('\x0a'),_0x1c9835=_0xf3679a[_0x209520(0xfa)]('\x0a'),_0x29779a=[],_0x4d1cc1=computeLCS(_0x5dfd7f,_0x1c9835);let _0x1496c4=0x0,_0xd10fc0=0x0,_0x5dc660=0x0;while(_0x1496c4<_0x5dfd7f[_0x209520(0x101)]||_0xd10fc0<_0x1c9835['length']){if(_0x5dc660<_0x4d1cc1[_0x209520(0x101)]&&_0x1496c4<_0x5dfd7f[_0x209520(0x101)]&&_0x5dfd7f[_0x1496c4]===_0x4d1cc1[_0x5dc660])_0xd10fc0<_0x1c9835[_0x209520(0x101)]&&_0x1c9835[_0xd10fc0]===_0x4d1cc1[_0x5dc660]?(_0x29779a[_0x209520(0xf2)]({'type':'unchanged','content':_0x5dfd7f[_0x1496c4]}),_0x1496c4++,_0xd10fc0++,_0x5dc660++):(_0x29779a[_0x209520(0xf2)]({'type':_0x209520(0x108),'content':_0x1c9835[_0xd10fc0]}),_0xd10fc0++);else{if(_0x5dc660<_0x4d1cc1['length']&&_0xd10fc0<_0x1c9835[_0x209520(0x101)]&&_0x1c9835[_0xd10fc0]===_0x4d1cc1[_0x5dc660])_0x29779a['push']({'type':'removed','content':_0x5dfd7f[_0x1496c4]}),_0x1496c4++;else{if(_0x1496c4<_0x5dfd7f[_0x209520(0x101)]&&(_0x5dc660>=_0x4d1cc1[_0x209520(0x101)]||_0x5dfd7f[_0x1496c4]!==_0x4d1cc1[_0x5dc660]))_0x29779a[_0x209520(0xf2)]({'type':'removed','content':_0x5dfd7f[_0x1496c4]}),_0x1496c4++;else _0xd10fc0<_0x1c9835[_0x209520(0x101)]&&(_0x29779a[_0x209520(0xf2)]({'type':_0x209520(0x108),'content':_0x1c9835[_0xd10fc0]}),_0xd10fc0++);}}}return _0x29779a;}function computeLCS(_0x595f91,_0xc796e6){const _0x389ea6=a94_0x4599,_0xe57753=_0x595f91['length'],_0x4890c9=_0xc796e6[_0x389ea6(0x101)],_0x1e39b9=Array(_0xe57753+0x1)['fill'](null)[_0x389ea6(0xeb)](()=>Array(_0x4890c9+0x1)[_0x389ea6(0xfc)](0x0));for(let _0x2584ec=0x1;_0x2584ec<=_0xe57753;_0x2584ec++){for(let _0x297683=0x1;_0x297683<=_0x4890c9;_0x297683++){_0x595f91[_0x2584ec-0x1]===_0xc796e6[_0x297683-0x1]?_0x1e39b9[_0x2584ec][_0x297683]=_0x1e39b9[_0x2584ec-0x1][_0x297683-0x1]+0x1:_0x1e39b9[_0x2584ec][_0x297683]=Math[_0x389ea6(0xf0)](_0x1e39b9[_0x2584ec-0x1][_0x297683],_0x1e39b9[_0x2584ec][_0x297683-0x1]);}}const _0x3162ce=[];let _0x5ddb99=_0xe57753,_0x427047=_0x4890c9;while(_0x5ddb99>0x0&&_0x427047>0x0){if(_0x595f91[_0x5ddb99-0x1]===_0xc796e6[_0x427047-0x1])_0x3162ce['unshift'](_0x595f91[_0x5ddb99-0x1]),_0x5ddb99--,_0x427047--;else _0x1e39b9[_0x5ddb99-0x1][_0x427047]>_0x1e39b9[_0x5ddb99][_0x427047-0x1]?_0x5ddb99--:_0x427047--;}return _0x3162ce;}export function formatDiffWithColors(_0x222ec5,_0x147a3d=0x3){const _0x95a6ee=a94_0x4599,_0x14c818=new Set();_0x222ec5[_0x95a6ee(0x10d)]((_0x4c878b,_0x4b4f31)=>{const _0x32ff1a=_0x95a6ee;_0x4c878b[_0x32ff1a(0xff)]!=='unchanged'&&_0x14c818['add'](_0x4b4f31);});if(_0x14c818[_0x95a6ee(0xf1)]===0x0)return'';const _0x2f39ba=new Set();for(const _0x346fd0 of _0x14c818){for(let _0x3a1a9f=Math[_0x95a6ee(0xf0)](0x0,_0x346fd0-_0x147a3d);_0x3a1a9f<=Math['min'](_0x222ec5[_0x95a6ee(0x101)]-0x1,_0x346fd0+_0x147a3d);_0x3a1a9f++){_0x2f39ba[_0x95a6ee(0x103)](_0x3a1a9f);}}const _0x571a45=[];let _0x107581=-0x1;const _0x3c7b2e=_0x222ec5[_0x95a6ee(0x101)],_0x42a2a3=Math[_0x95a6ee(0xf0)](0x3,String(_0x3c7b2e)['length']),_0x4e75c8=[];let _0xe57f6b=0x0,_0x43f728=0x0;for(const _0x2c2760 of _0x222ec5){if(_0x2c2760[_0x95a6ee(0xff)]==='removed')_0xe57f6b++,_0x4e75c8['push']({'old':_0xe57f6b,'new':0x0});else _0x2c2760[_0x95a6ee(0xff)]===_0x95a6ee(0x108)?(_0x43f728++,_0x4e75c8[_0x95a6ee(0xf2)]({'old':0x0,'new':_0x43f728})):(_0xe57f6b++,_0x43f728++,_0x4e75c8[_0x95a6ee(0xf2)]({'old':_0xe57f6b,'new':_0x43f728}));}for(let _0x5d651d=0x0;_0x5d651d<_0x222ec5[_0x95a6ee(0x101)];_0x5d651d++){if(!_0x2f39ba[_0x95a6ee(0x106)](_0x5d651d))continue;_0x107581!==-0x1&&_0x5d651d>_0x107581+0x1&&_0x571a45['push'](a94_0x5d5cf5['cyan'](_0x95a6ee(0xee)));_0x107581=_0x5d651d;const _0x3c2fdb=_0x222ec5[_0x5d651d],_0x5641a0=_0x4e75c8[_0x5d651d],_0x19fe71=_0x5641a0['old']>0x0?String(_0x5641a0[_0x95a6ee(0xef)])[_0x95a6ee(0x107)](_0x42a2a3):'\x20'['repeat'](_0x42a2a3),_0x309597=_0x5641a0[_0x95a6ee(0x10b)]>0x0?String(_0x5641a0['new'])[_0x95a6ee(0x107)](_0x42a2a3):'\x20'[_0x95a6ee(0xf6)](_0x42a2a3);switch(_0x3c2fdb[_0x95a6ee(0xff)]){case _0x95a6ee(0xf7):_0x571a45['push'](a94_0x5d5cf5['red'](_0x19fe71+'\x20'+_0x309597+_0x95a6ee(0xfb)+_0x3c2fdb[_0x95a6ee(0x105)]));break;case'added':_0x571a45[_0x95a6ee(0xf2)](a94_0x5d5cf5[_0x95a6ee(0x102)](_0x19fe71+'\x20'+_0x309597+_0x95a6ee(0xf4)+_0x3c2fdb['content']));break;default:_0x571a45[_0x95a6ee(0xf2)](a94_0x5d5cf5['dim'](_0x19fe71+'\x20'+_0x309597+_0x95a6ee(0xfe)+_0x3c2fdb['content']));break;}}return _0x571a45[_0x95a6ee(0xec)]('\x0a');}function a94_0x4599(_0x4f3b38,_0x1467af){_0x4f3b38=_0x4f3b38-0xea;const _0x219583=a94_0x2195();let _0x4599fa=_0x219583[_0x4f3b38];return _0x4599fa;}export function hasChanges(_0x2e67e1){const _0x383b39=a94_0x4599;return _0x2e67e1[_0x383b39(0xf5)](_0x48cb4e=>_0x48cb4e[_0x383b39(0xff)]!==_0x383b39(0x10c));}
1
+ (function(_0x53c2c9,_0x37e80f){const _0x30fbc1=a94_0x2c9b,_0x205241=_0x53c2c9();while(!![]){try{const _0x4a9dd8=parseInt(_0x30fbc1(0x12d))/0x1*(-parseInt(_0x30fbc1(0x12a))/0x2)+parseInt(_0x30fbc1(0x131))/0x3+parseInt(_0x30fbc1(0x138))/0x4*(-parseInt(_0x30fbc1(0x144))/0x5)+-parseInt(_0x30fbc1(0x12f))/0x6+parseInt(_0x30fbc1(0x129))/0x7*(parseInt(_0x30fbc1(0x140))/0x8)+parseInt(_0x30fbc1(0x13b))/0x9*(-parseInt(_0x30fbc1(0x135))/0xa)+parseInt(_0x30fbc1(0x14e))/0xb*(parseInt(_0x30fbc1(0x145))/0xc);if(_0x4a9dd8===_0x37e80f)break;else _0x205241['push'](_0x205241['shift']());}catch(_0x56daf9){_0x205241['push'](_0x205241['shift']());}}}(a94_0x311b,0x8fd99));import a94_0x26d153 from'chalk';function a94_0x2c9b(_0x21b9ad,_0x3bc8b3){_0x21b9ad=_0x21b9ad-0x129;const _0x311bb1=a94_0x311b();let _0x2c9b21=_0x311bb1[_0x21b9ad];return _0x2c9b21;}function a94_0x311b(){const _0x307a29=['size','added','40671XXqPxE','forEach','unchanged','split','removed','8ooYNFX','dim','red','padStart','365740nBLrcJ','7877652qwRzwG','min','fill','new','cyan','type','\x20+\x20','\x20\x20\x20','old','11Aqzenz','7752031EsHxVk','243044QIvUvk','repeat','max','1OSfGJw','content','3318726inVSYI','some','579129RUCTXz','green','length','push','1210hggWZb','\x20\x20...','add','8jiuMHL'];a94_0x311b=function(){return _0x307a29;};return a94_0x311b();}export function generateDiff(_0x3319cc,_0x3b4463){const _0x187069=a94_0x2c9b,_0x413edd=_0x3319cc['split']('\x0a'),_0x6a5a2=_0x3b4463[_0x187069(0x13e)]('\x0a'),_0x580d14=[],_0x2af9e6=computeLCS(_0x413edd,_0x6a5a2);let _0x526706=0x0,_0x3e619c=0x0,_0x3a2c07=0x0;while(_0x526706<_0x413edd[_0x187069(0x133)]||_0x3e619c<_0x6a5a2['length']){if(_0x3a2c07<_0x2af9e6['length']&&_0x526706<_0x413edd[_0x187069(0x133)]&&_0x413edd[_0x526706]===_0x2af9e6[_0x3a2c07])_0x3e619c<_0x6a5a2['length']&&_0x6a5a2[_0x3e619c]===_0x2af9e6[_0x3a2c07]?(_0x580d14[_0x187069(0x134)]({'type':'unchanged','content':_0x413edd[_0x526706]}),_0x526706++,_0x3e619c++,_0x3a2c07++):(_0x580d14[_0x187069(0x134)]({'type':_0x187069(0x13a),'content':_0x6a5a2[_0x3e619c]}),_0x3e619c++);else{if(_0x3a2c07<_0x2af9e6[_0x187069(0x133)]&&_0x3e619c<_0x6a5a2[_0x187069(0x133)]&&_0x6a5a2[_0x3e619c]===_0x2af9e6[_0x3a2c07])_0x580d14[_0x187069(0x134)]({'type':_0x187069(0x13f),'content':_0x413edd[_0x526706]}),_0x526706++;else{if(_0x526706<_0x413edd[_0x187069(0x133)]&&(_0x3a2c07>=_0x2af9e6[_0x187069(0x133)]||_0x413edd[_0x526706]!==_0x2af9e6[_0x3a2c07]))_0x580d14['push']({'type':_0x187069(0x13f),'content':_0x413edd[_0x526706]}),_0x526706++;else _0x3e619c<_0x6a5a2[_0x187069(0x133)]&&(_0x580d14[_0x187069(0x134)]({'type':_0x187069(0x13a),'content':_0x6a5a2[_0x3e619c]}),_0x3e619c++);}}}return _0x580d14;}function computeLCS(_0x270f72,_0x10b632){const _0x260cfb=a94_0x2c9b,_0x1785c6=_0x270f72[_0x260cfb(0x133)],_0x121c14=_0x10b632['length'],_0x3d54e8=Array(_0x1785c6+0x1)[_0x260cfb(0x147)](null)['map'](()=>Array(_0x121c14+0x1)['fill'](0x0));for(let _0xfd78a8=0x1;_0xfd78a8<=_0x1785c6;_0xfd78a8++){for(let _0x5e4253=0x1;_0x5e4253<=_0x121c14;_0x5e4253++){_0x270f72[_0xfd78a8-0x1]===_0x10b632[_0x5e4253-0x1]?_0x3d54e8[_0xfd78a8][_0x5e4253]=_0x3d54e8[_0xfd78a8-0x1][_0x5e4253-0x1]+0x1:_0x3d54e8[_0xfd78a8][_0x5e4253]=Math[_0x260cfb(0x12c)](_0x3d54e8[_0xfd78a8-0x1][_0x5e4253],_0x3d54e8[_0xfd78a8][_0x5e4253-0x1]);}}const _0x3bd815=[];let _0x142113=_0x1785c6,_0x4bdeee=_0x121c14;while(_0x142113>0x0&&_0x4bdeee>0x0){if(_0x270f72[_0x142113-0x1]===_0x10b632[_0x4bdeee-0x1])_0x3bd815['unshift'](_0x270f72[_0x142113-0x1]),_0x142113--,_0x4bdeee--;else _0x3d54e8[_0x142113-0x1][_0x4bdeee]>_0x3d54e8[_0x142113][_0x4bdeee-0x1]?_0x142113--:_0x4bdeee--;}return _0x3bd815;}export function formatDiffWithColors(_0x1e2276,_0x383813=0x3){const _0x1b75ce=a94_0x2c9b,_0x4a7759=new Set();_0x1e2276[_0x1b75ce(0x13c)]((_0x3b80a7,_0x4a4261)=>{const _0xd2c428=_0x1b75ce;_0x3b80a7['type']!==_0xd2c428(0x13d)&&_0x4a7759[_0xd2c428(0x137)](_0x4a4261);});if(_0x4a7759[_0x1b75ce(0x139)]===0x0)return'';const _0x567697=new Set();for(const _0x3fe1bf of _0x4a7759){for(let _0x3f0229=Math[_0x1b75ce(0x12c)](0x0,_0x3fe1bf-_0x383813);_0x3f0229<=Math[_0x1b75ce(0x146)](_0x1e2276[_0x1b75ce(0x133)]-0x1,_0x3fe1bf+_0x383813);_0x3f0229++){_0x567697[_0x1b75ce(0x137)](_0x3f0229);}}const _0x1fd337=[];let _0x211a67=-0x1;const _0x519f56=_0x1e2276[_0x1b75ce(0x133)],_0x5edb88=Math['max'](0x3,String(_0x519f56)['length']),_0x190c02=[];let _0x1c1c18=0x0,_0x5051fa=0x0;for(const _0x1903ad of _0x1e2276){if(_0x1903ad[_0x1b75ce(0x14a)]==='removed')_0x1c1c18++,_0x190c02[_0x1b75ce(0x134)]({'old':_0x1c1c18,'new':0x0});else _0x1903ad['type']===_0x1b75ce(0x13a)?(_0x5051fa++,_0x190c02['push']({'old':0x0,'new':_0x5051fa})):(_0x1c1c18++,_0x5051fa++,_0x190c02['push']({'old':_0x1c1c18,'new':_0x5051fa}));}for(let _0x46afd5=0x0;_0x46afd5<_0x1e2276[_0x1b75ce(0x133)];_0x46afd5++){if(!_0x567697['has'](_0x46afd5))continue;_0x211a67!==-0x1&&_0x46afd5>_0x211a67+0x1&&_0x1fd337[_0x1b75ce(0x134)](a94_0x26d153[_0x1b75ce(0x149)](_0x1b75ce(0x136)));_0x211a67=_0x46afd5;const _0xefc3ff=_0x1e2276[_0x46afd5],_0x864f44=_0x190c02[_0x46afd5],_0x15ea1f=_0x864f44[_0x1b75ce(0x14d)]>0x0?String(_0x864f44[_0x1b75ce(0x14d)])[_0x1b75ce(0x143)](_0x5edb88):'\x20'[_0x1b75ce(0x12b)](_0x5edb88),_0x2d19fd=_0x864f44[_0x1b75ce(0x148)]>0x0?String(_0x864f44[_0x1b75ce(0x148)])[_0x1b75ce(0x143)](_0x5edb88):'\x20'['repeat'](_0x5edb88);switch(_0xefc3ff[_0x1b75ce(0x14a)]){case _0x1b75ce(0x13f):_0x1fd337[_0x1b75ce(0x134)](a94_0x26d153[_0x1b75ce(0x142)](_0x15ea1f+'\x20'+_0x2d19fd+'\x20-\x20'+_0xefc3ff[_0x1b75ce(0x12e)]));break;case _0x1b75ce(0x13a):_0x1fd337[_0x1b75ce(0x134)](a94_0x26d153[_0x1b75ce(0x132)](_0x15ea1f+'\x20'+_0x2d19fd+_0x1b75ce(0x14b)+_0xefc3ff[_0x1b75ce(0x12e)]));break;default:_0x1fd337['push'](a94_0x26d153[_0x1b75ce(0x141)](_0x15ea1f+'\x20'+_0x2d19fd+_0x1b75ce(0x14c)+_0xefc3ff['content']));break;}}return _0x1fd337['join']('\x0a');}export function hasChanges(_0x2cc887){const _0x3bae9c=a94_0x2c9b;return _0x2cc887[_0x3bae9c(0x130)](_0x120d1a=>_0x120d1a[_0x3bae9c(0x14a)]!==_0x3bae9c(0x13d));}
@@ -1 +1 @@
1
- (function(_0x4ee5e0,_0x9a206b){const _0x42590a=a95_0x3139,_0x35ba53=_0x4ee5e0();while(!![]){try{const _0x3d3702=parseInt(_0x42590a(0x169))/0x1+-parseInt(_0x42590a(0x173))/0x2+-parseInt(_0x42590a(0x176))/0x3*(-parseInt(_0x42590a(0x14d))/0x4)+parseInt(_0x42590a(0x15a))/0x5+-parseInt(_0x42590a(0x179))/0x6+-parseInt(_0x42590a(0x14c))/0x7+-parseInt(_0x42590a(0x16a))/0x8;if(_0x3d3702===_0x9a206b)break;else _0x35ba53['push'](_0x35ba53['shift']());}catch(_0x3726aa){_0x35ba53['push'](_0x35ba53['shift']());}}}(a95_0xb361,0x4965b));import a95_0x3893f8 from'chalk';function a95_0x3139(_0x41ee6,_0x4ce87a){_0x41ee6=_0x41ee6-0x14c;const _0xb3610e=a95_0xb361();let _0x3139ff=_0xb3610e[_0x41ee6];return _0x3139ff;}import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x423613){const _0x35c381=a95_0x3139,_0xa74069=_0x423613[_0x35c381(0x155)][_0x35c381(0x157)](_0x538ec5=>({'column_name':_0x538ec5['name'],'column_type':_0x538ec5[_0x35c381(0x166)],'null':_0x35c381(0x16b),'key':null,'default':null,'extra':null}));return{..._0x423613,'columns':[{'name':'column_name','type':_0x35c381(0x15d)},{'name':_0x35c381(0x156),'type':_0x35c381(0x15d)},{'name':'null','type':_0x35c381(0x15d)},{'name':_0x35c381(0x14e),'type':_0x35c381(0x15d)},{'name':_0x35c381(0x174),'type':_0x35c381(0x15d)},{'name':'extra','type':'varchar'}],'data':_0xa74069};}export async function executeSchemaQuery(_0x581f94,_0x10adfd,_0x25802b){const _0x30dec7=a95_0x3139,_0x4b0884=_0x581f94['trim']()[_0x30dec7(0x163)](/;+$/,''),_0x14fa6e=_0x30dec7(0x17a)+_0x4b0884+_0x30dec7(0x168);_0x25802b[_0x30dec7(0x171)]&&console[_0x30dec7(0x161)](_0x30dec7(0x17d)+_0x14fa6e);const _0x37aacf=await withQuerySpinner(_0x30dec7(0x178),async _0x5f2a6e=>{const _0x485a1d=_0x30dec7,_0x49ec9f=await _0x10adfd[_0x485a1d(0x165)]['execute'](_0x14fa6e,{'catalog':'td','schema':'information_schema','onJobId':_0xf645bc=>{const _0x5b71f3=_0x485a1d;_0x5f2a6e[_0x5b71f3(0x150)](_0xf645bc);}});return _0x49ec9f;},{'verbose':_0x25802b[_0x30dec7(0x171)]});return buildSchemaResult(_0x37aacf[_0x30dec7(0x15e)]);}export function displayFieldsHumanReadable(_0xfbb0b6,_0x20f3be){const _0xe182de=a95_0x3139,_0x5c75ae=_0xfbb0b6[_0xe182de(0x164)](_0x551db=>_0x551db[_0xe182de(0x16f)]===_0xe182de(0x15b)),_0x53a3aa=_0xfbb0b6['filter'](_0x1b88f8=>_0x1b88f8['source']==='behavior'),_0x3eeed9=new Map();for(const _0x1a2f6d of _0x5c75ae){const _0x328547=_0x1a2f6d[_0xe182de(0x16e)]||_0x1a2f6d[_0xe182de(0x153)]||_0xe182de(0x151),_0x2f476c=_0x3eeed9[_0xe182de(0x17b)](_0x328547);_0x2f476c?_0x2f476c['fields']['push'](_0x1a2f6d):_0x3eeed9[_0xe182de(0x175)](_0x328547,{'displayName':_0x328547,'tableName':_0x1a2f6d[_0xe182de(0x153)],'fields':[_0x1a2f6d]});}const _0xf54718=new Map();for(const _0x315683 of _0x53a3aa){const _0x251fd7=_0x315683[_0xe182de(0x17f)]||_0xe182de(0x151),_0x5e43bd=_0xf54718['get'](_0x251fd7)||[];_0x5e43bd[_0xe182de(0x159)](_0x315683),_0xf54718[_0xe182de(0x175)](_0x251fd7,_0x5e43bd);}console[_0xe182de(0x161)]('\x0a'+a95_0x3893f8['bold'](_0x20f3be));if(_0x3eeed9[_0xe182de(0x16d)]>0x0){console['error']('\x0a'+a95_0x3893f8[_0xe182de(0x158)]('Attributes'));const _0x3d97bf=[..._0x3eeed9[_0xe182de(0x177)]()]['sort']((_0x5c4c30,_0x1fffbf)=>_0x5c4c30[0x0][_0xe182de(0x14f)](_0x1fffbf[0x0]));for(const [,_0x375d05]of _0x3d97bf){const _0x5e9d02=_0x375d05[_0xe182de(0x15f)]&&_0x375d05['tableName']!==_0x375d05[_0xe182de(0x170)]?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0x375d05[_0xe182de(0x15f)]+')'):'';console[_0xe182de(0x161)]('\x20\x20'+a95_0x3893f8[_0xe182de(0x167)](_0x375d05['displayName'])+_0x5e9d02);const _0x8d575d=[..._0x375d05[_0xe182de(0x16c)]]['sort']((_0x210621,_0x203128)=>_0x210621[_0xe182de(0x154)][_0xe182de(0x14f)](_0x203128[_0xe182de(0x154)]));for(const _0x5c04d8 of _0x8d575d){const _0x3828f9=_0x5c04d8['parentColumn']&&_0x5c04d8['parentColumn']!==_0x5c04d8[_0xe182de(0x154)]?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0x5c04d8[_0xe182de(0x15c)]+')'):'';console[_0xe182de(0x161)](_0xe182de(0x17e)+_0x5c04d8['name']+_0x3828f9+':\x20'+a95_0x3893f8[_0xe182de(0x152)](_0x5c04d8[_0xe182de(0x166)]));}}}if(_0xf54718[_0xe182de(0x16d)]>0x0){console[_0xe182de(0x161)]('\x0a'+a95_0x3893f8[_0xe182de(0x158)](_0xe182de(0x172)));const _0x186660=[..._0xf54718[_0xe182de(0x177)]()][_0xe182de(0x160)]((_0x40ce18,_0x430916)=>_0x40ce18[0x0][_0xe182de(0x14f)](_0x430916[0x0]));for(const [_0x12354e,_0x2bd0cc]of _0x186660){const _0x45fc55=_0x2bd0cc[0x0],_0x5c3179=_0x45fc55?.[_0xe182de(0x153)]||'';console[_0xe182de(0x161)]('\x20\x20'+a95_0x3893f8[_0xe182de(0x167)](_0x12354e)+(_0x5c3179?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0x5c3179+')'):''));const _0x215f37=[..._0x2bd0cc][_0xe182de(0x160)]((_0x1d201d,_0xd715d8)=>_0x1d201d[_0xe182de(0x154)][_0xe182de(0x14f)](_0xd715d8[_0xe182de(0x154)]));for(const _0xd57387 of _0x215f37){const _0x4dce64=_0xd57387[_0xe182de(0x154)][_0xe182de(0x17c)](_0x12354e+'.')?_0xd57387['name'][_0xe182de(0x162)](_0x12354e['length']+0x1):_0xd57387['name'],_0x5b18f6=_0xd57387[_0xe182de(0x15c)]&&_0xd57387[_0xe182de(0x15c)]!==_0x4dce64?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0xd57387[_0xe182de(0x15c)]+')'):'';console[_0xe182de(0x161)]('\x20\x20\x20\x20'+_0x4dce64+_0x5b18f6+':\x20'+a95_0x3893f8['cyan'](_0xd57387[_0xe182de(0x166)]));}}}console[_0xe182de(0x161)]('');}function a95_0xb361(){const _0x307a71=['replace','filter','query','type','bold','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','463938IQsfuh','5587576MbaePN','YES','fields','size','groupingName','source','displayName','verbose','Behaviors','31668gMxAHm','default','set','3MaIHYB','entries','Fetching\x20schema...','530844tBOqKt','SELECT\x20*\x20FROM\x20(\x0a','get','startsWith','Schema\x20query:\x0a','\x20\x20\x20\x20','behaviorName','251776wQKAOI','655256QBoJix','key','localeCompare','setJobId','Unknown','cyan','parentTableName','name','columns','column_type','map','dim','push','2558030pPXIBA','attribute','parentColumn','varchar','data','tableName','sort','error','slice'];a95_0xb361=function(){return _0x307a71;};return a95_0xb361();}
1
+ (function(_0x597a19,_0x2ebba1){const _0x264c67=a95_0x1cab,_0x4e8247=_0x597a19();while(!![]){try{const _0x3aa35b=parseInt(_0x264c67(0x162))/0x1+parseInt(_0x264c67(0x156))/0x2+-parseInt(_0x264c67(0x160))/0x3*(parseInt(_0x264c67(0x145))/0x4)+-parseInt(_0x264c67(0x15f))/0x5+parseInt(_0x264c67(0x13b))/0x6+-parseInt(_0x264c67(0x139))/0x7+parseInt(_0x264c67(0x13c))/0x8;if(_0x3aa35b===_0x2ebba1)break;else _0x4e8247['push'](_0x4e8247['shift']());}catch(_0x5cc4b2){_0x4e8247['push'](_0x4e8247['shift']());}}}(a95_0x4b9a,0x27a2a));import a95_0xfe08bb from'chalk';import{withQuerySpinner}from'./spinner.js';function a95_0x1cab(_0x3d444c,_0x364eb4){_0x3d444c=_0x3d444c-0x133;const _0x4b9a3d=a95_0x4b9a();let _0x1cab68=_0x4b9a3d[_0x3d444c];return _0x1cab68;}export function buildSchemaResult(_0x502a93){const _0x5e5d8c=a95_0x1cab,_0xb01f66=_0x502a93[_0x5e5d8c(0x155)][_0x5e5d8c(0x153)](_0x23b6d6=>({'column_name':_0x23b6d6[_0x5e5d8c(0x158)],'column_type':_0x23b6d6[_0x5e5d8c(0x15d)],'null':_0x5e5d8c(0x15c),'key':null,'default':null,'extra':null}));return{..._0x502a93,'columns':[{'name':_0x5e5d8c(0x14f),'type':'varchar'},{'name':_0x5e5d8c(0x140),'type':_0x5e5d8c(0x13d)},{'name':_0x5e5d8c(0x13e),'type':_0x5e5d8c(0x13d)},{'name':_0x5e5d8c(0x14a),'type':_0x5e5d8c(0x13d)},{'name':'default','type':'varchar'},{'name':_0x5e5d8c(0x135),'type':_0x5e5d8c(0x13d)}],'data':_0xb01f66};}function a95_0x4b9a(){const _0x5ed435=['localeCompare','bold','verbose','extra','parentColumn','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','query','1386665eFVLiy','replace','230220mgubYO','4449184yRXCDq','varchar','null','entries','column_type','Behaviors','Schema\x20query:\x0a','\x20\x20\x20\x20','behaviorName','708uXULuf','data','sort','size','displayName','key','execute','parentTableName','startsWith','tableName','column_name','groupingName','cyan','error','map','source','columns','527634IBqnQj','get','name','dim','Attributes','Unknown','YES','type','fields','1596855LuJeEj','4905TIExtQ','push','110872MrEEkE','filter','set'];a95_0x4b9a=function(){return _0x5ed435;};return a95_0x4b9a();}export async function executeSchemaQuery(_0x14d335,_0xcc0263,_0x3b8c43){const _0x4dc62=a95_0x1cab,_0x192010=_0x14d335['trim']()[_0x4dc62(0x13a)](/;+$/,''),_0x12bb40='SELECT\x20*\x20FROM\x20(\x0a'+_0x192010+_0x4dc62(0x137);_0x3b8c43['verbose']&&console[_0x4dc62(0x152)](_0x4dc62(0x142)+_0x12bb40);const _0x11f74b=await withQuerySpinner('Fetching\x20schema...',async _0xbe57ab=>{const _0x25e9eb=_0x4dc62,_0x156fe2=await _0xcc0263[_0x25e9eb(0x138)][_0x25e9eb(0x14b)](_0x12bb40,{'catalog':'td','schema':'information_schema','onJobId':_0x286cbf=>{_0xbe57ab['setJobId'](_0x286cbf);}});return _0x156fe2;},{'verbose':_0x3b8c43[_0x4dc62(0x134)]});return buildSchemaResult(_0x11f74b[_0x4dc62(0x146)]);}export function displayFieldsHumanReadable(_0x118c06,_0x55223e){const _0x5c0083=a95_0x1cab,_0xdc941b=_0x118c06[_0x5c0083(0x163)](_0x1d0021=>_0x1d0021[_0x5c0083(0x154)]==='attribute'),_0x18994d=_0x118c06[_0x5c0083(0x163)](_0x57a31b=>_0x57a31b['source']==='behavior'),_0x28266b=new Map();for(const _0x149b33 of _0xdc941b){const _0x10dc86=_0x149b33[_0x5c0083(0x150)]||_0x149b33[_0x5c0083(0x14c)]||_0x5c0083(0x15b),_0x557819=_0x28266b[_0x5c0083(0x157)](_0x10dc86);_0x557819?_0x557819[_0x5c0083(0x15e)][_0x5c0083(0x161)](_0x149b33):_0x28266b[_0x5c0083(0x164)](_0x10dc86,{'displayName':_0x10dc86,'tableName':_0x149b33[_0x5c0083(0x14c)],'fields':[_0x149b33]});}const _0x22f8bf=new Map();for(const _0x496247 of _0x18994d){const _0x1fa33c=_0x496247[_0x5c0083(0x144)]||'Unknown',_0x1ff5ac=_0x22f8bf[_0x5c0083(0x157)](_0x1fa33c)||[];_0x1ff5ac['push'](_0x496247),_0x22f8bf['set'](_0x1fa33c,_0x1ff5ac);}console[_0x5c0083(0x152)]('\x0a'+a95_0xfe08bb[_0x5c0083(0x133)](_0x55223e));if(_0x28266b[_0x5c0083(0x148)]>0x0){console[_0x5c0083(0x152)]('\x0a'+a95_0xfe08bb[_0x5c0083(0x159)](_0x5c0083(0x15a)));const _0x10d56a=[..._0x28266b[_0x5c0083(0x13f)]()][_0x5c0083(0x147)]((_0x5d2fa4,_0x3d3b89)=>_0x5d2fa4[0x0][_0x5c0083(0x165)](_0x3d3b89[0x0]));for(const [,_0x1ea507]of _0x10d56a){const _0x255f23=_0x1ea507['tableName']&&_0x1ea507['tableName']!==_0x1ea507[_0x5c0083(0x149)]?'\x20'+a95_0xfe08bb[_0x5c0083(0x159)]('('+_0x1ea507[_0x5c0083(0x14e)]+')'):'';console[_0x5c0083(0x152)]('\x20\x20'+a95_0xfe08bb[_0x5c0083(0x133)](_0x1ea507[_0x5c0083(0x149)])+_0x255f23);const _0x47f554=[..._0x1ea507[_0x5c0083(0x15e)]][_0x5c0083(0x147)]((_0x3c430d,_0x5c83c4)=>_0x3c430d[_0x5c0083(0x158)][_0x5c0083(0x165)](_0x5c83c4['name']));for(const _0x5b3d83 of _0x47f554){const _0xaf8da2=_0x5b3d83['parentColumn']&&_0x5b3d83[_0x5c0083(0x136)]!==_0x5b3d83['name']?'\x20'+a95_0xfe08bb[_0x5c0083(0x159)]('('+_0x5b3d83[_0x5c0083(0x136)]+')'):'';console[_0x5c0083(0x152)](_0x5c0083(0x143)+_0x5b3d83[_0x5c0083(0x158)]+_0xaf8da2+':\x20'+a95_0xfe08bb[_0x5c0083(0x151)](_0x5b3d83[_0x5c0083(0x15d)]));}}}if(_0x22f8bf[_0x5c0083(0x148)]>0x0){console[_0x5c0083(0x152)]('\x0a'+a95_0xfe08bb[_0x5c0083(0x159)](_0x5c0083(0x141)));const _0x32653a=[..._0x22f8bf[_0x5c0083(0x13f)]()][_0x5c0083(0x147)]((_0x972853,_0x2b9c30)=>_0x972853[0x0][_0x5c0083(0x165)](_0x2b9c30[0x0]));for(const [_0x19ebda,_0xf075fe]of _0x32653a){const _0x501048=_0xf075fe[0x0],_0x4a9ae4=_0x501048?.['parentTableName']||'';console[_0x5c0083(0x152)]('\x20\x20'+a95_0xfe08bb['bold'](_0x19ebda)+(_0x4a9ae4?'\x20'+a95_0xfe08bb['dim']('('+_0x4a9ae4+')'):''));const _0x3de6f1=[..._0xf075fe][_0x5c0083(0x147)]((_0xf257ce,_0x2bfb57)=>_0xf257ce[_0x5c0083(0x158)][_0x5c0083(0x165)](_0x2bfb57[_0x5c0083(0x158)]));for(const _0x2a3a31 of _0x3de6f1){const _0x2da5bc=_0x2a3a31[_0x5c0083(0x158)][_0x5c0083(0x14d)](_0x19ebda+'.')?_0x2a3a31[_0x5c0083(0x158)]['slice'](_0x19ebda['length']+0x1):_0x2a3a31[_0x5c0083(0x158)],_0x4e627f=_0x2a3a31[_0x5c0083(0x136)]&&_0x2a3a31[_0x5c0083(0x136)]!==_0x2da5bc?'\x20'+a95_0xfe08bb[_0x5c0083(0x159)]('('+_0x2a3a31['parentColumn']+')'):'';console[_0x5c0083(0x152)](_0x5c0083(0x143)+_0x2da5bc+_0x4e627f+':\x20'+a95_0xfe08bb[_0x5c0083(0x151)](_0x2a3a31['type']));}}}console['error']('');}
@@ -1 +1 @@
1
- function a96_0x7be7(_0x29a6ac,_0x4c7c60){_0x29a6ac=_0x29a6ac-0x188;const _0x291528=a96_0x2915();let _0x7be700=_0x291528[_0x29a6ac];return _0x7be700;}(function(_0x4864b1,_0x349738){const _0x4fe717=a96_0x7be7,_0x18e3cd=_0x4864b1();while(!![]){try{const _0xaa3fdc=parseInt(_0x4fe717(0x199))/0x1+-parseInt(_0x4fe717(0x18c))/0x2*(parseInt(_0x4fe717(0x192))/0x3)+-parseInt(_0x4fe717(0x18a))/0x4+-parseInt(_0x4fe717(0x193))/0x5+-parseInt(_0x4fe717(0x191))/0x6*(-parseInt(_0x4fe717(0x19b))/0x7)+-parseInt(_0x4fe717(0x198))/0x8*(-parseInt(_0x4fe717(0x19d))/0x9)+-parseInt(_0x4fe717(0x188))/0xa*(-parseInt(_0x4fe717(0x19c))/0xb);if(_0xaa3fdc===_0x349738)break;else _0x18e3cd['push'](_0x18e3cd['shift']());}catch(_0x195cbe){_0x18e3cd['push'](_0x18e3cd['shift']());}}}(a96_0x2915,0x54dfe));function a96_0x2915(){const _0x2cdc8e=['805755uNtatY','\x20has\x20insecure\x20permissions\x20(','dirname',').\x20','Warning:\x20','220840CIZbdb','168286RaPEEM','existsSync','50918RfkLli','22pZfuNZ','54zwJzcU','766910SZtmnp','chmodSync','2438548wuNDyy','toString','8VBKnVN','statSync','warn','writeFileSync','mkdirSync','540uTlEUG','17643dpwgFI'];a96_0x2915=function(){return _0x2cdc8e;};return a96_0x2915();}import*as a96_0x5427c4 from'node:fs';import*as a96_0x392d0e from'node:path';export function setSecureFilePermissions(_0xbc1380){const _0x24b09b=a96_0x7be7;try{a96_0x5427c4[_0x24b09b(0x189)](_0xbc1380,0x180);}catch{console[_0x24b09b(0x18e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xbc1380);}}export function setSecureDirectoryPermissions(_0x2e0925){const _0x3e01dd=a96_0x7be7;try{a96_0x5427c4[_0x3e01dd(0x189)](_0x2e0925,0x1c0);}catch{console[_0x3e01dd(0x18e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2e0925);}}export function createSecureDirectory(_0x32a41c){const _0x3bf82f=a96_0x7be7;!a96_0x5427c4[_0x3bf82f(0x19a)](_0x32a41c)&&(a96_0x5427c4[_0x3bf82f(0x190)](_0x32a41c,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x32a41c));}export function validateSecureFilePermissions(_0x189baa){const _0x1c7f4a=a96_0x7be7;try{const _0x3679be=a96_0x5427c4[_0x1c7f4a(0x18d)](_0x189baa),_0x14a8a6=_0x3679be['mode']&0x1ff,_0x2036a5=(_0x14a8a6&0x3f)!==0x0;if(_0x2036a5)return console[_0x1c7f4a(0x18e)](_0x1c7f4a(0x197)+_0x189baa+_0x1c7f4a(0x194)+_0x14a8a6[_0x1c7f4a(0x18b)](0x8)+_0x1c7f4a(0x196)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xd12734,_0x4aa7f5){const _0xd0ec95=a96_0x7be7,_0x548093=a96_0x392d0e[_0xd0ec95(0x195)](_0xd12734);createSecureDirectory(_0x548093),a96_0x5427c4[_0xd0ec95(0x18f)](_0xd12734,_0x4aa7f5,{'mode':0x180}),setSecureFilePermissions(_0xd12734);}
1
+ (function(_0x6d60bf,_0xb0b408){const _0x9a415a=a96_0x523b,_0xce59e7=_0x6d60bf();while(!![]){try{const _0x14fabf=-parseInt(_0x9a415a(0x87))/0x1*(-parseInt(_0x9a415a(0x7b))/0x2)+-parseInt(_0x9a415a(0x82))/0x3+-parseInt(_0x9a415a(0x85))/0x4*(parseInt(_0x9a415a(0x7a))/0x5)+-parseInt(_0x9a415a(0x83))/0x6+-parseInt(_0x9a415a(0x7c))/0x7*(-parseInt(_0x9a415a(0x7d))/0x8)+-parseInt(_0x9a415a(0x76))/0x9+-parseInt(_0x9a415a(0x79))/0xa*(-parseInt(_0x9a415a(0x84))/0xb);if(_0x14fabf===_0xb0b408)break;else _0xce59e7['push'](_0xce59e7['shift']());}catch(_0x388bf4){_0xce59e7['push'](_0xce59e7['shift']());}}}(a96_0x546e,0x21b20));import*as a96_0x2aa311 from'node:fs';import*as a96_0x38c6f7 from'node:path';export function setSecureFilePermissions(_0x3ac8dd){const _0x48bc4a=a96_0x523b;try{a96_0x2aa311[_0x48bc4a(0x77)](_0x3ac8dd,0x180);}catch{console[_0x48bc4a(0x88)](_0x48bc4a(0x7e)+_0x3ac8dd);}}export function setSecureDirectoryPermissions(_0x310e53){const _0x4293ab=a96_0x523b;try{a96_0x2aa311[_0x4293ab(0x77)](_0x310e53,0x1c0);}catch{console[_0x4293ab(0x88)](_0x4293ab(0x7e)+_0x310e53);}}function a96_0x546e(){const _0x3f6323=['6937LRQqXn','112NKNstr','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20',').\x20','\x20has\x20insecure\x20permissions\x20(','existsSync','476172uzqCdN','507738kghgYn','37411YkvtKA','136lRjtas','mode','107LvaJNG','warn','statSync','dirname','998109xrAotB','chmodSync','mkdirSync','1070yHlFAF','4045YWsFjd','2654fFaAOh'];a96_0x546e=function(){return _0x3f6323;};return a96_0x546e();}export function createSecureDirectory(_0xfc599d){const _0x22eb67=a96_0x523b;!a96_0x2aa311[_0x22eb67(0x81)](_0xfc599d)&&(a96_0x2aa311[_0x22eb67(0x78)](_0xfc599d,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xfc599d));}function a96_0x523b(_0x41b43a,_0x324896){_0x41b43a=_0x41b43a-0x74;const _0x546e2b=a96_0x546e();let _0x523b07=_0x546e2b[_0x41b43a];return _0x523b07;}export function validateSecureFilePermissions(_0x4a23ff){const _0x55537c=a96_0x523b;try{const _0x169f2d=a96_0x2aa311[_0x55537c(0x74)](_0x4a23ff),_0x301e44=_0x169f2d[_0x55537c(0x86)]&0x1ff,_0x1737dd=(_0x301e44&0x3f)!==0x0;if(_0x1737dd)return console['warn']('Warning:\x20'+_0x4a23ff+_0x55537c(0x80)+_0x301e44['toString'](0x8)+_0x55537c(0x7f)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x613f85,_0x34eba5){const _0x579d9d=a96_0x523b,_0x38c1e0=a96_0x38c6f7[_0x579d9d(0x75)](_0x613f85);createSecureDirectory(_0x38c1e0),a96_0x2aa311['writeFileSync'](_0x613f85,_0x34eba5,{'mode':0x180}),setSecureFilePermissions(_0x613f85);}
@@ -1 +1 @@
1
- (function(_0x6184a,_0x27a39f){const _0x1afa06=a97_0x46d9,_0x2bfd9a=_0x6184a();while(!![]){try{const _0x1a97ba=-parseInt(_0x1afa06(0xe1))/0x1*(parseInt(_0x1afa06(0xe3))/0x2)+-parseInt(_0x1afa06(0xe7))/0x3+-parseInt(_0x1afa06(0xdd))/0x4*(parseInt(_0x1afa06(0xe2))/0x5)+-parseInt(_0x1afa06(0xe0))/0x6*(-parseInt(_0x1afa06(0xed))/0x7)+parseInt(_0x1afa06(0xec))/0x8*(-parseInt(_0x1afa06(0xdf))/0x9)+parseInt(_0x1afa06(0xe8))/0xa*(parseInt(_0x1afa06(0xe4))/0xb)+parseInt(_0x1afa06(0xe9))/0xc*(parseInt(_0x1afa06(0xeb))/0xd);if(_0x1a97ba===_0x27a39f)break;else _0x2bfd9a['push'](_0x2bfd9a['shift']());}catch(_0x1cdb2e){_0x2bfd9a['push'](_0x2bfd9a['shift']());}}}(a97_0x456f,0x8e032));function a97_0x456f(){const _0x409ef8=['jsonl','json','1631949pZSDSK','20tDhXCM','4047852lMQMGv','tab','39DzBLPh','24zytTLh','7595462dtdxpd','text','pop','1631112Zywtth','tsv','203085xyqLYW','6ZOXhKy','67iSiuVW','10JKCqYB','33962xhnzhU','5772877WzIyVs'];a97_0x456f=function(){return _0x409ef8;};return a97_0x456f();}export function detectFormatFromExtension(_0xdc93d3){const _0xffe5e5=a97_0x46d9,_0x2c84a1=_0xdc93d3['toLowerCase']()['split']('.')[_0xffe5e5(0xdc)]();switch(_0x2c84a1){case _0xffe5e5(0xe6):return _0xffe5e5(0xe6);case _0xffe5e5(0xe5):return'jsonl';case _0xffe5e5(0xde):case _0xffe5e5(0xea):return _0xffe5e5(0xde);case'txt':case _0xffe5e5(0xdb):return'table';default:return undefined;}}function a97_0x46d9(_0x27f573,_0x444d5a){_0x27f573=_0x27f573-0xdb;const _0x456f80=a97_0x456f();let _0x46d9e2=_0x456f80[_0x27f573];return _0x46d9e2;}export function resolveOutputFormat(_0x2bf065,_0x11bc11,_0x2968db){if(_0x2bf065)return _0x2bf065;if(_0x11bc11){const _0xa09b9b=detectFormatFromExtension(_0x11bc11);if(_0xa09b9b)return _0xa09b9b;}return _0x2968db;}
1
+ function a97_0x2043(_0x3a382b,_0x252e0d){_0x3a382b=_0x3a382b-0x7e;const _0x207ea2=a97_0x207e();let _0x2043f1=_0x207ea2[_0x3a382b];return _0x2043f1;}(function(_0xcbcfb8,_0x4cd7ce){const _0x1e798b=a97_0x2043,_0x836a11=_0xcbcfb8();while(!![]){try{const _0x4e85a9=parseInt(_0x1e798b(0x81))/0x1+parseInt(_0x1e798b(0x8d))/0x2+parseInt(_0x1e798b(0x83))/0x3*(parseInt(_0x1e798b(0x8f))/0x4)+parseInt(_0x1e798b(0x80))/0x5*(-parseInt(_0x1e798b(0x8c))/0x6)+-parseInt(_0x1e798b(0x7f))/0x7+parseInt(_0x1e798b(0x86))/0x8*(parseInt(_0x1e798b(0x82))/0x9)+parseInt(_0x1e798b(0x84))/0xa;if(_0x4e85a9===_0x4cd7ce)break;else _0x836a11['push'](_0x836a11['shift']());}catch(_0x274916){_0x836a11['push'](_0x836a11['shift']());}}}(a97_0x207e,0xb0ffb));export function detectFormatFromExtension(_0x559f46){const _0x49c929=a97_0x2043,_0x4e4850=_0x559f46[_0x49c929(0x91)]()[_0x49c929(0x7e)]('.')[_0x49c929(0x87)]();switch(_0x4e4850){case _0x49c929(0x88):return _0x49c929(0x88);case _0x49c929(0x89):return _0x49c929(0x89);case _0x49c929(0x90):case _0x49c929(0x8b):return _0x49c929(0x90);case _0x49c929(0x85):case _0x49c929(0x8e):return _0x49c929(0x8a);default:return undefined;}}export function resolveOutputFormat(_0xd84d0,_0x5a6727,_0x464172){if(_0xd84d0)return _0xd84d0;if(_0x5a6727){const _0x356a66=detectFormatFromExtension(_0x5a6727);if(_0x356a66)return _0x356a66;}return _0x464172;}function a97_0x207e(){const _0x380cf5=['657417XDmZam','9YLNxZh','18rymItZ','10472750DsFnuS','txt','948368aWANKH','pop','json','jsonl','table','tab','12WemQvm','1419872DhXXUZ','text','222736SCsaDK','tsv','toLowerCase','split','8380925qrEDgp','2362540GNEKUJ'];a97_0x207e=function(){return _0x380cf5;};return a97_0x207e();}
@@ -1 +1 @@
1
- (function(_0xd696e0,_0x1a769d){const _0x46c3ab=a98_0xa888,_0x1d1bf8=_0xd696e0();while(!![]){try{const _0x29f6a4=parseInt(_0x46c3ab(0xf0))/0x1*(-parseInt(_0x46c3ab(0x10c))/0x2)+parseInt(_0x46c3ab(0x118))/0x3*(parseInt(_0x46c3ab(0x11f))/0x4)+-parseInt(_0x46c3ab(0x10a))/0x5*(-parseInt(_0x46c3ab(0x113))/0x6)+parseInt(_0x46c3ab(0x105))/0x7+-parseInt(_0x46c3ab(0x11c))/0x8*(parseInt(_0x46c3ab(0x108))/0x9)+parseInt(_0x46c3ab(0xe7))/0xa+-parseInt(_0x46c3ab(0xf5))/0xb*(parseInt(_0x46c3ab(0x106))/0xc);if(_0x29f6a4===_0x1a769d)break;else _0x1d1bf8['push'](_0x1d1bf8['shift']());}catch(_0x144462){_0x1d1bf8['push'](_0x1d1bf8['shift']());}}}(a98_0xa83b,0xa5de6));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a98_0xa888(_0x32630f,_0x4d40f5){_0x32630f=_0x32630f-0xe6;const _0xa83bec=a98_0xa83b();let _0xa88830=_0xa83bec[_0x32630f];return _0xa88830;}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x56f779=a98_0xa888;return process[_0x56f779(0x101)][_0x56f779(0x110)]||Infinity;}export function formatAsTable(_0x941925,_0x41278f=DEFAULT_MAX_DISPLAY_ROWS,_0x28c29e=![],_0x500b76={}){const _0x21da9b=a98_0xa888;if(_0x941925['data'][_0x21da9b(0xea)]===0x0)return'No\x20rows\x20returned';const _0x424818=_0x941925['columns'][_0x21da9b(0xee)](_0x4eeeda=>_0x4eeeda[_0x21da9b(0xf8)]),_0x4445d2=_0x941925['columns'][_0x21da9b(0xee)](_0x5e6662=>simplifyType(_0x5e6662[_0x21da9b(0xf4)])),_0x3a1c4a=_0x941925[_0x21da9b(0xfe)][_0x21da9b(0xfd)](0x0,_0x41278f),_0x56faf5=_0x941925[_0x21da9b(0xfe)][_0x21da9b(0xea)],_0x4b123b=_0x56faf5>_0x41278f,_0xdba5ae=[],_0x57f943=getTerminalWidth(),_0x2ec4c2=_0x57f943!==Infinity,_0x2515be=0x32;let _0x4dce8a=_0x424818[_0x21da9b(0xee)]((_0xd13b93,_0x37ed63)=>{const _0x5ac77b=_0x21da9b,_0x1f7940=stringWidth(_0x4445d2[_0x37ed63]),_0x1bfec4=Math[_0x5ac77b(0xf3)](..._0x3a1c4a[_0x5ac77b(0xee)](_0x4609c0=>{const _0x569927=_0x4609c0[_0xd13b93];return stringWidth(formatValue(_0x569927));})),_0x53cf0a=Math[_0x5ac77b(0xf3)](stringWidth(_0xd13b93),_0x1f7940,_0x1bfec4);return _0x28c29e?_0x53cf0a:Math['min'](_0x53cf0a,_0x2515be);});if(_0x2ec4c2&&!_0x28c29e&&_0x424818['length']>0x0){const _0x4550e7=_0x37eb99=>{let _0x4db70c=0x1;for(const _0x4fb3b0 of _0x37eb99){_0x4db70c+=_0x4fb3b0+0x3;}return _0x4db70c+0x1;};let _0x12011c=_0x4550e7(_0x4dce8a);if(_0x12011c>_0x57f943){const _0x195f62=0x3;for(let _0x47f9a8=_0x4dce8a[_0x21da9b(0xea)]-0x1;_0x47f9a8>=0x0;_0x47f9a8--){_0x12011c=_0x4550e7(_0x4dce8a);if(_0x12011c<=_0x57f943)break;const _0xfa5e4e=_0x4dce8a[_0x47f9a8],_0xdeec1b=_0x12011c-_0x57f943,_0x2a4ef3=_0xfa5e4e-_0x195f62,_0x5f2f14=Math[_0x21da9b(0x116)](_0xdeec1b,_0x2a4ef3);_0x5f2f14>0x0&&(_0x4dce8a[_0x47f9a8]=_0xfa5e4e-_0x5f2f14);}}}const _0x3026db=_0x424818,_0x3eb1af=_0x4445d2,_0x4b8d2d=_0x4dce8a,_0x1cb2db=_0x4dce8a;_0xdba5ae[_0x21da9b(0xef)](colorBorder('┌'+_0x1cb2db['map'](_0x2cffba=>'─'['repeat'](_0x2cffba+0x2))[_0x21da9b(0xf6)]('┬')+'┐',_0x500b76));const _0x2a45fa=_0x3026db[_0x21da9b(0xee)]((_0x44b59e,_0x1b7aa5)=>centerAlign(_0x44b59e,_0x4b8d2d[_0x1b7aa5]));_0xdba5ae[_0x21da9b(0xef)](colorBorder('│',_0x500b76)+'\x20'+_0x2a45fa[_0x21da9b(0xf6)]('\x20'+colorBorder('│',_0x500b76)+'\x20')+'\x20'+colorBorder('│',_0x500b76));const _0x19def9=_0x3eb1af[_0x21da9b(0xee)]((_0x4c73f6,_0x3c19b2)=>colorType(centerAlign(_0x4c73f6,_0x4b8d2d[_0x3c19b2]),_0x500b76));_0xdba5ae['push'](colorBorder('│',_0x500b76)+'\x20'+_0x19def9[_0x21da9b(0xf6)]('\x20'+colorBorder('│',_0x500b76)+'\x20')+'\x20'+colorBorder('│',_0x500b76)),_0xdba5ae[_0x21da9b(0xef)](colorBorder('├'+_0x1cb2db['map'](_0x5404c0=>'─'['repeat'](_0x5404c0+0x2))[_0x21da9b(0xf6)]('┼')+'┤',_0x500b76));const _0x374a84=(_0x2b5dc1,_0x1d61e2)=>{const _0x337ae3=_0x21da9b,_0x2d1d99=stringWidth(_0x2b5dc1);if(_0x2d1d99<=_0x1d61e2)return _0x2b5dc1;let _0x3a0ccf=_0x2b5dc1;while(stringWidth(_0x3a0ccf+'…')>_0x1d61e2&&_0x3a0ccf[_0x337ae3(0xea)]>0x0){_0x3a0ccf=_0x3a0ccf['slice'](0x0,-0x1);}return _0x3a0ccf+'…';};_0x3a1c4a[_0x21da9b(0xf1)](_0x550801=>{const _0x200000=_0x21da9b,_0x469cb8=_0x424818[_0x200000(0xee)]((_0x146648,_0x3a3e77)=>{const _0x15cb86=_0x200000,_0x3f709b=_0x550801[_0x146648],_0x115050=formatValue(_0x3f709b),_0x5c2426=_0x4b8d2d[_0x3a3e77],_0x1fba33=_0x374a84(_0x115050,_0x5c2426),_0x13574a=typeof _0x3f709b===_0x15cb86(0x11d)||typeof _0x3f709b==='string'&&/^-?\d+$/[_0x15cb86(0xe8)](_0x3f709b);return _0x13574a?padStart(_0x1fba33,_0x5c2426):padEnd(_0x1fba33,_0x5c2426);});_0xdba5ae[_0x200000(0xef)](colorBorder('│',_0x500b76)+'\x20'+_0x469cb8[_0x200000(0xf6)]('\x20'+colorBorder('│',_0x500b76)+'\x20')+'\x20'+colorBorder('│',_0x500b76));});const _0x4f1ae1=_0x1cb2db[_0x21da9b(0x102)]((_0x280bdc,_0x3fa857)=>_0x280bdc+_0x3fa857+0x3,-0x1);_0xdba5ae[_0x21da9b(0xef)](colorBorder('├'+_0x1cb2db[_0x21da9b(0xee)](_0x1ebbf8=>'─'['repeat'](_0x1ebbf8+0x2))[_0x21da9b(0xf6)]('┴')+'┤',_0x500b76));let _0x42cfa7;_0x4b123b?_0x42cfa7=_0x56faf5+_0x21da9b(0x104)+_0x41278f+_0x21da9b(0x10b):_0x42cfa7=_0x56faf5+_0x21da9b(0x109)+(_0x56faf5===0x1?'':'s');const _0x1ade3c=_0x42cfa7[_0x21da9b(0x11a)](_0x4f1ae1-0x2);return _0xdba5ae[_0x21da9b(0xef)](colorBorder('│',_0x500b76)+'\x20'+_0x1ade3c+'\x20'+colorBorder('│',_0x500b76)),_0xdba5ae[_0x21da9b(0xef)](colorBorder('└'+'─'[_0x21da9b(0xf7)](_0x4f1ae1)+'┘',_0x500b76)),_0xdba5ae[_0x21da9b(0xf6)]('\x0a');}function simplifyType(_0x37bb34){const _0x40c005=a98_0xa888,_0x5e690a={'varchar':_0x40c005(0xfa),'bigint':_0x40c005(0x114),'integer':_0x40c005(0x107),'double':_0x40c005(0xe6),'boolean':_0x40c005(0x10f),'date':_0x40c005(0x123),'timestamp':_0x40c005(0xf2),'array':_0x40c005(0x100),'map':'map','row':_0x40c005(0x119)},_0x2ae93f=_0x37bb34[_0x40c005(0x121)]();for(const [_0x6bc60d,_0x1a5cb5]of Object[_0x40c005(0x115)](_0x5e690a)){if(_0x2ae93f[_0x40c005(0x117)](_0x6bc60d))return _0x1a5cb5;}return _0x37bb34[_0x40c005(0xea)]>0xa?_0x37bb34['substring'](0x0,0xa):_0x37bb34;}export function formatAsJSON(_0x20fcef,_0x1fa5a3={}){const _0x502df1=a98_0xa888;if(_0x20fcef[_0x502df1(0xfe)][_0x502df1(0xea)]===0x0)return'[]';if(shouldUseColor(_0x1fa5a3))return colorizeJSON(_0x20fcef['data'],_0x1fa5a3);const _0x22f5c2=_0x20fcef['data'][_0x502df1(0xee)](_0x53abe2=>'\x20\x20'+JSON['stringify'](_0x53abe2));return'[\x0a'+_0x22f5c2[_0x502df1(0xf6)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x34c5fd,_0x4c48db={}){const _0x463595=a98_0xa888;if(_0x34c5fd[_0x463595(0xfe)][_0x463595(0xea)]===0x0)return'';if(shouldUseColor(_0x4c48db))return _0x34c5fd['data'][_0x463595(0xee)](_0x2efb5f=>colorizeJSONCompact(_0x2efb5f,_0x4c48db))[_0x463595(0xf6)]('\x0a');return _0x34c5fd['data'][_0x463595(0xee)](_0x3ad785=>JSON[_0x463595(0xeb)](_0x3ad785))[_0x463595(0xf6)]('\x0a');}export function formatAsTSV(_0x581bc8){const _0x8d2e2c=a98_0xa888;if(_0x581bc8[_0x8d2e2c(0xfe)][_0x8d2e2c(0xea)]===0x0)return'';const _0x55fa5b=[],_0x89d821=_0x581bc8['columns'][_0x8d2e2c(0xee)](_0xc20859=>_0xc20859['name']);return _0x55fa5b[_0x8d2e2c(0xef)](_0x89d821[_0x8d2e2c(0xf6)]('\x09')),_0x581bc8[_0x8d2e2c(0xfe)]['forEach'](_0x3515c2=>{const _0x58b371=_0x8d2e2c,_0x2ec8ab=_0x89d821[_0x58b371(0xee)](_0x30f54b=>{const _0x5ae53a=_0x3515c2[_0x30f54b];return formatValueForTSV(_0x5ae53a);});_0x55fa5b['push'](_0x2ec8ab[_0x58b371(0xf6)]('\x09'));}),_0x55fa5b[_0x8d2e2c(0xf6)]('\x0a');}function formatValue(_0x56ac48){const _0x3c9ae3=a98_0xa888;if(_0x56ac48===null||_0x56ac48===undefined)return'';if(typeof _0x56ac48===_0x3c9ae3(0xfa)){const _0x4ff9ad=_0x56ac48[_0x3c9ae3(0x11e)](/\n/g,'\x5cn')[_0x3c9ae3(0x11e)](/\r/g,'\x5cr')[_0x3c9ae3(0x11e)](/\t/g,'\x5ct');return _0x4ff9ad;}if(typeof _0x56ac48===_0x3c9ae3(0x11d))return String(_0x56ac48);if(typeof _0x56ac48===_0x3c9ae3(0x10d))return _0x56ac48?_0x3c9ae3(0xf9):_0x3c9ae3(0xfc);if(_0x56ac48 instanceof Date)return _0x56ac48['toISOString']();if(typeof _0x56ac48===_0x3c9ae3(0x112))return JSON[_0x3c9ae3(0xeb)](_0x56ac48);return String(_0x56ac48);}function a98_0xa83b(){const _0x595563=['columns','json','object','5856EKdkIU','long','entries','min','startsWith','3HzIlff','row','padEnd','table','8OLLnwC','number','replace','3124388ZbDaiE','pow','toLowerCase','floor','date','double','8655660OclgyP','test','toFixed','length','stringify','0\x20B','jsonl','map','push','1hnvWZm','forEach','timestamp','max','type','44beMTTV','join','repeat','name','true','string','toString','false','slice','data','toISOString','array','stdout','reduce','log','\x20rows\x20(','7409178WUYfmb','8434584rhCqwm','int','1143459GGUkOs','\x20row','4985GuXjTD','\x20shown)','120424jpOHXR','boolean','tsv','bool'];a98_0xa83b=function(){return _0x595563;};return a98_0xa83b();}function formatValueForTSV(_0x5eb7c9){const _0x51a38d=a98_0xa888;if(_0x5eb7c9===null||_0x5eb7c9===undefined)return'';if(typeof _0x5eb7c9===_0x51a38d(0xfa))return _0x5eb7c9['replace'](/\t/g,'\x5ct')[_0x51a38d(0x11e)](/\n/g,'\x5cn');if(typeof _0x5eb7c9===_0x51a38d(0x11d)||typeof _0x5eb7c9==='boolean')return String(_0x5eb7c9);if(_0x5eb7c9 instanceof Date)return _0x5eb7c9[_0x51a38d(0xff)]();if(typeof _0x5eb7c9===_0x51a38d(0x112))return JSON[_0x51a38d(0xeb)](_0x5eb7c9);return String(_0x5eb7c9);}export function formatQueryResult(_0x195af6,_0x34338d){const _0x3405fd=a98_0xa888;switch(_0x34338d){case _0x3405fd(0x11b):return formatAsTable(_0x195af6);case _0x3405fd(0x111):return formatAsJSON(_0x195af6);case _0x3405fd(0xed):return formatAsJSONL(_0x195af6);case _0x3405fd(0x10e):return formatAsTSV(_0x195af6);default:return formatAsJSON(_0x195af6);}}export function formatBytes(_0x4310ee){const _0x1c6a91=a98_0xa888;if(_0x4310ee===0x0)return _0x1c6a91(0xec);const _0x3a6660=['B','KB','MB','GB','TB'],_0x485ebd=0x400,_0x2d133b=Math[_0x1c6a91(0x122)](Math[_0x1c6a91(0x103)](_0x4310ee)/Math['log'](_0x485ebd)),_0x263f3e=_0x4310ee/Math[_0x1c6a91(0x120)](_0x485ebd,_0x2d133b),_0x102eb1=_0x263f3e>=0xa?0x1:0x2;return _0x263f3e[_0x1c6a91(0xe9)](_0x102eb1)+'\x20'+_0x3a6660[_0x2d133b];}export function formatRows(_0x3deabb){const _0x15f926=a98_0xa888;if(_0x3deabb==null)return'-';if(_0x3deabb===0x0)return'0';if(_0x3deabb<0x3e8)return _0x3deabb[_0x15f926(0xfb)]();const _0x29385c=['','K','M','B','T'],_0x8cd05d=0x3e8,_0x1850a3=Math[_0x15f926(0x122)](Math[_0x15f926(0x103)](_0x3deabb)/Math[_0x15f926(0x103)](_0x8cd05d)),_0x1817a0=_0x3deabb/Math[_0x15f926(0x120)](_0x8cd05d,_0x1850a3),_0x53b537=_0x1817a0>=0xa?0x1:0x2;return''+_0x1817a0['toFixed'](_0x53b537)+_0x29385c[_0x1850a3];}
1
+ (function(_0x205f5d,_0x3de223){const _0x1d8a44=a98_0x28a2,_0x4fef73=_0x205f5d();while(!![]){try{const _0x4449ba=parseInt(_0x1d8a44(0xa1))/0x1*(-parseInt(_0x1d8a44(0xa0))/0x2)+-parseInt(_0x1d8a44(0x9f))/0x3+parseInt(_0x1d8a44(0xa4))/0x4*(parseInt(_0x1d8a44(0x98))/0x5)+-parseInt(_0x1d8a44(0xaf))/0x6+-parseInt(_0x1d8a44(0x9d))/0x7+-parseInt(_0x1d8a44(0xb0))/0x8*(-parseInt(_0x1d8a44(0x87))/0x9)+parseInt(_0x1d8a44(0x83))/0xa;if(_0x4449ba===_0x3de223)break;else _0x4fef73['push'](_0x4fef73['shift']());}catch(_0x376712){_0x4fef73['push'](_0x4fef73['shift']());}}}(a98_0x47a9,0x6c9d0));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x4868b0=a98_0x28a2;return process[_0x4868b0(0x9b)]['columns']||Infinity;}export function formatAsTable(_0x5a0865,_0x4e9e1b=DEFAULT_MAX_DISPLAY_ROWS,_0x2735ba=![],_0x539b3d={}){const _0x36fe54=a98_0x28a2;if(_0x5a0865[_0x36fe54(0x7d)]['length']===0x0)return _0x36fe54(0x95);const _0x161757=_0x5a0865['columns'][_0x36fe54(0xb1)](_0x455b42=>_0x455b42[_0x36fe54(0x7e)]),_0x5b179c=_0x5a0865['columns'][_0x36fe54(0xb1)](_0x42216f=>simplifyType(_0x42216f['type'])),_0xaa1599=_0x5a0865[_0x36fe54(0x7d)][_0x36fe54(0xa5)](0x0,_0x4e9e1b),_0x5e123a=_0x5a0865[_0x36fe54(0x7d)][_0x36fe54(0xa9)],_0x184e91=_0x5e123a>_0x4e9e1b,_0x23cb55=[],_0x12c7e6=getTerminalWidth(),_0x2475f5=_0x12c7e6!==Infinity,_0x5b958f=0x32;let _0x394b25=_0x161757['map']((_0x336754,_0x3aa83b)=>{const _0x1eabaa=_0x36fe54,_0x1f2ec6=stringWidth(_0x5b179c[_0x3aa83b]),_0x3cbdf2=Math[_0x1eabaa(0x7f)](..._0xaa1599[_0x1eabaa(0xb1)](_0x3c9ddf=>{const _0x4a3940=_0x3c9ddf[_0x336754];return stringWidth(formatValue(_0x4a3940));})),_0x504eeb=Math[_0x1eabaa(0x7f)](stringWidth(_0x336754),_0x1f2ec6,_0x3cbdf2);return _0x2735ba?_0x504eeb:Math['min'](_0x504eeb,_0x5b958f);});if(_0x2475f5&&!_0x2735ba&&_0x161757[_0x36fe54(0xa9)]>0x0){const _0x314245=_0x1db225=>{let _0xd53eb7=0x1;for(const _0x296f98 of _0x1db225){_0xd53eb7+=_0x296f98+0x3;}return _0xd53eb7+0x1;};let _0x19666c=_0x314245(_0x394b25);if(_0x19666c>_0x12c7e6){const _0x5a9ad4=0x3;for(let _0x1fc34d=_0x394b25[_0x36fe54(0xa9)]-0x1;_0x1fc34d>=0x0;_0x1fc34d--){_0x19666c=_0x314245(_0x394b25);if(_0x19666c<=_0x12c7e6)break;const _0x28c1df=_0x394b25[_0x1fc34d],_0x231f19=_0x19666c-_0x12c7e6,_0x1d9706=_0x28c1df-_0x5a9ad4,_0x2b1e61=Math[_0x36fe54(0x82)](_0x231f19,_0x1d9706);_0x2b1e61>0x0&&(_0x394b25[_0x1fc34d]=_0x28c1df-_0x2b1e61);}}}const _0x505e66=_0x161757,_0x546965=_0x5b179c,_0x37d987=_0x394b25,_0x3be2b1=_0x394b25;_0x23cb55[_0x36fe54(0xac)](colorBorder('┌'+_0x3be2b1[_0x36fe54(0xb1)](_0xde282a=>'─'[_0x36fe54(0x97)](_0xde282a+0x2))[_0x36fe54(0x90)]('┬')+'┐',_0x539b3d));const _0x5011e6=_0x505e66[_0x36fe54(0xb1)]((_0x26d6d3,_0x49d892)=>centerAlign(_0x26d6d3,_0x37d987[_0x49d892]));_0x23cb55['push'](colorBorder('│',_0x539b3d)+'\x20'+_0x5011e6['join']('\x20'+colorBorder('│',_0x539b3d)+'\x20')+'\x20'+colorBorder('│',_0x539b3d));const _0x587b23=_0x546965[_0x36fe54(0xb1)]((_0x3f079c,_0xcd216d)=>colorType(centerAlign(_0x3f079c,_0x37d987[_0xcd216d]),_0x539b3d));_0x23cb55[_0x36fe54(0xac)](colorBorder('│',_0x539b3d)+'\x20'+_0x587b23['join']('\x20'+colorBorder('│',_0x539b3d)+'\x20')+'\x20'+colorBorder('│',_0x539b3d)),_0x23cb55[_0x36fe54(0xac)](colorBorder('├'+_0x3be2b1[_0x36fe54(0xb1)](_0x428d55=>'─'[_0x36fe54(0x97)](_0x428d55+0x2))[_0x36fe54(0x90)]('┼')+'┤',_0x539b3d));const _0x9c75e5=(_0x1ecf64,_0x30ff60)=>{const _0xb8791a=_0x36fe54,_0x5926c7=stringWidth(_0x1ecf64);if(_0x5926c7<=_0x30ff60)return _0x1ecf64;let _0x2eb564=_0x1ecf64;while(stringWidth(_0x2eb564+'…')>_0x30ff60&&_0x2eb564[_0xb8791a(0xa9)]>0x0){_0x2eb564=_0x2eb564[_0xb8791a(0xa5)](0x0,-0x1);}return _0x2eb564+'…';};_0xaa1599['forEach'](_0x173892=>{const _0x3dae99=_0x36fe54,_0x594ec8=_0x161757[_0x3dae99(0xb1)]((_0x8503b3,_0x37ec7a)=>{const _0x13d1a4=_0x3dae99,_0x3cfb66=_0x173892[_0x8503b3],_0x1269c1=formatValue(_0x3cfb66),_0xfa174a=_0x37d987[_0x37ec7a],_0x4f54c3=_0x9c75e5(_0x1269c1,_0xfa174a),_0x168307=typeof _0x3cfb66===_0x13d1a4(0x9a)||typeof _0x3cfb66===_0x13d1a4(0x86)&&/^-?\d+$/[_0x13d1a4(0x8f)](_0x3cfb66);return _0x168307?padStart(_0x4f54c3,_0xfa174a):padEnd(_0x4f54c3,_0xfa174a);});_0x23cb55[_0x3dae99(0xac)](colorBorder('│',_0x539b3d)+'\x20'+_0x594ec8[_0x3dae99(0x90)]('\x20'+colorBorder('│',_0x539b3d)+'\x20')+'\x20'+colorBorder('│',_0x539b3d));});const _0x584568=_0x3be2b1[_0x36fe54(0xa2)]((_0x176df5,_0x4c1c08)=>_0x176df5+_0x4c1c08+0x3,-0x1);_0x23cb55[_0x36fe54(0xac)](colorBorder('├'+_0x3be2b1[_0x36fe54(0xb1)](_0x4f96d5=>'─'[_0x36fe54(0x97)](_0x4f96d5+0x2))[_0x36fe54(0x90)]('┴')+'┤',_0x539b3d));let _0x1996d2;_0x184e91?_0x1996d2=_0x5e123a+_0x36fe54(0x89)+_0x4e9e1b+_0x36fe54(0x9e):_0x1996d2=_0x5e123a+_0x36fe54(0xab)+(_0x5e123a===0x1?'':'s');const _0x55b465=_0x1996d2[_0x36fe54(0xa6)](_0x584568-0x2);return _0x23cb55[_0x36fe54(0xac)](colorBorder('│',_0x539b3d)+'\x20'+_0x55b465+'\x20'+colorBorder('│',_0x539b3d)),_0x23cb55['push'](colorBorder('└'+'─'[_0x36fe54(0x97)](_0x584568)+'┘',_0x539b3d)),_0x23cb55['join']('\x0a');}function simplifyType(_0xdeaab){const _0x29685c=a98_0x28a2,_0x50f4e8={'varchar':'string','bigint':_0x29685c(0x8d),'integer':'int','double':_0x29685c(0x93),'boolean':_0x29685c(0x94),'date':_0x29685c(0x8e),'timestamp':_0x29685c(0x9c),'array':_0x29685c(0x80),'map':_0x29685c(0xb1),'row':'row'},_0x19ef49=_0xdeaab[_0x29685c(0x92)]();for(const [_0x16750f,_0x725502]of Object[_0x29685c(0x88)](_0x50f4e8)){if(_0x19ef49[_0x29685c(0x8b)](_0x16750f))return _0x725502;}return _0xdeaab['length']>0xa?_0xdeaab['substring'](0x0,0xa):_0xdeaab;}export function formatAsJSON(_0x45fd33,_0x243301={}){const _0x3ee87a=a98_0x28a2;if(_0x45fd33[_0x3ee87a(0x7d)]['length']===0x0)return'[]';if(shouldUseColor(_0x243301))return colorizeJSON(_0x45fd33[_0x3ee87a(0x7d)],_0x243301);const _0x3ad2e2=_0x45fd33[_0x3ee87a(0x7d)]['map'](_0x2d41b8=>'\x20\x20'+JSON[_0x3ee87a(0x84)](_0x2d41b8));return'[\x0a'+_0x3ad2e2[_0x3ee87a(0x90)](',\x0a')+'\x0a]';}function a98_0x47a9(){const _0x314595=['stringify','log','string','99ngEbPm','entries','\x20rows\x20(','floor','startsWith','replace','long','date','test','join','false','toLowerCase','double','bool','No\x20rows\x20returned','pow','repeat','33340haDmsP','0\x20B','number','stdout','timestamp','4398793svDwfl','\x20shown)','209820KkSlpI','2FJjkPY','33347LQDOzV','reduce','boolean','76npSmQl','slice','padEnd','json','toFixed','length','table','\x20row','push','object','toISOString','195390djqIAw','532952rMOYfy','map','data','name','max','array','jsonl','min','3496300GwdRXa'];a98_0x47a9=function(){return _0x314595;};return a98_0x47a9();}export function formatAsJSONL(_0x45fe90,_0x3bfab8={}){const _0x22f99f=a98_0x28a2;if(_0x45fe90[_0x22f99f(0x7d)]['length']===0x0)return'';if(shouldUseColor(_0x3bfab8))return _0x45fe90['data'][_0x22f99f(0xb1)](_0x3bae08=>colorizeJSONCompact(_0x3bae08,_0x3bfab8))[_0x22f99f(0x90)]('\x0a');return _0x45fe90['data']['map'](_0x5f5510=>JSON[_0x22f99f(0x84)](_0x5f5510))[_0x22f99f(0x90)]('\x0a');}export function formatAsTSV(_0x289ce8){const _0x1ab34d=a98_0x28a2;if(_0x289ce8[_0x1ab34d(0x7d)][_0x1ab34d(0xa9)]===0x0)return'';const _0x42bdba=[],_0x151150=_0x289ce8['columns'][_0x1ab34d(0xb1)](_0x233bf=>_0x233bf[_0x1ab34d(0x7e)]);return _0x42bdba['push'](_0x151150[_0x1ab34d(0x90)]('\x09')),_0x289ce8[_0x1ab34d(0x7d)]['forEach'](_0x5b03e3=>{const _0x35ec9b=_0x1ab34d,_0xe15b6=_0x151150[_0x35ec9b(0xb1)](_0x336f95=>{const _0x11d8be=_0x5b03e3[_0x336f95];return formatValueForTSV(_0x11d8be);});_0x42bdba['push'](_0xe15b6[_0x35ec9b(0x90)]('\x09'));}),_0x42bdba[_0x1ab34d(0x90)]('\x0a');}function a98_0x28a2(_0x3afbe4,_0x13a5f6){_0x3afbe4=_0x3afbe4-0x7d;const _0x47a9c4=a98_0x47a9();let _0x28a213=_0x47a9c4[_0x3afbe4];return _0x28a213;}function formatValue(_0x2108a4){const _0x27a30f=a98_0x28a2;if(_0x2108a4===null||_0x2108a4===undefined)return'';if(typeof _0x2108a4==='string'){const _0x516897=_0x2108a4['replace'](/\n/g,'\x5cn')[_0x27a30f(0x8c)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x516897;}if(typeof _0x2108a4===_0x27a30f(0x9a))return String(_0x2108a4);if(typeof _0x2108a4===_0x27a30f(0xa3))return _0x2108a4?'true':_0x27a30f(0x91);if(_0x2108a4 instanceof Date)return _0x2108a4['toISOString']();if(typeof _0x2108a4===_0x27a30f(0xad))return JSON[_0x27a30f(0x84)](_0x2108a4);return String(_0x2108a4);}function formatValueForTSV(_0x2ad78a){const _0x283ef1=a98_0x28a2;if(_0x2ad78a===null||_0x2ad78a===undefined)return'';if(typeof _0x2ad78a===_0x283ef1(0x86))return _0x2ad78a[_0x283ef1(0x8c)](/\t/g,'\x5ct')[_0x283ef1(0x8c)](/\n/g,'\x5cn');if(typeof _0x2ad78a===_0x283ef1(0x9a)||typeof _0x2ad78a===_0x283ef1(0xa3))return String(_0x2ad78a);if(_0x2ad78a instanceof Date)return _0x2ad78a[_0x283ef1(0xae)]();if(typeof _0x2ad78a===_0x283ef1(0xad))return JSON[_0x283ef1(0x84)](_0x2ad78a);return String(_0x2ad78a);}export function formatQueryResult(_0x3afe94,_0x9d3575){const _0x45cbc6=a98_0x28a2;switch(_0x9d3575){case _0x45cbc6(0xaa):return formatAsTable(_0x3afe94);case _0x45cbc6(0xa7):return formatAsJSON(_0x3afe94);case _0x45cbc6(0x81):return formatAsJSONL(_0x3afe94);case'tsv':return formatAsTSV(_0x3afe94);default:return formatAsJSON(_0x3afe94);}}export function formatBytes(_0x4596fe){const _0x3de712=a98_0x28a2;if(_0x4596fe===0x0)return _0x3de712(0x99);const _0x235f03=['B','KB','MB','GB','TB'],_0xfc43b4=0x400,_0xc873a7=Math[_0x3de712(0x8a)](Math[_0x3de712(0x85)](_0x4596fe)/Math[_0x3de712(0x85)](_0xfc43b4)),_0x2a1112=_0x4596fe/Math[_0x3de712(0x96)](_0xfc43b4,_0xc873a7),_0x1ad98a=_0x2a1112>=0xa?0x1:0x2;return _0x2a1112[_0x3de712(0xa8)](_0x1ad98a)+'\x20'+_0x235f03[_0xc873a7];}export function formatRows(_0x5ed255){const _0x3a3de9=a98_0x28a2;if(_0x5ed255==null)return'-';if(_0x5ed255===0x0)return'0';if(_0x5ed255<0x3e8)return _0x5ed255['toString']();const _0x240ad7=['','K','M','B','T'],_0x1cc255=0x3e8,_0x55c9fb=Math[_0x3a3de9(0x8a)](Math['log'](_0x5ed255)/Math['log'](_0x1cc255)),_0x173830=_0x5ed255/Math[_0x3a3de9(0x96)](_0x1cc255,_0x55c9fb),_0xec4aa=_0x173830>=0xa?0x1:0x2;return''+_0x173830[_0x3a3de9(0xa8)](_0xec4aa)+_0x240ad7[_0x55c9fb];}
@@ -1 +1 @@
1
- (function(_0xb5ed88,_0x292550){const _0x38f800=a99_0x32c4,_0x3aef6c=_0xb5ed88();while(!![]){try{const _0x2763c2=parseInt(_0x38f800(0xbf))/0x1*(parseInt(_0x38f800(0xbd))/0x2)+parseInt(_0x38f800(0xb1))/0x3+-parseInt(_0x38f800(0xbc))/0x4+-parseInt(_0x38f800(0xc7))/0x5*(parseInt(_0x38f800(0xcb))/0x6)+parseInt(_0x38f800(0xcc))/0x7+parseInt(_0x38f800(0xb5))/0x8+parseInt(_0x38f800(0xcd))/0x9*(-parseInt(_0x38f800(0xa5))/0xa);if(_0x2763c2===_0x292550)break;else _0x3aef6c['push'](_0x3aef6c['shift']());}catch(_0x23c5ce){_0x3aef6c['push'](_0x3aef6c['shift']());}}}(a99_0x5251,0xa97a2));export const SEGMENT_KIND_JOURNEY=0x3;export function sanitizeYamlKey(_0xa56679){const _0x5b69f7=a99_0x32c4;return _0xa56679[_0x5b69f7(0xa9)]()[_0x5b69f7(0xb2)](/\s+/g,'_')['replace'](/[^a-z0-9_]/g,'')[_0x5b69f7(0xb2)](/_+/g,'_')[_0x5b69f7(0xb2)](/^_|_$/g,'');}function a99_0x32c4(_0x40377a,_0x2a914d){_0x40377a=_0x40377a-0xa2;const _0x525141=a99_0x5251();let _0x32c444=_0x525141[_0x40377a];return _0x32c444;}export function generateJourneyLocalName(_0x5e32cf){const _0x48828f=a99_0x32c4,_0x5521f5=_0x5e32cf[_0x48828f(0xc2)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x5521f5){const _0x23fd0c=_0x5521f5[0x1][_0x48828f(0xa9)](),_0x4e4832=_0x5521f5[0x2],_0x3f38f5=_0x4e4832[_0x48828f(0xb2)](/-/g,'')[_0x48828f(0xa6)](0x0,0x4)[_0x48828f(0xa9)]();return _0x23fd0c+'_'+_0x3f38f5;}return undefined;}export function consolidateActivationsByContent(_0x1b4d09){const _0x6762e8=a99_0x32c4,_0x554d13={},_0x5362a6=new Map(),_0x5ed227=new Map();for(const _0x5a81e7 of _0x1b4d09){if(!_0x5a81e7)continue;for(const [_0xf4f997,_0x2462ec]of Object[_0x6762e8(0xa4)](_0x5a81e7)){const _0x299085=JSON[_0x6762e8(0xc0)]({'name':_0x2462ec[_0x6762e8(0xc4)],'connection':_0x2462ec[_0x6762e8(0xca)],'connector_config':_0x2462ec[_0x6762e8(0xc9)]}),_0x302bbf=_0x5ed227[_0x6762e8(0xba)](_0x299085);_0x302bbf?_0x5362a6[_0x6762e8(0xc6)](_0xf4f997,_0x302bbf):(_0x554d13[_0xf4f997]=_0x2462ec,_0x5362a6[_0x6762e8(0xc6)](_0xf4f997,_0xf4f997),_0x5ed227[_0x6762e8(0xc6)](_0x299085,_0xf4f997));}}return{'merged':_0x554d13,'nameMapping':_0x5362a6};}export function updateActivationReferences(_0x6b81c,_0x590223){const _0x214819=a99_0x32c4;if(!_0x6b81c)return;for(const _0x36f035 of _0x6b81c){if(!_0x36f035['steps'])continue;for(const _0x211817 of _0x36f035['steps']){if(_0x211817['type']===_0x214819(0xaa)&&_0x211817['with']?.[_0x214819(0xaa)]){const _0x1e4839=_0x590223[_0x214819(0xba)](_0x211817['with'][_0x214819(0xaa)]);_0x1e4839&&_0x1e4839!==_0x211817[_0x214819(0xc5)][_0x214819(0xaa)]&&(_0x211817[_0x214819(0xc5)][_0x214819(0xaa)]=_0x1e4839);}}}}function a99_0x5251(){const _0x3d036f=['versionNumber','3423894EEYIha','replace','attributes','keys','5624800gJhgVh','launched','bundle_name','max','bundle_id','get','latest','233712CSZcOj','1222YiuFia','yaml','1161RqxvNy','stringify','activations','match','segments','name','with','set','5GZzmYF','version_number','connector_config','connection','3813132rQgFfr','9107819bVBiOE','882kWgqBx','journeys','map','find','entries','251710fOhuHs','slice','journeyBundleName','stages','toLowerCase','activation','journey','goal','item','version','draft'];a99_0x5251=function(){return _0x3d036f;};return a99_0x5251();}export function buildJourneysArray(_0x330fac){const _0x2382ce=a99_0x32c4,_0x2266c4=Math[_0x2382ce(0xb8)](..._0x330fac['map'](_0x2d488e=>_0x2d488e[_0x2382ce(0xad)][_0x2382ce(0xb0)]||0x0));return _0x330fac[_0x2382ce(0xa2)](_0x75a0d6=>{const _0x4caec9=_0x2382ce,_0x32ccea=(_0x75a0d6['item']['versionNumber']||0x0)===_0x2266c4,_0x39ccf9=_0x75a0d6['yaml'][_0x4caec9(0xce)]?.[0x0],_0x1eb09d={'version':_0x39ccf9?.[_0x4caec9(0xae)]||_0x75a0d6['yaml'][_0x4caec9(0xae)]||_0x75a0d6['item'][_0x4caec9(0xc4)],'state':_0x75a0d6[_0x4caec9(0xad)]['state']===_0x4caec9(0xb6)?_0x4caec9(0xb6):_0x4caec9(0xaf),'stages':_0x39ccf9?.['stages']||_0x75a0d6['yaml'][_0x4caec9(0xa8)]||[],'id':_0x39ccf9?.['id']||_0x75a0d6['yaml']['id'],'version_number':_0x39ccf9?.[_0x4caec9(0xc8)]||_0x75a0d6['yaml'][_0x4caec9(0xc8)]};return _0x32ccea&&(_0x1eb09d[_0x4caec9(0xbb)]=!![]),_0x1eb09d;});}export function buildMergedJourneyYaml(_0x51f76f){const _0x16ffed=a99_0x32c4,_0x4729ff=_0x51f76f[0x0][_0x16ffed(0xbe)],_0x4b49cb=buildJourneysArray(_0x51f76f),{merged:_0x37c316,nameMapping:_0xd0ff31}=consolidateActivationsByContent(_0x51f76f[_0x16ffed(0xa2)](_0x1a61a4=>_0x1a61a4['yaml'][_0x16ffed(0xc1)]));for(const _0x3a4c0a of _0x4b49cb){updateActivationReferences(_0x3a4c0a[_0x16ffed(0xa8)],_0xd0ff31);}return{'type':_0x16ffed(0xab),'name':_0x4729ff[_0x16ffed(0xc4)],'description':_0x4729ff['description'],'segments':_0x4729ff[_0x16ffed(0xc3)],'activations':Object[_0x16ffed(0xb4)](_0x37c316)['length']>0x0?_0x37c316:undefined,'goal':_0x4729ff[_0x16ffed(0xac)],'reentry':_0x4729ff['reentry'],'journeys':_0x4b49cb,'bundle_id':_0x4729ff[_0x16ffed(0xb9)],'bundle_name':_0x4729ff[_0x16ffed(0xb7)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x1d4085,_0x3f9bd5,_0x434fc5,_0x54fc85){const _0x5e1af8=a99_0x32c4,_0xdf6287=_0x1d4085+':'+_0x3f9bd5,_0x4b9917=_0x434fc5[_0x5e1af8(0xba)](_0xdf6287);if(_0x4b9917)return _0x4b9917;const _0x3ff456=await _0x54fc85(_0x1d4085),_0x4bacc6=_0x3ff456['attributes'][_0x5e1af8(0xa7)]||_0x3ff456[_0x5e1af8(0xb3)][_0x5e1af8(0xc4)],_0x89500=_0x3ff456[_0x5e1af8(0xb3)]['journeyStages'][_0x5e1af8(0xa3)](_0x373663=>_0x373663['id']===_0x3f9bd5),_0x5a55ac=_0x89500?.[_0x5e1af8(0xc4)]||_0x3f9bd5,_0x2cf5ee={'journeyName':_0x4bacc6,'stageName':_0x5a55ac};return _0x434fc5['set'](_0xdf6287,_0x2cf5ee),_0x2cf5ee;}
1
+ (function(_0x2d98ee,_0x45b740){const _0x51fade=a99_0x2629,_0x131314=_0x2d98ee();while(!![]){try{const _0x53f1bb=parseInt(_0x51fade(0xfd))/0x1*(-parseInt(_0x51fade(0xe3))/0x2)+parseInt(_0x51fade(0x103))/0x3*(parseInt(_0x51fade(0xd6))/0x4)+parseInt(_0x51fade(0xf9))/0x5*(parseInt(_0x51fade(0xe4))/0x6)+parseInt(_0x51fade(0xee))/0x7*(parseInt(_0x51fade(0xf4))/0x8)+-parseInt(_0x51fade(0xd8))/0x9*(parseInt(_0x51fade(0xf5))/0xa)+parseInt(_0x51fade(0xdd))/0xb*(parseInt(_0x51fade(0xec))/0xc)+parseInt(_0x51fade(0x104))/0xd;if(_0x53f1bb===_0x45b740)break;else _0x131314['push'](_0x131314['shift']());}catch(_0x49248f){_0x131314['push'](_0x131314['shift']());}}}(a99_0x47a9,0x49c57));export const SEGMENT_KIND_JOURNEY=0x3;export function sanitizeYamlKey(_0x50053c){const _0x2b35fe=a99_0x2629;return _0x50053c[_0x2b35fe(0xfb)]()[_0x2b35fe(0xf7)](/\s+/g,'_')[_0x2b35fe(0xf7)](/[^a-z0-9_]/g,'')[_0x2b35fe(0xf7)](/_+/g,'_')[_0x2b35fe(0xf7)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x247bf9){const _0x2f6ba5=a99_0x2629,_0x556b11=_0x247bf9[_0x2f6ba5(0xff)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x556b11){const _0x132d22=_0x556b11[0x1]['toLowerCase'](),_0x2ce60b=_0x556b11[0x2],_0x44b11d=_0x2ce60b['replace'](/-/g,'')['slice'](0x0,0x4)[_0x2f6ba5(0xfb)]();return _0x132d22+'_'+_0x44b11d;}return undefined;}function a99_0x2629(_0x3ab1d6,_0x5e084f){_0x3ab1d6=_0x3ab1d6-0xd4;const _0x47a979=a99_0x47a9();let _0x262949=_0x47a979[_0x3ab1d6];return _0x262949;}export function consolidateActivationsByContent(_0x27693e){const _0x21fa4d=a99_0x2629,_0x39d7c6={},_0x3e5324=new Map(),_0x2a5e68=new Map();for(const _0x491e31 of _0x27693e){if(!_0x491e31)continue;for(const [_0x2e26ca,_0x16d217]of Object[_0x21fa4d(0xf1)](_0x491e31)){const _0x5f0be3=JSON[_0x21fa4d(0xd5)]({'name':_0x16d217['name'],'connection':_0x16d217[_0x21fa4d(0xdf)],'connector_config':_0x16d217[_0x21fa4d(0xf2)]}),_0x47fe46=_0x2a5e68[_0x21fa4d(0xe9)](_0x5f0be3);_0x47fe46?_0x3e5324[_0x21fa4d(0x101)](_0x2e26ca,_0x47fe46):(_0x39d7c6[_0x2e26ca]=_0x16d217,_0x3e5324[_0x21fa4d(0x101)](_0x2e26ca,_0x2e26ca),_0x2a5e68[_0x21fa4d(0x101)](_0x5f0be3,_0x2e26ca));}}return{'merged':_0x39d7c6,'nameMapping':_0x3e5324};}export function updateActivationReferences(_0x441044,_0x307f57){const _0x3ae8be=a99_0x2629;if(!_0x441044)return;for(const _0x293b56 of _0x441044){if(!_0x293b56[_0x3ae8be(0xe1)])continue;for(const _0xfd75e0 of _0x293b56[_0x3ae8be(0xe1)]){if(_0xfd75e0[_0x3ae8be(0xd7)]===_0x3ae8be(0x100)&&_0xfd75e0['with']?.[_0x3ae8be(0x100)]){const _0x1a614d=_0x307f57[_0x3ae8be(0xe9)](_0xfd75e0[_0x3ae8be(0xd4)][_0x3ae8be(0x100)]);_0x1a614d&&_0x1a614d!==_0xfd75e0[_0x3ae8be(0xd4)][_0x3ae8be(0x100)]&&(_0xfd75e0[_0x3ae8be(0xd4)]['activation']=_0x1a614d);}}}}export function buildJourneysArray(_0x47840f){const _0x1312aa=a99_0x2629,_0x17b3bf=Math[_0x1312aa(0xe5)](..._0x47840f['map'](_0x1e6201=>_0x1e6201[_0x1312aa(0xed)]['versionNumber']||0x0));return _0x47840f[_0x1312aa(0xfa)](_0x2056e2=>{const _0x4589f3=_0x1312aa,_0x346e6f=(_0x2056e2[_0x4589f3(0xed)][_0x4589f3(0xea)]||0x0)===_0x17b3bf,_0x5a6934=_0x2056e2[_0x4589f3(0xfe)]['journeys']?.[0x0],_0x24d933={'version':_0x5a6934?.[_0x4589f3(0xdb)]||_0x2056e2['yaml'][_0x4589f3(0xdb)]||_0x2056e2[_0x4589f3(0xed)]['name'],'state':_0x2056e2[_0x4589f3(0xed)][_0x4589f3(0xdc)]===_0x4589f3(0xf0)?'launched':_0x4589f3(0xef),'stages':_0x5a6934?.[_0x4589f3(0xe0)]||_0x2056e2[_0x4589f3(0xfe)][_0x4589f3(0xe0)]||[],'id':_0x5a6934?.['id']||_0x2056e2[_0x4589f3(0xfe)]['id'],'version_number':_0x5a6934?.[_0x4589f3(0xe2)]||_0x2056e2[_0x4589f3(0xfe)][_0x4589f3(0xe2)]};return _0x346e6f&&(_0x24d933[_0x4589f3(0xe7)]=!![]),_0x24d933;});}export function buildMergedJourneyYaml(_0x246e69){const _0x30c9c0=a99_0x2629,_0x3a06b5=_0x246e69[0x0][_0x30c9c0(0xfe)],_0x19efb1=buildJourneysArray(_0x246e69),{merged:_0x2c097e,nameMapping:_0x54e9a6}=consolidateActivationsByContent(_0x246e69[_0x30c9c0(0xfa)](_0x7a75f8=>_0x7a75f8['yaml'][_0x30c9c0(0xe8)]));for(const _0x56297a of _0x19efb1){updateActivationReferences(_0x56297a[_0x30c9c0(0xe0)],_0x54e9a6);}return{'type':'journey','name':_0x3a06b5[_0x30c9c0(0x102)],'description':_0x3a06b5[_0x30c9c0(0xf8)],'segments':_0x3a06b5[_0x30c9c0(0xde)],'activations':Object[_0x30c9c0(0xd9)](_0x2c097e)[_0x30c9c0(0xe6)]>0x0?_0x2c097e:undefined,'goal':_0x3a06b5[_0x30c9c0(0xf3)],'reentry':_0x3a06b5[_0x30c9c0(0xf6)],'journeys':_0x19efb1,'bundle_id':_0x3a06b5['bundle_id'],'bundle_name':_0x3a06b5['bundle_name']};}function a99_0x47a9(){const _0xc2cb45=['goal','32072EUNgDu','1294860LNONCS','reentry','replace','description','1790hszgWN','map','toLowerCase','attributes','5LwWPLX','yaml','match','activation','set','name','853071QsjNGq','4229680kfoHRr','with','stringify','4BlvbSc','type','27gqmgNQ','keys','find','version','state','517TQNiHX','segments','connection','stages','steps','version_number','222722nQCLdN','1272HQhVCb','max','length','latest','activations','get','versionNumber','journeyBundleName','120924lVvMCW','item','154dwFTbO','draft','launched','entries','connector_config'];a99_0x47a9=function(){return _0xc2cb45;};return a99_0x47a9();}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x3d8f9b,_0x300de2,_0x14fd76,_0x1fdb79){const _0x3cd0db=a99_0x2629,_0x41ad28=_0x3d8f9b+':'+_0x300de2,_0x350b94=_0x14fd76['get'](_0x41ad28);if(_0x350b94)return _0x350b94;const _0x5921b0=await _0x1fdb79(_0x3d8f9b),_0x49141f=_0x5921b0[_0x3cd0db(0xfc)][_0x3cd0db(0xeb)]||_0x5921b0[_0x3cd0db(0xfc)]['name'],_0x6564f7=_0x5921b0[_0x3cd0db(0xfc)]['journeyStages'][_0x3cd0db(0xda)](_0x2eaeb9=>_0x2eaeb9['id']===_0x300de2),_0x165984=_0x6564f7?.[_0x3cd0db(0x102)]||_0x300de2,_0x526359={'journeyName':_0x49141f,'stageName':_0x165984};return _0x14fd76[_0x3cd0db(0x101)](_0x41ad28,_0x526359),_0x526359;}
@@ -1 +1 @@
1
- function a100_0x1cc0(){const _0x40a7c2=['INVALID_ARGUMENT','NOT_FOUND','Failed\x20to\x20load\x20JSON:\x20','1583466yZOMVO','Invalid\x20JSON\x20string:\x20','\x27:\x20','1446651vItWUF','code','4jPTwhA','852368UysWOM','1uHZuaF','434049vQLCXz','INTERNAL','Permission\x20denied\x20reading\x20file:\x20','message','utf-8','Invalid\x20JSON\x20in\x20file\x20\x27','35954490LiOPsf','parse','63qtQBgw','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','ENOENT','PERMISSION_DENIED','4107126lIWNlQ','8532225TljQsQ','File\x20not\x20found:\x20'];a100_0x1cc0=function(){return _0x40a7c2;};return a100_0x1cc0();}(function(_0x14d029,_0x45eb74){const _0x2dec79=a100_0x5665,_0x3cbfc3=_0x14d029();while(!![]){try{const _0x5240e=-parseInt(_0x2dec79(0xd5))/0x1*(-parseInt(_0x2dec79(0xe8))/0x2)+parseInt(_0x2dec79(0xd1))/0x3+-parseInt(_0x2dec79(0xd3))/0x4*(-parseInt(_0x2dec79(0xe3))/0x5)+parseInt(_0x2dec79(0xe2))/0x6+parseInt(_0x2dec79(0xd6))/0x7+parseInt(_0x2dec79(0xd4))/0x8*(parseInt(_0x2dec79(0xde))/0x9)+-parseInt(_0x2dec79(0xdc))/0xa;if(_0x5240e===_0x45eb74)break;else _0x3cbfc3['push'](_0x3cbfc3['shift']());}catch(_0x2d509f){_0x3cbfc3['push'](_0x3cbfc3['shift']());}}}(a100_0x1cc0,0xd62f0));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a100_0x5665(_0xdf6588,_0x1201a5){_0xdf6588=_0xdf6588-0xcf;const _0x1cc050=a100_0x1cc0();let _0x56651d=_0x1cc050[_0xdf6588];return _0x56651d;}export async function loadJSON(_0x1a6a88,_0x14ff23){const _0x33451d=a100_0x5665;try{if(_0x14ff23){const _0x2a1100=await readFile(_0x1a6a88,_0x33451d(0xda));try{return JSON['parse'](_0x2a1100);}catch(_0x2b0067){throw new SDKError(ErrorCode[_0x33451d(0xe5)],_0x33451d(0xdb)+_0x1a6a88+_0x33451d(0xd0)+(_0x2b0067 instanceof Error?_0x2b0067[_0x33451d(0xd9)]:String(_0x2b0067)));}}else try{return JSON[_0x33451d(0xdd)](_0x1a6a88);}catch(_0x41dcc7){throw new SDKError(ErrorCode[_0x33451d(0xe5)],_0x33451d(0xcf)+(_0x41dcc7 instanceof Error?_0x41dcc7[_0x33451d(0xd9)]:String(_0x41dcc7)));}}catch(_0xfc00db){if(_0xfc00db instanceof SDKError)throw _0xfc00db;if(_0xfc00db instanceof Error&&_0x33451d(0xd2)in _0xfc00db){const _0xb76425=_0xfc00db;if(_0xb76425[_0x33451d(0xd2)]===_0x33451d(0xe0))throw new SDKError(ErrorCode[_0x33451d(0xe6)],_0x33451d(0xe4)+_0x1a6a88);else{if(_0xb76425[_0x33451d(0xd2)]==='EACCES')throw new SDKError(ErrorCode[_0x33451d(0xe1)],_0x33451d(0xd8)+_0x1a6a88);}}throw new SDKError(ErrorCode[_0x33451d(0xd7)],_0x33451d(0xe7)+(_0xfc00db instanceof Error?_0xfc00db[_0x33451d(0xd9)]:String(_0xfc00db)));}}export async function loadJSONFromOptions(_0x32b12c,_0x1d3702){const _0x1393bd=a100_0x5665;if(_0x32b12c&&_0x1d3702)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1393bd(0xdf));if(_0x32b12c)return await loadJSON(_0x32b12c,![]);if(_0x1d3702)return await loadJSON(_0x1d3702,!![]);return undefined;}
1
+ (function(_0x2fbb6b,_0x37c844){const _0x57c468=a100_0x1a97,_0x11c0ca=_0x2fbb6b();while(!![]){try{const _0x52532c=-parseInt(_0x57c468(0xe9))/0x1*(-parseInt(_0x57c468(0xfe))/0x2)+-parseInt(_0x57c468(0xf5))/0x3*(-parseInt(_0x57c468(0xfd))/0x4)+parseInt(_0x57c468(0xf8))/0x5*(-parseInt(_0x57c468(0xea))/0x6)+parseInt(_0x57c468(0xef))/0x7+parseInt(_0x57c468(0xfb))/0x8+parseInt(_0x57c468(0xeb))/0x9+parseInt(_0x57c468(0xff))/0xa*(-parseInt(_0x57c468(0xed))/0xb);if(_0x52532c===_0x37c844)break;else _0x11c0ca['push'](_0x11c0ca['shift']());}catch(_0x44075c){_0x11c0ca['push'](_0x11c0ca['shift']());}}}(a100_0x1586,0xeb44f));function a100_0x1586(){const _0x26576d=['Permission\x20denied\x20reading\x20file:\x20','parse','INVALID_ARGUMENT','NOT_FOUND','6ASXPIk','PERMISSION_DENIED','code','1228305irgpMD','Invalid\x20JSON\x20string:\x20','INTERNAL','10756472FdPaQV','message','3805088znwSkF','2FLyXgx','130880iQpzdm','ENOENT','1674385NJAoNn','36UvScnL','11856663ddFDdW','\x27:\x20','3839mHRlhZ','Failed\x20to\x20load\x20JSON:\x20','5365122xaDbQH','utf-8'];a100_0x1586=function(){return _0x26576d;};return a100_0x1586();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a100_0x1a97(_0x2fbec9,_0x2f2d11){_0x2fbec9=_0x2fbec9-0xe9;const _0x1586dc=a100_0x1586();let _0x1a970a=_0x1586dc[_0x2fbec9];return _0x1a970a;}export async function loadJSON(_0x354a2c,_0x480bf4){const _0x396391=a100_0x1a97;try{if(_0x480bf4){const _0x521902=await readFile(_0x354a2c,_0x396391(0xf0));try{return JSON['parse'](_0x521902);}catch(_0xd2be5){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x354a2c+_0x396391(0xec)+(_0xd2be5 instanceof Error?_0xd2be5[_0x396391(0xfc)]:String(_0xd2be5)));}}else try{return JSON[_0x396391(0xf2)](_0x354a2c);}catch(_0x1468fa){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x396391(0xf9)+(_0x1468fa instanceof Error?_0x1468fa[_0x396391(0xfc)]:String(_0x1468fa)));}}catch(_0x8c343f){if(_0x8c343f instanceof SDKError)throw _0x8c343f;if(_0x8c343f instanceof Error&&_0x396391(0xf7)in _0x8c343f){const _0x18bab0=_0x8c343f;if(_0x18bab0['code']===_0x396391(0x100))throw new SDKError(ErrorCode[_0x396391(0xf4)],'File\x20not\x20found:\x20'+_0x354a2c);else{if(_0x18bab0[_0x396391(0xf7)]==='EACCES')throw new SDKError(ErrorCode[_0x396391(0xf6)],_0x396391(0xf1)+_0x354a2c);}}throw new SDKError(ErrorCode[_0x396391(0xfa)],_0x396391(0xee)+(_0x8c343f instanceof Error?_0x8c343f[_0x396391(0xfc)]:String(_0x8c343f)));}}export async function loadJSONFromOptions(_0xf89e60,_0x432d18){const _0x374894=a100_0x1a97;if(_0xf89e60&&_0x432d18)throw new SDKError(ErrorCode[_0x374894(0xf3)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0xf89e60)return await loadJSON(_0xf89e60,![]);if(_0x432d18)return await loadJSON(_0x432d18,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x129935,_0x35a45d){const _0x259273=a101_0x115a,_0x543c56=_0x129935();while(!![]){try{const _0x554bdd=-parseInt(_0x259273(0x15d))/0x1*(parseInt(_0x259273(0x15a))/0x2)+parseInt(_0x259273(0x154))/0x3+parseInt(_0x259273(0x156))/0x4*(-parseInt(_0x259273(0x153))/0x5)+-parseInt(_0x259273(0x163))/0x6+parseInt(_0x259273(0x160))/0x7+-parseInt(_0x259273(0x161))/0x8*(parseInt(_0x259273(0x15c))/0x9)+parseInt(_0x259273(0x159))/0xa*(parseInt(_0x259273(0x162))/0xb);if(_0x554bdd===_0x35a45d)break;else _0x543c56['push'](_0x543c56['shift']());}catch(_0x5f0fd7){_0x543c56['push'](_0x543c56['shift']());}}}(a101_0x452f,0x97334));export function canCreateAgent(_0x3e3a95,_0x428cae){const _0x27206b=a101_0x115a;for(const _0x20fc96 of _0x3e3a95[_0x27206b(0x157)]['tools']){if(_0x20fc96['targetAgentId']&&!_0x428cae[_0x27206b(0x155)](_0x20fc96['targetAgentId']))return![];}return!![];}function a101_0x452f(){const _0x49dcd8=['7605896oDPmkS','9135214DIMKJe','357042IpyXhW','targetAgentId','1355050ATnweR','2460918UPFyhW','has','4fHrlYc','attributes','targetKnowledgeBaseId','10kymDzC','1881246qYtMvz','1.0','9MzJyzZ','1zEjcxK','map','get','8332891jvMiRx'];a101_0x452f=function(){return _0x49dcd8;};return a101_0x452f();}export function remapToolIds(_0x3a3cda,_0x1aa8e8,_0x528e0a){const _0x198d05=a101_0x115a;return _0x3a3cda[_0x198d05(0x15e)](_0x148e58=>({..._0x148e58,'targetKnowledgeBaseId':_0x148e58[_0x198d05(0x158)]?_0x1aa8e8[_0x198d05(0x15f)](_0x148e58[_0x198d05(0x158)])||_0x148e58['targetKnowledgeBaseId']:undefined,'targetAgentId':_0x148e58['targetAgentId']?_0x528e0a[_0x198d05(0x15f)](_0x148e58[_0x198d05(0x152)])||_0x148e58[_0x198d05(0x152)]:undefined}));}function a101_0x115a(_0x5188b6,_0x1e581d){_0x5188b6=_0x5188b6-0x152;const _0x452fc2=a101_0x452f();let _0x115ad2=_0x452fc2[_0x5188b6];return _0x115ad2;}export function remapVariableIds(_0x50b4f5,_0x18bc2c){const _0x538767=a101_0x115a;return _0x50b4f5[_0x538767(0x15e)](_0x58b679=>({..._0x58b679,'targetKnowledgeBaseId':_0x18bc2c[_0x538767(0x15f)](_0x58b679[_0x538767(0x158)])||_0x58b679[_0x538767(0x158)]}));}export function isSupportedBackupVersion(_0x4d478a){const _0x217c30=a101_0x115a;return _0x4d478a===_0x217c30(0x15b);}
1
+ (function(_0x104305,_0x3de5bc){const _0x3f777f=a101_0x1b74,_0x1d6ba9=_0x104305();while(!![]){try{const _0x41f22d=-parseInt(_0x3f777f(0x180))/0x1+parseInt(_0x3f777f(0x177))/0x2*(-parseInt(_0x3f777f(0x17b))/0x3)+-parseInt(_0x3f777f(0x17a))/0x4+parseInt(_0x3f777f(0x178))/0x5+-parseInt(_0x3f777f(0x181))/0x6+-parseInt(_0x3f777f(0x186))/0x7+parseInt(_0x3f777f(0x179))/0x8*(parseInt(_0x3f777f(0x17c))/0x9);if(_0x41f22d===_0x3de5bc)break;else _0x1d6ba9['push'](_0x1d6ba9['shift']());}catch(_0x41d335){_0x1d6ba9['push'](_0x1d6ba9['shift']());}}}(a101_0x29c9,0xe2b5d));function a101_0x29c9(){const _0x1f1a94=['231773lsXNkI','9891504TrxDhh','tools','targetKnowledgeBaseId','get','attributes','8480388kminKc','targetAgentId','2ieAKDD','1788395Ifyvyr','8mSRQao','6779148VsoTBz','1495386gzlDkJ','52704144fGOkpm','map','has','1.0'];a101_0x29c9=function(){return _0x1f1a94;};return a101_0x29c9();}function a101_0x1b74(_0x3ede9d,_0x5d79eb){_0x3ede9d=_0x3ede9d-0x177;const _0x29c9b4=a101_0x29c9();let _0x1b74af=_0x29c9b4[_0x3ede9d];return _0x1b74af;}export function canCreateAgent(_0x3f7c5c,_0x285151){const _0x560697=a101_0x1b74;for(const _0x35de30 of _0x3f7c5c[_0x560697(0x185)][_0x560697(0x182)]){if(_0x35de30['targetAgentId']&&!_0x285151[_0x560697(0x17e)](_0x35de30['targetAgentId']))return![];}return!![];}export function remapToolIds(_0x19b99a,_0x1b71dc,_0x38d3d1){const _0x393d33=a101_0x1b74;return _0x19b99a[_0x393d33(0x17d)](_0x25b7cc=>({..._0x25b7cc,'targetKnowledgeBaseId':_0x25b7cc[_0x393d33(0x183)]?_0x1b71dc[_0x393d33(0x184)](_0x25b7cc['targetKnowledgeBaseId'])||_0x25b7cc[_0x393d33(0x183)]:undefined,'targetAgentId':_0x25b7cc[_0x393d33(0x187)]?_0x38d3d1[_0x393d33(0x184)](_0x25b7cc[_0x393d33(0x187)])||_0x25b7cc[_0x393d33(0x187)]:undefined}));}export function remapVariableIds(_0x147837,_0x549005){const _0x3044d6=a101_0x1b74;return _0x147837[_0x3044d6(0x17d)](_0x1443ff=>({..._0x1443ff,'targetKnowledgeBaseId':_0x549005['get'](_0x1443ff['targetKnowledgeBaseId'])||_0x1443ff['targetKnowledgeBaseId']}));}export function isSupportedBackupVersion(_0x5d001c){const _0x495155=a101_0x1b74;return _0x5d001c===_0x495155(0x17f);}
@@ -1 +1 @@
1
- const a102_0x43ef3a=a102_0xb40e;function a102_0x241b(){const _0x24c2dc=['3036144uMueLu','259BUCizh','40023PPCtEG','1604Fkdcdf','claude-4.5-sonnet','200PKdfoh','574524hCFGLO','66000fqFtMM','toLowerCase','14nZCaqu','22472285TMuHUk','855956nLABab','25SKlYtG','match'];a102_0x241b=function(){return _0x24c2dc;};return a102_0x241b();}(function(_0x11cb44,_0x3b1c9d){const _0x181563=a102_0xb40e,_0x2a99e2=_0x11cb44();while(!![]){try{const _0x2dd8f8=parseInt(_0x181563(0x131))/0x1*(parseInt(_0x181563(0x133))/0x2)+parseInt(_0x181563(0x136))/0x3+parseInt(_0x181563(0x12d))/0x4*(-parseInt(_0x181563(0x12e))/0x5)+parseInt(_0x181563(0x137))/0x6+parseInt(_0x181563(0x12b))/0x7*(-parseInt(_0x181563(0x130))/0x8)+parseInt(_0x181563(0x132))/0x9*(-parseInt(_0x181563(0x135))/0xa)+parseInt(_0x181563(0x12c))/0xb;if(_0x2dd8f8===_0x3b1c9d)break;else _0x2a99e2['push'](_0x2a99e2['shift']());}catch(_0x3a3a2f){_0x2a99e2['push'](_0x2a99e2['shift']());}}}(a102_0x241b,0x82ac8));function a102_0xb40e(_0x3e9ea5,_0x13714e){_0x3e9ea5=_0x3e9ea5-0x12a;const _0x241b3b=a102_0x241b();let _0xb40e69=_0x241b3b[_0x3e9ea5];return _0xb40e69;}const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a102_0x43ef3a(0x134)};export function extractModelAlias(_0xff402f){const _0x32d164=a102_0x43ef3a,_0x46d891=_0xff402f[_0x32d164(0x12f)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x46d891)return _0x46d891[0x1][_0x32d164(0x12a)]();return _0xff402f;}export function resolveModelAlias(_0x2c767c){const _0x3f7911=a102_0x43ef3a;return MODEL_ALIASES[_0x2c767c[_0x3f7911(0x12a)]()]||_0x2c767c;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a102_0x12f6f8=a102_0x27fc;function a102_0x27fc(_0x35918a,_0x1223ae){_0x35918a=_0x35918a-0x84;const _0x21425a=a102_0x2142();let _0x27fce5=_0x21425a[_0x35918a];return _0x27fce5;}(function(_0x34669a,_0x2c74da){const _0x5c0624=a102_0x27fc,_0x5be05c=_0x34669a();while(!![]){try{const _0x2f0dac=parseInt(_0x5c0624(0x84))/0x1*(-parseInt(_0x5c0624(0x8f))/0x2)+parseInt(_0x5c0624(0x86))/0x3+-parseInt(_0x5c0624(0x90))/0x4*(parseInt(_0x5c0624(0x85))/0x5)+parseInt(_0x5c0624(0x8a))/0x6+-parseInt(_0x5c0624(0x8e))/0x7+parseInt(_0x5c0624(0x8d))/0x8*(parseInt(_0x5c0624(0x8c))/0x9)+parseInt(_0x5c0624(0x87))/0xa;if(_0x2f0dac===_0x2c74da)break;else _0x5be05c['push'](_0x5be05c['shift']());}catch(_0x5eb920){_0x5be05c['push'](_0x5be05c['shift']());}}}(a102_0x2142,0x500d6));function a102_0x2142(){const _0x2c9d74=['24jcUmCo','20gZpAoH','28866piXxke','472210CUSTDc','1161039YMvcxn','5033490nubwzV','claude-4.5-sonnet','toLowerCase','3337650dgRYMk','match','9wWrNlJ','2586256HzMuOQ','4363961CFLBDX'];a102_0x2142=function(){return _0x2c9d74;};return a102_0x2142();}const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':a102_0x12f6f8(0x88)};export function extractModelAlias(_0x55c121){const _0x4430de=a102_0x12f6f8,_0x20f97d=_0x55c121[_0x4430de(0x8b)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x20f97d)return _0x20f97d[0x1][_0x4430de(0x89)]();return _0x55c121;}export function resolveModelAlias(_0x208da4){const _0x3c98bd=a102_0x12f6f8;return MODEL_ALIASES[_0x208da4[_0x3c98bd(0x89)]()]||_0x208da4;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x57e00,_0x5be2b2){const _0xf1feaa=a103_0x4490,_0x251cfa=_0x57e00();while(!![]){try{const _0x4ad106=-parseInt(_0xf1feaa(0x10f))/0x1+-parseInt(_0xf1feaa(0x10d))/0x2*(parseInt(_0xf1feaa(0x11b))/0x3)+-parseInt(_0xf1feaa(0x109))/0x4+-parseInt(_0xf1feaa(0x110))/0x5*(parseInt(_0xf1feaa(0x116))/0x6)+parseInt(_0xf1feaa(0x114))/0x7*(parseInt(_0xf1feaa(0x119))/0x8)+-parseInt(_0xf1feaa(0x113))/0x9+parseInt(_0xf1feaa(0x115))/0xa;if(_0x4ad106===_0x5be2b2)break;else _0x251cfa['push'](_0x251cfa['shift']());}catch(_0x47f6cc){_0x251cfa['push'](_0x251cfa['shift']());}}}(a103_0x3e23,0x466b3));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};function a103_0x4490(_0x3fdad5,_0x609fcc){_0x3fdad5=_0x3fdad5-0x106;const _0x3e23c8=a103_0x3e23();let _0x4490e8=_0x3e23c8[_0x3fdad5];return _0x4490e8;}export function getModelFactor(_0x3a293c){const _0x50d418=a103_0x4490,_0x43397d=_0x3a293c[_0x50d418(0x112)]();if(MODEL_FACTORS[_0x43397d])return MODEL_FACTORS[_0x43397d];if(_0x43397d[_0x50d418(0x10e)](_0x50d418(0x10a)))return MODEL_FACTORS['sonnet'];if(_0x43397d[_0x50d418(0x10e)](_0x50d418(0x11d)))return MODEL_FACTORS[_0x50d418(0x11d)];if(_0x43397d[_0x50d418(0x10e)]('opus'))return MODEL_FACTORS[_0x50d418(0x11a)];return MODEL_FACTORS[_0x50d418(0x10a)];}export function getContextLimit(_0x5b0af2){const _0x20198c=a103_0x4490,_0x408e6d=_0x5b0af2[_0x20198c(0x112)]();if(_0x408e6d[_0x20198c(0x10e)](_0x20198c(0x10a)))return CONTEXT_LIMITS[_0x20198c(0x10a)];if(_0x408e6d['includes'](_0x20198c(0x11d)))return CONTEXT_LIMITS[_0x20198c(0x11d)];if(_0x408e6d[_0x20198c(0x10e)](_0x20198c(0x11a)))return CONTEXT_LIMITS[_0x20198c(0x11a)];return CONTEXT_LIMITS[_0x20198c(0x117)];}export function calculateChatUnit(_0x28af1e,_0x2a1843,_0x37dc45){return(_0x28af1e+_0x2a1843)/0x1388*_0x37dc45;}export function calculateCredits(_0x209766){return _0x209766/0x2904;}function a103_0x3e23(){const _0x4239f=['1029DGMkCe','13912770TeGxzK','102ACHIUO','default','Sonnet\x204','27480dqZoRc','opus','3HmpibM','Haiku\x204','haiku','4.5','toLocaleString','Haiku\x204.5','4-5','Opus\x204.5','1317708UaaHOm','sonnet','Claude','round','816934uFTOgX','includes','512944wfjxWs','255lVyqsI','en-US','toLowerCase','3204738rOnAPc'];a103_0x3e23=function(){return _0x4239f;};return a103_0x3e23();}export function getModelDisplayName(_0x5785f0){const _0x13dea4=a103_0x4490,_0x196d76=_0x5785f0[_0x13dea4(0x112)]();if(_0x196d76[_0x13dea4(0x10e)]('sonnet')){if(_0x196d76[_0x13dea4(0x10e)](_0x13dea4(0x107))||_0x196d76['includes'](_0x13dea4(0x11e)))return'Sonnet\x204.5';return _0x13dea4(0x118);}if(_0x196d76['includes'](_0x13dea4(0x11d))){if(_0x196d76[_0x13dea4(0x10e)](_0x13dea4(0x107))||_0x196d76[_0x13dea4(0x10e)](_0x13dea4(0x11e)))return _0x13dea4(0x106);return _0x13dea4(0x11c);}if(_0x196d76['includes']('opus')){if(_0x196d76[_0x13dea4(0x10e)](_0x13dea4(0x107))||_0x196d76[_0x13dea4(0x10e)]('4.5'))return _0x13dea4(0x108);return'Opus\x204';}return _0x13dea4(0x10b);}export function formatTokenCount(_0x17187a){const _0x3185d8=a103_0x4490;return _0x17187a[_0x3185d8(0x11f)](_0x3185d8(0x111));}export function calculateContextPercentage(_0x31a47c,_0x59d2a2){const _0x3a2571=a103_0x4490,_0x3377b2=getContextLimit(_0x59d2a2);return Math[_0x3a2571(0x10c)](_0x31a47c/_0x3377b2*0x64);}
1
+ function a103_0x4f1e(_0x536202,_0x26b831){_0x536202=_0x536202-0xc5;const _0x47e9cf=a103_0x47e9();let _0x4f1e76=_0x47e9cf[_0x536202];return _0x4f1e76;}(function(_0x3dd783,_0x1f7f56){const _0x2ab8ce=a103_0x4f1e,_0x13f1ee=_0x3dd783();while(!![]){try{const _0x190559=parseInt(_0x2ab8ce(0xc9))/0x1+-parseInt(_0x2ab8ce(0xd0))/0x2+-parseInt(_0x2ab8ce(0xcf))/0x3*(-parseInt(_0x2ab8ce(0xda))/0x4)+-parseInt(_0x2ab8ce(0xcb))/0x5+parseInt(_0x2ab8ce(0xd6))/0x6+parseInt(_0x2ab8ce(0xd1))/0x7+-parseInt(_0x2ab8ce(0xce))/0x8;if(_0x190559===_0x1f7f56)break;else _0x13f1ee['push'](_0x13f1ee['shift']());}catch(_0x459d50){_0x13f1ee['push'](_0x13f1ee['shift']());}}}(a103_0x47e9,0x72072));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x3340a7){const _0x3ec0ad=a103_0x4f1e,_0x4e27cd=_0x3340a7[_0x3ec0ad(0xc8)]();if(MODEL_FACTORS[_0x4e27cd])return MODEL_FACTORS[_0x4e27cd];if(_0x4e27cd[_0x3ec0ad(0xcc)](_0x3ec0ad(0xcd)))return MODEL_FACTORS[_0x3ec0ad(0xcd)];if(_0x4e27cd[_0x3ec0ad(0xcc)](_0x3ec0ad(0xc6)))return MODEL_FACTORS[_0x3ec0ad(0xc6)];if(_0x4e27cd['includes']('opus'))return MODEL_FACTORS[_0x3ec0ad(0xca)];return MODEL_FACTORS[_0x3ec0ad(0xcd)];}export function getContextLimit(_0x409f71){const _0x301c0d=a103_0x4f1e,_0xd445f3=_0x409f71[_0x301c0d(0xc8)]();if(_0xd445f3[_0x301c0d(0xcc)](_0x301c0d(0xcd)))return CONTEXT_LIMITS['sonnet'];if(_0xd445f3[_0x301c0d(0xcc)](_0x301c0d(0xc6)))return CONTEXT_LIMITS['haiku'];if(_0xd445f3[_0x301c0d(0xcc)](_0x301c0d(0xca)))return CONTEXT_LIMITS[_0x301c0d(0xca)];return CONTEXT_LIMITS['default'];}function a103_0x47e9(){const _0x1d6d36=['1132887IhbQHU','Claude','4-5','Haiku\x204.5','toLocaleString','4516524ltGVyV','4.5','round','Haiku\x204','52ThduEL','Opus\x204','haiku','Sonnet\x204','toLowerCase','530323QgSnyX','opus','1031620IjIkXB','includes','sonnet','5164696XVsere','98829ErSrsg','1108416kBfunH'];a103_0x47e9=function(){return _0x1d6d36;};return a103_0x47e9();}export function calculateChatUnit(_0x1650c7,_0x4d9703,_0xb83cad){return(_0x1650c7+_0x4d9703)/0x1388*_0xb83cad;}export function calculateCredits(_0x33ecd0){return _0x33ecd0/0x2904;}export function getModelDisplayName(_0x2e1676){const _0x5deca8=a103_0x4f1e,_0x592766=_0x2e1676[_0x5deca8(0xc8)]();if(_0x592766['includes']('sonnet')){if(_0x592766[_0x5deca8(0xcc)](_0x5deca8(0xd3))||_0x592766[_0x5deca8(0xcc)](_0x5deca8(0xd7)))return'Sonnet\x204.5';return _0x5deca8(0xc7);}if(_0x592766['includes'](_0x5deca8(0xc6))){if(_0x592766[_0x5deca8(0xcc)](_0x5deca8(0xd3))||_0x592766[_0x5deca8(0xcc)](_0x5deca8(0xd7)))return _0x5deca8(0xd4);return _0x5deca8(0xd9);}if(_0x592766[_0x5deca8(0xcc)]('opus')){if(_0x592766[_0x5deca8(0xcc)](_0x5deca8(0xd3))||_0x592766[_0x5deca8(0xcc)]('4.5'))return'Opus\x204.5';return _0x5deca8(0xc5);}return _0x5deca8(0xd2);}export function formatTokenCount(_0x729539){const _0x563788=a103_0x4f1e;return _0x729539[_0x563788(0xd5)]('en-US');}export function calculateContextPercentage(_0x4d9ea6,_0x4a8a60){const _0x1de953=a103_0x4f1e,_0xfb3227=getContextLimit(_0x4a8a60);return Math[_0x1de953(0xd8)](_0x4d9ea6/_0xfb3227*0x64);}
@@ -1 +1 @@
1
- function a104_0x2250(_0x5c902d,_0x232c62){_0x5c902d=_0x5c902d-0x1bd;const _0x353336=a104_0x3533();let _0x225019=_0x353336[_0x5c902d];return _0x225019;}function a104_0x3533(){const _0xc6091f=['number','25380640hUexyC','76657ugmDFA','Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20number.','5547339pQcasF','9307120CHQbdZ','3RSiSan','822lMeXkZ','285770ljrfTa','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20timeout\x20value:\x20','4083ivYCfs','4754225rSjYjp','1580yGULhj'];a104_0x3533=function(){return _0xc6091f;};return a104_0x3533();}(function(_0x59b993,_0x343a6e){const _0xf4aef0=a104_0x2250,_0x4af053=_0x59b993();while(!![]){try{const _0x503810=-parseInt(_0xf4aef0(0x1c9))/0x1*(-parseInt(_0xf4aef0(0x1cb))/0x2)+parseInt(_0xf4aef0(0x1bf))/0x3*(parseInt(_0xf4aef0(0x1c1))/0x4)+-parseInt(_0xf4aef0(0x1c0))/0x5+parseInt(_0xf4aef0(0x1ca))/0x6*(parseInt(_0xf4aef0(0x1c4))/0x7)+parseInt(_0xf4aef0(0x1c8))/0x8+parseInt(_0xf4aef0(0x1c7))/0x9+-parseInt(_0xf4aef0(0x1c3))/0xa;if(_0x503810===_0x343a6e)break;else _0x4af053['push'](_0x4af053['shift']());}catch(_0x556307){_0x4af053['push'](_0x4af053['shift']());}}}(a104_0x3533,0xb8e8d));export function validateLimitOption(_0x2019d7){const _0x4ba37b=a104_0x2250;if(!Number['isInteger'](_0x2019d7))return{'isValid':![],'error':_0x4ba37b(0x1c5)+_0x2019d7+'.\x20Must\x20be\x20an\x20integer.'};if(_0x2019d7<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2019d7+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x2019d7};}export function validateTimeoutOption(_0x4a2557,_0x3ec544=0x1e){const _0x45b0c8=a104_0x2250;if(_0x4a2557===undefined)return{'isValid':!![],'value':_0x3ec544};const _0x38d5dc=typeof _0x4a2557===_0x45b0c8(0x1c2)?_0x4a2557:parseFloat(_0x4a2557);if(isNaN(_0x38d5dc))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4a2557+_0x45b0c8(0x1c6)};if(_0x38d5dc<=0x0)return{'isValid':![],'error':_0x45b0c8(0x1be)+_0x38d5dc+_0x45b0c8(0x1bd)};return{'isValid':!![],'value':_0x38d5dc};}
1
+ (function(_0x439765,_0x5ef44b){const _0x22917a=a104_0x17e4,_0x29f44f=_0x439765();while(!![]){try{const _0x10df50=parseInt(_0x22917a(0xfc))/0x1+parseInt(_0x22917a(0x107))/0x2+parseInt(_0x22917a(0xfa))/0x3*(-parseInt(_0x22917a(0xfe))/0x4)+parseInt(_0x22917a(0x103))/0x5*(parseInt(_0x22917a(0xfb))/0x6)+-parseInt(_0x22917a(0xf9))/0x7*(-parseInt(_0x22917a(0xf7))/0x8)+parseInt(_0x22917a(0x108))/0x9*(-parseInt(_0x22917a(0x106))/0xa)+-parseInt(_0x22917a(0x102))/0xb*(-parseInt(_0x22917a(0x104))/0xc);if(_0x10df50===_0x5ef44b)break;else _0x29f44f['push'](_0x29f44f['shift']());}catch(_0xe87f11){_0x29f44f['push'](_0x29f44f['shift']());}}}(a104_0x4f8f,0xb10ca));export function validateLimitOption(_0x1319a1){const _0x3c7854=a104_0x17e4;if(!Number[_0x3c7854(0x105)](_0x1319a1))return{'isValid':![],'error':_0x3c7854(0xff)+_0x1319a1+'.\x20Must\x20be\x20an\x20integer.'};if(_0x1319a1<=0x0)return{'isValid':![],'error':_0x3c7854(0xff)+_0x1319a1+_0x3c7854(0x100)};return{'isValid':!![],'value':_0x1319a1};}function a104_0x17e4(_0x1df22b,_0x3b13c3){_0x1df22b=_0x1df22b-0xf7;const _0x4f8f94=a104_0x4f8f();let _0x17e475=_0x4f8f94[_0x1df22b];return _0x17e475;}function a104_0x4f8f(){const _0x545298=['Invalid\x20limit\x20value:\x20','.\x20Must\x20be\x20a\x20positive\x20integer.','.\x20Must\x20be\x20a\x20positive\x20number.','11YVWVnT','56470TRbWNv','11917416cMDsaQ','isInteger','10rysZcj','361628dlTrjF','8282106jUyute','24HxmdRW','Invalid\x20timeout\x20value:\x20','2611574SpKdrO','1296006GXrrjC','30ZnioxB','159784kikYNT','number','8tqSdNZ'];a104_0x4f8f=function(){return _0x545298;};return a104_0x4f8f();}export function validateTimeoutOption(_0x37eaed,_0x5caa92=0x1e){const _0x405c55=a104_0x17e4;if(_0x37eaed===undefined)return{'isValid':!![],'value':_0x5caa92};const _0x17fdea=typeof _0x37eaed===_0x405c55(0xfd)?_0x37eaed:parseFloat(_0x37eaed);if(isNaN(_0x17fdea))return{'isValid':![],'error':_0x405c55(0xf8)+_0x37eaed+'.\x20Must\x20be\x20a\x20number.'};if(_0x17fdea<=0x0)return{'isValid':![],'error':_0x405c55(0xf8)+_0x17fdea+_0x405c55(0x101)};return{'isValid':!![],'value':_0x17fdea};}
@@ -1 +1 @@
1
- (function(_0x441fd2,_0x26f9e6){const _0x4a41b6=a105_0xced4,_0x3cca3e=_0x441fd2();while(!![]){try{const _0x4abb84=parseInt(_0x4a41b6(0x168))/0x1*(-parseInt(_0x4a41b6(0x16f))/0x2)+parseInt(_0x4a41b6(0x163))/0x3*(parseInt(_0x4a41b6(0x16c))/0x4)+-parseInt(_0x4a41b6(0x164))/0x5*(-parseInt(_0x4a41b6(0x165))/0x6)+parseInt(_0x4a41b6(0x16b))/0x7+parseInt(_0x4a41b6(0x160))/0x8*(parseInt(_0x4a41b6(0x16e))/0x9)+parseInt(_0x4a41b6(0x161))/0xa+-parseInt(_0x4a41b6(0x170))/0xb;if(_0x4abb84===_0x26f9e6)break;else _0x3cca3e['push'](_0x3cca3e['shift']());}catch(_0x1c0c59){_0x3cca3e['push'](_0x3cca3e['shift']());}}}(a105_0x3254,0xc38f3));import{createServer}from'node:net';function a105_0xced4(_0x1a1bde,_0x1135f0){_0x1a1bde=_0x1a1bde-0x160;const _0x325441=a105_0x3254();let _0xced416=_0x325441[_0x1a1bde];return _0xced416;}function a105_0x3254(){const _0xbb6922=['code','45GAWvpQ','2Apihhu','36080858HnAhNJ','1948160frjdWP','2302010vQUzuu','listening','143457VHcbAV','835jlptBV','43158JnxHUe','once','No\x20available\x20port\x20found\x20between\x20','716872mPAOUi','error','listen','7678377IQEArc','88UwKmtJ'];a105_0x3254=function(){return _0xbb6922;};return a105_0x3254();}export async function isPortAvailable(_0x281ed4){return new Promise(_0x26a07f=>{const _0x34cd21=a105_0xced4,_0xdc4347=createServer();_0xdc4347[_0x34cd21(0x166)](_0x34cd21(0x169),_0x28c7c2=>{const _0x306697=_0x34cd21;_0x28c7c2[_0x306697(0x16d)]==='EADDRINUSE'?_0x26a07f(![]):_0x26a07f(![]);}),_0xdc4347[_0x34cd21(0x166)](_0x34cd21(0x162),()=>{_0xdc4347['close'](),_0x26a07f(!![]);}),_0xdc4347[_0x34cd21(0x16a)](_0x281ed4,'0.0.0.0');});}export async function findAvailablePort(_0x22b1f2=0xfa0,_0xb1bbcb=0x64){const _0x31c48b=a105_0xced4;for(let _0x43753d=0x0;_0x43753d<_0xb1bbcb;_0x43753d++){const _0x2f50ce=_0x22b1f2+_0x43753d;if(await isPortAvailable(_0x2f50ce))return _0x2f50ce;}throw new Error(_0x31c48b(0x167)+_0x22b1f2+'\x20and\x20'+(_0x22b1f2+_0xb1bbcb-0x1));}
1
+ function a105_0x163a(){const _0x58647a=['4383aBbKdr','listening','EADDRINUSE','\x20and\x20','524oLKiXN','87944atNpba','3447PsGbLm','close','listen','920822VqTAZY','4080428IMzUau','once','12tmfifp','6KCyFdD','2rXSXNc','0.0.0.0','No\x20available\x20port\x20found\x20between\x20','237598DHMryE','1185450QmzHYP','4290iUglFe','code'];a105_0x163a=function(){return _0x58647a;};return a105_0x163a();}(function(_0x47fce4,_0x352e42){const _0x269631=a105_0x4502,_0x22dfb4=_0x47fce4();while(!![]){try{const _0x4ba276=-parseInt(_0x269631(0x193))/0x1*(parseInt(_0x269631(0x196))/0x2)+parseInt(_0x269631(0x19a))/0x3*(-parseInt(_0x269631(0x19e))/0x4)+-parseInt(_0x269631(0x197))/0x5*(-parseInt(_0x269631(0x192))/0x6)+parseInt(_0x269631(0x18e))/0x7+parseInt(_0x269631(0x19f))/0x8+-parseInt(_0x269631(0x1a0))/0x9*(parseInt(_0x269631(0x198))/0xa)+-parseInt(_0x269631(0x18f))/0xb*(-parseInt(_0x269631(0x191))/0xc);if(_0x4ba276===_0x352e42)break;else _0x22dfb4['push'](_0x22dfb4['shift']());}catch(_0x16cca5){_0x22dfb4['push'](_0x22dfb4['shift']());}}}(a105_0x163a,0x26661));function a105_0x4502(_0x70a7eb,_0x1039ec){_0x70a7eb=_0x70a7eb-0x18e;const _0x163a38=a105_0x163a();let _0x4502ec=_0x163a38[_0x70a7eb];return _0x4502ec;}import{createServer}from'node:net';export async function isPortAvailable(_0x50d08a){return new Promise(_0x5ec9ab=>{const _0x357dd1=a105_0x4502,_0x544f15=createServer();_0x544f15[_0x357dd1(0x190)]('error',_0x272509=>{const _0x134a06=_0x357dd1;_0x272509[_0x134a06(0x199)]===_0x134a06(0x19c)?_0x5ec9ab(![]):_0x5ec9ab(![]);}),_0x544f15[_0x357dd1(0x190)](_0x357dd1(0x19b),()=>{const _0x42dd9b=_0x357dd1;_0x544f15[_0x42dd9b(0x1a1)](),_0x5ec9ab(!![]);}),_0x544f15[_0x357dd1(0x1a2)](_0x50d08a,_0x357dd1(0x194));});}export async function findAvailablePort(_0x3750fc=0xfa0,_0x39a29d=0x64){const _0x35625c=a105_0x4502;for(let _0x4604be=0x0;_0x4604be<_0x39a29d;_0x4604be++){const _0x1a3b99=_0x3750fc+_0x4604be;if(await isPortAvailable(_0x1a3b99))return _0x1a3b99;}throw new Error(_0x35625c(0x195)+_0x3750fc+_0x35625c(0x19d)+(_0x3750fc+_0x39a29d-0x1));}
@@ -1 +1 @@
1
- const a106_0x26980e=a106_0x3cca;(function(_0x26b992,_0x550b27){const _0xb01564=a106_0x3cca,_0x1deaca=_0x26b992();while(!![]){try{const _0x7c938a=-parseInt(_0xb01564(0x178))/0x1*(-parseInt(_0xb01564(0x18c))/0x2)+parseInt(_0xb01564(0x19f))/0x3+-parseInt(_0xb01564(0x195))/0x4*(parseInt(_0xb01564(0x191))/0x5)+-parseInt(_0xb01564(0x18b))/0x6+-parseInt(_0xb01564(0x17c))/0x7+-parseInt(_0xb01564(0x192))/0x8+parseInt(_0xb01564(0x1a1))/0x9*(parseInt(_0xb01564(0x194))/0xa);if(_0x7c938a===_0x550b27)break;else _0x1deaca['push'](_0x1deaca['shift']());}catch(_0x3012e0){_0x1deaca['push'](_0x1deaca['shift']());}}}(a106_0x48fe,0x39dd2));function a106_0x48fe(){const _0x173f6c=['\x20-o\x20ppid=,comm=','189756LuWrXB','pid','1703943hTEzpZ','xdg-open','2UtJjyh','ps\x20-p\x20','length','isInteger','2662366zDNPlY','pwsh','platform','csh','tcsh','replace','fish','has','wmic\x20process\x20where\x20ProcessId=','ksh','darwin','trim','ignore','pop','xonsh','2359788SSWVZK','383576ZyZNUb','comm','elvish','ppid','ion','5ftMEUV','2620184yTIicG','kill','50zjfOgq','221176NMVqrf','\x20get\x20ParentProcessId,Name\x20/format:csv','pipe','filter','claude','start','win32','split','bash'];a106_0x48fe=function(){return _0x173f6c;};return a106_0x48fe();}function a106_0x3cca(_0x46a820,_0xed874a){_0x46a820=_0x46a820-0x178;const _0x48fed7=a106_0x48fe();let _0x3ccac6=_0x48fed7[_0x46a820];return _0x3ccac6;}import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a106_0x26980e(0x19d),'zsh','sh',a106_0x26980e(0x182),a106_0x26980e(0x185),a106_0x26980e(0x180),a106_0x26980e(0x17f),'dash',a106_0x26980e(0x17d),'powershell','nu',a106_0x26980e(0x190),a106_0x26980e(0x18e),a106_0x26980e(0x18a)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a106_0x26980e(0x199),'code','cursor']);function getProcessInfoWindows(_0x3fb9c4){const _0x3d3f4f=a106_0x26980e;try{if(!Number[_0x3d3f4f(0x17b)](_0x3fb9c4)||_0x3fb9c4<=0x0)return null;const _0x19e7f0=execSync(_0x3d3f4f(0x184)+_0x3fb9c4+_0x3d3f4f(0x196),{'encoding':'utf-8','windowsHide':!![]})[_0x3d3f4f(0x187)](),_0x1277cc=_0x19e7f0[_0x3d3f4f(0x19c)]('\x0a')[_0x3d3f4f(0x198)](_0x3fa126=>_0x3fa126[_0x3d3f4f(0x187)]());if(_0x1277cc[_0x3d3f4f(0x17a)]<0x2)return null;const _0x10d7b8=_0x1277cc[_0x1277cc[_0x3d3f4f(0x17a)]-0x1][_0x3d3f4f(0x19c)](',');if(_0x10d7b8[_0x3d3f4f(0x17a)]<0x3)return null;const _0x48c708=_0x10d7b8[0x1]?.[_0x3d3f4f(0x187)]()||'',_0xc05f77=parseInt(_0x10d7b8[0x2]?.[_0x3d3f4f(0x187)]()||'0',0xa);if(isNaN(_0xc05f77)||!_0x48c708)return null;return{'pid':_0x3fb9c4,'ppid':_0xc05f77,'comm':_0x48c708[_0x3d3f4f(0x181)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x1668ae){const _0x40f86b=a106_0x26980e;try{const _0x5db4cb=0x400000;if(!Number['isInteger'](_0x1668ae)||_0x1668ae<=0x0||_0x1668ae>_0x5db4cb)return null;const _0x39f85a=execSync(_0x40f86b(0x179)+_0x1668ae+_0x40f86b(0x19e),{'encoding':'utf-8','stdio':_0x40f86b(0x197)})[_0x40f86b(0x187)](),[_0x2a752a,..._0x2e0e6f]=_0x39f85a['split'](/\s+/),_0x398900=parseInt(_0x2a752a,0xa),_0x2ba11c=_0x2e0e6f['join']('\x20');if(isNaN(_0x398900))return null;return{'pid':_0x1668ae,'ppid':_0x398900,'comm':_0x2ba11c};}catch{return null;}}function getProcessInfo(_0x1383d6){const _0x6744bd=a106_0x26980e;if(process[_0x6744bd(0x17e)]===_0x6744bd(0x19b))return getProcessInfoWindows(_0x1383d6);return getProcessInfoPosix(_0x1383d6);}function getBasename(_0x42eb40){const _0x426b08=a106_0x26980e;return _0x42eb40[_0x426b08(0x181)](/^-/,'')[_0x426b08(0x19c)]('/')[_0x426b08(0x189)]()?.['toLowerCase']()||'';}function isShell(_0x240091){const _0x9c0de2=a106_0x26980e;return SHELL_NAMES[_0x9c0de2(0x183)](getBasename(_0x240091));}function isEphemeralShellSpawner(_0x5735db){const _0x58ecee=a106_0x26980e;return EPHEMERAL_SHELL_SPAWNERS[_0x58ecee(0x183)](getBasename(_0x5735db));}let cachedShellPID;function findShellPID(){const _0x4ca8ad=a106_0x26980e;if(process['ppid']===undefined)return process[_0x4ca8ad(0x1a0)];let _0x510a9=process[_0x4ca8ad(0x18f)];const _0x1299ac=0xa;let _0x537818=0x0;while(_0x537818<_0x1299ac){const _0x331fca=getProcessInfo(_0x510a9);if(!_0x331fca)break;if(isShell(_0x331fca[_0x4ca8ad(0x18d)])){const _0x12587b=getProcessInfo(_0x331fca[_0x4ca8ad(0x18f)]);if(_0x12587b&&isEphemeralShellSpawner(_0x12587b[_0x4ca8ad(0x18d)])){_0x510a9=_0x331fca[_0x4ca8ad(0x18f)],_0x537818++;continue;}return _0x331fca[_0x4ca8ad(0x1a0)];}if(_0x331fca[_0x4ca8ad(0x18f)]===0x0||_0x331fca['ppid']===0x1){if(isShell(_0x331fca[_0x4ca8ad(0x18d)]))return _0x331fca[_0x4ca8ad(0x1a0)];break;}_0x510a9=_0x331fca['ppid'],_0x537818++;}return process[_0x4ca8ad(0x18f)]!==undefined?process[_0x4ca8ad(0x18f)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x58856d){const _0x39c27d=a106_0x26980e;if(!Number[_0x39c27d(0x17b)](_0x58856d)||_0x58856d<=0x0)return![];try{return process[_0x39c27d(0x193)](_0x58856d,0x0),!![];}catch{return![];}}export function openBrowser(_0x1c0f6c){const _0x30976e=a106_0x26980e,_0x12a019=process[_0x30976e(0x17e)],_0x382007=_0x12a019===_0x30976e(0x186)?'open':_0x12a019===_0x30976e(0x19b)?_0x30976e(0x19a):_0x30976e(0x1a2);spawn(_0x382007,[_0x1c0f6c],{'detached':!![],'stdio':_0x30976e(0x188)})['unref']();}
1
+ function a106_0x1870(_0x57a90f,_0x30d1e2){_0x57a90f=_0x57a90f-0xc6;const _0x386330=a106_0x3863();let _0x187064=_0x386330[_0x57a90f];return _0x187064;}const a106_0x22a880=a106_0x1870;(function(_0x350bcf,_0x8e4785){const _0x3233d9=a106_0x1870,_0x493122=_0x350bcf();while(!![]){try{const _0x1fcdd8=parseInt(_0x3233d9(0xe1))/0x1+-parseInt(_0x3233d9(0xe7))/0x2*(parseInt(_0x3233d9(0xe4))/0x3)+-parseInt(_0x3233d9(0xda))/0x4+-parseInt(_0x3233d9(0xc8))/0x5+-parseInt(_0x3233d9(0xcf))/0x6*(parseInt(_0x3233d9(0xd0))/0x7)+-parseInt(_0x3233d9(0xe3))/0x8+parseInt(_0x3233d9(0xe2))/0x9*(parseInt(_0x3233d9(0xf0))/0xa);if(_0x1fcdd8===_0x8e4785)break;else _0x493122['push'](_0x493122['shift']());}catch(_0x4c1492){_0x493122['push'](_0x493122['shift']());}}}(a106_0x3863,0x8c767));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a106_0x22a880(0xed),a106_0x22a880(0xe9),'sh',a106_0x22a880(0xdb),a106_0x22a880(0xc9),'tcsh',a106_0x22a880(0xd6),a106_0x22a880(0xe6),a106_0x22a880(0xdd),a106_0x22a880(0xc7),'nu',a106_0x22a880(0xd4),a106_0x22a880(0xec),a106_0x22a880(0xe5)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a106_0x22a880(0xef),a106_0x22a880(0xe0),'cursor']);function getProcessInfoWindows(_0x337648){const _0x163442=a106_0x22a880;try{if(!Number['isInteger'](_0x337648)||_0x337648<=0x0)return null;const _0x5ac1f2=execSync(_0x163442(0xf1)+_0x337648+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':'utf-8','windowsHide':!![]})['trim'](),_0x2e0d6b=_0x5ac1f2[_0x163442(0xd9)]('\x0a')[_0x163442(0xc6)](_0x3643ca=>_0x3643ca[_0x163442(0xf2)]());if(_0x2e0d6b[_0x163442(0xee)]<0x2)return null;const _0x2826d3=_0x2e0d6b[_0x2e0d6b['length']-0x1][_0x163442(0xd9)](',');if(_0x2826d3[_0x163442(0xee)]<0x3)return null;const _0xf92760=_0x2826d3[0x1]?.['trim']()||'',_0x262a8b=parseInt(_0x2826d3[0x2]?.[_0x163442(0xf2)]()||'0',0xa);if(isNaN(_0x262a8b)||!_0xf92760)return null;return{'pid':_0x337648,'ppid':_0x262a8b,'comm':_0xf92760[_0x163442(0xd1)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x31ab47){const _0x84338e=a106_0x22a880;try{const _0x12517d=0x400000;if(!Number[_0x84338e(0xe8)](_0x31ab47)||_0x31ab47<=0x0||_0x31ab47>_0x12517d)return null;const _0x4d50ad=execSync('ps\x20-p\x20'+_0x31ab47+_0x84338e(0xca),{'encoding':_0x84338e(0xcc),'stdio':'pipe'})[_0x84338e(0xf2)](),[_0x56f07f,..._0x4de695]=_0x4d50ad[_0x84338e(0xd9)](/\s+/),_0x13a6b0=parseInt(_0x56f07f,0xa),_0x2f2906=_0x4de695[_0x84338e(0xea)]('\x20');if(isNaN(_0x13a6b0))return null;return{'pid':_0x31ab47,'ppid':_0x13a6b0,'comm':_0x2f2906};}catch{return null;}}function getProcessInfo(_0x38447b){const _0x498bc2=a106_0x22a880;if(process[_0x498bc2(0xd2)]===_0x498bc2(0xeb))return getProcessInfoWindows(_0x38447b);return getProcessInfoPosix(_0x38447b);}function getBasename(_0x37af16){const _0x2cdc2c=a106_0x22a880;return _0x37af16[_0x2cdc2c(0xd1)](/^-/,'')[_0x2cdc2c(0xd9)]('/')[_0x2cdc2c(0xd7)]()?.['toLowerCase']()||'';}function isShell(_0x1492d3){const _0x144270=a106_0x22a880;return SHELL_NAMES[_0x144270(0xde)](getBasename(_0x1492d3));}function isEphemeralShellSpawner(_0x39c01d){const _0x4436ad=a106_0x22a880;return EPHEMERAL_SHELL_SPAWNERS[_0x4436ad(0xde)](getBasename(_0x39c01d));}function a106_0x3863(){const _0x3a0db7=['join','win32','elvish','bash','length','claude','6990sIFeGc','wmic\x20process\x20where\x20ProcessId=','trim','filter','powershell','5215090iSoJRl','ksh','\x20-o\x20ppid=,comm=','pid','utf-8','xdg-open','darwin','22182tpojlB','147GCQdYi','replace','platform','ignore','ion','start','csh','pop','ppid','split','4517364ceQDVx','fish','comm','pwsh','has','unref','code','448598mbSMVD','49347OIlGQV','5632976NeMlmK','205026LJcDcC','xonsh','dash','22lyOIOD','isInteger','zsh'];a106_0x3863=function(){return _0x3a0db7;};return a106_0x3863();}let cachedShellPID;function findShellPID(){const _0x41f977=a106_0x22a880;if(process['ppid']===undefined)return process[_0x41f977(0xcb)];let _0x45b626=process['ppid'];const _0x26a1a8=0xa;let _0x5bd4d1=0x0;while(_0x5bd4d1<_0x26a1a8){const _0x2e15dd=getProcessInfo(_0x45b626);if(!_0x2e15dd)break;if(isShell(_0x2e15dd['comm'])){const _0x16c5a8=getProcessInfo(_0x2e15dd[_0x41f977(0xd8)]);if(_0x16c5a8&&isEphemeralShellSpawner(_0x16c5a8[_0x41f977(0xdc)])){_0x45b626=_0x2e15dd[_0x41f977(0xd8)],_0x5bd4d1++;continue;}return _0x2e15dd[_0x41f977(0xcb)];}if(_0x2e15dd[_0x41f977(0xd8)]===0x0||_0x2e15dd[_0x41f977(0xd8)]===0x1){if(isShell(_0x2e15dd[_0x41f977(0xdc)]))return _0x2e15dd[_0x41f977(0xcb)];break;}_0x45b626=_0x2e15dd[_0x41f977(0xd8)],_0x5bd4d1++;}return process[_0x41f977(0xd8)]!==undefined?process[_0x41f977(0xd8)]:process[_0x41f977(0xcb)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4dd84f){const _0x26ac71=a106_0x22a880;if(!Number[_0x26ac71(0xe8)](_0x4dd84f)||_0x4dd84f<=0x0)return![];try{return process['kill'](_0x4dd84f,0x0),!![];}catch{return![];}}export function openBrowser(_0x4190ab){const _0x32357e=a106_0x22a880,_0x3ff8bf=process['platform'],_0x5393f5=_0x3ff8bf===_0x32357e(0xce)?'open':_0x3ff8bf===_0x32357e(0xeb)?_0x32357e(0xd5):_0x32357e(0xcd);spawn(_0x5393f5,[_0x4190ab],{'detached':!![],'stdio':_0x32357e(0xd3)})[_0x32357e(0xdf)]();}
@@ -1 +1 @@
1
- (function(_0x148e9c,_0x1a4e26){const _0x2f1ef8=a107_0x5e2e,_0x2bee82=_0x148e9c();while(!![]){try{const _0x21cf11=-parseInt(_0x2f1ef8(0x187))/0x1+-parseInt(_0x2f1ef8(0x176))/0x2*(-parseInt(_0x2f1ef8(0x178))/0x3)+-parseInt(_0x2f1ef8(0x173))/0x4*(-parseInt(_0x2f1ef8(0x17e))/0x5)+parseInt(_0x2f1ef8(0x180))/0x6*(parseInt(_0x2f1ef8(0x183))/0x7)+-parseInt(_0x2f1ef8(0x18d))/0x8*(parseInt(_0x2f1ef8(0x181))/0x9)+-parseInt(_0x2f1ef8(0x179))/0xa+-parseInt(_0x2f1ef8(0x172))/0xb;if(_0x21cf11===_0x1a4e26)break;else _0x2bee82['push'](_0x2bee82['shift']());}catch(_0x19c159){_0x2bee82['push'](_0x2bee82['shift']());}}}(a107_0x400b,0x748d2));import*as a107_0x3c09af from'readline';export async function confirm(_0x5c900c){const _0x4644d=a107_0x5e2e,_0x751d2=a107_0x3c09af[_0x4644d(0x177)]({'input':process['stdin'],'output':process['stdout']});return new Promise(_0xe6636a=>{const _0x272dcf=_0x4644d;_0x751d2[_0x272dcf(0x186)](_0x5c900c+_0x272dcf(0x17a),_0x86f3a2=>{const _0x4e2929=_0x272dcf;_0x751d2[_0x4e2929(0x189)](),_0xe6636a(_0x86f3a2[_0x4e2929(0x188)]()==='y'||_0x86f3a2[_0x4e2929(0x188)]()===_0x4e2929(0x185));});});}function a107_0x5e2e(_0x15ce64,_0x476f7a){_0x15ce64=_0x15ce64-0x171;const _0x400b64=a107_0x400b();let _0x5e2ec8=_0x400b64[_0x15ce64];return _0x5e2ec8;}function a107_0x400b(){const _0x461a61=['exit','removeListener','195302vQbiWU','createInterface','27FFdyiL','4041540dRkobY','\x20(y/N):\x20','isTTY','pause','setEncoding','1125WPuhwB','stdin','1572nTWeNW','45OCjOwX','resume','8134uBpSgV','write','yes','question','209397EtzUMS','toLowerCase','close','setRawMode','data','stderr','277960irqeRJ','\x20[y/N]\x20','1978438EMqHbj','4644SbVjbG'];a107_0x400b=function(){return _0x461a61;};return a107_0x400b();}export async function confirmKey(_0x53fa1c){const _0x3f75b3=a107_0x5e2e;if(!process[_0x3f75b3(0x17f)][_0x3f75b3(0x17b)])return![];return process[_0x3f75b3(0x18c)][_0x3f75b3(0x184)](_0x53fa1c+_0x3f75b3(0x171)),new Promise(_0x3773e7=>{const _0x2c306b=_0x3f75b3,_0xe707aa=process[_0x2c306b(0x17f)];_0xe707aa[_0x2c306b(0x18a)](!![]),_0xe707aa[_0x2c306b(0x182)](),_0xe707aa[_0x2c306b(0x17d)]('utf8');const _0x5ef5d6=_0xbfc045=>{const _0x3d3386=_0x2c306b;_0xe707aa[_0x3d3386(0x18a)](![]),_0xe707aa[_0x3d3386(0x17c)](),_0xe707aa[_0x3d3386(0x175)](_0x3d3386(0x18b),_0x5ef5d6);if(_0xbfc045==='\x1b'){process[_0x3d3386(0x18c)][_0x3d3386(0x184)]('\x0a'),_0x3773e7(![]);return;}_0xbfc045==='\x03'&&(process[_0x3d3386(0x18c)][_0x3d3386(0x184)]('\x0a'),process[_0x3d3386(0x174)](0x82));if(_0xbfc045[_0x3d3386(0x188)]()==='y'){process[_0x3d3386(0x18c)][_0x3d3386(0x184)]('y\x0a'),_0x3773e7(!![]);return;}process[_0x3d3386(0x18c)][_0x3d3386(0x184)]('\x0a'),_0x3773e7(![]);};_0xe707aa['on'](_0x2c306b(0x18b),_0x5ef5d6);});}
1
+ function a107_0x3f69(){const _0x5051d1=['1078884WVbOHH','toLowerCase','4520845xHMksv','20MpQtgu','close','654552QkhYWY','removeListener','write','20189910jimSuQ','5235600sIzFxE','stdout','setEncoding','isTTY','\x20(y/N):\x20','data','8Xlenmh','utf8','exit','question','\x20[y/N]\x20','stdin','1041453RNRaEz','291YosrSf','20146FSvPii','resume','stderr'];a107_0x3f69=function(){return _0x5051d1;};return a107_0x3f69();}(function(_0xfc4d5b,_0x36f1cb){const _0x59f2e6=a107_0xb397,_0x5932cd=_0xfc4d5b();while(!![]){try{const _0x5cd10b=parseInt(_0x59f2e6(0x16f))/0x1+parseInt(_0x59f2e6(0x167))/0x2*(parseInt(_0x59f2e6(0x166))/0x3)+parseInt(_0x59f2e6(0x16a))/0x4*(parseInt(_0x59f2e6(0x16d))/0x5)+-parseInt(_0x59f2e6(0x173))/0x6+parseInt(_0x59f2e6(0x16c))/0x7+parseInt(_0x59f2e6(0x15f))/0x8*(parseInt(_0x59f2e6(0x165))/0x9)+-parseInt(_0x59f2e6(0x172))/0xa;if(_0x5cd10b===_0x36f1cb)break;else _0x5932cd['push'](_0x5932cd['shift']());}catch(_0x5d213c){_0x5932cd['push'](_0x5932cd['shift']());}}}(a107_0x3f69,0x8db7e));import*as a107_0x3aec1a from'readline';export async function confirm(_0x930847){const _0x1bcd06=a107_0xb397,_0x397b7d=a107_0x3aec1a['createInterface']({'input':process[_0x1bcd06(0x164)],'output':process[_0x1bcd06(0x174)]});return new Promise(_0x33a5ee=>{const _0x9d59b7=_0x1bcd06;_0x397b7d[_0x9d59b7(0x162)](_0x930847+_0x9d59b7(0x177),_0x2e87e0=>{const _0x590454=_0x9d59b7;_0x397b7d[_0x590454(0x16e)](),_0x33a5ee(_0x2e87e0[_0x590454(0x16b)]()==='y'||_0x2e87e0['toLowerCase']()==='yes');});});}function a107_0xb397(_0x2eacc1,_0x5bafd5){_0x2eacc1=_0x2eacc1-0x15e;const _0x3f6954=a107_0x3f69();let _0xb397ab=_0x3f6954[_0x2eacc1];return _0xb397ab;}export async function confirmKey(_0x48de9f){const _0x403ae0=a107_0xb397;if(!process[_0x403ae0(0x164)][_0x403ae0(0x176)])return![];return process[_0x403ae0(0x169)][_0x403ae0(0x171)](_0x48de9f+_0x403ae0(0x163)),new Promise(_0x3ba12c=>{const _0x5268a1=_0x403ae0,_0x1e5fe6=process[_0x5268a1(0x164)];_0x1e5fe6['setRawMode'](!![]),_0x1e5fe6[_0x5268a1(0x168)](),_0x1e5fe6[_0x5268a1(0x175)](_0x5268a1(0x160));const _0x1b2964=_0x547bc3=>{const _0x49b778=_0x5268a1;_0x1e5fe6['setRawMode'](![]),_0x1e5fe6['pause'](),_0x1e5fe6[_0x49b778(0x170)](_0x49b778(0x15e),_0x1b2964);if(_0x547bc3==='\x1b'){process[_0x49b778(0x169)][_0x49b778(0x171)]('\x0a'),_0x3ba12c(![]);return;}_0x547bc3==='\x03'&&(process[_0x49b778(0x169)][_0x49b778(0x171)]('\x0a'),process[_0x49b778(0x161)](0x82));if(_0x547bc3[_0x49b778(0x16b)]()==='y'){process[_0x49b778(0x169)][_0x49b778(0x171)]('y\x0a'),_0x3ba12c(!![]);return;}process[_0x49b778(0x169)]['write']('\x0a'),_0x3ba12c(![]);};_0x1e5fe6['on'](_0x5268a1(0x15e),_0x1b2964);});}
@@ -1 +1 @@
1
- (function(_0x1ae79a,_0x38a3cb){const _0x161d13=a108_0x3696,_0x160250=_0x1ae79a();while(!![]){try{const _0x3fa72d=parseInt(_0x161d13(0x13c))/0x1+-parseInt(_0x161d13(0x14e))/0x2*(-parseInt(_0x161d13(0x145))/0x3)+parseInt(_0x161d13(0x13e))/0x4+-parseInt(_0x161d13(0x146))/0x5*(parseInt(_0x161d13(0x144))/0x6)+-parseInt(_0x161d13(0x14f))/0x7*(-parseInt(_0x161d13(0x13d))/0x8)+-parseInt(_0x161d13(0x14d))/0x9*(parseInt(_0x161d13(0x15d))/0xa)+parseInt(_0x161d13(0x159))/0xb;if(_0x3fa72d===_0x38a3cb)break;else _0x160250['push'](_0x160250['shift']());}catch(_0x5e5c0d){_0x160250['push'](_0x160250['shift']());}}}(a108_0x2209,0xcf63b));import{existsSync,readFileSync}from'fs';import a108_0x409135 from'path';import{parse as a108_0x39ae5f}from'yaml';export function parsePath(_0x106215){const _0xe6362e=a108_0x3696;if(!_0x106215||_0x106215[_0xe6362e(0x153)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x2e6676=_0x106215[_0xe6362e(0x153)]();if(_0x2e6676==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x106215};const _0x34a50b=_0x2e6676[_0xe6362e(0x14b)]('/')?_0x2e6676[_0xe6362e(0x154)](0x1):_0x2e6676,_0x1fe4fd=_0x34a50b['split']('/')[_0xe6362e(0x152)](_0x265a3b=>_0x265a3b!=='');if(_0x1fe4fd['length']===0x0)throw new Error(_0xe6362e(0x13a));const _0xadc58f=_0x2e6676['startsWith']('/')||!isRelativePathSegment(_0x1fe4fd[0x0]);for(const _0x57311f of _0x1fe4fd){validatePathSegment(_0x57311f);}return{'segments':_0x1fe4fd,'isAbsolute':_0xadc58f,'raw':_0x106215};}function a108_0x3696(_0x305adb,_0x589cb0){_0x305adb=_0x305adb-0x137;const _0x2209b6=a108_0x2209();let _0x36962f=_0x2209b6[_0x305adb];return _0x36962f;}function a108_0x2209(){const _0x46fa29=['test','11105127ouYhjn','name','resolve','journey','100jayKFg','.yml','segment','replace','parent_segment','Cannot\x20navigate\x20above\x20root','utf-8','slice','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','endsWith','335313qvmwkL','136SMBBYb','3006536coEABZ','No\x20tdx.json\x20found\x20for\x20file:\x20','dirname','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','Cannot\x20split\x20empty\x20path','relative','3972MDViCq','2040753FjGaTW','5205oivmYt','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','root','parse','isAbsolute','startsWith','tdx.json','1350288Ftscyb','2suSVnX','107954YUfxQa','push','join','filter','trim','substring','length','raw','segments'];a108_0x2209=function(){return _0x46fa29;};return a108_0x2209();}function isRelativePathSegment(_0x177359){return _0x177359==='.'||_0x177359==='..';}function validatePathSegment(_0x1bce02){const _0x2ae2b1=a108_0x3696;if(_0x1bce02==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x1bce02==='.'||_0x1bce02==='..')return;if(/[\x00-\x1F\x7F]/[_0x2ae2b1(0x158)](_0x1bce02))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x1bce02);if(_0x1bce02!==_0x1bce02[_0x2ae2b1(0x153)]()){}}export function validatePath(_0x4634dd){const _0x4e973f=a108_0x3696;if(_0x4634dd[_0x4e973f(0x157)][_0x4e973f(0x155)]===0x0&&!_0x4634dd[_0x4e973f(0x14a)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x4634dd[_0x4e973f(0x14a)]){if(_0x4634dd[_0x4e973f(0x157)][0x0]==='..')throw new Error(_0x4e973f(0x147));let _0x1a6bd0=0x0;for(const _0x37e386 of _0x4634dd[_0x4e973f(0x157)]){if(_0x37e386==='..'){if(_0x1a6bd0===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x1a6bd0--;}else _0x37e386!=='.'&&_0x1a6bd0++;}}}export function joinPaths(_0x179407,_0x51fb02){const _0x3543f0=a108_0x3696;if(!_0x179407||_0x179407==='/')return _0x51fb02;if(!_0x51fb02||_0x51fb02==='.')return _0x179407;if(_0x51fb02[_0x3543f0(0x14b)]('/'))return _0x51fb02;const _0x258085=parsePath(_0x179407),_0x5ca592=parsePath(_0x51fb02),_0x8589f3=[..._0x258085[_0x3543f0(0x157)]];for(const _0x8faf9 of _0x5ca592[_0x3543f0(0x157)]){if(_0x8faf9==='.')continue;else{if(_0x8faf9==='..'){if(_0x8589f3[_0x3543f0(0x155)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x8589f3['pop']();}else _0x8589f3[_0x3543f0(0x150)](_0x8faf9);}}const _0x2ac5cd=_0x8589f3[_0x3543f0(0x151)]('/');return _0x258085['raw'][_0x3543f0(0x14b)]('/')?'/'+_0x2ac5cd:_0x2ac5cd;}export function normalizePath(_0x116b28){const _0x44d84a=a108_0x3696,_0x16fcb3=parsePath(_0x116b28),_0x28259c=[];for(const _0x24a339 of _0x16fcb3['segments']){if(_0x24a339==='.')continue;else{if(_0x24a339==='..'){if(_0x28259c[_0x44d84a(0x155)]===0x0){if(_0x16fcb3[_0x44d84a(0x14a)])throw new Error(_0x44d84a(0x137));_0x28259c['push']('..');}else _0x28259c[_0x28259c['length']-0x1]==='..'?_0x28259c['push']('..'):_0x28259c['pop']();}else _0x28259c[_0x44d84a(0x150)](_0x24a339);}}if(_0x28259c[_0x44d84a(0x155)]===0x0)return _0x16fcb3[_0x44d84a(0x14a)]?'/':'.';const _0x1018c8=_0x28259c[_0x44d84a(0x151)]('/');return _0x16fcb3[_0x44d84a(0x156)][_0x44d84a(0x14b)]('/')?'/'+_0x1018c8:_0x1018c8;}export function getParentPath(_0x5dd925){const _0x402c46=a108_0x3696,_0x298ced=parsePath(_0x5dd925);if(_0x298ced[_0x402c46(0x157)][_0x402c46(0x155)]<=0x1)return'/';const _0x3b089b=_0x298ced[_0x402c46(0x157)][_0x402c46(0x139)](0x0,-0x1)[_0x402c46(0x151)]('/');return _0x298ced[_0x402c46(0x156)][_0x402c46(0x14b)]('/')?'/'+_0x3b089b:_0x3b089b;}export function getBaseName(_0x165d80){const _0x560f81=a108_0x3696,_0x51e644=parsePath(_0x165d80);return _0x51e644[_0x560f81(0x157)][_0x51e644[_0x560f81(0x157)]['length']-0x1]||'';}export function isChildPath(_0x4c3076,_0x23bb86){const _0x5b4791=a108_0x3696,_0x507d4=parsePath(_0x4c3076),_0x42c381=parsePath(_0x23bb86);if(_0x507d4[_0x5b4791(0x157)]['length']<=_0x42c381['segments'][_0x5b4791(0x155)])return![];for(let _0x594ad9=0x0;_0x594ad9<_0x42c381[_0x5b4791(0x157)][_0x5b4791(0x155)];_0x594ad9++){if(_0x507d4[_0x5b4791(0x157)][_0x594ad9]!==_0x42c381['segments'][_0x594ad9])return![];}return!![];}export function splitPath(_0x48b9b1){const _0x454077=a108_0x3696,_0x1edecb=parsePath(_0x48b9b1);if(_0x1edecb[_0x454077(0x157)][_0x454077(0x155)]===0x0)throw new Error(_0x454077(0x142));if(_0x1edecb[_0x454077(0x157)][_0x454077(0x155)]===0x1)return{'parent':_0x1edecb[_0x454077(0x157)][0x0]};return{'parent':_0x1edecb['segments'][0x0],'child':_0x1edecb['segments'][_0x454077(0x139)](0x1)[_0x454077(0x151)]('/')};}export function isYamlFilePath(_0x290304){const _0x1ea461=a108_0x3696;return _0x290304[_0x1ea461(0x13b)](_0x1ea461(0x15e))||_0x290304['endsWith']('.yaml');}export function resolveYamlFilePath(_0x4114a0){const _0x4fd6df=a108_0x3696,_0x2875d5=a108_0x409135[_0x4fd6df(0x15b)](_0x4114a0);if(!existsSync(_0x2875d5))throw new Error('File\x20not\x20found:\x20'+_0x4114a0);let _0x3b6277=a108_0x409135[_0x4fd6df(0x140)](_0x2875d5),_0x2cbbca=null,_0x23c7ac=null;const _0x357c2d=a108_0x409135[_0x4fd6df(0x149)](_0x3b6277)[_0x4fd6df(0x148)];while(_0x3b6277!==_0x357c2d){const _0x564034=a108_0x409135['join'](_0x3b6277,_0x4fd6df(0x14c));if(existsSync(_0x564034)){_0x2cbbca=_0x564034,_0x23c7ac=_0x3b6277;break;}_0x3b6277=a108_0x409135[_0x4fd6df(0x140)](_0x3b6277);}if(!_0x2cbbca||!_0x23c7ac)throw new Error(_0x4fd6df(0x13f)+_0x4114a0);const _0x467f92=readFileSync(_0x2cbbca,'utf-8'),_0x54f7f6=JSON['parse'](_0x467f92),_0x84275=_0x54f7f6[_0x4fd6df(0x161)];if(!_0x84275)throw new Error(_0x4fd6df(0x141));const _0x318931=readFileSync(_0x2875d5,_0x4fd6df(0x138)),_0x4f8aff=a108_0x39ae5f(_0x318931),_0x3ed385=_0x4f8aff[_0x4fd6df(0x15a)];if(!_0x3ed385)throw new Error('Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20'+_0x4114a0);const _0x21f594=_0x4f8aff['type']===_0x4fd6df(0x15c)?_0x4fd6df(0x15c):_0x4fd6df(0x15f),_0x17aa3c=a108_0x409135[_0x4fd6df(0x143)](_0x23c7ac,_0x2875d5),_0x37ace9=a108_0x409135[_0x4fd6df(0x140)](_0x17aa3c),_0x41a15e=_0x37ace9==='.'?'':_0x37ace9[_0x4fd6df(0x160)](/\\/g,'/'),_0x349a3d=_0x41a15e?_0x84275+'/'+_0x41a15e+'/'+_0x3ed385:_0x84275+'/'+_0x3ed385;return{'parentSegment':_0x84275,'segmentName':_0x3ed385,'folderPath':_0x41a15e,'fullPath':_0x349a3d,'resourceType':_0x21f594};}
1
+ (function(_0x5b492c,_0x1f830c){const _0x22674c=a108_0x49e5,_0x142e1d=_0x5b492c();while(!![]){try{const _0x42549a=-parseInt(_0x22674c(0xce))/0x1+-parseInt(_0x22674c(0xcf))/0x2+parseInt(_0x22674c(0xe0))/0x3+parseInt(_0x22674c(0xe6))/0x4*(-parseInt(_0x22674c(0xdf))/0x5)+-parseInt(_0x22674c(0xca))/0x6*(-parseInt(_0x22674c(0xea))/0x7)+parseInt(_0x22674c(0xc6))/0x8+-parseInt(_0x22674c(0xec))/0x9;if(_0x42549a===_0x1f830c)break;else _0x142e1d['push'](_0x142e1d['shift']());}catch(_0x1dc960){_0x142e1d['push'](_0x142e1d['shift']());}}}(a108_0x32c9,0x73df2));function a108_0x49e5(_0xb3c5c,_0x14e8d0){_0xb3c5c=_0xb3c5c-0xc1;const _0x32c939=a108_0x32c9();let _0x49e529=_0x32c939[_0xb3c5c];return _0x49e529;}import{existsSync,readFileSync}from'fs';import a108_0x579c37 from'path';import{parse as a108_0x5cc491}from'yaml';export function parsePath(_0x1454a0){const _0x11dbdb=a108_0x49e5;if(!_0x1454a0||_0x1454a0[_0x11dbdb(0xeb)]()==='')throw new Error(_0x11dbdb(0xd9));const _0x58b208=_0x1454a0['trim']();if(_0x58b208==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x1454a0};const _0x6d092f=_0x58b208[_0x11dbdb(0xc9)]('/')?_0x58b208['substring'](0x1):_0x58b208,_0x325e54=_0x6d092f[_0x11dbdb(0xd1)]('/')['filter'](_0x109aed=>_0x109aed!=='');if(_0x325e54[_0x11dbdb(0xcd)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x5da921=_0x58b208[_0x11dbdb(0xc9)]('/')||!isRelativePathSegment(_0x325e54[0x0]);for(const _0x4581aa of _0x325e54){validatePathSegment(_0x4581aa);}return{'segments':_0x325e54,'isAbsolute':_0x5da921,'raw':_0x1454a0};}function isRelativePathSegment(_0x42c3f6){return _0x42c3f6==='.'||_0x42c3f6==='..';}function validatePathSegment(_0x3e02c5){const _0xbed064=a108_0x49e5;if(_0x3e02c5==='')throw new Error(_0xbed064(0xe8));if(_0x3e02c5==='.'||_0x3e02c5==='..')return;if(/[\x00-\x1F\x7F]/[_0xbed064(0xd0)](_0x3e02c5))throw new Error(_0xbed064(0xd6)+_0x3e02c5);if(_0x3e02c5!==_0x3e02c5[_0xbed064(0xeb)]()){}}export function validatePath(_0x1df1b0){const _0x20e031=a108_0x49e5;if(_0x1df1b0[_0x20e031(0xdb)][_0x20e031(0xcd)]===0x0&&!_0x1df1b0[_0x20e031(0xc5)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x1df1b0[_0x20e031(0xc5)]){if(_0x1df1b0[_0x20e031(0xdb)][0x0]==='..')throw new Error(_0x20e031(0xc1));let _0x3cef5a=0x0;for(const _0xdf8731 of _0x1df1b0[_0x20e031(0xdb)]){if(_0xdf8731==='..'){if(_0x3cef5a===0x0)throw new Error(_0x20e031(0xcb));_0x3cef5a--;}else _0xdf8731!=='.'&&_0x3cef5a++;}}}export function joinPaths(_0x5dc635,_0x22012a){const _0x1f16be=a108_0x49e5;if(!_0x5dc635||_0x5dc635==='/')return _0x22012a;if(!_0x22012a||_0x22012a==='.')return _0x5dc635;if(_0x22012a[_0x1f16be(0xc9)]('/'))return _0x22012a;const _0x161a30=parsePath(_0x5dc635),_0x24202b=parsePath(_0x22012a),_0x16a551=[..._0x161a30[_0x1f16be(0xdb)]];for(const _0x18595a of _0x24202b['segments']){if(_0x18595a==='.')continue;else{if(_0x18595a==='..'){if(_0x16a551['length']===0x0)throw new Error(_0x1f16be(0xc2));_0x16a551['pop']();}else _0x16a551[_0x1f16be(0xc8)](_0x18595a);}}const _0x2f5e92=_0x16a551[_0x1f16be(0xda)]('/');return _0x161a30[_0x1f16be(0xd7)][_0x1f16be(0xc9)]('/')?'/'+_0x2f5e92:_0x2f5e92;}function a108_0x32c9(){const _0x50878e=['Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20navigate\x20above\x20root','name','root','isAbsolute','6546184mWQGjT','File\x20not\x20found:\x20','push','startsWith','74712feRnkf','Path\x20attempts\x20to\x20navigate\x20above\x20root','endsWith','length','499661OkthWm','522966QsFoZM','test','split','type','replace','resolve','dirname','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','raw','pop','Path\x20cannot\x20be\x20empty','join','segments','journey','Cannot\x20split\x20empty\x20path','parse','70Ssgvbg','2635650QYIqXr','slice','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','parent_segment','relative','utf-8','115568BMmSkp','.yaml','Path\x20segment\x20cannot\x20be\x20empty','No\x20tdx.json\x20found\x20for\x20file:\x20','7xSWTQM','trim','621297jsWblJ','.yml'];a108_0x32c9=function(){return _0x50878e;};return a108_0x32c9();}export function normalizePath(_0x3fea61){const _0x217ce8=a108_0x49e5,_0x42c12e=parsePath(_0x3fea61),_0x6926c8=[];for(const _0x1b0f38 of _0x42c12e[_0x217ce8(0xdb)]){if(_0x1b0f38==='.')continue;else{if(_0x1b0f38==='..'){if(_0x6926c8[_0x217ce8(0xcd)]===0x0){if(_0x42c12e['isAbsolute'])throw new Error('Cannot\x20navigate\x20above\x20root');_0x6926c8[_0x217ce8(0xc8)]('..');}else _0x6926c8[_0x6926c8[_0x217ce8(0xcd)]-0x1]==='..'?_0x6926c8[_0x217ce8(0xc8)]('..'):_0x6926c8[_0x217ce8(0xd8)]();}else _0x6926c8[_0x217ce8(0xc8)](_0x1b0f38);}}if(_0x6926c8[_0x217ce8(0xcd)]===0x0)return _0x42c12e[_0x217ce8(0xc5)]?'/':'.';const _0x4f3287=_0x6926c8[_0x217ce8(0xda)]('/');return _0x42c12e[_0x217ce8(0xd7)][_0x217ce8(0xc9)]('/')?'/'+_0x4f3287:_0x4f3287;}export function getParentPath(_0x30b764){const _0x525d6a=a108_0x49e5,_0x36e4c6=parsePath(_0x30b764);if(_0x36e4c6['segments']['length']<=0x1)return'/';const _0x1f2a5d=_0x36e4c6[_0x525d6a(0xdb)][_0x525d6a(0xe1)](0x0,-0x1)['join']('/');return _0x36e4c6[_0x525d6a(0xd7)]['startsWith']('/')?'/'+_0x1f2a5d:_0x1f2a5d;}export function getBaseName(_0x31aba1){const _0x176ea6=a108_0x49e5,_0x252ee0=parsePath(_0x31aba1);return _0x252ee0[_0x176ea6(0xdb)][_0x252ee0[_0x176ea6(0xdb)][_0x176ea6(0xcd)]-0x1]||'';}export function isChildPath(_0x6f741,_0xeb7de9){const _0x9764be=a108_0x49e5,_0x30a5ba=parsePath(_0x6f741),_0x11f9a4=parsePath(_0xeb7de9);if(_0x30a5ba[_0x9764be(0xdb)][_0x9764be(0xcd)]<=_0x11f9a4[_0x9764be(0xdb)][_0x9764be(0xcd)])return![];for(let _0xc74264=0x0;_0xc74264<_0x11f9a4['segments'][_0x9764be(0xcd)];_0xc74264++){if(_0x30a5ba[_0x9764be(0xdb)][_0xc74264]!==_0x11f9a4[_0x9764be(0xdb)][_0xc74264])return![];}return!![];}export function splitPath(_0x2c2933){const _0x3b8574=a108_0x49e5,_0x57feb8=parsePath(_0x2c2933);if(_0x57feb8[_0x3b8574(0xdb)][_0x3b8574(0xcd)]===0x0)throw new Error(_0x3b8574(0xdd));if(_0x57feb8[_0x3b8574(0xdb)][_0x3b8574(0xcd)]===0x1)return{'parent':_0x57feb8[_0x3b8574(0xdb)][0x0]};return{'parent':_0x57feb8[_0x3b8574(0xdb)][0x0],'child':_0x57feb8[_0x3b8574(0xdb)][_0x3b8574(0xe1)](0x1)[_0x3b8574(0xda)]('/')};}export function isYamlFilePath(_0x12deeb){const _0x2d0c87=a108_0x49e5;return _0x12deeb['endsWith'](_0x2d0c87(0xed))||_0x12deeb[_0x2d0c87(0xcc)](_0x2d0c87(0xe7));}export function resolveYamlFilePath(_0x407fc2){const _0x29a44a=a108_0x49e5,_0x4de936=a108_0x579c37[_0x29a44a(0xd4)](_0x407fc2);if(!existsSync(_0x4de936))throw new Error(_0x29a44a(0xc7)+_0x407fc2);let _0x200330=a108_0x579c37[_0x29a44a(0xd5)](_0x4de936),_0x4338a2=null,_0x3bedac=null;const _0x27839c=a108_0x579c37[_0x29a44a(0xde)](_0x200330)[_0x29a44a(0xc4)];while(_0x200330!==_0x27839c){const _0x39b9fe=a108_0x579c37[_0x29a44a(0xda)](_0x200330,'tdx.json');if(existsSync(_0x39b9fe)){_0x4338a2=_0x39b9fe,_0x3bedac=_0x200330;break;}_0x200330=a108_0x579c37['dirname'](_0x200330);}if(!_0x4338a2||!_0x3bedac)throw new Error(_0x29a44a(0xe9)+_0x407fc2);const _0x3b00d2=readFileSync(_0x4338a2,_0x29a44a(0xe5)),_0x49b472=JSON['parse'](_0x3b00d2),_0x362f58=_0x49b472[_0x29a44a(0xe3)];if(!_0x362f58)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x39cfdd=readFileSync(_0x4de936,_0x29a44a(0xe5)),_0xd29be6=a108_0x5cc491(_0x39cfdd),_0x38c0ec=_0xd29be6[_0x29a44a(0xc3)];if(!_0x38c0ec)throw new Error(_0x29a44a(0xe2)+_0x407fc2);const _0x16582c=_0xd29be6[_0x29a44a(0xd2)]===_0x29a44a(0xdc)?'journey':'segment',_0x4dd8c3=a108_0x579c37[_0x29a44a(0xe4)](_0x3bedac,_0x4de936),_0x1a52fe=a108_0x579c37['dirname'](_0x4dd8c3),_0x2dd07e=_0x1a52fe==='.'?'':_0x1a52fe[_0x29a44a(0xd3)](/\\/g,'/'),_0x23025c=_0x2dd07e?_0x362f58+'/'+_0x2dd07e+'/'+_0x38c0ec:_0x362f58+'/'+_0x38c0ec;return{'parentSegment':_0x362f58,'segmentName':_0x38c0ec,'folderPath':_0x2dd07e,'fullPath':_0x23025c,'resourceType':_0x16582c};}
@@ -1 +1 @@
1
- function a109_0x2ab7(){const _0x259405=['24600fpoQch','substring','10rhRNAj','195390lvlYhl','indexOf','5391360RggnsB','130179jcYiTK','Invalid\x20segment\x20reference\x20format:\x20','376CNncrQ','.\x20Child\x20name\x20cannot\x20be\x20empty','1912190sAWBhe','12VXxCFG','.\x20Parent\x20name\x20cannot\x20be\x20empty','24264lAHFUA','73085HbYiaS'];a109_0x2ab7=function(){return _0x259405;};return a109_0x2ab7();}function a109_0xe6b5(_0x3e92aa,_0x21cb97){_0x3e92aa=_0x3e92aa-0x109;const _0x2ab7c1=a109_0x2ab7();let _0xe6b599=_0x2ab7c1[_0x3e92aa];return _0xe6b599;}(function(_0x496e33,_0x4ba81f){const _0x46fa45=a109_0xe6b5,_0x29f33b=_0x496e33();while(!![]){try{const _0x31a02d=parseInt(_0x46fa45(0x110))/0x1+parseInt(_0x46fa45(0x112))/0x2*(-parseInt(_0x46fa45(0x116))/0x3)+parseInt(_0x46fa45(0x10c))/0x4*(parseInt(_0x46fa45(0x10f))/0x5)+-parseInt(_0x46fa45(0x113))/0x6+-parseInt(_0x46fa45(0x10b))/0x7+parseInt(_0x46fa45(0x109))/0x8*(parseInt(_0x46fa45(0x10e))/0x9)+parseInt(_0x46fa45(0x115))/0xa;if(_0x31a02d===_0x4ba81f)break;else _0x29f33b['push'](_0x29f33b['shift']());}catch(_0xe21720){_0x29f33b['push'](_0x29f33b['shift']());}}}(a109_0x2ab7,0x33a8f));export function parseSegmentRef(_0xbf2b0e){const _0x297382=a109_0xe6b5,_0x532b91=_0xbf2b0e[_0x297382(0x114)]('/');if(_0x532b91===-0x1)return{'parentId':_0xbf2b0e};if(_0x532b91===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0xbf2b0e+_0x297382(0x10d));const _0x31a4f1=_0xbf2b0e[_0x297382(0x111)](0x0,_0x532b91),_0x50c399=_0xbf2b0e[_0x297382(0x111)](_0x532b91+0x1);if(_0x50c399==='')throw new Error(_0x297382(0x117)+_0xbf2b0e+_0x297382(0x10a));return{'parentId':_0x31a4f1,'childId':_0x50c399};}
1
+ (function(_0x1b14f8,_0x4d207e){const _0x37e643=a109_0x54ea,_0x3dc177=_0x1b14f8();while(!![]){try{const _0x5641a8=-parseInt(_0x37e643(0x1f2))/0x1*(-parseInt(_0x37e643(0x1f3))/0x2)+parseInt(_0x37e643(0x1fe))/0x3*(parseInt(_0x37e643(0x1fa))/0x4)+parseInt(_0x37e643(0x1f5))/0x5*(parseInt(_0x37e643(0x1f9))/0x6)+parseInt(_0x37e643(0x1f4))/0x7+-parseInt(_0x37e643(0x1f7))/0x8+-parseInt(_0x37e643(0x1ff))/0x9*(-parseInt(_0x37e643(0x1fd))/0xa)+-parseInt(_0x37e643(0x1fb))/0xb;if(_0x5641a8===_0x4d207e)break;else _0x3dc177['push'](_0x3dc177['shift']());}catch(_0x47aef6){_0x3dc177['push'](_0x3dc177['shift']());}}}(a109_0x1fd6,0x2c152));function a109_0x54ea(_0x5f131a,_0x15175c){_0x5f131a=_0x5f131a-0x1f2;const _0x1fd6cc=a109_0x1fd6();let _0x54eaca=_0x1fd6cc[_0x5f131a];return _0x54eaca;}function a109_0x1fd6(){const _0x22bfc4=['648193agsYZT','255AOSJTq','Invalid\x20segment\x20reference\x20format:\x20','2445064ualRvA','.\x20Child\x20name\x20cannot\x20be\x20empty','6642RgvhrD','92556vYoKZZ','3193047AixVHI','substring','10OLnLGv','12qnTTre','2338695PTOppX','5teftYE','110002oCTRsb'];a109_0x1fd6=function(){return _0x22bfc4;};return a109_0x1fd6();}export function parseSegmentRef(_0x80e39a){const _0x17a1dc=a109_0x54ea,_0x4000f3=_0x80e39a['indexOf']('/');if(_0x4000f3===-0x1)return{'parentId':_0x80e39a};if(_0x4000f3===0x0)throw new Error('Invalid\x20segment\x20reference\x20format:\x20'+_0x80e39a+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x26eaab=_0x80e39a[_0x17a1dc(0x1fc)](0x0,_0x4000f3),_0x3f98e3=_0x80e39a['substring'](_0x4000f3+0x1);if(_0x3f98e3==='')throw new Error(_0x17a1dc(0x1f6)+_0x80e39a+_0x17a1dc(0x1f8));return{'parentId':_0x26eaab,'childId':_0x3f98e3};}