You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
3.7 MiB
JavaScript
40 lines
3.7 MiB
JavaScript
|
2 weeks ago
|
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.videojs=e()}(this,function(){function t(t,e){return t(e={exports:{}},e.exports),e.exports}function e(t){return t.replace(/\n\r?\s*/g,"")}function A(t,e){Ae(t).forEach(function(A){return e(t[A],A)})}function i(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return Object.assign?Object.assign.apply(Object,[t].concat(i)):(i.forEach(function(e){e&&A(e,function(e,A){t[A]=e})}),t)}function n(t){return!!t&&"object"===(void 0===t?"undefined":Kt(t))}function r(t){return n(t)&&"[object Object]"===ee.call(t)&&t.constructor===Object}function a(t,e){if(!t||!e)return"";if("function"==typeof zt.getComputedStyle){var A=zt.getComputedStyle(t);return A?A[e]:""}return""}function o(t){return"string"==typeof t&&/\S/.test(t)}function s(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function g(){return Ht===zt.document}function M(t){return n(t)&&1===t.nodeType}function c(){try{return zt.parent!==zt.self}catch(t){return!0}}function u(t){return function(e,A){if(!o(e))return Ht[t](null);o(A)&&(A=Ht.querySelector(A));var i=M(A)?A:Ht;return i[t]&&i[t](e)}}function I(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],n=Ht.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var A=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(Vt.warn(Wt(ie,t,A)),n.setAttribute(t,A)):"textContent"===t?l(n,A):n[t]=A}),Object.getOwnPropertyNames(A).forEach(function(t){n.setAttribute(t,A[t])}),i&&v(n,i),n}function l(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function h(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function d(t,e){return s(e),t.classList?t.classList.contains(e):function(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}(e).test(t.className)}function T(t,e){return t.classList?t.classList.add(e):d(t,e)||(t.className=(t.className+" "+e).trim()),t}function E(t,e){return t.classList?t.classList.remove(e):(s(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function N(t,e,A){var i=d(t,e);if("function"==typeof A&&(A=A(t,e)),"boolean"!=typeof A&&(A=!i),A!==i)return A?T(t,e):E(t,e),t}function f(t,e){Object.getOwnPropertyNames(e).forEach(function(A){var i=e[A];null===i||void 0===i||!1===i?t.removeAttribute(A):t.setAttribute(A,!0===i?"":i)})}function C(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var A=t.attributes,i=A.length-1;i>=0;i--){var n=A[i].name,r=A[i].value;"boolean"!=typeof t[n]&&-1===",autoplay,stretch,fluent,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+n+",")||(r=null!==r),e[n]=r}return e}function y(t,e){return t.getAttribute(e)}function D(t,e,A){t.setAttribute(e,A)}function B(t,e){t.removeAttribute(e)}function p(){Ht.body.focus(),Ht.onselectstart=function(){return!1}}function m(){Ht.onselectstart=function(){return!0}}function w(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),A={};return["bottom","height","left","right","top","width"].forEach(function(t){void 0!==e[t]&&(A[t]=e[t])}),A.height||(A.height=parseFloat(a(t,"height"))),A.width||(A.width=parseFloat(a(t,"width"))),A}}function Q(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var A=Ht.documentElement,i=Ht.body,n=A.clientLeft||i.clientLeft||0,r=zt.pageXOffset||i.scrollLeft,a=e.left+r-n,o=A.clientTop||i.clientTop||0,s=zt.pageYOffset||i.scrollTop,g=e.top+s-o;return{left:Math.round(a),top:Math.round(g)}}function L(t,e){var A={},i=Q(t),n=t.offsetWidth,r=t.offsetHeight,a=i.top,o=i.left,s=e.pageY,g=e.pageX;return e.changedTouches&&(g=e.changedTouches[0].pageX,s=e.changedTouches[0].pageY),A.y=Math.max(0,Math.min(1,(a-s+r)/r)),A.x=Math.max(0,Math.min(1,(g-o)/n)),A}function j(t){return n(t)&&3===t.nodeType}function S(t){for(;t.f
|
||
|
|
/*!
|
||
|
|
* Determine if an object is a Buffer
|
||
|
|
*
|
||
|
|
* @author Feross Aboukhadijeh <https://feross.org>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
t.exports=function(t){return null!=t&&(A(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&A(t.slice(0,0))}(t)||!!t._isBuffer)}},"5Srp":function(t,e,A){"use strict";var i=A("gvuQ"),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,A,r,a={};return t?(i.forEach(t.split("\n"),function(t){if(r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),A=i.trim(t.substr(r+1)),e){if(a[e]&&n.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([A]):a[e]?a[e]+", "+A:A}}),a):a}},"5kkC":function(t,e,A){"use strict";var i=A("cGIK"),n=A.n(i),r=function(){function t(t,e){for(var A=0;A<e.length;A++){var i=e[A];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,A,i){return A&&t(e.prototype,A),i&&t(e,i),e}}();var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return r(t,null,[{key:"e",value:function(e,A){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="["+e+"] > "+A;t.ENABLE_CALLBACK&&t.emitter.emit("log","error",i),t.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}},{key:"i",value:function(e,A){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="["+e+"] > "+A;t.ENABLE_CALLBACK&&t.emitter.emit("log","info",i),t.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}},{key:"w",value:function(e,A){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="["+e+"] > "+A;t.ENABLE_CALLBACK&&t.emitter.emit("log","warn",i),t.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}},{key:"d",value:function(e,A){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="["+e+"] > "+A;t.ENABLE_CALLBACK&&t.emitter.emit("log","debug",i),t.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}},{key:"v",value:function(e,A){e&&!t.FORCE_GLOBAL_TAG||(e=t.GLOBAL_TAG);var i="["+e+"] > "+A;t.ENABLE_CALLBACK&&t.emitter.emit("log","verbose",i),t.ENABLE_VERBOSE&&console.log(i)}}]),t}();a.GLOBAL_TAG="EasyPlayer.js",a.FORCE_GLOBAL_TAG=!1,a.ENABLE_ERROR=!0,a.ENABLE_INFO=!0,a.ENABLE_WARN=!0,a.ENABLE_DEBUG=!0,a.ENABLE_VERBOSE=!0,a.ENABLE_CALLBACK=!1,a.emitter=new n.a,e.a=a},"5p4y":function(t,e){t.exports=function(t,e){for(var A=[],i={},n=0;n<e.length;n++){var r=e[n],a=r[0],o={id:t+":"+n,css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(o):A.push(i[a]={id:a,parts:[o]})}return A}},"5zLF":function(t,e){t.exports=function(t){for(var e,A=t.length;A--;){if(255!==(e=t.readUInt8(A))){e++,t.writeUInt8(e,A);break}t.writeUInt8(0,A)}}},6:function(t,e){},"68ub":function(t,e,A){"use strict";var i=A("DkjP");function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var A=this;t(function(t){A.reason||(A.reason=new i(t),e(A.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},"6BOp":function(t,e,A){"use strict";const i=A("WXsb").Reporter,n=A("cKvS").EncoderBuffer,r=A("cKvS").DecoderBuffer,a=A("tSXQ"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function g(t,e,A){const i={};this._baseState=i,i.name=A,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=g;const M=["enc","parent","children","tag","args","reverseArgs","choice","optional","any",
|
||
|
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
|
|
var i=A("NfRg"),n=i.Buffer;function r(t,e){for(var A in t)e[A]=t[A]}function a(t,e,A){return n(t,e,A)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=i:(r(i,e),e.Buffer=a),a.prototype=Object.create(n.prototype),r(n,a),a.from=function(t,e,A){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,A)},a.alloc=function(t,e,A){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=n(t);return void 0!==e?"string"==typeof A?i.fill(e,A):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},DaQO:function(t,e,A){"use strict";var i=A("5kkC"),n=A("vTtt"),r=A("COQ+"),a=A("HM6J"),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var A=0;A<e.length;A++){var i=e[A];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,A,i){return A&&t(e.prototype,A),i&&t(e,i),e}}();var g=function(t){function e(t,A){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,"xhr-range-loader"));return i.TAG="RangeLoader",i._seekHandler=t,i._config=A,i._needStash=!1,i._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],i._currentChunkSizeKB=384,i._currentSpeedNormalized=0,i._zeroSpeedChunkCount=0,i._xhr=null,i._speedSampler=new n.a,i._requestAbort=!1,i._waitForTotalLength=!1,i._totalLengthReceived=!1,i._currentRequestURL=null,i._currentRedirectedURL=null,i._currentRequestRange=null,i._totalLength=null,i._contentLength=null,i._receivedLength=0,i._lastTimeLoaded=0,i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,r["a"]),s(e,null,[{key:"isSupported",value:function(){try{var t=new XMLHttpRequest;return t.open("GET","https://example.com",!0),t.responseType="arraybuffer","arraybuffer"===t.responseType}catch(t){return i.a.w("RangeLoader",t.message),!1}}}]),s(e,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),function t(e,A,i){null===e&&(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,A);if(void 0===n){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,A,i)}if("value"in n)return n.value;var a=n.get;return void 0!==a?a.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"destroy",this).call(this)}},{key:"open",value:function(t,e){this._dataSource=t,this._range=e,this._status=r.c.kConnecting;var A=!1;void 0!=this._dataSource.filesize&&0!==this._dataSource.filesize&&(A=!0,this._totalLength=this._dataSource.filesize),this._totalLengthReceived||A?this._openSubRange():(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1}))}},{key:"_openSubRange",value:function(){var t=1024*this._currentChunkSizeKB,e=this._range.from+this._receivedLength,A=e+t;null!=this._contentLength&&A-this._range.from>=this._contentLength&&(A=this._range.from+this._contentLength-1),this._currentRequestRange={from:e,to:A},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(t,e){this._lastTimeLoaded=0;var A=t.url;this._config.reuseRedirectedURL&&(void 0
|
||
|
|
/*! @name @videojs/vhs-utils @version 1.3.0 @license MIT */var i=function(){function t(){this.listeners={}}var e=t.prototype;return e.on=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},e.off=function(t,e){if(!this.listeners[t])return!1;var A=this.listeners[t].indexOf(e);return this.listeners[t]=this.listeners[t].slice(0),this.listeners[t].splice(A,1),A>-1},e.trigger=function(t){var e=this.listeners[t];if(e)if(2===arguments.length)for(var A=e.length,i=0;i<A;++i)e[i].call(this,arguments[1]);else for(var n=Array.prototype.slice.call(arguments,1),r=e.length,a=0;a<r;++a)e[a].apply(this,n)},e.dispose=function(){this.listeners={}},e.pipe=function(t){this.on("data",function(e){t.push(e)})},t}();t.exports=i},"H/6M":function(t,e,A){"use strict";var i=A("u/Wk"),n=A("UXd7"),r=n.assert,a=n.cachedProperty,o=n.parseBytes;function s(t,e){this.eddsa=t,"object"!=typeof e&&(e=o(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),r(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(s,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(s,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(s,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(s,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),s.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},s.prototype.toHex=function(){return n.encode(this.toBytes(),"hex").toUpperCase()},t.exports=s},H6Sj:function(t,e,A){"use strict";var i=A("BUBJ"),n=A("1QMs"),r=A("FPTc"),a=A("IQMp"),o=A("jPC6"),s=(A.n(o),A("FpkY")),g=(A.n(s),A("fsIH")),M=(A.n(g),A("MUQo")),c=function(){function t(t,e){for(var A=0;A<e.length;A++){var i=e[A];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,A,i){return A&&t(e.prototype,A),i&&t(e,i),e}}();var u=function(){function t(e,A,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.playerInstance=null,this.WebRTCPlayerInstance=null;var a=r.cbUserPtr,o=r.decodeType,s=r.openAudio,g=r.BigPlay,M=r.Height,c=r.UnLogo,u=r.HideKbs,I=r.cfKbs;if(this.url=e,this.UnLogo=c,this.callbackFunc=i||function(){},this.fulls=!0,this.callbackUserPtr=a,this.decodeType="soft",this.version="v2.1.20210323",this.timeKbps=null,this.HideKbs=u,this.cfKbs=I||function(){},"auto"!==o&&"soft"!==o||(this.decodeType=o),n.a.supportMSEH264Playback()||(this.decodeType="soft"),this.internalTriggerPlay=!1,this.showTimeLabel=!1,this.seeking=!1,this.callbackEnd=!1,this.initH5Flag=!1,this.currentH5Status=!1,this.seekTimeSecs=0,this.fullScreenFlag=!1,this.playerUI=A,null!=this.playerUI){if(this.playerUI.classList=M?"player-box":"player-content",this.Snap=document.createElement("img"),this.Snap.src="",this.Snap.alt="",this.Snap.style="position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:1;display:none",this.playerUI.appendChild(this.Snap),this.h5Video=null,this.h5Video=document.createElement("VIDEO"),this.h5Video.style="width:0%;height:0%;position:absolute;top:0px;left:0px;background: black;",this.h5Video.setAttribute("oncontextmenu","return false"),this.playerUI.appendChild(this.h5Video),void 0!=g&&g){this.bigPlayBox=document.createElement("div"),this.bigPlayBox.style="display:block",this.bigPlayBox.classList="bigPlayBox fa fa-play",this.playerUI.appendChild(this.bigPlayBox);var l=this;this.bigPlayBox.onclick=function(){""!==l.url&&(l.playFlag?(l.internalTriggerPlay=!1,l.play(l.url,1,l.seekTimeSecs)):l.pause())}}this.loadingBox=document.createElement("div"),this.loadingBox.style="width:100%;height:100%;position: absolute;left:0px;top:0px;z-index:9;display:none",this.loadingBox.classList="loadingBox",this.playerUI.appendChild(this.loadingBox),this.conter=document.createElement("div"),this.conter.classList="conter",this.loadingB
|
||
|
|
/**
|
||
|
|
* vue-custom-element v3.3.0
|
||
|
|
* (c) 2021 Karol Fabjańczuk
|
||
|
|
* @license MIT
|
||
|
|
*/function i(t,e){return t.__proto__=e,t}Object.setPrototypeOf=Object.setPrototypeOf||i;i.bind(Object);var n="undefined"!=typeof Symbol&&"undefined"!=typeof Reflect&&"undefined"!=typeof Proxy&&!Object.isSealed(Proxy),r=function(){function t(t,e){for(var A=0;A<e.length;A++){var i=e[A];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,A,i){return A&&t(e.prototype,A),i&&t(e,i),e}}();function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("undefined"!=typeof customElements){if(n){var A=function(t){function A(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,A);var e=a(this,(A.__proto__||Object.getPrototypeOf(A)).call(this)),i=t?HTMLElement.call(t):e;return s.call(i),a(e,i)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(A,o),r(A,null,[{key:"observedAttributes",get:function(){return e.observedAttributes||[]}}]),A}();return A.prototype.connectedCallback=g,A.prototype.disconnectedCallback=M,A.prototype.attributeChangedCallback=c,u(t,A),A}var i=function(t){var e=t?HTMLElement.call(t):this;return s.call(e),e};return i.observedAttributes=e.observedAttributes||[],(i.prototype=Object.create(HTMLElement.prototype,{constructor:{configurable:!0,writable:!0,value:i}})).connectedCallback=g,i.prototype.disconnectedCallback=M,i.prototype.attributeChangedCallback=c,u(t,i),i}function s(){!0===e.shadow&&HTMLElement.prototype.attachShadow&&this.attachShadow({mode:"open"}),"function"==typeof e.constructorCallback&&e.constructorCallback.call(this)}function g(){"function"==typeof e.connectedCallback&&e.connectedCallback.call(this)}function M(){"function"==typeof e.disconnectedCallback&&e.disconnectedCallback.call(this)}function c(t,A,i){"function"==typeof e.attributeChangedCallback&&e.attributeChangedCallback.call(this,t,A,i)}function u(t,e){var A=customElements.get(t);return void 0!==A?A:customElements.define(t,e)}}Object.setPrototypeOf(o.prototype,HTMLElement.prototype),Object.setPrototypeOf(o,HTMLElement);var g=/-(\w)/g,M=function(t){return t.replace(g,function(t,e){return e?e.toUpperCase():""})},c=/([^-])([A-Z])/g,u=function(t){return t.replace(c,"$1-$2").replace(c,"$1-$2").toLowerCase()};function I(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,A=t.length-e,i=new Array(A);A--;)i[A]=t[A+e];return i}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function h(t,e){if(null===t||void 0===t)return e!==Boolean&&void 0;var A=t,i=["true","false"].indexOf(t)>-1,n=parseFloat(A,10),r=!isNaN(n)&&isFinite(A)&&"string"==typeof A&&!A.match(/^0+[^.]\d*$/g);return e&&e!==Boolean&&(void 0===A?"undefined":l(A))!==e?A=e(t):i||e===Boolean?A=""===A||("true"===A||!0===A):r&&(A=n),A}function d(t,e){if(t&&t.length)t.forEach(function(t){var A=M(t);-1===e.camelCase.indexOf(A)&&e.camelCase.push(A)});else if(t&&"object"===(void 0===t?"undefined":l(t)))for(var A in t){var i=M(A);-1===e.camelCase.indexOf(i)&&e.camelCase.push(i),t[i]&&t[i].type&&(e.types[A]=[].concat(t[i].type)[0])}}function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={camelCase:[],hyphenate:[],types:{}};(t.mixins&&t.mixins.forEach(function(t){d(t.props,e)}),t.extends&&t.extends.props)&&d(t.extends.props,e);return d(t.props,e),e.camelCase.forEach(function(t){e.hyphenate.push(u(t))}),e}function E(t){var e={};return I(t.attributes).forEach(fu
|
||
|
|
/*!
|
||
|
|
* The buffer module from node.js, for the browser.
|
||
|
|
*
|
||
|
|
* @author Feross Aboukhadijeh <http://feross.org>
|
||
|
|
* @license MIT
|
||
|
|
*/
|
||
|
|
var i=A("zGdw"),n=A("YlXM"),r=A("5RIO");function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return s.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=s.prototype:(null===t&&(t=new s(e)),t.length=e),t}function s(t,e,A){if(!(s.TYPED_ARRAY_SUPPORT||this instanceof s))return new s(t,e,A);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return g(this,t,e,A)}function g(t,e,A,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,A,i){if(e.byteLength,A<0||e.byteLength<A)throw new RangeError("'offset' is out of bounds");if(e.byteLength<A+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===A&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,A):new Uint8Array(e,A,i);s.TYPED_ARRAY_SUPPORT?(t=e).__proto__=s.prototype:t=u(t,e);return t}(t,e,A,i):"string"==typeof e?function(t,e,A){"string"==typeof A&&""!==A||(A="utf8");if(!s.isEncoding(A))throw new TypeError('"encoding" must be a valid string encoding');var i=0|l(e,A),n=(t=o(t,i)).write(e,A);n!==i&&(t=t.slice(0,n));return t}(t,e,A):function(t,e){if(s.isBuffer(e)){var A=0|I(e.length);return 0===(t=o(t,A)).length?t:(e.copy(t,0,0,A),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?o(t,0):u(t,e);if("Buffer"===e.type&&r(e.data))return u(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function M(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(M(e),t=o(t,e<0?0:0|I(e)),!s.TYPED_ARRAY_SUPPORT)for(var A=0;A<e;++A)t[A]=0;return t}function u(t,e){var A=e.length<0?0:0|I(e.length);t=o(t,A);for(var i=0;i<A;i+=1)t[i]=255&e[i];return t}function I(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function l(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var A=t.length;if(0===A)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*A;case"hex":return A>>>1;case"base64":return R(t).length;default:if(i)return F(t).length;e=(""+e).toLowerCase(),i=!0}}function h(t,e,A){var i=t[e];t[e]=t[A],t[A]=i}function d(t,e,A,i,n){if(0===t.length)return-1;if("string"==typeof A?(i=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,isNaN(A)&&(A=n?0:t.length-1),A<0&&(A=t.length+A),A>=t.length){if(n)return-1;A=t.length-1}else if(A<0){if(!n)return-1;A=0}if("string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:T(t,e,A,i,n);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,A):Uint8Array.prototype.lastIndexOf.call(t,e,A):T(t,[e],A,i,n);throw new TypeError("val must be string, number or Buffer")}function T(t,e,A,i,n){var r,a=1,o=t.length,s=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,o/=2,s/=2,A/=2}function g(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(n){var M=-1;for(r=A;r<o;r++)if(g(t,r)===g(e,-1===M?0:r-M)){if(-1===M&&(M=r),r-M+1===s)return M*a}else-1!==M&&(r-=r-M),M=-1}else for(A+s>o&&(A=o-s),r=A;r>=0;r--){for(var c=!0,u=0;u<s;u++)if(g(t,r+u)!==g(e,u)){c=!1;break}if(c)return r}return-1}function E(t,e,A,i){A=Number(A)||0;var n=t.length-A;i?(i=Number(i))>n&&(i=n):i=n;var r=e.length;if(r%2!=0)throw new TypeError("I
|
||
|
|
/*!
|
||
|
|
* Vue.js v2.5.13
|
||
|
|
* (c) 2014-2017 Evan You
|
||
|
|
* Released under the MIT License.
|
||
|
|
*/
|
||
|
|
var i=Object.freeze({});function n(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function a(t){return!0===t}function o(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}var g=Object.prototype.toString;function M(t){return"[object Object]"===g.call(t)}function c(t){return"[object RegExp]"===g.call(t)}function u(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function I(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function l(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var A=Object.create(null),i=t.split(","),n=0;n<i.length;n++)A[i[n]]=!0;return e?function(t){return A[t.toLowerCase()]}:function(t){return A[t]}}var d=h("slot,component",!0),T=h("key,ref,slot,slot-scope,is");function E(t,e){if(t.length){var A=t.indexOf(e);if(A>-1)return t.splice(A,1)}}var N=Object.prototype.hasOwnProperty;function f(t,e){return N.call(t,e)}function C(t){var e=Object.create(null);return function(A){return e[A]||(e[A]=t(A))}}var y=/-(\w)/g,D=C(function(t){return t.replace(y,function(t,e){return e?e.toUpperCase():""})}),B=C(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),p=/\B([A-Z])/g,m=C(function(t){return t.replace(p,"-$1").toLowerCase()});function w(t,e){function A(A){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,A):t.call(e)}return A._length=t.length,A}function Q(t,e){e=e||0;for(var A=t.length-e,i=new Array(A);A--;)i[A]=t[A+e];return i}function L(t,e){for(var A in e)t[A]=e[A];return t}function j(t){for(var e={},A=0;A<t.length;A++)t[A]&&L(e,t[A]);return e}function S(t,e,A){}var x=function(t,e,A){return!1},v=function(t){return t};function Y(t,e){if(t===e)return!0;var A=s(t),i=s(e);if(!A||!i)return!A&&!i&&String(t)===String(e);try{var n=Array.isArray(t),r=Array.isArray(e);if(n&&r)return t.length===e.length&&t.every(function(t,A){return Y(t,e[A])});if(n||r)return!1;var a=Object.keys(t),o=Object.keys(e);return a.length===o.length&&a.every(function(A){return Y(t[A],e[A])})}catch(t){return!1}}function U(t,e){for(var A=0;A<t.length;A++)if(Y(t[A],e))return A;return-1}function O(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var b="data-server-rendered",z=["component","directive","filter"],k=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],F={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:x,isReservedAttr:x,isUnknownElement:x,getTagNamespace:S,parsePlatformTagName:v,mustUseProp:x,_lifecycleHooks:k};function R(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function G(t,e,A,i){Object.defineProperty(t,e,{value:A,enumerable:!!i,writable:!0,configurable:!0})}var H=/[^\w.$]/;var J,P="__proto__"in{},_="undefined"!=typeof window,X="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,V=X&&WXEnvironment.platform.toLowerCase(),W=_&&window.navigator.userAgent.toLowerCase(),K=W&&/msie|trident/.test(W),Z=W&&W.indexOf("msie 9.0")>0,q=W&&W.indexOf("edge/")>0,$=W&&W.indexOf("android")>0||"android"===V,tt=W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===V,et=(W&&/chrome\/\d+/.test(W),{}.watch),At=!1;if(_)try{var it={};Object.defineProperty(it,"passive",{get:function(){At=!0}}),window.addEventListener("test-passive",null,it)}catch(t){}var nt=function(){return void 0===J&&(J=!_&&void 0!==e&&"server"===e.process.env.VUE_ENV),J},rt=_&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,st="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);ot="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},
|
||
|
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
|
|
e.read=function(t,e,A,i,n){var r,a,o=8*n-i-1,s=(1<<o)-1,g=s>>1,M=-7,c=A?n-1:0,u=A?-1:1,I=t[e+c];for(c+=u,r=I&(1<<-M)-1,I>>=-M,M+=o;M>0;r=256*r+t[e+c],c+=u,M-=8);for(a=r&(1<<-M)-1,r>>=-M,M+=i;M>0;a=256*a+t[e+c],c+=u,M-=8);if(0===r)r=1-g;else{if(r===s)return a?NaN:1/0*(I?-1:1);a+=Math.pow(2,i),r-=g}return(I?-1:1)*a*Math.pow(2,r-i)},e.write=function(t,e,A,i,n,r){var a,o,s,g=8*r-n-1,M=(1<<g)-1,c=M>>1,u=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,I=i?0:r-1,l=i?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=M):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),(e+=a+c>=1?u/s:u*Math.pow(2,1-c))*s>=2&&(a++,s/=2),a+c>=M?(o=0,a=M):a+c>=1?(o=(e*s-1)*Math.pow(2,n),a+=c):(o=e*Math.pow(2,c-1)*Math.pow(2,n),a=0));n>=8;t[A+I]=255&o,I+=l,o/=256,n-=8);for(a=a<<n|o,g+=n;g>0;t[A+I]=255&a,I+=l,a/=256,g-=8);t[A+I-l]|=128*h}},Yt9d:function(t,e,A){"use strict";var i=A("QMyh").Buffer,n=A(4);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,A=""+e.data;e=e.next;)A+=t+e.data;return A},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var e,A,n,r=i.allocUnsafe(t>>>0),a=this.head,o=0;a;)e=a.data,A=r,n=o,e.copy(A,n),o+=a.data.length,a=a.next;return r},t}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},Yu54:function(t,e,A){"use strict";A.d(e,"d",function(){return r}),A.d(e,"b",function(){return a}),A.d(e,"a",function(){return o}),A.d(e,"c",function(){return s});var i=function(){function t(t,e){for(var A=0;A<e.length;A++){var i=e[A];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,A,i){return A&&t(e.prototype,A),i&&t(e,i),e}}();function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function t(e,A,i,r,a){n(this,t),this.dts=e,this.pts=A,this.duration=i,this.originalDts=r,this.isSyncPoint=a,this.fileposition=null},a=function(){function t(){n(this,t),this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}return i(t,[{key:"appendSyncPoint",value:function(t){t.isSyncPoint=!0,this.syncPoints.push(t)}}]),t}(),o=function(){function t(){n(this,t),this._list=[]}return i(t,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(t){var e=this._list;0!==t.length&&(e.length>0&&t[0].originalDts<e[e.length-1].originalDts&&this.clear(),Array.prototype.push.apply(e,t))}},{key:"getLastSyncPointBeforeDts",value:function(t){if(0==this._list.length)return null;var e=this._list,A=0,i=e.length-1,n=0,r=0,a=i;for(t<e[0].dts&&(A=0,r=a+1);r<=a;){if((n=r+Math.floor((a-r)/2))===i||t>=e[n].dts&&t<e[n+1].dts){A=n;break}e[n].dts<t?r=n+1:a=n-1}return this._list[A]}}]),t}(),s=function(){function t(e){n(this,t),this._type=e,this._list=[],this._lastAppendLocation=-1}return i(t,[{key:"isEmpty",value:function(){return 0===this._list.length}},{key:"clear",value:function(){this._list=[],this._lastAppendLocation=-1}},{key:"_searchNearestSegmentBefore",value:function(t){var e=this._list;if(0===e.length)return-2;var A=e.length-1,i=0,n=0,r=A,a=0;if(t<e[0].originalBeginDts)return a=-1;for(;n<=r;){if((i=n+Math.floor((r-n)/2))===A||t>e[i].last
|
||
|
|
/*! (C) Andrea Giammarchi - @WebReflection - Mit Style License */
|
||
|
|
!function(t,e){"use strict";function A(){var t=B.splice(0,B.length);for(_t=0;t.length;)t.shift().call(null,t.shift())}function i(t,e){for(var A=0,i=t.length;A<i;A++)I(t[A],e)}function n(t){return function(e){vt(e)&&(I(e,t),it.length&&i(e.querySelectorAll(it),t))}}function r(t){var e=zt.call(t,"is"),A=t.nodeName.toUpperCase(),i=rt.call(et,e?q+e.toUpperCase():Z+A);return e&&-1<i&&!a(A,e)?-1:i}function a(t,e){return-1<it.indexOf(t+'[is="'+e+'"]')}function o(t){var e=t.currentTarget,A=t.attrChange,i=t.attrName,n=t.target,r=t[P]||2,a=t[X]||3;qt&&(!n||n===e)&&e[k]&&"style"!==i&&(t.prevValue!==t.newValue||""===t.newValue&&(A===r||A===a))&&e[k](i,A===r?null:t.prevValue,A===a?null:t.newValue)}function s(t){var e=n(t);return function(t){B.push(e,t.target),_t&&clearTimeout(_t),_t=setTimeout(A,1)}}function g(t){Zt&&(Zt=!1,t.currentTarget.removeEventListener(W,g)),it.length&&i((t.target||C).querySelectorAll(it),t.detail===b?b:U),St&&function(){for(var t,e=0,A=Yt.length;e<A;e++)t=Yt[e],nt.contains(t)||(A--,Yt.splice(e--,1),I(t,b))}()}function M(t,e){var A=this;Rt.call(A,t,e),p.call(A,{target:A})}function c(t,e){Qt(t,e),Q?Q.observe(t,Jt):(Kt&&(t.setAttribute=M,t[v]=w(t),t[Y](K,p)),t[Y](V,o)),t[H]&&qt&&(t.created=!0,t[H](),t.created=!1)}function u(t){throw new Error("A "+t+" type is already registered")}function I(t,e){var A,i,n=r(t);-1<n&&(j(t,At[n]),n=0,e!==U||t[U]?e===b&&!t[b]&&(t[U]=!1,t[b]=!0,i="disconnected",n=1):(t[b]=!1,t[U]=!0,i="connected",n=1,St&&rt.call(Yt,t)<0&&Yt.push(t)),n&&(A=t[e+O]||t[i+O])&&A.call(t))}function l(){}function h(t,e,A){var i=A&&A[z]||"",n=e.prototype,r=wt(n),a=e.observedAttributes||Mt,o={prototype:r};xt(r,H,{value:function(){if(yt)yt=!1;else if(!this[dt]){this[dt]=!0,new e(this),n[H]&&n[H].call(this);var t=Dt[pt.get(e)];(!Et||t.create.length>1)&&E(this)}}}),xt(r,k,{value:function(t){-1<rt.call(a,t)&&n[k].apply(this,arguments)}}),n[R]&&xt(r,F,{value:n[R]}),n[G]&&xt(r,J,{value:n[G]}),i&&(o[z]=i),t=t.toUpperCase(),Dt[t]={constructor:e,create:i?[i,mt(t)]:[t]},pt.set(e,t),C[x](t.toLowerCase(),o),N(t),Bt[t].r()}function d(t){var e=Dt[t.toUpperCase()];return e&&e.constructor}function T(t){return"string"==typeof t?t:t&&t.is||""}function E(t){for(var e,A=t[k],i=A?t.attributes:Mt,n=i.length;n--;)e=i[n],A.call(t,e.name||e.nodeName,null,e.value||e.nodeValue)}function N(t){return(t=t.toUpperCase())in Bt||(Bt[t]={},Bt[t].p=new Ct(function(e){Bt[t].r=e})),Bt[t].p}function f(){Tt&&delete t.customElements,gt(t,"customElements",{configurable:!0,value:new l}),gt(t,"CustomElementRegistry",{configurable:!0,value:l});for(var e=function(e){var A=t[e];if(A){t[e]=function(t){var e,i;return t||(t=this),t[dt]||(yt=!0,e=Dt[pt.get(t.constructor)],(t=(i=Et&&1===e.create.length)?Reflect.construct(A,Mt,e.constructor):C.createElement.apply(C,e.create))[dt]=!0,yt=!1,i||E(t)),t},t[e].prototype=A.prototype;try{A.prototype.constructor=t[e]}catch(i){!0,gt(A,dt,{value:t[e]})}}},A=D.get(/^HTML[A-Z]*[a-z]/),i=A.length;i--;e(A[i]));C.createElement=function(t,e){var A=T(e);return A?Ht.call(this,t,mt(A)):Ht.call(this,t)},Xt||(Wt=!0,C[x](""))}var C=t.document,y=t.Object,D=function(t){var e,A,i,n,r=/^[A-Z]+[a-z]/,a=function(t,e){(e=e.toLowerCase())in o||(o[t]=(o[t]||[]).concat(e),o[e]=o[e.toUpperCase()]=t)},o=(y.create||y)(null),s={};for(A in t)for(n in t[A])for(i=t[A][n],o[n]=i,e=0;e<i.length;e++)o[i[e].toLowerCase()]=o[i[e].toUpperCase()]=n;return s.get=function(t){return"string"==typeof t?o[t]||(r.test(t)?[]:""):function(t){var e,A=[];for(e in o)t.test(e)&&A.push(e);return A}(t)},s.set=function(t,e){return r.test(t)?a(t,e):a(e,t),s},s}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"]
|
||
|
|
/*!
|
||
|
|
* @overview es6-promise - a tiny implementation of Promises/A+.
|
||
|
|
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
||
|
|
* @license Licensed under MIT license
|
||
|
|
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
||
|
|
* @version v4.2.8+1e68dce6
|
||
|
|
*/var i;i=function(){"use strict";function t(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},n=0,r=void 0,a=void 0,o=function(t,e){l[n]=t,l[n+1]=e,2===(n+=2)&&(a?a(h):f())};var s="undefined"!=typeof window?window:void 0,g=s||{},M=g.MutationObserver||g.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),u="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function I(){var t=setTimeout;return function(){return t(h,1)}}var l=new Array(1e3);function h(){for(var t=0;t<n;t+=2){(0,l[t])(l[t+1]),l[t]=void 0,l[t+1]=void 0}n=0}var d,T,E,N,f=void 0;function C(t,e){var A=this,i=new this.constructor(B);void 0===i[D]&&b(i);var n=A._state;if(n){var r=arguments[n-1];o(function(){return U(n,i,r,A._result)})}else v(A,i,t,e);return i}function y(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(B);return L(e,t),e}c?f=function(){return e.nextTick(h)}:M?(T=0,E=new M(h),N=document.createTextNode(""),E.observe(N,{characterData:!0}),f=function(){N.data=T=++T%2}):u?((d=new MessageChannel).port1.onmessage=h,f=function(){return d.port2.postMessage(0)}):f=void 0===s?function(){try{var t=Function("return this")().require("vertx");return void 0!==(r=t.runOnLoop||t.runOnContext)?function(){r(h)}:I()}catch(t){return I()}}():I();var D=Math.random().toString(36).substring(2);function B(){}var p=void 0,m=1,w=2;function Q(e,A,i){A.constructor===e.constructor&&i===C&&A.constructor.resolve===y?function(t,e){e._state===m?S(t,e._result):e._state===w?x(t,e._result):v(e,void 0,function(e){return L(t,e)},function(e){return x(t,e)})}(e,A):void 0===i?S(e,A):t(i)?function(t,e,A){o(function(t){var i=!1,n=function(t,e,A,i){try{t.call(e,A,i)}catch(t){return t}}(A,e,function(A){i||(i=!0,e!==A?L(t,A):S(t,A))},function(e){i||(i=!0,x(t,e))},t._label);!i&&n&&(i=!0,x(t,n))},t)}(e,A,i):S(e,A)}function L(t,e){if(t===e)x(t,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof(i=e),null===i||"object"!==n&&"function"!==n)S(t,e);else{var A=void 0;try{A=e.then}catch(e){return void x(t,e)}Q(t,e,A)}var i,n}function j(t){t._onerror&&t._onerror(t._result),Y(t)}function S(t,e){t._state===p&&(t._result=e,t._state=m,0!==t._subscribers.length&&o(Y,t))}function x(t,e){t._state===p&&(t._state=w,t._result=e,o(j,t))}function v(t,e,A,i){var n=t._subscribers,r=n.length;t._onerror=null,n[r]=e,n[r+m]=A,n[r+w]=i,0===r&&t._state&&o(Y,t)}function Y(t){var e=t._subscribers,A=t._state;if(0!==e.length){for(var i=void 0,n=void 0,r=t._result,a=0;a<e.length;a+=3)i=e[a],n=e[a+A],i?U(A,i,n,r):n(r);t._subscribers.length=0}}function U(e,A,i,n){var r=t(i),a=void 0,o=void 0,s=!0;if(r){try{a=i(n)}catch(t){s=!1,o=t}if(A===a)return void x(A,new TypeError("A promises callback cannot return that same promise."))}else a=n;A._state!==p||(r&&s?L(A,a):!1===s?x(A,o):e===m?S(A,a):e===w&&x(A,a))}var O=0;function b(t){t[D]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var z=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(B),this.promise[D]||b(this.promise),i(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?S(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&S(this.promise,this._result))):x(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===p&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var A=this._instanceConstructor,i=A.resolve;if(i===y){var n=void 0,r=void 0,a=!1;try{n=t.then}catch(t){a=!0,r=t}if(n===C&&t._state!==p)this._settledAt(t._state,e,t._result);else if("function"!=typeof n)this._remaining--,this._result[e]=t;else if(A===k){var o=new A(B);a?x(o,r):Q(o,t,n),this._willSettleAt(o,e)}else this._willSettleAt(new A(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,A){var i=this.promise;i.
|