// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,o,i,s,c,g,p,m,d,h,u=a.getSpan().nextTag("td1").nextTag("td1").tagContents();c=u.innerCapture(regExpFormatted(/\1: (\w+)/,n.bookingNumberPrefix),1).trim();var x=u.split("\n\n",5);m=x[1],h=a.getDetachedSpan((""+x[2]).concat(" ").concat(""+x[3])),d=x[4].innerCapture(/: (.+)/,1);var S=a.getSpan().nextText(n.tripTotal).nextTag("td2").tagContents().trim();s=S.innerCapture(/([^\s\d,\.])/,1),i=a.getDetachedSpan((""+S).replace(s,"")),r=a.getSpan().innerCapture(regExpFormatted(/\*(.+)\1/,n.nameSuffix),1).trim(),o=e.to;var v=a.getSpan().nextText(n.dates).nextDate(),l=a.getDateDD(v);if(l.iso8601&&l.endIso8601?(g=l.iso8601,p=l.endIso8601):g=v,ASSERT(h,g))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:g,checkoutTime:p,reservationStatus:"http://schema.org/ReservationConfirmed",reservationId:c,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:m,telephone:d,address:h}}]}}).call();