/* WebUploader 0.1.5 */!function(a,b){varc,d={},e=function(a,b){varc,d,e;if("string"==typeofa)returnh(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));returnb.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){varf,g={exports:b};"function"==typeofb&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){varc=d[b]||a[b];if(!c)thrownewError("`"+b+"` is undefined");returnc},i=function(a){varb,c,e,f,g,h;h=function(a){returna&&a.charAt(0).toUpperCase()+a.substr(1)};for(bind)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}returna},j=function(c){returna.__dollar=c,i(b(a,f,e))};"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=j():"function"==typeofdefine&&define.amd?define(["jQuery"],j):(c=a.WebUploader,a.WebUploader=j(),a.WebUploader.noConflict=function(){a.WebUploader=c})}(window,function(a,b,c){returnb("dollar-third",[],function(){varb=a.__dollar||a.jQuery||a.Zepto;if(!b)thrownewError("jQuery or Zepto not found!");returnb}),b("dollar",["dollar-third"],function(a){returna}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){returna&&"function"==typeofa.then}}}),b("promise",["promise-third"],function(a){returna}),b("base",["dollar","promise"],function(b,c){functiond(a){returnfunction(){returnh.apply(a,arguments)}}functione(a,b){returnfunction(){returna.apply(b,arguments)}}functionf(a){varb;returnObject.create?Object.create(a):(b=function(){},b.prototype=a,newb)}varg=function(){},h=Function.call;return{version:"0.1.5",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){varb={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);returnc&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){varb={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);returnc&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){vare;return"function"==typeofc?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){returna.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){returna.console?e(console.log,console):g}(),nextTick:function(){returnfunction(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){vara=0;returnfunction(b){for(varc=(+newDate).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){vard;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){functionb(a,b,c,d){returnf.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}functionc(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}functiond(a,b){for(varc,d=!1,e=-1,f=a.length;++e<f;)if(c=a[e],c.cb.apply(c.ctx2,b)===!1){d=!0;break}return!d}vare,f=a.$,g=[].slice,h=/\s+/;returne={on:function(a,b,d){vare,f=this;returnb?(e=this._events||(this._events=[]),c(a,b,function(a,b){varc={e:a};c.cb=b,c.ctx=d,c.ctx2=d||f,c.id=e.length,e.push(c)}),this):this},once:function(a,b,d){vare=this;returnb?(c(a,b,function(a,b){varc=function(){returne.off(a,c),b.apply(d||e,arguments)};c._cb=b,e.on(a,c,d)}),e):e},off:function(a,d,e){varg=this._events;returng?a||d||e?(c(a,d,function(a,c){f.each(b(g,a,c,e),function(){deleteg[this.id]})}),this):(this._events=[],this):this