// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,r,a,t){if(!e||!r||!a)return CONTINUE;if(int(e.epoch)<1325376e3)return CONTINUE;var o=Scanner.fromMessage(e);o.setLocale(r);var s,l,n,p,d,i,m,c,u,h,j,g;if(i=loadHelper("starttime.js")(a,o),n=loadHelper("name.js")(e.subject,a,o),ASSERT(i,n)){s=loadHelper("undername.js")(e.to,a,o),p=loadHelper("partysize.js")(r,a,o),l=loadHelper("reservationid.js")(a,o);var H=regExpFormatted(/\1[^\[\]]{20,}/,""+n);return a.addressLabel.push(H),c=loadHelper("address.js")(a,o),a.addressLabel.pop(),m=loadHelper("phone.js")(a,o),u=loadHelper("modifyurl.js")(a,o),h=loadHelper("cancelurl.js")(a,o),d=loadHelper("url.js")(a,o),j=loadHelper("agentname.js")(e.from),g=loadHelper("agenturl.js")(e.from),[{"@context":"http://schema.org","@type":"http://schema.org/FoodEstablishmentReservation",partySize:p,reservationId:l,reservationStatus:t,reservationFor:{"@type":"http://schema.org/FoodEstablishment",name:n.trim(),url:d,telephone:m,address:c},startTime:i,bookingAgent:{"@type":"http://schema.org/Organization",name:j,url:g},underName:{"@type":"http://schema.org/Person",name:s},cancelReservationUrl:h,modifyReservationUrl:u}]}}}).call();