// 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,p,o,c,l,g,m,h,v,u=a.getSpan(),x="Pending";if(i=u.innerCapture(regExpFormatted(/(.*?)\s\1/,n.eventNameSuffix),1),i.exists()||([,r,i]=u.innerCapture(regExpFormatted(/(.*?)\s\1\s(.*?)\n/,n.eventNamePrefix))),p=u.nextText(n.eventUrlPrefix).nextLink(),[,o,c]=u.innerCapture(n.eventDateTimeRegExp),/\s-\s/.test(""+c)?([h,v]=(""+c).split("-"),c=a.getDetachedSpan(""+o+" "+v),o=a.getDetachedSpan(""+o+" "+h)):n.eventTimeRegExp.test(c.trim())&&(o=a.getDetachedSpan(""+o+" "+c),c=null),"en_US"==t&&(o=(""+o).replace("from","at")),o=a.getDetachedSpan(o),ASSERT(i,o))return[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/Reservation"+x,appleInvitedBy:s,reservationFor:{"@type":"http://schema.org/SocialEvent",name:i,url:p,startDate:o.innerDate(),endDate:null!==c?c.innerDate():null,location:{"@type":"http://schema.org/Place",name:l,telephone:m,address:g}}}]}}).call();