homepage
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
534 KiB

5 years ago
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Clappr=e():t.Clappr=e()}(window,function(){return e={},f.m=d=[function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var i,n=r(39),a=(i=n)&&i.__esModule?i:{default:i};e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,a.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){"use strict";e.__esModule=!0;var i=o(r(133)),n=o(r(76)),a=o(r(39));function o(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,a.default)(e)));t.prototype=(0,n.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(i.default?(0,i.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";e.__esModule=!0;var i,n=r(75),a=(i=n)&&i.__esModule?i:{default:i};function o(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,a.default)(t,i.key,i)}}e.default=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var c=a(r(53)),i=a(r(0)),l=a(r(39)),f=a(r(29)),n=r(5);function a(t){return t&&t.__esModule?t:{default:t}}function h(t,e,r,i){if(!r)return!0;if("object"===(void 0===r?"undefined":(0,l.default)(r))){for(var n in r)t[e].apply(t,[n,r[n]].concat(i));return!1}if(u.test(r)){for(var a=r.split(u),o=0,s=a.length;o<s;o++)t[e].apply(t,[a[o]].concat(i));return!1}return!0}function o(t,r,i,n){var a=void 0,o=-1,s=t.length,l=r[0],u=r[1],d=r[2];!function e(){try{switch(r.length){case 0:for(;++o<s;)(a=t[o]).callback.call(a.ctx);return;case 1:for(;++o<s;)(a=t[o]).callback.call(a.ctx,l);return;case 2:for(;++o<s;)(a=t[o]).callback.call(a.ctx,l,u);return;case 3:for(;++o<s;)(a=t[o]).callback.call(a.ctx,l,u,d);return;default:for(;++o<s;)(a=t[o]).callback.apply(a.ctx,r);return}}catch(t){f.default.error.apply(f.default,[i,"error on event",n,"trigger","-",t]),e()}}()}var s=Array.prototype.slice,u=/\s+/,d=(p.prototype.on=function(t,e,r){return h(this,"on",t,[e,r])&&e&&(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:r,ctx:r||this})),this},p.prototype.once=function(t,e,r){var i=this,n=void 0;return h(this,"once",t,[e,r])&&e?(n=function(){i.off(t,n),e.apply(this,arguments)},this.on(t,n,r)):this},p.prototype.off=function(t,e,r){var i,n,a=void 0,o=void 0,s=void 0,l=void 0,u=void 0,d=void 0;if(!this._events||!h(this,"off",t,[e,r]))return this;if(!t&&!e&&!r)return this._events=void 0,this;for(l=0,n=(i=t?[t]:(0,c.default)(this._events)).length;l<n;l++)if(t=i[l],s=this._events[t]){if(this._events[t]=a=[],e||r)for(u=0,d=s.length;u<d;u++)o=s[u],(e&&e!==o.callback&&e!==o.callback._callback||r&&r!==o.context)&&a.push(o);a.length||delete this._events[t]}return this},p.prototype.trigger=function(t){var e=this.name||this.constructor.name;if(f.default.debug.apply(f.default,[e].concat(Array.prototype.slice.call(arguments))),!this._events)return this;var r=s.call(arguments,1);if(!h(this,"trigger",t,r))return this;var i=this._events[t],n=this._events.all;return i&&o(i,r,e,t),n&&o(n,arguments,e,t),this},p.prototype.stopListening=function(t,e,r){var i=this._listeningTo;if(!i)return this;var n=!e&&!r;for(var a in r||"object"!==(void 0===e?"undefined":(0,l.default)(e))||(r=this),t&&((i={})[t._listenId]=t),i)(t=i[a]).off(e,r,this),!n&&0!==(0,c.default)(t._events).length||delete this._listeningTo[a];return this},p.register=function(t){p.Custom||(p.Custom={});var e="string"==typeof t&&t.toUpperCase().trim();e&&!p.Custom[e]?p.Custom[e]=e.toLowerCase().split("_").map(function(t,e){return 0===e?t:t=t[0].toUp