| 15. Commitment and Contingenices (Details Narrative) - USD ($) | 3 Months Ended | |
|---|---|---|
| Mar. 31, 2019 | Mar. 31, 2018 | |
| Commitments and Contingencies Disclosure [Abstract] | ||
| Rental expenses | $ 144,793 | $ 35,160 | 
| Sublease income | $ 115,230 | |
| Weighted average lease term operating lease | 81 months | |
| Weighted average discount rate operating lease | 11.00% | |
| X | ||||||||||
| 
- References No definition available. 
 | 
| X | ||||||||||
| 
- Definition Amount of operating lease expense. Excludes sublease income. Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef 
 | 
| X | ||||||||||
| 
- Definition Weighted average discount rate for operating lease calculated at point in time. Reference 1: http://www.xbrl.org/2003/role/disclosureRef 
 | 
| X | ||||||||||
| 
- Definition Weighted average remaining lease term for operating lease, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. Reference 1: http://www.xbrl.org/2003/role/exampleRef 
 | 
| X | ||||||||||
| 
- Definition The amount of revenue recognized for the period under subleasing arrangements. Reference 1: http://fasb.org/us-gaap/role/ref/otherTransitionRef 
 |