@treasuredata/tdx 0.8.3 → 0.8.4

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 (141) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/client/cdp-api-client.js +1 -1
  8. package/dist/client/engage-api-client.js +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.js +1 -1
  13. package/dist/client/trino-api-client.js +1 -1
  14. package/dist/client/workflow-client.js +1 -1
  15. package/dist/commands/activations.js +1 -1
  16. package/dist/commands/api-command.js +1 -1
  17. package/dist/commands/auth-command.js +1 -1
  18. package/dist/commands/chat-command.js +1 -1
  19. package/dist/commands/claude-command.js +1 -1
  20. package/dist/commands/claude-statusline-command.js +1 -1
  21. package/dist/commands/claude-usage-command.js +1 -1
  22. package/dist/commands/command.js +1 -1
  23. package/dist/commands/connection-command.js +1 -1
  24. package/dist/commands/context-command.js +1 -1
  25. package/dist/commands/databases.js +1 -1
  26. package/dist/commands/describe.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/job-command.js +1 -1
  29. package/dist/commands/llm-command.js +1 -1
  30. package/dist/commands/llm-proxy.js +1 -1
  31. package/dist/commands/parent-segment-command.js +1 -1
  32. package/dist/commands/profiles-command.js +1 -1
  33. package/dist/commands/query-command.d.ts.map +1 -1
  34. package/dist/commands/query-command.js +1 -1
  35. package/dist/commands/query-command.js.map +1 -1
  36. package/dist/commands/segment-command.d.ts.map +1 -1
  37. package/dist/commands/segment-command.js +1 -1
  38. package/dist/commands/segment-command.js.map +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.d.ts.map +1 -1
  42. package/dist/commands/segment-pull-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js.map +1 -1
  44. package/dist/commands/segment-push-command.d.ts.map +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-push-command.js.map +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segments.d.ts.map +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/segments.js.map +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/tables.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.js +1 -1
  56. package/dist/commands/workflow-command.js +1 -1
  57. package/dist/core/auth.js +1 -1
  58. package/dist/core/config.js +1 -1
  59. package/dist/core/connection-cache.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/profile.js +1 -1
  64. package/dist/core/project-config.js +1 -1
  65. package/dist/core/session.js +1 -1
  66. package/dist/core/user-cache.js +1 -1
  67. package/dist/index.js +1 -1
  68. package/dist/proxy/anthropic-adapter.d.ts +10 -2
  69. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  70. package/dist/proxy/anthropic-adapter.js +1 -1
  71. package/dist/proxy/anthropic-adapter.js.map +1 -1
  72. package/dist/proxy/claude-usage-tracker.js +1 -1
  73. package/dist/proxy/context-signature.js +1 -1
  74. package/dist/proxy/conversation-utils.js +1 -1
  75. package/dist/proxy/server.js +1 -1
  76. package/dist/proxy/session-cache.js +1 -1
  77. package/dist/sdk/api.js +1 -1
  78. package/dist/sdk/connection.js +1 -1
  79. package/dist/sdk/engage.js +1 -1
  80. package/dist/sdk/errors.d.ts +18 -0
  81. package/dist/sdk/errors.d.ts.map +1 -1
  82. package/dist/sdk/errors.js +1 -1
  83. package/dist/sdk/errors.js.map +1 -1
  84. package/dist/sdk/index.js +1 -1
  85. package/dist/sdk/job.js +1 -1
  86. package/dist/sdk/llm.js +1 -1
  87. package/dist/sdk/query.js +1 -1
  88. package/dist/sdk/segment/child-segment-yaml.d.ts +24 -5
  89. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  90. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  91. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  92. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  93. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  94. package/dist/sdk/segment.js +1 -1
  95. package/dist/sdk/user.js +1 -1
  96. package/dist/sdk/workflow.js +1 -1
  97. package/dist/types/endpoints.js +1 -1
  98. package/dist/types/index.d.ts +1 -0
  99. package/dist/types/index.d.ts.map +1 -1
  100. package/dist/types/index.js +1 -1
  101. package/dist/utils/agent-ref-parser.js +1 -1
  102. package/dist/utils/async.js +1 -1
  103. package/dist/utils/chat-cache.js +1 -1
  104. package/dist/utils/colors.js +1 -1
  105. package/dist/utils/command-output.js +1 -1
  106. package/dist/utils/constants.js +1 -1
  107. package/dist/utils/diff.js +1 -1
  108. package/dist/utils/fields-display.js +1 -1
  109. package/dist/utils/file-permissions.js +1 -1
  110. package/dist/utils/format-detector.js +1 -1
  111. package/dist/utils/formatters.js +1 -1
  112. package/dist/utils/json-loader.js +1 -1
  113. package/dist/utils/llm-backup-utils.js +1 -1
  114. package/dist/utils/model-aliases.js +1 -1
  115. package/dist/utils/model-factors.js +1 -1
  116. package/dist/utils/option-validation.js +1 -1
  117. package/dist/utils/port.js +1 -1
  118. package/dist/utils/process.d.ts +6 -0
  119. package/dist/utils/process.d.ts.map +1 -1
  120. package/dist/utils/process.js +1 -1
  121. package/dist/utils/process.js.map +1 -1
  122. package/dist/utils/prompt.js +1 -1
  123. package/dist/utils/segment-path-parser.js +1 -1
  124. package/dist/utils/segment-ref-parser.js +1 -1
  125. package/dist/utils/spinner.js +1 -1
  126. package/dist/utils/sql-parser.d.ts +37 -1
  127. package/dist/utils/sql-parser.d.ts.map +1 -1
  128. package/dist/utils/sql-parser.js +1 -1
  129. package/dist/utils/sql-parser.js.map +1 -1
  130. package/dist/utils/sse-parser.js +1 -1
  131. package/dist/utils/string-utils.js +1 -1
  132. package/dist/utils/table-ref-parser.js +1 -1
  133. package/dist/utils/tdx-config.js +1 -1
  134. package/dist/utils/tdx-logger.js +1 -1
  135. package/dist/utils/tree-formatter.d.ts +4 -0
  136. package/dist/utils/tree-formatter.d.ts.map +1 -1
  137. package/dist/utils/tree-formatter.js +1 -1
  138. package/dist/utils/tree-formatter.js.map +1 -1
  139. package/dist/utils/version-check.js +1 -1
  140. package/dist/utils/workflow-utils.js +1 -1
  141. package/package.json +3 -3
