(function(){return function(e,t,r){var a=Scanner.fromMessage(e);a.setLocale(t);var n,s,i,g,p,o,l,d,m,u,h,T,y,A,c,v,x,C,b,N=[],f={};d="air busan",l=a.getSpan(),p=l.next(r.reservationId_prefix).nextAnyTag("td"),s=p.tagContents(),p=l.next(r.fromPerson).nextAnyTag("tr").nextAnyTag("tr").nextAnyTag("tr"),p.nextAnyTag("td").tagContents(),p=l.next(r.payMethod).nextAnyTag("td"),p=l.next(r.flightSummary).nextAnyTag("tr");do{g=p.nextAnyTag("td").tagContents().innerCapture(/([\d-]+)\s*(\(.*\))/,1),h=p.nextAnyTag("td").nextAnyTag("td").tagContents(),c=h.innerCapture(/\s*(.*)\s.*\s(.*)/),h=c[1],T=null,A=c[2],c=null,p=p.nextAnyTag("td").nextAnyTag("td").nextAnyTag("td"),b=p.tagContents(),b=b.innerCapture(/(\d+\:\d+)\s*.*?\s*(\d+\:\d+)/),u=g+" "+b[1],u=getFuzzyDate(a.getDetachedSpan(u).firstDate()),y=g+" "+b[2],y=a.getDetachedSpan(y).innerDate(),o=p.nextAnyTag("td").tagContents(),m=o.innerCapture(/\s*([A-z]+)\s?(\d+)/,1),o=o.innerCapture(/\s*([A-z]+)\s?(\d+)/,2),ASSERT(m,o,h,u,A,y)&&N.push({reservationId:s,airlineName:d,airlineCode:m,flightNumber:o,departureAirport:h,departureCode:T,departureTime:u,arrivalAirport:A,arrivalCode:c,arrivalTime:y,passengers:f}),p=p.nextAnyTag("tr")}while(p.firstTag("td4").tagContents().innerCapture(/^(\d+)\s*/,1)!==a.getNullSpan());var S=l.next(r.passenger).parentAnyTag("table").allInnerTags("td4"),z=l.next(r.passenger).parentAnyTag("table").allInnerTags("th4").length;/\uc5d0\uc5b4\ubd80\uc0b0 \uc5ec\uc815\uc548\ub0b4\uc11c/.test(e.subject)&&(S=l.next(r.passenger).next(r.passenger).parentAnyTag("table").allInnerTags("td4"),z=l.next(r.passenger).next(r.passenger).parentAnyTag("table").allInnerTags("th4").length);for(var I=0;I<S.length/z;I++){var k=S[z*I].tagContents();ASSERT(k)&&(f[""+k]={name:k,seats:{},seatingType:C,ticketNumber:null,totalPrice:v,priceCurrency:x})}for(var F=[],I=0;I<N.length;I++)for(var D=N[I],M=Object.keys(D.passengers),P=0;P<M.length;P++){var R=D.passengers[M[P]],j={"@context":"http://schema.org","@type":"http://schema.org/FlightReservation",reservationFor:{"@type":"http://apple.com/FuzzyFlight",airlineName:D.airlineName,airlineCode:D.airlineCode,flightNumber:D.flightNumber,departureAirportFuzzy:D.departureAirport,departureAirportCode:D.departureCode,departureTime:D.departureTime,arrivalAirportFuzzy:D.arrivalAirport,arrivalAirportCode:D.arrivalCode,arrivalTime:D.arrivalTime},underName:{"@type":"http://schema.org/Person",name:R.name},checkinUrl:i,reservationId:D.reservationId,reservationStatus:"http://schema.org/ReservationConfirmed",reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:n,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:R.seats[D.flightNumber],seatingType:R.seatingType}}};valid(R.membershipNumber,R.programName)&&(j.programMembershipUsed={"@type":"http://schema.org/ProgramMembership",membershipNumber:R.membershipNumber,programName:R.programName}),F.push(j)}if(F.length)return F}}).call();