-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
51 lines (51 loc) · 67 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
webpackJsonp([1,0],[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}n(46),n(55);var r=n(1),a=i(r),s=n(30),o=i(s),l=n(26),c=i(l),u=n(27),h=i(u),d=n(28),f=i(d),p=n(31),g=i(p),m=n(29),v=i(m),y=n(25),b=i(y),x={init:function(){var t=location.hash.slice(1);this.initComponent(t)},initComponent:function(t){switch(t){case"tab":this.initTab();break;case"dialog":this.initDialog();break;case"loading":this.initLoading();break;case"notice":this.initNotice();break;case"toast":this.initToast();break;case"page-result":this.initPageResult();break;case"carousel":this.initCarousel()}},initTab:function(){var t=new o["default"]({data:[{text:"\u6807\u7b7e\u680f1"},{text:"\u6807\u7b7e\u680f2"},{text:"\u6807\u7b7e\u680f3",selected:!0}],onSelected:function(t,e){console.log(t,e)}});t.render("#J_TabBox",function(t){console.log(t)})},initDialog:function(){var t=[{type:"simage",content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",title:"\u6807\u9898\u6587\u5b57",imgUrl:"https://os.alipayobjects.com/rmsportal/QnFHZkFYDZUJqBD.png",mask:!0},{type:"image",closeAble:function(){var t=this.get("cancel");t&&t.call(this)},topTitle:!0,buttons:[{id:"cancel",cls:"am-button blue",text:"\u884c\u52a8\u6309\u94ae",handler:function(){var t=this.get("cancel");t&&t.call(this)}}],content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",title:"\u6807\u9898\u6587\u5b57",imgUrl:"https://os.alipayobjects.com/rmsportal/QnFHZkFYDZUJqBD.png",mask:!0},{type:"image",closeAble:function(){var t=this.get("cancel");t&&t.call(this)},buttons:[{id:"cancel",cls:"am-button blue",text:"\u884c\u52a8\u6309\u94ae",handler:function(){var t=this.get("cancel");t&&t.call(this)}}],content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",title:"\u6807\u9898\u6587\u5b57",imgUrl:"https://os.alipayobjects.com/rmsportal/QnFHZkFYDZUJqBD.png",mask:!0},{type:"image",closeAble:function(){var t=this.get("cancel");t&&t.call(this)},buttons:[{id:"cancel",cls:"am-button blue",text:"\u884c\u52a8\u6309\u94ae",handler:function(){var t=this.get("cancel");t&&t.call(this)}}],content:'\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57<a class="am-dialog-outlink">\u67e5\u770b\u300a\u534f\u8bae\u300b</a>',title:"\u6807\u9898\u6587\u5b57",imgUrl:"https://os.alipayobjects.com/rmsportal/QnFHZkFYDZUJqBD.png",mask:!0},{content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",title:"\u6807\u9898\u6587\u5b57",mask:!0},{content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",mask:!0},{title:"\u6807\u9898\u6587\u5b57",mask:!0},{content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",title:"\u6807\u9898\u6587\u5b57",mask:!0,buttons:[{id:"cancel",cls:"am-dialog-button",text:"\u884c\u52a8\u6309\u94ae",handler:function(){var t=this.get("cancel");t&&t.call(this)}}]},{content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",title:"\u6807\u9898\u6587\u5b57",mask:!0,buttons:[{id:"cancel",cls:"am-dialog-button",text:"\u53d6\u6d88",handler:function(){var t=this.get("cancel");t&&t.call(this)}},{id:"ok",cls:"am-dialog-button",text:"\u786e\u8ba4",disabled:!0,handler:function(t){var e=this.get("cancel");e&&e.call(this)}}]},{value:"1",title:"\u6807\u9898\u6587\u5b57"},{footCls:"selection",content:"\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57\u8f85\u52a9\u8bf4\u660e\u6587\u5b57",title:"\u6807\u9898\u6587\u5b57",mask:!0,buttons:[{id:"cancel",cls:"am-dialog-button",text:"\u9009\u9879\u4e00",handler:function(){var t=this.get("cancel");t&&t.call(this)}},{id:"ok",cls:"am-dialog-button",text:"\u9009\u9879\u4e8c",handler:function(t){var e=this.get("cancel");e&&e.call(this)}},{id:"ok",cls:"am-dialog-button",text:"\u9009\u9879\u4e09",handler:function(t){var e=this.get("cancel");e&&e.call(this)}}]}];(0,a["default"])(document).on("tap",".J_ShowDialog",function(e){var n=(0,a["default"])(e.currentTarget),i=n.data("index");"9"==i?c["default"].Prompt.show(t[i]):new c["default"](t[i]).show()})},initLoading:function(){var t=new h["default"]({type:"page",data:{text:"\u6b63\u5728\u52a0\u8f7d..."}});t.render("#J_PageLoading");var e=new h["default"];e.render("#J_Loading")},initNotice:function(){new f["default"]({type:"notice",data:{title:"\u56e0\u5168\u56fd\u516c\u6c11\u8eab\u4efd\u7cfb\u7edf\u5347\u7ea7\uff0c\u6dfb\u52a0\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6",buttons:[{type:"close",handler:function(t){console.log(t)}}]}}).render("#J_Notice"),new f["default"]({type:"notice",data:{title:"\u56e0\u5168\u56fd\u516c\u6c11\u8eab\u4efd\u7cfb\u7edf\u5347\u7ea7\uff0c\u6dfb\u52a0\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6",buttons:[{type:"go"}]}}).render("#J_Notice1"),new f["default"]({type:"notice",data:{title:"\u56e0\u5168\u56fd\u516c\u6c11\u8eab\u4efd\u7cfb\u7edf\u5347\u7ea7\uff0c\u6dfb\u52a0\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6"}}).render("#J_Notice2"),new f["default"]({type:"inform",data:{title:"\u56e0\u5168\u56fd\u516c\u6c11\u8eab\u4efd\u7cfb\u7edf\u5347\u7ea7\uff0c\u6dfb\u52a0\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6",buttons:[{type:"button",text:"\u77e5\u9053\u4e86",handler:function(t){console.log(t)}}]}}).render("#J_Inform"),new f["default"]({type:"inform",data:{title:"\u56e0\u5168\u56fd\u516c\u6c11\u8eab\u4efd\u7cfb\u7edf\u5347\u7ea7\uff0c\u6dfb\u52a0\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6",buttons:[{type:"go"}]}}).render("#J_Inform1"),new f["default"]({type:"inform",data:{title:"\u56e0\u5168\u56fd\u516c\u6c11\u8eab\u4efd\u7cfb\u7edf\u5347\u7ea7\uff0c\u6dfb\u52a0\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6"}}).render("#J_Inform2")},initToast:function(){var t=new g["default"]({content:"\u81ea\u5b9a\u4e49\u4e1a\u52a1\u6587\u6848\u6700\u591a14\u4e2a\u5b57\u7b26"});t.show(),(0,a["default"])("#J_Toast").on("click",function(){t.update({content:"\u5931\u8d25",type:"fail"})}),(0,a["default"])("#J_Toast1").on("click",function(){t.update({content:"\u6210\u529f",type:"success"})}),(0,a["default"])("#J_Toast2").on("click",function(){t.update({content:"\u7f51\u7edc\u4e0d\u7ed9\u529b",type:"network"})}),(0,a["default"])("#J_Toast3").on("click",function(){t.update({content:"\u8b66\u793a",type:"warn"})}),(0,a["default"])("#J_Toast4").on("click",function(){t.update({content:"\u52a0\u8f7d\u4e2d...",type:"loading"})}),(0,a["default"])("#J_Toast5").on("click",function(){t.update({hideDelay:3e3,content:"\u81ea\u5b9a\u4e49\u4e1a\u52a1\u6587\u6848\u6700\u591a14\u4e2a\u5b57\u7b26"})})},initPageResult:function(){new v["default"]({type:"no-network",data:{title:"\u7f51\u7edc\u4e0d\u7ed9\u529b",brief:"\u4e16\u754c\u4e0a\u6700\u9065\u8fdc\u7684\u8ddd\u79bb\u83ab\u8fc7\u4e8e\u6b64",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult",function(t){console.log(t)}),new v["default"]({type:"network",data:{title:"\u7f51\u7edc\u65e0\u6cd5\u8fde\u63a5",brief:"\u803d\u8bef\u60a8\u7684\u65f6\u5019\uff0c\u6211\u4eec\u6df1\u611f\u6b49\u610f",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult1",function(t){console.log(t)}),new v["default"]({type:"error",data:{title:"\u7cfb\u7edf\u51fa\u9519\uff0c\u6b63\u5728\u6392\u67e5",brief:"\u803d\u8bef\u60a8\u7684\u65f6\u5019\uff0c\u6211\u4eec\u6df1\u611f\u6b49\u610f"}}).render("#J_PageResult2",function(t){console.log(t)}),new v["default"]({type:"busy",data:{title:"\u7cfb\u7edf\u6b63\u5fd9\uff0c\u7a0d\u5019\u518d\u8bd5",brief:"\u803d\u8bef\u60a8\u7684\u65f6\u5019\uff0c\u6211\u4eec\u6df1\u611f\u6b49\u610f",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult3",function(t){console.log(t)}),new v["default"]({type:"error",data:{title:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a14\u4e2a\u5b57\u7b26",brief:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a\u4e24\u884c\uff0c\u53ef\u4e0d\u8981\u8f85\u52a9\u6587\u6848",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult4",function(t){console.log(t)}),new v["default"]({type:"err",data:{title:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a14\u4e2a\u5b57\u7b26",brief:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a\u4e24\u884c\uff0c\u53ef\u4e0d\u8981\u8f85\u52a9\u6587\u6848",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult5",function(t){console.log(t)}),new v["default"]({type:"error",data:{title:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a14\u4e2a\u5b57\u7b26",brief:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a\u4e24\u884c\uff0c\u53ef\u4e0d\u8981\u8f85\u52a9\u6587\u6848",buttons:[{text:"\u64cd\u4f5c\u9009\u9879\u4e00",handler:function(t){console.log(t)}},{text:"\u64cd\u4f5c\u9009\u9879\u4e8c",handler:function(t){console.log(t)}}]}}).render("#J_PageResult6",function(t){console.log(t)}),new v["default"]({type:"err",data:{title:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a14\u4e2a\u5b57\u7b26",brief:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a\u4e24\u884c\uff0c\u53ef\u4e0d\u8981\u8f85\u52a9\u6587\u6848",buttons:[{text:"\u64cd\u4f5c\u9009\u9879\u4e00",handler:function(t){console.log(t)}},{text:"\u64cd\u4f5c\u9009\u9879\u4e8c",handler:function(t){console.log(t)}}]}}).render("#J_PageResult7",function(t){console.log(t)}),new v["default"]({type:"blank",data:{title:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a14\u4e2a\u5b57\u7b26",brief:"\u4e1a\u52a1\u81ea\u5b9a\u4e49\u6587\u6848\u6700\u591a\u4e24\u884c\uff0c\u53ef\u4e0d\u8981\u8f85\u52a9\u6587\u6848",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult8",function(t){console.log(t)}),new v["default"]({type:"empty",data:{title:"\u7a7a\u767d\u9875",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult9",function(t){console.log(t)}),new v["default"]({type:"nofound",data:{title:"404",buttons:[{text:"\u5237\u65b0",handler:function(t){console.log(t)}}]}}).render("#J_PageResult10",function(t){console.log(t)})},initCarousel:function(){new b["default"]({hasTrigger:!0,play:!0,interval:2e3,loop:!0,lazyimg:"http://a.tbcdn.cn/mw/webapp/fav/img/grey.gif",data:[{href:"https://www.alipay.com",img:"https://t.alipayobjects.com/images/rmsweb/T1UshgXipgXXXXXXXX.jpg"},{href:"https://www.alipay.com",img:"https://t.alipayobjects.com/images/rmsweb/T1XHtgXahxXXXXXXXX.jpg"},{href:"https://www.alipay.com",img:"https://t.alipayobjects.com/images/rmsweb/T1dbRgXdlqXXXXXXXX.jpg"}]}).render("#J_CarouselBox"),new b["default"]({type:"small",hasTrigger:!0,play:!0,interval:5e3,loop:!0,visible:3,lazyimg:"http://a.tbcdn.cn/mw/webapp/fav/img/grey.gif",data:[{href:"https://www.alipay.com",img:"http://gtms04.alicdn.com/tps/i4/T1QVNSFMXaXXaZVCTS-300-100.png"},{href:"https://www.alipay.com",img:"http://gtms04.alicdn.com/tps/i4/T1QVNSFMXaXXaZVCTS-300-100.png"},{href:"https://www.alipay.com",img:"http://gtms04.alicdn.com/tps/i4/T1QVNSFMXaXXaZVCTS-300-100.png"},{href:"https://www.alipay.com",img:"http://gtms04.alicdn.com/tps/i4/T1QVNSFMXaXXaZVCTS-300-100.png"},{href:"https://www.alipay.com",img:"http://gtms04.alicdn.com/tps/i4/T1QVNSFMXaXXaZVCTS-300-100.png"},{href:"https://www.alipay.com",img:"http://gtms04.alicdn.com/tps/i4/T1QVNSFMXaXXaZVCTS-300-100.png"}]}).render("#J_Carousel")}},w=navigator.userAgent.indexOf("AlipayClient")>-1||navigator.userAgent.indexOf("AliApp(AP")>-1,_=function(){w?(document.addEventListener("back",function(t){t.preventDefault(),"block"==(0,a["default"])(".widget-list-panel").css("display")?AlipayJSBridge.call("popWindow"):E()},!1),(0,a["default"])(document).on("click",".widget-wrap",function(t){t.preventDefault();var e=(0,a["default"])(t.currentTarget);k(e.attr("href"))})):(0,a["default"])(window).on("hashchange",function(t){k(location.hash)}),k(location.hash)},k=function(t){console.log(t);var e=(0,a["default"])(".widget-list-panel"),n=(0,a["default"])(".widget-demo-show-panel");if(!t)return void E();t=t.substr(1,t.length);var i=(0,a["default"])("#tpl-"+t.toLocaleString());return 0==i.length?void E():(n.append(i.html()).show(),e.hide(),i=null,(0,a["default"])("body").scrollTop(0),void x.init())},E=function(){var t=(0,a["default"])(".widget-list-panel"),e=(0,a["default"])(".widget-demo-show-panel");e.hide(),t.show(),e.html("")};!w||window.AlipayJSBridge?_():document.addEventListener("AlipayJSBridgeReady",function(){_()},!1)},function(t,e,n){var i=n(2);n(3),n(17),n(23),t.exports=i},function(t,e,n){var i=n(21);t.exports=i},function(t,e,n){var i=n(22);t.exports=i},function(t,e,n){t.exports=n(10)},function(t,e){"use strict";function n(t,e){var n=e.context;if(e.beforeSend&&e.beforeSend.call(n,t,e)===!1)return!1}function i(t,e,n,i){var r=n.context,s="success";n.success&&n.success.call(r,t,s,e),i&&i.resolveWith(r,[t,s,e]),a(s,e,n)}function r(t,e,n,i,r){var s=i.context;i.error&&i.error.call(s,n,e,t),r&&r.rejectWith(s,[n,e,t]),a(e,n,i)}function a(t,e,n){var i=n.context;n.complete&&n.complete.call(i,e,t)}t.exports={ajaxBeforeSend:n,ajaxSuccess:i,ajaxError:r}},function(t,e,n){var i=n(2);n(3),t.exports=i},function(t,e,n){"use strict";function i(t){return"string"==typeof t}function r(t,e,n){return t.replace(n||/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})}function a(t){var e=t.imgUrl,n=t.closeAble,i=t.type||"",r=t.topTitle,a=t.footCls||"",s="";return s+='<div class="'+l+" "+i+'">',s+='<div class="am-dialog-wrap">',!r&&e&&(s+='<div class="'+d+'"></div>'),s+='<div class="'+c+'">',s+="<h3></h3>",s+="</div>",r&&e&&(s+='<div class="'+d+'"></div>'),s+='<div class="'+u+'">',s+='<p class="am-dialog-brief"></p>',s+='</div><div class="'+h+" "+a+'">',s+="</div>",n&&(s+='<a class="'+f+'"></a>'),s+="</div></div>"}var s=n(1),o=n(11),l="am-dialog",c=l+"-header",u=l+"-body",h=l+"-footer",d=l+"-img",f=l+"-close",p=o.extend({attrs:{buttons:[{id:"cancel",cls:"am-dialog-button cancel",text:"\u53d6\u6d88",handler:function(){var t=this.get("cancel");t&&t.call(this)}},{id:"ok",cls:"am-dialog-button",text:"\u786e\u8ba4",handler:function(){var t=this.get("success");t&&t.call(this)}}],content:"",className:"",title:"",success:function(){this.hide()},cancel:function(){this.hide()},effect:"none",x:-999,y:-999,xy:{},zIndex:99,mask:!1,maskNode:null,maskEl:null,maskTpl:'<div class="am-mask" style="width:100%;height:100%;top:0;left:0;"></div>',duration:400,easing:"none",direction:"up",align:{type:"center"},btnTpl:'<button type="button" class="{cls}">{text}</button>',template:""},initialize:function(t){this.attrs=s.extend({},this.attrs,t),this.set("template",a(t)),p.superclass.initialize.call(this)},_onRenderTitle:function(t){var e=this,n=e.element;n.find("."+c+" h3").html(t)},_onRenderContent:function(t){var e=this,n=e.element,r=n.find("."+u),a=n.find("."+u+" .am-dialog-brief");return t?(r.show(),a.html(""),void(i(t)&&!/^[.#]/.test(t)?a.html(t):s(t).appendTo(a))):void r.hide()},_onRenderCloseAble:function(t){var e=this,n=e.element;t?n.find("."+f).show():n.find("."+f).hide(),t&&s("."+f).on("click",function(){t.call(e)})},_onRenderImgUrl:function(t){var e=this,n=e.element;t||n.find("."+d).hide();var i=document.createElement("img");s(i).attr("src",t),n.find("."+d).html(i)},show:function(){this.element.css("position","fixed"),this.element.addClass("show"),p.superclass.show.call(this)},_onRenderButtons:function(t){var e=this,n=e.element.find("."+h),i=e.get("btnTpl");n.html(""),s.each(t,function(t,a){var o=r(i,a),l=s(o).appendTo(n);a.disabled&&l.attr("disabled","disabled"),a.id&&e.set(a.id+"Btn",l),a.handler&&l.on("click",function(){a.handler.call(e)})})}});t.exports=p},function(t,e,n){"use strict";var i=n(2);n(3);var r={init:function(t){function e(t){s.handler.touchmove(t)}function n(t){s.handler.touchend(t),document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",n,!1),document.removeEventListener("touchcancel",r,!1)}function r(t){s.handler.touchcancel(t),document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",n,!1),document.removeEventListener("touchcancel",r,!1)}var a=this,s=a[t],o=function(a){var o=i(a);o.data(t)||o.data(t,1).forEach(function(t){t.addEventListener("touchstart",function(t){s.handler.touchstart(t),document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",n,!1),document.addEventListener("touchcancel",r,!1)},!1)})};s.events.forEach(function(t){a.list[t]=o,i.fn[t]=function(e){return this.on(t,e)}})},list:{}};i.gestures=r,t.exports=i},function(t,e,n){"use strict";var i=n(1),r=n(7),a=r.extend({_onRenderMessage:function(t){this.set("content",t)},_onRenderOkButton:function(t){if(this.rendered){var e=this.get("okBtn");e&&e.text(t)}},_onRenderCancelButton:function(t){if(this.rendered){var e=this.get("cancelBtn");e&&e.text(t)}}}),s=null;a.show=function(t,e){if(s||(s=new a(i.extend({},{message:"",okButton:"",cancelButton:"",className:"",callback:null,mask:!0,success:function(){var t=this.get("callback");t&&t({ok:!0}),this.hide()},cancel:function(){var t=this.get("callback");t&&t({ok:!1}),this.hide()}},t)),s.show()),t)for(var n in t)t.hasOwnProperty(n)&&s.set(n,t[n]);return s.set("callback",e),s.show(),s},a.hide=function(){s&&s.hide()},t.exports=a},function(t,e){function n(t){if(l(t))return i(t).implement({initialize:t})}function i(t){return s(t,n),t.extend=a,t.implement=r,t}function r(t){Array.isArray(t)||(t=[t]);for(var e,n=this.prototype;e=t.shift();)o(n,e.prototype||e);return this}function a(t){var e=n.create(t);return s(e,this),o(e,this,["extend","implement","superclass"]),e}function s(t,e){var n=t.prototype,i=Object.create(e.prototype);o(i,n),i.constructor=t,t.prototype=i,t.superclass=e.prototype}function o(t,e,n){for(var i in e)if(e.hasOwnProperty(i)){if(n&&n.indexOf(i)!==-1)continue;t[i]=e[i]}}function l(t){return"[object Function]"===Object.prototype.toString.call(t)}t.exports=n,n.create=function(t){function e(){this.constructor===e&&this.initialize&&this.initialize.apply(this,arguments)}return t||(t={}),i(e),e.implement(t),e}},function(t,e,n){"use strict";t.exports=n(15)},function(t,e,n){"use strict";var i=n(6),r=function(){};r.ATTRS={align:null},r.prototype={getAlignPoint:function(t){var e=this,n=null;if(t=t||e.get("align")){e.element.css("position","fixed"),e.element.attr("am-mode","show");var r=t.offset,a=t.type,s=r?r[0]:0,o=r?r[1]:0,l=i(window).height(),c=e.element.height(),u=e.element.width(),h=i(window).width();switch(a){case"top":n={x:s,y:o};break;case"bottom":n={x:s,y:o+l-c};break;case"left":n={x:s,y:o};break;case"right":n={x:s+h-u,y:o};break;case"center":n={x:s+(h-u)/2,y:o+(l-c)/2}}}return n},_onRenderAlign:function(t){this.rendered&&this.resetAlign(t)},resetAlign:function(t){var e=this,n=e.getAlignPoint(t);n&&e.set("xy",[n.x,n.y])}},t.exports=r},function(t,e){"use strict";function n(t,e){t.addEventListener(a,e,!1)}function i(t,e){t.removeEventListener(a,e,!1)}function r(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}var a="webkitAnimationEnd",s={up:"down",down:"up",left:"left",right:"right"},o=function(){};o.ATTRS={duration:400,easing:"linear",direction:"up"},o.prototype={_getAnimName:function(t,e){var n,i=this,a=t+r(e);return"slide"==t&&(n=i.get("direction"),a+=r("in"==e?n:s[n])),a},animateEffectIn:function(t){var e=this,n={"-webkit-animation-name":e._getAnimName(t,"in")};e.set("visible",!0),e.set("closing",!1),e.animate(n,null,!0)},animateEffectOut:function(t){function e(){n.get("closing")&&(n.set("visible",!1),n.set("closing",!1))}var n=this,i={"-webkit-animation-name":n._getAnimName(t,"out")};n.set("closing",!0),n.animate(i,e,!0)},animate:function(t,e){function r(t){t.target==a.element[0]&&(a.offAnimate(),i(s[0],r),e&&e())}var a=this,s=a.element;n(s[0],r),a.applyAnimate(),s.css(t)},applyAnimate:function(){var t=this,e=t.element;e.css(t.getAnimateStyle())},offAnimate:function(){this.element.css({"-webkit-animation":"none"})},getAnimateStyle:function(){var t=this,e=t.get("duration");return{"-webkit-animation-duration":e+"ms ","-webkit-animation-timing-function":t.get("easing")}}},t.exports=o},function(t,e,n){"use strict";var i=n(6),r="am-mask-relative",a=function(){};a.ATTRS={mask:!1,maskNode:null,maskEl:null,maskTpl:'<div class="am-mask" style="width:100%;height:100%;top:0;left:0;"></div>'},a.prototype={showMask:function(){var t=this,e=t.get("maskNode")||"body",n=t.get("zIndex"),a=t.get("maskEl");if(!a){a=i(t.get("maskTpl")).appendTo(e);var s="body"==e?"fixed":"absolute";a.css("position",s),n&&a.css("zIndex",n-1),t.set("maskEl",a)}i(e).addClass(r),a.show()},hideMask:function(){var t=this,e=t.get("maskNode")||"body",n=t.get("maskEl");n&&(n.hide(),i(e).removeClass(r))},destroyMask:function(){var t=this,e=t.get("maskNode")||"body",n=t.get("maskEl");n&&(n.remove(),i(e).removeClass(r))}},t.exports=a},function(t,e,n){"use strict";function i(t){return!!(16&document.documentElement.compareDocumentPosition(t))}function r(t){return null==t||void 0===t}function a(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}n(47);var s=n(6),o=n(4),l=n(16),c=n(13),u=n(12),h=n(14),d="_onRender",f=o.create({attrs:s.extend({},l.ATTRS,h.ATTRS,c.ATTRS,u.ATTRS,{width:null,height:null,visible:!1,className:"am-pop",effect:"none"})});f.implement([l.prototype,h.prototype,c.prototype,u.prototype,{initialize:function(t){this.attrs=s.extend({},this.attrs,t),this.parseElement(),this._initElement(),this.processMask(),this._isTemplate=!(t&&t.element)},parseElement:function(){var t=this.get("element");if(t?this.element=s(t):this.get("template")&&(this.element=s(this.get("template"))),!this.element||!this.element[0])throw new Error("element is invalid")},render:function(){this.rendered||(this._renderAndBindAttrs(),this.rendered=!0);var t=this.get("parentNode");return t&&!i(this.element[0])&&this.element.appendTo(t),this._onRenderAlign(this.attrs.align),this},_initElement:function(){var t=this,e=t.element;t._isTemplate||e.appendTo("body"),t.get("visible")||e.css("visibility","hidden")},processMask:function(){var t=this,e=s(this);t.get("mask")&&(e.on("show",function(){t.showMask()}),e.on("hide",function(){t.hideMask()}))},_renderAndBindAttrs:function(){var t=this,e=t.attrs;for(var n in e)if(e.hasOwnProperty(n)){var i=d+a(n);if(this[i]){var s=this.get(n);r(s)||this[i](s,void 0,n)}}},show:function(){var t=this,e=t.get("effect");this.rendered||this.render(),"none"==e?t.set("visible",!0):t.animateEffectIn(e),s(t).trigger("show")},hide:function(){var t=this,e=t.get("effect");return!(t.get("visible")&&!t.get("closing"))||("none"==e?t.set("visible",!1):t.animateEffectOut(e),void s(t).trigger("hide"))},_onRenderWidth:function(t){this.element.css("width",t)},_onRenderHeight:function(t){this.element.css("height",t)},_onRenderZIndex:function(t){this.element.css("zIndex",t)},_onRenderVisible:function(t){var e=t?"visible":"hidden";this.element.css("visibility",e),t?s(this).trigger("show"):s(this).trigger("hide")},_onRenderClassName:function(t){this.element.addClass(t)},destroy:function(t){var e=this;e.get("mask")&&(e.hideMask(),e.destroyMask()),this.element&&(this.element.off(),this.element.remove()),this.element=null},get:function(t){return void 0===this.attrs[t]?null:this.attrs[t]},set:function(t,e){return this.attrs[t]=e,this[d+a(t)]&&this[d+a(t)](e),this}}]),t.exports=f},function(t,e){"use strict";var n=function(){};n.ATTRS={x:-999,y:-999,xy:{},zIndex:99},n.prototype={_onRenderX:function(t){null!=t&&this.element.css("left",t)},_onRenderY:function(t){null!=t&&this.element.css("top",t)},_onRenderZIndex:function(t){null!=t&&this.element.css("zIndex",t)},_onRenderXy:function(t){this.set("x",t[0]),this.set("y",t[1])}},t.exports=n},function(t,e,n){var i=n(18);t.exports=i},function(t,e,n){"use strict";var i=n(2);n(5);n(3),n(19),n(20),t.exports=i},function(t,e,n){"use strict";var i=n(2),r=n(5);n(3);var a=0,s=window.document,o=r.ajaxBeforeSend,l=r.ajaxSuccess,c=r.ajaxError;i.ajaxJSONP=function(t,e){if(!("type"in t))return i.ajax&&i.ajax(t);var n,r,u=t.jsonpCallback,h=(i.isFunction(u)?u():u)||"jsonp"+ ++a,d=s.createElement("script"),f=window[h],p=function(t){i(d).triggerHandler("error",t||"abort")},g={abort:p};return e&&e.promise(g),i(d).on("load error",function(a,s){clearTimeout(r),i(d).off().remove(),"error"!=a.type&&n?l(n[0],g,t,e):c(null,s||"error",g,t,e),window[h]=f,n&&i.isFunction(f)&&f(n[0]),f=n=void 0}),o(g,t)===!1?(p("abort"),g):(window[h]=function(){n=arguments},d.src=t.url.replace(/\?(.+)=\?/,"?$1="+h),s.head.appendChild(d),t.timeout>0&&(r=setTimeout(function(){p("timeout")},t.timeout)),g)},t.exports=i},function(t,e,n){"use strict";function i(){}function r(t){return t&&(t=t.split(";",2)[0]),t&&(t==v?"html":t==m?"json":p.test(t)?"script":g.test(t)&&"xml")||"text"}function a(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function s(t){t.processData&&t.data&&"string"!=c.type(t.data)&&(t.data=c.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()||(t.url=a(t.url,t.data),t.data=void 0)}function o(t,e,n,i){return c.isFunction(e)&&(i=n,n=e,e=void 0),c.isFunction(n)||(i=n,n=void 0),{url:t,data:e,success:n,dataType:i}}function l(t,e,n,i){var r,a=c.isArray(e),s=c.isPlainObject(e);c.each(e,function(e,o){r=c.type(o),i&&(e=n?i:i+"["+(s||"object"==r||"array"==r?e:"")+"]"),!i&&a?t.add(o.name,o.value):"array"==r||!n&&"object"==r?l(t,o,n,e):t.add(e,o)})}var c=n(2),u=n(5);n(3);var h,d,f=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,p=/^(?:text|application)\/javascript/i,g=/^(?:text|application)\/xml/i,m="application/json",v="text/html",y=/^\s*$/,b=u.ajaxBeforeSend,x=u.ajaxSuccess,w=u.ajaxError;c.ajaxSettings={type:"GET",beforeSend:i,success:i,error:i,complete:i,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:m,xml:"application/xml, text/xml",html:v,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},c.ajax=function(t){var e=c.extend({},t||{}),n=c.Deferred&&c.Deferred();for(h in c.ajaxSettings)void 0===e[h]&&(e[h]=c.ajaxSettings[h]);e.crossDomain||(e.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(e.url)&&RegExp.$2!=window.location.host),e.url||(e.url=window.location.toString()),s(e),e.cache===!1&&(e.url=a(e.url,"_="+Date.now()));var o=e.dataType,l=/\?.+=\?/.test(e.url);if("jsonp"==o||l)return l||(e.url=a(e.url,e.jsonp?e.jsonp+"=?":e.jsonp===!1?"":"callback=?")),c.ajaxJSONP(e,n);var u,f=e.accepts[o],p={},g=function(t,e){p[t.toLowerCase()]=[t,e]},m=/^([\w-]+:)\/\//.test(e.url)?RegExp.$1:window.location.protocol,v=e.xhr(),_=v.setRequestHeader;if(n&&n.promise(v),e.crossDomain||g("X-Requested-With","XMLHttpRequest"),g("Accept",f||"*/*"),f&&(f.indexOf(",")>-1&&(f=f.split(",",2)[0]),v.overrideMimeType&&v.overrideMimeType(f)),(e.contentType||e.contentType!==!1&&e.data&&"GET"!=e.type.toUpperCase())&&g("Content-Type",e.contentType||"application/x-www-form-urlencoded"),e.headers)for(d in e.headers)g(d,e.headers[d]);v.setRequestHeader=g;var k=!("async"in e)||e.async;if(v.open(e.type,e.url,k),v.onreadystatechange=function(){if(4==v.readyState){v.onreadystatechange=i,clearTimeout(u);var t,a=!1;if(v.status>=200&&v.status<300||304==v.status||0==v.status&&"file:"==m){o=o||r(v.getResponseHeader("content-type")),t=v.responseText;try{"script"==o?(0,eval)(t):"xml"==o?t=v.responseXML:"json"==o&&(t=y.test(t)?null:c.parseJSON(t))}catch(s){a=s}a?w(a,"parsererror",v,e,n):x(t,v,e,n)}else w(v.statusText||null,v.status?"error":"abort",v,e,n)}},b(v,e)===!1)return v.abort(),w(null,"abort",v,e,n),v;for(d in p)_.apply(v,p[d]);return e.timeout>0&&(v.timeout=e.timeout,v.ontimeout=function(){v.onreadystatechange=i,v.abort(),w(null,"timeout",v,e,n)}),v.send(e.data?e.data:null),v},c.get=function(){return c.ajax(o.apply(null,arguments))},c.post=function(){var t=o.apply(null,arguments);return t.type="POST",c.ajax(t)},c.getJSON=function(){var t=o.apply(null,arguments);return t.dataType="json",c.ajax(t)},c.fn.load=function(t,e,n){if(!this.length)return this;var i,r=this,a=t.split(/\s/),s=o(t,e,n),l=s.success;return a.length>1&&(s.url=a[0],i=a[1]),s.success=function(t){r.html(i?c("<div>").html(t.replace(f,"")).find(i):t),l&&l.apply(r,arguments)},c.ajax(s),this};var _=encodeURIComponent;c.param=function(t,e){var n=[];return n.add=function(t,e){this.push(_(t)+"="+_(e))},l(n,t,e),n.join("&").replace(/%20/g,"+")},t.exports=c},function(t,e){"use strict";var n=function(){function t(t){return null==t?String(t):N[j.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function i(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function r(e){return"object"==t(e)}function a(t){return r(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function s(t){return"number"==typeof t.length}function o(t){return E.call(t,function(t){return null!=t})}function l(t){return t.length>0?y.fn.concat.apply([],t):t}function c(t){return t in A?A[t]:A[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function u(t){return"children"in t?k.call(t.children):y.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function h(t,e){return null==e?y(t):y(t).filter(e)}function d(t,n,i,r){return e(n)?n.call(t,i,r):n}function f(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function p(t,e){var n=t.className,i=n&&n.baseVal!==m;return e===m?i?n.baseVal:n:void(i?n.baseVal=e:t.className=e)}function g(t){var e;try{return t?"true"==t||"false"!=t&&("null"==t?null:/^0/.test(t)||isNaN(e=Number(t))?/^[\[\{]/.test(t)?y.parseJSON(t):t:e):t}catch(n){return t}}var m,v,y,b,x,w,_=[],k=_.slice,E=_.filter,T=window,C=T.document,S={},A={},R=/^\s*<(\w+|!)[^>]*>/,N={},j=N.toString,P={},X=Array.isArray;return P.matches=function(t,e){var n=C.createElement("div");if(!e||!t||1!==t.nodeType)return!1;var i=t.webkitMatchesSelector||t.matchesSelector;if(i)return i.call(t,e);var r,a=t.parentNode,s=!a;return s&&(a=n).appendChild(t),r=~P.qsa(a,e).indexOf(t),s&&n.removeChild(t),r},x=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},w=function(t){return E.call(t,function(e,n){return t.indexOf(e)==n})},P.fragment=function(t,e){var n,i,r=C.createElement("table"),a=C.createElement("tr"),s={tr:C.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:a,th:a,"*":C.createElement("div")},o=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,l=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;return l.test(t)&&(n=y(C.createElement(RegExp.$1))),n||(t.replace&&(t=t.replace(o,"<$1></$2>")),e===m&&(e=R.test(t)&&RegExp.$1),e in s||(e="*"),i=s[e],i.innerHTML=""+t,n=y.each(k.call(i.childNodes),function(){i.removeChild(this)})),n},P.Z=function(t,e){return t=t||[],t.__proto__=y.fn,t.selector=e||"",t},P.isZ=function(t){return t instanceof P.Z},P.init=function(t,n){var i;if(!t)return P.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&R.test(t))i=P.fragment(t,RegExp.$1,n),t=null;else{if(n!==m)return y(n).find(t);i=P.qsa(C,t)}else{if(e(t))return y(C).ready(t);if(P.isZ(t))return t;if(X(t))i=o(t);else if(r(t))i=[t],t=null;else if(R.test(t))i=P.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==m)return y(n).find(t);i=P.qsa(C,t)}}return P.Z(i,t)},y=function(t,e){return P.init(t,e)},y.extend=function(t){var e,n=function(t,e,i){for(v in e)i&&(a(e[v])||X(e[v]))?(a(e[v])&&!a(t[v])&&(t[v]={}),
X(e[v])&&!X(t[v])&&(t[v]=[]),n(t[v],e[v],i)):e[v]!==m&&(t[v]=e[v])},i=k.call(arguments,1);return"boolean"==typeof t&&(e=t,t=i.shift()),i.forEach(function(i){n(t,i,e)}),t},P.qsa=function(t,e){var n,r="#"==e[0],a=!r&&"."==e[0],s=r||a?e.slice(1):e,o=/^[\w-]*$/.test(s);return i(t)&&o&&r?(n=t.getElementById(s))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:k.call(o&&!r?a?t.getElementsByClassName(s):t.getElementsByTagName(e):t.querySelectorAll(e))},y.contains=function(t,e){return t!==e&&t.contains(e)},y.type=t,y.isFunction=e,y.isWindow=n,y.isArray=X,y.isPlainObject=a,y.camelCase=x,y.trim=function(t){return null==t?"":String.prototype.trim.call(t)},y.uuid=0,y.support={},y.expr={},y.map=function(t,e){var n,i,r,a=[];if(s(t))for(i=0;i<t.length;i++)n=e(t[i],i),null!=n&&a.push(n);else for(r in t)n=e(t[r],r),null!=n&&a.push(n);return l(a)},y.each=function(t,e){var n,i;if(s(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(i in t)if(e.call(t[i],i,t[i])===!1)return t;return t},y.parseJSON=JSON.parse,y.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){N["[object "+e+"]"]=e.toLowerCase()}),y.fn={forEach:_.forEach,reduce:_.reduce,push:_.push,sort:_.sort,indexOf:_.indexOf,concat:_.concat,map:function(t){return y(y.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return y(k.apply(this,arguments))},ready:function(t){var e=/complete|loaded|interactive/;return e.test(C.readyState)?t(y):C.addEventListener("DOMContentLoaded",function(){t(y)},!1),this},get:function(t){return t===m?k.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return _.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return e(t)?this.not(this.not(t)):y(E.call(this,function(e){return P.matches(e,t)}))},add:function(t,e){return y(w(this.concat(y(t,e))))},is:function(t){return this.length>0&&P.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==m)this.each(function(e){t.call(this,e)||n.push(this)});else{var i="string"==typeof t?this.filter(t):s(t)&&e(t.item)?k.call(t):y(t);this.forEach(function(t){i.indexOf(t)<0&&n.push(t)})}return y(n)},has:function(t){return this.filter(function(){return r(t)?y.contains(this,t):y(this).find(t).size()})},eq:function(t){return t===-1?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!r(t)?t:y(t)},last:function(){var t=this[this.length-1];return t&&!r(t)?t:y(t)},find:function(t){var e,n=this;return e="object"==typeof t?y(t).filter(function(){var t=this;return _.some.call(n,function(e){return y.contains(e,t)})}):1==this.length?y(P.qsa(this[0],t)):this.map(function(){return P.qsa(this,t)})},closest:function(t){return y(P.matches(this[0],t)?this[0]:this.parents(t).get(0))},parents:function(t){for(var e=[],n=this;n.length>0;)n=y.map(n,function(t){if((t=t.parentNode)&&!i(t)&&e.indexOf(t)<0)return e.push(t),t});return h(e,t)},parent:function(t){return h(w(this.pluck("parentNode")),t)},children:function(t){return h(this.map(function(){return u(this)}),t)},siblings:function(t){return h(this.map(function(t,e){return E.call(u(e.parentNode),function(t){return t!==e})}),t)},pluck:function(t){return y.map(this,function(e){return e[t]})},show:function(){var t=function(t){return getComputedStyle(t,"").getPropertyValue("display")};return this.each(function(){if("none"==this.style.display&&(this.style.display=""),"none"==t(this)){var e=function(e){var n,i;return S[e]||(n=C.createElement(e),C.body.appendChild(n),i=t(n),n.parentNode.removeChild(n),"none"==i&&(i="block"),S[e]=i),S[e]};this.style.display=e(this.nodeName)}})},replaceWith:function(t){return this.before(t).remove()},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=y(this);(t===m?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return y(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return y(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each(function(e){var n=this.innerHTML;this.innerHTML="",y(this).append(d(this,t,e,n))})},text:function(t){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=t===m?"":""+t})},attr:function(t,e){var n;return"string"==typeof t&&e===m?0==this.length||1!==this[0].nodeType?m:"value"==t&&"INPUT"==this[0].nodeName?this.val():!(n=this[0].getAttribute(t))&&t in this[0]?this[0][t]:n:this.each(function(n){if(1===this.nodeType)if(r(t))for(v in t)f(this,v,t[v]);else f(this,t,d(this,e,n,this.getAttribute(t)))})},removeAttr:function(t){return this.each(function(){1===this.nodeType&&f(this,t)})},data:function(t,e){var n=/([A-Z])/g,i=this.attr("data-"+t.replace(n,"-$1").toLowerCase(),e);return null!==i?g(i):m},val:function(t){return 0===arguments.length?this[0]&&(this[0].multiple?y(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value):this.each(function(e){this.value=d(this,t,e,this.value)})},offset:function(){if(0==this.length)return null;var t=this[0].getBoundingClientRect();return{left:t.left+T.pageXOffset,top:t.top+T.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(e,n){var i=function(t,e){var n={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1};return"number"!=typeof e||n[r(t)]?e:e+"px"},r=function(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()};if(arguments.length<2){var a=this[0],s=getComputedStyle(a,"");if(!a)return;if("string"==typeof e)return a.style[x(e)]||s.getPropertyValue(e);if(X(e)){var o={};return y.each(X(e)?e:[e],function(t,e){o[e]=a.style[x(e)]||s.getPropertyValue(e)}),o}}var l="";if("string"==t(e))n||0===n?l=r(e)+":"+i(e,n):this.each(function(){this.style.removeProperty(r(e))});else for(v in e)e[v]||0===e[v]?l+=r(v)+":"+i(v,e[v])+";":this.each(function(){this.style.removeProperty(r(v))});return this.each(function(){this.style.cssText+=";"+l})},index:function(t){return t?this.indexOf(y(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&_.some.call(this,function(t){return this.test(p(t))},c(t))},addClass:function(t){return t?this.each(function(e){b=[];var n=p(this),i=d(this,t,e,n);i.split(/\s+/g).forEach(function(t){y(this).hasClass(t)||b.push(t)},this),b.length&&p(this,n+(n?" ":"")+b.join(" "))}):this},removeClass:function(t){return this.each(function(e){return t===m?p(this,""):(b=p(this),d(this,t,e,b).split(/\s+/g).forEach(function(t){b=b.replace(c(t)," ")}),void p(this,b.trim()))})},toggleClass:function(t,e){return t?this.each(function(n){var i=y(this),r=d(this,t,n,p(this));r.split(/\s+/g).forEach(function(t){(e===m?!i.hasClass(t):e)?i.addClass(t):i.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===m?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}}},y.fn.detach=y.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});y.fn[t]=function(r){var a,s=this[0];return r===m?n(s)?s["inner"+e]:i(s)?s.documentElement["scroll"+e]:(a=this.offset())&&a[t]:this.each(function(e){s=y(this),s.css(t,d(this,r,e,s[t]()))})}}),["after","prepend","before","append"].forEach(function(e,n){var i=n%2;y.fn[e]=function(){var e,r,a=y.map(arguments,function(n){return e=t(n),"object"==e||"array"==e||null==n?n:P.fragment(n)}),s=this.length>1;return a.length<1?this:this.each(function(t,e){r=i?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var o=function(t,e){e(t);for(var n in t.childNodes)o(t.childNodes[n],e)};a.forEach(function(t){if(s)t=t.cloneNode(!0);else if(!r)return y(t).remove();o(r.insertBefore(t,e),function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||T.eval.call(T,t.innerHTML)})})})},y.fn[i?e+"To":"insert"+(n?"Before":"After")]=function(t){return y(t)[e](this),this}}),P.Z.prototype=y.fn,P.uniq=w,P.deserializeValue=g,y.zepto=y.yocto=P,y}();t.exports=n},function(t,e,n){"use strict";function i(t){return t._zid||(t._zid=p++)}function r(t,e,n,r){if(e=a(e),e.ns)var o=s(e.ns);return(y[i(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||o.test(t.ns))&&(!n||i(t.fn)===i(n))&&(!r||t.sel==r)})}function a(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function s(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&("focus"===t.e||"blur"===t.e)||!!e}function l(t,e,n,r,s,l,c){var h=i(t),p=y[h]||(y[h]=[]);e.split(/\s/).forEach(function(e){if("ready"==e)return f(document).ready(n);var i=a(e);i.fn=n,i.sel=s,i.del=l;var h=l||n;i.proxy=function(e){if(navigator.userAgent.toLowerCase().indexOf("android")>-1&&f.gestures&&f.gestures.tap&&"click"===i.e&&!e.animaClick)return e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1;if(e=u(e),!e.isImmediatePropagationStopped()){e.data=r;var n=h.apply(t,e._args==d?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},i.i=p.length,p.push(i),"addEventListener"in t&&(f.gestures&&f.gestures.list&&f.gestures.list[i.e]&&f.gestures.list[i.e](t),t.addEventListener(i.e,i.proxy,o(i,c)))})}function c(t,e,n,a,s){var l=i(t);(e||"").split(/\s/).forEach(function(e){r(t,e,n,a).forEach(function(e){delete y[l][e.i],"removeEventListener"in t&&t.removeEventListener(e.e,e.proxy,o(e,s))})})}function u(t,e){return!e&&t.isDefaultPrevented||(e||(e=t),f.each(k,function(n,i){var r=e[n];t[n]=function(){return this[i]=x,r&&r.apply(e,arguments)},t[i]=w}),(e.defaultPrevented!==d?e.defaultPrevented:"returnValue"in e?e.returnValue===!1:e.getPreventDefault&&e.getPreventDefault())&&(t.isDefaultPrevented=x)),t}function h(t){var e,n={originalEvent:t};for(e in t)_.test(e)||t[e]===d||(n[e]=t[e]);return u(n,t)}var d,f=n(2),p=1,g=Array.prototype.slice,m=f.isFunction,v=function(t){return"string"==typeof t},y={},b={};b.click=b.mousedown=b.mouseup=b.mousemove="MouseEvents",f.event={add:l,remove:c},f.proxy=function(t,e){if(m(t)){var n=function(){return t.apply(e,arguments)};return n._zid=i(t),n}if(v(e))return f.proxy(t[e],t);throw new TypeError("expected function")},f.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},w=function(){return!1},_=/^([A-Z]|returnValue$|layer[XY]$)/,k={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};f.fn.on=function(t,e,n,i,r){var a,s,o=this;return t&&!v(t)?(f.each(t,function(t,i){o.on(t,e,n,i,r)}),o):(v(e)||m(i)||i===!1||(i=n,n=e,e=d),(m(n)||n===!1)&&(i=n,n=d),i===!1&&(i=w),o.each(function(o,u){r&&(a=function(t){return c(u,t.type,i),i.apply(this,arguments)}),e&&(s=function(t){var n,r=f(t.target).closest(e,u).get(0);if(r&&r!==u)return n=f.extend(h(t),{currentTarget:r,liveFired:u}),(a||i).apply(r,[n].concat(g.call(arguments,1)))}),l(u,t,i,n,e,s||a)}))},f.fn.off=function(t,e,n){var i=this;return t&&!v(t)?(f.each(t,function(t,n){i.off(t,e,n)}),i):(v(e)||m(n)||n===!1||(n=e,e=d),n===!1&&(n=w),i.each(function(){c(this,t,n,e)}))},f.fn.trigger=function(t,e){return t=v(t)||f.isPlainObject(t)?f.Event(t):u(t),t._args=e,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(t):f(this).triggerHandler(t,e)})},f.fn.triggerHandler=function(t,e){var n,i;return this.each(function(a,s){n=h(v(t)?f.Event(t):t),n._args=e,n.target=s,f.each(r(s,t.type||t),function(t,e){if(i=e.proxy(n),n.isImmediatePropagationStopped())return!1})}),i},"focusin focusout load resize scroll unload click dblclick change select keydown keypress keyup error".split(" ").forEach(function(t){f.fn[t]=function(e){return e?this.on(t,e):this.trigger(t)}}),["focus","blur"].forEach(function(t){f.fn[t]=function(e){return e?this.on(t,e):this.each(function(){try{this[t]()}catch(e){}}),this}}),f.Event=function(t,e){v(t)||(e=t,t=e.type);var n=document.createEvent(b[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),u(n)},t.exports=f},function(t,e,n){var i=n(2);n(3),n(8),n(24),t.exports=i},function(t,e,n){"use strict";var i=n(2);n(3),n(8);var r=i.gestures,a=navigator.userAgent.toLowerCase().indexOf("android")>0,s=/ip(ad|hone|od)/.test(navigator.userAgent.toLowerCase()),o={trackingClick:!1,trackingClickStart:0,targetElement:null,touchStartX:0,touchStartY:0,touchBoundary:10,tapDelay:200,sendClick:function(t,e){var n=i.Event("tap",{animaTap:!0});i(t).trigger(n);var r,a;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),a=e.changedTouches[0],r=document.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!0,window,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),r.animaClick=!0,t.dispatchEvent(r)},needClick:function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(s&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return!1},focus:function(t){var e;s&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},needFocus:function(t){switch(t.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return!1}},updateScrollParent:function(t){var e,n;if(e=t.yoctoTouchScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.yoctoTouchScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.yoctoTouchLastScrollTop=e.scrollTop)},findControl:function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},touchHasMoved:function(t){var e=t.changedTouches[0],n=o.touchBoundary;return Math.abs(e.pageX-o.touchStartX)>n||Math.abs(e.pageY-o.touchStartY)>n},fixTarget:function(t){return window.SVGElementInstance&&t instanceof SVGElementInstance&&(t=t.correspondingUseElement),t}};r.tap={events:["tap","click"],handler:{touchstart:function(t){var e,n,i;if(t.targetTouches.length>1)return!0;if(e=o.fixTarget(t.target),n=t.targetTouches[0],s){if(i=window.getSelection(),i.rangeCount&&!i.isCollapsed)return!0;o.updateScrollParent(e)}return o.trackingClick=!0,o.trackingClickStart=t.timeStamp,o.targetElement=e,o.touchStartX=n.pageX,o.touchStartY=n.pageY,t.timeStamp-o.lastClickTime<o.tapDelay&&t.preventDefault(),!0},touchmove:function(t){return!o.trackingClick||((o.targetElement!==o.fixTarget(t.target)||o.touchHasMoved(t))&&(o.trackingClick=!1,o.targetElement=null),!0)},touchend:function(t){var e,n,i,r,l=o.targetElement;if(!o.trackingClick)return!0;if(t.timeStamp-o.lastClickTime<o.tapDelay)return o.cancelNextClick=!0,!0;if(o.cancelNextClick=!1,o.lastClickTime=t.timeStamp,n=o.trackingClickStart,o.trackingClick=!1,o.trackingClickStart=0,i=l.tagName.toLowerCase(),"label"===i){if(e=o.findControl(l)){if(o.focus(l),a)return!1;l=e}}else if(o.needFocus(l))return t.timeStamp-n>100||s&&window.top!==window&&"input"===i?(o.targetElement=null,!1):(o.focus(l),a&&o.sendClick(l,t),!1);return!(!s||(r=l.yoctoTouchScrollParent,!r||r.yoctoTouchLastScrollTop===r.scrollTop))||(o.needClick(l)||(t.preventDefault(),o.sendClick(l,t)),!1)},touchcancel:function(t){o.trackingClick=!1,o.targetElement=null}}},r.init("tap");var l=Event.prototype.initEvent;Event.prototype.initEvent=function(){var t=Array.prototype.slice.call(arguments);l.apply(this,t),"click"===t[0]&&(this.animaClick=!0)},t.exports=i},function(t,e,n){var i=n(32);n(48),e["default"]=i,t.exports=e["default"]},function(t,e,n){var i=n(34);n(49),e["default"]=i,t.exports=e["default"]},function(t,e,n){var i=n(36);n(50),e["default"]=i,t.exports=e["default"]},function(t,e,n){var i=n(37);n(51),e["default"]=i,t.exports=e["default"]},function(t,e,n){var i=n(38);n(52),e["default"]=i,t.exports=e["default"]},function(t,e,n){var i=n(39);n(53),e["default"]=i,t.exports=e["default"]},function(t,e,n){var i=n(40);n(54),e["default"]=i,t.exports=e["default"]},function(t,e,n){/**!
*
* Copyright(c) Alibaba Group Holding Limited.
*
* Authors:
* 公孝 <[email protected]>
*/
"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(){var t=h.createElement("div"),e=h.documentElement.style,n=!1,i="­";return i+='<style id="smodernizr">',i+="@media (transform-3d),(-webkit-transform-3d){",i+="#modernizr{left:9px;position:absolute;height:3px;}",i+="}",i+="</style>",t.id="modernizr",t.innerHTML+=i,h.body.appendChild(t),"WebkitPerspective"in e&&(n=9===t.offsetLeft&&3===t.offsetHeight),t.parentNode.removeChild(t),n}function a(t,e){var n=t;n&&e&&(n.transitionDuration=e,n.OTransitionDuration=e,n.msTransitionDuration=e,n.MozTransitionDuration=e,n.webkitTransitionDuration=e)}function s(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}var o=n(41),l=i(o),c=n(1),u=n(4),h=document,d="_onRender",f="WebkitTransform"in h.documentElement.style,p=r(),g=p?"translate3d(":"translate(",m=p?",0)":")",v=u.create({attrs:{element:".carousel",trigger:".carousel-status",wrap:null,panel:null,activeTriggerCls:"sel",hasTrigger:!1,steps:0,left:0,visible:1,margin:0,curIndex:0,duration:300,loop:!1,play:!1,interval:5e3,useTransform:p,lazy:".lazyimg",lazyIndex:1,callback:null,prev:null,next:null,activePnCls:"none",template:l["default"]},initialize:function(t){this._attrs=c.extend({},this.attrs,t)},render:function(t,e){if(t&&(t=c(t)),!t||!t[0])throw new Error("element is invalid");var n=this.get("template");t.html(n(this._attrs));var i=(c(window).width(),this._findEl(t));i&&(this._init(),this._increaseEvent())},_findEl:function(t){var e=this.element=t.find(this.get("element"));if(!e.length)return null;var n=this.get("wrap")&&e.find(this.get("wrap"));if(n||(n=e.children().first()),this.set("wrap",n),!this.get("wrap").length)return null;var i=this.get("panel")&&e.find(this.get("panel"));if(i||(i=this.get("wrap").children().first()),this.set("panel",i),!this.get("panel").length)return null;this.set("panels",this.get("panel").children());const r=this.get("panels").length;if(!r)return this.element.hide(),null;if(1===r)return this._loadImg(0),null;var a=this.get("trigger")&&e.find(this.get("trigger"));this.set("trigger",a);var s=this.get("prev")&&e.find(this.get("prev"));this.set("prev",s);var o=this.get("next")&&e.find(this.get("next"));return this.set("next",o),this},_init:function(){var t=this.get("wrap"),e=this.get("panel"),n=this.get("panels"),i=this.get("trigger"),r=n.length,a=this.get("margin"),s=0,o=this.get("visible"),l=!!f&&this.get("useTransform");this.set("len",r),this.set("useTransform",l);var c=this.get("steps")||t.width();this.set("steps",c),n.each(function(t,e){s+=e.offsetWidth}),a&&"number"==typeof a&&(s+=(r-1)*a,this.set("steps",this.get("steps")+a)),o>1&&this.set("loop",!1);var u=this.get("left");u-=this.get("curIndex")*this.get("steps"),this._setCoord(e,u),l&&(p&&t.css({"-webkit-transform":"translateZ(0)"}),e.css({"-webkit-backface-visibility":"hidden"}));var h=this._pages=Math.ceil(r/o);if(this._minpage=0,this._maxpage=this._pages-1,this._loadImg(this.get("curIndex")),this._updateArrow(),h<=1)return this._getImg(n[0]),i&&i.hide(),null;if(this._oldLoop){var d=e.children();d.eq(d.length-2).remove(),d.eq(d.length-1).remove()}if(this.get("loop")){e.append(n[0].cloneNode(!0));var g=n[r-1].cloneNode(!0);e.append(g),this._getImg(g),g.style.cssText+="position:relative;left:"+-this.get("steps")*(r+2)+"px;",s+=n[0].offsetWidth,s+=n[r-1].offsetWidth}if(e.css("width",s),i&&i.length){var m="",v=i.children();if(!v.length){for(var y='"'+this.get("activeTriggerCls")+'"',b=0;b<h;b++)m+="<span"+(b===this.get("curIndex")?" class="+y:"")+">",m+="</span>";i.html(m)}this.set("triggers",i.children()),this.set("triggerSel",this.get("triggers")[this.get("curIndex")])}else this.set("hasTrigger",!1);return this},_setCoord:function(t,e){this.get("useTransform")?t.css("-webkit-transform",""+g+e+"px,0"+m):t.css("left",e)},_loadImg:function(t){var e=t||0;e<this._minpage?e=this._maxpage:e>this._maxpage&&(e=this._minpage);var n=this.get("visible"),i=this.get("lazyIndex")-1,r=i+e;if(!(r>this._maxpage)){r+=1;var a=(e&&i+e||e)*n,s=r*n,o=this.get("panels");s=Math.min(o.length,s);for(var l=a;l<s;l++)this._getImg(o[l])}},_getImg:function(t){var e=t;if(e&&(e=c(e),!e.attr("l"))){var n=this.get("lazy"),i="img"+n;n=n.replace(/^\.|#/g,""),e.find(i).each(function(t,e){var i=c(e),r=i.attr("dataimg");r&&i.attr("src",r).removeAttr("dataimg").removeClass(n)}),e.attr("l","1")}},_increaseEvent:function(){var t=this,e=this.get("wrap")[0],n=this.get("prev"),i=this.get("next"),r=this.get("triggers");e.addEventListener&&(e.addEventListener("touchstart",t,!1),e.addEventListener("touchmove",t,!1),e.addEventListener("touchend",t,!1),e.addEventListener("webkitTransitionEnd",t,!1),e.addEventListener("msTransitionEnd",t,!1),e.addEventListener("oTransitionEnd",t,!1),e.addEventListener("transitionend",t,!1)),this.get("play")&&this._begin(),n&&n.length&&n.on("click",function(e){t._backward.call(t,e)}),i&&i.length&&i.on("click",function(e){t._forward.call(t,e)}),this.get("hasTrigger")&&r&&r.each(function(e,n){c(n).on("click",function(){t._slideTo(e)})})},handleEvent:function(t){switch(t.type){case"touchstart":this._start(t);break;case"touchmove":this._move(t);break;case"touchend":case"touchcancel":this._end(t);break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"transitionend":this._transitionEnd(t);break;default:return}},_start:function(t){var e=t.touches[0];this._movestart=void 0,this._disX=0,this._coord={x:e.pageX,y:e.pageY}},_move:function(t){if(!(t.touches.length>1||t.scale&&1!==t.scale)){var e=t.touches[0],n=this._disX=e.pageX-this._coord.x,i=this.get("left"),r=void 0;if("undefined"==typeof this._movestart&&(this._movestart=!!(this._movestart||Math.abs(n)<Math.abs(e.pageY-this._coord.y))),!this._movestart){if(t.preventDefault(),this._stop(),!this.get("loop")){var a=!this.get("curIndex")&&n>0,s=this.get("curIndex")===this._maxpage&&n<0;n/=a||s?Math.abs(n)/this.get("steps")+1:1}r=i-this.get("curIndex")*this.get("steps")+n,this._setCoord(this.get("panel"),r),this._disX=n}}},_end:function(t){if(!this._movestart){var e=this._disX;e<-10?(t.preventDefault(),this._forward()):e>10&&(t.preventDefault(),this._backward()),e=null}},_begin:function(){var t=this;t.get("play")&&!t._playTimer&&(t._stop(),t._playTimer=setInterval(function(){t._forward()},t.get("interval")))},_stop:function(){var t=this;t.get("play")&&t._playTimer&&(clearInterval(t._playTimer),t._playTimer=null)},_backward:function(t){t&&t.preventDefault&&t.preventDefault();var e=this.get("curIndex"),n=this._minpage,i=this.get("callback");e-=1,e<n&&(e=this.get("loop")?n-1:n),this._slideTo(e),i&&i(Math.max(e,n),-1)},_forward:function(t){t&&t.preventDefault&&t.preventDefault();var e=this.get("curIndex"),n=this._maxpage,i=this.get("callback");if(e+=1,e>n)if(this.get("loop")){if(e>n+1)return e=1,void this._transitionEnd();e=n+1}else e=n;this._slideTo(e),i&&i(Math.min(e,n),1)},_slideTo:function(t,e){var n=t||0;this.set("curIndex",n);var i=this.get("panel"),r=i[0].style,s=this.get("left")-n*this.get("steps"),o=e||this.get("duration")+"ms";a(r,o),this._setCoord(i,s),this._loadImg(n)},_transitionEnd:function(){var t=this.get("panel"),e=t[0].style,n=this.get("loop"),i=this.get("curIndex");n&&(i>this._maxpage?this.set("curIndex",0):i<this._minpage&&this.set("curIndex",this._maxpage),this._setCoord(t,this.get("left")-this.get("curIndex")*this.get("steps"))),n||i!==this._maxpage?this._begin():(this._stop(),this.set("play",!1)),this._update(),this._updateArrow(),a(e,0)},_update:function(){var t=this.get("triggers"),e=this.get("triggerSel"),n=this.get("activeTriggerCls"),i=this.get("curIndex");t&&t[i]&&(e&&(e.className=""),t[i].className=n,this.set("triggerSel",t[i]))},_updateArrow:function(){var t=this.get("prev"),e=this.get("next");if(t&&t.length&&e&&e.length&&!this.get("loop")){var n=this.get("curIndex"),i=this.get("activePnCls");n<=0?t.addClass(i):t.removeClass(i),n>=this._maxpage?e.addClass(i):e.removeClass(i)}},destroy:function(){var t=this,e=t.get("wrap")[0],n=t.get("prev"),i=t.get(".next"),r=t.get("triggers");return e.removeEventListener&&(e.removeEventListener("touchstart",t,!1),e.removeEventListener("touchmove",t,!1),e.removeEventListener("touchend",t,!1),e.removeEventListener("webkitTransitionEnd",t,!1),e.removeEventListener("msTransitionEnd",t,!1),e.removeEventListener("oTransitionEnd",t,!1),e.removeEventListener("transitionend",t,!1)),n&&n.length&&n.off("click"),i&&i.length&&i.off("click"),t.get("hasTrigger")&&r&&r.each(function(t,e){c(e).off("click")}),v.superclass.destroy.call(this)},get:function(t){return void 0===this._attrs[t]?null:this._attrs[t]},set:function(t,e){return this._attrs[t]=e,this[d+s(t)]&&this[d+s(t)](e),this}});t.exports=v},function(t,e,n){"use strict";var i,r=n(1),a=n(7),s=a.extend({_onRenderMessage:function(t){this.set("content",t)},_onRenderButton:function(t){var e=this;if(e.rendered){var n=e.get("okBtn");n.text(t)}}});s.show=function(t,e){if(i||(i=new s(r.extend({},{message:"",button:"\u786e\u8ba4",className:"",mask:!0,buttons:[{id:"ok",cls:"am-dialog-button",text:"\u786e\u8ba4",handler:function(){var t=this.get("success");t&&t.call(this)}}]},t)),i.show()),t)for(var n in t)t.hasOwnProperty(n)&&i.set(n,t[n]);return i.set("success",function(){e&&e.call(i),i.hide()}),i.show(),i},s.hide=function(){i&&i.hide()},t.exports=s},function(t,e,n){/**!
*
* Copyright(c) Alibaba Group Holding Limited.
*
* Authors:
* 公孝 <[email protected]>
*/
"use strict";var i=n(7),r=n(33),a=n(9),s=n(35);i.Alert=r,i.Confirm=a,i.Prompt=s,t.exports=i},function(t,e,n){"use strict";var i=n(1),r=n(9),a=r.extend({_getValue:function(){var t=this,e=t.element.find("input");return e.val()},setup:function(){a.superclass.setup.call(this),this.bindInputEvent()},bindInputEvent:function(){var t=this;t.element.on("keyup change input",function(){t._valid()})},_valid:function(){var t=this,e=t._getValue(),n=t.get("okBtn");if(t.get("required")&&!e)n.attr("disabled","disabled");else{var i=n[0];i&&i.removeAttribute("disabled")}},_onRenderValue:function(t){var e=this;if(e.rendered){var n=e.element.find("input");n.val(t),e._valid()}},_onRenderInputTpl:function(t){this.set("content",t,!0)},_onRenderRequired:function(t){this.rendered&&this._valid()}}),s=null;a.show=function(t,e){if(s||(s=new a(i.extend({},{value:"",required:!1,className:"",inputTpl:'<input type="text" class="am-password-former"/>',success:function(){var t=this.get("callback");t&&t({ok:!0,value:this._getValue()}),this.set("value",""),this.hide()}},t)),s.show()),t)for(var n in t)t.hasOwnProperty(n)&&s.set(n,t[n]);return s.set("callback",e),s.show(),s},a.hide=function(){s&&s.hide()},t.exports=a},function(t,e,n){/**!
*
* Copyright(c) Alibaba Group Holding Limited.
*
* Authors:
* 公孝 <[email protected]>
*/
"use strict";function i(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(4),s=n(42),o="_onRender",l=a.create({attrs:r.extend({},{type:"",data:{},template:s}),initialize:function(t){this._attrs=r.extend({},this.attrs,t)},render:function(t,e){if(t&&(this.element=r(t)),!this.element||!this.element[0])throw new Error("element is invalid");var n=this.get("template");this.element.html(n(this._attrs)),e&&e(this.element)},reset:function(t){this._attrs=r.extend({},this.attrs,t),this.render()},hide:function(){var t=this,e=t.element;e.css({display:"none","-webkit-transition":"initial",transition:"initial",opacity:0})},destroy:function(){var t=this,e=t.element;e.remove(),console.log(e);for(var n in t)t.hasOwnProperty(n)&&delete t[n]},get:function(t){return void 0===this._attrs[t]?null:this._attrs[t]},set:function(t,e){return this._attrs[t]=e,this[o+i(t)]&&this[o+i(t)](e),this}});e["default"]=l,t.exports=e["default"]},function(t,e,n){/**!
*
* Copyright(c) Alibaba Group Holding Limited.
*
* Authors:
* 公孝 <[email protected]>
*/
"use strict";function i(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),a=n(4),s=n(43),o="_onRender",l=".am-operation",c=a.create({attrs:r.extend({},{type:"",data:{},template:s}),initialize:function(t){this._attrs=r.extend({},this.attrs,t)},render:function(t,e){if(t&&(this.element=r(t)),!this.element||!this.element[0])throw new Error("element is invalid");var n=this.get("template");this.element.html(n(this._attrs)),this._bindEvent(),e&&e(this.element)},reset:function(t){this._attrs=r.extend({},this.attrs,t),this.render()},_bindEvent:function(){var t=this.element,e=this.get("data"),n=e.buttons,i=t.find(l);i.on("tap",function(t){var e=r(this).data("index"),i=n[e]||{},a=i.handler;a&&a(t)})},get:function(t){return void 0===this._attrs[t]?null:this._attrs[t]},set:function(t,e){return this._attrs[t]=e,this[o+i(t)]&&this[o+i(t)](e),this}});e["default"]=c,t.exports=e["default"]},function(t,e,n){/**!
*
* Copyright(c) Alibaba Group Holding Limited.
*
* Authors:
* 公孝 <[email protected]>
*/
"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=i(a),o=n(4),l=i(o),c=n(44),u=i(c),h=".am-page-result-button",d=l["default"].create({attrs:s["default"].extend({},{type:"",data:{title:"",brief:""},template:u["default"]}),initialize:function(t){this._attrs=s["default"].extend({},this.attrs,t)},render:function(t,e){if(t&&(this.element=(0,s["default"])(t)),!this.element||!this.element[0])throw new Error("element is invalid");var n=this.get("template");this.element.html(n(this._attrs)),this._bindEvent(),e&&e(this.element)},update:function(t){this._attrs=s["default"].extend({},this.attrs,t),this.render()},_bindEvent:function(){var t=this.element,e=this.get("data"),n=e.buttons,i=t.find(h);i.on("tap",function(t){var e=(0,s["default"])(this).data("index"),i=n[e]||{},r=i.handler;r&&r(t)})},get:function(t){return void 0===this._attrs[t]?null:this._attrs[t]},set:function(t,e){return this._attrs[t]=e,this[ON_RENDER+r(t)]&&this[ON_RENDER+r(t)](e),this}});e["default"]=d,t.exports=e["default"]},function(t,e,n){/**!
*
* Copyright(c) Alibaba Group Holding Limited.
*
* Authors:
* 公孝 <[email protected]>
*/
"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=i(a),o=n(4),l=i(o),c=n(45),u=i(c),h=".am-tab-item",d="selected",f=l["default"].create({attrs:s["default"].extend({},{type:"",data:{},template:u["default"]}),initialize:function(t){this._attrs=s["default"].extend({},this.attrs,t)},render:function(t,e){if(t&&(this.element=(0,s["default"])(t),console.log(s["default"](t))),!this.element||!this.element[0])throw new Error("element is invalid");var n=this.get("template");this.element.html(n(this._attrs)),this._bindEvent(),e&&e(this.element)},update:function(t){this._attrs=s["default"].extend({},this.attrs,t),this.render()},_bindEvent:function(){var t=this.element,e=t.find(h),n=this.get("onSelected");e.on("tap",function(){var t=(0,s["default"])(this),i=t.index();e.removeClass(d),t.addClass(d),n(i,t)})},get:function(t){return void 0===this._attrs[t]?null:this._attrs[t]},set:function(t,e){return this._attrs[t]=e,this[ON_RENDER+r(t)]&&this[ON_RENDER+r(t)](e),this}});e["default"]=f,t.exports=e["default"]},function(t,e,n){/**!
*
* Copyright(c) Alibaba Group Holding Limited.
*
* Authors:
* 公孝 <[email protected]>
*/
"use strict";function i(t){return t+="",t.charAt(0).toUpperCase()+t.substring(1)}function r(t){var e="",n=t.type,i=t.content,r="";return n&&"none"!=n||(r="text"),e+='<div class="am-toast '+r+'" style="background-color: transparent;">',e+='<div class="am-toast-text">',n&&"none"!==n&&(e+='<span class="am-icon toast '+n+'"></span>'),e+=i,e+="</div>",e+="</div>"}var a=n(1),s=n(4),o="_onRender",l=s.create({attrs:{type:"none",hideDelay:2e3,animateDuration:600,content:null,template:r},initialize:function(t){this._attrs=a.extend({},this.attrs,t)},render:function(t,e){var n=this,i=this.get("template"),r=a(window).width(),s=n.element=a(i(this._attrs)).appendTo(a("body"));s.css({left:(r-s.width())/2})},update:function(t){this.destroy(),this._attrs=a.extend({},this.attrs,t),this.show()},show:function(){var t=this;t.render();var e=parseInt(t.get("animateDuration"),10),n=parseInt(t.get("hideDelay"),10),i=t.element,r="opacity "+e/1e3+"s ease-in-out";i.css({"-webkit-transition":r,transition:r,"z-index":99,visibility:"visible",opacity:0}),t.timeflag&&clearTimeout(t.timeflag),setTimeout(function(){i.css({opacity:1}),t.timeflag=setTimeout(function(){t.timeflag=!1,t._hide()},n||2e3)},16),t.set("visible",!0)},hide:function(){var t=this,e=t.element;e.css({visibility:"hidden","-webkit-transition":"initial",transition:"initial",opacity:0})},_hide:function(){var t=this,e=t.element,n=parseInt(t.get("animateDuration"),10);e.css({opacity:0}),setTimeout(function(){t.timeflag||e.css({visibility:"hidden"})},n+16),t.set("visible",!1)},destroy:function(){var t=this,e=t.element;e.remove(),console.log(e);for(var n in t)t.hasOwnProperty(n)&&delete t[n]},get:function(t){return void 0===this._attrs[t]?null:this._attrs[t]},set:function(t,e){return this._attrs[t]=e,this[o+i(t)]&&this[o+i(t)](e),this}});t.exports=l},function(t,e){t.exports=function(t){return function(t,e,n,i){var r="";if(r+="small"===t?' <div class="carousel"> <div class="carousel-outer">':' <div class="carousel carousel-big"> <div class="carousel-big-outer">',e&&e.length){r+="small"===t?' <ul class="carousel-wrap"> ':' <ul class="carousel-big-wrap"> ';for(var n in e)r+=' <li><a href="',r+=e[n].href,r+='"><img src="',r+=i,r+='" class="lazyimg" dataimg="',r+=e[n].img,r+='" alt="1" /></a></li> ';r+=" </ul> "}return r+=' </div> <div class="carousel-status"></div></div>'}(t.type,t.data,t.key,t.lazyimg)}},function(t,e){t.exports=function(t){return function(t,e){var n="";return t?(n+='<div class="am-loading ',n+=t,n+='"> <i class="am-icon loading"></i> <div class="am-loading-text">',n+=e.text,n+="</div></div>"):n+='<div class="am-loading"> <i class="am-icon loading"></i></div>',n}(t.type,t.data)}},function(t,e){t.exports=function(t){return function(t,e,n){var i='<div class="am-';if(i+=t,i+='"> <div class="am-',i+=t,i+='-content">\u56e0\u5168\u56fd\u516c\u6c11\u8eab\u4efd\u7cfb\u7edf\u5347\u7ea7\uff0c\u6dfb\u52a0\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6\u884c\u5361\u94f6</div> ',e.buttons&&e.buttons.length)for(var n in e.buttons)i+=' <div class="am-',i+=t,i+='-operation am-operation" data-index="',i+=n,i+='"> <a class="am-',i+=t,i+="-",i+=e.buttons[n].type,i+='" ',e.buttons[n].href&&(i+='href="',i+=e.buttons[n].href,i+='"'),i+=" > ",e.buttons[n].text&&(i+=e.buttons[n].text),i+=" </a> </div> ";return i+="</div>"}(t.type,t.data,t.key)}},function(t,e){t.exports=function(t){return function(t,e,n,i){var r='<div class="am-page-result"> <div class="am-page-result-wrap ';if("no-network"!==t&&"err"!==t&&"blank"!==t||(r+="combine-page "),e&&(r+="no-button "),r+='"> <div class="am-page-result-pic am-icon page-',r+=t,r+='"></div> ',n.title&&(r+=' <div class="am-page-result-title">',r+=n.title,r+="</div> "),n.brief&&(r+=' <div class="am-page-result-brief">',r+=n.brief,r+="</div> "),n.buttons&&n.buttons.length)for(var i in n.buttons)r+=' <a class="am-page-result-button" data-index="',r+=i,r+='">',r+=n.buttons[i].text,r+="</a> ";return r+=" </div></div>"}(t.type,t.button,t.data,t.key)}},function(t,e){t.exports=function(t){return function(t,e,n){var i='<div class="am-tab ';"bottom"===t&&(i+="am-fixed am-fixed-bottom "),i+='"> ';for(var n in e)i+=' <button class="am-tab-item ',e[n].selected&&(i+=" selected"),i+='">',i+=e[n].text,i+="</button> ";return i+="</div>"}(t.type,t.data,t.key)}},function(t,e){},46,46,46,46,46,46,46,46,function(t,e,n){t.exports=n.p+"index.html"}]);