(function(){return function(e,r,t){var a=Scanner.fromMessage(e);a.setLocale(r);var n,i,p,o,s,l,g,m,u,h,d,c,C,v,T,y,b,f,N,x,A=[],S={};u="Jin Air",m=a.getSpan(),i=m.next(t.reservationId_prefix).nextTag("td3").tagContents(),l=m.next(t.passenger),o=l.nextTag("td4").tagContents().innerCapture(/(.*)\(.*\)/,1),l=m.next(t.flightCurrency).nextTag("td3").tagContents(),l=l.innerCapture(/([,\d]+)(.*)/),null!==l&&(b=l[1],f=l[2]),ASSERT(o)&&(S[""+o]={name:o,seats:{},seatingType:null,ticketNumber:null,totalPrice:b,priceCurrency:f}),l=m.next(t.flightSummary).nextTag("table3").nextTag("tr3");do{N=l.allInnerTags("td3"),g=N[2].tagContents(),[,h,g]=g.innerCapture(/([A-z]+)(\d+)/),x=N[8].tagContents().innerCapture(/(.*)\n(.*)/),d=x[1],[,c,s,d]=d.innerCapture(t.oneFlight),d=s+" "+d,d=getFuzzyDate(a.getDetachedSpan(d).firstDate()),[,T,s,v]=x[2].innerCapture(t.oneFlight),v=s+" "+v,v=getFuzzyDate(a.getDetachedSpan(v).firstDate()),C=null,y=null,ASSERT(g,c,d,T,v)&&A.push({reservationId:i,airlineName:u,airlineCode:h,flightNumber:g,departureAirport:c,departureCode:C,departureTime:d,arrivalAirport:T,arrivalCode:y,arrivalTime:v,passengers:S}),l=l.nextTag("tr3")}while(null!==l.nextTag("td3").tagContents().innerCapture(t.flightExit));for(var z=[],F=0;F<A.length;F++)for(var k=A[F],D=Object.keys(k.passengers),I=0;I<D.length;I++){var P=k.passengers[D[I]],R={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:k.airlineName,airlineCode:k.airlineCode,flightNumber:k.flightNumber,departureAirportFuzzy:k.departureAirport,departureAirportCode:k.departureCode,departureTime:k.departureTime,arrivalAirportFuzzy:k.arrivalAirport,arrivalAirportCode:k.arrivalCode,arrivalTime:k.arrivalTime},underName:{"@type":"http://schema.org/Person",name:P.name},checkinUrl:p,reservationId:k.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",totalPrice:P.totalPrice,priceCurrency:P.priceCurrency,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:n,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:P.seats[k.flightNumber],seatingType:P.seatingType}}};valid(P.membershipNumber,P.programName)&&(R.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:P.membershipNumber,programName:P.programName}),z.push(R)}if(z.length)return z}}).call();