@@ -1 +1 @@
1
- const a73_0x4b7d7b=a73_0x56ad;(function(_0x50349f,_0x63c944){const _0x5b9f46=a73_0x56ad,_0x22b458=_0x50349f();while(!![]){try{const _0x1e097f=-parseInt(_0x5b9f46(0x134))/0x1*(-parseInt(_0x5b9f46(0x14a))/0x2)+parseInt(_0x5b9f46(0x137))/0x3*(-parseInt(_0x5b9f46(0x185))/0x4)+parseInt(_0x5b9f46(0x126))/0x5*(-parseInt(_0x5b9f46(0x140))/0x6)+-parseInt(_0x5b9f46(0x117))/0x7*(parseInt(_0x5b9f46(0x12a))/0x8)+parseInt(_0x5b9f46(0x181))/0x9*(-parseInt(_0x5b9f46(0x130))/0xa)+-parseInt(_0x5b9f46(0x182))/0xb+parseInt(_0x5b9f46(0x178))/0xc;if(_0x1e097f===_0x63c944)break;else _0x22b458['push'](_0x22b458['shift']());}catch(_0x3a75f0){_0x22b458['push'](_0x22b458['shift']());}}}(a73_0x2cdc,0xdf17f));function a73_0x2cdc(){const _0x4e81f5=['join','toISOString','utf-8','success','finishedAt','cancelRequested','listProjects','Failed\x20to\x20download\x20log\x20file:\x20','length','isGroup','65700780qZTpbz','done','projectName','unlink','from','\x20workflow\x20files\x20found\x20in\x20project\x20directory','create','sessionTime','.tar.gz','225tUbAsN','15794944IwUsXK','util','retrySession','12CGHZJP','readdir','fullName','NUMERIC_ID_PATTERN','startedAt','storeParams','workflowName','2933VpTEzx','path','revision','indexOf','scheduleFrom','client','last_id','map','force','Cannot\x20read\x20workflow\x20file:\x20','workflows','direct','state','projects','listAttempts','895FxwGTv','timezone','tmpdir','clearSchedule','16736sVlKsb','retryParams','Kill\x20request\x20accepted','workflow','config','retryAttemptName','259550OHpnXF','name','listLogFiles','mkdir','3FBkrOs','endsWith','access','1467897PnAKnb','tasks','push','latest','tdx-workflow-push-','listSessions','deleteProject','tdx-workflow-','killAttempt','33558WZDmeb','extract','zlib','startAttempt','project','.\x20Expected\x20\x22project.workflow\x22','getAttempt','attempts','logFiles','Project\x20directory\x20not\x20found:\x20','579398HeDLsj','toString','index','sessionId','lastId','isFile','logs','sessionUuid','tar','data','clearScheduleAll','Project\x20not\x20found:\x20','stateParams','delete','download','fromTime','downloadProjectArchive','error','parentId','getAttemptTasks','find','run','replace','resolveProjectId','substring','now','resumeFrom','lastAttempt','upstreams','retryAt','toTime','kill','limit','retryAttempt','status','fromTask'];a73_0x2cdc=function(){return _0x4e81f5;};return a73_0x2cdc();}import{WorkflowApiClient}from'../client/workflow-client.js';import{shouldIncludeInArchive,WORKFLOW_FILE_EXTENSION}from'../utils/workflow-utils.js';function a73_0x56ad(_0x5c0d27,_0x2ead07){_0x5c0d27=_0x5c0d27-0x113;const _0x2cdcd9=a73_0x2cdc();let _0x56ad8e=_0x2cdcd9[_0x5c0d27];return _0x56ad8e;}export class WorkflowSDK{static [a73_0x4b7d7b(0x113)]=/^\d+$/;[a73_0x4b7d7b(0x11c)];constructor(_0x4a6025){const _0x3c5265=a73_0x4b7d7b;this[_0x3c5265(0x11c)]=new WorkflowApiClient(_0x4a6025,_0x4a6025['logger']);}async[a73_0x4b7d7b(0x161)](_0x2c4916){const _0x589ee1=a73_0x4b7d7b;if(WorkflowSDK[_0x589ee1(0x113)]['test'](_0x2c4916))return{'id':_0x2c4916,'name':_0x2c4916};const _0x23e2b9=await this['client'][_0x589ee1(0x174)]({'name_pattern':_0x2c4916}),_0x570d15=_0x23e2b9['data'][_0x589ee1(0x15e)](_0xe807f0=>_0xe807f0[_0x589ee1(0x131)]===_0x2c4916);if(!_0x570d15)throw new Error(_0x589ee1(0x155)+_0x2c4916);return{'id':_0x570d15['id'],'name':_0x570d15[_0x589ee1(0x131)]};}async[a73_0x4b7d7b(0x124)](_0x386c35,_0x31d286){const _0x1de679=a73_0x4b7d7b,_0x4dbbf3=await this['client'][_0x1de679(0x174)]({'name_pattern':_0x386c35,..._0x31d286});return _0x4dbbf3['data'][_0x1de679(0x11e)](_0x5d23cd=>({..._0x5d23cd,'project_id':_0x5d23cd['id'],'project_name':_0x5d23cd[_0x1de679(0x131)]}));}async[a73_0x4b7d7b(0x121)](_0x55b122,_0xd902ba){const _0x29f85a=a73_0x4b7d7b,_0x3171f3=await this[_0x29f85a(0x11c)]['listWorkflows']({'project_name':_0x55b122,..._0xd902ba});return _0x3171f3[_0x29f85a(0x153)]['map'](_0x510e6f=>({'project_id':_0x510e6f[_0x29f85a(0x144)]?.['id'],'project_name':_0x510e6f['project']?.[_0x29f85a(0x131)],'workflow_id':_0x510e6f['id'],'workflow_name':_0x510e6f[_0x29f85a(0x131)],'revision':_0x510e6f[_0x29f85a(0x119)],'timezone':_0x510e6f[_0x29f85a(0x127)],'config':_0x510e6f[_0x29f85a(0x12e)],'id':_0x510e6f['id'],'name':_0x510e6f[_0x29f85a(0x131)],'project':_0x510e6f[_0x29f85a(0x144)]}));}async['sessions'](_0xefc86b){const _0x40a4c0=a73_0x4b7d7b;let _0x5cf075;if(_0xefc86b?.[_0x40a4c0(0x17a)]){let _0x2ea7c0,_0x22d4fa=![];while(!_0x22d4fa){const _0x525c57=await this[_0x40a4c0(0x11c)][_0x40a4c0(0x174)]({'limit':0x64,'last_id':_0x2ea7c0}),_0x32228a=_0x525c57['data'][_0x40a4c0(0x15e)](_0x38f44e=>_0x38f44e[_0x40a4c0(0x131)]===_0xefc86b['projectName']);if(_0x32228a){_0x5cf075=_0x32228a['id'],_0x22d4fa=!![];break;}if(!_0x525c57[_0x40a4c0(0x14e)]||_0x525c57['data'][_0x40a4c0(0x176)]===0x0)break;_0x2ea7c0=_0x525c57[_0x40a4c0(0x14e)];}if(!_0x5cf075)throw new Error(_0x40a4c0(0x155)+_0xefc86b[_0x40a4c0(0x17a)]);}const _0x4964a8=await this[_0x40a4c0(0x11c)][_0x40a4c0(0x13c)]({'project_id':_0x5cf075,'project_name':_0xefc86b?.[_0x40a4c0(0x17a)],'workflow_name':_0xefc86b?.[_0x40a4c0(0x116)],'status':_0xefc86b?.['status'],'from_time':_0xefc86b?.[_0x40a4c0(0x159)],'to_time':_0xefc86b?.[_0x40a4c0(0x168)],'limit':_0xefc86b?.[_0x40a4c0(0x16a)],'last_id':_0xefc86b?.[_0x40a4c0(0x11d)]});return _0x4964a8['data'][_0x40a4c0(0x11e)](_0x3cab52=>({'project_id':_0x3cab52['project']?.['id'],'project_name':_0x3cab52[_0x40a4c0(0x144)]?.[_0x40a4c0(0x131)],'workflow_id':_0x3cab52[_0x40a4c0(0x12d)]?.['id'],'workflow_name':_0x3cab52['workflow']?.[_0x40a4c0(0x131)],'session_id':_0x3cab52['id'],'sessionUuid':_0x3cab52[_0x40a4c0(0x151)],'sessionTime':_0x3cab52['sessionTime'],'lastAttempt':_0x3cab52[_0x40a4c0(0x165)],'id':_0x3cab52['id'],'project':_0x3cab52[_0x40a4c0(0x144)],'workflow':_0x3cab52[_0x40a4c0(0x12d)]}));}async[a73_0x4b7d7b(0x147)](_0x279ad4){const _0x490afb=a73_0x4b7d7b,_0xe41b22=await this[_0x490afb(0x11c)][_0x490afb(0x125)]({'project_name':_0x279ad4?.['projectName'],'workflow_name':_0x279ad4?.[_0x490afb(0x116)],'include_retried':_0x279ad4?.['includeRetried'],'limit':_0x279ad4?.['limit'],'last_id':_0x279ad4?.[_0x490afb(0x11d)]});return _0xe41b22['data'][_0x490afb(0x11e)](_0x2651fc=>({'project_id':_0x2651fc[_0x490afb(0x144)]?.['id'],'project_name':_0x2651fc[_0x490afb(0x144)]?.[_0x490afb(0x131)],'workflow_id':_0x2651fc['workflow']?.['id'],'workflow_name':_0x2651fc[_0x490afb(0x12d)]?.[_0x490afb(0x131)],'session_id':_0x2651fc[_0x490afb(0x14d)],'sessionUuid':_0x2651fc[_0x490afb(0x151)],'sessionTime':_0x2651fc[_0x490afb(0x17f)],'attempt_id':_0x2651fc['id'],'attempt_index':_0x2651fc[_0x490afb(0x14c)],'retryAttemptName':_0x2651fc[_0x490afb(0x12f)],'done':_0x2651fc[_0x490afb(0x179)],'success':_0x2651fc[_0x490afb(0x171)],'cancelRequested':_0x2651fc[_0x490afb(0x173)],'params':_0x2651fc['params'],'createdAt':_0x2651fc['createdAt'],'finishedAt':_0x2651fc[_0x490afb(0x172)],'id':_0x2651fc['id'],'index':_0x2651fc[_0x490afb(0x14c)],'project':_0x2651fc[_0x490afb(0x144)],'workflow':_0x2651fc[_0x490afb(0x12d)]}));}async['attempt'](_0xaa5a9d){const _0x4af29c=a73_0x4b7d7b,_0x564612=await this[_0x4af29c(0x11c)][_0x4af29c(0x146)](_0xaa5a9d);return _0x564612;}async[a73_0x4b7d7b(0x138)](_0x540c9f,_0x341bdf=![]){const _0x2ecc7d=a73_0x4b7d7b,_0x3a1e6c=await this[_0x2ecc7d(0x11c)][_0x2ecc7d(0x15d)](_0x540c9f,_0x341bdf);return _0x3a1e6c['map'](_0x54d3b7=>({'task_id':_0x54d3b7['id'],'task_name':_0x54d3b7[_0x2ecc7d(0x187)],'parentId':_0x54d3b7[_0x2ecc7d(0x15c)],'config':_0x54d3b7[_0x2ecc7d(0x12e)],'upstreams':_0x54d3b7[_0x2ecc7d(0x166)],'state':_0x54d3b7[_0x2ecc7d(0x123)],'exportParams':_0x54d3b7['exportParams'],'storeParams':_0x54d3b7[_0x2ecc7d(0x115)],'stateParams':_0x54d3b7[_0x2ecc7d(0x156)],'updatedAt':_0x54d3b7['updatedAt'],'retryAt':_0x54d3b7[_0x2ecc7d(0x167)],'startedAt':_0x54d3b7[_0x2ecc7d(0x114)],'error':_0x54d3b7[_0x2ecc7d(0x15b)],'isGroup':_0x54d3b7[_0x2ecc7d(0x177)],'id':_0x54d3b7['id'],'fullName':_0x54d3b7[_0x2ecc7d(0x187)]}));}async[a73_0x4b7d7b(0x148)](_0x181125,_0x3e0985){const _0x5185ea=a73_0x4b7d7b;return await this[_0x5185ea(0x11c)][_0x5185ea(0x132)](_0x181125,_0x3e0985);}async[a73_0x4b7d7b(0x150)](_0x4b6425,_0x39fb51){const _0x19ca54=a73_0x4b7d7b,_0x398ddb=await import(_0x19ca54(0x142)),{promisify:_0x2667a2}=await import(_0x19ca54(0x183)),_0x56c903=_0x2667a2(_0x398ddb['gunzip']),_0x584ecc=await this['client'][_0x19ca54(0x132)](_0x4b6425,_0x39fb51);if(_0x584ecc['length']===0x0)return'';const _0xecb3a9=[];for(const _0x1c8fad of _0x584ecc){if(!_0x1c8fad[_0x19ca54(0x122)])continue;const _0x240515=await fetch(_0x1c8fad['direct']);if(!_0x240515['ok'])throw new Error(_0x19ca54(0x175)+_0x240515[_0x19ca54(0x16c)]);const _0x53e353=Buffer[_0x19ca54(0x17c)](await _0x240515['arrayBuffer']()),_0x582c3e=await _0x56c903(_0x53e353);_0xecb3a9[_0x19ca54(0x139)](_0x582c3e[_0x19ca54(0x14b)](_0x19ca54(0x170)));}return _0xecb3a9[_0x19ca54(0x16e)]('\x0a');}async[a73_0x4b7d7b(0x169)](_0x1b5d12,_0x2145ee){const _0x4b045c=a73_0x4b7d7b,_0x2d80e6=await this[_0x4b045c(0x11c)][_0x4b045c(0x13f)](_0x1b5d12,_0x2145ee);return _0x2d80e6?.['message']??_0x4b045c(0x12c);}async[a73_0x4b7d7b(0x184)](_0xa80c70,_0x2ead23){const _0x384624=a73_0x4b7d7b,_0x517cef=await this[_0x384624(0x11c)][_0x384624(0x184)](_0xa80c70,{'from_task':_0x2ead23?.[_0x384624(0x16d)],'retry_params':_0x2ead23?.['retryParams']});return{'attemptId':_0x517cef['id'],'sessionId':_0x517cef['sessionId']};}async[a73_0x4b7d7b(0x16b)](_0x59f47c,_0x460841){const _0x1b4185=a73_0x4b7d7b,_0x1f04f6=await this[_0x1b4185(0x11c)]['retryAttempt'](_0x59f47c,{'resume_from':_0x460841?.[_0x1b4185(0x164)],'retry_params':_0x460841?.[_0x1b4185(0x12b)],'force':_0x460841?.[_0x1b4185(0x11f)]});return{'attemptId':_0x1f04f6['id'],'sessionId':_0x1f04f6[_0x1b4185(0x14d)]};}async[a73_0x4b7d7b(0x15f)](_0x1e506b,_0x40def9={},_0x3e3408){const _0x3b8b7a=a73_0x4b7d7b,_0x882b77=_0x1e506b[_0x3b8b7a(0x11a)]('.');let _0x228546,_0x1ed885;if(_0x882b77===-0x1)throw new Error('Workflow\x20must\x20be\x20specified\x20as\x20\x22project.workflow\x22\x20format');_0x228546=_0x1e506b[_0x3b8b7a(0x162)](0x0,_0x882b77),_0x1ed885=_0x1e506b[_0x3b8b7a(0x162)](_0x882b77+0x1);if(!_0x228546||!_0x1ed885)throw new Error('Invalid\x20workflow\x20format:\x20'+_0x1e506b+_0x3b8b7a(0x145));const _0x2c1c7f=_0x3e3408?.[_0x3b8b7a(0x17f)]||new Date()[_0x3b8b7a(0x16f)]();return await this[_0x3b8b7a(0x11c)][_0x3b8b7a(0x143)]({'projectName':_0x228546,'workflowName':_0x1ed885,'sessionTime':_0x2c1c7f,'params':_0x40def9});}async[a73_0x4b7d7b(0x158)](_0x2fb051,_0x832b38,_0x4008c2){const _0x10b0f4=a73_0x4b7d7b,{promises:_0x1c66f9}=await import('fs'),_0x50d001=await import(_0x10b0f4(0x118)),_0x97b0d0=await import('os'),_0x3f20e3=await import(_0x10b0f4(0x152)),{id:_0x5e0ed3,name:_0x340c33}=await this[_0x10b0f4(0x161)](_0x2fb051),_0xf96b73=_0x97b0d0[_0x10b0f4(0x128)](),_0x58935c=_0x50d001['join'](_0xf96b73,_0x10b0f4(0x13e)+_0x5e0ed3+'-'+Date[_0x10b0f4(0x163)]()+'.tar.gz');try{await this[_0x10b0f4(0x11c)][_0x10b0f4(0x15a)](_0x5e0ed3,_0x58935c,_0x4008c2?.['revision']);const _0x3728f0=_0x50d001[_0x10b0f4(0x16e)](_0x832b38,_0x340c33);await _0x1c66f9[_0x10b0f4(0x133)](_0x3728f0,{'recursive':!![]}),await _0x3f20e3[_0x10b0f4(0x141)]({'file':_0x58935c,'cwd':_0x3728f0,'gzip':!![]});const _0x2f8812=async _0x1f2626=>{const _0x58e1bb=_0x10b0f4;let _0x26dd10=0x0;const _0xf0ebad=await _0x1c66f9['readdir'](_0x1f2626,{'withFileTypes':!![]});for(const _0x31992e of _0xf0ebad){const _0x45d308=_0x50d001[_0x58e1bb(0x16e)](_0x1f2626,_0x31992e['name']);if(_0x31992e[_0x58e1bb(0x14f)]())_0x26dd10++;else _0x31992e['isDirectory']()&&(_0x26dd10+=await _0x2f8812(_0x45d308));}return _0x26dd10;},_0x12153e=await _0x2f8812(_0x3728f0);return{'projectName':_0x340c33,'revision':_0x4008c2?.[_0x10b0f4(0x119)]||_0x10b0f4(0x13a),'filesExtracted':_0x12153e};}finally{try{await _0x1c66f9[_0x10b0f4(0x17b)](_0x58935c);}catch{}}}async[a73_0x4b7d7b(0x139)](_0x58d9b3,_0x531cca){const _0x2c4218=a73_0x4b7d7b,{promises:_0x503a04}=await import('fs'),_0x52adf9=await import('path'),_0x599577=await import('tar'),_0x557b8c=_0x531cca?.[_0x2c4218(0x17a)]||_0x52adf9['basename'](_0x58d9b3),_0x43289e=_0x531cca?.[_0x2c4218(0x119)]||new Date()[_0x2c4218(0x16f)]()[_0x2c4218(0x160)](/[:.]/g,'-');try{await _0x503a04[_0x2c4218(0x136)](_0x58d9b3);}catch{throw new Error(_0x2c4218(0x149)+_0x58d9b3);}if(!_0x531cca?.['skipValidation']){const _0x4347ae=await _0x503a04[_0x2c4218(0x186)](_0x58d9b3),_0x39408c=_0x4347ae['filter'](_0x208017=>_0x208017[_0x2c4218(0x135)](WORKFLOW_FILE_EXTENSION));if(_0x39408c[_0x2c4218(0x176)]===0x0)throw new Error('No\x20'+WORKFLOW_FILE_EXTENSION+_0x2c4218(0x17d));for(const _0x2b9fc4 of _0x39408c){const _0x16d773=_0x52adf9[_0x2c4218(0x16e)](_0x58d9b3,_0x2b9fc4);try{await _0x503a04[_0x2c4218(0x136)](_0x16d773);}catch{throw new Error(_0x2c4218(0x120)+_0x2b9fc4);}}}const _0x28e088=async(_0x2bc815,_0x3b4674='')=>{const _0xa4e09b=_0x2c4218,_0x904847=await _0x503a04[_0xa4e09b(0x186)](_0x2bc815,{'withFileTypes':!![]}),_0x3c0714=[];for(const _0x2c787c of _0x904847){const _0xad8a44=_0x52adf9[_0xa4e09b(0x16e)](_0x3b4674,_0x2c787c[_0xa4e09b(0x131)]),_0x341444=_0x52adf9[_0xa4e09b(0x16e)](_0x2bc815,_0x2c787c['name']);if(!shouldIncludeInArchive(_0x2c787c[_0xa4e09b(0x131)]))continue;_0x2c787c['isDirectory']()?_0x3c0714['push'](...await _0x28e088(_0x341444,_0xad8a44)):_0x3c0714[_0xa4e09b(0x139)](_0xad8a44);}return _0x3c0714;},_0x212e40=await _0x28e088(_0x58d9b3),_0x4f2e7c=await import('os'),_0x56e933=_0x4f2e7c[_0x2c4218(0x128)](),_0x2aec1b=_0x52adf9[_0x2c4218(0x16e)](_0x56e933,_0x2c4218(0x13b)+Date[_0x2c4218(0x163)]()+_0x2c4218(0x180));try{await _0x599577[_0x2c4218(0x17e)]({'file':_0x2aec1b,'gzip':!![],'cwd':_0x58d9b3,'portable':!![]},_0x212e40);const _0x27484f=await this[_0x2c4218(0x11c)]['uploadProjectArchive'](_0x557b8c,_0x43289e,_0x2aec1b,{'scheduleFrom':_0x531cca?.[_0x2c4218(0x11b)],'clearSchedule':_0x531cca?.[_0x2c4218(0x129)],'clearScheduleAll':_0x531cca?.[_0x2c4218(0x154)]});return{'projectId':_0x27484f['id'],'projectName':_0x27484f[_0x2c4218(0x131)],'revision':_0x27484f[_0x2c4218(0x119)]};}finally{try{await _0x503a04[_0x2c4218(0x17b)](_0x2aec1b);}catch{}}}async[a73_0x4b7d7b(0x157)](_0x54c6d2){const _0x31deb8=a73_0x4b7d7b,{id:_0x45e626}=await this[_0x31deb8(0x161)](_0x54c6d2),_0x43c0e4=await this['client'][_0x31deb8(0x13d)](_0x45e626);return{'projectId':_0x43c0e4['id'],'projectName':_0x43c0e4[_0x31deb8(0x131)]};}}
1
+ function a73_0x548a(){const _0x4de6d6=['169592DKIjdS','isGroup','clearSchedule','retryParams','updatedAt','tdx-workflow-push-','skipValidation','workflows','toString','resolveProjectId','workflow','project','startedAt','Project\x20directory\x20not\x20found:\x20','sessionId','resumeFrom','join','sessionTime','sessions','logFiles','6VRjsMs','toISOString','listAttempts','Kill\x20request\x20accepted','push','config','retrySession','name','exportParams','tasks','error','getAttempt','endsWith','data','index','retryAttempt','force','retryAt','latest','unlink','projectName','gunzip','status','util','killAttempt','revision','fullName','Project\x20not\x20found:\x20','isDirectory','listSessions','params','listProjects','limit','attempts','896388apJbjx','56aClKCq','Failed\x20to\x20download\x20log\x20file:\x20','test','listWorkflows','zlib','substring','last_id','1560655FecYFn','basename','No\x20','fromTask','9HXbeQd','lastId','startAttempt','includeRetried','extract','path','readdir','stateParams','create','clearScheduleAll','now','replace','listLogFiles','done','630570hZrmXI','4801970oYotDO','785136YcYOnX','state','client','Invalid\x20workflow\x20format:\x20','Workflow\x20must\x20be\x20specified\x20as\x20\x22project.workflow\x22\x20format','map','tdx-workflow-','createdAt','downloadProjectArchive','sessionUuid','attempt','access','116878smUZet','indexOf','download','uploadProjectArchive','tmpdir','delete','deleteProject','direct','projects','length','utf-8','find','NUMERIC_ID_PATTERN','message','tar'];a73_0x548a=function(){return _0x4de6d6;};return a73_0x548a();}const a73_0x5358dc=a73_0x4215;(function(_0x1e9439,_0x326d0b){const _0x1b6fef=a73_0x4215,_0xea08ae=_0x1e9439();while(!![]){try{const _0x4f955a=-parseInt(_0x1b6fef(0xb5))/0x1*(-parseInt(_0x1b6fef(0xff))/0x2)+-parseInt(_0x1b6fef(0xf3))/0x3+parseInt(_0x1b6fef(0xd7))/0x4+-parseInt(_0x1b6fef(0xdf))/0x5+-parseInt(_0x1b6fef(0xf1))/0x6+parseInt(_0x1b6fef(0xd8))/0x7*(-parseInt(_0x1b6fef(0x10e))/0x8)+parseInt(_0x1b6fef(0xe3))/0x9*(parseInt(_0x1b6fef(0xf2))/0xa);if(_0x4f955a===_0x326d0b)break;else _0xea08ae['push'](_0xea08ae['shift']());}catch(_0x2b95b8){_0xea08ae['push'](_0xea08ae['shift']());}}}(a73_0x548a,0x3263e));function a73_0x4215(_0x5ea686,_0x764199){_0x5ea686=_0x5ea686-0xaf;const _0x548a49=a73_0x548a();let _0x421527=_0x548a49[_0x5ea686];return _0x421527;}import{WorkflowApiClient}from'../client/workflow-client.js';import{shouldIncludeInArchive,WORKFLOW_FILE_EXTENSION}from'../utils/workflow-utils.js';export class WorkflowSDK{static [a73_0x5358dc(0x10b)]=/^\d+$/;['client'];constructor(_0x3d3ca1){const _0xcd654b=a73_0x5358dc;this[_0xcd654b(0xf5)]=new WorkflowApiClient(_0x3d3ca1,_0x3d3ca1['logger']);}async[a73_0x5358dc(0x117)](_0x44858d){const _0x2163d2=a73_0x5358dc;if(WorkflowSDK[_0x2163d2(0x10b)][_0x2163d2(0xda)](_0x44858d))return{'id':_0x44858d,'name':_0x44858d};const _0x5bf156=await this['client']['listProjects']({'name_pattern':_0x44858d}),_0x43b67c=_0x5bf156[_0x2163d2(0xc2)][_0x2163d2(0x10a)](_0x5318ea=>_0x5318ea[_0x2163d2(0xbc)]===_0x44858d);if(!_0x43b67c)throw new Error(_0x2163d2(0xd0)+_0x44858d);return{'id':_0x43b67c['id'],'name':_0x43b67c[_0x2163d2(0xbc)]};}async[a73_0x5358dc(0x107)](_0xa00c8c,_0x1e67fc){const _0x4d6784=a73_0x5358dc,_0x28f789=await this[_0x4d6784(0xf5)][_0x4d6784(0xd4)]({'name_pattern':_0xa00c8c,..._0x1e67fc});return _0x28f789[_0x4d6784(0xc2)][_0x4d6784(0xf8)](_0x218bb2=>({..._0x218bb2,'project_id':_0x218bb2['id'],'project_name':_0x218bb2[_0x4d6784(0xbc)]}));}async[a73_0x5358dc(0x115)](_0x5c29c8,_0x33fbeb){const _0x2bf5cb=a73_0x5358dc,_0x176bb6=await this[_0x2bf5cb(0xf5)][_0x2bf5cb(0xdb)]({'project_name':_0x5c29c8,..._0x33fbeb});return _0x176bb6[_0x2bf5cb(0xc2)][_0x2bf5cb(0xf8)](_0x5628fb=>({'project_id':_0x5628fb['project']?.['id'],'project_name':_0x5628fb[_0x2bf5cb(0x119)]?.[_0x2bf5cb(0xbc)],'workflow_id':_0x5628fb['id'],'workflow_name':_0x5628fb[_0x2bf5cb(0xbc)],'revision':_0x5628fb[_0x2bf5cb(0xce)],'timezone':_0x5628fb['timezone'],'config':_0x5628fb[_0x2bf5cb(0xba)],'id':_0x5628fb['id'],'name':_0x5628fb[_0x2bf5cb(0xbc)],'project':_0x5628fb[_0x2bf5cb(0x119)]}));}async[a73_0x5358dc(0xb3)](_0x390fd1){const _0x2a7349=a73_0x5358dc;let _0x147275;if(_0x390fd1?.['projectName']){let _0x13d28d,_0x50b901=![];while(!_0x50b901){const _0x3c74ca=await this[_0x2a7349(0xf5)][_0x2a7349(0xd4)]({'limit':0x64,'last_id':_0x13d28d}),_0x9b9c3=_0x3c74ca[_0x2a7349(0xc2)]['find'](_0x28f277=>_0x28f277[_0x2a7349(0xbc)]===_0x390fd1['projectName']);if(_0x9b9c3){_0x147275=_0x9b9c3['id'],_0x50b901=!![];break;}if(!_0x3c74ca[_0x2a7349(0xe4)]||_0x3c74ca[_0x2a7349(0xc2)][_0x2a7349(0x108)]===0x0)break;_0x13d28d=_0x3c74ca['lastId'];}if(!_0x147275)throw new Error(_0x2a7349(0xd0)+_0x390fd1['projectName']);}const _0x20bed4=await this[_0x2a7349(0xf5)][_0x2a7349(0xd2)]({'project_id':_0x147275,'project_name':_0x390fd1?.[_0x2a7349(0xc9)],'workflow_name':_0x390fd1?.['workflowName'],'status':_0x390fd1?.[_0x2a7349(0xcb)],'from_time':_0x390fd1?.['fromTime'],'to_time':_0x390fd1?.['toTime'],'limit':_0x390fd1?.['limit'],'last_id':_0x390fd1?.[_0x2a7349(0xde)]});return _0x20bed4[_0x2a7349(0xc2)][_0x2a7349(0xf8)](_0x3072de=>({'project_id':_0x3072de[_0x2a7349(0x119)]?.['id'],'project_name':_0x3072de[_0x2a7349(0x119)]?.['name'],'workflow_id':_0x3072de['workflow']?.['id'],'workflow_name':_0x3072de[_0x2a7349(0x118)]?.['name'],'session_id':_0x3072de['id'],'sessionUuid':_0x3072de[_0x2a7349(0xfc)],'sessionTime':_0x3072de[_0x2a7349(0xb2)],'lastAttempt':_0x3072de['lastAttempt'],'id':_0x3072de['id'],'project':_0x3072de[_0x2a7349(0x119)],'workflow':_0x3072de[_0x2a7349(0x118)]}));}async[a73_0x5358dc(0xd6)](_0x47f93d){const _0x4b6134=a73_0x5358dc,_0x108f1c=await this['client'][_0x4b6134(0xb7)]({'project_name':_0x47f93d?.[_0x4b6134(0xc9)],'workflow_name':_0x47f93d?.['workflowName'],'include_retried':_0x47f93d?.[_0x4b6134(0xe6)],'limit':_0x47f93d?.[_0x4b6134(0xd5)],'last_id':_0x47f93d?.[_0x4b6134(0xde)]});return _0x108f1c[_0x4b6134(0xc2)]['map'](_0x3a5224=>({'project_id':_0x3a5224[_0x4b6134(0x119)]?.['id'],'project_name':_0x3a5224[_0x4b6134(0x119)]?.['name'],'workflow_id':_0x3a5224[_0x4b6134(0x118)]?.['id'],'workflow_name':_0x3a5224[_0x4b6134(0x118)]?.[_0x4b6134(0xbc)],'session_id':_0x3a5224['sessionId'],'sessionUuid':_0x3a5224['sessionUuid'],'sessionTime':_0x3a5224[_0x4b6134(0xb2)],'attempt_id':_0x3a5224['id'],'attempt_index':_0x3a5224[_0x4b6134(0xc3)],'retryAttemptName':_0x3a5224['retryAttemptName'],'done':_0x3a5224[_0x4b6134(0xf0)],'success':_0x3a5224['success'],'cancelRequested':_0x3a5224['cancelRequested'],'params':_0x3a5224[_0x4b6134(0xd3)],'createdAt':_0x3a5224[_0x4b6134(0xfa)],'finishedAt':_0x3a5224['finishedAt'],'id':_0x3a5224['id'],'index':_0x3a5224[_0x4b6134(0xc3)],'project':_0x3a5224['project'],'workflow':_0x3a5224[_0x4b6134(0x118)]}));}async[a73_0x5358dc(0xfd)](_0x172c12){const _0xe3045c=a73_0x5358dc,_0x2ed595=await this[_0xe3045c(0xf5)][_0xe3045c(0xc0)](_0x172c12);return _0x2ed595;}async[a73_0x5358dc(0xbe)](_0x12ce31,_0x362901=![]){const _0x3adb0f=a73_0x5358dc,_0xa8764=await this[_0x3adb0f(0xf5)]['getAttemptTasks'](_0x12ce31,_0x362901);return _0xa8764[_0x3adb0f(0xf8)](_0x1ed393=>({'task_id':_0x1ed393['id'],'task_name':_0x1ed393['fullName'],'parentId':_0x1ed393['parentId'],'config':_0x1ed393[_0x3adb0f(0xba)],'upstreams':_0x1ed393['upstreams'],'state':_0x1ed393[_0x3adb0f(0xf4)],'exportParams':_0x1ed393[_0x3adb0f(0xbd)],'storeParams':_0x1ed393['storeParams'],'stateParams':_0x1ed393[_0x3adb0f(0xea)],'updatedAt':_0x1ed393[_0x3adb0f(0x112)],'retryAt':_0x1ed393[_0x3adb0f(0xc6)],'startedAt':_0x1ed393[_0x3adb0f(0x11a)],'error':_0x1ed393[_0x3adb0f(0xbf)],'isGroup':_0x1ed393[_0x3adb0f(0x10f)],'id':_0x1ed393['id'],'fullName':_0x1ed393[_0x3adb0f(0xcf)]}));}async[a73_0x5358dc(0xb4)](_0x588c91,_0x1d858a){const _0x4e35c7=a73_0x5358dc;return await this[_0x4e35c7(0xf5)]['listLogFiles'](_0x588c91,_0x1d858a);}async['logs'](_0x5b439b,_0x26bcb2){const _0x58bd9c=a73_0x5358dc,_0x47620a=await import(_0x58bd9c(0xdc)),{promisify:_0x55ff6b}=await import(_0x58bd9c(0xcc)),_0x347a33=_0x55ff6b(_0x47620a[_0x58bd9c(0xca)]),_0x2e9ad5=await this[_0x58bd9c(0xf5)][_0x58bd9c(0xef)](_0x5b439b,_0x26bcb2);if(_0x2e9ad5[_0x58bd9c(0x108)]===0x0)return'';const _0x37b02b=[];for(const _0x5d332e of _0x2e9ad5){if(!_0x5d332e[_0x58bd9c(0x106)])continue;const _0x57a65f=await fetch(_0x5d332e[_0x58bd9c(0x106)]);if(!_0x57a65f['ok'])throw new Error(_0x58bd9c(0xd9)+_0x57a65f[_0x58bd9c(0xcb)]);const _0x1fb36e=Buffer['from'](await _0x57a65f['arrayBuffer']()),_0x1f1673=await _0x347a33(_0x1fb36e);_0x37b02b[_0x58bd9c(0xb9)](_0x1f1673[_0x58bd9c(0x116)](_0x58bd9c(0x109)));}return _0x37b02b[_0x58bd9c(0xb1)]('\x0a');}async['kill'](_0x2c7f8d,_0x29ad2d){const _0x2085c1=a73_0x5358dc,_0x127bc4=await this[_0x2085c1(0xf5)][_0x2085c1(0xcd)](_0x2c7f8d,_0x29ad2d);return _0x127bc4?.[_0x2085c1(0x10c)]??_0x2085c1(0xb8);}async[a73_0x5358dc(0xbb)](_0x4a2de2,_0x124ff4){const _0x370755=a73_0x5358dc,_0x1faa2a=await this['client']['retrySession'](_0x4a2de2,{'from_task':_0x124ff4?.[_0x370755(0xe2)],'retry_params':_0x124ff4?.[_0x370755(0x111)]});return{'attemptId':_0x1faa2a['id'],'sessionId':_0x1faa2a[_0x370755(0xaf)]};}async[a73_0x5358dc(0xc4)](_0x3cc422,_0x26212c){const _0x52fa9e=a73_0x5358dc,_0x4d4434=await this[_0x52fa9e(0xf5)][_0x52fa9e(0xc4)](_0x3cc422,{'resume_from':_0x26212c?.[_0x52fa9e(0xb0)],'retry_params':_0x26212c?.[_0x52fa9e(0x111)],'force':_0x26212c?.[_0x52fa9e(0xc5)]});return{'attemptId':_0x4d4434['id'],'sessionId':_0x4d4434[_0x52fa9e(0xaf)]};}async['run'](_0x2d6ac7,_0x203136={},_0x22a18){const _0x595b79=a73_0x5358dc,_0x31500a=_0x2d6ac7[_0x595b79(0x100)]('.');let _0x2b8bd3,_0x497f35;if(_0x31500a===-0x1)throw new Error(_0x595b79(0xf7));_0x2b8bd3=_0x2d6ac7[_0x595b79(0xdd)](0x0,_0x31500a),_0x497f35=_0x2d6ac7['substring'](_0x31500a+0x1);if(!_0x2b8bd3||!_0x497f35)throw new Error(_0x595b79(0xf6)+_0x2d6ac7+'.\x20Expected\x20\x22project.workflow\x22');const _0x48e05c=_0x22a18?.['sessionTime']||new Date()[_0x595b79(0xb6)]();return await this[_0x595b79(0xf5)][_0x595b79(0xe5)]({'projectName':_0x2b8bd3,'workflowName':_0x497f35,'sessionTime':_0x48e05c,'params':_0x203136});}async[a73_0x5358dc(0x101)](_0x1aaa31,_0xdfee8d,_0x73f36){const _0x1dd7d6=a73_0x5358dc,{promises:_0x158ceb}=await import('fs'),_0x4886bf=await import(_0x1dd7d6(0xe8)),_0x327152=await import('os'),_0x31d17a=await import('tar'),{id:_0x48cc50,name:_0x4395f6}=await this['resolveProjectId'](_0x1aaa31),_0x20443c=_0x327152['tmpdir'](),_0x39293f=_0x4886bf['join'](_0x20443c,_0x1dd7d6(0xf9)+_0x48cc50+'-'+Date[_0x1dd7d6(0xed)]()+'.tar.gz');try{await this['client'][_0x1dd7d6(0xfb)](_0x48cc50,_0x39293f,_0x73f36?.[_0x1dd7d6(0xce)]);const _0x134b72=_0x4886bf[_0x1dd7d6(0xb1)](_0xdfee8d,_0x4395f6);await _0x158ceb['mkdir'](_0x134b72,{'recursive':!![]}),await _0x31d17a[_0x1dd7d6(0xe7)]({'file':_0x39293f,'cwd':_0x134b72,'gzip':!![]});const _0xefe69c=async _0x26b24b=>{const _0x566c70=_0x1dd7d6;let _0x25897c=0x0;const _0x4dfa27=await _0x158ceb[_0x566c70(0xe9)](_0x26b24b,{'withFileTypes':!![]});for(const _0x29acf5 of _0x4dfa27){const _0x5f1278=_0x4886bf[_0x566c70(0xb1)](_0x26b24b,_0x29acf5[_0x566c70(0xbc)]);if(_0x29acf5['isFile']())_0x25897c++;else _0x29acf5[_0x566c70(0xd1)]()&&(_0x25897c+=await _0xefe69c(_0x5f1278));}return _0x25897c;},_0x284895=await _0xefe69c(_0x134b72);return{'projectName':_0x4395f6,'revision':_0x73f36?.[_0x1dd7d6(0xce)]||_0x1dd7d6(0xc7),'filesExtracted':_0x284895};}finally{try{await _0x158ceb[_0x1dd7d6(0xc8)](_0x39293f);}catch{}}}async[a73_0x5358dc(0xb9)](_0x1716cb,_0x4d2cd8){const _0x660bbe=a73_0x5358dc,{promises:_0x26828d}=await import('fs'),_0x5d5539=await import(_0x660bbe(0xe8)),_0x4a94e8=await import(_0x660bbe(0x10d)),_0x2d43d0=_0x4d2cd8?.[_0x660bbe(0xc9)]||_0x5d5539[_0x660bbe(0xe0)](_0x1716cb),_0x427433=_0x4d2cd8?.[_0x660bbe(0xce)]||new Date()[_0x660bbe(0xb6)]()[_0x660bbe(0xee)](/[:.]/g,'-');try{await _0x26828d['access'](_0x1716cb);}catch{throw new Error(_0x660bbe(0x11b)+_0x1716cb);}if(!_0x4d2cd8?.[_0x660bbe(0x114)]){const _0x46ef1c=await _0x26828d[_0x660bbe(0xe9)](_0x1716cb),_0x44204c=_0x46ef1c['filter'](_0x1b438a=>_0x1b438a[_0x660bbe(0xc1)](WORKFLOW_FILE_EXTENSION));if(_0x44204c['length']===0x0)throw new Error(_0x660bbe(0xe1)+WORKFLOW_FILE_EXTENSION+'\x20workflow\x20files\x20found\x20in\x20project\x20directory');for(const _0x52e110 of _0x44204c){const _0x595446=_0x5d5539['join'](_0x1716cb,_0x52e110);try{await _0x26828d[_0x660bbe(0xfe)](_0x595446);}catch{throw new Error('Cannot\x20read\x20workflow\x20file:\x20'+_0x52e110);}}}const _0x559479=async(_0x2c5560,_0x3ded7a='')=>{const _0x2137e1=_0x660bbe,_0x4db88c=await _0x26828d[_0x2137e1(0xe9)](_0x2c5560,{'withFileTypes':!![]}),_0x5c247e=[];for(const _0x1b8908 of _0x4db88c){const _0x2786ca=_0x5d5539[_0x2137e1(0xb1)](_0x3ded7a,_0x1b8908[_0x2137e1(0xbc)]),_0x57c58b=_0x5d5539['join'](_0x2c5560,_0x1b8908['name']);if(!shouldIncludeInArchive(_0x1b8908[_0x2137e1(0xbc)]))continue;_0x1b8908['isDirectory']()?_0x5c247e[_0x2137e1(0xb9)](...await _0x559479(_0x57c58b,_0x2786ca)):_0x5c247e[_0x2137e1(0xb9)](_0x2786ca);}return _0x5c247e;},_0x6a3794=await _0x559479(_0x1716cb),_0x1ec0df=await import('os'),_0x5dbf7a=_0x1ec0df[_0x660bbe(0x103)](),_0x4f4b91=_0x5d5539[_0x660bbe(0xb1)](_0x5dbf7a,_0x660bbe(0x113)+Date['now']()+'.tar.gz');try{await _0x4a94e8[_0x660bbe(0xeb)]({'file':_0x4f4b91,'gzip':!![],'cwd':_0x1716cb,'portable':!![]},_0x6a3794);const _0x558620=await this[_0x660bbe(0xf5)][_0x660bbe(0x102)](_0x2d43d0,_0x427433,_0x4f4b91,{'scheduleFrom':_0x4d2cd8?.['scheduleFrom'],'clearSchedule':_0x4d2cd8?.[_0x660bbe(0x110)],'clearScheduleAll':_0x4d2cd8?.[_0x660bbe(0xec)]});return{'projectId':_0x558620['id'],'projectName':_0x558620[_0x660bbe(0xbc)],'revision':_0x558620[_0x660bbe(0xce)]};}finally{try{await _0x26828d[_0x660bbe(0xc8)](_0x4f4b91);}catch{}}}async[a73_0x5358dc(0x104)](_0x192a4b){const _0x44f63e=a73_0x5358dc,{id:_0xf3ac41}=await this[_0x44f63e(0x117)](_0x192a4b),_0x459a15=await this[_0x44f63e(0xf5)][_0x44f63e(0x105)](_0xf3ac41);return{'projectId':_0x459a15['id'],'projectName':_0x459a15[_0x44f63e(0xbc)]};}}
@@ -1 +1 @@
1
- const a78_0x4a09a6=a78_0x3303;(function(_0x363d61,_0xb50427){const _0x2909e7=a78_0x3303,_0x2211f6=_0x363d61();while(!![]){try{const _0x3870bc=-parseInt(_0x2909e7(0x158))/0x1+parseInt(_0x2909e7(0x138))/0x2*(-parseInt(_0x2909e7(0x16b))/0x3)+parseInt(_0x2909e7(0x130))/0x4+parseInt(_0x2909e7(0x163))/0x5+parseInt(_0x2909e7(0x16a))/0x6+parseInt(_0x2909e7(0x12f))/0x7+parseInt(_0x2909e7(0x13f))/0x8;if(_0x3870bc===_0xb50427)break;else _0x2211f6['push'](_0x2211f6['shift']());}catch(_0xb783f4){_0x2211f6['push'](_0x2211f6['shift']());}}}(a78_0x35a3,0xe0176));function a78_0x35a3(){const _0x33badc=['https://api-workflow.ap02.treasuredata.com','7956630kaDXoz','6mnUxfd','https://api-cdp.ap03.treasuredata.com','https://console.ap02.treasuredata.com','https://api-staging-workflow.us01.treasuredata.com','https://engage-api-staging.ap03.treasuredata.com','https://console-next.eu01.treasuredata.com','https://api-workflow.eu01.treasuredata.com','https://console-next.ap02.treasuredata.com','1449336slAMSF','601464rLyRrd','.treasuredata.com','https://api-cdp.eu01.treasuredata.com','https://api-presto.ap02.treasuredata.com','https://console-staging-next.ap03.treasuredata.com','https://api-development-cdp.us01.treasuredata.com','https://console-staging-next.us01.treasuredata.com','https://api-development-workflow.eu01.treasuredata.com','191414geNrBc','https://api-cdp.ap02.treasuredata.com','https://console-staging.treasuredata.co.jp','https://llm-api-staging.us01.treasuredata.com','https://api.ap03.treasuredata.com','https://engage-api.eu01.treasuredata.com','https://console-staging-next.treasuredata.co.jp','1313264IvKmua','https://llm-api-development.eu01.treasuredata.com','https://console.eu01.treasuredata.com','https://api-development-cdp.eu01.treasuredata.com','https://api.eu01.treasuredata.com','https://console-next.us01.treasuredata.com','https://api-development-presto.treasuredata.com','https://console.ap03.treasuredata.com','https://llm-api.eu01.treasuredata.com','https://api-development-presto.eu01.treasuredata.com','https://api-cdp.treasuredata.com','https://api-development-workflow.us01.treasuredata.com','https://engage-api.ap02.treasuredata.com','https://api-staging-workflow.treasuredata.co.jp','https://api-workflow.ap03.treasuredata.com','https://api-staging-cdp.ap03.treasuredata.com','https://engage-api-staging.treasuredata.co.jp','https://console.treasuredata.com','https://api-staging-workflow.ap03.treasuredata.com','https://api-presto.treasuredata.com','https://llm-api-development.us01.treasuredata.com','https://llm-api-staging.ap03.treasuredata.com','https://llm-api.treasuredata.com','https://console-development-next.eu01.treasuredata.com','https://api-staging.treasuredata.co.jp','1345934tbyDEk','https://api-staging-presto.treasuredata.co.jp','https://api-presto.ap03.treasuredata.com','https://api.ap02.treasuredata.com','https://console-staging.us01.treasuredata.com','https://api-cdp.treasuredata.co.jp','https://api-development.treasuredata.com','https://api-staging-cdp.treasuredata.co.jp','https://engage-api.ap03.treasuredata.com','https://console.','https://console-next.treasuredata.co.jp','3037745zXQwDF','https://api.treasuredata.com','https://api-development.eu01.treasuredata.com','https://llm-api.ap02.treasuredata.com','https://api-presto.eu01.treasuredata.com','https://api-workflow.treasuredata.co.jp'];a78_0x35a3=function(){return _0x33badc;};return a78_0x35a3();}export const TD_ENDPOINTS={'us01':a78_0x4a09a6(0x164),'jp01':'https://api.treasuredata.co.jp','eu01':a78_0x4a09a6(0x143),'ap02':a78_0x4a09a6(0x15b),'ap03':a78_0x4a09a6(0x13c),'dev-us01':a78_0x4a09a6(0x15e),'dev-eu01':a78_0x4a09a6(0x165),'stg-us01':'https://api-staging.us01.treasuredata.com','stg-jp01':a78_0x4a09a6(0x157),'stg-ap03':'https://api-staging.ap03.treasuredata.com'};export const CDP_ENDPOINTS={'us01':a78_0x4a09a6(0x149),'jp01':a78_0x4a09a6(0x15d),'eu01':a78_0x4a09a6(0x132),'ap02':a78_0x4a09a6(0x139),'ap03':a78_0x4a09a6(0x16c),'dev-us01':a78_0x4a09a6(0x135),'dev-eu01':a78_0x4a09a6(0x142),'stg-us01':'https://api-staging-cdp.us01.treasuredata.com','stg-jp01':a78_0x4a09a6(0x15f),'stg-ap03':a78_0x4a09a6(0x14e)};export const WORKFLOW_ENDPOINTS={'us01':'https://api-workflow.treasuredata.com','jp01':a78_0x4a09a6(0x168),'eu01':a78_0x4a09a6(0x12d),'ap02':a78_0x4a09a6(0x169),'ap03':a78_0x4a09a6(0x14d),'dev-us01':a78_0x4a09a6(0x14a),'dev-eu01':a78_0x4a09a6(0x137),'stg-us01':a78_0x4a09a6(0x12a),'stg-jp01':a78_0x4a09a6(0x14c),'stg-ap03':a78_0x4a09a6(0x151)};export const TRINO_ENDPOINTS={'us01':a78_0x4a09a6(0x152),'jp01':'https://api-presto.treasuredata.co.jp','eu01':a78_0x4a09a6(0x167),'ap02':a78_0x4a09a6(0x133),'ap03':a78_0x4a09a6(0x15a),'dev-us01':a78_0x4a09a6(0x145),'dev-eu01':a78_0x4a09a6(0x148),'stg-us01':'https://api-staging-presto.treasuredata.com','stg-jp01':a78_0x4a09a6(0x159),'stg-ap03':'https://api-staging-presto.ap03.treasuredata.com'};export const LLM_ENDPOINTS={'us01':a78_0x4a09a6(0x155),'jp01':'https://llm-api.treasuredata.co.jp','eu01':a78_0x4a09a6(0x147),'ap02':a78_0x4a09a6(0x166),'ap03':'https://llm-api.ap03.treasuredata.com','dev-us01':a78_0x4a09a6(0x153),'dev-eu01':a78_0x4a09a6(0x140),'stg-us01':a78_0x4a09a6(0x13b),'stg-jp01':'https://llm-api-staging.treasuredata.co.jp','stg-ap03':a78_0x4a09a6(0x154)};function a78_0x3303(_0x181832,_0x537fba){_0x181832=_0x181832-0x12a;const _0x35a30c=a78_0x35a3();let _0x33033c=_0x35a30c[_0x181832];return _0x33033c;}export const ENGAGE_ENDPOINTS={'us01':'https://engage-api.treasuredata.com','jp01':'https://engage-api.treasuredata.co.jp','eu01':a78_0x4a09a6(0x13d),'ap02':a78_0x4a09a6(0x14b),'ap03':a78_0x4a09a6(0x160),'dev-us01':'https://engage-api-development.us01.treasuredata.com','dev-eu01':'https://engage-api-development.eu01.treasuredata.com','stg-us01':'https://engage-api-staging.us01.treasuredata.com','stg-jp01':a78_0x4a09a6(0x14f),'stg-ap03':a78_0x4a09a6(0x12b)};export const CONSOLE_ENDPOINTS={'us01':a78_0x4a09a6(0x150),'jp01':'https://console.treasuredata.co.jp','eu01':a78_0x4a09a6(0x141),'ap02':a78_0x4a09a6(0x16d),'ap03':a78_0x4a09a6(0x146),'dev-us01':'https://console-development.treasuredata.com','dev-eu01':'https://console-development.eu01.treasuredata.com','stg-us01':a78_0x4a09a6(0x15c),'stg-jp01':a78_0x4a09a6(0x13a),'stg-ap03':'https://console-staging.ap03.treasuredata.com'};export const CONSOLE_NEXT_ENDPOINTS={'us01':a78_0x4a09a6(0x144),'jp01':a78_0x4a09a6(0x162),'eu01':a78_0x4a09a6(0x12c),'ap02':a78_0x4a09a6(0x12e),'ap03':'https://console-next.ap03.treasuredata.com','dev-us01':'https://console-development-next.us01.treasuredata.com','dev-eu01':a78_0x4a09a6(0x156),'stg-us01':a78_0x4a09a6(0x136),'stg-jp01':a78_0x4a09a6(0x13e),'stg-ap03':a78_0x4a09a6(0x134)};export function getConsoleUrl(_0x1cef96,_0x819fd2){const _0x168c15=a78_0x4a09a6,_0x5d32d0=CONSOLE_ENDPOINTS[_0x1cef96]||_0x168c15(0x161)+_0x1cef96+_0x168c15(0x131);return _0x819fd2?''+_0x5d32d0+_0x819fd2:_0x5d32d0;}export function getConsoleNextUrl(_0x213c13,_0x350e54){const _0x57262b=a78_0x4a09a6,_0x21e260=CONSOLE_NEXT_ENDPOINTS[_0x213c13]||'https://console-next.'+_0x213c13+_0x57262b(0x131);return _0x350e54?''+_0x21e260+_0x350e54:_0x21e260;}export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS,'engage':ENGAGE_ENDPOINTS};export function getEndpoint(_0x28d0c1,_0x434c3e='td'){const _0x427a4b=API_ENDPOINTS[_0x434c3e]?.[_0x28d0c1];if(!_0x427a4b)throw new Error('No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27'+_0x434c3e+'\x27\x20and\x20site\x20\x27'+_0x28d0c1+'\x27');return _0x427a4b;}
1
+ const a78_0x3350ec=a78_0x3fcf;(function(_0x514ace,_0x2a3ac5){const _0x422541=a78_0x3fcf,_0x445cbf=_0x514ace();while(!![]){try{const _0x34aa33=-parseInt(_0x422541(0x1a9))/0x1*(-parseInt(_0x422541(0x180))/0x2)+parseInt(_0x422541(0x1b3))/0x3+parseInt(_0x422541(0x1b5))/0x4+-parseInt(_0x422541(0x18a))/0x5*(parseInt(_0x422541(0x1a4))/0x6)+parseInt(_0x422541(0x19f))/0x7+-parseInt(_0x422541(0x1bd))/0x8*(-parseInt(_0x422541(0x1ae))/0x9)+-parseInt(_0x422541(0x195))/0xa*(parseInt(_0x422541(0x17f))/0xb);if(_0x34aa33===_0x2a3ac5)break;else _0x445cbf['push'](_0x445cbf['shift']());}catch(_0x559ea5){_0x445cbf['push'](_0x445cbf['shift']());}}}(a78_0x487b,0x70b06));export const TD_ENDPOINTS={'us01':a78_0x3350ec(0x17d),'jp01':a78_0x3350ec(0x18c),'eu01':a78_0x3350ec(0x1b8),'ap02':a78_0x3350ec(0x1b9),'ap03':a78_0x3350ec(0x19a),'dev-us01':a78_0x3350ec(0x1b2),'dev-eu01':'https://api-development.eu01.treasuredata.com','stg-us01':'https://api-staging.us01.treasuredata.com','stg-jp01':a78_0x3350ec(0x1c2),'stg-ap03':a78_0x3350ec(0x184)};export const CDP_ENDPOINTS={'us01':a78_0x3350ec(0x182),'jp01':a78_0x3350ec(0x198),'eu01':a78_0x3350ec(0x1a3),'ap02':a78_0x3350ec(0x1b7),'ap03':'https://api-cdp.ap03.treasuredata.com','dev-us01':a78_0x3350ec(0x193),'dev-eu01':a78_0x3350ec(0x1a8),'stg-us01':a78_0x3350ec(0x192),'stg-jp01':a78_0x3350ec(0x196),'stg-ap03':a78_0x3350ec(0x190)};export const WORKFLOW_ENDPOINTS={'us01':a78_0x3350ec(0x1bc),'jp01':'https://api-workflow.treasuredata.co.jp','eu01':'https://api-workflow.eu01.treasuredata.com','ap02':'https://api-workflow.ap02.treasuredata.com','ap03':a78_0x3350ec(0x189),'dev-us01':a78_0x3350ec(0x1aa),'dev-eu01':a78_0x3350ec(0x1bb),'stg-us01':a78_0x3350ec(0x19e),'stg-jp01':'https://api-staging-workflow.treasuredata.co.jp','stg-ap03':a78_0x3350ec(0x1a2)};export const TRINO_ENDPOINTS={'us01':'https://api-presto.treasuredata.com','jp01':'https://api-presto.treasuredata.co.jp','eu01':'https://api-presto.eu01.treasuredata.com','ap02':'https://api-presto.ap02.treasuredata.com','ap03':a78_0x3350ec(0x1b0),'dev-us01':a78_0x3350ec(0x188),'dev-eu01':'https://api-development-presto.eu01.treasuredata.com','stg-us01':a78_0x3350ec(0x179),'stg-jp01':a78_0x3350ec(0x1a6),'stg-ap03':a78_0x3350ec(0x194)};export const LLM_ENDPOINTS={'us01':'https://llm-api.treasuredata.com','jp01':a78_0x3350ec(0x185),'eu01':a78_0x3350ec(0x1b6),'ap02':a78_0x3350ec(0x17b),'ap03':'https://llm-api.ap03.treasuredata.com','dev-us01':a78_0x3350ec(0x1a5),'dev-eu01':a78_0x3350ec(0x191),'stg-us01':a78_0x3350ec(0x1be),'stg-jp01':a78_0x3350ec(0x18e),'stg-ap03':a78_0x3350ec(0x18b)};export const ENGAGE_ENDPOINTS={'us01':'https://engage-api.treasuredata.com','jp01':a78_0x3350ec(0x197),'eu01':'https://engage-api.eu01.treasuredata.com','ap02':a78_0x3350ec(0x18f),'ap03':a78_0x3350ec(0x1ba),'dev-us01':a78_0x3350ec(0x19d),'dev-eu01':a78_0x3350ec(0x19c),'stg-us01':a78_0x3350ec(0x1c1),'stg-jp01':a78_0x3350ec(0x1ac),'stg-ap03':a78_0x3350ec(0x1ad)};export const CONSOLE_ENDPOINTS={'us01':'https://console.treasuredata.com','jp01':a78_0x3350ec(0x17e),'eu01':'https://console.eu01.treasuredata.com','ap02':'https://console.ap02.treasuredata.com','ap03':a78_0x3350ec(0x1af),'dev-us01':a78_0x3350ec(0x183),'dev-eu01':a78_0x3350ec(0x186),'stg-us01':a78_0x3350ec(0x1a0),'stg-jp01':'https://console-staging.treasuredata.co.jp','stg-ap03':a78_0x3350ec(0x19b)};export const CONSOLE_NEXT_ENDPOINTS={'us01':a78_0x3350ec(0x17c),'jp01':a78_0x3350ec(0x1a7),'eu01':a78_0x3350ec(0x1b1),'ap02':'https://console-next.ap02.treasuredata.com','ap03':a78_0x3350ec(0x1bf),'dev-us01':a78_0x3350ec(0x18d),'dev-eu01':a78_0x3350ec(0x1b4),'stg-us01':a78_0x3350ec(0x187),'stg-jp01':'https://console-staging-next.treasuredata.co.jp','stg-ap03':a78_0x3350ec(0x1c0)};function a78_0x3fcf(_0x4099de,_0x587f18){_0x4099de=_0x4099de-0x179;const _0x487b10=a78_0x487b();let _0x3fcf3b=_0x487b10[_0x4099de];return _0x3fcf3b;}export function getConsoleUrl(_0xc68184,_0x18d74d){const _0x549f6c=a78_0x3350ec,_0x2e98ff=CONSOLE_ENDPOINTS[_0xc68184]||_0x549f6c(0x1ab)+_0xc68184+'.treasuredata.com';return _0x18d74d?''+_0x2e98ff+_0x18d74d:_0x2e98ff;}export function getConsoleNextUrl(_0x31371d,_0x39f28d){const _0x5b64fe=a78_0x3350ec,_0x88e16a=CONSOLE_NEXT_ENDPOINTS[_0x31371d]||_0x5b64fe(0x1a1)+_0x31371d+_0x5b64fe(0x181);return _0x39f28d?''+_0x88e16a+_0x39f28d:_0x88e16a;}export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS,'engage':ENGAGE_ENDPOINTS};export function getEndpoint(_0x44a4bc,_0x1d7b11='td'){const _0x45b974=a78_0x3350ec,_0x132af9=API_ENDPOINTS[_0x1d7b11]?.[_0x44a4bc];if(!_0x132af9)throw new Error(_0x45b974(0x17a)+_0x1d7b11+_0x45b974(0x199)+_0x44a4bc+'\x27');return _0x132af9;}function a78_0x487b(){const _0x154755=['https://console-next.us01.treasuredata.com','https://api.treasuredata.com','https://console.treasuredata.co.jp','1573xhTsAW','8SeScvv','.treasuredata.com','https://api-cdp.treasuredata.com','https://console-development.treasuredata.com','https://api-staging.ap03.treasuredata.com','https://llm-api.treasuredata.co.jp','https://console-development.eu01.treasuredata.com','https://console-staging-next.us01.treasuredata.com','https://api-development-presto.treasuredata.com','https://api-workflow.ap03.treasuredata.com','5475Hibuni','https://llm-api-staging.ap03.treasuredata.com','https://api.treasuredata.co.jp','https://console-development-next.us01.treasuredata.com','https://llm-api-staging.treasuredata.co.jp','https://engage-api.ap02.treasuredata.com','https://api-staging-cdp.ap03.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','https://api-staging-cdp.us01.treasuredata.com','https://api-development-cdp.us01.treasuredata.com','https://api-staging-presto.ap03.treasuredata.com','78620OZNjHZ','https://api-staging-cdp.treasuredata.co.jp','https://engage-api.treasuredata.co.jp','https://api-cdp.treasuredata.co.jp','\x27\x20and\x20site\x20\x27','https://api.ap03.treasuredata.com','https://console-staging.ap03.treasuredata.com','https://engage-api-development.eu01.treasuredata.com','https://engage-api-development.us01.treasuredata.com','https://api-staging-workflow.us01.treasuredata.com','1716218JuqPPr','https://console-staging.us01.treasuredata.com','https://console-next.','https://api-staging-workflow.ap03.treasuredata.com','https://api-cdp.eu01.treasuredata.com','3696PmBpLh','https://llm-api-development.us01.treasuredata.com','https://api-staging-presto.treasuredata.co.jp','https://console-next.treasuredata.co.jp','https://api-development-cdp.eu01.treasuredata.com','100829AdgBBa','https://api-development-workflow.us01.treasuredata.com','https://console.','https://engage-api-staging.treasuredata.co.jp','https://engage-api-staging.ap03.treasuredata.com','9vuGCWS','https://console.ap03.treasuredata.com','https://api-presto.ap03.treasuredata.com','https://console-next.eu01.treasuredata.com','https://api-development.treasuredata.com','889638UkDFRW','https://console-development-next.eu01.treasuredata.com','2610612pSfddQ','https://llm-api.eu01.treasuredata.com','https://api-cdp.ap02.treasuredata.com','https://api.eu01.treasuredata.com','https://api.ap02.treasuredata.com','https://engage-api.ap03.treasuredata.com','https://api-development-workflow.eu01.treasuredata.com','https://api-workflow.treasuredata.com','5301368FJvdde','https://llm-api-staging.us01.treasuredata.com','https://console-next.ap03.treasuredata.com','https://console-staging-next.ap03.treasuredata.com','https://engage-api-staging.us01.treasuredata.com','https://api-staging.treasuredata.co.jp','https://api-staging-presto.treasuredata.com','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','https://llm-api.ap02.treasuredata.com'];a78_0x487b=function(){return _0x154755;};return a78_0x487b();}
@@ -83,6 +83,7 @@ export interface GlobalOptions {
83
83
  clear?: boolean;
84
84
  recursive?: boolean;
85
85
  maxDepth?: number;
86
+ web?: boolean;
86
87
  database?: string;
87
88
  parentSegment?: string;
88
89
  segmentPath?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- const a80_0x5986e7=a80_0x2f73;(function(_0x552527,_0x300720){const _0x477038=a80_0x2f73,_0x46b8cf=_0x552527();while(!![]){try{const _0x5d7fed=parseInt(_0x477038(0x180))/0x1+-parseInt(_0x477038(0x17e))/0x2+parseInt(_0x477038(0x17a))/0x3*(parseInt(_0x477038(0x177))/0x4)+parseInt(_0x477038(0x17f))/0x5*(parseInt(_0x477038(0x181))/0x6)+parseInt(_0x477038(0x17c))/0x7*(parseInt(_0x477038(0x178))/0x8)+parseInt(_0x477038(0x182))/0x9+-parseInt(_0x477038(0x17d))/0xa;if(_0x5d7fed===_0x300720)break;else _0x46b8cf['push'](_0x46b8cf['shift']());}catch(_0x4d8ddc){_0x46b8cf['push'](_0x46b8cf['shift']());}}}(a80_0x48f5,0x3ce9f));function a80_0x48f5(){const _0x5bb3ba=['885597haQZhv','jp01','35924Qopsrf','7159090rNduYz','764098SBfsCJ','157240EkIrke','245485erggEC','54wLLRiA','1064853zVyoQh','stg-us01','4jBvvzB','632toIXqT','us01'];a80_0x48f5=function(){return _0x5bb3ba;};return a80_0x48f5();}export const SITE_ALIASES={'us':'us01','aws':a80_0x5986e7(0x179),'jp':a80_0x5986e7(0x17b),'aws-tokyo':'jp01','dev':'dev-us01','stg':a80_0x5986e7(0x183)};function a80_0x2f73(_0x385c01,_0x5973b9){_0x385c01=_0x385c01-0x177;const _0x48f570=a80_0x48f5();let _0x2f7374=_0x48f570[_0x385c01];return _0x2f7374;}export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';
1
+ function a80_0x5e89(){const _0x5dd9c4=['5SUptmb','23030YGrAVp','22gvczwK','1816155jzXRJL','102244RZuTGD','266yIQNen','43440XAyTjx','527916rxzPFI','32093UuYIBM','595032YfitxP','jp01','209CphrGw','us01'];a80_0x5e89=function(){return _0x5dd9c4;};return a80_0x5e89();}const a80_0x4fef1f=a80_0x4c1d;(function(_0x4c3bd6,_0x3c9309){const _0x2c0b4e=a80_0x4c1d,_0x432e22=_0x4c3bd6();while(!![]){try{const _0x1c01e1=-parseInt(_0x2c0b4e(0x1a8))/0x1*(-parseInt(_0x2c0b4e(0x1af))/0x2)+-parseInt(_0x2c0b4e(0x1a7))/0x3+-parseInt(_0x2c0b4e(0x1a4))/0x4+parseInt(_0x2c0b4e(0x1ad))/0x5*(parseInt(_0x2c0b4e(0x1a9))/0x6)+-parseInt(_0x2c0b4e(0x1a5))/0x7*(-parseInt(_0x2c0b4e(0x1a6))/0x8)+-parseInt(_0x2c0b4e(0x1a3))/0x9+parseInt(_0x2c0b4e(0x1ae))/0xa*(-parseInt(_0x2c0b4e(0x1ab))/0xb);if(_0x1c01e1===_0x3c9309)break;else _0x432e22['push'](_0x432e22['shift']());}catch(_0x19d01d){_0x432e22['push'](_0x432e22['shift']());}}}(a80_0x5e89,0x339fa));export const SITE_ALIASES={'us':'us01','aws':a80_0x4fef1f(0x1ac),'jp':a80_0x4fef1f(0x1aa),'aws-tokyo':a80_0x4fef1f(0x1aa),'dev':'dev-us01','stg':'stg-us01'};function a80_0x4c1d(_0x4518a,_0x4d3d56){_0x4518a=_0x4518a-0x1a3;const _0x5e89ef=a80_0x5e89();let _0x4c1d05=_0x5e89ef[_0x4518a];return _0x4c1d05;}export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';
@@ -1 +1 @@
1
- function a85_0x27c4(){const _0x332e28=['Project\x20name\x20cannot\x20be\x20empty','282UndEDs','478863jgqkoj','75831RsilUr','.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','18158lCTqKI','Agent\x20reference\x20cannot\x20be\x20empty','Invalid\x20agent\x20reference\x20format:\x20','243262WAxpmJ','trim','split','44960BVEuyy','3hwBgTs','194948KqPeWb','821475BHelTL','length'];a85_0x27c4=function(){return _0x332e28;};return a85_0x27c4();}function a85_0x3f0f(_0x25e1cf,_0x586392){_0x25e1cf=_0x25e1cf-0x15d;const _0x27c45b=a85_0x27c4();let _0x3f0f36=_0x27c45b[_0x25e1cf];return _0x3f0f36;}(function(_0x2dfbba,_0x3f68d8){const _0x5ce140=a85_0x3f0f,_0x1ae483=_0x2dfbba();while(!![]){try{const _0x46f645=parseInt(_0x5ce140(0x167))/0x1+-parseInt(_0x5ce140(0x16c))/0x2*(parseInt(_0x5ce140(0x160))/0x3)+parseInt(_0x5ce140(0x161))/0x4+parseInt(_0x5ce140(0x162))/0x5+parseInt(_0x5ce140(0x165))/0x6*(-parseInt(_0x5ce140(0x169))/0x7)+parseInt(_0x5ce140(0x15f))/0x8+parseInt(_0x5ce140(0x166))/0x9;if(_0x46f645===_0x3f68d8)break;else _0x1ae483['push'](_0x1ae483['shift']());}catch(_0x2ed123){_0x1ae483['push'](_0x1ae483['shift']());}}}(a85_0x27c4,0x196cd));export function parseAgentRef(_0x437727){const _0xa9494e=a85_0x3f0f;if(!_0x437727||_0x437727[_0xa9494e(0x15d)]()==='')throw new Error(_0xa9494e(0x16a));const _0x17a685=_0x437727[_0xa9494e(0x15d)](),_0x38f07a=_0x17a685[_0xa9494e(0x15e)]('/');if(_0x38f07a[_0xa9494e(0x163)]===0x1)return{'projectName':_0x38f07a[0x0],'agentName':undefined};else{if(_0x38f07a[_0xa9494e(0x163)]===0x2){const [_0x1d15c7,_0x13a16]=_0x38f07a;if(!_0x1d15c7||_0x1d15c7[_0xa9494e(0x15d)]()==='')throw new Error(_0xa9494e(0x164));if(!_0x13a16||_0x13a16[_0xa9494e(0x15d)]()==='')throw new Error('Agent\x20name\x20cannot\x20be\x20empty');return{'projectName':_0x1d15c7['trim'](),'agentName':_0x13a16['trim']()};}else throw new Error(_0xa9494e(0x16b)+_0x437727+_0xa9494e(0x168));}}
1
+ function a85_0x2fef(_0x47d5e8,_0xf32e68){_0x47d5e8=_0x47d5e8-0x1e2;const _0x54f0a9=a85_0x54f0();let _0x2fef9b=_0x54f0a9[_0x47d5e8];return _0x2fef9b;}(function(_0x10e5d1,_0x3f2436){const _0x5462d3=a85_0x2fef,_0x5bea49=_0x10e5d1();while(!![]){try{const _0x49c7ae=parseInt(_0x5462d3(0x1e3))/0x1+-parseInt(_0x5462d3(0x1e5))/0x2*(-parseInt(_0x5462d3(0x1f0))/0x3)+-parseInt(_0x5462d3(0x1ec))/0x4+parseInt(_0x5462d3(0x1e9))/0x5+-parseInt(_0x5462d3(0x1e6))/0x6*(-parseInt(_0x5462d3(0x1ef))/0x7)+parseInt(_0x5462d3(0x1ea))/0x8+-parseInt(_0x5462d3(0x1e4))/0x9;if(_0x49c7ae===_0x3f2436)break;else _0x5bea49['push'](_0x5bea49['shift']());}catch(_0x1e3249){_0x5bea49['push'](_0x5bea49['shift']());}}}(a85_0x54f0,0x9005d));export function parseAgentRef(_0x45c77c){const _0x44d3d9=a85_0x2fef;if(!_0x45c77c||_0x45c77c[_0x44d3d9(0x1e8)]()==='')throw new Error(_0x44d3d9(0x1e7));const _0x195726=_0x45c77c[_0x44d3d9(0x1e8)](),_0x117988=_0x195726[_0x44d3d9(0x1ee)]('/');if(_0x117988['length']===0x1)return{'projectName':_0x117988[0x0],'agentName':undefined};else{if(_0x117988[_0x44d3d9(0x1ed)]===0x2){const [_0x59d8d7,_0x32bd38]=_0x117988;if(!_0x59d8d7||_0x59d8d7['trim']()==='')throw new Error('Project\x20name\x20cannot\x20be\x20empty');if(!_0x32bd38||_0x32bd38['trim']()==='')throw new Error('Agent\x20name\x20cannot\x20be\x20empty');return{'projectName':_0x59d8d7['trim'](),'agentName':_0x32bd38['trim']()};}else throw new Error(_0x44d3d9(0x1eb)+_0x45c77c+_0x44d3d9(0x1e2));}}function a85_0x54f0(){const _0x4958e8=['3993260kYsaSE','7807232vtGGXQ','Invalid\x20agent\x20reference\x20format:\x20','1540700rYTgig','length','split','1659xStzVs','3MUrkeJ','.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','68571ErPFJW','16957611QqtSBG','242938sCcOjf','22650ajQMhC','Agent\x20reference\x20cannot\x20be\x20empty','trim'];a85_0x54f0=function(){return _0x4958e8;};return a85_0x54f0();}
@@ -1 +1 @@
1
- (function(_0xa75001,_0x4a8d45){const _0x33c8eb=a86_0x39f7,_0x28db2f=_0xa75001();while(!![]){try{const _0x4dbfd4=parseInt(_0x33c8eb(0xc4))/0x1+parseInt(_0x33c8eb(0xcd))/0x2+-parseInt(_0x33c8eb(0xc6))/0x3*(parseInt(_0x33c8eb(0xcb))/0x4)+-parseInt(_0x33c8eb(0xc3))/0x5*(parseInt(_0x33c8eb(0xc2))/0x6)+-parseInt(_0x33c8eb(0xcc))/0x7*(-parseInt(_0x33c8eb(0xc7))/0x8)+parseInt(_0x33c8eb(0xc9))/0x9*(-parseInt(_0x33c8eb(0xca))/0xa)+parseInt(_0x33c8eb(0xc1))/0xb;if(_0x4dbfd4===_0x4a8d45)break;else _0x28db2f['push'](_0x28db2f['shift']());}catch(_0xcd7203){_0x28db2f['push'](_0x28db2f['shift']());}}}(a86_0x2be6,0xee3d6));function a86_0x39f7(_0x8f9d6c,_0x3bf0bd){_0x8f9d6c=_0x8f9d6c-0xc1;const _0x2be63f=a86_0x2be6();let _0x39f71a=_0x2be63f[_0x8f9d6c];return _0x39f71a;}function a86_0x2be6(){const _0x149cb5=['length','13131rDBRoK','1110nEIyNk','36SSwWyP','7wewEBU','1344260eLFWry','map','6038868aJPhJQ','12ASWmna','588215ClGrHr','659720wXXJmj','push','541542bZqvWK','8934824uqCMde'];a86_0x2be6=function(){return _0x149cb5;};return a86_0x2be6();}export async function batchAsync(_0x2d19c9,_0x165cb0,_0x23f033=0xa){const _0x8baf51=a86_0x39f7,_0x158a8a=[];for(let _0x2cb2c0=0x0;_0x2cb2c0<_0x2d19c9[_0x8baf51(0xc8)];_0x2cb2c0+=_0x23f033){const _0x1d41ab=_0x2d19c9['slice'](_0x2cb2c0,_0x2cb2c0+_0x23f033),_0x2cfc98=await Promise['all'](_0x1d41ab[_0x8baf51(0xce)](_0x165cb0));_0x158a8a[_0x8baf51(0xc5)](..._0x2cfc98);}return _0x158a8a;}
1
+ function a86_0x23e8(){const _0x39a163=['1819096pGGsgw','224603nKXRrW','1884789oTDZtn','4YpDKca','4286986KQRmJe','19626iaIJof','1340XWpPox','map','push','3369290FYzyCr','2MJgPZi','slice','2802JRQYGE','7uuwvLw'];a86_0x23e8=function(){return _0x39a163;};return a86_0x23e8();}function a86_0x1884(_0x9c6367,_0x445a22){_0x9c6367=_0x9c6367-0xce;const _0x23e8b2=a86_0x23e8();let _0x1884c8=_0x23e8b2[_0x9c6367];return _0x1884c8;}(function(_0x92f48d,_0x77633e){const _0x7ead5f=a86_0x1884,_0x18ad7b=_0x92f48d();while(!![]){try{const _0x19689d=-parseInt(_0x7ead5f(0xd8))/0x1*(parseInt(_0x7ead5f(0xd3))/0x2)+parseInt(_0x7ead5f(0xce))/0x3*(-parseInt(_0x7ead5f(0xda))/0x4)+-parseInt(_0x7ead5f(0xcf))/0x5*(-parseInt(_0x7ead5f(0xd5))/0x6)+-parseInt(_0x7ead5f(0xd6))/0x7*(parseInt(_0x7ead5f(0xd7))/0x8)+-parseInt(_0x7ead5f(0xd9))/0x9+parseInt(_0x7ead5f(0xd2))/0xa+parseInt(_0x7ead5f(0xdb))/0xb;if(_0x19689d===_0x77633e)break;else _0x18ad7b['push'](_0x18ad7b['shift']());}catch(_0x3209cc){_0x18ad7b['push'](_0x18ad7b['shift']());}}}(a86_0x23e8,0x2ce32));export async function batchAsync(_0x511603,_0x1ef9ea,_0x4998e3=0xa){const _0x26cff4=a86_0x1884,_0x4a0bc9=[];for(let _0x9843d6=0x0;_0x9843d6<_0x511603['length'];_0x9843d6+=_0x4998e3){const _0x3abd31=_0x511603[_0x26cff4(0xd4)](_0x9843d6,_0x9843d6+_0x4998e3),_0x472faf=await Promise['all'](_0x3abd31[_0x26cff4(0xd0)](_0x1ef9ea));_0x4a0bc9[_0x26cff4(0xd1)](..._0x472faf);}return _0x4a0bc9;}
@@ -1 +1 @@
1
- (function(_0x4ef76b,_0x2503fd){const _0x4fd9eb=a87_0x5db0,_0xa8ae17=_0x4ef76b();while(!![]){try{const _0xedbcbf=-parseInt(_0x4fd9eb(0x1db))/0x1*(parseInt(_0x4fd9eb(0x1d8))/0x2)+parseInt(_0x4fd9eb(0x1d9))/0x3+-parseInt(_0x4fd9eb(0x1e0))/0x4*(parseInt(_0x4fd9eb(0x1e3))/0x5)+-parseInt(_0x4fd9eb(0x1d5))/0x6+parseInt(_0x4fd9eb(0x1da))/0x7+-parseInt(_0x4fd9eb(0x1d6))/0x8*(parseInt(_0x4fd9eb(0x1d3))/0x9)+-parseInt(_0x4fd9eb(0x1df))/0xa*(-parseInt(_0x4fd9eb(0x1dd))/0xb);if(_0xedbcbf===_0x2503fd)break;else _0xa8ae17['push'](_0xa8ae17['shift']());}catch(_0x5f2e3a){_0xa8ae17['push'](_0xa8ae17['shift']());}}}(a87_0x4065,0x63499));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';function a87_0x5db0(_0xa1904f,_0x3bff91){_0xa1904f=_0xa1904f-0x1d3;const _0x40659f=a87_0x4065();let _0x5db03c=_0x40659f[_0xa1904f];return _0x5db03c;}import{join}from'path';function a87_0x4065(){const _0x2a49a3=['894564jmQOOl','3480239gRMrVY','7tuKsRo','last_chat_id','244486kbcRyI','cwd','340XQHwtY','433148EucLXt','utf-8','tdx','20CzWnlM','62037LiwoHa','.cache','900912xDUJnU','488cyAekz','trim','40170xPdLBx'];a87_0x4065=function(){return _0x2a49a3;};return a87_0x4065();}function getCacheDir(){const _0x12ec52=a87_0x5db0;return join(process[_0x12ec52(0x1de)](),_0x12ec52(0x1d4),_0x12ec52(0x1e2));}function getLastChatIdPath(){const _0xa2e08b=a87_0x5db0;return join(getCacheDir(),_0xa2e08b(0x1dc));}function ensureCacheDir(){const _0x391619=getCacheDir();!existsSync(_0x391619)&&mkdirSync(_0x391619,{'recursive':!![]});}export function saveLastChatId(_0x4a4bce){const _0xbfd67=a87_0x5db0;ensureCacheDir();const _0x3253df=getLastChatIdPath();writeFileSync(_0x3253df,_0x4a4bce,_0xbfd67(0x1e1));}export function loadLastChatId(){const _0x37ad14=a87_0x5db0,_0x6e8ac=getLastChatIdPath();if(!existsSync(_0x6e8ac))return undefined;try{const _0x2622d1=readFileSync(_0x6e8ac,_0x37ad14(0x1e1))[_0x37ad14(0x1d7)]();return _0x2622d1||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x5ecbb6=a87_0x5db0,_0x382082=getLastChatIdPath();if(existsSync(_0x382082))try{writeFileSync(_0x382082,'',_0x5ecbb6(0x1e1));}catch{}}
1
+ (function(_0xf7e84c,_0x3c1c5f){const _0x287ea7=a87_0x17f2,_0x506a1d=_0xf7e84c();while(!![]){try{const _0x11d388=parseInt(_0x287ea7(0xbb))/0x1*(parseInt(_0x287ea7(0xb0))/0x2)+-parseInt(_0x287ea7(0xbc))/0x3*(parseInt(_0x287ea7(0xb1))/0x4)+parseInt(_0x287ea7(0xbd))/0x5+-parseInt(_0x287ea7(0xb6))/0x6+parseInt(_0x287ea7(0xb9))/0x7+parseInt(_0x287ea7(0xb8))/0x8*(-parseInt(_0x287ea7(0xaf))/0x9)+parseInt(_0x287ea7(0xba))/0xa;if(_0x11d388===_0x3c1c5f)break;else _0x506a1d['push'](_0x506a1d['shift']());}catch(_0x14411a){_0x506a1d['push'](_0x506a1d['shift']());}}}(a87_0x1b66,0x263a8));function a87_0x17f2(_0x153b8a,_0x1699a1){_0x153b8a=_0x153b8a-0xaf;const _0x1b66bd=a87_0x1b66();let _0x17f281=_0x1b66bd[_0x153b8a];return _0x17f281;}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x540e4a=a87_0x17f2;return join(process[_0x540e4a(0xb5)](),_0x540e4a(0xb3),_0x540e4a(0xb7));}function a87_0x1b66(){const _0x2974c1=['24044fvoFbU','utf-8','.cache','last_chat_id','cwd','1097808viHqhD','tdx','1944yoDJaR','2085566sEkXpV','2827940gzWcdk','27133lQObnV','123LfNBoC','665090TwpADc','9756CVecmg','10avNcfJ'];a87_0x1b66=function(){return _0x2974c1;};return a87_0x1b66();}function getLastChatIdPath(){const _0x1d699c=a87_0x17f2;return join(getCacheDir(),_0x1d699c(0xb4));}function ensureCacheDir(){const _0x2a36fa=getCacheDir();!existsSync(_0x2a36fa)&&mkdirSync(_0x2a36fa,{'recursive':!![]});}export function saveLastChatId(_0x25a2db){const _0x5e5183=a87_0x17f2;ensureCacheDir();const _0x253c14=getLastChatIdPath();writeFileSync(_0x253c14,_0x25a2db,_0x5e5183(0xb2));}export function loadLastChatId(){const _0x8d0e2f=getLastChatIdPath();if(!existsSync(_0x8d0e2f))return undefined;try{const _0x75a9cb=readFileSync(_0x8d0e2f,'utf-8')['trim']();return _0x75a9cb||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x476d37=a87_0x17f2,_0x41c146=getLastChatIdPath();if(existsSync(_0x41c146))try{writeFileSync(_0x41c146,'',_0x476d37(0xb2));}catch{}}
@@ -1 +1 @@
1
- (function(_0x1259e8,_0x5e3e68){const _0x566719=a88_0x9179,_0x17cc93=_0x1259e8();while(!![]){try{const _0x4c32f0=parseInt(_0x566719(0xa6))/0x1*(parseInt(_0x566719(0xa1))/0x2)+parseInt(_0x566719(0xad))/0x3*(-parseInt(_0x566719(0xb5))/0x4)+parseInt(_0x566719(0xa8))/0x5+-parseInt(_0x566719(0xab))/0x6*(-parseInt(_0x566719(0xb9))/0x7)+-parseInt(_0x566719(0xa5))/0x8*(-parseInt(_0x566719(0xaf))/0x9)+-parseInt(_0x566719(0xb2))/0xa+parseInt(_0x566719(0xb4))/0xb;if(_0x4c32f0===_0x5e3e68)break;else _0x17cc93['push'](_0x17cc93['shift']());}catch(_0x3f35e8){_0x17cc93['push'](_0x17cc93['shift']());}}}(a88_0x2943,0xc9e34));import{Chalk}from'chalk';export function shouldUseColor(_0x16092c={}){const _0x29bc07=a88_0x9179;if(_0x16092c[_0x29bc07(0xb3)]===!![])return![];if(_0x16092c[_0x29bc07(0xa4)]===!![])return!![];if(process[_0x29bc07(0xae)][_0x29bc07(0xa2)]!==undefined)return![];return process['stdout'][_0x29bc07(0xb6)]??![];}export function getChalk(_0x318946={}){if(shouldUseColor(_0x318946))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xfc4aa6,_0x103f9a={}){return getChalk(_0x103f9a)['dim'](_0xfc4aa6);}export function colorHeader(_0x36fa05,_0x554676={}){const _0x1b0f46=a88_0x9179;return getChalk(_0x554676)[_0x1b0f46(0xb1)](_0x36fa05);}export function colorType(_0x1be35a,_0x20e5b0={}){return getChalk(_0x20e5b0)['dim'](_0x1be35a);}function a88_0x9179(_0x5d7cf5,_0xf77cd){_0x5d7cf5=_0x5d7cf5-0x9f;const _0x294332=a88_0x2943();let _0x91796f=_0x294332[_0x5d7cf5];return _0x91796f;}export function colorJSONKey(_0x38aecc,_0x11e2e8={}){const _0x5c0c2b=a88_0x9179;return getChalk(_0x11e2e8)[_0x5c0c2b(0xb0)](_0x38aecc);}export function colorJSONString(_0x12b9c0,_0x39b4a9={}){return getChalk(_0x39b4a9)['green'](_0x12b9c0);}export function colorJSONNumber(_0x2b4334,_0x8e00d8={}){const _0x17cee6=a88_0x9179;return getChalk(_0x8e00d8)[_0x17cee6(0xb1)](_0x2b4334);}export function colorJSONBoolean(_0x5558f3,_0x526f7b={}){const _0x3ca77f=a88_0x9179;return getChalk(_0x526f7b)[_0x3ca77f(0xbb)](_0x5558f3);}export function colorJSONNull(_0x2638ba,_0x325aa9={}){const _0x3f2881=a88_0x9179;return getChalk(_0x325aa9)[_0x3f2881(0xb7)](_0x2638ba);}function a88_0x2943(){const _0x3f799b=['blue','cyan','12820540iBgtXp','noColor','7619161FZPWdE','44lAHxab','isTTY','dim','join','42tMjFxJ','repeat','yellow','null','boolean','entries','66526GtdWvQ','NO_COLOR','length','color','8OEfqaO','25CSjInN','number','2686915BXvjdq','map','string','510684XZCXrp','stringify','359703XXZdrj','env','7700436aIQwpD'];a88_0x2943=function(){return _0x3f799b;};return a88_0x2943();}export function colorizeJSONCompact(_0xe96465,_0x2016c4={}){const _0x495501=a88_0x9179;if(!shouldUseColor(_0x2016c4))return JSON[_0x495501(0xac)](_0xe96465);if(_0xe96465===null)return colorJSONNull(_0x495501(0xbc),_0x2016c4);if(typeof _0xe96465===_0x495501(0x9f))return colorJSONBoolean(String(_0xe96465),_0x2016c4);if(typeof _0xe96465===_0x495501(0xa7))return colorJSONNumber(String(_0xe96465),_0x2016c4);if(typeof _0xe96465==='string')return colorJSONString(JSON['stringify'](_0xe96465),_0x2016c4);if(Array['isArray'](_0xe96465)){if(_0xe96465[_0x495501(0xa3)]===0x0)return'[]';const _0x1be42b=_0xe96465['map'](_0x91a725=>colorizeJSONCompact(_0x91a725,_0x2016c4));return'['+_0x1be42b[_0x495501(0xb8)](',')+']';}if(typeof _0xe96465==='object'){const _0x1d85d3=Object[_0x495501(0xa0)](_0xe96465);if(_0x1d85d3[_0x495501(0xa3)]===0x0)return'{}';const _0x140fdf=_0x1d85d3[_0x495501(0xa9)](([_0x1a1f95,_0x4f98f1])=>{const _0x20816a=colorJSONKey(JSON['stringify'](_0x1a1f95),_0x2016c4),_0x2e1249=colorizeJSONCompact(_0x4f98f1,_0x2016c4);return _0x20816a+':'+_0x2e1249;});return'{'+_0x140fdf[_0x495501(0xb8)](',')+'}';}return String(_0xe96465);}export function colorizeJSON(_0x564644,_0x22c9af={},_0x3df2e0=0x0){const _0x5f08e2=a88_0x9179;if(!shouldUseColor(_0x22c9af))return JSON[_0x5f08e2(0xac)](_0x564644,null,0x2);const _0x52416a='\x20'[_0x5f08e2(0xba)](_0x3df2e0),_0x4e3474=_0x3df2e0+0x2;if(_0x564644===null)return colorJSONNull(_0x5f08e2(0xbc),_0x22c9af);if(typeof _0x564644===_0x5f08e2(0x9f))return colorJSONBoolean(String(_0x564644),_0x22c9af);if(typeof _0x564644===_0x5f08e2(0xa7))return colorJSONNumber(String(_0x564644),_0x22c9af);if(typeof _0x564644===_0x5f08e2(0xaa))return colorJSONString(JSON['stringify'](_0x564644),_0x22c9af);if(Array['isArray'](_0x564644)){if(_0x564644[_0x5f08e2(0xa3)]===0x0)return'[]';const _0x4f95cf=_0x564644['map'](_0x12d512=>{const _0x121477=colorizeJSON(_0x12d512,_0x22c9af,_0x4e3474);return''+'\x20'['repeat'](_0x4e3474)+_0x121477;});return'[\x0a'+_0x4f95cf['join'](',\x0a')+('\x0a'+_0x52416a+']');}if(typeof _0x564644==='object'){const _0x395eda=Object[_0x5f08e2(0xa0)](_0x564644);if(_0x395eda[_0x5f08e2(0xa3)]===0x0)return'{}';const _0x15a5f7=_0x395eda[_0x5f08e2(0xa9)](([_0x4679fa,_0x5d7fea])=>{const _0xe457db=_0x5f08e2,_0xe2456e=colorJSONKey(JSON[_0xe457db(0xac)](_0x4679fa),_0x22c9af),_0x5a8729=colorizeJSON(_0x5d7fea,_0x22c9af,_0x4e3474);return''+'\x20'[_0xe457db(0xba)](_0x4e3474)+_0xe2456e+':\x20'+_0x5a8729;});return'{\x0a'+_0x15a5f7['join'](',\x0a')+('\x0a'+_0x52416a+'}');}return String(_0x564644);}
1
+ (function(_0x21f089,_0x29251a){const _0x451d86=a88_0x427f,_0xec3eb7=_0x21f089();while(!![]){try{const _0x53537e=parseInt(_0x451d86(0x20d))/0x1*(parseInt(_0x451d86(0x205))/0x2)+-parseInt(_0x451d86(0x1fe))/0x3+parseInt(_0x451d86(0x1f5))/0x4+parseInt(_0x451d86(0x204))/0x5+-parseInt(_0x451d86(0x200))/0x6+-parseInt(_0x451d86(0x203))/0x7*(parseInt(_0x451d86(0x1f4))/0x8)+parseInt(_0x451d86(0x1f2))/0x9;if(_0x53537e===_0x29251a)break;else _0xec3eb7['push'](_0xec3eb7['shift']());}catch(_0x3ead59){_0xec3eb7['push'](_0xec3eb7['shift']());}}}(a88_0x5661,0x9e77d));function a88_0x5661(){const _0x4a1b8b=['dim','color','NO_COLOR','string','isArray','3024858RHyWxD','join','5741430nCXFeY','entries','boolean','3962FQUuMk','3918005FRcrsN','40290bzTMxm','length','object','stringify','env','blue','repeat','isTTY','2QwtFkv','yellow','9965511nHlzfQ','map','4792IpOTdv','4088560sEHYWs','number','green','null'];a88_0x5661=function(){return _0x4a1b8b;};return a88_0x5661();}import{Chalk}from'chalk';export function shouldUseColor(_0x20bd11={}){const _0x5b0062=a88_0x427f;if(_0x20bd11['noColor']===!![])return![];if(_0x20bd11[_0x5b0062(0x1fa)]===!![])return!![];if(process[_0x5b0062(0x209)][_0x5b0062(0x1fb)]!==undefined)return![];return process['stdout'][_0x5b0062(0x20c)]??![];}export function getChalk(_0x22f3cb={}){if(shouldUseColor(_0x22f3cb))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x30c84e,_0x5a5618={}){const _0x2a3527=a88_0x427f;return getChalk(_0x5a5618)[_0x2a3527(0x1f9)](_0x30c84e);}export function colorHeader(_0x3f09b3,_0x59e610={}){return getChalk(_0x59e610)['cyan'](_0x3f09b3);}export function colorType(_0x49c39d,_0x22abc5={}){return getChalk(_0x22abc5)['dim'](_0x49c39d);}export function colorJSONKey(_0x5e827b,_0x4e19f2={}){const _0x19c24f=a88_0x427f;return getChalk(_0x4e19f2)[_0x19c24f(0x20a)](_0x5e827b);}export function colorJSONString(_0x377d2f,_0x190634={}){const _0xbf658d=a88_0x427f;return getChalk(_0x190634)[_0xbf658d(0x1f7)](_0x377d2f);}export function colorJSONNumber(_0x323a9b,_0x22d9d6={}){return getChalk(_0x22d9d6)['cyan'](_0x323a9b);}function a88_0x427f(_0x5de9fe,_0x7fe78e){_0x5de9fe=_0x5de9fe-0x1f1;const _0x5661e6=a88_0x5661();let _0x427fde=_0x5661e6[_0x5de9fe];return _0x427fde;}export function colorJSONBoolean(_0x43695d,_0x50168d={}){const _0x540423=a88_0x427f;return getChalk(_0x50168d)[_0x540423(0x1f1)](_0x43695d);}export function colorJSONNull(_0x4e5784,_0xa70fa0={}){return getChalk(_0xa70fa0)['dim'](_0x4e5784);}export function colorizeJSONCompact(_0x12d269,_0x3bfc8f={}){const _0xb78ad0=a88_0x427f;if(!shouldUseColor(_0x3bfc8f))return JSON[_0xb78ad0(0x208)](_0x12d269);if(_0x12d269===null)return colorJSONNull(_0xb78ad0(0x1f8),_0x3bfc8f);if(typeof _0x12d269===_0xb78ad0(0x202))return colorJSONBoolean(String(_0x12d269),_0x3bfc8f);if(typeof _0x12d269===_0xb78ad0(0x1f6))return colorJSONNumber(String(_0x12d269),_0x3bfc8f);if(typeof _0x12d269==='string')return colorJSONString(JSON[_0xb78ad0(0x208)](_0x12d269),_0x3bfc8f);if(Array[_0xb78ad0(0x1fd)](_0x12d269)){if(_0x12d269[_0xb78ad0(0x206)]===0x0)return'[]';const _0xb4d374=_0x12d269[_0xb78ad0(0x1f3)](_0x469c99=>colorizeJSONCompact(_0x469c99,_0x3bfc8f));return'['+_0xb4d374[_0xb78ad0(0x1ff)](',')+']';}if(typeof _0x12d269==='object'){const _0x2898ef=Object['entries'](_0x12d269);if(_0x2898ef[_0xb78ad0(0x206)]===0x0)return'{}';const _0x5c4db7=_0x2898ef[_0xb78ad0(0x1f3)](([_0x18fbdf,_0x322c22])=>{const _0xffbee8=colorJSONKey(JSON['stringify'](_0x18fbdf),_0x3bfc8f),_0x1f5402=colorizeJSONCompact(_0x322c22,_0x3bfc8f);return _0xffbee8+':'+_0x1f5402;});return'{'+_0x5c4db7['join'](',')+'}';}return String(_0x12d269);}export function colorizeJSON(_0x38f102,_0x9104ae={},_0x8091a4=0x0){const _0x507279=a88_0x427f;if(!shouldUseColor(_0x9104ae))return JSON[_0x507279(0x208)](_0x38f102,null,0x2);const _0x599654='\x20'[_0x507279(0x20b)](_0x8091a4),_0x467527=_0x8091a4+0x2;if(_0x38f102===null)return colorJSONNull(_0x507279(0x1f8),_0x9104ae);if(typeof _0x38f102===_0x507279(0x202))return colorJSONBoolean(String(_0x38f102),_0x9104ae);if(typeof _0x38f102===_0x507279(0x1f6))return colorJSONNumber(String(_0x38f102),_0x9104ae);if(typeof _0x38f102===_0x507279(0x1fc))return colorJSONString(JSON[_0x507279(0x208)](_0x38f102),_0x9104ae);if(Array[_0x507279(0x1fd)](_0x38f102)){if(_0x38f102[_0x507279(0x206)]===0x0)return'[]';const _0x4fa3ec=_0x38f102[_0x507279(0x1f3)](_0x13013c=>{const _0x49ecf3=_0x507279,_0x882300=colorizeJSON(_0x13013c,_0x9104ae,_0x467527);return''+'\x20'[_0x49ecf3(0x20b)](_0x467527)+_0x882300;});return'[\x0a'+_0x4fa3ec[_0x507279(0x1ff)](',\x0a')+('\x0a'+_0x599654+']');}if(typeof _0x38f102===_0x507279(0x207)){const _0x3387cf=Object[_0x507279(0x201)](_0x38f102);if(_0x3387cf['length']===0x0)return'{}';const _0x5bb6ca=_0x3387cf[_0x507279(0x1f3)](([_0x107174,_0x5d3424])=>{const _0xb9fdb4=_0x507279,_0x5d2f93=colorJSONKey(JSON[_0xb9fdb4(0x208)](_0x107174),_0x9104ae),_0x509fc1=colorizeJSON(_0x5d3424,_0x9104ae,_0x467527);return''+'\x20'[_0xb9fdb4(0x20b)](_0x467527)+_0x5d2f93+':\x20'+_0x509fc1;});return'{\x0a'+_0x5bb6ca[_0x507279(0x1ff)](',\x0a')+('\x0a'+_0x599654+'}');}return String(_0x38f102);}
@@ -1 +1 @@
1
- (function(_0x5acdd6,_0xbf1cae){const _0x61de3c=a89_0x3810,_0x376e81=_0x5acdd6();while(!![]){try{const _0x312779=-parseInt(_0x61de3c(0x1e7))/0x1*(-parseInt(_0x61de3c(0x1f0))/0x2)+parseInt(_0x61de3c(0x1cc))/0x3*(-parseInt(_0x61de3c(0x1b3))/0x4)+parseInt(_0x61de3c(0x1e3))/0x5+-parseInt(_0x61de3c(0x1d1))/0x6*(parseInt(_0x61de3c(0x1cf))/0x7)+-parseInt(_0x61de3c(0x1df))/0x8*(-parseInt(_0x61de3c(0x1b6))/0x9)+parseInt(_0x61de3c(0x1c1))/0xa*(parseInt(_0x61de3c(0x1e9))/0xb)+-parseInt(_0x61de3c(0x1c9))/0xc;if(_0x312779===_0xbf1cae)break;else _0x376e81['push'](_0x376e81['shift']());}catch(_0x73275){_0x376e81['push'](_0x376e81['shift']());}}}(a89_0x37ee,0x6a6ed));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a89_0x168a47 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';function a89_0x3810(_0x3ccfe5,_0x16cd68){_0x3ccfe5=_0x3ccfe5-0x1b1;const _0x37eeff=a89_0x37ee();let _0x38107d=_0x37eeff[_0x3ccfe5];return _0x38107d;}export function isStructuredFormat(_0x301562){const _0x2b8701=a89_0x3810;return _0x301562[_0x2b8701(0x1c3)]===_0x2b8701(0x1da)||_0x301562[_0x2b8701(0x1c3)]===_0x2b8701(0x1ba)||_0x301562['format']==='tsv'||_0x301562['format']===_0x2b8701(0x1f2)||_0x301562[_0x2b8701(0x1da)]===!![]||_0x301562[_0x2b8701(0x1ba)]===!![]||_0x301562[_0x2b8701(0x1de)]===!![]||_0x301562['table']===!![];}export function parseOutputOptions(_0x5bcdf7){const _0x29b6ec=a89_0x3810;return{'format':_0x5bcdf7['format']||'table','output':_0x5bcdf7[_0x29b6ec(0x1b7)]||'','limit':_0x5bcdf7[_0x29b6ec(0x1d2)],'color':_0x5bcdf7[_0x29b6ec(0x1ef)],'noColor':_0x5bcdf7[_0x29b6ec(0x1bd)]};}function convertSDKResultToQueryResult(_0x123b81){const _0x10e0db=a89_0x3810,_0x3c8c76=[];if(_0x123b81[_0x10e0db(0x1ee)]>0x0){const _0x39496d=_0x123b81[0x0];for(const [_0x244bf6,_0x324405]of Object[_0x10e0db(0x1e2)](_0x39496d)){let _0x4a1817=_0x10e0db(0x1f8);if(typeof _0x324405===_0x10e0db(0x1ed))_0x4a1817=Number[_0x10e0db(0x1c7)](_0x324405)?_0x10e0db(0x1f6):'double';else{if(typeof _0x324405===_0x10e0db(0x1d0))_0x4a1817='boolean';else _0x324405===null&&(_0x4a1817=_0x10e0db(0x1f8));}_0x3c8c76[_0x10e0db(0x1cb)]({'name':_0x244bf6,'type':_0x4a1817});}}return{'queryId':'sdk-result','columns':_0x3c8c76,'data':_0x123b81,'stats':{'state':_0x10e0db(0x1f3),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x123b81[_0x10e0db(0x1ee)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x4ed75b,_0x5242ab){const _0x2093ed=convertSDKResultToQueryResult(_0x4ed75b);return formatQueryOutput(_0x2093ed,_0x5242ab);}export async function formatQueryOutput(_0x542e42,_0x4991a8){const _0x5eff4d=a89_0x3810,{format:_0x418713,limit:_0x385373,output:_0x57523f,color:_0x1ccdb7,noColor:_0x1e4038}=_0x4991a8,_0x135eb1=Boolean(_0x57523f)&&!_0x1ccdb7,_0x38b47f={'color':_0x1ccdb7,'noColor':_0x1e4038||_0x135eb1};if(_0x418713===_0x5eff4d(0x1f2)){const _0x5dbee8=shouldUseLess(_0x418713,_0x57523f);return formatAsTable(_0x542e42,_0x385373,_0x5dbee8,_0x38b47f);}else{if(_0x418713==='json')return formatAsJSON(_0x542e42,_0x38b47f);else return _0x418713==='jsonl'?formatAsJSONL(_0x542e42,_0x38b47f):formatQueryResult(_0x542e42,_0x418713);}}function shouldUseLess(_0x5a96cf,_0x40afe6){const _0x41406d=a89_0x3810;return _0x5a96cf===_0x41406d(0x1f2)&&process[_0x41406d(0x1db)]['isTTY']&&!_0x40afe6;}export function resolveOutputOptions(_0x6a383e){const _0x57a6f9=a89_0x3810,_0x5666da=resolveOutputFormat(_0x6a383e[_0x57a6f9(0x1c3)],_0x6a383e['output'],_0x57a6f9(0x1f2));let _0x4ae7ec=typeof _0x6a383e[_0x57a6f9(0x1d2)]==='number'?_0x6a383e['limit']:parseInt(_0x6a383e[_0x57a6f9(0x1d2)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x10b37a=_0x6a383e[_0x57a6f9(0x1b7)]||'';return shouldUseLess(_0x5666da,_0x10b37a)&&(_0x4ae7ec=Infinity),{'format':_0x5666da,'output':_0x10b37a,'limit':_0x4ae7ec,'color':_0x6a383e[_0x57a6f9(0x1ef)],'noColor':_0x6a383e['noColor']};}export function writeOutput(_0x291a15,_0x1eef54,_0x5dc926){const _0x306b8e=a89_0x3810;return _0x1eef54?(writeFileSync(_0x1eef54,_0x291a15),console[_0x306b8e(0x1c2)](_0x306b8e(0x1dc)+_0x1eef54),Promise[_0x306b8e(0x1d5)]()):shouldUseLess(_0x5dc926||'','')?new Promise(_0x19407=>{const _0x205988=_0x306b8e,_0x487073=spawn(_0x205988(0x1e6),['-FXRSn'],{'stdio':[_0x205988(0x1d8),_0x205988(0x1f5),'inherit']});let _0xfb62a9=![];_0x487073['on'](_0x205988(0x1c2),()=>{const _0x15bf06=_0x205988;!_0xfb62a9&&(_0xfb62a9=!![],console[_0x15bf06(0x1c0)](_0x291a15),_0x19407());}),_0x487073['on'](_0x205988(0x1d4),()=>{!_0xfb62a9&&(_0xfb62a9=!![],_0x19407());}),_0x487073['on'](_0x205988(0x1b8),()=>{const _0x327b9a=_0x205988;!_0xfb62a9&&_0x487073[_0x327b9a(0x1ea)]&&(_0x487073[_0x327b9a(0x1ea)]['on']('error',()=>{}),_0x487073[_0x327b9a(0x1ea)][_0x327b9a(0x1e5)](_0x291a15),_0x487073[_0x327b9a(0x1ea)]['end']());}),!_0x487073[_0x205988(0x1ea)]&&(!_0xfb62a9&&(_0xfb62a9=!![],console[_0x205988(0x1c0)](_0x291a15),_0x19407()));}):(console['log'](_0x291a15),Promise['resolve']());}export async function handleSDKOutput(_0x5750af,_0x458081){const _0x51dfa8=a89_0x3810,_0x492f4f=resolveOutputOptions(_0x458081),_0x4bc1d0=await formatSDKOutput(_0x5750af,_0x492f4f);await writeOutput(_0x4bc1d0,_0x492f4f[_0x51dfa8(0x1b7)]||undefined,_0x492f4f[_0x51dfa8(0x1c3)]);}export async function handleQueryOutput(_0x3256af,_0x465813){const _0x231811=a89_0x3810,_0x3ec0bc=resolveOutputOptions(_0x465813),_0x46b3d7=await formatQueryOutput(_0x3256af,_0x3ec0bc);await writeOutput(_0x46b3d7,_0x3ec0bc[_0x231811(0x1b7)]||undefined,_0x3ec0bc[_0x231811(0x1c3)]);}function a89_0x37ee(){const _0x49c076=['number','length','color','1319666cSuNGg','keys','table','FINISHED','forEach','inherit','bigint','blue','varchar','magenta','padEnd','bold','769292EfpkPN','debug','map','3315789DenvxG','output','spawn','No\x20data','jsonl','[error]','cyan','noColor','yellow','stringify','log','10LphKWa','error','format','rule','cmdout','[params]','isInteger','repeat','6931872hIfcXQ','stderr','push','9LkSxzL','[rule]','filter','13706yGVQud','boolean','1470JfZqnK','limit','─┬─','close','resolve','max','object','pipe','params','json','stdout','Results\x20saved\x20to\x20','─┴─','tsv','8PlbtRx','query','trim','entries','3394295CvosxK','string','write','less','1wqNRAy','split','3994881qnufSW','stdin','join','[Object]'];a89_0x37ee=function(){return _0x49c076;};return a89_0x37ee();}async function formatSingleObject(_0x26d203,_0x529f09){const _0x393b83=a89_0x3810,{format:_0x1dc187,color:_0x576401,noColor:_0x2b8e48}=_0x529f09,_0x2a1fe1={'color':_0x576401,'noColor':_0x2b8e48};if(_0x1dc187===_0x393b83(0x1da)){if(shouldUseColor(_0x2a1fe1))return colorizeJSON(_0x26d203,_0x2a1fe1);return JSON[_0x393b83(0x1bf)](_0x26d203,null,0x2);}else{if(_0x1dc187===_0x393b83(0x1ba)){if(shouldUseColor(_0x2a1fe1))return colorizeJSONCompact(_0x26d203,_0x2a1fe1);return JSON[_0x393b83(0x1bf)](_0x26d203);}else{if(_0x1dc187===_0x393b83(0x1de))return Object[_0x393b83(0x1e2)](_0x26d203)[_0x393b83(0x1b5)](([_0x518710,_0x526fe3])=>_0x518710+'\x09'+_0x526fe3)['join']('\x0a');else{const _0x14ca9d=Object[_0x393b83(0x1e2)](_0x26d203);if(_0x14ca9d['length']===0x0)return _0x393b83(0x1b9);const _0x3ae58d=_0x26d203[_0x393b83(0x1b4)],_0x2a9ac6=_0x26d203[_0x393b83(0x1e0)],_0x1069df=_0x26d203[_0x393b83(0x1d9)],_0x1e378e=_0x26d203[_0x393b83(0x1c4)],_0x23732f=_0x2a9ac6?typeof _0x2a9ac6===_0x393b83(0x1e4)?_0x2a9ac6:JSON[_0x393b83(0x1bf)](_0x2a9ac6,null,0x2):undefined,_0x482d94=_0x1069df&&Object[_0x393b83(0x1f1)](_0x1069df)[_0x393b83(0x1ee)]>0x0?JSON[_0x393b83(0x1bf)](_0x1069df,null,0x2):undefined,_0x5eb786=_0x1e378e&&Object[_0x393b83(0x1f1)](_0x1e378e)[_0x393b83(0x1ee)]>0x0?JSON['stringify'](_0x1e378e,null,0x2):undefined,_0x4d0e70=_0x14ca9d[_0x393b83(0x1ce)](([_0x3f9e5e])=>_0x3f9e5e!==_0x393b83(0x1b4)&&_0x3f9e5e!==_0x393b83(0x1e0)&&_0x3f9e5e!==_0x393b83(0x1d9)&&_0x3f9e5e!==_0x393b83(0x1c4)),_0x1d80f6=Math['max'](..._0x4d0e70[_0x393b83(0x1b5)](([_0x1ab735])=>_0x1ab735['length'])),_0x49a1ab=Math[_0x393b83(0x1d6)](..._0x4d0e70[_0x393b83(0x1b5)](([,_0x326b87])=>{const _0x457303=_0x393b83;try{const _0x54b3e9=_0x326b87===null||_0x326b87===undefined?'':typeof _0x326b87==='object'?JSON[_0x457303(0x1bf)](_0x326b87):String(_0x326b87),_0x3c340c=_0x54b3e9[_0x457303(0x1e8)]('\x0a');return Math[_0x457303(0x1d6)](..._0x3c340c['map'](_0x1b06f9=>_0x1b06f9[_0x457303(0x1ee)]),0x0);}catch{return 0x0;}}),0x14),_0x44d435=[];_0x44d435[_0x393b83(0x1cb)](colorBorder('┌─'+'─'[_0x393b83(0x1c8)](_0x1d80f6)+_0x393b83(0x1d3)+'─'['repeat'](_0x49a1ab)+'─┐',_0x2a1fe1)),_0x4d0e70[_0x393b83(0x1f4)](([_0x55ee28,_0x411261])=>{const _0x12cb1e=_0x393b83;let _0x3e4d4e;try{_0x3e4d4e=_0x411261===null||_0x411261===undefined?'':typeof _0x411261===_0x12cb1e(0x1d7)?JSON[_0x12cb1e(0x1bf)](_0x411261):String(_0x411261);}catch{_0x3e4d4e=_0x12cb1e(0x1ec);}const _0x284dcf=_0x55ee28['padEnd'](_0x1d80f6),_0x54acee=_0x3e4d4e[_0x12cb1e(0x1e8)]('\x0a');_0x54acee['forEach']((_0x3ddf51,_0x5c7e6a)=>{const _0x128746=_0x12cb1e,_0xbb0200=colorBorder('│',_0x2a1fe1);_0x5c7e6a===0x0?_0x44d435['push'](_0xbb0200+'\x20'+_0x284dcf+'\x20'+_0xbb0200+'\x20'+_0x3ddf51[_0x128746(0x1b1)](_0x49a1ab)+'\x20'+_0xbb0200):_0x44d435[_0x128746(0x1cb)](_0xbb0200+'\x20'+'\x20'[_0x128746(0x1c8)](_0x1d80f6)+'\x20'+_0xbb0200+'\x20'+_0x3ddf51[_0x128746(0x1b1)](_0x49a1ab)+'\x20'+_0xbb0200);});}),_0x44d435[_0x393b83(0x1cb)](colorBorder('└─'+'─'['repeat'](_0x1d80f6)+_0x393b83(0x1dd)+'─'[_0x393b83(0x1c8)](_0x49a1ab)+'─┘',_0x2a1fe1));_0x23732f&&(_0x44d435[_0x393b83(0x1cb)](''),_0x44d435[_0x393b83(0x1cb)](String(a89_0x168a47[_0x393b83(0x1be)]['bold']('[query]'))),_0x44d435[_0x393b83(0x1cb)](_0x23732f));_0x482d94&&(_0x44d435['push'](''),_0x44d435[_0x393b83(0x1cb)](String(a89_0x168a47[_0x393b83(0x1f7)]['bold'](_0x393b83(0x1c6)))),_0x44d435[_0x393b83(0x1cb)](_0x482d94));_0x5eb786&&(_0x44d435[_0x393b83(0x1cb)](''),_0x44d435[_0x393b83(0x1cb)](String(a89_0x168a47[_0x393b83(0x1f9)]['bold'](_0x393b83(0x1cd)))),_0x44d435[_0x393b83(0x1cb)](_0x5eb786));if(_0x3ae58d){if(_0x3ae58d[_0x393b83(0x1ca)]){_0x44d435['push'](''),_0x44d435[_0x393b83(0x1cb)](String(a89_0x168a47['red'][_0x393b83(0x1b2)](_0x393b83(0x1bb))));const _0x13bf6b=_0x3ae58d[_0x393b83(0x1ca)]['split']('\x0a');_0x13bf6b['forEach'](_0x4cbb38=>{const _0x5d0b9b=_0x393b83;_0x4cbb38[_0x5d0b9b(0x1e1)]()&&_0x44d435[_0x5d0b9b(0x1cb)](_0x4cbb38);});}if(_0x3ae58d[_0x393b83(0x1c5)]){_0x44d435[_0x393b83(0x1cb)](''),_0x44d435[_0x393b83(0x1cb)](String(a89_0x168a47[_0x393b83(0x1bc)][_0x393b83(0x1b2)]('[logs]')));const _0x1da1f9=_0x3ae58d[_0x393b83(0x1c5)][_0x393b83(0x1e8)]('\x0a');_0x1da1f9[_0x393b83(0x1f4)](_0x58ea09=>{const _0x538223=_0x393b83;_0x58ea09['trim']()&&_0x44d435[_0x538223(0x1cb)](_0x58ea09);});}}return _0x44d435[_0x393b83(0x1eb)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x345a01,_0xe66466){const _0x60ca39=a89_0x3810;if(_0xe66466[_0x60ca39(0x1c3)]===_0x60ca39(0x1f2)){await handleSDKOutput([_0x345a01],_0xe66466);return;}const _0x5c3ca=resolveOutputOptions(_0xe66466),_0x2dad3f=await formatSingleObject(_0x345a01,_0x5c3ca);await writeOutput(_0x2dad3f,_0x5c3ca['output']||undefined,_0x5c3ca[_0x60ca39(0x1c3)]);}
1
+ (function(_0x2e238b,_0x4af1cf){const _0x2c8a4a=a89_0x2752,_0x7ddfe0=_0x2e238b();while(!![]){try{const _0xccc3cc=parseInt(_0x2c8a4a(0x16b))/0x1+-parseInt(_0x2c8a4a(0x19a))/0x2+-parseInt(_0x2c8a4a(0x159))/0x3+-parseInt(_0x2c8a4a(0x173))/0x4*(parseInt(_0x2c8a4a(0x166))/0x5)+-parseInt(_0x2c8a4a(0x189))/0x6+-parseInt(_0x2c8a4a(0x196))/0x7+-parseInt(_0x2c8a4a(0x155))/0x8*(-parseInt(_0x2c8a4a(0x168))/0x9);if(_0xccc3cc===_0x4af1cf)break;else _0x7ddfe0['push'](_0x7ddfe0['shift']());}catch(_0x465f57){_0x7ddfe0['push'](_0x7ddfe0['shift']());}}}(a89_0x4a56,0x57580));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a89_0x4c7441 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x125e4b){const _0x2a35f2=a89_0x2752;return _0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x170)||_0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x17d)||_0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x16d)||_0x125e4b[_0x2a35f2(0x17f)]===_0x2a35f2(0x18a)||_0x125e4b['json']===!![]||_0x125e4b[_0x2a35f2(0x17d)]===!![]||_0x125e4b['tsv']===!![]||_0x125e4b[_0x2a35f2(0x18a)]===!![];}export function parseOutputOptions(_0x42490b){const _0x499673=a89_0x2752;return{'format':_0x42490b[_0x499673(0x17f)]||_0x499673(0x18a),'output':_0x42490b[_0x499673(0x191)]||'','limit':_0x42490b[_0x499673(0x197)],'color':_0x42490b[_0x499673(0x188)],'noColor':_0x42490b['noColor']};}function convertSDKResultToQueryResult(_0x31aaf9){const _0x5bfc7d=a89_0x2752,_0x5efd58=[];if(_0x31aaf9[_0x5bfc7d(0x199)]>0x0){const _0x174254=_0x31aaf9[0x0];for(const [_0x2b539b,_0x139143]of Object[_0x5bfc7d(0x17b)](_0x174254)){let _0x50bf71=_0x5bfc7d(0x185);if(typeof _0x139143===_0x5bfc7d(0x186))_0x50bf71=Number[_0x5bfc7d(0x193)](_0x139143)?_0x5bfc7d(0x18f):_0x5bfc7d(0x15e);else{if(typeof _0x139143===_0x5bfc7d(0x15b))_0x50bf71=_0x5bfc7d(0x15b);else _0x139143===null&&(_0x50bf71=_0x5bfc7d(0x185));}_0x5efd58['push']({'name':_0x2b539b,'type':_0x50bf71});}}return{'queryId':_0x5bfc7d(0x178),'columns':_0x5efd58,'data':_0x31aaf9,'stats':{'state':_0x5bfc7d(0x15f),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x31aaf9[_0x5bfc7d(0x199)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x33d562,_0x2dd69d){const _0x4ba3f3=convertSDKResultToQueryResult(_0x33d562);return formatQueryOutput(_0x4ba3f3,_0x2dd69d);}export async function formatQueryOutput(_0x147b67,_0x30fefd){const _0x1844ea=a89_0x2752,{format:_0x42050a,limit:_0x1f3337,output:_0xe6b711,color:_0x120657,noColor:_0x3c4807}=_0x30fefd,_0x3da262=Boolean(_0xe6b711)&&!_0x120657,_0x415058={'color':_0x120657,'noColor':_0x3c4807||_0x3da262};if(_0x42050a==='table'){const _0x225898=shouldUseLess(_0x42050a,_0xe6b711);return formatAsTable(_0x147b67,_0x1f3337,_0x225898,_0x415058);}else{if(_0x42050a===_0x1844ea(0x170))return formatAsJSON(_0x147b67,_0x415058);else return _0x42050a===_0x1844ea(0x17d)?formatAsJSONL(_0x147b67,_0x415058):formatQueryResult(_0x147b67,_0x42050a);}}function shouldUseLess(_0x419d0f,_0xe6768c){const _0x12e1a6=a89_0x2752;return _0x419d0f===_0x12e1a6(0x18a)&&process[_0x12e1a6(0x15d)][_0x12e1a6(0x164)]&&!_0xe6768c;}export function resolveOutputOptions(_0x171200){const _0x3d9b4e=a89_0x2752,_0x2c5c44=resolveOutputFormat(_0x171200[_0x3d9b4e(0x17f)],_0x171200[_0x3d9b4e(0x191)],_0x3d9b4e(0x18a));let _0x378844=typeof _0x171200[_0x3d9b4e(0x197)]===_0x3d9b4e(0x186)?_0x171200['limit']:parseInt(_0x171200['limit']||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x55b672=_0x171200[_0x3d9b4e(0x191)]||'';return shouldUseLess(_0x2c5c44,_0x55b672)&&(_0x378844=Infinity),{'format':_0x2c5c44,'output':_0x55b672,'limit':_0x378844,'color':_0x171200[_0x3d9b4e(0x188)],'noColor':_0x171200['noColor']};}export function writeOutput(_0x222007,_0x295290,_0xf0f662){const _0x559db1=a89_0x2752;return _0x295290?(writeFileSync(_0x295290,_0x222007),console[_0x559db1(0x18c)](_0x559db1(0x16a)+_0x295290),Promise[_0x559db1(0x158)]()):shouldUseLess(_0xf0f662||'','')?new Promise(_0x1f78d5=>{const _0x37198c=_0x559db1,_0xd817e1=spawn(_0x37198c(0x160),['-FXRSn'],{'stdio':[_0x37198c(0x156),_0x37198c(0x15c),_0x37198c(0x15c)]});let _0xd0fcb3=![];_0xd817e1['on'](_0x37198c(0x18c),()=>{const _0x16e975=_0x37198c;!_0xd0fcb3&&(_0xd0fcb3=!![],console[_0x16e975(0x167)](_0x222007),_0x1f78d5());}),_0xd817e1['on'](_0x37198c(0x194),()=>{!_0xd0fcb3&&(_0xd0fcb3=!![],_0x1f78d5());}),_0xd817e1['on'](_0x37198c(0x152),()=>{const _0x4db45e=_0x37198c;!_0xd0fcb3&&_0xd817e1[_0x4db45e(0x174)]&&(_0xd817e1['stdin']['on'](_0x4db45e(0x18c),()=>{}),_0xd817e1[_0x4db45e(0x174)]['write'](_0x222007),_0xd817e1[_0x4db45e(0x174)][_0x4db45e(0x15a)]());}),!_0xd817e1[_0x37198c(0x174)]&&(!_0xd0fcb3&&(_0xd0fcb3=!![],console[_0x37198c(0x167)](_0x222007),_0x1f78d5()));}):(console[_0x559db1(0x167)](_0x222007),Promise[_0x559db1(0x158)]());}function a89_0x2752(_0x1d9705,_0x5eb19a){_0x1d9705=_0x1d9705-0x151;const _0x4a5644=a89_0x4a56();let _0x275284=_0x4a5644[_0x1d9705];return _0x275284;}export async function handleSDKOutput(_0xa841b5,_0x35d603){const _0x504bd6=a89_0x2752,_0xab7baf=resolveOutputOptions(_0x35d603),_0x56e6da=await formatSDKOutput(_0xa841b5,_0xab7baf);await writeOutput(_0x56e6da,_0xab7baf[_0x504bd6(0x191)]||undefined,_0xab7baf[_0x504bd6(0x17f)]);}export async function handleQueryOutput(_0x2e02ac,_0x4bf35d){const _0xc061d4=a89_0x2752,_0x3cfaf4=resolveOutputOptions(_0x4bf35d),_0x518c9d=await formatQueryOutput(_0x2e02ac,_0x3cfaf4);await writeOutput(_0x518c9d,_0x3cfaf4[_0xc061d4(0x191)]||undefined,_0x3cfaf4[_0xc061d4(0x17f)]);}async function formatSingleObject(_0x88a031,_0x571308){const _0x214537=a89_0x2752,{format:_0xa9ad0b,color:_0x5185af,noColor:_0x8fcddc}=_0x571308,_0x3ca43b={'color':_0x5185af,'noColor':_0x8fcddc};if(_0xa9ad0b==='json'){if(shouldUseColor(_0x3ca43b))return colorizeJSON(_0x88a031,_0x3ca43b);return JSON['stringify'](_0x88a031,null,0x2);}else{if(_0xa9ad0b===_0x214537(0x17d)){if(shouldUseColor(_0x3ca43b))return colorizeJSONCompact(_0x88a031,_0x3ca43b);return JSON[_0x214537(0x198)](_0x88a031);}else{if(_0xa9ad0b==='tsv')return Object[_0x214537(0x17b)](_0x88a031)[_0x214537(0x177)](([_0x3f0e21,_0x499a34])=>_0x3f0e21+'\x09'+_0x499a34)[_0x214537(0x19b)]('\x0a');else{const _0x273ea9=Object[_0x214537(0x17b)](_0x88a031);if(_0x273ea9[_0x214537(0x199)]===0x0)return _0x214537(0x161);const _0x40a8b5=_0x88a031['debug'],_0x2b71ae=_0x88a031[_0x214537(0x172)],_0x2ac2ba=_0x88a031[_0x214537(0x187)],_0x58d695=_0x88a031['rule'],_0x2ebf32=_0x2b71ae?typeof _0x2b71ae===_0x214537(0x184)?_0x2b71ae:JSON[_0x214537(0x198)](_0x2b71ae,null,0x2):undefined,_0x53b6c2=_0x2ac2ba&&Object['keys'](_0x2ac2ba)['length']>0x0?JSON[_0x214537(0x198)](_0x2ac2ba,null,0x2):undefined,_0x42a83c=_0x58d695&&Object[_0x214537(0x171)](_0x58d695)[_0x214537(0x199)]>0x0?JSON[_0x214537(0x198)](_0x58d695,null,0x2):undefined,_0x3acf9b=_0x273ea9[_0x214537(0x162)](([_0x2e1291])=>_0x2e1291!==_0x214537(0x183)&&_0x2e1291!==_0x214537(0x172)&&_0x2e1291!==_0x214537(0x187)&&_0x2e1291!==_0x214537(0x169)),_0x333d46=Math[_0x214537(0x17c)](..._0x3acf9b[_0x214537(0x177)](([_0x5beda7])=>_0x5beda7[_0x214537(0x199)])),_0x2c0fcc=Math[_0x214537(0x17c)](..._0x3acf9b[_0x214537(0x177)](([,_0x321310])=>{const _0x29527d=_0x214537;try{const _0x22bb46=_0x321310===null||_0x321310===undefined?'':typeof _0x321310==='object'?JSON[_0x29527d(0x198)](_0x321310):String(_0x321310),_0x1d2138=_0x22bb46['split']('\x0a');return Math['max'](..._0x1d2138['map'](_0x340ae0=>_0x340ae0['length']),0x0);}catch{return 0x0;}}),0x14),_0x19bd09=[];_0x19bd09[_0x214537(0x18d)](colorBorder('┌─'+'─'[_0x214537(0x165)](_0x333d46)+_0x214537(0x182)+'─'[_0x214537(0x165)](_0x2c0fcc)+'─┐',_0x3ca43b)),_0x3acf9b['forEach'](([_0x5f0a36,_0x483bd1])=>{const _0x1b5ae3=_0x214537;let _0x5035d1;try{_0x5035d1=_0x483bd1===null||_0x483bd1===undefined?'':typeof _0x483bd1===_0x1b5ae3(0x18b)?JSON[_0x1b5ae3(0x198)](_0x483bd1):String(_0x483bd1);}catch{_0x5035d1=_0x1b5ae3(0x176);}const _0x24f62c=_0x5f0a36[_0x1b5ae3(0x157)](_0x333d46),_0x396efc=_0x5035d1[_0x1b5ae3(0x16f)]('\x0a');_0x396efc[_0x1b5ae3(0x195)]((_0x4b06b1,_0x145518)=>{const _0x539f05=_0x1b5ae3,_0x3af554=colorBorder('│',_0x3ca43b);_0x145518===0x0?_0x19bd09[_0x539f05(0x18d)](_0x3af554+'\x20'+_0x24f62c+'\x20'+_0x3af554+'\x20'+_0x4b06b1[_0x539f05(0x157)](_0x2c0fcc)+'\x20'+_0x3af554):_0x19bd09['push'](_0x3af554+'\x20'+'\x20'['repeat'](_0x333d46)+'\x20'+_0x3af554+'\x20'+_0x4b06b1[_0x539f05(0x157)](_0x2c0fcc)+'\x20'+_0x3af554);});}),_0x19bd09[_0x214537(0x18d)](colorBorder('└─'+'─'[_0x214537(0x165)](_0x333d46)+_0x214537(0x16c)+'─'[_0x214537(0x165)](_0x2c0fcc)+'─┘',_0x3ca43b));_0x2ebf32&&(_0x19bd09[_0x214537(0x18d)](''),_0x19bd09[_0x214537(0x18d)](String(a89_0x4c7441[_0x214537(0x18e)]['bold'](_0x214537(0x190)))),_0x19bd09[_0x214537(0x18d)](_0x2ebf32));_0x53b6c2&&(_0x19bd09[_0x214537(0x18d)](''),_0x19bd09[_0x214537(0x18d)](String(a89_0x4c7441[_0x214537(0x175)][_0x214537(0x154)](_0x214537(0x192)))),_0x19bd09[_0x214537(0x18d)](_0x53b6c2));_0x42a83c&&(_0x19bd09[_0x214537(0x18d)](''),_0x19bd09[_0x214537(0x18d)](String(a89_0x4c7441[_0x214537(0x153)][_0x214537(0x154)](_0x214537(0x17a)))),_0x19bd09[_0x214537(0x18d)](_0x42a83c));if(_0x40a8b5){if(_0x40a8b5[_0x214537(0x180)]){_0x19bd09[_0x214537(0x18d)](''),_0x19bd09['push'](String(a89_0x4c7441[_0x214537(0x179)][_0x214537(0x154)](_0x214537(0x16e))));const _0x10a025=_0x40a8b5[_0x214537(0x180)]['split']('\x0a');_0x10a025[_0x214537(0x195)](_0x2d0bda=>{const _0x4b968d=_0x214537;_0x2d0bda[_0x4b968d(0x17e)]()&&_0x19bd09[_0x4b968d(0x18d)](_0x2d0bda);});}if(_0x40a8b5[_0x214537(0x181)]){_0x19bd09[_0x214537(0x18d)](''),_0x19bd09['push'](String(a89_0x4c7441[_0x214537(0x163)][_0x214537(0x154)](_0x214537(0x151))));const _0x3a08fc=_0x40a8b5[_0x214537(0x181)][_0x214537(0x16f)]('\x0a');_0x3a08fc[_0x214537(0x195)](_0x1c2f65=>{const _0x29fa4f=_0x214537;_0x1c2f65[_0x29fa4f(0x17e)]()&&_0x19bd09['push'](_0x1c2f65);});}}return _0x19bd09[_0x214537(0x19b)]('\x0a');}}}}function a89_0x4a56(){const _0x65a715=['padEnd','resolve','782841diQFaG','end','boolean','inherit','stdout','double','FINISHED','less','No\x20data','filter','cyan','isTTY','repeat','247385jFDTyi','log','9HFfhqr','rule','Results\x20saved\x20to\x20','548438qPsqlG','─┴─','tsv','[error]','split','json','keys','query','20jdkLKr','stdin','blue','[Object]','map','sdk-result','red','[rule]','entries','max','jsonl','trim','format','stderr','cmdout','─┬─','debug','string','varchar','number','params','color','2213124qSULpg','table','object','error','push','yellow','bigint','[query]','output','[params]','isInteger','close','forEach','2155601hpgOOd','limit','stringify','length','1391292HpUxiN','join','[logs]','spawn','magenta','bold','13520776diiqsK','pipe'];a89_0x4a56=function(){return _0x65a715;};return a89_0x4a56();}export async function handleSingleObjectOutput(_0x5637ac,_0x5804c5){const _0x3346c8=a89_0x2752;if(_0x5804c5['format']===_0x3346c8(0x18a)){await handleSDKOutput([_0x5637ac],_0x5804c5);return;}const _0xdab8b=resolveOutputOptions(_0x5804c5),_0x30380a=await formatSingleObject(_0x5637ac,_0xdab8b);await writeOutput(_0x30380a,_0xdab8b[_0x3346c8(0x191)]||undefined,_0xdab8b[_0x3346c8(0x17f)]);}
@@ -1 +1 @@
1
- (function(_0x40cc56,_0x542171){const _0x35a4dd=a90_0x4668,_0x30264b=_0x40cc56();while(!![]){try{const _0x5ad377=-parseInt(_0x35a4dd(0x70))/0x1+parseInt(_0x35a4dd(0x6b))/0x2+parseInt(_0x35a4dd(0x6d))/0x3+parseInt(_0x35a4dd(0x71))/0x4+-parseInt(_0x35a4dd(0x6f))/0x5+parseInt(_0x35a4dd(0x6c))/0x6+-parseInt(_0x35a4dd(0x6e))/0x7;if(_0x5ad377===_0x542171)break;else _0x30264b['push'](_0x30264b['shift']());}catch(_0x311ddc){_0x30264b['push'](_0x30264b['shift']());}}}(a90_0x1bbc,0xd4655));export const DEFAULT_DISPLAY_LIMIT=0x28;function a90_0x1bbc(){const _0x3ab6f6=['14762713upGPmN','4536830joSIyo','925164dcnOOc','3781064HSnEoN','2263424CSMirY','8922390dDoaQw','3742257rmvsIJ'];a90_0x1bbc=function(){return _0x3ab6f6;};return a90_0x1bbc();}export const DEFAULT_LISTING_LIMIT=0x2710;function a90_0x4668(_0x42277c,_0x43ac7e){_0x42277c=_0x42277c-0x6b;const _0x1bbcf6=a90_0x1bbc();let _0x4668cb=_0x1bbcf6[_0x42277c];return _0x4668cb;}export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x46a010,_0x19e604){if(_0x46a010===undefined)return _0x19e604;if(typeof _0x46a010==='number')return _0x46a010;return parseInt(_0x46a010,0xa);}
1
+ (function(_0x15dbbe,_0x3d3204){const _0xa584ab=a90_0x1190,_0xb3c0d3=_0x15dbbe();while(!![]){try{const _0x426d41=-parseInt(_0xa584ab(0x14d))/0x1+parseInt(_0xa584ab(0x154))/0x2*(-parseInt(_0xa584ab(0x14b))/0x3)+-parseInt(_0xa584ab(0x14c))/0x4*(-parseInt(_0xa584ab(0x155))/0x5)+parseInt(_0xa584ab(0x14e))/0x6+-parseInt(_0xa584ab(0x150))/0x7+-parseInt(_0xa584ab(0x151))/0x8*(parseInt(_0xa584ab(0x152))/0x9)+parseInt(_0xa584ab(0x14f))/0xa;if(_0x426d41===_0x3d3204)break;else _0xb3c0d3['push'](_0xb3c0d3['shift']());}catch(_0xb2f73b){_0xb3c0d3['push'](_0xb3c0d3['shift']());}}}(a90_0x1e72,0x9298e));export const DEFAULT_DISPLAY_LIMIT=0x28;function a90_0x1190(_0x5bc5af,_0x2f549a){_0x5bc5af=_0x5bc5af-0x14b;const _0x1e7218=a90_0x1e72();let _0x119082=_0x1e7218[_0x5bc5af];return _0x119082;}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x518c36,_0x5068ad){const _0x54955e=a90_0x1190;if(_0x518c36===undefined)return _0x5068ad;if(typeof _0x518c36===_0x54955e(0x153))return _0x518c36;return parseInt(_0x518c36,0xa);}function a90_0x1e72(){const _0xf12d29=['24pPkGly','660rugXPq','305364PohURb','7105788lhPeRs','18961290LcyZsy','6894335bByKcJ','7671384LiHySz','9KSSHlx','number','236182FNtjqS','21635fWIfTR'];a90_0x1e72=function(){return _0xf12d29;};return a90_0x1e72();}
@@ -1 +1 @@
1
- (function(_0xfe0fd1,_0xe158fa){const _0x534ec5=a91_0x46a5,_0x517387=_0xfe0fd1();while(!![]){try{const _0x2320f6=-parseInt(_0x534ec5(0xb0))/0x1+-parseInt(_0x534ec5(0xa9))/0x2*(-parseInt(_0x534ec5(0xb3))/0x3)+parseInt(_0x534ec5(0x97))/0x4+-parseInt(_0x534ec5(0xad))/0x5*(parseInt(_0x534ec5(0xb5))/0x6)+parseInt(_0x534ec5(0x9d))/0x7*(-parseInt(_0x534ec5(0xb2))/0x8)+-parseInt(_0x534ec5(0xa7))/0x9*(-parseInt(_0x534ec5(0xa8))/0xa)+parseInt(_0x534ec5(0x9c))/0xb;if(_0x2320f6===_0xe158fa)break;else _0x517387['push'](_0x517387['shift']());}catch(_0x13ff5d){_0x517387['push'](_0x517387['shift']());}}}(a91_0x5288,0xe840c));import a91_0x1b1e5b from'chalk';export function generateDiff(_0x4c4850,_0x19a07a){const _0x296aad=a91_0x46a5,_0x494769=_0x4c4850[_0x296aad(0x9b)]('\x0a'),_0x16387b=_0x19a07a[_0x296aad(0x9b)]('\x0a'),_0x24e034=[],_0x28b320=computeLCS(_0x494769,_0x16387b);let _0x2bc659=0x0,_0xc05cb1=0x0,_0x381909=0x0;while(_0x2bc659<_0x494769[_0x296aad(0xb1)]||_0xc05cb1<_0x16387b[_0x296aad(0xb1)]){if(_0x381909<_0x28b320[_0x296aad(0xb1)]&&_0x2bc659<_0x494769[_0x296aad(0xb1)]&&_0x494769[_0x2bc659]===_0x28b320[_0x381909])_0xc05cb1<_0x16387b[_0x296aad(0xb1)]&&_0x16387b[_0xc05cb1]===_0x28b320[_0x381909]?(_0x24e034[_0x296aad(0xb7)]({'type':_0x296aad(0x99),'content':_0x494769[_0x2bc659]}),_0x2bc659++,_0xc05cb1++,_0x381909++):(_0x24e034[_0x296aad(0xb7)]({'type':_0x296aad(0xa3),'content':_0x16387b[_0xc05cb1]}),_0xc05cb1++);else{if(_0x381909<_0x28b320[_0x296aad(0xb1)]&&_0xc05cb1<_0x16387b['length']&&_0x16387b[_0xc05cb1]===_0x28b320[_0x381909])_0x24e034['push']({'type':_0x296aad(0xab),'content':_0x494769[_0x2bc659]}),_0x2bc659++;else{if(_0x2bc659<_0x494769[_0x296aad(0xb1)]&&(_0x381909>=_0x28b320[_0x296aad(0xb1)]||_0x494769[_0x2bc659]!==_0x28b320[_0x381909]))_0x24e034[_0x296aad(0xb7)]({'type':_0x296aad(0xab),'content':_0x494769[_0x2bc659]}),_0x2bc659++;else _0xc05cb1<_0x16387b[_0x296aad(0xb1)]&&(_0x24e034[_0x296aad(0xb7)]({'type':'added','content':_0x16387b[_0xc05cb1]}),_0xc05cb1++);}}}return _0x24e034;}function a91_0x5288(){const _0x4136cb=['5gIxcLJ','fill','\x20-\x20','450834vOthoI','length','14024592KgQvbD','12ixfhtz','unshift','11065134Ljxhio','old','push','content','\x20\x20...','dim','min','6507120mVDxaN','new','unchanged','cyan','split','9127261YKGMwq','7JFtbBz','has','\x20\x20\x20','max','\x20+\x20','padStart','added','repeat','some','add','1413eaaCSp','108860brKMSn','416886XPcVYu','map','removed','type'];a91_0x5288=function(){return _0x4136cb;};return a91_0x5288();}function computeLCS(_0x5628a8,_0xb7d812){const _0x1e1c62=a91_0x46a5,_0xec869f=_0x5628a8[_0x1e1c62(0xb1)],_0x4cd9fc=_0xb7d812['length'],_0x295105=Array(_0xec869f+0x1)[_0x1e1c62(0xae)](null)[_0x1e1c62(0xaa)](()=>Array(_0x4cd9fc+0x1)[_0x1e1c62(0xae)](0x0));for(let _0x487fa2=0x1;_0x487fa2<=_0xec869f;_0x487fa2++){for(let _0x126179=0x1;_0x126179<=_0x4cd9fc;_0x126179++){_0x5628a8[_0x487fa2-0x1]===_0xb7d812[_0x126179-0x1]?_0x295105[_0x487fa2][_0x126179]=_0x295105[_0x487fa2-0x1][_0x126179-0x1]+0x1:_0x295105[_0x487fa2][_0x126179]=Math['max'](_0x295105[_0x487fa2-0x1][_0x126179],_0x295105[_0x487fa2][_0x126179-0x1]);}}const _0x48f979=[];let _0x57ebc7=_0xec869f,_0x3eb7b1=_0x4cd9fc;while(_0x57ebc7>0x0&&_0x3eb7b1>0x0){if(_0x5628a8[_0x57ebc7-0x1]===_0xb7d812[_0x3eb7b1-0x1])_0x48f979[_0x1e1c62(0xb4)](_0x5628a8[_0x57ebc7-0x1]),_0x57ebc7--,_0x3eb7b1--;else _0x295105[_0x57ebc7-0x1][_0x3eb7b1]>_0x295105[_0x57ebc7][_0x3eb7b1-0x1]?_0x57ebc7--:_0x3eb7b1--;}return _0x48f979;}function a91_0x46a5(_0x36183c,_0x47f736){_0x36183c=_0x36183c-0x93;const _0x528881=a91_0x5288();let _0x46a52=_0x528881[_0x36183c];return _0x46a52;}export function formatDiffWithColors(_0x1cad19,_0xde977a=0x3){const _0x635b7a=a91_0x46a5,_0x4d7d07=new Set();_0x1cad19['forEach']((_0x41a62a,_0x2168e7)=>{const _0x1e0003=a91_0x46a5;_0x41a62a[_0x1e0003(0xac)]!==_0x1e0003(0x99)&&_0x4d7d07['add'](_0x2168e7);});if(_0x4d7d07['size']===0x0)return'';const _0x3dc7d5=new Set();for(const _0x1473d0 of _0x4d7d07){for(let _0x436ec4=Math['max'](0x0,_0x1473d0-_0xde977a);_0x436ec4<=Math[_0x635b7a(0x96)](_0x1cad19[_0x635b7a(0xb1)]-0x1,_0x1473d0+_0xde977a);_0x436ec4++){_0x3dc7d5[_0x635b7a(0xa6)](_0x436ec4);}}const _0x211275=[];let _0x4195cd=-0x1;const _0x2d2de9=_0x1cad19[_0x635b7a(0xb1)],_0x89c861=Math[_0x635b7a(0xa0)](0x3,String(_0x2d2de9)[_0x635b7a(0xb1)]),_0x4c43ee=[];let _0x583816=0x0,_0x30a49c=0x0;for(const _0x156b8b of _0x1cad19){if(_0x156b8b[_0x635b7a(0xac)]===_0x635b7a(0xab))_0x583816++,_0x4c43ee['push']({'old':_0x583816,'new':0x0});else _0x156b8b[_0x635b7a(0xac)]===_0x635b7a(0xa3)?(_0x30a49c++,_0x4c43ee['push']({'old':0x0,'new':_0x30a49c})):(_0x583816++,_0x30a49c++,_0x4c43ee[_0x635b7a(0xb7)]({'old':_0x583816,'new':_0x30a49c}));}for(let _0x5b849b=0x0;_0x5b849b<_0x1cad19['length'];_0x5b849b++){if(!_0x3dc7d5[_0x635b7a(0x9e)](_0x5b849b))continue;_0x4195cd!==-0x1&&_0x5b849b>_0x4195cd+0x1&&_0x211275['push'](a91_0x1b1e5b[_0x635b7a(0x9a)](_0x635b7a(0x94)));_0x4195cd=_0x5b849b;const _0x4fb0bc=_0x1cad19[_0x5b849b],_0xdf4641=_0x4c43ee[_0x5b849b],_0x5429d7=_0xdf4641['old']>0x0?String(_0xdf4641[_0x635b7a(0xb6)])['padStart'](_0x89c861):'\x20'[_0x635b7a(0xa4)](_0x89c861),_0x2399bf=_0xdf4641['new']>0x0?String(_0xdf4641[_0x635b7a(0x98)])[_0x635b7a(0xa2)](_0x89c861):'\x20'[_0x635b7a(0xa4)](_0x89c861);switch(_0x4fb0bc['type']){case _0x635b7a(0xab):_0x211275[_0x635b7a(0xb7)](a91_0x1b1e5b['red'](_0x5429d7+'\x20'+_0x2399bf+_0x635b7a(0xaf)+_0x4fb0bc[_0x635b7a(0x93)]));break;case'added':_0x211275['push'](a91_0x1b1e5b['green'](_0x5429d7+'\x20'+_0x2399bf+_0x635b7a(0xa1)+_0x4fb0bc[_0x635b7a(0x93)]));break;default:_0x211275[_0x635b7a(0xb7)](a91_0x1b1e5b[_0x635b7a(0x95)](_0x5429d7+'\x20'+_0x2399bf+_0x635b7a(0x9f)+_0x4fb0bc[_0x635b7a(0x93)]));break;}}return _0x211275['join']('\x0a');}export function hasChanges(_0x7e3bc){const _0x113334=a91_0x46a5;return _0x7e3bc[_0x113334(0xa5)](_0x5ac8bb=>_0x5ac8bb['type']!==_0x113334(0x99));}
1
+ function a91_0x277b(){const _0x347807=['length','18626421bgNJsR','size','838051suxKQu','\x20-\x20','removed','2998rIJvfa','4837yRnzbK','map','padStart','cyan','2267316psZlBq','split','max','repeat','fill','some','type','15MHCmJJ','8384BzhgOj','added','\x20\x20\x20','red','unchanged','forEach','new','content','add','push','10QxHNdi','4680864LQNAkV','old','has','join','1881neUJtZ','539276hKkphM','unshift'];a91_0x277b=function(){return _0x347807;};return a91_0x277b();}(function(_0x4a2964,_0x52f125){const _0x423ce7=a91_0x2577,_0x369644=_0x4a2964();while(!![]){try{const _0x8bb0ff=-parseInt(_0x423ce7(0x91))/0x1+parseInt(_0x423ce7(0x94))/0x2*(parseInt(_0x423ce7(0x8b))/0x3)+-parseInt(_0x423ce7(0x8c))/0x4*(-parseInt(_0x423ce7(0xa0))/0x5)+-parseInt(_0x423ce7(0x99))/0x6+-parseInt(_0x423ce7(0x95))/0x7*(parseInt(_0x423ce7(0x7c))/0x8)+-parseInt(_0x423ce7(0x87))/0x9+parseInt(_0x423ce7(0x86))/0xa*(parseInt(_0x423ce7(0x8f))/0xb);if(_0x8bb0ff===_0x52f125)break;else _0x369644['push'](_0x369644['shift']());}catch(_0x5ddb7e){_0x369644['push'](_0x369644['shift']());}}}(a91_0x277b,0x8cfa0));import a91_0x45228d from'chalk';function a91_0x2577(_0x22aa5f,_0x4fab79){_0x22aa5f=_0x22aa5f-0x7c;const _0x277be3=a91_0x277b();let _0x257750=_0x277be3[_0x22aa5f];return _0x257750;}export function generateDiff(_0x1b7be9,_0x3bddbe){const _0x53a440=a91_0x2577,_0x2ea297=_0x1b7be9[_0x53a440(0x9a)]('\x0a'),_0x380cae=_0x3bddbe[_0x53a440(0x9a)]('\x0a'),_0x46acc4=[],_0x340267=computeLCS(_0x2ea297,_0x380cae);let _0x17710c=0x0,_0x16b2cb=0x0,_0x777470=0x0;while(_0x17710c<_0x2ea297[_0x53a440(0x8e)]||_0x16b2cb<_0x380cae[_0x53a440(0x8e)]){if(_0x777470<_0x340267[_0x53a440(0x8e)]&&_0x17710c<_0x2ea297[_0x53a440(0x8e)]&&_0x2ea297[_0x17710c]===_0x340267[_0x777470])_0x16b2cb<_0x380cae['length']&&_0x380cae[_0x16b2cb]===_0x340267[_0x777470]?(_0x46acc4[_0x53a440(0x85)]({'type':_0x53a440(0x80),'content':_0x2ea297[_0x17710c]}),_0x17710c++,_0x16b2cb++,_0x777470++):(_0x46acc4[_0x53a440(0x85)]({'type':_0x53a440(0x7d),'content':_0x380cae[_0x16b2cb]}),_0x16b2cb++);else{if(_0x777470<_0x340267[_0x53a440(0x8e)]&&_0x16b2cb<_0x380cae[_0x53a440(0x8e)]&&_0x380cae[_0x16b2cb]===_0x340267[_0x777470])_0x46acc4[_0x53a440(0x85)]({'type':'removed','content':_0x2ea297[_0x17710c]}),_0x17710c++;else{if(_0x17710c<_0x2ea297[_0x53a440(0x8e)]&&(_0x777470>=_0x340267[_0x53a440(0x8e)]||_0x2ea297[_0x17710c]!==_0x340267[_0x777470]))_0x46acc4[_0x53a440(0x85)]({'type':_0x53a440(0x93),'content':_0x2ea297[_0x17710c]}),_0x17710c++;else _0x16b2cb<_0x380cae[_0x53a440(0x8e)]&&(_0x46acc4['push']({'type':'added','content':_0x380cae[_0x16b2cb]}),_0x16b2cb++);}}}return _0x46acc4;}function computeLCS(_0x2ea168,_0x937de8){const _0x3777f4=a91_0x2577,_0x961102=_0x2ea168[_0x3777f4(0x8e)],_0x125680=_0x937de8['length'],_0x2317f5=Array(_0x961102+0x1)[_0x3777f4(0x9d)](null)[_0x3777f4(0x96)](()=>Array(_0x125680+0x1)[_0x3777f4(0x9d)](0x0));for(let _0x4c5188=0x1;_0x4c5188<=_0x961102;_0x4c5188++){for(let _0x302360=0x1;_0x302360<=_0x125680;_0x302360++){_0x2ea168[_0x4c5188-0x1]===_0x937de8[_0x302360-0x1]?_0x2317f5[_0x4c5188][_0x302360]=_0x2317f5[_0x4c5188-0x1][_0x302360-0x1]+0x1:_0x2317f5[_0x4c5188][_0x302360]=Math[_0x3777f4(0x9b)](_0x2317f5[_0x4c5188-0x1][_0x302360],_0x2317f5[_0x4c5188][_0x302360-0x1]);}}const _0x3f0b10=[];let _0x58e4b0=_0x961102,_0x5425a1=_0x125680;while(_0x58e4b0>0x0&&_0x5425a1>0x0){if(_0x2ea168[_0x58e4b0-0x1]===_0x937de8[_0x5425a1-0x1])_0x3f0b10[_0x3777f4(0x8d)](_0x2ea168[_0x58e4b0-0x1]),_0x58e4b0--,_0x5425a1--;else _0x2317f5[_0x58e4b0-0x1][_0x5425a1]>_0x2317f5[_0x58e4b0][_0x5425a1-0x1]?_0x58e4b0--:_0x5425a1--;}return _0x3f0b10;}export function formatDiffWithColors(_0x123d8e,_0x32dde5=0x3){const _0x185e4e=a91_0x2577,_0x424951=new Set();_0x123d8e[_0x185e4e(0x81)]((_0x5137f0,_0x3c0693)=>{const _0x4b40bd=_0x185e4e;_0x5137f0[_0x4b40bd(0x9f)]!==_0x4b40bd(0x80)&&_0x424951[_0x4b40bd(0x84)](_0x3c0693);});if(_0x424951[_0x185e4e(0x90)]===0x0)return'';const _0xde23d=new Set();for(const _0x46be83 of _0x424951){for(let _0x112550=Math[_0x185e4e(0x9b)](0x0,_0x46be83-_0x32dde5);_0x112550<=Math['min'](_0x123d8e[_0x185e4e(0x8e)]-0x1,_0x46be83+_0x32dde5);_0x112550++){_0xde23d[_0x185e4e(0x84)](_0x112550);}}const _0x23d4c2=[];let _0x283cc6=-0x1;const _0x5c60ca=_0x123d8e['length'],_0x142611=Math[_0x185e4e(0x9b)](0x3,String(_0x5c60ca)[_0x185e4e(0x8e)]),_0xf5f688=[];let _0x689b54=0x0,_0x1c7e77=0x0;for(const _0x4e8b5f of _0x123d8e){if(_0x4e8b5f['type']===_0x185e4e(0x93))_0x689b54++,_0xf5f688[_0x185e4e(0x85)]({'old':_0x689b54,'new':0x0});else _0x4e8b5f[_0x185e4e(0x9f)]===_0x185e4e(0x7d)?(_0x1c7e77++,_0xf5f688['push']({'old':0x0,'new':_0x1c7e77})):(_0x689b54++,_0x1c7e77++,_0xf5f688['push']({'old':_0x689b54,'new':_0x1c7e77}));}for(let _0x21c98a=0x0;_0x21c98a<_0x123d8e['length'];_0x21c98a++){if(!_0xde23d[_0x185e4e(0x89)](_0x21c98a))continue;_0x283cc6!==-0x1&&_0x21c98a>_0x283cc6+0x1&&_0x23d4c2[_0x185e4e(0x85)](a91_0x45228d[_0x185e4e(0x98)]('\x20\x20...'));_0x283cc6=_0x21c98a;const _0x45784a=_0x123d8e[_0x21c98a],_0x53409a=_0xf5f688[_0x21c98a],_0x184b55=_0x53409a[_0x185e4e(0x88)]>0x0?String(_0x53409a[_0x185e4e(0x88)])[_0x185e4e(0x97)](_0x142611):'\x20'[_0x185e4e(0x9c)](_0x142611),_0x432422=_0x53409a['new']>0x0?String(_0x53409a[_0x185e4e(0x82)])[_0x185e4e(0x97)](_0x142611):'\x20'[_0x185e4e(0x9c)](_0x142611);switch(_0x45784a['type']){case _0x185e4e(0x93):_0x23d4c2['push'](a91_0x45228d[_0x185e4e(0x7f)](_0x184b55+'\x20'+_0x432422+_0x185e4e(0x92)+_0x45784a['content']));break;case _0x185e4e(0x7d):_0x23d4c2[_0x185e4e(0x85)](a91_0x45228d['green'](_0x184b55+'\x20'+_0x432422+'\x20+\x20'+_0x45784a[_0x185e4e(0x83)]));break;default:_0x23d4c2[_0x185e4e(0x85)](a91_0x45228d['dim'](_0x184b55+'\x20'+_0x432422+_0x185e4e(0x7e)+_0x45784a[_0x185e4e(0x83)]));break;}}return _0x23d4c2[_0x185e4e(0x8a)]('\x0a');}export function hasChanges(_0x96e55a){const _0x2bf181=a91_0x2577;return _0x96e55a[_0x2bf181(0x9e)](_0x512133=>_0x512133[_0x2bf181(0x9f)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x10d3c8,_0x4a380e){const _0x1fc492=a92_0x196f,_0x59e2fd=_0x10d3c8();while(!![]){try{const _0x4840ad=-parseInt(_0x1fc492(0x1ce))/0x1*(parseInt(_0x1fc492(0x1b9))/0x2)+-parseInt(_0x1fc492(0x1b1))/0x3*(parseInt(_0x1fc492(0x1b7))/0x4)+-parseInt(_0x1fc492(0x1cb))/0x5+parseInt(_0x1fc492(0x1a9))/0x6+-parseInt(_0x1fc492(0x1c9))/0x7*(parseInt(_0x1fc492(0x1a3))/0x8)+-parseInt(_0x1fc492(0x1d2))/0x9*(-parseInt(_0x1fc492(0x1a4))/0xa)+parseInt(_0x1fc492(0x1b5))/0xb;if(_0x4840ad===_0x4a380e)break;else _0x59e2fd['push'](_0x59e2fd['shift']());}catch(_0xa8c7fc){_0x59e2fd['push'](_0x59e2fd['shift']());}}}(a92_0x12dd,0x52569));import a92_0x6b8838 from'chalk';function a92_0x196f(_0x1235a2,_0x1c0e01){_0x1235a2=_0x1235a2-0x1a2;const _0x12dd72=a92_0x12dd();let _0x196f21=_0x12dd72[_0x1235a2];return _0x196f21;}import{withQuerySpinner}from'./spinner.js';function a92_0x12dd(){const _0x472311=['replace','Attributes','query','data','6bRFeHF','localeCompare','startsWith','length','7914148bqiXqW','information_schema','930724MUOSHq','key','516746wHwQIh','filter','type','tableName','behavior','displayName','set','fields','Behaviors','Fetching\x20schema...','parentColumn','extra','error','trim','dim','setJobId','8771BzTOUC','null','1975535cyeuHl','Unknown','Schema\x20query:\x0a','1HvoPKz','\x20\x20\x20\x20','parentTableName','default','3177nbFCeE','column_type','source','get','varchar','push','sort','3312JuaHYn','18070iTYLNt','entries','bold','verbose','size','3705012wcmSJM','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','name','cyan'];a92_0x12dd=function(){return _0x472311;};return a92_0x12dd();}export function buildSchemaResult(_0x5c6b96){const _0x266d26=a92_0x196f,_0x5ab564=_0x5c6b96['columns']['map'](_0x1f7988=>({'column_name':_0x1f7988[_0x266d26(0x1ab)],'column_type':_0x1f7988[_0x266d26(0x1bb)],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x5c6b96,'columns':[{'name':'column_name','type':'varchar'},{'name':_0x266d26(0x1d3),'type':_0x266d26(0x1d6)},{'name':_0x266d26(0x1ca),'type':_0x266d26(0x1d6)},{'name':_0x266d26(0x1b8),'type':_0x266d26(0x1d6)},{'name':_0x266d26(0x1d1),'type':_0x266d26(0x1d6)},{'name':_0x266d26(0x1c4),'type':_0x266d26(0x1d6)}],'data':_0x5ab564};}export async function executeSchemaQuery(_0x51f3f2,_0x5dca5e,_0x26a83b){const _0xfaf208=a92_0x196f,_0x279812=_0x51f3f2[_0xfaf208(0x1c6)]()[_0xfaf208(0x1ad)](/;+$/,''),_0x22df29='SELECT\x20*\x20FROM\x20(\x0a'+_0x279812+_0xfaf208(0x1aa);_0x26a83b['verbose']&&console[_0xfaf208(0x1c5)](_0xfaf208(0x1cd)+_0x22df29);const _0x8e0114=await withQuerySpinner(_0xfaf208(0x1c2),async _0x41b73c=>{const _0x4c3a48=_0xfaf208,_0x1c68b6=await _0x5dca5e[_0x4c3a48(0x1af)]['execute'](_0x22df29,{'catalog':'td','schema':_0x4c3a48(0x1b6),'onJobId':_0x3d5469=>{const _0x2b4ecd=_0x4c3a48;_0x41b73c[_0x2b4ecd(0x1c8)](_0x3d5469);}});return _0x1c68b6;},{'verbose':_0x26a83b[_0xfaf208(0x1a7)]});return buildSchemaResult(_0x8e0114[_0xfaf208(0x1b0)]);}export function displayFieldsHumanReadable(_0x2d9660,_0x52c5fd){const _0x1f4ec8=a92_0x196f,_0x40a553=_0x2d9660[_0x1f4ec8(0x1ba)](_0x3248a3=>_0x3248a3[_0x1f4ec8(0x1d4)]==='attribute'),_0x528bce=_0x2d9660['filter'](_0x1f3ab3=>_0x1f3ab3[_0x1f4ec8(0x1d4)]===_0x1f4ec8(0x1bd)),_0x280eaa=new Map();for(const _0x3d11d6 of _0x40a553){const _0x20c42c=_0x3d11d6['groupingName']||_0x3d11d6['parentTableName']||_0x1f4ec8(0x1cc),_0x2903a2=_0x280eaa[_0x1f4ec8(0x1d5)](_0x20c42c);_0x2903a2?_0x2903a2['fields'][_0x1f4ec8(0x1d7)](_0x3d11d6):_0x280eaa[_0x1f4ec8(0x1bf)](_0x20c42c,{'displayName':_0x20c42c,'tableName':_0x3d11d6[_0x1f4ec8(0x1d0)],'fields':[_0x3d11d6]});}const _0xa8339e=new Map();for(const _0x48e570 of _0x528bce){const _0x5da66a=_0x48e570['behaviorName']||_0x1f4ec8(0x1cc),_0x5aa58c=_0xa8339e[_0x1f4ec8(0x1d5)](_0x5da66a)||[];_0x5aa58c['push'](_0x48e570),_0xa8339e[_0x1f4ec8(0x1bf)](_0x5da66a,_0x5aa58c);}console['error']('\x0a'+a92_0x6b8838[_0x1f4ec8(0x1a6)](_0x52c5fd));if(_0x280eaa[_0x1f4ec8(0x1a8)]>0x0){console[_0x1f4ec8(0x1c5)]('\x0a'+a92_0x6b8838[_0x1f4ec8(0x1c7)](_0x1f4ec8(0x1ae)));const _0x8c50ed=[..._0x280eaa[_0x1f4ec8(0x1a5)]()]['sort']((_0x572001,_0x3217c5)=>_0x572001[0x0][_0x1f4ec8(0x1b2)](_0x3217c5[0x0]));for(const [,_0x7a6ee4]of _0x8c50ed){const _0x34707e=_0x7a6ee4[_0x1f4ec8(0x1bc)]&&_0x7a6ee4[_0x1f4ec8(0x1bc)]!==_0x7a6ee4[_0x1f4ec8(0x1be)]?'\x20'+a92_0x6b8838[_0x1f4ec8(0x1c7)]('('+_0x7a6ee4[_0x1f4ec8(0x1bc)]+')'):'';console[_0x1f4ec8(0x1c5)]('\x20\x20'+a92_0x6b8838[_0x1f4ec8(0x1a6)](_0x7a6ee4['displayName'])+_0x34707e);const _0x1e5ecb=[..._0x7a6ee4[_0x1f4ec8(0x1c0)]]['sort']((_0x403d89,_0x23ee33)=>_0x403d89[_0x1f4ec8(0x1ab)][_0x1f4ec8(0x1b2)](_0x23ee33['name']));for(const _0x2337e9 of _0x1e5ecb){const _0x2165e5=_0x2337e9[_0x1f4ec8(0x1c3)]&&_0x2337e9[_0x1f4ec8(0x1c3)]!==_0x2337e9[_0x1f4ec8(0x1ab)]?'\x20'+a92_0x6b8838[_0x1f4ec8(0x1c7)]('('+_0x2337e9[_0x1f4ec8(0x1c3)]+')'):'';console[_0x1f4ec8(0x1c5)](_0x1f4ec8(0x1cf)+_0x2337e9[_0x1f4ec8(0x1ab)]+_0x2165e5+':\x20'+a92_0x6b8838[_0x1f4ec8(0x1ac)](_0x2337e9[_0x1f4ec8(0x1bb)]));}}}if(_0xa8339e['size']>0x0){console[_0x1f4ec8(0x1c5)]('\x0a'+a92_0x6b8838['dim'](_0x1f4ec8(0x1c1)));const _0x563c4f=[..._0xa8339e[_0x1f4ec8(0x1a5)]()][_0x1f4ec8(0x1a2)]((_0x124f44,_0x3e3a50)=>_0x124f44[0x0][_0x1f4ec8(0x1b2)](_0x3e3a50[0x0]));for(const [_0x8c1e3,_0x5376d3]of _0x563c4f){const _0xb4a725=_0x5376d3[0x0],_0x3e4765=_0xb4a725?.['parentTableName']||'';console[_0x1f4ec8(0x1c5)]('\x20\x20'+a92_0x6b8838[_0x1f4ec8(0x1a6)](_0x8c1e3)+(_0x3e4765?'\x20'+a92_0x6b8838[_0x1f4ec8(0x1c7)]('('+_0x3e4765+')'):''));const _0x398962=[..._0x5376d3][_0x1f4ec8(0x1a2)]((_0x4afcac,_0x5acfe5)=>_0x4afcac[_0x1f4ec8(0x1ab)]['localeCompare'](_0x5acfe5[_0x1f4ec8(0x1ab)]));for(const _0x309d79 of _0x398962){const _0x19d68e=_0x309d79[_0x1f4ec8(0x1ab)][_0x1f4ec8(0x1b3)](_0x8c1e3+'.')?_0x309d79[_0x1f4ec8(0x1ab)]['slice'](_0x8c1e3[_0x1f4ec8(0x1b4)]+0x1):_0x309d79[_0x1f4ec8(0x1ab)],_0x1bd64f=_0x309d79[_0x1f4ec8(0x1c3)]&&_0x309d79[_0x1f4ec8(0x1c3)]!==_0x19d68e?'\x20'+a92_0x6b8838['dim']('('+_0x309d79[_0x1f4ec8(0x1c3)]+')'):'';console[_0x1f4ec8(0x1c5)](_0x1f4ec8(0x1cf)+_0x19d68e+_0x1bd64f+':\x20'+a92_0x6b8838[_0x1f4ec8(0x1ac)](_0x309d79[_0x1f4ec8(0x1bb)]));}}}console[_0x1f4ec8(0x1c5)]('');}
1
+ (function(_0x41eaf5,_0x7c5450){const _0x2e46af=a92_0x9406,_0x3aa015=_0x41eaf5();while(!![]){try{const _0x4be5f4=-parseInt(_0x2e46af(0x1dc))/0x1*(-parseInt(_0x2e46af(0x1bb))/0x2)+parseInt(_0x2e46af(0x1b5))/0x3+parseInt(_0x2e46af(0x1da))/0x4*(parseInt(_0x2e46af(0x1c0))/0x5)+parseInt(_0x2e46af(0x1de))/0x6*(parseInt(_0x2e46af(0x1b8))/0x7)+-parseInt(_0x2e46af(0x1b7))/0x8*(parseInt(_0x2e46af(0x1be))/0x9)+-parseInt(_0x2e46af(0x1db))/0xa*(parseInt(_0x2e46af(0x1dd))/0xb)+-parseInt(_0x2e46af(0x1b3))/0xc*(-parseInt(_0x2e46af(0x1d0))/0xd);if(_0x4be5f4===_0x7c5450)break;else _0x3aa015['push'](_0x3aa015['shift']());}catch(_0x347372){_0x3aa015['push'](_0x3aa015['shift']());}}}(a92_0x40d2,0xedc0f));function a92_0x9406(_0x3562b4,_0x4d6e8c){_0x3562b4=_0x3562b4-0x1aa;const _0x40d210=a92_0x40d2();let _0x94066f=_0x40d210[_0x3562b4];return _0x94066f;}import a92_0x203417 from'chalk';import{withQuerySpinner}from'./spinner.js';function a92_0x40d2(){const _0x5ec608=['default','873zUsWHE','localeCompare','1095gwcWbi','displayName','data','Attributes','slice','filter','column_type','setJobId','type','push','fields','parentTableName','cyan','verbose','information_schema','column_name','26AmNUyU','set','SELECT\x20*\x20FROM\x20(\x0a','behavior','name','\x20\x20\x20\x20','tableName','source','attribute','size','6524wMUVRY','10hXBJJP','84NudypB','19136865ztgZBL','85446TIGIvn','extra','bold','entries','replace','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','Schema\x20query:\x0a','sort','error','parentColumn','null','key','Behaviors','varchar','4848744jOBSXb','dim','353010DRGvAh','trim','51864vBnZAj','378eykuQr','execute','Unknown','30724JZgLaC','query'];a92_0x40d2=function(){return _0x5ec608;};return a92_0x40d2();}export function buildSchemaResult(_0x2cea29){const _0x42ef94=a92_0x9406,_0x35000f=_0x2cea29['columns']['map'](_0x574790=>({'column_name':_0x574790[_0x42ef94(0x1d4)],'column_type':_0x574790['type'],'null':'YES','key':null,'default':null,'extra':null}));return{..._0x2cea29,'columns':[{'name':_0x42ef94(0x1cf),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1c6),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1af),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1b0),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1bd),'type':_0x42ef94(0x1b2)},{'name':_0x42ef94(0x1df),'type':'varchar'}],'data':_0x35000f};}export async function executeSchemaQuery(_0x4e76d3,_0x221629,_0x2783eb){const _0x4bed1f=a92_0x9406,_0xf03066=_0x4e76d3[_0x4bed1f(0x1b6)]()[_0x4bed1f(0x1e2)](/;+$/,''),_0x4d4c19=_0x4bed1f(0x1d2)+_0xf03066+_0x4bed1f(0x1aa);_0x2783eb['verbose']&&console['error'](_0x4bed1f(0x1ab)+_0x4d4c19);const _0x526289=await withQuerySpinner('Fetching\x20schema...',async _0x5325df=>{const _0x1ae8a4=_0x4bed1f,_0x36c5ae=await _0x221629[_0x1ae8a4(0x1bc)][_0x1ae8a4(0x1b9)](_0x4d4c19,{'catalog':'td','schema':_0x1ae8a4(0x1ce),'onJobId':_0x456233=>{const _0x56817b=_0x1ae8a4;_0x5325df[_0x56817b(0x1c7)](_0x456233);}});return _0x36c5ae;},{'verbose':_0x2783eb[_0x4bed1f(0x1cd)]});return buildSchemaResult(_0x526289[_0x4bed1f(0x1c2)]);}export function displayFieldsHumanReadable(_0x374086,_0x4af8f9){const _0x1a0a6b=a92_0x9406,_0x381813=_0x374086[_0x1a0a6b(0x1c5)](_0x45500a=>_0x45500a['source']===_0x1a0a6b(0x1d8)),_0x17319f=_0x374086['filter'](_0x4c68fb=>_0x4c68fb[_0x1a0a6b(0x1d7)]===_0x1a0a6b(0x1d3)),_0x30b91b=new Map();for(const _0x52d475 of _0x381813){const _0xf8b3a6=_0x52d475['groupingName']||_0x52d475['parentTableName']||_0x1a0a6b(0x1ba),_0x24c354=_0x30b91b['get'](_0xf8b3a6);_0x24c354?_0x24c354['fields'][_0x1a0a6b(0x1c9)](_0x52d475):_0x30b91b[_0x1a0a6b(0x1d1)](_0xf8b3a6,{'displayName':_0xf8b3a6,'tableName':_0x52d475[_0x1a0a6b(0x1cb)],'fields':[_0x52d475]});}const _0x454c9f=new Map();for(const _0x3fd1e2 of _0x17319f){const _0x913271=_0x3fd1e2['behaviorName']||'Unknown',_0x23d93a=_0x454c9f['get'](_0x913271)||[];_0x23d93a[_0x1a0a6b(0x1c9)](_0x3fd1e2),_0x454c9f[_0x1a0a6b(0x1d1)](_0x913271,_0x23d93a);}console[_0x1a0a6b(0x1ad)]('\x0a'+a92_0x203417[_0x1a0a6b(0x1e0)](_0x4af8f9));if(_0x30b91b[_0x1a0a6b(0x1d9)]>0x0){console[_0x1a0a6b(0x1ad)]('\x0a'+a92_0x203417[_0x1a0a6b(0x1b4)](_0x1a0a6b(0x1c3)));const _0x488f6b=[..._0x30b91b[_0x1a0a6b(0x1e1)]()]['sort']((_0xb2a91b,_0x19ff57)=>_0xb2a91b[0x0]['localeCompare'](_0x19ff57[0x0]));for(const [,_0x2410ce]of _0x488f6b){const _0x3a3b4a=_0x2410ce[_0x1a0a6b(0x1d6)]&&_0x2410ce[_0x1a0a6b(0x1d6)]!==_0x2410ce[_0x1a0a6b(0x1c1)]?'\x20'+a92_0x203417[_0x1a0a6b(0x1b4)]('('+_0x2410ce[_0x1a0a6b(0x1d6)]+')'):'';console[_0x1a0a6b(0x1ad)]('\x20\x20'+a92_0x203417[_0x1a0a6b(0x1e0)](_0x2410ce[_0x1a0a6b(0x1c1)])+_0x3a3b4a);const _0x33f98a=[..._0x2410ce[_0x1a0a6b(0x1ca)]][_0x1a0a6b(0x1ac)]((_0x1ed70b,_0x4b6291)=>_0x1ed70b['name'][_0x1a0a6b(0x1bf)](_0x4b6291[_0x1a0a6b(0x1d4)]));for(const _0x397a82 of _0x33f98a){const _0xaaa4f8=_0x397a82['parentColumn']&&_0x397a82[_0x1a0a6b(0x1ae)]!==_0x397a82['name']?'\x20'+a92_0x203417[_0x1a0a6b(0x1b4)]('('+_0x397a82[_0x1a0a6b(0x1ae)]+')'):'';console[_0x1a0a6b(0x1ad)]('\x20\x20\x20\x20'+_0x397a82['name']+_0xaaa4f8+':\x20'+a92_0x203417[_0x1a0a6b(0x1cc)](_0x397a82[_0x1a0a6b(0x1c8)]));}}}if(_0x454c9f['size']>0x0){console[_0x1a0a6b(0x1ad)]('\x0a'+a92_0x203417['dim'](_0x1a0a6b(0x1b1)));const _0x50b32e=[..._0x454c9f[_0x1a0a6b(0x1e1)]()][_0x1a0a6b(0x1ac)]((_0x43fb76,_0x39f876)=>_0x43fb76[0x0]['localeCompare'](_0x39f876[0x0]));for(const [_0x77b33c,_0x584198]of _0x50b32e){const _0x1051c2=_0x584198[0x0],_0x5892f5=_0x1051c2?.['parentTableName']||'';console[_0x1a0a6b(0x1ad)]('\x20\x20'+a92_0x203417[_0x1a0a6b(0x1e0)](_0x77b33c)+(_0x5892f5?'\x20'+a92_0x203417['dim']('('+_0x5892f5+')'):''));const _0x158ea1=[..._0x584198][_0x1a0a6b(0x1ac)]((_0x3fbf99,_0x894237)=>_0x3fbf99[_0x1a0a6b(0x1d4)][_0x1a0a6b(0x1bf)](_0x894237['name']));for(const _0x21827f of _0x158ea1){const _0x2137d4=_0x21827f['name']['startsWith'](_0x77b33c+'.')?_0x21827f[_0x1a0a6b(0x1d4)][_0x1a0a6b(0x1c4)](_0x77b33c['length']+0x1):_0x21827f[_0x1a0a6b(0x1d4)],_0x108059=_0x21827f['parentColumn']&&_0x21827f[_0x1a0a6b(0x1ae)]!==_0x2137d4?'\x20'+a92_0x203417[_0x1a0a6b(0x1b4)]('('+_0x21827f[_0x1a0a6b(0x1ae)]+')'):'';console[_0x1a0a6b(0x1ad)](_0x1a0a6b(0x1d5)+_0x2137d4+_0x108059+':\x20'+a92_0x203417[_0x1a0a6b(0x1cc)](_0x21827f[_0x1a0a6b(0x1c8)]));}}}console['error']('');}
@@ -1 +1 @@
1
- (function(_0x2dc01b,_0x4c071e){const _0x383b95=a93_0x46f4,_0x2a8bd7=_0x2dc01b();while(!![]){try{const _0x1195d7=-parseInt(_0x383b95(0xa6))/0x1+-parseInt(_0x383b95(0x99))/0x2*(parseInt(_0x383b95(0xa0))/0x3)+parseInt(_0x383b95(0x97))/0x4+-parseInt(_0x383b95(0xa2))/0x5+parseInt(_0x383b95(0xa4))/0x6+-parseInt(_0x383b95(0x95))/0x7*(parseInt(_0x383b95(0xa3))/0x8)+parseInt(_0x383b95(0x9f))/0x9;if(_0x1195d7===_0x4c071e)break;else _0x2a8bd7['push'](_0x2a8bd7['shift']());}catch(_0x17d3f1){_0x2a8bd7['push'](_0x2a8bd7['shift']());}}}(a93_0x124d,0xa3fb4));import*as a93_0xb93eab from'node:fs';import*as a93_0x192a58 from'node:path';export function setSecureFilePermissions(_0x3d98fa){const _0x437202=a93_0x46f4;try{a93_0xb93eab[_0x437202(0xa5)](_0x3d98fa,0x180);}catch{console[_0x437202(0x94)](_0x437202(0x98)+_0x3d98fa);}}function a93_0x124d(){const _0x291137=['44yxssIa','mkdirSync','Warning:\x20','dirname','existsSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','20994993FUcjPG','42243mRGgez','statSync','6017135xDmidm','24ppOkUJ','6050376togcQQ','chmodSync','408933dGCQsp',').\x20','warn','2758238kFRmzO','\x20has\x20insecure\x20permissions\x20(','1738956WwnmKq','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'];a93_0x124d=function(){return _0x291137;};return a93_0x124d();}export function setSecureDirectoryPermissions(_0x95c9a4){const _0x5ee717=a93_0x46f4;try{a93_0xb93eab['chmodSync'](_0x95c9a4,0x1c0);}catch{console[_0x5ee717(0x94)](_0x5ee717(0x98)+_0x95c9a4);}}function a93_0x46f4(_0x1e071f,_0x3ad84b){_0x1e071f=_0x1e071f-0x94;const _0x124d21=a93_0x124d();let _0x46f48a=_0x124d21[_0x1e071f];return _0x46f48a;}export function createSecureDirectory(_0x2d9e65){const _0x2f8239=a93_0x46f4;!a93_0xb93eab[_0x2f8239(0x9d)](_0x2d9e65)&&(a93_0xb93eab[_0x2f8239(0x9a)](_0x2d9e65,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2d9e65));}export function validateSecureFilePermissions(_0x4dbc45){const _0x14d064=a93_0x46f4;try{const _0x1d5682=a93_0xb93eab[_0x14d064(0xa1)](_0x4dbc45),_0x50f610=_0x1d5682['mode']&0x1ff,_0x3bcf09=(_0x50f610&0x3f)!==0x0;if(_0x3bcf09)return console[_0x14d064(0x94)](_0x14d064(0x9b)+_0x4dbc45+_0x14d064(0x96)+_0x50f610['toString'](0x8)+_0x14d064(0xa7)+_0x14d064(0x9e)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x59c73f,_0x582e71){const _0x33d4f6=a93_0x46f4,_0x582488=a93_0x192a58[_0x33d4f6(0x9c)](_0x59c73f);createSecureDirectory(_0x582488),a93_0xb93eab['writeFileSync'](_0x59c73f,_0x582e71,{'mode':0x180}),setSecureFilePermissions(_0x59c73f);}
1
+ function a93_0x5c4f(){const _0x18bc8f=['6pNyPJP','1177704xTQTeG','28651xGuaJc','112130gOpNBS','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','warn','chmodSync',').\x20','mkdirSync','781PAxmOK','Should\x20be\x200600\x20or\x20more\x20restrictive.','455ouLnxy','1335993PEfucQ','9suYPyg','23340qRyQPy','132612PIwqBE','6ftrsMt','\x20has\x20insecure\x20permissions\x20(','mode','17140gEsaJW'];a93_0x5c4f=function(){return _0x18bc8f;};return a93_0x5c4f();}(function(_0x48c148,_0x3ac110){const _0x49cc84=a93_0x7ca4,_0x457dc8=_0x48c148();while(!![]){try{const _0x1b5aec=parseInt(_0x49cc84(0x107))/0x1*(-parseInt(_0x49cc84(0x108))/0x2)+parseInt(_0x49cc84(0x100))/0x3+-parseInt(_0x49cc84(0x102))/0x4*(-parseInt(_0x49cc84(0xff))/0x5)+-parseInt(_0x49cc84(0x104))/0x6*(parseInt(_0x49cc84(0x10a))/0x7)+parseInt(_0x49cc84(0x109))/0x8+parseInt(_0x49cc84(0x101))/0x9*(-parseInt(_0x49cc84(0x10b))/0xa)+parseInt(_0x49cc84(0xfd))/0xb*(-parseInt(_0x49cc84(0x103))/0xc);if(_0x1b5aec===_0x3ac110)break;else _0x457dc8['push'](_0x457dc8['shift']());}catch(_0x37d66e){_0x457dc8['push'](_0x457dc8['shift']());}}}(a93_0x5c4f,0x42736));import*as a93_0x29c7ab from'node:fs';import*as a93_0x21f2f2 from'node:path';export function setSecureFilePermissions(_0x310bfc){const _0x426629=a93_0x7ca4;try{a93_0x29c7ab['chmodSync'](_0x310bfc,0x180);}catch{console[_0x426629(0x10e)](_0x426629(0x10d)+_0x310bfc);}}export function setSecureDirectoryPermissions(_0x3d2c74){const _0x58d255=a93_0x7ca4;try{a93_0x29c7ab[_0x58d255(0x10f)](_0x3d2c74,0x1c0);}catch{console[_0x58d255(0x10e)](_0x58d255(0x10d)+_0x3d2c74);}}export function createSecureDirectory(_0x5ed6aa){const _0x3bf30e=a93_0x7ca4;!a93_0x29c7ab[_0x3bf30e(0x10c)](_0x5ed6aa)&&(a93_0x29c7ab[_0x3bf30e(0x111)](_0x5ed6aa,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5ed6aa));}function a93_0x7ca4(_0x3ccf66,_0x2b0100){_0x3ccf66=_0x3ccf66-0xfd;const _0x5c4f53=a93_0x5c4f();let _0x7ca466=_0x5c4f53[_0x3ccf66];return _0x7ca466;}export function validateSecureFilePermissions(_0x9f49e4){const _0x15ddba=a93_0x7ca4;try{const _0x4a21b7=a93_0x29c7ab['statSync'](_0x9f49e4),_0x3305e4=_0x4a21b7[_0x15ddba(0x106)]&0x1ff,_0x4c0f9f=(_0x3305e4&0x3f)!==0x0;if(_0x4c0f9f)return console[_0x15ddba(0x10e)]('Warning:\x20'+_0x9f49e4+_0x15ddba(0x105)+_0x3305e4['toString'](0x8)+_0x15ddba(0x110)+_0x15ddba(0xfe)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x2c67fe,_0x24750d){const _0x5398ca=a93_0x21f2f2['dirname'](_0x2c67fe);createSecureDirectory(_0x5398ca),a93_0x29c7ab['writeFileSync'](_0x2c67fe,_0x24750d,{'mode':0x180}),setSecureFilePermissions(_0x2c67fe);}
@@ -1 +1 @@
1
- function a94_0x4ca1(_0x744d4c,_0x31d6aa){_0x744d4c=_0x744d4c-0x7f;const _0x30d559=a94_0x30d5();let _0x4ca15c=_0x30d559[_0x744d4c];return _0x4ca15c;}function a94_0x30d5(){const _0x4d5303=['8jbgQnX','4739913aSPvVi','split','52498FBrgJY','6cWjVZM','1499892hzDYkg','pop','tsv','table','16138450auyCsR','4159253DWYbuV','15oYWqUm','json','jsonl','toLowerCase','416600LzLjoY','633871lYGjHn','text'];a94_0x30d5=function(){return _0x4d5303;};return a94_0x30d5();}(function(_0x1030be,_0x515567){const _0x38b549=a94_0x4ca1,_0x20cb1f=_0x1030be();while(!![]){try{const _0x15f406=-parseInt(_0x38b549(0x87))/0x1+parseInt(_0x38b549(0x8c))/0x2*(-parseInt(_0x38b549(0x82))/0x3)+-parseInt(_0x38b549(0x8e))/0x4+-parseInt(_0x38b549(0x86))/0x5+parseInt(_0x38b549(0x8d))/0x6*(-parseInt(_0x38b549(0x81))/0x7)+parseInt(_0x38b549(0x89))/0x8*(parseInt(_0x38b549(0x8a))/0x9)+parseInt(_0x38b549(0x80))/0xa;if(_0x15f406===_0x515567)break;else _0x20cb1f['push'](_0x20cb1f['shift']());}catch(_0x15961a){_0x20cb1f['push'](_0x20cb1f['shift']());}}}(a94_0x30d5,0x4ed62));export function detectFormatFromExtension(_0x1cddde){const _0x31e2ff=a94_0x4ca1,_0x4dffca=_0x1cddde[_0x31e2ff(0x85)]()[_0x31e2ff(0x8b)]('.')[_0x31e2ff(0x8f)]();switch(_0x4dffca){case _0x31e2ff(0x83):return _0x31e2ff(0x83);case _0x31e2ff(0x84):return _0x31e2ff(0x84);case _0x31e2ff(0x90):case'tab':return'tsv';case'txt':case _0x31e2ff(0x88):return _0x31e2ff(0x7f);default:return undefined;}}export function resolveOutputFormat(_0x24de94,_0xd507b2,_0x3dbf63){if(_0x24de94)return _0x24de94;if(_0xd507b2){const _0x1875b3=detectFormatFromExtension(_0xd507b2);if(_0x1875b3)return _0x1875b3;}return _0x3dbf63;}
1
+ function a94_0xd7f0(_0x4c5f29,_0x3cceb9){_0x4c5f29=_0x4c5f29-0x197;const _0x1fe370=a94_0x1fe3();let _0xd7f013=_0x1fe370[_0x4c5f29];return _0xd7f013;}(function(_0x2ac21b,_0x3b3e35){const _0x194e21=a94_0xd7f0,_0x359ffc=_0x2ac21b();while(!![]){try{const _0xd5a146=parseInt(_0x194e21(0x1a3))/0x1*(-parseInt(_0x194e21(0x1a8))/0x2)+-parseInt(_0x194e21(0x1a2))/0x3+parseInt(_0x194e21(0x19f))/0x4*(-parseInt(_0x194e21(0x197))/0x5)+-parseInt(_0x194e21(0x19e))/0x6+-parseInt(_0x194e21(0x1a7))/0x7*(-parseInt(_0x194e21(0x1a1))/0x8)+parseInt(_0x194e21(0x198))/0x9+parseInt(_0x194e21(0x19b))/0xa;if(_0xd5a146===_0x3b3e35)break;else _0x359ffc['push'](_0x359ffc['shift']());}catch(_0x50f043){_0x359ffc['push'](_0x359ffc['shift']());}}}(a94_0x1fe3,0x71a7c));function a94_0x1fe3(){const _0x41b137=['8apcQbM','toLowerCase','376616owEQoM','2718336DPAmZO','444098aNoSzt','text','tab','split','35VkeWyr','2dCBELw','2036135WJnXUG','6896151MtoKrQ','txt','json','19803510aGzHlu','tsv','jsonl','2110674BIQqEy'];a94_0x1fe3=function(){return _0x41b137;};return a94_0x1fe3();}export function detectFormatFromExtension(_0x126db9){const _0x498f84=a94_0xd7f0,_0x2147ab=_0x126db9[_0x498f84(0x1a0)]()[_0x498f84(0x1a6)]('.')['pop']();switch(_0x2147ab){case _0x498f84(0x19a):return _0x498f84(0x19a);case _0x498f84(0x19d):return _0x498f84(0x19d);case _0x498f84(0x19c):case _0x498f84(0x1a5):return _0x498f84(0x19c);case _0x498f84(0x199):case _0x498f84(0x1a4):return'table';default:return undefined;}}export function resolveOutputFormat(_0x4d1fbb,_0x504e4b,_0x53ded9){if(_0x4d1fbb)return _0x4d1fbb;if(_0x504e4b){const _0x43631c=detectFormatFromExtension(_0x504e4b);if(_0x43631c)return _0x43631c;}return _0x53ded9;}