!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.DvrPlayer=t():e.DvrPlayer=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/flu/dvr3/",r(r.s=1015)}([function(e,t,r){"use strict";e.exports=r(942)},function(e,t,r){e.exports=r(956)()},function(e,t,r){"use strict";var n=r(10),i=r(56).f,o=r(50),a=r(28),s=r(224),u=r(133),c=r(153);e.exports=function(e,t){var r,l,f,d,h,p=e.target,g=e.global,m=e.stat;if(r=g?n:m?n[p]||s(p,{}):n[p]&&n[p].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(h=i(r,l))&&h.value:r[l],!c(g?l:p+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(r,l,d,e)}}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"e",(function(){return a})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return u})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function l(e,t,r){var n=e.slice(0);return n[t]=r,n}function f(e,t){return Math.max(e+(t||0)-Date.now(),0)}function d(e,t,r){return k(e)?"function"==typeof t?Object(n.a)({},r,{queryKey:e,queryFn:t}):Object(n.a)({},t,{queryKey:e}):e}function h(e,t,r){return k(e)?"function"==typeof t?Object(n.a)({},r,{mutationKey:e,mutationFn:t}):Object(n.a)({},t,{mutationKey:e}):"function"==typeof e?Object(n.a)({},t,{mutationFn:e}):Object(n.a)({},e)}function p(e,t,r){return k(e)?[Object(n.a)({},t,{queryKey:e}),r]:[e||{},t]}function g(e,t){return k(e)?Object(n.a)({},t,{mutationKey:e}):e}function m(e,t){var r=e.active,n=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(k(s))if(n){if(t.queryHash!==y(s,t.options))return!1}else if(!_(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(r,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function v(e,t){var r=e.exact,n=e.fetching,i=e.predicate,o=e.mutationKey;if(k(o)){if(!t.options.mutationKey)return!1;if(r){if(b(t.options.mutationKey)!==b(o))return!1}else if(!_(t.options.mutationKey,o))return!1}return("boolean"!=typeof n||"loading"===t.state.status===n)&&!(i&&!i(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||b)(e)}function b(e){var t,r=u(e);return t=r,JSON.stringify(t,(function(e,t){return w(t)?Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{}):t}))}function _(e,t){return function e(t,r){if(t===r)return!0;if(typeof t!=typeof r)return!1;if(t&&r&&"object"==typeof t&&"object"==typeof r)return!Object.keys(r).some((function(n){return!e(t[n],r[n])}));return!1}(u(e),u(t))}function S(e,t){if(e===t)return e;var r=Array.isArray(e)&&Array.isArray(t);if(r||w(e)&&w(t)){for(var n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,a=r?[]:{},s=0,u=0;ut.closed_at?1:0})),p;function g(e,t,r,n){return e<=r&&t>=r||r=e}}function u(){for(var e,t,r,n,i,o=[].slice.call(arguments,0),a=o.length,s=o[0],u={},c=1;c0&&(i.streamer_rtmp="undefined"!=typeof window?"rtmp://"+window.location.hostname+":"+a:""),i}function f(e){return 3600*Math.floor(e/3600)}function d(e,t){return{from:f(e),to:f(t+3600)}}function h(){return Math.round((new Date).getTime()/1e3)}function p(e){return 3600*Math.floor(e/3600)}function g(e,t){var r=e+"";return"00000000000000000000".slice(0,t-r.length)+r}function m(e){return e<=9?"0"+e:e}function v(e,t){t=null==t||t;if(!(e>0))return"";var r=new Date;r.setTime(1e3*e);var n=!(!1===t),i=n?r.getHours():r.getUTCHours(),o=n?r.getMinutes():r.getUTCMinutes(),a=n?r.getSeconds():r.getUTCSeconds();return m(i)+":"+m(o)+":"+m(a)}function y(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(t){t=null==t||t;if(!(e>0))return"";var n=new Date;n.setTime(Math.round(1e3*e));var i=!(!1===t),o=i?n.getDate():n.getUTCDate(),a=(i?n.getMonth():n.getUTCMonth())+1,s=i?n.getFullYear():n.getUTCFullYear();return r?m(o)+"."+m(a)+"."+g(s,4):g(s,4)+"."+m(a)+"."+m(o)}(t)}function b(e,t){var r,n,i=!1;return function o(){if(i)return r=arguments,void(n=this);e.apply(this,arguments),i=!0,setTimeout((function(){i=!1,r&&n&&(o.apply(n,r),n=r=void 0)}),t)}}function _(e,t,r){if(!r)return 0;for(var n=0,i=0;i=t);i++);if(i>=r.length)return 0;if(r[i].opened_at=e)return e-t;if(r[i].opened_at=r.length)return e-t;for(;i=t);r++);return(r>=n||re[r].closed_at)&&(r=-1),r}function E(e,t,r){if(Math.trunc(e/3600)!==t/3600)throw new Error("utc should be into h");if(et&&(i=r[n].opened_at);for(var o=i,a=r.length,s=0;ne)break;if(e<=l){o=e;break}if(n+1l&&er[n+1].opened_at&&(o=r[n+1].opened_at,s+=r[n+1].opened_at-l),n++}return o-i-s}function w(e,t,r){for(var n=t,i=0;i=e);)i++;if(i>=r.length)return e+t;if(r[i].opened_at<=e&&r[i].closed_at>=e){if(e+t<=r[i].closed_at)return e+t;n-=r[i].closed_at-r[i].opened_at-(e-r[i].opened_at),i++}for(;i=r.length||!r[i])break;n-=r[i].closed_at-r[i].opened_at}return e+t}function T(e){var t=new Date,r=new Date;return t.setTime(1e3*e),r.setTime(1e3*e),t.setHours(0,0,0,0),r.setHours(23,59,59,999),{start:Math.round(t.getTime()/1e3),end:Math.round(r.getTime()/1e3)}}function k(e,t){for(var r=t.length,n=0;na)n++;else{if(e>=o&&e<=a)return!0;n++}}return!1}function x(e,t){var r=e.starta)n++;else{if(e>=o&&e<=a)return e;n++}}return"live"}function R(e,t){var r=new URL(e),i=Object(n.parse)(r.search.replace(/^\?/,"")),a=o()(i,{$merge:t});return r.search=Object(n.stringify)(a),r.toString()}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;na)n++;else{if(e>=o&&e<=a){var s=a,u="live";return t[n+1]&&(u=t[n+1].opened_at),{sectionEnd:s,nextSection:u,playbackDuration:s-e}}n++}}};function P(e,t){if("string"!=typeof t){for(var r=t.length,n=0;n=o&&e<=a)return!0;n++}return!1}}var C=function(){return/iPad|iPhone|iPod|iPad Simulator|iPhone Simulator|iPod Simulator/.test(navigator.userAgent)},L=function(e,t,r,n){var i=r?200:1e3,o="in"===t?-15:15;return e&&e.deltaY&&(o=r?e.deltaY/3:e.deltaY),n&&(o*=3),{requestAnimationStopTime:i,deltaYScaleCount:o}},D={mergeRanges:s,diff:u,substitute:c,makeAppOpts:l,hour:f,setMinimalRange:d,now:h,floorToHour:p,pad:g,pad2:m,humanTime:v,humanDate:y,throttle:b,utc_to_relative:_,getFirstHourSegmentIndex:S,utcToRelative:E,relativeToUtc:w,getDayRangeByUtc:T,isInRange:k,intersection:x,getNearLeftFrom:O,currentUrl:R,CheckInRange:A,canFastSeek:P,isIOS:C,calculateScaleTimeline:L};t.default=D},function(e,t,r){"use strict";var n=r(5);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){"use strict";var n=r(10),i=r(104),o=r(21),a=r(115),s=r(113),u=r(275),c=n.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},function(e,t,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;ty;y++)if((_=P(e[y]))&&c(g,_))return _;return new p(!1)}m=l(e,v)}for(S=k?e.next:m.next;!(E=i(S,m)).done;){try{_=P(E.value)}catch(e){d(m,"throw",e)}if("object"==typeof _&&_&&c(g,_))return _}return new p(!1)}},function(e,t,r){"use strict";var n=r(13),i=r(45),o=r(33).f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,r){"use strict";var n=r(17),i=r(49);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},function(e,t,r){"use strict";var n,i=r(8),o=r(228),a=r(226),s=r(151),u=r(282),c=r(176),l=r(179),f=l("IE_PROTO"),d=function(){},h=function(e){return"