// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,a){var n=Scanner.fromMessage(e);n.setLocale(t);var r,c,i,o,s,p,m,g,l,x,h,T="Confirmed",f=[],u=[];return r=(""+n.getSpan().innerCapture(regExpFormatted(/\1\n(.*\n.*)/,a.personUnderNamePrefix),1)).replace("\n"," "),n.getSpan().nextText(a.ticketsBlockPrefix).parentTag("table4").allInnerTags("tr4").slice(1,-4).forEach(function(e){var t={},r=e.allInnerTags("td4"),c=(""+r[0].tagContents()).split(/\n/);t.name=c[0].replace(a.eventNameSuffix,"").trim(),t.startDateTime=n.getDetachedSpan(c[2]).innerDate(),t.locationName=c[3].trim(),f.push(t)}),h=n.getSpan().nextText(a.priceBlockPrefix).nextText(a.pricePrefix).nextTag("td4").tagContents(),x=n.getSpan().nextText(a.priceBlockPrefix).nextText(a.pricePrefix).nextTag("td4").nextTag("td4").tagContents(),f.forEach(function(e){ASSERT(e.name,e.startDateTime)&&u.push({"@context":"http://schema.org","@type":"http://schema.org/EventReservation",name:r,totalPrice:x,priceCurrency:h,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:s,ticketToken:p,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:m,seatSection:g,seatRow:l}},reservationFor:{"@type":"http://schema.org/Event",eventStatus:"http://schema.org/Event"+T,name:e.name,url:e.url,startDate:e.startDateTime,endDate:c,location:{"@type":"http://schema.org/Place",name:e.locationName,telephone:o,address:i}}})}),u.length>0?u:CONTINUE}}).call();