new ReverseTemplateList([new ReverseTemplate("invitation-generic",function(e){return loadHelper("shouldDownloadMessageWithClassifier.js")(e)},function(e){var t=loadHelper("cachedClassifier.js")(e),a=loadHelper("vocab.js")(t.locale);if(!(e&&t&&t.locale&&a))return CONTINUE;if("webpage"===e.documentType&&("mailbox.apple.com"===e.domain||"mailbox-sgma-fis.apple.com"===e.domain)&&!/\/invitation\//.test(e.url))return CONTINUE;var r=Scanner.fromMessage(e);r.setLocale(t.locale);var o,s,i,l,n;return n=loadHelper("name.js")(e.subject,a,r,null),s=loadHelper("starttime.js")(a,r,null),ASSERT(n,s)?(l=loadHelper("address.js")(a,r,null),i=loadHelper("endtime.js")(a,r,s),[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/Reservation"+t.use_case,reservationFor:{"@type":"http://schema.org/SocialEvent",name:n,startDate:s,endDate:i,location:{"@type":"http://schema.org/Place",name:o,address:l}}}]):void 0},"0/1/2/3/4/5/6/261/29/1071","SGeaa338b4"),new ReverseTemplate("tickets-generic",function(e){return loadHelper("ShouldDownloadMessageWithClassifier.js")(e)},function(e){var t=loadHelper("cachedClassifier.js")(e),a=loadHelper("vocab.js")(t.locale);if(!(e&&t&&t.locale&&a))return CONTINUE;if("webpage"===e.documentType&&("mailbox.apple.com"===e.domain||"mailbox-sgma-fis.apple.com"===e.domain)&&!/\/ticket\//.test(e.url))return CONTINUE;if(int(e.epoch)<1325376e3)return CONTINUE;var r=Scanner.fromMessage(e);if(r.setLocale(t.locale),loadHelper("bail.js")(a,r))return STOP;var o,s,i,l,n,c,p,d,m,v,h,g,u,j,f,H;if(h=loadHelper("starttime.js")(a,r,e),v=loadHelper("name.js")(e.subject,a,r,e).trim(),H=loadHelper("reservationId.js")(a,r),t.isConfirmation()&&ASSERT({sg_validate:H,sg_description:"reservationId"},{sg_validate:h,sg_description:"startDate"},{sg_validate:v,sg_description:"eventName"})||t.isCancellation()&&ASSERT({sg_validate:H,sg_description:"reservationId"},{sg_validate:v,sg_description:"eventName"})){n=loadHelper("ticketnumber.js")(a,r),s=loadHelper("undername.js")(e.to,a,r),i=loadHelper("price.js")(a,r),l=loadHelper("pricecurrency.js")(a,r),c=loadHelper("tickettoken.js")(a,r),p=loadHelper("seat.js")(a,r),d=loadHelper("seatrow.js")(a,r),m=loadHelper("seatsection.js")(a,r),g=loadHelper("endtime.js")(a,r,h),j=loadHelper("place.js")(a,r),u=loadHelper("phone.js")(a,r),f=loadHelper("address.js")(a,r,e);var S,C;if(void 0!==a.movie)for(var T=0;T<a.movie.length&&(!S||!S.exists());T++)S=r.getSpan().next(a.movie[T]),S.exists()&&(C="MovieShowing",v={"@type":"http://schema.org/Movie",name:v});t.isConfirmation()?o="Confirmed":t.isCancellation()&&(o="Cancelled");var b={"@context":"http://schema.org","@type":"http://schema.org/EventReservation",totalPrice:i,priceCurrency:l,reservationId:H,reservedTicket:{"@type":"http://schema.org/Ticket",ticketNumber:n,ticketToken:c,ticketedSeat:{"@type":"http://schema.org/Seat",seatNumber:p,seatRow:d,seatSection:m}},reservationFor:{"@type":"http://schema.org/"+(C||"Event"),startDate:h,endDate:g,location:{"@type":"http://schema.org/Place",name:j,telephone:u,address:f}}};return S&&S.exists()?b.reservationFor.movie=v:(b.name=s,b.reservationFor.name=v,b.reservationFor.eventStatus="http://schema.org/Event"+(o||"Confirmed")),[b]}},"0/1/2/3/4/5/6/7/29/1485","SGe36f3d99")]);