UNPKG

@typecad/typecad

Version:

🤖programmatically 💥create 🛰️hardware

2 lines 4.53 kB
#!/usr/bin/env tsx (function(_0x42580c,_0x1d3230){var a5_0x2ec903={_0x5e6d61:0x9f,_0x5b48da:0x8d,_0x515422:0x8a,_0x5d21df:0x8d,_0x16d6bb:0x98,_0x3d5121:0x88,_0x4e056e:0x86,_0x221963:0x93,_0x4bd8a5:0x8e,_0x1d95c6:0x9d,_0x68938b:0x9a};function _0x47d5c9(_0x45baa9,_0x467cc6){return a5_0x2a65(_0x45baa9- -0x181,_0x467cc6);}var _0x3bcc43=_0x42580c();while(!![]){try{var _0x51d8c6=parseInt(_0x47d5c9(-0x9a,-0x98))/(-0x1eac+-0x2*-0x742+0x1029)+-parseInt(_0x47d5c9(-0x92,-0x86))/(0x1f4b*0x1+-0x1645+-0x1*0x904)*(-parseInt(_0x47d5c9(-a5_0x2ec903._0x5e6d61,-0xa0))/(-0x1d3b+-0x1a45+0x9*0x62b))+parseInt(_0x47d5c9(-a5_0x2ec903._0x5b48da,-a5_0x2ec903._0x515422))/(-0x2*-0xf2d+-0x22*-0x40+0x6*-0x679)*(-parseInt(_0x47d5c9(-0x99,-a5_0x2ec903._0x5d21df))/(0x1a*-0x12+-0x1*0x782+-0x95b*-0x1))+-parseInt(_0x47d5c9(-0x9e,-a5_0x2ec903._0x16d6bb))/(-0xe2+0x5*0x76b+-0x242f)*(parseInt(_0x47d5c9(-0x94,-0x97))/(0x2060+-0x482+0x1bd7*-0x1))+parseInt(_0x47d5c9(-a5_0x2ec903._0x3d5121,-a5_0x2ec903._0x4e056e))/(0xb*0xe3+-0xa*-0x9f+0xfef*-0x1)*(parseInt(_0x47d5c9(-a5_0x2ec903._0x221963,-0x9b))/(-0x1*0x2076+0xcb*0x9+0x874*0x3))+parseInt(_0x47d5c9(-a5_0x2ec903._0x4bd8a5,-a5_0x2ec903._0x5d21df))/(-0x2*-0xff4+0x168b*-0x1+-0x953)*(parseInt(_0x47d5c9(-0x90,-0x95))/(-0xca8+0xa8b+0x17*0x18))+-parseInt(_0x47d5c9(-a5_0x2ec903._0x1d95c6,-a5_0x2ec903._0x68938b))/(-0x372+-0x4f6+0x874);if(_0x51d8c6===_0x1d3230)break;else _0x3bcc43['push'](_0x3bcc43['shift']());}catch(_0x4bb2eb){_0x3bcc43['push'](_0x3bcc43['shift']());}}}(a5_0x466f,0xec5c7+-0x10543c+0xe0adc*0x1));export{Component}from'./component';export{Schematic}from'./schematic';export{Pin}from'./pin';export{I2C,UART,USB,Power}from'./buses';function a5_0x466f(){var _0x576cc8=['B3jLigLUzM9YBq','ndHYvwfluwO','ntq5uxjAD3ft','ndq0ndjpwKvLrhC','nda2nJK3nZzeAKXKD1m','yxrPB24','l3r5CgvJywqVDa','mtu3ntCWmfP3zM1dwq','otvOtM9psLy','8j+rUIbfCNjVCJOGsW','AunbrcbUB3qGzG','B3vUzcWGz28GDa','D2HPDgvcCMLNAa','ndj4CxbusNO','mtu4nZeYm0T0sMPevW','mti4nZzzAuXrz0e','8j+pGsa','mZnPDuD0the','DhLWzq','nta5mZy3mhn4zw5psW','mJi5mdG4sMXcseXL','As90ExbLy2fKlG','Bg9N','CMvK'];a5_0x466f=function(){return _0x576cc8;};return a5_0x466f();}function a5_0x2a65(_0x18096f,_0x495dde){var _0x42294b=a5_0x466f();return a5_0x2a65=function(_0xeffc4d,_0x264906){_0xeffc4d=_0xeffc4d-(-0x1*-0xecb+-0x2251+0x1468);var _0x3b0154=_0x42294b[_0xeffc4d];if(a5_0x2a65['uIaPYq']===undefined){var _0x2453f8=function(_0x10d447){var _0x45a719='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x703176='',_0x287fe1='';for(var _0x50cf9b=0x3a7+-0x1015+0x25*0x56,_0xa4071a,_0x416774,_0x16a5f4=0x4f2*-0x7+0x174a+0xb54;_0x416774=_0x10d447['charAt'](_0x16a5f4++);~_0x416774&&(_0xa4071a=_0x50cf9b%(0x1942+-0x142*-0x1d+0x316*-0x14)?_0xa4071a*(0x8*0x89+0x1f9d*-0x1+0x1b95)+_0x416774:_0x416774,_0x50cf9b++%(0x25ab+-0x4d4+0x20d3*-0x1))?_0x703176+=String['fromCharCode'](0x1f9*0x13+-0x1ac1+0x35*-0x2f&_0xa4071a>>(-(-0xc92+0x26b6+0xf*-0x1be)*_0x50cf9b&0x24*-0x9e+0x1c5+0x1479)):0x1*0x13ff+0x63*-0x2c+0x1*-0x2fb){_0x416774=_0x45a719['indexOf'](_0x416774);}for(var _0x40f470=-0x209e+0x592+0x1b0c,_0x234fa7=_0x703176['length'];_0x40f470<_0x234fa7;_0x40f470++){_0x287fe1+='%'+('00'+_0x703176['charCodeAt'](_0x40f470)['toString'](-0x1*0x103a+0x1d14+-0xcca*0x1))['slice'](-(0xf31+-0x5*-0x505+-0xa12*0x4));}return decodeURIComponent(_0x287fe1);};a5_0x2a65['FFMdrq']=_0x2453f8,_0x18096f=arguments,a5_0x2a65['uIaPYq']=!![];}var _0x453f62=_0x42294b[0x5d0+0x21c2+-0x2792],_0x1d787e=_0xeffc4d+_0x453f62,_0x3538fe=_0x18096f[_0x1d787e];return!_0x3538fe?(_0x3b0154=a5_0x2a65['FFMdrq'](_0x3b0154),_0x18096f[_0x1d787e]=_0x3b0154):_0x3b0154=_0x3538fe,_0x3b0154;},a5_0x2a65(_0x18096f,_0x495dde);}export{PCB,TrackBuilder}from'./pcb';export{KiCAD,kicad_cli_path,kicad_path}from'./kicad';export{ComponentRegistry}from'./component_registry';import a5_0x56ff8e from'chalk';import{KiCAD,kicad_cli_path,kicad_path}from'./kicad';import{exit}from'node:process';function a5_0x41e8be(_0x570674,_0x12b189){return a5_0x2a65(_0x12b189-0x7f,_0x570674);}new KiCAD(),console[a5_0x41e8be(0x173,0x175)](a5_0x41e8be(0x179,0x16f)+a5_0x56ff8e[a5_0x41e8be(0x162,0x16b)+'t']['bold'](a5_0x41e8be(0x165,0x171))+('CAD\x20starti'+'ng...'));if(kicad_path&&kicad_cli_path){}else console['log']('-\x20',a5_0x56ff8e[a5_0x41e8be(0x17b,0x176)]['bold'](a5_0x41e8be(0x165,0x168)+a5_0x41e8be(0x167,0x169)+a5_0x41e8be(0x171,0x16a)+'o\x20https://'+'github.com'+a5_0x41e8be(0x16d,0x165)+'ypecad/wik'+a5_0x41e8be(0x16c,0x174)+'json\x20for\x20m'+a5_0x41e8be(0x17c,0x177)+a5_0x41e8be(0x158,0x164))),exit();