// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,n,t){var a=Scanner.fromMessage(e);a.setLocale(n);var r,i,c,o,l,s,g,u,m,p,h=a.getSpan().nextTag("table4").nextTag("table4").allInnerTags("td4");p=""+h[2].tagContents();var d=a.getSpan().nextTag("table4").nextTag("table4"),S=d.innerCapture(t.dates),D=d.innerCapture(t.times);if(l=""+S.$checkin,o=""+D.$checkin,u=""+S.$checkout,g=""+D.$checkout,s=combineDateAndTime(a.getDetachedSpan(l).innerDate(),a.getDetachedSpan(o).innerDate()),m=combineDateAndTime(a.getDetachedSpan(u).innerDate(),a.getDetachedSpan(g).innerDate()),i=a.getSpan().next(t.confirmation).innerCapture(t.confirmation,1),r=a.getSpan().next(t.guestName).innerCapture(t.guestName,1),t.isCancelled.test(e.subject)&&(c="Cancelled"),ASSERT(r,p,s,m))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:null},totalPrice:null,priceCurrency:null,checkinTime:s,checkoutTime:m,modifyReservationUrl:null,reservationStatus:"http://schema.org/Reservation"+(c||"Confirmed"),reservationId:i,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:p,url:null,telephone:null,address:null}}]}}).call();