// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,g,i,s,p,c,d,m,x,u,h,T;r=a.getSpan().nextTag("td4").nextTag("td4").tagContents(),g=a.getSpan().nextText(n.total).nextTag("td3").tagContents(),i=g.innerCapture(/([\d,\.]+)/,1),s=g.innerCapture(/([^\d,\.]+)/,1).trim(),p=getFuzzyDate(a.getSpan().nextText(n.checkIn).nextTag("td4")),c=getFuzzyDate(a.getSpan().nextText(n.checkOut).nextTag("td4")),d=a.getSpan().nextTag("table3").lastInnerTag("td3").tagContents().innerCapture(/(\d+)/,1);var l=a.getSpan().nextTag("tr4").nextTag("tr4").lastInnerTag("td4").tagContents();if(m=l.innerCapture(/(.*)\-/,1).trim(),x=l.tagContents().innerCapture(regExpFormatted(/\1([\d\(\)-\+\s]+)/,n.phone),1).trim(),u=l.tagContents().innerCapture(regExpFormatted(/\1.*\n([\s\S]*) - \2/,n.viewOnMelia_Com,n.viewOnGoogleMaps),1),h=T=a.getSpan().next(n.modify).nextLink(),ASSERT(r,p,d,u))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:o},totalPrice:i,priceCurrency:s,checkinTime:p,checkoutTime:c,reservationStatus:"http://schema.org/ReservationConfirmed",cancelReservationUrl:h,modifyReservationUrl:T,reservationId:d,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:m,telephone:x,address:u}}]}}).call();