// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,r){var n=Scanner.fromMessage(e);n.setLocale(t);var a,i,o,s,d,x,c,m,p,l,g,h,f,u,v,y=n.getSpan(),A="Confirmed";return d=y.next(r.reservationId_prefix).nextAnyTag("td").tagContents(),x=y.next(r.address_prefix).nextAddress(),c=y.next(r.dates_prefix).nextAnyTag("table").nextAnyTag("table").allDates(),p=c[0],m=c[1],l=y.innerCapture(regExpFormatted(/\1(.*)\./,r.hotelName_prefix),1).trim(),l="Airbnb, "+l,g=y.next(r.modifyReservationUrl_prefix).nextLink(),h=g,f=y.next(r.hotelUrl_prefix).nextLink(),v=y.next(r.hotelAddress_prefix).nextAddress(),ASSERT(p,m,l),[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",name:l,underName:{"@type":"http://schema.org/Person",name:a,email:i},totalPrice:o,priceCurrency:s,checkinTime:p,checkoutTime:m,modifyReservationUrl:g,cancelReservationUrl:h,reservationStatus:"http://schema.org/Reservation"+(A||"Confirmed"),reservationId:d,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:"",url:f,telephone:u,address:v}}]}}).call();