// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,s,i,g,c,d,p,m,h,l,x,T,u,y;if(l=a.getSpan().next(n.hotelDetails).nextTag("table9").nextAnyTag("td").tagContents(),T=l.nextAnyTag("td").tagContents(),h=T.next(n.hotelUrl).parentAnyTag("td").innerLink(),y=a.getDateDD(a.getSpan().next(n.reservationDetails).nextAnyTag("td").tagContents()),p=y.iso8601,m=y.endIso8601,g=a.getSpan().next(n.reservationId).nextAnyTag("td").tagContents(),p=combineDateAndTime(p,a.getSpan().next(n.checkInTime).nextAnyTag("td").tagContents()),m=combineDateAndTime(m,a.getSpan().next(n.checkOutTime).nextAnyTag("td").tagContents()),r=a.getSpan().next(n.reservedFor).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\1\s+(.*)/,n.reservedFor),1),u=a.getSpan().next(n.totalPrice).parentAnyTag("td").tagContents(),s=u.innerCapture(/([\d,.]+)/,1),i=u.innerCapture(/([^\d,.]+)/,1),ASSERT(T,p,m))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:o},totalPrice:s,priceCurrency:i,checkinTime:p,checkoutTime:m,modifyReservationUrl:c,cancelReservationUrl:d,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:g,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:l,url:h,telephone:x,address:T}}]}}).call();