function hex2dec ( hex ) {

  return hex.includes ( '-' ) ? hex.split ( '-' ).map ( hex2dec ) : parseInt ( hex, 16 );

}