<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">;$.fn.tabs=function(){var selector=this;this.each(function(){var obj=$(this);$(obj.attr('href')).hide();obj.click(function(){$(selector).removeClass('selected');$(this).addClass('selected');$($(this).attr('href')).fadeIn();$(selector).not(this).each(function(i,element){$($(element).attr('href')).hide();});return false;});});$(this).show();$(this).first().click();};;(function(a,b,c){function Z(c,d,e){var g=b.createElement(c);return d&amp;&amp;(g.id=f+d),e&amp;&amp;(g.style.cssText=e),a(g)}function $(a){var b=y.length,c=(Q+a)%b;return c&lt;0?b+c:c}function _(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function ba(a){return K.photo||/\.(gif|png|jpe?g|bmp|ico)((#|\?).*)?$/i.test(a)}function bb(){var b;K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&amp;&amp;b.slice(0,2)!=="on"&amp;&amp;(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&amp;&amp;(K.href=a.trim(K.href))}function bc(b,c){a.event.trigger(b),c&amp;&amp;c.call(P)}function bd(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&amp;&amp;y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(K.loop||y[Q+1])a=setTimeout(W.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(W.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,function(){W.next(),d()}),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function be(b){U||(P=b,bb(),y=a(P),Q=0,K.rel!=="nofollow"&amp;&amp;(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&amp;&amp;(y=y.add(P),Q=y.length-1)),S||(S=T=!0,r.show(),K.returnFocus&amp;&amp;a(P).blur().one(l,function(){a(this).focus()}),q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=_(K.initialWidth,"x"),K.h=_(K.initialHeight,"y"),W.position(),o&amp;&amp;z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),bc(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()),W.load(!0))}function bf(){!r&amp;&amp;b.body&amp;&amp;(Y=!1,z=a(c),r=Z(X).attr({id:e,"class":n?f+(o?"IE6":"IE"):""}).hide(),q=Z(X,"Overlay",o?"position:absolute":"").hide(),s=Z(X,"Wrapper"),t=Z(X,"Content").append(A=Z(X,"LoadedContent","width:0; height:0; overflow:hidden"),C=Z(X,"LoadingOverlay").add(Z(X,"LoadingGraphic")),D=Z(X,"Title"),E=Z(X,"Current"),G=Z(X,"Next"),H=Z(X,"Previous"),F=Z(X,"Slideshow").bind(h,bd),I=Z(X,"Close")),s.append(Z(X).append(Z(X,"TopLeft"),u=Z(X,"TopCenter"),Z(X,"TopRight")),Z(X,!1,"clear:left").append(v=Z(X,"MiddleLeft"),t,w=Z(X,"MiddleRight")),Z(X,!1,"clear:left").append(Z(X,"BottomLeft"),x=Z(X,"BottomCenter"),Z(X,"BottomRight"))).find("div div").css({"float":"left"}),B=Z(X,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),J=G.add(H).add(E).add(F),a(b.body).append(q,r.append(s,B)))}function bg(){return r?(Y||(Y=!0,L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}),G.click(function(){W.next()}),H.click(function(){W.prev()}),I.click(function(){W.close()}),q.click(function(){K.overlayClose&amp;&amp;W.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&amp;&amp;K.escKey&amp;&amp;b===27&amp;&amp;(a.preventDefault(),W.close()),S&amp;&amp;K.arrowKey&amp;&amp;y[1]&amp;&amp;(b===37?(a.preventDefault(),H.click()):b===39&amp;&amp;(a.preventDefault(),G.click()))}),a("."+g,b).live("click",function(a){a.which&gt;1||a.shiftKey||a.altKey||a.metaKey||(a.preventDefault(),be(this))})),!0):!1}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:undefined},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=!a.support.opacity&amp;&amp;!a.support.style,o=n&amp;&amp;!c.XMLHttpRequest,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X="div",Y;if(a.colorbox)return;a(bf),W=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{},bf();if(bg()){if(!f[0]){if(f.selector)return f;f=a("&lt;a/&gt;"),b.open=!0}c&amp;&amp;(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b))}).addClass(g),(a.isFunction(b.open)&amp;&amp;b.open.call(f)||b.open)&amp;&amp;be(f[0])}return f},W.position=function(a,b){function i(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var c=0,d=0,e=r.offset(),g=z.scrollTop(),h=z.scrollLeft();z.unbind("resize."+f),r.css({top:-9e4,left:-9e4}),K.fixed&amp;&amp;!o?(e.top-=g,e.left-=h,r.css({position:"fixed"})):(c=g,d=h,r.css({position:"absolute"})),K.right!==!1?d+=Math.max(z.width()-K.w-O-M-_(K.right,"x"),0):K.left!==!1?d+=_(K.left,"x"):d+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?c+=Math.max(z.height()-K.h-N-L-_(K.bottom,"y"),0):K.top!==!1?c+=_(K.top,"y"):c+=Math.round(Math.max(z.height()-K.h-N-L,0)/2),r.css({top:e.top,left:e.left}),a=r.width()===K.w+O&amp;&amp;r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:c,left:d},{duration:a,complete:function(){i(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",K.reposition&amp;&amp;setTimeout(function(){z.bind("resize."+f,W.position)},1),b&amp;&amp;b()},step:function(){i(this)}})},W.resize=function(a){S&amp;&amp;(a=a||{},a.width&amp;&amp;(K.w=_(a.width,"x")-O-M),a.innerWidth&amp;&amp;(K.w=_(a.innerWidth,"x")),A.css({width:K.w}),a.height&amp;&amp;(K.h=_(a.height,"y")-N-L),a.innerHeight&amp;&amp;(K.h=_(a.innerHeight,"y")),!a.innerHeight&amp;&amp;!a.height&amp;&amp;(A.css({height:"auto"}),K.h=A.height()),A.css({height:K.h}),W.position(K.transition==="none"?0:K.speed))},W.prep=function(b){function g(){return K.w=K.w||A.width(),K.w=K.mw&amp;&amp;K.mw&lt;K.w?K.mw:K.w,K.w}function h(){return K.h=K.h||A.height(),K.h=K.mh&amp;&amp;K.mh&lt;K.h?K.mh:K.h,K.h}if(!S)return;var c,d=K.transition==="none"?0:K.speed;A.remove(),A=Z(X,"LoadedContent").append(b),A.hide().appendTo(B.show()).css({width:g(),overflow:K.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(t),B.hide(),a(R).css({"float":"none"}),o&amp;&amp;a("select").not(r.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(k,function(){this.style.visibility="inherit"}),c=function(){function q(){n&amp;&amp;r[0].style.removeAttribute("filter")}var b,c,g=y.length,h,i="frameBorder",k="allowTransparency",l,o,p;if(!S)return;l=function(){clearTimeout(V),C.hide(),bc(j,K.onComplete)},n&amp;&amp;R&amp;&amp;A.fadeIn(100),D.html(K.title).add(A).show();if(g&gt;1){typeof K.current=="string"&amp;&amp;E.html(K.current.replace("{current}",Q+1).replace("{total}",g)).show(),G[K.loop||Q&lt;g-1?"show":"hide"]().html(K.next),H[K.loop||Q?"show":"hide"]().html(K.previous),K.slideshow&amp;&amp;F.show();if(K.preloading){b=[$(-1),$(1)];while(c=y[b.pop()])o=a.data(c,e).href||c.href,a.isFunction(o)&amp;&amp;(o=o.call(c)),ba(o)&amp;&amp;(p=new Image,p.src=o)}}else J.hide();K.iframe?(h=Z("iframe")[0],i in h&amp;&amp;(h[i]=0),k in h&amp;&amp;(h[k]="true"),h.name=f+ +(new Date),K.fastIframe?l():a(h).one("load",l),h.src=K.href,K.scrolling||(h.scrolling="no"),a(h).addClass(f+"Iframe").appendTo(A).one(m,function(){h.src="//about:blank"})):l(),K.transition==="fade"?r.fadeTo(d,1,q):q()},K.transition==="fade"?r.fadeTo(d,0,function(){W.position(0,c)}):W.position(d,c)},W.load=function(b){var c,d,e=W.prep;T=!0,R=!1,P=y[Q],b||bb(),bc(m),bc(i,K.onLoad),K.h=K.height?_(K.height,"y")-N-L:K.innerHeight&amp;&amp;_(K.innerHeight,"y"),K.w=K.width?_(K.width,"x")-O-M:K.innerWidth&amp;&amp;_(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&amp;&amp;(K.mw=_(K.maxWidth,"x")-O-M,K.mw=K.w&amp;&amp;K.w&lt;K.mw?K.w:K.mw),K.maxHeight&amp;&amp;(K.mh=_(K.maxHeight,"y")-N-L,K.mh=K.h&amp;&amp;K.h&lt;K.mh?K.h:K.mh),c=K.href,V=setTimeout(function(){C.show()},100),K.inline?(Z(X).hide().insertBefore(a(c)[0]).one(m,function(){a(this).replaceWith(A.children())}),e(a(c))):K.iframe?e(" "):K.html?e(K.html):ba(c)?(a(R=new Image).addClass(f+"Photo").error(function(){K.title=!1,e(Z(X,"Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null,K.scalePhotos&amp;&amp;(d=function(){R.height-=R.height*a,R.width-=R.width*a},K.mw&amp;&amp;R.width&gt;K.mw&amp;&amp;(a=(R.width-K.mw)/R.width,d()),K.mh&amp;&amp;R.height&gt;K.mh&amp;&amp;(a=(R.height-K.mh)/R.height,d())),K.h&amp;&amp;(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&amp;&amp;(K.loop||y[Q+1])&amp;&amp;(R.style.cursor="pointer",R.onclick=function(){W.next()}),n&amp;&amp;(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&amp;&amp;B.load(c,K.data,function(b,c,d){e(c==="error"?Z(X,"Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},W.next=function(){!T&amp;&amp;y[1]&amp;&amp;(K.loop||y[Q+1])&amp;&amp;(Q=$(1),W.load())},W.prev=function(){!T&amp;&amp;y[1]&amp;&amp;(K.loop||Q)&amp;&amp;(Q=$(-1),W.load())},W.close=function(){S&amp;&amp;!U&amp;&amp;(U=!0,S=!1,bc(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),bc(m),A.remove(),setTimeout(function(){U=!1,bc(l,K.onClosed)},1)}))},W.remove=function(){a([]).add(r).add(q).remove(),r=null,a("."+g).removeData(e).removeClass(g).die()},W.element=function(){return a(P)},W.settings=d})(jQuery,document,this);;(function($){$.fn.toggleOption=function(value,show){return this.filter('select').each(function(){var select=$(this);if(typeof show==='undefined'){show=select.find('option[value="'+value+'"]').length==0;}
if(show){select.showOption(value);}
else{select.hideOption(value);}});};$.fn.showOption=function(value){return this.filter('select').each(function(){var select=$(this);var found=select.find('option[value="'+value+'"]').length!=0;if(found)return;var info=select.data('opt'+value);if(!info)return;var targetIndex=info.data('i');var options=select.find('option');var lastIndex=options.length-1;if(lastIndex==-1){select.prepend(info);}
else{options.each(function(i,e){var opt=$(e);if(opt.data('i')&gt;targetIndex){opt.before(info);return false;}
else if(i==lastIndex){opt.after(info);return false;}});}
return;});};$.fn.hideOption=function(value){return this.filter('select').each(function(){var select=$(this);var opt=select.find('option[value="'+value+'"]').eq(0);if(!opt.length)return;if(!select.data('optionsModified')){select.find('option').each(function(i,e){$(e).data('i',i);});select.data('optionsModified',true);}
select.data('opt'+value,opt.detach());return;});};})(jQuery);;(function($){$.fn.liveopencart_RelatedOptions=function(p_params){$this=this;var inst={each:function(collection,fn){for(var i_item in collection){if(!collection.hasOwnProperty(i_item))continue;if(fn(collection[i_item],i_item)===false){return;}}},getSetting:function(p_setting_name,p_default){if(typeof(inst.ro_settings[p_setting_name])!='undefined'){if(inst.ro_settings[p_setting_name]!=='0'){return inst.ro_settings[p_setting_name];}else{return 0;}}else{return p_default;}},bind:function(trigger_name,event_function){inst.parentBlock.on(trigger_name,event_function);},trigger:function(trigger_name,values){inst.getBlockOfOptions().trigger(trigger_name,values);},initRO:function(ro_init_cnt){if(!inst.ro_data||inst.ro_data=={}||inst.ro_data==[]){return;}
inst.getOptionElement('[data-quantity-per-option][data-product-option-id]').each(function(){var product_option_id=$(this).attr('data-product-option-id');if($.inArray(product_option_id,inst.ro_product_options)!=-1){inst.input_quantity_per_options.push(product_option_id);}});inst.options_step_by_step=inst.getOptionsAsSteps();if(!inst.options_step_by_step.length&amp;&amp;!ro_init_cnt){$(document).ready(function(){inst.initRO(1);});return;}
for(var i=0;i&lt;inst.options_step_by_step.length;i++){inst.all_values_of_options[inst.options_step_by_step[i]]=inst.getAllValuesOfProductOption(inst.options_step_by_step[i]);}
inst.getOptionElement('select[name^="'+inst.option_prefix+'"]').change(function(){inst.controlAccessToValuesOfAllOptions();});inst.getOptionElement('input[type=radio][name^="'+inst.option_prefix+'"]').change(function(){inst.controlAccessToValuesOfAllOptions();});inst.controlAccessToValuesOfAllOptions();$(document).ready(function(){if(typeof(inst.ros_to_select)!='undefined'&amp;&amp;inst.ros_to_select&amp;&amp;inst.ros_to_select.length){var ro_id=false;inst.each(inst.ros_to_select,function(current_ro_id){ro_id=current_ro_id;inst.setSelectedCombination(ro_id,true);});if(ro_id){inst.setSelectedCombination(ro_id);}}else{if(!inst.setSelectedCombinationByModel(inst.filter_name)){if(inst.poip_ov){setTimeout(function(){inst.makeFirstValuesSelected();},1);}}
inst.controlAccessToValuesOfAllOptions();inst.initialAutoSelect();}});inst.trigger('init_after.ro');},makeFirstValuesSelected:function(set_anyway){var options_values=inst.getOptionValues([]);var selected_options=[];var has_selected=false;inst.each(options_values,function(pov_id,po_id){if(pov_id){has_selected=true;selected_options.push(po_id);}});if(has_selected||set_anyway){inst.each(inst.options_step_by_step,function(product_option_id){if($.inArray(product_option_id,inst.ro_product_options)!=-1){var product_option_value_id=false;if(inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"]').length){product_option_value_id=inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"] option[value][value!=""]:not(:disabled)').val();}else if(inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+product_option_id+']"]').length&gt;0){product_option_value_id=inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+product_option_id+']"]:not(:disabled):first').val();}
if(product_option_value_id&amp;&amp;($.inArray(product_option_id,selected_options)==-1||set_anyway)){inst.setOptionValue(product_option_id,product_option_value_id);inst.controlAccessToValuesOfAllOptions();}}});}},setOptionValue:function(product_option_id,product_option_value_id){var $touched_elems='';if(inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"]').length&gt;0){$touched_elems=inst.getOptionElement('[name="'+inst.option_prefix+'['+product_option_id+']"]').val(product_option_value_id);}else if(inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+product_option_id+']"]').length&gt;0){var radio_elems=inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+product_option_id+']"]');radio_elems.prop('checked',false);if(product_option_value_id){var radio_elem=inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+product_option_id+']"][value='+product_option_value_id+']');radio_elem.prop('checked',true);}
$touched_elems=radio_elems;}
inst.trigger('setOptionValue_after.ro',[product_option_id,product_option_value_id,$touched_elems]);if(typeof(poipExternalOptionChange)=='function'){poipExternalOptionChange();}
if(typeof(poip_product)!='undefined'&amp;&amp;typeof(poip_product.externalOptionChange)=='function'){poip_product.externalOptionChange();}},getBlockOfOptions:function(){return inst.parentBlock;},getOptionElement:function(selector){return inst.getBlockOfOptions().find(selector);},getProductOptionIdFromName:function(name){return name.substr(inst.option_prefix_length+1,name.lastIndexOf(']')-(inst.option_prefix_length+1));},getElement:function(selector){return inst.parentBlock.find(selector);},getQuantityInput:function(){let $quantity_input=inst.custom_getQuantityInput();if(!$quantity_input){$quantity_input=inst.getElement('input[type=text][name=quantity], input[type=number][name=quantity]');}
return $quantity_input;},getQuantity:function(){return inst.getQuantityInput().val();},getValuesOfSelectOption:function(param_product_option_id){if($.isEmptyObject(inst.all_select_ov)){inst.getOptionElement('select[name^="'+inst.option_prefix+'["]').each(function(si,sel_elem){var product_option_id=inst.getProductOptionIdFromName(sel_elem.name);inst.all_select_ov[product_option_id]=[];$.each(sel_elem.options,function(oi,op_elem){inst.all_select_ov[product_option_id].push(op_elem.value);});});}
return inst.all_select_ov[param_product_option_id];},getCurrentROIds:function(options_values){var ro_ids=[];inst.each(inst.ro_data,function(ro_dt){var all_ok;inst.each(ro_dt.ro,function(ro_comb,ro_id){all_ok=true;inst.each(ro_comb.options,function(pov_id,po_id){if(!(po_id in options_values&amp;&amp;options_values[po_id]==pov_id)){all_ok=false;}});if(all_ok)ro_ids.push(ro_id);});});return ro_ids;},arrayIntersection:function(arr1,arr2){var new_arr=[];inst.each(arr1,function(val1){if($.inArray(val1,arr2)!=-1){new_arr.push(val1);}});return new_arr;},arrayCopy:function(arr){var new_arr=[];inst.each(arr,function(val,i){if($.isArray(val)){new_arr[i]=inst.arrayCopy(val);}else{new_arr[i]=val;}});return new_arr;},getAllValuesOfProductOption:function(product_option_id){var values=[];if(inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"]').length){var select_options=inst.getValuesOfSelectOption(product_option_id);for(var i=0;i&lt;select_options.length;i++){if(select_options[i]){values.push(select_options[i]);}}}else if(inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+product_option_id+']"]').length){inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+product_option_id+']"]').each(function(){values.push($(this).val());});}
if($.inArray(product_option_id,inst.input_quantity_per_options)!=-1){$('[name^="quantity_per_option['+product_option_id+']["]').each(function(){var product_option_value_id=$(this).attr('data-value');if(product_option_value_id){values.push(product_option_value_id);}});}
return values;},getOptionsWithDirectRelations:function(prodict_option_id){if(inst.linked_options_cache[prodict_option_id]){return inst.linked_options_cache[prodict_option_id];}else{var linked_options=[];inst.each(inst.ro_data,function(ro_dt){if($.inArray(prodict_option_id,ro_dt.options_ids)!=-1){inst.each(ro_dt.options_ids,function(current_po_id){if(current_po_id!=prodict_option_id&amp;&amp;$.inArray(current_po_id,linked_options)){linked_options.push(current_po_id);}});}});inst.linked_options_cache[prodict_option_id]=linked_options;return linked_options;}},getAccessibleOptionValues:function(option_id,param_options_values,param_skip_options){var options_values=inst.arrayCopy(param_options_values);var skip_options=inst.arrayCopy(param_skip_options);skip_options.push(option_id);var linked_options=inst.getOptionsWithDirectRelations(option_id);inst.each(linked_options,function(current_option_id){if(options_values[current_option_id]&amp;&amp;!options_values[current_option_id].length&amp;&amp;current_option_id!=option_id){if($.inArray(current_option_id,skip_options)==-1){options_values[current_option_id]=inst.getAccessibleOptionValues(current_option_id,options_values,skip_options);}}});var common_accessible_values=false;var possible_current_option_values=inst.all_values_of_options[option_id];inst.each(inst.ro_data,function(ro_dt){if($.inArray(option_id,ro_dt.options_ids)==-1){return;}
var accessible_values=[];var ro_combs=ro_dt.ro;var options_for_check=[];inst.each(options_values,function(current_pov_id,current_option_id){if(current_option_id!=option_id&amp;&amp;options_values[current_option_id].length&amp;&amp;$.inArray(current_option_id,skip_options)==-1&amp;&amp;$.inArray(current_option_id,ro_dt.options_ids)!=-1){options_for_check.push(current_option_id);}});if(!options_for_check.length){if(ro_dt.options_ids.length==1){inst.each(ro_combs,function(ro_comb){if(ro_comb.options[option_id]&amp;&amp;$.inArray(ro_comb.options[option_id],accessible_values)==-1){accessible_values.push(ro_comb.options[option_id]);}});}else{accessible_values=inst.arrayCopy(possible_current_option_values);}}else{inst.each(ro_combs,function(ro_comb){all_ok=true;for(var j=0;j&lt;options_for_check.length;j++){var current_option_id=options_for_check[j];if($.inArray(ro_comb.options[current_option_id],options_values[current_option_id])==-1){all_ok=false;}
if(!all_ok){break;}}
if(all_ok&amp;&amp;($.inArray(ro_comb.options[option_id],accessible_values)==-1)){accessible_values.push(ro_comb.options[option_id]);if(possible_current_option_values.length==accessible_values.length){return false;}}});}
if(common_accessible_values===false){common_accessible_values=accessible_values;}else{common_accessible_values=inst.arrayIntersection(common_accessible_values,accessible_values);}});return common_accessible_values;},controlAccessToValuesOfOption:function(param_options_values,option_id){var options_values=[];inst.each(param_options_values,function(pov_id,product_option_id){options_values[product_option_id]=[];if(param_options_values[product_option_id]){options_values[product_option_id].push(param_options_values[product_option_id]);}});var skip_ropv_ids=[];var accessible_values=inst.getAccessibleOptionValues(option_id,options_values,skip_ropv_ids);inst.setAccessibleOptionValues(option_id,accessible_values);return accessible_values;},toggleOptionElement:function(option_id,toggle_flag){inst.getOptionElement('#option-'+option_id).toggle(toggle_flag);inst.trigger('toggleOptionElement_after.ro',[option_id,toggle_flag]);},optionIsAccessible:function(option_id){if(inst.getOptionElement('select[name="'+inst.option_prefix+'['+option_id+']"]').length){return inst.getOptionElement('select[name="'+inst.option_prefix+'['+option_id+']"] option[value][value!=""]:not(:disabled)').length?true:false;}else if(inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+option_id+']"]').length){return inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+option_id+']"]:not(:disabled)').length?true:false;}else if(inst.getOptionElement('input[name^="quantity_per_option['+option_id+']["]').length){return inst.getOptionElement('input[name^="quantity_per_option['+option_id+']["]:not(:disabled)').length?true:false;}},hideInaccessibleOptionIfNeeded:function(option_id){if(inst.ro_settings&amp;&amp;inst.ro_settings.hide_option){inst.toggleOptionElement(option_id,inst.optionIsAccessible(option_id));}},makeInaccessibleOptionsNotRequired:function(option_id){if(inst.ro_settings&amp;&amp;inst.ro_settings.unavailable_not_required){var current_ids=[];if($('#ro_not_required').length){current_ids=$('#ro_not_required').val().split(',');}else{$('#product').append('&lt;input type="hidden" name="ro_not_required" id="ro_not_required" value=""&gt;');}
var new_ids=[];inst.each(current_ids,function(current_option_id){if(current_option_id!=option_id){new_ids.push(current_option_id);}});if(!inst.optionIsAccessible(option_id)){new_ids.push(option_id);}
$('#ro_not_required').val(new_ids.toString());}},setAccessibleOptionValues:function(option_id,accessible_values){var current_value=(inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+option_id+']"]:checked').val()||inst.getOptionElement('select[name="'+inst.option_prefix+'['+option_id+']"]').val());if(inst.getOptionElement('select[name="'+inst.option_prefix+'['+option_id+']"]').length){if(current_value&amp;&amp;$.inArray(current_value,accessible_values)==-1){inst.getOptionElement('select[name="'+inst.option_prefix+'['+option_id+']"]').val("");}
if(inst.hide_inaccessible){let select_options=inst.getValuesOfSelectOption(option_id);for(let i=0;i&lt;select_options.length;i++){if(select_options[i]){option_value_disabled=($.inArray(select_options[i],accessible_values)==-1);inst.getOptionElement('select[name="'+inst.option_prefix+'['+option_id+']"]').toggleOption(select_options[i],!option_value_disabled);}}}else{let select_options=inst.getOptionElement('select[name="'+inst.option_prefix+'['+option_id+']"]')[0].options;for(let i=0;i&lt;select_options.length;i++){if(select_options[i].value){option_value_disabled=($.inArray(select_options[i].value,accessible_values)==-1);select_options[i].disabled=option_value_disabled;if(option_value_disabled){$(select_options[i]).addClass('ro_option_disabled');}else{$(select_options[i]).removeClass('ro_option_disabled');}}}}
inst.trigger('setAccessibleOptionValues_select_after.ro',[option_id,accessible_values]);}else if(inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+option_id+']"]').length){if(current_value&amp;&amp;$.inArray(current_value,accessible_values)==-1){var elem_to_uncheck=inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+option_id+']"]:checked');if(elem_to_uncheck.length){elem_to_uncheck.prop('checked',false);}
inst.trigger('setAccessibleOptionValues_radioUncheck_after.ro',[elem_to_uncheck]);}
radio_options=inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+option_id+']"]');for(var i=0;i&lt;radio_options.length;i++){option_value_disabled=($.inArray(radio_options[i].value,accessible_values)==-1);$(radio_options[i]).prop('disabled',option_value_disabled);if(inst.hide_inaccessible){if(typeof(inst.custom_radioToggle)!='undefined'&amp;&amp;inst.custom_radioToggle($(radio_options[i]),option_value_disabled)){}else{$(radio_options[i]).parent().parent().toggle(!option_value_disabled);$(radio_options[i]).toggle(!option_value_disabled);}
if(typeof(inst.custom_radioChangeClass)!='undefined'&amp;&amp;inst.custom_radioChangeClass()){if(option_value_disabled){if($(radio_options[i]).parent().parent().hasClass('radio')){$(radio_options[i]).parent().parent().removeClass('radio');$(radio_options[i]).parent().parent().addClass('_radio_ro');}}else{if($(radio_options[i]).parent().parent().hasClass('_radio_ro')){$(radio_options[i]).parent().parent().removeClass('_radio_ro');$(radio_options[i]).parent().parent().addClass('radio');}}}
inst.trigger('setAccessibleOptionValues_radioToggle_after.ro',[option_id,$(radio_options[i])]);}else{if(typeof(inst.custom_radioEnableDisable)!='undefined'&amp;&amp;inst.custom_radioEnableDisable($(radio_options[i]),option_value_disabled)){}else{if(option_value_disabled){$(radio_options[i]).parent().fadeTo("fast",0.1);}else{$(radio_options[i]).parent().fadeTo("fast",1);}}
inst.trigger('setAccessibleOptionValues_radioEnableDisable_after.ro',[option_id,$(radio_options[i])]);}}}else if($.inArray(option_id,inst.input_quantity_per_options)!=-1){inst.getOptionElement('[name^="quantity_per_option['+option_id+']["]').each(function(){var $qpo_input=$(this);var product_option_value_id=qpo_getPOVIdByName($qpo_input.attr('name'));if(product_option_value_id){option_value_disabled=($.inArray(product_option_value_id,accessible_values)==-1);if(option_value_disabled){$qpo_input.val('');}else if($qpo_input.prop('disabled')){$qpo_input.val($qpo_input.attr('data-default-value'||'0'));}
$qpo_input.prop('disabled',option_value_disabled);var $option_value_container=$qpo_input.closest('tr');if(!$option_value_container.length){$option_value_container=$qpo_input.closest('div');}
if(inst.hide_inaccessible){$option_value_container.toggle(!option_value_disabled);}else{if(option_value_disabled){$option_value_container.fadeTo("fast",0.1);}else{$option_value_container.fadeTo("fast",1);}}}});}
inst.hideInaccessibleOptionIfNeeded(option_id);inst.makeInaccessibleOptionsNotRequired(option_id);},getOptionValues:function(){var options_values={};inst.getOptionElement('select[name^="'+inst.option_prefix+'["], input[type=radio][name^="'+inst.option_prefix+'["]').each(function(){option_id=inst.getProductOptionIdFromName($(this).attr('name'));if($.inArray(option_id,inst.ro_product_options)!=-1){if(typeof(options_values[option_id])=='undefined'){options_values[option_id]=0;}
if($(this).find('option[value]').length){options_values[option_id]=$(this).val();}else{if($(this).is(':checked')){options_values[option_id]=$(this).val();}}}});inst.each(inst.input_quantity_per_options,function(qpo_product_option_id){options_values[qpo_product_option_id]=0;});return options_values;},getSelectedOptionValues:function(){let selected_options={};inst.each(inst.getOptionValues(),function(pov_id,po_id){if(pov_id){selected_options[po_id]=pov_id;}});return selected_options;},hasSelectedOptions:function(){return Object.keys(inst.getSelectedOptionValues()).length;},setSelectedCombination:function(ro_id,skip_access){var selected_povs=[];if(inst.ro_data){inst.each(inst.ro_data,function(ro_dt){let ro_combs=ro_dt.ro;if(ro_combs[ro_id]){inst.each(ro_combs[ro_id].options,function(pov_id,product_option_id){inst.setOptionValue(product_option_id,ro_combs[ro_id].options[product_option_id]);selected_povs.push(ro_combs[ro_id].options[product_option_id]);});return false;}});}
if(typeof(skip_access)=='undefined'||!skip_access||(inst.step_by_step&amp;&amp;inst.hide_inaccessible)){inst.controlAccessToValuesOfAllOptions();inst.trigger('setSelectedCombination_withAccessControl_after.ro');}
inst.executeFunctionsFromOtherExtensionsOnOptionChange();},executeFunctionsFromOtherExtensionsOnOptionChange:function(){if(typeof(pcop_check_visibility)=='function'){pcop_check_visibility();}
if(typeof(poipExternalOptionChange)=='function'){poipExternalOptionChange();}
if(typeof(poip_product)!='undefined'&amp;&amp;typeof(poip_product.externalOptionChange)=='function'){poip_product.externalOptionChange();}
if(typeof(liveprice_recalc)=='function'){liveprice_recalc(100);}
if(window.liveopencart&amp;&amp;window.liveopencart.live_price_instances){var lp_instances=window.liveopencart.live_price_instances;if(Array.isArray(lp_instances)&amp;&amp;lp_instances.length){inst.each(lp_instances,function(lp_instance){lp_instance.updatePrice(100);});}}},setSelectedCombinationByModel:function(model){if(model&amp;&amp;inst.ro_data){inst.each(inst.ro_data,function(ro_dt){inst.each(ro_dt.ro,function(ro_comb){if(ro_comb.model&amp;&amp;ro_comb.model.toLowerCase()==model.toLowerCase()){inst.setSelectedCombination(ro_id);return true;}});});}
return false;},getOptionsAsSteps:function(){var options_steps=[];inst.getOptionElement('input[name^="'+inst.option_prefix+'["], select[name^="'+inst.option_prefix+'["]').each(function(){let product_option_id=inst.getProductOptionIdFromName(inst.getOptionElement(this).attr('name'));if($.inArray(product_option_id,inst.ro_product_options)!=-1){if($.inArray(product_option_id,options_steps)==-1){options_steps.push(product_option_id);}}});inst.each(inst.input_quantity_per_options,function(qpo_product_option_id){options_steps.push(qpo_product_option_id);});return options_steps;},controlAccessToValuesOfAllOptions:function(){if(!inst.ro_data||!Object.keys(inst.ro_data).length)return;if(inst.step_by_step){var prev_options_values={};var prev_options=[];var option_accessible_values=[];var one_prev_value_is_not_set=false;for(let i=0;i&lt;inst.options_step_by_step.length;i++){if(i==0){inst.controlAccessToValuesOfOption([],inst.options_step_by_step[i]);}else{if(!one_prev_value_is_not_set){option_accessible_values=inst.controlAccessToValuesOfOption(prev_options_values,inst.options_step_by_step[i]);}else{inst.setAccessibleOptionValues(inst.options_step_by_step[i],[]);option_accessible_values=[];}}
prev_options.push((inst.getOptionElement('input[type=radio][name="'+inst.option_prefix+'['+inst.options_step_by_step[i]+']"]:checked').val()||inst.getOptionElement('select[name="'+inst.option_prefix+'['+inst.options_step_by_step[i]+']"]').val()));prev_options_values[inst.options_step_by_step[i]]=prev_options[prev_options.length-1];if((option_accessible_values.length||i==0)&amp;&amp;!prev_options[i]){one_prev_value_is_not_set=true;}}}else{var options_values=inst.getOptionValues();var options_keys=Object.keys(options_values);for(let i=0;i&lt;options_keys.length;i++){inst.controlAccessToValuesOfOption(options_values,options_keys[i]);}}
inst.checkAutoSelect();inst.trigger('controlAccessToValuesOfAllOptions_after.ro');},checkAutoSelect:function(){if(inst.auto_select_last||inst.auto_select_first_always){inst.each(inst.options_step_by_step,function(product_option_id){if(inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"]').length){let options_elems=inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"]').find('option[value][value!=""]:not(:disabled)');if(inst.auto_select_last&amp;&amp;options_elems.length==1&amp;&amp;!$(options_elems[0]).is(':selected')||(inst.auto_select_first_always&amp;&amp;options_elems.length&amp;&amp;!options_elems.filter(':selected').length)){let product_option_value_id=$(options_elems[0]).val();inst.setOptionValue(product_option_id,product_option_value_id);$(options_elems[0]).parent().change();return;}}else if(inst.getOptionElement('input:radio[name="'+inst.option_prefix+'['+product_option_id+']"]').length){let radio_elems=inst.getOptionElement('input:radio[name="'+inst.option_prefix+'['+product_option_id+']"]:not(:disabled)');if(inst.auto_select_last&amp;&amp;radio_elems.length==1&amp;&amp;!$(radio_elems[0]).is(':checked')||(inst.auto_select_first_always&amp;&amp;radio_elems.length&amp;&amp;!radio_elems.filter(':checked').length)){let product_option_value_id=$(radio_elems[0]).val();inst.setOptionValue(product_option_id,product_option_value_id);$(radio_elems[0]).change();return;}}});}},initialAutoSelect:function(){if(inst.ro_settings&amp;&amp;inst.ro_settings.select_first&amp;&amp;inst.ro_settings.select_first==1){inst.each(inst.options_step_by_step,function(product_option_id){if(inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"]').length){let elem=inst.getOptionElement('select[name="'+inst.option_prefix+'['+product_option_id+']"]');if(!elem.val()){let elem_option=elem.find('option[value][value!=""]:not(:disabled)');if(elem_option.length){inst.setOptionValue(product_option_id,elem_option.val());elem.change();}}}else if(inst.getOptionElement('input:radio[name="'+inst.option_prefix+'['+product_option_id+']"]').length){if(!inst.getOptionElement('input:radio[name="'+inst.option_prefix+'['+product_option_id+']"]:checked').length){let elem=inst.getOptionElement('input:radio[name="'+inst.option_prefix+'['+product_option_id+']"]:not(:disabled):first');if(elem.length){inst.setOptionValue(product_option_id,elem.attr('value'));elem.change();}}}});}},};inst.parentBlock=this;var params=$.extend({'ro_settings':{},'ro_data':false,'ro_theme_name':'','ros_to_select':'','poip_ov':'','filter_name':'','option_prefix':'option',},p_params);inst.ro_settings=params.ro_settings;inst.ro_theme_name=params.ro_theme_name;inst.ro_data=params.ro_data;inst.ros_to_select=params.ros_to_select;inst.poip_ov=params.poip_ov;inst.filter_name=params.filter_name;inst.hide_inaccessible=inst.getSetting('hide_inaccessible');inst.step_by_step=inst.getSetting('step_by_step');inst.auto_select_last=inst.getSetting('select_first')==2;inst.auto_select_first_always=inst.getSetting('select_first')==3;inst.option_prefix=params.option_prefix;if(inst.ro_data.length&amp;&amp;!$('[name^="option["]').length&amp;&amp;$('[name^="option_oc["]').length){inst.option_prefix="option_oc";}
inst.option_prefix_length=inst.option_prefix.length;inst.ro_product_options=[];if(inst.ro_data){inst.each(inst.ro_data,function(ro_dt){inst.each(ro_dt.options_ids,function(product_option_id){if($.inArray(product_option_id,inst.ro_product_options)==-1){inst.ro_product_options.push(product_option_id);}});});}
inst.linked_options_cache={};inst.all_select_ov={};inst.input_quantity_per_options=[];inst.ro_stock_control_last_call='';inst.options_types=[];inst.options_step_by_step=[];inst.all_values_of_options=[];this.data('liveopencart_relatedOptions',inst);if(!window.liveopencart){window.liveopencart={};}
if(!window.liveopencart.related_options_instances){window.liveopencart.related_options_instances=[];}
window.liveopencart.related_options_instances.push(inst);return inst;};})(jQuery);</pre></body></html>