// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,p,s,g,i,c,d,m,h,l,C,y,u,x,T,v,f,A,S,R,D,k,P;if(D=a.getSpan().next(n.reservationId).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,n.reservationId),1),i=D.previousDate().previousTag("td5").tagContents(),x=a.getSpan().next(n.pickup).nextAnyTag("td").tagContents(),T=x.nextAnyTag("td").tagContents(),x=a.getDetachedSpan((""+T).replace(/\,/g,"")+" "+x).innerDate(),y=T.nextAnyTag("td").tagContents(),h=y.next(n.dropoff).nextAnyTag("td").tagContents(),k=h.nextAnyTag("td").tagContents(),h=a.getDetachedSpan((""+k).replace(/\,/,"")+" "+h).innerDate(),d=k.nextAnyTag("td").tagContents(),p=d.nextTag("td6").nextTag("td6").tagContents(),v=p.next(n.name).nextAnyTag("td").tagContents(),l=v.next(n.price).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,n.price),1),f=l.innerCapture(/([\d,.]+)/,1),A=l.innerCapture(/([^\d,.]+)/,1),P=n.cancellation.test(e.subject)?"Cancelled":"Confirmed",ASSERT(v,i,x))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:f,priceCurrency:A,reservationId:D,reservationStatus:"http://schema.org/Reservation"+P,checkinUrl:S,modifyReservationUrl:r,cancelReservationUrl:o,underName:{"@type":"http://schema.org/Person",name:v,email:R},provider:{"@type":"http://schema.org/Organization",name:i},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:p},license:s,color:g},pickupTime:x,pickupLocation:{"@type":"http://schema.org/Place",name:C,telephone:u,address:y},dropoffTime:h,dropoffLocation:{"@type":"http://schema.org/Place",name:c,telephone:m,address:d}}]}}).call();