@hotmeshio/hotmesh 0.3.26 → 0.3.27

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 (68) hide show
  1. package/README.md +1 -1
  2. package/build/modules/key.js +1 -1
  3. package/build/modules/utils.js +1 -1
  4. package/build/package.json +1 -1
  5. package/build/services/activities/activity.js +1 -1
  6. package/build/services/activities/await.js +1 -1
  7. package/build/services/activities/cycle.js +1 -1
  8. package/build/services/activities/hook.js +1 -1
  9. package/build/services/activities/index.js +1 -1
  10. package/build/services/activities/interrupt.js +1 -1
  11. package/build/services/activities/signal.js +1 -1
  12. package/build/services/activities/trigger.js +1 -1
  13. package/build/services/activities/worker.js +1 -1
  14. package/build/services/collator/index.js +1 -1
  15. package/build/services/compiler/deployer.js +1 -1
  16. package/build/services/compiler/index.js +1 -1
  17. package/build/services/compiler/validator.js +1 -1
  18. package/build/services/engine/index.js +1 -1
  19. package/build/services/exporter/index.js +1 -1
  20. package/build/services/mapper/index.js +1 -1
  21. package/build/services/meshflow/exporter.js +1 -1
  22. package/build/services/pipe/functions/array.js +1 -1
  23. package/build/services/pipe/functions/bitwise.js +1 -1
  24. package/build/services/pipe/functions/conditional.js +1 -1
  25. package/build/services/pipe/functions/cron.js +1 -1
  26. package/build/services/pipe/functions/date.js +1 -1
  27. package/build/services/pipe/functions/index.js +1 -1
  28. package/build/services/pipe/functions/json.js +1 -1
  29. package/build/services/pipe/functions/logical.js +1 -1
  30. package/build/services/pipe/functions/math.js +1 -1
  31. package/build/services/pipe/functions/number.js +1 -1
  32. package/build/services/pipe/functions/object.js +1 -1
  33. package/build/services/pipe/functions/string.js +1 -1
  34. package/build/services/pipe/functions/symbol.js +1 -1
  35. package/build/services/pipe/functions/unary.js +1 -1
  36. package/build/services/pipe/index.js +1 -1
  37. package/build/services/quorum/index.js +1 -1
  38. package/build/services/reporter/index.js +1 -1
  39. package/build/services/router/index.js +1 -1
  40. package/build/services/search/providers/postgres/postgres.js +1 -1
  41. package/build/services/search/providers/redis/ioredis.js +1 -1
  42. package/build/services/search/providers/redis/redis.js +1 -1
  43. package/build/services/serializer/index.js +1 -1
  44. package/build/services/store/providers/postgres/kvsql.js +1 -1
  45. package/build/services/store/providers/postgres/kvtables.js +1 -1
  46. package/build/services/store/providers/postgres/kvtransaction.js +1 -1
  47. package/build/services/store/providers/postgres/kvtypes/hash.js +1 -1
  48. package/build/services/store/providers/postgres/kvtypes/list.js +1 -1
  49. package/build/services/store/providers/postgres/kvtypes/string.js +1 -1
  50. package/build/services/store/providers/postgres/kvtypes/zset.js +1 -1
  51. package/build/services/store/providers/postgres/postgres.js +1 -1
  52. package/build/services/store/providers/redis/_base.js +1 -1
  53. package/build/services/store/providers/redis/ioredis.js +1 -1
  54. package/build/services/store/providers/redis/redis.js +1 -1
  55. package/build/services/store/providers/store-initializable.js +1 -1
  56. package/build/services/stream/providers/nats/nats.js +1 -1
  57. package/build/services/stream/providers/postgres/postgres.js +1 -1
  58. package/build/services/stream/providers/redis/ioredis.js +1 -1
  59. package/build/services/stream/providers/redis/redis.js +1 -1
  60. package/build/services/stream/providers/stream-initializable.js +1 -1
  61. package/build/services/sub/providers/nats/nats.js +1 -1
  62. package/build/services/sub/providers/postgres/postgres.js +1 -1
  63. package/build/services/sub/providers/redis/ioredis.js +1 -1
  64. package/build/services/sub/providers/redis/redis.js +1 -1
  65. package/build/services/task/index.js +1 -1
  66. package/build/services/telemetry/index.js +1 -1
  67. package/build/services/worker/index.js +1 -1
  68. package/package.json +1 -1
