!function(t,e){"use strict";t(window).on("elementor/frontend/init",(function(){var e,s=elementorModules.frontend.handlers.Base;e=s.extend({bindEvents:function(){this.run()},getDefaultSettings:function(){return{type:"underline",multiline:!0}},onElementChange:debounce((function(t){-1!==t.indexOf("ep_notation_")&&this.run()}),400),settings:function(t){return this.getElementSettings("ep_notation_"+t)},run:function(){if("yes"==this.settings("active")){var e=this.$element,s="ep-"+this.getID(),n=this.getID(),i=this,o=this.settings("list"),r=!!t("body").hasClass("rtl");o.forEach((o=>{var h="",a="",c=this.getDefaultSettings();if("widget"==o.ep_notation_select_type&&(t(i.findElement(".elementor-widget-container > :not(style)").get(0)).attr("data-notation",s),h='[data-notation="'+s+'"]'),"custom"==o.ep_notation_select_type){var u=o.ep_notation_custom_selector;h=o.ep_notation_custom_selector&&u.length>1?'[data-id="'+n+'"] '+u:".-bdt-empty"}if("bracket"==o.ep_notation_type&&(a=(a=o.ep_notation_bracket_on).split(","),c.brackets=a),h.length>0){var l=document.querySelector(h);c.type=o.ep_notation_type,c.color=o.ep_notation_color||"#f23427",c.animationDuration=o.ep_notation_anim_duration.size||800,c.strokeWidth=o.ep_notation_stroke_width.size||1,c.rtl=r,t(h).length>0&&epObserveTarget(e[0],(function(){const t="http://www.w3.org/2000/svg";class e{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}function s(t,e,s,n,i){return{type:"path",ops:u(t,e,s,n,i)}}function n(t,e,n){const i=(t||[]).length;if(i>2){const s=[];for(let e=0;e500?.4:-.0016668*u+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>c&&(f=u/10);const d=f/2,g=.2+.2*r(i);let p=i.bowing*i.maxRandomnessOffset*(n-e)/200,_=i.bowing*i.maxRandomnessOffset*(t-s)/200;p=a(p,i,l),_=a(_,i,l);const m=[],w=()=>a(d,i,l),v=()=>a(f,i,l);return o&&(h?m.push({op:"move",data:[t+w(),e+w()]}):m.push({op:"move",data:[t+a(f,i,l),e+a(f,i,l)]})),h?m.push({op:"bcurveTo",data:[p+t+(s-t)*g+w(),_+e+(n-e)*g+w(),p+t+2*(s-t)*g+w(),_+e+2*(n-e)*g+w(),s+w(),n+w()]}):m.push({op:"bcurveTo",data:[p+t+(s-t)*g+v(),_+e+(n-e)*g+v(),p+t+2*(s-t)*g+v(),_+e+2*(n-e)*g+v(),s+v(),n+v()]}),m}function d(t,e,s){const n=t.length,i=[];if(n>3){const o=[],r=1-s.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2t.setAttribute(e,s);for(const a of s){const s=document.createElementNS(t,"path");if(r(s,"d",a),r(s,"fill","none"),r(s,"stroke",h.color||"currentColor"),r(s,"stroke-width",""+f),g){const t=s.getTotalLength();n.push(t),o+=t}e.appendChild(s),i.push(s)}if(g){let t=0;for(let e=0;e{this._resizing||(this._resizing=!0,setTimeout((()=>{this._resizing=!1,"showing"===this._state&&this.haveRectsChanged()&&this.show()}),400))},this._e=t,this._config=JSON.parse(JSON.stringify(e)),this.attach()}get animate(){return this._config.animate}set animate(t){this._config.animate=t}get animationDuration(){return this._config.animationDuration}set animationDuration(t){this._config.animationDuration=t}get iterations(){return this._config.iterations}set iterations(t){this._config.iterations=t}get color(){return this._config.color}set color(t){this._config.color!==t&&(this._config.color=t,this.refresh())}get strokeWidth(){return this._config.strokeWidth}set strokeWidth(t){this._config.strokeWidth!==t&&(this._config.strokeWidth=t,this.refresh())}get padding(){return this._config.padding}set padding(t){this._config.padding!==t&&(this._config.padding=t,this.refresh())}attach(){if("unattached"===this._state&&this._e.parentElement){!function(){if(!window.__rno_kf_s){const t=window.__rno_kf_s=document.createElement("style");t.textContent="@keyframes rough-notation-dash { to { stroke-dashoffset: 0; } }",document.head.appendChild(t)}}();const e=this._svg=document.createElementNS(t,"svg");e.setAttribute("class","rough-annotation");const s=e.style;s.position="absolute",s.top="0",s.left="0",s.overflow="visible",s.pointerEvents="none",s.width="100px",s.height="100px";const n="highlight"===this._config.type;if(this._e.insertAdjacentElement(n?"beforebegin":"afterend",e),this._state="not-showing",n){const t=window.getComputedStyle(this._e).position;(!t||"static"===t)&&(this._e.style.position="relative")}this.attachListeners()}}detachListeners(){window.removeEventListener("resize",this._resizeListener),this._ro&&this._ro.unobserve(this._e)}attachListeners(){this.detachListeners(),window.addEventListener("resize",this._resizeListener,{passive:!0}),!this._ro&&"ResizeObserver"in window&&(this._ro=new window.ResizeObserver((t=>{for(const e of t)e.contentRect&&this._resizeListener()}))),this._ro&&this._ro.observe(this._e)}haveRectsChanged(){if(this._lastSizes.length){const t=this.rects();if(t.length!==this._lastSizes.length)return!0;for(let e=0;eMath.round(t)===Math.round(e);return s(t.x,e.x)&&s(t.y,e.y)&&s(t.w,e.w)&&s(t.h,e.h)}isShowing(){return"not-showing"!==this._state}refresh(){this.isShowing()&&!this.pendingRefresh&&(this.pendingRefresh=Promise.resolve().then((()=>{this.isShowing()&&this.show(),delete this.pendingRefresh})))}show(){switch(this._state){case"unattached":break;case"showing":this.hide(),this._svg&&this.render(this._svg,!0);break;case"not-showing":this.attach(),this._svg&&this.render(this._svg,!1)}}hide(){if(this._svg)for(;this._svg.lastChild;)this._svg.removeChild(this._svg.lastChild);this._state="not-showing"}remove(){this._svg&&this._svg.parentElement&&this._svg.parentElement.removeChild(this._svg),this._svg=void 0,this._state="unattached",this.detachListeners()}render(t,e){let s=this._config;e&&(s=JSON.parse(JSON.stringify(this._config)),s.animate=!1);const n=this.rects();let i=0;n.forEach((t=>i+=t.w));const o=s.animationDuration||800;let r=0;for(let e=0;e