mirror of
https://github.com/TotalFreedomMC/WorldDownloadTool.git
synced 2024-12-22 23:45:04 +00:00
6 lines
177 KiB
JavaScript
6 lines
177 KiB
JavaScript
|
/*!
|
||
|
* Materialize v1.0.0-rc.1 (http://materializecss.com)
|
||
|
* Copyright 2014-2017 Materialize
|
||
|
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
|
||
|
*/
|
||
|
function _possibleConstructorReturn(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 _inherits(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)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var _get=function t(e,i,n){null===e&&(e=Function.prototype);var s=Object.getOwnPropertyDescriptor(e,i);if(void 0===s){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,i,n)}if("value"in s)return s.value;var a=s.get;if(void 0!==a)return a.call(n)},_createClass=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();!function(t){window.cash=t()}(function(){function t(t,e){return e=e||x,H.test(t)?e.getElementsByClassName(t.slice(1)):W.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t)}function e(t){if(!O){var e=(O=x.implementation.createHTMLDocument(null)).createElement("base");e.href=x.location.href,O.head.appendChild(e)}return O.body.innerHTML=t,O.body.childNodes}function i(t){"loading"!==x.readyState?t():x.addEventListener("DOMContentLoaded",t)}function n(n,s){if(!n)return this;if(n.cash&&n!==L)return n;var o,a=n,r=0;if(A(n))a=R.test(n)?x.getElementById(n.slice(1)):P.test(n)?e(n):t(n,s);else if(I(n))return i(n),this;if(!a)return this;if(a.nodeType||a===L)this[0]=a,this.length=1;else for(o=this.length=a.length;r<o;r++)this[r]=a[r];return this}function s(t,e){return new n(t,e)}function o(t,e){for(var i=t.length,n=0;n<i&&!1!==e.call(t[n],t[n],n,t);n++);}function a(t,e){var i=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!i&&i.call(t,e)}function r(t){return A(t)?a:t.cash?function(e){return t.is(e)}:function(t,e){return t===e}}function l(t){return s($.call(t).filter(function(t,e,i){return i.indexOf(t)===e}))}function h(t){return t[F]=t[F]||{}}function d(t,e,i){return h(t)[e]=i}function u(t,e){var i=h(t);return void 0===i[e]&&(i[e]=t.dataset?t.dataset[e]:s(t).attr("data-"+e)),i[e]}function c(t,e){var i=h(t);i?delete i[e]:t.dataset?delete t.dataset[e]:s(t).removeAttr("data-"+name)}function p(t){return A(t)&&t.match(q)}function v(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function f(t,e,i){t.classList?t.classList.add(e):i.indexOf(" "+e+" ")&&(t.className+=" "+e)}function m(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}function g(t,e){return parseInt(L.getComputedStyle(t[0],null)[e],10)||0}function _(t,e,i){var n=u(t,"_cashEvents")||d(t,"_cashEvents",{});n[e]=n[e]||[],n[e].push(i),t.addEventListener(e,i)}function y(t,e,i){var n,s=u(t,"_cashEvents"),a=s&&s[e];a&&(i?(t.removeEventListener(e,i),(n=a.indexOf(i))>=0&&a.splice(n,1)):(o(a,function(i){t.removeEventListener(e,i)}),a=[]))}function k(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function b(t){var e=[];return o(t.options,function(t){t.selected&&e.push(t.value)}),e.length?e:null}function w(t){var e=t.selectedIndex;return e>=0?t.options[e].value:null}function C(t){var e=t.type;if(!e)return null;switch(e.toLowerCase()){case"select-one":return w(t);case"select-multiple":return b(t);case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function E(t,e,i){if(i){var n=t.childNodes[0];t.insertBefore(e,n)}else t.appendChild(e)}function M(t,e,i){var n=A(e);n||!e.length?o(t,n?function(t){return t.insertAdjacentHTML(i?"afterbegin":"beforeend",e)}:function(t,n){return E(t,0===n?e:e.cloneNode(!0),i)}):o(e,function(e){return M(t,e,i)})}var O,x=document,L=window
|