@hotmeshio/hotmesh
Version:
Serverless Workflow
1 lines • 6.27 kB
JavaScript
'use strict';const r=b;(function(c,d){const q=b,e=c();while(!![]){try{const f=parseInt(q(0x1ab))/0x1*(-parseInt(q(0x190))/0x2)+-parseInt(q(0x18a))/0x3*(parseInt(q(0x165))/0x4)+-parseInt(q(0x172))/0x5*(parseInt(q(0x196))/0x6)+-parseInt(q(0x1a6))/0x7*(parseInt(q(0x1a5))/0x8)+parseInt(q(0x1a1))/0x9+parseInt(q(0x184))/0xa*(parseInt(q(0x1a4))/0xb)+parseInt(q(0x1ad))/0xc;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x46bc1));function a(){const R=['config','../../types/collator','isInactive','129130kRZAyd','resolveReentryDimension','notarizeEarlyExit','verifyInteger','888000001000001','MISSING','51LdOVmm','targetLength','lastIndexOf','forEach','getDimensionalAddress','INACTIVE','43182rODIBr','jid','transitions','collateSynthetic','store','notarizeReentry','6qoQBJC','aid','authorizeReentry','CollationFaultType','isArray','CollationError','exec','trigger','FORBIDDEN','enter','bindAncestorArray','3164769LUtYwB','indexOf','type','418CPAahH','8kvfMLK','3589691zsZWPY','notarizeEntry','substring','cycle','__esModule','15QIWKyJ','ancestors','5185020NWPOdz','length','getDimensionsById','context','isPrimed','DUPLICATE','27512eWnbRV','join','find','push','999000000000000','isDuplicate','getDigitAtIndex','notarizeContinuation','collator-trigger-activity-not-found','dad','getSeed','getDimensionalIndex','reverse','155435gdwctj','notarizeInception','getTriggerSeed','CollatorService','metadata','split','getDimensionalSeed','toString','leg','verifySyntheticInteger','activities','notarizeEarlyCompletion','defineProperty','collate','ancestor'];a=function(){return R;};return a();}Object[r(0x17e)](exports,r(0x1aa),{'value':!0x0}),exports[r(0x175)]=void 0x0;const errors_1=require('../../modules/errors'),collator_1=require(r(0x182));function b(c,d){const e=a();return b=function(f,g){f=f-0x163;let h=e[f];return h;},b(c,d);}class CollatorService{static['assertJobActive'](c,d,f,g=0x0){if(c<=g)throw new errors_1['InactiveJobError'](d,c,f);}static[r(0x18e)](c,d=!0x1){const s=r;let f=c[s(0x1b0)][s(0x176)][s(0x16e)]||c['metadata'][s(0x16e)];return d&&f&&0x2===c[s(0x17a)]&&(f=f[s(0x1a8)](0x0,f[s(0x18c)](','))+',0'),CollatorService[s(0x1af)]([...c[s(0x181)]['ancestors'],c[s(0x176)]['aid']],f);}static[r(0x185)](c){const t=r,d=c['config'][t(0x180)],f=c[t(0x181)][t(0x1ac)][t(0x1a2)](d),g=c[t(0x176)][t(0x16e)][t(0x177)](',');return g[t(0x1ae)]=f+0x1,g[t(0x168)]('0'),g[t(0x166)](',');}static async[r(0x1a7)](c,d){const u=r,f=await c['store'][u(0x17f)](c[u(0x1b0)][u(0x176)]['jid'],c['metadata'][u(0x197)],-0x5af3107a4000,this['getDimensionalAddress'](c),d);return this[u(0x187)](f,0x1,'enter'),f;}static async[r(0x198)](c,d){const v=r;return await c['store'][v(0x17f)](c[v(0x1b0)][v(0x176)][v(0x191)],c['metadata'][v(0x197)],-0x9184e72a000,this[v(0x18e)](c),d);}static async[r(0x186)](c,d){const w=r;return await c[w(0x194)]['collate'](c[w(0x1b0)][w(0x176)][w(0x191)],c['metadata'][w(0x197)],-0xa012317b000,this[w(0x18e)](c),d);}static async[r(0x17d)](c,d){const x=r,f=c[x(0x181)][x(0x1a9)]?0x9184e72a000:0xa012317b000;return await c[x(0x194)][x(0x17f)](c[x(0x1b0)][x(0x176)][x(0x191)],c[x(0x176)][x(0x197)],0xf4241-f,this[x(0x18e)](c),d);}static async[r(0x173)](c,d,f){const y=r;d&&await c['store'][y(0x193)](c[y(0x1b0)][y(0x176)][y(0x191)],d,0xf4240,f);}static async['isInceptionOverage'](c,d){const z=r;if(d)return await c[z(0x194)][z(0x193)](c[z(0x1b0)][z(0x176)][z(0x191)],d,0xf4240)>0xf4240;return!0x1;}static async[r(0x195)](c,d,f){const A=r,g=c[A(0x1b0)]['metadata'][A(0x191)],h=f||c[A(0x194)]['transact']();await c[A(0x194)][A(0x17f)](g,c['metadata'][A(0x197)],0xf4240,this['getDimensionalAddress'](c,!0x0),h),await c[A(0x194)][A(0x193)](g,d,0xf4240,h);const [j,k]=await h[A(0x19c)](),m=Array[A(0x19a)](j)?j[0x1]:j,p=Array[A(0x19a)](k)?k[0x1]:k;return this[A(0x187)](m,0x2,A(0x19f)),this[A(0x17b)](p),m;}static async[r(0x16c)](c,d){const B=r;return await c['store'][B(0x17f)](c[B(0x1b0)][B(0x176)]['jid'],c[B(0x176)]['aid'],0x1,this[B(0x18e)](c),d);}static async['notarizeCompletion'](c,d){const C=r,f=c[C(0x181)][C(0x1a9)]?0x0:0xe8d4a51000;return await c['store'][C(0x17f)](c['context'][C(0x176)][C(0x191)],c['metadata'][C(0x197)],0x1-f,this[C(0x18e)](c),d);}static['getDigitAtIndex'](c,d){const D=r,f=c[D(0x179)]();if(d<0x0||d>=f[D(0x1ae)])return null;return parseInt(f[d],0xa);}static[r(0x170)](c){const E=r,d=c[E(0x179)]();if(d['length']<0x9)return null;const f=d['substring'](0x3,0x9);return parseInt(f,0xa)-0x1;}static['isDuplicate'](c,d){const F=r;return this[F(0x16b)](c,d)<0x8;}static[r(0x183)](c){const G=r;return this[G(0x16b)](c,0x2)<0x9;}static['isPrimed'](c,d){return 0x1==d?-0x5af3107a4000!=c:this['getDigitAtIndex'](c,0x0)<0x9&&this['getDigitAtIndex'](c,0x1)<0x9;}static[r(0x17b)](c){const H=r,d=c[H(0x179)]();if(parseInt(d[d['length']-0x1],0xa)>0x0)throw new errors_1['CollationError'](c,0x2,'enter',collator_1[H(0x199)]['INACTIVE']);if(c>=0x1e8480)throw new errors_1[(H(0x19b))](c,0x2,H(0x19f),collator_1[H(0x199)][H(0x164)]);}static[r(0x187)](c,d,f){const I=r;let g;if(0x1===d&&I(0x19f)===f?this[I(0x163)](c,0x1)?this[I(0x16a)](c,0x0)?g=collator_1[I(0x199)][I(0x164)]:0x331a2bfa73000!=c&&(g=collator_1['CollationFaultType']['INVALID']):g=collator_1[I(0x199)][I(0x189)]:0x1===d&&'exit'===f?-0x9184e72a000===c?g=collator_1[I(0x199)]['MISSING']:this[I(0x16a)](c,0x1)&&(g=collator_1[I(0x199)][I(0x164)]):0x2===d&&'enter'===f&&(this[I(0x163)](c,0x2)?this[I(0x183)](c)&&(g=collator_1[I(0x199)][I(0x18f)]):g=collator_1[I(0x199)][I(0x19e)]),g)throw new errors_1['CollationError'](c,d,f,g);}static[r(0x1af)](c,d){const J=r,f={'$ADJACENT':d+',0'};let g=d;return c[J(0x171)]()[J(0x18d)](h=>{const K=J;f[h]=g,g=g[K(0x1a8)](0x0,g[K(0x18c)](','));}),f;}static[r(0x16f)](){const L=r;return L(0x169);}static[r(0x174)](){const M=r;return M(0x188);}static['compile'](c){const N=r;CollatorService[N(0x1a0)](c);}static[r(0x1a0)](c){const O=r;c[O(0x18d)](d=>{const P=O,f={},g=Object['keys'](d[P(0x17c)])[P(0x167)](j=>P(0x19d)===d['activities'][j][P(0x1a3)]);if(!g)throw new Error(P(0x16d));const h=(j,k)=>{const Q=P;f[j]=k,d[Q(0x17c)][j][Q(0x1ac)]=k,(d[Q(0x192)]?.[j]||[])['forEach'](l=>{h(l['to'],[...k,j]);});};h(g,[]);});}static[r(0x178)](c=0x0){return','+c;}}exports[r(0x175)]=CollatorService,CollatorService[r(0x18b)]=0xf;