// 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,g,s,c,x,d,m,f,h,u,l,T,C,v,y,S=r.getSpan(),D="Confirmed";n=S.nextTag("td2").tagContents().innerCapture(regExpFormatted(/(.*) \1/,a.underPersonName_suffix),1),p=S.nextText(a.reservationId_prefix).nextTag("td3").tagContents();var F,_;if([,F,_]=S.nextText(a.DateTime_prefix).nextTag("td3").tagContents().innerCapture(regExpFormatted(/(.*) ~ (.*)/)),m=getFuzzyDate(r.getDetachedSpan(""+F).firstDate()),m===r.getNullSpan()&&(m=F),l=getFuzzyDate(r.getDetachedSpan(""+_).firstDate()),l===r.getNullSpan()&&(l=_),c=S.nextText(a.pickup_prefix).nextTag("td3").tagContents().innerCapture(regExpFormatted(/(.*)\(/),1),f=S.nextText(a.dropoff_prefix).nextTag("td3").tagContents().innerCapture(regExpFormatted(/(.*)\(/),1),[,v,y]=S.nextText(a.price_prefix).nextTag("td3").tagContents().innerCapture(regExpFormatted(/(.*)(.)/)),i=S.nextText(a.carBrand_prefix).nextTag("td3").tagContents(),ASSERT(p,c,m))return[{"@context":"http://schema.org","@type":"http://schema.org/RentalCarReservation",totalPrice:v,priceCurrency:y,reservationStatus:"http://schema.org/Reservation"+D,reservationId:p,modifyReservationUrl:T,cancelReservationUrl:C,underName:{"@type":"http://schema.org/Person",name:n,email:o},provider:{"@type":"http://schema.org/Organization",name:"Dongbu"},reservationFor:{"@type":"http://schema.org/Car",brand:{"@type":"http://schema.org/Organization",name:i},license:g,color:s},pickupTime:m,pickupLocation:{"@type":"http://schema.org/Place",name:c,telephone:x,address:d},dropoffTime:l,dropoffLocation:{"@type":"http://schema.org/Place",name:f,telephone:h,address:u}}]}}).call();