// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r,a){var n=Scanner.fromMessage(e);n.setLocale(t);var i,p,o,g,x,c,u,d,s,m,T,h,l,f,v,F,y,C,z=n.getSpan(),S=z.nextText(r.underPersonInfo_prefix).nextTag("tr5").nextTag("tr5").nextTag("td5").tagContents();[,i,,o,,p]=/\: (.*) \| (.*) \: (.*) \| (.*) : (.*)/.exec(S);var D=z.nextText(r.priceInfo_prefix).nextTag("td3").nextTag("td3").tagContents();[,g,x]=/(.*)(.) \(/.exec(D),c=z.nextText(r.ticketNumber_prefix).nextTag("td3").nextTag("td3").innerCapture(regExpFormatted(/([0-9]+) \(/),1);var N=z.innerCapture(regExpFormatted(/\1(.*)\n\n(.*)/,r.flightInfo_prefix),2);[,d,s,m]=/(.*) \(([a-zA-Z]+)([0-9]+)\)/.exec(N);var _=z.innerCapture(regExpFormatted(/\1(.*)\n\n(.*)/,r.departureDateTime_prefix),2);l=getFuzzyDate(n.getDetachedSpan(""+_).firstDate()),l===n.getNullSpan()&&(l=_);var k=z.innerCapture(regExpFormatted(/\1(.*)\n\n(.*)/,r.arrivalDateTime_prefix),2);if(F=getFuzzyDate(n.getDetachedSpan(""+k).firstDate()),F===n.getNullSpan()&&(F=k),[,f,y]=z.nextText(r.airportsInfo_prefix).nextTag("td2").nextTag("td2").tagContents().innerCapture(regExpFormatted(/(.*) (.*)/)),ASSERT(l,F,f,y))return[{"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:d,airlineCode:s,flightNumber:m,departureAirportFuzzy:f,departureAirportCode:v,departureTime:l,arrivalAirportFuzzy:y,arrivalAirportCode:C,arrivalTime:F},underName:{"@type":"http://schema.org/Person",name:i},checkinUrl:u,reservationId:o,reservationStatus:"http://schema.org/Reservation"+a,totalPrice:g,priceCurrency:x,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:c,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:T,seatingType:h}}}]}}).call();