You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
13 KiB
JavaScript

(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t,i){for(var n=0;n<i.length;n++){var a=i[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,(void 0,r=function(t,i){if("object"!==e(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,"string");if("object"!==e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(a.key),"symbol"===e(r)?r:String(r)),a)}var r}var i={tileDeferred:0,size:"medium",cover:"",coverPosition:"center",effect:"",effectInterval:3e3,effectDuration:500,target:null,canTransform:!0,onClick:function(){},onTileCreate:function(){}};!function(e,t){var i="ui.tile".split(".");"isekai"in window||(window.isekai={});for(var n=window.isekai,a=0;a<i.length-1;a++){var r=i[a];r in n||(n[r]={}),n=n[r]}n[i[a]]=t}(0,function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,a;return n=e,a=[{key:"setup",value:function(e){i=jQuery.extend({},i,e)}},{key:"init",value:function(){}}],null&&t(n.prototype,null),a&&t(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}()),function(t){function n(e,t){return Math.floor(Math.random()*(t-e+1)+e)}var a={isValue:function(e){return null!=e&&""!==e},isUrl:function(e){return/^(\.\/|\.\.\/|ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@\-\/]))?/.test(e)},isTag:function(e){return/^<\/?[\w\s="/.':;#-\/\?]+>/gi.test(e)},isType:function(t,i){if(!a.isValue(t))return!1;if(e(t)===i)return t;if(a.isTag(t)||a.isUrl(t))return!1;if(e(window[t])===i)return window[t];if("string"==typeof t&&-1===t.indexOf("."))return!1;if("string"==typeof t&&-1!==t.indexOf("/"))return!1;if("string"==typeof t&&-1!==t.indexOf(" "))return!1;if("string"==typeof t&&-1!==t.indexOf("("))return!1;if("string"==typeof t&&-1!==t.indexOf("["))return!1;if("number"==typeof t&&"number"!==i.toLowerCase())return!1;var n,r=t.split("."),f=window;for(n=0;n<r.length;n++)f=f[r[n]];return e(f)===i&&f},isFunc:function(e){return a.isType(e,"function")},pageXY:function(e){return{x:e.changedTouches?e.changedTouches[0].pageX:e.pageX,y:e.changedTouches?e.changedTouches[0].pageY:e.pageY}},isRightMouse:function(e){return"which"in e?3===e.which:"button"in e?2===e.button:void 0},func:function(e){return new Function("a",e)},exec:function(e,t,i){var n;if(null==e)return!1;var r=a.isFunc(e);!1===r&&(r=a.func(e));try{n=r.apply(i,t)}catch(e){throw n=null,e}return n}},r={duration:100,func:"linear",switch:function(e,t){e.hide(),t.css({top:0,left:0}).show()},slideUp:function(e,t,i,n){var a=e.parent().outerHeight(!0);void 0===i&&(i=this.duration),void 0===n&&(n=this.func),e.css("z-index",1).animate({draw:{top:-a,opacity:0},dur:i,ease:n}),t.css({top:a,left:0,zIndex:2}).animate({draw:{top:0,opacity:1},dur:i,ease:n})},slideDown:function(e,t,i,n){var a=e.parent().outerHeight(!0);void 0===i&&(i=this.duration),void 0===n&&(n=this.func),e.css("z-index",1).animate({draw:{top:a,opacity:0},dur:i,ease:n}),t.css({left:0,top:-a,zIndex:2}).animate({draw:{top:0,opacity:1},dur:i,ease:n})},slideLeft:function(e,t,i,n){var a=e.parent().outerWidth(!0);void 0===i&&(i=this.duration),void 0===n&&(n=this.func),e.css("z-index",1).animate({draw:{left:-a,opacity:0},dur:i,ease:n}),t.css({left:a,zIndex:2}).animate({draw:{left:0,opacity:1},dur:i,ease:n})},slideRight:function(e,t,i,n){var a=e.parent().outerWidth(!0);void 0===i&&(i=this.duration),void 0===n&&(n=this.func),e.css("z-index",1).animate({draw:{left:a,opacity:0},dur:i,ease:n}),t.css({left:-a,zIndex:2}).animate({draw:{left:0,opacity:1},dur:i,ease:n})},fade:function(e,t,i){void 0===i&&(i=this.duration),e.animate({draw:{opacity:0},dur:i}),t.css({top:0,left:0,opacity:0}).animate({draw:{opacity:1},dur:i})}},f={PALETTES:{ALL:"colorList",METRO:"colorListMetro",STANDARD:"colorListStandard"},colorListMetro:{lim