PageSourceSearch

https://www.acsi.org/ResourcePackages/ACSI/assets/scripts/polyfills.min.js

js acsi.org collected 2026-09-24 09:27:06 UTC 8,511 bytes, 1 lines download raw bytes

1"document"in self&&!("classList"in document.createElement("_"))&&function(view){"use strict";if("Element"in view){var elemCtrProto=view.Element.prototype,objCtr=Object,strTrim=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},arrIndexOf=Array.prototype.indexOf||function(item){for(var i=0,len=this.length;i<len;i++)if(i in this&&this[i]===item)return i;return-1},DOMEx=function(type,message){this.name=type,this.code=DOMException[type],this.message=message},checkTokenAndGetIndex=function(classList,token){if(""===token)throw new DOMEx("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(token))throw new DOMEx("INVALID_CHARACTER_ERR","String contains an invalid character");return arrIndexOf.call(classList,token)},ClassList=function(elem){for(var trimmedClasses=strTrim.call(elem.getAttribute("class")||""),classes=trimmedClasses?trimmedClasses.split(/\s+/):[],i=0,len=classes.length;i<len;i++)this.push(classes[i]);this._updateClassName=function(){elem.setAttribute("class",this.toString())}},classListProto=ClassList.prototype=[],classListGetter=function(){return new ClassList(this)};if(DOMEx.prototype=Error.prototype,classListProto.item=function(i){return this[i]||null},classListProto.contains=function(token){return-1!==checkTokenAndGetIndex(this,token+="")},classListProto.add=function(){for(var token,tokens=arguments,i=0,l=tokens.length,updated=!1;-1===checkTokenAndGetIndex(this,token=tokens[i]+"")&&(this.push(token),updated=!0),++i<l;);updated&&this._updateClassName()},classListProto.remove=function(){var tokens=arguments,i=0,l=tokens.length,updated=!1;do{var index=checkTokenAndGetIndex(this,tokens[i]+"");-1!==index&&(this.splice(index,1),updated=!0)}while(++i<l);updated&&this._updateClassName()},classListProto.toggle=function(token,force){token+="";var result=this.contains(token),method=result?!0!==force&&"remove":!1!==force&&"add";return method&&this[method](token),!result},classListProto.toString=function(){return this.join(" ")},objCtr.defineProperty){var classListPropDesc={get:classListGetter,enumerable:!0,configurable:!0};try{objCtr.defineProperty(elemCtrProto,"classList",classListPropDesc)}catch(ex){-2146823252===ex.number&&(classListPropDesc.enumerable=!1,objCtr.defineProperty(elemCtrProto,"classList",classListPropDesc))}}else objCtr.prototype.__defineGetter__&&elemCtrProto.__defineGetter__("classList",classListGetter)}}(self),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(s){for(var matches=(this.document||this.ownerDocument).querySelectorAll(s),i=matches.length;0<=--i&&matches.item(i)!==this;);return-1<i}),function(){var eventListeners,addEventListener,removeEventListener;Event.prototype.preventDefault||(Event.prototype.preventDefault=function(){this.returnValue=!1}),Event.prototype.stopPropagation||(Event.prototype.stopPropagation=function(){this.cancelBubble=!0}),Element.prototype.addEventListener||(eventListeners=[],addEventListener=function(type,listener){function wrapper(e){e.target=e.srcElement,e.currentTarget=self,listener.handleEvent?listener.handleEvent(e):listener.call(self,e)}var wrapper2,e,self=this;"DOMContentLoaded"==type?(wrapper2=function(e){"complete"==document.readyState&&wrapper(e)},document.attachEvent("onreadystatechange",wrapper2),eventListeners.push({object:this,type:type,listener:listener,wrapper:wrapper2}),"complete"==document.readyState&&((e=new Event).srcElement=window,wrapper2(e))):(this.attachEvent("on"+type,wrapper),eventListeners.push({object:this,type:type,listener:listener,wrapper:wrapper}))},removeEventListener=function(type,listener){for(var counter=0;counter<eventListeners.length;){var eventListener=eventListeners[counter];if(eventListener.object==this&&eventListener.type==type&&eventListener.listener==listener){"DOMContentLoaded"==type?this.detachEvent("onreadystatechange",eventListener.wrapper):this.detachEvent("on"+type,eventListener.wrapper);break}++counter}},Element.prototype.addEventListener=addEventListener,Element.prototype.removeEventListener=removeEventListener,HTMLDocument&&(HTMLDocument.prototype.addEventListener=addEventListener,HTMLDocument.prototype.removeEventListener=removeEventListener),Window&&(Window.prototype.addEventListener=addEventListener,Window.prototype.removeEventListener=removeEventListener))}(),document.getElementsByClassName||(document.getElementsByClassName=function(search){var elements,pattern,i,d=document,results=[];if(d.querySelectorAll)return d.querySelectorAll("."+search);if(d.evaluate)for(pattern=".//*[contains(concat(' ', @class, ' '), ' "+search+" ')]",elements=d.evaluate(pattern,d,null,0,null);i=elements.iterateNext();)results.push(i);else for(elements=d.getElementsByTagName("*"),pattern=new RegExp("(^|\\s)"+search+"(\\s|$)"),i=0;i<elements.length;i++)pattern.test(elements[i].className)&&results.push(elements[i]);return results},Element.prototype.getElementsByClassName=document.getElementsByClassName),Array.prototype.forEach||(Array.prototype.forEach=function(callback,thisArg){var T,k;if(null==this)throw new TypeError(" this is null or not defined");var kValue,O=Object(this),len=O.length>>>0;if("function"!=typeof callback)throw new TypeError(callback+" is not a function");for(1<arguments.length&&(T=thisArg),k=0;k<len;){k in O&&(kValue=O[k],callback.call(T,kValue,k,O)),k++}}),Array.prototype.filter||(Array.prototype.filter=function(fun){if(null==this)throw new TypeError;var t=Object(this),len=t.length>>>0;if("function"!=typeof fun)throw new TypeError;for(var val,res=[],thisArg=2<=arguments.length?arguments[1]:void 0,i=0;i<len;i++){i in t&&(val=t[i],fun.call(thisArg,val,i,t)&&res.push(val))}return res}),Array.prototype.indexOf||(Array.prototype.indexOf=function(searchElement,fromIndex){
1if(null==this)throw new TypeError('"this" is null or not defined');var length=this.length>>>0;for(fromIndex=+fromIndex||0,Math.abs(fromIndex)===1/0&&(fromIndex=0),fromIndex<0&&(fromIndex+=length)<0&&(fromIndex=0);fromIndex<length;fromIndex++)if(this[fromIndex]===searchElement)return fromIndex;return-1}),Array.prototype.map||(Array.prototype.map=function(callback,thisArg){var T,A,k;if(null==this)throw new TypeError(" this is null or not defined");var kValue,mappedValue,O=Object(this),len=O.length>>>0;if("function"!=typeof callback)throw new TypeError(callback+" is not a function");for(1<arguments.length&&(T=thisArg),A=new Array(len),k=0;k<len;){k in O&&(kValue=O[k],mappedValue=callback.call(T,kValue,k,O),A[k]=mappedValue),k++}return A}),"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(callback){if(null==this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof callback)throw new TypeError(callback+" is not a function");var value,t=Object(this),len=t.length>>>0,k=0;if(2<=arguments.length)value=arguments[1];else{for(;k<len&&!k in t;)k++;if(len<=k)throw new TypeError("Reduce of empty array with no initial value");value=t[k++]}for(;k<len;k++)k in t&&(value=callback(value,t[k],k,t));return value}),function(){"use strict";var _slice=Array.prototype.slice;try{_slice.call(document.documentElement)}catch(e){Array.prototype.slice=function(begin,end){if(end=void 0!==end?end:this.length,"[object Array]"===Object.prototype.toString.call(this))return _slice.call(this,begin,end);var i,cloned=[],len=this.length,start=begin||0,size=(end<0?len+end:end||len)-(start=0<=start?start:len+start);if(0<size)if(cloned=new Array(size),this.charAt)for(i=0;i<size;i++)cloned[i]=this.charAt(start+i);else for(i=0;i<size;i++)cloned[i]=this[start+i];return cloned}}}(),void 0===document.createElement("div").firstElementChild&&(Object.defineProperty(Element.prototype,"firstElementChild",{get:function(){var el=this.firstChild;do{if(1===el.nodeType)return el;el=el.nextSibling}while(el);return null}}),Object.defineProperty(Element.prototype,"lastElementChild",{get:function(){var el=this.lastChild;do{if(1===el.nodeType)return el;el=el.previousSibling}while(el);return null}}),Object.defineProperty(Element.prototype,"nextElementSibling",{get:function(){for(var el=this.nextSibling;el;){if(1===el.nodeType)return el;el=el.nextSibling}return null}}),Object.defineProperty(Element.prototype,"previousElementSibling",{get:function(){for(var el=this.previousSibling;el;){if(1===el.nodeType)return el;el=el.previousSibling}return null}}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.