// Copyright 2014 Apple Inc.  All Rights Reserved.
(function(){return function(e,t,n){var r,a,i=t.getNullSpan(),s=t.getNullSpan();if(n)for(r=0;r<e.reservationIdInSubject.length&&!i.exists();r++)i=t.getDetachedSpan(n).innerCapture(e.reservationIdInSubject[r],1);for(r=0;r<e.reservationId.length&&!i.exists();r++)for(a=t.getSpan().next(e.reservationId[r]);a.exists();){if(s=a.innerCapture(e.reservationId[r],1),s.exists()&&/^([A-Z\d-]{6,})$/.test((""+s).trim())){i=s;break}a=a.next(e.reservationId[r])}if(!i.exists())for(r=0;r<e.altReservationId.length&&!i.exists();r++)for(a=t.getSpan().next(e.altReservationId[r]);a.exists();){var o=a.nextAnyTag("td");if(o.exists()&&(s=o.tagContents().trim().innerCapture(/^([A-Z\d-]{6,})$/,1),/\d/.test(""+s))){i=s;break}a=a.next(e.altReservationId[r])}return i}}).call();