(function(){return function(e,t){var r,a,c=t.getNullSpan(),i=[];if(void 0!==e.checkOutDateTimePrefix){for(var n=0;n<e.checkOutDateTimePrefix.length;n++)for(var s=t.getSpan().next(e.checkOutDateTimePrefix[n]);s.exists();){for(r=s.nextDate();r.exists()&&(a=r.getStart()-s.getEnd())<144;){if(r.exists()&&/[\d\uff10-\uff19]{1,2}/i.test(""+r)){var o=t.getDateDD(r);o.is(["Date","DateTime"])?i.push({match:r,score:a}):o.is(["DateDuration"])&&i.push({match:t.getDetachedSpan(o.endIso8601),score:a})}r=r.nextDate()}s=s.next(e.checkOutDateTimePrefix[n])}i.length>0&&(i.sort(function(e,t){return e.score>t.score?1:e.score<t.score?-1:0}),c=i[0].match)}return c}}).call();