2 lines
19 KiB
JavaScript
2 lines
19 KiB
JavaScript
|
|
(function(t){!function(t){var e=Object.prototype.hasOwnProperty("__defineGetter__"),n="A property cannot both have accessors and be writable or have a value";Object.defineProperty=function(r,o,i){if(t&&(r===window||r===document||r===Element.prototype||r instanceof Element))return t(r,o,i);if(null===r||!(r instanceof Object||"object"==typeof r))throw new TypeError("Object.defineProperty called on non-object");if(!(i instanceof Object))throw new TypeError("Property description must be an object");var a=String(o),c="value"in i||"writable"in i,u="get"in i&&typeof i.get,s="set"in i&&typeof i.set;if(u){if("function"!==u)throw new TypeError("Getter must be a function");if(!e)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(c)throw new TypeError(n);r.__defineGetter__(a,i.get)}else r[a]=i.value;if(s){if("function"!==s)throw new TypeError("Setter must be a function");if(!e)throw new TypeError("Getters & setters cannot be defined on this javascript engine");if(c)throw new TypeError(n);r.__defineSetter__(a,i.set)}return"value"in i&&(r[a]=i.value),r}}(Object.defineProperty),function(t){Object.defineProperty(Array,"isArray",{configurable:!0,value:function(e){return"[object Array]"===t.call(e)},writable:!0})}(Object.prototype.toString),Array.prototype.every=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n=Object(this),r=arguments[1],o=n instanceof String?n.split(""):n,i=Number(o.length)||0,a=-1;++a<i;)if(a in o&&!e.call(r,o[a],a,n))return!1;return!0},Array.prototype.filter=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n,r=Object(this),o=arguments[1],i=r instanceof String?r.split(""):r,a=Math.max(Math.min(i.length,9007199254740991),0)||0,c=-1,u=[];++c<a;)n=i[c],c in i&&e.call(o,n,c,r)&&u.push(n);return u},Array.prototype.forEach=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n=Object(this),r=arguments[1],o=n instanceof String?n.split(""):n,i=Math.max(Math.min(o.length,9007199254740991),0)||0,a=-1;++a<i;)a in o&&e.call(r,o[a],a,n)},Array.prototype.indexOf=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");var n=this instanceof String?this.split(""):this,r=Math.max(Math.min(n.length,9007199254740991),0)||0,o=Number(arguments[1])||0;for(o=(o<0?Math.max(r+o,0):o)-1;++o<r;)if(o in n&&n[o]===e)return o;return-1},Array.prototype.lastIndexOf=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");var n=this instanceof String?this.split(""):this,r=Math.max(Math.min(n.length,9007199254740991),0)||0,o=Number(arguments[1])||0;o=1 in arguments?(o<0?Math.max(r+o,0):o)+1:r;for(;--o>=0;)if(o in n&&n[o]===e)return o;return-1},Array.prototype.map=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n=Object(this),r=arguments[1],o=n instanceof String?n.split(""):n,i=Math.max(Math.min(o.length,9007199254740991),0)||0,a=-1,c=[];++a<i;)a in o&&(c[a]=e.call(r,o[a],a,n));return c},Array.prototype.reduce=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");var n,r=Object(this),o=r instanceof String?r.split(""):r,i=Math.max(Math.min(o.length,9007199254740991),0)||0,a=-1;if(1 in arguments)n=arguments[1];else{for(;++a<i&&!(a in o););if(a>=i)throw new TypeError("Reduce of empty array with no initial value");n=o[a]}for(;++a<i;)a in o&&(n=e(n,o[a],a,r));return n},Array.prototype.reduceRight=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");var n,r=Object(this),o=r instanceof String?r.split(""):r,i=Math.max(Math.min(o.length,9007199254740991),0)||0;if(1 in arguments)n=arguments[1];else{for(;--i>-1&&!(i in o););if(i<=-1)throw new TypeError("Reduce of empty array with no initial value");n=o[i]}for(;--i>-1;)i in o&&(n=e(n,o[i],i,r));return n},Array.prototype.some=function(e){if(this===t||null===this)throw new TypeError(this+" is not an object");if(!(e instanceof Function))throw new TypeError(e+" is not a function");for(var n=Object(this),r=arguments[1],o=n instanceof String?n.split(""):n,i=Math.max(Math.min(o.length,9007199254740991),0)||0,a=-1;++a<i;)if(a in o&&e.call(r,o[a],a,n))return!0;return!1},this.HTMLDocument?this.Document=this.HTMLDocument:(this.Document=this.HTMLDocument=document.constructor=new Function("return function Document() {}")(),this.Document.prototype=document),function(){function t(){return s--||clearTimeout(e),!(!document.body||document.body.prototype||!/(complete|interactive)/.test(document.readyState))&&(a(document,!0),e&&document.body.prototype&&clearTimeout(e),!!document.body.prototype)}if(!window.Element||window.HTMLElement){window.Element=window.HTMLElement=new Function("return function Element() {}")();var e,n=document.appendChild(document.createElement("body")),r=n.appendChild(document.createElement("iframe")).contentWindow.document,o=Element.prototype=r.appendChild(r.createElement("*")),i={},a=function(t,e){var n,r,o,c=t.childNodes||[],u=-1;if(1===t.nodeType&&t.constructor!==Element){t.constructor=Element;for(n in i)r=i[n],t[n]=r}for(;o=e&&c[++u];)a(o,e);return t},c=document.getElementsByTagName("*"),u=document.createElement,s=100;o.attachEvent("onpropertychange",function(t){for(var e,n=t.propertyName,r=!i.hasOwnProperty(n),a=o[n],u=i[n],s=-1;e=c[++s];)1===e.nodeType&&(r||e[n]===u)&&(e[n]=a);i[n]=a}),o.constructor=Element,o.hasAttribute||(o.hasAttribute=function(t){return null!==this.getAttribute(t)}),t()||(document.onreadystatechange=t,e=setInterval(t,25)),document.createElement=function(t){var e=u(String(t).toLowerCase());return a(e)},document.removeChild(n)}else window.HTMLElement=window.Element}();var e=function(){function t(t){if(/^-?[_a-zA-Z]+[_a-zA-Z0-9-]*$/.test(t))return String(t);throw new Error("InvalidCharacterError: DOM Exception 5")}function e(t){for(var e,n=-1,r={};e=t[++n];)r[e]=!0;return r}function n(t,e){var n,r=[];for(n in e)e[n]&&r.push(n);[].splice.apply(t,[0,t.length].concat(r))}var r=function(){};return r.prototype={constructor:r,item:function(t){return this[parseFloat(t)]||null},length:Array.prototype.length,toString:function(){return[].join.call(this," ")},add:function(){for(var r=e(this),o=0;o in arguments;++o)r[t(arguments[o])]=!0;n(this,r)},contains:function(t){return t in e(this)},remove:function(){for(var r=e(this),o=0;o in arguments;++o)r[t(arguments[o])]=!1;n(this,r)},toggle:function(r){var o=e(this),i=1 in arguments?!arguments[1]:t(r)in o;return o[r]=!i,n(this,o),!i}},r}();!function(t){var n="DOMTokenList"in t&&t.DOMTokenList;if(n){var r=n.prototype.toggle;n.prototype.toggle=function(t){if(1 in arguments){var e=this.contains(t),n=!!arguments[1];if(e&&n||!e&&!n)return n}return r.call(this,t)}}else t.DOMTokenList=e}(this),Date.now=function(){return(new Date).getTime()},Date.prototype.toISOString=function(){function t(t,e){return t=""+t,"0000".substr(0,e-t.length)+t}var e=this;return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1,2)+"-"+t(e.getUTCDate(),2)+"T"+t(e.getUTCHours(),2)+":"+t(e.getUTCMinutes(),2)+":"+t(e.getUTCSeconds(),2)+"."+t(e.getUTCMilliseconds(),3)+"Z"},Object.defineProperty(Element.prototype,"classList",{configurable:!0,get:function(){function t(){var t="object"==typeof o.className?o.className.baseVal:o.className;[].splice.apply(r,[0,r.length].concat((t||"").replace(/^\s+|\s+$/g,"").split(/\s+/)))}function n(){o.attachEvent&&o.detachEvent("onpropertychange",t),"object"==typeof o.className?o.className.baseVal=i.toString.call(r):o.className=i.toString.call(r),o.attachEvent&&o.attachEvent("onpropertychange",t)}var r,o=this,i=e.prototype,a=function(){};return a.prototype=new e,a.prototype.item=function(e){return t(),i.item.apply(r,arguments)},a.prototype.toString=function(){return t(),i.toString.apply(r,arguments)},a.prototype.add=function(){return t(),i.add.apply(r,arguments),n()},a.prototype.contains=function(e){return t(),i.contains.apply(r,arguments)},a.prototype.remove=function(){return t(),i.remove.apply(r,arguments),n()},a.prototype.toggle=function(e){return t(),e=i.toggle.apply(r,arguments),n(),e},r=new a,o.attachEvent&&o.attachEvent("onpropertychange",t),r}}),Element.prototype.cloneNode=function(t,e){return function(e){void 0===e&&(e=!1);var n=t.call(this,e);return"checked"in this&&(n.checked=this.checked),n}}(Element.prototype.cloneNode),function(){function t(t,r,o){var i,a,c=document.createElement("div"),u="qsa"+String(Math.random()).slice(3);return c.innerHTML="x<style>"+r+"{qsa:"+u+";}",i=n.appendChild(c.lastChild),a=e(t,r,o,u),n.removeChild(i),o?a[0]:a}function e(t,n,r,o){var i,a=/1|9/.test(t.nodeType),c=t.childNodes,u=[],s=-1;if(a&&t.currentStyle&&t.currentStyle.qsa===o&&u.push(t)&&r)return u;for(;i=c[++s];)if(u=u.concat(e(i,n,r,o)),r&&u.length)return u;return u}var n=document.getElementsByTagName("head")[0];Document.prototype.querySelector=Element.prototype.querySelector=function(e){return t(this,e,!0)},Document.prototype.querySelectorAll=Element.prototype.querySelectorAll=function(e){return t(this,e,!1)}}(),Element.prototype.matches=Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||function(t){for(var e=this,n=(e.document||e.ownerDocument).querySelectorAll(t),r=0;n[r]&&n[r]!==e;)++r;return!!n[r]},Element.prototype.closest=function(t){for(var e=this;e;){if(e.matches(t))return e;e=e.parentElement}return null},Object.defineProperty(Function.prototype,"bind",{value:function(t){var e,n=Array,r=Object,o=r.prototype,i=n.prototype,a=function(){},c=o.toString,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,s=Function.prototype.toString,l=function(t){try{return s.call(t),!0}catch(e){return!1}};e=function(t){if("function"!=typeof t)return!1;if(u)return l(t);var e=c.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e};var p=i.slice,f=i.concat,h=i.push,m=Math.max,y=this;if(!e(y))throw new TypeError("Function.prototype.bind called on incompatible "+y);for(var d,g=p.call(arguments,1),v=m(0,y.length-g.length),w=[],b=0;b<v;b++)h.call(w,"$"+b);return d=Function("binder","return function ("+w.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof d){var e=y.apply(this,f.call(g,p.call(arguments)));return r(e)===e?e:this}return y.apply(t,f.call(g,p.call(arguments)))}),y.prototype&&(a.prototype=y.prototype,d.prototype=new a,a.prototype=null),d}}),Object.assign=function(t,e){for(var n,r,o=1;o<arguments.length;++o){r=arguments[o];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Object.defineProperties=function(t,e){for(var n in e)Object.defineProperty(t,n,e[n]);return t},function(){function t(t){return null==t||"object"!=typeof t&&"function"!=typeof t}Object.create=function(e,n){if(null!==e&&t(e))throw new TypeError("Object prototype may only be an Object or null");var r=new Function("e","function Object() {}Object.prototype=e;return new Object")(e);return r.constructor.prototype=e,1 in arguments&&Object.defineProperties(r,n),r}}(),Object.getOwnPropertyNames=function(t){var e,n=[],r=["length","name","arguments","caller","prototype","observe","unobserve"];if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);for(var o=0,i=r.length;o<i;o++)r[o]in t&&n.push(r[o]);return n},Object.getPrototypeOf=function(t){if(t!==Object(t))throw new TypeError("Object.getPrototypeOf called on non-object");return t.constructor?t.constructor.prototype:null},Object.keys=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(o){if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var i,a,c=[];for(i in o)t.call(o,i)&&c.push(i);if(e)for(a=0;a<r;a++)t.call(o,n[a])&&c.push(n[a]);return c}}(),String.prototype.includes=function(t,e){if("object"==typeof t&&t instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==this.indexOf(t,e)},String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")},function(t,e){t.XMLHttpRequest=function(){var t=this,n=t._request=e?new e:new ActiveXObject("MSXML2.XMLHTTP.3.0");n.onreadystatechange=function(){t.readyState=n.readyState;var e=4===t.readyState;t.response=t.responseText=e?n.responseText:null,t.status=e?n.status:null,t.statusText=e?n.statusText:null,t.dispatchEvent(new Event("readystatechange")),e&&t.dispatchEvent(new Event("load"))},"onerror"in n&&(n.onerror=function(){t.dispatchEvent(new Event("error"))})},t.XMLHttpRequest.UNSENT=0,t.XMLHttpRequest.OPENED=1,t.XMLHttpRequest.HEADERS_RECEIVED=2,t.XMLHttpRequest.LOADING=3,t.XMLHttpRequest.DONE=4;var n=t.XMLHttpRequest.prototype;n.addEventListener=t.addEventListener,n.removeEventListener=t.removeEventListener,n.dispatchEvent=t.dispatchEvent,n.abort=function(){return this._request()},n.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders()},n.getResponseHeader=function(t){return this._request.getResponseHeader(t)},n.open=function(t,e){this._request.open(t,e,arguments[2],arguments[3],arguments[4])},n.overrideMimeType=function(t){this._request.overrideMimeType(t)},n.send=function(){this._request.send(0 in arguments?arguments[0]:null)},n.setRequestHeader=function(t,e){this._request.setRequestHeader(t,e)}}(this,this.XMLHttpRequest),function(){function t(t){this.message=t}var e="undefined"!=typeof exports?exports:"undefined"!=typeof self?self:$.global,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";(t.prototype=new Error).name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var r,o,i=String(e),a=0,c=n,u="";i.charAt(0|a)||(c="=",a%1);u+=c.charAt(63&r>>8-a%1*8)){if((o=i.charCodeAt(a+=.75))>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|o}return u}),e.atob||(e.atob=function(e){var r=String(e).replace(/[=]+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,i,a=0,c=0,u="";i=r.charAt(c++);~i&&(o=a%4?64*o+i:i,a++%4)?u+=String.fromCharCode(255&o>>(-2*a&6)):0)i=n.indexOf(i);return u})}(),function(t){var e=Date.now();t.performance||(t.performance={}),t.performance.now=function(){return Date.now()-e}}(this),function(t){var e;if("mozRequestAnimationFrame"in t?e="moz":"webkitRequestAnimationFrame"in t&&(e="webkit"),e)t.requestAnimationFrame=function(n){return t[e+"RequestAnimationFrame"](function(){n(performance.now())})},t.cancelAnimationFrame=t[e+"CancelAnimationFrame"];else{var n=Date.now();t.requestAnimationFrame=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");var e=Date.now(),r=16+n-e;return r<0&&(r=0),n=e,setTimeout(function(){n=Date.now(),t(performance.now())},r)},t.cancelAnimationFrame=function(t){clearTimeout(t)}}}(this),DOMImplementation.prototype.createDocument||function(){"use strict";var t,e,n=["MSXML6.DOMDocument","MSXML5.DOMDocument","MSXML4.DOMDocument","MSXML3.DOMDocument","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DomDocument","Microsoft.XmlDom"],r=n.length;for(t=0;t<r;t++)try{new ActiveXObject(n[t]),e=n[t];break}catch(o){}DOMImplementation.prototype.createDocument=function(t,n,r){if(r)throw"This is not a complete shim for DOMImplementation.prototype.createDocument.";if(!e)throw"Could not create a DOM document object";var o,i="",a=new ActiveXObject(e);return n&&((o=n.indexOf(":"))>-1?i=" xmlns:"+n.slice(0,o)+'="'+t+'"':t&&(i=' xmlns="'+t+'"'),a.loadXML("<"+n+i+"/>")),a}}(),function(t,e){function n(t,e){var n=t.createElement("p"),r=t.getElementsByTagName("head")[0]||t.documentElement;return n.innerHTML="x<style>"+e+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var t=d.elements;return"string"==typeof t?t.split(" "):t}function o(t){var e=y[t[h]];return e||(e={},m++,t[h]=m,y[m]=e),e}function i(t,n,r){if(n||(n=e),s)return n.createElement(t);r||(r=o(n));var i;return!(i=r.cache[t]?r.cache[t].cloneNode():f.test(t)?(r.cache[t]=r.createElem(t)).cloneNode():r.createElem(t)).canHaveChildren||p.test(t)||i.tagUrn?i:r.frag.appendChild(i)}function a(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(n){return d.shivMethods?i(n,t,e):e.createElem(n)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(d,e.frag)}function c(t){t||(t=e);var r=o(t);return!d.shivCSS||u||r.hasCSS||(r.hasCSS=!!n(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),s||a(t,r),t}var u,s,l=t.html5||{},p=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",m=0,y={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",u="hidden"in t,s=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return"undefined"==typeof t.cloneNode||"undefined"==typeof t.createDocumentFragment||"undefined"==typeof t.createElement}()}catch(n){u=!0,s=!0}}();var d={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3-pre",shivCSS:!1!==l.shivCSS,supportsUnknownElements:s,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:c,createElement:i,createDocumentFragment:function(t,n){if(t||(t=e),s)return t.createDocumentFragment();for(var i=(n=n||o(t)).frag.cloneNode(),a=0,c=r(),u=c.length;u>a;a++)i.createElement(c[a]);return i},addElements:function(t,e){var n=d.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof t&&(t=t.join(" ")),d.elements=n+" "+t,c(e)}};t.html5=d,c(e),"object"==typeof module&&module.exports&&(module.exports=d)}("undefined"!=typeof window?window:this,document)}).call("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}); |