1(()=>{var __getOwnPropNames=Object.getOwnPropertyNames;var __commonJS=(cb,mod)=>function __require(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var require_api=__commonJS({"javascripts/entrypoints/themes_support/api.js"(exports,module){if(typeof window.Shopify=="undefined"){window.Shopify={}}Shopify.money_format="${{amount}}";Shopify.onError=function(data){if(data.message){if(console)console.log(data.message+"("+data.status+"): "+data.description)}else{if(console)console.log("Error: "+Shopify.fullMessagesFromErrors(data).join("; ")+".")}},Shopify.fullMessagesFromErrors=function(errors){var fullMessages=[];if(console)console.log(errors);$H(errors).each(function(attribute_and_messages){attribute_and_messages[1].each(function(message,index){fullMessages.push(attribute_and_messages[0]+" "+message)})});return fullMessages};Shopify.onCartUpdate=function(cart){if(console)console.log("There are now "+cart.item_count+" items in the cart.")},Shopify.onCartShippingRatesUpdate=function(rates,shipping_address){var readable_address="";if(shipping_address.zip)readable_address+=shipping_address.zip+", ";if(shipping_address.province)readable_address+=shipping_address.province+", ";readable_address+=shipping_address.country;if(console)console.log("There are "+rates.length+" shipping rates available for "+readable_address+", starting at "+Shopify.formatMoney(rates[0].price)+".")},Shopify.onItemAdded=function(line_item){if(console)console.log(line_item.title+" Was added to your shopping cart")},Shopify.onProduct=function(product){if(console)console.log("Received everything we ever wanted to know about "+product.title)},Shopify.formatMoney=function(cents,format){if(typeof cents=="string"){cents=cents.replace(".","")}var value="";var placeholderRegex=/\{\{\s*(\w+)\s*\}\}/;var formatString=format||this.money_format;function defaultOption(opt,def){return typeof opt=="undefined"?def:opt}function formatWithDelimiters(number,precision,thousands,decimal){precision=defaultOption(precision,2);thousands=defaultOption(thousands,",");decimal=defaultOption(decimal,".");if(isNaN(number)||number==null){return 0}number=(number/100).toFixed(precision);var parts=number.split("."),dollars=parts[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+thousands),cents2=parts[1]?decimal+parts[1]:"";return dollars+cents2}switch(formatString.match(placeholderRegex)[1]){case"amount":value=formatWithDelimiters(cents,2);break;case"amount_no_decimals":value=formatWithDelimiters(cents,0);break;case"amount_with_comma_separator":value=formatWithDelimiters(cents,2,".",",");break;case"amount_with_space_separator":value=formatWithDelimiters(cents,2," ",",");break;case"amount_with_period_and_space_separator":value=formatWithDelimiters(cents,2," ",".");break;case"amount_no_decimals_with_comma_separator":value=formatWithDelimiters(cents,0,".",",");break;case"amount_no_decimals_with_space_separator":value=formatWithDelimiters(cents,0,".","");break;case"amount_with_apostrophe_separator":value=formatWithDelimiters(cents,2,"'",".");break}return formatString.replace(placeholderRegex,value)};Shopify.resizeImage=function(image,size){try{if(size=="original"){return image}else{var matches=image.match(/(.*\/[\w\-\_\.]+)\.(\w{2,4})/);return matches[1]+"_"+size+"."+matches[2]}}catch(e){return image}},Shopify.addItem=function(variant_id,quantity,callback2){var quantity=quantity||1;new Ajax.Request("/cart/add.js",this.params("post","quantity="+quantity+"&id="+variant_id,callback2||this.onItemAdded.bind(this)))},Shopify.addItemFromForm=function(form_id,callback2){new Ajax.Request("/cart/add.js",this.params("post",Form.serialize(form_id),callback2||this.onItemAdded.bind(this)))},Shopify.getCart=function(callback2){new Ajax.Request("/cart.js",this.params("get",null,callback2||this.onCartUpdate.bind(this)))},Shopify.pollForCartShippingRatesForDestination=function(shippingAddress,callback,errback){var poller=function(){var params=Shopify.params("get",{},null);params.onSuccess=function(t){if(t.status===200){var response=$(eval("("+t.responseText+")"));callback(response.shipping_rates,shippingAddress)}else{setTimeout(poller,500)}};params.onFailure=errback||params.onFailure;new Ajax.Request("/cart/async_shipping_rates.json",params)};return poller},Shopify.getCartShippingRatesForDestination=function(shippingAddress2,callback2,errback2){callback2=typeof callback2=="function"?callback2:Shopify.onCartShippingRatesUpdate;var shipping_address_params={};$H(shippingAddress2).each(function(pair){shipping_address_params["shipping_address["+pair[0]+"]"]=pair[1]});var params2=Shopify.params("post",shipping_address_params,callback2);params2.onSuccess=Shopify.pollForCartShippingRatesForDestination(shippingAddress2,callback2,errback2);params2.onFailure=errback2||params2.onFailure;new Ajax.Request("/cart/prepare_shipping_rates.json",params2)},Shopify.getProduct=function(handle,callback2){new Ajax.Request("/products/"+handle+".js",this.params("get",null,callback2||this.onProduct.bind(this)))},Shopify.changeItem=function(variant_id,quantity){new Ajax.Request("/cart/change.js",this.params("post","quantity="+quantity+"&id="+variant_id,this.onCartUpdate.bind(this)))},Shopify.removeItem=function(variant_id){new Ajax.Request("/cart/change.js",this.params("post","quantity=0&id="+variant_id,this.onCartUpdate.bind(this)))},Shopify.clear=function(){new Ajax.Request("/cart/clear.js",this.params("post","",this.onCartUpdate.bind(this)))},Shopify.updateCart=function(updates,callback2){var query="";if(updates.type==Array){$A(array).flatten().each(function(qty){query+="updates[]="+qty.toString()+"&"})}else if(updates.type==Object){$H(array).flatten().each(function(id,qty){query+="updates["+id.toString()+"]="+qty.toString()+"&"})}else{throw"updates parameter must be array of quantities or a hash of {item_ids: quantities}"}new Ajax.Request("/cart/update.js",this.params("post",query,callback2||this.onCartUpdate.bind(this)))},Shopify.updateCartFromForm=function(form_id,callback2){new Ajax.Request("/cart/update.js",this.params("post",Form.serialize(form_id),callback2||this.onCartUpdate.bind(this)))};Shopify.params=function(method,parameters,callback){var hash={method:method||"post",parameters:parameters||"",evalScripts:false,asynchronous:true,requestHeaders:{"If-Modified-Since":"Sat, 1 Jan 2000 00:00:00 GMT"}};hash.onSuccess=function(t){try{callback($(eval("("+t.responseText+")")))}catch(e){if(console)console.log("API Error: "+e+"\n\n"+t.responseText)};}.bind(this);hash.onFailure=function(t){try{this.onError($(eval("("+t.responseText+")")))}catch(e){if(console)console.log("API Error: "+e+"\n\n"+t.responseText)};}.bind(this);return hash};function floatToString(numeric,decimals){var amount=numeric.toFixed(decimals).toString();if(amount.match(/^\.\d+/)){return"0"+amount}else{return amount}}}});require_api();})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.