IMO you cant decide the applying order.

Thats why youc ant say "its maxxed 1st and then invis" cause its maxed and invis at the same time.

Thats why you can't persist + extend for 48hours.

Just look at the PHB empower + max example. Both apply to the original unmodified spell. otherwise Empower would have no effect if maxed was applied 1st, and dunno about the other way arround.