// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var a=Scanner.fromMessage(e);a.setLocale(t);var r,s,i,g,o,c,d,p,l,h,m,u,v,S,C;if(C=(""+a.getSpan().nextTag("td6").tagContents()).replace(/[\/,]/g," ").split("-"),l=a.getDetachedSpan(C[0]).innerDate(),h=a.getDetachedSpan(C[1]).innerDate(),i=a.getSpan().nextTag("table9").allInnerTagsFiltered("td9")[0],valid(i)&&(u=i.innerCapture(/(.*)\s/,1),S=i.innerCapture(/\s+(.*)$/,1),i.innerAddress().getLength()>=S.getLength()&&(S=i.innerAddress())),r=a.getSpan().next(n.name).nextTag("td9").nextTag("td9").tagContents().innerCapture(/(.*)/,1),c=a.getSpan().innerCapture(regExpFormatted(/\1\s*(\d+)/,n.reservationId),1),ASSERT(S,l,r))return[{"@context":"http://schema.org","@type":"http://schema.org/LodgingReservation",underName:{"@type":"http://schema.org/Person",name:r,email:s},totalPrice:g,priceCurrency:o,checkinTime:l,checkoutTime:h,modifyReservationUrl:d,cancelReservationUrl:p,reservationStatus:"http://schema.org/ReservationCancelled",reservationId:c,reservationFor:{"@type":"http://schema.org/LodgingBusiness",name:u,url:m,telephone:v,address:S}}]}}).call();