/*! Amaze UI v2.1.0 | by Amaze UI Team | (c) 2015 AllMobilize, Inc. | Licensed under MIT | 2015-01-13T02:01:01 UTC */ !function t(e,i,n){function o(a,r){if(!i[a]){if(!e[a]){var l="function"==typeof require&&require;if(!r&&l)return l(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[a]={exports:{}};e[a][0].call(u.exports,function(t){var i=e[a][1][t];return o(i?i:t)},u,u.exports,t,e,i,n)}return i[a].exports}for(var s="function"==typeof require&&require,a=0;a0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0||!1,n.support.mutationobserver=window.MutationObserver||window.WebKitMutationObserver||null,n.support.formValidation="function"==typeof document.createElement("form").checkValidity,n.utils={},n.utils.debounce=function(t,e,i){var n;return function(){var o=this,s=arguments,a=function(){n=null,i||t.apply(o,s)},r=i&&!n;clearTimeout(n),n=setTimeout(a,e),r&&t.apply(o,s)}},n.utils.isInView=function(t,e){var n=i(t),s=!(!n.width()&&!n.height())&&"none"!==n.css("display");if(!s)return!1;var a=o.scrollLeft(),r=o.scrollTop(),l=n.offset(),c=l.left,u=l.top;return e=i.extend({topOffset:0,leftOffset:0},e),u+n.height()>=r&&u-e.topOffset<=r+o.height()&&c+n.width()>=a&&c-e.leftOffset<=a+o.width()},n.utils.parseOptions=n.utils.options=function(t){if(i.isPlainObject(t))return t;var e=t?t.indexOf("{"):-1,n={};if(-1!=e)try{n=new Function("","var json = "+t.substr(e)+"; return JSON.parse(JSON.stringify(json));")()}catch(o){}return n},n.utils.generateGUID=function(t){var e=t+"-"||"am-";do e+=Math.random().toString(36).substring(2,7);while(document.getElementById(e));return e},i.fn.emulateTransitionEnd=function(t){var e=!1,o=this;i(this).one(n.support.transition.end,function(){e=!0});var s=function(){e||i(o).trigger(n.support.transition.end),o.transitionEndTimmer=void 0};return this.transitionEndTimmer=setTimeout(s,t),this},i.fn.redraw=function(){return i(this).each(function(){this.offsetHeight}),this},i.fn.transitionEnd=function(t){function e(n){t.call(this,n),i&&o.off(i,e)}var i=n.support.transition.end,o=this;return t&&i&&o.on(i,e),this},i.fn.removeClassRegEx=function(){return this.each(function(t){var e=i(this).attr("class");if(!e||!t)return!1;var n=[];e=e.split(" ");for(var o=0,s=e.length;s>o;o++)e[o].match(t)||n.push(e[o]);i(this).attr("class",n.join(" "))})},i.fn.alterClass=function(t,e){var n=this;if(-1===t.indexOf("*"))return n.removeClass(t),e?n.addClass(e):n;var o=new RegExp("\\s"+t.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return n.each(function(t,e){for(var n=" "+e.className+" ";o.test(n);)n=n.replace(o," ");e.className=i.trim(n)}),e?n.addClass(e):n},n.utils.rAF=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),n.utils.cancelAF=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(t){window.clearTimeout(t)}}(),n.utils.measureScrollbar=function(){if(document.body.clientWidth>=window.innerWidth)return 0;var t=i('
');i(document.body).append(t);var e=t[0].offsetWidth-t[0].clientWidth;return t.remove(),e},n.utils.imageLoader=function(t,e){function i(){e(t[0])}function n(){if(this.one("load",i),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}return t.attr("src")?void(t[0].complete||4===t[0].readyState?i():n.call(t)):void i()},n.template=function(t,e){var i=n.template;return i.cache[t]||(i.cache[t]=function(){var e=t,n=/^[\w\-]+$/.test(t)?i.get(t):(e="template(string)",t),o=1,s=("try { "+(i.variable?"var "+i.variable+" = this.stash;":"with (this.stash) { ")+"this.ret += '"+n.replace(/<%/g,"").replace(/%>/g,"").replace(/'(?![^\x11\x13]+?\x13)/g,"\\x27").replace(/^\s*|\s*$/g,"").replace(/\n/g,function(){return"';\nthis.line = "+ ++o+"; this.ret += '\\n"}).replace(/\x11-(.+?)\x13/g,"' + ($1) + '").replace(/\x11=(.+?)\x13/g,"' + this.escapeHTML($1) + '").replace(/\x11(.+?)\x13/g,"'; $1; this.ret += '")+"'; "+(i.variable?"":"}")+"return this.ret;} catch (e) { throw 'TemplateError: ' + e + ' (on "+e+"' + ' line ' + this.line + ')'; } //@ sourceURL="+e+"\n").replace(/this\.ret \+= '';/g,""),a=new Function(s),r={"&":"&","<":"<",">":">",'"':""","'":"'"},l=function(t){return(""+t).replace(/[&<>\'\"]/g,function(t){return r[t]})};return function(t){return a.call(i.context={escapeHTML:l,line:1,ret:"",stash:t})}}()),e?i.cache[t](e):i.cache[t]},n.template.cache={},n.template.get=function(t){if(t){var e=document.getElementById(t);return e&&e.innerHTML||""}},n.DOMWatchers=[],n.DOMReady=!1,n.ready=function(t){n.DOMWatchers.push(t),n.DOMReady&&(console.log("ready call"),t(document))},n.DOMObserve=function(t,e,o){var s=n.support.mutationobserver;s&&(e=i.isPlainObject(e)?e:{childList:!0,subtree:!0},o="function"==typeof o&&o||function(){},i(t).each(function(){var t=this,a=i(t);if(!a.data("am.observer"))try{var r=new s(n.utils.debounce(function(e,i){o.call(t,e,i),a.trigger("changed.dom.amui")},50));r.observe(t,e),a.data("am.observer",r)}catch(l){}}))},i.fn.DOMObserve=function(t,e){return this.each(function(){n.DOMObserve(this,t,e)})},n.support.touch&&(a.addClass("am-touch"),i(function(){var t=i.AMUI.FastClick;t&&t.attach(document.body)})),i(document).on("changed.dom.amui",function(t){var e=t.target;i.each(n.DOMWatchers,function(t,i){i(e)})}),i(function(){var t=i("body");n.DOMReady=!0,i.each(n.DOMWatchers,function(t,e){e(document)}),n.DOMObserve("[data-am-observe]"),a.removeClass("no-js").addClass("js"),n.support.animation&&a.addClass("cssanimations"),window.navigator.standalone&&a.addClass("am-standalone"),i(".am-topbar-fixed-top").length&&t.addClass("am-with-topbar-fixed-top"),i(".am-topbar-fixed-bottom").length&&t.addClass("am-with-topbar-fixed-bottom");var e=i(".am-layout");e.find('[class*="md-block-grid"]').alterClass("md-block-grid-*"),e.find('[class*="lg-block-grid"]').alterClass("lg-block-grid"),i("[data-am-widget]").each(function(){var t=i(this);0===t.parents(".am-layout").length&&t.addClass("am-no-layout")})}),i.AMUI=n,e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,e){"use strict";e.exports={VERSION:"2.0.0"}},{}],6:[function(t,e){(function(i){"use strict";function n(){var t=o(".ds-thread"),e=t.parent('[data-am-widget="duoshuo"]').attr("data-ds-short-name"),i=("https:"==document.location.protocol?"https:":"http:")+"//static.duoshuo.com/embed.js";if(t.length&&e&&(window.duoshuoQuery={short_name:e},!o('script[src="'+i+'"]').length)){var n=o("