// Copyright 2014 Apple Inc.  All Rights Reserved.
new ReverseTemplateList([new ReverseTemplate("tap-e-ticket-en",function(e){return/[0-9]{2}[A-Z]{3}\s\w{3}\s\w{3}$/.test(e.subject)},function(e){if(/[0-9]{2}[A-Z]{3}\s\w{3}\s\w{3}$/.test(e.subject)&&/BOOKING REF/.test(e.plain)&&/TICKET NUMBER/.test(e.plain)){var t,r="en_US",s={};return s.name=/NAME:\s*(.*)/,s.reservationId=/BOOKING REF\s*:\s*AMADEUS\s*:/,s.ticketNumber=/TICKET NUMBER\s*:/,s.flightInfo=RegExp([/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+/,/\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?/,/[\s\S]+?\s*($<arrivalAirport>.+?)\s+/,/ARRIVAL TIME:\s+($<arrivalHour>\d{2})($<arrivalMinute>\d{2})\s+/,/ARRIVAL DATE:\s+($<arrivalDate>.*)/].map(function(e){return e.source}).join("")),s.price=/TOTAL\s+:/,(t=loadHelper("tap-amadeus-skeleton.js"))(e,r,s)}},"0/1/2/3/4/5/240/577/583","SG5b14ec37"),new ReverseTemplate("tap-e-ticket-pt",function(e){return/[0-9]{2}[A-Z]{3}\s\w{3}\s\w{3}$/.test(e.subject)},function(e){if(/[0-9]{2}[A-Z]{3}\s\w{3}\s\w{3}$/.test(e.subject)&&/CODIGO DE RESERVA/.test(e.plain)&&/N\xdaMERO DO BILHETE/.test(e.plain)){var t,r="pt_PT",s={};return s.name=/NOME:\s*(.*)/,s.reservationId=/CODIGO DE RESERVA\s*:\s*AMADEUS\s*:\s*/,s.ticketNumber=/N\xdaMERO DO BILHETE\s*:/,s.flightInfo=RegExp([/\s*($<departureAirport>.+?)\s+($<airlineCode>\w{2})\s+($<flightNumber>\d+)\s+/,/\w\s+($<departureDate>.+)\s+($<departureHour>\d{2})($<departureMinute>\d{2}).+?/,/[\s\S]+?\s*($<arrivalAirport>.+?)\s+/,/HORARIO DE CHEGADA:\s+DATA DE CHEGADA:\s+/,/($<arrivalHour>\d{2})($<arrivalMinute>\d{2})\s+($<arrivalDate>.*)/].map(function(e){return e.source}).join("")),s.price=/TOTAL\s+:/,(t=loadHelper("tap-amadeus-skeleton.js"))(e,r,s)}},"0/1/2/3/4/5/240/577/584","SG5a181a84")]);