// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);if(a.setLocale(t),a.getSpan().innerCapture(regExpFormatted(/(\1)\s\n\n\2/,n.cancellation,n.underPersonNamePrefix),1)==a.getNullSpan())return CONTINUE;var r,o,i,g,x,s,p,c,d,T,m,h="Cancelled";return p=a.getSpan().nextText(n.reservationIdPrefix).nextTag("td1").tagContents(),r=a.getSpan().innerCapture(regExpFormatted(/\1\s(.*)/,n.underPersonNamePrefix),1),o=a.getSpan().nextText(n.underPersonEmailPrefix).nextTag("td1").tagContents(),c=a.getSpan().nextText(n.checkInDateTimePrefix).nextTag("td1").innerDate(),d=a.getSpan().nextText(n.checkOutDateTimePrefix).nextTag("td1").innerDate(),i=a.getSpan().nextText(n.hotelNamePrefix).nextTag("td1").tagContents(),g=a.getSpan().nextText(n.hotelPhonePrefix).nextTag("td1").tagContents(),s=a.getSpan().nextText(n.hotelAddressPrefix).nextTag("td1").tagContents(),[,m,T]=a.getSpan().nextText(n.pricePrefix).nextTag("td1").tagContents().innerCapture(/(.)\s([\d,.]+)/),ASSERT(r,s,c)?[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:o},totalPrice:T,priceCurrency:m,checkinTime:c,checkoutTime:d,reservationStatus:"http://schema.org/Reservation"+h,reservationId:p,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:i,url:x,telephone:g,address:s}}]:CONTINUE}}).call();