UNPKG

prisma-zod-generator

Version:

Prisma 2+ generator to emit Zod schemas from your Prisma schema

1 lines 32.7 kB
'use strict';function pzg_0x257935(_0x23d8c6,_0x4554d0,_0x39be06,_0xc7cca1){return pzg_0x5747(_0x4554d0- -0x388,_0x39be06);}(function(_0x307904,_0x458132){function _0x59c05e(_0x13b963,_0x49c489,_0x505e6e,_0x5e417f){return pzg_0x5747(_0x5e417f- -0x22,_0x13b963);}const _0x3bfcae=_0x307904();function _0x21099e(_0x260237,_0x4b6eef,_0x6b1e8a,_0x47aceb){return pzg_0x5747(_0x260237-0x84,_0x6b1e8a);}while(!![]){try{const _0x47d9a1=-parseInt(_0x59c05e(0x1e1,0x1ed,0x1ca,0x20d))/(0x14d1*-0x1+-0x1d77+0x1*0x3249)+-parseInt(_0x59c05e(0x1e8,0x1d6,0x196,0x1da))/(0xb2a*0x2+0x4e3+0x1b35*-0x1)*(-parseInt(_0x59c05e(0x273,0x233,0x222,0x243))/(0xc*0x2f6+-0x1*0x10db+0x12aa*-0x1))+parseInt(_0x21099e(0x2ac,0x2db,0x2bc,0x2c3))/(-0xafb+-0x1df8+-0x28f7*-0x1)+parseInt(_0x59c05e(0x1ed,0x234,0x219,0x233))/(0xfc+-0x137c+0x1285)+parseInt(_0x21099e(0x2c9,0x308,0x286,0x2a6))/(-0x5e0+-0x96d+-0xf53*-0x1)*(-parseInt(_0x59c05e(0x20a,0x1ec,0x251,0x21b))/(0x3*-0xa59+0x454+0x1abe))+-parseInt(_0x21099e(0x2d4,0x2cb,0x2c9,0x2ae))/(0x14df+-0x213e+0xc67)*(-parseInt(_0x21099e(0x263,0x236,0x22a,0x245))/(-0x212a+0x150+0x9*0x38b))+-parseInt(_0x59c05e(0x218,0x243,0x223,0x214))/(0x1f68+-0x3*0xa43+-0x95);if(_0x47d9a1===_0x458132)break;else _0x3bfcae['push'](_0x3bfcae['shift']());}catch(_0x3c96f7){_0x3bfcae['push'](_0x3bfcae['shift']());}}}(pzg_0x14ac,0x80f16+-0x24c*0x678+0x14a9b0));const pzg_0x2c58d0={};pzg_0x2c58d0[pzg_0x257935(-0x15f,-0x16c,-0x14c,-0x129)]=!![],Object[pzg_0x28122d(0x4e2,0x482,0x4fb,0x4c4)+pzg_0x257935(-0x14d,-0x16a,-0x13e,-0x19f)](exports,pzg_0x257935(-0x157,-0x180,-0x140,-0x149),pzg_0x2c58d0),exports['parseSchem'+pzg_0x257935(-0x18a,-0x181,-0x164,-0x157)]=parseSchemaComments,exports[pzg_0x28122d(0x4e1,0x4b3,0x4fd,0x4ce)+'ields']=getTenantFields,exports[pzg_0x28122d(0x4c6,0x493,0x4ed,0x4cc)+pzg_0x257935(-0x1d8,-0x1ab,-0x1b4,-0x1aa)+pzg_0x28122d(0x507,0x511,0x4e7,0x518)]=detectTenantFieldsFromSchema,exports[pzg_0x28122d(0x4e5,0x481,0x49a,0x4c0)+pzg_0x257935(-0x12a,-0x128,-0x104,-0x168)+pzg_0x28122d(0x555,0x4f5,0x4d6,0x512)]=getReadRestrictedFields,exports[pzg_0x257935(-0x164,-0x183,-0x16d,-0x13d)+'strictedFi'+pzg_0x257935(-0x167,-0x122,-0x136,-0x15f)]=getWriteRestrictedFields,exports[pzg_0x257935(-0x13f,-0x15a,-0x16c,-0x145)+'ds']=getPIIFields,exports[pzg_0x257935(-0x13b,-0x127,-0xe6,-0x117)]=hasPolicy,exports[pzg_0x257935(-0x163,-0x19f,-0x179,-0x169)+pzg_0x28122d(0x511,0x50f,0x56b,0x547)]=getTenantPolicies,exports['getFieldRe'+pzg_0x257935(-0x19c,-0x18a,-0x144,-0x158)]=getFieldRestrictions,exports[pzg_0x257935(-0x1c2,-0x1a0,-0x1cb,-0x1dc)+pzg_0x257935(-0x1ec,-0x1ad,-0x1ec,-0x1a0)]=getValuePolicies,exports[pzg_0x257935(-0x1cb,-0x199,-0x1bf,-0x190)+pzg_0x257935(-0x17d,-0x186,-0x151,-0x19d)+pzg_0x28122d(0x550,0x4da,0x4fc,0x514)]=generateTenantWhereClause;function parsePolicyComment(_0x4b3f9f){const _0x22aa03={};_0x22aa03[_0x3ff50f(0x15b,0x147,0x11f,0x11a)]=function(_0x420d33,_0xacc68c){return _0x420d33===_0xacc68c;},_0x22aa03['GDtpF']=_0x3ff50f(0x199,0x1d7,0x1b0,0x1b6);const _0x32e9ac=_0x22aa03;function _0x3ff50f(_0x155680,_0x14ac5d,_0x2444cb,_0x2eec3f){return pzg_0x257935(_0x155680-0x137,_0x155680-0x2ee,_0x2444cb,_0x2eec3f-0x43);}const _0x24344b=_0x4b3f9f[_0x31b852(-0x165,-0x13b,-0x14a,-0x189)](/@policy\s+(read|write|deny|update|delete|create):(where|fields|values)\s+(.+)/);if(_0x24344b){const [,_0x44235b,_0x26994e,_0x5ed5dd]=_0x24344b,_0x2f2542={'type':_0x44235b,'subtype':_0x26994e,'condition':_0x5ed5dd['trim']()};if(_0x32e9ac[_0x31b852(-0x1b8,-0x1b7,-0x1a0,-0x1e4)](_0x26994e,_0x3ff50f(0x144,0x167,0x186,0x106))){const _0x272c46=_0x5ed5dd['match'](/(\w+)\s*(==|!=|in|not_in|contains|starts_with|ends_with)\s*(.+)/);if(_0x272c46){const [,_0x2d2bf3,_0x4a033a,_0x5f3dde]=_0x272c46;_0x2f2542[_0x31b852(-0x19f,-0x125,-0x16c,-0x19e)]=_0x2d2bf3,_0x2f2542[_0x3ff50f(0x16a,0x1a5,0x16d,0x176)]=_0x4a033a;const _0x3d0203=_0x5f3dde[_0x3ff50f(0x1b1,0x18b,0x1e9,0x1e1)](/ctx\.(\w+)/);_0x3d0203&&(_0x2f2542[_0x31b852(-0x146,-0x103,-0x141,-0x14e)+'iable']=_0x3d0203[0x22f1+0xeb9*0x1+0x31a9*-0x1]);}}if(_0x32e9ac[_0x31b852(-0x172,-0x19d,-0x1a0,-0x181)](_0x26994e,_0x32e9ac[_0x31b852(-0x144,-0x166,-0x131,-0x155)])){const _0xd22d2a=_0x5ed5dd[_0x31b852(-0x15e,-0x12b,-0x14a,-0x11d)](/\[([^\]]+)\]/);_0xd22d2a&&(_0x2f2542['fields']=_0xd22d2a[-0x9*-0x1c3+-0x12d7+0x2fd][_0x31b852(-0x163,-0x182,-0x13c,-0xfa)](',')['map'](_0x2af639=>_0x2af639[_0x3ff50f(0x1c8,0x183,0x1fb,0x1be)]()[_0x31b852(-0x173,-0x16a,-0x178,-0x1a1)](/["\']/g,'')));}return _0x2f2542;}const _0x439ae0=_0x4b3f9f[_0x31b852(-0x111,-0x151,-0x14a,-0x135)](/@policy\s+(read|write|deny):(.+)/);if(!_0x439ae0)return null;function _0x31b852(_0x46e32a,_0x5c1f67,_0x3ef983,_0x354576){return pzg_0x28122d(_0x46e32a-0x111,_0x5c1f67-0xb,_0x5c1f67,_0x3ef983- -0x675);}const [,_0x4da782,_0x18b5f4]=_0x439ae0;return{'type':_0x4da782,'condition':_0x18b5f4[_0x31b852(-0x168,-0xed,-0x133,-0x16b)]()};}function parsePIIComment(_0x1f79e7){const _0x33ee85={};_0x33ee85[_0x2f87bb(0x2e0,0x2a8,0x2d9,0x2d3)]=_0x2f87bb(0x323,0x306,0x307,0x322);function _0x2f87bb(_0x194b57,_0x4b8493,_0x36a023,_0x278a9f){return pzg_0x257935(_0x194b57-0x1ed,_0x278a9f-0x46a,_0x4b8493,_0x278a9f-0x1e7);}_0x33ee85['uAdrC']=_0x987584(0x1ed,0x1c1,0x205,0x227);const _0x2ddcac=_0x33ee85,_0x5956d7=_0x1f79e7['match'](/@pii\s+(\w+)(?:\s+(.+))?/);function _0x987584(_0x4b7b50,_0xde0499,_0x2a7f39,_0x4552f9){return pzg_0x257935(_0x4b7b50-0x156,_0x2a7f39-0x37e,_0xde0499,_0x4552f9-0x8d);}if(!_0x5956d7)return null;const [,_0x154bae,_0x59ca1a='']=_0x5956d7,_0x2828f4={'type':_0x987584(0x26d,0x24e,0x244,0x218),'dataType':_0x154bae,'redactLogs':_0x59ca1a[_0x987584(0x1af,0x1f3,0x1e6,0x21d)](_0x987584(0x211,0x1af,0x1f7,0x1cf)+'s'),'maskType':_0x59ca1a[_0x2f87bb(0x28a,0x2df,0x2c6,0x2d2)](_0x987584(0x1b2,0x224,0x1f9,0x1d8)+'al')?'partial':_0x59ca1a[_0x987584(0x1a3,0x1bc,0x1e6,0x1c6)]('mask:full')?_0x987584(0x240,0x242,0x207,0x20f):_0x59ca1a['includes'](_0x2ddcac[_0x987584(0x1fc,0x205,0x1e7,0x1f2)])?'hash':_0x2ddcac[_0x2f87bb(0x284,0x2f2,0x2a5,0x2c8)]};return _0x2828f4;}function parseTenantComment(_0x1e3754){const _0x299944={'iRQby':function(_0x7a0d1,_0x47b808){return _0x7a0d1>_0x47b808;},'rTBSt':'hash','oLRzI':_0x4733b7(0x3ea,0x3a2,0x393,0x39e),'CMaaI':'directory','lQYOn':_0x24c046(0x1c0,0x20a,0x1d5,0x1ff)+'le','RmcAb':'table-per-'+_0x24c046(0x196,0x176,0x1be,0x1ee),'bgOzP':function(_0x3f6840,_0x170b1e){return _0x3f6840(_0x170b1e);},'xVSjg':function(_0x503fb0,_0x560b59){return _0x503fb0(_0x560b59);},'wumkL':_0x4733b7(0x3eb,0x3dd,0x41d,0x41a),'WQIbZ':'gin','jlhIY':_0x4733b7(0x3da,0x3ce,0x403,0x3c8)+_0x4733b7(0x3c6,0x3a2,0x3df,0x36b),'dMJGS':'partition='+'list'},_0x216498=_0x1e3754[_0x4733b7(0x3d0,0x3d2,0x397,0x3bc)](/@tenant(?:\s+(.+))?/);if(!_0x216498)return null;const [,_0x22aa31='']=_0x216498,_0x5c4066={};_0x5c4066[_0x4733b7(0x3a5,0x382,0x39e,0x355)]=_0x24c046(0x215,0x1fd,0x1dd,0x213),_0x5c4066[_0x4733b7(0x3e9,0x3b0,0x3da,0x37c)]=_0x24c046(0x1bd,0x1b0,0x1a8,0x1e8),_0x5c4066[_0x4733b7(0x3a8,0x3d8,0x417,0x3fe)]='string',_0x5c4066[_0x24c046(0x198,0x1b1,0x192,0x198)]=!![];const _0x4e71ff=_0x5c4066;if(_0x22aa31&&!_0x22aa31[_0x4733b7(0x338,0x377,0x3aa,0x35e)](':')&&!_0x22aa31[_0x4733b7(0x36e,0x377,0x3a3,0x376)](','))return _0x4e71ff[_0x24c046(0x1b5,0x1e1,0x1ab,0x190)]=_0x22aa31[_0x4733b7(0x428,0x3e9,0x3ff,0x3d8)](),_0x4e71ff;if(_0x22aa31&&_0x22aa31['includes'](',')&&!_0x22aa31[_0x4733b7(0x3a3,0x377,0x375,0x33b)](':')){const _0x370eae=_0x22aa31[_0x24c046(0x206,0x1c4,0x1db,0x1ef)](',')['map'](_0x3bbb96=>_0x3bbb96[_0x4733b7(0x41b,0x3e9,0x3a7,0x3e4)]());if(_0x299944['iRQby'](_0x370eae[_0x4733b7(0x372,0x36c,0x332,0x349)],0x1d6b+-0x6c8+-0x16a2))return _0x4e71ff[_0x4733b7(0x3ce,0x3ba,0x3c5,0x3a2)]=_0x370eae,_0x4e71ff['field']=_0x370eae[0x17*0x3d+0x8a7+-0xe22],_0x4e71ff;}function _0x24c046(_0xefc68a,_0x416ef5,_0x50c1bb,_0x4dceb1){return pzg_0x28122d(_0xefc68a-0x151,_0x416ef5-0x104,_0x4dceb1,_0x50c1bb- -0x35e);}const _0x30b62d=_0x22aa31[_0x4733b7(0x407,0x3d2,0x39b,0x414)](/fields:([^:\s]+)/);if(_0x30b62d){const _0x366203=_0x30b62d[-0x2606+-0x1384+0x398b][_0x24c046(0x195,0x21d,0x1db,0x205)](',')[_0x4733b7(0x3aa,0x3e6,0x3ec,0x3d4)](_0x19a73d=>_0x19a73d['trim']());_0x4e71ff[_0x24c046(0x1c7,0x1b8,0x1b5,0x1a1)]=_0x366203,_0x4e71ff[_0x4733b7(0x3dd,0x3b0,0x3c5,0x3e6)]=_0x366203[0x31e+0x1a3e+-0x1d5c];}else{const _0x9212d5=_0x22aa31[_0x4733b7(0x3bb,0x3d2,0x3a1,0x3bb)](/field:(\w+)/);_0x9212d5&&(_0x4e71ff[_0x4733b7(0x382,0x3b0,0x3b5,0x376)]=_0x9212d5[0x6bb*0x2+0x555+-0x12ca]);}const _0x3f4525=_0x22aa31[_0x24c046(0x201,0x1dd,0x1cd,0x1b2)](/types:([^:\s]+)/);if(_0x3f4525){const _0x5be60d=_0x3f4525[-0x2069*-0x1+-0x11dd+-0xe8b][_0x24c046(0x1ff,0x1be,0x1db,0x21e)](',')[_0x24c046(0x1ad,0x19b,0x1e1,0x213)](_0x1038ab=>_0x1038ab[_0x24c046(0x1d8,0x1ab,0x1e4,0x1e9)]());_0x4e71ff['tenantType'+'s']=_0x5be60d,_0x4e71ff[_0x4733b7(0x3d8,0x3d8,0x3e2,0x39e)]=_0x5be60d[0xdd7*0x1+-0x12*-0x1b+0xed*-0x11];}else{const _0x162b36=_0x22aa31[_0x4733b7(0x3af,0x3d2,0x3a3,0x38e)](/type:(string|number|uuid)/);_0x162b36&&(_0x4e71ff[_0x4733b7(0x3cc,0x3d8,0x39a,0x3d6)]=_0x162b36[-0x944*0x1+-0xf58+-0x189d*-0x1]);}const _0x197e1e=_0x22aa31['match'](/hierarchy:([^\\s]+)/);if(_0x197e1e){const _0xe6c18a=_0x197e1e[0x12dc*-0x1+-0x20a5+0x3382];_0x4e71ff['hierarchy']={};const _0x433997=_0xe6c18a[_0x4733b7(0x3a3,0x3d2,0x38b,0x3c5)](/parent=(\w+)/);if(_0x433997)_0x4e71ff[_0x4733b7(0x37d,0x3a7,0x3c8,0x366)][_0x24c046(0x155,0x133,0x15c,0x147)]=_0x433997[-0x153+-0x5*-0x22f+-0x997];const _0x4891e7=_0xe6c18a[_0x24c046(0x1cc,0x1b1,0x1cd,0x1ec)](/children=(\w+)/);if(_0x4891e7)_0x4e71ff[_0x24c046(0x164,0x1aa,0x1a2,0x1a6)]['children']=[_0x4891e7[0x457*-0x7+0x14a8+0x9ba]];const _0x2cb9d9=_0xe6c18a[_0x4733b7(0x3c6,0x3d2,0x3d4,0x3c3)](/depth=(\d+)/);if(_0x2cb9d9)_0x4e71ff[_0x24c046(0x16c,0x1c4,0x1a2,0x1d5)]['depth']=parseInt(_0x2cb9d9[0x2204+-0x10*0x1d5+0x1*-0x4b3]);}function _0x4733b7(_0x46a69a,_0x40bc56,_0x16d586,_0x35ef8d){return pzg_0x257935(_0x46a69a-0xe,_0x40bc56-0x50f,_0x46a69a,_0x35ef8d-0x1d1);}const _0x2717b8=_0x22aa31[_0x24c046(0x1e3,0x1b1,0x1cd,0x20c)](/shard:([^\\s]+)/);if(_0x2717b8){const _0x5a1509=_0x2717b8[-0x8fd+-0x231a*0x1+0x2c18],_0x1d77e0={};_0x1d77e0['strategy']=_0x299944[_0x24c046(0x15c,0x140,0x169,0x17a)],_0x4e71ff[_0x4733b7(0x34a,0x37a,0x377,0x3bc)]=_0x1d77e0;if(_0x5a1509[_0x4733b7(0x365,0x377,0x375,0x37c)](_0x299944['rTBSt']))_0x4e71ff['sharding'][_0x24c046(0x168,0x18a,0x17b,0x18f)]=_0x299944[_0x4733b7(0x325,0x36e,0x382,0x347)];if(_0x5a1509[_0x4733b7(0x38a,0x377,0x394,0x33a)](_0x299944[_0x24c046(0x1c4,0x1ad,0x1de,0x1fa)]))_0x4e71ff[_0x4733b7(0x39b,0x37a,0x395,0x367)][_0x24c046(0x147,0x190,0x17b,0x176)]=_0x299944[_0x4733b7(0x3bf,0x3e3,0x408,0x3b4)];if(_0x5a1509['includes'](_0x299944['CMaaI']))_0x4e71ff[_0x4733b7(0x3b9,0x37a,0x3aa,0x389)][_0x24c046(0x149,0x142,0x17b,0x158)]=_0x299944[_0x4733b7(0x36c,0x3aa,0x3c8,0x37c)];const _0x182be7=_0x22aa31[_0x4733b7(0x3ae,0x3d2,0x3f0,0x390)](/count=(\d+)/);if(_0x182be7)_0x4e71ff[_0x24c046(0x161,0x181,0x175,0x182)]['shardCount']=parseInt(_0x182be7[-0x13*0xf7+-0xd1f*-0x1+0x3*0x1bd]);const _0x552a69=_0x22aa31[_0x4733b7(0x3c8,0x3d2,0x3dc,0x3fa)](/field=(\w+)/);if(_0x552a69)_0x4e71ff[_0x4733b7(0x33e,0x37a,0x36c,0x3a2)][_0x4733b7(0x3b0,0x3f0,0x3b2,0x40e)]=_0x552a69[0x1282*-0x1+-0x99b*-0x1+-0x78*-0x13];}const _0x22d192=_0x22aa31[_0x24c046(0x199,0x1a3,0x1cd,0x1d5)](/inherit:([^\\s]+)/);if(_0x22d192){const _0x43b353=_0x22d192[0x1*0x997+0xe3c*-0x1+0x4a6],_0x54e507={};_0x54e507[_0x24c046(0x1dc,0x1e1,0x19c,0x1e1)+_0x24c046(0x18c,0x150,0x163,0x14b)]=_0x24c046(0x195,0x131,0x16c,0x14e)+'le',_0x4e71ff['inheritanc'+'e']=_0x54e507;const _0x29a7bb=_0x43b353['match'](/from=(\w+)/);if(_0x29a7bb)_0x4e71ff[_0x24c046(0x17b,0x166,0x19c,0x199)+'e'][_0x24c046(0x1aa,0x1c1,0x1c1,0x1e9)+'om']=_0x29a7bb[-0x1*0x13e4+0x2391*0x1+-0xfac];_0x4e71ff[_0x4733b7(0x362,0x3a1,0x3e9,0x3a0)+'e'][_0x24c046(0x1f6,0x1f0,0x1df,0x21d)+_0x4733b7(0x3ad,0x386,0x392,0x364)]=_0x43b353[_0x4733b7(0x3a1,0x377,0x382,0x3b4)](_0x4733b7(0x3fa,0x3d3,0x3d1,0x3d2)+'ue');if(_0x43b353['includes'](_0x299944['lQYOn']))_0x4e71ff[_0x4733b7(0x3da,0x3a1,0x378,0x3e6)+'e'][_0x4733b7(0x371,0x3a1,0x39d,0x376)+_0x4733b7(0x363,0x368,0x3ae,0x329)]=_0x299944['lQYOn'];if(_0x43b353['includes']('table-per-'+_0x24c046(0x17c,0x1eb,0x1be,0x1ed)))_0x4e71ff[_0x4733b7(0x3a5,0x3a1,0x3cb,0x3d2)+'e'][_0x24c046(0x1e5,0x19d,0x19c,0x17b)+_0x4733b7(0x342,0x368,0x32e,0x39f)]=_0x299944['RmcAb'];}const _0x284649=_0x22aa31[_0x4733b7(0x3f0,0x3d2,0x3e3,0x397)](/validate:([^\\s]+)/);if(_0x284649){const _0x58a011=_0x284649[0x26ec+-0x20*-0x95+-0x398b];_0x4e71ff['validation']={};const _0x268f95=_0x58a011[_0x24c046(0x19d,0x1ae,0x1cd,0x19d)](/format=(uuid|slug|domain|custom)/);if(_0x268f95)_0x4e71ff[_0x24c046(0x1ac,0x20d,0x1c6,0x1d5)][_0x4733b7(0x354,0x35f,0x351,0x381)]=_0x268f95[-0x142d+-0x1016+0xb*0x34c];const _0x3540c0=_0x22aa31['match'](/pattern="([^"]+)"/);if(_0x3540c0)_0x4e71ff[_0x24c046(0x1fe,0x180,0x1c6,0x1bb)][_0x24c046(0x1a5,0x1b2,0x1da,0x1cf)]=_0x3540c0[0x607*-0x2+-0xc45*0x1+0x1*0x1854];const _0x56ac0b=_0x58a011[_0x24c046(0x19c,0x1b0,0x1cd,0x1a2)](/length=min:(\d+),max:(\d+)/);_0x56ac0b&&(_0x4e71ff['validation'][_0x24c046(0x18a,0x12e,0x167,0x181)]={'min':_0x299944['bgOzP'](parseInt,_0x56ac0b[0x185*-0xc+0x1*0x2533+-0x12f6]),'max':_0x299944[_0x24c046(0x1e4,0x178,0x1ac,0x17b)](parseInt,_0x56ac0b[0x5c6*-0x1+0x128c+-0xcc4])});const _0x33b270=_0x22aa31['match'](/enum=\[([^\]]+)\]/);_0x33b270&&(_0x4e71ff[_0x24c046(0x1ce,0x1ad,0x1c6,0x1e7)]['enum']=_0x33b270[0xc8f+-0x4b6+-0x1f6*0x4][_0x4733b7(0x427,0x3e0,0x3e9,0x3b9)](',')[_0x24c046(0x1da,0x1fd,0x1e1,0x1f1)](_0x441bc4=>_0x441bc4['trim']()[_0x4733b7(0x3b8,0x3a4,0x37d,0x39f)](/['"]/g,'')));}const _0x224d2e=_0x22aa31[_0x4733b7(0x3ea,0x3d2,0x3b6,0x3f5)](/perf:([^\\s]+)/);if(_0x224d2e){const _0x5a6929=_0x224d2e[0xecf+-0x1480*-0x1+-0x234e],_0x56fe86={};_0x56fe86['indexStrat'+_0x24c046(0x158,0x1ae,0x182,0x172)]=_0x299944[_0x24c046(0x1a3,0x1c5,0x1d4,0x1d0)],_0x4e71ff[_0x4733b7(0x40a,0x3cf,0x386,0x3d2)+'e']=_0x56fe86;if(_0x5a6929[_0x4733b7(0x372,0x377,0x3bc,0x33e)](_0x299944[_0x4733b7(0x3aa,0x36e,0x364,0x35c)]))_0x4e71ff[_0x24c046(0x1c3,0x1bd,0x1ca,0x1bb)+'e'][_0x4733b7(0x362,0x39a,0x378,0x362)+_0x4733b7(0x3b4,0x387,0x382,0x359)]=_0x4733b7(0x407,0x3ca,0x3ed,0x392);if(_0x5a6929[_0x24c046(0x178,0x1a5,0x172,0x15e)](_0x299944[_0x24c046(0x180,0x16c,0x1a4,0x17c)]))_0x4e71ff[_0x24c046(0x19d,0x1c7,0x1ca,0x1f8)+'e']['indexStrat'+'egy']=_0x24c046(0x1cc,0x1b2,0x190,0x198);if(_0x5a6929[_0x4733b7(0x39c,0x377,0x397,0x3a7)](_0x24c046(0x15e,0x1aa,0x1a7,0x1a5)))_0x4e71ff['performanc'+'e'][_0x4733b7(0x3cf,0x39a,0x3af,0x392)+'egy']=_0x4733b7(0x3e4,0x3ac,0x370,0x38f);if(_0x5a6929['includes'](_0x299944[_0x24c046(0x1d1,0x1a0,0x1cb,0x1f2)]))_0x4e71ff['performanc'+'e'][_0x24c046(0x193,0x168,0x1a3,0x1aa)+'ng']=_0x4733b7(0x39f,0x3a2,0x39c,0x3a1);if(_0x5a6929[_0x24c046(0x1ac,0x157,0x172,0x14b)]('partition='+_0x24c046(0x1b6,0x1cc,0x1c5,0x1e0)))_0x4e71ff[_0x24c046(0x1af,0x1c5,0x1ca,0x1e9)+'e'][_0x24c046(0x1d7,0x189,0x1a3,0x1db)+'ng']=_0x4733b7(0x3fa,0x3ca,0x39f,0x3cc);if(_0x5a6929['includes'](_0x299944[_0x4733b7(0x3c4,0x391,0x35b,0x3d5)]))_0x4e71ff[_0x4733b7(0x389,0x3cf,0x3b9,0x413)+'e']['partitioni'+'ng']='list';const _0x1ed6c6=_0x22aa31[_0x4733b7(0x401,0x3d2,0x3df,0x3fc)](/cache=(redis|memory):(\d+)/);_0x1ed6c6&&(_0x4e71ff[_0x4733b7(0x3f9,0x3cf,0x38b,0x3c8)+'e'][_0x24c046(0x14e,0x155,0x188,0x158)]={'strategy':_0x1ed6c6[0x200d+0x102d+-0x3039],'ttl':parseInt(_0x1ed6c6[0x37d*-0x1+-0xcd5+0x14*0xd1])});}return _0x4e71ff[_0x24c046(0x174,0x16e,0x192,0x1b9)]=!_0x22aa31[_0x24c046(0x15f,0x19a,0x172,0x15a)]('optional'),_0x4e71ff;}function parseSchemaComments(_0x42aee9){const _0x4d992f={'HOzti':function(_0xab551,_0x546b65){return _0xab551<_0x546b65;},'jghrK':function(_0x26dd3e,_0x451929){return _0x26dd3e===_0x451929;},'CqYBz':function(_0x27157a,_0x4f9da9){return _0x27157a>_0x4f9da9;},'fyOjz':function(_0x5b2f84,_0x34d1bf){return _0x5b2f84(_0x34d1bf);},'SnTvD':function(_0x5ef50d,_0x1c6583){return _0x5ef50d!==_0x1c6583;}},_0x353de7=[],_0x3710cf=_0x42aee9[_0x4d529f(0x4d1,0x48c,0x499,0x4e0)]('\x0a');let _0x539ffd=null;function _0x4d529f(_0x3e099c,_0x1128df,_0x54d9d2,_0x5e7d33){return pzg_0x257935(_0x3e099c-0xed,_0x54d9d2-0x5c8,_0x3e099c,_0x5e7d33-0x6);}let _0x28a0cb=[];function _0x1877d2(_0x16d6a7,_0x29a5db,_0x459aff,_0x331a38){return pzg_0x28122d(_0x16d6a7-0xad,_0x29a5db-0x1de,_0x29a5db,_0x459aff-0x9a);}for(let _0x47578f=-0x1f37*0x1+0x4*0x664+-0x1*-0x5a7;_0x4d992f[_0x1877d2(0x55a,0x532,0x577,0x550)](_0x47578f,_0x3710cf[_0x4d529f(0x3f9,0x41c,0x425,0x3f9)]);_0x47578f++){const _0x2b8df7=_0x3710cf[_0x47578f][_0x1877d2(0x5df,0x606,0x5dc,0x5b2)](),_0x9f6dff=_0x2b8df7[_0x1877d2(0x586,0x5f8,0x5c5,0x58b)](/^model\s+(\w+)\s*\{/);if(_0x9f6dff){const _0x3a0fd1={};_0x3a0fd1[_0x1877d2(0x541,0x599,0x55c,0x585)]=_0x9f6dff[-0x40a*0x2+-0xcd7*-0x3+-0x1e70],_0x3a0fd1[_0x1877d2(0x5b9,0x5af,0x5d1,0x5bf)]=[],_0x3a0fd1[_0x4d529f(0x4a8,0x487,0x45f,0x461)]=[],_0x3a0fd1[_0x1877d2(0x56c,0x53d,0x553,0x531)+'s']=[],_0x539ffd=_0x3a0fd1,_0x353de7['push'](_0x539ffd),_0x28a0cb=[];continue;}if(_0x4d992f['jghrK'](_0x2b8df7,'}')&&_0x539ffd){_0x539ffd=null;continue;}if(_0x2b8df7[_0x1877d2(0x5a1,0x5ca,0x593,0x54a)]('///')){_0x28a0cb[_0x4d529f(0x44b,0x431,0x464,0x448)](_0x2b8df7);continue;}if(_0x539ffd&&/^\s*\w+\s+\w+/[_0x1877d2(0x5e2,0x5aa,0x5b4,0x5cf)](_0x2b8df7)){const _0x4bc5bd=_0x2b8df7['match'](/^\s*(\w+)\s+/),_0x38c113=_0x4bc5bd?_0x4bc5bd[-0x770+-0xe*-0x6d+-0x1*-0x17b]:undefined,_0x1f4831=_0x2b8df7[_0x4d529f(0x457,0x472,0x48b,0x44c)](/\/\/\/\s*(.+)$/);_0x1f4831&&_0x28a0cb[_0x4d529f(0x453,0x48f,0x464,0x49a)]('///\x20'+_0x1f4831[0x1626+0x1c1a+-0x323f]);if(_0x4d992f[_0x1877d2(0x59a,0x517,0x55d,0x582)](_0x28a0cb[_0x1877d2(0x541,0x517,0x55f,0x5a2)],-0x3*0x286+0x11d*0x1+0x675)){for(const _0x29e3b4 of _0x28a0cb){const _0x40f97b=_0x4d992f[_0x1877d2(0x5cb,0x5ac,0x5aa,0x562)](parsePolicyComment,_0x29e3b4);_0x40f97b&&(_0x40f97b[_0x4d529f(0x4ac,0x4af,0x469,0x4ad)]=_0x38c113,_0x40f97b[_0x1877d2(0x568,0x57b,0x55c,0x586)]=_0x539ffd[_0x4d529f(0x442,0x3d9,0x422,0x3fb)],_0x539ffd[_0x1877d2(0x59d,0x5e2,0x5d1,0x5af)][_0x4d529f(0x453,0x497,0x464,0x444)](_0x40f97b));const _0x80c0b0=parsePIIComment(_0x29e3b4);_0x80c0b0&&(_0x80c0b0['field']=_0x38c113,_0x80c0b0[_0x4d529f(0x433,0x43f,0x422,0x3f2)]=_0x539ffd['modelName'],_0x539ffd[_0x4d529f(0x48a,0x4a8,0x45f,0x420)][_0x1877d2(0x592,0x5d9,0x59e,0x570)](_0x80c0b0));const _0x504f58=parseTenantComment(_0x29e3b4);_0x504f58&&(_0x504f58[_0x4d529f(0x407,0x3f1,0x422,0x429)]=_0x539ffd['modelName'],_0x539ffd[_0x1877d2(0x512,0x525,0x553,0x50c)+'s']['push'](_0x504f58));}_0x28a0cb=[];}}!_0x2b8df7[_0x4d529f(0x468,0x49b,0x459,0x452)](_0x4d529f(0x45e,0x3f3,0x41c,0x3ed))&&!/^\s*\w+\s+\w+/[_0x1877d2(0x5ba,0x579,0x5b4,0x591)](_0x2b8df7)&&_0x4d992f[_0x1877d2(0x553,0x5bb,0x58e,0x58f)](_0x2b8df7['trim'](),'')&&(_0x28a0cb=[]);}return _0x353de7[_0x4d529f(0x4a7,0x432,0x477,0x460)](_0x27d348=>_0x27d348[_0x4d529f(0x4c4,0x47d,0x497,0x4bf)][_0x1877d2(0x567,0x591,0x55f,0x57e)]>0x8d7+0x2215+-0x2aec||_0x27d348[_0x1877d2(0x57d,0x5e1,0x599,0x568)][_0x1877d2(0x599,0x522,0x55f,0x56a)]>-0x4*-0x786+-0x135e+-0xaba||_0x27d348['tenantRule'+'s'][_0x4d529f(0x3dc,0x3fa,0x425,0x440)]>0x457+0x213b+-0x2592);}function getTenantFields(_0x42cf3d){const _0x5996e0={};function _0x61eb10(_0x290b74,_0x3c1c36,_0x42d0a9,_0x2901ce){return pzg_0x28122d(_0x290b74-0x6f,_0x3c1c36-0x180,_0x42d0a9,_0x2901ce- -0x1cb);}_0x5996e0['fzBbR']=function(_0x561765,_0x4de552){return _0x561765>_0x4de552;};const _0x452dce=_0x5996e0,_0xb1aa8d={};for(const _0x3dbc71 of _0x42cf3d){_0x452dce['fzBbR'](_0x3dbc71['tenantRule'+'s']['length'],0x25d4+0xebc+-0x3490*0x1)&&(_0xb1aa8d[_0x3dbc71['modelName']]=_0x3dbc71[_0x61eb10(0x2a7,0x304,0x2bf,0x2ee)+'s']);}return _0xb1aa8d;}function detectTenantFieldsFromSchema(_0x5a51e7){const _0x50c81a={};_0x50c81a[_0x36756d(0x3ff,0x427,0x466,0x41e)]=function(_0x32024e,_0xefc1c){return _0x32024e===_0xefc1c;};function _0x36756d(_0x33c0bd,_0x5a8547,_0x5d7b4d,_0x3fb1be){return pzg_0x257935(_0x33c0bd-0x1bf,_0x3fb1be-0x557,_0x5a8547,_0x3fb1be-0x101);}_0x50c81a[_0x419683(0x97,0x105,0xc9,0xf1)]=_0x36756d(0x3f7,0x38d,0x39f,0x3c5);function _0x419683(_0x49c7db,_0xe7f971,_0x520e2f,_0xaaf579){return pzg_0x28122d(_0x49c7db-0x10f,_0xe7f971-0x3b,_0x49c7db,_0x520e2f- -0x464);}_0x50c81a[_0x36756d(0x473,0x3f9,0x449,0x42d)]=_0x419683(0xbc,0xdf,0xa7,0x90);const _0x2710ab=_0x50c81a,_0x38b78b={},_0x3f336b=_0x5a51e7['split']('\x0a');let _0x42ef7a=null;for(const _0x3da2b9 of _0x3f336b){const _0x246cba=_0x3da2b9[_0x419683(0xdb,0xcb,0xde,0xe4)](),_0x2d807e=_0x246cba[_0x36756d(0x412,0x411,0x3df,0x41a)](/^model\s+(\w+)\s*\{/);if(_0x2d807e){_0x42ef7a=_0x2d807e[-0x99+-0x1e47+-0xa4b*-0x3];continue;}if(_0x2710ab[_0x419683(0xcf,0xa7,0xcb,0x91)](_0x246cba,'}')){_0x42ef7a=null;continue;}if(_0x42ef7a){const _0x206330=_0x246cba[_0x419683(0xa3,0xf1,0xc7,0xc5)](/^\s*(\w*[Tt]enant\w*)\s+(\w+)/);if(_0x206330){const [,_0x15117e,_0x436165]=_0x206330;!_0x38b78b[_0x42ef7a]&&(_0x38b78b[_0x42ef7a]=[]);const _0x4c6695=_0x436165[_0x36756d(0x3d4,0x3da,0x3e1,0x3da)+'e']()[_0x419683(0x50,0x64,0x6c,0x7b)]('int')?_0x2710ab[_0x36756d(0x460,0x41c,0x400,0x41c)]:_0x436165[_0x419683(0x8b,0xbe,0x87,0x7c)+'e']()[_0x36756d(0x3a4,0x3dc,0x3cf,0x3bf)](_0x2710ab['uReUM'])?_0x36756d(0x3de,0x3de,0x40e,0x3fa):_0x36756d(0x3ce,0x3cf,0x3b5,0x3d8);_0x38b78b[_0x42ef7a][_0x36756d(0x3ee,0x43c,0x411,0x3f3)]({'type':_0x419683(0xed,0x9e,0xd7,0xde),'field':_0x15117e,'tenantType':_0x4c6695,'required':!_0x246cba[_0x419683(0xaf,0x23,0x6c,0x8e)]('?'),'modelName':_0x42ef7a});}}}return _0x38b78b;}function getReadRestrictedFields(_0x49818f){function _0x493d76(_0x20beb1,_0x9600ae,_0x2a06f7,_0x13095d){return pzg_0x28122d(_0x20beb1-0x124,_0x9600ae-0x83,_0x13095d,_0x20beb1- -0x50);}function _0x17ab65(_0x540c95,_0xf347ba,_0x36a464,_0x543d3f){return pzg_0x257935(_0x540c95-0xe8,_0x36a464-0x455,_0x543d3f,_0x543d3f-0xd2);}return _0x49818f[_0x493d76(0x4e7,0x4bc,0x4f2,0x501)][_0x493d76(0x4c7,0x487,0x495,0x4f8)](_0x4baa12=>_0x4baa12[_0x493d76(0x48b,0x4bd,0x495,0x490)]==='read'&&_0x4baa12[_0x493d76(0x4b9,0x490,0x4df,0x4f1)])[_0x17ab65(0x2f5,0x33a,0x32c,0x371)](_0xe8f720=>_0xe8f720['field']);}function getWriteRestrictedFields(_0x31319d){function _0x4479aa(_0x5ca5a1,_0x36f930,_0x518ba1,_0x1ab0f0){return pzg_0x28122d(_0x5ca5a1-0x1e1,_0x36f930-0x1d5,_0x1ab0f0,_0x518ba1- -0x48d);}function _0x1bc822(_0xb7d8a3,_0x1fac4b,_0xe93d43,_0x3fa74c){return pzg_0x28122d(_0xb7d8a3-0x1bf,_0x1fac4b-0xee,_0xe93d43,_0x1fac4b-0x6);}return _0x31319d[_0x1bc822(0x4fa,0x53d,0x52e,0x4fc)][_0x1bc822(0x55a,0x51d,0x4e8,0x528)](_0x16a9fe=>(_0x16a9fe['type']===_0x1bc822(0x528,0x4fd,0x4eb,0x543)||_0x16a9fe['type']===_0x1bc822(0x4c5,0x4da,0x4d5,0x4b5))&&_0x16a9fe['field'])[_0x1bc822(0x550,0x545,0x540,0x4fc)](_0x57242a=>_0x57242a[_0x1bc822(0x4e2,0x50f,0x4d5,0x507)]);}function getPIIFields(_0x588f32){function _0x3c73c0(_0x45455f,_0x249132,_0x1de005,_0x5b4d81){return pzg_0x257935(_0x45455f-0xac,_0x1de005-0x2cf,_0x45455f,_0x5b4d81-0x158);}function _0x150259(_0x417177,_0x190a70,_0x4aacc9,_0x1ec9ff){return pzg_0x257935(_0x417177-0x163,_0x4aacc9-0xe,_0x417177,_0x1ec9ff-0x1c7);}return _0x588f32[_0x3c73c0(0x191,0x172,0x166,0x13f)][_0x3c73c0(0x19a,0x15d,0x17e,0x161)](_0x4ba4fb=>_0x4ba4fb[_0x3c73c0(0x133,0x1a8,0x170,0x155)]);}function pzg_0x14ac(){const _0x275ab3=['yunVBw1LBNrZ','x19LC01VzhvSzq','C3rYAw5N','ze1kr1m','Dg9mB3DLCKnHCW','D0Xjufi','BM90x2LU','z2LU','CgfYDgLHBa','CMvXDwLYzwq','zNvSBa','CeHzy2e','Aw5KzxHtDhjHDa','u25uDKq','wfHbvei','zMLUza','D3jPDgu','CLzPvgC','C3rHCNrZv2L0Aa','Aw5OzxjPDgfUyW','CMfUz2u','DMfSDwu','CMvWBgfJzq','zxj0Eq','CgLPuNvSzxm','AgLLCMfYy2H5','CgfYDgL0Aw9UAq','v1fjyLO','q01HyuK','ChvZAa','z2LZDa','DgvUyw50swq','r0TPv3i','mZy1ndiWmgTYyuXUsG','zMLLBgq','EfztAMC','DxvPza','BM90x2vXDwfSCW','zxf1ywXZ','z2v0ueLjrMLLBa','nJi0nJK3qNjRBMrM','zNLpANO','v2L0AdOG','BgrZ','zMLLBgrZ','Bgf1C2u','A0XJtMS','mtm1nda3mZbstfvmCe8','zMLSDgvY','B21ty2HLBwe','y3r4','DgvZDa','oIb7igvUzhnxAq','y2XHC3m','nJKZmdi4EgjuwMLS','zw5KC193AxrO','Aw5OzxjPDhngCG','BwfZAZPOyxnO','oIb7ihn0yxj0CW','whndDvi','AgfZAa','DMfSAwrHDgLVBG','mJrhyu9or3m','DgG6ia','CgfYDgL0Aw9Upq','CgvYzM9YBwfUyW','AMXOsvK','BNm6ia','Bwf0y2G','y2fZy2fKzt10CG','BxvKrg0','CgLP','qwfsDei','oe9svNbVzG','DgvUyw50vhLWzq','D3vTA0W','AM9PBMvKlxrHyG','y29UDgv4DfzHCG','nJyZntaYmejcsgnPyq','yNrYzwu','Cg9SAwnPzxm','Cgf0DgvYBG','C3bSAxq','C3rHCNrZx3DPDa','DgvUyw50','B0XsEKK','y2fZy2fKzurLBa','DvjLvu0','BwfW','DhjPy3rLzezPzq','AgfZug9SAwn5','DhjPBq','AM9PBG','r0r0Cey','nJzir1LSsNa','zwXKCW','B2XPy2LLCW','tK9uoIb7ia','C2HHCMrgAwvSza','zM9YBwf0','DgvUyw50uNvSzq','CgfYzw50','BgLJAwvZ','lY8V','BNrgAwvSzhngCG','D2HLCMu','ndyZmJq4thPTzvjf','z2v0uMvHzfjLCW','zvr5Cgu','Bw9KzwXoyw1L','q3fzqNO','zgvMAw5LuhjVCa','BgvUz3rO','DufKCKm','CLrcu3q','z2v0vMfSDwvqBW','z2v0vgvUyw50ua','C2LUz2XLlxrHyG','oIb7ignVBNrHAq','zgv0zwn0vgvUyq','AwfIBgu','z2v0vgvUyw50rG','z2vUzxjHDgvuzq','Aw5JBhvKzxm','CgHdyuG','C3vIDhLWzq','C2HHCMrPBMC','zgvUEq','werly0C','BNvTyMvY','EvjJqKe','EvHpquG','C3rYyxrLz3K','oIb7igLUoIa','DhLWzq','otaXmJjbveTYAhu','se96DgK','C3rYAwn0Aw9UCW','zxrL','zwD5','CMvKywn0oMXVzW','BMfUDfDOzxjLqW','BwfZAZPWyxj0Aq','B3bLCMf0B3i','z2v0v3jPDgvszq','y2fJAgLUzW'];pzg_0x14ac=function(){return _0x275ab3;};return pzg_0x14ac();}function hasPolicy(_0x21ef9c,_0x2d0ab5,_0x51f713){function _0x36033c(_0x3323dd,_0x32cfff,_0x59c594,_0x3f3493){return pzg_0x28122d(_0x3323dd-0x61,_0x32cfff-0x12e,_0x59c594,_0x3323dd- -0x2ae);}function _0xb3a8f(_0x247581,_0x4baf25,_0x30beef,_0x59ac8d){return pzg_0x28122d(_0x247581-0x10a,_0x4baf25-0xa5,_0x247581,_0x30beef- -0x4cc);}return _0x21ef9c[_0xb3a8f(0x82,0x65,0x6b,0xac)][_0xb3a8f(-0x5,0x48,0x2a,0x66)](_0x5e3fd3=>_0x5e3fd3[_0xb3a8f(0x9,0x27,0x3d,0x5)]===_0x2d0ab5&&_0x5e3fd3[_0xb3a8f(-0x30,0x3b,0xf,0x24)]===_0x51f713);}function getTenantPolicies(_0x3ba576){function _0x26ae09(_0x55723d,_0x3b43f3,_0x28cbe7,_0x11a78b){return pzg_0x28122d(_0x55723d-0x1e4,_0x3b43f3-0x1cd,_0x3b43f3,_0x11a78b- -0x668);}function _0x1597d7(_0x2e7b6a,_0x71eb46,_0x1ed852,_0x993ea9){return pzg_0x28122d(_0x2e7b6a-0xac,_0x71eb46-0x17d,_0x2e7b6a,_0x1ed852-0x27);}return _0x3ba576[_0x1597d7(0x573,0x593,0x55e,0x56c)][_0x26ae09(-0x10d,-0x154,-0x178,-0x151)](_0x40e7b6=>_0x40e7b6[_0x26ae09(-0x1b2,-0x162,-0x181,-0x196)]==='where'&&_0x40e7b6[_0x1597d7(0x592,0x555,0x55b,0x534)+_0x1597d7(0x4cd,0x4b3,0x4f4,0x4df)]);}function getFieldRestrictions(_0x205eaa,_0x2c53a4){const _0x5c002d={};_0x5c002d[_0x477229(0x1ac,0x1bb,0x17b,0x193)]=function(_0x55396d,_0x45b7ba){return _0x55396d===_0x45b7ba;},_0x5c002d[_0x51b8f8(0x517,0x54a,0x50f,0x554)]='update',_0x5c002d[_0x477229(0x1c2,0x1a9,0x163,0x178)]=_0x477229(0x1c1,0x1ab,0x19b,0x1c8),_0x5c002d[_0x477229(0x1ae,0x1a6,0x186,0x19a)]=function(_0x588626,_0x459307){return _0x588626===_0x459307;};function _0x477229(_0x4cd6af,_0x5016cf,_0x4ac246,_0x413425){return pzg_0x28122d(_0x4cd6af-0xd0,_0x5016cf-0x10f,_0x4ac246,_0x5016cf- -0x34c);}_0x5c002d['yRcBA']=_0x477229(0x1c7,0x1c7,0x1a2,0x1af);const _0x4dfcce=_0x5c002d;function _0x51b8f8(_0x53d59d,_0x3b7aa0,_0x3f3166,_0x53f412){return pzg_0x28122d(_0x53d59d-0xc2,_0x3b7aa0-0x16,_0x53f412,_0x53d59d-0x2b);}return _0x205eaa[_0x477229(0x1d2,0x1eb,0x200,0x225)][_0x51b8f8(0x542,0x566,0x560,0x541)](_0x51e98f=>{function _0x519555(_0x43bbcc,_0x100927,_0x5dc55f,_0x29e599){return _0x51b8f8(_0x29e599- -0x1c5,_0x100927-0x14,_0x5dc55f-0x1d4,_0x5dc55f);}const _0x598035=_0x4dfcce[_0x519555(0x3a6,0x369,0x37d,0x36d)](_0x51e98f[_0x519555(0x33b,0x385,0x36a,0x341)],_0x2c53a4)||_0x51e98f[_0x519555(0x379,0x32b,0x360,0x341)]===_0x4ee1b0(0x50d,0x511,0x505,0x544)||_0x2c53a4===_0x4dfcce[_0x4ee1b0(0x5a3,0x55c,0x59c,0x55c)]&&_0x51e98f[_0x4ee1b0(0x547,0x55a,0x54d,0x54b)]===_0x4dfcce[_0x519555(0x329,0x386,0x381,0x35b)];function _0x4ee1b0(_0x1b7c18,_0x1272a9,_0x1e8d53,_0x598062){return _0x51b8f8(_0x598062-0x45,_0x1272a9-0x1d2,_0x1e8d53-0x1b3,_0x1272a9);}return _0x598035&&(_0x4dfcce[_0x4ee1b0(0x57c,0x565,0x532,0x562)](_0x51e98f[_0x4ee1b0(0x53f,0x536,0x51c,0x542)],_0x4dfcce[_0x519555(0x372,0x361,0x362,0x33d)])||_0x51e98f['field']);});}function getValuePolicies(_0x3927be){function _0x489ec0(_0x70e7e3,_0x1fd335,_0x4b95c6,_0x2bbee5){return pzg_0x28122d(_0x70e7e3-0x18c,_0x1fd335-0x166,_0x1fd335,_0x2bbee5- -0x4b2);}function _0x5ec3ef(_0x1e6066,_0x2dab7d,_0x41353d,_0x340f6a){return pzg_0x28122d(_0x1e6066-0x60,_0x2dab7d-0xf1,_0x41353d,_0x2dab7d- -0x548);}return _0x3927be[_0x5ec3ef(-0x2e,-0x11,0x32,-0x21)][_0x489ec0(0x6f,0x9c,0x6f,0x65)](_0x392ca4=>_0x392ca4[_0x5ec3ef(-0xa1,-0x76,-0x9f,-0x8f)]==='values');}function pzg_0x28122d(_0x54daf9,_0x15226e,_0x1381a1,_0x4d1168){return pzg_0x5747(_0x4d1168-0x2e0,_0x1381a1);}function pzg_0x5747(_0x55e7c3,_0x2524f6){const _0x300118=pzg_0x14ac();return pzg_0x5747=function(_0x6f2f9e,_0x204100){_0x6f2f9e=_0x6f2f9e-(0x970+0x3*-0x87e+-0x147*-0xe);let _0x34af12=_0x300118[_0x6f2f9e];if(pzg_0x5747['vpvpdi']===undefined){var _0xe885a6=function(_0xdff81c){const _0x41b55f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f1e45='',_0x308ce1='';for(let _0x39e31a=-0x1120+-0xbce+0x1cee,_0x3d9fd3,_0x5d29c4,_0x5b71f6=0x1833+0x3*0x996+-0x34f5;_0x5d29c4=_0xdff81c['charAt'](_0x5b71f6++);~_0x5d29c4&&(_0x3d9fd3=_0x39e31a%(0x1884+0x10a2+-0x4e*0x87)?_0x3d9fd3*(-0x1bdc+-0x1d3f+0x1*0x395b)+_0x5d29c4:_0x5d29c4,_0x39e31a++%(0x1*0x103d+0x23b1*-0x1+0xe*0x164))?_0x1f1e45+=String['fromCharCode'](0x281+-0x1*0x1b29+0x3*0x88d&_0x3d9fd3>>(-(0x546+-0x36*0x31+-0x1*-0x512)*_0x39e31a&0x2217+-0x86b+0x1d5*-0xe)):-0x2429*0x1+0x1f71+0x4b8){_0x5d29c4=_0x41b55f['indexOf'](_0x5d29c4);}for(let _0x7a3b9=-0x18d*-0x15+-0xa66+0x19*-0xe3,_0x3d4b86=_0x1f1e45['length'];_0x7a3b9<_0x3d4b86;_0x7a3b9++){_0x308ce1+='%'+('00'+_0x1f1e45['charCodeAt'](_0x7a3b9)['toString'](-0x22e2+0x13d*0x14+0xa2e))['slice'](-(0x9dd+0x114c+-0x15*0x14b));}return decodeURIComponent(_0x308ce1);};pzg_0x5747['Cigulp']=_0xe885a6,_0x55e7c3=arguments,pzg_0x5747['vpvpdi']=!![];}const _0x3e577d=_0x300118[-0x1b93+0x425*0x1+0x176e],_0x4ce3f4=_0x6f2f9e+_0x3e577d,_0x1c7109=_0x55e7c3[_0x4ce3f4];return!_0x1c7109?(_0x34af12=pzg_0x5747['Cigulp'](_0x34af12),_0x55e7c3[_0x4ce3f4]=_0x34af12):_0x34af12=_0x1c7109,_0x34af12;},pzg_0x5747(_0x55e7c3,_0x2524f6);}function generateTenantWhereClause(_0x47e5b1,_0x238652=pzg_0x257935(-0x16f,-0x14f,-0x17d,-0x183)){const _0x39aabd={};_0x39aabd[_0x23e8b1(0x451,0x48a,0x46a,0x434)]=_0x23e8b1(0x467,0x433,0x442,0x411),_0x39aabd['rViTg']='contains',_0x39aabd[_0x14ecbc(-0x18e,-0x18c,-0x1d6,-0x1a6)]=_0x14ecbc(-0x192,-0x197,-0x1c8,-0x156),_0x39aabd['yXOAH']=function(_0x18314b,_0x597f08){return _0x18314b===_0x597f08;};const _0x3479d0=_0x39aabd;function _0x23e8b1(_0x58e846,_0x9e7f82,_0x5865aa,_0x58ee1e){return pzg_0x257935(_0x58e846-0x9c,_0x5865aa-0x5bd,_0x58e846,_0x58ee1e-0x4a);}const _0x46cb31=_0x47e5b1[_0x14ecbc(-0x199,-0x1b8,-0x1b3,-0x188)](_0x30eb0b=>_0x30eb0b[_0x14ecbc(-0x1de,-0x1db,-0x19b,-0x1b0)]==='where'&&_0x30eb0b['contextVar'+_0x14ecbc(-0x1e3,-0x1e6,-0x212,-0x1a1)]);function _0x14ecbc(_0xfc6c7a,_0x8dd72a,_0x44dadf,_0x4bb284){return pzg_0x257935(_0xfc6c7a-0xba,_0xfc6c7a- -0x48,_0x8dd72a,_0x4bb284-0x184);}if(_0x3479d0[_0x23e8b1(0x43f,0x452,0x42d,0x436)](_0x46cb31[_0x14ecbc(-0x1eb,-0x1b9,-0x1c6,-0x1c8)],0xd*0x211+-0x1f4b+0x46e))return'';const _0x372a82=_0x46cb31[_0x14ecbc(-0x171,-0x160,-0x178,-0x164)](_0x4d389d=>{function _0x4a7702(_0x51a17e,_0x2c90b9,_0x56434b,_0xcdb319){return _0x14ecbc(_0x51a17e-0x1c8,_0x56434b,_0x56434b-0x1cf,_0xcdb319-0xdf);}const {field:_0x11a755,operator:_0x3bcdae,contextVariable:_0x4c04bf}=_0x4d389d;function _0x3af41f(_0x519012,_0x28a9d3,_0x47af46,_0x373e56){return _0x23e8b1(_0x373e56,_0x28a9d3-0x13d,_0x47af46- -0x1a8,_0x373e56-0x43);}const _0x5db7fe=_0x238652+'.'+_0x4c04bf;switch(_0x3bcdae){case _0x3af41f(0x2bc,0x29c,0x2ba,0x28d):case'==':return _0x11a755+':\x20'+_0x5db7fe;case _0x3af41f(0x274,0x301,0x2b9,0x2ed):case'!=':return _0x3af41f(0x309,0x2bf,0x2f5,0x2b7)+_0x11a755+':\x20'+_0x5db7fe+'\x20}';case'in':return _0x11a755+_0x3af41f(0x28a,0x28e,0x287,0x2ba)+_0x5db7fe+'\x20}';case _0x3479d0[_0x3af41f(0x2ee,0x2f0,0x2c2,0x279)]:return _0x11a755+(':\x20{\x20notIn:'+'\x20')+_0x5db7fe+'\x20}';case _0x3479d0[_0x4a7702(0x10,0x3f,-0x34,0x3e)]:return _0x11a755+(_0x4a7702(-0x1d,-0x2b,0x2b,-0xe)+_0x4a7702(0x42,0x71,0x4c,0x49))+_0x5db7fe+'\x20}';case _0x3af41f(0x308,0x2a1,0x2e7,0x2e0)+'h':return _0x11a755+(_0x3af41f(0x30a,0x2d8,0x2ce,0x2fb)+_0x3af41f(0x2c6,0x2b5,0x2be,0x290))+_0x5db7fe+'\x20}';case _0x3479d0['XsCuR']:return _0x11a755+(_0x3af41f(0x2a7,0x2d3,0x2c8,0x2d2)+_0x3af41f(0x315,0x2a0,0x2d3,0x309))+_0x5db7fe+'\x20}';default:return _0x11a755+':\x20'+_0x5db7fe;}});return _0x3479d0[_0x23e8b1(0x402,0x405,0x42d,0x476)](_0x372a82['length'],0x1591*-0x1+0x431*0x8+-0x5fb*0x2)?_0x372a82[-0x1*-0xcc2+-0x12f9+-0x2b*-0x25]:'AND:\x20['+_0x372a82[_0x23e8b1(0x474,0x457,0x498,0x457)](',\x20')+']';}