"use strict";jQuery((function($){var orionSvgs=new Object;function getSvgColor(color){if("bg-content-bg"==color||null==color){var siteContentBgAtt=$("body").attr("data-site-content-bg");color=void 0!==siteContentBgAtt&&!1!==siteContentBgAtt?siteContentBgAtt:"#fff"}return/^[0-9a-fA-F]+$/.test(color)||color in orionColors&&(color=orionColors[color]),color}$.fn.createSvgFile=function(position,fileName,color){var row=$(this),datatypeAttr="",separator="",placement="",svg="",zIndexAttribute=' style="z-index:2;"',SvgPath=orionColors.svg_path,dataType=$(this).attr("data-stretch-type");null!=dataType&&("full"==dataType&&(dataType="full-stretched"),datatypeAttr='data-stretch-type="'+dataType+'"');var zIndex=$(this).attr("data-z-index");null!=zIndex&&(zIndexAttribute=' style="z-index:'+(parseInt(zIndex)+1)+'"'),placement="bottom-svg-inside"==position||"bottom-svg-outside"==position?"bottom":"top";var classList=$(this).attr("class").split(/\s+/);if("bottom"==placement)var newClassList=classList.filter((function(item){return 0!==item.indexOf("top-")}));else newClassList=classList.filter((function(item){return 0!==item.indexOf("bottom-")}));newClassList=(newClassList=(newClassList=(newClassList=(newClassList=newClassList.filter((function(e){return"middle_align"!==e}))).filter((function(e){return"bottom_align"!==e}))).filter((function(e){return"orion-equal-height"!==e}))).filter((function(e){return"full-screen-row"!==e}))).join(" ");var svgProperty=fileName.replace("-","_");if(orionSvgs.hasOwnProperty(svgProperty))if((separator=orionSvgs[svgProperty]).includes("{{svgBgColor}}")&&(separator=separator.replace(/{{svgBgColor}}/g,color)),"top"==placement){svg='<div class="'+newClassList+' svg-wrap-animate svg-wrap wrap-top"'+datatypeAttr+zIndexAttribute+'><div class="svg-w">'+separator+"</div></div>";row.before(svg)}else{svg='<div class="'+newClassList+' svg-wrap-animate svg-wrap wrap-bottom"'+datatypeAttr+zIndexAttribute+'><div class="svg-w">'+separator+"</div></div>";row.after(svg)}else{var file=SvgPath+fileName+".svg";jQuery.get(file,(function(separator){if(separator.includes("{{svgBgColor}}")&&(separator=separator.replace(/{{svgBgColor}}/g,color)),"top"==placement){var svg='<div class="'+newClassList+' svg-wrap-animate svg-wrap wrap-top"'+datatypeAttr+zIndexAttribute+'><div class="svg-w">'+separator+"</div></div>";row.before(svg)}else{svg='<div class="'+newClassList+' svg-wrap-animate svg-wrap wrap-bottom"'+datatypeAttr+zIndexAttribute+'><div class="svg-w">'+separator+"</div></div>";row.after(svg)}}),"text")}},$(document).ready((function(){var oSeparatorLength=$(".orion-separator:not(.svg-wrap)").length;$(".orion-separator:not(.svg-wrap)").each((function(index,element){var fileName="",position="",classList=this.className.split(" ");$(this).prop("classList");if(classList.includes("top-svg-inside")||classList.includes("top-svg-outside")){fileName=classList.filter(/./.test.bind(/^top-svg-[0-9]/))[0].replace("top-","");position=classList.includes("top-svg-inside")?"top-svg-inside":"top-svg-outside";var hex=getSvgColor($(this).data("svgTopColor"));$(this).createSvgFile(position,fileName,hex)}if(classList.includes("bottom-svg-inside")||classList.includes("bottom-svg-outside")){fileName=classList.filter(/./.test.bind(/^bottom-svg-[0-9]/))[0].replace("bottom-","");position=classList.includes("bottom-svg-inside")?"bottom-svg-inside":"bottom-svg-outside";hex=getSvgColor($(this).data("svgBottomColor"));$(this).createSvgFile(position,fileName,hex)}index===oSeparatorLength-1&&(setTimeout((function(){$(".svg-wrap-animate").removeClass("svg-wrap-animate"),$(window).trigger("resize")}),100),setTimeout((function(){$(".svg-wrap-animate").removeClass("svg-wrap-animate"),$(window).trigger("resize")}),600))}))}))}));