// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,a){var r=Scanner.fromMessage(e);r.setLocale(t);var n,o,p,i,c,s,g,m,d,f,x,h,u,l,y,v,C,T,_=r.getSpan(),A="Confirmed",D="AJ Rental",F=_.next(a.underPersonName_prefix).nextAnyTag("td").tagContents();n=/(.*)\(/.exec(F)[1],p=F.innerCapture(regExpFormatted(/\1(.*)\)/,a.reservationId_prefix),1);var P=_.next(a.pickupDateTime_prefix).nextAnyTag("td").tagContents();f=getFuzzyDate(r.getDetachedSpan(""+P).firstDate());var R=_.next(a.dropoffDateTime_prefix).nextAnyTag("td").tagContents();l=getFuzzyDate(r.getDetachedSpan(""+R).firstDate());var S=_.next(a.pickupName_prefix).parentAnyTag("td").tagContents();S=S.innerCapture(regExpFormatted(/\1(.*)\((.*)\)/,a.pickupName_prefix)),g=S[1],m=S[2];var z=_.next(a.dropoffName_prefix).parentAnyTag("td").tagContents();z=z.innerCapture(regExpFormatted(/\1(.*)\((.*)\)/,a.dropoffName_prefix)),x=z[1],h=z[2];var i=_.next(a.carBrand_prefix).nextAnyTag("td").tagContents(),N=_.next(a.totalPrice_prefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1(.*) (.*)/,a.totalPrice_prefix));if(C=N[1],T=N[2],ASSERT(p,f,l,g,x))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:C,priceCurrency:T,reservationStatus:"http://schema.org/Reservation"+A,reservationId:p,modifyReservationUrl:y,cancelReservationUrl:v,underName:{"@type":"http://schema.org/Person",name:n,email:o},provider:{"@type":"http://schema.org/Organization",name:D},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:i},license:c,color:s},pickupTime:f,pickupLocation:{"@type":"http://schema.org/Place",name:g,telephone:m,address:d},dropoffTime:l,dropoffLocation:{"@type":"http://schema.org/Place",name:x,telephone:h,address:u}}]}}).call();