diff --git a/www/js/zui/min.js b/www/js/zui/min.js index 2841f8b54d..d7b4b22def 100644 --- a/www/js/zui/min.js +++ b/www/js/zui/min.js @@ -8,5 +8,5 @@ /* Some code copy from Bootstrap v3.0.0 by @fat and @mdo. (Copyright 2013 Twitter, Inc. Licensed under http://www.apache.org/licenses/)*/ !function(t,e){"use strict";if("undefined"==typeof t)throw new Error("ZUI requires jQuery");t.zui||(t.zui=function(e){t.isPlainObject(e)&&t.extend(t.zui,e)});var o=0;t.zui({uuid:function(){return 1e3*(new Date).getTime()+o++%1e3},callEvent:function(e,o,i){if(t.isFunction(e)){void 0!==i&&(e=t.proxy(e,i));var n=e(o);return o&&(o.result=n),!(void 0!==n&&!n)}return 1},clientLang:function(){var o,i=e.config;if("undefined"!=typeof i&&i.clientLang)o=i.clientLang;else{var n=t("html").attr("lang");o=n?n:navigator.userLanguage||navigator.userLanguage||"zh_cn"}return o.replace("-","_").toLowerCase()}}),t.fn.callEvent=function(e,o,i){var n=t(this),a=e.indexOf(".zui."),r=e;0>a&&i&&i.name?e+="."+i.name:r=e.substring(0,a);var s=t.Event(e,o);if(void 0===i&&a>0&&(i=n.data(e.substring(a+1))),i&&i.options){var l=i.options[r];t.isFunction(l)&&t.zui.callEvent(i.options[r],s,i)}return s}}(jQuery,window),function(){"use strict";String.prototype.format||(String.prototype.format=function(t){var e=this;if(arguments.length>0){var o;if(1==arguments.length&&"object"==typeof t)for(var i in t)void 0!==t[i]&&(o=new RegExp("({"+i+"})","g"),e=e.replace(o,t[i]));else for(var n=0;n=e&&o>t}),Date.prototype.isSameYear||(Date.prototype.isSameYear=function(t){return this.getFullYear()===t.getFullYear()})}(),function(t,e){"use strict";var o="localStorage",i=t[o],n=(t.store,"page_"+t.location.pathname+t.location.search),a=function(){this.slience=!0,this.enable=o in t&&t[o]&&t[o].setItem,this.storage=i,this.page=this.get(n,{})};a.prototype.pageSave=function(){if(e.isEmptyObject(this.page))this.remove(n);else{var t,o=[];for(t in this.page){var i=this.page[t];null===i&&o.push(t)}for(t=o.length-1;t>=0;t--)delete this.page[o[t]];this.set(n,this.page)}},a.prototype.pageRemove=function(t){"undefined"!=typeof this.page[t]&&(this.page[t]=null,this.pageSave())},a.prototype.pageClear=function(){this.page={},this.pageSave()},a.prototype.pageGet=function(t,e){var o=this.page[t];return void 0===e||null!==o&&void 0!==o?o:e},a.prototype.pageSet=function(t,o){e.isPlainObject(t)?e.extend(!0,this.page,t):this.page[this.serialize(t)]=o,this.pageSave()},a.prototype.check=function(){if(!this.enable&&!this.slience)throw new Error("Browser not support localStorage or enable status been set true.");return this.enable},a.prototype.length=function(){return this.check()?i.getLength?i.getLength():i.length:0},a.prototype.removeItem=function(t){return i.removeItem(t),this},a.prototype.remove=function(t){return this.removeItem(t)},a.prototype.getItem=function(t){return i.getItem(t)},a.prototype.get=function(t,e){var o=this.deserialize(this.getItem(t));return"undefined"!=typeof o&&null!==o||"undefined"==typeof e?o:e},a.prototype.key=function(t){return i.key(t)},a.prototype.setItem=function(t,e){return i.setItem(t,e),this},a.prototype.set=function(t,e){return void 0===e?this.remove(t):(this.setItem(t,this.serialize(e)),this)},a.prototype.clear=function(){return i.clear(),this},a.prototype.forEach=function(t){for(var e=i.length-1;e>=0;e--){var o=i.key(e);t(o,this.get(o))}return this},a.prototype.getAll=function(){var t={};return this.forEach(function(e,o){t[e]=o}),t},a.prototype.serialize=function(t){return"string"==typeof t?t:JSON.stringify(t)},a.prototype.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},e.zui({store:new a})}(window,jQuery),function(t,e,o){"use strict";function i(t){if(t=t.toLowerCase(),t&&p.test(t)){var e;if(4===t.length){var o="#";for(e=1;4>e;e+=1)o+=t.slice(e,e+1).concat(t.slice(e,e+1));t=o}var i=[];for(e=1;7>e;e+=2)i.push(parseInt("0x"+t.slice(e,e+2)));return{r:i[0],g:i[1],b:i[2],a:1}}throw new Error("function hexToRgb: Wrong hex string! (hex: "+t+")")}function n(e){return"string"==typeof e&&("transparent"===e.toLowerCase()||d[e.toLowerCase()]||p.test(t.trim(e.toLowerCase())))}function a(t){function e(t){return t=0>t?t+1:t>1?t-1:t,1>6*t?p+(r-p)*t*6:1>2*t?r:2>3*t?p+(r-p)*(2/3-t)*6:p}var o=t.h,i=t.s,n=t.l,a=t.a;o=l(o)%360/360,i=s(l(i)),n=s(l(n)),a=s(l(a));var r=.5>=n?n*(i+1):n+i-n*i,p=2*n-r,d={r:255*e(o+1/3),g:255*e(o),b:255*e(o-1/3),a:a};return d}function r(t,o,i){return void 0===i&&(i=0),void 0===o&&(o=255),e.min(e.max(t,i),o)}function s(t,e){return r(t,e)}function l(t){return"number"==typeof t?t:parseFloat(t)}var p=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,d={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},c=function(t,e,o,n){if(this.r=0,this.g=0,this.b=0,this.a=1,void 0!==n&&(this.a=s(l(n),1)),void 0!==t&&void 0!==e&&void 0!==o)this.r=parseInt(s(l(t),255)),this.g=parseInt(s(l(e),255)),this.b=parseInt(s(l(o),255));else if(void 0!==t){var r=typeof t;if("string"==r)t=t.toLowerCase(),"transparent"===t?this.a=0:d[t]?this.rgb(i(d[t])):this.rgb(i(t));else if("number"==r&&void 0===e)this.r=parseInt(s(t,255)),this.g=this.r,this.b=this.r;else if("object"==r&&t.hasOwnProperty("r"))this.r=parseInt(s(l(t.r),255)),t.hasOwnProperty("g")&&(this.g=parseInt(s(l(t.g),255))),t.hasOwnProperty("b")&&(this.b=parseInt(s(l(t.b),255))),t.hasOwnProperty("a")&&(this.a=s(l(t.a),1));else if("object"==r&&t.hasOwnProperty("h")){var p={h:s(l(t.h),360),s:1,l:1,a:1};t.hasOwnProperty("s")&&(p.s=s(l(t.s),1)),t.hasOwnProperty("l")&&(p.l=s(l(t.l),1)),t.hasOwnProperty("a")&&(p.a=s(l(t.a),1)),this.rgb(a(p))}}};c.prototype.rgb=function(t){if(void 0!==t){if("object"==typeof t)t.hasOwnProperty("r")&&(this.r=parseInt(s(l(t.r),255))),t.hasOwnProperty("g")&&(this.g=parseInt(s(l(t.g),255))),t.hasOwnProperty("b")&&(this.b=parseInt(s(l(t.b),255))),t.hasOwnProperty("a")&&(this.a=s(l(t.a),1));else{var e=parseInt(l(t));this.r=e,this.g=e,this.b=e}return this}return{r:this.r,g:this.g,b:this.b,a:this.a}},c.prototype.hue=function(t){var e=this.toHsl();return void 0===t?e.h:(e.h=s(l(t),360),this.rgb(a(e)),this)},c.prototype.darken=function(t){var e=this.toHsl();return e.l-=t/100,e.l=s(e.l,1),this.rgb(a(e)),this},c.prototype.clone=function(){return new c(this.r,this.g,this.b,this.a)},c.prototype.lighten=function(t){return this.darken(-t)},c.prototype.fade=function(t){return this.a=s(t/100,1),this},c.prototype.spin=function(t){var e=this.toHsl(),o=(e.h+t)%360;return e.h=0>o?360+o:o,this.rgb(a(e)),this},c.prototype.toHsl=function(){var t,o,i=this.r/255,n=this.g/255,a=this.b/255,r=this.a,s=e.max(i,n,a),l=e.min(i,n,a),p=(s+l)/2,d=s-l;if(s===l)t=o=0;else{switch(o=p>.5?d/(2-s-l):d/(s+l),s){case i:t=(n-a)/d+(a>n?6:0);break;case n:t=(a-i)/d+2;break;case a:t=(i-n)/d+4}t/=6}return{h:360*t,s:o,l:p,a:r}},c.prototype.luma=function(){var t=this.r/255,o=this.g/255,i=this.b/255;return t=.03928>=t?t/12.92:e.pow((t+.055)/1.055,2.4),o=.03928>=o?o/12.92:e.pow((o+.055)/1.055,2.4),i=.03928>=i?i/12.92:e.pow((i+.055)/1.055,2.4),.2126*t+.7152*o+.0722*i},c.prototype.saturate=function(t){var e=this.toHsl();return e.s+=t/100,e.s=s(e.s),this.rgb(a(e)),this},c.prototype.desaturate=function(t){return this.saturate(-t)},c.prototype.contrast=function(t,e,o){if(e="undefined"==typeof e?new c(255,255,255,1):new c(e),t="undefined"==typeof t?new c(0,0,0,1):new c(t),this.a<.5)return t;if(o=void 0===o?.43:l(o),t.luma()>e.luma()){var i=e;e=t,t=i}return this.luma()0?this.a<1?"rgba("+this.r+","+this.g+","+this.b+","+this.a+")":this.hexStr():"transparent"},c.isColor=n,t.zui({Color:c})}(jQuery,Math,window),function(t){"use strict";var e=0,o=["primary","red","yellow","green","blue","purple","brown","dark"],i={primary:"#3280fc",secondary:"#145ccd",pale:"#ebf2f9",fore:"#353535",back:"#fff",grayDarker:"#222222",grayDark:"#333333",gray:"#808080",grayLight:"#dddddd",grayLighter:"#e5e5e5",grayPale:"#f1f1f1",white:"#fff",black:"#000",red:"#ea644a",yellow:"#f1a325",green:"#38b03f",blue:"#03b8cf",purple:"#8666b8",brown:"#bd7b46",greenPale:"#ddf4df",yellowPale:"#fff0d5",redPale:"#ffe5e0",bluePale:"#ddf3f5",brownPale:"#f7ebe1",purplePale:"#f5eeff",light:"#fff",dark:"#353535",success:"#38b03f",warning:"#f1a325",danger:"#ea644a",info:"#03b8cf",important:"#bd7b46",special:"#8666b8",successPale:"#ddf4df",warningPale:"#fff0d5",dangerPale:"#ffe5e0",infoPale:"#ddf3f5",importantPale:"#f7ebe1",specialPale:"#f5eeff"};i.get=function(n){return("undefined"==typeof n||"random"===n)&&(n=o[e++%o.length]),new t.zui.Color(i[n]?i[n]:n)},t.zui({colorset:i}),t.zui.Color&&t.extend(t.zui.Color,i)}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var o in e)if(void 0!==t.style[o])return{end:e[o]};return!1}t.fn.emulateTransitionEnd=function(e){var o=!1,i=this;t(this).one("bsTransitionEnd",function(){o=!0});var n=function(){o||t(i).trigger(t.support.transition.end)};return setTimeout(n,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";var e=function(o,i){this.$element=t(o),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var o="disabled",i=this.$element,n=i.is("input")?"val":"html",a=i.data();e+="Text",a.resetText||i.data("resetText",i[n]()),i[n](a[e]||this.options[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,i.addClass(o).attr(o,o)):this.isLoading&&(this.isLoading=!1,i.removeClass(o).removeAttr(o))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var o=this.$element.find("input");"radio"==o.prop("type")&&(o.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&o.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=function(o){return this.each(function(){var i=t(this),n=i.data("zui.button"),a="object"==typeof o&&o;n||i.data("zui.button",n=new e(this,a)),"toggle"==o?n.toggle():o&&n.setState(o)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.zui.button.data-api","[data-toggle^=button]",function(e){var o=t(e.target);o.hasClass("btn")||(o=o.closest(".btn")),o.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e={zh_cn:'您的浏览器版本过低,无法体验所有功能,建议升级或者更换浏览器。 了解更多...',zh_tw:'您的瀏覽器版本過低,無法體驗所有功能,建議升級或者更换瀏覽器。了解更多...',en:'Your browser is too old, it has been unable to experience the colorful internet. We strongly recommend that you upgrade a better one. Learn more...'},o=function(){var t=this.isIE()||this.isIE10()||!1;if(t)for(var e=10;e>5;e--)if(this.isIE(e)){t=e;break}this.ie=t,this.cssHelper()};o.prototype.cssHelper=function(){var e=this.ie,o=t("html");o.toggleClass("ie",e).removeClass("ie-6 ie-7 ie-8 ie-9 ie-10"),e&&o.addClass("ie-"+e).toggleClass("gt-ie-7 gte-ie-8 support-ie",e>=8).toggleClass("lte-ie-7 lt-ie-8 outdated-ie",8>e).toggleClass("gt-ie-8 gte-ie-9",e>=9).toggleClass("lte-ie-8 lt-ie-9",9>e).toggleClass("gt-ie-9 gte-ie-10",e>=10).toggleClass("lte-ie-9 lt-ie-10",10>e)},o.prototype.tip=function(o){var i=t("#browseHappyTip");i.length||(i=t('
'),i.prependTo("body")),i.find(".content").html(o||this.browseHappyTip||e[t.zui.clientLang()||"zh_cn"])},o.prototype.isIE=function(t){if(10===t)return this.isIE10();var e=document.createElement("b");return e.innerHTML="",1===e.getElementsByTagName("i").length},o.prototype.isIE10=function(){return!1},t.zui({browser:new o}),t(function(){t("body").hasClass("disabled-browser-tip")||t.zui.browser.ie&&t.zui.browser.ie<8&&t.zui.browser.tip()})}(jQuery),+function(t){"use strict";var e="zui.collapse",o=function(e,i){this.$element=t(e),this.options=t.extend({},o.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var o=t.Event("show."+e);if(this.$element.trigger(o),!o.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .panel > .in");if(i&&i.length){var n=i.data(e);if(n&&n.transitioning)return;i.collapse("hide"),n||i.data(e,null)}var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("in")[a]("auto"),this.transitioning=0,this.$element.trigger("shown."+e)};if(!t.support.transition)return r.call(this);var s=t.camelCase(["scroll",a].join("-"));this.$element.one(t.support.transition.end,t.proxy(r,this)).emulateTransitionEnd(350)[a](this.$element[0][s])}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var o=t.Event("hide."+e);if(this.$element.trigger(o),!o.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden."+e).removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one(t.support.transition.end,t.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var n=t(this),a=n.data(e),r=t.extend({},o.DEFAULTS,n.data(),"object"==typeof i&&i);a||n.data(e,a=new o(this,r)),"string"==typeof i&&a[i]()})},t.fn.collapse.Constructor=o,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click."+e+".data-api","[data-toggle=collapse]",function(o){var i,n=t(this),a=n.attr("data-target")||o.preventDefault()||(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),r=t(a),s=r.data(e),l=s?"toggle":n.data(),p=n.attr("data-parent"),d=p&&t(p);s&&s.transitioning||(d&&d.find('[data-toggle=collapse][data-parent="'+p+'"]').not(n).addClass("collapsed"),n[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),r.collapse(l)})}(window.jQuery),+function(t){"use strict";function e(){t(n).remove(),t(a).each(function(e){var n=o(t(this));n.hasClass("open")&&(n.trigger(e=t.Event("hide."+i)),e.isDefaultPrevented()||n.removeClass("open").trigger("hidden."+i))})}function o(e){var o=e.attr("data-target");o||(o=e.attr("href"),o=o&&/#/.test(o)&&o.replace(/.*(?=#[^\s]*$)/,""));var i=o&&t(o);return i&&i.length?i:e.parent()}var i="zui.dropdown",n=".dropdown-backdrop",a="[data-toggle=dropdown]",r=function(e){t(e).on("click."+i,this.toggle)};r.prototype.toggle=function(n){var a=t(this);if(!a.is(".disabled, :disabled")){var r=o(a),s=r.hasClass("open");if(e(),!s){if("ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t('