}};hasAttr=function(element,attr){varnode;if(typeofelement.hasAttribute==="function"){returnelement.hasAttribute(attr)}else{node=element.getAttributeNode(attr);return!!(node&&(node.specified||node.nodeValue))}};trigger=function(element,name,data,bubble){if(data==null){data={}}if(bubble==null){bubble=true}if(window.jQuery){returnjQuery(element).trigger(name,data)}};addClass=function(element,name){returnelement.className+=" "+name};hasClass=function(element,name){return__indexOf.call(element.className.split(" "),name)>=0};css=function(element,css){returnelement.style.cssText+=";"+css};insertBefore=function(element,child){returnelement.parentNode.insertBefore(child,element)};insertAfter=function(element,child){returnelement.parentNode.insertBefore(child,element.nextSibling)};append=function(element,child){returnelement.appendChild(child)};remove=function(element){var_ref;return(_ref=element.parentNode)!=null?_ref.removeChild(element):void0};parents=function(node){varancestors;ancestors=[];while((node=node.parentNode)&&node!==document&&__indexOf.call(ancestors,node)<0){ancestors.push(node)}returnancestors};resolve=function(url){varparser;parser=document.createElement("a");parser.href=url;return""+parser.href};text=function(element,value){if("innerText"inelement){element.innerText=value}else{element.textContent=value}returnvalue};module.exports={$:$,$$:$$,hasAttr:hasAttr,trigger:trigger,addClass:addClass,hasClass:hasClass,css:css,insertBefore:insertBefore,insertAfter:insertAfter,append:append,remove:remove,parents:parents,resolve:resolve,text:text}}).call(this)}});StripeCheckout.require.define({"outer/controllers/app":function(exports,require,module){(function(){varApp,Checkout,RPC,TokenCallback,tracker,utils,__bind=function(fn,me){returnfunction(){returnfn.apply(me,arguments)}};Checkout=require("outer/controllers/checkout");TokenCallback=require("outer/controllers/tokenCallback");RPC=require("lib/rpc");tracker=require("lib/tracker");utils=require("outer/lib/utils");App=function(){functionApp(options){var_ref,_ref1;if(options==null){options={}}this.setHost=__bind(this.setHost,this);this.configure=__bind(this.configure,this);this.close=__bind(this.close,this);this.open=__bind(this.open,this);this.configurations={};this.checkouts={};this.host="https://checkout.stripe.com";this.timeLoaded=Math.floor((newDate).getTime()/1e3);this.totalButtons=0;if(((_ref=window.Prototype)!=null?(_ref1=_ref.Version)!=null?_ref1.indexOf("1.6"):void0:void0)===0){console.error("Stripe Checkout is not compatible with your version of Prototype.js. Please upgrade to version 1.7 or greater.")}}App.prototype.open=function(options,buttonId){varcheckout,k,mergedOptions,v,_ref;if(buttonId==null){buttonId=null}mergedOptions={referrer:document.referrer,url:document.URL,timeLoaded:this.timeLoaded};if(buttonId&&this.configurations[buttonId]){_ref=this.configurations[buttonId];for(kin_ref){v=_ref[k];mergedOptions[k]=v}}for(kinoptions){v=options[k];mergedOptions[k]=v}if(mergedOptions.image){mergedOptions.image=utils.resolve(mergedOptions.image)}this.validateOptions(options,"open");if(buttonId){checkout=this.checkouts[buttonId]}else{checkout=newCheckout(newTokenCallback(options),this.host)}this.trackOpen(checkout,mergedOptions);returncheckout.open(mergedOptions)};App.prototype.close=function(buttonId){var_ref;return(_ref=this.checkouts[buttonId])!=null?_ref.close():void0};App.prototype.configure=function(buttonId,options){if(options==null){options={}}if(buttonIdinstanceofObject){options=buttonId;buttonId="button"+this.totalButtons++}if(options.image){options.image=utils.resolve(options.image)}this.validateOptions(options,"configure");this.configurations[buttonId]=options;this.checkouts[buttonId]=newCheckout(newTokenCallback(options),this.host);this.checkouts[buttonId].preload(options);return{open:function(_this){returnfunction(options){return_this.open(options,buttonId)}}(this),close:function(_this){returnfunction(){return_this.close(buttonId)}}(this)}};App.prototype.validateOptions=function(options,which){varurl;try{ret