hanzi-mobile-package
Version:
Hanzi mobile Package
10 lines • 152 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["Hanzi-vue-package"]=t():e["Hanzi-vue-package"]=t()}(this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var i={};return t.m=e,t.c=i,t.p="",t(0)}({0:function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var r="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},o=i(33),a=n(o),s=i(32),u=n(s),l=i(36),c=0,d=[];!function(e){function t(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function i(e){var t=void 0;switch("undefined"==typeof e?"undefined":r(e)){case"undefined":break;case"string":t=e+"";break;case"number":t=e-0;break;case"boolean":t=e;break;case"object":if(null===e)t=null;else if(e instanceof Array){t=[];for(var n=0,o=e.length;n<o;n++)t.push(i(e[n]))}else{t={};for(var a in e)t[a]=i(e[a])}break;default:t=e}return t}var n=function(e){var n=i(this.data);this.data=t(n,e),this.init(e)};n.prototype={data:{uploader:{},total_part:0,part_now:0,params:{},complete_url:"",callback:function(e){}},init:function(e){var t=this,i=[];if(e.group)for(var n=0;n<e.group.length;n++)"img"===e.group[n]&&i.push({title:"Image files",extensions:"jpg,gif,png,jpeg"}),"video"===e.group[n]&&i.push({title:"Video files",extensions:"avi,mpg,mpeg,asf,mov,wmv,rm,rmvb,mp4,3g2,3gp,MP4,f4v,flv,webm,mkv"}),"zip"===e.group[n]&&i.push({title:"Zip files",extensions:"zip,rar,lzh,gzip"});e.custom&&i.push({title:"Custom files",extensions:e.custom});var r=e.type||"",o=e.url||"",a=e.container||"container",s=e.browse_button||"pickfiles",u=e.progress||void 0,f=e.setting||"loacl",h=e.max_file_size||"10mb",p=e.chunk_size||"204800",m=e.multi_selection||!1,g=e.offset||0,y=e.uploadType||void 0,_=e.resize||void 0,v=new l.Uploader({runtimes:"html5,flash,silverlight,html4",browse_button:s,container:document.getElementById(a),url:window.config.api.url+o,multi_selection:m,resize:_,offset:g,chunk_size:p,filters:{mime_types:i,max_file_size:h},init:{PostInit:function(t){e.PostInit&&e.PostInit(t)},FilesAdded:function(i,n){if(l.each(n,function(e){}),e.FilesAdded){var o=e.FilesAdded(i,n);if(o===!1)return}v.stop(),1===window.config.uploadType||1===y?t.algorithm(i,n[0],function(o){c=0,c++,d=n,t.getUploadIdAndSign(n[0],f,r,function(){i.start()},e,o)},e):(c=0,c++,d=n,t.getUploadIdAndSign(n[0],f,r,function(){i.start()},e))},UploadProgress:function(t,i){e.UploadProgress?e.UploadProgress(t,i,1):void 0!=u&&(document.getElementById(u).innerHTML=i.percent+"%",document.getElementById(u).style.width=i.percent+"%")},Error:function(t,i){"-601"==i.code?tools.alert.error("English"===config.language?"Sorry, we don't support this type of file.":"该文件格式不支持!"):"-600"==i.code?tools.alert.error("English"===config.language?"Sorry, the file is too large!":"文件过大!"):"-700"==i.code?tools.alert.error("English"===config.language?"Sorry, we don't support this type of image file.":"该图片格式不支持!"):tools.alert.error("English"===config.language?"Upload fail, please try again.":"文件上传失败!"),e.Error?e.Error(t,i):void 0!=u&&(document.getElementById(u).innerHTML="",document.getElementById(u).style.width="")},ChunkUploaded:function(i,n,r){return e.ChunkUploaded?e.ChunkUploaded(i,n):void 0!=u&&(document.getElementById(u).innerHTML="",document.getElementById(u).style.width=""),200!=r.status?(i.stop(),void tools.alert.error("English"===config.language?"Upload fail, please try again.":"文件上传失败!")):void(t.data.total_part>t.data.part_now?t.setParams(parseInt(t.data.part_now)+1):t.data.total_part===t.data.part_now&&(i.stop(),t.data.uploader.removeFile(n)))},FileUploaded:function(i,n,o){return m&&i.stop(),e.FileUploaded?e.FileUploaded(i,n,o):void 0!=u&&(document.getElementById(u).innerHTML="",document.getElementById(u).style.width=""),200!=o.status&&204!=o.status?void tools.alert.error("English"===config.language?"Upload fail, please try again.":"文件上传失败!"):void(1===window.config.uploadType||1===y?t.setComplete(t.data.upload_id,e,i,m,function(){t.algorithm(i,d[c],function(n){t.getUploadIdAndSign(d[c],f,r,function(){c++,i.start()},e,n)},e)}):t.setComplete(t.data.upload_id,e,i,m,function(){t.getUploadIdAndSign(d[c],f,r,function(){c++,i.start()},e)}))}}});v.init(),t.data.uploader=v},getUploadIdAndSign:function(e,t,i,n,r,o){var a=this,s=this.data.params.ajaxData||{};e.name.substr(e.name.lastIndexOf("."),e.name.length);""==e.type&&(e.type="octet-stream");var u=a.data.uploader.getOption("chunk_size"),l=r.progress||void 0;0==u&&(u=e.size),s.total_size=e.size,s.part_size=u,s.file_type=e.type,s.filename=e.name,s.upload_setting=t,s.upload_type=i,o&&(s.md5=o.md5,s.sha1=o.sha1),tools.ajax({url:r.url,ajaxData:s,successFun:function(t){var i=t.data.upload_id;if(a.data.upload_id=i,a.data.file_type=s.file_type,a.data.cloud_type=t.data.cloud_type,a.data.total_part=t.list.length,a.data.complete_url=t.data.complete_url,a.data.sign=t.list,0===t.data.is_upload_end)a.data.uploader.offset=0,a.setParams(1);else{if(1===t.data.is_upload_end){var o={};return o.upload_id=i,o.url=t.data.url,o.origin_filename=t.data.origin_filename,"function"==typeof a.data.callback&&a.data.callback({data:o}),void a.data.uploader.removeFile(e)}if(2===t.data.is_upload_end){if(t.data.part_now===t.data.part_num)return void a.setComplete(i,r,a.data.uploader,a.data.uploader,a.data.uploader.multi_selection,n);a.data.uploader.offset=t.data.part_now*t.data.part_size,a.setParams(1)}else a.setParams(1)}t.data.part_num>1?a.data.uploader.setOption("chunk_size",t.data.part_size):a.data.uploader.setOption("chunk_size","0KB"),n()},errorFun:function(t,i,n,o){r.getUploadIdAndSign?r.getUploadIdAndSign(t,i,n,o):void 0!=l&&(document.getElementById(l).innerHTML="",document.getElementById(l).style.width=""),a.data.uploader.removeFile(e),tools.alert.error(t.error_msg)},type:"POST"})},algorithm:function(e,t,i,n){function r(){var e=g*h,t=e+h>=f.size?f.size:e+h;v.readAsArrayBuffer(d.call(f,e,t))}function o(e,t){return e=parseFloat(e),t=parseFloat(t),isNaN(e)||isNaN(t)?"-":t<=0?"0":Math.round(e/t*1e4)/100}var s={},l=this,c=n.progress||void 0,d=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,f=t.getNative(),h=2097152,p=new a.default.ArrayBuffer,m=Math.ceil(f.size/h),g=0,y=parseInt(f.size/h)+1,_=void 0,v=new FileReader;v.onload=function(a){p.append(a.target.result),_=(0,u.default)(a.target.result,_),g++;var d=o(g,y);n.UploadProgress?(t.percent=parseInt(d),n.UploadProgress(e,t,0)):void 0!=c&&(document.getElementById(c).innerHTML="读取文件中:"+d+"%",document.getElementById(c).style.width="100%"),g<m?document.getElementById(l.data.container)&&r():(void 0!=c&&(document.getElementById(c).innerHTML="",document.getElementById(c).style.width=""),s={sha1:_,md5:p.end()},i(s))},v.onerror=function(){console.log("error:","糟糕,好像哪里错了"),i(null)},r()},setParams:function(e){var t=this,i=t.data.sign[parseInt(e)-1],n={},r={},o=i.host,a=void 0;"cloud"==i.type?(n="aws"===t.data.cloud_type?{key:i.dir+i.filename,policy:i.policy,callback:i.callback,signature:i.signature,"x-amz-Signature":i["x-amz-Signature"],"x-amz-algorithm":i["x-amz-algorithm"],"x-amz-credential":i["x-amz-credential"],"x-amz-date":i["x-amz-date"],acl:"public-read"}:"qcould"===t.data.cloud_type?{key:i.dir+i.filename,"Content-Type":t.data.file_type,policy:i.policy,success_action_status:"200",callback:i.callback,signature:i.signature}:{key:i.dir+i.filename,policy:i.policy,OSSAccessKeyId:i.accessid,success_action_status:"200",callback:i.callback,signature:i.signature,"x-oss-object-acl":i.acl},o=i.host):"local"==i.type&&(n={upload_id:i.upload_id,part_now:i.part_now},r={Authorization:tools.cache.get("Authorization")}),i.fixed_download_filename&&(r=Object.assign(r,{"Content-Disposition":"attachment;filename="+encodeURI(i.fixed_download_filename)}),n["Content-Disposition"]="attachment;filename="+i.fixed_download_filename),t.data.uploader.setOption({url:o,headers:r,multipart_params:n,type:a}),t.data.part_now=e},setComplete:function(e,t,i,n,r){var o=this,a=o.data.complete_url+e,s=t.progress||void 0;tools.ajax({url:a,ajaxData:{},timeout:6e4,successFun:function(e){if(t.setComplete?t.setComplete():void 0!=s&&(document.getElementById(s).innerHTML="",document.getElementById(s).style.width=""),"function"==typeof o.data.callback&&o.data.callback(e),d.length>1&&n){if(c===d.length)return;r()}},errorFun:function(e,n,r,o){t.setComplete?t.setComplete():void 0!=s&&(document.getElementById(s).innerHTML="",document.getElementById(s).style.width=""),i.splice(0,d.length),tools.alert.error(e.error_msg)},type:"PUT"})}},e=e||window,e.upload=function(e){return new n(e)}}(window)},2:function(e,t){"use strict";function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===i||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===n||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&h&&(m=!1,h.length?p=h.concat(p):g=-1,p.length&&s())}function s(){if(!m){var e=r(a);m=!0;for(var t=p.length;t;){for(h=p,p=[];++g<t;)h&&h[g].run();g=-1,t=p.length}h=null,m=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,d,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:i}catch(e){c=i}try{d="function"==typeof clearTimeout?clearTimeout:n}catch(e){d=n}}();var h,p=[],m=!1,g=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];p.push(new u(e,t)),1!==p.length||m||r(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.prependListener=l,f.prependOnceListener=l,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},3:function(e,t){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},5:function(e,t){(function(t){e.exports=t}).call(t,{})},32:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;(function(process,global,module){"use strict";var _typeof="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};/*
* [js-sha1]{@link https://github.com/emn178/js-sha1}
*
* @version 0.6.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/
!function(){function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}var root="object"===("undefined"==typeof window?"undefined":_typeof(window))?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"===("undefined"==typeof process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(5),HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var i=OUTPUT_TYPES[t];e[i]=createOutputMethod(i)}return e},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!=typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var i,n,r=0,o=e.length||0,a=this.blocks;r<o;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(n=this.start;r<o&&n<64;++r)a[n>>2]|=e[r]<<SHIFT[3&n++];else for(n=this.start;r<o&&n<64;++r)i=e.charCodeAt(r),i<128?a[n>>2]|=i<<SHIFT[3&n++]:i<2048?(a[n>>2]|=(192|i>>6)<<SHIFT[3&n++],a[n>>2]|=(128|63&i)<<SHIFT[3&n++]):i<55296||i>=57344?(a[n>>2]|=(224|i>>12)<<SHIFT[3&n++],a[n>>2]|=(128|i>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&i)<<SHIFT[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|i>>18)<<SHIFT[3&n++],a[n>>2]|=(128|i>>12&63)<<SHIFT[3&n++],a[n>>2]|=(128|i>>6&63)<<SHIFT[3&n++],a[n>>2]|=(128|63&i)<<SHIFT[3&n++]);this.lastByteIndex=n,this.bytes+=n-this.start,n>=64?(this.block=a[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,i,n=this.h0,r=this.h1,o=this.h2,a=this.h3,s=this.h4,u=this.blocks;for(t=16;t<80;++t)i=u[t-3]^u[t-8]^u[t-14]^u[t-16],u[t]=i<<1|i>>>31;for(t=0;t<20;t+=5)e=r&o|~r&a,i=n<<5|n>>>27,s=i+e+s+1518500249+u[t]<<0,r=r<<30|r>>>2,e=n&r|~n&o,i=s<<5|s>>>27,a=i+e+a+1518500249+u[t+1]<<0,n=n<<30|n>>>2,e=s&n|~s&r,i=a<<5|a>>>27,o=i+e+o+1518500249+u[t+2]<<0,s=s<<30|s>>>2,e=a&s|~a&n,i=o<<5|o>>>27,r=i+e+r+1518500249+u[t+3]<<0,a=a<<30|a>>>2,e=o&a|~o&s,i=r<<5|r>>>27,n=i+e+n+1518500249+u[t+4]<<0,o=o<<30|o>>>2;for(;t<40;t+=5)e=r^o^a,i=n<<5|n>>>27,s=i+e+s+1859775393+u[t]<<0,r=r<<30|r>>>2,e=n^r^o,i=s<<5|s>>>27,a=i+e+a+1859775393+u[t+1]<<0,n=n<<30|n>>>2,e=s^n^r,i=a<<5|a>>>27,o=i+e+o+1859775393+u[t+2]<<0,s=s<<30|s>>>2,e=a^s^n,i=o<<5|o>>>27,r=i+e+r+1859775393+u[t+3]<<0,a=a<<30|a>>>2,e=o^a^s,i=r<<5|r>>>27,n=i+e+n+1859775393+u[t+4]<<0,o=o<<30|o>>>2;for(;t<60;t+=5)e=r&o|r&a|o&a,i=n<<5|n>>>27,s=i+e+s-1894007588+u[t]<<0,r=r<<30|r>>>2,e=n&r|n&o|r&o,i=s<<5|s>>>27,a=i+e+a-1894007588+u[t+1]<<0,n=n<<30|n>>>2,e=s&n|s&r|n&r,i=a<<5|a>>>27,o=i+e+o-1894007588+u[t+2]<<0,s=s<<30|s>>>2,e=a&s|a&n|s&n,i=o<<5|o>>>27,r=i+e+r-1894007588+u[t+3]<<0,a=a<<30|a>>>2,e=o&a|o&s|a&s,i=r<<5|r>>>27,n=i+e+n-1894007588+u[t+4]<<0,o=o<<30|o>>>2;for(;t<80;t+=5)e=r^o^a,i=n<<5|n>>>27,s=i+e+s-899497514+u[t]<<0,r=r<<30|r>>>2,e=n^r^o,i=s<<5|s>>>27,a=i+e+a-899497514+u[t+1]<<0,n=n<<30|n>>>2,e=s^n^r,i=a<<5|a>>>27,o=i+e+o-899497514+u[t+2]<<0,s=s<<30|s>>>2,e=a^s^n,i=o<<5|o>>>27,r=i+e+r-899497514+u[t+3]<<0,a=a<<30|a>>>2,e=o^a^s,i=r<<5|r>>>27,n=i+e+n-899497514+u[t+4]<<0,o=o<<30|o>>>2;this.h0=this.h0+n<<0,this.h1=this.h1+r<<0,this.h2=this.h2+o<<0,this.h3=this.h3+a<<0,this.h4=this.h4+s<<0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,n=this.h3,r=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,i=this.h2,n=this.h3,r=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))))}()}).call(exports,__webpack_require__(2),function(){return this}(),__webpack_require__(3)(module))},33:function(e,t,i){var n,r,o="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};!function(a){if("object"===o(t))e.exports=a();else{n=a,r="function"==typeof n?n.call(t,i,t,e):n,!(void 0!==r&&(e.exports=r))}}(function(e){"use strict";function t(e,t){var i=e[0],n=e[1],r=e[2],o=e[3];i+=(n&r|~n&o)+t[0]-680876936|0,i=(i<<7|i>>>25)+n|0,o+=(i&n|~i&r)+t[1]-389564586|0,o=(o<<12|o>>>20)+i|0,r+=(o&i|~o&n)+t[2]+606105819|0,r=(r<<17|r>>>15)+o|0,n+=(r&o|~r&i)+t[3]-1044525330|0,n=(n<<22|n>>>10)+r|0,i+=(n&r|~n&o)+t[4]-176418897|0,i=(i<<7|i>>>25)+n|0,o+=(i&n|~i&r)+t[5]+1200080426|0,o=(o<<12|o>>>20)+i|0,r+=(o&i|~o&n)+t[6]-1473231341|0,r=(r<<17|r>>>15)+o|0,n+=(r&o|~r&i)+t[7]-45705983|0,n=(n<<22|n>>>10)+r|0,i+=(n&r|~n&o)+t[8]+1770035416|0,i=(i<<7|i>>>25)+n|0,o+=(i&n|~i&r)+t[9]-1958414417|0,o=(o<<12|o>>>20)+i|0,r+=(o&i|~o&n)+t[10]-42063|0,r=(r<<17|r>>>15)+o|0,n+=(r&o|~r&i)+t[11]-1990404162|0,n=(n<<22|n>>>10)+r|0,i+=(n&r|~n&o)+t[12]+1804603682|0,i=(i<<7|i>>>25)+n|0,o+=(i&n|~i&r)+t[13]-40341101|0,o=(o<<12|o>>>20)+i|0,r+=(o&i|~o&n)+t[14]-1502002290|0,r=(r<<17|r>>>15)+o|0,n+=(r&o|~r&i)+t[15]+1236535329|0,n=(n<<22|n>>>10)+r|0,i+=(n&o|r&~o)+t[1]-165796510|0,i=(i<<5|i>>>27)+n|0,o+=(i&r|n&~r)+t[6]-1069501632|0,o=(o<<9|o>>>23)+i|0,r+=(o&n|i&~n)+t[11]+643717713|0,r=(r<<14|r>>>18)+o|0,n+=(r&i|o&~i)+t[0]-373897302|0,n=(n<<20|n>>>12)+r|0,i+=(n&o|r&~o)+t[5]-701558691|0,i=(i<<5|i>>>27)+n|0,o+=(i&r|n&~r)+t[10]+38016083|0,o=(o<<9|o>>>23)+i|0,r+=(o&n|i&~n)+t[15]-660478335|0,r=(r<<14|r>>>18)+o|0,n+=(r&i|o&~i)+t[4]-405537848|0,n=(n<<20|n>>>12)+r|0,i+=(n&o|r&~o)+t[9]+568446438|0,i=(i<<5|i>>>27)+n|0,o+=(i&r|n&~r)+t[14]-1019803690|0,o=(o<<9|o>>>23)+i|0,r+=(o&n|i&~n)+t[3]-187363961|0,r=(r<<14|r>>>18)+o|0,n+=(r&i|o&~i)+t[8]+1163531501|0,n=(n<<20|n>>>12)+r|0,i+=(n&o|r&~o)+t[13]-1444681467|0,i=(i<<5|i>>>27)+n|0,o+=(i&r|n&~r)+t[2]-51403784|0,o=(o<<9|o>>>23)+i|0,r+=(o&n|i&~n)+t[7]+1735328473|0,r=(r<<14|r>>>18)+o|0,n+=(r&i|o&~i)+t[12]-1926607734|0,n=(n<<20|n>>>12)+r|0,i+=(n^r^o)+t[5]-378558|0,i=(i<<4|i>>>28)+n|0,o+=(i^n^r)+t[8]-2022574463|0,o=(o<<11|o>>>21)+i|0,r+=(o^i^n)+t[11]+1839030562|0,r=(r<<16|r>>>16)+o|0,n+=(r^o^i)+t[14]-35309556|0,n=(n<<23|n>>>9)+r|0,i+=(n^r^o)+t[1]-1530992060|0,i=(i<<4|i>>>28)+n|0,o+=(i^n^r)+t[4]+1272893353|0,o=(o<<11|o>>>21)+i|0,r+=(o^i^n)+t[7]-155497632|0,r=(r<<16|r>>>16)+o|0,n+=(r^o^i)+t[10]-1094730640|0,n=(n<<23|n>>>9)+r|0,i+=(n^r^o)+t[13]+681279174|0,i=(i<<4|i>>>28)+n|0,o+=(i^n^r)+t[0]-358537222|0,o=(o<<11|o>>>21)+i|0,r+=(o^i^n)+t[3]-722521979|0,r=(r<<16|r>>>16)+o|0,n+=(r^o^i)+t[6]+76029189|0,n=(n<<23|n>>>9)+r|0,i+=(n^r^o)+t[9]-640364487|0,i=(i<<4|i>>>28)+n|0,o+=(i^n^r)+t[12]-421815835|0,o=(o<<11|o>>>21)+i|0,r+=(o^i^n)+t[15]+530742520|0,r=(r<<16|r>>>16)+o|0,n+=(r^o^i)+t[2]-995338651|0,n=(n<<23|n>>>9)+r|0,i+=(r^(n|~o))+t[0]-198630844|0,i=(i<<6|i>>>26)+n|0,o+=(n^(i|~r))+t[7]+1126891415|0,o=(o<<10|o>>>22)+i|0,r+=(i^(o|~n))+t[14]-1416354905|0,r=(r<<15|r>>>17)+o|0,n+=(o^(r|~i))+t[5]-57434055|0,n=(n<<21|n>>>11)+r|0,i+=(r^(n|~o))+t[12]+1700485571|0,i=(i<<6|i>>>26)+n|0,o+=(n^(i|~r))+t[3]-1894986606|0,o=(o<<10|o>>>22)+i|0,r+=(i^(o|~n))+t[10]-1051523|0,r=(r<<15|r>>>17)+o|0,n+=(o^(r|~i))+t[1]-2054922799|0,n=(n<<21|n>>>11)+r|0,i+=(r^(n|~o))+t[8]+1873313359|0,i=(i<<6|i>>>26)+n|0,o+=(n^(i|~r))+t[15]-30611744|0,o=(o<<10|o>>>22)+i|0,r+=(i^(o|~n))+t[6]-1560198380|0,r=(r<<15|r>>>17)+o|0,n+=(o^(r|~i))+t[13]+1309151649|0,n=(n<<21|n>>>11)+r|0,i+=(r^(n|~o))+t[4]-145523070|0,i=(i<<6|i>>>26)+n|0,o+=(n^(i|~r))+t[11]-1120210379|0,o=(o<<10|o>>>22)+i|0,r+=(i^(o|~n))+t[2]+718787259|0,r=(r<<15|r>>>17)+o|0,n+=(o^(r|~i))+t[9]-343485551|0,n=(n<<21|n>>>11)+r|0,e[0]=i+e[0]|0,e[1]=n+e[1]|0,e[2]=r+e[2]|0,e[3]=o+e[3]|0}function i(e){var t,i=[];for(t=0;t<64;t+=4)i[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return i}function n(e){var t,i=[];for(t=0;t<64;t+=4)i[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return i}function r(e){var n,r,o,a,s,u,l=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=l;n+=64)t(c,i(e.substring(n-64,n)));for(e=e.substring(n-64),r=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<r;n+=1)o[n>>2]|=e.charCodeAt(n)<<(n%4<<3);if(o[n>>2]|=128<<(n%4<<3),n>55)for(t(c,o),n=0;n<16;n+=1)o[n]=0;return a=8*l,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,t(c,o),c}function o(e){var i,r,o,a,s,u,l=e.length,c=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=l;i+=64)t(c,n(e.subarray(i-64,i)));for(e=i-64<l?e.subarray(i-64):new Uint8Array(0),r=e.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],i=0;i<r;i+=1)o[i>>2]|=e[i]<<(i%4<<3);if(o[i>>2]|=128<<(i%4<<3),i>55)for(t(c,o),i=0;i<16;i+=1)o[i]=0;return a=8*l,a=a.toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,t(c,o),c}function a(e){var t,i="";for(t=0;t<4;t+=1)i+=m[e>>8*t+4&15]+m[e>>8*t&15];return i}function s(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function u(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e,t){var i,n=e.length,r=new ArrayBuffer(n),o=new Uint8Array(r);for(i=0;i<n;i+=1)o[i]=e.charCodeAt(i);return t?o:r}function c(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function d(e,t,i){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e)),n.set(new Uint8Array(t),e.byteLength),i?n:n.buffer}function f(e){var t,i=[],n=e.length;for(t=0;t<n-1;t+=2)i.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,i)}function h(){this.reset()}var p=function(e,t){return e+t&4294967295},m=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return"5d41402abc4b2a76b9719d911017c592"!==s(r("hello"))&&(p=function(e,t){var i=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(i>>16);return n<<16|65535&i}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||!function(){function t(e,t){return e=0|e||0,e<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(i,n){var r,o,a,s,u=this.byteLength,l=t(i,u),c=u;return n!==e&&(c=t(n,u)),l>c?new ArrayBuffer(0):(r=c-l,o=new ArrayBuffer(r),a=new Uint8Array(o),s=new Uint8Array(this,l,r),a.set(s),o)}}(),h.prototype.append=function(e){return this.appendBinary(u(e)),this},h.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var n,r=this._buff.length;for(n=64;n<=r;n+=64)t(this._hash,i(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},h.prototype.end=function(e){var t,i,n=this._buff,r=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,r),i=s(this._hash),e&&(i=f(i)),this.reset(),i},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},h.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(e,i){var n,r,o,a=i;if(e[a>>2]|=128<<(a%4<<3),a>55)for(t(this._hash,e),a=0;a<16;a+=1)e[a]=0;n=8*this._length,n=n.toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(n[2],16),o=parseInt(n[1],16)||0,e[14]=r,e[15]=o,t(this._hash,e)},h.hash=function(e,t){return h.hashBinary(u(e),t)},h.hashBinary=function(e,t){var i=r(e),n=s(i);return t?f(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(e){var i,r=d(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,i=64;i<=o;i+=64)t(this._hash,n(r.subarray(i-64,i)));return this._buff=i-64<o?new Uint8Array(r.buffer.slice(i-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(e){var t,i,n=this._buff,r=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<r;t+=1)o[t>>2]|=n[t]<<(t%4<<3);return this._finish(o,r),i=s(this._hash),e&&(i=f(i)),this.reset(),i},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var e=h.prototype.getState.call(this);return e.buff=c(e.buff),e},h.ArrayBuffer.prototype.setState=function(e){return e.buff=l(e.buff,!0),h.prototype.setState.call(this,e)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(e,t){var i=o(new Uint8Array(e)),n=s(i);return t?f(n):n},h})},35:function(e,t,i){var n,r,o,a="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},s=!0;!function(i,a){var s=function(){var e={};return a.apply(e,arguments),e.moxie};r=[],n=s,o="function"==typeof n?n.apply(t,r):n,!(void 0!==o&&(e.exports=o))}(window,function(){!function(e,t){"use strict";function i(e,t){for(var i,n=[],r=0;r<e.length;++r){if(i=l[e[r]]||o(e[r]),!i)throw"module definition dependecy not found: "+e[r];n.push(i)}t.apply(null,n)}function n(e,n,r){if("string"!=typeof e)throw"invalid module definition, module id must be defined and be a string";if(n===t)throw"invalid module definition, dependencies must be specified";if(r===t)throw"invalid module definition, definition function must be specified";i(n,function(){l[e]=r.apply(null,arguments)})}function r(e){return!!l[e]}function o(t){for(var i=e,n=t.split(/[.\/]/),r=0;r<n.length;++r){if(!i[n[r]])return;i=i[n[r]]}return i}function u(i){for(var n=0;n<i.length;n++){for(var r=e,o=i[n],a=o.split(/[.\/]/),s=0;s<a.length-1;++s)r[a[s]]===t&&(r[a[s]]={}),r=r[a[s]];r[a[a.length-1]]=l[o]}}var l={};n("moxie/core/utils/Basic",[],function(){function e(e){var t;return e===t?"undefined":null===e?"null":e.nodeType?"node":{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1].toLowerCase()}function t(){return a(!1,!1,arguments)}function i(){return a(!0,!1,arguments)}function n(){return a(!1,!0,arguments)}function r(){return a(!0,!0,arguments)}function o(i){switch(e(i)){case"array":return Array.prototype.slice.call(i);case"object":return t({},i)}return i}function a(t,i,n){var r,s=n[0];return u(n,function(n,l){l>0&&u(n,function(n,u){var l=f(e(n),["array","object"])!==-1;return!!(n===r||t&&s[u]===r)||(l&&i&&(n=o(n)),void(e(s[u])===e(n)&&l?a(t,i,[s[u],n]):s[u]=n))})}),s}function s(e,t){function i(){this.constructor=e}for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__parent__=t.prototype,e}function u(e,t){var i,n,r,o;if(e){try{i=e.length}catch(e){i=o}if(i===o||"number"!=typeof i){for(n in e)if(e.hasOwnProperty(n)&&t(e[n],n)===!1)return}else for(r=0;r<i;r++)if(t(e[r],r)===!1)return}}function l(t){var i;if(!t||"object"!==e(t))return!0;for(i in t)return!1;return!0}function c(t,i){function n(r){"function"===e(t[r])&&t[r](function(e){++r<o&&!e?n(r):i(e)})}var r=0,o=t.length;"function"!==e(i)&&(i=function(){}),t&&t.length||i(),n(r)}function d(e,t){var i=0,n=e.length,r=new Array(n);u(e,function(e,o){e(function(e){if(e)return t(e);var a=[].slice.call(arguments);a.shift(),r[o]=a,i++,i===n&&(r.unshift(null),t.apply(this,r))})})}function f(e,t){if(t){if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return-1}function h(t,i){var n=[];"array"!==e(t)&&(t=[t]),"array"!==e(i)&&(i=[i]);for(var r in t)f(t[r],i)===-1&&n.push(t[r]);return!!n.length&&n}function p(e,t){var i=[];return u(e,function(e){f(e,t)!==-1&&i.push(e)}),i.length?i:null}function m(e){var t,i=[];for(t=0;t<e.length;t++)i[t]=e[t];return i}function g(e){return e?String.prototype.trim?String.prototype.trim.call(e):e.toString().replace(/^\s*/,"").replace(/\s*$/,""):e}function y(e){if("string"!=typeof e)return e;var t,i={t:1099511627776,g:1073741824,m:1048576,k:1024};return e=/^([0-9\.]+)([tmgk]?)$/.exec(e.toLowerCase().replace(/[^0-9\.tmkg]/g,"")),t=e[2],e=+e[1],i.hasOwnProperty(t)&&(e*=i[t]),Math.floor(e)}function _(t){var i=[].slice.call(arguments,1);return t.replace(/%[a-z]/g,function(){var t=i.shift();return"undefined"!==e(t)?t:""})}function v(e,t){var i=this;setTimeout(function(){e.call(i)},t||1)}var x=function(){var e=0;return function(t){var i,n=(new Date).getTime().toString(32);for(i=0;i<5;i++)n+=Math.floor(65535*Math.random()).toString(32);return(t||"o_")+n+(e++).toString(32)}}();return{guid:x,typeOf:e,extend:t,extendIf:i,extendImmutable:n,extendImmutableIf:r,inherit:s,each:u,isEmptyObj:l,inSeries:c,inParallel:d,inArray:f,arrayDiff:h,arrayIntersect:p,toArray:m,trim:g,sprintf:_,parseSizeStr:y,delay:v}}),n("moxie/core/utils/Encode",[],function(){var e=function(e){return unescape(encodeURIComponent(e))},t=function(e){return decodeURIComponent(escape(e))},i=function(e,i){if("function"==typeof window.atob)return i?t(window.atob(e)):window.atob(e);var n,r,o,a,s,u,l,c,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=0,h=0,p="",m=[];if(!e)return e;e+="";do a=d.indexOf(e.charAt(f++)),s=d.indexOf(e.charAt(f++)),u=d.indexOf(e.charAt(f++)),l=d.indexOf(e.charAt(f++)),c=a<<18|s<<12|u<<6|l,n=c>>16&255,r=c>>8&255,o=255&c,64==u?m[h++]=String.fromCharCode(n):64==l?m[h++]=String.fromCharCode(n,r):m[h++]=String.fromCharCode(n,r,o);while(f<e.length);return p=m.join(""),i?t(p):p},n=function(t,i){if(i&&(t=e(t)),"function"==typeof window.btoa)return window.btoa(t);var n,r,o,a,s,u,l,c,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",f=0,h=0,p="",m=[];if(!t)return t;do n=t.charCodeAt(f++),r=t.charCodeAt(f++),o=t.charCodeAt(f++),c=n<<16|r<<8|o,a=c>>18&63,s=c>>12&63,u=c>>6&63,l=63&c,m[h++]=d.charAt(a)+d.charAt(s)+d.charAt(u)+d.charAt(l);while(f<t.length);p=m.join("");var g=t.length%3;return(g?p.slice(0,g-3):p)+"===".slice(g||3)};return{utf8_encode:e,utf8_decode:t,atob:i,btoa:n}}),n("moxie/core/utils/Env",["moxie/core/utils/Basic"],function(e){function t(e,t,i){var n=0,r=0,o=0,a={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},s=function(e){return e=(""+e).replace(/[_\-+]/g,"."),e=e.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),e.length?e.split("."):[-8]},u=function(e){return e?isNaN(e)?a[e]||-7:parseInt(e,10):0};for(e=s(e),t=s(t),r=Math.max(e.length,t.length),n=0;n<r;n++)if(e[n]!=t[n]){if(e[n]=u(e[n]),t[n]=u(t[n]),e[n]<t[n]){o=-1;break}if(e[n]>t[n]){o=1;break}}if(!i)return o;switch(i){case">":case"gt":return o>0;case">=":case"ge":return o>=0;case"<=":case"le":return o<=0;case"==":case"=":case"eq":return 0===o;case"<>":case"!=":case"ne":return 0!==o;case"":case"<":case"lt":return o<0;default:return null}}var i=function(e){var t="",i="?",n="function",r="undefined",o="object",s="name",u="version",l={has:function(e,t){return t.toLowerCase().indexOf(e.toLowerCase())!==-1},lowerize:function(e){return e.toLowerCase()}},c={rgx:function(){for(var t,i,s,u,l,c,d,f=0,h=arguments;f<h.length;f+=2){var p=h[f],m=h[f+1];if(("undefined"==typeof t?"undefined":a(t))===r){t={};for(u in m)l=m[u],("undefined"==typeof l?"undefined":a(l))===o?t[l[0]]=e:t[l]=e}for(i=s=0;i<p.length;i++)if(c=p[i].exec(this.getUA())){for(u=0;u<m.length;u++)d=c[++s],l=m[u],("undefined"==typeof l?"undefined":a(l))===o&&l.length>0?2==l.length?a(l[1])==n?t[l[0]]=l[1].call(this,d):t[l[0]]=l[1]:3==l.length?a(l[1])!==n||l[1].exec&&l[1].test?t[l[0]]=d?d.replace(l[1],l[2]):e:t[l[0]]=d?l[1].call(this,d,l[2]):e:4==l.length&&(t[l[0]]=d?l[3].call(this,d.replace(l[1],l[2])):e):t[l]=d?d:e;break}if(c)break}return t},str:function(t,n){for(var r in n)if(a(n[r])===o&&n[r].length>0){for(var s=0;s<n[r].length;s++)if(l.has(n[r][s],t))return r===i?e:r}else if(l.has(n[r],t))return r===i?e:r;return t}},d={browser:{oldsafari:{major:{1:["/8","/1","/3"],2:"/4","?":"/"},version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",RT:"ARM"}}}},f={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[s,u],[/\s(opr)\/([\w\.]+)/i],[[s,"Opera"],u],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi)\/([\w\.-]+)/i],[s,u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[s,"IE"],u],[/(edge)\/((\d+)?[\w\.]+)/i],[s,u],[/(yabrowser)\/([\w\.]+)/i],[[s,"Yandex"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],u],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(uc\s?browser|qqbrowser)[\/\s]?([\w\.]+)/i],[s,u],[/(dolfin)\/([\w\.]+)/i],[[s,"Dolphin"],u],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[s,"Chrome"],u],[/XiaoMi\/MiuiBrowser\/([\w\.]+)/i],[u,[s,"MIUI Browser"]],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],[u,[s,"Android Browser"]],[/FBAV\/([\w\.]+);/i],[u,[s,"Facebook"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[s,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,s],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[s,[u,c.str,d.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[s,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[s,"Netscape"],u],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[s,u]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[s,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[s,u],[/rv\:([\w\.]+).*(gecko)/i],[u,s]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[s,u],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[s,[u,c.str,d.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[s,"Windows"],[u,c.str,d.os.windows.version]],[/\((bb)(10);/i],[[s,"BlackBerry"],u],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[s,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[s,"Symbian"],u],[/\((series40);/i],[s],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[s,"Firefox OS"],u],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[s,u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[s,"Chromium OS"],u],[/(sunos)\s?([\w\.]+\d)*/i],[[s,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[s,u],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[s,"iOS"],[u,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[s,"Mac OS"],[u,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[s,u]]},h=function(e){var i=e||(window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:t);this.getBrowser=function(){return c.rgx.apply(this,f.browser)},this.getEngine=function(){return c.rgx.apply(this,f.engine)},this.getOS=function(){return c.rgx.apply(this,f.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this.setUA(i)};return h}(),n=function(){var t={define_property:function(){return!1}(),create_canvas:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}(),return_response_type:function(t){try{if(e.inArray(t,["","text","document"])!==-1)return!0;if(window.XMLHttpRequest){var i=new XMLHttpRequest;if(i.open("get","/"),"responseType"in i)return i.responseType=t,i.responseType===t}}catch(e){}return!1},use_data_uri:function(){var e=new Image;return e.onload=function(){t.use_data_uri=1===e.width&&1===e.height},setTimeout(function(){e.src="data:image/gif;base64,R0lGODlhAQABAIAAAP8AAAAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw=="},1),!1}(),use_data_uri_over32kb:function(){return t.use_data_uri&&("IE"!==o.browser||o.version>=9)},use_data_uri_of:function(e){return t.use_data_uri&&e<33e3||t.use_data_uri_over32kb()},use_fileinput:function(){if(navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1))|(Windows Phone (OS 7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/))return!1;var e=document.createElement("input");return e.setAttribute("type","file"),!e.disabled}};return function(i){var n=[].slice.call(arguments);return n.shift(),"function"===e.typeOf(t[i])?t[i].apply(this,n):!!t[i]}}(),r=(new i).getResult(),o={can:n,uaParser:i,browser:r.browser.name,version:r.browser.version,os:r.os.name,osVersion:r.os.version,verComp:t,swf_url:"../flash/Moxie.swf",xap_url:"../silverlight/Moxie.xap",global_event_dispatcher:"moxie.core.EventTarget.instance.dispatchEvent"};return o.OS=o.os,s&&(o.debug={runtime:!0,events:!1},o.log=function(){function t(e){n.appendChild(document.createTextNode(e+"\n"))}var i=arguments[0];if("string"===e.typeOf(i)&&(i=e.sprintf.apply(this,arguments)),window&&window.console&&window.console.log)window.console.log(i);else if(document){var n=document.getElementById("moxie-console");n||(n=document.createElement("pre"),n.id="moxie-console",document.body.appendChild(n)),e.inArray(e.typeOf(i),["object","array"])!==-1?t(i):n.appendChild(document.createTextNode(i+"\n"))}}),o}),n("moxie/core/Exceptions",["moxie/core/utils/Basic"],function(e){function t(e,t){var i;for(i in e)if(e[i]===t)return i;return null}return{RuntimeError:function(){function i(e,i){this.code=e,this.name=t(n,e),this.message=this.name+(i||": RuntimeError "+this.code)}var n={NOT_INIT_ERR:1,EXCEPTION_ERR:3,NOT_SUPPORTED_ERR:9,JS_ERR:4};return e.extend(i,n),i.prototype=Error.prototype,i}(),OperationNotAllowedException:function(){function t(e){this.code=e,this.name="OperationNotAllowedException"}return e.extend(t,{NOT_ALLOWED_ERR:1}),t.prototype=Error.prototype,t}(),ImageError:function(){function i(e){this.code=e,this.name=t(n,e),this.message=this.name+": ImageError "+this.code}var n={WRONG_FORMAT:1,MAX_RESOLUTION_ERR:2,INVALID_META_ERR:3};return e.extend(i,n),i.prototype=Error.prototype,i}(),FileException:function(){function i(e){this.code=e,this.name=t(n,e),this.message=this.name+": FileException "+this.code}var n={NOT_FOUND_ERR:1,SECURITY_ERR:2,ABORT_ERR:3,NOT_READABLE_ERR:4,ENCODING_ERR:5,NO_MODIFICATION_ALLOWED_ERR:6,INVALID_STATE_ERR:7,SYNTAX_ERR:8};return e.extend(i,n),i.prototype=Error.prototype,i}(),DOMException:function(){function i(e){this.code=e,this.name=t(n,e),this.message=this.name+": DOMException "+this.code}var n={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};return e.extend(i,n),i.prototype=Error.prototype,i}(),EventException:function(){function t(e){this.code=e,this.name="EventException"}return e.extend(t,{UNSPECIFIED_EVENT_TYPE_ERR:0}),t.prototype=Error.prototype,t}()}}),n("moxie/core/utils/Dom",["moxie/core/utils/Env"],function(e){var t=function(e){return"string"!=typeof e?e:document.getElementById(e)},i=function(e,t){if(!e.className)return!1;var i=new RegExp("(^|\\s+)"+t+"(\\s+|$)");return i.test(e.className)},n=function(e,t){i(e,t)||(e.className=e.className?e.className.replace(/\s+$/,"")+" "+t:t)},r=function(e,t){if(e.className){var i=new RegExp("(^|\\s+)"+t+"(\\s+|$)");e.className=e.className.replace(i,function(e,t,i){return" "===t&&" "===i?" ":""})}},o=function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null)[t]:void 0},a=function(t,i){function n(e){var t,i,n=0,r=0;return e&&(i=e.getBoundingClientRect(),t="CSS1Compat"===l.compatMode?l.documentElement:l.body,n=i.left+t.scrollLeft,r=i.top+t.scrollTop),{x:n,y:r}}var r,o,a,s=0,u=0,l=document;if(t=t,i=i||l.body,t&&t.getBoundingClientRect&&"IE"===e.browser&&(!l.documentMode||l.documentMode<8))return o=n(t),
a=n(i),{x:o.x-a.x,y:o.y-a.y};for(r=t;r&&r!=i&&r.nodeType;)s+=r.offsetLeft||0,u+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!=i&&r.nodeType;)s-=r.scrollLeft||0,u-=r.scrollTop||0,r=r.parentNode;return{x:s,y:u}},s=function(e){return{w:e.offsetWidth||e.clientWidth,h:e.offsetHeight||e.clientHeight}};return{get:t,hasClass:i,addClass:n,removeClass:r,getStyle:o,getPos:a,getSize:s}}),n("moxie/core/EventTarget",["moxie/core/utils/Env","moxie/core/Exceptions","moxie/core/utils/Basic"],function(e,t,i){function n(){this.uid=i.guid()}var r={};return i.extend(n.prototype,{init:function(){this.uid||(this.uid=i.guid("uid_"))},addEventListener:function(e,t,n,o){var a,s=this;return this.hasOwnProperty("uid")||(this.uid=i.guid("uid_")),e=i.trim(e),/\s/.test(e)?void i.each(e.split(/\s+/),function(e){s.addEventListener(e,t,n,o)}):(e=e.toLowerCase(),n=parseInt(n,10)||0,a=r[this.uid]&&r[this.uid][e]||[],a.push({fn:t,priority:n,scope:o||this}),r[this.uid]||(r[this.uid]={}),void(r[this.uid][e]=a))},hasEventListener:function(e){var t;return e?(e=e.toLowerCase(),t=r[this.uid]&&r[this.uid][e]):t=r[this.uid],!!t&&t},removeEventListener:function(e,t){var n,o,a=this;if(e=e.toLowerCase(),/\s/.test(e))return void i.each(e.split(/\s+/),function(e){a.removeEventListener(e,t)});if(n=r[this.uid]&&r[this.uid][e]){if(t){for(o=n.length-1;o>=0;o--)if(n[o].fn===t){n.splice(o,1);break}}else n=[];n.length||(delete r[this.uid][e],i.isEmptyObj(r[this.uid])&&delete r[this.uid])}},removeAllEventListeners:function(){r[this.uid]&&delete r[this.uid]},dispatchEvent:function(n){var o,a,u,l,c,d={},f=!0;if("string"!==i.typeOf(n)){if(l=n,"string"!==i.typeOf(l.type))throw new t.EventException(t.EventException.UNSPECIFIED_EVENT_TYPE_ERR);n=l.type,l.total!==c&&l.loaded!==c&&(d.total=l.total,d.loaded=l.loaded),d.async=l.async||!1}if(n.indexOf("::")!==-1?!function(e){o=e[0],n=e[1]}(n.split("::")):o=this.uid,n=n.toLowerCase(),a=r[o]&&r[o][n]){a.sort(function(e,t){return t.priority-e.priority}),u=[].slice.call(arguments),u.shift(),d.type=n,u.unshift(d),s&&e.debug.events&&e.log("Event '%s' fired on %u",d.type,o);var h=[];i.each(a,function(e){u[0].target=e.scope,d.async?h.push(function(t){setTimeout(function(){t(e.fn.apply(e.scope,u)===!1)},1)}):h.push(function(t){t(e.fn.apply(e.scope,u)===!1)})}),h.length&&i.inSeries(h,function(e){f=!e})}return f},bindOnce:function(e,t,i,n){var r=this;r.bind.call(this,e,function i(){return r.unbind(e,i),t.apply(this,arguments)},i,n)},bind:function(){this.addEventListener.apply(this,arguments)},unbind:function(){this.removeEventListener.apply(this,arguments)},unbindAll:function(){this.removeAllEventListeners.apply(this,arguments)},trigger:function(){return this.dispatchEvent.apply(this,arguments)},handleEventProps:function(e){var t=this;this.bind(e.join(" "),function(e){var t="on"+e.type.toLowerCase();"function"===i.typeOf(this[t])&&this[t].apply(this,arguments)}),i.each(e,function(e){e="on"+e.toLowerCase(e),"undefined"===i.typeOf(t[e])&&(t[e]=null)})}}),n.instance=new n,n}),n("moxie/runtime/Runtime",["moxie/core/utils/Env","moxie/core/utils/Basic","moxie/core/utils/Dom","moxie/core/EventTarget"],function(e,t,i,n){function r(n,o,u,l,c){var d,f=this,h=t.guid(o+"_"),p=c||"browser";n=n||{},a[h]=this,u=t.extend({access_binary:!1,access_image_binary:!1,display_media:!1,do_cors:!1,drag_and_drop:!1,filter_by_extension:!0,resize_image:!1,report_upload_progress:!1,return_response_headers:!1,return_response_type:!1,return_status_code:!0,send_custom_headers:!1,select_file:!1,select_folder:!1,select_multiple:!0,send_binary_string:!1,send_browser_cookies:!0,send_multipart:!0,slice_blob:!1,stream_upload:!1,summon_file_dialog:!1,upload_filesize:!0,use_http_method:!0},u),n.preferred_caps&&(p=r.getMode(l,n.preferred_caps,p)),s&&e.debug.runtime&&e.log("\tdefault mode: %s",p),d=function(){var e={};return{exec:function(t,i,n,r){if(d[i]&&(e[t]||(e[t]={context:this,instance:new d[i]}),e[t].instance[n]))return e[t].instance[n].apply(this,r)},removeInstance:function(t){delete e[t]},removeAllInstances:function(){var i=this;t.each(e,function(e,n){"function"===t.typeOf(e.instance.destroy)&&e.instance.destroy.call(e.context),i.removeInstance(n)})}}}(),t.extend(this,{initialized:!1,uid:h,type:o,mode:r.getMode(l,n.required_caps,p),shimid:h+"_container",clients:0,options:n,can:function(e,i){var n=arguments[2]||u;if("string"===t.typeOf(e)&&"undefined"===t.typeOf(i)&&(e=r.parseCaps(e)),"object"===t.typeOf(e)){for(var o in e)if(!this.can(o,e[o],n))return!1;return!0}return"function"===t.typeOf(n[e])?n[e].call(this,i):i===n[e]},getShimContainer:function(){var e,n=i.get(this.shimid);return n||(e=i.get(this.options.container)||document.body,n=document.createElement("div"),n.id=this.shimid,n.className="moxie-shim moxie-shim-"+this.type,t.extend(n.style,{position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),e.appendChild(n),e=null),n},getShim:function(){return d},shimExec:function(e,t){var i=[].slice.call(arguments,2);return f.getShim().exec.call(this,this.uid,e,t,i)},exec:function(e,t){var i=[].slice.call(arguments,2);return f[e]&&f[e][t]?f[e][t].apply(this,i):f.shimExec.apply(this,arguments)},destroy:function(){if(f){var e=i.get(this.shimid);e&&e.parentNode.removeChild(e),d&&d.removeAllInstances(),this.unbindAll(),delete a[this.uid],this.uid=null,h=f=d=e=null}}}),this.mode&&n.required_caps&&!this.can(n.required_caps)&&(this.mode=!1)}var o={},a={};return r.order="html5,flash,silverlight,html4",r.getRuntime=function(e){return!!a[e]&&a[e]},r.addConstructor=function(e,t){t.prototype=n.instance,o[e]=t},r.getConstructor=function(e){return o[e]||null},r.getInfo=function(e){var t=r.getRuntime(e);return t?{uid:t.uid,type:t.type,mode:t.mode,can:function(){return t.can.apply(t,arguments)}}:null},r.parseCaps=function(e){var i={};return"string"!==t.typeOf(e)?e||{}:(t.each(e.split(","),function(e){i[e]=!0}),i)},r.can=function(e,t){var i,n,o=r.getConstructor(e);return!!o&&(i=new o({required_caps:t}),n=i.mode,i.destroy(),!!n)},r.thatCan=function(e,t){var i=(t||r.order).split(/\s*,\s*/);for(var n in i)if(r.can(i[n],e))return i[n];return null},r.getMode=function(i,n,r){var o=null;if("undefined"===t.typeOf(r)&&(r="browser"),n&&!t.isEmptyObj(i)){if(t.each(n,function(n,r){if(i.hasOwnProperty(r)){var a=i[r](n);if("string"==typeof a&&(a=[a]),o){if(!(o=t.arrayIntersect(o,a)))return s&&e.debug.runtime&&e.log("\t\t%c: %v (conflicting mode requested: %s)",r,n,a),o=!1}else o=a}s&&e.debug.runtime&&e.log("\t\t%c: %v (compatible modes: %s)",r,n,o)}),o)return t.inArray(r,o)!==-1?r:o[0];if(o===!1)return!1}return r},r.capTrue=function(){return!0},r.capFalse=function(){return!1},