package/README.md CHANGED
@@ -787,7 +787,7 @@ const PostgresPoolClient = new PostgresPool({
787
787
  //provide these credentials to HotMesh
788
788
  const connection = {
789
789
  class: PostgresPoolClient,
790
- options: {}
790
+ options: {},
791
791
  };
792
792
  ```
793
793
 
@@ -1 +1 @@
1
- 'use strict';function a(){const p=[':t:','THROTTLE_RATE','../types/hotmesh','189717eQVmNd','engineId','802bxvLOR',':j:','KeyType','mintKey','jobId',':transitions',':v:',':sym:keys:','2250EJcVSx',':d:','QUORUM','applications',':q:','jobKey','reconstituteKey','KeyService','6015472Tmprfv','hmsh',':r:','JOB_STATE','HOOKS','TIME_RANGE','versions','JOB_STATS_INDEX','sym','stream_topics','hooks',':x:','dateTime','SIGNALS','__esModule','STREAMS','task_lists','5613472YpEopX','9wQxbYn','task_schedules','TYPSEP','559972yAPwpQ','resolveEntityType',':hooks','APP','resolveAbbreviation','roles','symbols',':signals','WEBSEP','activityId','1724HemDwD','SYMKEYS','JOB_STATS_GENERAL','KEYSEP',':sym:vals:','join','jobs','defineProperty','signal_patterns','signal_registry','events','HMNS','stats','throttles','VALSEP','4121973WOKBGw','facet',':s:',':schemas','signals','appVersion','appId','scoutType','streams','task_priorities','6357205ocDBHG','timeValue',':w:','topic','78gUGdaV'];a=function(){return p;};return a();}const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0xcf))/0x1*(-parseInt(i(0xf2))/0x2)+-parseInt(i(0xde))/0x3+-parseInt(i(0xc1))/0x4+-parseInt(i(0xe8))/0x5+parseInt(i(0xec))/0x6*(parseInt(i(0xc5))/0x7)+-parseInt(i(0x102))/0x8*(parseInt(i(0xc2))/0x9)+parseInt(i(0xfa))/0xa*(parseInt(i(0xf0))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xc6069));Object[j(0xd6)](exports,j(0xbe),{'value':!![]}),exports[j(0xdd)]=exports[j(0xcd)]=exports[j(0xc4)]=exports[j(0xd2)]=exports[j(0xda)]=exports[j(0xf4)]=exports['KeyService']=void 0x0;const hotmesh_1=require(j(0xef));Object[j(0xd6)](exports,j(0xf4),{'enumerable':!![],'get':function(){const k=j;return hotmesh_1[k(0xf4)];}});const HMNS=j(0xb1);exports[j(0xda)]=HMNS;const KEYSEP=':';exports['KEYSEP']=KEYSEP;const VALSEP='::';exports['VALSEP']=VALSEP;const WEBSEP='::';exports[j(0xcd)]=WEBSEP;const TYPSEP='::';exports[j(0xc4)]=TYPSEP;function b(c,d){const e=a();return b=function(f,g){f=f-0xb1;let h=e[f];return h;},b(c,d);}class KeyService{static[j(0xf5)](c,d,e){const l=j;switch(d){case hotmesh_1['KeyType']['HOTMESH']:return c;case hotmesh_1[l(0xf4)][l(0xee)]:return c+':'+e[l(0xe4)]+l(0xb2);case hotmesh_1[l(0xf4)]['WORK_ITEMS']:return c+':'+e[l(0xe4)]+l(0xea)+(e[l(0xe5)]||'');case hotmesh_1[l(0xf4)][l(0xb5)]:return c+':'+e['appId']+l(0xed)+(e[l(0xe9)]||'');case hotmesh_1[l(0xf4)][l(0xc8)]:return c+':a:'+(e['appId']||'');case hotmesh_1['KeyType'][l(0xfc)]:return c+':'+e[l(0xe4)]+l(0xfe)+(e[l(0xf1)]||'');case hotmesh_1['KeyType'][l(0xb3)]:return c+':'+e[l(0xe4)]+l(0xf3)+e[l(0xf6)];case hotmesh_1[l(0xf4)]['JOB_DEPENDENTS']:return c+':'+e[l(0xe4)]+l(0xfb)+e[l(0xf6)];case hotmesh_1['KeyType'][l(0xd1)]:return c+':'+e[l(0xe4)]+l(0xe0)+e[l(0xff)]+':'+e[l(0xbc)];case hotmesh_1[l(0xf4)]['JOB_STATS_MEDIAN']:return c+':'+e[l(0xe4)]+l(0xe0)+e[l(0xff)]+':'+e[l(0xbc)]+':'+e[l(0xdf)];case hotmesh_1[l(0xf4)][l(0xb7)]:return c+':'+e[l(0xe4)]+l(0xe0)+e['jobKey']+':'+e[l(0xbc)]+':'+e[l(0xdf)];case hotmesh_1['KeyType']['SCHEMAS']:return c+':'+e['appId']+l(0xf8)+e[l(0xe3)]+l(0xe1);case hotmesh_1[l(0xf4)]['SUBSCRIPTIONS']:return c+':'+e[l(0xe4)]+':v:'+e[l(0xe3)]+':subscriptions';case hotmesh_1[l(0xf4)]['SUBSCRIPTION_PATTERNS']:return c+':'+e[l(0xe4)]+':v:'+e[l(0xe3)]+l(0xf7);case hotmesh_1[l(0xf4)][l(0xb4)]:return c+':'+e[l(0xe4)]+l(0xc7);case hotmesh_1['KeyType'][l(0xbd)]:return c+':'+e[l(0xe4)]+l(0xcc);case hotmesh_1[l(0xf4)][l(0xd0)]:return c+':'+e[l(0xe4)]+l(0xf9)+(e[l(0xce)]||'');case hotmesh_1[l(0xf4)]['SYMVALS']:return c+':'+e[l(0xe4)]+l(0xd3);case hotmesh_1[l(0xf4)][l(0xbf)]:return c+':'+(e[l(0xe4)]||'')+l(0xbb)+(e[l(0xeb)]||'');default:throw new Error('Invalid\x20key\x20type.');}}static['parseKey'](c){const m=j,[d,e,f,...g]=c['split'](KEYSEP),h=g[m(0xd4)](KEYSEP)||'';return{'namespace':d,'app':f==='a'?e:undefined,'entity':f,'id':h};}static[j(0x100)](c){const {namespace:d,app:e,entity:f,id:g}=c;return''+d+KEYSEP+e+KEYSEP+f+KEYSEP+(g||'');}static[j(0xc6)](c,d=''){const n=j;switch(c){case'a':return'applications';case'r':return n(0xdc);case'w':return d===''?n(0xe7):n(0xca);case't':return d===''?n(0xc3):n(0xc0);case'q':return n(0xd9);case'j':return n(0xd5);case's':return n(0xdb);case'v':return'versions';case'x':return d===''?'streams':n(0xb9);case'hooks':return n(0xd7);case n(0xe2):return'signal_registry';case n(0xb8):return n(0xcb);default:return'unknown_entity';}}static[j(0xc9)](c){const o=j;switch(c){case o(0xfd):return'a';case o(0xdc):return'r';case o(0xca):return'w';case'task_schedules':return't';case o(0xc0):return't';case'events':return'q';case'jobs':return'j';case o(0xdb):return's';case o(0xb6):return'v';case o(0xe6):return'x';case o(0xd7):return o(0xba);case o(0xd8):return o(0xe2);case o(0xcb):return o(0xb8);default:return'unknown_entity';}}}exports[j(0x101)]=KeyService;
1
+ 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x1e5))/0x1*(-parseInt(i(0x1db))/0x2)+-parseInt(i(0x1d8))/0x3+-parseInt(i(0x218))/0x4+parseInt(i(0x1e3))/0x5*(parseInt(i(0x216))/0x6)+parseInt(i(0x1fd))/0x7+parseInt(i(0x1d6))/0x8+parseInt(i(0x207))/0x9*(-parseInt(i(0x1e6))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xdf3da));Object[j(0x208)](exports,j(0x1ed),{'value':!![]}),exports['VALSEP']=exports[j(0x1d3)]=exports[j(0x1d5)]=exports['KEYSEP']=exports[j(0x1ea)]=exports[j(0x21c)]=exports[j(0x20d)]=void 0x0;const hotmesh_1=require(j(0x1e1));Object['defineProperty'](exports,j(0x21c),{'enumerable':!![],'get':function(){return hotmesh_1['KeyType'];}});function a(){const o=['JOB_STATS_MEDIAN','10101015WDMShL','defineProperty',':j:','engineId','mintKey','jobs','KeyService',':signals','events','signal_registry','task_priorities',':x:','TIME_RANGE','appVersion','hooks','4736262aEZMRk','appId','1216vuafch','SYMKEYS','jobId',':d:','KeyType','roles',':schemas',':subscriptions','unknown_entity','VALSEP','WEBSEP','stream_topics','TYPSEP','4433976vlSmzH',':v:','3189831FEcuLx','Invalid\x20key\x20type.','stats','92fNfJMB','jobKey','timeValue','APP','SIGNALS','streams','../types/hotmesh','signal_patterns','5AKcbsO',':sym:keys:','18168kDZXzm','10NaLTeK','task_schedules','HOTMESH','JOB_DEPENDENTS','HMNS','STREAMS','symbols','__esModule',':q:','sym','split',':s:',':t:','JOB_STATS_INDEX','facet','topic','activityId','throttles','SUBSCRIPTION_PATTERNS','versions','parseKey','reconstituteKey','applications','6446706lYwKjz','KEYSEP','scoutType','dateTime','JOB_STATE','SYMVALS','task_lists','resolveAbbreviation','hmsh'];a=function(){return o;};return a();}const HMNS=j(0x205);exports[j(0x1ea)]=HMNS;const KEYSEP=':';exports[j(0x1fe)]=KEYSEP;const VALSEP='::';function b(c,d){const e=a();return b=function(f,g){f=f-0x1ce;let h=e[f];return h;},b(c,d);}exports[j(0x1d2)]=VALSEP;const WEBSEP='::';exports['WEBSEP']=WEBSEP;const TYPSEP='::';exports[j(0x1d5)]=TYPSEP;class KeyService{static[j(0x20b)](c,d,e){const k=j;switch(d){case hotmesh_1[k(0x21c)][k(0x1e8)]:return c;case hotmesh_1[k(0x21c)]['THROTTLE_RATE']:return c+':'+e[k(0x217)]+':r:';case hotmesh_1[k(0x21c)]['WORK_ITEMS']:return c+':'+e[k(0x217)]+':w:'+(e[k(0x1ff)]||'');case hotmesh_1[k(0x21c)][k(0x213)]:return c+':'+e['appId']+k(0x1f2)+(e[k(0x1dd)]||'');case hotmesh_1['KeyType'][k(0x1de)]:return c+':a:'+(e[k(0x217)]||'');case hotmesh_1[k(0x21c)]['QUORUM']:return c+':'+e[k(0x217)]+k(0x1ee)+(e[k(0x20a)]||'');case hotmesh_1[k(0x21c)][k(0x201)]:return c+':'+e['appId']+k(0x209)+e[k(0x21a)];case hotmesh_1[k(0x21c)][k(0x1e9)]:return c+':'+e[k(0x217)]+k(0x21b)+e[k(0x21a)];case hotmesh_1[k(0x21c)]['JOB_STATS_GENERAL']:return c+':'+e[k(0x217)]+k(0x1f1)+e['jobKey']+':'+e['dateTime'];case hotmesh_1[k(0x21c)][k(0x206)]:return c+':'+e['appId']+k(0x1f1)+e[k(0x1dc)]+':'+e['dateTime']+':'+e[k(0x1f4)];case hotmesh_1[k(0x21c)][k(0x1f3)]:return c+':'+e[k(0x217)]+':s:'+e[k(0x1dc)]+':'+e[k(0x200)]+':'+e[k(0x1f4)];case hotmesh_1[k(0x21c)]['SCHEMAS']:return c+':'+e[k(0x217)]+k(0x1d7)+e[k(0x214)]+k(0x1cf);case hotmesh_1[k(0x21c)]['SUBSCRIPTIONS']:return c+':'+e[k(0x217)]+k(0x1d7)+e['appVersion']+k(0x1d0);case hotmesh_1[k(0x21c)][k(0x1f8)]:return c+':'+e[k(0x217)]+k(0x1d7)+e[k(0x214)]+':transitions';case hotmesh_1[k(0x21c)]['HOOKS']:return c+':'+e[k(0x217)]+':hooks';case hotmesh_1[k(0x21c)][k(0x1df)]:return c+':'+e[k(0x217)]+k(0x20e);case hotmesh_1['KeyType'][k(0x219)]:return c+':'+e[k(0x217)]+k(0x1e4)+(e[k(0x1f6)]||'');case hotmesh_1['KeyType'][k(0x202)]:return c+':'+e['appId']+':sym:vals:';case hotmesh_1['KeyType'][k(0x1eb)]:return c+':'+(e[k(0x217)]||'')+k(0x212)+(e[k(0x1f5)]||'');default:throw new Error(k(0x1d9));}}static[j(0x1fa)](c){const l=j,[d,e,f,...g]=c[l(0x1f0)](KEYSEP),h=g['join'](KEYSEP)||'';return{'namespace':d,'app':f==='a'?e:undefined,'entity':f,'id':h};}static[j(0x1fb)](c){const {namespace:d,app:e,entity:f,id:g}=c;return''+d+KEYSEP+e+KEYSEP+f+KEYSEP+(g||'');}static['resolveEntityType'](c,d=''){const m=j;switch(c){case'a':return m(0x1fc);case'r':return m(0x1f7);case'w':return d===''?m(0x211):'roles';case't':return d===''?'task_schedules':'task_lists';case'q':return'events';case'j':return m(0x20c);case's':return m(0x1da);case'v':return m(0x1f9);case'x':return d===''?m(0x1e0):m(0x1d4);case m(0x215):return m(0x1e2);case'signals':return m(0x210);case m(0x1ef):return m(0x1ec);default:return'unknown_entity';}}static[j(0x204)](c){const n=j;switch(c){case n(0x1fc):return'a';case n(0x1f7):return'r';case n(0x1ce):return'w';case n(0x1e7):return't';case n(0x203):return't';case n(0x20f):return'q';case n(0x20c):return'j';case n(0x1da):return's';case n(0x1f9):return'v';case n(0x1e0):return'x';case n(0x1e2):return n(0x215);case n(0x210):return'signals';case'symbols':return n(0x1ef);default:return n(0x1d1);}}}exports['KeyService']=KeyService;
@@ -1 +1 @@
1
- 'use strict';const o=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=-parseInt(n(0x228))/0x1*(-parseInt(n(0x20a))/0x2)+-parseInt(n(0x1e4))/0x3+parseInt(n(0x21c))/0x4*(parseInt(n(0x21f))/0x5)+parseInt(n(0x1e8))/0x6+-parseInt(n(0x1fb))/0x7+-parseInt(n(0x22d))/0x8*(-parseInt(n(0x216))/0x9)+parseInt(n(0x20b))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xc66df));function a(){const O=['database','formatISODate','sha256','parseStreamMessage','getSubscriptions','3CgskHN','crypto','./enums','stringify','keys','8LoizbP','parse','Pipeline','hex','nanoid','postgres','getMinutes','toISOString','Commander','hashOptions','\x20GB','pow','totalCount','push','name','__importDefault','Query','__esModule','getIndexedHash','getTimeSeries','ioredis','abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','matchesStatusCode','sleepFor','test','isValidCron','includes','update','2273148zzlOZw','findSubscriptionForTrigger','utils','Redis','2434848JoIOro','getSubscriptionTopic','ProviderClient','identifyProvider','redis','toFixed','toLowerCase','split','Number\x20out\x20of\x20range','floor','nats','createClient','setUTCMinutes','defineProperty','toString','getTransitions','isStreamMessage','error','freemem','4717027oBEkcd','getSymKey','default','defineCommand','guid','isArray','connection','deterministicRandom','Multi','Error\x20parsing\x20Stream\x20message','findTopKey','length','getSymVal','infinity','Pool','447582aPyQOa','4029160xzKPZW','idleCount','hasOwnProperty','../services/logger','restoreHierarchy','sin','arrayToHash','deepCopy','string','constructor','LoggerService','4276962SlTaeX','multi','entries','digest','XSleepFor','getPrototypeOf','4VprVvV','createHash','matchesStatus','1445145kWQbzG','getValueByPath','replace','getSystemHealth'];a=function(){return O;};return a();}var __importDefault=this&&this[o(0x1d7)]||function(c){const p=o;return c&&c[p(0x1d9)]?c:{'default':c};};Object[o(0x1f5)](exports,o(0x1d9),{'value':!![]}),exports[o(0x211)]=exports[o(0x1f8)]=exports[o(0x226)]=exports['s']=exports[o(0x1e1)]=exports[o(0x20f)]=exports['getValueByPath']=exports[o(0x1da)]=exports[o(0x207)]=exports[o(0x1fc)]=exports[o(0x224)]=exports[o(0x1db)]=exports[o(0x1e9)]=exports[o(0x1e5)]=exports[o(0x205)]=exports[o(0x21e)]=exports[o(0x1de)]=exports['polyfill']=exports[o(0x1eb)]=exports[o(0x21a)]=exports['sleepImmediate']=exports[o(0x1df)]=exports[o(0x1ff)]=exports[o(0x202)]=exports[o(0x212)]=exports['getSystemHealth']=exports[o(0x1d1)]=void 0x0;const os_1=__importDefault(require('os')),crypto_1=require(o(0x229)),nanoid_1=require('nanoid'),ms_1=__importDefault(require('ms')),logger_1=require(o(0x20e)),enums_1=require(o(0x22a)),logger=new logger_1[(o(0x215))]('hotmesh',o(0x1e6)),hashOptions=c=>{const q=o,d=JSON['stringify'](c);return(0x0,crypto_1[q(0x21d)])(q(0x225))[q(0x1e3)](d)[q(0x219)](q(0x230));};exports[o(0x1d1)]=hashOptions;async function getSystemHealth(){const r=o,c=os_1[r(0x1fd)]['totalmem'](),d=os_1[r(0x1fd)][r(0x1fa)](),e=c-d,f={'TotalMemoryGB':(c/0x400/0x400/0x400)['toFixed'](0x2)+r(0x1d2),'FreeMemoryGB':(d/0x400/0x400/0x400)[r(0x1ed)](0x2)+r(0x1d2),'UsedMemoryGB':(e/0x400/0x400/0x400)['toFixed'](0x2)+r(0x1d2),'CPULoad':[],'NetworkStats':[]};return f;}exports[o(0x222)]=getSystemHealth;function deepCopy(c){const t=o;return JSON[t(0x22e)](JSON[t(0x22b)](c));}exports[o(0x212)]=deepCopy;function deterministicRandom(c){const u=o,d=Math[u(0x210)](c)*0x2710;return d-Math['floor'](d);}exports[o(0x202)]=deterministicRandom;function guid(c=enums_1['HMSH_GUID_SIZE']){const v=o;return'H'+(0x0,nanoid_1[v(0x231)])(c);}exports[o(0x1ff)]=guid;async function sleepFor(c){return new Promise(d=>setTimeout(d,c));}exports['sleepFor']=sleepFor;function sleepImmediate(){return new Promise(c=>setImmediate(c));}exports['sleepImmediate']=sleepImmediate;function XSleepFor(c){let d;const e=new Promise(f=>{d=setTimeout(f,c);});return{'promise':e,'timerId':d};}exports[o(0x21a)]=XSleepFor;function identifyProvider(c){const w=o,d=Object[w(0x21b)](c);if(c[w(0x1d8)]?.['prototype']||Object[w(0x22c)](c)[w(0x1e2)](w(0x223))||d['name']===w(0x209))return w(0x232);else{if(c[w(0x1f6)]()[w(0x1ee)]()[w(0x1e2)]('nats'))return w(0x1f2);else{if(w(0x1fe)in d||Object[w(0x22c)](d)[w(0x1e2)](w(0x217)))return'ioredis';else{if(Object[w(0x22c)](d)['includes'](w(0x203)))return w(0x1ec);}}}if(c[w(0x214)]){if(c[w(0x214)][w(0x1d6)]===w(0x1e7)||c[w(0x214)][w(0x1d6)]==='EventEmitter'){if('hset'in c)return'ioredis';}else{if(c['constructor']['name']===w(0x1ea)||c[w(0x214)][w(0x1d6)]===w(0x1d0)){if('HSET'in c)return w(0x1ec);}}}let e=null;if(Object[w(0x22c)](c)[w(0x1e2)](w(0x201))||!isNaN(c[w(0x1d4)])&&!isNaN(c[w(0x20c)]))e=w(0x232);else{if(Object['keys'](c)[w(0x1e2)](w(0x22f)))e=w(0x1dc);else{if(Object[w(0x22c)](c)[w(0x1e2)](w(0x1f3)))e=w(0x1ec);else d[w(0x214)][w(0x1f6)]()['includes']('NatsConnectionImpl')&&(e=w(0x1f2));}}return e;}exports['identifyProvider']=identifyProvider,exports['polyfill']={'providerConfig'(c){const x=o;return c?.[x(0x201)]??c?.[x(0x1ec)]??c?.['connections'];},'meshDataConfig'(c){const y=o;return{...c[y(0x201)]};}};function matchesStatusCode(c,d){const z=o;if(typeof d===z(0x213)){const e='^'+d['replace'](/\*/g,'\x5cd')+'$';return new RegExp(e)[z(0x1e0)](c['toString']());}return d[z(0x1e0)](c[z(0x1f6)]());}exports['matchesStatusCode']=matchesStatusCode;function matchesStatus(c,d){return c===d;}exports[o(0x21e)]=matchesStatus;function findTopKey(c,d){const A=o;for(const [e,f]of Object[A(0x218)](c)){if(f[A(0x20d)](d)){const g=findTopKey(c,e['replace'](/^\./,''));return(g||e)[A(0x221)](/^\./,'');}}return null;}exports[o(0x205)]=findTopKey;function findSubscriptionForTrigger(c,d){const B=o;for(const [e,f]of Object[B(0x218)](c)){if(f===d)return e;}return null;}exports[o(0x1e5)]=findSubscriptionForTrigger;async function getSubscriptionTopic(c,d,e){const C=o,f=await d[C(0x1f7)](e),g=await d[C(0x227)](e),h=findTopKey(f,c),i=findSubscriptionForTrigger(g,h);return i;}exports[o(0x1e9)]=getSubscriptionTopic;function getTimeSeries(c){const D=o;if(c[D(0x1f6)]()===D(0x208))return'0';const d=new Date(),e=c['slice'](-0x1),f=parseInt(c['slice'](0x0,-0x1),0xa);if(e==='m'){const g=Math[D(0x1f1)](d[D(0x1ce)]()/f)*f;d[D(0x1f4)](g,0x0,0x0);}else e==='h'&&d['setUTCMinutes'](0x0,0x0,0x0);return d[D(0x1cf)]()[D(0x221)](/:\d\d\..+|-|T/g,'')[D(0x221)](':','');}exports[o(0x1db)]=getTimeSeries;function formatISODate(c){const E=o,d=c instanceof Date?c:new Date(c);return d[E(0x1cf)]()[E(0x221)](/[:TZ-]/g,'');}exports[o(0x224)]=formatISODate;function getSymKey(c){const F=o,d=F(0x1dd),e=d['length'];if(c<0x0||c>=Math[F(0x1d3)](e,0x3))throw new Error(F(0x1f0));const [f,g]=divmod(c,e),[h,i]=divmod(f,e);return d[h]+d[g]+d[i];}exports[o(0x1fc)]=getSymKey;function getSymVal(c){const G=o,d=G(0x1dd),e=d[G(0x206)];if(c<0x0||c>=Math[G(0x1d3)](e,0x2))throw new Error(G(0x1f0));const [f,g]=divmod(c,e);return d[f]+d[g];}exports[o(0x207)]=getSymVal;function b(c,d){const e=a();return b=function(f,g){f=f-0x1ce;let h=e[f];return h;},b(c,d);}function divmod(c,d){const H=o;return[Math[H(0x1f1)](c/d),c%d];}function getIndexedHash(c,d){const e=c[d]||0x0,f={...c};return delete f[d],[e,f];}exports['getIndexedHash']=getIndexedHash;function getValueByPath(c,d){const I=o,e=d[I(0x1ef)]('/');let f=c;for(const g of e){if(f[g]!==undefined)f=f[g];else return undefined;}return f;}exports[o(0x220)]=getValueByPath;function restoreHierarchy(c){const J=o,d={};for(const e in c){if(c[e]===undefined)continue;const f=e[J(0x1ef)]('/');let g=d;for(let h=0x0;h<f[J(0x206)];h++){h===f['length']-0x1?g[f[h]]=c[e]:(g[f[h]]=g[f[h]]||{},g=g[f[h]]);}}return d;}exports[o(0x20f)]=restoreHierarchy;function isValidCron(c){const K=o,d=/^(\*|([0-5]?\d)) (\*|([01]?\d|2[0-3])) (\*|([12]?\d|3[01])) (\*|([1-9]|1[0-2])) (\*|([0-6](?:-[0-6])?(?:,[0-6])?))$/;return d[K(0x1e0)](c);}exports[o(0x1e1)]=isValidCron;const s=c=>{return(0x0,ms_1['default'])(c)/0x3e8;};exports['s']=s;const parseStreamMessage=c=>{const L=o;try{return JSON[L(0x22e)](c);}catch(d){logger[L(0x1f9)](L(0x204),{'error':d});throw d;}};exports[o(0x226)]=parseStreamMessage;const isStreamMessage=c=>{const M=o;return Array[M(0x200)](c)&&Array[M(0x200)](c[0x0]);};exports[o(0x1f8)]=isStreamMessage;const arrayToHash=c=>{const N=o,d=[];let e;for(let f=0x1;f<c[N(0x206)];f++){const g=c[f],h={};if(Array[N(0x200)](g)){for(let k=0x0;k<g[N(0x206)];k+=0x2){const l=g[k],m=g[k+0x1];h[l]=m;}e&&(h['$']=e),d[N(0x1d5)](h),e=undefined;}else e=g;}return d;};exports[o(0x211)]=arrayToHash;
1
+ 'use strict';const p=b;(function(c,d){const n=b,e=c();while(!![]){try{const f=parseInt(n(0x20b))/0x1*(-parseInt(n(0x234))/0x2)+parseInt(n(0x203))/0x3*(-parseInt(n(0x1de))/0x4)+-parseInt(n(0x205))/0x5*(-parseInt(n(0x225))/0x6)+-parseInt(n(0x202))/0x7+parseInt(n(0x1e0))/0x8+-parseInt(n(0x1da))/0x9+-parseInt(n(0x23c))/0xa*(-parseInt(n(0x23a))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xbb80e));var __importDefault=this&&this['__importDefault']||function(c){const o=b;return c&&c[o(0x21f)]?c:{'default':c};};Object['defineProperty'](exports,p(0x21f),{'value':!![]}),exports[p(0x1f4)]=exports[p(0x1fd)]=exports['parseStreamMessage']=exports['s']=exports['isValidCron']=exports[p(0x233)]=exports[p(0x1f6)]=exports[p(0x222)]=exports[p(0x221)]=exports[p(0x212)]=exports[p(0x1d8)]=exports[p(0x22c)]=exports['getSubscriptionTopic']=exports['findSubscriptionForTrigger']=exports['findTopKey']=exports[p(0x20d)]=exports['matchesStatusCode']=exports['polyfill']=exports[p(0x1e6)]=exports[p(0x1e4)]=exports[p(0x1f7)]=exports['sleepFor']=exports[p(0x1e2)]=exports[p(0x223)]=exports[p(0x1e7)]=exports[p(0x208)]=exports[p(0x219)]=void 0x0;const os_1=__importDefault(require('os')),crypto_1=require(p(0x210)),nanoid_1=require(p(0x1fa)),ms_1=__importDefault(require('ms')),logger_1=require(p(0x1ee)),enums_1=require(p(0x238)),logger=new logger_1[(p(0x1f3))](p(0x21d),p(0x22d)),hashOptions=c=>{const q=p,d=JSON[q(0x211)](c);return(0x0,crypto_1[q(0x236)])(q(0x20e))[q(0x226)](d)[q(0x206)](q(0x204));};exports[p(0x219)]=hashOptions;async function getSystemHealth(){const r=p,c=os_1[r(0x1fc)][r(0x1d9)](),d=os_1[r(0x1fc)][r(0x22e)](),e=c-d,f={'TotalMemoryGB':(c/0x400/0x400/0x400)[r(0x1e1)](0x2)+r(0x1e5),'FreeMemoryGB':(d/0x400/0x400/0x400)[r(0x1e1)](0x2)+r(0x1e5),'UsedMemoryGB':(e/0x400/0x400/0x400)['toFixed'](0x2)+'\x20GB','CPULoad':[],'NetworkStats':[]};return f;}exports[p(0x208)]=getSystemHealth;function deepCopy(c){const t=p;return JSON[t(0x21c)](JSON[t(0x211)](c));}exports[p(0x1e7)]=deepCopy;function deterministicRandom(c){const u=p,d=Math[u(0x20a)](c)*0x2710;return d-Math[u(0x218)](d);}exports[p(0x223)]=deterministicRandom;function guid(c=enums_1[p(0x22f)]){const v=p;return'H'+(0x0,nanoid_1[v(0x1fa)])(c);}exports['guid']=guid;async function sleepFor(c){return new Promise(d=>setTimeout(d,c));}exports[p(0x235)]=sleepFor;function sleepImmediate(){return new Promise(c=>setImmediate(c));}exports[p(0x1f7)]=sleepImmediate;function XSleepFor(c){let d;const e=new Promise(f=>{d=setTimeout(f,c);});return{'promise':e,'timerId':d};}exports[p(0x1e4)]=XSleepFor;function b(c,d){const e=a();return b=function(f,g){f=f-0x1d7;let h=e[f];return h;},b(c,d);}function identifyProvider(c){const w=p,d=Object['getPrototypeOf'](c);if(c[w(0x1df)]?.[w(0x220)]||Object[w(0x21b)](c)[w(0x1e9)](w(0x20c))||d[w(0x23b)]===w(0x21a))return w(0x228);else{if(c[w(0x1eb)]()[w(0x23d)]()[w(0x1e9)]('nats'))return w(0x231);else{if(w(0x207)in d||Object['keys'](d)['includes'](w(0x1f2)))return w(0x23e);else{if(Object['keys'](d)['includes'](w(0x224)))return'redis';}}}if(c[w(0x214)]){if(c[w(0x214)]['name']===w(0x1d7)||c[w(0x214)][w(0x23b)]===w(0x1ff)){if(w(0x200)in c)return w(0x23e);}else{if(c[w(0x214)][w(0x23b)]===w(0x1f8)||c[w(0x214)][w(0x23b)]===w(0x237)){if('HSET'in c)return w(0x1fe);}}}let e=null;if(Object['keys'](c)[w(0x1e9)]('connection')||!isNaN(c[w(0x215)])&&!isNaN(c['idleCount']))e=w(0x228);else{if(Object[w(0x21b)](c)[w(0x1e9)](w(0x1f5)))e=w(0x23e);else{if(Object[w(0x21b)](c)[w(0x1e9)](w(0x1ef)))e=w(0x1fe);else d[w(0x214)][w(0x1eb)]()['includes'](w(0x1f9))&&(e=w(0x231));}}return e;}exports[p(0x1e6)]=identifyProvider,exports['polyfill']={'providerConfig'(c){const x=p;return c?.[x(0x21e)]??c?.['redis']??c?.['connections'];},'meshDataConfig'(c){return{...c['connection']};}};function a(){const N=['matchesStatus','sha256','length','crypto','stringify','getSymKey','Error\x20parsing\x20Stream\x20message','constructor','totalCount','test','getTransitions','floor','hashOptions','Pool','keys','parse','hotmesh','connection','__esModule','prototype','getSymVal','getIndexedHash','deterministicRandom','Multi','463146CLWODD','update','toISOString','postgres','Number\x20out\x20of\x20range','getSubscriptions','isValidCron','getTimeSeries','utils','freemem','HMSH_GUID_SIZE','hasOwnProperty','nats','entries','restoreHierarchy','2272fJooji','sleepFor','createHash','Commander','./enums','slice','35783836RYwMzC','name','10vvJXTk','toLowerCase','ioredis','Redis','formatISODate','totalmem','9214479moSdsQ','push','error','getMinutes','4RKQQcd','Query','9456016tNRPdl','toFixed','guid','findSubscriptionForTrigger','XSleepFor','\x20GB','identifyProvider','deepCopy','findTopKey','includes','replace','toString','split','isArray','../services/logger','createClient','infinity','getSubscriptionTopic','multi','LoggerService','arrayToHash','Pipeline','getValueByPath','sleepImmediate','ProviderClient','NatsConnectionImpl','nanoid','pow','default','isStreamMessage','redis','EventEmitter','hset','setUTCMinutes','3420802yTHKKu','3310899YahfXr','hex','10ryDFAd','digest','defineCommand','getSystemHealth','abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ','sin','1061PnpKcl','database'];a=function(){return N;};return a();}function matchesStatusCode(c,d){const y=p;if(typeof d==='string'){const e='^'+d[y(0x1ea)](/\*/g,'\x5cd')+'$';return new RegExp(e)[y(0x216)](c[y(0x1eb)]());}return d[y(0x216)](c[y(0x1eb)]());}exports['matchesStatusCode']=matchesStatusCode;function matchesStatus(c,d){return c===d;}exports[p(0x20d)]=matchesStatus;function findTopKey(c,d){const z=p;for(const [e,f]of Object[z(0x232)](c)){if(f[z(0x230)](d)){const g=findTopKey(c,e[z(0x1ea)](/^\./,''));return(g||e)['replace'](/^\./,'');}}return null;}exports[p(0x1e8)]=findTopKey;function findSubscriptionForTrigger(c,d){const A=p;for(const [e,f]of Object[A(0x232)](c)){if(f===d)return e;}return null;}exports[p(0x1e3)]=findSubscriptionForTrigger;async function getSubscriptionTopic(c,d,e){const B=p,f=await d[B(0x217)](e),g=await d[B(0x22a)](e),h=findTopKey(f,c),i=findSubscriptionForTrigger(g,h);return i;}exports[p(0x1f1)]=getSubscriptionTopic;function getTimeSeries(c){const C=p;if(c['toString']()===C(0x1f0))return'0';const d=new Date(),e=c[C(0x239)](-0x1),f=parseInt(c[C(0x239)](0x0,-0x1),0xa);if(e==='m'){const g=Math[C(0x218)](d[C(0x1dd)]()/f)*f;d[C(0x201)](g,0x0,0x0);}else e==='h'&&d['setUTCMinutes'](0x0,0x0,0x0);return d[C(0x227)]()[C(0x1ea)](/:\d\d\..+|-|T/g,'')[C(0x1ea)](':','');}exports['getTimeSeries']=getTimeSeries;function formatISODate(c){const D=p,d=c instanceof Date?c:new Date(c);return d['toISOString']()[D(0x1ea)](/[:TZ-]/g,'');}exports[p(0x1d8)]=formatISODate;function getSymKey(c){const E=p,d=E(0x209),e=d[E(0x20f)];if(c<0x0||c>=Math[E(0x1fb)](e,0x3))throw new Error(E(0x229));const [f,g]=divmod(c,e),[h,i]=divmod(f,e);return d[h]+d[g]+d[i];}exports['getSymKey']=getSymKey;function getSymVal(c){const F=p,d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',e=d[F(0x20f)];if(c<0x0||c>=Math[F(0x1fb)](e,0x2))throw new Error('Number\x20out\x20of\x20range');const [f,g]=divmod(c,e);return d[f]+d[g];}exports[p(0x221)]=getSymVal;function divmod(c,d){const G=p;return[Math[G(0x218)](c/d),c%d];}function getIndexedHash(c,d){const e=c[d]||0x0,f={...c};return delete f[d],[e,f];}exports[p(0x222)]=getIndexedHash;function getValueByPath(c,d){const H=p,e=d[H(0x1ec)]('/');let f=c;for(const g of e){if(f[g]!==undefined)f=f[g];else return undefined;}return f;}exports['getValueByPath']=getValueByPath;function restoreHierarchy(c){const I=p,d={};for(const e in c){if(c[e]===undefined)continue;const f=e[I(0x1ec)]('/');let g=d;for(let h=0x0;h<f[I(0x20f)];h++){h===f[I(0x20f)]-0x1?g[f[h]]=c[e]:(g[f[h]]=g[f[h]]||{},g=g[f[h]]);}}return d;}exports[p(0x233)]=restoreHierarchy;function isValidCron(c){const J=p,d=/^(\*|([0-5]?\d)) (\*|([01]?\d|2[0-3])) (\*|([12]?\d|3[01])) (\*|([1-9]|1[0-2])) (\*|([0-6](?:-[0-6])?(?:,[0-6])?))$/;return d[J(0x216)](c);}exports[p(0x22b)]=isValidCron;const s=c=>{return(0x0,ms_1['default'])(c)/0x3e8;};exports['s']=s;const parseStreamMessage=c=>{const K=p;try{return JSON[K(0x21c)](c);}catch(d){logger[K(0x1dc)](K(0x213),{'error':d});throw d;}};exports['parseStreamMessage']=parseStreamMessage;const isStreamMessage=c=>{const L=p;return Array[L(0x1ed)](c)&&Array[L(0x1ed)](c[0x0]);};exports[p(0x1fd)]=isStreamMessage;const arrayToHash=c=>{const M=p,d=[];let e;for(let f=0x1;f<c['length'];f++){const g=c[f],h={};if(Array['isArray'](g)){for(let k=0x0;k<g['length'];k+=0x2){const l=g[k],m=g[k+0x1];h[l]=m;}e&&(h['$']=e),d[M(0x1db)](h),e=undefined;}else e=g;}return d;};exports[p(0x1f4)]=arrayToHash;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.3.26",
3
+ "version": "0.3.27",
4
4
  "description": "Serverless Workflow",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1 +1 @@
1
- 'use strict';const p=b;(function(c,d){const o=b,e=c();while(!![]){try{const f=-parseInt(o(0xd8))/0x1+parseInt(o(0x8c))/0x2+parseInt(o(0xc5))/0x3+parseInt(o(0xcd))/0x4+-parseInt(o(0xfa))/0x5+parseInt(o(0x10f))/0x6+-parseInt(o(0xbd))/0x7*(parseInt(o(0xce))/0x8);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x4e05e));function b(c,d){const e=a();return b=function(f,g){f=f-0x87;let h=e[f];return h;},b(c,d);}Object[p(0x8b)](exports,p(0xed),{'value':!![]}),exports[p(0x113)]=void 0x0;const enums_1=require(p(0xec)),errors_1=require(p(0xe8)),utils_1=require(p(0xe7)),collator_1=require(p(0x110)),mapper_1=require(p(0xa6)),pipe_1=require('../pipe'),serializer_1=require(p(0xa5)),telemetry_1=require(p(0xf3)),stream_1=require(p(0xeb));class Activity{constructor(c,d,e,f,g,h){const q=p;this[q(0xd2)]=stream_1[q(0xac)][q(0x116)],this[q(0x8d)]=0xc8,this[q(0xb6)]=0x0,this[q(0xda)]=c,this[q(0x93)]=d,this[q(0x99)]=e,this[q(0xfd)]=f,this['engine']=g,this[q(0xd9)]=h||{'data':{},'metadata':{}},this[q(0xe1)]=g[q(0xe1)],this[q(0x101)]=g['store'];}[p(0x91)](c){const r=p;this[r(0xcc)]=c;}[p(0xa4)](){const s=p;if(this[s(0xda)][s(0x102)]!==undefined){const c=pipe_1['Pipe'][s(0xca)](this[s(0xda)][s(0x102)],this['context']);if(c!==undefined&&!isNaN(Number(c)))return c;}return 0x0;}async[p(0x104)](){const t=p;this[t(0x91)](0x1),await this[t(0xf6)]();const c=this['mapStatusThreshold']();try{collator_1['CollatorService']['assertJobActive'](this[t(0xd9)][t(0x99)]['js'],this['context'][t(0x99)][t(0xa7)],this['metadata']['aid'],c);}catch(d){await collator_1['CollatorService'][t(0xc2)](this);if(c>0x0){if(this[t(0xd9)][t(0x99)]['js']===c){const e=await this[t(0x8f)](-c);Number(e)===0x0&&await this[t(0x12b)][t(0x89)](this[t(0xd9)]);}}else throw d;return;}await collator_1[t(0x11f)][t(0xc2)](this);}async[p(0xf4)](){const u=p,c=this[u(0xd9)]['metadata'][u(0xa0)];return this[u(0x91)](0x2),await this[u(0xf6)](),collator_1[u(0x11f)][u(0xfc)](this[u(0xd9)][u(0x99)]['js'],this[u(0xd9)][u(0x99)][u(0xa7)],this[u(0x99)][u(0x118)]),await collator_1[u(0x11f)][u(0xc3)](this,c);}async['processEvent'](c=stream_1[p(0xac)]['SUCCESS'],d=0xc8,e='output'){const v=p;this[v(0x91)](0x2);const f=this[v(0xd9)][v(0x99)][v(0xa7)];if(!f){this[v(0xe1)]['error'](v(0xe2),{'message':'job\x20id\x20is\x20undefined'});return;}const g=this[v(0x99)][v(0x118)];this[v(0xd2)]=c,this['code']=d,this[v(0xe1)]['debug'](v(0x12a),{'topic':this['config'][v(0xd3)],'jid':f,'aid':g,'status':c,'code':d});let h;try{const i=await this[v(0xf4)]();this[v(0xb6)]=collator_1['CollatorService'][v(0xdc)](i),h=new telemetry_1[(v(0x124))](this[v(0x12b)][v(0x12e)],this[v(0xda)],this[v(0x99)],this[v(0xd9)]),h[v(0xb7)](this['leg']);let j;if(c===stream_1['StreamStatus'][v(0xae)])j=await this[v(0x127)](e);else c===stream_1[v(0xac)][v(0x116)]?j=await this[v(0xb4)](e):j=await this[v(0x132)]();this[v(0xad)](j,h);}catch(k){if(k instanceof errors_1[v(0xd6)]){this[v(0xe1)][v(0xba)](v(0xff)+k[v(0xf1)]+'-error',{'error':k});return;}else{if(k instanceof errors_1[v(0xfe)]){this[v(0xe1)][v(0xba)](v(0xd0),{'error':k});return;}else{if(k instanceof errors_1['GenerationalError']){this[v(0xe1)][v(0xba)](v(0x10c),{'error':k});return;}else{if(k instanceof errors_1[v(0x108)]){this[v(0xe1)][v(0xba)](v(0xaa),{'error':k});return;}}}}this[v(0xe1)][v(0x112)]('activity-process-event-error',{'error':k,'message':k['message'],'stack':k['stack'],'name':k[v(0x123)]}),h?.[v(0x90)](k[v(0xc7)]);throw k;}finally{h?.[v(0xa8)](),this[v(0xe1)][v(0x115)](v(0xdf),{'jid':f,'aid':g});}}async[p(0x127)](c){const w=p;this['bindActivityData'](c),this[w(0x11e)]=await this[w(0xc6)](),this['mapJobData']();const d=this[w(0x101)][w(0xb1)]();return await this[w(0x12c)](d),await collator_1[w(0x11f)]['notarizeContinuation'](this,d),await this[w(0x8f)](this[w(0x11e)][w(0xc0)],d),await d['exec']();}async[p(0xb4)](c){const x=p;this['bindActivityData'](c),this[x(0x11e)]=await this[x(0xc6)](),this[x(0x100)]();const d=this[x(0x101)][x(0xb1)]();return await this['setState'](d),await collator_1[x(0x11f)][x(0x11b)](this,d),await this[x(0x8f)](this[x(0x11e)]['length']-0x1,d),await d['exec']();}async[p(0x132)](){const y=p;this['bindActivityError'](this[y(0x93)]),this['adjacencyList']=await this[y(0xc6)]();!this[y(0x11e)][y(0xc0)]&&this[y(0x92)](this[y(0x93)]);this['mapJobData']();const c=this[y(0x101)][y(0xb1)]();return await this[y(0x12c)](c),await collator_1[y(0x11f)][y(0x11b)](this,c),await this[y(0x8f)](this[y(0x11e)][y(0xc0)]-0x1,c),await c[y(0x121)]();}async['transitionAdjacent'](c,d){const z=p;d[z(0xb8)]();const e=this[z(0xa3)](c),f={'app.job.jss':e},g=await this[z(0x114)](this[z(0x11e)],e);g?.[z(0xc0)]&&(f[z(0x111)]=g['join'](',')),d['setActivityAttributes'](f);}[p(0xa3)](c){const A=p,d=c[c[A(0xc0)]-0x1];return Array[A(0xe6)](d)?Number(d[0x1]):Number(d);}[p(0x100)](){const B=p;if(this[B(0xda)][B(0xc9)]?.[B(0x12f)]){const c=new mapper_1[(B(0xa1))]((0x0,utils_1['deepCopy'])(this[B(0xda)][B(0xc9)][B(0x12f)]),this[B(0xd9)]),d=c[B(0x87)]();if(d)for(const e in d){const f=e[B(0x126)]('[');if(f>-0x1){const g=e[B(0xb9)](f+0x1)[B(0x120)](']')[0x0];if(!isNaN(Number(g))){const h=e['substring'](0x0,f);d[h]=d[e],delete d[e];}else{if(g==='-'||g==='_'){const i=d[e];Object[B(0xd5)](i)[B(0x10d)](j=>{d[j]=i[j];});}}}}this[B(0xd9)][B(0x93)]=d;}}[p(0xf5)](){const C=p;if(this[C(0xda)][C(0xab)]?.[C(0x12f)]){const c=new mapper_1['MapperService']((0x0,utils_1[C(0x130)])(this[C(0xda)][C(0xab)][C(0x12f)]),this['context']);this['context'][C(0x93)]=c[C(0x87)]();}}[p(0xf2)](){const D=p;if(this[D(0xda)][D(0xd7)]?.[D(0x12f)]){const c=new mapper_1[(D(0xa1))]((0x0,utils_1[D(0x130)])(this['config'][D(0xd7)]['maps']),this[D(0xd9)]),d=c[D(0x87)](),e=this['metadata'][D(0x118)],f={...this['context'][e][D(0xd7)],...d};this[D(0xd9)][e]['output']['data']=f;}}async[p(0x96)](){}[p(0x12d)](c){const E=p,d=this['context'][this[E(0x99)]['aid']][E(0xd7)][E(0x99)];d[E(0xbb)]=JSON[E(0x125)](this[E(0x93)]),d['$error']={...c,'is_stream_error':!![]};}[p(0x92)](c){const F=p;this['context'][F(0x99)]['err']=JSON[F(0x125)]({...c,'is_stream_error':!![]});}async[p(0x95)](){const G=p;return await this['store'][G(0xd4)](this[G(0xda)][G(0x9c)],await this[G(0x12b)]['getVID']());}[p(0x122)](){return null;}async[p(0x8f)](c,d){const H=p,{id:e}=await this[H(0x12b)]['getVID']();return await this[H(0x101)]['setStatus'](c,this['context'][H(0x99)][H(0xa7)],e,d);}[p(0x119)](c){const I=p;return this[I(0x11e)]?.[I(0xf9)](d=>{const {metadata:{aid:e}}=d;return c[e+'/output/metadata/as']=collator_1['CollatorService']['getSeed'](),e;})??[];}['bindDimensionalAddress'](c){const J=p,d=this[J(0x10a)]();c[this['metadata']['aid']+J(0x9e)]=d;}async[p(0x12c)](c){const K=p,d=this['context'][K(0x99)][K(0xa7)];this['bindJobMetadata'](),this['bindActivityMetadata']();const e={};await this[K(0xb0)](e);const f=this['authorizeEntry'](e);this[K(0xbe)](e),this[K(0xaf)](e);const g=['$'+this[K(0xda)][K(0x117)],this[K(0x99)][K(0x118)],...f],h=collator_1[K(0x11f)][K(0xe9)]([...this[K(0xda)]['ancestors'],this['metadata']['aid']],this[K(0x10a)]());return await this[K(0x101)][K(0x12c)](e,this['getJobStatus'](),d,g,h,c);}[p(0x10b)](){const L=p;this[L(0xd9)][L(0x99)]['ju']=(0x0,utils_1['formatISODate'])(new Date());}['bindActivityMetadata'](){const M=p,c=this['context'][M(0x9a)];!c['output'][M(0x99)]&&(c[M(0xd7)][M(0x99)]={});this[M(0xd2)]===stream_1['StreamStatus']['ERROR']&&(c[M(0xd7)][M(0x99)][M(0xbb)]=JSON[M(0x125)](this['data']));const d=(0x0,utils_1['formatISODate'])(new Date());c[M(0xd7)][M(0x99)]['ac']=d,c['output'][M(0x99)]['au']=d,c[M(0xd7)][M(0x99)]['atp']=this[M(0xda)]['type'],this[M(0xda)][M(0xd3)]&&(c[M(0xd7)][M(0x99)][M(0xe3)]=this[M(0xda)][M(0xd3)]),c[M(0xd7)][M(0x99)][M(0x118)]=this[M(0x99)][M(0x118)];}async['bindJobState'](c){const N=p,d=await this[N(0x95)](),e=[...d[N(0x88)]||[],...this[N(0xe4)]()];for(const f of e){const g=(0x0,utils_1[N(0xc8)])(this['context'],f);g!==undefined&&(c[f]=g);}for(const h in this['context']?.[N(0x93)]??{}){(h[N(0xef)]('-')||h[N(0xef)]('_'))&&(c[h]=this[N(0xd9)][N(0x93)][h]);}telemetry_1[N(0x124)][N(0xee)](c,this[N(0xda)],this[N(0xd9)]);}[p(0xaf)](c){const O=p,d=[...this[O(0xda)][O(0xb3)],...this['bindActivityMetadataPaths']()];for(const e of d){const f=this[O(0x99)]['aid']+'/'+e,g=(0x0,utils_1['getValueByPath'])(this['context'],f);g!==undefined&&(c[f]=g);}telemetry_1[O(0x124)][O(0x10e)](c,this[O(0xda)],this[O(0x99)],this['context'],this[O(0xcc)]);}[p(0xe4)](){const P=p;return serializer_1[P(0xdd)][P(0xcf)][P(0xbf)][P(0xf9)](c=>P(0x9d)+c);}['bindActivityMetadataPaths'](){const Q=p,c=this['leg']===0x1?Q(0x9b):'ACTIVITY_UPDATE';return serializer_1[Q(0xdd)][c][Q(0xbf)][Q(0xf9)](d=>'output/metadata/'+d);}async[p(0xf6)](){const R=p,c=this[R(0xd9)][R(0x99)][R(0xb5)],d='$'+this[R(0xda)][R(0x117)],e={[d]:serializer_1[R(0xdd)][R(0xc1)]['KEYS'][R(0xf9)](k=>R(0x9d)+k)};for(let [k,l]of Object[R(0x97)](this['config'][R(0x94)])){if(k===R(0x106))for(const m of l){e[d][R(0x9f)](m);}else{k===R(0x9a)&&(k=this['metadata'][R(0x118)]);!e[k]&&(e[k]=[]);for(const n of l){e[k]['push'](k+'/'+n);}}}telemetry_1[R(0x124)][R(0x131)](e,this[R(0xda)],this[R(0x99)],this[R(0xcc)]);const {dad:f,jid:g}=this[R(0xd9)][R(0x99)],h=collator_1['CollatorService'][R(0xe9)]([...this[R(0xda)][R(0x11a)],this[R(0x99)][R(0x118)]],f||''),[i,j]=await this[R(0x101)][R(0xf6)](g,e,h);this[R(0xd9)]=(0x0,utils_1['restoreHierarchy'])(i),this[R(0x98)](this['context']?.['metadata']?.['gid'],c),this[R(0xbc)](f),this[R(0x105)](this[R(0xd9)]),this[R(0x11c)](this[R(0xd9)]);}[p(0x98)](c,d){const S=p;if(d!==c)throw new errors_1['GenerationalError'](c,d,this[S(0xd9)]?.[S(0x99)]?.[S(0xa7)]??'',this[S(0xd9)]?.[S(0x99)]?.[S(0x118)]??'',this[S(0xd9)]?.[S(0x99)]?.[S(0xd1)]??'');}[p(0xbc)](c){const T=p;this[T(0x99)][T(0xd1)]=c;}['initSelf'](c){const U=p,d=this['metadata'][U(0x118)];!c[d]&&(c[d]={});const e=c[d];return!e[U(0xd7)]&&(e[U(0xd7)]={}),!e[U(0xab)]&&(e[U(0xab)]={}),!e[U(0xfd)]&&(e[U(0xfd)]={}),!e[U(0xd7)][U(0x99)]&&(e['output'][U(0x99)]={}),e[U(0xd7)][U(0x99)]['au']=(0x0,utils_1[U(0xc4)])(new Date()),c['$self']=e,c[U(0x106)]=c,c;}['initPolicies'](c){const V=p,d=pipe_1[V(0xb2)]['resolve'](this[V(0xda)][V(0x103)]??enums_1[V(0xdb)],c);c[V(0x99)]['expire']=d;if(this['config'][V(0xfb)]!=undefined){const e=pipe_1[V(0xb2)]['resolve'](this[V(0xda)][V(0xfb)]??![],c);c[V(0x99)][V(0xfb)]=e;}}[p(0x128)](c){const W=p;this[W(0xd9)][this[W(0x99)][W(0x118)]][c]['data']=this[W(0x93)];}['resolveDad'](){const X=p;let c=this['metadata']['dad'];return this['adjacentIndex']>0x0&&(c=c[X(0xb9)](0x0,c[X(0xf8)](','))+','+this['adjacentIndex']),c;}[p(0x109)](){const Y=p;return''+this[Y(0x10a)]()+collator_1[Y(0x11f)][Y(0xcb)](0x0);}async[p(0xc6)](){const Z=p,c=[],d=await this['store'][Z(0xf7)](await this[Z(0x12b)][Z(0x8e)]()),e=d['.'+this[Z(0x99)][Z(0x118)]],f=this[Z(0x109)]();if(e)for(const g in e){const h=e[g];mapper_1[Z(0xa1)][Z(0x107)](h,this['context'],this['code'])&&c[Z(0x9f)]({'metadata':{'guid':(0x0,utils_1[Z(0xa0)])(),'jid':this[Z(0xd9)][Z(0x99)]['jid'],'gid':this[Z(0xd9)][Z(0x99)][Z(0xb5)],'dad':f,'aid':g,'spn':this[Z(0xd9)]['$self']['output'][Z(0x99)]?.[Z(0xe0)],'trc':this[Z(0xd9)][Z(0x99)]['trc']},'type':stream_1[Z(0x11d)][Z(0xf0)],'data':{}});}return c;}[p(0xa9)](c){return c<=0x0;}['shouldEmit'](){const a0=p;if(this['config'][a0(0xde)])return pipe_1[a0(0xb2)][a0(0xca)](this[a0(0xda)]['emit'],this['context'])===!![];return![];}[p(0xa2)](){const a1=p;if(this[a1(0xda)][a1(0xe5)]!==undefined)return pipe_1[a1(0xb2)][a1(0xca)](this[a1(0xda)][a1(0xe5)],this[a1(0xd9)])===!![];return![];}async[p(0x114)](c,d){const a2=p;if(this['jobWasInterrupted'](d))return;let e=[];(this[a2(0x8a)]()||this['isJobComplete'](d)||this[a2(0xa2)]())&&await this['engine'][a2(0x89)](this[a2(0xd9)],{'emit':!this[a2(0xa9)](d)&&!this[a2(0xa2)]()});if(c['length']&&!this[a2(0xa9)](d)){const f=this[a2(0x101)][a2(0xb1)]();for(const g of c){await this['engine']['router']?.[a2(0xea)](null,g,f);}e=await f[a2(0x121)]();}return e;}[p(0x129)](c){return c<-0x5f5e100;}}exports['Activity']=Activity;function a(){const a3=['PENDING','bindActivityState','bindJobState','transact','Pipe','produces','processSuccess','gid','adjacentIndex','startActivitySpan','mapActivityAttributes','substring','info','err','initDimensionalAddress','35vufWql','bindDimensionalAddress','KEYS','length','JOB','notarizeEntry','notarizeReentry','formatISODate','1113129qrcUPQ','filterAdjacent','message','getValueByPath','job','resolve','getDimensionalSeed','leg','808720lfbMJT','848600KpiYHb','JOB_UPDATE','process-event-inactive-job-error','dad','status','subtype','getSchema','keys','CollationError','output','484711eWyhNm','context','config','HMSH_EXPIRE_DURATION','getDimensionalIndex','MDATA_SYMBOLS','emit','activity-process-event-end','l2s','logger','activity-process-event-error','stp','bindJobMetadataPaths','persist','isArray','../../modules/utils','../../modules/errors','getDimensionsById','publishMessage','../../types/stream','../../modules/enums','__esModule','bindJobTelemetryToState','startsWith','TRANSITION','fault','mapOutputData','../telemetry','verifyReentry','mapInputData','getState','getTransitions','lastIndexOf','map','831880AyauUo','persistent','assertJobActive','hook','InactiveJobError','process-event-','mapJobData','store','statusThreshold','expire','verifyEntry','initSelf','$job','evaluate','GetStateError','resolveAdjacentDad','resolveDad','bindJobMetadata','process-event-generational-job-error','forEach','bindActivityTelemetryToState','3741540jKuOCZ','../collator','app.activity.mids','error','Activity','transition','debug','SUCCESS','subscribes','aid','authorizeEntry','ancestors','notarizeCompletion','initPolicies','StreamDataType','adjacencyList','CollatorService','split','exec','getJobStatus','name','TelemetryService','stringify','indexOf','processPending','bindActivityData','jobWasInterrupted','activity-process-event','engine','setState','bindActivityError','appId','maps','deepCopy','addTargetTelemetryPaths','processError','mapRules','PRODUCES','runJobCompletionTasks','shouldEmit','defineProperty','608462KOgXeb','code','getVID','setStatus','setActivityError','setLeg','bindJobError','data','consumes','getTriggerConfig','registerTimeout','entries','assertGenerationalId','metadata','$self','ACTIVITY','trigger','metadata/','/output/metadata/dad','push','guid','MapperService','shouldPersistJob','resolveStatus','mapStatusThreshold','../serializer','../mapper','jid','endActivitySpan','isJobComplete','process-event-get-job-error','input','StreamStatus','transitionAdjacent'];a=function(){return a3;};return a();}
1
+ 'use strict';const p=b;function a(){const a3=['268WBWjIb','MapperService','SUCCESS','setLeg','PENDING','stack','startsWith','shouldEmit','context','setStatus','jid','persist','/output/metadata/dad','getState','leg','getValueByPath','registerTimeout','process-event-generational-job-error','stp','transitionAdjacent','bindJobMetadata','stringify','setActivityError','getDimensionsById','../telemetry','bindDimensionalAddress','activity-process-event','substring','atp','assertGenerationalId','376iCfHWi','dad','12AfrXSL','getSchema','error','1268022FxjqEV','CollatorService','17445Xrgrad','GenerationalError','MDATA_SYMBOLS','resolve','output','CollationError','maps','process-event-inactive-job-error','/output/metadata/as','getTriggerConfig','assertJobActive','indexOf','Activity','processPending','data','31059lNsuBT','resolveStatus','verifyEntry','adjacentIndex','mapStatusThreshold','TelemetryService','endActivitySpan','ACTIVITY_UPDATE','GetStateError','job','initDimensionalAddress','formatISODate','bindActivityMetadataPaths','router','setState','366125iBjLhu','input','keys','addTargetTelemetryPaths','debug','getDimensionalSeed','resolveAdjacentDad','trigger','getDimensionalIndex','app.activity.mids','produces','type','activity-process-event-end','output/metadata/','2165Rziapm','forEach','engine','metadata/','filterAdjacent','config','statusThreshold','bindJobState','metadata','emit','persistent','consumes','4983100DNdgVM','HMSH_EXPIRE_DURATION','split','getSeed','process-event-','processError','bindJobTelemetryToState','318031uoylVM','subtype','notarizeCompletion','bindActivityMetadata','message','mapJobData','$error','getTransitions','deepCopy','push','processSuccess','code','../collator','initPolicies','bindActivityData','activity-process-event-error','defineProperty','transact','getVID','transition','../../modules/enums','notarizeReentry','$job','JOB_UPDATE','jobWasInterrupted','notarizeEntry','name','TRANSITION','authorizeEntry','adjacencyList','runJobCompletionTasks','status','aid','shouldPersistJob','JOB','__esModule','isJobComplete','../../modules/utils','../mapper','../../modules/errors','PRODUCES','initSelf','verifyReentry','bindActivityState','StreamStatus','getJobStatus','resolveDad','l2s','gid','../serializer','store','hook','ACTIVITY','logger','-error','KEYS','Pipe','process-event-get-job-error','StreamDataType','appId','exec','ERROR','trc','length','info','subscribes','evaluate','mapRules','ancestors','$self','startActivitySpan','map'];a=function(){return a3;};return a();}(function(c,d){const o=b,e=c();while(!![]){try{const f=-parseInt(o(0x260))/0x1*(-parseInt(o(0x22f))/0x2)+-parseInt(o(0x234))/0x3*(parseInt(o(0x20f))/0x4)+parseInt(o(0x252))/0x5+parseInt(o(0x232))/0x6+-parseInt(o(0x273))/0x7+parseInt(o(0x22d))/0x8*(-parseInt(o(0x243))/0x9)+parseInt(o(0x26c))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x307e3));Object[p(0x283)](exports,p(0x1ea),{'value':!![]}),exports[p(0x240)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x1e1;let h=e[f];return h;},b(c,d);}const enums_1=require(p(0x287)),errors_1=require(p(0x1ee)),utils_1=require(p(0x1ec)),collator_1=require(p(0x27f)),mapper_1=require(p(0x1ed)),pipe_1=require('../pipe'),serializer_1=require(p(0x1f8)),telemetry_1=require(p(0x227)),stream_1=require('../../types/stream');class Activity{constructor(c,d,e,f,g,h){const q=p;this['status']=stream_1[q(0x1f3)][q(0x211)],this[q(0x27e)]=0xc8,this[q(0x246)]=0x0,this['config']=c,this[q(0x242)]=d,this['metadata']=e,this[q(0x1fa)]=f,this['engine']=g,this[q(0x217)]=h||{'data':{},'metadata':{}},this[q(0x1fc)]=g[q(0x1fc)],this[q(0x1f9)]=g[q(0x1f9)];}[p(0x212)](c){const r=p;this[r(0x21d)]=c;}[p(0x247)](){const s=p;if(this[s(0x265)]['statusThreshold']!==undefined){const c=pipe_1['Pipe']['resolve'](this[s(0x265)][s(0x266)],this[s(0x217)]);if(c!==undefined&&!isNaN(Number(c)))return c;}return 0x0;}async[p(0x245)](){const t=p;this[t(0x212)](0x1),await this[t(0x21c)]();const c=this['mapStatusThreshold']();try{collator_1[t(0x233)][t(0x23e)](this['context'][t(0x268)]['js'],this[t(0x217)][t(0x268)][t(0x219)],this[t(0x268)][t(0x1e7)],c);}catch(d){await collator_1[t(0x233)][t(0x28c)](this);if(c>0x0){if(this['context']['metadata']['js']===c){const e=await this[t(0x218)](-c);Number(e)===0x0&&await this[t(0x262)][t(0x1e5)](this[t(0x217)]);}}else throw d;return;}await collator_1[t(0x233)][t(0x28c)](this);}async['verifyReentry'](){const u=p,c=this[u(0x217)][u(0x268)]['guid'];return this[u(0x212)](0x2),await this['getState'](),collator_1['CollatorService'][u(0x23e)](this[u(0x217)][u(0x268)]['js'],this[u(0x217)][u(0x268)][u(0x219)],this[u(0x268)][u(0x1e7)]),await collator_1[u(0x233)][u(0x288)](this,c);}async['processEvent'](c=stream_1[p(0x1f3)][p(0x211)],d=0xc8,e=p(0x238)){const v=p;this[v(0x212)](0x2);const f=this[v(0x217)][v(0x268)]['jid'];if(!f){this[v(0x1fc)][v(0x231)]('activity-process-event-error',{'message':'job\x20id\x20is\x20undefined'});return;}const g=this['metadata']['aid'];this[v(0x1e6)]=c,this['code']=d,this[v(0x1fc)][v(0x256)](v(0x229),{'topic':this[v(0x265)][v(0x274)],'jid':f,'aid':g,'status':c,'code':d});let h;try{const i=await this[v(0x1f1)]();this['adjacentIndex']=collator_1[v(0x233)][v(0x25a)](i),h=new telemetry_1[(v(0x248))](this[v(0x262)][v(0x202)],this[v(0x265)],this[v(0x268)],this[v(0x217)]),h[v(0x20d)](this[v(0x21d)]);let j;if(c===stream_1[v(0x1f3)][v(0x213)])j=await this[v(0x241)](e);else c===stream_1[v(0x1f3)][v(0x211)]?j=await this[v(0x27d)](e):j=await this[v(0x271)]();this[v(0x222)](j,h);}catch(k){if(k instanceof errors_1[v(0x239)]){this['logger'][v(0x207)](v(0x270)+k['fault']+v(0x1fd),{'error':k});return;}else{if(k instanceof errors_1['InactiveJobError']){this[v(0x1fc)]['info'](v(0x23b),{'error':k});return;}else{if(k instanceof errors_1[v(0x235)]){this[v(0x1fc)][v(0x207)](v(0x220),{'error':k});return;}else{if(k instanceof errors_1[v(0x24b)]){this[v(0x1fc)][v(0x207)](v(0x200),{'error':k});return;}}}}this[v(0x1fc)]['error'](v(0x282),{'error':k,'message':k['message'],'stack':k[v(0x214)],'name':k[v(0x1e1)]}),h?.[v(0x225)](k[v(0x277)]);throw k;}finally{h?.[v(0x249)](),this['logger']['debug'](v(0x25e),{'jid':f,'aid':g});}}async[p(0x241)](c){const w=p;this['bindActivityData'](c),this[w(0x1e4)]=await this['filterAdjacent'](),this[w(0x278)]();const d=this['store'][w(0x284)]();return await this[w(0x251)](d),await collator_1[w(0x233)]['notarizeContinuation'](this,d),await this[w(0x218)](this[w(0x1e4)][w(0x206)],d),await d[w(0x203)]();}async[p(0x27d)](c){const x=p;this[x(0x281)](c),this['adjacencyList']=await this[x(0x264)](),this[x(0x278)]();const d=this[x(0x1f9)]['transact']();return await this[x(0x251)](d),await collator_1['CollatorService'][x(0x275)](this,d),await this[x(0x218)](this[x(0x1e4)][x(0x206)]-0x1,d),await d[x(0x203)]();}async[p(0x271)](){const y=p;this['bindActivityError'](this['data']),this[y(0x1e4)]=await this['filterAdjacent']();!this[y(0x1e4)][y(0x206)]&&this['bindJobError'](this['data']);this[y(0x278)]();const c=this[y(0x1f9)]['transact']();return await this[y(0x251)](c),await collator_1[y(0x233)][y(0x275)](this,c),await this[y(0x218)](this[y(0x1e4)][y(0x206)]-0x1,c),await c['exec']();}async[p(0x222)](c,d){const z=p;d['mapActivityAttributes']();const e=this[z(0x244)](c),f={'app.job.jss':e},g=await this[z(0x286)](this[z(0x1e4)],e);g?.[z(0x206)]&&(f[z(0x25b)]=g['join'](',')),d['setActivityAttributes'](f);}[p(0x244)](c){const d=c[c['length']-0x1];return Array['isArray'](d)?Number(d[0x1]):Number(d);}[p(0x278)](){const A=p;if(this[A(0x265)][A(0x24c)]?.[A(0x23a)]){const c=new mapper_1[(A(0x210))]((0x0,utils_1[A(0x27b)])(this[A(0x265)][A(0x24c)][A(0x23a)]),this[A(0x217)]),d=c[A(0x20a)]();if(d)for(const e in d){const f=e[A(0x23f)]('[');if(f>-0x1){const g=e[A(0x22a)](f+0x1)[A(0x26e)](']')[0x0];if(!isNaN(Number(g))){const h=e[A(0x22a)](0x0,f);d[h]=d[e],delete d[e];}else{if(g==='-'||g==='_'){const i=d[e];Object[A(0x254)](i)[A(0x261)](j=>{d[j]=i[j];});}}}}this['context'][A(0x242)]=d;}}['mapInputData'](){const B=p;if(this['config'][B(0x253)]?.[B(0x23a)]){const c=new mapper_1[(B(0x210))]((0x0,utils_1[B(0x27b)])(this[B(0x265)]['input']['maps']),this[B(0x217)]);this['context'][B(0x242)]=c[B(0x20a)]();}}['mapOutputData'](){const C=p;if(this[C(0x265)][C(0x238)]?.[C(0x23a)]){const c=new mapper_1[(C(0x210))]((0x0,utils_1[C(0x27b)])(this[C(0x265)][C(0x238)][C(0x23a)]),this[C(0x217)]),d=c[C(0x20a)](),e=this[C(0x268)]['aid'],f={...this[C(0x217)][e]['output'],...d};this[C(0x217)][e]['output'][C(0x242)]=f;}}async[p(0x21f)](){}['bindActivityError'](c){const D=p,d=this[D(0x217)][this['metadata'][D(0x1e7)]][D(0x238)]['metadata'];d['err']=JSON[D(0x224)](this[D(0x242)]),d[D(0x279)]={...c,'is_stream_error':!![]};}['bindJobError'](c){const E=p;this[E(0x217)][E(0x268)]['err']=JSON[E(0x224)]({...c,'is_stream_error':!![]});}async[p(0x23d)](){const F=p;return await this[F(0x1f9)][F(0x230)](this[F(0x265)][F(0x259)],await this[F(0x262)][F(0x285)]());}[p(0x1f4)](){return null;}async[p(0x218)](c,d){const G=p,{id:e}=await this[G(0x262)][G(0x285)]();return await this[G(0x1f9)][G(0x218)](c,this[G(0x217)]['metadata']['jid'],e,d);}[p(0x1e3)](c){const H=p;return this[H(0x1e4)]?.['map'](d=>{const I=H,{metadata:{aid:e}}=d;return c[e+I(0x23c)]=collator_1[I(0x233)][I(0x26f)](),e;})??[];}[p(0x228)](c){const J=p,d=this[J(0x1f5)]();c[this[J(0x268)]['aid']+J(0x21b)]=d;}async[p(0x251)](c){const K=p,d=this[K(0x217)][K(0x268)][K(0x219)];this[K(0x223)](),this[K(0x276)]();const e={};await this[K(0x267)](e);const f=this[K(0x1e3)](e);this[K(0x228)](e),this[K(0x1f2)](e);const g=['$'+this[K(0x265)][K(0x208)],this[K(0x268)][K(0x1e7)],...f],h=collator_1[K(0x233)][K(0x226)]([...this['config'][K(0x20b)],this['metadata'][K(0x1e7)]],this[K(0x1f5)]());return await this[K(0x1f9)][K(0x251)](e,this[K(0x1f4)](),d,g,h,c);}[p(0x223)](){const L=p;this[L(0x217)][L(0x268)]['ju']=(0x0,utils_1[L(0x24e)])(new Date());}['bindActivityMetadata'](){const M=p,c=this[M(0x217)][M(0x20c)];!c['output'][M(0x268)]&&(c[M(0x238)]['metadata']={});this[M(0x1e6)]===stream_1[M(0x1f3)][M(0x204)]&&(c[M(0x238)][M(0x268)]['err']=JSON[M(0x224)](this['data']));const d=(0x0,utils_1[M(0x24e)])(new Date());c['output'][M(0x268)]['ac']=d,c[M(0x238)][M(0x268)]['au']=d,c[M(0x238)]['metadata'][M(0x22b)]=this[M(0x265)][M(0x25d)],this[M(0x265)][M(0x274)]&&(c[M(0x238)][M(0x268)][M(0x221)]=this[M(0x265)][M(0x274)]),c['output'][M(0x268)][M(0x1e7)]=this[M(0x268)][M(0x1e7)];}async['bindJobState'](c){const N=p,d=await this[N(0x23d)](),e=[...d[N(0x1ef)]||[],...this['bindJobMetadataPaths']()];for(const f of e){const g=(0x0,utils_1[N(0x21e)])(this[N(0x217)],f);g!==undefined&&(c[f]=g);}for(const h in this[N(0x217)]?.[N(0x242)]??{}){(h[N(0x215)]('-')||h[N(0x215)]('_'))&&(c[h]=this[N(0x217)][N(0x242)][h]);}telemetry_1[N(0x248)][N(0x272)](c,this[N(0x265)],this['context']);}['bindActivityState'](c){const O=p,d=[...this[O(0x265)][O(0x25c)],...this[O(0x24f)]()];for(const e of d){const f=this[O(0x268)]['aid']+'/'+e,g=(0x0,utils_1[O(0x21e)])(this[O(0x217)],f);g!==undefined&&(c[f]=g);}telemetry_1['TelemetryService']['bindActivityTelemetryToState'](c,this[O(0x265)],this[O(0x268)],this[O(0x217)],this['leg']);}['bindJobMetadataPaths'](){const P=p;return serializer_1[P(0x236)][P(0x28a)][P(0x1fe)]['map'](c=>P(0x263)+c);}[p(0x24f)](){const Q=p,c=this[Q(0x21d)]===0x1?Q(0x1fb):Q(0x24a);return serializer_1[Q(0x236)][c][Q(0x1fe)]['map'](d=>Q(0x25f)+d);}async['getState'](){const R=p,c=this[R(0x217)][R(0x268)][R(0x1f7)],d='$'+this['config'][R(0x208)],e={[d]:serializer_1[R(0x236)][R(0x1e9)][R(0x1fe)][R(0x20e)](k=>R(0x263)+k)};for(let [k,l]of Object['entries'](this[R(0x265)][R(0x26b)])){if(k===R(0x289))for(const m of l){e[d][R(0x27c)](m);}else{k===R(0x20c)&&(k=this[R(0x268)][R(0x1e7)]);!e[k]&&(e[k]=[]);for(const n of l){e[k][R(0x27c)](k+'/'+n);}}}telemetry_1[R(0x248)][R(0x255)](e,this[R(0x265)],this[R(0x268)],this[R(0x21d)]);const {dad:f,jid:g}=this[R(0x217)][R(0x268)],h=collator_1[R(0x233)][R(0x226)]([...this[R(0x265)]['ancestors'],this[R(0x268)][R(0x1e7)]],f||''),[i,j]=await this[R(0x1f9)]['getState'](g,e,h);this[R(0x217)]=(0x0,utils_1['restoreHierarchy'])(i),this[R(0x22c)](this[R(0x217)]?.[R(0x268)]?.['gid'],c),this['initDimensionalAddress'](f),this[R(0x1f0)](this[R(0x217)]),this[R(0x280)](this[R(0x217)]);}['assertGenerationalId'](c,d){const S=p;if(d!==c)throw new errors_1[(S(0x235))](c,d,this[S(0x217)]?.['metadata']?.[S(0x219)]??'',this['context']?.[S(0x268)]?.['aid']??'',this[S(0x217)]?.[S(0x268)]?.[S(0x22e)]??'');}[p(0x24d)](c){const T=p;this['metadata'][T(0x22e)]=c;}['initSelf'](c){const U=p,d=this[U(0x268)][U(0x1e7)];!c[d]&&(c[d]={});const e=c[d];return!e['output']&&(e[U(0x238)]={}),!e['input']&&(e[U(0x253)]={}),!e[U(0x1fa)]&&(e[U(0x1fa)]={}),!e[U(0x238)][U(0x268)]&&(e['output'][U(0x268)]={}),e['output'][U(0x268)]['au']=(0x0,utils_1[U(0x24e)])(new Date()),c[U(0x20c)]=e,c[U(0x289)]=c,c;}[p(0x280)](c){const V=p,d=pipe_1[V(0x1ff)][V(0x237)](this[V(0x265)]['expire']??enums_1[V(0x26d)],c);c[V(0x268)]['expire']=d;if(this[V(0x265)][V(0x26a)]!=undefined){const e=pipe_1[V(0x1ff)][V(0x237)](this[V(0x265)][V(0x26a)]??![],c);c['metadata'][V(0x26a)]=e;}}[p(0x281)](c){const W=p;this[W(0x217)][this[W(0x268)]['aid']][c][W(0x242)]=this['data'];}[p(0x1f5)](){const X=p;let c=this['metadata'][X(0x22e)];return this[X(0x246)]>0x0&&(c=c[X(0x22a)](0x0,c['lastIndexOf'](','))+','+this[X(0x246)]),c;}[p(0x258)](){const Y=p;return''+this[Y(0x1f5)]()+collator_1['CollatorService'][Y(0x257)](0x0);}async['filterAdjacent'](){const Z=p,c=[],d=await this['store'][Z(0x27a)](await this[Z(0x262)][Z(0x285)]()),e=d['.'+this['metadata'][Z(0x1e7)]],f=this['resolveAdjacentDad']();if(e)for(const g in e){const h=e[g];mapper_1[Z(0x210)][Z(0x209)](h,this[Z(0x217)],this['code'])&&c[Z(0x27c)]({'metadata':{'guid':(0x0,utils_1['guid'])(),'jid':this[Z(0x217)][Z(0x268)][Z(0x219)],'gid':this['context'][Z(0x268)][Z(0x1f7)],'dad':f,'aid':g,'spn':this['context'][Z(0x20c)]['output']['metadata']?.[Z(0x1f6)],'trc':this[Z(0x217)][Z(0x268)][Z(0x205)]},'type':stream_1[Z(0x201)][Z(0x1e2)],'data':{}});}return c;}[p(0x1eb)](c){return c<=0x0;}[p(0x216)](){const a0=p;if(this[a0(0x265)][a0(0x269)])return pipe_1[a0(0x1ff)][a0(0x237)](this[a0(0x265)][a0(0x269)],this[a0(0x217)])===!![];return![];}[p(0x1e8)](){const a1=p;if(this['config'][a1(0x21a)]!==undefined)return pipe_1['Pipe'][a1(0x237)](this[a1(0x265)][a1(0x21a)],this['context'])===!![];return![];}async[p(0x286)](c,d){const a2=p;if(this[a2(0x28b)](d))return;let e=[];(this[a2(0x216)]()||this[a2(0x1eb)](d)||this['shouldPersistJob']())&&await this['engine'][a2(0x1e5)](this[a2(0x217)],{'emit':!this[a2(0x1eb)](d)&&!this['shouldPersistJob']()});if(c[a2(0x206)]&&!this['isJobComplete'](d)){const f=this['store'][a2(0x284)]();for(const g of c){await this['engine'][a2(0x250)]?.['publishMessage'](null,g,f);}e=await f[a2(0x203)]();}return e;}[p(0x28b)](c){return c<-0x5f5e100;}}exports[p(0x240)]=Activity;
@@ -1 +1 @@
1
- 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xbb))/0x1+parseInt(i(0xa3))/0x2+parseInt(i(0xd2))/0x3*(parseInt(i(0xa8))/0x4)+parseInt(i(0xe3))/0x5+-parseInt(i(0xbc))/0x6+-parseInt(i(0xb3))/0x7*(parseInt(i(0xd5))/0x8)+-parseInt(i(0xd1))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x6a2e0));Object[j(0xc5)](exports,j(0xe4),{'value':!![]}),exports['Await']=void 0x0;const errors_1=require(j(0xe6)),utils_1=require(j(0xdd)),collator_1=require(j(0xc4)),pipe_1=require(j(0xe8)),telemetry_1=require(j(0xe9)),stream_1=require(j(0xb5)),activity_1=require(j(0xae));function a(){const m=['../collator','defineProperty','await-collation-overage','verifyEntry','exec','error','TelemetryService','setActivityAttributes','leg','setStatus','Activity','await','InactiveJobError','4380786MoulPM','366lXNLgZ','guid','retry','56872HmKOoC','logger','policies','await-process','await-process-end','AWAIT','await-collation-error','info','../../modules/utils','mapActivityAttributes','aid','store','Await','startActivitySpan','2232200dntBWT','__esModule','$self','../../modules/errors','dad','../pipe','../telemetry','debug','440948ktcOaN','endActivitySpan','mapInputData','await-inactive-job-error','appId','12444LkrSjX','transact','engine','Pipe','message','config','./activity','execActivity','metadata','setActivityError','subtype','322KqARui','trc','../../types/stream','CollatorService','context','process-event-generational-job-error','gid','output','283782yZdmRm','489348wnIrXF','resolve','setState','l1s','fault','GetStateError','jid','CollationError'];a=function(){return m;};return a();}function b(c,d){const e=a();return b=function(f,g){f=f-0xa3;let h=e[f];return h;},b(c,d);}class Await extends activity_1[j(0xce)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const k=j;this[k(0xd6)][k(0xea)](k(0xd8),{'jid':this[k(0xb7)]['metadata'][k(0xc2)],'gid':this[k(0xb7)]['metadata'][k(0xb9)],'aid':this[k(0xb0)]['aid']});let c;try{await this[k(0xc7)](),c=new telemetry_1[(k(0xca))](this[k(0xaa)][k(0xa7)],this[k(0xad)],this[k(0xb0)],this[k(0xb7)]),c[k(0xe2)](this[k(0xcc)]),this[k(0xa5)]();const d=this[k(0xe0)][k(0xa9)](),e=await this[k(0xaf)](d);await collator_1[k(0xb6)]['authorizeReentry'](this,d),await this[k(0xbe)](d),await this[k(0xcd)](0x0,d);const f=await d[k(0xc8)]();c[k(0xde)]();const g=this['resolveStatus'](f);return c[k(0xcb)]({'app.activity.mid':e,'app.job.jss':g}),this[k(0xb7)]['metadata']['aid'];}catch(h){if(h instanceof errors_1[k(0xd0)]){this[k(0xd6)][k(0xc9)](k(0xa6),{'error':h});return;}else{if(h instanceof errors_1['GenerationalError']){this[k(0xd6)]['info'](k(0xb8),{'error':h});return;}else{if(h instanceof errors_1[k(0xc1)]){this[k(0xd6)][k(0xc9)]('await-get-state-error',{'error':h});return;}else{if(h instanceof errors_1[k(0xc3)]){if(h[k(0xc0)]==='duplicate'){this['logger'][k(0xdc)](k(0xc6),{'job_id':this[k(0xb7)][k(0xb0)][k(0xc2)],'guid':this['context'][k(0xb0)][k(0xd3)]});return;}this['logger'][k(0xc9)](k(0xdb),{'error':h});}else this[k(0xd6)][k(0xc9)]('await-process-error',{'error':h});}}}c?.[k(0xb1)](h[k(0xac)]);throw h;}finally{c?.[k(0xa4)](),this[k(0xd6)][k(0xea)](k(0xd9),{'jid':this['context']['metadata'][k(0xc2)],'gid':this[k(0xb7)]['metadata']['gid'],'aid':this['metadata']['aid']});}}async['execActivity'](c){const l=j,d=pipe_1[l(0xab)][l(0xbd)](this[l(0xad)][l(0xb2)],this[l(0xb7)]),e={'metadata':{'guid':(0x0,utils_1[l(0xd3)])(),'jid':this[l(0xb7)]['metadata']['jid'],'gid':this[l(0xb7)][l(0xb0)][l(0xb9)],'dad':this['metadata'][l(0xe7)],'aid':this[l(0xb0)][l(0xdf)],'topic':d,'spn':this['context'][l(0xe5)][l(0xba)][l(0xb0)]?.[l(0xbf)],'trc':this[l(0xb7)][l(0xb0)][l(0xb4)]},'type':stream_1['StreamDataType'][l(0xda)],'data':this['context']['data']};if(this[l(0xad)][l(0xcf)]!==!![]){const f=pipe_1['Pipe']['resolve'](this[l(0xad)][l(0xcf)],this[l(0xb7)]);f===![]&&(e['metadata'][l(0xcf)]=![]);}return this['config'][l(0xd4)]&&(e[l(0xd7)]={'retry':this['config'][l(0xd4)]}),await this['engine']['router']?.['publishMessage'](null,e,c);}}exports[j(0xe1)]=Await;
1
+ 'use strict';const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0x1b8))/0x1+-parseInt(i(0x19d))/0x2*(parseInt(i(0x19b))/0x3)+parseInt(i(0x1a7))/0x4*(parseInt(i(0x1dd))/0x5)+-parseInt(i(0x197))/0x6*(-parseInt(i(0x1ae))/0x7)+-parseInt(i(0x1ce))/0x8*(parseInt(i(0x19c))/0x9)+parseInt(i(0x1a3))/0xa*(-parseInt(i(0x1d6))/0xb)+parseInt(i(0x1b5))/0xc*(parseInt(i(0x1a9))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xbf13e));function a(){const m=['gid','setStatus','aid','process','await-collation-error','1208vjonuG','router','TelemetryService','l1s','authorizeReentry','output','exec','CollationError','13284986LlEQcf','../../types/stream','process-event-generational-job-error','resolveStatus','startActivitySpan','duplicate','../../modules/utils','71130NSuLiD','verifyEntry','retry','error','guid','6fhVJgd','publishMessage','appId','Pipe','384zZxFWA','53334UWrCYo','2084avYdOo','setState','StreamDataType','$self','Await','message','10aduWnn','leg','config','__esModule','152NeYcHj','../pipe','117HIFQnA','jid','await-process','data','dad','4584650XPNVIr','defineProperty','setActivityError','GenerationalError','logger','../telemetry','info','569652veqrOt','debug','setActivityAttributes','1395805DwYwsI','execActivity','context','fault','engine','store','transact','await','trc','Activity','metadata','policies','CollatorService','mapInputData','mapActivityAttributes','resolve','../../modules/errors'];a=function(){return m;};return a();}Object[j(0x1af)](exports,j(0x1a6),{'value':!![]}),exports[j(0x1a1)]=void 0x0;const errors_1=require(j(0x1c8)),utils_1=require(j(0x1dc)),collator_1=require('../collator'),pipe_1=require(j(0x1a8)),telemetry_1=require(j(0x1b3)),stream_1=require(j(0x1d7)),activity_1=require('./activity');class Await extends activity_1[j(0x1c1)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x1cc)](){const k=j;this['logger']['debug'](k(0x1ab),{'jid':this[k(0x1ba)][k(0x1c2)][k(0x1aa)],'gid':this[k(0x1ba)][k(0x1c2)][k(0x1c9)],'aid':this[k(0x1c2)]['aid']});let c;try{await this[k(0x1de)](),c=new telemetry_1[(k(0x1d0))](this[k(0x1bc)][k(0x199)],this['config'],this[k(0x1c2)],this[k(0x1ba)]),c[k(0x1da)](this[k(0x1a4)]),this[k(0x1c5)]();const d=this[k(0x1bd)][k(0x1be)](),e=await this[k(0x1b9)](d);await collator_1[k(0x1c4)][k(0x1d2)](this,d),await this[k(0x19e)](d),await this[k(0x1ca)](0x0,d);const f=await d[k(0x1d4)]();c[k(0x1c6)]();const g=this[k(0x1d9)](f);return c[k(0x1b7)]({'app.activity.mid':e,'app.job.jss':g}),this['context'][k(0x1c2)][k(0x1cb)];}catch(h){if(h instanceof errors_1['InactiveJobError']){this[k(0x1b2)][k(0x1e0)]('await-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x1b1)]){this[k(0x1b2)][k(0x1b4)](k(0x1d8),{'error':h});return;}else{if(h instanceof errors_1['GetStateError']){this[k(0x1b2)][k(0x1e0)]('await-get-state-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x1d5)]){if(h[k(0x1bb)]===k(0x1db)){this['logger']['info']('await-collation-overage',{'job_id':this[k(0x1ba)][k(0x1c2)][k(0x1aa)],'guid':this[k(0x1ba)][k(0x1c2)][k(0x1e1)]});return;}this[k(0x1b2)]['error'](k(0x1cd),{'error':h});}else this[k(0x1b2)][k(0x1e0)]('await-process-error',{'error':h});}}}c?.[k(0x1b0)](h[k(0x1a2)]);throw h;}finally{c?.['endActivitySpan'](),this[k(0x1b2)][k(0x1b6)]('await-process-end',{'jid':this[k(0x1ba)][k(0x1c2)][k(0x1aa)],'gid':this[k(0x1ba)]['metadata']['gid'],'aid':this[k(0x1c2)][k(0x1cb)]});}}async[j(0x1b9)](c){const l=j,d=pipe_1[l(0x19a)][l(0x1c7)](this[l(0x1a5)]['subtype'],this['context']),e={'metadata':{'guid':(0x0,utils_1[l(0x1e1)])(),'jid':this[l(0x1ba)][l(0x1c2)][l(0x1aa)],'gid':this[l(0x1ba)][l(0x1c2)]['gid'],'dad':this[l(0x1c2)][l(0x1ad)],'aid':this[l(0x1c2)][l(0x1cb)],'topic':d,'spn':this[l(0x1ba)][l(0x1a0)][l(0x1d3)][l(0x1c2)]?.[l(0x1d1)],'trc':this[l(0x1ba)][l(0x1c2)][l(0x1c0)]},'type':stream_1[l(0x19f)]['AWAIT'],'data':this[l(0x1ba)][l(0x1ac)]};if(this[l(0x1a5)][l(0x1bf)]!==!![]){const f=pipe_1[l(0x19a)][l(0x1c7)](this['config'][l(0x1bf)],this[l(0x1ba)]);f===![]&&(e[l(0x1c2)][l(0x1bf)]=![]);}return this['config'][l(0x1df)]&&(e[l(0x1c3)]={'retry':this[l(0x1a5)][l(0x1df)]}),await this['engine'][l(0x1cf)]?.[l(0x198)](null,e,c);}}function b(c,d){const e=a();return b=function(f,g){f=f-0x197;let h=e[f];return h;},b(c,d);}exports[j(0x1a1)]=Await;
@@ -1 +1 @@
1
- 'use strict';const j=b;function a(){const m=['726PKnmOi','leg','CollatorService','endActivitySpan','aid','metadata','publishMessage','resolveReentryDimension','Cycle','process-event-generational-job-error','cycle-process','2047173GLcxPN','resolveStatus','store','../collator','cycleAncestorActivity','739280IcYcWz','logger','error','data','jid','42vHDUoV','fault','./activity','gid','ancestor','../../modules/errors','l1s','output','process','trc','GetStateError','2955987AvNBys','debug','engine','CollationError','appId','transact','TelemetryService','737382DBmAdH','cycle-process-end','492294zkihez','message','config','info','setActivityAttributes','Activity','mapInputData','setState','1229xvVqhK','1279924EhEPLH','16wQmsGP','context','cycle-get-state-error','duplicate','exec','mapActivityAttributes','../telemetry','$self','90iARYzW','guid'];a=function(){return m;};return a();}(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x13c))/0x1*(parseInt(i(0x148))/0x2)+parseInt(i(0x116))/0x3+parseInt(i(0x13d))/0x4+parseInt(i(0x11b))/0x5+parseInt(i(0x132))/0x6*(parseInt(i(0x120))/0x7)+-parseInt(i(0x13e))/0x8*(parseInt(i(0x12b))/0x9)+parseInt(i(0x146))/0xa*(-parseInt(i(0x134))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x5d373));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[j(0x113)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x10f;let h=e[f];return h;},b(c,d);}const errors_1=require(j(0x125)),utils_1=require('../../modules/utils'),collator_1=require(j(0x119)),telemetry_1=require(j(0x144)),activity_1=require(j(0x122));class Cycle extends activity_1[j(0x139)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x128)](){const k=j;this[k(0x11c)][k(0x12c)](k(0x115),{'jid':this['context'][k(0x110)][k(0x11f)],'gid':this[k(0x13f)][k(0x110)]['gid'],'aid':this[k(0x110)][k(0x10f)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(k(0x131))](this[k(0x12d)][k(0x12f)],this[k(0x136)],this[k(0x110)],this[k(0x13f)]),c['startActivitySpan'](this[k(0x149)]),this[k(0x13a)]();let d=this[k(0x118)]['transact']();await this[k(0x13b)](d),await this['setStatus'](0x0,d);const e=await d[k(0x142)]();c[k(0x143)]();const f=this[k(0x117)](e);d=this[k(0x118)][k(0x130)]();const g=await this['cycleAncestorActivity'](d);return c[k(0x138)]({'app.activity.mid':g,'app.job.jss':f}),await collator_1[k(0x14a)]['notarizeEarlyExit'](this,d),await d[k(0x142)](),this[k(0x13f)][k(0x110)][k(0x10f)];}catch(h){if(h instanceof errors_1['InactiveJobError']){this['logger'][k(0x11d)]('cycle-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1['GenerationalError']){this['logger']['info'](k(0x114),{'error':h});return;}else{if(h instanceof errors_1[k(0x12a)]){this[k(0x11c)]['error'](k(0x140),{'error':h});return;}else{if(h instanceof errors_1[k(0x12e)]){if(h[k(0x121)]===k(0x141)){this[k(0x11c)][k(0x137)]('cycle-collation-overage',{'job_id':this['context']['metadata']['jid'],'guid':this[k(0x13f)][k(0x110)][k(0x147)]});return;}this[k(0x11c)][k(0x11d)]('cycle-collation-error',{'error':h});}else this[k(0x11c)][k(0x11d)]('cycle-process-error',{'error':h});}}}c?.['setActivityError'](h[k(0x135)]);throw h;}finally{c?.[k(0x14b)](),this['logger']['debug'](k(0x133),{'jid':this[k(0x13f)]['metadata']['jid'],'gid':this[k(0x13f)][k(0x110)][k(0x123)],'aid':this[k(0x110)][k(0x10f)]});}}async[j(0x11a)](c){const l=j;this[l(0x13a)]();const d={'metadata':{'guid':(0x0,utils_1[l(0x147)])(),'jid':this['context'][l(0x110)]['jid'],'gid':this[l(0x13f)][l(0x110)][l(0x123)],'dad':collator_1[l(0x14a)][l(0x112)](this),'aid':this[l(0x136)][l(0x124)],'spn':this[l(0x13f)][l(0x145)][l(0x127)][l(0x110)]?.[l(0x126)],'trc':this['context'][l(0x110)][l(0x129)]},'data':this[l(0x13f)][l(0x11e)]};return await this[l(0x12d)]['router']?.[l(0x111)](null,d,c);}}exports['Cycle']=Cycle;
1
+ 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x192;let h=e[f];return h;},b(c,d);}const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x1bf))/0x1+-parseInt(i(0x1b0))/0x2+parseInt(i(0x1b4))/0x3*(parseInt(i(0x1c7))/0x4)+parseInt(i(0x197))/0x5+parseInt(i(0x1c1))/0x6*(-parseInt(i(0x19c))/0x7)+parseInt(i(0x1bc))/0x8+parseInt(i(0x1ca))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x5bdb5));function a(){const m=['verifyEntry','setStatus','ancestor','274152gvgvyg','message','guid','context','846069gfkkop','cycle-collation-overage','publishMessage','fault','resolveStatus','Cycle','defineProperty','aid','2930984TZEDWL','l1s','CollationError','310549eiwMeQ','mapActivityAttributes','877284nToTUN','duplicate','resolveReentryDimension','cycleAncestorActivity','metadata','appId','4KJbkax','leg','gid','3364551xukRtx','GetStateError','trc','data','cycle-process-end','setActivityError','cycle-process-error','cycle-inactive-job-error','router','store','cycle-process','Activity','./activity','TelemetryService','$self','cycle-get-state-error','../../modules/utils','2663525vhKrZZ','InactiveJobError','setActivityAttributes','error','__esModule','35ehxDGX','mapInputData','CollatorService','../collator','cycle-collation-error','exec','engine','info','startActivitySpan','setState','process','endActivitySpan','logger','config','jid','debug','transact'];a=function(){return m;};return a();}Object[j(0x1ba)](exports,j(0x19b),{'value':!![]}),exports[j(0x1b9)]=void 0x0;const errors_1=require('../../modules/errors'),utils_1=require(j(0x196)),collator_1=require(j(0x19f)),telemetry_1=require('../telemetry'),activity_1=require(j(0x192));class Cycle extends activity_1[j(0x1d5)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x1a6)](){const k=j;this[k(0x1a8)][k(0x1ab)](k(0x1d4),{'jid':this[k(0x1b3)][k(0x1c5)][k(0x1aa)],'gid':this['context'][k(0x1c5)][k(0x1c9)],'aid':this[k(0x1c5)][k(0x1bb)]});let c;try{await this[k(0x1ad)](),c=new telemetry_1[(k(0x193))](this[k(0x1a2)][k(0x1c6)],this[k(0x1a9)],this[k(0x1c5)],this[k(0x1b3)]),c[k(0x1a4)](this[k(0x1c8)]),this[k(0x19d)]();let d=this[k(0x1d3)]['transact']();await this[k(0x1a5)](d),await this[k(0x1ae)](0x0,d);const e=await d[k(0x1a1)]();c[k(0x1c0)]();const f=this[k(0x1b8)](e);d=this[k(0x1d3)][k(0x1ac)]();const g=await this[k(0x1c4)](d);return c[k(0x199)]({'app.activity.mid':g,'app.job.jss':f}),await collator_1[k(0x19e)]['notarizeEarlyExit'](this,d),await d[k(0x1a1)](),this[k(0x1b3)][k(0x1c5)][k(0x1bb)];}catch(h){if(h instanceof errors_1[k(0x198)]){this[k(0x1a8)]['error'](k(0x1d1),{'error':h});return;}else{if(h instanceof errors_1['GenerationalError']){this[k(0x1a8)][k(0x1a3)]('process-event-generational-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x1cb)]){this[k(0x1a8)]['error'](k(0x195),{'error':h});return;}else{if(h instanceof errors_1[k(0x1be)]){if(h[k(0x1b7)]===k(0x1c2)){this[k(0x1a8)][k(0x1a3)](k(0x1b5),{'job_id':this[k(0x1b3)][k(0x1c5)][k(0x1aa)],'guid':this[k(0x1b3)][k(0x1c5)][k(0x1b2)]});return;}this[k(0x1a8)][k(0x19a)](k(0x1a0),{'error':h});}else this[k(0x1a8)]['error'](k(0x1d0),{'error':h});}}}c?.[k(0x1cf)](h[k(0x1b1)]);throw h;}finally{c?.[k(0x1a7)](),this[k(0x1a8)]['debug'](k(0x1ce),{'jid':this[k(0x1b3)][k(0x1c5)][k(0x1aa)],'gid':this['context'][k(0x1c5)][k(0x1c9)],'aid':this[k(0x1c5)][k(0x1bb)]});}}async[j(0x1c4)](c){const l=j;this[l(0x19d)]();const d={'metadata':{'guid':(0x0,utils_1[l(0x1b2)])(),'jid':this[l(0x1b3)][l(0x1c5)][l(0x1aa)],'gid':this[l(0x1b3)][l(0x1c5)][l(0x1c9)],'dad':collator_1[l(0x19e)][l(0x1c3)](this),'aid':this[l(0x1a9)][l(0x1af)],'spn':this[l(0x1b3)][l(0x194)]['output']['metadata']?.[l(0x1bd)],'trc':this[l(0x1b3)][l(0x1c5)][l(0x1cc)]},'data':this[l(0x1b3)][l(0x1cd)]};return await this['engine'][l(0x1d2)]?.[l(0x1b6)](null,d,c);}}exports[j(0x1b9)]=Cycle;
@@ -1 +1 @@
1
- 'use strict';const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=parseInt(l(0x1d5))/0x1+parseInt(l(0x1c6))/0x2+parseInt(l(0x1d2))/0x3*(-parseInt(l(0x1e6))/0x4)+parseInt(l(0x1fc))/0x5+-parseInt(l(0x1d8))/0x6*(-parseInt(l(0x1d4))/0x7)+parseInt(l(0x1e2))/0x8+-parseInt(l(0x1cb))/0x9;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xcb243));function b(c,d){const e=a();return b=function(f,g){f=f-0x1a6;let h=e[f];return h;},b(c,d);}Object['defineProperty'](exports,m(0x1e5),{'value':!![]}),exports['Hook']=void 0x0;const enums_1=require(m(0x1f5)),errors_1=require(m(0x1af)),collator_1=require('../collator'),pipe_1=require(m(0x1e8)),task_1=require(m(0x1cc)),telemetry_1=require(m(0x1d6)),stream_1=require(m(0x1de)),activity_1=require(m(0x1f4));function a(){const v=['setActivityError','join','CollationError','doesHook','registerWebHook','startActivitySpan','8231640ofOdBC','deleteWebHookSignal','registerTimeHook','authorizeReentry','hook-process-end','appId','metadata','processWebHookEvent','Pipe','expire','../../modules/errors','notarizeEarlyCompletion','sleep','topic','processTimeHookEvent','transition','getHookRules','setActivityAttributes','dad','SUCCESS','endActivitySpan','error','logger','debug','resolveDad','exec','TaskService','aid','processEvent','hook-inactive-job-error','doPassThrough','gid','store','888456HbROdT','hook-process-web-hook-event','InactiveJobError','length','hook','18616680Mrziub','../task','transact','hook-collation-overage','setStatus','process','hook-get-state-error','3drfPXd','setState','7VkUZhc','1229470mHCNri','../telemetry','mapJobData','945186elddOW','GetStateError','app.activity.mids','resolve','message','jid','../../types/stream','info','registerHook','doHook','1730984exgFvQ','data','config','__esModule','3173372xslTDW','adjacencyList','../pipe','CollatorService','verifyEntry','processWebHookSignal','resolveStatus','engine','TelemetryService','mapActivityAttributes','filterAdjacent','StreamStatus','hook-process-error','context','./activity','../../modules/enums'];a=function(){return v;};return a();}class Hook extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[m(0x1d0)](){const n=m;this[n(0x1bb)]['debug']('hook-process',{'jid':this['context']['metadata'][n(0x1dd)],'gid':this[n(0x1f3)][n(0x1ab)]['gid'],'aid':this[n(0x1ab)][n(0x1c0)]});let c;try{return await this[n(0x1ea)](),c=new telemetry_1[(n(0x1ee))](this[n(0x1ed)][n(0x1aa)],this['config'],this[n(0x1ab)],this[n(0x1f3)]),c[n(0x1fb)](this['leg']),this[n(0x1f9)]()?await this[n(0x1e1)](c):await this[n(0x1c3)](c),this[n(0x1f3)][n(0x1ab)][n(0x1c0)];}catch(d){if(d instanceof errors_1[n(0x1c8)]){this[n(0x1bb)][n(0x1ba)](n(0x1c2),{'error':d});return;}else{if(d instanceof errors_1['GenerationalError']){this['logger']['info']('process-event-generational-job-error',{'error':d});return;}else{if(d instanceof errors_1[n(0x1d9)]){this[n(0x1bb)]['error'](n(0x1d1),{'error':d});return;}else{if(d instanceof errors_1[n(0x1f8)]){if(d['fault']==='duplicate'){this[n(0x1bb)][n(0x1df)](n(0x1ce),{'job_id':this[n(0x1f3)][n(0x1ab)][n(0x1dd)],'guid':this['context'][n(0x1ab)]['guid']});return;}this[n(0x1bb)]['error']('hook-collation-error',{'error':d});}else this[n(0x1bb)][n(0x1ba)](n(0x1f2),{'error':d});}}}c?.[n(0x1f6)](d[n(0x1dc)]);throw d;}finally{c?.[n(0x1b9)](),this['logger'][n(0x1bc)](n(0x1a9),{'jid':this[n(0x1f3)]['metadata']['jid'],'gid':this[n(0x1f3)][n(0x1ab)][n(0x1c4)],'aid':this['metadata'][n(0x1c0)]});}}[m(0x1f9)](){const o=m;if(this['config'][o(0x1b1)]){const c=pipe_1[o(0x1ad)][o(0x1db)](this[o(0x1e4)]['sleep'],this['context']);return!isNaN(c)&&Number(c)>0x0;}return!!this[o(0x1e4)]['hook']?.[o(0x1b2)];}async[m(0x1e1)](c){const p=m,d=this[p(0x1c5)][p(0x1cd)]();await this[p(0x1e0)](enums_1['HMSH_IS_CLUSTER']?undefined:d),this['mapOutputData'](),this['mapJobData'](),await this['setState'](d),await collator_1[p(0x1e9)][p(0x1a8)](this,d),await this[p(0x1cf)](0x0,d),await d['exec'](),c[p(0x1ef)]();}async[m(0x1c3)](c){const q=m,d=this['store'][q(0x1cd)]();let e;this[q(0x1e7)]=await this[q(0x1f0)](),this['mapOutputData'](),this[q(0x1d7)](),await this[q(0x1d3)](d),await collator_1[q(0x1e9)][q(0x1b0)](this,d),await this[q(0x1cf)](this['adjacencyList'][q(0x1c9)]-0x1,d),e=await d[q(0x1be)](),c[q(0x1ef)]();const f=this[q(0x1ec)](e),g={'app.job.jss':f},h=await this[q(0x1b4)](this['adjacencyList'],f);h[q(0x1c9)]&&(g[q(0x1da)]=h[q(0x1f7)](',')),c[q(0x1b6)](g);}async['getHookRule'](c){const r=m,d=await this[r(0x1c5)][r(0x1b5)]();return d?.[c]?.[0x0];}async[m(0x1e0)](c){const s=m;if(this[s(0x1e4)]['hook']?.[s(0x1b2)])return await this[s(0x1ed)]['taskService'][s(0x1fa)](this[s(0x1e4)][s(0x1ca)]['topic'],this[s(0x1f3)],this[s(0x1bd)](),this[s(0x1f3)]['metadata'][s(0x1ae)],c);else{if(this[s(0x1e4)]['sleep']){const d=pipe_1[s(0x1ad)][s(0x1db)](this['config'][s(0x1b1)],this[s(0x1f3)]);return await this[s(0x1ed)]['taskService'][s(0x1a7)](this[s(0x1f3)]['metadata'][s(0x1dd)],this[s(0x1f3)][s(0x1ab)]['gid'],''+this[s(0x1ab)]['aid']+(this[s(0x1ab)][s(0x1b7)]||''),s(0x1b1),d,this[s(0x1ab)][s(0x1b7)]||''),this[s(0x1f3)]['metadata'][s(0x1dd)];}}}async[m(0x1ac)](c=stream_1[m(0x1f1)][m(0x1b8)],d=0xc8){const t=m;this[t(0x1bb)][t(0x1bc)](t(0x1c7),{'topic':this[t(0x1e4)]['hook'][t(0x1b2)],'aid':this['metadata'][t(0x1c0)],'status':c,'code':d});const e=new task_1[(t(0x1bf))](this[t(0x1c5)],this[t(0x1bb)]),f={...this[t(0x1e3)]},g=await e[t(0x1eb)](this[t(0x1e4)][t(0x1ca)][t(0x1b2)],f);if(g){const [h,i,j,k]=g;this['context']['metadata'][t(0x1dd)]=h,this[t(0x1f3)][t(0x1ab)]['gid']=k,this['context'][t(0x1ab)][t(0x1b7)]=j,await this[t(0x1c1)](c,d,t(0x1ca)),d===0xc8&&await e[t(0x1a6)](this[t(0x1e4)][t(0x1ca)]['topic'],f);}}async[m(0x1b3)](c){const u=m;this[u(0x1bb)][u(0x1bc)]('hook-process-time-hook-event',{'jid':c,'gid':this[u(0x1f3)][u(0x1ab)][u(0x1c4)],'aid':this[u(0x1ab)]['aid']}),await this['processEvent'](stream_1[u(0x1f1)][u(0x1b8)],0xc8,u(0x1ca));}}exports['Hook']=Hook;
1
+ 'use strict';function a(){const v=['exec','1GlQUaS','SUCCESS','processWebHookSignal','../task','authorizeReentry','process','data','CollationError','../../modules/enums','resolveDad','Activity','../../modules/errors','error','TelemetryService','Pipe','setActivityAttributes','duplicate','getHookRule','setStatus','aid','GenerationalError','defineProperty','join','taskService','sleep','config','TaskService','processWebHookEvent','transact','HMSH_IS_CLUSTER','doesHook','process-event-generational-job-error','104798dVgaPb','fault','verifyEntry','7otAidS','11FMiJEF','./activity','hook-process-end','CollatorService','hook','10208584QCqiEq','message','StreamStatus','doHook','GetStateError','mapOutputData','setState','hook-process-web-hook-event','app.activity.mids','registerWebHook','hook-process-error','metadata','topic','5890550zEcKgI','registerTimeHook','3855465AEbGZc','Hook','debug','endActivitySpan','jid','mapJobData','resolveStatus','store','startActivitySpan','hook-collation-error','logger','4210677ueIKul','dad','15BFoORn','mapActivityAttributes','getHookRules','engine','leg','transition','2874540wotLub','processTimeHookEvent','1629556VFLfei','gid','InactiveJobError','processEvent','hook-process','hook-collation-overage','resolve','adjacencyList','hook-get-state-error','length','context','../../types/stream','doPassThrough','deleteWebHookSignal'];a=function(){return v;};return a();}const m=b;(function(c,d){const l=b,e=c();while(!![]){try{const f=parseInt(l(0xed))/0x1*(parseInt(l(0xb1))/0x2)+parseInt(l(0xc9))/0x3+-parseInt(l(0xde))/0x4*(-parseInt(l(0xd6))/0x5)+-parseInt(l(0xdc))/0x6*(parseInt(l(0xb4))/0x7)+-parseInt(l(0xba))/0x8+parseInt(l(0xd4))/0x9+-parseInt(l(0xc7))/0xa*(parseInt(l(0xb5))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xa6d5c));Object[m(0xa6)](exports,'__esModule',{'value':!![]}),exports['Hook']=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x96;let h=e[f];return h;},b(c,d);}const enums_1=require(m(0x99)),errors_1=require(m(0x9c)),collator_1=require('../collator'),pipe_1=require('../pipe'),task_1=require(m(0xf0)),telemetry_1=require('../telemetry'),stream_1=require(m(0xe9)),activity_1=require(m(0xb6));class Hook extends activity_1[m(0x9b)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[m(0x96)](){const n=m;this['logger'][n(0xcb)](n(0xe2),{'jid':this[n(0xe8)][n(0xc5)][n(0xcd)],'gid':this[n(0xe8)]['metadata']['gid'],'aid':this[n(0xc5)][n(0xa4)]});let c;try{return await this[n(0xb3)](),c=new telemetry_1[(n(0x9e))](this['engine']['appId'],this[n(0xaa)],this[n(0xc5)],this[n(0xe8)]),c[n(0xd1)](this[n(0xda)]),this[n(0xaf)]()?await this[n(0xbd)](c):await this[n(0xea)](c),this['context'][n(0xc5)][n(0xa4)];}catch(d){if(d instanceof errors_1[n(0xe0)]){this[n(0xd3)][n(0x9d)]('hook-inactive-job-error',{'error':d});return;}else{if(d instanceof errors_1[n(0xa5)]){this[n(0xd3)]['info'](n(0xb0),{'error':d});return;}else{if(d instanceof errors_1[n(0xbe)]){this[n(0xd3)]['error'](n(0xe6),{'error':d});return;}else{if(d instanceof errors_1[n(0x98)]){if(d[n(0xb2)]===n(0xa1)){this[n(0xd3)]['info'](n(0xe3),{'job_id':this['context'][n(0xc5)][n(0xcd)],'guid':this['context'][n(0xc5)]['guid']});return;}this[n(0xd3)][n(0x9d)](n(0xd2),{'error':d});}else this[n(0xd3)][n(0x9d)](n(0xc4),{'error':d});}}}c?.['setActivityError'](d[n(0xbb)]);throw d;}finally{c?.[n(0xcc)](),this[n(0xd3)]['debug'](n(0xb7),{'jid':this['context'][n(0xc5)]['jid'],'gid':this[n(0xe8)][n(0xc5)][n(0xdf)],'aid':this['metadata']['aid']});}}[m(0xaf)](){const o=m;if(this[o(0xaa)][o(0xa9)]){const c=pipe_1[o(0x9f)][o(0xe4)](this['config'][o(0xa9)],this[o(0xe8)]);return!isNaN(c)&&Number(c)>0x0;}return!!this[o(0xaa)][o(0xb9)]?.[o(0xc6)];}async[m(0xbd)](c){const p=m,d=this[p(0xd0)][p(0xad)]();await this['registerHook'](enums_1[p(0xae)]?undefined:d),this[p(0xbf)](),this[p(0xce)](),await this[p(0xc0)](d),await collator_1[p(0xb8)][p(0xf1)](this,d),await this['setStatus'](0x0,d),await d[p(0xec)](),c[p(0xd7)]();}async[m(0xea)](c){const q=m,d=this[q(0xd0)][q(0xad)]();let e;this[q(0xe5)]=await this['filterAdjacent'](),this[q(0xbf)](),this[q(0xce)](),await this[q(0xc0)](d),await collator_1[q(0xb8)]['notarizeEarlyCompletion'](this,d),await this[q(0xa3)](this[q(0xe5)][q(0xe7)]-0x1,d),e=await d['exec'](),c[q(0xd7)]();const f=this[q(0xcf)](e),g={'app.job.jss':f},h=await this[q(0xdb)](this['adjacencyList'],f);h['length']&&(g[q(0xc2)]=h[q(0xa7)](',')),c[q(0xa0)](g);}async[m(0xa2)](c){const r=m,d=await this[r(0xd0)][r(0xd8)]();return d?.[c]?.[0x0];}async['registerHook'](c){const s=m;if(this[s(0xaa)][s(0xb9)]?.['topic'])return await this[s(0xd9)][s(0xa8)][s(0xc3)](this[s(0xaa)]['hook'][s(0xc6)],this[s(0xe8)],this[s(0x9a)](),this[s(0xe8)][s(0xc5)]['expire'],c);else{if(this[s(0xaa)][s(0xa9)]){const d=pipe_1[s(0x9f)][s(0xe4)](this[s(0xaa)][s(0xa9)],this[s(0xe8)]);return await this['engine'][s(0xa8)][s(0xc8)](this[s(0xe8)]['metadata'][s(0xcd)],this[s(0xe8)][s(0xc5)][s(0xdf)],''+this[s(0xc5)][s(0xa4)]+(this['metadata'][s(0xd5)]||''),s(0xa9),d,this[s(0xc5)][s(0xd5)]||''),this['context'][s(0xc5)]['jid'];}}}async[m(0xac)](c=stream_1[m(0xbc)]['SUCCESS'],d=0xc8){const t=m;this[t(0xd3)]['debug'](t(0xc1),{'topic':this[t(0xaa)][t(0xb9)][t(0xc6)],'aid':this[t(0xc5)]['aid'],'status':c,'code':d});const e=new task_1[(t(0xab))](this[t(0xd0)],this[t(0xd3)]),f={...this[t(0x97)]},g=await e[t(0xef)](this['config'][t(0xb9)][t(0xc6)],f);if(g){const [h,i,j,k]=g;this[t(0xe8)][t(0xc5)]['jid']=h,this['context'][t(0xc5)][t(0xdf)]=k,this['context'][t(0xc5)]['dad']=j,await this[t(0xe1)](c,d,t(0xb9)),d===0xc8&&await e[t(0xeb)](this[t(0xaa)][t(0xb9)]['topic'],f);}}async[m(0xdd)](c){const u=m;this['logger'][u(0xcb)]('hook-process-time-hook-event',{'jid':c,'gid':this[u(0xe8)]['metadata']['gid'],'aid':this[u(0xc5)]['aid']}),await this[u(0xe1)](stream_1['StreamStatus'][u(0xee)],0xc8,u(0xb9));}}exports[m(0xca)]=Hook;
@@ -1 +1 @@
1
- 'use strict';const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0xef))/0x1+parseInt(h(0xee))/0x2+-parseInt(h(0x106))/0x3*(parseInt(h(0xf0))/0x4)+-parseInt(h(0xfc))/0x5*(-parseInt(h(0x104))/0x6)+-parseInt(h(0x100))/0x7*(parseInt(h(0xeb))/0x8)+parseInt(h(0xf9))/0x9*(parseInt(h(0xf4))/0xa)+-parseInt(h(0x105))/0xb;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x854ef));function a(){const j=['164MeeJGq','defineProperty','./interrupt','default','30qDeFIa','__esModule','./worker','Hook','./await','1907703UtFTlK','./hook','./cycle','700TLTfiM','Cycle','Trigger','Signal','7gbVraY','Interrupt','Await','./trigger','26190YEZtYo','11127589csaKRZ','18141hgQyek','2775304RowdJF','./signal','./activity','2112690yjaEae','150876gGAYSM'];a=function(){return j;};return a();}Object[i(0xf1)](exports,i(0xf5),{'value':!![]});const activity_1=require(i(0xed)),await_1=require(i(0xf8)),cycle_1=require(i(0xfb)),hook_1=require(i(0xfa)),interrupt_1=require(i(0xf2)),signal_1=require(i(0xec)),trigger_1=require(i(0x103)),worker_1=require(i(0xf6));function b(c,d){const e=a();return b=function(f,g){f=f-0xeb;let h=e[f];return h;},b(c,d);}exports[i(0xf3)]={'activity':activity_1['Activity'],'await':await_1[i(0x102)],'cycle':cycle_1[i(0xfd)],'hook':hook_1[i(0xf7)],'interrupt':interrupt_1[i(0x101)],'signal':signal_1[i(0xff)],'trigger':trigger_1[i(0xfe)],'worker':worker_1['Worker']};
1
+ 'use strict';const i=b;(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0x13d))/0x1+parseInt(h(0x13f))/0x2+-parseInt(h(0x13c))/0x3+parseInt(h(0x150))/0x4+parseInt(h(0x146))/0x5+parseInt(h(0x14b))/0x6+-parseInt(h(0x144))/0x7;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x31430));Object['defineProperty'](exports,i(0x13b),{'value':!![]});const activity_1=require(i(0x14d)),await_1=require(i(0x14f)),cycle_1=require(i(0x141)),hook_1=require(i(0x149)),interrupt_1=require(i(0x14c)),signal_1=require(i(0x145)),trigger_1=require(i(0x148)),worker_1=require(i(0x140));function b(c,d){const e=a();return b=function(f,g){f=f-0x13b;let h=e[f];return h;},b(c,d);}exports['default']={'activity':activity_1[i(0x142)],'await':await_1[i(0x143)],'cycle':cycle_1['Cycle'],'hook':hook_1[i(0x14a)],'interrupt':interrupt_1[i(0x147)],'signal':signal_1[i(0x14e)],'trigger':trigger_1[i(0x13e)],'worker':worker_1['Worker']};function a(){const j=['./cycle','Activity','Await','1848903NLRTCp','./signal','1744980wqYwqF','Interrupt','./trigger','./hook','Hook','349752Piftov','./interrupt','./activity','Signal','./await','1085564DHMdqS','__esModule','889374QKFyMZ','70363fBzGlT','Trigger','308094eIuknj','./worker'];a=function(){return j;};return a();}
@@ -1 +1 @@
1
- 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=-parseInt(k(0xff))/0x1*(parseInt(k(0x11d))/0x2)+parseInt(k(0x11c))/0x3*(parseInt(k(0xf4))/0x4)+parseInt(k(0x106))/0x5*(parseInt(k(0xfc))/0x6)+-parseInt(k(0xf6))/0x7+parseInt(k(0x128))/0x8+parseInt(k(0x12c))/0x9*(-parseInt(k(0x120))/0xa)+parseInt(k(0x125))/0xb*(parseInt(k(0xf9))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x8cdb2));function a(){const s=['logger','exec','appId','Pipe','2212745PfdIzz','resolveStatus','notarizeEarlyCompletion','interrupt-collation-overage','maps','app.activity.mids','stack','guid','../pipe','filterAdjacent','interrupt','Interrupt','info','job','length','join','interrupt-process-error','Activity','defineProperty','aid','leg','fault','2688477ptNzLQ','6acjjIm','message','__esModule','10OKYXWn','../../modules/errors','./activity','setStatus','app.job.jss','4136VtPwpt','resolveInterruptOptions','config','8630984tSyMZQ','context','process-event-generational-job-error','jid','9367209dhjkJl','endActivitySpan','topic','interruptSelf','error','target','CollationError','output','transact','descend','InactiveJobError','tpc','setActivityError','expire','adjacencyList','interrupt-process','mapJobData','gid','setActivityAttributes','process','metadata','interrupt-process-end','code','setState','debug','4yPfgLC','CollatorService','5454365NfHJbK','engine','GetStateError','24564zdnHdz','startActivitySpan','resolve','6HmGdgk','throw','interrupt-get-state-error','263437KueqRY','isInterruptingSelf','mapActivityAttributes'];a=function(){return s;};return a();}Object[l(0x118)](exports,l(0x11f),{'value':!![]}),exports['Interrupt']=void 0x0;const errors_1=require(l(0x121)),collator_1=require('../collator'),pipe_1=require(l(0x10e)),telemetry_1=require('../telemetry'),activity_1=require(l(0x122));function b(c,d){const e=a();return b=function(f,g){f=f-0xe6;let h=e[f];return h;},b(c,d);}class Interrupt extends activity_1[l(0x117)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0xee)](){const m=l;this[m(0x102)][m(0xf3)](m(0xea),{'jid':this[m(0x129)][m(0xef)][m(0x12b)],'gid':this[m(0x129)][m(0xef)][m(0xec)],'aid':this[m(0xef)]['aid']});let c;try{await this['verifyEntry'](),c=new telemetry_1['TelemetryService'](this[m(0xf7)][m(0x104)],this[m(0x127)],this['metadata'],this[m(0x129)]),c[m(0xfa)](this[m(0x11a)]),this[m(0x100)]()?await this[m(0x12f)](c):await this['interruptAnother'](c);}catch(d){if(d instanceof errors_1[m(0x136)]){this[m(0x102)][m(0x130)]('interrupt-inactive-job-error',{'error':d});return;}else{if(d instanceof errors_1['GenerationalError']){this[m(0x102)][m(0x112)](m(0x12a),{'error':d});return;}else{if(d instanceof errors_1[m(0xf8)]){this[m(0x102)][m(0x130)](m(0xfe),{'error':d});return;}else{if(d instanceof errors_1[m(0x132)]){if(d[m(0x11b)]==='duplicate'){this[m(0x102)][m(0x112)](m(0x109),{'job_id':this[m(0x129)]['metadata'][m(0x12b)],'guid':this[m(0x129)][m(0xef)][m(0x10d)]});return;}this[m(0x102)][m(0x130)]('interrupt-collation-error',{'error':d});}else this['logger'][m(0x130)](m(0x116),{'error':d});}}}c?.[m(0xe7)](d[m(0x11e)]);throw d;}finally{c?.[m(0x12d)](),this[m(0x102)][m(0xf3)](m(0xf0),{'jid':this['context']['metadata']['jid'],'gid':this['context']['metadata'][m(0xec)],'aid':this[m(0xef)][m(0x119)]});}}async[l(0x12f)](c){const n=l;this['config']['job']?.[n(0x10a)]&&(this[n(0xeb)](),await this[n(0xf2)]());const d=await this[n(0x110)]();c[n(0x101)]();const e=this['store']['transact']();await collator_1[n(0xf5)][n(0x108)](this,e),await this[n(0x123)](-0x1,e);const f=await e[n(0x103)](),g=this[n(0x107)](f);return c[n(0xed)]({'app.activity.mid':d,'app.job.jss':g}),this['context'][n(0xef)][n(0x119)];}async['interruptAnother'](c){const o=l,d=await this['interrupt'](),e={'app.activity.mid':d};c[o(0x101)](),this[o(0xe9)]=await this[o(0x10f)]();if(this[o(0x127)][o(0x113)]?.[o(0x10a)]||this[o(0x127)][o(0x133)]?.['maps']){this['mapOutputData'](),this['mapJobData']();const j=this['store']['transact']();await this[o(0xf2)](j);}const f=this['store'][o(0x134)]();await collator_1[o(0xf5)]['notarizeEarlyCompletion'](this,f),await this[o(0x123)](this[o(0xe9)][o(0x114)]-0x1,f);const g=await f[o(0x103)](),h=this[o(0x107)](g);e[o(0x124)]=h;const i=await this['transition'](this['adjacencyList'],h);return i[o(0x114)]&&(e[o(0x10b)]=i[o(0x115)](',')),c['setActivityAttributes'](e),this[o(0x129)][o(0xef)]['aid'];}[l(0x100)](){const p=l;if(!this[p(0x127)][p(0x131)])return!![];const c=pipe_1[p(0x105)][p(0xfb)](this[p(0x127)]['target'],this['context']);return c==this['context'][p(0xef)][p(0x12b)];}[l(0x126)](){const q=l;return{'reason':this[q(0x127)]['reason']!==undefined?pipe_1[q(0x105)][q(0xfb)](this['config']['reason'],this[q(0x129)]):undefined,'throw':this[q(0x127)][q(0xfd)]!==undefined?pipe_1[q(0x105)]['resolve'](this['config'][q(0xfd)],this[q(0x129)]):undefined,'descend':this['config']['descend']!==undefined?pipe_1[q(0x105)]['resolve'](this[q(0x127)][q(0x135)],this[q(0x129)]):undefined,'code':this['config'][q(0xf1)]!==undefined?pipe_1['Pipe'][q(0xfb)](this['config'][q(0xf1)],this[q(0x129)]):undefined,'expire':this[q(0x127)][q(0xe8)]!==undefined?pipe_1[q(0x105)]['resolve'](this['config'][q(0xe8)],this[q(0x129)]):undefined,'stack':this[q(0x127)][q(0x10c)]!==undefined?pipe_1[q(0x105)][q(0xfb)](this[q(0x127)][q(0x10c)],this[q(0x129)]):undefined};}async['interrupt'](){const r=l,c=this[r(0x126)]();return await this[r(0xf7)][r(0x110)](this[r(0x127)][r(0x12e)]!==undefined?pipe_1['Pipe'][r(0xfb)](this['config']['topic'],this[r(0x129)]):this[r(0x129)][r(0xef)][r(0xe6)],this['config']['target']!==undefined?pipe_1['Pipe'][r(0xfb)](this[r(0x127)][r(0x131)],this[r(0x129)]):this['context']['metadata'][r(0x12b)],c);}}exports[l(0x111)]=Interrupt;
1
+ 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=-parseInt(k(0x14a))/0x1+-parseInt(k(0x13f))/0x2*(parseInt(k(0x157))/0x3)+-parseInt(k(0x178))/0x4+-parseInt(k(0x14e))/0x5+parseInt(k(0x17e))/0x6+-parseInt(k(0x143))/0x7+parseInt(k(0x14f))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xef273));Object['defineProperty'](exports,l(0x14d),{'value':!![]}),exports[l(0x17f)]=void 0x0;const errors_1=require(l(0x185)),collator_1=require(l(0x13c)),pipe_1=require(l(0x16e)),telemetry_1=require(l(0x154)),activity_1=require(l(0x175));function a(){const s=['../../modules/errors','context','GetStateError','reason','interrupt-process-end','Activity','config','transition','../collator','info','TelemetryService','94ThXkCb','mapActivityAttributes','descend','CollatorService','6687100ePhcHu','adjacencyList','setActivityError','filterAdjacent','topic','process-event-generational-job-error','logger','765490JBfZxb','mapJobData','jid','__esModule','2753175WTuhfS','30319800Cwsiwc','join','engine','target','debug','../telemetry','interrupt-process-error','endActivitySpan','108714XinUKp','aid','interrupt','interrupt-collation-error','maps','InactiveJobError','Pipe','tpc','stack','setActivityAttributes','interruptSelf','code','app.activity.mids','expire','throw','output','CollationError','resolve','notarizeEarlyCompletion','resolveStatus','resolveInterruptOptions','metadata','interrupt-get-state-error','../pipe','interrupt-process','leg','store','isInterruptingSelf','interruptAnother','startActivitySpan','./activity','job','interrupt-inactive-job-error','2408256nVDVSB','interrupt-collation-overage','length','error','fault','GenerationalError','10597626RrtpuH','Interrupt','setState','gid','transact','duplicate','setStatus'];a=function(){return s;};return a();}function b(c,d){const e=a();return b=function(f,g){f=f-0x13a;let h=e[f];return h;},b(c,d);}class Interrupt extends activity_1[l(0x18a)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const m=l;this[m(0x149)]['debug'](m(0x16f),{'jid':this['context'][m(0x16c)][m(0x14c)],'gid':this[m(0x186)][m(0x16c)][m(0x181)],'aid':this[m(0x16c)][m(0x158)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(m(0x13e))](this[m(0x151)]['appId'],this[m(0x13a)],this[m(0x16c)],this[m(0x186)]),c[m(0x174)](this[m(0x170)]),this[m(0x172)]()?await this[m(0x161)](c):await this[m(0x173)](c);}catch(d){if(d instanceof errors_1[m(0x15c)]){this[m(0x149)][m(0x17b)](m(0x177),{'error':d});return;}else{if(d instanceof errors_1[m(0x17d)]){this['logger'][m(0x13d)](m(0x148),{'error':d});return;}else{if(d instanceof errors_1[m(0x187)]){this['logger'][m(0x17b)](m(0x16d),{'error':d});return;}else{if(d instanceof errors_1[m(0x167)]){if(d[m(0x17c)]===m(0x183)){this['logger'][m(0x13d)](m(0x179),{'job_id':this[m(0x186)]['metadata'][m(0x14c)],'guid':this[m(0x186)]['metadata']['guid']});return;}this[m(0x149)][m(0x17b)](m(0x15a),{'error':d});}else this[m(0x149)][m(0x17b)](m(0x155),{'error':d});}}}c?.[m(0x145)](d['message']);throw d;}finally{c?.[m(0x156)](),this[m(0x149)][m(0x153)](m(0x189),{'jid':this['context'][m(0x16c)][m(0x14c)],'gid':this[m(0x186)][m(0x16c)][m(0x181)],'aid':this[m(0x16c)]['aid']});}}async[l(0x161)](c){const n=l;this[n(0x13a)][n(0x176)]?.[n(0x15b)]&&(this[n(0x14b)](),await this[n(0x180)]());const d=await this[n(0x159)]();c[n(0x140)]();const e=this['store'][n(0x182)]();await collator_1[n(0x142)]['notarizeEarlyCompletion'](this,e),await this[n(0x184)](-0x1,e);const f=await e['exec'](),g=this[n(0x16a)](f);return c[n(0x160)]({'app.activity.mid':d,'app.job.jss':g}),this[n(0x186)]['metadata']['aid'];}async[l(0x173)](c){const o=l,d=await this['interrupt'](),e={'app.activity.mid':d};c['mapActivityAttributes'](),this[o(0x144)]=await this[o(0x146)]();if(this[o(0x13a)][o(0x176)]?.[o(0x15b)]||this[o(0x13a)][o(0x166)]?.[o(0x15b)]){this['mapOutputData'](),this[o(0x14b)]();const j=this[o(0x171)][o(0x182)]();await this[o(0x180)](j);}const f=this[o(0x171)][o(0x182)]();await collator_1[o(0x142)][o(0x169)](this,f),await this[o(0x184)](this[o(0x144)][o(0x17a)]-0x1,f);const g=await f['exec'](),h=this[o(0x16a)](g);e['app.job.jss']=h;const i=await this[o(0x13b)](this['adjacencyList'],h);return i[o(0x17a)]&&(e[o(0x163)]=i[o(0x150)](',')),c[o(0x160)](e),this[o(0x186)][o(0x16c)]['aid'];}[l(0x172)](){const p=l;if(!this[p(0x13a)][p(0x152)])return!![];const c=pipe_1[p(0x15d)][p(0x168)](this[p(0x13a)][p(0x152)],this[p(0x186)]);return c==this[p(0x186)]['metadata'][p(0x14c)];}[l(0x16b)](){const q=l;return{'reason':this[q(0x13a)][q(0x188)]!==undefined?pipe_1['Pipe'][q(0x168)](this[q(0x13a)][q(0x188)],this[q(0x186)]):undefined,'throw':this['config'][q(0x165)]!==undefined?pipe_1[q(0x15d)][q(0x168)](this[q(0x13a)]['throw'],this[q(0x186)]):undefined,'descend':this[q(0x13a)][q(0x141)]!==undefined?pipe_1['Pipe'][q(0x168)](this[q(0x13a)]['descend'],this[q(0x186)]):undefined,'code':this[q(0x13a)][q(0x162)]!==undefined?pipe_1[q(0x15d)][q(0x168)](this['config']['code'],this['context']):undefined,'expire':this[q(0x13a)][q(0x164)]!==undefined?pipe_1['Pipe'][q(0x168)](this[q(0x13a)][q(0x164)],this['context']):undefined,'stack':this['config'][q(0x15f)]!==undefined?pipe_1[q(0x15d)][q(0x168)](this[q(0x13a)]['stack'],this[q(0x186)]):undefined};}async[l(0x159)](){const r=l,c=this[r(0x16b)]();return await this['engine'][r(0x159)](this[r(0x13a)][r(0x147)]!==undefined?pipe_1[r(0x15d)]['resolve'](this['config'][r(0x147)],this['context']):this[r(0x186)][r(0x16c)][r(0x15e)],this[r(0x13a)][r(0x152)]!==undefined?pipe_1['Pipe'][r(0x168)](this[r(0x13a)][r(0x152)],this[r(0x186)]):this[r(0x186)][r(0x16c)][r(0x14c)],c);}}exports[l(0x17f)]=Interrupt;
@@ -1 +1 @@
1
- 'use strict';const k=b;(function(c,d){const j=b,e=c();while(!![]){try{const f=-parseInt(j(0x81))/0x1+parseInt(j(0xc4))/0x2*(parseInt(j(0xc7))/0x3)+parseInt(j(0x8e))/0x4+-parseInt(j(0x8c))/0x5+-parseInt(j(0x8d))/0x6+parseInt(j(0xa2))/0x7+parseInt(j(0xbd))/0x8*(-parseInt(j(0xab))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x7eb7d));function b(c,d){const e=a();return b=function(f,g){f=f-0x7d;let h=e[f];return h;},b(c,d);}function a(){const q=['GetStateError','key_value','app.activity.mids','Pipe','appId','mapRules','8vccFvI','leg','InactiveJobError','setStatus','hook','TelemetryService','mapJobData','287196dTpvJx','CollationError','hookOne','12nCZqkW','notarizeEarlyCompletion','signal-process','mapOutputData','status','store','error','797440cvnZOQ','logger','signal-get-state-error','guid','GenerationalError','hookAll','../../modules/errors','jid','code','signal-inactive-job-error','duplicate','1397470iLXdFm','891816MHIMxZ','2899852aACVXT','process','CollatorService','setActivityError','../telemetry','config','startActivitySpan','key_name','./activity','signal-collation-overage','gid','join','mapSignalData','length','engine','maps','adjacencyList','metadata','MapperService','signal-collation-error','4308066abXaOi','endActivitySpan','__esModule','debug','context','signal-process-error','topic','signal-process-end','info','1531674LpChYn','resolveStatus','mapActivityAttributes','scrub','aid','transact','filterAdjacent','verifyEntry','../mapper','setState','mapResolverData','resolve'];a=function(){return q;};return a();}Object['defineProperty'](exports,k(0xa4),{'value':!![]}),exports['Signal']=void 0x0;const errors_1=require(k(0x87)),collator_1=require('../collator'),mapper_1=require(k(0xb3)),pipe_1=require('../pipe'),telemetry_1=require(k(0x92)),activity_1=require(k(0x96));class Signal extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[k(0x8f)](){const l=k;this[l(0x82)]['debug'](l(0xc9),{'jid':this[l(0xa6)]['metadata'][l(0x88)],'gid':this[l(0xa6)][l(0x9f)][l(0x98)],'aid':this[l(0x9f)][l(0xaf)]});let c;try{await this[l(0xb2)](),c=new telemetry_1[(l(0xc2))](this['engine'][l(0xbb)],this[l(0x93)],this['metadata'],this[l(0xa6)]),c[l(0x94)](this[l(0xbe)]);const d=this[l(0x7f)][l(0xb0)]();this[l(0x9e)]=await this[l(0xb1)](),this[l(0x7d)](),this[l(0xc3)](),await this[l(0xb4)](d),await collator_1[l(0x90)][l(0xc8)](this,d),await this[l(0xc0)](this['adjacencyList'][l(0x9b)]-0x1,d);const e=await d['exec']();this['config']['subtype']==='all'?await this['hookAll']():await this['hookOne']();const f=this[l(0xac)](e),g={'app.job.jss':f},h=await this['transition'](this[l(0x9e)],f);return h['length']&&(g[l(0xb9)]=h[l(0x99)](',')),c[l(0xad)](),c['setActivityAttributes'](g),this[l(0xa6)][l(0x9f)]['aid'];}catch(i){if(i instanceof errors_1[l(0xbf)]){this['logger']['error'](l(0x8a),{'error':i});return;}else{if(i instanceof errors_1[l(0x85)]){this['logger'][l(0xaa)]('process-event-generational-job-error',{'error':i});return;}else{if(i instanceof errors_1[l(0xb7)]){this[l(0x82)][l(0x80)](l(0x83),{'error':i});return;}else{if(i instanceof errors_1[l(0xc5)]){if(i['fault']===l(0x8b)){this[l(0x82)][l(0xaa)](l(0x97),{'job_id':this[l(0xa6)]['metadata'][l(0x88)],'guid':this[l(0xa6)]['metadata'][l(0x84)]});return;}this[l(0x82)][l(0x80)](l(0xa1),{'error':i});}else this[l(0x82)][l(0x80)](l(0xa7),{'error':i});}}}c?.[l(0x91)](i['message']);throw i;}finally{c?.[l(0xa3)](),this['logger'][l(0xa5)](l(0xa9),{'jid':this[l(0xa6)][l(0x9f)][l(0x88)],'gid':this[l(0xa6)][l(0x9f)][l(0x98)],'aid':this[l(0x9f)]['aid']});}}[k(0x9a)](){const m=k;if(this[m(0x93)]['signal']?.[m(0x9d)]){const c=new mapper_1[(m(0xa0))](this[m(0x93)]['signal']['maps'],this['context']);return c[m(0xbc)]();}}[k(0xb5)](){const n=k;if(this[n(0x93)]['resolver']?.[n(0x9d)]){const c=new mapper_1[(n(0xa0))](this[n(0x93)]['resolver'][n(0x9d)],this[n(0xa6)]);return c[n(0xbc)]();}}async[k(0xc6)](){const o=k,c=pipe_1[o(0xba)][o(0xb6)](this['config'][o(0xa8)],this[o(0xa6)]),d=this['mapSignalData'](),e=pipe_1[o(0xba)][o(0xb6)](this['config'][o(0x7e)],this[o(0xa6)]),f=pipe_1[o(0xba)][o(0xb6)](this[o(0x93)][o(0x89)],this['context']);return await this[o(0x9c)][o(0xc1)](c,d,e,f);}async['hookAll'](){const p=k,c=this[p(0x9a)](),d=this[p(0xb5)]();this['config'][p(0xae)]&&(d[p(0xae)]=!![]);const e=pipe_1[p(0xba)]['resolve'](this[p(0x93)][p(0x95)],this['context']),f=pipe_1['Pipe'][p(0xb6)](this[p(0x93)][p(0xb8)],this[p(0xa6)]),g=[e+':'+f];return await this[p(0x9c)][p(0x86)](this[p(0x93)]['topic'],c,d,g);}}exports['Signal']=Signal;
1
+ 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x1ef;let h=e[f];return h;},b(c,d);}const k=b;function a(){const q=['hookOne','GetStateError','duplicate','mapActivityAttributes','engine','key_name','hookAll','endActivitySpan','metadata','resolve','status','join','3360248UxxKNr','hook','__esModule','message','code','../collator','resolveStatus','signal','scrub','signal-process-error','InactiveJobError','verifyEntry','error','app.activity.mids','filterAdjacent','Pipe','startActivitySpan','gid','transact','Signal','context','7enbPiG','signal-process-end','Activity','signal-collation-error','key_value','adjacencyList','maps','1136180UQzRWu','jid','2STrldE','info','mapOutputData','transition','mapResolverData','CollatorService','resolver','signal-inactive-job-error','4900250xOwwGb','config','2296972XssCgY','TelemetryService','topic','mapSignalData','debug','logger','length','setActivityError','3QWgvgF','4522848sUruQl','MapperService','store','signal-collation-overage','aid','signal-process','notarizeEarlyCompletion','guid','GenerationalError','appId','../pipe','mapJobData','../telemetry','mapRules','10071567jGHPtK','setStatus','2611350JDZhsK'];a=function(){return q;};return a();}(function(c,d){const j=b,e=c();while(!![]){try{const f=parseInt(j(0x222))/0x1*(parseInt(j(0x220))/0x2)+parseInt(j(0x234))/0x3*(-parseInt(j(0x22c))/0x4)+-parseInt(j(0x22a))/0x5+-parseInt(j(0x235))/0x6*(parseInt(j(0x219))/0x7)+parseInt(j(0x204))/0x8+parseInt(j(0x1f5))/0x9+parseInt(j(0x1f7))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x99654));Object['defineProperty'](exports,k(0x206),{'value':!![]}),exports[k(0x217)]=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require(k(0x209)),mapper_1=require('../mapper'),pipe_1=require(k(0x1f1)),telemetry_1=require(k(0x1f3)),activity_1=require('./activity');class Signal extends activity_1[k(0x21b)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async['process'](){const l=k;this[l(0x231)][l(0x230)](l(0x23a),{'jid':this[l(0x218)][l(0x200)][l(0x221)],'gid':this['context'][l(0x200)][l(0x215)],'aid':this['metadata']['aid']});let c;try{await this[l(0x20f)](),c=new telemetry_1[(l(0x22d))](this[l(0x1fc)][l(0x1f0)],this[l(0x22b)],this[l(0x200)],this[l(0x218)]),c[l(0x214)](this['leg']);const d=this[l(0x237)][l(0x216)]();this[l(0x21e)]=await this[l(0x212)](),this[l(0x224)](),this[l(0x1f2)](),await this['setState'](d),await collator_1[l(0x227)][l(0x23b)](this,d),await this[l(0x1f6)](this[l(0x21e)][l(0x232)]-0x1,d);const e=await d['exec']();this[l(0x22b)]['subtype']==='all'?await this[l(0x1fe)]():await this[l(0x1f8)]();const f=this[l(0x20a)](e),g={'app.job.jss':f},h=await this[l(0x225)](this[l(0x21e)],f);return h[l(0x232)]&&(g[l(0x211)]=h[l(0x203)](',')),c[l(0x1fb)](),c['setActivityAttributes'](g),this[l(0x218)][l(0x200)][l(0x239)];}catch(i){if(i instanceof errors_1[l(0x20e)]){this[l(0x231)][l(0x210)](l(0x229),{'error':i});return;}else{if(i instanceof errors_1[l(0x1ef)]){this[l(0x231)][l(0x223)]('process-event-generational-job-error',{'error':i});return;}else{if(i instanceof errors_1[l(0x1f9)]){this[l(0x231)][l(0x210)]('signal-get-state-error',{'error':i});return;}else{if(i instanceof errors_1['CollationError']){if(i['fault']===l(0x1fa)){this[l(0x231)]['info'](l(0x238),{'job_id':this['context']['metadata'][l(0x221)],'guid':this['context'][l(0x200)][l(0x23c)]});return;}this[l(0x231)][l(0x210)](l(0x21c),{'error':i});}else this[l(0x231)]['error'](l(0x20d),{'error':i});}}}c?.[l(0x233)](i[l(0x207)]);throw i;}finally{c?.[l(0x1ff)](),this[l(0x231)][l(0x230)](l(0x21a),{'jid':this[l(0x218)]['metadata']['jid'],'gid':this[l(0x218)][l(0x200)]['gid'],'aid':this[l(0x200)][l(0x239)]});}}[k(0x22f)](){const m=k;if(this['config'][m(0x20b)]?.[m(0x21f)]){const c=new mapper_1['MapperService'](this[m(0x22b)][m(0x20b)]['maps'],this[m(0x218)]);return c[m(0x1f4)]();}}[k(0x226)](){const n=k;if(this[n(0x22b)]['resolver']?.[n(0x21f)]){const c=new mapper_1[(n(0x236))](this[n(0x22b)][n(0x228)][n(0x21f)],this[n(0x218)]);return c[n(0x1f4)]();}}async[k(0x1f8)](){const o=k,c=pipe_1[o(0x213)][o(0x201)](this[o(0x22b)][o(0x22e)],this[o(0x218)]),d=this['mapSignalData'](),e=pipe_1[o(0x213)][o(0x201)](this[o(0x22b)][o(0x202)],this[o(0x218)]),f=pipe_1[o(0x213)][o(0x201)](this['config'][o(0x208)],this[o(0x218)]);return await this['engine'][o(0x205)](c,d,e,f);}async[k(0x1fe)](){const p=k,c=this['mapSignalData'](),d=this['mapResolverData']();this[p(0x22b)][p(0x20c)]&&(d[p(0x20c)]=!![]);const e=pipe_1['Pipe'][p(0x201)](this[p(0x22b)][p(0x1fd)],this[p(0x218)]),f=pipe_1[p(0x213)][p(0x201)](this[p(0x22b)][p(0x21d)],this[p(0x218)]),g=[e+':'+f];return await this[p(0x1fc)][p(0x1fe)](this['config']['topic'],c,d,g);}}exports['Signal']=Signal;
@@ -1 +1 @@
1
- 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=parseInt(k(0x11e))/0x1*(-parseInt(k(0x14a))/0x2)+parseInt(k(0x14e))/0x3+parseInt(k(0x14c))/0x4*(parseInt(k(0x149))/0x5)+parseInt(k(0x134))/0x6+parseInt(k(0x113))/0x7*(-parseInt(k(0x161))/0x8)+parseInt(k(0x175))/0x9*(-parseInt(k(0x117))/0xa)+parseInt(k(0x15f))/0xb*(parseInt(k(0x165))/0xc);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xd1df1));Object[l(0x12f)](exports,l(0x11d),{'value':!![]}),exports[l(0x13c)]=void 0x0;function b(c,d){const e=a();return b=function(f,g){f=f-0x10a;let h=e[f];return h;},b(c,d);}const errors_1=require(l(0x16a)),utils_1=require('../../modules/utils'),collator_1=require(l(0x110)),pipe_1=require(l(0x162)),reporter_1=require(l(0x131)),serializer_1=require(l(0x142)),telemetry_1=require(l(0x115)),activity_1=require('./activity');function a(){const G=['startsWith','forEach','getTriggerSeed','2985102QzLjMz','setStats','$job','trigger-collation-overage','getJobStatus','message','trigger-process','getTimeSeries','pending','resolveGranularity','key','info','granularity','../collator','trigger-process-end','aid','7649131YEvMxi','CollatorService','../telemetry','ngn','10uOKDXX','getState','ACTIVITY','endJobSpan','sleepFor','bindMarkerData','__esModule','129175oPNqDi','ReporterService','trigger-process-error','safeKey','jobId','endActivitySpan','setStateNX','notarizeInception','guid','KEYS','initDimensionalAddress','metadata/','config','keys','output/metadata/','store','error','defineProperty','logger','../reporter','transition','data','8001828UKYDcI','TelemetryService','length','toString','context','getDimensionalSeed','search','startJobSpan','Trigger','leg','execAdjacentParent','measures','resolveTriggerStatistics','app.activity.mids','../serializer','setExpired','setStatus','MDATA_SYMBOLS','transitionAndLogAdjacent','resolveJobKey','adjacencyList','80oJUrTL','10HsNdSj','trc','150764LGCpFe','debug','1525857fEWtwO','resolveJobId','Pipe','filterAdjacent','metadata','spn','engine','getVID','transact','setJobAttributes','duplicate-job-error','resolve','join','subscribes','Activity','appId','DEFAULT_GRANULARITY','11yqVQMC','mapActivityAttributes','8MpkLNr','../pipe','exec','DuplicateJobError','5815272HzuZkV','bindSearchData','mapJobData','marker','isInceptionOverage','../../modules/errors','createInputContext','formatISODate','jid','bindActivityMetadataPaths','process','stats','gid'];a=function(){return G;};return a();}class Trigger extends activity_1[l(0x15c)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0x16f)](c){const m=l;this[m(0x130)][m(0x14d)](m(0x17b),{'subscribes':this['config'][m(0x15b)]});let d;try{this['setLeg'](0x2),await this[m(0x118)](),d=new telemetry_1[(m(0x135))](this[m(0x154)]['appId'],this[m(0x12a)],this['metadata'],this[m(0x138)]),d[m(0x13b)](),d['startActivitySpan'](this[m(0x13d)]),this[m(0x167)](),this[m(0x148)]=await this[m(0x151)]();const e=this['initStatus'](c,this['adjacencyList']['length']);await this['setStateNX'](e),await this[m(0x144)](e),this['bindSearchData'](c),this[m(0x11c)](c);const f=this[m(0x12d)][m(0x156)]();await this['setState'](f),await this[m(0x176)](f);c?.[m(0x10b)]&&await this[m(0x143)](c?.['pending'],f);await collator_1[m(0x114)][m(0x125)](this,this[m(0x138)][m(0x152)]['guid'],f),await f[m(0x163)](),this[m(0x13e)](),d[m(0x160)]();const g=Number(this[m(0x138)][m(0x152)]['js']);d[m(0x157)]({'app.job.jss':g});const h={'app.job.jss':g};return await this[m(0x146)](c,g,h),d['setActivityAttributes'](h),this['context'][m(0x152)]['jid'];}catch(i){d?.['setActivityError'](i[m(0x17a)]);if(i instanceof errors_1['DuplicateJobError']){await(0x0,utils_1[m(0x11b)])(0x3e8);const j=await collator_1[m(0x114)][m(0x169)](this,this['context'][m(0x152)][m(0x126)]);if(j){this[m(0x130)][m(0x10e)](m(0x178),{'job_id':i[m(0x122)],'guid':this[m(0x138)][m(0x152)][m(0x126)]});return;}this[m(0x130)][m(0x12e)](m(0x158),{'job_id':i[m(0x122)],'guid':this[m(0x138)][m(0x152)][m(0x126)]});}else this[m(0x130)][m(0x12e)](m(0x120),{'error':i});throw i;}finally{d?.[m(0x11a)](),d?.[m(0x123)](),this[m(0x130)][m(0x14d)](m(0x111),{'subscribes':this['config'][m(0x15b)],'jid':this[m(0x138)]['metadata']['jid'],'gid':this[m(0x138)]['metadata'][m(0x171)]});}}async['transitionAndLogAdjacent'](c={},d,e){const n=l;if(isNaN(c[n(0x10b)])){const f=await this[n(0x132)](this[n(0x148)],d);f[n(0x136)]&&(e[n(0x141)]=f[n(0x15a)](','));}}['initStatus'](c={},d){const o=l;if(c[o(0x10b)])return-0x1;return d;}async[l(0x143)](c,d){const p=l;await this[p(0x12d)]['expireJob'](this['context'][p(0x152)][p(0x16d)],c,d);}['safeKey'](c){return'_'+c;}[l(0x166)](c){const q=l;c?.[q(0x13a)]&&Object['keys'](c[q(0x13a)])[q(0x173)](d=>{const r=q;this['context']['data'][this[r(0x121)](d)]=c[r(0x13a)][d][r(0x137)]();});}['bindMarkerData'](c){const s=l;c?.[s(0x168)]&&Object[s(0x12b)](c[s(0x168)])['forEach'](d=>{const t=s;d[t(0x172)]('-')&&(this[t(0x138)][t(0x133)][d]=c[t(0x168)][d][t(0x137)]());});}async['setStatus'](c){const u=l;this['context'][u(0x152)]['js']=c;}async[l(0x13e)](){const v=l;if(this['context'][v(0x152)]['px']){const c=(0x0,utils_1[v(0x16c)])(new Date()),d={'metadata':this['context'][v(0x152)],'data':{'job_id':this['context'][v(0x152)][v(0x16d)],'jc':c,'ju':c}};await this[v(0x154)]['execAdjacentParent'](this[v(0x138)],d);}}['createInputContext'](){const w=l,c={[this['metadata'][w(0x112)]]:{'input':{'data':this['data']}},'$self':{'input':{'data':this[w(0x133)]},'output':{'data':this[w(0x133)]}}};return c;}async['getState'](){const x=l,c=this[x(0x16b)](),d=this['resolveJobId'](c),e=this['resolveJobKey'](c),f=(0x0,utils_1['formatISODate'])(new Date()),{id:g,version:h}=await this[x(0x154)][x(0x155)]();this[x(0x128)](collator_1[x(0x114)][x(0x139)]());const i={...this[x(0x152)],'jid':d,'key':e,'as':collator_1[x(0x114)][x(0x174)]()};this[x(0x138)]={'metadata':{...this['metadata'],'gid':(0x0,utils_1[x(0x126)])(),'ngn':this['context'][x(0x152)][x(0x116)],'pj':this[x(0x138)]['metadata']['pj'],'pg':this[x(0x138)][x(0x152)]['pg'],'pd':this[x(0x138)][x(0x152)]['pd'],'pa':this['context'][x(0x152)]['pa'],'px':this[x(0x138)][x(0x152)]['px'],'app':g,'vrs':h,'tpc':this[x(0x12a)][x(0x15b)],'trc':this[x(0x138)][x(0x152)][x(0x14b)],'spn':this[x(0x138)][x(0x152)][x(0x153)],'guid':this[x(0x138)]['metadata']['guid'],'jid':d,'dad':collator_1[x(0x114)][x(0x139)](),'key':e,'jc':f,'ju':f,'ts':(0x0,utils_1[x(0x10a)])(this['resolveGranularity']()),'js':0x0},'data':{},[this[x(0x152)][x(0x112)]]:{'input':{'data':this[x(0x133)],'metadata':i},'output':{'data':this[x(0x133)],'metadata':i},'settings':{'data':{}},'errors':{'data':{}}}},this['context']['$self']=this['context'][this[x(0x152)][x(0x112)]],this['context'][x(0x177)]=this[x(0x138)];}['bindJobMetadataPaths'](){const y=l;return serializer_1[y(0x145)]['JOB'][y(0x127)]['map'](c=>y(0x129)+c);}[l(0x16e)](){const z=l;return serializer_1[z(0x145)][z(0x119)]['KEYS']['map'](c=>z(0x12c)+c);}[l(0x10c)](){const A=l;return this['config'][A(0x170)]?.[A(0x10f)]||reporter_1[A(0x11f)][A(0x15e)];}[l(0x179)](){const B=l;return this['context'][B(0x152)]['js'];}[l(0x14f)](c){const C=l,d=this[C(0x12a)][C(0x170)]?.['id'];return d?pipe_1['Pipe']['resolve'](d,c):(0x0,utils_1[C(0x126)])();}[l(0x147)](c){const D=l,d=this[D(0x12a)][D(0x170)]?.[D(0x10d)];return d?pipe_1[D(0x150)][D(0x159)](d,c):'';}async[l(0x124)](c){const E=l,d=this[E(0x138)][E(0x152)]['jid'];if(!await this['store'][E(0x124)](d,this[E(0x154)][E(0x15d)],c))throw new errors_1[(E(0x164))](d);}async[l(0x176)](c){const F=l,d=this[F(0x138)][F(0x152)];if(d['key']&&this[F(0x12a)][F(0x170)]?.[F(0x13f)]){const e=await this['engine'][F(0x155)](),f=new reporter_1[(F(0x11f))](e,this[F(0x12d)],this[F(0x130)]);await this[F(0x12d)][F(0x176)](d[F(0x10d)],d[F(0x16d)],d['ts'],f[F(0x140)](this[F(0x12a)],this[F(0x138)]),e,c);}}}exports[l(0x13c)]=Trigger;
1
+ 'use strict';const l=b;(function(c,d){const k=b,e=c();while(!![]){try{const f=-parseInt(k(0x1fd))/0x1+parseInt(k(0x201))/0x2+-parseInt(k(0x1ca))/0x3*(parseInt(k(0x1c9))/0x4)+-parseInt(k(0x1f5))/0x5+parseInt(k(0x1fb))/0x6*(-parseInt(k(0x1c0))/0x7)+-parseInt(k(0x1ee))/0x8*(parseInt(k(0x1a9))/0x9)+-parseInt(k(0x1b2))/0xa*(-parseInt(k(0x1c4))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xd6b1b));Object[l(0x1d7)](exports,l(0x1b5),{'value':!![]}),exports[l(0x1ef)]=void 0x0;const errors_1=require(l(0x1f2)),utils_1=require('../../modules/utils'),collator_1=require(l(0x1a4)),pipe_1=require('../pipe'),reporter_1=require(l(0x19f)),serializer_1=require(l(0x1de)),telemetry_1=require(l(0x207)),activity_1=require(l(0x1e7));function a(){const F=['resolveJobId','bindSearchData','defineProperty','length','getState','aid','ACTIVITY','setStatus','filterAdjacent','../serializer','setLeg','measures','getJobStatus','$job','store','ReporterService','message','resolve','./activity','CollatorService','error','keys','sleepFor','MDATA_SYMBOLS','setState','407784javYmi','Trigger','setExpired','guid','../../modules/errors','getVID','duplicate-job-error','5085220BRFqwd','bindJobMetadataPaths','bindMarkerData','pending','mapActivityAttributes','gid','50946wiIEeC','granularity','1457367CUAgrb','toString','resolveTriggerStatistics','startsWith','250792toupOM','mapJobData','setStateNX','leg','adjacencyList','endJobSpan','../telemetry','getTriggerSeed','setActivityAttributes','transact','createInputContext','formatISODate','../reporter','startJobSpan','bindActivityMetadataPaths','marker','debug','../collator','TelemetryService','jid','engine','trigger-process','117vPniSP','initStatus','trigger-collation-overage','search','trc','appId','jobId','output/metadata/','safeKey','30huEQSf','exec','initDimensionalAddress','__esModule','resolveGranularity','spn','getDimensionalSeed','metadata/','process','getTimeSeries','ngn','setStats','forEach','context','840QoqupE','subscribes','Pipe','app.activity.mids','21750102LgiMmT','transitionAndLogAdjacent','DuplicateJobError','logger','data','2500oswaqE','4905PthhJc','transition','metadata','KEYS','DEFAULT_GRANULARITY','map','join','key','stats','config','info'];a=function(){return F;};return a();}class Trigger extends activity_1['Activity']{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[l(0x1ba)](c){const m=l;this['logger'][m(0x1a3)](m(0x1a8),{'subscribes':this[m(0x1d3)][m(0x1c1)]});let d;try{this[m(0x1df)](0x2),await this['getState'](),d=new telemetry_1[(m(0x1a5))](this[m(0x1a7)][m(0x1ae)],this['config'],this[m(0x1cc)],this[m(0x1bf)]),d[m(0x1a0)](),d['startActivitySpan'](this[m(0x204)]),this[m(0x202)](),this[m(0x205)]=await this[m(0x1dd)]();const e=this['initStatus'](c,this[m(0x205)][m(0x1d8)]);await this[m(0x203)](e),await this[m(0x1dc)](e),this['bindSearchData'](c),this[m(0x1f7)](c);const f=this[m(0x1e3)][m(0x19c)]();await this[m(0x1ed)](f),await this['setStats'](f);c?.[m(0x1f8)]&&await this[m(0x1f0)](c?.['pending'],f);await collator_1[m(0x1e8)]['notarizeInception'](this,this['context'][m(0x1cc)][m(0x1f1)],f),await f[m(0x1b3)](),this['execAdjacentParent'](),d[m(0x1f9)]();const g=Number(this[m(0x1bf)][m(0x1cc)]['js']);d['setJobAttributes']({'app.job.jss':g});const h={'app.job.jss':g};return await this[m(0x1c5)](c,g,h),d[m(0x209)](h),this[m(0x1bf)][m(0x1cc)]['jid'];}catch(i){d?.['setActivityError'](i[m(0x1e5)]);if(i instanceof errors_1[m(0x1c6)]){await(0x0,utils_1[m(0x1eb)])(0x3e8);const j=await collator_1[m(0x1e8)]['isInceptionOverage'](this,this[m(0x1bf)]['metadata'][m(0x1f1)]);if(j){this[m(0x1c7)][m(0x1d4)](m(0x1ab),{'job_id':i[m(0x1af)],'guid':this[m(0x1bf)][m(0x1cc)][m(0x1f1)]});return;}this[m(0x1c7)][m(0x1e9)](m(0x1f4),{'job_id':i[m(0x1af)],'guid':this[m(0x1bf)][m(0x1cc)][m(0x1f1)]});}else this[m(0x1c7)][m(0x1e9)]('trigger-process-error',{'error':i});throw i;}finally{d?.[m(0x206)](),d?.['endActivitySpan'](),this[m(0x1c7)][m(0x1a3)]('trigger-process-end',{'subscribes':this[m(0x1d3)][m(0x1c1)],'jid':this[m(0x1bf)][m(0x1cc)][m(0x1a6)],'gid':this[m(0x1bf)][m(0x1cc)][m(0x1fa)]});}}async[l(0x1c5)](c={},d,e){const n=l;if(isNaN(c[n(0x1f8)])){const f=await this[n(0x1cb)](this[n(0x205)],d);f[n(0x1d8)]&&(e[n(0x1c3)]=f[n(0x1d0)](','));}}[l(0x1aa)](c={},d){if(c['pending'])return-0x1;return d;}async[l(0x1f0)](c,d){const o=l;await this['store']['expireJob'](this[o(0x1bf)][o(0x1cc)][o(0x1a6)],c,d);}[l(0x1b1)](c){return'_'+c;}[l(0x1d6)](c){const p=l;c?.['search']&&Object[p(0x1ea)](c[p(0x1ac)])[p(0x1be)](d=>{const q=p;this[q(0x1bf)][q(0x1c8)][this['safeKey'](d)]=c[q(0x1ac)][d][q(0x1fe)]();});}[l(0x1f7)](c){const r=l;c?.[r(0x1a2)]&&Object[r(0x1ea)](c['marker'])[r(0x1be)](d=>{const s=r;d[s(0x200)]('-')&&(this[s(0x1bf)][s(0x1c8)][d]=c['marker'][d][s(0x1fe)]());});}async[l(0x1dc)](c){const t=l;this[t(0x1bf)]['metadata']['js']=c;}async['execAdjacentParent'](){const u=l;if(this['context'][u(0x1cc)]['px']){const c=(0x0,utils_1['formatISODate'])(new Date()),d={'metadata':this[u(0x1bf)][u(0x1cc)],'data':{'job_id':this[u(0x1bf)]['metadata'][u(0x1a6)],'jc':c,'ju':c}};await this[u(0x1a7)]['execAdjacentParent'](this[u(0x1bf)],d);}}[l(0x19d)](){const v=l,c={[this[v(0x1cc)]['aid']]:{'input':{'data':this['data']}},'$self':{'input':{'data':this[v(0x1c8)]},'output':{'data':this[v(0x1c8)]}}};return c;}async[l(0x1d9)](){const w=l,c=this[w(0x19d)](),d=this[w(0x1d5)](c),e=this['resolveJobKey'](c),f=(0x0,utils_1[w(0x19e)])(new Date()),{id:g,version:h}=await this[w(0x1a7)][w(0x1f3)]();this[w(0x1b4)](collator_1['CollatorService'][w(0x1b8)]());const i={...this[w(0x1cc)],'jid':d,'key':e,'as':collator_1[w(0x1e8)][w(0x208)]()};this[w(0x1bf)]={'metadata':{...this[w(0x1cc)],'gid':(0x0,utils_1[w(0x1f1)])(),'ngn':this[w(0x1bf)][w(0x1cc)][w(0x1bc)],'pj':this['context'][w(0x1cc)]['pj'],'pg':this['context'][w(0x1cc)]['pg'],'pd':this[w(0x1bf)][w(0x1cc)]['pd'],'pa':this[w(0x1bf)][w(0x1cc)]['pa'],'px':this[w(0x1bf)][w(0x1cc)]['px'],'app':g,'vrs':h,'tpc':this[w(0x1d3)][w(0x1c1)],'trc':this[w(0x1bf)]['metadata'][w(0x1ad)],'spn':this[w(0x1bf)]['metadata'][w(0x1b7)],'guid':this['context'][w(0x1cc)][w(0x1f1)],'jid':d,'dad':collator_1['CollatorService'][w(0x1b8)](),'key':e,'jc':f,'ju':f,'ts':(0x0,utils_1[w(0x1bb)])(this[w(0x1b6)]()),'js':0x0},'data':{},[this[w(0x1cc)]['aid']]:{'input':{'data':this[w(0x1c8)],'metadata':i},'output':{'data':this[w(0x1c8)],'metadata':i},'settings':{'data':{}},'errors':{'data':{}}}},this[w(0x1bf)]['$self']=this[w(0x1bf)][this[w(0x1cc)][w(0x1da)]],this['context'][w(0x1e2)]=this[w(0x1bf)];}[l(0x1f6)](){const x=l;return serializer_1[x(0x1ec)]['JOB'][x(0x1cd)][x(0x1cf)](c=>x(0x1b9)+c);}[l(0x1a1)](){const y=l;return serializer_1[y(0x1ec)][y(0x1db)][y(0x1cd)][y(0x1cf)](c=>y(0x1b0)+c);}['resolveGranularity'](){const z=l;return this[z(0x1d3)][z(0x1d2)]?.[z(0x1fc)]||reporter_1[z(0x1e4)][z(0x1ce)];}[l(0x1e1)](){const A=l;return this[A(0x1bf)][A(0x1cc)]['js'];}['resolveJobId'](c){const B=l,d=this[B(0x1d3)][B(0x1d2)]?.['id'];return d?pipe_1[B(0x1c2)][B(0x1e6)](d,c):(0x0,utils_1[B(0x1f1)])();}['resolveJobKey'](c){const C=l,d=this[C(0x1d3)][C(0x1d2)]?.[C(0x1d1)];return d?pipe_1[C(0x1c2)][C(0x1e6)](d,c):'';}async[l(0x203)](c){const D=l,d=this[D(0x1bf)][D(0x1cc)][D(0x1a6)];if(!await this[D(0x1e3)][D(0x203)](d,this[D(0x1a7)][D(0x1ae)],c))throw new errors_1['DuplicateJobError'](d);}async[l(0x1bd)](c){const E=l,d=this[E(0x1bf)][E(0x1cc)];if(d[E(0x1d1)]&&this[E(0x1d3)][E(0x1d2)]?.[E(0x1e0)]){const e=await this['engine'][E(0x1f3)](),f=new reporter_1[(E(0x1e4))](e,this['store'],this[E(0x1c7)]);await this['store'][E(0x1bd)](d[E(0x1d1)],d['jid'],d['ts'],f[E(0x1ff)](this[E(0x1d3)],this['context']),e,c);}}}function b(c,d){const e=a();return b=function(f,g){f=f-0x19c;let h=e[f];return h;},b(c,d);}exports['Trigger']=Trigger;
@@ -1 +1 @@
1
- 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x95;let h=e[f];return h;},b(c,d);}const j=b;function a(){const m=['setActivityError','retry','../../modules/utils','context','1446579KhYWuy','../pipe','policies','startActivitySpan','./activity','info','gid','output','exec','metadata','758394iWSqwV','engine','data','execActivity','await-inactive-job-error','../telemetry','$self','537431GPBaDf','Pipe','logger','defineProperty','6248IbgrLc','aid','4BQNeAe','store','duplicate','l1s','Worker','jid','fault','authorizeReentry','message','publishMessage','setActivityAttributes','TelemetryService','leg','transact','worker-collation-overage','297hPHkhK','1350870tjvtNA','process','2600945prZbfb','worker-get-state-error','trc','config','subtype','../collator','CollatorService','error','77npFZoC','GenerationalError','Activity','2060784QWifTO','process-event-generational-job-error','resolve','worker-process','debug','worker-process-error','appId','../../modules/errors','guid','endActivitySpan','12XFnvGP'];a=function(){return m;};return a();}(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0xcb))/0x1*(-parseInt(i(0xd1))/0x2)+-parseInt(i(0xba))/0x3+-parseInt(i(0xab))/0x4+parseInt(i(0xa0))/0x5*(-parseInt(i(0xb5))/0x6)+parseInt(i(0xa8))/0x7*(-parseInt(i(0xcf))/0x8)+parseInt(i(0xc4))/0x9+-parseInt(i(0x9e))/0xa*(-parseInt(i(0x9d))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x9505b));Object[j(0xce)](exports,'__esModule',{'value':!![]}),exports[j(0xd5)]=void 0x0;const errors_1=require(j(0xb2)),utils_1=require(j(0xb8)),collator_1=require(j(0xa5)),pipe_1=require(j(0xbb)),telemetry_1=require(j(0xc9)),activity_1=require(j(0xbe));class Worker extends activity_1[j(0xaa)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x9f)](){const k=j;this[k(0xcd)][k(0xaf)](k(0xae),{'jid':this[k(0xb9)][k(0xc3)]['jid'],'gid':this[k(0xb9)]['metadata'][k(0xc0)],'aid':this[k(0xc3)][k(0xd0)]});let c;try{await this['verifyEntry'](),c=new telemetry_1[(k(0x99))](this[k(0xc5)][k(0xb1)],this[k(0xa3)],this[k(0xc3)],this['context']),c[k(0xbd)](this[k(0x9a)]),this['mapInputData']();const d=this[k(0xd2)][k(0x9b)](),e=await this[k(0xc7)](d);await collator_1[k(0xa6)][k(0x95)](this,d),await this['setState'](d),await this['setStatus'](0x0,d);const f=await d[k(0xc2)]();c['mapActivityAttributes']();const g=this['resolveStatus'](f);return c[k(0x98)]({'app.activity.mid':e,'app.job.jss':g}),this['context'][k(0xc3)]['aid'];}catch(h){if(h instanceof errors_1['InactiveJobError']){this[k(0xcd)][k(0xa7)](k(0xc8),{'error':h});return;}else{if(h instanceof errors_1[k(0xa9)]){this[k(0xcd)]['info'](k(0xac),{'error':h});return;}else{if(h instanceof errors_1['GetStateError']){this[k(0xcd)][k(0xa7)](k(0xa1),{'error':h});return;}else{if(h instanceof errors_1['CollationError']){if(h[k(0xd7)]===k(0xd3)){this['logger'][k(0xbf)](k(0x9c),{'job_id':this['context'][k(0xc3)][k(0xd6)],'guid':this[k(0xb9)]['metadata'][k(0xb3)]});return;}this[k(0xcd)][k(0xa7)]('worker-collation-error',{'error':h});}else this['logger'][k(0xa7)](k(0xb0),{'error':h});}}}c?.[k(0xb6)](h[k(0x96)]);throw h;}finally{c?.[k(0xb4)](),this['logger'][k(0xaf)]('worker-process-end',{'jid':this[k(0xb9)][k(0xc3)]['jid'],'gid':this['context']['metadata'][k(0xc0)],'aid':this[k(0xc3)]['aid']});}}async[j(0xc7)](c){const l=j,d=pipe_1[l(0xcc)][l(0xad)](this[l(0xa3)][l(0xa4)],this['context']),e={'metadata':{'guid':(0x0,utils_1[l(0xb3)])(),'jid':this[l(0xb9)][l(0xc3)][l(0xd6)],'gid':this['context'][l(0xc3)]['gid'],'dad':this[l(0xc3)]['dad'],'aid':this['metadata']['aid'],'topic':d,'spn':this['context'][l(0xca)][l(0xc1)][l(0xc3)][l(0xd4)],'trc':this[l(0xb9)][l(0xc3)][l(0xa2)]},'data':this[l(0xb9)][l(0xc6)]};return this[l(0xa3)][l(0xb7)]&&(e[l(0xbc)]={'retry':this[l(0xa3)][l(0xb7)]}),await this[l(0xc5)]['router']?.[l(0x97)](d,e,c);}}exports[j(0xd5)]=Worker;
1
+ 'use strict';function b(c,d){const e=a();return b=function(f,g){f=f-0x133;let h=e[f];return h;},b(c,d);}const j=b;(function(c,d){const i=b,e=c();while(!![]){try{const f=parseInt(i(0x165))/0x1+-parseInt(i(0x148))/0x2*(-parseInt(i(0x167))/0x3)+-parseInt(i(0x13e))/0x4*(-parseInt(i(0x15b))/0x5)+parseInt(i(0x14a))/0x6*(parseInt(i(0x13a))/0x7)+-parseInt(i(0x173))/0x8*(parseInt(i(0x169))/0x9)+-parseInt(i(0x166))/0xa*(parseInt(i(0x160))/0xb)+-parseInt(i(0x15c))/0xc*(parseInt(i(0x154))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x99273));Object[j(0x157)](exports,'__esModule',{'value':!![]}),exports[j(0x147)]=void 0x0;function a(){const m=['retry','message','config','verifyEntry','execActivity','dad','worker-collation-overage','guid','380648jBGyTb','output','../../modules/errors','mapActivityAttributes','$self','GenerationalError','logger','worker-collation-error','resolveStatus','../../modules/utils','aid','appId','6939569ttVUqB','Pipe','publishMessage','context','4tTnYob','error','policies','info','TelemetryService','../telemetry','GetStateError','./activity','worker-process-error','Worker','29822NYERHI','authorizeReentry','6PtySHG','CollatorService','resolve','gid','jid','process-event-generational-job-error','trc','fault','../pipe','startActivitySpan','4138394ioggeZ','setActivityAttributes','mapInputData','defineProperty','debug','exec','metadata','2018310InrVIR','36AbKjDs','CollationError','duplicate','../collator','2938111IQiaAZ','subtype','Activity','process','endActivitySpan','629143teWCGU','10fZiGVb','51XZznMp','InactiveJobError','81lDUhbJ','engine'];a=function(){return m;};return a();}const errors_1=require(j(0x175)),utils_1=require(j(0x137)),collator_1=require(j(0x15f)),pipe_1=require(j(0x152)),telemetry_1=require(j(0x143)),activity_1=require(j(0x145));class Worker extends activity_1[j(0x162)]{constructor(c,d,e,f,g,h){super(c,d,e,f,g,h);}async[j(0x163)](){const k=j;this[k(0x134)][k(0x158)]('worker-process',{'jid':this[k(0x13d)][k(0x15a)][k(0x14e)],'gid':this['context'][k(0x15a)][k(0x14d)],'aid':this[k(0x15a)][k(0x138)]});let c;try{await this[k(0x16e)](),c=new telemetry_1[(k(0x142))](this[k(0x16a)][k(0x139)],this[k(0x16d)],this[k(0x15a)],this[k(0x13d)]),c[k(0x153)](this['leg']),this[k(0x156)]();const d=this['store']['transact'](),e=await this[k(0x16f)](d);await collator_1[k(0x14b)][k(0x149)](this,d),await this['setState'](d),await this['setStatus'](0x0,d);const f=await d[k(0x159)]();c[k(0x176)]();const g=this[k(0x136)](f);return c[k(0x155)]({'app.activity.mid':e,'app.job.jss':g}),this[k(0x13d)][k(0x15a)]['aid'];}catch(h){if(h instanceof errors_1[k(0x168)]){this['logger']['error']('await-inactive-job-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x133)]){this[k(0x134)][k(0x141)](k(0x14f),{'error':h});return;}else{if(h instanceof errors_1[k(0x144)]){this[k(0x134)][k(0x13f)]('worker-get-state-error',{'error':h});return;}else{if(h instanceof errors_1[k(0x15d)]){if(h[k(0x151)]===k(0x15e)){this['logger'][k(0x141)](k(0x171),{'job_id':this[k(0x13d)][k(0x15a)][k(0x14e)],'guid':this[k(0x13d)][k(0x15a)][k(0x172)]});return;}this[k(0x134)][k(0x13f)](k(0x135),{'error':h});}else this[k(0x134)][k(0x13f)](k(0x146),{'error':h});}}}c?.['setActivityError'](h[k(0x16c)]);throw h;}finally{c?.[k(0x164)](),this[k(0x134)][k(0x158)]('worker-process-end',{'jid':this[k(0x13d)][k(0x15a)][k(0x14e)],'gid':this['context']['metadata'][k(0x14d)],'aid':this[k(0x15a)][k(0x138)]});}}async['execActivity'](c){const l=j,d=pipe_1[l(0x13b)][l(0x14c)](this[l(0x16d)][l(0x161)],this[l(0x13d)]),e={'metadata':{'guid':(0x0,utils_1[l(0x172)])(),'jid':this[l(0x13d)][l(0x15a)][l(0x14e)],'gid':this[l(0x13d)][l(0x15a)]['gid'],'dad':this['metadata'][l(0x170)],'aid':this[l(0x15a)][l(0x138)],'topic':d,'spn':this[l(0x13d)][l(0x177)][l(0x174)][l(0x15a)]['l1s'],'trc':this[l(0x13d)]['metadata'][l(0x150)]},'data':this[l(0x13d)]['data']};return this[l(0x16d)][l(0x16b)]&&(e[l(0x140)]={'retry':this['config'][l(0x16b)]}),await this[l(0x16a)]['router']?.[l(0x13c)](d,e,c);}}exports[j(0x147)]=Worker;