UNPKG

@typecad/typecad

Version:

🤖programmatically 💥create 🛰️hardware

1 lines 21.2 kB
function a27_0x4a27(){const _0xea27de=['CgnI','s1HqD2O','CgfYC2u','ogfzCNPZuq','CM91BMrYzwn0','BwfW','DhLWzq','C2L6zq','C2XPy2u','DuDUt1m','rgf0yq','Dg9mB3DLCKnHCW','q3HlsgG','DhjHBNnMB3jTva','BNbFDgHYDv9OBW','AvrOuNu','yuH2qLe','zxH0CMfJDfbHza','y3vZDg9T','Au1cvKe','Bgf5zxi','C2jrt2S','mZm0mZa2oej6CursAW','C2LU','CMvZB2X2Aw5Nia','zw50','wur5sNK','mJmWtxzhu1Hk','rwv3Dwm','v1DWu04','DvP1z1y','y2vUDgvY','CMvMzxjLBMnL','Bgf5zxjZ','DLLjrwW','igzVCIa','z2v0ugfKr2vVBq','mZi5mJn2vePgsLa','uujjzge','mZvvEhbpvg4','B0fIC29SDxrL','Bg9Xq2C','B1DZuxG','Aw5JBhvKzxm','nJGWndnlzKvrzhG','DLvVwxa','CfHAyw0','u0LJBgG','BNvTyMvY','nereCeP1BW','C2HHCgu','mtyWmMDyD2zfBG','CgfKigDLB21LDa','ihbPBIa','mJm1nJe2sefttvLn','v1DbDeW','mtKZntqWBgf3rfbf','DgHYDv9OB2XL','tKzpquC','ihrVihbHCNnLia','EwvSBg93','w1bHzfjLC29SDG','mJKZnJy0mgvKvvPHCG','BwvZC2fNzq','vMDTCfy','mZi2oxDTDuDozG','AxnbCNjHEq','ig5VDcbMB3vUza','zM9VDhbYAw50ia','zxrYEq','D2fYBG','A29Zyva','qvjbrfa','uxnIA2G','BgLI','wfHOt0K','CMvWBgfJzq','zxjDifvUywjSzq','AgvPz2H0','qI5dDq','sw4ZlKn1','BgvUz3rO','tgPxwuK','igHHCYbUBYbVDW','CNKGzM9Yia','Aw50ia','rI5dDq','B3DUzxi','D2LKDgG','yMfJAW','CM90yxrPB24','y29UBMvJDa','C21K'];a27_0x4a27=function(){return _0xea27de;};return a27_0x4a27();}(function(_0x119659,_0x50da6a){const a27_0x4073b9={_0x17aec1:0x34d,_0x27ebc8:0x348,_0x2d4efd:0x33f,_0x4cc972:0x343,_0x2fd2a0:0x325,_0x1cda17:0x300,_0xff5b05:0x31f,_0x41f409:0x347,_0x2fadfa:0x335,_0x34a525:0x2fd},a27_0x3de194={_0x2d7933:0x109},_0x4dc66f=_0x119659();function _0x3e8e5a(_0x25e1f6,_0x19d495){return a27_0x4a58(_0x19d495-a27_0x3de194._0x2d7933,_0x25e1f6);}while(!![]){try{const _0x270448=parseInt(_0x3e8e5a(0x358,0x352))/(-0x18*-0xd3+-0x15e2*-0x1+-0xde3*0x3)+parseInt(_0x3e8e5a(0x35f,a27_0x4073b9._0x17aec1))/(-0x3d*0x2d+-0x1b8b*-0x1+-0x10d0)*(parseInt(_0x3e8e5a(0x359,a27_0x4073b9._0x27ebc8))/(0x14c5+0x13*0x9+-0x156d*0x1))+-parseInt(_0x3e8e5a(0x365,0x354))/(-0x1*0xfb+-0x222b*0x1+0x232a)*(-parseInt(_0x3e8e5a(a27_0x4073b9._0x2d4efd,a27_0x4073b9._0x4cc972))/(0x12ac+0x17fa+-0x2aa1))+parseInt(_0x3e8e5a(a27_0x4073b9._0x2fd2a0,0x34f))/(0x110*0xb+-0x10a+0xa*-0x110)*(parseInt(_0x3e8e5a(0x2dc,a27_0x4073b9._0x1cda17))/(-0x1ce*0x7+0x2159+-0x10*0x14b))+-parseInt(_0x3e8e5a(0x34b,a27_0x4073b9._0xff5b05))/(-0x1*-0x14b7+-0x4e4*0x7+0xd8d*0x1)*(parseInt(_0x3e8e5a(a27_0x4073b9._0x41f409,0x332))/(0x24c1+-0x4e3*0x1+0x1*-0x1fd5))+-parseInt(_0x3e8e5a(a27_0x4073b9._0x2fadfa,0x337))/(-0x16*-0x4f+-0x1c*-0x12d+-0x27ac)*(-parseInt(_0x3e8e5a(0x332,0x341))/(0x1889+0x197*-0x14+0x74e))+-parseInt(_0x3e8e5a(0x326,a27_0x4073b9._0x34a525))/(-0x1e75+-0x1af*0x13+0x3e7e);if(_0x270448===_0x50da6a)break;else _0x4dc66f['push'](_0x4dc66f['shift']());}catch(_0x474564){_0x4dc66f['push'](_0x4dc66f['shift']());}}}(a27_0x4a27,0x2c66b+0x1d*0x313a+-0x55858));import a27_0x416fbe from's-expression.js';import a27_0x40fc24 from'chalk';function a27_0x4a58(_0x128801,_0x3d3762){const _0x59fb74=a27_0x4a27();return a27_0x4a58=function(_0x2ed7f8,_0x2eb34c){_0x2ed7f8=_0x2ed7f8-(0x6f*-0x27+0x710*-0x3+0x29*0xfa);let _0x1b16ec=_0x59fb74[_0x2ed7f8];if(a27_0x4a58['gdSgGX']===undefined){var _0xf9d0bb=function(_0x308100){const _0x2d696b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x33f541='',_0x1a6f31='';for(let _0xcc8ac2=-0x3e5*0x1+0x16c9+-0x12e4,_0x2081ef,_0x75a1c6,_0x60b5c0=-0x277*-0x1+0x163*-0x1c+0x245d;_0x75a1c6=_0x308100['charAt'](_0x60b5c0++);~_0x75a1c6&&(_0x2081ef=_0xcc8ac2%(0x39*0x7+0x7*0x211+-0x1002)?_0x2081ef*(-0x2*0xa5e+0x1b41*0x1+-0x645)+_0x75a1c6:_0x75a1c6,_0xcc8ac2++%(0x125*0x21+-0x2b*0x79+0x2e*-0x61))?_0x33f541+=String['fromCharCode'](-0x6c4+0xe47*0x1+-0x684&_0x2081ef>>(-(0x232f+-0xc73+-0x16ba)*_0xcc8ac2&0x18c4+-0x315+-0x455*0x5)):0x24f*-0x7+0x27c+0xdad){_0x75a1c6=_0x2d696b['indexOf'](_0x75a1c6);}for(let _0x39905a=-0x4*0x7c1+-0x18fa+0x37fe,_0x2c3c5d=_0x33f541['length'];_0x39905a<_0x2c3c5d;_0x39905a++){_0x1a6f31+='%'+('00'+_0x33f541['charCodeAt'](_0x39905a)['toString'](-0x2501*-0x1+0x1341+-0x3832))['slice'](-(-0x33*-0xc+0x593*-0x6+0x47*0x70));}return decodeURIComponent(_0x1a6f31);};a27_0x4a58['ZjBbPL']=_0xf9d0bb,_0x128801=arguments,a27_0x4a58['gdSgGX']=!![];}const _0x475755=_0x59fb74[-0xd22+0x1ae*-0x4+0x13da],_0x3251df=_0x2ed7f8+_0x475755,_0x56cc0c=_0x128801[_0x3251df];return!_0x56cc0c?(_0x1b16ec=a27_0x4a58['ZjBbPL'](_0x1b16ec),_0x128801[_0x3251df]=_0x1b16ec):_0x1b16ec=_0x56cc0c,_0x1b16ec;},a27_0x4a58(_0x128801,_0x3d3762);}function a27_0x175b10(_0x1c0657,_0x58a4eb){const a27_0x1e6f4e={_0x5caab6:0x1a2};return a27_0x4a58(_0x1c0657- -a27_0x1e6f4e._0x5caab6,_0x58a4eb);}const S=new a27_0x416fbe();export class PadResolver{static['getPadCent'+'er'](_0x27c7b4){const a27_0x57c260={_0x1edb49:0x456,_0x4524c3:0x480,_0x3b6884:0x4a9,_0x139ddb:0x4ae,_0x5214dd:0x484,_0xb75a75:0x4b2,_0x23b8f1:0x4ba,_0xeaa283:0x4df};if(!_0x27c7b4['owner'])return console[_0x5c0fc5(0x473,a27_0x57c260._0x1edb49)](a27_0x40fc24['yellow'](_0x5c0fc5(0x46a,0x457)+'er]\x20Pin\x20'+_0x27c7b4['number']+(_0x5c0fc5(a27_0x57c260._0x4524c3,0x49b)+'ner\x20compon'+_0x5c0fc5(0x4a3,a27_0x57c260._0x3b6884)))),null;const _0x5c7dcf=this[_0x5c0fc5(a27_0x57c260._0x139ddb,0x4cb)+'etry'](_0x27c7b4[_0x5c0fc5(a27_0x57c260._0x5214dd,a27_0x57c260._0xb75a75)],_0x27c7b4[_0x5c0fc5(a27_0x57c260._0x23b8f1,a27_0x57c260._0xeaa283)]);if(!_0x5c7dcf)return null;const _0x4206af={};_0x4206af['x']=_0x5c7dcf['center']['x'],_0x4206af['y']=_0x5c7dcf['center']['y'],_0x4206af[_0x5c0fc5(0x49e,0x474)]=_0x5c7dcf[_0x5c0fc5(0x49e,0x493)];function _0x5c0fc5(_0x3aa528,_0x5ea1f7){return a27_0x4a58(_0x3aa528-0x277,_0x5ea1f7);}return _0x4206af;}static['getPadGeom'+a27_0x175b10(0x59,0x4c)](_0x71cdbb,_0x4bfde5){const a27_0x2ef029={_0xb5934e:0xdb,_0x3d8dad:0xbd,_0x296c05:0xf0,_0x14f81c:0xe2,_0x4fb63d:0xb1,_0x3555bf:0xc5,_0x1d4465:0x10e,_0x8aeff4:0xff,_0x258edd:0xd2,_0x311135:0xab,_0x25186c:0xde,_0x2de68c:0xfb,_0x36de21:0x10e,_0x3283c2:0x130,_0x20642c:0xf2,_0x326f5b:0xd7,_0xe7e389:0xaa,_0x1e8532:0xcd,_0x5f56f5:0xc4,_0x3dedc8:0x106,_0x28648f:0x10b,_0x131a5e:0x122,_0x32b349:0x111,_0x3f9128:0x123,_0x2b396f:0x148,_0x3e9632:0xd0},_0xba2055={};_0xba2055['JvJyN']=function(_0x356029,_0xe47b24){return _0x356029===_0xe47b24;};function _0x134ed6(_0x267c7e,_0x5948f2){return a27_0x175b10(_0x267c7e-0x7d,_0x5948f2);}const _0x286d65=_0xba2055;try{const _0x1c299b=_0x71cdbb['footprint_'+_0x134ed6(a27_0x2ef029._0xb5934e,a27_0x2ef029._0x3d8dad)](_0x71cdbb['footprint']),_0x14d34b=S[_0x134ed6(a27_0x2ef029._0x296c05,0x10f)](_0x1c299b);if(!Array[_0x134ed6(0xd3,0xe7)](_0x14d34b)||_0x286d65['JvJyN'](_0x14d34b[_0x134ed6(a27_0x2ef029._0x14f81c,0xc5)],-0xe5e+0x1*0x111e+0x2*-0x160))return console['warn'](a27_0x40fc24[_0x134ed6(0xcd,0xdb)]('[PadResolv'+_0x134ed6(0xde,0xba)+_0x134ed6(0xcc,0xb6)+_0x134ed6(0xd5,a27_0x2ef029._0x4fb63d)+'for\x20'+_0x71cdbb['reference'])),null;const _0x55a7dd=this['findPadNod'+'e'](_0x14d34b,_0x4bfde5);if(!_0x55a7dd)return console['warn'](a27_0x40fc24[_0x134ed6(0xcd,0xca)]('[PadResolv'+'er]\x20Pad\x20'+_0x4bfde5+(_0x134ed6(0xd4,a27_0x2ef029._0x3555bf)+'\x20in\x20footpr'+_0x134ed6(0xe6,0xed))+_0x71cdbb['footprint']+'\x20for\x20'+_0x71cdbb[_0x134ed6(a27_0x2ef029._0x1d4465,0xfb)])),null;const _0x4a48dd=this[_0x134ed6(a27_0x2ef029._0x8aeff4,0x102)+_0x134ed6(0xf8,a27_0x2ef029._0x258edd)](_0x55a7dd);if(!_0x4a48dd)return console['warn'](a27_0x40fc24[_0x134ed6(0xcd,a27_0x2ef029._0x311135)]('[PadResolv'+_0x134ed6(a27_0x2ef029._0x25186c,0xf3)+'\x20to\x20extrac'+'t\x20pad\x20data'+_0x134ed6(0x111,a27_0x2ef029._0x2de68c)+_0x71cdbb[_0x134ed6(a27_0x2ef029._0x36de21,a27_0x2ef029._0x3283c2)]+'\x20pin\x20'+_0x4bfde5)),null;const _0x1d2990=this[_0x134ed6(0xfb,a27_0x2ef029._0x20642c)+'oAbsolute'](_0x4a48dd,_0x71cdbb);return _0x1d2990;}catch(_0x27598c){return console[_0x134ed6(a27_0x2ef029._0x326f5b,a27_0x2ef029._0xe7e389)](a27_0x40fc24[_0x134ed6(a27_0x2ef029._0x1e8532,a27_0x2ef029._0x5f56f5)]('[PadResolv'+'er]\x20Error\x20'+_0x134ed6(a27_0x2ef029._0x3dedc8,a27_0x2ef029._0x28648f)+_0x134ed6(a27_0x2ef029._0x131a5e,a27_0x2ef029._0x36de21)+_0x134ed6(0xe5,a27_0x2ef029._0x32b349)+_0x71cdbb['reference']+_0x134ed6(a27_0x2ef029._0x3f9128,a27_0x2ef029._0x2b396f)+_0x4bfde5+':\x20'+_0x27598c[_0x134ed6(a27_0x2ef029._0x3e9632,0xa8)])),null;}}static['findPadNod'+'e'](_0x574e4b,_0x8bb941){const a27_0x5c38cf={_0x40bbd0:0x17,_0x559667:0xd},a27_0xeacacf={_0x407402:0x91},_0x1b3b15={'NBMrv':function(_0x3cdcfd,_0x5b0c03){return _0x3cdcfd>_0x5b0c03;},'iMBVA':function(_0x6fdf1b,_0x3437cd){return _0x6fdf1b(_0x3437cd);}};function _0x569500(_0x550998,_0x2a6ba8){return a27_0x175b10(_0x2a6ba8- -a27_0xeacacf._0x407402,_0x550998);}const _0x915aca=_0x1b3b15['iMBVA'](String,_0x8bb941),_0x39c002=_0x2fedbc=>{if(!Array['isArray'](_0x2fedbc))return null;if(_0x2fedbc[-0x22fe+0xdf9+-0x1*-0x1505]==='pad'&&_0x1b3b15['NBMrv'](_0x2fedbc['length'],-0x1670+-0x1799+0x53*0x8e)){const _0x3fdd03=String(_0x2fedbc[-0x1*0x1bb5+-0x11*-0x125+0x1*0x841])['replace'](/[`"]/g,'');if(_0x3fdd03===_0x915aca)return _0x2fedbc;}for(const _0x323b95 of _0x2fedbc){if(Array['isArray'](_0x323b95)){const _0xce4841=_0x1b3b15['iMBVA'](_0x39c002,_0x323b95);if(_0xce4841)return _0xce4841;}}return null;};return _0x1b3b15[_0x569500(-a27_0x5c38cf._0x40bbd0,-a27_0x5c38cf._0x559667)](_0x39c002,_0x574e4b);}static['extractPad'+'Data'](_0x17834b){const a27_0x971a5b={_0x1631ad:0x41,_0x292e7b:0x51,_0x4960bc:0x59,_0x1674db:0x82,_0x3c3670:0x39,_0x4c529d:0x41,_0x378ae4:0x4b,_0x1e2914:0x45,_0x1a5af9:0x50,_0x3eefa6:0x4a,_0x49f0ec:0x1,_0x40277e:0x65,_0x1c319d:0x2f,_0x1caaf9:0x6d,_0x1a2bbe:0x38,_0x15cde8:0x33,_0x48025f:0x5a,_0x30485f:0x74,_0xcf81f0:0x7c,_0xe5c14:0x5f,_0x45a212:0x9e},_0x318c15={'oTSpM':'F.Cu','sbQOk':function(_0x535b36,_0x3b16b7){return _0x535b36(_0x3b16b7);},'KXPwj':function(_0x4e4a24,_0x3d500a){return _0x4e4a24===_0x3d500a;},'CxKHh':function(_0x1b0533,_0x3ff1d0){return _0x1b0533(_0x3ff1d0);},'LjWYI':function(_0x54dcf6,_0x26f1db){return _0x54dcf6(_0x26f1db);},'XXhOI':function(_0x3912b2,_0xccb122){return _0x3912b2>_0xccb122;},'kosaP':function(_0x33fe5e,_0x11189c){return _0x33fe5e(_0x11189c);},'VgmpV':function(_0xce32e5,_0x163b75){return _0xce32e5===_0x163b75;},'QBIda':'layers','loqCg':function(_0x137431,_0x6b75d6){return _0x137431>_0x6b75d6;}},_0x2e5692={};_0x2e5692['x']=0x0,_0x2e5692['y']=0x0,_0x2e5692[_0x25ee72(a27_0x971a5b._0x1631ad,0x1e)]=0x0;let _0x10a06e=_0x2e5692;const _0x5a96a0={};_0x5a96a0[_0x25ee72(0x3f,a27_0x971a5b._0x292e7b)]=0x1,_0x5a96a0['height']=0x1;let _0x5ea416=_0x5a96a0,_0x508f77='rect',_0x29ef96=_0x25ee72(0x43,0x5a),_0x3898f3=[_0x318c15['oTSpM']];const _0x462ce6=_0x318c15[_0x25ee72(a27_0x971a5b._0x4960bc,a27_0x971a5b._0x1674db)](String,_0x17834b[0x28*0xa7+-0x10ff+-0x918])['replace'](/[`"]/g,'');for(const _0x293575 of _0x17834b){if(!Array[_0x25ee72(0x29,0x2b)](_0x293575))continue;const _0x15983b=_0x293575[-0x16dc+-0x23c1+-0x3a9d*-0x1];if(_0x318c15['KXPwj'](_0x15983b,'at'))_0x10a06e['x']=parseFloat(String(_0x293575[-0x2294+-0x43*0x59+0x39e0]))||0x1a*-0x54+0x7*0x49d+-0x17c3,_0x10a06e['y']=_0x318c15[_0x25ee72(0x50,0x31)](parseFloat,_0x318c15['LjWYI'](String,_0x293575[-0x756*0x1+0x342+0x416*0x1]))||-0xe06+0x2e3+0x1*0xb23,_0x10a06e['rotation']=_0x318c15[_0x25ee72(0x32,0x2e)](_0x293575[_0x25ee72(0x38,0x30)],-0x1e3d+0x16cb+-0x17*-0x53)?_0x318c15[_0x25ee72(a27_0x971a5b._0x3c3670,a27_0x971a5b._0x4c529d)](parseFloat,_0x318c15[_0x25ee72(0x50,a27_0x971a5b._0x378ae4)](String,_0x293575[0x1d4c+-0x15b5+-0x14*0x61]))||-0xb0b+0x151*0x19+-0x15de:0x19c4*-0x1+0x1a0f+-0x4b;else{if(_0x318c15[_0x25ee72(a27_0x971a5b._0x1e2914,0x63)](_0x15983b,'size'))_0x5ea416['width']=_0x318c15[_0x25ee72(a27_0x971a5b._0x1a5af9,a27_0x971a5b._0x1e2914)](parseFloat,_0x318c15['kosaP'](String,_0x293575[0xcb*0x1d+-0x1e9*-0x10+-0x358e]))||-0x1fb3+-0x110b*-0x2+-0x2*0x131,_0x5ea416[_0x25ee72(0x35,0x43)]=_0x318c15[_0x25ee72(0x50,a27_0x971a5b._0x3eefa6)](parseFloat,String(_0x293575[-0x139*0x2+-0x13e9+0x165d]))||-0x3f8+0x1509+-0x1110;else _0x318c15[_0x25ee72(0x27,-a27_0x971a5b._0x49f0ec)](_0x15983b,_0x318c15[_0x25ee72(0x6a,0x73)])&&(_0x3898f3=_0x293575[_0x25ee72(0x4c,a27_0x971a5b._0x40277e)](-0x229b+-0xef3+0x318f)[_0x25ee72(0x49,a27_0x971a5b._0x1c319d)](_0x4b3209=>String(_0x4b3209)['replace'](/[`"]/g,'')));}}_0x318c15[_0x25ee72(a27_0x971a5b._0x1caaf9,0x6e)](_0x17834b[_0x25ee72(a27_0x971a5b._0x1a2bbe,0x23)],0x21f2+0x277*-0x5+-0x159d)&&(_0x29ef96=String(_0x17834b[-0x531*0x7+0x191a+-0x1*-0xb3f])[_0x25ee72(a27_0x971a5b._0x15cde8,0x1b)](/[`"]/g,''));_0x318c15['XXhOI'](_0x17834b['length'],-0x1119+0x296*-0x1+-0x2*-0x9d9)&&(_0x508f77=_0x318c15[_0x25ee72(0x2e,0x46)](String,_0x17834b[-0xef3+-0xce3*0x3+0x359f])[_0x25ee72(0x33,a27_0x971a5b._0x48025f)](/[`"]/g,''));const _0x5b80c4={};function _0x25ee72(_0x2aeb90,_0xa77dc3){return a27_0x175b10(_0x2aeb90- -0x2d,_0xa77dc3);}return _0x5b80c4[_0x25ee72(a27_0x971a5b._0x30485f,a27_0x971a5b._0xcf81f0)]=_0x462ce6,_0x5b80c4[_0x25ee72(0x4a,0x40)]=_0x29ef96,_0x5b80c4['at']=_0x10a06e,_0x5b80c4[_0x25ee72(0x4b,a27_0x971a5b._0xe5c14)]=_0x5ea416,_0x5b80c4[_0x25ee72(0x76,a27_0x971a5b._0x45a212)]=_0x508f77,_0x5b80c4['layers']=_0x3898f3,_0x5b80c4;}static[a27_0x175b10(0x7e,0x5c)+a27_0x175b10(0x99,0x7c)](_0x1a9bc8,_0xcc75b6){const a27_0x29e463={_0x413a60:0x1da,_0x357f70:0x1a6,_0x424921:0x1d8,_0x4ec5ca:0x1c7,_0x343ac5:0x1b6,_0x4fa59c:0x1d5,_0x12bd7f:0x1aa,_0x9948a2:0x1d4,_0xa5bf06:0x1d9,_0x2ff0be:0x1e6,_0x1706ad:0x1a9,_0x4b1863:0x1c1,_0x4dbc0f:0x1c8,_0x4cf5d2:0x1b2,_0x2afcb2:0x1b8,_0x245b30:0x1e1,_0x4b4218:0x1da,_0x1853ce:0x1a4,_0x1ec907:0x1c3,_0x46878:0x1f3,_0x553498:0x1d6,_0x314f80:0x1b5,_0x163a77:0x21f,_0x1c35ec:0x1f2,_0x2bd0a9:0x1b4,_0x106825:0x1ed,_0x29f641:0x1f1,_0x5d537e:0x1e3,_0x17c2f5:0x1c6,_0x3c4854:0x1f4,_0x47816f:0x1d4,_0x326a94:0x1c1,_0x464448:0x1b3,_0x4fa76f:0x1aa,_0x1818ee:0x1e7,_0x4e954e:0x179,_0x5ea83d:0x1a3,_0x20081c:0x1b1,_0x214099:0x200,_0x442261:0x1e5,_0x1036fe:0x1ef,_0x52924f:0x1b3,_0x40871d:0x1d7,_0xa1cf0d:0x1bf},_0x362d48={};_0x362d48['PzZsh']='Invalid\x20re'+'lative\x20dat'+'a',_0x362d48[_0x11e4d7(0x1ab,a27_0x29e463._0x413a60)]='front',_0x362d48[_0x11e4d7(a27_0x29e463._0x357f70,0x1a4)]=function(_0x139011,_0x26505c){return _0x139011*_0x26505c;},_0x362d48[_0x11e4d7(a27_0x29e463._0x424921,0x1e7)]=_0x11e4d7(0x1b0,0x1b4),_0x362d48['SyfnU']=function(_0x15984f,_0x333650){return _0x15984f*_0x333650;},_0x362d48['uZugV']=function(_0x24c307,_0x3328fc){return _0x24c307+_0x3328fc;},_0x362d48[_0x11e4d7(0x1b6,0x1d2)]=function(_0x39dcfe,_0x19a82a){return _0x39dcfe+_0x19a82a;},_0x362d48['NFOAG']=function(_0x4d72db,_0x3d50ad){return _0x4d72db===_0x3d50ad;},_0x362d48['ARADP']='F.Cu',_0x362d48['InwJU']='np_thru_ho'+'le',_0x362d48[_0x11e4d7(0x1ee,a27_0x29e463._0x4ec5ca)]=_0x11e4d7(0x1b8,a27_0x29e463._0x343ac5),_0x362d48['FXRRU']=function(_0x12748f,_0x11831a){return _0x12748f===_0x11831a;},_0x362d48[_0x11e4d7(a27_0x29e463._0x4fa59c,0x1e5)]='In1.Cu',_0x362d48[_0x11e4d7(a27_0x29e463._0x12bd7f,a27_0x29e463._0x9948a2)]='In2.Cu',_0x362d48['KIdHb']=_0x11e4d7(a27_0x29e463._0xa5bf06,0x1ab),_0x362d48[_0x11e4d7(0x1bf,a27_0x29e463._0x2ff0be)]=function(_0x936ecd,_0x3ece6f){return _0x936ecd===_0x3ece6f;},_0x362d48[_0x11e4d7(a27_0x29e463._0x1706ad,a27_0x29e463._0x4b1863)]=_0x11e4d7(0x19f,a27_0x29e463._0x12bd7f),_0x362d48['oWsQx']='circle',_0x362d48[_0x11e4d7(0x1b2,a27_0x29e463._0x4dbc0f)]=_0x11e4d7(a27_0x29e463._0x2ff0be,0x1bc),_0x362d48['WWAtL']=_0x11e4d7(a27_0x29e463._0x4cf5d2,0x1ca);const _0x558c97=_0x362d48;if(!_0x1a9bc8)throw new Error(_0x558c97['PzZsh']);const _0x4dd2ae=_0xcc75b6['pcb']['x']||-0x1a3d+0x136a+0x6d3,_0x533803=_0xcc75b6[_0x11e4d7(0x1b7,a27_0x29e463._0x2afcb2)]['y']||0x1eb3+-0xbfa+-0x12b9*0x1,_0x2c3abb=_0xcc75b6[_0x11e4d7(a27_0x29e463._0x245b30,a27_0x29e463._0x2afcb2)]['rotation']||0xd45+0xf73+0x8*-0x397,_0x11927a=_0xcc75b6['pcb']['side']||_0x558c97[_0x11e4d7(0x1fe,a27_0x29e463._0x4b4218)],_0x4da8c9=_0x558c97[_0x11e4d7(0x176,a27_0x29e463._0x1853ce)](-_0x2c3abb,Math['PI'])/(0x1c21*0x1+-0x4*-0x82f+-0x3c29),_0x57d24c=Math['cos'](_0x4da8c9),_0x120790=Math[_0x11e4d7(a27_0x29e463._0x1ec907,0x1cf)](_0x4da8c9);let _0x4ba353=_0x1a9bc8['at']['x'],_0x2c26b1=_0x1a9bc8['at']['y'];_0x11927a===_0x558c97['SIclh']&&(_0x4ba353=-_0x4ba353);const _0x54a75b=_0x4ba353*_0x57d24c-_0x2c26b1*_0x120790,_0x10ea75=_0x558c97['Qsbkh'](_0x4ba353,_0x120790)+_0x558c97['SyfnU'](_0x2c26b1,_0x57d24c),_0x83802d=_0x4dd2ae+_0x54a75b,_0x3a176d=_0x558c97[_0x11e4d7(a27_0x29e463._0x46878,a27_0x29e463._0x553498)](_0x533803,_0x10ea75);let _0x13f315=_0x558c97['YDyJy'](_0x2c3abb,_0x1a9bc8['at'][_0x11e4d7(0x1b9,a27_0x29e463._0x314f80)]);_0x558c97[_0x11e4d7(a27_0x29e463._0x163a77,a27_0x29e463._0x1c35ec)](_0x11927a,_0x11e4d7(0x1bb,a27_0x29e463._0x2bd0a9))&&(_0x13f315=(-0x3*0x72+-0x89a+0xb58-_0x13f315)%(0x1e3f+0x56b*0x1+-0x6da*0x5));_0x13f315=_0x13f315%(-0x3*-0x851+-0x83b+-0xf50);const _0x1b90a9=_0x1a9bc8[_0x11e4d7(0x1aa,0x1d9)]['filter'](_0x531df2=>_0x531df2['includes']('.Cu'));function _0x11e4d7(_0x3da1dd,_0x3090aa){return a27_0x175b10(_0x3090aa-0x147,_0x3da1dd);}const _0x2a02cf=_0x1b90a9['some'](_0x436b8c=>_0x436b8c==='*.Cu');let _0x2fe822=_0x558c97['ARADP'],_0x31a7de=[],_0x4d25c3=_0x11e4d7(0x197,0x1b7);const _0x79d45f=_0x1a9bc8['type']['toLowerCas'+'e']();if(_0x79d45f[_0x11e4d7(a27_0x29e463._0x106825,0x1e3)]('thru_hole'))_0x4d25c3=_0x11e4d7(0x1e2,a27_0x29e463._0x29f641);else{if(_0x79d45f[_0x11e4d7(0x1bb,a27_0x29e463._0x5d537e)](_0x558c97['InwJU']))_0x4d25c3=_0x558c97['InwJU'];else _0x79d45f[_0x11e4d7(0x20f,0x1e3)](_0x558c97[_0x11e4d7(0x1ac,0x1c7)])&&(_0x4d25c3=_0x558c97['iThRu']);}if(_0x4d25c3==='thru_hole'||_0x558c97['FXRRU'](_0x4d25c3,_0x11e4d7(0x1ac,a27_0x29e463._0x17c2f5)+'le'))_0x31a7de=[_0x11e4d7(0x1cc,0x1b1),_0x11e4d7(0x1d7,a27_0x29e463._0x12bd7f),_0x558c97['vUoYp'],_0x558c97[_0x11e4d7(a27_0x29e463._0x3c4854,a27_0x29e463._0x47816f)],_0x558c97['KIdHb'],'In4.Cu'],_0x2fe822=_0x558c97[_0x11e4d7(0x1fc,0x1e6)](_0x11927a,_0x558c97['SIclh'])?_0x558c97[_0x11e4d7(0x1e1,a27_0x29e463._0x326a94)]:_0x558c97['ARADP'];else{if(_0x2a02cf)_0x31a7de=[_0x558c97['ARADP'],'B.Cu'],_0x2fe822=_0x558c97[_0x11e4d7(0x201,0x1e6)](_0x11927a,'back')?_0x11e4d7(a27_0x29e463._0x464448,a27_0x29e463._0x4fa76f):_0x558c97['ARADP'];else{if(_0x1b90a9['length']>-0x13f2+0x1a53+-0x661){_0x2fe822=_0x1b90a9[0x4*0x979+-0x1ddb+0xb*-0xbb];if(_0x558c97['pXZam'](_0x11927a,_0x558c97[_0x11e4d7(0x1ec,a27_0x29e463._0x1818ee)])){if(_0x2fe822==='F.Cu')_0x2fe822=_0x11e4d7(0x1cb,0x1aa);else{if(_0x2fe822==='B.Cu')_0x2fe822=_0x558c97[_0x11e4d7(a27_0x29e463._0x4e954e,a27_0x29e463._0x5ea83d)];}}_0x31a7de=[_0x2fe822];}else _0x2fe822=_0x11927a===_0x558c97['SIclh']?_0x558c97['uGnOS']:_0x11e4d7(0x1a1,a27_0x29e463._0x20081c),_0x31a7de=[_0x2fe822];}}let _0x3d640f='rect';const _0x1f6ec9=_0x1a9bc8['shape'][_0x11e4d7(0x1aa,0x1c3)+'e']();if(_0x1f6ec9[_0x11e4d7(a27_0x29e463._0x214099,0x1e3)]('circle'))_0x3d640f=_0x558c97[_0x11e4d7(0x1c4,0x1e2)];else{if(_0x1f6ec9[_0x11e4d7(0x1e3,0x1e3)]('oval'))_0x3d640f='oval';else{if(_0x1f6ec9[_0x11e4d7(0x207,a27_0x29e463._0x5d537e)](_0x558c97[_0x11e4d7(0x1d7,0x1c8)]))_0x3d640f='roundrect';else{if(_0x1f6ec9[_0x11e4d7(0x1bf,0x1e3)]('custom'))_0x3d640f=_0x558c97[_0x11e4d7(a27_0x29e463._0x442261,a27_0x29e463._0x1036fe)];}}}const _0x303856={};_0x303856['x']=_0x83802d,_0x303856['y']=_0x3a176d;const _0x315cee={};_0x315cee[_0x11e4d7(0x1cc,a27_0x29e463._0x52924f)]=_0x1a9bc8['size']['width'],_0x315cee['height']=_0x1a9bc8[_0x11e4d7(a27_0x29e463._0x106825,0x1bf)]['height'];const _0x38a901={};return _0x38a901[_0x11e4d7(0x1bb,a27_0x29e463._0x40871d)]=_0x303856,_0x38a901['shape']=_0x3d640f,_0x38a901['type']=_0x4d25c3,_0x38a901[_0x11e4d7(0x19e,a27_0x29e463._0xa1cf0d)]=_0x315cee,_0x38a901['rotation']=_0x13f315,_0x38a901['layer']=_0x2fe822,_0x38a901['layers']=_0x31a7de,_0x38a901['number']=_0x1a9bc8['number'],_0x38a901;}static['getAllPadG'+'eometries'](_0x2487e3){const a27_0x4afe65={_0x461939:0x35f,_0x2392ed:0x374,_0x725cb9:0x357,_0x3009c2:0x376,_0x191875:0x3ba},a27_0x134b65={_0x1f4bc0:0x4e3},_0x150481={'ObWdx':function(_0x251bd2,_0x36a51f){return _0x251bd2>_0x36a51f;},'ydFMW':function(_0x45cabc,_0xc559ed){return _0x45cabc(_0xc559ed);},'Tpadh':function(_0x5c71b9,_0x3f30fb){return _0x5c71b9===_0x3f30fb;},'WWpSN':function(_0x5cd719,_0x57bfa0){return _0x5cd719(_0x57bfa0);}},_0x4f5a33=[];try{const _0x5e6cf0=_0x2487e3['footprint_'+_0x263eff(a27_0x4afe65._0x461939,0x38d)](_0x2487e3['footprint']),_0x5bee36=S[_0x263eff(a27_0x4afe65._0x2392ed,0x349)](_0x5e6cf0);if(!Array[_0x263eff(a27_0x4afe65._0x725cb9,0x343)](_0x5bee36)||_0x150481['Tpadh'](_0x5bee36[_0x263eff(0x366,a27_0x4afe65._0x3009c2)],-0x1c50+0x1*0xc7d+0xfd3*0x1))return _0x4f5a33;const _0x1d6c95=[],_0x95174a=_0x4ccfd9=>{function _0xce06b2(_0xe1d99f,_0x24caad){return _0x263eff(_0xe1d99f-0x17d,_0x24caad);}if(Array['isArray'](_0x4ccfd9)){_0x150481['ObWdx'](_0x4ccfd9[_0xce06b2(a27_0x134b65._0x1f4bc0,0x50a)],-0x1912+-0x268+0x1b7a)&&String(_0x4ccfd9[0x85f*0x1+-0x43*0x73+0x15ba])==='pad'&&_0x1d6c95['push'](_0x4ccfd9);for(const _0x85da33 of _0x4ccfd9){_0x150481['ydFMW'](_0x95174a,_0x85da33);}}};_0x150481[_0x263eff(0x38f,a27_0x4afe65._0x191875)](_0x95174a,_0x5bee36);for(const _0x14d670 of _0x1d6c95){const _0x23489c=this['extractPad'+'Data'](_0x14d670);if(!_0x23489c)continue;const _0x368a05=this[_0x263eff(0x37f,0x36c)+'oAbsolute'](_0x23489c,_0x2487e3);if(_0x368a05)_0x4f5a33['push'](_0x368a05);}}catch{}function _0x263eff(_0x286906,_0x42e0e8){return a27_0x175b10(_0x286906-0x301,_0x42e0e8);}return _0x4f5a33;}}