// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,a){var r=Scanner.fromMessage(e);r.setLocale(t);var n,p,o,i,s,c,g,m,x,u,d,h,f,y,v,C=r.getSpan();i=C.next(a.ticketNumber_prefix).parentAnyTag("td").tagContents().innerCapture(regExpFormatted(/\b\1 (.*)/,a.ticketNumber_prefix),1),x=C.next(a.eventName_prefix).nextAnyTag("td").tagContents(),f=C.next(a.placeName_prefix).nextAnyTag("td").tagContents(),d=C.next(a.startDate_prefix).nextAnyTag("td").tagContents();var S=C.next(a.startTime_prefix).nextAnyTag("td").tagContents();if(d=getFuzzyDate(r.getDetachedSpan(d+" "+S).firstDate()),c=C.innerCapture(regExpFormatted(/\1 ([a-zA-Z0-9]*)/,a.seatNumber_prefix),1),g=C.innerCapture(regExpFormatted(/\1 ([a-zA-Z0-9]*)/,a.seatRow_prefix),1),m=C.innerCapture(regExpFormatted(/\1 ([a-zA-Z0-9]*)/,a.seatSection_prefix),1),ASSERT(d,x))return[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",name:n,totalPrice:p,priceCurrency:o,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:i,ticketToken:s,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:c,seatRow:g,seatSection:m}},reservationFor:{"@type":"http://schema.org/Event",eventStatus:"http://schema.org/EventConfirmed",name:x,url:u,startDate:d,endDate:h,location:{"@type":"http://schema.org/Place",name:f,telephone:y,address:v}}}]}}).call();