// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,r,a){var t=Scanner.fromMessage(e);t.setLocale(r);var n,p,i,o,c,s,m,g,d,h,u,l,x,f,C,R=t.getSpan(),v="Confirmed";if(R.nextText(a.isCancellation)!==t.getNullSpan()&&(v="Cancelled"),n=R.innerCapture(a.underPersonNameRegExp,1),p=R.innerCapture(a.carProviderNameRegExp,1),i=R.innerCapture(a.carReservationIdRegExp,1),o=R.innerCapture(a.carBrandRegExp,1),c=R.innerCapture(a.pickUpNameRegExp,1),s=R.innerCapture(a.pickUpTelephoneRegExp,1),m=R.innerCapture(a.pickUpAddressRegExp,1),g=t.getDetachedSpan((""+R.innerCapture(a.pickUpDateTimePrefix,1)).replace(/\s*\uff08.\uff09\s*/," ")).innerDate(),d=c,h=s,u=m,l=t.getDetachedSpan((""+R.innerCapture(a.dropOffDateTimePrefix,1)).replace(/\s*\uff08.\uff09\s*/," ")).innerDate(),x=R.nextText(a.modifyReservationUrl).nextLink(),[,f,C]=R.innerCapture(a.pricePrefixRegExp),ASSERT(n,p,o,g,m))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:f,priceCurrency:C,reservationStatus:"http://schema.org/Reservation"+v,reservationId:i,modifyReservationUrl:x,underName:{"@type":"http://schema.org/Person",name:n},provider:{"@type":"http://schema.org/Organization",name:p},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:o}},pickupTime:g,pickupLocation:{"@type":"http://schema.org/Place",name:c,telephone:s,address:m},dropoffTime:l,dropoffLocation:{"@type":"http://schema.org/Place",name:d,telephone:h,address:u}}]}}).call();