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