// Copyright 2014 Apple Inc.  All Rights Reserved.
new ReverseTemplateList([new ReverseTemplate("paperlesspost.com-invitation-en",function(){return!0},function(e){var t,n="en_US",a={};return/For the best Paperless Post experience/.test(e.plain)?(a.eventUrl="View the Card",a.cancellation=/cancell?ing/i,t=loadHelper("paperlesspost-invitation-skeleton.js")):t=loadHelper("paperlesspost-invitation-skeleton-old.js"),t(e,n,a)},"0/1/2/3/4/5/906/924/925","SGdb28e9e4"),new ReverseTemplate("paperlesspost.com-reminder-en",function(){return!0},function(e){var t=Scanner.fromMessage(e);if(t.setLocale("en_US"),t.getSpan().nextText("Add this event to your:").exists()){var n,a,r,s,i,o,p,d;if(n=t.getSpan().nextText("Add this event to your:").nextTag("td4").nextTag("td4").tagContents().innerCapture(/($<eventName>.*)\n($<date>.*)\n($<placeName>.*)\n($<address>.*)/),not(n))return CONTINUE;if(a=n.$eventName.trim(),s=a.previousLink(),i=n.$date.innerDate(),o=t.getDateDD(i),o&&(o=o.endIso8601),r=n.$placeName.trim(),p=n.$address.trim(),p.innerAddress().exists()&&p.getLength()<=p.innerAddress().getLength()&&(p=p.innerAddress()),t.getSpan().nextText("You have replied:").exists()&&(n=t.getSpan().innerCapture(/You have replied: (.*)\n/,1).trim(),"attending"==(""+n).toLowerCase()&&(d="Confirmed")),ASSERT(s,a,i))return[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/Reservation"+(d||"Pending"),reservationFor:{url:s,"@type":"http://schema.org/SocialEvent",name:a,startDate:i,endDate:o,location:valid(r)?{"@type":"http://schema.org/Place",name:r,address:p}:p}}]}},"0/1/2/3/4/5/906/924/926","SGcd7348cb"),new ReverseTemplate("paperlesspost.com-savethedate-en",function(){return!0},function(e){var t=Scanner.fromMessage(e);if(t.setLocale("en_US"),t.getSpan().nextText("View save the date:").exists()&&t.getSpan().firstDate().exists()){var n,a,r,s,i,o,p;if(n=t.getSpan().nextText("View save the date:").nextTag("td4").tagContents(),not(n))return CONTINUE;if(s=t.getSpan().nextText("View save the date:").nextLink(),i=n.innerDate(),o=t.getDateDD(i),o&&(o=o.endIso8601),a=n.withEnd(i.getStart()).trim(),ASSERT(s,a,i))return[{"@context":"http://schema.org","@type":"http://schema.org/EventReservation",reservationStatus:"http://schema.org/ReservationPending",reservationFor:{url:s,"@type":"http://schema.org/SocialEvent",name:a,startDate:i,endDate:o,location:valid(r)?{"@type":"http://schema.org/Place",name:r,address:p}:p}}]}},"0/1/2/3/4/5/906/924/927","SG024b6bce")]);