// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var r=Scanner.fromMessage(e);r.setLocale(t);var a,i,o,g,x,s,p,c,l,m,d,u,T,h=r.getSpan(),f="Confirmed";l=h.innerCapture(regExpFormatted(/\1 (.*)\n/,n.reservationId_prefix),1);var v=h.nextTag("table2").nextTag("table2").nextTag("table2");m=v.nextTag("td3").tagContents();var C=(""+v.nextTag("td4").nextTag("td4").tagContents()).replace(/\n\n\*/g,",").replace(/\*/g,"");T=C.substr(0,C.indexOf(n.reservationFor_telephone_prefix)-2).trim(),u=v.firstPhoneNumber(),d=v.nextLink().nextLink();var b=h.nextText(n.underNameBlock_prefix).nextTag("table3").nextTag("table3");a=b.nextTag("td3").tagContents().innerCapture(regExpFormatted(/\1 (.*)/,n.underName_name_prefix),1),i=b.nextTag("td3").nextTag("td3").tagContents().innerCapture(regExpFormatted(/\1 (.*)/,n.underName_email_prefix),1);var _=h.nextText(n.reservationDetailsBlock_prefix).nextTag("table3");x=_.nextTag("table3").tagContents().innerCapture(regExpFormatted(/\1 (.*)/,n.checkinTime_prefix),1),s=_.nextTag("table3").nextTag("table3").tagContents().innerCapture(regExpFormatted(/\1 (.*)/,n.checkoutTime_prefix),1),p=c=h.nextLink().nextLink();var k=""+h.innerCapture(regExpFormatted(/\1 (.*)/,n.totalPrice_prefix),1);if(o=k.substr(0,k.indexOf(",")+3),g=k.substr(o.length,k.length),ASSERT(x,s,T))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:a,email:i},totalPrice:o,priceCurrency:g,checkinTime:x,checkoutTime:s,modifyReservationUrl:p,cancelReservationUrl:c,reservationStatus:"http://schema.org/Reservation"+f,reservationId:l,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:m,url:d,telephone:u,address:T}}]}}).call();