"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(e){"use strict";if("Element"in e){var n="classList",t="prototype",e=e.Element[t],i=Object,r=String[t].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[t].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},c=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},a=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,s=n.length;i<s;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=a[t]=[],u=function(){return new a(this)};if(o[t]=Error[t],l.item=function(t){return this[t]||null},l.contains=function(t){return-1!==c(this,t+="")},l.add=function(){for(var t,e=arguments,n=0,i=e.length,s=!1;-1===c(this,t=e[n]+"")&&(this.push(t),s=!0),++n<i;);s&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,i=0,s=n.length,r=!1;do{for(e=c(this,t=n[i]+"");-1!==e;)this.splice(e,1),r=!0,e=c(this,t)}while(++i<s);r&&this._updateClassName()},l.toggle=function(t,e){var n=this.contains(t+=""),i=n?!0!==e&&"remove":!1!==e&&"add";return i&&this[i](t),!0===e||!1===e?e:!n},l.toString=function(){return this.join(" ")},i.defineProperty){l={get:u,enumerable:!0,configurable:!0};try{i.defineProperty(e,n,l)}catch(t){void 0!==t.number&&-2146823252!==t.number||(l.enumerable=!1,i.defineProperty(e,n,l))}}else i[t].__defineGetter__&&e.__defineGetter__(n,u)}}(self),function(){"use strict";var t,n,e=document.createElement("_");e.classList.add("c1","c2"),e.classList.contains("c2")||((t=function(t){var i=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){for(var e=arguments.length,n=0;n<e;n++)i.call(this,arguments[n])}})("add"),t("remove")),e.classList.toggle("c3",!1),e.classList.contains("c3")&&(n=DOMTokenList.prototype.toggle,DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)})}());