Every person, regardless of whether or not he or she is an inhabitant of this state, may be tried and punished under the laws of this state for an offense committed by him or her therein, except when such offense is cognizable exclusively in the courts of the United States.