3 lines
27 KiB
JavaScript
3 lines
27 KiB
JavaScript
|
(function(G,U){typeof G.HTMLVideoElement=="undefined"&&(U.createElement("video"),U.createElement("audio"),U.createElement("track")),function(O,x){"use strict";typeof define=="function"&&define.amd?define(x):typeof exports=="object"?module.exports=x():O.returnExports=x()}(this,function(){var O,x=Array,h=x.prototype,T=Object,_=T.prototype,S=Function.prototype,j=String,E=j.prototype,D=Number,z=D.prototype,Z=h.slice,ft=h.splice,H=h.push,K=h.unshift,st=h.concat,w=S.call,wt=S.apply,C=Math.max,L=Math.min,Q=_.toString,X=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",mt=Function.prototype.toString,Ot=function(t){try{return mt.call(t),!0}catch(e){return!1}},q="[object Function]",tt="[object GeneratorFunction]";O=function(t){if(typeof t!="function")return!1;if(X)return Ot(t);var e=Q.call(t);return e===q||e===tt};var et,jt=RegExp.prototype.exec,Tt=function(t){try{return jt.call(t),!0}catch(e){return!1}},o="[object RegExp]";et=function(t){return typeof t!="object"?!1:X?Tt(t):Q.call(t)===o};var u,p=String.prototype.valueOf,Y=function(t){try{return p.call(t),!0}catch(e){return!1}},rt="[object String]";u=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:X?Y(t):Q.call(t)===rt};var k=T.defineProperty&&function(){try{var t={};T.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(r){return!1}}(),y=function(t){var e;return e=k?function(r,n,a,i){!i&&n in r||T.defineProperty(r,n,{configurable:!0,enumerable:!1,writable:!0,value:a})}:function(r,n,a,i){!i&&n in r||(r[n]=a)},function(r,n,a){for(var i in n)t.call(n,i)&&e(r,i,n[i],a)}}(_.hasOwnProperty),nt=function(t){var e=typeof t;return t===null||e!=="object"&&e!=="function"},ot=D.isNaN||function(t){return t!==t},g={ToInteger:function(t){var e=+t;return ot(e)?e=0:e!==0&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e))),e},ToPrimitive:function(t){var e,r,n;if(nt(t))return t;if(r=t.valueOf,O(r)&&(e=r.call(t),nt(e))||(n=t.toString,O(n)&&(e=n.call(t),nt(e))))return e;throw new TypeError},ToObject:function(t){if(t==null)throw new TypeError("can't convert "+t+" to object");return T(t)},ToUint32:function(t){return t>>>0}},Et=function(){};y(S,{bind:function(t){var e=this;if(!O(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var r,n=Z.call(arguments,1),a=function(){if(this instanceof r){var s=e.apply(this,st.call(n,Z.call(arguments)));return T(s)===s?s:this}return e.apply(t,st.call(n,Z.call(arguments)))},i=C(0,e.length-n.length),f=[],l=0;i>l;l++)H.call(f,"$"+l);return r=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this, arguments); }")(a),e.prototype&&(Et.prototype=e.prototype,r.prototype=new Et,Et.prototype=null),r}});var A=w.bind(_.hasOwnProperty),Ut=w.bind(_.toString),V=w.bind(Z),oe=wt.bind(Z),M=w.bind(E.slice),I=w.bind(E.split),ie=w.bind(E.indexOf),R=w.bind(H),ae=w.bind(_.propertyIsEnumerable),Nt=w.bind(h.sort),lt=x.isArray||function(t){return Ut(t)==="[object Array]"},ue=[].unshift(0)!==1;y(h,{unshift:function(){return K.apply(this,arguments),this.length}},ue),y(x,{isArray:lt});var Ct=T("a"),$=Ct[0]!=="a"||!(0 in Ct),it=function(t){var e=!0,r=!0,n=!1;if(t)try{t.call("foo",function(a,i,f){typeof f!="object"&&(e=!1)}),t.call([1],function(){"use strict";r=typeof this=="string"},"x")}catch(a){n=!0}return!!t&&!n&&e&&r};y(h,{forEach:function(t){var e,r=g.ToObject(this),n=$&&u(this)?I(this,""):r,a=-1,i=g.ToUint32(n.length);if(arguments.length>1&&(e=arguments[1]),!O(t))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++a<i;)a in n&&(typeof e=="undefined"?t(n[a],a,r):t.call(e,n[a],a,r))}},!it(h.forEach)),y(h,{map:function(t){var e,r=g.ToObject(this),n=$&&u(this)?I(this,""):r,a=g.ToUint32(n.length),i=x(a);if(arguments.length>1&&(e=arguments[1]),!O(t))throw new TypeError("Array.prototype.map callback must be a function");for(var f=0;a>f;f++)f in n&&(typeof e=="undefined"?i[f]=t(n[f],f,r):i[f]=t.call(e,n[f],f,r));return i}},!it(h.map)),y(h,{filter:function(t){var e,r,n=g.ToObject(this),a=$&&u(this)?I(this,""):n,i=g.ToUint32(a.length),f=[];if(arg
|
||
|
\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Be="\u200B",gt="["+dt+"]",He=new RegExp("^"+gt+gt+"*"),Le=new RegExp(gt+gt+"*$"),Xe=E.trim&&(dt.trim()||!Be.trim());y(E,{trim:function(){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");return j(this).replace(He,"").replace(Le,"")}},Xe);var ee=w.bind(String.prototype.trim),Ve=E.lastIndexOf&&"abc\u3042\u3044".lastIndexOf("\u3042\u3044",2)!==-1;y(E,{lastIndexOf:function(t){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");for(var e=j(this),r=j(t),n=arguments.length>1?D(arguments[1]):NaN,a=ot(n)?1/0:g.ToInteger(n),i=L(C(a,0),e.length),f=r.length,l=i+f;l>0;){l=C(0,l-f);var s=ie(M(e,l,i+f),r);if(s!==-1)return l+s}return-1}},Ve);var Ke=E.lastIndexOf;if(y(E,{lastIndexOf:function(t){return Ke.apply(this,arguments)}},E.lastIndexOf.length!==1),(parseInt(dt+"08")!==8||parseInt(dt+"0x16")!==22)&&(parseInt=function(t){var e=/^[\-+]?0[xX]/;return function(r,n){var a=ee(r),i=D(n)||(e.test(a)?16:10);return t(a,i)}}(parseInt)),1/parseFloat("-0")!=-(1/0)&&(parseFloat=function(t){return function(e){var r=ee(e),n=t(r);return n===0&&M(r,0,1)==="-"?-0:n}}(parseFloat)),String(new RangeError("test"))!=="RangeError: test"){var Qe=function(){if(typeof this=="undefined"||this===null)throw new TypeError("can't convert "+this+" to object");var t=this.name;typeof t=="undefined"?t="Error":typeof t!="string"&&(t=j(t));var e=this.message;return typeof e=="undefined"?e="":typeof e!="string"&&(e=j(e)),t?e?t+": "+e:t:e};Error.prototype.toString=Qe}if(k){var re=function(t,e){if(ae(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);r.enumerable=!1,Object.defineProperty(t,e,r)}};re(Error.prototype,"message"),Error.prototype.message!==""&&(Error.prototype.message=""),re(Error.prototype,"name")}if(String(/a/gim)!=="/a/gim"){var qe=function(){var t="/"+this.source+"/";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),t};RegExp.prototype.toString=qe}}),function(O,x){"use strict";typeof define=="function"&&define.amd?define(x):typeof exports=="object"?module.exports=x():O.returnExports=x()}(this,function(){var O,x,h,T,_=Function.call,S=Object.prototype,j=_.bind(S.hasOwnProperty),E=_.bind(S.propertyIsEnumerable),D=_.bind(S.toString),z=j(S,"__defineGetter__");z&&(O=_.bind(S.__defineGetter__),x=_.bind(S.__defineSetter__),h=_.bind(S.__lookupGetter__),T=_.bind(S.__lookupSetter__)),Object.getPrototypeOf||(Object.getPrototypeOf=function(o){var u=o.__proto__;return u||u===null?u:D(o.constructor)==="[object Function]"?o.constructor.prototype:o instanceof Object?S:null});var Z=function(o){try{return o.sentinel=0,Object.getOwnPropertyDescriptor(o,"sentinel").value===0}catch(u){return!1}};if(Object.defineProperty){var ft=Z({}),H=typeof U=="undefined"||Z(U.createElement("div"));if(!H||!ft)var K=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||K){var st="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(o,u){if(typeof o!="object"&&typeof o!="function"||o===null)throw new TypeError(st+o);if(K)try{return K.call(Object,o,u)}catch(nt){}var p;if(!j(o,u))return p;if(p={enumerable:E(o,u),configurable:!0},z){var Y=o.__proto__,rt=o!==S;rt&&(o.__proto__=S);var k=h(o,u),y=T(o,u);if(rt&&(o.__proto__=Y),k||y)return k&&(p.get=k),y&&(p.set=y),p}return p.value=o[u],p.writable=!0,p}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(o){return Object.keys(o)}),!Object.create){var w,wt=!({__proto__:null}instanceof Object),C=function(){if(!U.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(o){return!1}},L=function(){var o,u;return u=new ActiveXObject("htmlfile"),u.write("<script></script>"),u.close(),o=u.parentWindow.Object.prototype,u=null,o},Q=function(){var o,u=U.createElement("iframe"),p=U.body||U.documentElement;return u.style.display="none",p.appendChild(u),u.src="javascript:",o=u.contentWindow.Object.prototype,p.removeChild(u),u=null,o};w=wt||ty
|