!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pingpp=e()}}(function(){return function e(n,A,t){function a(i,r){if(!A[i]){if(!n[i]){var c="function"==typeof require&&require;if(!r&&c)return c(i,!0);if(o)return o(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var s=A[i]={exports:{}};n[i][0].call(s.exports,function(e){var A=n[i][1][e];return a(A||e)},s,s.exports,e,n,A,t)}return A[i].exports}for(var o="function"==typeof require&&require,i=0;i<t.length;i++)a(t[i]);return a}({1:[function(e,n,A){var t=e('./payment_elements.js');n.exports={userCallback:void 0,urlReturnCallback:void 0,urlReturnChannels:['alipay_pc_direct'],innerCallback:function(e,n){'function'==typeof this.userCallback&&(void 0===n&&(n=this.error()),this.userCallback(e,n),this.userCallback=void 0,t.clear())},error:function(e,n){return e=void 0===e?'':e,n=void 0===n?'':n,{msg:e,extra:n}},triggerUrlReturnCallback:function(e,n){'function'==typeof this.urlReturnCallback&&this.urlReturnCallback(e,n)},shouldReturnUrlByCallback:function(e){return'function'==typeof this.urlReturnCallback&&-1!==this.urlReturnChannels.indexOf(e)}}},{"./payment_elements.js":16}],2:[function(e,n,A){var t=e('../utils'),a=e('../mods'),o={}.hasOwnProperty;n.exports={ALIPAY_WAP_URL_OLD:'https://wappaygw.alipay.com/service/rest.htm',ALIPAY_WAP_URL:'https://mapi.alipay.com/gateway.do',handleCharge:function(e){var n=e.channel,A=e.credential[n],i=this.ALIPAY_WAP_URL;o.call(A,'req_data')?i=this.ALIPAY_WAP_URL_OLD:o.call(A,'channel_url')&&(i=A.channel_url),o.call(A,'_input_charset')||(o.call(A,'service')&&'alipay.wap.create.direct.pay.by.user'===A.service||o.call(A,'req_data'))&&(A._input_charset='utf-8');var r=i+'?'+t.stringifyData(A,n,!0),c=a.getExtraModule('ap');t.inWeixin()&&void 0!==c?c.pay(r):t.redirectTo(r,n)}}},{"../mods":15,"../utils":24}],3:[function(e,n,A){var t=e('../utils'),a=e('../callbacks'),o={}.hasOwnProperty;n.exports={handleCharge:function(e){var n=e.channel,A=e.credential[n];o.call(A,'url')?t.redirectTo(A.url+'?'+t.stringifyData(A,n),n):a.innerCallback('fail',a.error('invalid_credential','missing_field:url'))}}},{"../callbacks":1,"../utils":24}],4:[function(e,n,A){var t=e('../../stash'),a={}.hasOwnProperty;!function(){var e={},A={};A.PADCHAR='=',A.ALPHA='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',A.makeDOMException=function(){try{return new DOMException(DOMException.INVALID_CHARACTER_ERR)}catch(n){var e=new Error('DOM Exception 5');return e.code=e.number=5,e.name=e.description='INVALID_CHARACTER_ERR',e.toString=function(){return'Error: '+e.name+': '+e.message},e}},A.getbyte64=function(e,n){var t=A.ALPHA.indexOf(e.charAt(n));if(-1===t)throw A.makeDOMException();return t},A.decode=function(e){e=''+e;var n,t,a,o=A.getbyte64,i=e.length;if(0===i)return e;if(i%4!=0)throw A.makeDOMException();n=0,e.charAt(i-1)===A.PADCHAR&&(n=1,e.charAt(i-2)===A.PADCHAR&&(n=2),i-=4);var r=[];for(t=0;t<i;t+=4)a=o(e,t)<<18|o(e,t+1)<<12|o(e,t+2)<<6|o(e,t+3),r.push(String.fromCharCode(a>>16,a>>8&255,255&a));switch(n){case 1:a=o(e,t)<<18|o(e,t+1)<<12|o(e,t+2)<<6,r.push(String.fromCharCode(a>>16,a>>8&255));break;case 2:a=o(e,t)<<18|o(e,t+1)<<12,r.push(String.fromCharCode(a>>16))}return r.join('')},A.getbyte=function(e,n){var t=e.charCodeAt(n);if(t>255)throw A.makeDOMException();return t},A.encode=function(e){if(1!==arguments.length)throw new SyntaxError('Not enough arguments');var n,t,a=A.PADCHAR,o=A.ALPHA,i=A.getbyte,r=[],c=(e=''+e).length-e.length%3;if(0===e.length)return e;for(n=0;n<c;n+=3)t=i(e,n)<<16|i(e,n+1)<<8|i(e,n+2),r.push(o.charAt(t>>18)),r.push(o.charAt(t>>12&63)),r.push(o.charAt(t>>6&63)),r.push(o.charAt(63&t));switch(e.length-c){case 1:t=i(e,n)<<16,r.push(o.charAt(t>>18)+o.charAt(t>>12&63)+a+a);break;case 2:t=i(e,n)<<16|i(e,n+1)<<8,r.push(o.charAt(t>>18)+o.charAt(t>>12&63)+o.charAt(t>>6&63)+a)}return r.join('')},e.url='pay.htm',e.pay=function(n){var o=encodeURIComponent(A.encode(n));a.call(t,'APURL')&&(e.url=t.APURL),location.href=e.url+'?goto='+o},e.decode=function(e){return A.decode(decodeURIComponent(e))},n.exports=e}()},{"../../stash":22}],5:[function(e,n,A){var t=e('../utils'),a={}.hasOwnProperty;n.exports={JDPAY_WAP_URL_OLD:'https://m.jdpay.com/wepay/web/pay',JDPAY_H5_URL:'https://h5pay.jd.com/jdpay/saveOrder',JDPAY_PC_URL:'https://wepay.jd.com/jdpay/saveOrder',handleCharge:function(e){var n=e.credential[e.channel],A=this.JDPAY_H5_URL;a.call(n,'channelUrl')?(A=n.channelUrl,delete n.channelUrl):a.call(n,'merchantRemark')&&(A=this.JDPAY_WAP_URL_OLD),t.formSubmit(A,'post',n)}}},{"../utils":24}],6:[function(e,n,A){var t=e('../callbacks'),a=e('../utils'),o=e('../stash'),i={}.hasOwnProperty;n.exports={SRC_URL:'https://open.mobile.qq.com/sdk/qqapi.js?_bid=152',ID:'mqq_api',handleCharge:function(e){var n=e.credential[e.channel];i.call(n,'token_id')?(o.tokenId=n.token_id,a.loadUrlJs(this.ID,this.SRC_URL,this.callpay)):t.innerCallback('fail',t.error('invalid_credential','missing_token_id'))},callpay:function(){if('undefined'!=typeof mqq){if(0==mqq.QQVersion)return t.innerCallback('fail',t.error('Not in the QQ client')),void delete o.tokenId;mqq.tenpay.pay({tokenId:o.tokenId},function(e){0==e.resultCode?t.innerCallback('success'):t.innerCallback('fail',t.error(e.retmsg))})}else t.innerCallback('fail',t.error('network_err'));delete o.tokenId}}},{"../callbacks":1,"../stash":22,"../utils":24}],7:[function(e,n,A){var t=e('../utils');n.exports={UPACP_WAP_URL:'https://gateway.95516.com/gateway/api/frontTransReq.do',handleCharge:function(e){var n=e.credential[e.channel];t.formSubmit(this.UPACP_WAP_URL,'post',n)}}},{"../utils":24}],8:[function(e,n,A){var t=e('../callbacks'),a=e('../utils'),o=e('../stash'),i=e('../mods'),r={}.hasOwnProperty;n.exports={PINGPP_NOTIFY_URL_BASE:'https://notify.pingxx.com/notify',handleCharge:function(e){for(var n=e.credential[e.channel],A=['appId','timeStamp','nonceStr','package','signType','paySign'],a=0;a<A.length;a++)if(!r.call(n,A[a]))return void t.innerCallback('fail',t.error('invalid_credential','missing_field_'+A[a]));o.jsApiParameters=n,this.callpay()},callpay:function(){var e=this,n=i.getExtraModule('wx_jssdk');if(void 0!==n&&n.jssdkEnabled())n.callpay();else if('undefined'==typeof WeixinJSBridge){var A=function(){e.jsApiCall()};document.addEventListener?document.addEventListener('WeixinJSBridgeReady',A,!1):document.attachEvent&&(document.attachEvent('WeixinJSBridgeReady',A),document.attachEvent('onWeixinJSBridgeReady',A))}else this.jsApiCall()},jsApiCall:function(){r.call(o,'jsApiParameters')&&WeixinJSBridge.invoke('getBrandWCPayRequest',o.jsApiParameters,function(e){delete o.jsApiParameters,'get_brand_wcpay_request:ok'==e.err_msg?t.innerCallback('success'):'get_brand_wcpay_request:cancel'==e.err_msg?t.innerCallback('cancel'):t.innerCallback('fail',t.error('wx_result_fail',e.err_msg))})},runTestMode:function(e){if(confirm('模拟付款？')){var n='/charges/'+e.id;a.request(this.PINGPP_NOTIFY_URL_BASE+n+'?livemode=false','GET',null,function(e,n){if(n>=200&&n<400&&'success'==e)t.innerCallback('success');else{var A='http_code:'+n+';response:'+e;t.innerCallback('fail',t.error('testmode_notify_fail',A))}},function(){t.innerCallback('fail',t.error('network_err'))})}}}},{"../callbacks":1,"../mods":15,"../stash":22,"../utils":24}],9:[function(e,n,A){var t=e('../utils'),a=e('../callbacks'),o={}.hasOwnProperty;n.exports={handleCharge:function(e){var n=e.credential[e.channel];'string'==typeof n?t.redirectTo(n,e.channel):'object'==typeof n&&o.call(n,'url')?t.redirectTo(n.url,e.channel):a.innerCallback('fail',a.error('invalid_credential','credential 格式不正确'))}}},{"../callbacks":1,"../utils":24}],10:[function(e,n,A){var t=e('../utils'),a=e('../callbacks'),o={}.hasOwnProperty;n.exports={YEEPAY_WAP_URL:'https://ok.yeepay.com/paymobile/api/pay/request',YEEPAY_WAP_TEST_URL:'http://mobiletest.yeepay.com/paymobile/api/pay/request',handleCharge:function(e){for(var n=e.channel,A=e.credential[n],i=['merchantaccount','encryptkey','data'],r=0;r<i.length;r++)if(!o.call(A,i[r]))return void a.innerCallback('fail',a.error('invalid_credential','missing_field_'+i[r]));var c;c=o.call(A,'mode')&&'test'==A.mode?this.YEEPAY_WAP_TEST_URL:this.YEEPAY_WAP_URL,t.redirectTo(c+'?'+t.stringifyData(A,n,!0),e.channel)}}},{"../callbacks":1,"../utils":24}],11:[function(e,n,A){var t=e('./utils'),a=e('./stash'),o=e('./libs/md5'),i={seperator:'###',limit:1,report_url:'https://statistics.pingxx.com/one_stats',timeout:100},r=function(e,n){var A=new RegExp('(^|&)'+n+'=([^&]*)(&|$)','i'),t=e.substr(0).match(A);return null!==t?unescape(t[2]):null},c=function(){return navigator.userAgent},l=function(){return window.location.host};i.store=function(e){if('undefined'!=typeof localStorage&&null!==localStorage){var n=this,A={};A.app_id=e.app_id||a.app_id||'app_not_defined',A.ch_id=e.ch_id||'',A.channel=e.channel||'',A.type=e.type||'',A.user_agent=c(),A.host=l(),A.time=(new Date).getTime(),A.puid=a.puid;var t='app_id='+A.app_id+'&channel='+A.channel+'&ch_id='+A.ch_id+'&host='+A.host+'&time='+A.time+'&type='+A.type+'&user_agent='+A.user_agent+'&puid='+A.puid,o=t;null!==localStorage.getItem('PPP_ONE_STATS')&&0!==localStorage.getItem('PPP_ONE_STATS').length&&(o=localStorage.getItem('PPP_ONE_STATS')+n.seperator+t);try{localStorage.setItem('PPP_ONE_STATS',o)}catch(e){}}},i.send=function(){if('undefined'!=typeof localStorage&&null!==localStorage){var e=this,n=localStorage.getItem('PPP_ONE_STATS');if(!(null===n||n.split(e.seperator).length<e.limit))try{for(var A=[],a=n.split(e.seperator),i=o(a.join('&')),c=0;c<a.length;c++)A.push({app_id:r(a[c],'app_id'),channel:r(a[c],'channel'),ch_id:r(a[c],'ch_id'),host:r(a[c],'host'),time:r(a[c],'time'),type:r(a[c],'type'),user_agent:r(a[c],'user_agent'),puid:r(a[c],'puid')});t.request(e.report_url,'POST',A,function(e,n){200==n&&localStorage.removeItem('PPP_ONE_STATS')},void 0,{'X-Pingpp-Report-Token':i})}catch(e){}}},i.report=function(e){var n=this;n.store(e),setTimeout(function(){n.send()},n.timeout)},n.exports=i},{"./libs/md5":13,"./stash":22,"./utils":24}],12:[function(e,n,A){var t=e('./stash'),a=e('./utils'),o=e('./collection');n.exports={SRC_URL:'https://cookie.pingxx.com',init:function(){var e=this;a.documentReady(function(){try{e.initPuid()}catch(e){}})},initPuid:function(){if('undefined'!=typeof window&&'undefined'!=typeof localStorage&&null!==localStorage){var e=localStorage.getItem('pingpp_uid');if(null===e){e=a.randomString();try{localStorage.setItem('pingpp_uid',e)}catch(e){}}if(t.puid=e,!document.getElementById('p_analyse_iframe')){var n;try{n=document.createElement('iframe')}catch(e){n=document.createElement('<iframe name="ifr"></iframe>')}n.id='p_analyse_iframe',n.src=this.SRC_URL+'/?puid='+e,n.style.display='none',document.body.appendChild(n)}setTimeout(function(){o.send()},0)}}}},{"./collection":11,"./stash":22,"./utils":24}],13:[function(e,n,A){!function(){function e(e,n){var A=(65535&e)+(65535&n);return(e>>16)+(n>>16)+(A>>16)<<16|65535&A}function A(e,n){return e<<n|e>>>32-n}function t(n,t,a,o,i,r){return e(A(e(e(t,n),e(o,r)),i),a)}function a(e,n,A,a,o,i,r){return t(n&A|~n&a,e,n,o,i,r)}function o(e,n,A,a,o,i,r){return t(n&a|A&~a,e,n,o,i,r)}function i(e,n,A,a,o,i,r){return t(n^A^a,e,n,o,i,r)}function r(e,n,A,a,o,i,r){return t(A^(n|~a),e,n,o,i,r)}function c(n,A){n[A>>5]|=128<<A%32,n[14+(A+64>>>9<<4)]=A;var t,c,l,s,g,u=1732584193,p=-271733879,d=-1732584194,B=271733878;for(t=0;t<n.length;t+=16)c=u,l=p,s=d,g=B,p=r(p=r(p=r(p=r(p=i(p=i(p=i(p=i(p=o(p=o(p=o(p=o(p=a(p=a(p=a(p=a(p,d=a(d,B=a(B,u=a(u,p,d,B,n[t],7,-680876936),p,d,n[t+1],12,-389564586),u,p,n[t+2],17,606105819),B,u,n[t+3],22,-1044525330),d=a(d,B=a(B,u=a(u,p,d,B,n[t+4],7,-176418897),p,d,n[t+5],12,1200080426),u,p,n[t+6],17,-1473231341),B,u,n[t+7],22,-45705983),d=a(d,B=a(B,u=a(u,p,d,B,n[t+8],7,1770035416),p,d,n[t+9],12,-1958414417),u,p,n[t+10],17,-42063),B,u,n[t+11],22,-1990404162),d=a(d,B=a(B,u=a(u,p,d,B,n[t+12],7,1804603682),p,d,n[t+13],12,-40341101),u,p,n[t+14],17,-1502002290),B,u,n[t+15],22,1236535329),d=o(d,B=o(B,u=o(u,p,d,B,n[t+1],5,-165796510),p,d,n[t+6],9,-1069501632),u,p,n[t+11],14,643717713),B,u,n[t],20,-373897302),d=o(d,B=o(B,u=o(u,p,d,B,n[t+5],5,-701558691),p,d,n[t+10],9,38016083),u,p,n[t+15],14,-660478335),B,u,n[t+4],20,-405537848),d=o(d,B=o(B,u=o(u,p,d,B,n[t+9],5,568446438),p,d,n[t+14],9,-1019803690),u,p,n[t+3],14,-187363961),B,u,n[t+8],20,1163531501),d=o(d,B=o(B,u=o(u,p,d,B,n[t+13],5,-1444681467),p,d,n[t+2],9,-51403784),u,p,n[t+7],14,1735328473),B,u,n[t+12],20,-1926607734),d=i(d,B=i(B,u=i(u,p,d,B,n[t+5],4,-378558),p,d,n[t+8],11,-2022574463),u,p,n[t+11],16,1839030562),B,u,n[t+14],23,-35309556),d=i(d,B=i(B,u=i(u,p,d,B,n[t+1],4,-1530992060),p,d,n[t+4],11,1272893353),u,p,n[t+7],16,-155497632),B,u,n[t+10],23,-1094730640),d=i(d,B=i(B,u=i(u,p,d,B,n[t+13],4,681279174),p,d,n[t],11,-358537222),u,p,n[t+3],16,-722521979),B,u,n[t+6],23,76029189),d=i(d,B=i(B,u=i(u,p,d,B,n[t+9],4,-640364487),p,d,n[t+12],11,-421815835),u,p,n[t+15],16,530742520),B,u,n[t+2],23,-995338651),d=r(d,B=r(B,u=r(u,p,d,B,n[t],6,-198630844),p,d,n[t+7],10,1126891415),u,p,n[t+14],15,-1416354905),B,u,n[t+5],21,-57434055),d=r(d,B=r(B,u=r(u,p,d,B,n[t+12],6,1700485571),p,d,n[t+3],10,-1894986606),u,p,n[t+10],15,-1051523),B,u,n[t+1],21,-2054922799),d=r(d,B=r(B,u=r(u,p,d,B,n[t+8],6,1873313359),p,d,n[t+15],10,-30611744),u,p,n[t+6],15,-1560198380),B,u,n[t+13],21,1309151649),d=r(d,B=r(B,u=r(u,p,d,B,n[t+4],6,-145523070),p,d,n[t+11],10,-1120210379),u,p,n[t+2],15,718787259),B,u,n[t+9],21,-343485551),u=e(u,c),p=e(p,l),d=e(d,s),B=e(B,g);return[u,p,d,B]}function l(e){var n,A='';for(n=0;n<32*e.length;n+=8)A+=String.fromCharCode(e[n>>5]>>>n%32&255);return A}function s(e){var n,A=[];for(A[(e.length>>2)-1]=void 0,n=0;n<A.length;n+=1)A[n]=0;for(n=0;n<8*e.length;n+=8)A[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return A}function g(e){return l(c(s(e),8*e.length))}function u(e,n){var A,t,a=s(e),o=[],i=[];for(o[15]=i[15]=void 0,a.length>16&&(a=c(a,8*e.length)),A=0;A<16;A+=1)o[A]=909522486^a[A],i[A]=1549556828^a[A];return t=c(o.concat(s(n)),512+8*n.length),l(c(i.concat(t),640))}function p(e){var n,A,t='';for(A=0;A<e.length;A+=1)n=e.charCodeAt(A),t+="0123456789abcdef".charAt(n>>>4&15)+"0123456789abcdef".charAt(15&n);return t}function d(e){return unescape(encodeURIComponent(e))}function B(e){return g(d(e))}function f(e){return p(B(e))}function h(e,n){return u(d(e),d(n))}function C(e,n){return p(h(e,n))}n.exports=function(e,n,A){return n?A?h(n,e):C(n,e):A?B(e):f(e)}}()},{}],14:[function(e,n,A){var t=e('./version').v,a={}.hasOwnProperty,PingppSDK=function(){e('./init').init()};PingppSDK.prototype.version=t,n.exports=new PingppSDK;var o=e('./testmode'),i=e('./callbacks'),r=e('./mods'),c=e('./stash'),l=e('./collection'),s=e('./payment_elements');PingppSDK.prototype.createPayment=function(e,n,A,t){if('function'==typeof n&&(i.userCallback=n),s.init(e),a.call(s,'id'))if(a.call(s,'channel')){a.call(s,'app')&&('string'==typeof s.app?c.app_id=s.app:'object'==typeof s.app&&'string'==typeof s.app.id&&(c.app_id=s.app.id)),l.report({type:c.type||'pure_sdk_click',channel:s.channel,ch_id:s.id});var g=s.channel;if(a.call(s,'credential'))if(s.credential)if(a.call(s.credential,g))if(a.call(s,'livemode')){var u=r.getChannelModule(g);if(void 0===u)return console.error('channel module "'+g+'" is undefined'),void i.innerCallback('fail',i.error('invalid_channel','channel module "'+g+'" is undefined'));!1!==s.livemode?(void 0!==A&&(c.signature=A),'boolean'==typeof t&&(c.debug=t),u.handleCharge(s)):a.call(u,'runTestMode')?u.runTestMode(s):o.runTestMode(s)}else i.innerCallback('fail',i.error('invalid_charge','no_livemode_field'));else i.innerCallback('fail',i.error('invalid_credential','credential_is_incorrect'));else i.innerCallback('fail',i.error('invalid_credential','credential_is_undefined'));else i.innerCallback('fail',i.error('invalid_charge','no_credential'))}else i.innerCallback('fail',i.error('invalid_charge','no_channel'));else i.innerCallback('fail',i.error('invalid_charge','no_charge_id'))},PingppSDK.prototype.setAPURL=function(e){c.APURL=e},PingppSDK.prototype.setUrlReturnCallback=function(e,n){if('function'!=typeof e)throw'callback need to be a function';if(i.urlReturnCallback=e,void 0!==n){if(!Array.isArray(n))throw'channels need to be an array';i.urlReturnChannels=n}}},{"./callbacks":1,"./collection":11,"./init":12,"./mods":15,"./payment_elements":16,"./stash":22,"./testmode":23,"./version":25}],15:[function(e,n,A){var t={}.hasOwnProperty,a={};n.exports=a,a.channels={wx_pub:e('./channels/wx_pub'),upacp_wap:e('./channels/upacp_wap'),alipay_wap:e('./channels/alipay_wap'),yeepay_wap:e('./channels/yeepay_wap'),jdpay_wap:e('./channels/jdpay_wap'),bfb_wap:e('./channels/bfb_wap'),wx_wap:e('./channels/wx_wap'),qpay_pub:e('./channels/qpay_pub')},a.extras={ap:e('./channels/extras/ap'),ui:e('./pingpp_ui/init')},a.getChannelModule=function(e){if(t.call(a.channels,e))return a.channels[e]},a.getExtraModule=function(e){if(t.call(a.extras,e))return a.extras[e]}},{"./channels/alipay_wap":2,"./channels/bfb_wap":3,"./channels/extras/ap":4,"./channels/jdpay_wap":5,"./channels/qpay_pub":6,"./channels/upacp_wap":7,"./channels/wx_pub":8,"./channels/wx_wap":9,"./channels/yeepay_wap":10,"./pingpp_ui/init":20}],16:[function(e,n,A){var t=e('./callbacks'),a={}.hasOwnProperty;n.exports={id:null,or_id:null,channel:null,app:null,credential:{},extra:null,livemode:null,order_no:null,time_expire:null,init:function(e){var n;if('string'==typeof e)try{n=JSON.parse(e)}catch(e){return void t.innerCallback('fail',t.error('json_decode_fail',e))}else n=e;{if(void 0!==n){if(a.call(n,'object')&&'order'==n.object){n.or_id=n.id,n.order_no=n.merchant_order_no;var A=n.charge_essentials;if(n.channel=A.channel,n.credential=A.credential,n.extra=A.extra,a.call(n,'charge')&&null!=n.charge)n.id=n.charge;else if(a.call(A,'id')&&null!=A.id)n.id=A.id;else if(a.call(n,'charges'))for(var o=0;o<n.charges.data.length;o++)if(n.charges.data[o].channel===A.channel){n.id=n.charges.data[o].id;break}}else a.call(n,'object')&&'recharge'==n.object&&(n=n.charge);for(var i in this)a.call(n,i)&&(this[i]=n[i]);return this}t.innerCallback('fail',t.error('json_decode_fail'))}},clear:function(){for(var e in this)'function'!=typeof this[e]&&(this[e]=null)}}},{"./callbacks":1}],17:[function(e,n,A){var t=e('../stash'),a=e('./utils'),o=e('../utils'),i=e('../main'),r=e('../collection');n.exports={buttonClickable:!0,maskClickable:!0,moveFlag:!1,charge:{},init:function(){var e=this;document.getElementById('p_one_channelList').addEventListener('click',function(n){if((n=n||event).preventDefault(),e.buttonClickable){e.buttonClickable=!1;var A=n.target,c=A.getAttribute('p_one_channel');if(null==c&&(c=A.parentNode.getAttribute('p_one_channel')),null==c&&(c=A.parentNode.parentNode.getAttribute('p_one_channel')),!t.userData.charge_url)return t.userCallback(c),void a.close();a.showLoading();var l={};if(l.channel=c,l.order_no=t.userData.order_no,l.amount=t.userData.amount,'wx_pub'==c&&(l.open_id=t.userData.open_id),t.userData.charge_param){var s=t.userData.charge_param;for(var g in s)l[g]=s[g]}o.request(t.userData.charge_url,'POST',l,function(n,A){if(a.hideLoading(),200==A){e.charge=n;try{var o=JSON.parse(n);localStorage.setItem('pingpp_app_id',o.app),localStorage.setItem('pingpp_ch_id',o.id),localStorage.setItem('pingpp_amount',o.amount),localStorage.setItem('pingpp_subject',o.subject),localStorage.setItem('pingpp_channel',o.channel)}catch(e){}if(t.isDebugMode)return e.buttonClickable=!0,t.charge=n,t.channel=c,void t.userCallback({status:!0,msg:'charge success',debug:t.isDebugMode,chargeUrlOutput:n});t.type='charge_success',i.createPayment(n,e.callbackCharge)}else a.hideLoading(),a.close(),r.report({type:'charge_fail',channel:c}),t.userCallback({status:!1,msg:'network error',debug:t.isDebugMode})}),t.isDebugMode||r.report({type:'click',channel:c})}}),document.addEventListener('dbclick',function(){return!1}),document.ontouchmove=function(){e.moveFlag=!0},document.ontouchend=function(){e.moveFlag=!1};var n=document.getElementById('p_one_mask');n.addEventListener('touchstart',function(){});var A='ontouchend'in document?'touchend':'click';n.addEventListener(A,function(){e.maskClickable&&(e.buttonClickable=!0,e.moveFlag||(a.close(),e.moveFlag=!0,e.maskClickable=!1))})},callbackCharge:function(e,n){var A=this;a.close(),'fail'==e?t.userCallback({status:!1,msg:n.msg,debug:t.isDebugMode,chargeUrlOutput:A.charge}):'cancel'==e?t.userCallback({status:!1,msg:'cancel',debug:t.isDebugMode,chargeUrlOutput:A.charge}):'success'==e&&t.userCallback({status:!0,msg:e,wxSuccess:!0,debug:t.isDebugMode,chargeUrlOutput:A.charge})}}},{"../collection":11,"../main":14,"../stash":22,"../utils":24,"./utils":21}],18:[function(e,n,A){var t=e('./handlebars.runtime.js');!function(){var e=t.template,n=t.templates=t.templates||{};n.channel=e({1:function(e,n,A,t,a){var o,i=null!=n?n:e.nullContext||{},r=A.helperMissing;return(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"alipay_wap",{name:"compare",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"huabei",{name:"compare",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"wx_pub",{name:"compare",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"wx_wap",{name:"compare",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"upacp_wap",{name:"compare",hash:{},fn:e.program(10,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"upmp_wap",{name:"compare",hash:{},fn:e.program(12,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"bfb_wap",{name:"compare",hash:{},fn:e.program(14,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"jdpay_wap",{name:"compare",hash:{},fn:e.program(16,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"yeepay_wap",{name:"compare",hash:{},fn:e.program(18,a,0),inverse:e.noop,data:a}))?o:"")+(null!=(o=(A.compare||n&&n.compare||r).call(i,n,"qpay_pub",{name:"compare",hash:{},fn:e.program(20,a,0),inverse:e.noop,data:a}))?o:"")},2:function(e,n,A,t,a){return"                    <div p_one_channel=\"alipay_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_alipay\">支付宝</div></div>\n"},4:function(e,n,A,t,a){return"                    <div p_one_channel=\"alipay_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_huabei\">花呗分期</div></div>\n"},6:function(e,n,A,t,a){return"                    <div p_one_channel=\"wx_pub\" class=\"p_one_btn\"><div class=\"p_one_icon_wechat\">微信支付</div></div>\n"},8:function(e,n,A,t,a){return"                    <div p_one_channel=\"wx_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_wechat\">微信支付</div></div>\n"},10:function(e,n,A,t,a){return"                    <div p_one_channel=\"upacp_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_unionpay\">银联支付</div></div>\n"},12:function(e,n,A,t,a){return"                    <div p_one_channel=\"upmp_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_unionpay\">银联支付</div></div>\n"},14:function(e,n,A,t,a){return"                    <div p_one_channel=\"bfb_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_baidu\">百度钱包</div></div>\n"},16:function(e,n,A,t,a){return"                    <div p_one_channel=\"jdpay_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_jdpay\">京东支付</div></div>\n"},18:function(e,n,A,t,a){return"                    <div p_one_channel=\"yeepay_wap\" class=\"p_one_btn\"><div class=\"p_one_icon_yeepay\">易宝支付</div></div>\n"},20:function(e,n,A,t,a){return"                    <div p_one_channel=\"qpay_pub\" class=\"p_one_btn\"><div class=\"p_one_icon_qq\">QQ 公众号</div></div>\n"},compiler:[7,">= 4.0.0"],main:function(e,n,A,t,a){var o
;return"<style>\n\n        .p_one_window * {\n            -webkit-font-smoothing: antialiased\n        }\n\n        .p_one_window *, .p_one_window *:before, .p_one_window *:after {\n            -webkit-box-sizing: border-box;\n            -moz-box-sizing: border-box;\n            box-sizing: border-box\n        }\n\n        @font-face {\n            font-family: 'pingpp_ui';\n            src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SAxEAAAC8AAAAYGNtYXDmUubCAAABHAAAAFxnYXNwAAAAEAAAAXgAAAAIZ2x5ZlDh+EUAAAGAAAAYaGhlYWQG0B1QAAAZ6AAAADZoaGVhB7wDzwAAGiAAAAAkaG10eC4AAgcAABpEAAAAOGxvY2Enqh/+AAAafAAAAB5tYXhwACYDmgAAGpwAAAAgbmFtZeCnhecAABq8AAABqnBvc3QAAwAAAAAcaAAAACAAAwPRAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADmFgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAQAAAAAwACAACAAQAAQAg5gjmFv/9//8AAAAAACDmAOYW//3//wAB/+MaBBn3AAMAAQAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAFAA1A+wDSgBRAG0AAAE3MxUzNhYdASEVMzIWFx4BFRQGBw4BDwEXHgEfARUnLgEnLgEvAQcOAQcOAQcOAScuAScuATc+ATc+ATcyFhceATc+ATc+AT8BBTUzNSE1ITcDLgEnJgYHDgEHDgEXHgEXFjY3PgE/AScuAScxAaQCiYxGRv7odSYwCgoKDQ0NFQkWEC9zRDkVD04/P04OJgwKJhobLRMyZjQzViMgHwICJSQhVzUxeEchJQUDDwwLDw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pAG4AZwBwAHAAXwBvAG4AZVZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMHBpbmdwcF9vbmUAcABpAG4AZwBwAHAAXwBvAG4AZXBpbmdwcF9vbmUAcABpAG4AZwBwAHAAXwBvAG4AZVJlZ3VsYXIAUgBlAGcAdQBsAGEAcnBpbmdwcF9vbmUAcABpAG4AZwBwAHAAXwBvAG4AZUZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format(\"truetype\");\n            font-weight: normal;\n            font-style: normal\n        }\n\n        @font-face {\n            font-family: 'pingpp_huabei';\n            src: url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBTkAAAC8AAAAYGNtYXAXVtKIAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZoQDjLoAAAF4AAACdGhlYWQPs6BNAAAD7AAAADZoaGVhB4UDxwAABCQAAAAkaG10eA0rAAAAAARIAAAAGGxvY2EBYgCoAAAEYAAAAA5tYXhwAAkAcgAABHAAAAAgbmFtZZlKCfsAAASQAAABhnBvc3QAAwAAAAAGGAAAACAAAwMOAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpAQPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6QH//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAD/0gNTA8AATQAANw4BFx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ADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=)format(\"truetype\");\n            font-weight: normal;\n            font-style: normal\n        }\n\n        .p_one_icon_jdpay:before {\n            content: \"\\e607\"\n        }\n\n        .p_one_icon_alipay:before {\n            content: \"\\e600\"\n        }\n\n        .p_one_icon_qq:before {\n            content: \"\\e900\"\n        }\n\n        .p_one_icon_huabei:before {\n            content: \"\\e901\"\n        }\n\n        .p_one_icon_unionpay:before {\n            content: \"\\e601\"\n        }\n\n        .p_one_icon_wechat:before {\n            content: \"\\e602\"\n        }\n\n        .p_one_icon_baidu:before {\n            content: \"\\e603\"\n        }\n\n        .p_one_icon_yeepay:before {\n            content: \"\\e616\"\n        }\n\n        .p_one_icon_kuaiqian:before {\n            content: \"\\e608\"\n        }\n\n        .p_one_icon_close:before {\n            content: \"\\e604\"\n        }\n\n        .p_one_icon_bag:before {\n            content: \"\\e605\"\n        }\n\n        .p_one_icon_done:before {\n            content: \"\\e606\"\n        }\n\n        .p_one_mask {\n            overflow: hidden;\n            position: fixed;\n            top: 0;\n            right: 0;\n            bottom: 0;\n            left: 0;\n            z-index: 2147483646;\n            background-color: transparent;\n            transition: background-color 0.4s;\n            -webkit-transition: background-color 0.4s;\n            -moz-transition: background-color 0.4s;\n            -o-transition: background-color 0.4s;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none\n        }\n\n        .p_one_window {\n            overflow: hidden;\n            position: fixed;\n            min-height: 52px;\n            width: 100%;\n            right: 0;\n            bottom: 0;\n            left: 0;\n            z-index: 2147483647;\n            color: #0e2026;\n            font: 16px/2 \"Helvetica Neue\", \"Helvetica\", \"Hiragino Sans GB\", \"Heiti SC\", STHeiti;\n            font-weight: normal;\n            -webkit-user-select: none;\n            -moz-user-select: none;\n            -ms-user-select: none;\n            user-select: none;\n            -webkit-transform: translate3d(0, 0, 0);\n            -moz-transform: translate3d(0, 0, 0);\n            -o-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0)\n        }\n\n        .p_one_window .p_one_html {\n            -webkit-transform: translate3d(0, 100%, 0);\n            -moz-transform: translate3d(0, 100%, 0);\n            -o-transform: translate3d(0, 100%, 0);\n            transform: translate3d(0, 100%, 0);\n            -webkit-transition: -webkit-transform 0.4s;\n            -moz-transition: -moz-transform 0.4s;\n            -o-transition: -o-transform 0.4s;\n            transition: transform 0.4s;\n            -webkit-transition: transform .4s\n        }\n\n        .p_one_window .p_one_html.in {\n            -webkit-transform: translate3d(0, 0, 0);\n            -moz-transform: translate3d(0, 0, 0);\n            -o-transform: translate3d(0, 0, 0);\n            transform: translate3d(0, 0, 0)\n        }\n\n        .p_one_window .p_one_body {\n            position: relative;\n            padding: 10px\n        }\n\n        .p_one_window .p_one_channel {\n            text-align: center;\n            -webkit-border-radius: 15px;\n            -moz-border-radius: 15px;\n            border-radius: 15px;\n            overflow: hidden;\n            -webkit-tap-highlight-color: transparent\n        }\n\n        .p_one_window .p_one_btn {\n            display: inline-block;\n            width: 100%;\n            cursor: pointer;\n            padding: 7px 13px;\n            border-bottom: 1px solid rgba(225, 225, 225, 0.7);\n            line-height: 2.4;\n            background-color: rgba(247, 247, 247, 0.98);\n            -webkit-tap-highlight-color: transparent;\n            transition: background-color 0.15s;\n            -webkit-transition: background-color 0.15s;\n            -moz-transition: background-color 0.15s;\n            -o-transition: background-color 0.15s\n        }\n\n        .p_one_window .p_one_btn:active {\n            background-color: rgba(235, 235, 235, 0.98)\n        }\n\n        .p_one_window .p_one_btn:last-child {\n            border-bottom: none\n        }\n\n        .p_one_window [class^=\"p_one_icon_\"] {\n            position: relative;\n            display: inline-block;\n            width: 100px;\n            padding-left: 33px;\n            white-space: nowrap;\n            text-align: left\n        }\n\n        .p_one_window [class^=\"p_one_icon_\"]:before {\n            position: absolute;\n            left: 0;\n            top: 8px;\n            font-size: 22px;\n            line-height: 1;\n            font-family: 'pingpp_ui','pingpp_huabei'\n        }\n\n        .p_one_window.p_one_default .p_one_body {\n            padding: 0\n        }\n\n        .p_one_window.p_one_default .p_one_channel {\n            -webkit-border-radius: 0;\n            -moz-border-radius: 0;\n            border-radius: 0\n        }\n\n        .p_one_window.p_one_default .p_one_btn {\n            border-bottom: none\n        }\n\n        body.p_one_open {\n            overflow: hidden;\n            position: relative\n        }\n\n        body.p_one_open .p_one_window {\n            display: block\n        }\n\n        body.p_one_open .p_one_mask {\n            background-color: rgba(0, 0, 0, 0.4)\n        }\n\n        .p_one_ads {\n            position: absolute; \n            bottom: 17px;\n            right: 20px\n        }\n\n        .p_one_ads.p_one_default {\n            bottom: 0px;\n            right: 0px\n        }\n\n    </style>\n\n    <div id=\"p_one_mask\" class=\"p_one_mask\"></div>\n    <div class=\"p_one_window "+e.escapeExpression(e.lambda(null!=n?n.client:n,n))+"\">\n        <div class=\"p_one_html\">\n            <div class=\"p_one_body\">\n                <div id=\"p_one_channelList\" class=\"p_one_channel\">\n"+(null!=(o=A.each.call(null!=n?n:e.nullContext||{},null!=n?n.channel:n,{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?o:"")+"                </div>\n            </div>\n        </div>\n    </div>"},useData:!0}),n.success=e({1:function(e,n,A,t,a){return"bottom: 0px;"},compiler:[7,">= 4.0.0"],main:function(e,n,A,t,a){var o,i,r=null!=n?n:e.nullContext||{},c=A.helperMissing,l=e.escapeExpression;return"<div style=\"position: fixed; top: 0;left: 0;bottom: 0;right: 0; margin: auto;font-size: 18px; line-height: 2; text-align: center; background-color: #fff;\">\n    <div style=\"position: absolute;width: 100px;height: 200px; margin: auto; left: 0; top: 0; right: 0;bottom: 0;\">\n        <img src=\"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCIgdmlld0JveD0iMCAwIDY0IDY0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPgogICAgPHRpdGxlPjwvdGl0bGU+CiAgICA8ZyBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgICAgICA8cGF0aCBkPSJNMzIsNjQgQzQ5LjY3MzExMiw2NCA2NCw0OS42NzMxMTIgNjQsMzIgQzY0LDE0LjMyNjg4OCA0OS42NzMxMTIsMCAzMiwwIEMxNC4zMjY4ODgsMCAwLDE0LjMyNjg4OCAwLDMyIEMwLDQ5LjY3MzExMiAxNC4zMjY4ODgsNjQgMzIsNjQgWiBNMjcuMjUsMzguNjAyNSBMMjAuNjQ3NSwzMiBMMTguNDA3MDgzMywzNC4yNDA0MTY3IEwyNy4yNSw0My4wODMzMzMzIEw0Ni4yNSwyNC4wODMzMzMzIEw0NC4wMDk1ODMzLDIxLjg0MjkxNjcgTDI3LjI1LDM4LjYwMjUgWiIgaWQ9Ik92YWwtMzYiIGZpbGw9IiM0N0NDQkIiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+\" alt=\"\">\n        <div style=\"color: #47ccba;\">支付成功</div>\n    </div>\n    <div style=\"position: absolute;width: 100%;bottom: 180px;\">\n        <a href=\"#\" style=\"display: block; margin: 0 15px;padding: 7px;border-radius:3px; background-color: #47ccba; color: #fff;text-decoration: none;\" id=\"p_one_goon\">完成</a>\n    </div>\n\n    <div style=\"position: absolute;width: 100%;height:110px;"+(null!=(o=(A.position||n&&n.position||c).call(r,null!=n?n.position:n,0,{name:"position",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a}))?o:"")+"\">\n        <a href=\""+l("function"==typeof(i=null!=(i=A.click_url||(null!=n?n.click_url:n))?i:c)?i.call(r,{name:"click_url",hash:{},data:a}):i)+"\"><div id=\"p_ads_btn\" style=\"height:110px;background: url("+l("function"==typeof(i=null!=(i=A.img_url||(null!=n?n.img_url:n))?i:c)?i.call(r,{name:"img_url",hash:{},data:a}):i)+") 0% 0% / 100% 100% no-repeat;\"></div></a>\n    </div>\n</div>\n"},useData:!0}),n.loading=e({compiler:[7,">= 4.0.0"],main:function(e,n,A,t,a){return"<div style=\"position: fixed;top: 0;right: 0;bottom: 0;left: 0;background-color: rgba(0,0,0,.4);z-index: 2147483647;\">\n        <div style=\"position: absolute;width: 150px;height: 105px;top: 0;right: 0;bottom: 0;left: 0;margin: auto;color: #fff;text-align: center;\">\n            <img src=\"data:image/svg+xml;base64,PCEtLSBCeSBTYW0gSGVyYmVydCAoQHNoZXJiKSwgZm9yIGV2ZXJ5b25lLiBNb3JlIEAgaHR0cDovL2dvby5nbC83QUp6YkwgLS0+Cjxzdmcgd2lkdGg9IjQ0IiBoZWlnaHQ9IjQ0IiB2aWV3Qm94PSIwIDAgNDQgNDQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgICAgICA8Y2lyY2xlIGN4PSIyMiIgY3k9IjIyIiByPSIxIj4KICAgICAgICAgICAgPGFuaW1hdGUgYXR0cmlidXRlTmFtZT0iciIKICAgICAgICAgICAgICAgIGJlZ2luPSIwcyIgZHVyPSIxLjhzIgogICAgICAgICAgICAgICAgdmFsdWVzPSIxOyAyMCIKICAgICAgICAgICAgICAgIGNhbGNNb2RlPSJzcGxpbmUiCiAgICAgICAgICAgICAgICBrZXlUaW1lcz0iMDsgMSIKICAgICAgICAgICAgICAgIGtleVNwbGluZXM9IjAuMTY1LCAwLjg0LCAwLjQ0LCAxIgogICAgICAgICAgICAgICAgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InN0cm9rZS1vcGFjaXR5IgogICAgICAgICAgICAgICAgYmVnaW49IjBzIiBkdXI9IjEuOHMiCiAgICAgICAgICAgICAgICB2YWx1ZXM9IjE7IDAiCiAgICAgICAgICAgICAgICBjYWxjTW9kZT0ic3BsaW5lIgogICAgICAgICAgICAgICAga2V5VGltZXM9IjA7IDEiCiAgICAgICAgICAgICAgICBrZXlTcGxpbmVzPSIwLjMsIDAuNjEsIDAuMzU1LCAxIgogICAgICAgICAgICAgICAgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+CiAgICAgICAgPC9jaXJjbGU+CiAgICAgICAgPGNpcmNsZSBjeD0iMjIiIGN5PSIyMiIgcj0iMSI+CiAgICAgICAgICAgIDxhbmltYXRlIGF0dHJpYnV0ZU5hbWU9InIiCiAgICAgICAgICAgICAgICBiZWdpbj0iLTAuOXMiIGR1cj0iMS44cyIKICAgICAgICAgICAgICAgIHZhbHVlcz0iMTsgMjAiCiAgICAgICAgICAgICAgICBjYWxjTW9kZT0ic3BsaW5lIgogICAgICAgICAgICAgICAga2V5VGltZXM9IjA7IDEiCiAgICAgICAgICAgICAgICBrZXlTcGxpbmVzPSIwLjE2NSwgMC44NCwgMC40NCwgMSIKICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogICAgICAgICAgICA8YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJzdHJva2Utb3BhY2l0eSIKICAgICAgICAgICAgICAgIGJlZ2luPSItMC45cyIgZHVyPSIxLjhzIgogICAgICAgICAgICAgICAgdmFsdWVzPSIxOyAwIgogICAgICAgICAgICAgICAgY2FsY01vZGU9InNwbGluZSIKICAgICAgICAgICAgICAgIGtleVRpbWVzPSIwOyAxIgogICAgICAgICAgICAgICAga2V5U3BsaW5lcz0iMC4zLCAwLjYxLCAwLjM1NSwgMSIKICAgICAgICAgICAgICAgIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPgogICAgICAgIDwvY2lyY2xlPgogICAgPC9nPgo8L3N2Zz4=\" width=\"50\" height=\"50\">\n            \x3c!--<div><%=data.text%></div>--\x3e\n        </div>\n    </div>"},useData:!0})}()},{"./handlebars.runtime.js":19}],19:[function(e,n,A){!function(e,t){'object'==typeof A&&'object'==typeof n?n.exports=t():'object'==typeof A?A.Handlebars=t():e.Handlebars=t()}(this,function(){return function(e){function n(t){if(A[t])return A[t].exports;var a=A[t]={exports:{},id:t,loaded:!1};return e[t].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}var A={};return n.m=e,n.c=A,n.p="",n(0)}([function(e,n,A){'use strict';function t(){var e=new i.HandlebarsEnvironment;return l.extend(e,i),e.SafeString=r.default,e.Exception=c.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=s,e.template=function(n){return s.template(n,e)},e}var a=A(1).default,o=A(2).default;n.__esModule=!0;var i=a(A(3)),r=o(A(17)),c=o(A(5)),l=a(A(4)),s=a(A(18)),g=o(A(19)),u=t();u.create=t,g.default(u),u.default=u,n.default=u,e.exports=n.default},function(e,n){"use strict";n.default=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var A in e)Object.prototype.hasOwnProperty.call(e,A)&&(n[A]=e[A]);return n.default=e,n},n.__esModule=!0},function(e,n){"use strict";n.default=function(e){return e&&e.__esModule?e:{default:e}},n.__esModule=!0},function(e,n,A){'use strict';function t(e,n,A){this.helpers=e||{},this.partials=n||{},this.decorators=A||{},r.registerDefaultHelpers(this),c.registerDefaultDecorators(this)}var a=A(2).default;n.__esModule=!0,n.HandlebarsEnvironment=t;var o=A(4),i=a(A(5)),r=A(6),c=A(14),l=a(A(16));n.VERSION="4.0.5";n.COMPILER_REVISION=7;var s={1:'<= 1.0.rc.2',2:'== 1.0.0-rc.3',3:'== 1.0.0-rc.4',4:'== 1.x.x',5:'== 2.0.0-alpha.x',6:'>= 2.0.0-beta.1',7:'>= 4.0.0'};n.REVISION_CHANGES=s;t.prototype={constructor:t,logger:l.default,log:l.default.log,registerHelper:function(e,n){if("[object Object]"===o.toString.call(e)){if(n)throw new i.default('Arg not supported with multiple helpers');o.extend(this.helpers,e)}else this.helpers[e]=n},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,n){if("[object Object]"===o.toString.call(e))o.extend(this.partials,e);else{if(void 0===n)throw new i.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=n}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,n){if("[object Object]"===o.toString.call(e)){if(n)throw new i.default('Arg not supported with multiple decorators');o.extend(this.decorators,e)}else this.decorators[e]=n},unregisterDecorator:function(e){delete this.decorators[e]}};var g=l.default.log;n.log=g,n.createFrame=o.createFrame,n.logger=l.default},function(e,n){'use strict';function A(e){return a[e]}function t(e){for(var n=1;n<arguments.length;n++)for(var A in arguments[n])Object.prototype.hasOwnProperty.call(arguments[n],A)&&(e[A]=arguments[n][A]);return e}n.__esModule=!0,n.extend=t,n.indexOf=function(e,n){for(var A=0,t=e.length;A<t;A++)if(e[A]===n)return A;return-1},n.escapeExpression=function(e){if('string'!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return'';if(!e)return e+'';e=''+e}return i.test(e)?e.replace(o,A):e},n.isEmpty=function(e){return!e&&0!==e||!(!l(e)||0!==e.length)},n.createFrame=function(e){var n=t({},e);return n._parent=e,n},n.blockParams=function(e,n){return e.path=n,e},n.appendContextPath=function(e,n){return(e?e+'.':'')+n};var a={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#x27;','`':'&#x60;','=':'&#x3D;'},o=/[&<>"'`=]/g,i=/[&<>"'`=]/,r=Object.prototype.toString;n.toString=r;var c=function(e){return'function'==typeof e};c(/x/)&&(n.isFunction=c=function(e){return'function'==typeof e&&'[object Function]'===r.call(e)}),n.isFunction=c;var l=Array.isArray||function(e){return!(!e||'object'!=typeof e)&&'[object Array]'===r.call(e)};n.isArray=l},function(e,n){'use strict';function A(e,n){var a=n&&n.loc,o=void 0,i=void 0;a&&(e+=' - '+(o=a.start.line)+':'+(i=a.start.column));for(var r=Error.prototype.constructor.call(this,e),c=0;c<t.length;c++)this[t[c]]=r[t[c]];Error.captureStackTrace&&Error.captureStackTrace(this,A),a&&(this.lineNumber=o,this.column=i)}n.__esModule=!0;var t=['description','fileName','lineNumber','message','name','number','stack'];A.prototype=new Error,n.default=A,e.exports=n.default},function(e,n,A){'use strict';var t=A(2).default;n.__esModule=!0,n.registerDefaultHelpers=function(e){a.default(e),o.default(e),i.default(e),r.default(e),c.default(e),l.default(e),s.default(e)};var a=t(A(7)),o=t(A(8)),i=t(A(9)),r=t(A(10)),c=t(A(11)),l=t(A(12)),s=t(A(13))},function(e,n,A){'use strict';n.__esModule=!0;var t=A(4);n.default=function(e){e.registerHelper('blockHelperMissing',function(n,A){var a=A.inverse,o=A.fn;if(!0===n)return o(this);if(!1===n||null==n)return a(this);if(t.isArray(n))return n.length>0?(A.ids&&(A.ids=[A.name]),e.helpers.each(n,A)):a(this);if(A.data&&A.ids){var i=t.createFrame(A.data);i.contextPath=t.appendContextPath(A.data.contextPath,A.name),A={data:i}}return o(n,A)})},e.exports=n.default},function(e,n,A){'use strict';var t=A(2).default;n.__esModule=!0;var a=A(4),o=t(A(5));n.default=function(e){e.registerHelper('each',function(e,n){function A(n,A,o){l&&(l.key=n,l.index=A,l.first=0===A,l.last=!!o,s&&(l.contextPath=s+n)),c+=t(e[n],{data:l,blockParams:a.blockParams([e[n],n],[s+n,null])})}if(!n)throw new o.default('Must pass iterator to #each');var t=n.fn,i=n.inverse,r=0,c='',l=void 0,s=void 0;if(n.data&&n.ids&&(s=a.appendContextPath(n.data.contextPath,n.ids[0])+'.'),a.isFunction(e)&&(e=e.call(this)),n.data&&(l=a.createFrame(n.data)),e&&'object'==typeof e)if(a.isArray(e))for(var g=e.length;r<g;r++)r in e&&A(r,r,r===e.length-1);else{var u=void 0;for(var p in e)e.hasOwnProperty(p)&&(void 0!==u&&A(u,r-1),u=p,r++);void 0!==u&&A(u,r-1,!0)}return 0===r&&(c=i(this)),c})},e.exports=n.default},function(e,n,A){'use strict';var t=A(2).default;n.__esModule=!0;var a=t(A(5));n.default=function(e){e.registerHelper('helperMissing',function(){if(1!==arguments.length)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=n.default},function(e,n,A){'use strict';n.__esModule=!0;var t=A(4);n.default=function(e){e.registerHelper('if',function(e,n){return t.isFunction(e)&&(e=e.call(this)),!n.hash.includeZero&&!e||t.isEmpty(e)?n.inverse(this):n.fn(this)}),e.registerHelper('unless',function(n,A){return e.helpers.if.call(this,n,{fn:A.inverse,inverse:A.fn,hash:A.hash})})},e.exports=n.default},function(e,n){'use strict';n.__esModule=!0,n.default=function(e){e.registerHelper('log',function(){for(var n=[void 0],A=arguments[arguments.length-1],t=0;t<arguments.length-1;t++)n.push(arguments[t]);var a=1;null!=A.hash.level?a=A.hash.level:A.data&&null!=A.data.level&&(a=A.data.level),n[0]=a,e.log.apply(e,n)})},e.exports=n.default},function(e,n){'use strict';n.__esModule=!0,n.default=function(e){e.registerHelper('lookup',function(e,n){return e&&e[n]})},e.exports=n.default},function(e,n,A){'use strict';n.__esModule=!0;var t=A(4);n.default=function(e){e.registerHelper('with',function(e,n){t.isFunction(e)&&(e=e.call(this));var A=n.fn;if(t.isEmpty(e))return n.inverse(this);var a=n.data;return n.data&&n.ids&&((a=t.createFrame(n.data)).contextPath=t.appendContextPath(n.data.contextPath,n.ids[0])),A(e,{data:a,blockParams:t.blockParams([e],[a&&a.contextPath])})})},e.exports=n.default},function(e,n,A){'use strict';var t=A(2).default;n.__esModule=!0,n.registerDefaultDecorators=function(e){a.default(e)};var a=t(A(15))},function(e,n,A){'use strict';n.__esModule=!0;var t=A(4);n.default=function(e){e.registerDecorator('inline',function(e,n,A,a){var o=e;return n.partials||(n.partials={},o=function(a,o){var i=A.partials;A.partials=t.extend({},i,n.partials);var r=e(a,o);return A.partials=i,r}),n.partials[a.args[0]]=a.fn,o})},e.exports=n.default},function(e,n,A){'use strict';n.__esModule=!0;var t=A(4),a={methodMap:['debug','info','warn','error'],level:'info',lookupLevel:function(e){if('string'==typeof e){var n=t.indexOf(a.methodMap,e.toLowerCase());e=n>=0?n:parseInt(e,10)}return e},log:function(e){if(e=a.lookupLevel(e),'undefined'!=typeof console&&a.lookupLevel(a.level)<=e){var n=a.methodMap[e];console[n]||(n='log');for(var A=arguments.length,t=Array(A>1?A-1:0),o=1;o<A;o++)t[o-1]=arguments[o];console[n].apply(console,t)}}};n.default=a,e.exports=n.default},function(e,n){'use strict';function A(e){this.string=e}n.__esModule=!0,A.prototype.toString=A.prototype.toHTML=function(){
return''+this.string},n.default=A,e.exports=n.default},function(e,n,A){'use strict';function t(e,n,A,t,a,o,r){function c(n){var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=r;return r&&n!==r[0]&&(i=[n].concat(r)),A(e,n,e.helpers,e.partials,a.data||t,o&&[a.blockParams].concat(o),i)}return c=i(A,c,e,r,t,o),c.program=n,c.depth=r?r.length:0,c.blockParams=a||0,c}function a(){return''}function o(e,n){return n&&'root'in n||((n=n?g.createFrame(n):{}).root=e),n}function i(e,n,A,t,a,o){if(e.decorator){var i={};n=e.decorator(n,i,A,t&&t[0],a,o,t),l.extend(n,i)}return n}var r=A(1).default,c=A(2).default;n.__esModule=!0,n.checkRevision=function(e){var n=e&&e[0]||1,A=g.COMPILER_REVISION;if(n!==A){if(n<A){var t=g.REVISION_CHANGES[A],a=g.REVISION_CHANGES[n];throw new s.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+t+') or downgrade your runtime to an older version ('+a+').')}throw new s.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+').')}},n.template=function(e,n){function A(n){function t(n){return''+e.main(a,n,a.helpers,a.partials,c,s,l)}var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],c=r.data;A._setup(r),!r.partial&&e.useData&&(c=o(n,c));var l=void 0,s=e.useBlockParams?[]:void 0;return e.useDepths&&(l=r.depths?n!==r.depths[0]?[n].concat(r.depths):r.depths:[n]),(t=i(e.main,t,a,r.depths||[],c,s))(n,r)}if(!n)throw new s.default('No environment passed to template');if(!e||!e.main)throw new s.default('Unknown template object: '+typeof e);e.main.decorator=e.main_d,n.VM.checkRevision(e.compiler);var a={strict:function(e,n){if(!(n in e))throw new s.default('"'+n+'" not defined in '+e);return e[n]},lookup:function(e,n){for(var A=e.length,t=0;t<A;t++)if(e[t]&&null!=e[t][n])return e[t][n]},lambda:function(e,n){return'function'==typeof e?e.call(n):e},escapeExpression:l.escapeExpression,invokePartial:function(A,t,a){a.hash&&(t=l.extend({},t,a.hash),a.ids&&(a.ids[0]=!0)),A=n.VM.resolvePartial.call(this,A,t,a);var o=n.VM.invokePartial.call(this,A,t,a);if(null==o&&n.compile&&(a.partials[a.name]=n.compile(A,e.compilerOptions,n),o=a.partials[a.name](t,a)),null!=o){if(a.indent){for(var i=o.split('\n'),r=0,c=i.length;r<c&&(i[r]||r+1!==c);r++)i[r]=a.indent+i[r];o=i.join('\n')}return o}throw new s.default('The partial '+a.name+' could not be compiled when running in runtime-only mode')},fn:function(n){var A=e[n];return A.decorator=e[n+'_d'],A},programs:[],program:function(e,n,A,a,o){var i=this.programs[e],r=this.fn(e);return n||o||a||A?i=t(this,e,r,n,A,a,o):i||(i=this.programs[e]=t(this,e,r)),i},data:function(e,n){for(;e&&n--;)e=e._parent;return e},merge:function(e,n){var A=e||n;return e&&n&&e!==n&&(A=l.extend({},n,e)),A},noop:n.VM.noop,compilerInfo:e.compiler};return A.isTop=!0,A._setup=function(A){A.partial?(a.helpers=A.helpers,a.partials=A.partials,a.decorators=A.decorators):(a.helpers=a.merge(A.helpers,n.helpers),e.usePartial&&(a.partials=a.merge(A.partials,n.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=a.merge(A.decorators,n.decorators)))},A._child=function(n,A,o,i){if(e.useBlockParams&&!o)throw new s.default('must pass block params');if(e.useDepths&&!i)throw new s.default('must pass parent depths');return t(a,n,e[n],A,0,o,i)},A},n.wrapProgram=t,n.resolvePartial=function(e,n,A){return e?e.call||A.name||(A.name=e,e=A.partials[e]):e='@partial-block'===A.name?A.data['partial-block']:A.partials[A.name],e},n.invokePartial=function(e,n,A){A.partial=!0,A.ids&&(A.data.contextPath=A.ids[0]||A.data.contextPath);var t=void 0;if(A.fn&&A.fn!==a&&(A.data=g.createFrame(A.data),(t=A.data['partial-block']=A.fn).partials&&(A.partials=l.extend({},A.partials,t.partials))),void 0===e&&t&&(e=t),void 0===e)throw new s.default('The partial '+A.name+' could not be found');if(e instanceof Function)return e(n,A)},n.noop=a;var l=r(A(4)),s=c(A(5)),g=A(3)},function(e,n){(function(A){'use strict';n.__esModule=!0,n.default=function(e){var n=void 0!==A?A:window,t=n.Handlebars;e.noConflict=function(){return n.Handlebars===e&&(n.Handlebars=t),e}},e.exports=n.default}).call(n,function(){return this}())}])})},{}],20:[function(e,n,A){var t=e('../stash'),a=e('../mods'),o=e('../utils'),i=e('./handlebars.runtime.js');e('./css.hbs.js');var r=e('./bind'),c=e('./utils'),l=e('../main'),s=e('../version').v,g={AD_URL:'https://one.pingxx.com/v1/ad',version:'2.0.3',ad_version:'1.0.2',init:function(e,n){c.hideLoading(),t.userData=e,t.isDebugMode=e.debug||!1,t.userCallback=n,r.moveFlag=!1;var A=e.channel||{};if(void 0!==e.channel)if(0!=e.channel.length){for(var l=0;l<A.length;l++)if(void 0===a.getChannelModule(A[l]))return void n({status:!1,msg:'传入了非法渠道：'+A[l],debug:t.isDebugMode});for(var s={},g=0;g<A.length;g++)switch(A[g]){case'alipay_wap':s.alipay_wap='alipay_wap';break;case'upmp_wap':s.upmp_wap='upmp_wap';break;case'upacp_wap':s.upacp_wap='upacp_wap';break;case'bfb_wap':s.bfb_wap='bfb_wap';break;case'wx_pub':s.wx_pub='wx_pub';break;case'jdpay_wap':s.jdpay_wap='jdpay_wap';break;case'yeepay_wap':s.yeepay_wap='yeepay_wap';break;case'wx_wap':s.wx_wap='wx_wap'}if(s.wx_pub&&!o.inWeixin()&&(A=c.removeFromArray(A,'wx_pub'),delete s.wx_pub),s.upmp_wap&&o.inWeixin()&&(A=c.removeFromArray(A,'upmp_wap'),delete s.upmp_wap),!s.wx_pub||!o.inWeixin()||e.open_id&&''!=e.open_id){s.client=navigator.userAgent.toLowerCase().match('iphone')?'':' p_one_default',s.channel=A,i.registerHelper('compare',function(e,n,A){return e==n?A.fn(this):A.inverse(this)});var u=i.templates.channel(s);c.createFrame(u),setTimeout(function(){c.open(),setTimeout(function(){r.maskClickable=!0},400),setTimeout(function(){r.buttonClickable=!0,r.init()},700)},0)}else n({status:!1,msg:'缺少参数 open_id',debug:t.isDebugMode})}else n({status:!1,msg:'请至少配置一个渠道',debug:t.isDebugMode});else n({status:!1,msg:'缺少参数 channel',debug:t.isDebugMode})},resume:function(){l.createPayment(t.charge,r.callbackCharge)},createPayment:function(e,n){'string'==typeof e&&(e=JSON.parse(e));try{localStorage.setItem('pingpp_app_id',e.app),localStorage.setItem('pingpp_ch_id',e.id),localStorage.setItem('pingpp_amount',e.amount),localStorage.setItem('pingpp_subject',e.subject),localStorage.setItem('pingpp_channel',e.channel)}catch(e){}l.createPayment(e,n)},success:function(e,n){var A=this;window.ShitudtAdFinish=n,'function'==typeof n?o.documentReady(function(){try{t.app_id=localStorage.getItem('pingpp_app_id'),t.ch_id=localStorage.getItem('pingpp_ch_id'),t.amount=localStorage.getItem('pingpp_amount'),t.subject=localStorage.getItem('pingpp_subject'),t.channel=localStorage.getItem('pingpp_channel')}catch(e){}t.app_id||'undefined'==typeof pingpp_app_id||(t.app_id=pingpp_app_id),t.ch_id||'undefined'==typeof pingpp_ch_id||(t.ch_id=pingpp_ch_id),t.amount||'undefined'==typeof pingpp_amount||(t.amount=pingpp_amount),t.subject||'undefined'==typeof pingpp_subject||(t.subject=pingpp_subject),t.channel||'undefined'==typeof pingpp_channel||(t.channel=pingpp_channel);var e='H5';o.inAlipay()?e='alipay':o.inWeixin()&&(e='wx'),o.request(A.AD_URL,'GET',{app:t.app_id,charge_id:t.ch_id,amount:t.amount,subject:t.subject,channel:t.channel,version:A.ad_version,sdk_version:s,one_version:A.version,device:e},function(e,A){var t={};try{if('success'==(t=JSON.parse(e)).result&&'html'==t.type)return document.open(),document.write(t.content),void document.close()}catch(e){}i.registerHelper('position',function(e,n,A){return e==n?A.inverse(this):A.fn(this)});var a=i.templates.success(t.content),o=document.createElement('div');o.id='p_one_frame',o.innerHTML=a,document.body.appendChild(o),document.getElementById('p_one_goon').addEventListener('click',function(){n()})})}):e({status:!1,msg:'参数类型必须为 function'})}};'undefined'!=typeof window&&(window.pingpp_ui=g,o.documentReady(function(){setTimeout(function(){var e=document.createEvent('Event');e.initEvent('pingpp_one_ready',!0,!0),document.dispatchEvent(e)},0)})),n.exports=g},{"../main":14,"../mods":15,"../stash":22,"../utils":24,"../version":25,"./bind":17,"./css.hbs.js":18,"./handlebars.runtime.js":19,"./utils":21}],21:[function(e,n,A){var t=e('./bind'),a=e('./handlebars.runtime.js');n.exports={createFrame:function(e){if(null==document.getElementById('p_one_frame')){var n=document.createElement('div');n.id='p_one_frame',n.innerHTML=e,document.body.appendChild(n),t.buttonClickable=!0}else document.getElementById('p_one_frame').style.display='block',t.buttonClickable=!1},open:function(){this.addClass(document.body,'p_one_open'),this.addClass(document.getElementsByClassName('p_one_html')[0],'in')},close:function(){this.removeClass(document.getElementsByClassName('p_one_html')[0],'in'),setTimeout(function(){document.getElementById('p_one_frame').style.display='none'},400),this.removeClass(document.body,'p_one_open')},addClass:function(e,n){if(!this.hasClass(e,n)){var A=e.className?' '+n:n;e.className+=A}},hasClass:function(e,n){return e.className.match(new RegExp('(\\s|^)'+n+'(\\s|$)'))},removeClass:function(e,n){if(this.hasClass(e,n)){var A=new RegExp('(\\s|^)'+n+'(\\s|$)');e.className=e.className.replace(A,'')}},removeFromArray:function(e,n){for(var A=e.length,t=[],a=0;a<A;a++)e[a]!=n&&t.push(e[a]);return t},hideLoading:function(){document.getElementById('p_one_loading')&&document.body.removeChild(document.getElementById('p_one_loading'))},showLoading:function(){var e=a.templates.loading(),n=document.createElement('div');n.id='p_one_loading',n.innerHTML=e,document.body.appendChild(n)}}},{"./bind":17,"./handlebars.runtime.js":19}],22:[function(e,n,A){n.exports={}},{}],23:[function(e,n,A){var t=e('./utils'),a={}.hasOwnProperty;n.exports={PINGPP_MOCK_URL:'http://sissi.pingxx.com/mock.php',runTestMode:function(e){var n={ch_id:e.id,scheme:'http',channel:e.channel};a.call(e,'order_no')?n.order_no=e.order_no:a.call(e,'orderNo')&&(n.order_no=e.orderNo),a.call(e,'time_expire')?n.time_expire=e.time_expire:a.call(e,'timeExpire')&&(n.time_expire=e.timeExpire),a.call(e,'extra')&&(n.extra=encodeURIComponent(JSON.stringify(e.extra))),t.redirectTo(this.PINGPP_MOCK_URL+'?'+t.stringifyData(n),e.channel)}}},{"./utils":24}],24:[function(e,n,A){var t=e('./callbacks'),a={}.hasOwnProperty,o=n.exports={stringifyData:function(e,n,A){void 0===A&&(A=!1);var t=[];for(var o in e)a.call(e,o)&&'function'!=typeof e[o]&&('bfb_wap'==n&&'url'==o||'yeepay_wap'==n&&'mode'==o||'channel_url'!=o&&t.push(o+'='+(A?encodeURIComponent(e[o]):e[o])));return t.join('&')},request:function(e,n,A,t,i,r){if('undefined'!=typeof XMLHttpRequest){var c=new XMLHttpRequest;if(void 0!==c.timeout&&(c.timeout=6e3),'GET'===(n=n.toUpperCase())&&'object'==typeof A&&A&&(e+='?'+o.stringifyData(A,'',!0)),c.open(n,e,!0),void 0!==r)for(var l in r)a.call(r,l)&&c.setRequestHeader(l,r[l]);'POST'===n?(c.setRequestHeader('Content-type','application/json; charset=utf-8'),c.send(JSON.stringify(A))):c.send(),void 0===t&&(t=function(){}),void 0===i&&(i=function(){}),c.onreadystatechange=function(){4==c.readyState&&t(c.responseText,c.status,c)},c.onerror=function(e){i(c,0,e)}}else console.log('Function XMLHttpRequest is undefined.')},formSubmit:function(e,n,A){if('undefined'!=typeof window){var t=document.createElement('form');t.setAttribute('method',n),t.setAttribute('action',e);for(var o in A)if(a.call(A,o)){var i=document.createElement('input');i.setAttribute('type','hidden'),i.setAttribute('name',o),i.setAttribute('value',A[o]),t.appendChild(i)}document.body.appendChild(t),t.submit()}else console.log('Not a browser, form submit url: '+e)},randomString:function(e){void 0===e&&(e=32);for(var n='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',A=n.length,t='',a=0;a<e;a++)t+=n.charAt(Math.floor(Math.random()*A));return t},redirectTo:function(e,n){t.shouldReturnUrlByCallback(n)?t.triggerUrlReturnCallback(null,e):'undefined'!=typeof window?window.location.href=e:console.log('Not a browser, redirect url: '+e)},inWeixin:function(){return'undefined'!=typeof navigator&&-1!==navigator.userAgent.toLowerCase().indexOf('micromessenger')},inAlipay:function(){return'undefined'!=typeof navigator&&-1!==navigator.userAgent.toLowerCase().indexOf('alipayclient')},documentReady:function(e){'undefined'!=typeof document?'loading'!=document.readyState?e():document.addEventListener('DOMContentLoaded',e):e()},loadUrlJs:function(e,n,A){var t=document.getElementsByTagName('head')[0],a=null;null==document.getElementById(e)?((a=document.createElement('script')).setAttribute('type','text/javascript'),a.setAttribute('src',n),a.setAttribute('id',e),a.async=!0,null!=A&&(a.onload=a.onreadystatechange=function(){if(a.ready)return!1;a.readyState&&'loaded'!=a.readyState&&'complete'!=a.readyState||(a.ready=!0,A())}),t.appendChild(a)):null!=A&&A()}}},{"./callbacks":1}],25:[function(e,n,A){n.exports={v:'2.2.1'}},{}]},{},[14])(14)});
//# sourceMappingURL=pingpp_ui.js.map
