Back to Codebase

Vulnerability Analysis Report

Cassiopeia Framework Theme v4.0.0-alpha3

Scan ID: SCAN-CASSIOPEIA-PKKwxc • Hash: 92317e80

Severity Score
Critical
Total Findings
100
Engine Version
ECOMGUARD-HYBRID-AST-1.5
Scan Duration
0.475s

Vulnerability Details

L597

Dynamic Code Execution in HtmlDocument.php

CWE-94
File Location: libraries/src/Document/HtmlDocument.php:597
Security Score:
98 / 100
Confirmed Issue

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. High Severity (Confirmed via full AST flow control tracing). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- return eval($str);
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L72

Insecure DOM Manipulation (XSS) in field-module-order.js

CWE-79
File Location: build/webcomponents/js/field-module-order/field-module-order.js:72
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- node.innerHTML = item[2];
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L82

Insecure DOM Manipulation (XSS) in field-module-order.js

CWE-79
File Location: build/webcomponents/js/field-module-order/field-module-order.js:82
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L178

Insecure DOM Manipulation (XSS) in field-subform.js

CWE-79
File Location: build/webcomponents/js/field-subform/field-subform.js:178
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- tmpEl.innerHTML = this.template;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L82

Insecure DOM Manipulation (XSS) in indexer.js

CWE-79
File Location: media/com_finder/js/indexer.js:82
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- progressMessage.innerHTML = json.message;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in admin-module-edit.min.js

CWE-79
File Location: media/com_modules/js/admin-module-edit.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- Joomla=window.Joomla||{},function(e){"use strict";e.submitbutton=function(n){if("module.cancel"==n||document.formvalidator.isValid(document.getElementById("module-form"))){e.submitform(n,document.getElementById("module-form"));var s=e.getOptions("module-edit");if(self!=top&&parent.viewLevels){var a=jQuery("#jform_position").chosen().val(),t=document.getElementById("jform_title").value,i=jQuery("#jform_assignment").chosen().val(),d=jQuery("#jform_published").chosen().val(),o=jQuery("#jform_access").chosen().val(),l=parent.document.getElementById("menus-"+s.itemId),c=parent.document.getElementById("tr-"+s.itemId),u=parent.document.getElementById("status-"+s.itemId);window.parent.inMenus=[],window.parent.numMenus=document.querySelectorAll('input[name="jform[assigned][]"]').length,jQuery('input[name="jform[assigned][]"]').each(function(){i>0&&jQuery(this).is(":checked")&&window.parent.inMenus.push(parseInt(jQuery(this).val())),i<0&&(jQuery(this).is(":checked")||window.parent.inMenus.push(parseInt(jQuery(this).val())))}),0==i&&(l.innerHTML='<span class="badge badge-info">'+e.JText._("JALL")+"</span>",c.classList.contains("no")&&c.classList.remove("no")),"-"==i&&(l.innerHTML='<span class="badge badge-danger">'+e.JText._("JNO")+"</span>",c.classList.contains("no")&&0!==c.classList.length||c.classList.add("no")),i>0&&(window.parent.inMenus.indexOf(parent.menuId)>=0&&(window.parent.numMenus==window.parent.inMenus.length?(l.innerHTML='<span class="badge badge-info">'+e.JText._("JALL")+"</span>",(c.classList.contains("no")||0===c.classList.length)&&c.classList.remove("no")):(l.innerHTML='<span class="badge badge-success">'+e.JText._("JYES")+"</span>",c.classList.contains("no")&&c.classList.remove("no"))),window.parent.inMenus.indexOf(parent.menuId)<0&&(l.innerHTML='<span class="badge badge-danger">'+e.JText._("JNO")+"</span>",c.classList.contains("no")||c.classList.add("no"))),i<0&&(window.parent.inMenus.indexOf(parent.menuId)>=0&&(window.parent.numMenus==window.parent.inMenus.length?(l.innerHTML='<span class="badge badge-info">'+e.JText._("JALL")+"</span>",c.classList.contains("no")&&c.classList.remove("no")):(l.innerHTML='<span class="badge badge-success">'+e.JText._("JYES")+"</span>",c.classList.contains("no")&&c.classList.remove("no"))),window.parent.inMenus.indexOf(parent.menuId)<0&&(l.innerHTML='<span class="badge badge-danger">'+e.JText._("JNO")+"</span>",c.classList.contains("no")&&0!==c.classList.length||c.classList.add("no"))),1==d&&(u.innerHTML='<span class="badge badge-success">'+e.JText._("JYES")+"</span>",c.classList.contains("unpublished")&&c.classList.remove("unpublished")),0==d&&(u.innerHTML='<span class="badge badge-danger">'+e.JText._("JNO")+"</span>",c.classList.contains("unpublished")&&0!==c.classList.length||c.classList.add("unpublished")),-2==d&&(u.innerHTML='<span class="badge badge-default">'+e.JText._("JTRASHED")+"</span>",c.classList.contains("unpublished")&&0!==c.classList.length||c.classList.add("unpublished")),document.formvalidator.isValid(document.getElementById("module-form"))&&(jQuery("#title-"+s.itemId,parent.document).text(t),jQuery("#position-"+s.itemId,parent.document).text(a),jQuery("#access-"+s.itemId,parent.document).innerHTML=parent.viewLevels[o])}"module.apply"!==n&&window.parent.jQuery("#module"+s.state+s.itemId+"Modal").modal("hide")}}}(Joomla);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L32

Insecure DOM Manipulation (XSS) in helpsite.js

CWE-79
File Location: media/legacy/js/helpsite.js:32
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.getElementById(select_id).innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L73

Insecure DOM Manipulation (XSS) in client.js

CWE-79
File Location: media/plg_installer_webinstaller/js/client.js:73
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.querySelector('#jed-container').innerHTML = response.data.html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L54

Insecure DOM Manipulation (XSS) in extensionupdatecheck.js

CWE-79
File Location: media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js:54
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- linkSpan[i].innerHTML = Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND').replace("%s", '<span class="badge badge-light">' + updateInfoList.length + '</span>');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L396

Insecure DOM Manipulation (XSS) in core.js

CWE-79
File Location: media/system/js/core.js:396
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- buttonWrapper.innerHTML = '×';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L766

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:766
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- cell.innerHTML = "&#160;";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in calendar.min.js

CWE-79
File Location: media/system/js/fields/calendar.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(e,a){"use strict";Date.convertNumbers=function(e){e=e.toString();if("[object Array]"===Object.prototype.toString.call(JoomlaCalLocale.localLangNumbers))for(var a=0;a<JoomlaCalLocale.localLangNumbers.length;a++)e=e.replace(new RegExp(a,"g"),JoomlaCalLocale.localLangNumbers[a]);return e},Date.toEnglish=function(e){e=this.toString();for(var a=[0,1,2,3,4,5,6,7,8,9],t=0;t<10;t++)e=e.replace(new RegExp(a[t],"g"),t);return e};var t=function(e){if(!e)throw new Error("Calendar setup failed:\n No valid element found, Please check your code");if("function"!=typeof Date.parseFieldDate)throw new Error("Calendar setup failed:\n No valid date helper, Please check your code");if(e._joomlaCalendar)throw new Error("JoomlaCalendar instance already exists for the element");if(e._joomlaCalendar=this,this.writable=!0,this.hidden=!0,this.params={},this.element=e,this.inputField=e.getElementsByTagName("input")[0],this.button=e.getElementsByTagName("button")[0],!this.inputField)throw new Error("Calendar setup failed:\n No valid input found, Please check your code");this.params={debug:!1,clicked:!1,element:{style:{display:"none"}},writable:!0};var t=this,s=this.button,r={inputField:this.inputField,dateType:JoomlaCalLocale.dateType?JoomlaCalLocale.dateType:"gregorian",direction:void 0!==a.dir?a.dir:a.getElementsByTagName("html")[0].getAttribute("dir"),firstDayOfWeek:s.getAttribute("data-firstday")?parseInt(s.getAttribute("data-firstday")):0,dateFormat:"%Y-%m-%d %H:%M:%S",weekend:JoomlaCalLocale.weekend?JoomlaCalLocale.weekend:[0,6],minYear:JoomlaCalLocale.minYear?JoomlaCalLocale.minYear:1900,maxYear:JoomlaCalLocale.maxYear?JoomlaCalLocale.maxYear:2100,minYearTmp:s.getAttribute("data-min-year"),maxYearTmp:s.getAttribute("data-max-year"),weekendTmp:s.getAttribute("data-weekend"),time24:!0,showsOthers:1===parseInt(s.getAttribute("data-show-others")),showsTime:!0,weekNumbers:1===parseInt(s.getAttribute("data-week-numbers")),showsTodayBtn:!0,compressedHeader:1===parseInt(s.getAttribute("data-only-months-nav"))};for(var o in s.getAttribute("data-dayformat")&&(r.dateFormat=s.getAttribute("data-dayformat")?s.getAttribute("data-dayformat"):"%Y-%m-%d %H:%M:%S"),s.getAttribute("data-time-24")&&(r.time24=24===parseInt(s.getAttribute("data-time-24"))),s.getAttribute("data-show-time")&&(r.showsTime=1===parseInt(s.getAttribute("data-show-time"))),s.getAttribute("data-today-btn")&&(r.showsTodayBtn=1===parseInt(s.getAttribute("data-today-btn"))),r)this.params[o]=r[o];i(t.params.minYearTmp)&&(t.params.minYear=l(parseInt(t.params.minYearTmp),t.params.dateType)),i(t.params.maxYearTmp)&&(t.params.maxYear=l(parseInt(t.params.maxYearTmp),t.params.dateType)),"undefined"!==t.params.weekendTmp&&(t.params.weekend=t.params.weekendTmp.split(",").map(function(e){return parseInt(e,10)})),this._dayMouseDown=function(e){return t._handleDayMouseDown(e)},this._calKeyEvent=function(e){return t._handleCalKeyEvent(e)},this._documentClick=function(e){return t._handleDocumentClick(e)},this.checkInputs(),this.inputField.getAttribute("readonly")||(this._create(),this._bindEvents())};t.prototype.checkInputs=function(){var e=Date.parseFieldDate(this.inputField.getAttribute("data-alt-value"),this.params.dateFormat,"gregorian");""!==this.inputField.value?(this.date=e,this.inputField.value=e.print(this.params.dateFormat,this.params.dateType,!0)):this.date=new Date},t.prototype.recreate=function(){var e=this.element,a=e.querySelector(".js-calendar");a&&(e._joomlaCalendar=null,a.parentNode.removeChild(a),new t(e))},t.prototype.updateTime=function(e,a,t){var s=this.date,r=this.date.getLocalDate(this.params.dateType),i=this.date.getLocalMonth(this.params.dateType),l=this.date.getLocalFullYear(this.params.dateType),o=this.inputField.parentNode.parentNode.querySelectorAll(".time-ampm")[0];this.params.time24||(/pm/i.test(o.value)&&e<12?e=parseInt(e)+12:/am/i.test(o.value)&&12==e&&(e=0)),s.setHours(e),s.setMinutes(parseInt(a,10)),s.setSeconds(s.getSeconds()),s.setLocalFullYear(this.params.dateType,l),s.setLocalMonth(this.params.dateType,i),s.setLocalDate(this.params.dateType,r),this.dateClicked=!1,this.callHandler()},t.prototype.setDate=function(e){e.equalsTo(this.date)||(this.date=e,this.processCalendar(this.params.firstDayOfWeek,e))},t.prototype.moveCursorBy=function(e){var a=new Date(this.date);a.setDate(a.getDate()-e),this.setDate(a)},t.prototype.resetSelected=function(e){for(var a=e.options,t=a.length;t--;){var s=a[t];s.selected&&(s.selected=!1)}},t.prototype.callHandler=function(){this.inputField.setAttribute("data-alt-value",this.date.print(this.params.dateFormat,"gregorian",!1)),this.inputField.getAttribute("data-alt-value")&&"0000-00-00 00:00:00"!==this.inputField.getAttribute("data-alt-value")&&(this.inputField.value=this.date.print(this.params.dateFormat,this.params.dateType,!0),"gregorian"!==this.params.dateType&&this.inputField.setAttribute("data-local-value",this.date.print(this.params.dateFormat,this.params.dateType,!0))),this.inputField.value=this.date.print(this.params.dateFormat,this.params.dateType,!0),"function"==typeof this.inputField.onchange&&this.inputField.onchange(),this.dateClicked&&"function"==typeof this.params.onUpdate&&this.params.onUpdate(this),this.dateClicked?this.close():this.processCalendar()},t.prototype.close=function(){this.hide()},t.prototype.show=function(){if(-1!==navigator.appName.indexOf("Internet Explorer")&&(-1===navigator.appVersion.indexOf("MSIE 9")&&-1===navigator.appVersion.indexOf("MSIE 1")&&e.jQuery&&jQuery().chosen))for(var t=this.element.getElementsByTagName("select"),s=0;s<t.length;s++)jQuery(t[s]).chosen("destroy");this.checkInputs(),this.inputField.focus(),this.dropdownElement.style.display="block",this.hidden=!1,a.addEventListener("keydown",this._calKeyEvent,!0),a.addEventListener("keypress",this._calKeyEvent,!0),a.addEventListener("mousedown",this._documentClick,!0);var r=this.element.querySelector(".js-calendar");e.innerHeight+e.scrollY<r.getBoundingClientRect().bottom+20&&(r.style.marginTop=-(r.getBoundingClientRect().height+this.inputField.getBoundingClientRect().height)+"px"),this.processCalendar()},t.prototype.hide=function(){a.removeEventListener("keydown",this._calKeyEvent,!0),a.removeEventListener("keypress",this._calKeyEvent,!0),a.removeEventListener("mousedown",this._documentClick,!0),this.dropdownElement.style.display="none",this.hidden=!0},t.prototype._handleDocumentClick=function(e){var t=e.target;if(null!==t&&!t.classList.contains("time"))for(;null!==t&&t!==this.element;t=t.parentNode);if(null===t)return a.activeElement.blur(),this.hide(),s(e)},t.prototype._handleDayMouseDown=function(e){var a=e.currentTarget,t=e.target||e.srcElement;if(!t||!t.hasAttribute("data-action")){if("TD"!==a.nodeName){var r=a.getParent("TD");"TD"===r.nodeName?a=r:(a=a.getParent("TD")).classList.contains("js-calendar")&&(a=a.getElementsByTagName("table")[0])}else if(!t.classList.contains("js-btn")&&!a.classList.contains("day")&&!a.classList.contains("title"))return;if(!a||a.disabled)return!1;if(void 0===a.navtype||300!==a.navtype){50===a.navtype&&(a._current=a.innerHTML),t!==a&&t.parentNode!==a||this.cellClick(a,e);var i=null;void 0!==a.month&&(i=a),void 0!==a.parentNode.month&&(i=a.parentNode);var l=null;if(i)l=new Date(this.date),i.month!==l.getLocalMonth(this.params.dateType)&&(l.setLocalMonth(this.params.dateType,i.month),this.setDate(l),this.dateClicked=!1,this.callHandler());else{var o=null;void 0!==a.year&&(o=t),void 0!==a.parentNode.year&&(o=t.parentNode),o&&(l=new Date(this.date),o.year!==l.getLocalFullYear(this.params.dateType)&&(l.setFullYear(this.params.dateType,o.year),this.setDate(l),this.dateClicked=!1,this.callHandler()))}}return s(e)}},t.prototype.cellClick=function(e,a){var t=!1,s=!1,r=null;if(void 0===e.navtype){this.currentDateEl&&(e.classList.add("selected"),this.currentDateEl=e.caldate,(t=this.currentDateEl===e.caldate)||(this.currentDateEl=e.caldate)),this.date.setLocalDateOnly("gregorian",e.caldate);var i=!(this.dateClicked=!e.otherMonth);this.currentDateEl&&(s=!e.disabled),i&&this.processCalendar()}else{r=new Date(this.date),this.dateClicked=!1;var l=r.getOtherFullYear(this.params.dateType),o=r.getLocalMonth(this.params.dateType);switch(e.navtype){case 400:break;case-2:this.params.compressedHeader||l>this.params.minYear&&r.setOtherFullYear(this.params.dateType,l-1);break;case-1:var n=r.getLocalDate(this.params.dateType);if(o>0)n>(d=r.getLocalMonthDays(this.params.dateType,o-1))&&r.setLocalDate(this.params.dateType,d),r.setLocalMonth(this.params.dateType,o-1);else if(l-- >this.params.minYear){r.setOtherFullYear(this.params.dateType,l),n>(d=r.getLocalMonthDays(this.params.dateType,11))&&r.setLocalDate(this.params.dateType,d),r.setLocalMonth(this.params.dateType,11)}break;case 1:n=r.getLocalDate(this.params.dateType);if(o<11)n>(d=r.getLocalMonthDays(this.params.dateType,o+1))&&r.setLocalDate(this.params.dateType,d),r.setLocalMonth(this.params.dateType,o+1);else if(l<this.params.maxYear){var d;r.setOtherFullYear(this.params.dateType,l+1),n>(d=r.getLocalMonthDays(this.params.dateType,0))&&r.setLocalDate(this.params.dateType,d),r.setLocalMonth(this.params.dateType,0)}break;case 2:this.params.compressedHeader||l<this.params.maxYear&&r.setOtherFullYear(this.params.dateType,l+1)}r.equalsTo(this.date)?0===e.navtype&&(s=t=!0):(this.setDate(r),s=!0)}s&&(this.params.showsTime&&(this.dateClicked=!1),a&&this.callHandler()),e.classList.remove("hilite"),t&&!this.params.showsTime&&(this.dateClicked=!1,a&&this.close())},t.prototype._handleCalKeyEvent=function(e){var a=e.keyCode;if(e.target!==this.inputField||13!==a&&9!==a||this.close(),"rtl"===this.params.direction&&(37===a?a=39:39===a&&(a=37)),32===a&&e.shiftKey&&(e.preventDefault(),this.cellClick(this._nav_now,e),this.close()),27===a&&this.close(),38===a&&this.moveCursorBy(7),40===a&&this.moveCursorBy(-7),37===a&&this.moveCursorBy(1),39===a&&this.moveCursorBy(-1),e.target===this.inputField&&!(a>48||a<57||186===a||189===a||190===a||32===a))return s(e)},t.prototype._create=function(){var e=this,a=this.element,t=r("table"),s=r("div");this.table=t,t.className="table",t.cellSpacing=0,t.cellPadding=0,t.style.marginBottom=0,this.dropdownElement=s,a.appendChild(s),this.params.direction&&(s.style.direction=this.params.direction),s.className="js-calendar",s.style.position="absolute",s.style.boxShadow="0px 0px 70px 0px rgba(0,0,0,0.67)",s.style.minWidth=this.inputField.width,s.style.padding="0",s.style.display="none",s.style.left="auto",s.style.top="auto",s.style.zIndex=1060,s.style.borderRadius="20px",this.wrapper=r("div"),this.wrapper.className="calendar-container",s.appendChild(this.wrapper),this.wrapper.appendChild(t);var i=r("thead",t);i.className="calendar-header";var l=null,o=null,n=this,d=function(a,t,s,i,d,m,p){for(var c in i=i||"td",d=d||{},l=r(i,o),t&&(m=m?'class="'+m+'"':"",l.colSpan=t),d)l.style[c]=d[c];for(var c in p)l.setAttribute(c,p[c]);return 0!==s&&Math.abs(s)<=2&&(l.className+=" nav"),t&&l.addEventListener("mousedown",e._dayMouseDown,!0),l.calendar=n,l.navtype=s,0!==s&&Math.abs(s)<=2?l.innerHTML="<a "+m+" style='display:inline;padding:2px 6px;cursor:pointer;text-decoration:none;' unselectable='on'>"+a+"</a>":(l.innerHTML=t?"<div unselectable='on'"+m+">"+a+"</div>":a,!t&&m&&(l.className=m)),l};!1===this.params.compressedHeader&&((o=r("tr",i)).className="calendar-head-row",this._nav_py=d("&lsaquo;",1,-2,"",{"text-align":"center","font-size":"18px","line-height":"18px"},"js-btn btn-prev-year"),this.title=d('<div style="text-align:center;font-size:18px"><span></span></div>',this.params.weekNumbers?6:5,300),this.title.className="title",this._nav_ny=d(" &rsaquo;",1,2,"",{"text-align":"center","font-size":"18px","line-height":"18px"},"js-btn btn-next-year")),(o=r("tr",i)).className="calendar-head-row",this._nav_pm=d("&lsaquo;",1,-1,"",{"text-align":"center","font-size":"2em","line-height":"1em"},"js-btn btn-prev-month"),this._nav_month=d('<div style="text-align:center;font-size:1.2em"><span></span></div>',this.params.weekNumbers?6:5,888,"td",{textAlign:"center"}),this._nav_month.className="title",this._nav_nm=d(" &rsaquo;",1,1,"",{"text-align":"center","font-size":"2em","line-height":"1em"},"js-btn btn-next-month"),(o=r("tr",i)).className=e.params.weekNumbers?"daynames wk":"daynames",this.params.weekNumbers&&((l=r("td",o)).className="day-name wn",l.innerHTML=JoomlaCalLocale.wk);for(var m=7;m>0;--m)l=r("td",o),m||(l.calendar=e);this.firstdayname=this.params.weekNumbers?o.firstChild.nextSibling:o.firstChild;var p=this.params.firstDayOfWeek,c=(l=this.firstdayname,JoomlaCalLocale.weekend);for(m=0;m<7;++m){var h=(m+p)%7;l.classList.add("day-name"),this.params.weekNumbers&&l.classList.add("day-name-week"),m&&(l.calendar=e,l.fdow=h),-1!==c.indexOf(c)&&l.classList.add("weekend"),l.innerHTML=JoomlaCalLocale.shortDays[(m+p)%7],l=l.nextSibling}var u=r("tbody",t);for(this.tbody=u,m=6;m>0;--m){o=r("tr",u),this.params.weekNumbers&&(l=r("td",o));for(var y=7;y>0;--y)(l=r("td",o)).calendar=this,l.addEventListener("mousedown",this._dayMouseDown,!0)}if(this.params.showsTime){(o=r("tr",u)).className="time",(l=r("td",o)).className="time time-title",l.colSpan=1,l.style.verticalAlign="middle",l.innerHTML=" ";var v=r("td",o);v.className="time hours-select",v.colSpan=2;var g=r("td",o);g.className="time minutes-select",g.colSpan=2,function(){function a(a,t,s,i,l){var o,n=r("select",l);n.calendar=e,n.className=a,n.setAttribute("data-chosen",!0),n.style.width="100%",n.navtype=50,n._range=[];for(var d=s;d<=i;++d){var m,p="";d===t&&(p=!0),d<10&&i>=10?(o="0"+d,m=Date.convertNumbers("0")+Date.convertNumbers(d)):(o=""+d,m=""+Date.convertNumbers(d)),n.options.add(new Option(m,o,p,p))}return n}var t=e.date.getHours(),s=e.date.getMinutes(),i=!e.params.time24,n=e.date.getHours()>12;i&&n&&(t-=12);var d=a("time time-hours",t,i?1:0,i?12:23,v),m=a("time time-minutes",s,0,59,g);if((l=r("td",o)).className="time ampm-select",l.colSpan=e.params.weekNumbers?1:2,i){n=Date.parseFieldDate(e.inputField.getAttribute("data-alt-value"),e.params.dateFormat,"gregorian").getHours()>=12;var p=r("select",l);p.className="time-ampm",p.style.width="100%",p.options.add(new Option(JoomlaCalLocale.PM,"pm",!!n||"",!!n||"")),p.options.add(new Option(JoomlaCalLocale.AM,"am",!n||"",!n||"")),p.addEventListener("change",function(a){e.updateTime(a.target.parentNode.parentNode.childNodes[1].childNodes[0].value,a.target.parentNode.parentNode.childNodes[2].childNodes[0].value,a.target.parentNode.parentNode.childNodes[3].childNodes[0].value)},!1)}else l.innerHTML="&#160;",l.colSpan=e.params.weekNumbers?3:2;d.addEventListener("change",function(a){e.updateTime(a.target.parentNode.parentNode.childNodes[1].childNodes[0].value,a.target.parentNode.parentNode.childNodes[2].childNodes[0].value,a.target.parentNode.parentNode.childNodes[3].childNodes[0].value)},!1),m.addEventListener("change",function(a){e.updateTime(a.target.parentNode.parentNode.childNodes[1].childNodes[0].value,a.target.parentNode.parentNode.childNodes[2].childNodes[0].value,a.target.parentNode.parentNode.childNodes[3].childNodes[0].value)},!1)}()}((o=r("div",this.wrapper)).className="buttons-wrapper btn-group",this._nav_save=d(JoomlaCalLocale.save,"",100,"button","","js-btn btn btn-clear",{type:"button","data-action":"clear"}),this.inputField.hasAttribute("required"))||o.querySelector('[data-action="clear"]').addEventListener("click",function(a){a.preventDefault();for(var t=e.table.querySelectorAll("td"),s=0;s<t.length;s++)if(t[s].classList.contains("selected")){t[s].classList.remove("selected");break}e.inputField.setAttribute("data-alt-value","0000-00-00 00:00:00"),e.inputField.setAttribute("value",""),e.inputField.value=""});this.params.showsTodayBtn&&(this._nav_now=d(JoomlaCalLocale.today,"",0,"button","","js-btn btn btn-today",{type:"button","data-action":"today"}),this.wrapper.querySelector('[data-action="today"]').addEventListener("click",function(a){a.preventDefault(),e.date.setLocalDateOnly("gregorian",new Date),e.dateClicked=!0,e.callHandler(),e.close()}));this._nav_exit=d(JoomlaCalLocale.exit,"",999,"button","","js-btn btn btn-exit",{type:"button","data-action":"exit"}),this.wrapper.querySelector('[data-action="exit"]').addEventListener("click",function(a){a.preventDefault(),e.dateClicked||(e.inputField.value?("gregorian"!==e.params.dateType&&e.inputField.setAttribute("data-local-value",e.inputField.value),void 0===e.dateClicked?e.inputField.setAttribute("data-alt-value",Date.parseFieldDate(e.inputField.value,e.params.dateFormat,e.params.dateType).print(e.params.dateFormat,"gregorian",!1)):e.inputField.setAttribute("data-alt-value",e.date.print(e.params.dateFormat,"gregorian",!1))):e.inputField.setAttribute("data-alt-value","0000-00-00 00:00:00"),e.date=Date.parseFieldDate(e.inputField.getAttribute("data-alt-value"),e.params.dateFormat,e.params.dateType)),e.close()}),this.processCalendar()},t.prototype.processCalendar=function(){this.table.style.visibility="hidden";var e=this.params.firstDayOfWeek,a=this.date,t=new Date,s=t.getLocalFullYear(this.params.dateType),r=t.getLocalMonth(this.params.dateType),i=t.getLocalDate(this.params.dateType),l=a.getOtherFullYear(this.params.dateType),o=a.getHours(),n=a.getMinutes(),d=(a.getSeconds(),!this.params.time24);l<this.params.minYear?(l=this.params.minYear,a.getOtherFullYear(this.params.dateType,l)):l>this.params.maxYear&&(l=this.params.maxYear,a.getOtherFullYear(this.params.dateType,l)),this.params.firstDayOfWeek=e,this.date=new Date(a);var m=a.getLocalMonth(this.params.dateType),p=a.getLocalDate(this.params.dateType);a.setLocalDate(this.params.dateType,1);var c=(a.getLocalDay(this.params.dateType)-this.params.firstDayOfWeek)%7;c<0&&(c+=7),a.setLocalDate(this.params.dateType,-c),a.setLocalDate(this.params.dateType,a.getLocalDate(this.params.dateType)+1);for(var h=this.tbody.firstChild,u=this.ar_days=new Array,y=JoomlaCalLocale.weekend,v=parseInt(a.getLocalWeekDays(this.params.dateType)),g=0;g<v;++g,h=h.nextSibling){var b=h.firstChild;this.params.weekNumbers&&(b.className="day wn",b.innerHTML=a.getLocalWeekNumber(this.params.dateType),b=b.nextSibling),h.className=this.params.weekNumbers?"daysrow wk":"daysrow";for(var L,f=!1,C=u[g]=[],w=v+1,T=0;T<w;++T,b=b.nextSibling,a.setLocalDate(this.params.dateType,L+1)){b.className="day",b.style.textAlign="center",L=a.getLocalDate(this.params.dateType);var N=a.getLocalDay(this.params.dateType);b.pos=g<<4|T,C[T]=b;var D=a.getLocalMonth(this.params.dateType)===m;if(D)b.otherMonth=!1,f=!0,b.style.cursor="pointer";else{if(!this.params.showsOthers){b.className+=" emptycell",b.innerHTML="&#160;",b.disabled=!0;continue}b.className+=" disabled othermonth ",b.otherMonth=!0}b.disabled=!1,b.innerHTML=this.params.debug?L:Date.convertNumbers(L),b.disabled||(b.caldate=new Date(a),D&&L===p&&(b.className+=" selected",this.currentDateEl=b),a.getLocalFullYear(this.params.dateType)===s&&a.getLocalMonth(this.params.dateType)===r&&L===i&&(b.className+=" today"),-1!==y.indexOf(N)&&(b.className+=" weekend"))}f||this.params.showsOthers?h.style.display="":(h.style.display="none",h.className="emptyrow")}if(this.params.showsTime){o>12&&d&&(o-=12),o=o<10?"0"+o:o,n=n<10?"0"+n:n;var F=this.table.querySelector(".time-hours"),k=this.table.querySelector(".time-minutes");if(this.resetSelected(F),this.params.time24?F.value=o:F.value="00"==o?"12":o,this.resetSelected(k),k.value=n,!this.params.time24){var J=new Date(this.inputField.getAttribute("data-alt-value")),A=this.table.querySelector(".time-ampm");J.getHours()>12&&(this.resetSelected(A),A.value="pm")}}if(this.params.compressedHeader){var M=Date.convertNumbers(l.toString());this._nav_month.getElementsByTagName("span")[0].innerHTML=this.params.monthBefore?M+" - "+JoomlaCalLocale.months[m]:JoomlaCalLocale.months[m]+" - "+M}else this._nav_month.getElementsByTagName("span")[0].innerHTML=this.params.debug?m+" "+JoomlaCalLocale.months[m]:JoomlaCalLocale.months[m],this.title.getElementsByTagName("span")[0].innerHTML=this.params.debug?l+" "+Date.convertNumbers(l.toString()):Date.convertNumbers(l.toString());this.table.style.visibility="visible"},t.prototype._bindEvents=function(){var e=this;this.inputField.addEventListener("blur",function(a){var s=t.getCalObject(this)._joomlaCalendar;if("block"!==s.dropdownElement.style.display){if(s){if(s.inputField.value)if(void 0===s.params.dateClicked)if(s.inputField.setAttribute("data-local-value",s.inputField.value),"gregorian"!==s.params.dateType){var r,i=Date.parseFieldDate(s.inputField.value,s.params.dateFormat,s.params.dateType);r=Date.localCalToGregorian(i.getFullYear(),i.getMonth(),i.getDate()),i.setFullYear(r[0]),i.setMonth(r[1]),i.setDate(r[2]),s.inputField.setAttribute("data-alt-value",i.print(s.params.dateFormat,"gregorian",!1))}else s.inputField.setAttribute("data-alt-value",Date.parseFieldDate(s.inputField.value,s.params.dateFormat,s.params.dateType).print(s.params.dateFormat,"gregorian",!1));else s.inputField.setAttribute("data-alt-value",s.date.print(s.params.dateFormat,"gregorian",!1));else s.inputField.setAttribute("data-alt-value","0000-00-00 00:00:00");s.date=Date.parseFieldDate(s.inputField.getAttribute("data-alt-value"),s.params.dateFormat,s.params.dateType)}e.close()}else a.preventDefault()},!0),this.button.addEventListener("click",function(){e.show()},!1)};var s=function(a){return a||(a=e.event),a.preventDefault(),a.stopPropagation(),!1},r=function(e,t){var s;return s=a.createElement(e),void 0!==t&&t.appendChild(s),s},i=function(e){return!isNaN(e)&&(0|(a=parseFloat(e)))===a;var a},l=function(e,a){return(new Date).getLocalFullYear(a)+e};function o(e){for(var a=e.target.querySelectorAll(".field-calendar"),s=0,r=a.length;s<r;s++)t.init(a[s])}t.getCalObject=function(e){if(!e)return!1;for(;e.parentNode;)if((e=e.parentNode).classList.contains("field-calendar"))return e;return!1},t.prototype.setAltValue=function(){var e=this.inputField;e.getAttribute("disabled")||(e.value=e.getAttribute("data-alt-value")?e.getAttribute("data-alt-value"):"")},t.onSubmit=function(){if(Joomla=e.Joomla||{},!Joomla.calendarProcessed){Joomla.calendarProcessed=!0;for(var t=a.querySelectorAll(".field-calendar"),s=0;s<t.length;s++){var r=t[s]._joomlaCalendar;r&&r.setAltValue()}}},t.init=function(a,s){e.JoomlaCalLocale=e.JoomlaCalLocale?JoomlaCalLocale:{},JoomlaCalLocale.today=JoomlaCalLocale.today?JoomlaCalLocale.today:"today",JoomlaCalLocale.weekend=JoomlaCalLocale.weekend?JoomlaCalLocale.weekend:[0,6],JoomlaCalLocale.localLangNumbers=JoomlaCalLocale.localLangNumbers?JoomlaCalLocale.localLangNumbers:[0,1,2,3,4,5,6,7,8,9],JoomlaCalLocale.wk=JoomlaCalLocale.wk?JoomlaCalLocale.wk:"wk",JoomlaCalLocale.AM=JoomlaCalLocale.AM?JoomlaCalLocale.AM:"AM",JoomlaCalLocale.PM=JoomlaCalLocale.PM?JoomlaCalLocale.PM:"PM",JoomlaCalLocale.am=JoomlaCalLocale.am?JoomlaCalLocale.am:"am",JoomlaCalLocale.pm=JoomlaCalLocale.pm?JoomlaCalLocale.pm:"pm",JoomlaCalLocale.dateType=JoomlaCalLocale.dateType?JoomlaCalLocale.dateType:"gregorian",JoomlaCalLocale.time=JoomlaCalLocale.time?JoomlaCalLocale.time:"time",JoomlaCalLocale.days=JoomlaCalLocale.days?JoomlaCalLocale.days:'["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]',JoomlaCalLocale.shortDays=JoomlaCalLocale.shortDays?JoomlaCalLocale.shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],JoomlaCalLocale.months=JoomlaCalLocale.months?JoomlaCalLocale.months:["January","February","March","April","May","June","July","August","September","October","November","December"],JoomlaCalLocale.shortMonths=JoomlaCalLocale.shortMonths?JoomlaCalLocale.shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],JoomlaCalLocale.minYear=JoomlaCalLocale.minYear?JoomlaCalLocale.minYear:1900,JoomlaCalLocale.maxYear=JoomlaCalLocale.maxYear?JoomlaCalLocale.maxYear:2100,JoomlaCalLocale.exit=JoomlaCalLocale.exit?JoomlaCalLocale.exit:"Cancel",JoomlaCalLocale.clear=JoomlaCalLocale.clear?JoomlaCalLocale.clear:"Clear";var r=a._joomlaCalendar;r?r.recreate():new t(a),a&&a.getElementsByTagName("input")[0]&&a.getElementsByTagName("input")[0].form&&!a.getElementsByTagName("input")[0].disabled&&a.getElementsByTagName("input")[0].form.addEventListener("submit",t.onSubmit)},e.JoomlaCalendar=t,a.addEventListener("DOMContentLoaded",o),a.addEventListener("joomla:updated",o),e.Calendar={},Calendar.setup=function(e){if(e.inputField&&a.getElementById(e.inputField)){var s=a.getElementById(e.inputField),r=s.parentNode.querySelectorAll("button")[0];for(var i in e)if(e.hasOwnProperty(i))switch(i){case"ifFormat":r&&r.setAttribute("data-dayformat",e.ifFormat);break;case"firstDay":r&&r.setAttribute("data-firstday",parseInt(e.firstDay));break;case"weekNumbers":r&&r.setAttribute("data-week-numbers","true"===e.weekNumbers||!0===e.weekNumbers?"1":"0");break;case"showOthers":r&&r.setAttribute("data-show-others","true"===e.showOthers||!0===e.showOthers?"1":"0");break;case"showsTime":r&&r.setAttribute("data-show-time","true"===e.showsTime||!0===e.showsTime?"1":"0");break;case"timeFormat":r&&r.setAttribute("data-time-24",parseInt(e.timeFormat))}t.init(s.parentNode.parentNode)}return null}}(window,document);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L93

Insecure DOM Manipulation (XSS) in passwordstrength.js

CWE-79
File Location: media/system/js/fields/passwordstrength.js:93
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- label.innerHTML = Joomla.JText._('JFIELD_PASSWORD_INDICATE_INCOMPLETE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-field-user-es5.min.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-user-es5.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){return function t(e,i,n){function r(u,s){if(!i[u]){if(!e[u]){var a="function"==typeof require&&require;if(!s&&a)return a(u,!0);if(o)return o(u,!0);var l=new Error("Cannot find module '"+u+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[u]={exports:{}};e[u][0].call(c.exports,function(t){return r(e[u][1][t]||t)},c,c.exports,t,e,i,n)}return i[u].exports}for(var o="function"==typeof require&&require,u=0;u<n.length;u++)r(n[u]);return r}}()({1:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();!function(t){var e=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,HTMLElement),n(e,[{key:"connectedCallback",value:function(){if(this.modal=this.querySelector(this.modalClass),this.modalBody=this.querySelector(".modal-body"),this.input=this.querySelector(this.inputId),this.inputName=this.querySelector(this.inputNameClass),this.buttonSelect=this.querySelector(this.buttonSelectClass),this.modalClose=this.modalClose.bind(this),this.setValue=this.setValue.bind(this),this.buttonSelect){this.buttonSelect.addEventListener("click",this.modalOpen.bind(this)),this.modal.addEventListener("hide",this.removeIframe.bind(this));var t=this.input.getAttribute("data-onchange"),e=void 0;t&&(e=new Function(t),this.input.addEventListener("change",e.bind(this.input)))}}},{key:"disconnectedCallback",value:function(){this.buttonSelect.removeEventListener("click",this),this.modal.removeEventListener("hide",this)}},{key:"modalOpen",value:function(){var t=this;this.removeIframe();var e=document.createElement("iframe");e.setAttribute("name","field-user-modal"),e.src=this.url.replace("{field-user-id}",this.input.getAttribute("id")),e.setAttribute("width",this.modalWidth),e.setAttribute("height",this.modalHeight),this.modalBody.appendChild(e),window.jQuery(this.modal).modal("show");var i=this.modalBody.querySelector("iframe");i.addEventListener("load",function(){var e=i.contentWindow.document;[].slice.call(e.querySelectorAll(".button-select")).forEach(function(e){e.addEventListener("click",function(e){t.setValue(e.target.getAttribute("data-user-value"),e.target.getAttribute("data-user-name")),t.modalClose()})})})}},{key:"modalClose",value:function(){window.jQuery(this.modal).modal("hide"),this.modalBody.innerHTML=""}},{key:"removeIframe",value:function(){this.modalBody.innerHTML=""}},{key:"setValue",value:function(t,e){this.input.setAttribute("value",t),this.inputName.setAttribute("value",e||t)}},{key:"url",get:function(){return this.getAttribute("url")},set:function(t){this.setAttribute("url",t)}},{key:"modalClass",get:function(){return this.getAttribute("modal")},set:function(t){this.setAttribute("modal",t)}},{key:"modalWidth",get:function(){return this.getAttribute("modal-width")},set:function(t){this.setAttribute("modal-width",t)}},{key:"modalHeight",get:function(){return this.getAttribute("modal-height")},set:function(t){this.setAttribute("modal-height",t)}},{key:"inputId",get:function(){return this.getAttribute("input")},set:function(t){this.setAttribute("input",t)}},{key:"inputNameClass",get:function(){return this.getAttribute("input-name")},set:function(t){this.setAttribute("input-name",t)}},{key:"buttonSelectClass",get:function(){return this.getAttribute("button-select")},set:function(t){this.setAttribute("button-select",t)}}],[{key:"observedAttributes",get:function(){return["url","modal-class","modal-width","modal-height","input","input-name","button-select"]}}]),e}();t.define("joomla-field-user",e)}(customElements)},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in dialog.min.js

CWE-79
File Location: media/vendor/codemirror/addon/dialog/dialog.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function o(e,o,n){var t;return(t=e.getWrapperElement().appendChild(document.createElement("div"))).className=n?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof o?t.innerHTML=o:t.appendChild(o),t}function n(e,o){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=o}e.defineExtension("openDialog",function(t,i,r){r||(r={}),n(this,null);var u=o(this,t,r.bottom),l=!1,c=this;function a(e){if("string"==typeof e)s.value=e;else{if(l)return;l=!0,u.parentNode.removeChild(u),c.focus(),r.onClose&&r.onClose(u)}}var f,s=u.getElementsByTagName("input")[0];return s?(s.focus(),r.value&&(s.value=r.value,!1!==r.selectValueOnOpen&&s.select()),r.onInput&&e.on(s,"input",function(e){r.onInput(e,s.value,a)}),r.onKeyUp&&e.on(s,"keyup",function(e){r.onKeyUp(e,s.value,a)}),e.on(s,"keydown",function(o){r&&r.onKeyDown&&r.onKeyDown(o,s.value,a)||((27==o.keyCode||!1!==r.closeOnEnter&&13==o.keyCode)&&(s.blur(),e.e_stop(o),a()),13==o.keyCode&&i(s.value,o))}),!1!==r.closeOnBlur&&e.on(s,"blur",a)):(f=u.getElementsByTagName("button")[0])&&(e.on(f,"click",function(){a(),c.focus()}),!1!==r.closeOnBlur&&e.on(f,"blur",a),f.focus()),a}),e.defineExtension("openConfirm",function(t,i,r){n(this,null);var u=o(this,t,r&&r.bottom),l=u.getElementsByTagName("button"),c=!1,a=this,f=1;function s(){c||(c=!0,u.parentNode.removeChild(u),a.focus())}l[0].focus();for(var d=0;d<l.length;++d){var p=l[d];!function(o){e.on(p,"click",function(n){e.e_preventDefault(n),s(),o&&o(a)})}(i[d]),e.on(p,"blur",function(){--f,setTimeout(function(){f<=0&&s()},200)}),e.on(p,"focus",function(){++f})}}),e.defineExtension("openNotification",function(t,i){n(this,a);var r,u=o(this,t,i&&i.bottom),l=!1,c=i&&void 0!==i.duration?i.duration:5e3;function a(){l||(l=!0,clearTimeout(r),u.parentNode.removeChild(u))}return e.on(u,"click",function(o){e.e_preventDefault(o),a()}),c&&(r=setTimeout(a,c)),a})});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L248

Insecure DOM Manipulation (XSS) in joomla-panels-es5.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-panels-es5.js:248
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- aElement.innerHTML = panel.getAttribute('name');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2281

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2281
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- player.captionsButton.innerHTML = '<button type="button" aria-controls="' + t.id + '" title="' + tracksTitle + '" aria-label="' + tracksTitle + '" tabindex="0"></button>' + ('<div class="' + t.options.classPrefix + 'captions-selector ' + t.options.classPrefix + 'offscreen">') + ('<ul class="' + t.options.classPrefix + 'captions-selector-list">') + ('<li class="' + t.options.classPrefix + 'captions-selector-list-item">') + ('<input type="radio" class="' + t.options.classPrefix + 'captions-selector-input" ') + ('name="' + player.id + '_captions" id="' + player.id + '_captions_none" ') + 'value="none" checked disabled>' + ('<label class="' + t.options.classPrefix + 'captions-selector-label ') + (t.options.classPrefix + 'captions-selected" ') + ('for="' + player.id + '_captions_none">' + _i18n2.default.t('mejs.none') + '</label>') + '</li>' + '</ul>' + '</div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2644

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2644
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- t.captionsText.innerHTML = sanitize(track.entries[i].text);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2722

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2722
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- t.chaptersButton.querySelector('ul').innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2957

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2957
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- _temp.text = lines.eq(_i16).innerHTML.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, "<a href='$1' target='_blank'>$1</a>");
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3696

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:3696
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- t.getElement(t.container).innerHTML = '<div class="' + t.options.classPrefix + 'inner">' + ('<div class="' + t.options.classPrefix + 'mediaelement"></div>') + ('<div class="' + t.options.classPrefix + 'layers"></div>') + ('<div class="' + t.options.classPrefix + 'controls"></div>') + '</div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4890

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:4890
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- loading.innerHTML = '<div class="' + t.options.classPrefix + 'overlay-loading">' + ('<span class="' + t.options.classPrefix + 'overlay-loading-bg-img"></span>') + '</div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4899

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:4899
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- bigPlay.innerHTML = '<div class="' + t.options.classPrefix + 'overlay-button" role="button" tabindex="0" ' + ('aria-label="' + _i18n2.default.t('mejs.play') + '" aria-pressed="false"></div>');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in mediaelement-and-player.min.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.min.js:1
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return i(n||e)},u,u.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(e,t,n){},{}],2:[function(e,t,n){(function(n){var o,i=void 0!==n?n:"undefined"!=typeof window?window:{},r=e(1);"undefined"!=typeof document?o=document:(o=i["__GLOBAL_DOCUMENT_CACHE@4"])||(o=i["__GLOBAL_DOCUMENT_CACHE@4"]=r),t.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],3:[function(e,t,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){!function(e){var n=setTimeout;function o(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void s(t.promise,e)}a(t.promise,o)}else(1===e._state?a:s)(t.promise,e._value)})):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void d((o=n,r=t,function(){o.apply(r,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){s(e,t)}var o,r}function s(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function d(e,t){var n=!1;try{e(function(e){n||(n=!0,a(t,e))},function(e){n||(n=!0,s(t,e))})}catch(e){if(n)return;n=!0,s(t,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(o);return r(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i(function(e,n){if(0===t.length)return e([]);var o=t.length;function i(r,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(e){i(r,e)},n)}t[r]=a,0==--o&&e(t)}catch(e){n(e)}}for(var r=0;r<t.length;r++)i(r,t[r])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(t){t(e)})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(t,n){for(var o=0,i=e.length;o<i;o++)e[o].then(t,n)})},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==t&&t.exports?t.exports=i:e.Promise||(e.Promise=i)}(this)},{}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=e(7),a=(o=r)&&o.__esModule?o:{default:o},s=e(15),l=e(27);var d={lang:"en",en:s.EN,language:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(null!==t&&void 0!==t&&t.length){if("string"!=typeof t[0])throw new TypeError("Language code must be a string value");if(!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(t[0]))throw new TypeError("Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters");d.lang=t[0],void 0===d[t[0]]?(t[1]=null!==t[1]&&void 0!==t[1]&&"object"===i(t[1])?t[1]:{},d[t[0]]=(0,l.isObjectEmpty)(t[1])?s.EN:t[1]):null!==t[1]&&void 0!==t[1]&&"object"===i(t[1])&&(d[t[0]]=t[1])}return d.lang},t:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e&&e.length){var n=void 0,o=void 0,r=d.language(),a=function(e,t,n){return"object"!==(void 0===e?"undefined":i(e))||"number"!=typeof t||"number"!=typeof n?e:[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>0&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])>=2&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100==1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100==2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100==3||(arguments.length<=0?void 0:arguments[0])%100==4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])>6&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100>=3&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:(arguments.length<=0?void 0:arguments[0])%100>=11?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>1&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100>10&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10==2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}][n].apply(null,[t].concat(e))};return void 0!==d[r]&&(n=d[r][e],null!==t&&"number"==typeof t&&(o=d[r]["mejs.plural-form"],n=a.apply(null,[n,t,o]))),!n&&d.en&&(n=d.en[e],null!==t&&"number"==typeof t&&(o=d.en["mejs.plural-form"],n=a.apply(null,[n,t,o]))),n=n||e,null!==t&&"number"==typeof t&&(n=n.replace("%1",t)),(0,l.escapeHTML)(n)}return e}};a.default.i18n=d,"undefined"!=typeof mejsL10n&&a.default.i18n.language(mejsL10n.language,mejsL10n.strings),n.default=d},{15:15,27:27,7:7}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),r=c(e(2)),a=c(e(7)),s=e(27),l=e(28),d=e(8),u=e(25);function c(e){return e&&e.__esModule?e:{default:e}}var f=function e(t,n,c){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var p=this;c=Array.isArray(c)?c:null,p.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain"},n=Object.assign(p.defaults,n),p.mediaElement=r.default.createElement(n.fakeNodeName);var m=t,h=!1;if("string"==typeof t?p.mediaElement.originalNode=r.default.getElementById(t):(p.mediaElement.originalNode=t,m=t.id),void 0===p.mediaElement.originalNode||null===p.mediaElement.originalNode)return null;p.mediaElement.options=n,m=m||"mejs_"+Math.random().toString().slice(2),p.mediaElement.originalNode.setAttribute("id",m+"_from_mejs");var v=p.mediaElement.originalNode.tagName.toLowerCase();["video","audio"].indexOf(v)>-1&&!p.mediaElement.originalNode.getAttribute("preload")&&p.mediaElement.originalNode.setAttribute("preload","none"),p.mediaElement.originalNode.parentNode.insertBefore(p.mediaElement,p.mediaElement.originalNode),p.mediaElement.appendChild(p.mediaElement.originalNode);var g=function(e,t){if("https:"===i.default.location.protocol&&0===e.indexOf("http:")&&u.IS_IOS&&a.default.html5media.mediaTypes.indexOf(t)>-1){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var t=(i.default.URL||i.default.webkitURL).createObjectURL(this.response);return p.mediaElement.originalNode.setAttribute("src",t),t}return e},n.open("GET",e),n.responseType="blob",n.send()}return e},y=void 0;if(null!==c)y=c;else if(null!==p.mediaElement.originalNode)switch(y=[],p.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":y.push({type:"",src:p.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var E=p.mediaElement.originalNode.children.length,b=p.mediaElement.originalNode.getAttribute("src");if(b){var S=p.mediaElement.originalNode,x=(0,l.formatType)(b,S.getAttribute("type"));y.push({type:x,src:g(b,x)})}for(var w=0;w<E;w++){var P=p.mediaElement.originalNode.children[w];if("source"===P.tagName.toLowerCase()){var T=P.getAttribute("src"),C=(0,l.formatType)(T,P.getAttribute("type"));y.push({type:C,src:g(T,C)})}}}p.mediaElement.id=m,p.mediaElement.renderers={},p.mediaElement.events={},p.mediaElement.promises=[],p.mediaElement.renderer=null,p.mediaElement.rendererName=null,p.mediaElement.changeRenderer=function(e,t){var n=f,o=Object.keys(t[0]).length>2?t[0]:t[0].src;if(void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&n.mediaElement.renderer.name===e)return n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.show(),n.mediaElement.renderer.setSrc(o),!0;void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&(n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.hide());var i=n.mediaElement.renderers[e],r=null;if(void 0!==i&&null!==i)return i.show(),i.setSrc(o),n.mediaElement.renderer=i,n.mediaElement.rendererName=e,!0;for(var a=n.mediaElement.options.renderers.length?n.mediaElement.options.renderers:d.renderer.order,s=0,l=a.length;s<l;s++){var u=a[s];if(u===e){r=d.renderer.renderers[u];var c=Object.assign(r.options,n.mediaElement.options);return(i=r.create(n.mediaElement,c,t)).name=e,n.mediaElement.renderers[r.name]=i,n.mediaElement.renderer=i,n.mediaElement.rendererName=e,i.show(),!0}}return!1},p.mediaElement.setSize=function(e,t){void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&p.mediaElement.renderer.setSize(e,t)},p.mediaElement.generateError=function(e,t){e=e||"",t=Array.isArray(t)?t:[];var n=(0,s.createEvent)("error",p.mediaElement);n.message=e,n.urls=t,p.mediaElement.dispatchEvent(n),h=!0};var k=a.default.html5media.properties,_=a.default.html5media.methods,N=function(e,t,n,o){var i=e[t];Object.defineProperty(e,t,{get:function(){return n.apply(e,[i])},set:function(t){return i=o.apply(e,[t])}})},A=function(e){if("src"!==e){var t=""+e.substring(0,1).toUpperCase()+e.substring(1),n=function(){return void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&"function"==typeof p.mediaElement.renderer["get"+t]?p.mediaElement.renderer["get"+t]():null},o=function(e){void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&"function"==typeof p.mediaElement.renderer["set"+t]&&p.mediaElement.renderer["set"+t](e)};N(p.mediaElement,e,n,o),p.mediaElement["get"+t]=n,p.mediaElement["set"+t]=o}},L=function(){return void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer?p.mediaElement.renderer.getSrc():null},F=function(e){var t=[];if("string"==typeof e)t.push({src:e,type:e?(0,l.getTypeFromFile)(e):""});else if("object"===(void 0===e?"undefined":o(e))&&void 0!==e.src){var n=(0,l.absolutizeUrl)(e.src),i=e.type,r=Object.assign(e,{src:n,type:""!==i&&null!==i&&void 0!==i||!n?i:(0,l.getTypeFromFile)(n)});t.push(r)}else if(Array.isArray(e))for(var a=0,u=e.length;a<u;a++){var c=(0,l.absolutizeUrl)(e[a].src),f=e[a].type,m=Object.assign(e[a],{src:c,type:""!==f&&null!==f&&void 0!==f||!c?f:(0,l.getTypeFromFile)(c)});t.push(m)}var h=d.renderer.select(t,p.mediaElement.options.renderers.length?p.mediaElement.options.renderers:[]),v=void 0;if(p.mediaElement.paused||(p.mediaElement.pause(),v=(0,s.createEvent)("pause",p.mediaElement),p.mediaElement.dispatchEvent(v)),p.mediaElement.originalNode.src=t[0].src||"",null!==h||!t[0].src)return t[0].src?p.mediaElement.changeRenderer(h.rendererName,t):null;p.mediaElement.generateError("No renderer found",t)},j=function(e,t){try{if("play"===e&&"native_dash"===p.mediaElement.rendererName){var n=p.mediaElement.renderer[e](t);n&&"function"==typeof n.then&&n.catch(function(){p.mediaElement.paused&&setTimeout(function(){var e=p.mediaElement.renderer.play();void 0!==e&&e.catch(function(){p.mediaElement.renderer.paused||p.mediaElement.renderer.pause()})},150)})}else p.mediaElement.renderer[e](t)}catch(e){p.mediaElement.generateError(e,y)}},I=function(e){p.mediaElement[e]=function(){for(var t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];return void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&"function"==typeof p.mediaElement.renderer[e]&&(p.mediaElement.promises.length?Promise.all(p.mediaElement.promises).then(function(){j(e,n)}).catch(function(e){p.mediaElement.generateError(e,y)}):j(e,n)),null}};N(p.mediaElement,"src",L,F),p.mediaElement.getSrc=L,p.mediaElement.setSrc=F;for(var M=0,O=k.length;M<O;M++)A(k[M]);for(var D=0,V=_.length;D<V;D++)I(_[D]);return p.mediaElement.addEventListener=function(e,t){p.mediaElement.events[e]=p.mediaElement.events[e]||[],p.mediaElement.events[e].push(t)},p.mediaElement.removeEventListener=function(e,t){if(!e)return p.mediaElement.events={},!0;var n=p.mediaElement.events[e];if(!n)return!0;if(!t)return p.mediaElement.events[e]=[],!0;for(var o=0;o<n.length;o++)if(n[o]===t)return p.mediaElement.events[e].splice(o,1),!0;return!1},p.mediaElement.dispatchEvent=function(e){var t=p.mediaElement.events[e.type];if(t)for(var n=0;n<t.length;n++)t[n].apply(null,[e])},p.mediaElement.destroy=function(){var e=p.mediaElement.originalNode.cloneNode(!0),t=p.mediaElement.parentElement;e.removeAttribute("id"),e.remove(),p.mediaElement.remove(),t.append(e)},y.length&&(p.mediaElement.src=y),p.mediaElement.promises.length?Promise.all(p.mediaElement.promises).then(function(){p.mediaElement.options.success&&p.mediaElement.options.success(p.mediaElement,p.mediaElement.originalNode)}).catch(function(){h&&p.mediaElement.options.error&&p.mediaElement.options.error(p.mediaElement,p.mediaElement.originalNode)}):(p.mediaElement.options.success&&p.mediaElement.options.success(p.mediaElement,p.mediaElement.originalNode),h&&p.mediaElement.options.error&&p.mediaElement.options.error(p.mediaElement,p.mediaElement.originalNode)),p.mediaElement};i.default.MediaElement=f,a.default.MediaElement=f,n.default=f},{2:2,25:25,27:27,28:28,3:3,7:7,8:8}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=e(3);var r={version:"4.2.8",html5media:{properties:["volume","src","currentTime","muted","duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable","currentSrc","preload","bufferedBytes","bufferedTime","initialTime","startOffsetTime","defaultPlaybackRate","playbackRate","played","autoplay","loop","controls"],readOnlyProperties:["duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable"],methods:["load","play","pause","canPlayType"],events:["loadstart","durationchange","loadedmetadata","loadeddata","progress","canplay","canplaythrough","suspend","abort","error","emptied","stalled","play","playing","pause","waiting","seeking","seeked","timeupdate","ended","ratechange","volumechange"],mediaTypes:["audio/mp3","audio/ogg","audio/oga","audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav","audio/mpeg","audio/mp4","video/mp4","video/webm","video/ogg","video/ogv"]}};((o=i)&&o.__esModule?o:{default:o}).default.mejs=r,n.default=r},{3:3}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.renderer=void 0;var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=e(7),s=(o=a)&&o.__esModule?o:{default:o};var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderers={},this.order=[]}return r(e,[{key:"add",value:function(e){if(void 0===e.name)throw new TypeError("renderer must contain at least `name` property");this.renderers[e.name]=e,this.order.push(e.name)}},{key:"select",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length;if(t=t.length?t:this.order,!n){var o=[/^(html5|native)/i,/^flash/i,/iframe$/i],i=function(e){for(var t=0,n=o.length;t<n;t++)if(o[t].test(e))return t;return o.length};t.sort(function(e,t){return i(e)-i(t)})}for(var r=0,a=t.length;r<a;r++){var s=t[r],l=this.renderers[s];if(null!==l&&void 0!==l)for(var d=0,u=e.length;d<u;d++)if("function"==typeof l.canPlayType&&"string"==typeof e[d].type&&l.canPlayType(e[d].type))return{rendererName:l.name,src:e[d].src}}return null}},{key:"order",set:function(e){if(!Array.isArray(e))throw new TypeError("order must be an array of strings.");this._order=e},get:function(){return this._order}},{key:"renderers",set:function(e){if(null!==e&&"object"!==(void 0===e?"undefined":i(e)))throw new TypeError("renderers must be an array of objects.");this._renderers=e},get:function(){return this._renderers}}]),e}(),d=n.renderer=new l;s.default.Renderers=d},{7:7}],9:[function(e,t,n){"use strict";var o=f(e(3)),i=f(e(2)),r=f(e(5)),a=e(16),s=f(a),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(e(25)),d=e(27),u=e(26),c=e(28);function f(e){return e&&e.__esModule?e:{default:e}}Object.assign(a.config,{usePluginFullScreen:!0,fullscreenText:null,useFakeFullscreen:!1}),Object.assign(s.default.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,isPluginClickThroughCreated:!1,fullscreenMode:"",containerSizeTimeout:null,buildfullscreen:function(e){if(e.isVideo){e.isInIframe=o.default.location!==o.default.parent.location,e.detectFullscreenMode();var t=this,n=(0,d.isString)(t.options.fullscreenText)?t.options.fullscreenText:r.default.t("mejs.fullscreen"),a=i.default.createElement("div");if(a.className=t.options.classPrefix+"button "+t.options.classPrefix+"fullscreen-button",a.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+n+'" aria-label="'+n+'" tabindex="0"></button>',t.addControlElement(a,"fullscreen"),a.addEventListener("click",function(){l.HAS_TRUE_NATIVE_FULLSCREEN&&l.IS_FULLSCREEN||e.isFullScreen?e.exitFullScreen():e.enterFullScreen()}),e.fullscreenBtn=a,t.options.keyActions.push({keys:[70],action:function(e,t,n,o){o.ctrlKey||void 0!==e.enterFullScreen&&(e.isFullScreen?e.exitFullScreen():e.enterFullScreen())}}),t.exitFullscreenCallback=function(n){27===(n.which||n.keyCode||0)&&(l.HAS_TRUE_NATIVE_FULLSCREEN&&l.IS_FULLSCREEN||t.isFullScreen)&&e.exitFullScreen()},t.globalBind("keydown",t.exitFullscreenCallback),t.normalHeight=0,t.normalWidth=0,l.HAS_TRUE_NATIVE_FULLSCREEN){e.globalBind(l.FULLSCREEN_EVENT_NAME,function(){e.isFullScreen&&(l.isFullScreen()?(e.isNativeFullScreen=!0,e.setControlsSize()):(e.isNativeFullScreen=!1,e.exitFullScreen()))})}}},cleanfullscreen:function(e){e.exitFullScreen(),e.globalUnbind("keydown",e.exitFullscreenCallback)},detectFullscreenMode:function(){var e=this,t=null!==e.media.rendererName&&/(native|html5)/i.test(e.media.rendererName),n="";return l.HAS_TRUE_NATIVE_FULLSCREEN&&t?n="native-native":l.HAS_TRUE_NATIVE_FULLSCREEN&&!t?n="plugin-native":e.usePluginFullScreen&&l.SUPPORT_POINTER_EVENTS&&(n="plugin-click"),e.fullscreenMode=n,n},enterFullScreen:function(){var e=this,t=null!==e.media.rendererName&&/(html5|native)/i.test(e.media.rendererName),n=getComputedStyle(e.getElement(e.container));if(!1===e.options.useFakeFullscreen&&l.IS_IOS&&l.HAS_IOS_FULLSCREEN&&"function"==typeof e.media.originalNode.webkitEnterFullscreen&&e.media.originalNode.canPlayType((0,c.getTypeFromFile)(e.media.getSrc())))e.media.originalNode.webkitEnterFullscreen();else{if((0,u.addClass)(i.default.documentElement,e.options.classPrefix+"fullscreen"),(0,u.addClass)(e.getElement(e.container),e.options.classPrefix+"container-fullscreen"),e.normalHeight=parseFloat(n.height),e.normalWidth=parseFloat(n.width),"native-native"!==e.fullscreenMode&&"plugin-native"!==e.fullscreenMode||(l.requestFullScreen(e.getElement(e.container)),e.isInIframe&&setTimeout(function t(){if(e.isNativeFullScreen){var n=o.default.innerWidth||i.default.documentElement.clientWidth||i.default.body.clientWidth,r=screen.width;Math.abs(r-n)>.002*r?e.exitFullScreen():setTimeout(t,500)}},1e3)),e.getElement(e.container).style.width="100%",e.getElement(e.container).style.height="100%",e.containerSizeTimeout=setTimeout(function(){e.getElement(e.container).style.width="100%",e.getElement(e.container).style.height="100%",e.setControlsSize()},500),t)e.node.style.width="100%",e.node.style.height="100%";else for(var r=e.getElement(e.container).querySelectorAll("embed, object, video"),a=r.length,s=0;s<a;s++)r[s].style.width="100%",r[s].style.height="100%";e.options.setDimensions&&"function"==typeof e.media.setSize&&e.media.setSize(screen.width,screen.height);for(var f=e.getElement(e.layers).children,p=f.length,m=0;m<p;m++)f[m].style.width="100%",f[m].style.height="100%";e.fullscreenBtn&&((0,u.removeClass)(e.fullscreenBtn,e.options.classPrefix+"fullscreen"),(0,u.addClass)(e.fullscreenBtn,e.options.classPrefix+"unfullscreen")),e.setControlsSize(),e.isFullScreen=!0;var h=Math.min(screen.width/e.width,screen.height/e.height),v=e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-text");v&&(v.style.fontSize=100*h+"%",v.style.lineHeight="normal",e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-position").style.bottom=(screen.height-e.normalHeight)/2-e.getElement(e.controls).offsetHeight/2+h+15+"px");var g=(0,d.createEvent)("enteredfullscreen",e.getElement(e.container));e.getElement(e.container).dispatchEvent(g)}},exitFullScreen:function(){var e=this,t=null!==e.media.rendererName&&/(native|html5)/i.test(e.media.rendererName);if(clearTimeout(e.containerSizeTimeout),l.HAS_TRUE_NATIVE_FULLSCREEN&&(l.IS_FULLSCREEN||e.isFullScreen)&&l.cancelFullScreen(),(0,u.removeClass)(i.default.documentElement,e.options.classPrefix+"fullscreen"),(0,u.removeClass)(e.getElement(e.container),e.options.classPrefix+"container-fullscreen"),e.options.setDimensions){if(e.getElement(e.container).style.width=e.normalWidth+"px",e.getElement(e.container).style.height=e.normalHeight+"px",t)e.node.style.width=e.normalWidth+"px",e.node.style.height=e.normalHeight+"px";else for(var n=e.getElement(e.container).querySelectorAll("embed, object, video"),o=n.length,r=0;r<o;r++)n[r].style.width=e.normalWidth+"px",n[r].style.height=e.normalHeight+"px";"function"==typeof e.media.setSize&&e.media.setSize(e.normalWidth,e.normalHeight);for(var a=e.getElement(e.layers).children,s=a.length,c=0;c<s;c++)a[c].style.width=e.normalWidth+"px",a[c].style.height=e.normalHeight+"px"}e.fullscreenBtn&&((0,u.removeClass)(e.fullscreenBtn,e.options.classPrefix+"unfullscreen"),(0,u.addClass)(e.fullscreenBtn,e.options.classPrefix+"fullscreen")),e.setControlsSize(),e.isFullScreen=!1;var f=e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-text");f&&(f.style.fontSize="",f.style.lineHeight="",e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-position").style.bottom="");var p=(0,d.createEvent)("exitedfullscreen",e.getElement(e.container));e.getElement(e.container).dispatchEvent(p)}})},{16:16,2:2,25:25,26:26,27:27,28:28,3:3,5:5}],10:[function(e,t,n){"use strict";var o=d(e(2)),i=e(16),r=d(i),a=d(e(5)),s=e(27),l=e(26);function d(e){return e&&e.__esModule?e:{default:e}}Object.assign(i.config,{playText:null,pauseText:null}),Object.assign(r.default.prototype,{buildplaypause:function(e,t,n,i){var r=this,d=r.options,u=(0,s.isString)(d.playText)?d.playText:a.default.t("mejs.play"),c=(0,s.isString)(d.pauseText)?d.pauseText:a.default.t("mejs.pause"),f=o.default.createElement("div");f.className=r.options.classPrefix+"button "+r.options.classPrefix+"playpause-button "+r.options.classPrefix+"play",f.innerHTML='<button type="button" aria-controls="'+r.id+'" title="'+u+'" aria-label="'+c+'" tabindex="0"></button>',f.addEventListener("click",function(){r.paused?r.play():r.pause()});var p=f.querySelector("button");function m(e){"play"===e?((0,l.removeClass)(f,r.options.classPrefix+"play"),(0,l.removeClass)(f,r.options.classPrefix+"replay"),(0,l.addClass)(f,r.options.classPrefix+"pause"),p.setAttribute("title",c),p.setAttribute("aria-label",c)):((0,l.removeClass)(f,r.options.classPrefix+"pause"),(0,l.removeClass)(f,r.options.classPrefix+"replay"),(0,l.addClass)(f,r.options.classPrefix+"play"),p.setAttribute("title",u),p.setAttribute("aria-label",u))}r.addControlElement(f,"playpause"),m("pse"),i.addEventListener("loadedmetadata",function(){-1===i.rendererName.indexOf("flash")&&m("pse")}),i.addEventListener("play",function(){m("play")}),i.addEventListener("playing",function(){m("play")}),i.addEventListener("pause",function(){m("pse")}),i.addEventListener("ended",function(){e.options.loop||((0,l.removeClass)(f,r.options.classPrefix+"pause"),(0,l.removeClass)(f,r.options.classPrefix+"play"),(0,l.addClass)(f,r.options.classPrefix+"replay"),p.setAttribute("title",u),p.setAttribute("aria-label",u))})}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(e,t,n){"use strict";var o=u(e(2)),i=e(16),r=u(i),a=u(e(5)),s=e(25),l=e(30),d=e(26);function u(e){return e&&e.__esModule?e:{default:e}}Object.assign(i.config,{enableProgressTooltip:!0,useSmoothHover:!0,forceLive:!1}),Object.assign(r.default.prototype,{buildprogress:function(e,t,n,r){var u=0,c=!1,f=!1,p=this,m=e.options.autoRewind,h=e.options.enableProgressTooltip?'<span class="'+p.options.classPrefix+'time-float"><span class="'+p.options.classPrefix+'time-float-current">00:00</span><span class="'+p.options.classPrefix+'time-float-corner"></span></span>':"",v=o.default.createElement("div");v.className=p.options.classPrefix+"time-rail",v.innerHTML='<span class="'+p.options.classPrefix+"time-total "+p.options.classPrefix+'time-slider"><span class="'+p.options.classPrefix+'time-buffering"></span><span class="'+p.options.classPrefix+'time-loaded"></span><span class="'+p.options.classPrefix+'time-current"></span><span class="'+p.options.classPrefix+'time-hovered no-hover"></span><span class="'+p.options.classPrefix+'time-handle"><span class="'+p.options.classPrefix+'time-handle-content"></span></span>'+h+"</span>",p.addControlElement(v,"progress"),p.options.keyActions.push({keys:[37,227],action:function(e){if(!isNaN(e.duration)&&e.duration>0){e.isVideo&&(e.showControls(),e.startControlsTimer()),e.getElement(e.container).querySelector("."+i.config.classPrefix+"time-total").focus();var t=Math.max(e.currentTime-e.options.defaultSeekBackwardInterval(e),0);e.setCurrentTime(t)}}},{keys:[39,228],action:function(e){if(!isNaN(e.duration)&&e.duration>0){e.isVideo&&(e.showControls(),e.startControlsTimer()),e.getElement(e.container).querySelector("."+i.config.classPrefix+"time-total").focus();var t=Math.min(e.currentTime+e.options.defaultSeekForwardInterval(e),e.duration);e.setCurrentTime(t)}}}),p.rail=t.querySelector("."+p.options.classPrefix+"time-rail"),p.total=t.querySelector("."+p.options.classPrefix+"time-total"),p.loaded=t.querySelector("."+p.options.classPrefix+"time-loaded"),p.current=t.querySelector("."+p.options.classPrefix+"time-current"),p.handle=t.querySelector("."+p.options.classPrefix+"time-handle"),p.timefloat=t.querySelector("."+p.options.classPrefix+"time-float"),p.timefloatcurrent=t.querySelector("."+p.options.classPrefix+"time-float-current"),p.slider=t.querySelector("."+p.options.classPrefix+"time-slider"),p.hovered=t.querySelector("."+p.options.classPrefix+"time-hovered"),p.buffer=t.querySelector("."+p.options.classPrefix+"time-buffering"),p.newTime=0,p.forcedHandlePause=!1,p.setTransformStyle=function(e,t){e.style.transform=t,e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t},p.buffer.style.display="none";var g=function(t){var n=getComputedStyle(p.total),o=(0,d.offset)(p.total),i=p.total.offsetWidth,r=void 0!==n.webkitTransform?"webkitTransform":void 0!==n.mozTransform?"mozTransform ":void 0!==n.oTransform?"oTransform":void 0!==n.msTransform?"msTransform":"transform",a="WebKitCSSMatrix"in window?"WebKitCSSMatrix":"MSCSSMatrix"in window?"MSCSSMatrix":"CSSMatrix"in window?"CSSMatrix":void 0,u=0,f=0,m=0,h=void 0;if(h=t.originalEvent&&t.originalEvent.changedTouches?t.originalEvent.changedTouches[0].pageX:t.changedTouches?t.changedTouches[0].pageX:t.pageX,p.getDuration()){if(h<o.left?h=o.left:h>i+o.left&&(h=i+o.left),u=(m=h-o.left)/i,p.newTime=u<=.02?0:u*p.getDuration(),c&&null!==p.getCurrentTime()&&p.newTime.toFixed(4)!==p.getCurrentTime().toFixed(4)&&(p.setCurrentRailHandle(p.newTime),p.updateCurrent(p.newTime)),!s.IS_IOS&&!s.IS_ANDROID){if(m<0&&(m=0),p.options.useSmoothHover&&null!==a&&void 0!==window[a]){var v=new window[a](getComputedStyle(p.handle)[r]).m41,g=m/parseFloat(getComputedStyle(p.total).width)-v/parseFloat(getComputedStyle(p.total).width);p.hovered.style.left=v+"px",p.setTransformStyle(p.hovered,"scaleX("+g+")"),p.hovered.setAttribute("pos",m),g>=0?(0,d.removeClass)(p.hovered,"negative"):(0,d.addClass)(p.hovered,"negative")}if(p.timefloat){var y=p.timefloat.offsetWidth/2,E=mejs.Utils.offset(p.getElement(p.container)),b=getComputedStyle(p.timefloat);f=h-E.left<p.timefloat.offsetWidth?y:h-E.left>=p.getElement(p.container).offsetWidth-y?p.total.offsetWidth-y:m,(0,d.hasClass)(p.getElement(p.container),p.options.classPrefix+"long-video")&&(f+=parseFloat(b.marginLeft)/2+p.timefloat.offsetWidth/2),p.timefloat.style.left=f+"px",p.timefloatcurrent.innerHTML=(0,l.secondsToTimeCode)(p.newTime,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat),p.timefloat.style.display="block"}}}else s.IS_IOS||s.IS_ANDROID||!p.timefloat||(f=p.timefloat.offsetWidth+i>=p.getElement(p.container).offsetWidth?p.timefloat.offsetWidth/2:0,p.timefloat.style.left=f+"px",p.timefloat.style.left=f+"px",p.timefloat.style.display="block")},y=function(){new Date-u>=1e3&&p.play()};p.slider.addEventListener("focus",function(){e.options.autoRewind=!1}),p.slider.addEventListener("blur",function(){e.options.autoRewind=m}),p.slider.addEventListener("keydown",function(t){if(new Date-u>=1e3&&(f=p.paused),p.options.keyActions.length){var n=t.which||t.keyCode||0,o=p.getDuration(),i=e.options.defaultSeekForwardInterval(r),a=e.options.defaultSeekBackwardInterval(r),l=p.getCurrentTime(),d=p.getElement(p.container).querySelector("."+p.options.classPrefix+"volume-slider");if(38===n||40===n){d&&(d.style.display="block"),p.isVideo&&(p.showControls(),p.startControlsTimer());var c=38===n?Math.min(p.volume+.1,1):Math.max(p.volume-.1,0),m=c<=0;return p.setVolume(c),void p.setMuted(m)}switch(d&&(d.style.display="none"),n){case 37:p.getDuration()!==1/0&&(l-=a);break;case 39:p.getDuration()!==1/0&&(l+=i);break;case 36:l=0;break;case 35:l=o;break;case 13:case 32:return void(s.IS_FIREFOX&&(p.paused?p.play():p.pause()));default:return}l=l<0?0:l>=o?o:Math.floor(l),u=new Date,f||e.pause(),l<p.getDuration()&&!f&&setTimeout(y,1100),p.setCurrentTime(l),e.showControls(),t.preventDefault(),t.stopPropagation()}});var E=["mousedown","touchstart"];p.slider.addEventListener("dragstart",function(){return!1});for(var b=0,S=E.length;b<S;b++)p.slider.addEventListener(E[b],function(e){if(p.forcedHandlePause=!1,p.getDuration()!==1/0&&(1===e.which||0===e.which)){p.paused||(p.pause(),p.forcedHandlePause=!0),c=!0,g(e);for(var t=["mouseup","touchend"],n=0,o=t.length;n<o;n++)p.getElement(p.container).addEventListener(t[n],function(e){var t=e.target;(t===p.slider||t.closest("."+p.options.classPrefix+"time-slider"))&&g(e)});p.globalBind("mouseup.dur touchend.dur",function(){c&&null!==p.getCurrentTime()&&p.newTime.toFixed(4)!==p.getCurrentTime().toFixed(4)&&(p.setCurrentTime(p.newTime),p.setCurrentRail(),p.updateCurrent(p.newTime)),p.forcedHandlePause&&(p.slider.focus(),p.play()),p.forcedHandlePause=!1,c=!1,p.timefloat&&(p.timefloat.style.display="none")})}},!(!s.SUPPORT_PASSIVE_EVENT||"touchstart"!==E[b])&&{passive:!0});p.slider.addEventListener("mouseenter",function(e){e.target===p.slider&&p.getDuration()!==1/0&&(p.getElement(p.container).addEventListener("mousemove",function(e){var t=e.target;(t===p.slider||t.closest("."+p.options.classPrefix+"time-slider"))&&g(e)}),!p.timefloat||s.IS_IOS||s.IS_ANDROID||(p.timefloat.style.display="block"),p.hovered&&!s.IS_IOS&&!s.IS_ANDROID&&p.options.useSmoothHover&&(0,d.removeClass)(p.hovered,"no-hover"))}),p.slider.addEventListener("mouseleave",function(){p.getDuration()!==1/0&&(c||(p.timefloat&&(p.timefloat.style.display="none"),p.hovered&&p.options.useSmoothHover&&(0,d.addClass)(p.hovered,"no-hover")))}),p.broadcastCallback=function(n){var i,s,d,u,c=t.querySelector("."+p.options.classPrefix+"broadcast");if(p.options.forceLive||p.getDuration()===1/0){if(!c||p.options.forceLive){var f=o.default.createElement("span");f.className=p.options.classPrefix+"broadcast",f.innerText=a.default.t("mejs.live-broadcast"),p.slider.style.display="none",p.rail.appendChild(f)}}else c&&(p.slider.style.display="",c.remove()),e.setProgressRail(n),p.forcedHandlePause||e.setCurrentRail(n),i=p.getCurrentTime(),s=a.default.t("mejs.time-slider"),d=(0,l.secondsToTimeCode)(i,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat),u=p.getDuration(),p.slider.setAttribute("role","slider"),p.slider.tabIndex=0,r.paused?(p.slider.setAttribute("aria-label",s),p.slider.setAttribute("aria-valuemin",0),p.slider.setAttribute("aria-valuemax",u),p.slider.setAttribute("aria-valuenow",i),p.slider.setAttribute("aria-valuetext",d)):(p.slider.removeAttribute("aria-label"),p.slider.removeAttribute("aria-valuemin"),p.slider.removeAttribute("aria-valuemax"),p.slider.removeAttribute("aria-valuenow"),p.slider.removeAttribute("aria-valuetext"))},r.addEventListener("progress",p.broadcastCallback),r.addEventListener("timeupdate",p.broadcastCallback),r.addEventListener("play",function(){p.buffer.style.display="none"}),r.addEventListener("playing",function(){p.buffer.style.display="none"}),r.addEventListener("seeking",function(){p.buffer.style.display=""}),r.addEventListener("seeked",function(){p.buffer.style.display="none"}),r.addEventListener("pause",function(){p.buffer.style.display="none"}),r.addEventListener("waiting",function(){p.buffer.style.display=""}),r.addEventListener("loadeddata",function(){p.buffer.style.display=""}),r.addEventListener("canplay",function(){p.buffer.style.display="none"}),r.addEventListener("error",function(){p.buffer.style.display="none"}),p.getElement(p.container).addEventListener("controlsresize",function(t){p.getDuration()!==1/0&&(e.setProgressRail(t),p.forcedHandlePause||e.setCurrentRail(t))})},cleanprogress:function(e,t,n,o){o.removeEventListener("progress",e.broadcastCallback),o.removeEventListener("timeupdate",e.broadcastCallback),e.rail&&e.rail.remove()},setProgressRail:function(e){var t=this,n=void 0!==e?e.detail.target||e.target:t.media,o=null;n&&n.buffered&&n.buffered.length>0&&n.buffered.end&&t.getDuration()?o=n.buffered.end(n.buffered.length-1)/t.getDuration():n&&void 0!==n.bytesTotal&&n.bytesTotal>0&&void 0!==n.bufferedBytes?o=n.bufferedBytes/n.bytesTotal:e&&e.lengthComputable&&0!==e.total&&(o=e.loaded/e.total),null!==o&&(o=Math.min(1,Math.max(0,o)),t.loaded&&t.setTransformStyle(t.loaded,"scaleX("+o+")"))},setCurrentRailHandle:function(e){this.setCurrentRailMain(this,e)},setCurrentRail:function(){this.setCurrentRailMain(this)},setCurrentRailMain:function(e,t){if(void 0!==e.getCurrentTime()&&e.getDuration()){var n=void 0===t?e.getCurrentTime():t;if(e.total&&e.handle){var o=parseFloat(getComputedStyle(e.total).width),i=Math.round(o*n/e.getDuration()),r=i-Math.round(e.handle.offsetWidth/2);if(r=r<0?0:r,e.setTransformStyle(e.current,"scaleX("+i/o+")"),e.setTransformStyle(e.handle,"translateX("+r+"px)"),e.options.useSmoothHover&&!(0,d.hasClass)(e.hovered,"no-hover")){var a=parseInt(e.hovered.getAttribute("pos"),10),s=(a=isNaN(a)?0:a)/o-r/o;e.hovered.style.left=r+"px",e.setTransformStyle(e.hovered,"scaleX("+s+")"),s>=0?(0,d.removeClass)(e.hovered,"negative"):(0,d.addClass)(e.hovered,"negative")}}}}})},{16:16,2:2,25:25,26:26,30:30,5:5}],12:[function(e,t,n){"use strict";var o=l(e(2)),i=e(16),r=l(i),a=e(30),s=e(26);function l(e){return e&&e.__esModule?e:{default:e}}Object.assign(i.config,{duration:0,timeAndDurationSeparator:"<span> | </span>"}),Object.assign(r.default.prototype,{buildcurrent:function(e,t,n,i){var r=this,s=o.default.createElement("div");s.className=r.options.classPrefix+"time",s.setAttribute("role","timer"),s.setAttribute("aria-live","off"),s.innerHTML='<span class="'+r.options.classPrefix+'currenttime">'+(0,a.secondsToTimeCode)(0,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat)+"</span>",r.addControlElement(s,"current"),e.updateCurrent(),r.updateTimeCallback=function(){r.controlsAreVisible&&e.updateCurrent()},i.addEventListener("timeupdate",r.updateTimeCallback)},cleancurrent:function(e,t,n,o){o.removeEventListener("timeupdate",e.updateTimeCallback)},buildduration:function(e,t,n,i){var r=this;if(t.lastChild.querySelector("."+r.options.classPrefix+"currenttime"))t.querySelector("."+r.options.classPrefix+"time").innerHTML+=r.options.timeAndDurationSeparator+'<span class="'+r.options.classPrefix+'duration">'+(0,a.secondsToTimeCode)(r.options.duration,r.options.alwaysShowHours,r.options.showTimecodeFrameCount,r.options.framesPerSecond,r.options.secondsDecimalLength,r.options.timeFormat)+"</span>";else{t.querySelector("."+r.options.classPrefix+"currenttime")&&(0,s.addClass)(t.querySelector("."+r.options.classPrefix+"currenttime").parentNode,r.options.classPrefix+"currenttime-container");var l=o.default.createElement("div");l.className=r.options.classPrefix+"time "+r.options.classPrefix+"duration-container",l.innerHTML='<span class="'+r.options.classPrefix+'duration">'+(0,a.secondsToTimeCode)(r.options.duration,r.options.alwaysShowHours,r.options.showTimecodeFrameCount,r.options.framesPerSecond,r.options.secondsDecimalLength,r.options.timeFormat)+"</span>",r.addControlElement(l,"duration")}r.updateDurationCallback=function(){r.controlsAreVisible&&e.updateDuration()},i.addEventListener("timeupdate",r.updateDurationCallback)},cleanduration:function(e,t,n,o){o.removeEventListener("timeupdate",e.updateDurationCallback)},updateCurrent:function(){var e=this,t=e.getCurrentTime();isNaN(t)&&(t=0);var n=(0,a.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);n.length>5?(0,s.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,s.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime")&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime").innerText=n)},updateDuration:function(){var e=this,t=e.getDuration();(isNaN(t)||t===1/0||t<0)&&(e.media.duration=e.options.duration=t=0),e.options.duration>0&&(t=e.options.duration);var n=(0,a.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);n.length>5?(0,s.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,s.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration")&&t>0&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration").innerHTML=n)}})},{16:16,2:2,26:26,30:30}],13:[function(e,t,n){"use strict";var o=c(e(2)),i=c(e(7)),r=c(e(5)),a=e(16),s=c(a),l=e(30),d=e(27),u=e(26);function c(e){return e&&e.__esModule?e:{default:e}}Object.assign(a.config,{startLanguage:"",tracksText:null,chaptersText:null,tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),Object.assign(s.default.prototype,{hasChapters:!1,buildtracks:function(e,t,n,i){if(this.findTracks(),e.tracks.length||e.trackFiles&&0!==!e.trackFiles.length){var a=this,s=a.options.tracksAriaLive?' role="log" aria-live="assertive" aria-atomic="false"':"",l=(0,d.isString)(a.options.tracksText)?a.options.tracksText:r.default.t("mejs.captions-subtitles"),c=(0,d.isString)(a.options.chaptersText)?a.options.chaptersText:r.default.t("mejs.captions-chapters"),f=null===e.trackFiles?e.tracks.length:e.trackFiles.length;if(a.domNode.textTracks)for(var p=a.domNode.textTracks.length-1;p>=0;p--)a.domNode.textTracks[p].mode="hidden";a.cleartracks(e),e.captions=o.default.createElement("div"),e.captions.className=a.options.classPrefix+"captions-layer "+a.options.classPrefix+"layer",e.captions.innerHTML='<div class="'+a.options.classPrefix+"captions-position "+a.options.classPrefix+'captions-position-hover"'+s+'><span class="'+a.options.classPrefix+'captions-text"></span></div>',e.captions.style.display="none",n.insertBefore(e.captions,n.firstChild),e.captionsText=e.captions.querySelector("."+a.options.classPrefix+"captions-text"),e.captionsButton=o.default.createElement("div"),e.captionsButton.className=a.options.classPrefix+"button "+a.options.classPrefix+"captions-button",e.captionsButton.innerHTML='<button type="button" aria-controls="'+a.id+'" title="'+l+'" aria-label="'+l+'" tabindex="0"></button><div class="'+a.options.classPrefix+"captions-selector "+a.options.classPrefix+'offscreen"><ul class="'+a.options.classPrefix+'captions-selector-list"><li class="'+a.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+a.options.classPrefix+'captions-selector-input" name="'+e.id+'_captions" id="'+e.id+'_captions_none" value="none" checked disabled><label class="'+a.options.classPrefix+"captions-selector-label "+a.options.classPrefix+'captions-selected" for="'+e.id+'_captions_none">'+r.default.t("mejs.none")+"</label></li></ul></div>",a.addControlElement(e.captionsButton,"tracks"),e.captionsButton.querySelector("."+a.options.classPrefix+"captions-selector-input").disabled=!1,e.chaptersButton=o.default.createElement("div"),e.chaptersButton.className=a.options.classPrefix+"button "+a.options.classPrefix+"chapters-button",e.chaptersButton.innerHTML='<button type="button" aria-controls="'+a.id+'" title="'+c+'" aria-label="'+c+'" tabindex="0"></button><div class="'+a.options.classPrefix+"chapters-selector "+a.options.classPrefix+'offscreen"><ul class="'+a.options.classPrefix+'chapters-selector-list"></ul></div>';for(var m=0,h=0;h<f;h++){var v=e.tracks[h].kind;e.tracks[h].src.trim()&&("subtitles"===v||"captions"===v?m++:"chapters"!==v||t.querySelector("."+a.options.classPrefix+"chapter-selector")||e.captionsButton.parentNode.insertBefore(e.chaptersButton,e.captionsButton))}e.trackToLoad=-1,e.selectedTrack=null,e.isLoadingTrack=!1;for(var g=0;g<f;g++){var y=e.tracks[g].kind;!e.tracks[g].src.trim()||"subtitles"!==y&&"captions"!==y||e.addTrackButton(e.tracks[g].trackId,e.tracks[g].srclang,e.tracks[g].label)}e.loadNextTrack();var E=["mouseenter","focusin"],b=["mouseleave","focusout"];if(a.options.toggleCaptionsButtonWhenOnlyOne&&1===m)e.captionsButton.addEventListener("click",function(t){var n="none";null===e.selectedTrack&&(n=e.tracks[0].trackId);var o=t.keyCode||t.which;e.setTrack(n,void 0!==o)});else{for(var S=e.captionsButton.querySelectorAll("."+a.options.classPrefix+"captions-selector-label"),x=e.captionsButton.querySelectorAll("input[type=radio]"),w=0,P=E.length;w<P;w++)e.captionsButton.addEventListener(E[w],function(){(0,u.removeClass)(this.querySelector("."+a.options.classPrefix+"captions-selector"),a.options.classPrefix+"offscreen")});for(var T=0,C=b.length;T<C;T++)e.captionsButton.addEventListener(b[T],function(){(0,u.addClass)(this.querySelector("."+a.options.classPrefix+"captions-selector"),a.options.classPrefix+"offscreen")});for(var k=0,_=x.length;k<_;k++)x[k].addEventListener("click",function(t){var n=t.keyCode||t.which;e.setTrack(this.value,void 0!==n)});for(var N=0,A=S.length;N<A;N++)S[N].addEventListener("click",function(e){var t=(0,u.siblings)(this,function(e){return"INPUT"===e.tagName})[0],n=(0,d.createEvent)("click",t);t.dispatchEvent(n),e.preventDefault()});e.captionsButton.addEventListener("keydown",function(e){e.stopPropagation()})}for(var L=0,F=E.length;L<F;L++)e.chaptersButton.addEventListener(E[L],function(){this.querySelector("."+a.options.classPrefix+"chapters-selector-list").children.length&&(0,u.removeClass)(this.querySelector("."+a.options.classPrefix+"chapters-selector"),a.options.classPrefix+"offscreen")});for(var j=0,I=b.length;j<I;j++)e.chaptersButton.addEventListener(b[j],function(){(0,u.addClass)(this.querySelector("."+a.options.classPrefix+"chapters-selector"),a.options.classPrefix+"offscreen")});e.chaptersButton.addEventListener("keydown",function(e){e.stopPropagation()}),e.options.alwaysShowControls?(0,u.addClass)(e.getElement(e.container).querySelector("."+a.options.classPrefix+"captions-position"),a.options.classPrefix+"captions-position-hover"):(e.getElement(e.container).addEventListener("controlsshown",function(){(0,u.addClass)(e.getElement(e.container).querySelector("."+a.options.classPrefix+"captions-position"),a.options.classPrefix+"captions-position-hover")}),e.getElement(e.container).addEventListener("controlshidden",function(){i.paused||(0,u.removeClass)(e.getElement(e.container).querySelector("."+a.options.classPrefix+"captions-position"),a.options.classPrefix+"captions-position-hover")})),i.addEventListener("timeupdate",function(){e.displayCaptions()}),""!==e.options.slidesSelector&&(e.slidesContainer=o.default.querySelectorAll(e.options.slidesSelector),i.addEventListener("timeupdate",function(){e.displaySlides()}))}},cleartracks:function(e){e&&(e.captions&&e.captions.remove(),e.chapters&&e.chapters.remove(),e.captionsText&&e.captionsText.remove(),e.captionsButton&&e.captionsButton.remove(),e.chaptersButton&&e.chaptersButton.remove())},rebuildtracks:function(){var e=this;e.findTracks(),e.buildtracks(e,e.getElement(e.controls),e.getElement(e.layers),e.media)},findTracks:function(){var e=this,t=null===e.trackFiles?e.node.querySelectorAll("track"):e.trackFiles,n=t.length;e.tracks=[];for(var o=0;o<n;o++){var i=t[o],r=i.getAttribute("srclang").toLowerCase()||"",a=e.id+"_track_"+o+"_"+i.getAttribute("kind")+"_"+r;e.tracks.push({trackId:a,srclang:r,src:i.getAttribute("src"),kind:i.getAttribute("kind"),label:i.getAttribute("label")||"",entries:[],isLoaded:!1})}},setTrack:function(e,t){for(var n=this,o=n.captionsButton.querySelectorAll('input[type="radio"]'),i=n.captionsButton.querySelectorAll("."+n.options.classPrefix+"captions-selected"),r=n.captionsButton.querySelector('input[value="'+e+'"]'),a=0,s=o.length;a<s;a++)o[a].checked=!1;for(var l=0,c=i.length;l<c;l++)(0,u.removeClass)(i[l],n.options.classPrefix+"captions-selected");r.checked=!0;for(var f=(0,u.siblings)(r,function(e){return(0,u.hasClass)(e,n.options.classPrefix+"captions-selector-label")}),p=0,m=f.length;p<m;p++)(0,u.addClass)(f[p],n.options.classPrefix+"captions-selected");if("none"===e)n.selectedTrack=null,(0,u.removeClass)(n.captionsButton,n.options.classPrefix+"captions-enabled");else for(var h=0,v=n.tracks.length;h<v;h++){var g=n.tracks[h];if(g.trackId===e){null===n.selectedTrack&&(0,u.addClass)(n.captionsButton,n.options.classPrefix+"captions-enabled"),n.selectedTrack=g,n.captions.setAttribute("lang",n.selectedTrack.srclang),n.displayCaptions();break}}var y=(0,d.createEvent)("captionschange",n.media);y.detail.caption=n.selectedTrack,n.media.dispatchEvent(y),t||setTimeout(function(){n.getElement(n.container).focus()},500)},loadNextTrack:function(){var e=this;e.trackToLoad++,e.trackToLoad<e.tracks.length?(e.isLoadingTrack=!0,e.loadTrack(e.trackToLoad)):(e.isLoadingTrack=!1,e.checkForTracks())},loadTrack:function(e){var t=this,n=t.tracks[e];void 0===n||void 0===n.src&&""===n.src||(0,u.ajax)(n.src,"text",function(e){n.entries="string"==typeof e&&/<tt\s+xml/gi.exec(e)?i.default.TrackFormatParser.dfxp.parse(e):i.default.TrackFormatParser.webvtt.parse(e),n.isLoaded=!0,t.enableTrackButton(n),t.loadNextTrack(),"slides"===n.kind?t.setupSlides(n):"chapters"!==n.kind||t.hasChapters||(t.drawChapters(n),t.hasChapters=!0)},function(){t.removeTrackButton(n.trackId),t.loadNextTrack()})},enableTrackButton:function(e){var t=this,n=e.srclang,a=o.default.getElementById(""+e.trackId);if(a){var s=e.label;""===s&&(s=r.default.t(i.default.language.codes[n])||n),a.disabled=!1;for(var l=(0,u.siblings)(a,function(e){return(0,u.hasClass)(e,t.options.classPrefix+"captions-selector-label")}),c=0,f=l.length;c<f;c++)l[c].innerHTML=s;if(t.options.startLanguage===n){a.checked=!0;var p=(0,d.createEvent)("click",a);a.dispatchEvent(p)}}},removeTrackButton:function(e){var t=o.default.getElementById(""+e);if(t){var n=t.closest("li");n&&n.remove()}},addTrackButton:function(e,t,n){var o=this;""===n&&(n=r.default.t(i.default.language.codes[t])||t),o.captionsButton.querySelector("ul").innerHTML+='<li class="'+o.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+o.options.classPrefix+'captions-selector-input" name="'+o.id+'_captions" id="'+e+'" value="'+e+'" disabled><label class="'+o.options.classPrefix+'captions-selector-label"for="'+e+'">'+n+" (loading)</label></li>"},checkForTracks:function(){var e=this,t=!1;if(e.options.hideCaptionsButtonWhenEmpty){for(var n=0,o=e.tracks.length;n<o;n++){var i=e.tracks[n].kind;if(("subtitles"===i||"captions"===i)&&e.tracks[n].isLoaded){t=!0;break}}e.captionsButton.style.display=t?"":"none",e.setControlsSize()}},displayCaptions:function(){if(void 0!==this.tracks){var e=this,t=e.selectedTrack;if(null!==t&&t.isLoaded){var n=e.searchTrackPosition(t.entries,e.media.currentTime);if(n>-1)return e.captionsText.innerHTML=function(e){var t=o.default.createElement("div");t.innerHTML=e;for(var n=t.getElementsByTagName("script"),i=n.length;i--;)n[i].remove();for(var r=t.getElementsByTagName("*"),a=0,s=r.length;a<s;a++)for(var l=r[a].attributes,d=Array.prototype.slice.call(l),u=0,c=d.length;u<c;u++)d[u].name.startsWith("on")||d[u].value.startsWith("javascript")?r[a].remove():"style"===d[u].name&&r[a].removeAttribute(d[u].name);return t.innerHTML}(t.entries[n].text),e.captionsText.className=e.options.classPrefix+"captions-text "+(t.entries[n].identifier||""),e.captions.style.display="",void(e.captions.style.height="0px");e.captions.style.display="none"}else e.captions.style.display="none"}},setupSlides:function(e){var t=this;t.slides=e,t.slides.entries.imgs=[t.slides.entries.length],t.showSlide(0)},showSlide:function(e){var t=this,n=this;if(void 0!==n.tracks&&void 0!==n.slidesContainer){var i=n.slides.entries[e].text,r=n.slides.entries[e].imgs;if(void 0===r||void 0===r.fadeIn){var a=o.default.createElement("img");a.src=i,a.addEventListener("load",function(){var e=t,o=(0,u.siblings)(e,function(e){return o(e)});e.style.display="none",n.slidesContainer.innerHTML+=e.innerHTML,(0,u.fadeIn)(n.slidesContainer.querySelector(a));for(var i=0,r=o.length;i<r;i++)(0,u.fadeOut)(o[i],400)}),n.slides.entries[e].imgs=r=a}else if(!(0,u.visible)(r)){var s=(0,u.siblings)(self,function(e){return s(e)});(0,u.fadeIn)(n.slidesContainer.querySelector(r));for(var l=0,d=s.length;l<d;l++)(0,u.fadeOut)(s[l])}}},displaySlides:function(){var e=this;if(void 0!==this.slides){var t=e.slides,n=e.searchTrackPosition(t.entries,e.media.currentTime);n>-1&&e.showSlide(n)}},drawChapters:function(e){var t=this,n=e.entries.length;if(n){t.chaptersButton.querySelector("ul").innerHTML="";for(var o=0;o<n;o++)t.chaptersButton.querySelector("ul").innerHTML+='<li class="'+t.options.classPrefix+'chapters-selector-list-item" role="menuitemcheckbox" aria-live="polite" aria-disabled="false" aria-checked="false"><input type="radio" class="'+t.options.classPrefix+'captions-selector-input" name="'+t.id+'_chapters" id="'+t.id+"_chapters_"+o+'" value="'+e.entries[o].start+'" disabled><label class="'+t.options.classPrefix+'chapters-selector-label"for="'+t.id+"_chapters_"+o+'">'+e.entries[o].text+"</label></li>";for(var i=t.chaptersButton.querySelectorAll('input[type="radio"]'),r=t.chaptersButton.querySelectorAll("."+t.options.classPrefix+"chapters-selector-label"),a=0,s=i.length;a<s;a++)i[a].disabled=!1,i[a].checked=!1,i[a].addEventListener("click",function(e){var n=t.chaptersButton.querySelectorAll("li"),o=(0,u.siblings)(this,function(e){return(0,u.hasClass)(e,t.options.classPrefix+"chapters-selector-label")})[0];this.checked=!0,this.parentNode.setAttribute("aria-checked",!0),(0,u.addClass)(o,t.options.classPrefix+"chapters-selected"),(0,u.removeClass)(t.chaptersButton.querySelector("."+t.options.classPrefix+"chapters-selected"),t.options.classPrefix+"chapters-selected");for(var i=0,r=n.length;i<r;i++)n[i].setAttribute("aria-checked",!1);void 0===(e.keyCode||e.which)&&setTimeout(function(){t.getElement(t.container).focus()},500),t.media.setCurrentTime(parseFloat(this.value)),t.media.paused&&t.media.play()});for(var l=0,c=r.length;l<c;l++)r[l].addEventListener("click",function(e){var t=(0,u.siblings)(this,function(e){return"INPUT"===e.tagName})[0],n=(0,d.createEvent)("click",t);t.dispatchEvent(n),e.preventDefault()})}},searchTrackPosition:function(e,t){for(var n=0,o=e.length-1,i=void 0,r=void 0,a=void 0;n<=o;){if(r=e[i=n+o>>1].start,a=e[i].stop,t>=r&&t<a)return i;r<t?n=i+1:r>t&&(o=i-1)}return-1}}),i.default.language={codes:{af:"mejs.afrikaans",sq:"mejs.albanian",ar:"mejs.arabic",be:"mejs.belarusian",bg:"mejs.bulgarian",ca:"mejs.catalan",zh:"mejs.chinese","zh-cn":"mejs.chinese-simplified","zh-tw":"mejs.chines-traditional",hr:"mejs.croatian",cs:"mejs.czech",da:"mejs.danish",nl:"mejs.dutch",en:"mejs.english",et:"mejs.estonian",fl:"mejs.filipino",fi:"mejs.finnish",fr:"mejs.french",gl:"mejs.galician",de:"mejs.german",el:"mejs.greek",ht:"mejs.haitian-creole",iw:"mejs.hebrew",hi:"mejs.hindi",hu:"mejs.hungarian",is:"mejs.icelandic",id:"mejs.indonesian",ga:"mejs.irish",it:"mejs.italian",ja:"mejs.japanese",ko:"mejs.korean",lv:"mejs.latvian",lt:"mejs.lithuanian",mk:"mejs.macedonian",ms:"mejs.malay",mt:"mejs.maltese",no:"mejs.norwegian",fa:"mejs.persian",pl:"mejs.polish",pt:"mejs.portuguese",ro:"mejs.romanian",ru:"mejs.russian",sr:"mejs.serbian",sk:"mejs.slovak",sl:"mejs.slovenian",es:"mejs.spanish",sw:"mejs.swahili",sv:"mejs.swedish",tl:"mejs.tagalog",th:"mejs.thai",tr:"mejs.turkish",uk:"mejs.ukrainian",vi:"mejs.vietnamese",cy:"mejs.welsh",yi:"mejs.yiddish"}},i.default.TrackFormatParser={webvtt:{pattern:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(e){for(var t=e.split(/\r?\n/),n=[],o=void 0,i=void 0,r=void 0,a=0,s=t.length;a<s;a++){if((o=this.pattern.exec(t[a]))&&a<t.length){for(a-1>=0&&""!==t[a-1]&&(r=t[a-1]),i=t[++a],a++;""!==t[a]&&a<t.length;)i=i+"\n"+t[a],a++;i=i.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),n.push({identifier:r,start:0===(0,l.convertSMPTEtoSeconds)(o[1])?.2:(0,l.convertSMPTEtoSeconds)(o[1]),stop:(0,l.convertSMPTEtoSeconds)(o[3]),text:i,settings:o[5]})}r=""}return n}},dfxp:{parse:function(e){var t=(e=$(e).filter("tt")).firstChild,n=t.querySelectorAll("p"),o=e.getElementById(""+t.attr("style")),i=[],r=void 0;if(o.length){o.removeAttribute("id");var a=o.attributes;if(a.length){r={};for(var s=0,d=a.length;s<d;s++)r[a[s].name.split(":")[1]]=a[s].value}}for(var u=0,c=n.length;u<c;u++){var f=void 0,p={start:null,stop:null,style:null,text:null};if(n.eq(u).attr("begin")&&(p.start=(0,l.convertSMPTEtoSeconds)(n.eq(u).attr("begin"))),!p.start&&n.eq(u-1).attr("end")&&(p.start=(0,l.convertSMPTEtoSeconds)(n.eq(u-1).attr("end"))),n.eq(u).attr("end")&&(p.stop=(0,l.convertSMPTEtoSeconds)(n.eq(u).attr("end"))),!p.stop&&n.eq(u+1).attr("begin")&&(p.stop=(0,l.convertSMPTEtoSeconds)(n.eq(u+1).attr("begin"))),r)for(var m in f="",r)f+=m+":"+r[m]+";";f&&(p.style=f),0===p.start&&(p.start=.2),p.text=n.eq(u).innerHTML.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),i.push(p)}return i}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(e,t,n){"use strict";var o=u(e(2)),i=e(16),r=u(i),a=u(e(5)),s=e(25),l=e(27),d=e(26);function u(e){return e&&e.__esModule?e:{default:e}}Object.assign(i.config,{muteText:null,unmuteText:null,allyVolumeControlText:null,hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical",startVolume:.8}),Object.assign(r.default.prototype,{buildvolume:function(e,t,n,r){if(!s.IS_ANDROID&&!s.IS_IOS||!this.options.hideVolumeOnTouchDevices){var u=this,c=u.isVideo?u.options.videoVolume:u.options.audioVolume,f=(0,l.isString)(u.options.muteText)?u.options.muteText:a.default.t("mejs.mute"),p=(0,l.isString)(u.options.unmuteText)?u.options.unmuteText:a.default.t("mejs.unmute"),m=(0,l.isString)(u.options.allyVolumeControlText)?u.options.allyVolumeControlText:a.default.t("mejs.volume-help-text"),h=o.default.createElement("div");if(h.className=u.options.classPrefix+"button "+u.options.classPrefix+"volume-button "+u.options.classPrefix+"mute",h.innerHTML="horizontal"===c?'<button type="button" aria-controls="'+u.id+'" title="'+f+'" aria-label="'+f+'" tabindex="0"></button>':'<button type="button" aria-controls="'+u.id+'" title="'+f+'" aria-label="'+f+'" tabindex="0"></button><a href="javascript:void(0);" class="'+u.options.classPrefix+'volume-slider" aria-label="'+a.default.t("mejs.volume-slider")+'" aria-valuemin="0" aria-valuemax="100" role="slider" aria-orientation="vertical"><span class="'+u.options.classPrefix+'offscreen">'+m+'</span><div class="'+u.options.classPrefix+'volume-total"><div class="'+u.options.classPrefix+'volume-current"></div><div class="'+u.options.classPrefix+'volume-handle"></div></div></a>',u.addControlElement(h,"volume"),u.options.keyActions.push({keys:[38],action:function(e){var t=e.getElement(e.container).querySelector("."+i.config.classPrefix+"volume-slider");(t||e.getElement(e.container).querySelector("."+i.config.classPrefix+"volume-slider").matches(":focus"))&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var n=Math.min(e.volume+.1,1);e.setVolume(n),n>0&&e.setMuted(!1)}},{keys:[40],action:function(e){var t=e.getElement(e.container).querySelector("."+i.config.classPrefix+"volume-slider");t&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var n=Math.max(e.volume-.1,0);e.setVolume(n),n<=.1&&e.setMuted(!0)}},{keys:[77],action:function(e){e.getElement(e.container).querySelector("."+i.config.classPrefix+"volume-slider").style.display="block",e.isVideo&&(e.showControls(),e.startControlsTimer()),e.media.muted?e.setMuted(!1):e.setMuted(!0)}}),"horizontal"===c){var v=o.default.createElement("a");v.className=u.options.classPrefix+"horizontal-volume-slider",v.href="javascript:void(0);",v.setAttribute("aria-label",a.default.t("mejs.volume-slider")),v.setAttribute("aria-valuemin",0),v.setAttribute("aria-valuemax",100),v.setAttribute("role","slider"),v.innerHTML+='<span class="'+u.options.classPrefix+'offscreen">'+m+'</span><div class="'+u.options.classPrefix+'horizontal-volume-total"><div class="'+u.options.classPrefix+'horizontal-volume-current"></div><div class="'+u.options.classPrefix+'horizontal-volume-handle"></div></div>',h.parentNode.insertBefore(v,h.nextSibling)}var g=!1,y=!1,E=!1,b="vertical"===c?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-slider"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-slider"),S="vertical"===c?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-total"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-total"),x="vertical"===c?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-current"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-current"),w="vertical"===c?u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-handle"):u.getElement(u.container).querySelector("."+u.options.classPrefix+"horizontal-volume-handle"),P=function(e){if(null!==e&&!isNaN(e)&&void 0!==e){if(e=Math.max(0,e),0===(e=Math.min(e,1))){(0,d.removeClass)(h,u.options.classPrefix+"mute"),(0,d.addClass)(h,u.options.classPrefix+"unmute");var t=h.firstElementChild;t.setAttribute("title",p),t.setAttribute("aria-label",p)}else{(0,d.removeClass)(h,u.options.classPrefix+"unmute"),(0,d.addClass)(h,u.options.classPrefix+"mute");var n=h.firstElementChild;n.setAttribute("title",f),n.setAttribute("aria-label",f)}var o=100*e+"%",i=getComputedStyle(w);"vertical"===c?(x.style.bottom=0,x.style.height=o,w.style.bottom=o,w.style.marginBottom=-parseFloat(i.height)/2+"px"):(x.style.left=0,x.style.width=o,w.style.left=o,w.style.marginLeft=-parseFloat(i.width)/2+"px")}},T=function(e){var t=(0,d.offset)(S),n=getComputedStyle(S);E=!0;var o=null;if("vertical"===c){var i=parseFloat(n.height);if(o=(i-(e.pageY-t.top))/i,0===t.top||0===t.left)return}else{var r=parseFloat(n.width);o=(e.pageX-t.left)/r}o=Math.max(0,o),o=Math.min(o,1),P(o),u.setMuted(0===o),u.setVolume(o),e.preventDefault(),e.stopPropagation()},C=function(){u.muted?(P(0),(0,d.removeClass)(h,u.options.classPrefix+"mute"),(0,d.addClass)(h,u.options.classPrefix+"unmute")):(P(r.volume),(0,d.removeClass)(h,u.options.classPrefix+"unmute"),(0,d.addClass)(h,u.options.classPrefix+"mute"))};e.getElement(e.container).addEventListener("keydown",function(e){!!e.target.closest("."+u.options.classPrefix+"container")||"vertical"!==c||(b.style.display="none")}),h.addEventListener("mouseenter",function(e){e.target===h&&(b.style.display="block",y=!0,e.preventDefault(),e.stopPropagation())}),h.addEventListener("focusin",function(){b.style.display="block",y=!0}),h.addEventListener("focusout",function(e){e.relatedTarget&&(!e.relatedTarget||e.relatedTarget.matches("."+u.options.classPrefix+"volume-slider"))||"vertical"!==c||(b.style.display="none")}),h.addEventListener("mouseleave",function(){y=!1,g||"vertical"!==c||(b.style.display="none")}),h.addEventListener("focusout",function(){y=!1}),h.addEventListener("keydown",function(e){if(u.options.keyActions.length){var t=e.which||e.keyCode||0,n=r.volume;switch(t){case 38:n=Math.min(n+.1,1);break;case 40:n=Math.max(0,n-.1);break;default:return!0}g=!1,P(n),r.setVolume(n),e.preventDefault(),e.stopPropagation()}}),h.querySelector("button").addEventListener("click",function(){r.setMuted(!r.muted);var e=(0,l.createEvent)("volumechange",r);r.dispatchEvent(e)}),b.addEventListener("dragstart",function(){return!1}),b.addEventListener("mouseover",function(){y=!0}),b.addEventListener("focusin",function(){b.style.display="block",y=!0}),b.addEventListener("focusout",function(){y=!1,g||"vertical"!==c||(b.style.display="none")}),b.addEventListener("mousedown",function(e){T(e),u.globalBind("mousemove.vol",function(e){var t=e.target;g&&(t===b||t.closest("vertical"===c?"."+u.options.classPrefix+"volume-slider":"."+u.options.classPrefix+"horizontal-volume-slider"))&&T(e)}),u.globalBind("mouseup.vol",function(){g=!1,y||"vertical"!==c||(b.style.display="none")}),g=!0,e.preventDefault(),e.stopPropagation()}),r.addEventListener("volumechange",function(e){var t;g||C(),t=Math.floor(100*r.volume),b.setAttribute("aria-valuenow",t),b.setAttribute("aria-valuetext",t+"%")});var k=!1;r.addEventListener("rendererready",function(){E||setTimeout(function(){k=!0,(0===e.options.startVolume||r.originalNode.muted)&&(r.setMuted(!0),e.options.startVolume=0),r.setVolume(e.options.startVolume),u.setControlsSize()},250)}),r.addEventListener("loadedmetadata",function(){setTimeout(function(){E||k||((0===e.options.startVolume||r.originalNode.muted)&&r.setMuted(!0),r.setVolume(e.options.startVolume),u.setControlsSize()),k=!1},250)}),(0===e.options.startVolume||r.originalNode.muted)&&(r.setMuted(!0),e.options.startVolume=0,C()),u.getElement(u.container).addEventListener("controlsresize",function(){C()})}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.config=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=v(e(3)),a=v(e(2)),s=v(e(7)),l=v(e(6)),d=v(e(17)),u=v(e(5)),c=e(25),f=e(27),p=e(30),m=e(28),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(e(26));function v(e){return e&&e.__esModule?e:{default:e}}s.default.mepIndex=0,s.default.players={};var g=n.config={poster:"",showPosterWhenEnded:!1,showPosterWhenPaused:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:40,defaultSeekBackwardInterval:function(e){return.05*e.getDuration()},defaultSeekForwardInterval:function(e){return.05*e.getDuration()},setDimensions:!0,audioWidth:-1,audioHeight:-1,loop:!1,autoRewind:!0,enableAutosize:!0,timeFormat:"",alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,hideVideoControlsOnPause:!1,clickToPlayPause:!0,controlsTimeoutDefault:1500,controlsTimeoutMouseEnter:2500,controlsTimeoutMouseLeave:1e3,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],useDefaultControls:!1,isVideo:!0,stretching:"auto",classPrefix:"mejs__",enableKeyboard:!0,pauseOtherPlayers:!0,secondsDecimalLength:0,customError:null,keyActions:[{keys:[32,179],action:function(e){c.IS_FIREFOX||(e.paused||e.ended?e.play():e.pause())}}]};s.default.MepDefaults=g;var y=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var o=this,i="string"==typeof t?a.default.getElementById(t):t;if(!(o instanceof e))return new e(i,n);if(o.node=o.media=i,o.node){if(o.media.player)return o.media.player;if(o.hasFocus=!1,o.controlsAreVisible=!0,o.controlsEnabled=!0,o.controlsTimer=null,o.currentMediaTime=0,o.proxy=null,void 0===n){var r=o.node.getAttribute("data-mejsoptions");n=r?JSON.parse(r):{}}return o.options=Object.assign({},g,n),o.options.loop&&!o.media.getAttribute("loop")?(o.media.loop=!0,o.node.loop=!0):o.media.loop&&(o.options.loop=!0),o.options.timeFormat||(o.options.timeFormat="mm:ss",o.options.alwaysShowHours&&(o.options.timeFormat="hh:mm:ss"),o.options.showTimecodeFrameCount&&(o.options.timeFormat+=":ff")),(0,p.calculateTimeFormat)(0,o.options,o.options.framesPerSecond||25),o.id="mep_"+s.default.mepIndex++,s.default.players[o.id]=o,o.init(),o}}return i(e,[{key:"getElement",value:function(e){return e}},{key:"init",value:function(){var e=this,t=Object.assign({},e.options,{success:function(t,n){e._meReady(t,n)},error:function(t){e._handleError(t)}}),n=e.node.tagName.toLowerCase();if(e.isDynamic="audio"!==n&&"video"!==n&&"iframe"!==n,e.isVideo=e.isDynamic?e.options.isVideo:"audio"!==n&&e.options.isVideo,e.mediaFiles=null,e.trackFiles=null,c.IS_IPAD&&e.options.iPadUseNativeControls||c.IS_IPHONE&&e.options.iPhoneUseNativeControls)e.node.setAttribute("controls",!0),c.IS_IPAD&&e.node.getAttribute("autoplay")&&e.play();else if(!e.isVideo&&(e.isVideo||!e.options.features.length&&!e.options.useDefaultControls)||c.IS_ANDROID&&e.options.AndroidUseNativeControls)e.isVideo||e.options.features.length||e.options.useDefaultControls||(e.node.style.display="none");else{e.node.removeAttribute("controls");var o=e.isVideo?u.default.t("mejs.video-player"):u.default.t("mejs.audio-player"),i=a.default.createElement("span");if(i.className=e.options.classPrefix+"offscreen",i.innerText=o,e.media.parentNode.insertBefore(i,e.media),e.container=a.default.createElement("div"),e.getElement(e.container).id=e.id,e.getElement(e.container).className=e.options.classPrefix+"container "+e.options.classPrefix+"container-keyboard-inactive "+e.media.className,e.getElement(e.container).tabIndex=0,e.getElement(e.container).setAttribute("role","application"),e.getElement(e.container).setAttribute("aria-label",o),e.getElement(e.container).innerHTML='<div class="'+e.options.classPrefix+'inner"><div class="'+e.options.classPrefix+'mediaelement"></div><div class="'+e.options.classPrefix+'layers"></div><div class="'+e.options.classPrefix+'controls"></div></div>',e.getElement(e.container).addEventListener("focus",function(t){if(!e.controlsAreVisible&&!e.hasFocus&&e.controlsEnabled){e.showControls(!0);var n=(0,f.isNodeAfter)(t.relatedTarget,e.getElement(e.container))?"."+e.options.classPrefix+"controls ."+e.options.classPrefix+"button:last-child > button":"."+e.options.classPrefix+"playpause-button > button";e.getElement(e.container).querySelector(n).focus()}}),e.node.parentNode.insertBefore(e.getElement(e.container),e.node),e.options.features.length||e.options.useDefaultControls||(e.getElement(e.container).style.background="transparent",e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls").style.display="none"),e.isVideo&&"fill"===e.options.stretching&&!h.hasClass(e.getElement(e.container).parentNode,e.options.classPrefix+"fill-container")){e.outerContainer=e.media.parentNode;var r=a.default.createElement("div");r.className=e.options.classPrefix+"fill-container",e.getElement(e.container).parentNode.insertBefore(r,e.getElement(e.container)),r.appendChild(e.getElement(e.container))}if(c.IS_ANDROID&&h.addClass(e.getElement(e.container),e.options.classPrefix+"android"),c.IS_IOS&&h.addClass(e.getElement(e.container),e.options.classPrefix+"ios"),c.IS_IPAD&&h.addClass(e.getElement(e.container),e.options.classPrefix+"ipad"),c.IS_IPHONE&&h.addClass(e.getElement(e.container),e.options.classPrefix+"iphone"),h.addClass(e.getElement(e.container),e.isVideo?e.options.classPrefix+"video":e.options.classPrefix+"audio"),c.IS_SAFARI&&!c.IS_IOS){h.addClass(e.getElement(e.container),e.options.classPrefix+"hide-cues");for(var d=e.node.cloneNode(),p=e.node.children,v=[],g=[],y=0,E=p.length;y<E;y++){var b=p[y];!function(){switch(b.tagName.toLowerCase()){case"source":var e={};Array.prototype.slice.call(b.attributes).forEach(function(t){e[t.name]=t.value}),e.type=(0,m.formatType)(e.src,e.type),v.push(e);break;case"track":b.mode="hidden",g.push(b);break;default:d.appendChild(b)}}()}e.node.remove(),e.node=e.media=d,v.length&&(e.mediaFiles=v),g.length&&(e.trackFiles=g)}e.getElement(e.container).querySelector("."+e.options.classPrefix+"mediaelement").appendChild(e.node),e.media.player=e,e.controls=e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls"),e.layers=e.getElement(e.container).querySelector("."+e.options.classPrefix+"layers");var S=e.isVideo?"video":"audio",x=S.substring(0,1).toUpperCase()+S.substring(1);e.options[S+"Width"]>0||e.options[S+"Width"].toString().indexOf("%")>-1?e.width=e.options[S+"Width"]:""!==e.node.style.width&&null!==e.node.style.width?e.width=e.node.style.width:e.node.getAttribute("width")?e.width=e.node.getAttribute("width"):e.width=e.options["default"+x+"Width"],e.options[S+"Height"]>0||e.options[S+"Height"].toString().indexOf("%")>-1?e.height=e.options[S+"Height"]:""!==e.node.style.height&&null!==e.node.style.height?e.height=e.node.style.height:e.node.getAttribute("height")?e.height=e.node.getAttribute("height"):e.height=e.options["default"+x+"Height"],e.initialAspectRatio=e.height>=e.width?e.width/e.height:e.height/e.width,e.setPlayerSize(e.width,e.height),t.pluginWidth=e.width,t.pluginHeight=e.height}if(s.default.MepDefaults=t,new l.default(e.media,t,e.mediaFiles),void 0!==e.getElement(e.container)&&e.options.features.length&&e.controlsAreVisible&&!e.options.hideVideoControlsOnLoad){var w=(0,f.createEvent)("controlsshown",e.getElement(e.container));e.getElement(e.container).dispatchEvent(w)}}},{key:"showControls",value:function(e){var t=this;if(e=void 0===e||e,!t.controlsAreVisible&&t.isVideo){if(e)!function(){h.fadeIn(t.getElement(t.controls),200,function(){h.removeClass(t.getElement(t.controls),t.options.classPrefix+"offscreen");var e=(0,f.createEvent)("controlsshown",t.getElement(t.container));t.getElement(t.container).dispatchEvent(e)});for(var e=t.getElement(t.container).querySelectorAll("."+t.options.classPrefix+"control"),n=function(n,o){h.fadeIn(e[n],200,function(){h.removeClass(e[n],t.options.classPrefix+"offscreen")})},o=0,i=e.length;o<i;o++)n(o)}();else{h.removeClass(t.getElement(t.controls),t.options.classPrefix+"offscreen"),t.getElement(t.controls).style.display="",t.getElement(t.controls).style.opacity=1;for(var n=t.getElement(t.container).querySelectorAll("."+t.options.classPrefix+"control"),o=0,i=n.length;o<i;o++)h.removeClass(n[o],t.options.classPrefix+"offscreen"),n[o].style.display="";var r=(0,f.createEvent)("controlsshown",t.getElement(t.container));t.getElement(t.container).dispatchEvent(r)}t.controlsAreVisible=!0,t.setControlsSize()}}},{key:"hideControls",value:function(e,t){var n=this;if(e=void 0===e||e,!0===t||!(!n.controlsAreVisible||n.options.alwaysShowControls||n.paused&&4===n.readyState&&(!n.options.hideVideoControlsOnLoad&&n.currentTime<=0||!n.options.hideVideoControlsOnPause&&n.currentTime>0)||n.isVideo&&!n.options.hideVideoControlsOnLoad&&!n.readyState||n.ended)){if(e)!function(){h.fadeOut(n.getElement(n.controls),200,function(){h.addClass(n.getElement(n.controls),n.options.classPrefix+"offscreen"),n.getElement(n.controls).style.display="";var e=(0,f.createEvent)("controlshidden",n.getElement(n.container));n.getElement(n.container).dispatchEvent(e)});for(var e=n.getElement(n.container).querySelectorAll("."+n.options.classPrefix+"control"),t=function(t,o){h.fadeOut(e[t],200,function(){h.addClass(e[t],n.options.classPrefix+"offscreen"),e[t].style.display=""})},o=0,i=e.length;o<i;o++)t(o)}();else{h.addClass(n.getElement(n.controls),n.options.classPrefix+"offscreen"),n.getElement(n.controls).style.display="",n.getElement(n.controls).style.opacity=0;for(var o=n.getElement(n.container).querySelectorAll("."+n.options.classPrefix+"control"),i=0,r=o.length;i<r;i++)h.addClass(o[i],n.options.classPrefix+"offscreen"),o[i].style.display="";var a=(0,f.createEvent)("controlshidden",n.getElement(n.container));n.getElement(n.container).dispatchEvent(a)}n.controlsAreVisible=!1}}},{key:"startControlsTimer",value:function(e){var t=this;e=void 0!==e?e:t.options.controlsTimeoutDefault,t.killControlsTimer("start"),t.controlsTimer=setTimeout(function(){t.hideControls(),t.killControlsTimer("hide")},e)}},{key:"killControlsTimer",value:function(){var e=this;null!==e.controlsTimer&&(clearTimeout(e.controlsTimer),delete e.controlsTimer,e.controlsTimer=null)}},{key:"disableControls",value:function(){var e=this;e.killControlsTimer(),e.controlsEnabled=!1,e.hideControls(!1,!0)}},{key:"enableControls",value:function(){this.controlsEnabled=!0,this.showControls(!1)}},{key:"_setDefaultPlayer",value:function(){var e=this;e.proxy&&e.proxy.pause(),e.proxy=new d.default(e),e.media.addEventListener("loadedmetadata",function(){e.getCurrentTime()>0&&e.currentMediaTime>0&&(e.setCurrentTime(e.currentMediaTime),c.IS_IOS||c.IS_ANDROID||e.play())})}},{key:"_meReady",value:function(e,t){var n=this,o=t.getAttribute("autoplay"),i=!(void 0===o||null===o||"false"===o),l=null!==e.rendererName&&/(native|html5)/i.test(n.media.rendererName);if(n.getElement(n.controls)&&n.enableControls(),n.getElement(n.container)&&n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-play")&&(n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-play").style.display=""),!n.created){if(n.created=!0,n.media=e,n.domNode=t,!(c.IS_ANDROID&&n.options.AndroidUseNativeControls||c.IS_IPAD&&n.options.iPadUseNativeControls||c.IS_IPHONE&&n.options.iPhoneUseNativeControls)){if(!n.isVideo&&!n.options.features.length&&!n.options.useDefaultControls)return i&&l&&n.play(),void(n.options.success&&("string"==typeof n.options.success?r.default[n.options.success](n.media,n.domNode,n):n.options.success(n.media,n.domNode,n)));if(n.featurePosition={},n._setDefaultPlayer(),n.buildposter(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.buildkeyboard(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.buildoverlays(n,n.getElement(n.controls),n.getElement(n.layers),n.media),n.options.useDefaultControls){var d=["playpause","current","progress","duration","tracks","volume","fullscreen"];n.options.features=d.concat(n.options.features.filter(function(e){return-1===d.indexOf(e)}))}n.buildfeatures(n,n.getElement(n.controls),n.getElement(n.layers),n.media);var u=(0,f.createEvent)("controlsready",n.getElement(n.container));n.getElement(n.container).dispatchEvent(u),n.setPlayerSize(n.width,n.height),n.setControlsSize(),n.isVideo&&(n.clickToPlayPauseCallback=function(){if(n.options.clickToPlayPause){var e=n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-button"),t=e.getAttribute("aria-pressed");n.paused&&t?n.pause():n.paused?n.play():n.pause(),e.setAttribute("aria-pressed",!t),n.getElement(n.container).focus()}},n.createIframeLayer(),n.media.addEventListener("click",n.clickToPlayPauseCallback),!c.IS_ANDROID&&!c.IS_IOS||n.options.alwaysShowControls?(n.getElement(n.container).addEventListener("mouseenter",function(){n.controlsEnabled&&(n.options.alwaysShowControls||(n.killControlsTimer("enter"),n.showControls(),n.startControlsTimer(n.options.controlsTimeoutMouseEnter)))}),n.getElement(n.container).addEventListener("mousemove",function(){n.controlsEnabled&&(n.controlsAreVisible||n.showControls(),n.options.alwaysShowControls||n.startControlsTimer(n.options.controlsTimeoutMouseEnter))}),n.getElement(n.container).addEventListener("mouseleave",function(){n.controlsEnabled&&(n.paused||n.options.alwaysShowControls||n.startControlsTimer(n.options.controlsTimeoutMouseLeave))})):n.node.addEventListener("touchstart",function(){n.controlsAreVisible?n.hideControls(!1):n.controlsEnabled&&n.showControls(!1)},!!c.SUPPORT_PASSIVE_EVENT&&{passive:!0}),n.options.hideVideoControlsOnLoad&&n.hideControls(!1),n.options.enableAutosize&&n.media.addEventListener("loadedmetadata",function(e){var t=void 0!==e?e.detail.target||e.target:n.media;n.options.videoHeight<=0&&!n.domNode.getAttribute("height")&&!n.domNode.style.height&&null!==t&&!isNaN(t.videoHeight)&&(n.setPlayerSize(t.videoWidth,t.videoHeight),n.setControlsSize(),n.media.setSize(t.videoWidth,t.videoHeight))})),n.media.addEventListener("play",function(){for(var e in n.hasFocus=!0,s.default.players)if(s.default.players.hasOwnProperty(e)){var t=s.default.players[e];t.id===n.id||!n.options.pauseOtherPlayers||t.paused||t.ended||(t.pause(),t.hasFocus=!1)}c.IS_ANDROID||c.IS_IOS||n.options.alwaysShowControls||!n.isVideo||n.hideControls()}),n.media.addEventListener("ended",function(){if(n.options.autoRewind)try{n.setCurrentTime(0),setTimeout(function(){var e=n.getElement(n.container).querySelector("."+n.options.classPrefix+"overlay-loading");e&&e.parentNode&&(e.parentNode.style.display="none")},20)}catch(e){}"function"==typeof n.media.renderer.stop?n.media.renderer.stop():n.pause(),n.setProgressRail&&n.setProgressRail(),n.setCurrentRail&&n.setCurrentRail(),n.options.loop?n.play():!n.options.alwaysShowControls&&n.controlsEnabled&&n.showControls()}),n.media.addEventListener("loadedmetadata",function(){(0,p.calculateTimeFormat)(n.getDuration(),n.options,n.options.framesPerSecond||25),n.updateDuration&&n.updateDuration(),n.updateCurrent&&n.updateCurrent(),n.isFullScreen||(n.setPlayerSize(n.width,n.height),n.setControlsSize())});var m=null;n.media.addEventListener("timeupdate",function(){isNaN(n.getDuration())||m===n.getDuration()||(m=n.getDuration(),(0,p.calculateTimeFormat)(m,n.options,n.options.framesPerSecond||25),n.updateDuration&&n.updateDuration(),n.updateCurrent&&n.updateCurrent(),n.setControlsSize())}),n.getElement(n.container).addEventListener("click",function(e){h.addClass(e.currentTarget,n.options.classPrefix+"container-keyboard-inactive")}),n.getElement(n.container).addEventListener("focusin",function(e){h.removeClass(e.currentTarget,n.options.classPrefix+"container-keyboard-inactive"),!n.isVideo||c.IS_ANDROID||c.IS_IOS||!n.controlsEnabled||n.options.alwaysShowControls||(n.killControlsTimer("enter"),n.showControls(),n.startControlsTimer(n.options.controlsTimeoutMouseEnter))}),n.getElement(n.container).addEventListener("focusout",function(e){setTimeout(function(){e.relatedTarget&&n.keyboardAction&&!e.relatedTarget.closest("."+n.options.classPrefix+"container")&&(n.keyboardAction=!1,!n.isVideo||n.options.alwaysShowControls||n.paused||n.startControlsTimer(n.options.controlsTimeoutMouseLeave))},0)}),setTimeout(function(){n.setPlayerSize(n.width,n.height),n.setControlsSize()},0),n.globalResizeCallback=function(){n.isFullScreen||c.HAS_TRUE_NATIVE_FULLSCREEN&&a.default.webkitIsFullScreen||n.setPlayerSize(n.width,n.height),n.setControlsSize()},n.globalBind("resize",n.globalResizeCallback)}i&&l&&n.play(),n.options.success&&("string"==typeof n.options.success?r.default[n.options.success](n.media,n.domNode,n):n.options.success(n.media,n.domNode,n))}}},{key:"_handleError",value:function(e,t,n){var o=this,i=o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-play");i&&(i.style.display="none"),o.options.error&&o.options.error(e,t,n),o.getElement(o.container).querySelector("."+o.options.classPrefix+"cannotplay")&&o.getElement(o.container).querySelector("."+o.options.classPrefix+"cannotplay").remove();var r=a.default.createElement("div");r.className=o.options.classPrefix+"cannotplay",r.style.width="100%",r.style.height="100%";var l="function"==typeof o.options.customError?o.options.customError(o.media,o.media.originalNode):o.options.customError,d="";if(!l){var u=o.media.originalNode.getAttribute("poster");if(u&&(d='<img src="'+u+'" alt="'+s.default.i18n.t("mejs.download-file")+'">'),e.message&&(l="<p>"+e.message+"</p>"),e.urls)for(var c=0,f=e.urls.length;c<f;c++){var p=e.urls[c];l+='<a href="'+p.src+'" data-type="'+p.type+'"><span>'+s.default.i18n.t("mejs.download-file")+": "+p.src+"</span></a>"}}l&&o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error")&&(r.innerHTML=l,o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error").innerHTML=""+d+r.outerHTML,o.getElement(o.layers).querySelector("."+o.options.classPrefix+"overlay-error").parentNode.style.display="block"),o.controlsEnabled&&o.disableControls()}},{key:"setPlayerSize",value:function(e,t){var n=this;if(!n.options.setDimensions)return!1;switch(void 0!==e&&(n.width=e),void 0!==t&&(n.height=t),n.options.stretching){case"fill":n.isVideo?n.setFillMode():n.setDimensions(n.width,n.height);break;case"responsive":n.setResponsiveMode();break;case"none":n.setDimensions(n.width,n.height);break;default:!0===n.hasFluidMode()?n.setResponsiveMode():n.setDimensions(n.width,n.height)}}},{key:"hasFluidMode",value:function(){var e=this;return-1!==e.height.toString().indexOf("%")||e.node&&e.node.style.maxWidth&&"none"!==e.node.style.maxWidth&&e.node.style.maxWidth!==e.width||e.node&&e.node.currentStyle&&"100%"===e.node.currentStyle.maxWidth}},{key:"setResponsiveMode",value:function(){var e,t=this,n=function(){for(var e=void 0,n=t.getElement(t.container);n;){try{if(c.IS_FIREFOX&&"html"===n.tagName.toLowerCase()&&r.default.self!==r.default.top&&null!==r.default.frameElement)return r.default.frameElement;e=n.parentElement}catch(t){e=n.parentElement}if(e&&h.visible(e))return e;n=e}return null}(),o=n?getComputedStyle(n,null):getComputedStyle(a.default.body,null),i=t.isVideo?t.node.videoWidth&&t.node.videoWidth>0?t.node.videoWidth:t.node.getAttribute("width")?t.node.getAttribute("width"):t.options.defaultVideoWidth:t.options.defaultAudioWidth,s=t.isVideo?t.node.videoHeight&&t.node.videoHeight>0?t.node.videoHeight:t.node.getAttribute("height")?t.node.getAttribute("height"):t.options.defaultVideoHeight:t.options.defaultAudioHeight,l=(e=1,t.isVideo?(e=t.node.videoWidth&&t.node.videoWidth>0&&t.node.videoHeight&&t.node.videoHeight>0?t.height>=t.width?t.node.videoWidth/t.node.videoHeight:t.node.videoHeight/t.node.videoWidth:t.initialAspectRatio,(isNaN(e)||e<.01||e>100)&&(e=1),e):e),d=parseFloat(o.height),u=void 0,f=parseFloat(o.width);if(u=t.isVideo?"100%"===t.height?parseFloat(f*s/i,10):t.height>=t.width?parseFloat(f/l,10):parseFloat(f*l,10):s,isNaN(u)&&(u=d),t.getElement(t.container).parentNode.length>0&&"body"===t.getElement(t.container).parentNode.tagName.toLowerCase()&&(f=r.default.innerWidth||a.default.documentElement.clientWidth||a.default.body.clientWidth,u=r.default.innerHeight||a.default.documentElement.clientHeight||a.default.body.clientHeight),u&&f){t.getElement(t.container).style.width=f+"px",t.getElement(t.container).style.height=u+"px",t.node.style.width="100%",t.node.style.height="100%",t.isVideo&&t.media.setSize&&t.media.setSize(f,u);for(var p=t.getElement(t.layers).children,m=0,v=p.length;m<v;m++)p[m].style.width="100%",p[m].style.height="100%"}}},{key:"setFillMode",value:function(){var e=this,t=r.default.self!==r.default.top&&null!==r.default.frameElement,n=function(){for(var t=void 0,n=e.getElement(e.container);n;){try{if(c.IS_FIREFOX&&"html"===n.tagName.toLowerCase()&&r.default.self!==r.default.top&&null!==r.default.frameElement)return r.default.frameElement;t=n.parentElement}catch(e){t=n.parentElement}if(t&&h.visible(t))return t;n=t}return null}(),o=n?getComputedStyle(n,null):getComputedStyle(a.default.body,null);"none"!==e.node.style.height&&e.node.style.height!==e.height&&(e.node.style.height="auto"),"none"!==e.node.style.maxWidth&&e.node.style.maxWidth!==e.width&&(e.node.style.maxWidth="none"),"none"!==e.node.style.maxHeight&&e.node.style.maxHeight!==e.height&&(e.node.style.maxHeight="none"),e.node.currentStyle&&("100%"===e.node.currentStyle.height&&(e.node.currentStyle.height="auto"),"100%"===e.node.currentStyle.maxWidth&&(e.node.currentStyle.maxWidth="none"),"100%"===e.node.currentStyle.maxHeight&&(e.node.currentStyle.maxHeight="none")),t||parseFloat(o.width)||(n.style.width=e.media.offsetWidth+"px"),t||parseFloat(o.height)||(n.style.height=e.media.offsetHeight+"px"),o=getComputedStyle(n);var i=parseFloat(o.width),s=parseFloat(o.height);e.setDimensions("100%","100%");var l=e.getElement(e.container).querySelector("."+e.options.classPrefix+"poster>img");l&&(l.style.display="");for(var d=e.getElement(e.container).querySelectorAll("object, embed, iframe, video"),u=e.height,f=e.width,p=i,m=u*i/f,v=f*s/u,g=s,y=v>i==!1,E=y?Math.floor(p):Math.floor(v),b=y?Math.floor(m):Math.floor(g),S=y?i+"px":E+"px",x=y?b+"px":s+"px",w=0,P=d.length;w<P;w++)d[w].style.height=x,d[w].style.width=S,e.media.setSize&&e.media.setSize(S,x),d[w].style.marginLeft=Math.floor((i-E)/2)+"px",d[w].style.marginTop=0}},{key:"setDimensions",value:function(e,t){var n=this;e=(0,f.isString)(e)&&e.indexOf("%")>-1?e:parseFloat(e)+"px",t=(0,f.isString)(t)&&t.indexOf("%")>-1?t:parseFloat(t)+"px",n.getElement(n.container).style.width=e,n.getElement(n.container).style.height=t;for(var o=n.getElement(n.layers).children,i=0,r=o.length;i<r;i++)o[i].style.width=e,o[i].style.height=t}},{key:"setControlsSize",value:function(){var e=this;if(h.visible(e.getElement(e.container)))if(e.rail&&h.visible(e.rail)){for(var t=e.total?getComputedStyle(e.total,null):null,n=t?parseFloat(t.marginLeft)+parseFloat(t.marginRight):0,o=getComputedStyle(e.rail),i=parseFloat(o.marginLeft)+parseFloat(o.marginRight),r=0,a=h.siblings(e.rail,function(t){return t!==e.rail}),s=a.length,l=0;l<s;l++)r+=a[l].offsetWidth;r+=n+(0===n?2*i:i)+1,e.getElement(e.container).style.minWidth=r+"px";var d=(0,f.createEvent)("controlsresize",e.getElement(e.container));e.getElement(e.container).dispatchEvent(d)}else{for(var u=e.getElement(e.controls).children,c=0,p=0,m=u.length;p<m;p++)c+=u[p].offsetWidth;e.getElement(e.container).style.minWidth=c+"px"}}},{key:"addControlElement",value:function(e,t){var n=this;if(void 0!==n.featurePosition[t]){var o=n.getElement(n.controls).children[n.featurePosition[t]-1];o.parentNode.insertBefore(e,o.nextSibling)}else{n.getElement(n.controls).appendChild(e);for(var i=n.getElement(n.controls).children,r=0,a=i.length;r<a;r++)if(e===i[r]){n.featurePosition[t]=r;break}}}},{key:"createIframeLayer",value:function(){var e=this;if(e.isVideo&&null!==e.media.rendererName&&e.media.rendererName.indexOf("iframe")>-1&&!a.default.getElementById(e.media.id+"-iframe-overlay")){var t=a.default.createElement("div"),n=a.default.getElementById(e.media.id+"_"+e.media.rendererName);t.id=e.media.id+"-iframe-overlay",t.className=e.options.classPrefix+"iframe-overlay",t.addEventListener("click",function(t){e.options.clickToPlayPause&&(e.paused?e.play():e.pause(),t.preventDefault(),t.stopPropagation())}),n.parentNode.insertBefore(t,n)}}},{key:"resetSize",value:function(){var e=this;setTimeout(function(){e.setPlayerSize(e.width,e.height),e.setControlsSize()},50)}},{key:"setPoster",value:function(e){var t=this;if(t.getElement(t.container)){var n=t.getElement(t.container).querySelector("."+t.options.classPrefix+"poster");n||((n=a.default.createElement("div")).className=t.options.classPrefix+"poster "+t.options.classPrefix+"layer",t.getElement(t.layers).appendChild(n));var o=n.querySelector("img");!o&&e&&((o=a.default.createElement("img")).className=t.options.classPrefix+"poster-img",o.width="100%",o.height="100%",n.style.display="",n.appendChild(o)),e?(o.setAttribute("src",e),n.style.backgroundImage='url("'+e+'")',n.style.display=""):o?(n.style.backgroundImage="none",n.style.display="none",o.remove()):n.style.display="none"}else(c.IS_IPAD&&t.options.iPadUseNativeControls||c.IS_IPHONE&&t.options.iPhoneUseNativeControls||c.IS_ANDROID&&t.options.AndroidUseNativeControls)&&(t.media.originalNode.poster=e)}},{key:"changeSkin",value:function(e){var t=this;t.getElement(t.container).className=t.options.classPrefix+"container "+e,t.setPlayerSize(t.width,t.height),t.setControlsSize()}},{key:"globalBind",value:function(e,t){var n=this,o=n.node?n.node.ownerDocument:a.default;if((e=(0,f.splitEvents)(e,n.id)).d)for(var i=e.d.split(" "),s=0,l=i.length;s<l;s++)i[s].split(".").reduce(function(e,n){return o.addEventListener(n,t,!1),n},"");if(e.w)for(var d=e.w.split(" "),u=0,c=d.length;u<c;u++)d[u].split(".").reduce(function(e,n){return r.default.addEventListener(n,t,!1),n},"")}},{key:"globalUnbind",value:function(e,t){var n=this,o=n.node?n.node.ownerDocument:a.default;if((e=(0,f.splitEvents)(e,n.id)).d)for(var i=e.d.split(" "),s=0,l=i.length;s<l;s++)i[s].split(".").reduce(function(e,n){return o.removeEventListener(n,t,!1),n},"");if(e.w)for(var d=e.w.split(" "),u=0,c=d.length;u<c;u++)d[u].split(".").reduce(function(e,n){return r.default.removeEventListener(n,t,!1),n},"")}},{key:"buildfeatures",value:function(e,t,n,o){for(var i=this,r=0,a=i.options.features.length;r<a;r++){var s=i.options.features[r];if(i["build"+s])try{i["build"+s](e,t,n,o)}catch(e){console.error("error building "+s,e)}}}},{key:"buildposter",value:function(e,t,n,o){var i=this,r=a.default.createElement("div");r.className=i.options.classPrefix+"poster "+i.options.classPrefix+"layer",n.appendChild(r);var s=o.originalNode.getAttribute("poster");""!==e.options.poster&&(s&&c.IS_IOS&&o.originalNode.removeAttribute("poster"),s=e.options.poster),s?i.setPoster(s):null!==i.media.renderer&&"function"==typeof i.media.renderer.getPosterUrl?i.setPoster(i.media.renderer.getPosterUrl()):r.style.display="none",o.addEventListener("play",function(){r.style.display="none"}),o.addEventListener("playing",function(){r.style.display="none"}),e.options.showPosterWhenEnded&&e.options.autoRewind&&o.addEventListener("ended",function(){r.style.display=""}),o.addEventListener("error",function(){r.style.display="none"}),e.options.showPosterWhenPaused&&o.addEventListener("pause",function(){e.ended||(r.style.display="")})}},{key:"buildoverlays",value:function(e,t,n,o){if(e.isVideo){var i=this,r=a.default.createElement("div"),s=a.default.createElement("div"),l=a.default.createElement("div");r.style.display="none",r.className=i.options.classPrefix+"overlay "+i.options.classPrefix+"layer",r.innerHTML='<div class="'+i.options.classPrefix+'overlay-loading"><span class="'+i.options.classPrefix+'overlay-loading-bg-img"></span></div>',n.appendChild(r),s.style.display="none",s.className=i.options.classPrefix+"overlay "+i.options.classPrefix+"layer",s.innerHTML='<div class="'+i.options.classPrefix+'overlay-error"></div>',n.appendChild(s),l.className=i.options.classPrefix+"overlay "+i.options.classPrefix+"layer "+i.options.classPrefix+"overlay-play",l.innerHTML='<div class="'+i.options.classPrefix+'overlay-button" role="button" tabindex="0" aria-label="'+u.default.t("mejs.play")+'" aria-pressed="false"></div>',l.addEventListener("click",function(){if(i.options.clickToPlayPause){var e=i.getElement(i.container).querySelector("."+i.options.classPrefix+"overlay-button"),t=e.getAttribute("aria-pressed");i.paused?i.play():i.pause(),e.setAttribute("aria-pressed",!!t),i.getElement(i.container).focus()}}),l.addEventListener("keydown",function(e){var t=e.keyCode||e.which||0;if(13===t||c.IS_FIREFOX&&32===t){var n=(0,f.createEvent)("click",l);return l.dispatchEvent(n),!1}}),n.appendChild(l),null!==i.media.rendererName&&(/(youtube|facebook)/i.test(i.media.rendererName)&&!(i.media.originalNode.getAttribute("poster")||e.options.poster||"function"==typeof i.media.renderer.getPosterUrl&&i.media.renderer.getPosterUrl())||c.IS_STOCK_ANDROID||i.media.originalNode.getAttribute("autoplay"))&&(l.style.display="none");var d=!1;o.addEventListener("play",function(){l.style.display="none",r.style.display="none",s.style.display="none",d=!1}),o.addEventListener("playing",function(){l.style.display="none",r.style.display="none",s.style.display="none",d=!1}),o.addEventListener("seeking",function(){l.style.display="none",r.style.display="",d=!1}),o.addEventListener("seeked",function(){l.style.display=i.paused&&!c.IS_STOCK_ANDROID?"":"none",r.style.display="none",d=!1}),o.addEventListener("pause",function(){r.style.display="none",c.IS_STOCK_ANDROID||d||(l.style.display=""),d=!1}),o.addEventListener("waiting",function(){r.style.display="",d=!1}),o.addEventListener("loadeddata",function(){r.style.display="",c.IS_ANDROID&&(o.canplayTimeout=setTimeout(function(){if(a.default.createEvent){var e=a.default.createEvent("HTMLEvents");return e.initEvent("canplay",!0,!0),o.dispatchEvent(e)}},300)),d=!1}),o.addEventListener("canplay",function(){r.style.display="none",clearTimeout(o.canplayTimeout),d=!1}),o.addEventListener("error",function(e){i._handleError(e,i.media,i.node),r.style.display="none",l.style.display="none",d=!0}),o.addEventListener("loadedmetadata",function(){i.controlsEnabled||i.enableControls()}),o.addEventListener("keydown",function(t){i.onkeydown(e,o,t),d=!1})}}},{key:"buildkeyboard",value:function(e,t,n,o){var i=this;i.getElement(i.container).addEventListener("keydown",function(){i.keyboardAction=!0}),i.globalKeydownCallback=function(t){var n=a.default.activeElement.closest("."+i.options.classPrefix+"container"),r=i.media.closest("."+i.options.classPrefix+"container");return i.hasFocus=!(!n||!r||n.id!==r.id),i.onkeydown(e,o,t)},i.globalClickCallback=function(e){i.hasFocus=!!e.target.closest("."+i.options.classPrefix+"container")},i.globalBind("keydown",i.globalKeydownCallback),i.globalBind("click",i.globalClickCallback)}},{key:"onkeydown",value:function(e,t,n){if(e.hasFocus&&e.options.enableKeyboard)for(var o=0,i=e.options.keyActions.length;o<i;o++)for(var r=e.options.keyActions[o],a=0,s=r.keys.length;a<s;a++)if(n.keyCode===r.keys[a])return r.action(e,t,n.keyCode,n),n.preventDefault(),void n.stopPropagation();return!0}},{key:"play",value:function(){this.proxy.play()}},{key:"pause",value:function(){this.proxy.pause()}},{key:"load",value:function(){this.proxy.load()}},{key:"setCurrentTime",value:function(e){this.proxy.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){return this.proxy.currentTime}},{key:"getDuration",value:function(){return this.proxy.duration}},{key:"setVolume",value:function(e){this.proxy.volume=e}},{key:"getVolume",value:function(){return this.proxy.getVolume()}},{key:"setMuted",value:function(e){this.proxy.setMuted(e)}},{key:"setSrc",value:function(e){this.controlsEnabled||this.enableControls(),this.proxy.setSrc(e)}},{key:"getSrc",value:function(){return this.proxy.getSrc()}},{key:"canPlayType",value:function(e){return this.proxy.canPlayType(e)}},{key:"remove",value:function(){var e=this,t=e.media.rendererName,n=e.media.originalNode.src;for(var i in e.options.features){var r=e.options.features[i];if(e["clean"+r])try{e["clean"+r](e,e.getElement(e.layers),e.getElement(e.controls),e.media)}catch(e){console.error("error cleaning "+r,e)}}var l=e.node.getAttribute("width"),d=e.node.getAttribute("height");(l?-1===l.indexOf("%")&&(l+="px"):l="auto",d?-1===d.indexOf("%")&&(d+="px"):d="auto",e.node.style.width=l,e.node.style.height=d,e.setPlayerSize(0,0),e.isDynamic?e.getElement(e.container).parentNode.insertBefore(e.node,e.getElement(e.container)):function(){e.node.setAttribute("controls",!0),e.node.setAttribute("id",e.node.getAttribute("id").replace("_"+t,"").replace("_from_mejs",""));var o=e.getElement(e.container).querySelector("."+e.options.classPrefix+"poster>img");(o&&e.node.setAttribute("poster",o.src),delete e.node.autoplay,""!==e.media.canPlayType((0,m.getTypeFromFile)(n))&&e.node.setAttribute("src",n),~t.indexOf("iframe"))&&a.default.getElementById(e.media.id+"-iframe-overlay").remove();var i=e.node.cloneNode();if(i.style.display="",e.getElement(e.container).parentNode.insertBefore(i,e.getElement(e.container)),e.node.remove(),e.mediaFiles)for(var r=0,s=e.mediaFiles.length;r<s;r++){var l=a.default.createElement("source");l.setAttribute("src",e.mediaFiles[r].src),l.setAttribute("type",e.mediaFiles[r].type),i.appendChild(l)}if(e.trackFiles)for(var d=function(t,n){var o=e.trackFiles[t],r=a.default.createElement("track");r.kind=o.kind,r.label=o.label,r.srclang=o.srclang,r.src=o.src,i.appendChild(r),r.addEventListener("load",function(){this.mode="showing",i.textTracks[t].mode="showing"})},u=0,c=e.trackFiles.length;u<c;u++)d(u);delete e.node,delete e.mediaFiles,delete e.trackFiles}(),"function"==typeof e.media.renderer.destroy&&e.media.renderer.destroy(),delete s.default.players[e.id],"object"===o(e.getElement(e.container)))&&(e.getElement(e.container).parentNode.querySelector("."+e.options.classPrefix+"offscreen").remove(),e.getElement(e.container).remove());e.globalUnbind("resize",e.globalResizeCallback),e.globalUnbind("keydown",e.globalKeydownCallback),e.globalUnbind("click",e.globalClickCallback),delete e.media.player}},{key:"paused",get:function(){return this.proxy.paused}},{key:"muted",get:function(){return this.proxy.muted},set:function(e){this.setMuted(e)}},{key:"ended",get:function(){return this.proxy.ended}},{key:"readyState",get:function(){return this.proxy.readyState}},{key:"currentTime",set:function(e){this.setCurrentTime(e)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this.getVolume()}},{key:"src",set:function(e){this.setSrc(e)},get:function(){return this.getSrc()}}]),e}();r.default.MediaElementPlayer=y,s.default.MediaElementPlayer=y,n.default=y},{17:17,2:2,25:25,26:26,27:27,28:28,3:3,30:30,5:5,6:6,7:7}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=e(3),a=(o=r)&&o.__esModule?o:{default:o};var s=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.media=t.media,this.isVideo=t.isVideo,this.classPrefix=t.options.classPrefix,this.createIframeLayer=function(){return t.createIframeLayer()},this.setPoster=function(e){return t.setPoster(e)},this}return i(e,[{key:"play",value:function(){this.media.play()}},{key:"pause",value:function(){this.media.pause()}},{key:"load",value:function(){var e=this;e.isLoaded||e.media.load(),e.isLoaded=!0}},{key:"setCurrentTime",value:function(e){this.media.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){return this.media.currentTime}},{key:"getDuration",value:function(){return this.media.getDuration()}},{key:"setVolume",value:function(e){this.media.setVolume(e)}},{key:"getVolume",value:function(){return this.media.getVolume()}},{key:"setMuted",value:function(e){this.media.setMuted(e)}},{key:"setSrc",value:function(e){var t=this,n=document.getElementById(t.media.id+"-iframe-overlay");n&&n.remove(),t.media.setSrc(e),t.createIframeLayer(),null!==t.media.renderer&&"function"==typeof t.media.renderer.getPosterUrl&&t.setPoster(t.media.renderer.getPosterUrl())}},{key:"getSrc",value:function(){return this.media.getSrc()}},{key:"canPlayType",value:function(e){return this.media.canPlayType(e)}},{key:"paused",get:function(){return this.media.paused}},{key:"muted",set:function(e){this.setMuted(e)},get:function(){return this.media.muted}},{key:"ended",get:function(){return this.media.ended}},{key:"readyState",get:function(){return this.media.readyState}},{key:"currentTime",set:function(e){this.setCurrentTime(e)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this.getVolume()}},{key:"src",set:function(e){this.setSrc(e)},get:function(){return this.getSrc()}}]),e}();n.default=s,a.default.DefaultPlayer=s},{3:3}],18:[function(e,t,n){"use strict";var o,i=s(e(3)),r=s(e(7)),a=s(e(16));function s(e){return e&&e.__esModule?e:{default:e}}"undefined"!=typeof jQuery?r.default.$=i.default.jQuery=i.default.$=jQuery:"undefined"!=typeof Zepto?r.default.$=i.default.Zepto=i.default.$=Zepto:"undefined"!=typeof ender&&(r.default.$=i.default.ender=i.default.$=ender),void 0!==(o=r.default.$)&&(o.fn.mediaelementplayer=function(e){return!1===e?this.each(function(){var e=o(this).data("mediaelementplayer");e&&e.remove(),o(this).removeData("mediaelementplayer")}):this.each(function(){o(this).data("mediaelementplayer",new a.default(this,e))}),this},o(document).ready(function(){o("."+r.default.MepDefaults.classPrefix+"player").mediaelementplayer()}))},{16:16,3:3,7:7}],19:[function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),r=c(e(7)),a=e(8),s=e(27),l=e(28),d=e(25),u=e(26);function c(e){return e&&e.__esModule?e:{default:e}}var f={promise:null,load:function(e){return"undefined"!=typeof dashjs?f.promise=new Promise(function(e){e()}).then(function(){f._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.dashjs.org/latest/dash.all.min.js",f.promise=f.promise||(0,u.loadScript)(e.options.path),f.promise.then(function(){f._createPlayer(e)})),f.promise},_createPlayer:function(e){var t=dashjs.MediaPlayer().create();return i.default["__ready__"+e.id](t),t}},p={name:"native_dash",options:{prefix:"native_dash",dash:{path:"https://cdn.dashjs.org/latest/dash.all.min.js",debug:!1,drm:{},robustnessLevel:""}},canPlayType:function(e){return d.HAS_MSE&&["application/dash+xml"].indexOf(e.toLowerCase())>-1},create:function(e,t,n){var l=e.originalNode,d=e.id+"_"+t.prefix,u=l.autoplay,c=l.children,p=null,m=null;l.removeAttribute("type");for(var h=0,v=c.length;h<v;h++)c[h].removeAttribute("type");p=l.cloneNode(!0),t=Object.assign(t,e.options);for(var g=r.default.html5media.properties,y=r.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),E=function(t){var n=(0,s.createEvent)(t.type,e);e.dispatchEvent(n)},b=function(e){var n=""+e.substring(0,1).toUpperCase()+e.substring(1);p["get"+n]=function(){return null!==m?p[e]:null},p["set"+n]=function(n){if(-1===r.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){var i="object"===(void 0===n?"undefined":o(n))&&n.src?n.src:n;if(p[e]=i,null!==m){m.reset();for(var a=0,l=y.length;a<l;a++)p.removeEventListener(y[a],E);m=f._createPlayer({options:t.dash,id:d}),n&&"object"===(void 0===n?"undefined":o(n))&&"object"===o(n.drm)&&(m.setProtectionData(n.drm),(0,s.isString)(t.dash.robustnessLevel)&&t.dash.robustnessLevel&&m.getProtectionController().setRobustnessLevel(t.dash.robustnessLevel)),m.attachSource(i),u&&m.play()}}else p[e]=n}},S=0,x=g.length;S<x;S++)b(g[S]);if(i.default["__ready__"+d]=function(n){e.dashPlayer=m=n;for(var i,a=dashjs.MediaPlayer.events,l=0,d=y.length;l<d;l++)"loadedmetadata"===(i=y[l])&&(m.getDebug().setLogToBrowserConsole(t.dash.debug),m.initialize(),m.setScheduleWhilePaused(!1),m.setFastSwitchEnabled(!0),m.attachView(p),m.setAutoPlay(!1),"object"!==o(t.dash.drm)||r.default.Utils.isObjectEmpty(t.dash.drm)||(m.setProtectionData(t.dash.drm),(0,s.isString)(t.dash.robustnessLevel)&&t.dash.robustnessLevel&&m.getProtectionController().setRobustnessLevel(t.dash.robustnessLevel)),m.attachSource(p.getSrc())),p.addEventListener(i,E);var u=function(t){if("error"===t.type.toLowerCase())e.generateError(t.message,p.src),console.error(t);else{var n=(0,s.createEvent)(t.type,e);n.data=t,e.dispatchEvent(n)}};for(var c in a)a.hasOwnProperty(c)&&m.on(a[c],function(e){return u(e)})},n&&n.length>0)for(var w=0,P=n.length;w<P;w++)if(a.renderer.renderers[t.prefix].canPlayType(n[w].type)){p.setAttribute("src",n[w].src),void 0!==n[w].drm&&(t.dash.drm=n[w].drm);break}p.setAttribute("id",d),l.parentNode.insertBefore(p,l),l.autoplay=!1,l.style.display="none",p.setSize=function(e,t){return p.style.width=e+"px",p.style.height=t+"px",p},p.hide=function(){return p.pause(),p.style.display="none",p},p.show=function(){return p.style.display="",p},p.destroy=function(){null!==m&&m.reset()};var T=(0,s.createEvent)("rendererready",p);return e.dispatchEvent(T),e.promises.push(f.load({options:t.dash,id:d})),p}};l.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".mpd")?"application/dash+xml":null}),a.renderer.add(p)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PluginDetector=void 0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=f(e(3)),r=f(e(2)),a=f(e(7)),s=f(e(5)),l=e(8),d=e(27),u=e(25),c=e(28);function f(e){return e&&e.__esModule?e:{default:e}}var p=n.PluginDetector={plugins:[],hasPluginVersion:function(e,t){var n=p.plugins[e];return t[1]=t[1]||0,t[2]=t[2]||0,n[0]>t[0]||n[0]===t[0]&&n[1]>t[1]||n[0]===t[0]&&n[1]===t[1]&&n[2]>=t[2]},addPlugin:function(e,t,n,o,i){p.plugins[e]=p.detectPlugin(t,n,o,i)},detectPlugin:function(e,t,n,r){var a=[0,0,0],s=void 0,l=void 0;if(null!==u.NAV.plugins&&void 0!==u.NAV.plugins&&"object"===o(u.NAV.plugins[e])){if((s=u.NAV.plugins[e].description)&&(void 0===u.NAV.mimeTypes||!u.NAV.mimeTypes[t]||u.NAV.mimeTypes[t].enabledPlugin))for(var d=0,c=(a=s.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;d<c;d++)a[d]=parseInt(a[d].match(/\d+/),10)}else if(void 0!==i.default.ActiveXObject)try{(l=new ActiveXObject(n))&&(a=r(l))}catch(e){}return a}};p.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(e){var t=[],n=e.GetVariable("$version");return n&&(n=n.split(" ")[1].split(","),t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]),t});var m={create:function(e,t,n){var o={},f=!1;o.options=t,o.id=e.id+"_"+o.options.prefix,o.mediaElement=e,o.flashState={},o.flashApi=null,o.flashApiStack=[];for(var p=a.default.html5media.properties,m=function(e){o.flashState[e]=null;var t=""+e.substring(0,1).toUpperCase()+e.substring(1);o["get"+t]=function(){if(null!==o.flashApi){if("function"==typeof o.flashApi["get_"+e]){var t=o.flashApi["get_"+e]();return"buffered"===e?{start:function(){return 0},end:function(){return t},length:1}:t}return null}return null},o["set"+t]=function(t){if("src"===e&&(t=(0,c.absolutizeUrl)(t)),null!==o.flashApi&&void 0!==o.flashApi["set_"+e])try{o.flashApi["set_"+e](t)}catch(e){}else o.flashApiStack.push({type:"set",propName:e,value:t})}},h=0,v=p.length;h<v;h++)m(p[h]);var g=a.default.html5media.methods,y=function(e){o[e]=function(){if(f)if(null!==o.flashApi){if(o.flashApi["fire_"+e])try{o.flashApi["fire_"+e]()}catch(e){}}else o.flashApiStack.push({type:"call",methodName:e})}};g.push("stop");for(var E=0,b=g.length;E<b;E++)y(g[E]);for(var S=["rendererready"],x=0,w=S.length;x<w;x++){var P=(0,d.createEvent)(S[x],o);e.dispatchEvent(P)}i.default["__ready__"+o.id]=function(){if(o.flashReady=!0,o.flashApi=r.default.getElementById("__"+o.id),o.flashApiStack.length)for(var e=0,t=o.flashApiStack.length;e<t;e++){var n=o.flashApiStack[e];if("set"===n.type){var i=n.propName,a=""+i.substring(0,1).toUpperCase()+i.substring(1);o["set"+a](n.value)}else"call"===n.type&&o[n.methodName]()}},i.default["__event__"+o.id]=function(e,t){var n=(0,d.createEvent)(e,o);if(t)try{n.data=JSON.parse(t),n.details.data=JSON.parse(t)}catch(e){n.message=t}o.mediaElement.dispatchEvent(n)},o.flashWrapper=r.default.createElement("div"),-1===["always","sameDomain"].indexOf(o.options.shimScriptAccess)&&(o.options.shimScriptAccess="sameDomain");var T=e.originalNode.autoplay,C=["uid="+o.id,"autoplay="+T,"allowScriptAccess="+o.options.shimScriptAccess,"preload="+(e.originalNode.getAttribute("preload")||"")],k=null!==e.originalNode&&"video"===e.originalNode.tagName.toLowerCase(),_=k?e.originalNode.height:1,N=k?e.originalNode.width:1;e.originalNode.getAttribute("src")&&C.push("src="+e.originalNode.getAttribute("src")),!0===o.options.enablePseudoStreaming&&(C.push("pseudostreamstart="+o.options.pseudoStreamingStartQueryParam),C.push("pseudostreamtype="+o.options.pseudoStreamingType)),o.options.streamDelimiter&&C.push("streamdelimiter="+encodeURIComponent(o.options.streamDelimiter)),o.options.proxyType&&C.push("proxytype="+o.options.proxyType),e.appendChild(o.flashWrapper),e.originalNode.style.display="none";var A=[];if(u.IS_IE||u.IS_EDGE){var L=r.default.createElement("div");o.flashWrapper.appendChild(L),A=u.IS_EDGE?['type="application/x-shockwave-flash"','data="'+o.options.pluginPath+o.options.filename+'"','id="__'+o.id+'"','width="'+N+'"','height="'+_+"'\""]:['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"','id="__'+o.id+'"','width="'+N+'"','height="'+_+'"'],k||A.push('style="clip: rect(0 0 0 0); position: absolute;"'),L.outerHTML="<object "+A.join(" ")+'><param name="movie" value="'+o.options.pluginPath+o.options.filename+"?x="+new Date+'" /><param name="flashvars" value="'+C.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+o.options.shimScriptAccess+'" /><param name="allowFullScreen" value="true" /><div>'+s.default.t("mejs.install-flash")+"</div></object>"}else A=['id="__'+o.id+'"','name="__'+o.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+o.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+o.options.pluginPath+o.options.filename+'"','flashvars="'+C.join("&")+'"'],k?(A.push('width="'+N+'"'),A.push('height="'+_+'"')):A.push('style="position: fixed; left: -9999em; top: -9999em;"'),o.flashWrapper.innerHTML="<embed "+A.join(" ")+">";if(o.flashNode=o.flashWrapper.lastChild,o.hide=function(){f=!1,k&&(o.flashNode.style.display="none")},o.show=function(){f=!0,k&&(o.flashNode.style.display="")},o.setSize=function(e,t){o.flashNode.style.width=e+"px",o.flashNode.style.height=t+"px",null!==o.flashApi&&"function"==typeof o.flashApi.fire_setSize&&o.flashApi.fire_setSize(e,t)},o.destroy=function(){o.flashNode.remove()},n&&n.length>0)for(var F=0,j=n.length;F<j;F++)if(l.renderer.renderers[t.prefix].canPlayType(n[F].type)){o.setSrc(n[F].src);break}return o}};if(p.hasPluginVersion("flash",[10,0,0])){c.typeChecks.push(function(e){return(e=e.toLowerCase()).startsWith("rtmp")?~e.indexOf(".mp3")?"audio/rtmp":"video/rtmp":/\.og(a|g)/i.test(e)?"audio/ogg":~e.indexOf(".m3u8")?"application/x-mpegURL":~e.indexOf(".mpd")?"application/dash+xml":~e.indexOf(".flv")?"video/flv":null});var h={name:"flash_video",options:{prefix:"flash_video",filename:"mediaelement-flash-video.swf",enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",pseudoStreamingType:"byte",proxyType:"",streamDelimiter:""},canPlayType:function(e){return~["video/mp4","video/rtmp","audio/rtmp","rtmp/mp4","audio/mp4","video/flv","video/x-flv"].indexOf(e.toLowerCase())},create:m.create};l.renderer.add(h);var v={name:"flash_hls",options:{prefix:"flash_hls",filename:"mediaelement-flash-video-hls.swf"},canPlayType:function(e){return~["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())},create:m.create};l.renderer.add(v);var g={name:"flash_dash",options:{prefix:"flash_dash",filename:"mediaelement-flash-video-mdash.swf"},canPlayType:function(e){return~["application/dash+xml"].indexOf(e.toLowerCase())},create:m.create};l.renderer.add(g);var y={name:"flash_audio",options:{prefix:"flash_audio",filename:"mediaelement-flash-audio.swf"},canPlayType:function(e){return~["audio/mp3"].indexOf(e.toLowerCase())},create:m.create};l.renderer.add(y);var E={name:"flash_audio_ogg",options:{prefix:"flash_audio_ogg",filename:"mediaelement-flash-audio-ogg.swf"},canPlayType:function(e){return~["audio/ogg","audio/oga","audio/ogv"].indexOf(e.toLowerCase())},create:m.create};l.renderer.add(E)}},{2:2,25:25,27:27,28:28,3:3,5:5,7:7,8:8}],21:[function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),r=c(e(7)),a=e(8),s=e(27),l=e(25),d=e(28),u=e(26);function c(e){return e&&e.__esModule?e:{default:e}}var f={promise:null,load:function(e){return"undefined"!=typeof flvjs?f.promise=new Promise(function(e){e()}).then(function(){f._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/flv.js@latest",f.promise=f.promise||(0,u.loadScript)(e.options.path),f.promise.then(function(){f._createPlayer(e)})),f.promise},_createPlayer:function(e){flvjs.LoggingControl.enableDebug=e.options.debug,flvjs.LoggingControl.enableVerbose=e.options.debug;var t=flvjs.createPlayer(e.options,e.configs);return i.default["__ready__"+e.id](t),t}},p={name:"native_flv",options:{prefix:"native_flv",flv:{path:"https://cdn.jsdelivr.net/npm/flv.js@latest",cors:!0,debug:!1}},canPlayType:function(e){return l.HAS_MSE&&["video/x-flv","video/flv"].indexOf(e.toLowerCase())>-1},create:function(e,t,n){var l=e.originalNode,d=e.id+"_"+t.prefix,u=null,c=null;u=l.cloneNode(!0),t=Object.assign(t,e.options);for(var p=r.default.html5media.properties,m=r.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),h=function(t){var n=(0,s.createEvent)(t.type,e);e.dispatchEvent(n)},v=function(e){var n=""+e.substring(0,1).toUpperCase()+e.substring(1);u["get"+n]=function(){return null!==c?u[e]:null},u["set"+n]=function(n){if(-1===r.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){if(u[e]="object"===(void 0===n?"undefined":o(n))&&n.src?n.src:n,null!==c){var i={type:"flv"};i.url=n,i.cors=t.flv.cors,i.debug=t.flv.debug,i.path=t.flv.path;var a=t.flv.configs;c.destroy();for(var s=0,l=m.length;s<l;s++)u.removeEventListener(m[s],h);(c=f._createPlayer({options:i,configs:a,id:d})).attachMediaElement(u),c.load()}}else u[e]=n}},g=0,y=p.length;g<y;g++)v(p[g]);if(i.default["__ready__"+d]=function(t){e.flvPlayer=c=t;for(var n,o=flvjs.Events,i=0,r=m.length;i<r;i++)"loadedmetadata"===(n=m[i])&&(c.unload(),c.detachMediaElement(),c.attachMediaElement(u),c.load()),u.addEventListener(n,h);var a=function(t){o.hasOwnProperty(t)&&c.on(o[t],function(){for(var n=arguments.length,i=Array(n),r=0;r<n;r++)i[r]=arguments[r];return function(t,n){if("error"===t){var o=n[0]+": "+n[1]+" "+n[2].msg;e.generateError(o,u.src)}else{var i=(0,s.createEvent)(t,e);i.data=n,e.dispatchEvent(i)}}(o[t],i)})};for(var l in o)a(l)},n&&n.length>0)for(var E=0,b=n.length;E<b;E++)if(a.renderer.renderers[t.prefix].canPlayType(n[E].type)){u.setAttribute("src",n[E].src);break}u.setAttribute("id",d),l.parentNode.insertBefore(u,l),l.autoplay=!1,l.style.display="none";var S={type:"flv"};S.url=u.src,S.cors=t.flv.cors,S.debug=t.flv.debug,S.path=t.flv.path;var x=t.flv.configs;u.setSize=function(e,t){return u.style.width=e+"px",u.style.height=t+"px",u},u.hide=function(){return null!==c&&c.pause(),u.style.display="none",u},u.show=function(){return u.style.display="",u},u.destroy=function(){null!==c&&c.destroy()};var w=(0,s.createEvent)("rendererready",u);return e.dispatchEvent(w),e.promises.push(f.load({options:S,configs:x,id:d})),u}};d.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".flv")?"video/flv":null}),a.renderer.add(p)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],22:[function(e,t,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),r=c(e(7)),a=e(8),s=e(27),l=e(25),d=e(28),u=e(26);function c(e){return e&&e.__esModule?e:{default:e}}var f={promise:null,load:function(e){return"undefined"!=typeof Hls?f.promise=new Promise(function(e){e()}).then(function(){f._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/hls.js@latest",f.promise=f.promise||(0,u.loadScript)(e.options.path),f.promise.then(function(){f._createPlayer(e)})),f.promise},_createPlayer:function(e){var t=new Hls(e.options);return i.default["__ready__"+e.id](t),t}},p={name:"native_hls",options:{prefix:"native_hls",hls:{path:"https://cdn.jsdelivr.net/npm/hls.js@latest",autoStartLoad:!1,debug:!1}},canPlayType:function(e){return l.HAS_MSE&&["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())>-1},create:function(e,t,n){var l=e.originalNode,d=e.id+"_"+t.prefix,u=l.getAttribute("preload"),c=l.autoplay,p=null,m=null,h=0,v=n.length;m=l.cloneNode(!0),(t=Object.assign(t,e.options)).hls.autoStartLoad=u&&"none"!==u||c;for(var g=r.default.html5media.properties,y=r.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),E=function(t){var n=(0,s.createEvent)(t.type,e);e.dispatchEvent(n)},b=function(e){var n=""+e.substring(0,1).toUpperCase()+e.substring(1);m["get"+n]=function(){return null!==p?m[e]:null},m["set"+n]=function(n){if(-1===r.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){if(m[e]="object"===(void 0===n?"undefined":o(n))&&n.src?n.src:n,null!==p){p.destroy();for(var i=0,a=y.length;i<a;i++)m.removeEventListener(y[i],E);(p=f._createPlayer({options:t.hls,id:d})).loadSource(n),p.attachMedia(m)}}else m[e]=n}},S=0,x=g.length;S<x;S++)b(g[S]);if(i.default["__ready__"+d]=function(t){e.hlsPlayer=p=t;for(var o=Hls.Events,i=function(t){if("loadedmetadata"===t){var n=e.originalNode.src;p.detachMedia(),p.loadSource(n),p.attachMedia(m)}m.addEventListener(t,E)},r=0,a=y.length;r<a;r++)i(y[r]);var l=void 0,d=void 0,u=function(t){o.hasOwnProperty(t)&&p.on(o[t],function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];return function(t,o){if("hlsError"===t){if(console.warn(o),(o=o[1]).fatal)switch(o.type){case"mediaError":var i=(new Date).getTime();if(!l||i-l>3e3)l=(new Date).getTime(),p.recoverMediaError();else if(!d||i-d>3e3)d=(new Date).getTime(),console.warn("Attempting to swap Audio Codec and recover from media error"),p.swapAudioCodec(),p.recoverMediaError();else{var r="Cannot recover, last media error recovery failed";e.generateError(r,m.src),console.error(r)}break;case"networkError":"manifestLoadError"===o.details&&h<v&&void 0!==n[h+1]?(m.setSrc(n[h++].src),m.load(),m.play()):(e.generateError("Network error",n),console.error("Network error"));break;default:p.destroy()}}else{var a=(0,s.createEvent)(t,e);a.data=o,e.dispatchEvent(a)}}(o[t],r)})};for(var c in o)u(c)},v>0)for(;h<v;h++)if(a.renderer.renderers[t.prefix].canPlayType(n[h].type)){m.setAttribute("src",n[h].src);break}"auto"===u||c||(m.addEventListener("play",function(){null!==p&&p.startLoad()}),m.addEventListener("pause",function(){null!==p&&p.stopLoad()})),m.setAttribute("id",d),l.parentNode.insertBefore(m,l),l.autoplay=!1,l.style.display="none",m.setSize=function(e,t){return m.style.width=e+"px",m.style.height=t+"px",m},m.hide=function(){return m.pause(),m.style.display="none",m},m.show=function(){return m.style.display="",m},m.destroy=function(){null!==p&&(p.stopLoad(),p.destroy())};var w=(0,s.createEvent)("rendererready",m);return e.dispatchEvent(w),e.promises.push(f.load({options:t.hls,id:d})),m}};d.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".m3u8")?"application/x-mpegURL":null}),a.renderer.add(p)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],23:[function(e,t,n){"use strict";var o=d(e(3)),i=d(e(2)),r=d(e(7)),a=e(8),s=e(27),l=e(25);function d(e){return e&&e.__esModule?e:{default:e}}var u={name:"html5",options:{prefix:"html5"},canPlayType:function(e){var t=i.default.createElement("video");return l.IS_ANDROID&&/\/mp(3|4)$/i.test(e)||~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())&&l.SUPPORTS_NATIVE_HLS?"yes":t.canPlayType?t.canPlayType(e.toLowerCase()).replace(/no/,""):""},create:function(e,t,n){var o=e.id+"_"+t.prefix,l=!1,d=null;void 0===e.originalNode||null===e.originalNode?(d=i.default.createElement("audio"),e.appendChild(d)):d=e.originalNode,d.setAttribute("id",o);for(var u=r.default.html5media.properties,c=function(e){var t=""+e.substring(0,1).toUpperCase()+e.substring(1);d["get"+t]=function(){return d[e]},d["set"+t]=function(t){-1===r.default.html5media.readOnlyProperties.indexOf(e)&&(d[e]=t)}},f=0,p=u.length;f<p;f++)c(u[f]);for(var m,h=r.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),v=0,g=h.length;v<g;v++)m=h[v],d.addEventListener(m,function(t){if(l){var n=(0,s.createEvent)(t.type,t.target);e.dispatchEvent(n)}});d.setSize=function(e,t){return d.style.width=e+"px",d.style.height=t+"px",d},d.hide=function(){return l=!1,d.style.display="none",d},d.show=function(){return l=!0,d.style.display="",d};var y=0,E=n.length;if(E>0)for(;y<E;y++)if(a.renderer.renderers[t.prefix].canPlayType(n[y].type)){d.setAttribute("src",n[y].src);break}d.addEventListener("error",function(t){4===t.target.error.code&&l&&(y<E&&void 0!==n[y+1]?(d.src=n[y++].src,d.load(),d.play()):e.generateError("Media error: Format(s) not supported or source(s) not found",n))});var b=(0,s.createEvent)("rendererready",d);return e.dispatchEvent(b),d}};o.default.HtmlMediaElement=r.default.HtmlMediaElement=u,a.renderer.add(u)},{2:2,25:25,27:27,3:3,7:7,8:8}],24:[function(e,t,n){"use strict";var o=u(e(3)),i=u(e(2)),r=u(e(7)),a=e(8),s=e(27),l=e(28),d=e(26);function u(e){return e&&e.__esModule?e:{default:e}}var c={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(e){c.isLoaded="undefined"!=typeof YT&&YT.loaded,c.isLoaded?c.createIframe(e):(c.loadIframeApi(),c.iframeQueue.push(e))},loadIframeApi:function(){c.isIframeStarted||((0,d.loadScript)("https://www.youtube.com/player_api"),c.isIframeStarted=!0)},iFrameReady:function(){for(c.isLoaded=!0,c.isIframeLoaded=!0;c.iframeQueue.length>0;){var e=c.iframeQueue.pop();c.createIframe(e)}},createIframe:function(e){return new YT.Player(e.containerId,e)},getYouTubeId:function(e){var t="";return e.indexOf("?")>0?""===(t=c.getYouTubeIdFromParam(e))&&(t=c.getYouTubeIdFromUrl(e)):t=c.getYouTubeIdFromUrl(e),(t=t.substring(t.lastIndexOf("/")+1).split("?"))[0]},getYouTubeIdFromParam:function(e){if(void 0===e||null===e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),n="",o=0,i=t.length;o<i;o++){var r=t[o].split("=");if("v"===r[0]){n=r[1];break}}return n},getYouTubeIdFromUrl:function(e){return void 0!==e&&null!==e&&e.trim().length?(e=e.split("?")[0]).substring(e.lastIndexOf("/")+1):null},getYouTubeNoCookieUrl:function(e){if(void 0===e||null===e||!e.trim().length||-1===e.indexOf("//www.youtube"))return e;var t=e.split("/");return t[2]=t[2].replace(".com","-nocookie.com"),t.join("/")}},f={name:"youtube_iframe",options:{prefix:"youtube_iframe",youtube:{autoplay:0,controls:0,disablekb:1,end:0,loop:0,modestbranding:0,playsinline:0,rel:0,showinfo:0,start:0,iv_load_policy:3,nocookie:!1,imageQuality:null}},canPlayType:function(e){return~["video/youtube","video/x-youtube"].indexOf(e.toLowerCase())},create:function(e,t,n){var a={},l=[],d=null,u=!0,f=!1,p=null;a.options=t,a.id=e.id+"_"+t.prefix,a.mediaElement=e;for(var m=r.default.html5media.properties,h=function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);a["get"+n]=function(){if(null!==d){switch(t){case"currentTime":return d.getCurrentTime();case"duration":return d.getDuration();case"volume":return d.getVolume()/100;case"paused":return u;case"ended":return f;case"muted":return d.isMuted();case"buffered":var e=d.getVideoLoadedFraction(),n=d.getDuration();return{start:function(){return 0},end:function(){return e*n},length:1};case"src":return d.getVideoUrl();case"readyState":return 4}return null}return null},a["set"+n]=function(n){if(null!==d)switch(t){case"src":var o="string"==typeof n?n:n[0].src,i=c.getYouTubeId(o);e.originalNode.autoplay?d.loadVideoById(i):d.cueVideoById(i);break;case"currentTime":d.seekTo(n);break;case"muted":n?d.mute():d.unMute(),setTimeout(function(){var t=(0,s.createEvent)("volumechange",a);e.dispatchEvent(t)},50);break;case"volume":n,d.setVolume(100*n),setTimeout(function(){var t=(0,s.createEvent)("volumechange",a);e.dispatchEvent(t)},50);break;case"readyState":var r=(0,s.createEvent)("canplay",a);e.dispatchEvent(r)}else l.push({type:"set",propName:t,value:n})}},v=0,g=m.length;v<g;v++)h(m[v]);for(var y=r.default.html5media.methods,E=function(e){a[e]=function(){if(null!==d)switch(e){case"play":return u=!1,d.playVideo();case"pause":return u=!0,d.pauseVideo();case"load":return null}else l.push({type:"call",methodName:e})}},b=0,S=y.length;b<S;b++)E(y[b]);var x=i.default.createElement("div");x.id=a.id,a.options.youtube.nocookie&&(e.originalNode.src=c.getYouTubeNoCookieUrl(n[0].src)),e.originalNode.parentNode.insertBefore(x,e.originalNode),e.originalNode.style.display="none";var w="audio"===e.originalNode.tagName.toLowerCase(),P=w?"1":e.originalNode.height,T=w?"1":e.originalNode.width,C=c.getYouTubeId(n[0].src),k={id:a.id,containerId:x.id,videoId:C,height:P,width:T,playerVars:Object.assign({controls:0,rel:0,disablekb:1,showinfo:0,modestbranding:0,html5:1,iv_load_policy:3},a.options.youtube),origin:o.default.location.host,events:{onReady:function(t){if(e.youTubeApi=d=t.target,e.youTubeState={paused:!0,ended:!1},l.length)for(var n=0,o=l.length;n<o;n++){var i=l[n];if("set"===i.type){var r=i.propName,u=""+r.substring(0,1).toUpperCase()+r.substring(1);a["set"+u](i.value)}else"call"===i.type&&a[i.methodName]()}p=d.getIframe(),e.originalNode.muted&&d.mute();for(var c=["mouseover","mouseout"],f=function(t){var n=(0,s.createEvent)(t.type,a);e.dispatchEvent(n)},m=0,h=c.length;m<h;m++)p.addEventListener(c[m],f,!1);for(var v=["rendererready","loadedmetadata","loadeddata","canplay"],g=0,y=v.length;g<y;g++){var E=(0,s.createEvent)(v[g],a);e.dispatchEvent(E)}},onStateChange:function(t){var n=[];switch(t.data){case-1:n=["loadedmetadata"],u=!0,f=!1;break;case 0:n=["ended"],u=!1,f=!a.options.youtube.loop,a.options.youtube.loop||a.stopInterval();break;case 1:n=["play","playing"],u=!1,f=!1,a.startInterval();break;case 2:n=["pause"],u=!0,f=!1,a.stopInterval();break;case 3:n=["progress"],f=!1;break;case 5:n=["loadeddata","loadedmetadata","canplay"],u=!0,f=!1}for(var o=0,i=n.length;o<i;o++){var r=(0,s.createEvent)(n[o],a);e.dispatchEvent(r)}},onError:function(t){return function(t){var o="";switch(t.data){case 2:o="The request contains an invalid parameter value. Verify that video ID has 11 characters and that contains no invalid characters, such as exclamation points or asterisks.";break;case 5:o="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.";break;case 100:o="The video requested was not found. Either video has been removed or has been marked as private.";break;case 101:case 105:o="The owner of the requested video does not allow it to be played in embedded players.";break;default:o="Unknown error."}e.generateError("Code "+t.data+": "+o,n)}(t)}}};return(w||e.originalNode.hasAttribute("playsinline"))&&(k.playerVars.playsinline=1),e.originalNode.controls&&(k.playerVars.controls=1),e.originalNode.autoplay&&(k.playerVars.autoplay=1),e.originalNode.loop&&(k.playerVars.loop=1),(k.playerVars.loop&&1===parseInt(k.playerVars.loop,10)||e.originalNode.src.indexOf("loop=")>-1)&&!k.playerVars.playlist&&-1===e.originalNode.src.indexOf("playlist=")&&(k.playerVars.playlist=c.getYouTubeId(e.originalNode.src)),c.enqueueIframe(k),a.onEvent=function(t,n,o){null!==o&&void 0!==o&&(e.youTubeState=o)},a.setSize=function(e,t){null!==d&&d.setSize(e,t)},a.hide=function(){a.stopInterval(),a.pause(),p&&(p.style.display="none")},a.show=function(){p&&(p.style.display="")},a.destroy=function(){d.destroy()},a.interval=null,a.startInterval=function(){a.interval=setInterval(function(){var t=(0,s.createEvent)("timeupdate",a);e.dispatchEvent(t)},250)},a.stopInterval=function(){a.interval&&clearInterval(a.interval)},a.getPosterUrl=function(){var n=t.youtube.imageQuality,o=c.getYouTubeId(e.originalNode.src);return n&&["default","hqdefault","mqdefault","sddefault","maxresdefault"].indexOf(n)>-1&&o?"https://img.youtube.com/vi/"+o+"/"+n+".jpg":""},a}};o.default.onYouTubePlayerAPIReady=function(){c.iFrameReady()},l.typeChecks.push(function(e){return/\/\/(www\.youtube|youtu\.?be)/i.test(e)?"video/x-youtube":null}),a.renderer.add(f)},{2:2,26:26,27:27,28:28,3:3,7:7,8:8}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cancelFullScreen=n.requestFullScreen=n.isFullScreen=n.FULLSCREEN_EVENT_NAME=n.HAS_NATIVE_FULLSCREEN_ENABLED=n.HAS_TRUE_NATIVE_FULLSCREEN=n.HAS_IOS_FULLSCREEN=n.HAS_MS_NATIVE_FULLSCREEN=n.HAS_MOZ_NATIVE_FULLSCREEN=n.HAS_WEBKIT_NATIVE_FULLSCREEN=n.HAS_NATIVE_FULLSCREEN=n.SUPPORTS_NATIVE_HLS=n.SUPPORT_PASSIVE_EVENT=n.SUPPORT_POINTER_EVENTS=n.HAS_MSE=n.IS_STOCK_ANDROID=n.IS_SAFARI=n.IS_FIREFOX=n.IS_CHROME=n.IS_EDGE=n.IS_IE=n.IS_ANDROID=n.IS_IOS=n.IS_IPOD=n.IS_IPHONE=n.IS_IPAD=n.UA=n.NAV=void 0;var o=a(e(3)),i=a(e(2)),r=a(e(7));function a(e){return e&&e.__esModule?e:{default:e}}for(var s=n.NAV=o.default.navigator,l=n.UA=s.userAgent.toLowerCase(),d=n.IS_IPAD=/ipad/i.test(l)&&!o.default.MSStream,u=n.IS_IPHONE=/iphone/i.test(l)&&!o.default.MSStream,c=n.IS_IPOD=/ipod/i.test(l)&&!o.default.MSStream,f=(n.IS_IOS=/ipad|iphone|ipod/i.test(l)&&!o.default.MSStream,n.IS_ANDROID=/android/i.test(l)),p=n.IS_IE=/(trident|microsoft)/i.test(s.appName),m=(n.IS_EDGE="msLaunchUri"in s&&!("documentMode"in i.default)),h=n.IS_CHROME=/chrome/i.test(l),v=n.IS_FIREFOX=/firefox/i.test(l),g=n.IS_SAFARI=/safari/i.test(l)&&!h,y=n.IS_STOCK_ANDROID=/^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(l),E=(n.HAS_MSE="MediaSource"in o.default),b=n.SUPPORT_POINTER_EVENTS=function(){var e=i.default.createElement("x"),t=i.default.documentElement,n=o.default.getComputedStyle;if(!("pointerEvents"in e.style))return!1;e.style.pointerEvents="auto",e.style.pointerEvents="x",t.appendChild(e);var r=n&&"auto"===n(e,"").pointerEvents;return e.remove(),!!r}(),S=n.SUPPORT_PASSIVE_EVENT=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});o.default.addEventListener("test",null,t)}catch(e){}return e}(),x=["source","track","audio","video"],w=void 0,P=0,T=x.length;P<T;P++)w=i.default.createElement(x[P]);var C=n.SUPPORTS_NATIVE_HLS=g||f&&(h||y)||p&&/edge/i.test(l),k=void 0!==w.webkitEnterFullscreen,_=void 0!==w.requestFullscreen;k&&/mac os x 10_5/i.test(l)&&(_=!1,k=!1);var N=void 0!==w.webkitRequestFullScreen,A=void 0!==w.mozRequestFullScreen,L=void 0!==w.msRequestFullscreen,F=N||A||L,j=F,I="",M=void 0,O=void 0,D=void 0;A?j=i.default.mozFullScreenEnabled:L&&(j=i.default.msFullscreenEnabled),h&&(k=!1),F&&(N?I="webkitfullscreenchange":A?I="mozfullscreenchange":L&&(I="MSFullscreenChange"),n.isFullScreen=M=function(){return A?i.default.mozFullScreen:N?i.default.webkitIsFullScreen:L?null!==i.default.msFullscreenElement:void 0},n.requestFullScreen=O=function(e){N?e.webkitRequestFullScreen():A?e.mozRequestFullScreen():L&&e.msRequestFullscreen()},n.cancelFullScreen=D=function(){N?i.default.webkitCancelFullScreen():A?i.default.mozCancelFullScreen():L&&i.default.msExitFullscreen()});var V=n.HAS_NATIVE_FULLSCREEN=_,R=n.HAS_WEBKIT_NATIVE_FULLSCREEN=N,H=n.HAS_MOZ_NATIVE_FULLSCREEN=A,U=n.HAS_MS_NATIVE_FULLSCREEN=L,q=n.HAS_IOS_FULLSCREEN=k,B=n.HAS_TRUE_NATIVE_FULLSCREEN=F,z=n.HAS_NATIVE_FULLSCREEN_ENABLED=j,W=n.FULLSCREEN_EVENT_NAME=I;n.isFullScreen=M,n.requestFullScreen=O,n.cancelFullScreen=D,r.default.Features=r.default.Features||{},r.default.Features.isiPad=d,r.default.Features.isiPod=c,r.default.Features.isiPhone=u,r.default.Features.isiOS=r.default.Features.isiPhone||r.default.Features.isiPad,r.default.Features.isAndroid=f,r.default.Features.isIE=p,r.default.Features.isEdge=m,r.default.Features.isChrome=h,r.default.Features.isFirefox=v,r.default.Features.isSafari=g,r.default.Features.isStockAndroid=y,r.default.Features.hasMSE=E,r.default.Features.supportsNativeHLS=C,r.default.Features.supportsPointerEvents=b,r.default.Features.supportsPassiveEvent=S,r.default.Features.hasiOSFullScreen=q,r.default.Features.hasNativeFullscreen=V,r.default.Features.hasWebkitNativeFullScreen=R,r.default.Features.hasMozNativeFullScreen=H,r.default.Features.hasMsNativeFullScreen=U,r.default.Features.hasTrueNativeFullScreen=B,r.default.Features.nativeFullScreenEnabled=z,r.default.Features.fullScreenEventName=W,r.default.Features.isFullScreen=M,r.default.Features.requestFullScreen=O,r.default.Features.cancelFullScreen=D},{2:2,3:3,7:7}],26:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.removeClass=n.addClass=n.hasClass=void 0,n.loadScript=s,n.offset=l,n.toggleClass=h,n.fadeOut=v,n.fadeIn=g,n.siblings=y,n.visible=E,n.ajax=b;var o=a(e(3)),i=a(e(2)),r=a(e(7));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return new Promise(function(t,n){var o=i.default.createElement("script");o.src=e,o.async=!0,o.onload=function(){o.remove(),t()},o.onerror=function(){o.remove(),n()},i.default.head.appendChild(o)})}function l(e){var t=e.getBoundingClientRect(),n=o.default.pageXOffset||i.default.documentElement.scrollLeft,r=o.default.pageYOffset||i.default.documentElement.scrollTop;return{top:t.top+r,left:t.left+n}}var d=void 0,u=void 0,c=void 0;"classList"in i.default.documentElement?(d=function(e,t){return void 0!==e.classList&&e.classList.contains(t)},u=function(e,t){return e.classList.add(t)},c=function(e,t){return e.classList.remove(t)}):(d=function(e,t){return new RegExp("\\b"+t+"\\b").test(e.className)},u=function(e,t){f(e,t)||(e.className+=" "+t)},c=function(e,t){e.className=e.className.replace(new RegExp("\\b"+t+"\\b","g"),"")});var f=n.hasClass=d,p=n.addClass=u,m=n.removeClass=c;function h(e,t){f(e,t)?m(e,t):p(e,t)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments[2];e.style.opacity||(e.style.opacity=1);var i=null;o.default.requestAnimationFrame(function r(a){var s=a-(i=i||a),l=parseFloat(1-s/t,2);e.style.opacity=l<0?0:l,s>t?n&&"function"==typeof n&&n():o.default.requestAnimationFrame(r)})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments[2];e.style.opacity||(e.style.opacity=0);var i=null;o.default.requestAnimationFrame(function r(a){var s=a-(i=i||a),l=parseFloat(s/t,2);e.style.opacity=l>1?1:l,s>t?n&&"function"==typeof n&&n():o.default.requestAnimationFrame(r)})}function y(e,t){var n=[];e=e.parentNode.firstChild;do{t&&!t(e)||n.push(e)}while(e=e.nextSibling);return n}function E(e){return void 0!==e.getClientRects&&"function"===e.getClientRects?!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):!(!e.offsetWidth&&!e.offsetHeight)}function b(e,t,n,i){var r=o.default.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),a="application/x-www-form-urlencoded; charset=UTF-8",s=!1,l="*/".concat("*");switch(t){case"text":a="text/plain";break;case"json":a="application/json, text/javascript";break;case"html":a="text/html";break;case"xml":a="application/xml, text/xml"}"application/x-www-form-urlencoded"!==a&&(l=a+", */*; q=0.01"),r&&(r.open("GET",e,!0),r.setRequestHeader("Accept",l),r.onreadystatechange=function(){if(!s&&4===r.readyState)if(200===r.status){s=!0;var e=void 0;switch(t){case"json":e=JSON.parse(r.responseText);break;case"xml":e=r.responseXML;break;default:e=r.responseText}n(e)}else"function"==typeof i&&i(r.status)},r.send())}r.default.Utils=r.default.Utils||{},r.default.Utils.offset=l,r.default.Utils.hasClass=f,r.default.Utils.addClass=p,r.default.Utils.removeClass=m,r.default.Utils.toggleClass=h,r.default.Utils.fadeIn=g,r.default.Utils.fadeOut=v,r.default.Utils.siblings=y,r.default.Utils.visible=E,r.default.Utils.ajax=b,r.default.Utils.loadScript=s},{2:2,3:3,7:7}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.escapeHTML=a,n.debounce=s,n.isObjectEmpty=l,n.splitEvents=d,n.createEvent=u,n.isNodeAfter=c,n.isString=f;var o,i=e(7),r=(o=i)&&o.__esModule?o:{default:o};function a(e){if("string"!=typeof e)throw new Error("Argument passed must be a string");var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return e.replace(/[&<>"]/g,function(e){return t[e]})}function s(e,t){var n=this,o=arguments,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof e)throw new Error("First argument must be a function");if("number"!=typeof t)throw new Error("Second argument must be a numeric value");var r=void 0;return function(){var a=n,s=o,l=i&&!r;clearTimeout(r),r=setTimeout(function(){r=null,i||e.apply(a,s)},t),l&&e.apply(a,s)}}function l(e){return Object.getOwnPropertyNames(e).length<=0}function d(e,t){var n=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,o={d:[],w:[]};return(e||"").split(" ").forEach(function(e){var i=e+(t?"."+t:"");i.startsWith(".")?(o.d.push(i),o.w.push(i)):o[n.test(e)?"w":"d"].push(i)}),o.d=o.d.join(" "),o.w=o.w.join(" "),o}function u(e,t){if("string"!=typeof e)throw new Error("Event name must be a string");var n=e.match(/([a-z]+\.([a-z]+))/i),o={target:t};return null!==n&&(e=n[1],o.namespace=n[2]),new window.CustomEvent(e,{detail:o})}function c(e,t){return!!(e&&t&&2&e.compareDocumentPosition(t))}function f(e){return"string"==typeof e}r.default.Utils=r.default.Utils||{},r.default.Utils.escapeHTML=a,r.default.Utils.debounce=s,r.default.Utils.isObjectEmpty=l,r.default.Utils.splitEvents=d,r.default.Utils.createEvent=u,r.default.Utils.isNodeAfter=c,r.default.Utils.isString=f},{7:7}],28:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeChecks=void 0,n.absolutizeUrl=l,n.formatType=d,n.getMimeFromType=u,n.getTypeFromFile=c,n.getExtension=f,n.normalizeExtension=p;var o,i=e(7),r=(o=i)&&o.__esModule?o:{default:o},a=e(27);var s=n.typeChecks=[];function l(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=document.createElement("div");return t.innerHTML='<a href="'+(0,a.escapeHTML)(e)+'">x</a>',t.firstChild.href}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&!t?c(e):t}function u(e){if("string"!=typeof e)throw new Error("`type` argument must be a string");return e&&e.indexOf(";")>-1?e.substr(0,e.indexOf(";")):e}function c(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");for(var t=0,n=s.length;t<n;t++){var o=s[t](e);if(o)return o}var i=p(f(e)),r="video/mp4";return i&&(~["mp4","m4v","ogg","ogv","webm","flv","mpeg","mov"].indexOf(i)?r="video/"+i:~["mp3","oga","wav","mid","midi"].indexOf(i)&&(r="audio/"+i)),r}function f(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=e.split("?")[0].split("\\").pop().split("/").pop();return~t.indexOf(".")?t.substring(t.lastIndexOf(".")+1):""}function p(e){if("string"!=typeof e)throw new Error("`extension` argument must be a string");switch(e){case"mp4":case"m4v":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return e}}r.default.Utils=r.default.Utils||{},r.default.Utils.typeChecks=s,r.default.Utils.absolutizeUrl=l,r.default.Utils.formatType=d,r.default.Utils.getMimeFromType=u,r.default.Utils.getTypeFromFile=c,r.default.Utils.getExtension=f,r.default.Utils.normalizeExtension=p},{27:27,7:7}],29:[function(e,t,n){"use strict";var o,i=a(e(2)),r=a(e(4));function a(e){return e&&e.__esModule?e:{default:e}}if([Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=i.default.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null===e||void 0===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,o=arguments.length;n<o;n++){var i=arguments[n];if(null!==i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length-1;--n>=0&&t.item(n)!==this;);return n>-1}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=void 0,o=this;do{for(n=t.length;--n>=0&&t.item(n)!==o;);}while(n<0&&(o=o.parentElement));return o}),function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=(new Date).getTime(),o=Math.max(0,16-(n-e)),i=window.setTimeout(function(){t(n+o)},o);return e=n+o,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),/firefox/i.test(navigator.userAgent)){var s=window.getComputedStyle;window.getComputedStyle=function(e,t){var n=s(e,t);return null===n?{getPropertyValue:function(){}}:n}}window.Promise||(window.Promise=r.default),(o=window.Node||window.Element)&&o.prototype&&null===o.prototype.children&&Object.defineProperty(o.prototype,"children",{get:function(){for(var e=0,t=void 0,n=this.childNodes,o=[];t=n[e++];)1===t.nodeType&&o.push(t);return o}})},{2:2,4:4}],30:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isDropFrame=a,n.secondsToTimeCode=s,n.timeCodeToSeconds=l,n.calculateTimeFormat=d,n.convertSMPTEtoSeconds=u;var o,i=e(7),r=(o=i)&&o.__esModule?o:{default:o};function a(){return!((arguments.length>0&&void 0!==arguments[0]?arguments[0]:25)%1==0)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"hh:mm:ss";e=!e||"number"!=typeof e||e<0?0:e;var s=Math.round(.066666*o),l=Math.round(o),d=24*Math.round(3600*o),u=Math.round(600*o),c=a(o)?";":":",f=void 0,p=void 0,m=void 0,h=void 0,v=Math.round(e*o);if(a(o)){v<0&&(v=d+v);var g=(v%=d)%u;v+=9*s*Math.floor(v/u),g>s&&(v+=s*Math.floor((g-s)/Math.round(60*l-s)));var y=Math.floor(v/l);f=Math.floor(Math.floor(y/60)/60),p=Math.floor(y/60)%60,m=n?y%60:Math.floor(v/l%60).toFixed(i)}else f=Math.floor(e/3600)%24,p=Math.floor(e/60)%60,m=n?Math.floor(e%60):Math.floor(e%60).toFixed(i);f=f<=0?0:f,p=p<=0?0:p,m=60===(m=m<=0?0:m)?0:m,p=60===p?0:p;for(var E=r.split(":"),b={},S=0,x=E.length;S<x;++S){for(var w="",P=0,T=E[S].length;P<T;P++)w.indexOf(E[S][P])<0&&(w+=E[S][P]);~["f","s","m","h"].indexOf(w)&&(b[w]=E[S].length)}var C=t||f>0?(f<10&&b.h>1?"0"+f:f)+":":"";return C+=(p<10&&b.m>1?"0"+p:p)+":",C+=""+(m<10&&b.s>1?"0"+m:m),n&&(C+=(h=(h=(v%l).toFixed(0))<=0?0:h)<10&&b.f?c+"0"+h:""+c+h),C}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25;if("string"!=typeof e)throw new TypeError("Time must be a string");if(e.indexOf(";")>0&&(e=e.replace(";",":")),!/\d{2}(\:\d{2}){0,3}/i.test(e))throw new TypeError("Time code must have the format `00:00:00`");var n=e.split(":"),o=void 0,i=0,r=0,s=0,l=0,d=0,u=Math.round(.066666*t),c=Math.round(t),f=3600*c,p=60*c;switch(n.length){default:case 1:s=parseInt(n[0],10);break;case 2:r=parseInt(n[0],10),s=parseInt(n[1],10);break;case 3:i=parseInt(n[0],10),r=parseInt(n[1],10),s=parseInt(n[2],10);break;case 4:i=parseInt(n[0],10),r=parseInt(n[1],10),s=parseInt(n[2],10),l=parseInt(n[3],10)}return o=a(t)?f*i+p*r+c*s+l-u*((d=60*i+r)-Math.floor(d/10)):(f*i+p*r+t*s+l)/t,parseFloat(o.toFixed(3))}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25;e=!e||"number"!=typeof e||e<0?0:e;for(var o=Math.floor(e/3600)%24,i=Math.floor(e/60)%60,r=Math.floor(e%60),a=[[Math.floor((e%1*n).toFixed(3)),"f"],[r,"s"],[i,"m"],[o,"h"]],s=t.timeFormat,l=s[1]===s[0],d=l?2:1,u=s.length<d?s[d]:":",c=s[0],f=!1,p=0,m=a.length;p<m;p++)if(~s.indexOf(a[p][1]))f=!0;else if(f){for(var h=!1,v=p;v<m;v++)if(a[v][0]>0){h=!0;break}if(!h)break;l||(s=c+s),s=a[p][1]+u+s,l&&(s=a[p][1]+s),c=a[p][1]}t.timeFormat=s}function u(e){if("string"!=typeof e)throw new TypeError("Argument must be a string value");for(var t=~(e=e.replace(",",".")).indexOf(".")?e.split(".")[1].length:0,n=0,o=1,i=0,r=(e=e.split(":").reverse()).length;i<r;i++)o=1,i>0&&(o=Math.pow(60,i)),n+=Number(e[i])*o;return Number(n.toFixed(t))}r.default.Utils=r.default.Utils||{},r.default.Utils.secondsToTimeCode=s,r.default.Utils.timeCodeToSeconds=l,r.default.Utils.calculateTimeFormat=d,r.default.Utils.convertSMPTEtoSeconds=u},{7:7}]},{},[29,6,5,15,23,20,19,21,22,24,16,18,17,9,10,11,12,13,14]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1235

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/mobile/theme.js:1235
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3815

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:3815
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L53

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd-ce.js:53
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- a):c.innerHTML=a;c.firstChild;)b.appendChild(c.firstChild)},configurable:!0}},jb={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ka||null},configurable:!0}},kb={activeElement:{get:function(){var a=gb&&gb.get?gb.get.call(document):r.G?void 0:document.activeElement;if(a&&a.nodeType){var b=!!u(this);if(this===document||b&&this.host!==a&&x.contains.call(this.host,a)){for(b=la(a);b&&b!==this;)a=b.host,b=la(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L113

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd-ce.js:113
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- return b})}Sc&&K(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=Sc.call(this,a)});Tc&&Tc.get?b(Element.prototype,Tc):hd&&hd.get?b(HTMLElement.prototype,hd):yc(a,function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return Mc.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName,c=b?this.content:this,d=Fc.call(document,this.localName);for(d.innerHTML=a;0<c.childNodes.length;)Pc.call(c,c.childNodes[0]);for(a=b?d.content:d;0<a.childNodes.length;)Nc.call(c,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L21

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd.js:21
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content,l(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=x.M(c.getAttribute("href"),b),c.removeAttribute("href");c=m(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L49

Insecure DOM Manipulation (XSS) in webcomponents-lite.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-lite.js:49
Security Score:
75 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content,l(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=x.Y(c.getAttribute("href"),b),c.removeAttribute("href");c=m(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L30

Insecure DOM Manipulation (XSS) in Notifications.js

CWE-79
File Location: administrator/components/com_media/resources/scripts/app/Notifications.js:30
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- alert.innerHTML = Joomla.JText._(message, message) || '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L140

Insecure DOM Manipulation (XSS) in indexer.js

CWE-79
File Location: media/com_finder/js/indexer.js:140
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- progressMessage.innerHTML = message;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L199

Insecure DOM Manipulation (XSS) in overrider.js

CWE-79
File Location: media/com_languages/js/overrider.js:199
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- key.innerHTML = item.constant;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L237

Insecure DOM Manipulation (XSS) in overrider.js

CWE-79
File Location: media/com_languages/js/overrider.js:237
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.getElementById('jform_key').value = document.getElementById('override_key' + id).innerHTML;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in chosen.min.js

CWE-79
File Location: media/legacy/js/chosen.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){var t,e,s,i,r={}.hasOwnProperty;(i=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,s,i,r,o,n;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),title:t.title?t.title:void 0,children:0,disabled:t.disabled,classes:t.className}),n=[],i=0,r=(o=t.childNodes).length;i<r;i++)s=o[i],n.push(this.add_option(s,e,t.disabled));return n},t.prototype.add_option=function(t,e,s){if("OPTION"===t.nodeName.toUpperCase())return""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,title:t.title?t.title:void 0,selected:t.selected,disabled:!0===s?s:t.disabled,group_array_index:e,group_label:null!=e?this.parsed[e].label:null,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},t.prototype.escapeExpression=function(t){var e,s;return null==t||!1===t?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},s=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(s,function(t){return e[t]||"&amp;"})):t},t}()).select_to_array=function(t){var e,s,r,o,n;for(s=new i,r=0,o=(n=t.childNodes).length;r<o;r++)e=n[r],s.add_node(e);return s.parsed},e=function(){function t(e,s){this.form_field=e,this.options=null!=s?s:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_custom_value=!1,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1},t.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.custom_group_text=this.form_field.getAttribute("data-custom_group_text")||this.options.custom_group_text||"Custom Value",this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(t){return this.include_group_label_in_selected&&null!=t.group_label?"<b class='group-name'>"+t.group_label+"</b>"+t.html:t.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(t){var e=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return e.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(t){var e=this;if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(){return e.blur_test()},100)},t.prototype.results_option_build=function(t){var e,s,i,r,o,n,l;for(e="",r=0,o=0,n=(l=this.results_data).length;o<n&&(i="",""!==(i=(s=l[o]).group?this.result_add_group(s):this.result_add_option(s))&&(r++,e+=i),(null!=t?t.first:void 0)&&(s.selected&&this.is_multiple?this.choice_build(s):s.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(s))),!(r>=this.max_shown_results));o++);return e},t.prototype.result_add_option=function(t){var e,s;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),(s=document.createElement("li")).className=e.join(" "),s.style.cssText=t.style,s.setAttribute("data-option-array-index",t.array_index),s.innerHTML=t.search_text,t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.result_add_group=function(t){var e,s;return(t.search_match||t.group_match)&&t.active_options>0?((e=[]).push("group-result"),t.classes&&e.push(t.classes),(s=document.createElement("li")).className=e.join(" "),s.innerHTML=t.search_text,t.title&&(s.title=t.title),this.outerHTML(s)):""},t.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},t.prototype.reset_single_select_options=function(){var t,e,s,i,r;for(r=[],e=0,s=(i=this.results_data).length;e<s;e++)(t=i[e]).selected?r.push(t.selected=!1):r.push(void 0);return r},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(t){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,s,i,r,o,n,l,h,c,a,_;for(this.no_results_clear(),i=0,t=(o=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),h=new RegExp(t,"i"),s=this.get_search_regex(t),c=0,a=(_=this.results_data).length;c<a;c++)(e=_[c]).search_match=!1,r=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(0===(r=this.results_data[e.group_array_index]).active_options&&r.search_match&&(i+=1),r.active_options+=1),e.search_text=e.group?e.label:e.html,e.group&&!this.group_search||(e.search_match=this.search_string_match(e.search_text,s),e.search_match&&!e.group&&(i+=1),e.search_match?(o.length&&(n=e.search_text.search(h),l=e.search_text.substr(0,n+o.length)+"</em>"+e.search_text.substr(n+o.length),e.search_text=l.substr(0,n)+"<em>"+l.substr(n)),null!=r&&(r.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),i<1&&o.length?(this.update_results_content(""),this.no_results(o)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(t){var e,s;return e=this.search_contains?"":"^",s=this.case_sensitive_search?"":"i",new RegExp(e+t,s)},t.prototype.search_string_match=function(t,e){var s,i,r,o;if(e.test(t))return!0;if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(i=t.replace(/\[|\]/g,"").split(" ")).length)for(r=0,o=i.length;r<o;r++)if(s=i[r],e.test(s))return!0},t.prototype.choices_count=function(){var t,e,s;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,t=0,e=(s=this.form_field.options).length;t<e;t++)s[t].selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){if(t.preventDefault(),!this.results_showing&&!this.is_disabled)return this.results_show()},t.prototype.keyup_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:case 18:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(t){var e=this;return setTimeout(function(){return e.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field_jq.css("width")||this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){if(this.touch_started)return this.search_results_mouseup(t)},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:((e=document.createElement("div")).appendChild(t),e.innerHTML)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),(t=jQuery).fn.extend({chosen:function(i){return e.browser_is_supported()?this.each(function(e){var r,o;o=(r=t(this)).data("chosen"),"destroy"!==i?o||r.data("chosen",new s(this,i)):o instanceof s&&o.destroy()}):this}}),s=function(s){function o(){return o.__super__.constructor.apply(this,arguments)}return function(t,e){for(var s in e)r.call(e,s)&&(t[s]=e[s]);function i(){this.constructor=t}i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype}(o,e),o.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.allow_custom_value=this.form_field_jq.hasClass("chzn-custom-value")||this.options.allow_custom_value,this.is_rtl=this.form_field_jq.hasClass("chzn-rtl")},o.prototype.set_up_html=function(){var e,s;return(e=["chzn-container"]).push("chzn-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chzn-rtl"),s={class:e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(s.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chzn"),this.container=t("<div />",s),this.is_multiple?this.container.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop"><ul class="chzn-results"></ul></div>'):this.container.html('<a class="chzn-single chzn-default"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chzn-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chzn-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chzn-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chzn-search").first(),this.selected_item=this.container.find(".chzn-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},o.prototype.on_ready=function(){return this.form_field_jq.trigger("liszt:ready",{chosen:this})},o.prototype.register_observers=function(){var t=this;return this.container.bind("touchstart.chosen",function(e){return t.container_mousedown(e),e.preventDefault()}),this.container.bind("touchend.chosen",function(e){return t.container_mouseup(e),e.preventDefault()}),this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("liszt:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("liszt:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("liszt:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("liszt:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},o.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},o.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chzn-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chzn-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},o.prototype.container_mousedown=function(e){if(!this.is_disabled&&(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null==e||!t(e.target).hasClass("search-choice-close")))return this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chzn-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},o.prototype.container_mouseup=function(t){if("ABBR"===t.target.nodeName&&!this.is_disabled)return this.results_reset(t)},o.prototype.search_results_mousewheel=function(t){var e;if(t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e)return t.preventDefault(),"DOMMouseScroll"===t.type&&(e*=40),this.search_results.scrollTop(e+this.search_results.scrollTop())},o.prototype.blur_test=function(t){if(!this.active_field&&this.container.hasClass("chzn-container-active"))return this.close_field()},o.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chzn-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},o.prototype.activate_field=function(){return this.container.addClass("chzn-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},o.prototype.test_active_click=function(e){var s;return(s=t(e.target).closest(".chzn-container")).length&&this.container[0]===s[0]?this.active_field=!0:this.close_field()},o.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chzn-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chzn-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},o.prototype.result_do_highlight=function(t){var e,s,i,r,o;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),r=(i=parseInt(this.search_results.css("maxHeight"),10))+(o=this.search_results.scrollTop()),(e=(s=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=r)return this.search_results.scrollTop(e-i>0?e-i:0);if(s<o)return this.search_results.scrollTop(s)}},o.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},o.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(this.container.addClass("chzn-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("liszt:showing_dropdown",{chosen:this}))},o.prototype.update_results_content=function(t){return this.search_results.html(t)},o.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chzn-with-drop"),this.form_field_jq.trigger("liszt:hiding_dropdown",{chosen:this})),this.results_showing=!1},o.prototype.set_tab_index=function(t){var e;if(this.form_field.tabIndex)return e=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=e},o.prototype.set_label_behavior=function(){var e=this;if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()})},o.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},o.prototype.search_results_mouseup=function(e){var s;if((s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first()).length)return this.result_highlight=s,this.result_select(e),this.search_field.focus()},o.prototype.search_results_mouseover=function(e){var s;if(s=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first())return this.result_do_highlight(s)},o.prototype.search_results_mouseout=function(e){if(t(e.target).hasClass("active-result"))return this.result_clear_highlight()},o.prototype.choice_build=function(e){var s,i,r=this;return s=t("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(e)+"</span>"),e.disabled?s.addClass("search-choice-disabled"):((i=t("<a />",{class:"search-choice-close","data-option-array-index":e.array_index})).bind("click.chosen",function(t){return r.choice_destroy_link_click(t)}),s.append(i)),this.search_container.before(s)},o.prototype.choice_destroy_link_click=function(e){if(e.preventDefault(),e.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(e.target))},o.prototype.choice_destroy=function(t){if(this.result_deselect(t[0].getAttribute("data-option-array-index")))return this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()},o.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field)return this.results_hide()},o.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},o.prototype.result_select=function(e){var s,i,r,o,n;return this.result_highlight?(i=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("liszt:maxselected",{chosen:this}),!1):(this.is_multiple?i.removeClass("active-result"):this.reset_single_select_options(),i.addClass("result-selected"),(r=this.results_data[i[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[r.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(r):this.single_set_selected_text(this.choice_label(r)),(e.metaKey||e.ctrlKey)&&this.is_multiple||this.results_hide(),this.show_search_field_default(),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[r.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())):!this.is_multiple&&this.allow_custom_value?(n=this.search_field.val(),s=this.add_unique_custom_group(),o=t('<option value="'+n+'">'+n+"</option>"),s.append(o),this.form_field_jq.append(s),this.form_field.options[this.form_field.options.length-1].selected=!0,e.metaKey||this.results_hide(),this.results_build()):void 0},o.prototype.find_custom_group=function(){var e,s,i,r,o;for(i=0,r=(o=t("optgroup",this.form_field)).length;i<r;i++)(s=o[i]).getAttribute("label")===this.custom_group_text&&(e=s);return e},o.prototype.add_unique_custom_group=function(){var e;return(e=this.find_custom_group())||(e=t('<optgroup label="'+this.custom_group_text+'"></optgroup>')),t(e)},o.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chzn-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chzn-default")),this.selected_item.find("span").html(t)},o.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},o.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chzn-single-with-deselect")},o.prototype.get_search_text=function(){return t("<div/>").text(t.trim(this.search_field.val())).html()},o.prototype.winnow_results_set_highlight=function(){var t,e;if(null!=(t=(e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?e.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(t)},o.prototype.no_results=function(e){var s;return(s=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>')).find("span").first().html(e),this.search_results.append(s),this.form_field_jq.trigger("liszt:no_results",{chosen:this})},o.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},o.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},o.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},o.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last()).length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},o.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},o.prototype.keydown_checker=function(t){var e,s;switch(e=null!=(s=t.which)?s:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},o.prototype.search_field_scale=function(){var e,s,i,r,o,n,l,h;if(this.is_multiple){for(0,n=0,r="position:absolute; left: -1000px; top: -1000px; display:none;",l=0,h=(o=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"]).length;l<h;l++)r+=(i=o[l])+":"+this.search_field.css(i)+";";return(e=t("<div />",{style:r})).text(this.search_field.val()),t("body").append(e),n=e.width()+25,e.remove(),n>(s=this.container.outerWidth())-10&&(n=s-10),this.search_field.css({width:n+"px"})}},o}()}).call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L39

Insecure DOM Manipulation (XSS) in helpsite.js

CWE-79
File Location: media/legacy/js/helpsite.js:39
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- node.innerHTML = item.text;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L36

Insecure DOM Manipulation (XSS) in html5.js

CWE-79
File Location: media/legacy/js/html5.js:36
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- a.innerHTML = '<xyz></xyz>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L121

Insecure DOM Manipulation (XSS) in client.js

CWE-79
File Location: media/plg_installer_webinstaller/js/client.js:121
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.querySelector('#web-loader-error').innerHTML = request.responseText;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L35

Insecure DOM Manipulation (XSS) in extensionupdatecheck.js

CWE-79
File Location: media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js:35
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- linkSpan[i].innerHTML = Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L59

Insecure DOM Manipulation (XSS) in jupdatecheck.js

CWE-79
File Location: media/plg_quickicon_joomlaupdate/js/jupdatecheck.js:59
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- linkSpan[i].innerHTML = Joomla.JText._('PLG_QUICKICON_JOOMLAUPDATE_UPTODATE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L695

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:695
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- cell.innerHTML = " ";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L997

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:997
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this._nav_month.getElementsByTagName('span')[0].innerHTML = !this.params.monthBefore ? JoomlaCalLocale.months[month] + ' - ' + tmpYear : tmpYear + ' - ' + JoomlaCalLocale.months[month] ;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-field-media.min.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-media.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- ((t,e,i)=>{if(!e)throw new Error("Joomla API is not properly initiated");e.selectedFile={},window.document.addEventListener("onMediaFileSelected",t=>{e.selectedFile=t.detail}),e.doIt=function(t,i,s){"use strict";if(!0===t.success){if(t.data[0].url)if(/local-/.test(t.data[0].adapter)){var r=e.getOptions("system.paths").rootFull;e.selectedFile.url=t.data[0].url.split(r)[1],t.data[0].thumb_path?e.selectedFile.thumb=t.data[0].thumb_path:e.selectedFile.thumb=!1}else t.data[0].thumb_path&&(e.selectedFile.thumb=t.data[0].thumb_path);else e.selectedFile.url=!1;const l=t=>"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName;e.selectedFile.url&&(l(i)||"object"==typeof i?!l(i)&&"object"==typeof i&&i.id?parent.window.Joomla.editors.instances[i.id].replaceSelection('<img src="'+e.selectedFile.url+'" alt=""/>'):(i.value=e.selectedFile.url,s.updatePreview()):e.editors.instances[i].replaceSelection('<img src="'+e.selectedFile.url+'" alt=""/>'))}},e.getImage=function(t,i,s){return new Promise((r,l)=>{var o=e.getOptions("csrf.token"),a=e.getOptions("system.paths").rootFull+"administrator/index.php?option=com_media&format=json";e.request({url:a+"&task=api.files&url=true&path="+t.path+"&"+o+"=1&format=json",method:"GET",perform:!0,headers:{"Content-Type":"application/json"},onSuccess:function(t){const l=JSON.parse(t);r(e.doIt(l,i,s))},onError:function(){l()}})})};t.define("joomla-field-media",class extends HTMLElement{static get observedAttributes(){return["type","base-path","root-folder","url","modal-container","modal-width","modal-height","input","button-select","button-clear","button-save-selected","preview","preview-width","preview-height"]}get type(){return this.getAttribute("type")}set type(t){this.setAttribute("type",t)}get basePath(){return this.getAttribute("base-path")}set basePath(t){this.setAttribute("base-path",t)}get rootFolder(){return this.getAttribute("root-folder")}set rootFolder(t){this.setAttribute("root-folder",t)}get url(){return this.getAttribute("url")}set url(t){this.setAttribute("url",t)}get modalContainer(){return this.getAttribute("modal-container")}set modalContainer(t){this.setAttribute("modal-container",t)}get input(){return this.getAttribute("input")}set input(t){this.setAttribute("input",t)}get buttonSelect(){return this.getAttribute("button-select")}set buttonSelect(t){this.setAttribute("button-select",t)}get buttonClear(){return this.getAttribute("button-clear")}set buttonClear(t){this.setAttribute("button-clear",t)}get buttonSaveSelected(){return this.getAttribute("button-save-selected")}set buttonSaveSelected(t){this.setAttribute("button-save-selected",t)}get modalWidth(){return this.getAttribute(parseInt("modal-width",10))}set modalWidth(t){this.setAttribute("modal-width",t)}get modalHeight(){return this.getAttribute(parseInt("modal-height",10))}set modalHeight(t){this.setAttribute("modal-height",t)}get previewWidth(){return this.getAttribute(parseInt("preview-width",10))}set previewWidth(t){this.setAttribute("preview-width",t)}get previewHeight(){return this.getAttribute(parseInt("preview-height",10))}set previewHeight(t){this.setAttribute("preview-height",t)}get preview(){return this.getAttribute("preview")}set preview(t){this.setAttribute("preview",t)}get previewContainer(){return this.getAttribute("preview-container")}connectedCallback(){const t=this.querySelector(this.buttonSelect),e=this.querySelector(this.buttonClear);this.show=this.show.bind(this),this.modalClose=this.modalClose.bind(this),this.clearValue=this.clearValue.bind(this),this.setValue=this.setValue.bind(this),this.updatePreview=this.updatePreview.bind(this),t.addEventListener("click",this.show),e&&e.addEventListener("click",this.clearValue),this.updatePreview()}disconnectedCallback(){this.querySelector(this.buttonClear).removeEventListener("click",this)}show(){const t=this;i(this.querySelector('[role="dialog"]')).modal("show"),i(this.querySelector(this.buttonSaveSelected)).on("click",e=>(e.preventDefault(),e.stopPropagation(),this.selectedPath&&t.setValue(this.selectedPath),t.modalClose(),!1))}modalClose(){const t=this.querySelector(this.input);e.getImage(e.selectedFile,t,this),i(this.querySelector('[role="dialog"]')).modal("hide")}setValue(t){i(this.querySelector(this.input)).val(t).trigger("change"),this.updatePreview()}clearValue(){this.setValue("")}updatePreview(){if(-1!==["true","static"].indexOf(this.preview)&&"false"!==this.preview&&this.preview){const t=this.querySelector(this.input).value,i=this.querySelector(".field-media-preview");if(t){i.innerHTML="";const s=new Image;switch(this.type){case"image":s.src=s.src=/http/.test(t)?t:e.getOptions("system.paths").rootFull+t}i.style.width=this.previewWidth,i.appendChild(s)}else i.innerHTML='<span class="field-media-preview-icon fa fa-picture-o"></span>'}}})})(customElements,Joomla,jQuery);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L93

Insecure DOM Manipulation (XSS) in joomla-field-module-order-es5.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-module-order-es5.js:93
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- node.innerHTML = item[2];
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-field-module-order-es5.min.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-module-order-es5.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){return function e(t,i,n){function r(l,a){if(!i[l]){if(!t[l]){var s="function"==typeof require&&require;if(!a&&s)return s(l,!0);if(o)return o(l,!0);var u=new Error("Cannot find module '"+l+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[l]={exports:{}};t[l][0].call(d.exports,function(e){return r(t[l][1][e]||e)},d,d.exports,e,t,i,n)}return i[l].exports}for(var o="function"==typeof require&&require,l=0;l<n.length;l++)r(n[l]);return r}}()({1:[function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}();customElements.define("joomla-field-module-order",function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.linkedFieldSelector="",e.linkedFieldElement="",e.originalPosition="",e.writeDynaList.bind(e),e.getNewOrder.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,HTMLElement),r(t,[{key:"connectedCallback",value:function(){if(this.linkedFieldSelector=this.getAttribute("data-linked-field")||"jform_position",!this.linkedFieldSelector)throw new Error("No linked field defined!");if(this.linkedFieldElement=document.getElementById(this.linkedFieldSelector),!this.linkedFieldElement)throw new Error("No linked field defined!");var e=this;this.originalPosition=this.linkedFieldElement.value,this.getNewOrder(this.originalPosition),this.linkedFieldElement.addEventListener("change",function(){e.originalPosition=e.linkedFieldElement.value,e.getNewOrder(e.linkedFieldElement.value)})}},{key:"writeDynaList",value:function(e,t,i,n){var r=0,o=document.createElement("select");for(var l in this.hasOwnProperty("disabled")&&o.setAttribute("disabled",""),this.getAttribute("onchange")&&o.setAttribute("onchange",this.getAttribute("onchange")),this.getAttribute("size")&&o.setAttribute("size",this.getAttribute("size")),o.classList.add(e.itemClass),o.setAttribute("name",e.name),o.id=e.id,t)if(t.hasOwnProperty(l)){var a=document.createElement("option"),s=t[l];a.value=s[1],a.innerHTML=s[2],(i&&n===s[1]||!i&&0===r)&&a.setAttribute("selected","selected"),o.appendChild(a),r++}this.innerHTML="",this.appendChild(o)}},{key:"getNewOrder",value:function(e){var t=this.getAttribute("data-url"),i=this.getAttribute("data-client-id"),r=this.getAttribute("data-ordering"),o=this.getAttribute("data-name"),l=this.getAttribute("data-client-attr")?this.getAttribute("data-client-attr"):"custom-select",a=this.getAttribute("id")+"_1",s=[],u=this;Joomla.request({url:t+"client_id="+i+"&position="+e,method:"GET",perform:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:function(e,t){if(e&&(e=JSON.parse(e)).data.length>0){for(var i=0;i<e.data.length;++i)s[i]=e.data[i].split(",");u.writeDynaList({name:o,id:a,itemClass:l},s,u.originalPosition,r)}"object"==n(e.messages)&&null!==e.messages&&Joomla.renderMessages(e.messages)}})}}]),t}())},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L78

Insecure DOM Manipulation (XSS) in joomla-field-subform-es5.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-subform-es5.js:78
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- });if (a[0] && (this.template = a[0].innerHTML), !this.template) throw new Error('The row template are required to subform element to work');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L92

Insecure DOM Manipulation (XSS) in joomla-field-user.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-user.js:92
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.modalBody.innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L272

Insecure DOM Manipulation (XSS) in awesomplete.js

CWE-79
File Location: media/vendor/awesomplete/js/awesomplete.js:272
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.ul.innerHTML = "";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in awesomplete.min.js

CWE-79
File Location: media/vendor/awesomplete/js/awesomplete.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){var t=function(e,i){var s=this;this.isOpened=!1,this.input=n(e),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),i=i||{},function(t,e,i){for(var n in e){var s=e[n],r=t.input.getAttribute("data-"+n.toLowerCase());"number"==typeof s?t[n]=parseInt(r):!1===s?t[n]=null!==r:s instanceof Function?t[n]=null:t[n]=r,t[n]||0===t[n]||(t[n]=n in i?i[n]:s)}}(this,{minChars:2,maxItems:10,autoFirst:!1,data:t.DATA,filter:t.FILTER_CONTAINS,sort:!1!==i.sort&&t.SORT_BYLENGTH,item:t.ITEM,replace:t.REPLACE},i),this.index=-1,this.container=n.create("div",{className:"awesomplete",around:e}),this.ul=n.create("ul",{hidden:"hidden",inside:this.container}),this.status=n.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-relevant":"additions",inside:this.container}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(t){var e=t.keyCode;s.opened&&(13===e&&s.selected?(t.preventDefault(),s.select()):27===e?s.close({reason:"esc"}):38!==e&&40!==e||(t.preventDefault(),s[38===e?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(t){var e=t.target;if(e!==this){for(;e&&!/li/i.test(e.nodeName);)e=e.parentNode;e&&0===t.button&&(t.preventDefault(),s.select(e,t.target))}}}},n.bind(this.input,this._events.input),n.bind(this.input.form,this._events.form),n.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||i.list||[],t.all.push(this)};function e(t){var e=Array.isArray(t)?{label:t[0],value:t[1]}:"object"==typeof t&&"label"in t&&"value"in t?t:{label:t,value:t};this.label=e.label||e.value,this.value=e.value}t.prototype={set list(t){if(Array.isArray(t))this._list=t;else if("string"==typeof t&&t.indexOf(",")>-1)this._list=t.split(/\s*,\s*/);else if((t=n(t))&&t.children){var e=[];i.apply(t.children).forEach(function(t){if(!t.disabled){var i=t.textContent.trim(),n=t.value||i,s=t.label||i;""!==n&&e.push({label:s,value:n})}}),this._list=e}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(t){this.opened&&(this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,n.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.autoFirst&&-1===this.index&&this.goto(0),n.fire(this.input,"awesomplete-open")},destroy:function(){n.unbind(this.input,this._events.input),n.unbind(this.input.form,this._events.form);var e=this.container.parentNode;e.insertBefore(this.input,this.container),e.removeChild(this.container),this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var i=t.all.indexOf(this);-1!==i&&t.all.splice(i,1)},next:function(){var t=this.ul.children.length;this.goto(this.index<t-1?this.index+1:t?0:-1)},previous:function(){var t=this.ul.children.length,e=this.index-1;this.goto(this.selected&&-1!==e?e:t-1)},goto:function(t){var e=this.ul.children;this.selected&&e[this.index].setAttribute("aria-selected","false"),this.index=t,t>-1&&e.length>0&&(e[t].setAttribute("aria-selected","true"),this.status.textContent=e[t].textContent,this.ul.scrollTop=e[t].offsetTop-this.ul.clientHeight+e[t].clientHeight,n.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=n.siblingIndex(t):t=this.ul.children[this.index],t){var i=this.suggestions[this.index];n.fire(this.input,"awesomplete-select",{text:i,origin:e||t})&&(this.replace(i),this.close({reason:"select"}),n.fire(this.input,"awesomplete-selectcomplete",{text:i}))}},evaluate:function(){var t=this,i=this.input.value;i.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(n){return new e(t.data(n,i))}).filter(function(e){return t.filter(e,i)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(e){t.ul.appendChild(t.item(e,i))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},t.all=[],t.FILTER_CONTAINS=function(t,e){return RegExp(n.regExpEscape(e.trim()),"i").test(t)},t.FILTER_STARTSWITH=function(t,e){return RegExp("^"+n.regExpEscape(e.trim()),"i").test(t)},t.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},t.ITEM=function(t,e){var i=""===e.trim()?t:t.replace(RegExp(n.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>");return n.create("li",{innerHTML:i,"aria-selected":"false"})},t.REPLACE=function(t){this.input.value=t.value},t.DATA=function(t){return t},Object.defineProperty(e.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),e.prototype.toString=e.prototype.valueOf=function(){return""+this.label};var i=Array.prototype.slice;function n(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function s(t,e){return i.call((e||document).querySelectorAll(t))}function r(){s("input.awesomplete").forEach(function(e){new t(e)})}n.create=function(t,e){var i=document.createElement(t);for(var s in e){var r=e[s];if("inside"===s)n(r).appendChild(i);else if("around"===s){var o=n(r);o.parentNode.insertBefore(i,o),i.appendChild(o)}else s in i?i[s]=r:i.setAttribute(s,r)}return i},n.bind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.addEventListener(e,n)})}},n.unbind=function(t,e){if(t)for(var i in e){var n=e[i];i.split(/\s+/).forEach(function(e){t.removeEventListener(e,n)})}},n.fire=function(t,e,i){var n=document.createEvent("HTMLEvents");for(var s in n.initEvent(e,!0,!0),i)n[s]=i[s];return t.dispatchEvent(n)},n.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},n.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof Document&&("loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)),t.$=n,t.$$=s,"undefined"!=typeof self&&(self.Awesomplete=t),"object"==typeof module&&module.exports&&(module.exports=t)}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in runmode.min.js

CWE-79
File Location: media/vendor/codemirror/addon/runmode/runmode.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.runMode=function(t,n,r,o){var a=e.getMode(e.defaults,n),d=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<9);if(r.appendChild){var i=o&&o.tabSize||e.defaults.tabSize,c=r,l=0;c.innerHTML="",r=function(e,t){if("\n"==e)return c.appendChild(document.createTextNode(d?"\r":e)),void(l=0);for(var n="",r=0;;){var o=e.indexOf("\t",r);if(-1==o){n+=e.slice(r),l+=e.length-r;break}l+=o-r,n+=e.slice(r,o);var a=i-l%i;l+=a;for(var u=0;u<a;++u)n+=" ";r=o+1}if(t){var f=c.appendChild(document.createElement("span"));f.className="cm-"+t.replace(/ +/g," cm-"),f.appendChild(document.createTextNode(n))}else c.appendChild(document.createTextNode(n))}}for(var u=e.splitLines(t),f=o&&o.state||e.startState(a),s=0,p=u.length;s<p;++s){s&&r("\n");var m=new e.StringStream(u[s]);for(!m.string&&a.blankLine&&a.blankLine(f);!m.eol();){var v=a.token(m,f);r(m.current(),v,s,m.start,f),m.start=m.pos}}}});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3611

Insecure DOM Manipulation (XSS) in cropper.js

CWE-79
File Location: media/vendor/cropperjs/js/cropper.js:3611
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- template.innerHTML = TEMPLATE;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L107

Insecure DOM Manipulation (XSS) in joomla-alert.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert.js:107
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- closeButton.innerHTML = '<span aria-hidden="true">&times;</span>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-alert.min.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (()=>{customElements.define("joomla-alert",class extends HTMLElement{static get observedAttributes(){return["type","dismiss","acknowledge","href"]}get type(){return this.getAttribute("type")}set type(t){return this.setAttribute("type",t)}get dismiss(){return this.getAttribute("dismiss")}get acknowledge(){return this.getAttribute("acknowledge")}get href(){return this.getAttribute("href")}constructor(){super()}connectedCallback(){this.setAttribute("role","alert"),this.classList.add("joomla-alert--show"),this.type&&-1!==["info","warning","danger","success"].indexOf(this.type)||this.setAttribute("type","info"),(this.hasAttribute("dismiss")||this.hasAttribute("acknowledge")||this.hasAttribute("href")&&""!==this.getAttribute("href")&&!this.querySelector("button.joomla-alert--close")&&!this.querySelector("button.joomla-alert-button--close"))&&this.appendCloseButton(),this.dispatchCustomEvent("joomla.alert.show");let t=this.querySelector("button.joomla-alert--close")||this.querySelector("button.joomla-alert-button--close");t&&t.focus()}disconnectedCallback(){this.removeEventListener("joomla.alert.show",this),this.removeEventListener("joomla.alert.close",this),this.removeEventListener("joomla.alert.closed",this),this.firstChild.tagName&&"button"===this.firstChild.tagName.toLowerCase()&&this.firstChild.removeEventListener("click",this)}attributeChangedCallback(t,e,s){switch(t){case"type":(!s||s&&-1===["info","warning","danger","success"].indexOf(s))&&(this.type="info");break;case"dismiss":case"acknowledge":s&&"true"!==s?this.removeCloseButton():this.appendCloseButton();break;case"href":s&&""!==s?this.querySelector("button.joomla-alert-button--close")||this.appendCloseButton():this.removeCloseButton()}}close(){this.dispatchCustomEvent("joomla.alert.close"),this.addEventListener("transitionend",function(){this.dispatchCustomEvent("joomla.alert.closed"),this.parentNode.removeChild(this)},!1),this.classList.remove("joomla-alert--show")}dispatchCustomEvent(t){let e=new CustomEvent(t);e.relatedTarget=this,this.dispatchEvent(e),this.removeEventListener(t,this)}appendCloseButton(){if(this.querySelector("button.joomla-alert--close")||this.querySelector("button.joomla-alert-button--close"))return;let t=this,e=document.createElement("button");this.hasAttribute("dismiss")?(e.classList.add("joomla-alert--close"),e.innerHTML='<span aria-hidden="true">&times;</span>',e.setAttribute("aria-label",this.getText("JCLOSE","Close"))):(e.classList.add("joomla-alert-button--close"),this.hasAttribute("acknowledge")?e.innerHTML=this.getText("JOK","ok"):e.innerHTML=this.getText("JOPEN","Open")),this.firstChild?this.insertBefore(e,this.firstChild):this.appendChild(e),e&&(this.href?e.addEventListener("click",function(){t.dispatchCustomEvent("joomla.alert.buttonClicked"),window.location.href=t.href,t.close()}):e.addEventListener("click",function(){t.dispatchCustomEvent("joomla.alert.buttonClicked"),t.getAttribute("data-callback")?(window[t.getAttribute("data-callback")](),t.close()):t.close()})),this.hasAttribute("auto-dismiss")&&setTimeout(function(){t.dispatchCustomEvent("joomla.alert.buttonClicked"),t.hasAttribute("data-callback")?window[t.getAttribute("data-callback")]():t.close()},parseInt(t.getAttribute("auto-dismiss"))?t.getAttribute("auto-dismiss"):3e3)}removeCloseButton(){let t=this.querySelector("button");t&&(t.removeEventListener("click",this),t.parentNode.removeChild(t))}getText(t,e){return window.Joomla&&Joomla.JText&&Joomla.JText._&&"function"==typeof Joomla.JText._&&Joomla.JText._(t)?Joomla.JText._(t):e}})})();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-panels.js

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-panels.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- class JoomlaPanelsElement extends HTMLElement{static get observedAttributes(){return["recall","orientation","view","responsive","collapse-width"]}get recall(){return this.getAttribute("recall")}set recall(t){return this.setAttribute("recall",t)}get view(){return this.getAttribute("view")}set view(t){this.setAttribute("view",t)}get orientation(){return this.getAttribute("orientation")||"horizontal"}set orientation(t){this.setAttribute("orientation",t)}get responsive(){return this.getAttribute("responsive")}set responsive(t){this.setAttribute("responsive",t)}get collapseWidth(){return this.getAttribute("collapse-width")}set collapseWidth(t){this.setAttribute("collapse-width",t)}constructor(){super(),this.hasActive=!1,this.currentActive="",this.hasNested=!1,this.isNested=!1,this.tabs=[],this.tabsLinks=[],this.panels=[],this.tabLinkHash=[]}connectedCallback(){if((!this.orientation||this.orientation&&-1===["horizontal","vertical"].indexOf(this.orientation))&&this.setAttribute("orientation","horizontal"),this.view=this.getAttribute("view")||"tabs",this.recall=this.recall||"false",this.responsive=this.getAttribute("responsive")||"false",this.collapseWidth=this.getAttribute("collapseWidth")||0,this.panels=[].slice.call(this.querySelectorAll("section")),!this.panels.length)throw new Error("`Joomla-panels` require one ore more panels!");if(this.findAncestorByTagNme(this,"joomla-tab")&&(this.isNested=!0),this.querySelector("joomla-tab")&&(this.hasNested=!0),this.recall){const t=sessionStorage.getItem(this.getStorageKey());t&&!/@\[/.test(t)&&this.tabLinkHash.push(t),this.setTabState()}"ul"!==this.firstElementChild.tagName&&this.createNavigation(),this.panels.forEach(t=>{t.setAttribute("role","tabpanel"),this.tabs.push(`#tab-${t.id}`),t.hasAttribute("active")&&(this.hasActive=!0,this.currentActive=t.id,this.querySelector(`#tab-${t.id}`).setAttribute("aria-selected","true"),this.querySelector(`#tab-${t.id}`).setAttribute("active",""),this.querySelector(`#tab-${t.id}`).setAttribute("tabindex","0"))}),this.hasActive||(this.tabsLinks[0].setAttribute("active",""),this.hasActive=!0,this.currentActive=this.panels[0].id,this.tabsLinks[0].setAttribute("aria-selected","true"),this.tabsLinks[0].setAttribute("tabindex","0"),this.tabsLinks[0].setAttribute("active",""),this.panels[0].setAttribute("active","")),window.location.href.match(/#tab-/),"accordion"===this.view&&this.toAccordion.bind(this)(),"true"===this.responsive&&(this.changeView.bind(this),window.addEventListener("resize",this.changeView.bind(this)))}disconnectedCallback(){const t=this,e=this.querySelector("ul");[].slice.call(e.querySelectorAll("a")).forEach(e=>{e.removeEventListener("click",t.activateTabFromLink,!0)}),e.removeEventListener("keydown",t.keyBehaviour,!0)}createNavigation(){const t=this;let e="";"ul"!==this.firstElementChild.tagName.toLowerCase()&&(e=document.createElement("ul")),e.setAttribute("role","tablist"),this.panels.forEach(i=>{if(!i.id)throw new Error("`joomla-panels` All panels require an ID");if(i.parentNode!==this)return;const s=i.getAttribute("active")||!1,a=document.createElement("li"),r=document.createElement("a");a.setAttribute("role","presentation"),r.setAttribute("role","tab"),r.setAttribute("aria-controls",i.id),r.setAttribute("aria-selected",s?"true":"false"),r.setAttribute("tabindex",s?"0":"-1"),r.setAttribute("href",`#${i.id}`),r.setAttribute("id",`tab-${i.id}`),r.innerHTML=i.getAttribute("name"),s&&r.setAttribute("active",""),r.addEventListener("click",t.activateTabFromLink.bind(t)),this.tabsLinks.push(r),a.append(r),e.append(a),i.setAttribute("aria-labelledby",`tab-${i.id}`),s||i.setAttribute("aria-hidden","true")}),this.insertAdjacentElement("afterbegin",e),this.querySelector("ul").addEventListener("keydown",this.keyBehaviour.bind(this))}hideCurrent(){if(this.currentActive){const t=this.querySelector(`a[aria-controls="${this.currentActive}"]`);this.dispatchCustomEvent("joomla.tab.hide",t,this.querySelector(`#tab-${this.currentActive}`)),t.removeAttribute("active"),t.setAttribute("tabindex","-1"),this.querySelector(`#${this.currentActive}`).removeAttribute("active"),this.querySelector(`#${this.currentActive}`).setAttribute("aria-hidden","true"),t.removeAttribute("aria-selected"),this.dispatchCustomEvent("joomla.tab.hidden",t,this.querySelector(`#tab-${this.currentActive}`))}}activateTabFromLink(t){t.preventDefault();const e=this.currentActive;this.hasActive&&this.hideCurrent(),this.dispatchCustomEvent("joomla.tab.show",t.target,this.querySelector(`#tab-${e}`)),t.target.setAttribute("active",""),t.target.setAttribute("aria-selected","true"),t.target.setAttribute("tabindex","0"),this.querySelector(t.target.hash).setAttribute("active",""),this.querySelector(t.target.hash).removeAttribute("aria-hidden"),this.currentActive=t.target.hash.substring(1),this.dispatchCustomEvent("joomla.tab.shown",t.target,this.querySelector(`#tab-${e}`)),this.saveState(`#tab-${t.target.hash.substring(1)}`)}showTab(t){document.querySelector(`#tab-${t.id}`).click()}show(t){t.click()}keyBehaviour(t){const e=this.querySelector(`#tab-${this.currentActive}`),i=e.parentNode.previousElementSibling||e.parentNode.parentNode.lastElementChild,s=e.parentNode.nextElementSibling||e.parentNode.parentNode.firstElementChild;if(!t.metaKey&&!t.altKey&&-1!==this.tabs.indexOf(`#${document.activeElement.id}`))switch(t.keyCode){case 37:case 38:t.preventDefault(),t.stopPropagation(),i.querySelector("a").click(),i.querySelector("a").focus();break;case 39:case 40:t.preventDefault(),t.stopPropagation(),s.querySelector("a").click(),s.querySelector("a").focus()}}getStorageKey(){return window.location.href.toString().split(window.location.host)[1].replace(/&return=[a-zA-Z0-9%]+/,"").split("#")[0]}saveState(t){const e=this.getStorageKey();sessionStorage.setItem(e,t)}setTabState(){const t=this,e=this.tabsLinks;if(this.hasNested){if(this.tabLinkHash.length&&""!==this.tabLinkHash[0]){const t=this.tabLinkHash[0].substring(5),e=this.querySelector(`${t}`);if(e){const t=this.findAncestorByTagNme(e,"joomla-tab");if(this.findAncestorByTagNme(t,"joomla-tab")){const e=this.findAncestorByTagNme(t,"section");e&&this.tabLinkHash.push(`#tab-${e.id}`)}}}e.forEach(e=>{if(this.tabLinkHash.length){const t=`#tab-${e.id}`;-1===this.tabLinkHash.indexOf(t)?e.removeAttribute("active"):e.setAttribute("active","")}e.parentNode===t&&this.tabsLinks.push(e)})}else e.forEach(t=>{if(this.tabLinkHash.length){const e=`#tab-${t.hash}`;this.tabLinkHash.indexOf(e)>-1?t.removeAttribute("active"):t.setAttribute("active","")}}),this.tabsLinks=e}toTabs(){const t=this;for(let t=0,e=this.panels.length;t<e;++t)this.panels[t].parentNode.parentNode.parentNode===this&&this.tabsLinks.push(this.panels[t]);this.tabsLinks.length&&this.tabsLinks.forEach(e=>{t.appendChild(e)})}toAccordion(){const t=this;this.panels.length&&this.panels.forEach(e=>{t.querySelector('a[aria-controls="'+e.id+'"]').parentNode.appendChild(e)})}changeView(){if(window.outerWidth>920){if("tabs"===this.view)return;this.toTabs.bind(this),this.view="tabs"}else{if("accordion"===this.view)return;this.toAccordion.bind(this),this.view="accordion"}}activateUriHash(){const t=window.location.href.match(/#\S[^&]*/),e=this.querySelector(t[0]);if(e){const t=this.findAncestorByTagNme(e,"joomla-tab"),i=this.findAncestorByTagNme(t,"joomla-tab");if(i){const s=this.findAncestorByTagNme(t,"section");i.showTab(s),this.show(e)}else this.showTab(e)}}findAncestorByTagNme(t,e){for(;(t=t.parentElement)&&t.nodeName.toLowerCase()!==e;);return t}dispatchCustomEvent(t,e,i){const s=new CustomEvent(t,{bubbles:!0,cancelable:!0});i&&(s.relatedTarget=i),e.dispatchEvent(s),e.removeEventListener(t,e)}}customElements.define("joomla-panels",JoomlaPanelsElement);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1492

Insecure DOM Manipulation (XSS) in jquery.ui.core.js

CWE-79
File Location: media/vendor/jquery-ui/js/jquery.ui.core.js:1492
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- testElement.innerHTML = "";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in jquery.ui.core.min.js

CWE-79
File Location: media/vendor/jquery-ui/js/jquery.ui.core.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(t,e){var i,o,n=0,s=/^ui-id-\d+$/;(t.ui=t.ui||{},t.ui.version)||(t.extend(t.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({_focus:t.fn.focus,focus:function(e,i){return"number"==typeof e?this.each(function(){var o=this;setTimeout(function(){t(o).focus(),i&&i.call(o)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,o,n=t(this[0]);n.length&&n[0]!==document;){if(("absolute"===(i=n.css("position"))||"relative"===i||"fixed"===i)&&(o=parseInt(n.css("zIndex"),10),!isNaN(o)&&0!==o))return o;n=n.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){s.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,o){return!!t.data(e,o[3])},focusable:function(e){return r(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var i=t.attr(e,"tabindex"),o=isNaN(i);return(o||i>=0)&&r(e,!o)}}),t(function(){var e=document.body,i=e.appendChild(i=document.createElement("div"));i.offsetHeight,t.extend(i.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),t.support.minHeight=100===i.offsetHeight,t.support.selectstart="onselectstart"in i,e.removeChild(i).style.display="none"}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(e,i){var o="Width"===i?["Left","Right"]:["Top","Bottom"],n=i.toLowerCase(),s={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};function r(e,i,n,s){return t.each(o,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),s&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}t.fn["inner"+i]=function(e){return void 0===e?s["inner"+i].call(this):this.each(function(){t(this).css(n,r(this,e)+"px")})},t.fn["outer"+i]=function(e,o){return"number"!=typeof e?s["outer"+i].call(this,e):this.each(function(){t(this).css(n,r(this,e,!0,o)+"px")})}}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=(i=t.fn.removeData,function(e){return arguments.length?i.call(this,t.camelCase(e)):i.call(this)})),o=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[],t.ui.ie=!!o.length,t.ui.ie6=6===parseFloat(o[1],10),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,o){var n,s=t.ui[e].prototype;for(n in o)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([i,o[n]])},call:function(t,e,i){var o,n=t.plugins[e];if(n&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(o=0;o<n.length;o++)t.options[n[o][0]]&&n[o][1].apply(t.element,i)}},contains:t.contains,hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var o,n=i&&"left"===i?"scrollLeft":"scrollTop";return e[n]>0||(e[n]=1,o=e[n]>0,e[n]=0,o)},isOverAxis:function(t,e,i){return t>e&&t<e+i},isOver:function(e,i,o,n,s,r){return t.ui.isOverAxis(e,o,s)&&t.ui.isOverAxis(i,n,r)}}));function r(e,i){var o,n,s,r=e.nodeName.toLowerCase();return"area"===r?(n=(o=e.parentNode).name,!(!e.href||!n||"map"!==o.nodeName.toLowerCase())&&(!!(s=t("img[usemap=#"+n+"]")[0])&&a(s))):(/input|select|textarea|button|object/.test(r)?!e.disabled:"a"===r&&e.href||i)&&a(e)}function a(e){return t.expr.filters.visible(e)&&!t(e).parents().andSelf().filter(function(){return"hidden"===t.css(this,"visibility")}).length}}(jQuery),function(t,e){var i=0,o=Array.prototype.slice,n=t.cleanData;t.cleanData=function(e){for(var i,o=0;null!=(i=e[o]);o++)try{t(i).triggerHandler("remove")}catch(t){}n(e)},t.widget=function(e,i,o){var n,s,r,a,u=e.split(".")[0];e=e.split(".")[1],n=u+"-"+e,o||(o=i,i=t.Widget),t.expr[":"][n.toLowerCase()]=function(e){return!!t.data(e,n)},t[u]=t[u]||{},s=t[u][e],r=t[u][e]=function(t,e){if(!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},t.extend(r,s,{version:o.version,_proto:t.extend({},o),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(o,function(e,n){var s,r;t.isFunction(n)&&(o[e]=(s=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=s,this._superApply=r,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}))}),r.prototype=t.widget.extend(a,{widgetEventPrefix:s?a.widgetEventPrefix:e},o,{constructor:r,namespace:u,widgetName:e,widgetBaseClass:n,widgetFullName:n}),s?(t.each(s._childConstructors,function(e,i){var o=i.prototype;t.widget(o.namespace+"."+o.widgetName,r,i._proto)}),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(e){for(var i,n,s=o.call(arguments,1),r=0,a=s.length;r<a;r++)for(i in s[r])n=s[r][i],s[r].hasOwnProperty(i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(s){var r="string"==typeof s,a=o.call(arguments,1),u=this;return s=!r&&a.length?t.widget.extend.apply(null,[s].concat(a)):s,r?this.each(function(){var i,o=t.data(this,n);return o?t.isFunction(o[s])&&"_"!==s.charAt(0)?(i=o[s].apply(o,a))!==o&&void 0!==i?(u=i&&i.jquery?u.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+s+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")}):this.each(function(){var e=t.data(this,n);e?e.option(s||{})._init():t.data(this,n,new i(s,this))}),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,o){o=t(o||this.defaultElement||this)[0],this.element=t(o),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),o!==this&&(t.data(o,this.widgetName,this),t.data(o,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===o&&this.destroy()}}),this.document=t(o.style?o.ownerDocument:o.document||o),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var o,n,s,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},e=(o=e.split(".")).shift(),o.length){for(n=r[e]=t.widget.extend({},this.options[e]),s=0;s<o.length-1;s++)n[o[s]]=n[o[s]]||{},n=n[o[s]];if(e=o.pop(),void 0===i)return void 0===n[e]?null:n[e];n[e]=i}else{if(void 0===i)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,o){var n,s=this;"boolean"!=typeof e&&(o=i,i=e,e=!1),o?(i=n=t(i),this.bindings=this.bindings.add(i)):(o=i,i=this.element,n=this.widget()),t.each(o,function(o,r){function a(){if(e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?s[r]:r).apply(s,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var u=o.match(/^(\w+)\s*(.*)$/),l=u[1]+s.eventNamespace,h=u[2];h?n.delegate(h,l,a):i.bind(l,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,o){var n,s,r=this.options[e];if(o=o||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(n in s)n in i||(i[n]=s[n]);return this.element.trigger(i,o),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(o))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(o,n,s){"string"==typeof n&&(n={effect:n});var r,a=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})&&(n={duration:n}),r=!t.isEmptyObject(n),n.complete=s,n.delay&&o.delay(n.delay),r&&t.effects&&(t.effects.effect[a]||!1!==t.uiBackCompat&&t.effects[a])?o[e](n):a!==e&&o[a]?o[a](n.duration,n.easing,s):o.queue(function(i){t(this)[e](),s&&s.call(o[0]),i()})}}),!1!==t.uiBackCompat&&(t.Widget.prototype._getCreateOptions=function(){return t.metadata&&t.metadata.get(this.element[0])[this.widgetName]})}(jQuery),function(t,e){var i=!1;t(document).mouseup(function(t){i=!1}),t.widget("ui.mouse",{version:"1.9.2",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var o=this,n=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){o.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return o._mouseMove(t)},this._mouseUpDelegate=function(t){return o._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0))}},_mouseMove:function(e){return!t.ui.ie||document.documentMode>=9||e.button?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(t){return this.mouseDelayMet},_mouseStart:function(t){},_mouseDrag:function(t){},_mouseStop:function(t){},_mouseCapture:function(t){return!0}})}(jQuery),function(t,e){t.ui=t.ui||{};var i,o=Math.max,n=Math.abs,s=Math.round,r=/left|center|right/,a=/top|center|bottom/,u=/[\+\-]\d+%?/,l=/^\w+/,h=/%$/,c=t.fn.position;function d(t,e,i){return[parseInt(t[0],10)*(h.test(t[0])?e/100:1),parseInt(t[1],10)*(h.test(t[1])?i/100:1)]}function f(e,i){return parseInt(t.css(e,i),10)||0}t.position={scrollbarWidth:function(){if(void 0!==i)return i;var e,o,n=t("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=n.children()[0];return t("body").append(n),e=s.offsetWidth,n.css("overflow","scroll"),e===(o=s.offsetWidth)&&(o=n[0].clientWidth),n.remove(),i=e-o},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),o=e.isWindow?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,s="scroll"===o||"auto"===o&&e.height<e.element[0].scrollHeight;return{width:n?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),o=t.isWindow(i[0]);return{element:i,isWindow:o,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:o?i.width():i.outerWidth(),height:o?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return c.apply(this,arguments);e=t.extend({},e);var i,h,p,m,g,v=t(e.of),w=t.position.getWithinInfo(e.within),_=t.position.getScrollInfo(w),y=v[0],b=(e.collision||"flip").split(" "),x={};return 9===y.nodeType?(h=v.width(),p=v.height(),m={top:0,left:0}):t.isWindow(y)?(h=v.width(),p=v.height(),m={top:v.scrollTop(),left:v.scrollLeft()}):y.preventDefault?(e.at="left top",h=p=0,m={top:y.pageY,left:y.pageX}):(h=v.outerWidth(),p=v.outerHeight(),m=v.offset()),g=t.extend({},m),t.each(["my","at"],function(){var t,i,o=(e[this]||"").split(" ");1===o.length&&(o=r.test(o[0])?o.concat(["center"]):a.test(o[0])?["center"].concat(o):["center","center"]),o[0]=r.test(o[0])?o[0]:"center",o[1]=a.test(o[1])?o[1]:"center",t=u.exec(o[0]),i=u.exec(o[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[l.exec(o[0])[0],l.exec(o[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===e.at[0]?g.left+=h:"center"===e.at[0]&&(g.left+=h/2),"bottom"===e.at[1]?g.top+=p:"center"===e.at[1]&&(g.top+=p/2),i=d(x.at,h,p),g.left+=i[0],g.top+=i[1],this.each(function(){var r,a,u=t(this),l=u.outerWidth(),c=u.outerHeight(),y=f(this,"marginLeft"),D=f(this,"marginTop"),N=l+y+f(this,"marginRight")+_.width,W=c+D+f(this,"marginBottom")+_.height,C=t.extend({},g),E=d(x.my,u.outerWidth(),u.outerHeight());"right"===e.my[0]?C.left-=l:"center"===e.my[0]&&(C.left-=l/2),"bottom"===e.my[1]?C.top-=c:"center"===e.my[1]&&(C.top-=c/2),C.left+=E[0],C.top+=E[1],t.support.offsetFractions||(C.left=s(C.left),C.top=s(C.top)),r={marginLeft:y,marginTop:D},t.each(["left","top"],function(o,n){t.ui.position[b[o]]&&t.ui.position[b[o]][n](C,{targetWidth:h,targetHeight:p,elemWidth:l,elemHeight:c,collisionPosition:r,collisionWidth:N,collisionHeight:W,offset:[i[0]+E[0],i[1]+E[1]],my:e.my,at:e.at,within:w,elem:u})}),t.fn.bgiframe&&u.bgiframe(),e.using&&(a=function(t){var i=m.left-C.left,s=i+h-l,r=m.top-C.top,a=r+p-c,d={target:{element:v,left:m.left,top:m.top,width:h,height:p},element:{element:u,left:C.left,top:C.top,width:l,height:c},horizontal:s<0?"left":i>0?"right":"center",vertical:a<0?"top":r>0?"bottom":"middle"};h<l&&n(i+s)<h&&(d.horizontal="center"),p<c&&n(r+a)<p&&(d.vertical="middle"),o(n(i),n(s))>o(n(r),n(a))?d.important="horizontal":d.important="vertical",e.using.call(this,t,d)}),u.offset(t.extend(C,{using:a}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,a=t.left-e.collisionPosition.marginLeft,u=s-a,l=a+e.collisionWidth-r-s;e.collisionWidth>r?u>0&&l<=0?(i=t.left+u+e.collisionWidth-r-s,t.left+=u-i):t.left=l>0&&u<=0?s:u>l?s+r-e.collisionWidth:s:u>0?t.left+=u:l>0?t.left-=l:t.left=o(t.left-a,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,r=e.within.height,a=t.top-e.collisionPosition.marginTop,u=s-a,l=a+e.collisionHeight-r-s;e.collisionHeight>r?u>0&&l<=0?(i=t.top+u+e.collisionHeight-r-s,t.top+=u-i):t.top=l>0&&u<=0?s:u>l?s+r-e.collisionHeight:s:u>0?t.top+=u:l>0?t.top-=l:t.top=o(t.top-a,t.top)}},flip:{left:function(t,e){var i,o,s=e.within,r=s.offset.left+s.scrollLeft,a=s.width,u=s.isWindow?s.scrollLeft:s.offset.left,l=t.left-e.collisionPosition.marginLeft,h=l-u,c=l+e.collisionWidth-a-u,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];h<0?((i=t.left+d+f+p+e.collisionWidth-a-r)<0||i<n(h))&&(t.left+=d+f+p):c>0&&((o=t.left-e.collisionPosition.marginLeft+d+f+p-u)>0||n(o)<c)&&(t.left+=d+f+p)},top:function(t,e){var i,o,s=e.within,r=s.offset.top+s.scrollTop,a=s.height,u=s.isWindow?s.scrollTop:s.offset.top,l=t.top-e.collisionPosition.marginTop,h=l-u,c=l+e.collisionHeight-a-u,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,p=-2*e.offset[1];h<0?(o=t.top+d+f+p+e.collisionHeight-a-r,t.top+d+f+p>h&&(o<0||o<n(h))&&(t.top+=d+f+p)):c>0&&(i=t.top-e.collisionPosition.marginTop+d+f+p-u,t.top+d+f+p>c&&(i>0||n(i)<c)&&(t.top+=d+f+p))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,o,n,s,r=document.getElementsByTagName("body")[0],a=document.createElement("div");for(s in e=document.createElement(r?"div":"body"),o={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&t.extend(o,{position:"absolute",left:"-1000px",top:"-1000px"}),o)e.style[s]=o[s];e.appendChild(a),(i=r||document.documentElement).insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",n=t(a).offset().left,t.support.offsetFractions=n>10&&n<11,e.innerHTML="",i.removeChild(e)}(),!1!==t.uiBackCompat&&function(t){var e=t.fn.position;t.fn.position=function(i){if(!i||!i.offset)return e.call(this,i);var o=i.offset.split(" "),n=i.at.split(" ");return 1===o.length&&(o[1]=o[0]),/^\d/.test(o[0])&&(o[0]="+"+o[0]),/^\d/.test(o[1])&&(o[1]="+"+o[1]),1===n.length&&(/left|center|right/.test(n[0])?n[1]="center":(n[1]=n[0],n[0]="center")),e.call(this,t.extend(i,{at:n[0]+o[0]+" "+n[1]+o[1],offset:void 0}))}}(jQuery)}(jQuery);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2723

Insecure DOM Manipulation (XSS) in jquery.js

CWE-79
File Location: media/vendor/jquery/js/jquery.js:2723
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- el.innerHTML = "<input/>";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4773

Insecure DOM Manipulation (XSS) in jquery.js

CWE-79
File Location: media/vendor/jquery/js/jquery.js:4773
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L5981

Insecure DOM Manipulation (XSS) in jquery.js

CWE-79
File Location: media/vendor/jquery/js/jquery.js:5981
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- elem.innerHTML = value;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in jquery.min.js

CWE-79
File Location: media/vendor/jquery/js/jquery.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},y={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in y)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function T(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}b.fn=b.prototype={jquery:"3.3.1",constructor:b,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return b.each(this,e)},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},b.extend=b.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(b.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&b.isPlainObject(n)?n:{},a[t]=b.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},b.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){m(e)},each:function(e,t){var n,r=0;if(T(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(T(Object(e))?b.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(T(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=n[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var C=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),F=new RegExp("^"+M+"*,"+M+"*"),_=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!v||!v.test(e))){if(1!==T)m=t,y=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=a(e)).length;s--;)h[s]="#"+c+" "+ye(h[s]);y=h.join(","),m=K.test(e)&&ge(t.parentNode)||t}if(y)try{return L.apply(r,m.querySelectorAll(y)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",W)}),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?se(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ve(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function me(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function xe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function we(e,t,n,r,i,o){return r&&!r[b]&&(r=we(r)),i&&!i[b]&&(i=we(i,o)),se(function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:be(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=be(y,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&(l=i?O(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=be(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):L.apply(a,y)})}function Te(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[me(xe(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return we(u>1&&xe(p),u>1&&ye(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&Te(e.slice(u,i)),i<o&&Te(e=e.slice(i)),i<o&&ye(e))}p.push(n)}return xe(p)}return ve.prototype=r.filters=r.pseudos,r.setFilters=new ve,a=oe.tokenize=function(e,t){var n,i,o,a,s,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=F.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=_.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=V[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):k(e,u).slice(0)},s=oe.compile=function(e,t){var n,i=[],o=[],s=S[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Te(t[n]))[b]?i.push(s):o.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument===d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!v&&f)&&y--,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m--;)x[m]||b[m]||(b[m]=j.call(u));b=be(b)}L.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}(o,i))).selector=e}return s},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=V.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ye(u)))return L.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);b.find=C,b.expr=C.selectors,b.expr[":"]=b.expr.pseudos,b.uniqueSort=b.unique=C.uniqueSort,b.text=C.getText,b.isXMLDoc=C.isXML,b.contains=C.contains,b.escapeSelector=C.escape;var E=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&b(e).is(n))break;r.push(e)}return r},k=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=b.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,t,n){return g(t)?b.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?b.grep(e,function(e){return e===t!==n}):"string"!=typeof t?b.grep(e,function(e){return u.call(t,e)>-1!==n}):b.filter(t,e,n)}b.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?b.find.matchesSelector(r,e)?[r]:[]:b.find.matches(e,b.grep(t,function(e){return 1===e.nodeType}))},b.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(b(e).filter(function(){for(t=0;t<r;t++)if(b.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)b.find(e,i[t],n);return r>1?b.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&S.test(e)?b(e):e||[],!1).length}});var j,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:q.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),N.test(i[1])&&b.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this)}).prototype=b.fn,j=b(r);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(b.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&b(e);if(!S.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&b.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?b.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(b(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(b.uniqueSort(b.merge(this.get(),b(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return k((e.parentNode||{}).firstChild,e)},children:function(e){return k(e.firstChild)},contents:function(e){return D(e,"iframe")?e.contentDocument:(D(e,"template")&&(e=e.content||e),b.merge([],e.childNodes))}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),this.length>1&&(H[e]||b.uniqueSort(i),L.test(e)&&i.reverse()),this.pushStack(i)}});var P=/[^\x20\t\r\n\f]+/g;function M(e){return e}function R(e){throw e}function I(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}b.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return b.each(e.match(P)||[],function(e,n){t[n]=!0}),t}(e):b.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){b.each(n,function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==x(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return b.each(arguments,function(e,t){for(var n;(n=b.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?b.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},b.extend({Deferred:function(t){var n=[["notify","progress",b.Callbacks("memory"),b.Callbacks("memory"),2],["resolve","done",b.Callbacks("once memory"),b.Callbacks("once memory"),0,"resolved"],["reject","fail",b.Callbacks("once memory"),b.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return b.Deferred(function(t){b.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t<o)){if((e=r.apply(s,u))===n.promise())throw new TypeError("Thenable self-resolution");l=e&&("object"==typeof e||"function"==typeof e)&&e.then,g(l)?i?l.call(e,a(o,n,M,i),a(o,n,R,i)):(o++,l.call(e,a(o,n,M,i),a(o,n,R,i),a(o,n,M,n.notifyWith))):(r!==M&&(s=void 0,u=[e]),(i||n.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(e){b.Deferred.exceptionHook&&b.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(r!==R&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(b.Deferred.getStackHook&&(c.stackTrace=b.Deferred.getStackHook()),e.setTimeout(c))}}return b.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:M,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:M)),n[2][3].add(a(0,e,g(r)?r:R))}).promise()},promise:function(e){return null!=e?b.extend(e,i):i}},o={};return b.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=b.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(I(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();for(;n--;)I(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;b.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},b.readyException=function(t){e.setTimeout(function(){throw t})};var $=b.Deferred();function B(){r.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),b.ready()}b.fn.ready=function(e){return $.then(e).catch(function(e){b.readyException(e)}),this},b.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--b.readyWait:b.isReady)||(b.isReady=!0,!0!==e&&--b.readyWait>0||$.resolveWith(r,[b]))}}),b.ready.then=$.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(b.ready):(r.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var F=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)F(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(b(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function U(e){return e.replace(_,"ms-").replace(z,X)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=b.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[U(t)]=n;else for(r in t)i[U(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(U):(t=U(t))in r?[t]:t.match(P)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||b.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!b.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:J.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}b.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),b.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=U(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Q.set(this,e)}):F(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))?n:void 0!==(n=Z(o,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),b.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,b.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){b.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:b.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),b.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?b.queue(this[0],e):void 0===t?this:this.each(function(){var n=b.queue(this,e,t);b._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=b.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&b.contains(e.ownerDocument,e)&&"none"===b.css(e,"display")},ie=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function oe(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return b.css(e,t,"")},u=s(),l=n&&n[3]||(b.cssNumber[t]?"":"px"),c=(b.cssNumber[t]||"px"!==l&&+u)&&te.exec(b.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)b.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,b.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ae={};function se(e){var t,n=e.ownerDocument,r=e.nodeName,i=ae[r];return i||(t=n.body.appendChild(n.createElement(r)),i=b.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ae[r]=i,i)}function ue(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=Y.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&re(r)&&(i[o]=se(r))):"none"!==n&&(i[o]="none",Y.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}b.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){re(this)?b(this).show():b(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,fe=/^$|^module$|\/(?:java|ecma)script/i,pe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function de(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?b.merge([e],n):n}function he(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}pe.optgroup=pe.option,pe.tbody=pe.tfoot=pe.colgroup=pe.caption=pe.thead,pe.th=pe.td;var ge,ve,ye=/<|&#?\w+;/;function me(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))b.merge(p,o.nodeType?[o]:o);else if(ye.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(ce.exec(o)||["",""])[1].toLowerCase(),u=pe[s]||pe._default,a.innerHTML=u[1]+b.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;b.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&b.inArray(o,r)>-1)i&&i.push(o);else if(l=b.contains(o.ownerDocument,o),a=de(f.appendChild(o),"script"),l&&he(a),n)for(c=0;o=a[c++];)fe.test(o.type||"")&&n.push(o);return f}ge=r.createDocumentFragment().appendChild(r.createElement("div")),(ve=r.createElement("input")).setAttribute("type","radio"),ve.setAttribute("checked","checked"),ve.setAttribute("name","t"),ge.appendChild(ve),h.checkClone=ge.cloneNode(!0).cloneNode(!0).lastChild.checked,ge.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ge.cloneNode(!0).lastChild.defaultValue;var xe=r.documentElement,be=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Ee(){return!1}function ke(){try{return r.activeElement}catch(e){}}function Se(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return b().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),e.each(function(){b.event.add(this,t,i,r,n)})}b.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.get(e);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&b.find.matchesSelector(xe,i),n.guid||(n.guid=b.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(t){return void 0!==b&&b.event.triggered!==t.type?b.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(P)||[""]).length;l--;)d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=b.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=b.event.special[d]||{},c=b.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&b.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),b.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Y.hasData(e)&&Y.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(P)||[""]).length;l--;)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=b.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||b.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=b.event.fix(e),u=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],c=b.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=b.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((b.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?b(i,this).index(l)>-1:b.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(b.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[b.expando]?e:new b.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ke()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ke()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&D(this,"input"))return this.click(),!1},_default:function(e){return D(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},b.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},b.Event=function(e,t){if(!(this instanceof b.Event))return new b.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&b.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[b.expando]=!0},b.Event.prototype={constructor:b.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},b.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&be.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},b.event.addProp),b.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||b.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),b.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,b(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){b.event.remove(this,e,n,t)})}});var De=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ne=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function qe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),a=Y.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)b.event.add(t,i,l[i][n]);Q.hasData(e)&&(s=Q.access(e),u=b.extend({},s),Q.set(t,u))}}function Pe(e,t,n,r){t=a.apply([],t);var i,o,s,u,l,c,f=0,p=e.length,d=p-1,v=t[0],y=g(v);if(y||p>1&&"string"==typeof v&&!h.checkClone&&Ae.test(v))return e.each(function(i){var o=e.eq(i);y&&(t[0]=v.call(this,i,o.html())),Pe(o,t,n,r)});if(p&&(o=(i=me(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(u=(s=b.map(de(i,"script"),Le)).length;f<p;f++)l=i,f!==d&&(l=b.clone(l,!0,!0),u&&b.merge(s,de(l,"script"))),n.call(e[f],l,f);if(u)for(c=s[s.length-1].ownerDocument,b.map(s,He),f=0;f<u;f++)l=s[f],fe.test(l.type||"")&&!Y.access(l,"globalEval")&&b.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?b._evalUrl&&b._evalUrl(l.src):m(l.textContent.replace(je,""),c,l))}return e}function Me(e,t,n){for(var r,i=t?b.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||b.cleanData(de(r)),r.parentNode&&(n&&b.contains(r.ownerDocument,r)&&he(de(r,"script")),r.parentNode.removeChild(r));return e}b.extend({htmlPrefilter:function(e){return e.replace(De,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=b.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(a=de(c),r=0,i=(o=de(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&le.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||de(e),a=a||de(c),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,c);return(a=de(c,"script")).length>0&&he(a,!f&&de(e,"script")),c},cleanData:function(e){for(var t,n,r,i=b.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?b.event.remove(n,r):b.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),b.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return F(this,function(e){return void 0===e?b.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Pe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)})},prepend:function(){return Pe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Pe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(b.cleanData(de(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return F(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!pe[(ce.exec(e)||["",""])[1].toLowerCase()]){e=b.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(b.cleanData(de(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Pe(this,arguments,function(t){var n=this.parentNode;b.inArray(this,e)<0&&(b.cleanData(de(this)),n&&n.replaceChild(t,this))},e)}}),b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){for(var n,r=[],i=b(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),b(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Re=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Ie=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},We=new RegExp(ne.join("|"),"i");function $e(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ie(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||b.contains(e.ownerDocument,e)||(a=b.style(e,t)),!h.pixelBoxStyles()&&Re.test(a)&&We.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Be(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",xe.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",a=36===c.offsetWidth||"absolute",xe.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,u,l=r.createElement("div"),c=r.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,b.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),a}}))}();var Fe=/^(none|table(?!-c[ea]).+)/,_e=/^--/,ze={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","Moz","ms"],Ve=r.createElement("div").style;function Ge(e){var t=b.cssProps[e];return t||(t=b.cssProps[e]=function(e){if(e in Ve)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ue.length;n--;)if((e=Ue[n]+t)in Ve)return e}(e)||e),t}function Ye(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=b.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=b.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=b.css(e,"border"+ne[a]+"Width",!0,i))):(u+=b.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=b.css(e,"border"+ne[a]+"Width",!0,i):s+=b.css(e,"border"+ne[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function Je(e,t,n){var r=Ie(e),i=$e(e,t,r),o="border-box"===b.css(e,"boxSizing",!1,r),a=o;if(Re.test(i)){if(!n)return i;i="auto"}return a=a&&(h.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===b.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Qe(e,t,n||(o?"border":"content"),a,r,i)+"px"}function Ke(e,t,n,r,i){return new Ke.prototype.init(e,t,n,r,i)}b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=U(t),u=_e.test(t),l=e.style;if(u||(t=Ge(s)),a=b.cssHooks[t]||b.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=oe(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(b.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=U(t);return _e.test(t)||(t=Ge(s)),(a=b.cssHooks[t]||b.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=$e(e,t,r)),"normal"===i&&t in Xe&&(i=Xe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),b.each(["height","width"],function(e,t){b.cssHooks[t]={get:function(e,n,r){if(n)return!Fe.test(b.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,t,r):ie(e,ze,function(){return Je(e,t,r)})},set:function(e,n,r){var i,o=Ie(e),a="border-box"===b.css(e,"boxSizing",!1,o),s=r&&Qe(e,t,r,a,o);return a&&h.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Qe(e,t,"border",!1,o)-.5)),s&&(i=te.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=b.css(e,t)),Ye(0,n,s)}}}),b.cssHooks.marginLeft=Be(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),b.each({margin:"",padding:"",border:"Width"},function(e,t){b.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ne[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(b.cssHooks[e+t].set=Ye)}),b.fn.extend({css:function(e,t){return F(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ie(e),i=t.length;a<i;a++)o[t[a]]=b.css(e,t[a],!1,r);return o}return void 0!==n?b.style(e,t,n):b.css(e,t)},e,t,arguments.length>1)}}),b.Tween=Ke,Ke.prototype={constructor:Ke,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||b.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=Ke.propHooks[this.prop];return e&&e.get?e.get(this):Ke.propHooks._default.get(this)},run:function(e){var t,n=Ke.propHooks[this.prop];return this.options.duration?this.pos=t=b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ke.propHooks._default.set(this),this}},Ke.prototype.init.prototype=Ke.prototype,Ke.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=b.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[b.cssProps[e.prop]]&&!b.cssHooks[e.prop]?e.elem[e.prop]=e.now:b.style(e.elem,e.prop,e.now+e.unit)}}},Ke.propHooks.scrollTop=Ke.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},b.fx=Ke.prototype.init,b.fx.step={};var Ze,et,tt=/^(?:toggle|show|hide)$/,nt=/queueHooks$/;function rt(){et&&(!1===r.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rt):e.setTimeout(rt,b.fx.interval),b.fx.tick())}function it(){return e.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function ot(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function at(e,t,n){for(var r,i=(st.tweeners[t]||[]).concat(st.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function st(e,t,n){var r,i,o=0,a=st.prefilters.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Ze||it(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{},easing:b.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ze||it(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=U(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=b.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=st.prefilters[o].call(l,e,c,l.opts))return g(r.stop)&&(b._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return b.map(c,at,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}b.Animation=b.extend(st,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return oe(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],st.tweeners[n]=st.tweeners[n]||[],st.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&re(e),v=Y.get(e,"fxshow");for(r in n.queue||(null==(a=b._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,b.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],tt.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||b.style(e,r)}if((u=!b.isEmptyObject(t))||!b.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=Y.get(e,"display")),"none"===(c=b.css(e,"display"))&&(l?c=l:(ue([e],!0),l=e.style.display||l,c=b.css(e,"display"),ue([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===b.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=Y.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&ue([e],!0),p.done(function(){for(r in g||ue([e]),Y.remove(e,"fxshow"),d)b.style(e,r,d[r])})),u=at(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?st.prefilters.unshift(e):st.prefilters.push(e)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return b.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in b.fx.speeds?r.duration=b.fx.speeds[r.duration]:r.duration=b.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(re).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=st(this,b.extend({},e),o);(i||Y.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=b.timers,a=Y.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&nt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||b.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,r,i)}}),b.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.timers=[],b.fx.tick=function(){var e,t=0,n=b.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||b.fx.stop(),Ze=void 0},b.fx.timer=function(e){b.timers.push(e),b.fx.start()},b.fx.interval=13,b.fx.start=function(){et||(et=!0,rt())},b.fx.stop=function(){et=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fn.delay=function(t,n){return t=b.fx&&b.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=r.createElement("input"),t=r.createElement("select").appendChild(r.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=r.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var ut,lt=b.expr.attrHandle;b.fn.extend({attr:function(e,t){return F(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})}}),b.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?b.prop(e,t,n):(1===o&&b.isXMLDoc(e)||(i=b.attrHooks[t.toLowerCase()]||(b.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void b.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=b.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?b.removeAttr(e,n):e.setAttribute(n,n),n}},b.each(b.expr.match.bool.source.match(/\w+/g),function(e,t){var n=lt[t]||b.find.attr;lt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=lt[a],lt[a]=i,i=null!=n(e,t,r)?a:null,lt[a]=o),i}});var ct=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function pt(e){return(e.match(P)||[]).join(" ")}function dt(e){return e.getAttribute&&e.getAttribute("class")||""}function ht(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}b.fn.extend({prop:function(e,t){return F(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[b.propFix[e]||e]})}}),b.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&b.isXMLDoc(e)||(t=b.propFix[t]||t,i=b.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=b.find.attr(e,"tabindex");return t?parseInt(t,10):ct.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(b.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),b.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){b.propFix[this.toLowerCase()]=this}),b.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){b(this).addClass(e.call(this,t,dt(this)))});if((t=ht(e)).length)for(;n=this[u++];)if(i=dt(n),r=1===n.nodeType&&" "+pt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=pt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(g(e))return this.each(function(t){b(this).removeClass(e.call(this,t,dt(this)))});if(!arguments.length)return this.attr("class","");if((t=ht(e)).length)for(;n=this[u++];)if(i=dt(n),r=1===n.nodeType&&" "+pt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=pt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,dt(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=b(this),a=ht(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=dt(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+pt(dt(n))+" ").indexOf(t)>-1)return!0;return!1}});var gt=/\r/g;b.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,b(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=b.map(i,function(e){return null==e?"":e+""})),(t=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=b.valHooks[i.type]||b.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(gt,""):null==n?"":n:void 0}}),b.extend({valHooks:{option:{get:function(e){var t=b.find.attr(e,"value");return null!=t?t:pt(b.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=b(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=b.makeArray(t),a=i.length;a--;)((r=i[a]).selected=b.inArray(b.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=b.inArray(b(e).val(),t)>-1}},h.checkOn||(b.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var vt=/^(?:focusinfocus|focusoutblur)$/,yt=function(e){e.stopPropagation()};b.extend(b.event,{trigger:function(t,n,i,o){var a,s,u,l,c,p,d,h,y=[i||r],m=f.call(t,"type")?t.type:t,x=f.call(t,"namespace")?t.namespace.split("."):[];if(s=h=u=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!vt.test(m+b.event.triggered)&&(m.indexOf(".")>-1&&(m=(x=m.split(".")).shift(),x.sort()),c=m.indexOf(":")<0&&"on"+m,(t=t[b.expando]?t:new b.Event(m,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=x.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:b.makeArray(n,[t]),d=b.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,n))){if(!o&&!d.noBubble&&!v(i)){for(l=d.delegateType||m,vt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)y.push(s),u=s;u===(i.ownerDocument||r)&&y.push(u.defaultView||u.parentWindow||e)}for(a=0;(s=y[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?l:d.bindType||m,(p=(Y.get(s,"events")||{})[t.type]&&Y.get(s,"handle"))&&p.apply(s,n),(p=c&&s[c])&&p.apply&&V(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=m,o||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(y.pop(),n)||!V(i)||c&&g(i[m])&&!v(i)&&((u=i[c])&&(i[c]=null),b.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,yt),i[m](),t.isPropagationStopped()&&h.removeEventListener(m,yt),b.event.triggered=void 0,u&&(i[c]=u)),t.result}},simulate:function(e,t,n){var r=b.extend(new b.Event,n,{type:e,isSimulated:!0});b.event.trigger(r,null,t)}}),b.fn.extend({trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return b.event.trigger(e,t,n,!0)}}),h.focusin||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){b.event.simulate(t,e.target,b.event.fix(e))};b.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}});var mt=e.location,xt=Date.now(),bt=/\?/;b.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+t),n};var wt=/\[\]$/,Tt=/\r?\n/g,Ct=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,r){var i;if(Array.isArray(t))b.each(t,function(t,i){n||wt.test(e)?r(e,i):kt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==x(t))r(e,t);else for(i in t)kt(e+"["+i+"]",t[i],n,r)}b.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){i(this.name,this.value)});else for(n in e)kt(n,e[n],t,i);return r.join("&")},b.fn.extend({serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).is(":disabled")&&Et.test(this.nodeName)&&!Ct.test(e)&&(this.checked||!le.test(e))}).map(function(e,t){var n=b(this).val();return null==n?null:Array.isArray(n)?b.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var St=/%20/g,Dt=/#.*$/,Nt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,qt=/^\/\//,Lt={},Ht={},Ot="*/".concat("*"),Pt=r.createElement("a");function Mt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(P)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Rt(e,t,n,r){var i={},o=e===Ht;function a(s){var u;return i[s]=!0,b.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)}),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function It(e,t){var n,r,i=b.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&b.extend(!0,e,r),e}Pt.href=mt.href,b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?It(It(e,b.ajaxSettings),t):It(b.ajaxSettings,e)},ajaxPrefilter:Mt(Lt),ajaxTransport:Mt(Ht),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,p,d,h=b.ajaxSetup({},n),g=h.context||h,v=h.context&&(g.nodeType||g.jquery)?b(g):b.event,y=b.Deferred(),m=b.Callbacks("once memory"),x=h.statusCode||{},w={},T={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=At.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||C;return i&&i.abort(t),k(0,t),this}};if(y.promise(E),h.url=((t||h.url||mt.href)+"").replace(qt,mt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(P)||[""],null==h.crossDomain){l=r.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Pt.protocol+"//"+Pt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=b.param(h.data,h.traditional)),Rt(Lt,h,n,E),c)return E;for(p in(f=b.event&&h.global)&&0==b.active++&&b.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!jt.test(h.type),o=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(St,"+")):(d=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(bt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Nt,"$1"),d=(bt.test(o)?"&":"?")+"_="+xt+++d),h.url=o+d),h.ifModified&&(b.lastModified[o]&&E.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&E.setRequestHeader("If-None-Match",b.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ot+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(C="abort",m.add(h.complete),E.done(h.success),E.fail(h.error),i=Rt(Ht,h,n,E)){if(E.readyState=1,f&&v.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(u=e.setTimeout(function(){E.abort("timeout")},h.timeout));try{c=!1,i.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(t,n,r,s){var l,p,d,w,T,C=n;c||(c=!0,u&&e.clearTimeout(u),i=void 0,a=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,r&&(w=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,E,r)),w=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(h,w,E,l),l?(h.ifModified&&((T=E.getResponseHeader("Last-Modified"))&&(b.lastModified[o]=T),(T=E.getResponseHeader("etag"))&&(b.etag[o]=T)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=w.state,p=w.data,l=!(d=w.error))):(d=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",l?y.resolveWith(g,[p,C,E]):y.rejectWith(g,[E,C,d]),E.statusCode(x),x=void 0,f&&v.trigger(l?"ajaxSuccess":"ajaxError",[E,h,l?p:d]),m.fireWith(g,[E,C]),f&&(v.trigger("ajaxComplete",[E,h]),--b.active||b.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return b.get(e,t,n,"json")},getScript:function(e,t){return b.get(e,void 0,t,"script")}}),b.each(["get","post"],function(e,t){b[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),b.ajax(b.extend({url:e,type:t,dataType:i,data:n,success:r},b.isPlainObject(e)&&e))}}),b._evalUrl=function(e){return b.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},b.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=b(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return g(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=g(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){b(this).replaceWith(this.childNodes)}),this}}),b.expr.pseudos.hidden=function(e){return!b.expr.pseudos.visible(e)},b.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},b.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},$t=b.ajaxSettings.xhr();h.cors=!!$t&&"withCredentials"in $t,h.ajax=$t=!!$t,b.ajaxTransport(function(t){var n,r;if(h.cors||$t&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Wt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),b.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),b.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(i,o){t=b("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}});var Bt,Ft=[],_t=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ft.pop()||b.expando+"_"+xt++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(_t.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&_t.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(_t,"$1"+i):!1!==t.jsonp&&(t.url+=(bt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||b.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?b(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Ft.push(i)),a&&g(o)&&o(a[0]),a=o=void 0}),"script"}),h.createHTMLDocument=((Bt=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Bt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),o=N.exec(e),a=!n&&[],o?[t.createElement(o[1])]:(o=me([e],t,a),a&&a.length&&b(a).remove(),b.merge([],o.childNodes)));var i,o,a},b.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=pt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&b.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?b("<div>").append(b.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.expr.pseudos.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length},b.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=b.css(e,"position"),c=b(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=b.css(e,"top"),u=b.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(t)&&(t=t.call(e,n,b.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},b.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){b.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===b.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===b.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),i.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-b.css(r,"marginTop",!0),left:t.left-i.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||xe})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;b.fn[e]=function(r){return F(this,function(e,r,i){var o;if(v(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),b.each(["top","left"],function(e,t){b.cssHooks[t]=Be(h.pixelPosition,function(e,n){if(n)return n=$e(e,t),Re.test(n)?b(e).position()[t]+"px":n})}),b.each({Height:"height",Width:"width"},function(e,t){b.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){b.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return F(this,function(t,n,i){var o;return v(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?b.css(t,n,s):b.style(t,n,i,s)},t,a?i:void 0,a)}})}),b.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),b.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),b.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||b.guid++,i},b.holdReady=function(e){e?b.readyWait++:b.ready(!0)},b.isArray=Array.isArray,b.parseJSON=JSON.parse,b.nodeName=D,b.isFunction=g,b.isWindow=v,b.camelCase=U,b.type=x,b.now=Date.now,b.isNumeric=function(e){var t=b.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return b});var zt=e.jQuery,Xt=e.$;return b.noConflict=function(t){return e.$===b&&(e.$=Xt),t&&e.jQuery===b&&(e.jQuery=zt),b},t||(e.jQuery=e.$=b),b});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2139

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2139
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- duration.innerHTML = '<span class="' + t.options.classPrefix + 'duration">' + ((0, _time.secondsToTimeCode)(t.options.duration, t.options.alwaysShowHours, t.options.showTimecodeFrameCount, t.options.framesPerSecond, t.options.secondsDecimalLength, t.options.timeFormat) + '</span>');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3084

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:3084
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- anchor.innerHTML += '<span class="' + t.options.classPrefix + 'offscreen">' + volumeControlText + '</span>' + ('<div class="' + t.options.classPrefix + 'horizontal-volume-total">') + ('<div class="' + t.options.classPrefix + 'horizontal-volume-current"></div>') + ('<div class="' + t.options.classPrefix + 'horizontal-volume-handle"></div>') + '</div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4895

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:4895
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- error.innerHTML = '<div class="' + t.options.classPrefix + 'overlay-error"></div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in mediaelement.min.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function e(t,n,r){function i(o,l){if(!n[o]){if(!t[o]){var s="function"==typeof require&&require;if(!l&&s)return s(o,!0);if(a)return a(o,!0);var d=new Error("Cannot find module '"+o+"'");throw d.code="MODULE_NOT_FOUND",d}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){},{}],2:[function(e,t,n){(function(n){var r,i=void 0!==n?n:"undefined"!=typeof window?window:{},a=e(1);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],3:[function(e,t,n){(function(e){var n;n="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,n){!function(e){var n=setTimeout;function r(){}function i(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void l(t.promise,e)}o(t.promise,r)}else(1===e._state?o:l)(t.promise,e._value)})):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void d((r=n,a=t,function(){r.apply(a,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(t){l(e,t)}var r,a}function l(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function d(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,l(t,e))})}catch(e){if(n)return;n=!0,l(t,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(r);return a(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},i.all=function(e){var t=Array.prototype.slice.call(e);return new i(function(e,n){if(0===t.length)return e([]);var r=t.length;function i(a,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var l=o.then;if("function"==typeof l)return void l.call(o,function(e){i(a,e)},n)}t[a]=o,0==--r&&e(t)}catch(e){n(e)}}for(var a=0;a<t.length;a++)i(a,t[a])})},i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i(function(t){t(e)})},i.reject=function(e){return new i(function(t,n){n(e)})},i.race=function(e){return new i(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},i._setImmediateFn=function(e){i._immediateFn=e},i._setUnhandledRejectionFn=function(e){i._unhandledRejectionFn=e},void 0!==t&&t.exports?t.exports=i:e.Promise||(e.Promise=i)}(this)},{}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=e(7),o=(r=a)&&r.__esModule?r:{default:r},l=e(9),s=e(18);var d={lang:"en",en:l.EN,language:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(null!==t&&void 0!==t&&t.length){if("string"!=typeof t[0])throw new TypeError("Language code must be a string value");if(!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(t[0]))throw new TypeError("Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters");d.lang=t[0],void 0===d[t[0]]?(t[1]=null!==t[1]&&void 0!==t[1]&&"object"===i(t[1])?t[1]:{},d[t[0]]=(0,s.isObjectEmpty)(t[1])?l.EN:t[1]):null!==t[1]&&void 0!==t[1]&&"object"===i(t[1])&&(d[t[0]]=t[1])}return d.lang},t:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e&&e.length){var n=void 0,r=void 0,a=d.language(),o=function(e,t,n){return"object"!==(void 0===e?"undefined":i(e))||"number"!=typeof t||"number"!=typeof n?e:[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>0&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])>=2&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100==1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100==2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100==3||(arguments.length<=0?void 0:arguments[0])%100==4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])>6&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100>=3&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:(arguments.length<=0?void 0:arguments[0])%100>=11?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>1&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100>10&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10==2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}][n].apply(null,[t].concat(e))};return void 0!==d[a]&&(n=d[a][e],null!==t&&"number"==typeof t&&(r=d[a]["mejs.plural-form"],n=o.apply(null,[n,t,r]))),!n&&d.en&&(n=d.en[e],null!==t&&"number"==typeof t&&(r=d.en["mejs.plural-form"],n=o.apply(null,[n,t,r]))),n=n||e,null!==t&&"number"==typeof t&&(n=n.replace("%1",t)),(0,s.escapeHTML)(n)}return e}};o.default.i18n=d,"undefined"!=typeof mejsL10n&&o.default.i18n.language(mejsL10n.language,mejsL10n.strings),n.default=d},{18:18,7:7,9:9}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),a=c(e(2)),o=c(e(7)),l=e(18),s=e(19),d=e(8),u=e(16);function c(e){return e&&e.__esModule?e:{default:e}}var f=function e(t,n,c){var f=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var m=this;c=Array.isArray(c)?c:null,m.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain"},n=Object.assign(m.defaults,n),m.mediaElement=a.default.createElement(n.fakeNodeName);var p=t,h=!1;if("string"==typeof t?m.mediaElement.originalNode=a.default.getElementById(t):(m.mediaElement.originalNode=t,p=t.id),void 0===m.mediaElement.originalNode||null===m.mediaElement.originalNode)return null;m.mediaElement.options=n,p=p||"mejs_"+Math.random().toString().slice(2),m.mediaElement.originalNode.setAttribute("id",p+"_from_mejs");var v=m.mediaElement.originalNode.tagName.toLowerCase();["video","audio"].indexOf(v)>-1&&!m.mediaElement.originalNode.getAttribute("preload")&&m.mediaElement.originalNode.setAttribute("preload","none"),m.mediaElement.originalNode.parentNode.insertBefore(m.mediaElement,m.mediaElement.originalNode),m.mediaElement.appendChild(m.mediaElement.originalNode);var g=function(e,t){if("https:"===i.default.location.protocol&&0===e.indexOf("http:")&&u.IS_IOS&&o.default.html5media.mediaTypes.indexOf(t)>-1){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var t=(i.default.URL||i.default.webkitURL).createObjectURL(this.response);return m.mediaElement.originalNode.setAttribute("src",t),t}return e},n.open("GET",e),n.responseType="blob",n.send()}return e},y=void 0;if(null!==c)y=c;else if(null!==m.mediaElement.originalNode)switch(y=[],m.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":y.push({type:"",src:m.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var E=m.mediaElement.originalNode.children.length,b=m.mediaElement.originalNode.getAttribute("src");if(b){var w=m.mediaElement.originalNode,_=(0,s.formatType)(b,w.getAttribute("type"));y.push({type:_,src:g(b,_)})}for(var S=0;S<E;S++){var N=m.mediaElement.originalNode.children[S];if("source"===N.tagName.toLowerCase()){var j=N.getAttribute("src"),A=(0,s.formatType)(j,N.getAttribute("type"));y.push({type:A,src:g(j,A)})}}}m.mediaElement.id=p,m.mediaElement.renderers={},m.mediaElement.events={},m.mediaElement.promises=[],m.mediaElement.renderer=null,m.mediaElement.rendererName=null,m.mediaElement.changeRenderer=function(e,t){var n=f,r=Object.keys(t[0]).length>2?t[0]:t[0].src;if(void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&n.mediaElement.renderer.name===e)return n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.show(),n.mediaElement.renderer.setSrc(r),!0;void 0!==n.mediaElement.renderer&&null!==n.mediaElement.renderer&&(n.mediaElement.renderer.pause(),n.mediaElement.renderer.stop&&n.mediaElement.renderer.stop(),n.mediaElement.renderer.hide());var i=n.mediaElement.renderers[e],a=null;if(void 0!==i&&null!==i)return i.show(),i.setSrc(r),n.mediaElement.renderer=i,n.mediaElement.rendererName=e,!0;for(var o=n.mediaElement.options.renderers.length?n.mediaElement.options.renderers:d.renderer.order,l=0,s=o.length;l<s;l++){var u=o[l];if(u===e){a=d.renderer.renderers[u];var c=Object.assign(a.options,n.mediaElement.options);return(i=a.create(n.mediaElement,c,t)).name=e,n.mediaElement.renderers[a.name]=i,n.mediaElement.renderer=i,n.mediaElement.rendererName=e,i.show(),!0}}return!1},m.mediaElement.setSize=function(e,t){void 0!==m.mediaElement.renderer&&null!==m.mediaElement.renderer&&m.mediaElement.renderer.setSize(e,t)},m.mediaElement.generateError=function(e,t){e=e||"",t=Array.isArray(t)?t:[];var n=(0,l.createEvent)("error",m.mediaElement);n.message=e,n.urls=t,m.mediaElement.dispatchEvent(n),h=!0};var T=o.default.html5media.properties,F=o.default.html5media.methods,P=function(e,t,n,r){var i=e[t];Object.defineProperty(e,t,{get:function(){return n.apply(e,[i])},set:function(t){return i=r.apply(e,[t])}})},x=function(e){if("src"!==e){var t=""+e.substring(0,1).toUpperCase()+e.substring(1),n=function(){return void 0!==m.mediaElement.renderer&&null!==m.mediaElement.renderer&&"function"==typeof m.mediaElement.renderer["get"+t]?m.mediaElement.renderer["get"+t]():null},r=function(e){void 0!==m.mediaElement.renderer&&null!==m.mediaElement.renderer&&"function"==typeof m.mediaElement.renderer["set"+t]&&m.mediaElement.renderer["set"+t](e)};P(m.mediaElement,e,n,r),m.mediaElement["get"+t]=n,m.mediaElement["set"+t]=r}},L=function(){return void 0!==m.mediaElement.renderer&&null!==m.mediaElement.renderer?m.mediaElement.renderer.getSrc():null},O=function(e){var t=[];if("string"==typeof e)t.push({src:e,type:e?(0,s.getTypeFromFile)(e):""});else if("object"===(void 0===e?"undefined":r(e))&&void 0!==e.src){var n=(0,s.absolutizeUrl)(e.src),i=e.type,a=Object.assign(e,{src:n,type:""!==i&&null!==i&&void 0!==i||!n?i:(0,s.getTypeFromFile)(n)});t.push(a)}else if(Array.isArray(e))for(var o=0,u=e.length;o<u;o++){var c=(0,s.absolutizeUrl)(e[o].src),f=e[o].type,p=Object.assign(e[o],{src:c,type:""!==f&&null!==f&&void 0!==f||!c?f:(0,s.getTypeFromFile)(c)});t.push(p)}var h=d.renderer.select(t,m.mediaElement.options.renderers.length?m.mediaElement.options.renderers:[]),v=void 0;if(m.mediaElement.paused||(m.mediaElement.pause(),v=(0,l.createEvent)("pause",m.mediaElement),m.mediaElement.dispatchEvent(v)),m.mediaElement.originalNode.src=t[0].src||"",null!==h||!t[0].src)return t[0].src?m.mediaElement.changeRenderer(h.rendererName,t):null;m.mediaElement.generateError("No renderer found",t)},C=function(e,t){try{if("play"===e&&"native_dash"===m.mediaElement.rendererName){var n=m.mediaElement.renderer[e](t);n&&"function"==typeof n.then&&n.catch(function(){m.mediaElement.paused&&setTimeout(function(){var e=m.mediaElement.renderer.play();void 0!==e&&e.catch(function(){m.mediaElement.renderer.paused||m.mediaElement.renderer.pause()})},150)})}else m.mediaElement.renderer[e](t)}catch(e){m.mediaElement.generateError(e,y)}},I=function(e){m.mediaElement[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return void 0!==m.mediaElement.renderer&&null!==m.mediaElement.renderer&&"function"==typeof m.mediaElement.renderer[e]&&(m.mediaElement.promises.length?Promise.all(m.mediaElement.promises).then(function(){C(e,n)}).catch(function(e){m.mediaElement.generateError(e,y)}):C(e,n)),null}};P(m.mediaElement,"src",L,O),m.mediaElement.getSrc=L,m.mediaElement.setSrc=O;for(var k=0,U=T.length;k<U;k++)x(T[k]);for(var M=0,R=F.length;M<R;M++)I(F[M]);return m.mediaElement.addEventListener=function(e,t){m.mediaElement.events[e]=m.mediaElement.events[e]||[],m.mediaElement.events[e].push(t)},m.mediaElement.removeEventListener=function(e,t){if(!e)return m.mediaElement.events={},!0;var n=m.mediaElement.events[e];if(!n)return!0;if(!t)return m.mediaElement.events[e]=[],!0;for(var r=0;r<n.length;r++)if(n[r]===t)return m.mediaElement.events[e].splice(r,1),!0;return!1},m.mediaElement.dispatchEvent=function(e){var t=m.mediaElement.events[e.type];if(t)for(var n=0;n<t.length;n++)t[n].apply(null,[e])},m.mediaElement.destroy=function(){var e=m.mediaElement.originalNode.cloneNode(!0),t=m.mediaElement.parentElement;e.removeAttribute("id"),e.remove(),m.mediaElement.remove(),t.append(e)},y.length&&(m.mediaElement.src=y),m.mediaElement.promises.length?Promise.all(m.mediaElement.promises).then(function(){m.mediaElement.options.success&&m.mediaElement.options.success(m.mediaElement,m.mediaElement.originalNode)}).catch(function(){h&&m.mediaElement.options.error&&m.mediaElement.options.error(m.mediaElement,m.mediaElement.originalNode)}):(m.mediaElement.options.success&&m.mediaElement.options.success(m.mediaElement,m.mediaElement.originalNode),h&&m.mediaElement.options.error&&m.mediaElement.options.error(m.mediaElement,m.mediaElement.originalNode)),m.mediaElement};i.default.MediaElement=f,o.default.MediaElement=f,n.default=f},{16:16,18:18,19:19,2:2,3:3,7:7,8:8}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r,i=e(3);var a={version:"4.2.8",html5media:{properties:["volume","src","currentTime","muted","duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable","currentSrc","preload","bufferedBytes","bufferedTime","initialTime","startOffsetTime","defaultPlaybackRate","playbackRate","played","autoplay","loop","controls"],readOnlyProperties:["duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable"],methods:["load","play","pause","canPlayType"],events:["loadstart","durationchange","loadedmetadata","loadeddata","progress","canplay","canplaythrough","suspend","abort","error","emptied","stalled","play","playing","pause","waiting","seeking","seeked","timeupdate","ended","ratechange","volumechange"],mediaTypes:["audio/mp3","audio/ogg","audio/oga","audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav","audio/mpeg","audio/mp4","video/mp4","video/webm","video/ogg","video/ogv"]}};((r=i)&&r.__esModule?r:{default:r}).default.mejs=a,n.default=a},{3:3}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.renderer=void 0;var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=e(7),l=(r=o)&&r.__esModule?r:{default:r};var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderers={},this.order=[]}return a(e,[{key:"add",value:function(e){if(void 0===e.name)throw new TypeError("renderer must contain at least `name` property");this.renderers[e.name]=e,this.order.push(e.name)}},{key:"select",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length;if(t=t.length?t:this.order,!n){var r=[/^(html5|native)/i,/^flash/i,/iframe$/i],i=function(e){for(var t=0,n=r.length;t<n;t++)if(r[t].test(e))return t;return r.length};t.sort(function(e,t){return i(e)-i(t)})}for(var a=0,o=t.length;a<o;a++){var l=t[a],s=this.renderers[l];if(null!==s&&void 0!==s)for(var d=0,u=e.length;d<u;d++)if("function"==typeof s.canPlayType&&"string"==typeof e[d].type&&s.canPlayType(e[d].type))return{rendererName:s.name,src:e[d].src}}return null}},{key:"order",set:function(e){if(!Array.isArray(e))throw new TypeError("order must be an array of strings.");this._order=e},get:function(){return this._order}},{key:"renderers",set:function(e){if(null!==e&&"object"!==(void 0===e?"undefined":i(e)))throw new TypeError("renderers must be an array of objects.");this._renderers=e},get:function(){return this._renderers}}]),e}(),d=n.renderer=new s;l.default.Renderers=d},{7:7}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],10:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),a=c(e(7)),o=e(8),l=e(18),s=e(19),d=e(16),u=e(17);function c(e){return e&&e.__esModule?e:{default:e}}var f={promise:null,load:function(e){return"undefined"!=typeof dashjs?f.promise=new Promise(function(e){e()}).then(function(){f._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.dashjs.org/latest/dash.all.min.js",f.promise=f.promise||(0,u.loadScript)(e.options.path),f.promise.then(function(){f._createPlayer(e)})),f.promise},_createPlayer:function(e){var t=dashjs.MediaPlayer().create();return i.default["__ready__"+e.id](t),t}},m={name:"native_dash",options:{prefix:"native_dash",dash:{path:"https://cdn.dashjs.org/latest/dash.all.min.js",debug:!1,drm:{},robustnessLevel:""}},canPlayType:function(e){return d.HAS_MSE&&["application/dash+xml"].indexOf(e.toLowerCase())>-1},create:function(e,t,n){var s=e.originalNode,d=e.id+"_"+t.prefix,u=s.autoplay,c=s.children,m=null,p=null;s.removeAttribute("type");for(var h=0,v=c.length;h<v;h++)c[h].removeAttribute("type");m=s.cloneNode(!0),t=Object.assign(t,e.options);for(var g=a.default.html5media.properties,y=a.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),E=function(t){var n=(0,l.createEvent)(t.type,e);e.dispatchEvent(n)},b=function(e){var n=""+e.substring(0,1).toUpperCase()+e.substring(1);m["get"+n]=function(){return null!==p?m[e]:null},m["set"+n]=function(n){if(-1===a.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){var i="object"===(void 0===n?"undefined":r(n))&&n.src?n.src:n;if(m[e]=i,null!==p){p.reset();for(var o=0,s=y.length;o<s;o++)m.removeEventListener(y[o],E);p=f._createPlayer({options:t.dash,id:d}),n&&"object"===(void 0===n?"undefined":r(n))&&"object"===r(n.drm)&&(p.setProtectionData(n.drm),(0,l.isString)(t.dash.robustnessLevel)&&t.dash.robustnessLevel&&p.getProtectionController().setRobustnessLevel(t.dash.robustnessLevel)),p.attachSource(i),u&&p.play()}}else m[e]=n}},w=0,_=g.length;w<_;w++)b(g[w]);if(i.default["__ready__"+d]=function(n){e.dashPlayer=p=n;for(var i,o=dashjs.MediaPlayer.events,s=0,d=y.length;s<d;s++)"loadedmetadata"===(i=y[s])&&(p.getDebug().setLogToBrowserConsole(t.dash.debug),p.initialize(),p.setScheduleWhilePaused(!1),p.setFastSwitchEnabled(!0),p.attachView(m),p.setAutoPlay(!1),"object"!==r(t.dash.drm)||a.default.Utils.isObjectEmpty(t.dash.drm)||(p.setProtectionData(t.dash.drm),(0,l.isString)(t.dash.robustnessLevel)&&t.dash.robustnessLevel&&p.getProtectionController().setRobustnessLevel(t.dash.robustnessLevel)),p.attachSource(m.getSrc())),m.addEventListener(i,E);var u=function(t){if("error"===t.type.toLowerCase())e.generateError(t.message,m.src),console.error(t);else{var n=(0,l.createEvent)(t.type,e);n.data=t,e.dispatchEvent(n)}};for(var c in o)o.hasOwnProperty(c)&&p.on(o[c],function(e){return u(e)})},n&&n.length>0)for(var S=0,N=n.length;S<N;S++)if(o.renderer.renderers[t.prefix].canPlayType(n[S].type)){m.setAttribute("src",n[S].src),void 0!==n[S].drm&&(t.dash.drm=n[S].drm);break}m.setAttribute("id",d),s.parentNode.insertBefore(m,s),s.autoplay=!1,s.style.display="none",m.setSize=function(e,t){return m.style.width=e+"px",m.style.height=t+"px",m},m.hide=function(){return m.pause(),m.style.display="none",m},m.show=function(){return m.style.display="",m},m.destroy=function(){null!==p&&p.reset()};var j=(0,l.createEvent)("rendererready",m);return e.dispatchEvent(j),e.promises.push(f.load({options:t.dash,id:d})),m}};s.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".mpd")?"application/dash+xml":null}),o.renderer.add(m)},{16:16,17:17,18:18,19:19,3:3,7:7,8:8}],11:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PluginDetector=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=f(e(3)),a=f(e(2)),o=f(e(7)),l=f(e(5)),s=e(8),d=e(18),u=e(16),c=e(19);function f(e){return e&&e.__esModule?e:{default:e}}var m=n.PluginDetector={plugins:[],hasPluginVersion:function(e,t){var n=m.plugins[e];return t[1]=t[1]||0,t[2]=t[2]||0,n[0]>t[0]||n[0]===t[0]&&n[1]>t[1]||n[0]===t[0]&&n[1]===t[1]&&n[2]>=t[2]},addPlugin:function(e,t,n,r,i){m.plugins[e]=m.detectPlugin(t,n,r,i)},detectPlugin:function(e,t,n,a){var o=[0,0,0],l=void 0,s=void 0;if(null!==u.NAV.plugins&&void 0!==u.NAV.plugins&&"object"===r(u.NAV.plugins[e])){if((l=u.NAV.plugins[e].description)&&(void 0===u.NAV.mimeTypes||!u.NAV.mimeTypes[t]||u.NAV.mimeTypes[t].enabledPlugin))for(var d=0,c=(o=l.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;d<c;d++)o[d]=parseInt(o[d].match(/\d+/),10)}else if(void 0!==i.default.ActiveXObject)try{(s=new ActiveXObject(n))&&(o=a(s))}catch(e){}return o}};m.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(e){var t=[],n=e.GetVariable("$version");return n&&(n=n.split(" ")[1].split(","),t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]),t});var p={create:function(e,t,n){var r={},f=!1;r.options=t,r.id=e.id+"_"+r.options.prefix,r.mediaElement=e,r.flashState={},r.flashApi=null,r.flashApiStack=[];for(var m=o.default.html5media.properties,p=function(e){r.flashState[e]=null;var t=""+e.substring(0,1).toUpperCase()+e.substring(1);r["get"+t]=function(){if(null!==r.flashApi){if("function"==typeof r.flashApi["get_"+e]){var t=r.flashApi["get_"+e]();return"buffered"===e?{start:function(){return 0},end:function(){return t},length:1}:t}return null}return null},r["set"+t]=function(t){if("src"===e&&(t=(0,c.absolutizeUrl)(t)),null!==r.flashApi&&void 0!==r.flashApi["set_"+e])try{r.flashApi["set_"+e](t)}catch(e){}else r.flashApiStack.push({type:"set",propName:e,value:t})}},h=0,v=m.length;h<v;h++)p(m[h]);var g=o.default.html5media.methods,y=function(e){r[e]=function(){if(f)if(null!==r.flashApi){if(r.flashApi["fire_"+e])try{r.flashApi["fire_"+e]()}catch(e){}}else r.flashApiStack.push({type:"call",methodName:e})}};g.push("stop");for(var E=0,b=g.length;E<b;E++)y(g[E]);for(var w=["rendererready"],_=0,S=w.length;_<S;_++){var N=(0,d.createEvent)(w[_],r);e.dispatchEvent(N)}i.default["__ready__"+r.id]=function(){if(r.flashReady=!0,r.flashApi=a.default.getElementById("__"+r.id),r.flashApiStack.length)for(var e=0,t=r.flashApiStack.length;e<t;e++){var n=r.flashApiStack[e];if("set"===n.type){var i=n.propName,o=""+i.substring(0,1).toUpperCase()+i.substring(1);r["set"+o](n.value)}else"call"===n.type&&r[n.methodName]()}},i.default["__event__"+r.id]=function(e,t){var n=(0,d.createEvent)(e,r);if(t)try{n.data=JSON.parse(t),n.details.data=JSON.parse(t)}catch(e){n.message=t}r.mediaElement.dispatchEvent(n)},r.flashWrapper=a.default.createElement("div"),-1===["always","sameDomain"].indexOf(r.options.shimScriptAccess)&&(r.options.shimScriptAccess="sameDomain");var j=e.originalNode.autoplay,A=["uid="+r.id,"autoplay="+j,"allowScriptAccess="+r.options.shimScriptAccess,"preload="+(e.originalNode.getAttribute("preload")||"")],T=null!==e.originalNode&&"video"===e.originalNode.tagName.toLowerCase(),F=T?e.originalNode.height:1,P=T?e.originalNode.width:1;e.originalNode.getAttribute("src")&&A.push("src="+e.originalNode.getAttribute("src")),!0===r.options.enablePseudoStreaming&&(A.push("pseudostreamstart="+r.options.pseudoStreamingStartQueryParam),A.push("pseudostreamtype="+r.options.pseudoStreamingType)),r.options.streamDelimiter&&A.push("streamdelimiter="+encodeURIComponent(r.options.streamDelimiter)),r.options.proxyType&&A.push("proxytype="+r.options.proxyType),e.appendChild(r.flashWrapper),e.originalNode.style.display="none";var x=[];if(u.IS_IE||u.IS_EDGE){var L=a.default.createElement("div");r.flashWrapper.appendChild(L),x=u.IS_EDGE?['type="application/x-shockwave-flash"','data="'+r.options.pluginPath+r.options.filename+'"','id="__'+r.id+'"','width="'+P+'"','height="'+F+"'\""]:['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"','id="__'+r.id+'"','width="'+P+'"','height="'+F+'"'],T||x.push('style="clip: rect(0 0 0 0); position: absolute;"'),L.outerHTML="<object "+x.join(" ")+'><param name="movie" value="'+r.options.pluginPath+r.options.filename+"?x="+new Date+'" /><param name="flashvars" value="'+A.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+r.options.shimScriptAccess+'" /><param name="allowFullScreen" value="true" /><div>'+l.default.t("mejs.install-flash")+"</div></object>"}else x=['id="__'+r.id+'"','name="__'+r.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+r.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+r.options.pluginPath+r.options.filename+'"','flashvars="'+A.join("&")+'"'],T?(x.push('width="'+P+'"'),x.push('height="'+F+'"')):x.push('style="position: fixed; left: -9999em; top: -9999em;"'),r.flashWrapper.innerHTML="<embed "+x.join(" ")+">";if(r.flashNode=r.flashWrapper.lastChild,r.hide=function(){f=!1,T&&(r.flashNode.style.display="none")},r.show=function(){f=!0,T&&(r.flashNode.style.display="")},r.setSize=function(e,t){r.flashNode.style.width=e+"px",r.flashNode.style.height=t+"px",null!==r.flashApi&&"function"==typeof r.flashApi.fire_setSize&&r.flashApi.fire_setSize(e,t)},r.destroy=function(){r.flashNode.remove()},n&&n.length>0)for(var O=0,C=n.length;O<C;O++)if(s.renderer.renderers[t.prefix].canPlayType(n[O].type)){r.setSrc(n[O].src);break}return r}};if(m.hasPluginVersion("flash",[10,0,0])){c.typeChecks.push(function(e){return(e=e.toLowerCase()).startsWith("rtmp")?~e.indexOf(".mp3")?"audio/rtmp":"video/rtmp":/\.og(a|g)/i.test(e)?"audio/ogg":~e.indexOf(".m3u8")?"application/x-mpegURL":~e.indexOf(".mpd")?"application/dash+xml":~e.indexOf(".flv")?"video/flv":null});var h={name:"flash_video",options:{prefix:"flash_video",filename:"mediaelement-flash-video.swf",enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",pseudoStreamingType:"byte",proxyType:"",streamDelimiter:""},canPlayType:function(e){return~["video/mp4","video/rtmp","audio/rtmp","rtmp/mp4","audio/mp4","video/flv","video/x-flv"].indexOf(e.toLowerCase())},create:p.create};s.renderer.add(h);var v={name:"flash_hls",options:{prefix:"flash_hls",filename:"mediaelement-flash-video-hls.swf"},canPlayType:function(e){return~["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())},create:p.create};s.renderer.add(v);var g={name:"flash_dash",options:{prefix:"flash_dash",filename:"mediaelement-flash-video-mdash.swf"},canPlayType:function(e){return~["application/dash+xml"].indexOf(e.toLowerCase())},create:p.create};s.renderer.add(g);var y={name:"flash_audio",options:{prefix:"flash_audio",filename:"mediaelement-flash-audio.swf"},canPlayType:function(e){return~["audio/mp3"].indexOf(e.toLowerCase())},create:p.create};s.renderer.add(y);var E={name:"flash_audio_ogg",options:{prefix:"flash_audio_ogg",filename:"mediaelement-flash-audio-ogg.swf"},canPlayType:function(e){return~["audio/ogg","audio/oga","audio/ogv"].indexOf(e.toLowerCase())},create:p.create};s.renderer.add(E)}},{16:16,18:18,19:19,2:2,3:3,5:5,7:7,8:8}],12:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),a=c(e(7)),o=e(8),l=e(18),s=e(16),d=e(19),u=e(17);function c(e){return e&&e.__esModule?e:{default:e}}var f={promise:null,load:function(e){return"undefined"!=typeof flvjs?f.promise=new Promise(function(e){e()}).then(function(){f._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/flv.js@latest",f.promise=f.promise||(0,u.loadScript)(e.options.path),f.promise.then(function(){f._createPlayer(e)})),f.promise},_createPlayer:function(e){flvjs.LoggingControl.enableDebug=e.options.debug,flvjs.LoggingControl.enableVerbose=e.options.debug;var t=flvjs.createPlayer(e.options,e.configs);return i.default["__ready__"+e.id](t),t}},m={name:"native_flv",options:{prefix:"native_flv",flv:{path:"https://cdn.jsdelivr.net/npm/flv.js@latest",cors:!0,debug:!1}},canPlayType:function(e){return s.HAS_MSE&&["video/x-flv","video/flv"].indexOf(e.toLowerCase())>-1},create:function(e,t,n){var s=e.originalNode,d=e.id+"_"+t.prefix,u=null,c=null;u=s.cloneNode(!0),t=Object.assign(t,e.options);for(var m=a.default.html5media.properties,p=a.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),h=function(t){var n=(0,l.createEvent)(t.type,e);e.dispatchEvent(n)},v=function(e){var n=""+e.substring(0,1).toUpperCase()+e.substring(1);u["get"+n]=function(){return null!==c?u[e]:null},u["set"+n]=function(n){if(-1===a.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){if(u[e]="object"===(void 0===n?"undefined":r(n))&&n.src?n.src:n,null!==c){var i={type:"flv"};i.url=n,i.cors=t.flv.cors,i.debug=t.flv.debug,i.path=t.flv.path;var o=t.flv.configs;c.destroy();for(var l=0,s=p.length;l<s;l++)u.removeEventListener(p[l],h);(c=f._createPlayer({options:i,configs:o,id:d})).attachMediaElement(u),c.load()}}else u[e]=n}},g=0,y=m.length;g<y;g++)v(m[g]);if(i.default["__ready__"+d]=function(t){e.flvPlayer=c=t;for(var n,r=flvjs.Events,i=0,a=p.length;i<a;i++)"loadedmetadata"===(n=p[i])&&(c.unload(),c.detachMediaElement(),c.attachMediaElement(u),c.load()),u.addEventListener(n,h);var o=function(t){r.hasOwnProperty(t)&&c.on(r[t],function(){for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return function(t,n){if("error"===t){var r=n[0]+": "+n[1]+" "+n[2].msg;e.generateError(r,u.src)}else{var i=(0,l.createEvent)(t,e);i.data=n,e.dispatchEvent(i)}}(r[t],i)})};for(var s in r)o(s)},n&&n.length>0)for(var E=0,b=n.length;E<b;E++)if(o.renderer.renderers[t.prefix].canPlayType(n[E].type)){u.setAttribute("src",n[E].src);break}u.setAttribute("id",d),s.parentNode.insertBefore(u,s),s.autoplay=!1,s.style.display="none";var w={type:"flv"};w.url=u.src,w.cors=t.flv.cors,w.debug=t.flv.debug,w.path=t.flv.path;var _=t.flv.configs;u.setSize=function(e,t){return u.style.width=e+"px",u.style.height=t+"px",u},u.hide=function(){return null!==c&&c.pause(),u.style.display="none",u},u.show=function(){return u.style.display="",u},u.destroy=function(){null!==c&&c.destroy()};var S=(0,l.createEvent)("rendererready",u);return e.dispatchEvent(S),e.promises.push(f.load({options:w,configs:_,id:d})),u}};d.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".flv")?"video/flv":null}),o.renderer.add(m)},{16:16,17:17,18:18,19:19,3:3,7:7,8:8}],13:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=c(e(3)),a=c(e(7)),o=e(8),l=e(18),s=e(16),d=e(19),u=e(17);function c(e){return e&&e.__esModule?e:{default:e}}var f={promise:null,load:function(e){return"undefined"!=typeof Hls?f.promise=new Promise(function(e){e()}).then(function(){f._createPlayer(e)}):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/hls.js@latest",f.promise=f.promise||(0,u.loadScript)(e.options.path),f.promise.then(function(){f._createPlayer(e)})),f.promise},_createPlayer:function(e){var t=new Hls(e.options);return i.default["__ready__"+e.id](t),t}},m={name:"native_hls",options:{prefix:"native_hls",hls:{path:"https://cdn.jsdelivr.net/npm/hls.js@latest",autoStartLoad:!1,debug:!1}},canPlayType:function(e){return s.HAS_MSE&&["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())>-1},create:function(e,t,n){var s=e.originalNode,d=e.id+"_"+t.prefix,u=s.getAttribute("preload"),c=s.autoplay,m=null,p=null,h=0,v=n.length;p=s.cloneNode(!0),(t=Object.assign(t,e.options)).hls.autoStartLoad=u&&"none"!==u||c;for(var g=a.default.html5media.properties,y=a.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),E=function(t){var n=(0,l.createEvent)(t.type,e);e.dispatchEvent(n)},b=function(e){var n=""+e.substring(0,1).toUpperCase()+e.substring(1);p["get"+n]=function(){return null!==m?p[e]:null},p["set"+n]=function(n){if(-1===a.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){if(p[e]="object"===(void 0===n?"undefined":r(n))&&n.src?n.src:n,null!==m){m.destroy();for(var i=0,o=y.length;i<o;i++)p.removeEventListener(y[i],E);(m=f._createPlayer({options:t.hls,id:d})).loadSource(n),m.attachMedia(p)}}else p[e]=n}},w=0,_=g.length;w<_;w++)b(g[w]);if(i.default["__ready__"+d]=function(t){e.hlsPlayer=m=t;for(var r=Hls.Events,i=function(t){if("loadedmetadata"===t){var n=e.originalNode.src;m.detachMedia(),m.loadSource(n),m.attachMedia(p)}p.addEventListener(t,E)},a=0,o=y.length;a<o;a++)i(y[a]);var s=void 0,d=void 0,u=function(t){r.hasOwnProperty(t)&&m.on(r[t],function(){for(var i=arguments.length,a=Array(i),o=0;o<i;o++)a[o]=arguments[o];return function(t,r){if("hlsError"===t){if(console.warn(r),(r=r[1]).fatal)switch(r.type){case"mediaError":var i=(new Date).getTime();if(!s||i-s>3e3)s=(new Date).getTime(),m.recoverMediaError();else if(!d||i-d>3e3)d=(new Date).getTime(),console.warn("Attempting to swap Audio Codec and recover from media error"),m.swapAudioCodec(),m.recoverMediaError();else{var a="Cannot recover, last media error recovery failed";e.generateError(a,p.src),console.error(a)}break;case"networkError":"manifestLoadError"===r.details&&h<v&&void 0!==n[h+1]?(p.setSrc(n[h++].src),p.load(),p.play()):(e.generateError("Network error",n),console.error("Network error"));break;default:m.destroy()}}else{var o=(0,l.createEvent)(t,e);o.data=r,e.dispatchEvent(o)}}(r[t],a)})};for(var c in r)u(c)},v>0)for(;h<v;h++)if(o.renderer.renderers[t.prefix].canPlayType(n[h].type)){p.setAttribute("src",n[h].src);break}"auto"===u||c||(p.addEventListener("play",function(){null!==m&&m.startLoad()}),p.addEventListener("pause",function(){null!==m&&m.stopLoad()})),p.setAttribute("id",d),s.parentNode.insertBefore(p,s),s.autoplay=!1,s.style.display="none",p.setSize=function(e,t){return p.style.width=e+"px",p.style.height=t+"px",p},p.hide=function(){return p.pause(),p.style.display="none",p},p.show=function(){return p.style.display="",p},p.destroy=function(){null!==m&&(m.stopLoad(),m.destroy())};var S=(0,l.createEvent)("rendererready",p);return e.dispatchEvent(S),e.promises.push(f.load({options:t.hls,id:d})),p}};d.typeChecks.push(function(e){return~e.toLowerCase().indexOf(".m3u8")?"application/x-mpegURL":null}),o.renderer.add(m)},{16:16,17:17,18:18,19:19,3:3,7:7,8:8}],14:[function(e,t,n){"use strict";var r=d(e(3)),i=d(e(2)),a=d(e(7)),o=e(8),l=e(18),s=e(16);function d(e){return e&&e.__esModule?e:{default:e}}var u={name:"html5",options:{prefix:"html5"},canPlayType:function(e){var t=i.default.createElement("video");return s.IS_ANDROID&&/\/mp(3|4)$/i.test(e)||~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())&&s.SUPPORTS_NATIVE_HLS?"yes":t.canPlayType?t.canPlayType(e.toLowerCase()).replace(/no/,""):""},create:function(e,t,n){var r=e.id+"_"+t.prefix,s=!1,d=null;void 0===e.originalNode||null===e.originalNode?(d=i.default.createElement("audio"),e.appendChild(d)):d=e.originalNode,d.setAttribute("id",r);for(var u=a.default.html5media.properties,c=function(e){var t=""+e.substring(0,1).toUpperCase()+e.substring(1);d["get"+t]=function(){return d[e]},d["set"+t]=function(t){-1===a.default.html5media.readOnlyProperties.indexOf(e)&&(d[e]=t)}},f=0,m=u.length;f<m;f++)c(u[f]);for(var p,h=a.default.html5media.events.concat(["click","mouseover","mouseout"]).filter(function(e){return"error"!==e}),v=0,g=h.length;v<g;v++)p=h[v],d.addEventListener(p,function(t){if(s){var n=(0,l.createEvent)(t.type,t.target);e.dispatchEvent(n)}});d.setSize=function(e,t){return d.style.width=e+"px",d.style.height=t+"px",d},d.hide=function(){return s=!1,d.style.display="none",d},d.show=function(){return s=!0,d.style.display="",d};var y=0,E=n.length;if(E>0)for(;y<E;y++)if(o.renderer.renderers[t.prefix].canPlayType(n[y].type)){d.setAttribute("src",n[y].src);break}d.addEventListener("error",function(t){4===t.target.error.code&&s&&(y<E&&void 0!==n[y+1]?(d.src=n[y++].src,d.load(),d.play()):e.generateError("Media error: Format(s) not supported or source(s) not found",n))});var b=(0,l.createEvent)("rendererready",d);return e.dispatchEvent(b),d}};r.default.HtmlMediaElement=a.default.HtmlMediaElement=u,o.renderer.add(u)},{16:16,18:18,2:2,3:3,7:7,8:8}],15:[function(e,t,n){"use strict";var r=u(e(3)),i=u(e(2)),a=u(e(7)),o=e(8),l=e(18),s=e(19),d=e(17);function u(e){return e&&e.__esModule?e:{default:e}}var c={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(e){c.isLoaded="undefined"!=typeof YT&&YT.loaded,c.isLoaded?c.createIframe(e):(c.loadIframeApi(),c.iframeQueue.push(e))},loadIframeApi:function(){c.isIframeStarted||((0,d.loadScript)("https://www.youtube.com/player_api"),c.isIframeStarted=!0)},iFrameReady:function(){for(c.isLoaded=!0,c.isIframeLoaded=!0;c.iframeQueue.length>0;){var e=c.iframeQueue.pop();c.createIframe(e)}},createIframe:function(e){return new YT.Player(e.containerId,e)},getYouTubeId:function(e){var t="";return e.indexOf("?")>0?""===(t=c.getYouTubeIdFromParam(e))&&(t=c.getYouTubeIdFromUrl(e)):t=c.getYouTubeIdFromUrl(e),(t=t.substring(t.lastIndexOf("/")+1).split("?"))[0]},getYouTubeIdFromParam:function(e){if(void 0===e||null===e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),n="",r=0,i=t.length;r<i;r++){var a=t[r].split("=");if("v"===a[0]){n=a[1];break}}return n},getYouTubeIdFromUrl:function(e){return void 0!==e&&null!==e&&e.trim().length?(e=e.split("?")[0]).substring(e.lastIndexOf("/")+1):null},getYouTubeNoCookieUrl:function(e){if(void 0===e||null===e||!e.trim().length||-1===e.indexOf("//www.youtube"))return e;var t=e.split("/");return t[2]=t[2].replace(".com","-nocookie.com"),t.join("/")}},f={name:"youtube_iframe",options:{prefix:"youtube_iframe",youtube:{autoplay:0,controls:0,disablekb:1,end:0,loop:0,modestbranding:0,playsinline:0,rel:0,showinfo:0,start:0,iv_load_policy:3,nocookie:!1,imageQuality:null}},canPlayType:function(e){return~["video/youtube","video/x-youtube"].indexOf(e.toLowerCase())},create:function(e,t,n){var o={},s=[],d=null,u=!0,f=!1,m=null;o.options=t,o.id=e.id+"_"+t.prefix,o.mediaElement=e;for(var p=a.default.html5media.properties,h=function(t){var n=""+t.substring(0,1).toUpperCase()+t.substring(1);o["get"+n]=function(){if(null!==d){switch(t){case"currentTime":return d.getCurrentTime();case"duration":return d.getDuration();case"volume":return d.getVolume()/100;case"paused":return u;case"ended":return f;case"muted":return d.isMuted();case"buffered":var e=d.getVideoLoadedFraction(),n=d.getDuration();return{start:function(){return 0},end:function(){return e*n},length:1};case"src":return d.getVideoUrl();case"readyState":return 4}return null}return null},o["set"+n]=function(n){if(null!==d)switch(t){case"src":var r="string"==typeof n?n:n[0].src,i=c.getYouTubeId(r);e.originalNode.autoplay?d.loadVideoById(i):d.cueVideoById(i);break;case"currentTime":d.seekTo(n);break;case"muted":n?d.mute():d.unMute(),setTimeout(function(){var t=(0,l.createEvent)("volumechange",o);e.dispatchEvent(t)},50);break;case"volume":n,d.setVolume(100*n),setTimeout(function(){var t=(0,l.createEvent)("volumechange",o);e.dispatchEvent(t)},50);break;case"readyState":var a=(0,l.createEvent)("canplay",o);e.dispatchEvent(a)}else s.push({type:"set",propName:t,value:n})}},v=0,g=p.length;v<g;v++)h(p[v]);for(var y=a.default.html5media.methods,E=function(e){o[e]=function(){if(null!==d)switch(e){case"play":return u=!1,d.playVideo();case"pause":return u=!0,d.pauseVideo();case"load":return null}else s.push({type:"call",methodName:e})}},b=0,w=y.length;b<w;b++)E(y[b]);var _=i.default.createElement("div");_.id=o.id,o.options.youtube.nocookie&&(e.originalNode.src=c.getYouTubeNoCookieUrl(n[0].src)),e.originalNode.parentNode.insertBefore(_,e.originalNode),e.originalNode.style.display="none";var S="audio"===e.originalNode.tagName.toLowerCase(),N=S?"1":e.originalNode.height,j=S?"1":e.originalNode.width,A=c.getYouTubeId(n[0].src),T={id:o.id,containerId:_.id,videoId:A,height:N,width:j,playerVars:Object.assign({controls:0,rel:0,disablekb:1,showinfo:0,modestbranding:0,html5:1,iv_load_policy:3},o.options.youtube),origin:r.default.location.host,events:{onReady:function(t){if(e.youTubeApi=d=t.target,e.youTubeState={paused:!0,ended:!1},s.length)for(var n=0,r=s.length;n<r;n++){var i=s[n];if("set"===i.type){var a=i.propName,u=""+a.substring(0,1).toUpperCase()+a.substring(1);o["set"+u](i.value)}else"call"===i.type&&o[i.methodName]()}m=d.getIframe(),e.originalNode.muted&&d.mute();for(var c=["mouseover","mouseout"],f=function(t){var n=(0,l.createEvent)(t.type,o);e.dispatchEvent(n)},p=0,h=c.length;p<h;p++)m.addEventListener(c[p],f,!1);for(var v=["rendererready","loadedmetadata","loadeddata","canplay"],g=0,y=v.length;g<y;g++){var E=(0,l.createEvent)(v[g],o);e.dispatchEvent(E)}},onStateChange:function(t){var n=[];switch(t.data){case-1:n=["loadedmetadata"],u=!0,f=!1;break;case 0:n=["ended"],u=!1,f=!o.options.youtube.loop,o.options.youtube.loop||o.stopInterval();break;case 1:n=["play","playing"],u=!1,f=!1,o.startInterval();break;case 2:n=["pause"],u=!0,f=!1,o.stopInterval();break;case 3:n=["progress"],f=!1;break;case 5:n=["loadeddata","loadedmetadata","canplay"],u=!0,f=!1}for(var r=0,i=n.length;r<i;r++){var a=(0,l.createEvent)(n[r],o);e.dispatchEvent(a)}},onError:function(t){return function(t){var r="";switch(t.data){case 2:r="The request contains an invalid parameter value. Verify that video ID has 11 characters and that contains no invalid characters, such as exclamation points or asterisks.";break;case 5:r="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.";break;case 100:r="The video requested was not found. Either video has been removed or has been marked as private.";break;case 101:case 105:r="The owner of the requested video does not allow it to be played in embedded players.";break;default:r="Unknown error."}e.generateError("Code "+t.data+": "+r,n)}(t)}}};return(S||e.originalNode.hasAttribute("playsinline"))&&(T.playerVars.playsinline=1),e.originalNode.controls&&(T.playerVars.controls=1),e.originalNode.autoplay&&(T.playerVars.autoplay=1),e.originalNode.loop&&(T.playerVars.loop=1),(T.playerVars.loop&&1===parseInt(T.playerVars.loop,10)||e.originalNode.src.indexOf("loop=")>-1)&&!T.playerVars.playlist&&-1===e.originalNode.src.indexOf("playlist=")&&(T.playerVars.playlist=c.getYouTubeId(e.originalNode.src)),c.enqueueIframe(T),o.onEvent=function(t,n,r){null!==r&&void 0!==r&&(e.youTubeState=r)},o.setSize=function(e,t){null!==d&&d.setSize(e,t)},o.hide=function(){o.stopInterval(),o.pause(),m&&(m.style.display="none")},o.show=function(){m&&(m.style.display="")},o.destroy=function(){d.destroy()},o.interval=null,o.startInterval=function(){o.interval=setInterval(function(){var t=(0,l.createEvent)("timeupdate",o);e.dispatchEvent(t)},250)},o.stopInterval=function(){o.interval&&clearInterval(o.interval)},o.getPosterUrl=function(){var n=t.youtube.imageQuality,r=c.getYouTubeId(e.originalNode.src);return n&&["default","hqdefault","mqdefault","sddefault","maxresdefault"].indexOf(n)>-1&&r?"https://img.youtube.com/vi/"+r+"/"+n+".jpg":""},o}};r.default.onYouTubePlayerAPIReady=function(){c.iFrameReady()},s.typeChecks.push(function(e){return/\/\/(www\.youtube|youtu\.?be)/i.test(e)?"video/x-youtube":null}),o.renderer.add(f)},{17:17,18:18,19:19,2:2,3:3,7:7,8:8}],16:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.cancelFullScreen=n.requestFullScreen=n.isFullScreen=n.FULLSCREEN_EVENT_NAME=n.HAS_NATIVE_FULLSCREEN_ENABLED=n.HAS_TRUE_NATIVE_FULLSCREEN=n.HAS_IOS_FULLSCREEN=n.HAS_MS_NATIVE_FULLSCREEN=n.HAS_MOZ_NATIVE_FULLSCREEN=n.HAS_WEBKIT_NATIVE_FULLSCREEN=n.HAS_NATIVE_FULLSCREEN=n.SUPPORTS_NATIVE_HLS=n.SUPPORT_PASSIVE_EVENT=n.SUPPORT_POINTER_EVENTS=n.HAS_MSE=n.IS_STOCK_ANDROID=n.IS_SAFARI=n.IS_FIREFOX=n.IS_CHROME=n.IS_EDGE=n.IS_IE=n.IS_ANDROID=n.IS_IOS=n.IS_IPOD=n.IS_IPHONE=n.IS_IPAD=n.UA=n.NAV=void 0;var r=o(e(3)),i=o(e(2)),a=o(e(7));function o(e){return e&&e.__esModule?e:{default:e}}for(var l=n.NAV=r.default.navigator,s=n.UA=l.userAgent.toLowerCase(),d=n.IS_IPAD=/ipad/i.test(s)&&!r.default.MSStream,u=n.IS_IPHONE=/iphone/i.test(s)&&!r.default.MSStream,c=n.IS_IPOD=/ipod/i.test(s)&&!r.default.MSStream,f=(n.IS_IOS=/ipad|iphone|ipod/i.test(s)&&!r.default.MSStream,n.IS_ANDROID=/android/i.test(s)),m=n.IS_IE=/(trident|microsoft)/i.test(l.appName),p=(n.IS_EDGE="msLaunchUri"in l&&!("documentMode"in i.default)),h=n.IS_CHROME=/chrome/i.test(s),v=n.IS_FIREFOX=/firefox/i.test(s),g=n.IS_SAFARI=/safari/i.test(s)&&!h,y=n.IS_STOCK_ANDROID=/^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(s),E=(n.HAS_MSE="MediaSource"in r.default),b=n.SUPPORT_POINTER_EVENTS=function(){var e=i.default.createElement("x"),t=i.default.documentElement,n=r.default.getComputedStyle;if(!("pointerEvents"in e.style))return!1;e.style.pointerEvents="auto",e.style.pointerEvents="x",t.appendChild(e);var a=n&&"auto"===n(e,"").pointerEvents;return e.remove(),!!a}(),w=n.SUPPORT_PASSIVE_EVENT=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});r.default.addEventListener("test",null,t)}catch(e){}return e}(),_=["source","track","audio","video"],S=void 0,N=0,j=_.length;N<j;N++)S=i.default.createElement(_[N]);var A=n.SUPPORTS_NATIVE_HLS=g||f&&(h||y)||m&&/edge/i.test(s),T=void 0!==S.webkitEnterFullscreen,F=void 0!==S.requestFullscreen;T&&/mac os x 10_5/i.test(s)&&(F=!1,T=!1);var P=void 0!==S.webkitRequestFullScreen,x=void 0!==S.mozRequestFullScreen,L=void 0!==S.msRequestFullscreen,O=P||x||L,C=O,I="",k=void 0,U=void 0,M=void 0;x?C=i.default.mozFullScreenEnabled:L&&(C=i.default.msFullscreenEnabled),h&&(T=!1),O&&(P?I="webkitfullscreenchange":x?I="mozfullscreenchange":L&&(I="MSFullscreenChange"),n.isFullScreen=k=function(){return x?i.default.mozFullScreen:P?i.default.webkitIsFullScreen:L?null!==i.default.msFullscreenElement:void 0},n.requestFullScreen=U=function(e){P?e.webkitRequestFullScreen():x?e.mozRequestFullScreen():L&&e.msRequestFullscreen()},n.cancelFullScreen=M=function(){P?i.default.webkitCancelFullScreen():x?i.default.mozCancelFullScreen():L&&i.default.msExitFullscreen()});var R=n.HAS_NATIVE_FULLSCREEN=F,V=n.HAS_WEBKIT_NATIVE_FULLSCREEN=P,D=n.HAS_MOZ_NATIVE_FULLSCREEN=x,H=n.HAS_MS_NATIVE_FULLSCREEN=L,q=n.HAS_IOS_FULLSCREEN=T,z=n.HAS_TRUE_NATIVE_FULLSCREEN=O,B=n.HAS_NATIVE_FULLSCREEN_ENABLED=C,Y=n.FULLSCREEN_EVENT_NAME=I;n.isFullScreen=k,n.requestFullScreen=U,n.cancelFullScreen=M,a.default.Features=a.default.Features||{},a.default.Features.isiPad=d,a.default.Features.isiPod=c,a.default.Features.isiPhone=u,a.default.Features.isiOS=a.default.Features.isiPhone||a.default.Features.isiPad,a.default.Features.isAndroid=f,a.default.Features.isIE=m,a.default.Features.isEdge=p,a.default.Features.isChrome=h,a.default.Features.isFirefox=v,a.default.Features.isSafari=g,a.default.Features.isStockAndroid=y,a.default.Features.hasMSE=E,a.default.Features.supportsNativeHLS=A,a.default.Features.supportsPointerEvents=b,a.default.Features.supportsPassiveEvent=w,a.default.Features.hasiOSFullScreen=q,a.default.Features.hasNativeFullscreen=R,a.default.Features.hasWebkitNativeFullScreen=V,a.default.Features.hasMozNativeFullScreen=D,a.default.Features.hasMsNativeFullScreen=H,a.default.Features.hasTrueNativeFullScreen=z,a.default.Features.nativeFullScreenEnabled=B,a.default.Features.fullScreenEventName=Y,a.default.Features.isFullScreen=k,a.default.Features.requestFullScreen=U,a.default.Features.cancelFullScreen=M},{2:2,3:3,7:7}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.removeClass=n.addClass=n.hasClass=void 0,n.loadScript=l,n.offset=s,n.toggleClass=h,n.fadeOut=v,n.fadeIn=g,n.siblings=y,n.visible=E,n.ajax=b;var r=o(e(3)),i=o(e(2)),a=o(e(7));function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return new Promise(function(t,n){var r=i.default.createElement("script");r.src=e,r.async=!0,r.onload=function(){r.remove(),t()},r.onerror=function(){r.remove(),n()},i.default.head.appendChild(r)})}function s(e){var t=e.getBoundingClientRect(),n=r.default.pageXOffset||i.default.documentElement.scrollLeft,a=r.default.pageYOffset||i.default.documentElement.scrollTop;return{top:t.top+a,left:t.left+n}}var d=void 0,u=void 0,c=void 0;"classList"in i.default.documentElement?(d=function(e,t){return void 0!==e.classList&&e.classList.contains(t)},u=function(e,t){return e.classList.add(t)},c=function(e,t){return e.classList.remove(t)}):(d=function(e,t){return new RegExp("\\b"+t+"\\b").test(e.className)},u=function(e,t){f(e,t)||(e.className+=" "+t)},c=function(e,t){e.className=e.className.replace(new RegExp("\\b"+t+"\\b","g"),"")});var f=n.hasClass=d,m=n.addClass=u,p=n.removeClass=c;function h(e,t){f(e,t)?p(e,t):m(e,t)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments[2];e.style.opacity||(e.style.opacity=1);var i=null;r.default.requestAnimationFrame(function a(o){var l=o-(i=i||o),s=parseFloat(1-l/t,2);e.style.opacity=s<0?0:s,l>t?n&&"function"==typeof n&&n():r.default.requestAnimationFrame(a)})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,n=arguments[2];e.style.opacity||(e.style.opacity=0);var i=null;r.default.requestAnimationFrame(function a(o){var l=o-(i=i||o),s=parseFloat(l/t,2);e.style.opacity=s>1?1:s,l>t?n&&"function"==typeof n&&n():r.default.requestAnimationFrame(a)})}function y(e,t){var n=[];e=e.parentNode.firstChild;do{t&&!t(e)||n.push(e)}while(e=e.nextSibling);return n}function E(e){return void 0!==e.getClientRects&&"function"===e.getClientRects?!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):!(!e.offsetWidth&&!e.offsetHeight)}function b(e,t,n,i){var a=r.default.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),o="application/x-www-form-urlencoded; charset=UTF-8",l=!1,s="*/".concat("*");switch(t){case"text":o="text/plain";break;case"json":o="application/json, text/javascript";break;case"html":o="text/html";break;case"xml":o="application/xml, text/xml"}"application/x-www-form-urlencoded"!==o&&(s=o+", */*; q=0.01"),a&&(a.open("GET",e,!0),a.setRequestHeader("Accept",s),a.onreadystatechange=function(){if(!l&&4===a.readyState)if(200===a.status){l=!0;var e=void 0;switch(t){case"json":e=JSON.parse(a.responseText);break;case"xml":e=a.responseXML;break;default:e=a.responseText}n(e)}else"function"==typeof i&&i(a.status)},a.send())}a.default.Utils=a.default.Utils||{},a.default.Utils.offset=s,a.default.Utils.hasClass=f,a.default.Utils.addClass=m,a.default.Utils.removeClass=p,a.default.Utils.toggleClass=h,a.default.Utils.fadeIn=g,a.default.Utils.fadeOut=v,a.default.Utils.siblings=y,a.default.Utils.visible=E,a.default.Utils.ajax=b,a.default.Utils.loadScript=l},{2:2,3:3,7:7}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.escapeHTML=o,n.debounce=l,n.isObjectEmpty=s,n.splitEvents=d,n.createEvent=u,n.isNodeAfter=c,n.isString=f;var r,i=e(7),a=(r=i)&&r.__esModule?r:{default:r};function o(e){if("string"!=typeof e)throw new Error("Argument passed must be a string");var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return e.replace(/[&<>"]/g,function(e){return t[e]})}function l(e,t){var n=this,r=arguments,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof e)throw new Error("First argument must be a function");if("number"!=typeof t)throw new Error("Second argument must be a numeric value");var a=void 0;return function(){var o=n,l=r,s=i&&!a;clearTimeout(a),a=setTimeout(function(){a=null,i||e.apply(o,l)},t),s&&e.apply(o,l)}}function s(e){return Object.getOwnPropertyNames(e).length<=0}function d(e,t){var n=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,r={d:[],w:[]};return(e||"").split(" ").forEach(function(e){var i=e+(t?"."+t:"");i.startsWith(".")?(r.d.push(i),r.w.push(i)):r[n.test(e)?"w":"d"].push(i)}),r.d=r.d.join(" "),r.w=r.w.join(" "),r}function u(e,t){if("string"!=typeof e)throw new Error("Event name must be a string");var n=e.match(/([a-z]+\.([a-z]+))/i),r={target:t};return null!==n&&(e=n[1],r.namespace=n[2]),new window.CustomEvent(e,{detail:r})}function c(e,t){return!!(e&&t&&2&e.compareDocumentPosition(t))}function f(e){return"string"==typeof e}a.default.Utils=a.default.Utils||{},a.default.Utils.escapeHTML=o,a.default.Utils.debounce=l,a.default.Utils.isObjectEmpty=s,a.default.Utils.splitEvents=d,a.default.Utils.createEvent=u,a.default.Utils.isNodeAfter=c,a.default.Utils.isString=f},{7:7}],19:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.typeChecks=void 0,n.absolutizeUrl=s,n.formatType=d,n.getMimeFromType=u,n.getTypeFromFile=c,n.getExtension=f,n.normalizeExtension=m;var r,i=e(7),a=(r=i)&&r.__esModule?r:{default:r},o=e(18);var l=n.typeChecks=[];function s(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=document.createElement("div");return t.innerHTML='<a href="'+(0,o.escapeHTML)(e)+'">x</a>',t.firstChild.href}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&!t?c(e):t}function u(e){if("string"!=typeof e)throw new Error("`type` argument must be a string");return e&&e.indexOf(";")>-1?e.substr(0,e.indexOf(";")):e}function c(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");for(var t=0,n=l.length;t<n;t++){var r=l[t](e);if(r)return r}var i=m(f(e)),a="video/mp4";return i&&(~["mp4","m4v","ogg","ogv","webm","flv","mpeg","mov"].indexOf(i)?a="video/"+i:~["mp3","oga","wav","mid","midi"].indexOf(i)&&(a="audio/"+i)),a}function f(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=e.split("?")[0].split("\\").pop().split("/").pop();return~t.indexOf(".")?t.substring(t.lastIndexOf(".")+1):""}function m(e){if("string"!=typeof e)throw new Error("`extension` argument must be a string");switch(e){case"mp4":case"m4v":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return e}}a.default.Utils=a.default.Utils||{},a.default.Utils.typeChecks=l,a.default.Utils.absolutizeUrl=s,a.default.Utils.formatType=d,a.default.Utils.getMimeFromType=u,a.default.Utils.getTypeFromFile=c,a.default.Utils.getExtension=f,a.default.Utils.normalizeExtension=m},{18:18,7:7}],20:[function(e,t,n){"use strict";var r,i=o(e(2)),a=o(e(4));function o(e){return e&&e.__esModule?e:{default:e}}if([Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach(function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=i.default.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}(),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null===e||void 0===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;n++){var i=arguments[n];if(null!==i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length-1;--n>=0&&t.item(n)!==this;);return n>-1}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),n=void 0,r=this;do{for(n=t.length;--n>=0&&t.item(n)!==r;);}while(n<0&&(r=r.parentElement));return r}),function(){for(var e=0,t=["ms","moz","webkit","o"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var n=(new Date).getTime(),r=Math.max(0,16-(n-e)),i=window.setTimeout(function(){t(n+r)},r);return e=n+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),/firefox/i.test(navigator.userAgent)){var l=window.getComputedStyle;window.getComputedStyle=function(e,t){var n=l(e,t);return null===n?{getPropertyValue:function(){}}:n}}window.Promise||(window.Promise=a.default),(r=window.Node||window.Element)&&r.prototype&&null===r.prototype.children&&Object.defineProperty(r.prototype,"children",{get:function(){for(var e=0,t=void 0,n=this.childNodes,r=[];t=n[e++];)1===t.nodeType&&r.push(t);return r}})},{2:2,4:4}]},{},[20,6,5,9,14,11,10,12,13,15]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L192

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/codesample/plugin.js:192
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- env.element.innerHTML = env.highlightedCode;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1369

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.js:1369
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- elm.innerHTML = children;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L23521

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:23521
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- var domainRelaxUrl = 'javascript:(function(){' + 'document.open();document.domain="' + document.domain + '";' + 'var ed = window.parent.tinymce.get("' + editor.id + '");document.write(ed.iframeHTML);' + 'document.close();ed.' + bodyUuid + '(true);})()';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.min.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd-ce.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";var t,e="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,n="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};function o(){o=function(){},e.Symbol||(e.Symbol=i)}var r,i=(r=0,function(t){return"jscomp_symbol_"+(t||"")+r++});function a(){o();var t=e.Symbol.iterator;t||(t=e.Symbol.iterator=e.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&n(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return s(this)}}),a=function(){}}function s(t){var n=0;return function(t){return a(),(t={next:t})[e.Symbol.iterator]=function(){return this},t}(function(){return n<t.length?{done:!1,value:t[n++]}:{done:!0}})}!function(t){function e(t,e){if("function"==typeof window.CustomEvent)return new CustomEvent(t,e);var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),n}function n(t){if(u)return t.ownerDocument!==document?t.ownerDocument:null;var e=t.__importDoc;if(!e&&t.parentNode){if("function"==typeof(e=t.parentNode).closest)e=e.closest("link[rel=import]");else for(;!a(e)&&(e=e.parentNode););t.__importDoc=e}return e}function o(t){function e(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",e),t())}document.addEventListener("readystatechange",e),e()}function r(t){o(function(){return function(t){var e=l(document,"link[rel=import]:not([import-dependency])"),n=e.length;n?c(e,function(e){return i(e,function(){0==--n&&t()})}):t()}(function(){return t&&t()})})}function i(t,e){if(t.__loaded)e&&e();else if("script"===t.localName&&!t.src||"style"===t.localName&&!t.firstChild)t.__loaded=!0,e&&e();else{var n=function(o){t.removeEventListener(o.type,n),t.__loaded=!0,e&&e()};t.addEventListener("load",n),g&&"style"===t.localName||t.addEventListener("error",n)}}function a(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function s(){var t=this;this.a={},this.b=0,this.c=new MutationObserver(function(e){return t.Ga(e)}),this.c.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document)}function l(t,e){return t.childNodes.length?t.querySelectorAll(e):h}function c(t,e,n){var o=t?t.length:0,r=n?-1:1;for(n=n?o-1:0;n<o&&0<=n;n+=r)e(t[n],n)}var d=document.createElement("link"),u="import"in d,h=d.querySelectorAll("*"),f=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return f||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var p=/(url\()([^)]*)(\))/g,m=/(@import[\s]+(?!url\())([^;]*)(;)/g,y=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,_={Aa:function(t,e){if(t.href&&t.setAttribute("href",_.R(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",_.R(t.getAttribute("src"),e)),"style"===t.localName){var n=_.ja(t.textContent,e,p);t.textContent=_.ja(n,e,m)}},ja:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=_.R(t,e)),n+"'"+t+"'"+r})},R:function(t,e){if(void 0===_.V){_.V=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",_.V="http://a/c%20d"===n.href}catch(t){}}return _.V?new URL(t,e).href:((n=_.ra)||(n=document.implementation.createHTMLDocument("temp"),_.ra=n,n.ea=n.createElement("base"),n.head.appendChild(n.ea),n.da=n.createElement("a")),n.ea.href=e,n.da.href=t,n.da.href||t)}},v={async:!0,load:function(t,e,n){if(t)if(t.match(/^data:/)){var o=(t=t.split(","))[1];o=-1<t[0].indexOf(";base64")?atob(o):decodeURIComponent(o),e(o)}else{var r=new XMLHttpRequest;r.open("GET",t,v.async),r.onload=function(){var t=r.responseURL||r.getResponseHeader("Location");t&&0===t.indexOf("/")&&(t=(location.origin||location.protocol+"//"+location.host)+t);var o=r.response||r.responseText;304===r.status||0===r.status||200<=r.status&&300>r.status?e(o,t):n(o)},r.send()}else n("error: href must be specified")}},g=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);s.prototype.loadImports=function(t){var e=this;c(t=l(t,"link[rel=import]"),function(t){return e.m(t)})},s.prototype.m=function(t){var e=this,n=t.href;if(void 0!==this.a[n]){var o=this.a[n];o&&o.__loaded&&(t.__import=o,this.f(t))}else this.b++,this.a[n]="pending",v.load(n,function(t,o){t=e.Ha(t,o||n),e.a[n]=t,e.b--,e.loadImports(t),e.F()},function(){e.a[n]=null,e.b--,e.F()})},s.prototype.Ha=function(t,e){if(!t)return document.createDocumentFragment();g&&(t=t.replace(y,function(t,e,n){return-1===t.indexOf("type=")?e+" type=import-disable "+n:t}));var n=document.createElement("template");if(n.innerHTML=t,n.content)(function t(e){c(l(e,"template"),function(e){c(l(e.content,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(t){var e=document.createElement("script");c(t.attributes,function(t){return e.setAttribute(t.name,t.value)}),e.textContent=t.textContent,t.parentNode.replaceChild(e,t)}),t(e.content)})})(t=n.content);else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=_.R(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return c(n=l(t,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(t){i(t),_.Aa(t,e),t.setAttribute("import-dependency",""),"script"===t.localName&&!t.src&&t.textContent&&(t.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(t.textContent+"\n//# sourceURL="+e+(o?"-"+o:"")+".js\n")),t.textContent="",o++)}),t},s.prototype.F=function(){var t=this;if(!this.b){this.c.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.loadImports(document),t.b||(t.c.observe(document.head,{childList:!0,subtree:!0}),t.Ea()))};this.Ja(function(){n=!0,o()}),this.Ia(function(){e=!0,o()})}},s.prototype.flatten=function(t){var e=this;c(t=l(t,"link[rel=import]"),function(t){var n=e.a[t.href];(t.__import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(e.a[t.href]=t,t.readyState="loading",t.__import=t,e.flatten(n),t.appendChild(n))})},s.prototype.Ia=function(t){var e=l(document,"script[import-dependency]"),n=e.length;!function o(r){if(r<n){var a=e[r],s=document.createElement("script");a.removeAttribute("import-dependency"),c(a.attributes,function(t){return s.setAttribute(t.name,t.value)}),f=s,a.parentNode.replaceChild(s,a),i(s,function(){f=null,o(r+1)})}else t()}(0)},s.prototype.Ja=function(t){var e=l(document,"style[import-dependency],link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=g&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");c(e,function(e){if(i(e,function(){e.removeAttribute("import-dependency"),0==--o&&t()}),r&&e.parentNode!==document.head){var a=document.createElement(e.localName);for(a.__appliedElement=e,a.setAttribute("type","import-placeholder"),e.parentNode.insertBefore(a,e.nextSibling),a=n(e);a&&n(a);)a=n(a);a.parentNode!==document.head&&(a=null),document.head.insertBefore(e,a),e.removeAttribute("type")}})}else t()},s.prototype.Ea=function(){var t=this;c(l(document,"link[rel=import]"),function(e){return t.f(e)},!0)},s.prototype.f=function(t){t.__loaded||(t.__loaded=!0,t.import&&(t.import.readyState="complete"),t.dispatchEvent(e(t.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},s.prototype.Ga=function(t){var e=this;c(t,function(t){return c(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(a(t)?e.m(t):e.loadImports(t))})})};var b=null;if(u)c(d=l(document,"link[rel=import]"),function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)}),d=function(t){a(t=t.target)&&(t.__loaded=!0)},document.addEventListener("load",d,!0),document.addEventListener("error",d,!0);else{var w=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!w||w.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=a(this)?this:n(this);return t?t.href:w&&w.get?w.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),Object.defineProperty(HTMLLinkElement.prototype,"import",{get:function(){return this.__import||null},configurable:!0,enumerable:!0}),o(function(){b=new s})}r(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=u,t.whenReady=r,t.importForElement=n,t.loadImports=function(t){b&&b.loadImports(t)}}(window.HTMLImports=window.HTMLImports||{});var l=window.ShadyDOM||{};l.Ca=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var c=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function d(t){return t.__shady&&void 0!==t.__shady.firstChild}function u(t){return"ShadyRoot"===t.oa}function h(t){if(u(t=t.getRootNode()))return t}l.G=!!(c&&c.configurable&&c.get),l.ia=l.force||!l.Ca;var f=Element.prototype,p=f.matches||f.matchesSelector||f.mozMatchesSelector||f.msMatchesSelector||f.oMatchesSelector||f.webkitMatchesSelector;function m(t,e){if(t&&e)for(var n,o=Object.getOwnPropertyNames(e),r=0;r<o.length&&(n=o[r]);r++){var i=Object.getOwnPropertyDescriptor(e,n);i&&Object.defineProperty(t,n,i)}}function y(t,e){for(var n=[],o=1;o<arguments.length;++o)n[o-1]=arguments[o];for(o=0;o<n.length;o++)m(t,n[o]);return t}var _=document.createTextNode(""),v=0,g=[];function b(t){g.push(t),_.textContent=v++}new MutationObserver(function(){for(;g.length;)try{g.shift()()}catch(t){throw _.textContent=v++,t}}).observe(_,{characterData:!0});var w=!!document.contains;function E(t,e){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}var N,C=[];function S(t){N||(N=!0,b(T)),C.push(t)}function T(){N=!1;for(var t=!!C.length;C.length;)C.shift()();return t}function x(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.N=new Set}T.list=C,x.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var t=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],t}return[]};var O={},A=Element.prototype.insertBefore,D=Element.prototype.removeChild,L=Element.prototype.setAttribute,M=Element.prototype.removeAttribute,k=Element.prototype.cloneNode,R=Document.prototype.importNode,j=Element.prototype.addEventListener,P=Element.prototype.removeEventListener,H=Window.prototype.addEventListener,I=Window.prototype.removeEventListener,F=Element.prototype.dispatchEvent,V=Element.prototype.querySelector,W=Element.prototype.querySelectorAll,q=Node.prototype.contains||HTMLElement.prototype.contains;O.appendChild=Element.prototype.appendChild,O.insertBefore=A,O.removeChild=D,O.setAttribute=L,O.removeAttribute=M,O.cloneNode=k,O.importNode=R,O.addEventListener=j,O.removeEventListener=P,O.Qa=H,O.Ra=I,O.dispatchEvent=F,O.querySelector=V,O.querySelectorAll=W,O.contains=q;var B=/[&\u00A0"]/g,U=/[&\u00A0<>]/g;function G(t){switch(t){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function $(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=!0;return e}var z=$("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),J=$("style script xmp iframe noembed noframes plaintext noscript".split(" "));function K(t,e){"template"===t.localName&&(t=t.content);for(var n,o="",r=e?e(t):t.childNodes,i=0,a=r.length;i<a&&(n=r[i]);i++){t:{var s=n,l=t,c=e;switch(s.nodeType){case Node.ELEMENT_NODE:for(var d=s.localName,u="<"+d,h=s.attributes,f=0;l=h[f];f++)u+=" "+l.name+'="'+l.value.replace(B,G)+'"';u+=">",s=z[d]?u:u+K(s,c)+"</"+d+">";break t;case Node.TEXT_NODE:s=s.data,s=l&&J[l.localName]?s:s.replace(U,G);break t;case Node.COMMENT_NODE:s="\x3c!--"+s.data+"--\x3e";break t;default:throw window.console.error(s),Error("not implemented")}}o+=s}return o}var X={},Y=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Z=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function Q(t){var e=[];for(Y.currentNode=t,t=Y.firstChild();t;)e.push(t),t=Y.nextSibling();return e}X.parentNode=function(t){return Y.currentNode=t,Y.parentNode()},X.firstChild=function(t){return Y.currentNode=t,Y.firstChild()},X.lastChild=function(t){return Y.currentNode=t,Y.lastChild()},X.previousSibling=function(t){return Y.currentNode=t,Y.previousSibling()},X.nextSibling=function(t){return Y.currentNode=t,Y.nextSibling()},X.childNodes=Q,X.parentElement=function(t){return Z.currentNode=t,Z.parentNode()},X.firstElementChild=function(t){return Z.currentNode=t,Z.firstChild()},X.lastElementChild=function(t){return Z.currentNode=t,Z.lastChild()},X.previousElementSibling=function(t){return Z.currentNode=t,Z.previousSibling()},X.nextElementSibling=function(t){return Z.currentNode=t,Z.nextSibling()},X.children=function(t){var e=[];for(Z.currentNode=t,t=Z.firstChild();t;)e.push(t),t=Z.nextSibling();return e},X.innerHTML=function(t){return K(t,function(t){return Q(t)})},X.textContent=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1);for(var e,n="";e=t.nextNode();)n+=e.nodeValue;return n;default:return t.nodeValue}};var tt=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),et=document.implementation.createHTMLDocument("inert"),nt=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),ot={parentElement:{get:function(){var t=this.__shady&&this.__shady.parentNode;return t&&t.nodeType!==Node.ELEMENT_NODE&&(t=null),void 0!==t?t:X.parentElement(this)},configurable:!0},parentNode:{get:function(){var t=this.__shady&&this.__shady.parentNode;return void 0!==t?t:X.parentNode(this)},configurable:!0},nextSibling:{get:function(){var t=this.__shady&&this.__shady.nextSibling;return void 0!==t?t:X.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var t=this.__shady&&this.__shady.previousSibling;return void 0!==t?t:X.previousSibling(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var t=this.nextSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return X.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var t=this.previousSibling;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return X.previousElementSibling(this)},configurable:!0}},rt={childNodes:{get:function(){if(d(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var t=this.firstChild;t;t=t.nextSibling)this.__shady.childNodes.push(t)}var e=this.__shady.childNodes}else e=X.childNodes(this);return e.item=function(t){return e[t]},e},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var t=this.__shady&&this.__shady.firstChild;return void 0!==t?t:X.firstChild(this)},configurable:!0},lastChild:{get:function(){var t=this.__shady&&this.__shady.lastChild;return void 0!==t?t:X.lastChild(this)},configurable:!0},textContent:{get:function(){if(d(this)){for(var t,e=[],n=0,o=this.childNodes;t=o[n];n++)t.nodeType!==Node.COMMENT_NODE&&e.push(t.textContent);return e.join("")}return X.textContent(this)},set:function(t){switch(void 0!==t&&null!==t||(t=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<t.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(t));break;default:this.nodeValue=t}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var t=this.firstChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.nextSibling;return t}return X.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var t=this.lastChild;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}return X.lastElementChild(this)},configurable:!0},children:{get:function(){var t=d(this)?Array.prototype.filter.call(this.childNodes,function(t){return t.nodeType===Node.ELEMENT_NODE}):X.children(this);return t.item=function(e){return t[e]},t},configurable:!0},innerHTML:{get:function(){var t="template"===this.localName?this.content:this;return d(this)?K(t):X.innerHTML(t)},set:function(t){for(var e="template"===this.localName?this.content:this;e.firstChild;)e.removeChild(e.firstChild);var n=this.localName;for(n&&"template"!==n||(n="div"),n=et.createElement(n),tt&&tt.set?tt.set.call(n,t):n.innerHTML=t;n.firstChild;)e.appendChild(n.firstChild)},configurable:!0}},it={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ka||null},configurable:!0}},at={activeElement:{get:function(){var t=nt&&nt.get?nt.get.call(document):l.G?void 0:document.activeElement;if(t&&t.nodeType){var e=!!u(this);if(this===document||e&&this.host!==t&&O.contains.call(this.host,t)){for(e=h(t);e&&e!==this;)e=h(t=e.host);t=this===document?e?null:t:e===this?t:null}else t=null}else t=null;return t},set:function(){},configurable:!0}};function st(t,e,n){for(var o in e){var r=Object.getOwnPropertyDescriptor(t,o);r&&r.configurable||!r&&n?Object.defineProperty(t,o,e[o]):n&&console.warn("Could not define",o,"on",t)}}function lt(t){st(t,ot),st(t,rt),st(t,at)}var ct=l.G?function(){}:function(t){t.__shady&&t.__shady.pa||(t.__shady=t.__shady||{},t.__shady.pa=!0,st(t,ot,!0))},dt=l.G?function(){}:function(t){t.__shady&&t.__shady.na||(t.__shady=t.__shady||{},t.__shady.na=!0,st(t,rt,!0),st(t,it,!0))};function ut(t,e,n){ct(t),n=n||null,t.__shady=t.__shady||{},e.__shady=e.__shady||{},n&&(n.__shady=n.__shady||{}),t.__shady.previousSibling=n?n.__shady.previousSibling:e.lastChild;var o=t.__shady.previousSibling;o&&o.__shady&&(o.__shady.nextSibling=t),(o=t.__shady.nextSibling=n)&&o.__shady&&(o.__shady.previousSibling=t),t.__shady.parentNode=e,n?n===e.__shady.firstChild&&(e.__shady.firstChild=t):(e.__shady.lastChild=t,e.__shady.firstChild||(e.__shady.firstChild=t)),e.__shady.childNodes=null}function ht(t){if(!t.__shady||void 0===t.__shady.firstChild){t.__shady=t.__shady||{},t.__shady.firstChild=X.firstChild(t),t.__shady.lastChild=X.lastChild(t),dt(t);for(var e,n=t.__shady.childNodes=X.childNodes(t),o=0;o<n.length&&(e=n[o]);o++)e.__shady=e.__shady||{},e.__shady.parentNode=t,e.__shady.nextSibling=n[o+1]||null,e.__shady.previousSibling=n[o-1]||null,ct(e)}}function ft(t,e,n){if(e===t)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var o=n.__shady&&n.__shady.parentNode;if(void 0!==o&&o!==t||void 0===o&&X.parentNode(n)!==t)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===e)return e;var r;if(e.parentNode&&pt(e.parentNode,e),r=o=h(t))t:{var i;if(!e.__noInsertionPoint)if("slot"===e.localName?i=[e]:e.querySelectorAll&&(i=e.querySelectorAll("slot")),i&&i.length){r=i;break t}r=void 0}if((i=r)&&o.C.push.apply(o.C,[].concat(i instanceof Array?i:function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(function(t){a();var e=t[Symbol.iterator];return e?e.call(t):s(t)}(i)))),o&&("slot"===t.localName||i)&&Bt(o),d(t)){if(o=n,dt(t),t.__shady=t.__shady||{},void 0!==t.__shady.firstChild&&(t.__shady.childNodes=null),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=e.childNodes,r=0;r<i.length;r++)ut(i[r],t,o);e.__shady=e.__shady||{},o=void 0!==e.__shady.firstChild?null:void 0,e.__shady.firstChild=e.__shady.lastChild=o,e.__shady.childNodes=o}else ut(e,t,o);if(mt(t)){Bt(t.__shady.root);var l=!0}else t.__shady.root&&(l=!0)}return l||(l=u(t)?t.host:t,n?(n=function t(e){var n=e;e&&"slot"===e.localName&&(n=(n=e.__shady&&e.__shady.D)&&n.length?n[0]:t(e.nextSibling));return n}(n),O.insertBefore.call(l,e,n)):O.appendChild.call(l,e)),_t(t,e),e}function pt(t,e){if(e.parentNode!==t)throw Error("The node to be removed is not a child of this node: "+e);var n=h(e);if(d(t)){e.__shady=e.__shady||{},t.__shady=t.__shady||{},e===t.__shady.firstChild&&(t.__shady.firstChild=e.__shady.nextSibling),e===t.__shady.lastChild&&(t.__shady.lastChild=e.__shady.previousSibling);var o=e.__shady.previousSibling,r=e.__shady.nextSibling;if(o&&(o.__shady=o.__shady||{},o.__shady.nextSibling=r),r&&(r.__shady=r.__shady||{},r.__shady.previousSibling=o),e.__shady.parentNode=e.__shady.previousSibling=e.__shady.nextSibling=void 0,void 0!==t.__shady.childNodes&&(t.__shady.childNodes=null),mt(t)){Bt(t.__shady.root);var i=!0}}if(function t(e){if(e.__shady&&void 0!==e.__shady.ca)for(var n,o=e.childNodes,r=0,i=o.length;r<i&&(n=o[r]);r++)t(n);e.__shady&&(e.__shady.ca=void 0)}(e),n){for(var a in(o=t&&"slot"===t.localName)&&(i=!0),Jt(n),r=n.i)for(var s=r[a],l=0;l<s.length;l++){var c=s[l];if(E(e,c)){s.splice(l,1);var f=n.l.indexOf(c);if(0<=f&&n.l.splice(f,1),l--,f=c.__shady.D)for(c=0;c<f.length;c++){var p=f[c],m=X.parentNode(p);m&&O.removeChild.call(m,p)}f=!0}}(f||o)&&Bt(n)}return i||(i=u(t)?t.host:t,(!t.__shady.root&&"slot"!==e.localName||i===X.parentNode(e))&&O.removeChild.call(i,e)),_t(t,null,e),e}function mt(t){return(t=t&&t.__shady&&t.__shady.root)&&Zt(t)}function yt(t,e){if("slot"===e)mt(t=t.parentNode)&&Bt(t.__shady.root);else if("slot"===t.localName&&"name"===e&&(e=h(t))){var n=t.qa,o=Kt(t);if(o!==n){var r=(n=e.i[n]).indexOf(t);0<=r&&n.splice(r,1),(n=e.i[o]||(e.i[o]=[])).push(t),1<n.length&&(e.i[o]=Xt(n))}Bt(e)}}function _t(t,e,n){(t=t.__shady&&t.__shady.H)&&(e&&t.addedNodes.push(e),n&&t.removedNodes.push(n),function(t){t.a||(t.a=!0,b(function(){!function(t){if(t.a){t.a=!1;var e=t.takeRecords();e.length&&t.N.forEach(function(t){t(e)})}}(t)}))}(t))}function vt(t,e,n){var o=[];return function t(e,n,o,r){for(var i,a=0,s=e.length;a<s&&(i=e[a]);a++){var l;if(l=i.nodeType===Node.ELEMENT_NODE){var c=n,d=o,u=r,h=c(l=i);h&&u.push(l),d&&d(h)?l=h:(t(l.childNodes,c,d,u),l=void 0)}if(l)break}}(t.childNodes,e,n,o),o}var gt=null;function bt(t,e,n){gt||(gt=window.ShadyCSS&&window.ShadyCSS.ScopingShim),gt&&"class"===e?gt.setElementClass(t,n):(O.setAttribute.call(t,e,n),yt(t,e))}var wt="__eventWrappers"+Date.now(),Et={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0};function Nt(t,e){var n=[],o=t;for(t=t===window?window:t.getRootNode();o;)n.push(o),o=o.assignedSlot?o.assignedSlot:o.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&o.host&&(e||o!==t)?o.host:o.parentNode;return n[n.length-1]===document&&n.push(window),n}function Ct(t,e){if(!u)return t;t=Nt(t,!0);for(var n,o,r,i,a=0;a<e.length;a++)if((r=(n=e[a])===window?window:n.getRootNode())!==o&&(i=t.indexOf(r),o=r),!u(r)||-1<i)return n}var St={get composed(){return!1!==this.isTrusted&&void 0===this.S&&(this.S=Et[this.type]),this.S||!1},composedPath:function(){return this.b||(this.b=Nt(this.__target,this.composed)),this.b},get target(){return Ct(this.currentTarget,this.composedPath())},get relatedTarget(){return this.T?(this.c||(this.c=Nt(this.T,!0)),Ct(this.currentTarget,this.c)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.a=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.a=this.f=!0}};function Tt(t){function e(e,n){return(e=new t(e,n)).S=n&&!!n.composed,e}return function(t,e){for(var n in e)t[n]=e[n]}(e,t),e.prototype=t.prototype,e}var xt={focus:!0,blur:!0};function Ot(t){return t.__target!==t.target||t.T!==t.relatedTarget}function At(t,e,n){if(n=e.__handlers&&e.__handlers[t.type]&&e.__handlers[t.type][n])for(var o,r=0;(o=n[r])&&(!Ot(t)||t.target!==t.relatedTarget)&&(o.call(e,t),!t.f);r++);}function Dt(t){var e,n=t.composedPath();Object.defineProperty(t,"currentTarget",{get:function(){return r},configurable:!0});for(var o=n.length-1;0<=o;o--){var r=n[o];if(At(t,r,"capture"),t.a)return}for(Object.defineProperty(t,"eventPhase",{get:function(){return Event.AT_TARGET}}),o=0;o<n.length;o++){var i=(r=n[o]).__shady&&r.__shady.root;if((0===o||i&&i===e)&&(At(t,r,"bubble"),r!==window&&(e=r.getRootNode()),t.a))break}}function Lt(t,e,n,o,r,i){for(var a=0;a<t.length;a++){var s=t[a],l=s.type,c=s.capture,d=s.once,u=s.passive;if(e===s.node&&n===l&&o===c&&r===d&&i===u)return a}return-1}function Mt(t,e,n){if(e){var o=typeof e;if(("function"===o||"object"===o)&&("object"!==o||e.handleEvent&&"function"==typeof e.handleEvent)){if(n&&"object"==typeof n)var r=!!n.capture,i=!!n.once,a=!!n.passive;else r=!!n,a=i=!1;var s=n&&n.U||this,l=e[wt];if(l){if(-1<Lt(l,s,t,r,i,a))return}else e[wt]=[];l=function(r){if(i&&this.removeEventListener(t,e,n),r.__target||Rt(r),s!==this){var a=Object.getOwnPropertyDescriptor(r,"currentTarget");Object.defineProperty(r,"currentTarget",{get:function(){return s},configurable:!0})}if(r.composed||-1<r.composedPath().indexOf(s))if(Ot(r)&&r.target===r.relatedTarget)r.eventPhase===Event.BUBBLING_PHASE&&r.stopImmediatePropagation();else if(r.eventPhase===Event.CAPTURING_PHASE||r.bubbles||r.target===s||s instanceof Window){var l="function"===o?e.call(s,r):e.handleEvent&&e.handleEvent(r);return s!==this&&(a?(Object.defineProperty(r,"currentTarget",a),a=null):delete r.currentTarget),l}},e[wt].push({node:this,type:t,capture:r,once:i,passive:a,Sa:l}),xt[t]?(this.__handlers=this.__handlers||{},this.__handlers[t]=this.__handlers[t]||{capture:[],bubble:[]},this.__handlers[t][r?"capture":"bubble"].push(l)):(this instanceof Window?O.Qa:O.addEventListener).call(this,t,l,n)}}}function kt(t,e,n){if(e){if(n&&"object"==typeof n)var o=!!n.capture,r=!!n.once,i=!!n.passive;else o=!!n,i=r=!1;var a=n&&n.U||this,s=void 0,l=null;try{l=e[wt]}catch(t){}l&&(-1<(r=Lt(l,a,t,o,r,i))&&(s=l.splice(r,1)[0].Sa,l.length||(e[wt]=void 0))),(this instanceof Window?O.Ra:O.removeEventListener).call(this,t,s||e,n),s&&xt[t]&&this.__handlers&&this.__handlers[t]&&(-1<(s=(t=this.__handlers[t][o?"capture":"bubble"]).indexOf(s))&&t.splice(s,1))}}function Rt(t){if(t.__target=t.target,t.T=t.relatedTarget,l.G){var e=Object.getPrototypeOf(t);if(!e.hasOwnProperty("__patchProto")){var n=Object.create(e);n.Ua=e,m(n,St),e.__patchProto=n}t.__proto__=e.__patchProto}else m(t,St)}var jt=Tt(window.Event),Pt=Tt(window.CustomEvent),Ht=Tt(window.MouseEvent);function It(t,e){return{index:t,I:[],M:e}}function Ft(t,e,n,o){var r=0,i=0,a=0,s=0,l=Math.min(e-r,o-i);if(0==r&&0==i)t:{for(a=0;a<l;a++)if(t[a]!==n[a])break t;a=l}if(e==t.length&&o==n.length){s=t.length;for(var c=n.length,d=0;d<l-a&&Vt(t[--s],n[--c]);)d++;s=d}if(i+=a,o-=s,0==(e-=s)-(r+=a)&&0==o-i)return[];if(r==e){for(e=It(r,0);i<o;)e.I.push(n[i++]);return[e]}if(i==o)return[It(r,e-r)];for(o=o-(a=i)+1,s=e-(l=r)+1,e=Array(o),c=0;c<o;c++)e[c]=Array(s),e[c][0]=c;for(c=0;c<s;c++)e[0][c]=c;for(c=1;c<o;c++)for(d=1;d<s;d++)if(t[l+d-1]===n[a+c-1])e[c][d]=e[c-1][d-1];else{var u=e[c-1][d]+1,h=e[c][d-1]+1;e[c][d]=u<h?u:h}for(l=e.length-1,a=e[0].length-1,o=e[l][a],t=[];0<l||0<a;)0==l?(t.push(2),a--):0==a?(t.push(3),l--):(s=e[l-1][a-1],(u=(c=e[l-1][a])<(d=e[l][a-1])?c<s?c:s:d<s?d:s)==s?(s==o?t.push(0):(t.push(1),o=s),l--,a--):u==c?(t.push(3),l--,o=c):(t.push(2),a--,o=d));for(t.reverse(),e=void 0,l=[],a=0;a<t.length;a++)switch(t[a]){case 0:e&&(l.push(e),e=void 0),r++,i++;break;case 1:e||(e=It(r,0)),e.M++,r++,e.I.push(n[i]),i++;break;case 2:e||(e=It(r,0)),e.M++,r++;break;case 3:e||(e=It(r,0)),e.I.push(n[i]),i++}return e&&l.push(e),l}function Vt(t,e){return t===e}var Wt={};function qt(t,e,n){if(t!==Wt)throw new TypeError("Illegal constructor");(t=document.createDocumentFragment()).__proto__=qt.prototype,t.oa="ShadyRoot",ht(e),ht(t),t.host=e,t.ua=n&&n.mode,e.__shady=e.__shady||{},e.__shady.root=t,e.__shady.Ka="closed"!==t.ua?t:null,t.L=!1,t.l=[],t.i={},t.C=[];for(var o=0,r=(n=X.childNodes(e)).length;o<r;o++)O.removeChild.call(e,n[o]);return t}function Bt(t){t.L||(t.L=!0,S(function(){return Ut(t)}))}function Ut(t){for(var e;t;){t.L&&(e=t);t:{var n=t;if(u(t=n.host.getRootNode()))for(var o=n.host.childNodes,r=0;r<o.length;r++)if("slot"==(n=o[r]).localName)break t;t=void 0}}e&&e._renderRoot()}function Gt(t,e,n){e.__shady=e.__shady||{};var o=e.__shady.Z;e.__shady.Z=null,n||(n=(t=t.i[e.slot||"__catchall"])&&t[0]),n?(n.__shady.assignedNodes.push(e),e.__shady.assignedSlot=n):e.__shady.assignedSlot=void 0,o!==e.__shady.assignedSlot&&e.__shady.assignedSlot&&(e.__shady.assignedSlot.__shady.aa=!0)}function $t(t,e,n){for(var o,r=0;r<n.length&&(o=n[r]);r++)if("slot"==o.localName){var i=o.__shady.assignedNodes;i&&i.length&&$t(t,e,i)}else e.push(n[r])}function zt(t,e){O.dispatchEvent.call(e,new Event("slotchange")),e.__shady.assignedSlot&&zt(t,e.__shady.assignedSlot)}function Jt(t){if(t.C.length){for(var e,n=t.C,o=0;o<n.length;o++){var r=n[o];r.__shady=r.__shady||{},ht(r),ht(r.parentNode);var i=Kt(r);t.i[i]?((e=e||{})[i]=!0,t.i[i].push(r)):t.i[i]=[r],t.l.push(r)}if(e)for(var a in e)t.i[a]=Xt(t.i[a]);t.C=[]}}function Kt(t){var e=t.name||t.getAttribute("name")||"__catchall";return t.qa=e}function Xt(t){return t.sort(function(t,e){t=Yt(t);for(var n=Yt(e),o=0;o<t.length;o++){e=t[o];var r=n[o];if(e!==r)return(t=Array.from(e.parentNode.childNodes)).indexOf(e)-t.indexOf(r)}})}function Yt(t){var e=[];do{e.unshift(t)}while(t=t.parentNode);return e}function Zt(t){return Jt(t),!!t.l.length}qt.prototype=Object.create(DocumentFragment.prototype),qt.prototype._renderRoot=function(){this.L=!1,Jt(this);for(var t,e=0;e<this.l.length;e++){var n=(t=this.l[e]).__shady.assignedNodes;if(t.__shady.assignedNodes=[],t.__shady.D=[],t.__shady.fa=n)for(var o=0;o<n.length;o++){var r=n[o];r.__shady.Z=r.__shady.assignedSlot,r.__shady.assignedSlot===t&&(r.__shady.assignedSlot=null)}}for(t=this.host.firstChild;t;t=t.nextSibling)Gt(this,t);for(e=0;e<this.l.length;e++){if(!(t=this.l[e]).__shady.assignedNodes.length)for(n=t.firstChild;n;n=n.nextSibling)Gt(this,n,t);if((n=(n=t.parentNode).__shady&&n.__shady.root)&&Zt(n)&&n._renderRoot(),$t(this,t.__shady.D,t.__shady.assignedNodes),n=t.__shady.fa){for(o=0;o<n.length;o++)n[o].__shady.Z=null;t.__shady.fa=null,n.length>t.__shady.assignedNodes.length&&(t.__shady.aa=!0)}t.__shady.aa&&(t.__shady.aa=!1,zt(this,t))}for(e=this.l,t=[],n=0;n<e.length;n++)(o=e[n].parentNode).__shady&&o.__shady.root||!(0>t.indexOf(o))||t.push(o);for(e=0;e<t.length;e++){o=(n=t[e])===this?this.host:n,r=[],n=n.childNodes;for(var i=0;i<n.length;i++){var a=n[i];if("slot"==a.localName){a=a.__shady.D;for(var s=0;s<a.length;s++)r.push(a[s])}else r.push(a)}n=void 0,i=X.childNodes(o),a=Ft(r,r.length,i,i.length);for(var l=s=0;s<a.length&&(n=a[s]);s++){for(var c,d=0;d<n.I.length&&(c=n.I[d]);d++)X.parentNode(c)===o&&O.removeChild.call(o,c),i.splice(n.index+l,1);l-=n.M}for(l=0;l<a.length&&(n=a[l]);l++)for(s=i[n.index],d=n.index;d<n.index+n.M;d++)c=r[d],O.insertBefore.call(o,c,s),i.splice(d,0,c)}},qt.prototype.addEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.U=this,this.host.addEventListener(t,e,n)},qt.prototype.removeEventListener=function(t,e,n){"object"!=typeof n&&(n={capture:!!n}),n.U=this,this.host.removeEventListener(t,e,n)},qt.prototype.getElementById=function(t){return vt(this,function(e){return e.id==t},function(t){return!!t})[0]||null};var Qt=qt.prototype;function te(t){var e=t.getRootNode();return u(e)&&Ut(e),t.__shady&&t.__shady.assignedSlot||null}st(Qt,rt,!0),st(Qt,at,!0);var ee={addEventListener:Mt.bind(window),removeEventListener:kt.bind(window)},ne={addEventListener:Mt,removeEventListener:kt,appendChild:function(t){return ft(this,t)},insertBefore:function(t,e){return ft(this,t,e)},removeChild:function(t){return pt(this,t)},replaceChild:function(t,e){return ft(this,t,e),pt(this,e),t},cloneNode:function(t){if("template"==this.localName)var e=O.cloneNode.call(this,t);else if(e=O.cloneNode.call(this,!1),t){t=this.childNodes;for(var n,o=0;o<t.length;o++)n=t[o].cloneNode(!0),e.appendChild(n)}return e},getRootNode:function(){return function t(e){if(e&&e.nodeType){e.__shady=e.__shady||{};var n=e.__shady.ca;return void 0===n&&(n=u(e)?e:(n=e.parentNode)?t(n):e,O.contains.call(document.documentElement,e)&&(e.__shady.ca=n)),n}}(this)},contains:function(t){return E(this,t)},get isConnected(){var t=this.ownerDocument;if(w&&O.contains.call(t,this)||t.documentElement&&O.contains.call(t.documentElement,this))return!0;for(t=this;t&&!(t instanceof Document);)t=t.parentNode||(t instanceof qt?t.host:void 0);return!!(t&&t instanceof Document)},dispatchEvent:function(t){return T(),O.dispatchEvent.call(this,t)}},oe={get assignedSlot(){return te(this)}},re={querySelector:function(t){return vt(this,function(e){return p.call(e,t)},function(t){return!!t})[0]||null},querySelectorAll:function(t){return vt(this,function(e){return p.call(e,t)})}},ie={assignedNodes:function(t){if("slot"===this.localName){var e=this.getRootNode();return u(e)&&Ut(e),this.__shady&&(t&&t.flatten?this.__shady.D:this.__shady.assignedNodes)||[]}}},ae=y({setAttribute:function(t,e){bt(this,t,e)},removeAttribute:function(t){O.removeAttribute.call(this,t),yt(this,t)},attachShadow:function(t){if(!this)throw"Must provide a host.";if(!t)throw"Not enough arguments.";return new qt(Wt,this,t)},get slot(){return this.getAttribute("slot")},set slot(t){bt(this,"slot",t)},get assignedSlot(){return te(this)}},re,ie);Object.defineProperties(ae,it);var se=y({importNode:function(t,e){return function t(e,n){if(e.ownerDocument!==document)return O.importNode.call(document,e,n);var o=O.importNode.call(document,e,!1);if(n){e=e.childNodes,n=0;for(var r;n<e.length;n++)r=t(e[n],!0),o.appendChild(r)}return o}(t,e)},getElementById:function(t){return vt(this,function(e){return e.id==t},function(t){return!!t})[0]||null}},re);Object.defineProperties(se,{_activeElement:at.activeElement});var le=HTMLElement.prototype.blur,ce=y({blur:function(){var t=this.__shady&&this.__shady.root;(t=t&&t.activeElement)?t.blur():le.call(this)}});function de(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(e,r);i.value?t[r]=i.value:Object.defineProperty(t,r,i)}}if(l.ia){var ue={inUse:l.ia,patch:function(t){return t},isShadyRoot:u,enqueue:S,flush:T,settings:l,filterMutations:function(t,e){var n=e.getRootNode();return t.map(function(t){var e=n===t.target.getRootNode();if(e&&t.addedNodes){if((e=Array.from(t.addedNodes).filter(function(t){return n===t.getRootNode()})).length)return t=Object.create(t),Object.defineProperty(t,"addedNodes",{value:e,configurable:!0}),t}else if(e)return t}).filter(function(t){return t})},observeChildren:function(t,e){t.__shady=t.__shady||{},t.__shady.H||(t.__shady.H=new x),t.__shady.H.N.add(e);var n=t.__shady.H;return{sa:e,w:n,va:t,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(t){var e=t&&t.w;e&&(e.N.delete(t.sa),e.N.size||(t.va.__shady.H=null))},nativeMethods:O,nativeTree:X};window.ShadyDOM=ue,window.Event=jt,window.CustomEvent=Pt,window.MouseEvent=Ht,function(){for(var t in xt)window.addEventListener(t,function(t){t.__target||(Rt(t),Dt(t))},!0)}();var he=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;de(window.Node.prototype,ne),de(window.Window.prototype,ee),de(window.Text.prototype,oe),de(window.DocumentFragment.prototype,re),de(window.Element.prototype,ae),de(window.Document.prototype,se),window.HTMLSlotElement&&de(window.HTMLSlotElement.prototype,ie),de(he.prototype,ce),l.G&&(lt(window.Node.prototype),lt(window.Text.prototype),lt(window.DocumentFragment.prototype),lt(window.Element.prototype),lt(he.prototype),lt(window.Document.prototype),window.HTMLSlotElement&&lt(window.HTMLSlotElement.prototype)),window.ShadowRoot=qt}var fe=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function pe(t){var e=fe.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function me(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function ye(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function _e(t,e,n){n=void 0===n?new Set:n;for(var o=t;o;){if(o.nodeType===Node.ELEMENT_NODE){var r=o;e(r);var i=r.localName;if("link"===i&&"import"===r.getAttribute("rel")){if((o=r.import)instanceof Node&&!n.has(o))for(n.add(o),o=o.firstChild;o;o=o.nextSibling)_e(o,e,n);o=ye(t,r);continue}if("template"===i){o=ye(t,r);continue}if(r=r.__CE_shadowRoot)for(r=r.firstChild;r;r=r.nextSibling)_e(r,e,n)}o=o.firstChild?o.firstChild:ye(t,o)}}function ve(t,e,n){t[e]=n}function ge(){this.a=new Map,this.m=new Map,this.f=[],this.c=!1}function be(t,e){t.c=!0,t.f.push(e)}function we(t,e){t.c&&_e(e,function(e){return t.b(e)})}function Ee(t,e){var n=[];for(_e(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var o=n[e];1===o.__CE_state?t.connectedCallback(o):Se(t,o)}}function Ne(t,e){var n=[];for(_e(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var o=n[e];1===o.__CE_state&&t.disconnectedCallback(o)}}function Ce(t,e,n){var o=(n=void 0===n?{}:n).Pa||new Set,r=n.la||function(e){return Se(t,e)},i=[];if(_e(e,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(o);i.delete(n),Ce(t,n,{Pa:i,la:r})}})}else i.push(e)},o),t.c)for(e=0;e<i.length;e++)t.b(i[e]);for(e=0;e<i.length;e++)r(i[e])}function Se(t,e){if(void 0===e.__CE_state){var n=e.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=t.a.get(e.localName))){n.constructionStack.push(e);var o=n.constructor;try{try{if(new o!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}if(e.__CE_state=1,e.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,o=0;o<n.length;o++){var r=n[o],i=e.getAttribute(r);null!==i&&t.attributeChangedCallback(e,r,null,i,null)}me(e)&&t.connectedCallback(e)}}}function Te(t){var e=document;this.h=t,this.a=e,this.w=void 0,Ce(this.h,this.a),"loading"===this.a.readyState&&(this.w=new MutationObserver(this.b.bind(this)),this.w.observe(this.a,{childList:!0,subtree:!0}))}function xe(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function Oe(t){this.W=!1,this.h=t,this.$=new Map,this.X=function(t){return t()},this.K=!1,this.Y=[],this.ta=new Te(t)}ge.prototype.b=function(t){if(this.c&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<this.f.length;e++)this.f[e](t)}},ge.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},ge.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},ge.prototype.attributeChangedCallback=function(t,e,n,o,r){var i=t.__CE_definition;i.attributeChangedCallback&&-1<i.observedAttributes.indexOf(e)&&i.attributeChangedCallback.call(t,e,n,o,r)},Te.prototype.disconnect=function(){this.w&&this.w.disconnect()},Te.prototype.b=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||this.disconnect(),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)Ce(this.h,n[o])},Oe.prototype.define=function(t,e){var n=this;if(!(e instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!pe(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.h.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.W)throw Error("A custom element is already being defined.");this.W=!0;try{var o=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=e.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var i=o("connectedCallback"),a=o("disconnectedCallback"),s=o("adoptedCallback"),l=o("attributeChangedCallback"),c=e.observedAttributes||[]}catch(t){return}finally{this.W=!1}e={localName:t,constructor:e,connectedCallback:i,disconnectedCallback:a,adoptedCallback:s,attributeChangedCallback:l,observedAttributes:c,constructionStack:[]},function(t,e,n){t.a.set(e,n),t.m.set(n.constructor,n)}(this.h,t,e),this.Y.push(e),this.K||(this.K=!0,this.X(function(){return function(t){if(!1!==t.K){t.K=!1;for(var e=t.Y,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(Ce(t.h,document,{la:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.h.a.get(r)&&n.push(e)}}}),r=0;r<n.length;r++)Se(t.h,n[r]);for(;0<e.length;){var i=e.shift();r=i.localName,i=o.get(i.localName);for(var a=0;a<i.length;a++)Se(t.h,i[a]);(r=t.$.get(r))&&xe(r)}}}(n)}))},Oe.prototype.get=function(t){if(t=this.h.a.get(t))return t.constructor},Oe.prototype.a=function(t){if(!pe(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var e=this.$.get(t);return e?e.c:(e=new function(){var t=this;this.b=this.a=void 0,this.c=new Promise(function(e){t.b=e,t.a&&e(t.a)})},this.$.set(t,e),this.h.a.get(t)&&!this.Y.some(function(e){return e.localName===t})&&xe(e),e.c)},Oe.prototype.b=function(t){this.ta.disconnect();var e=this.X;this.X=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=Oe,Oe.prototype.define=Oe.prototype.define,Oe.prototype.get=Oe.prototype.get,Oe.prototype.whenDefined=Oe.prototype.a,Oe.prototype.polyfillWrapFlushCallback=Oe.prototype.b;var Ae=window.Document.prototype.createElement,De=window.Document.prototype.createElementNS,Le=window.Document.prototype.importNode,Me=window.Document.prototype.prepend,ke=window.Document.prototype.append,Re=window.DocumentFragment.prototype.prepend,je=window.DocumentFragment.prototype.append,Pe=window.Node.prototype.cloneNode,He=window.Node.prototype.appendChild,Ie=window.Node.prototype.insertBefore,Fe=window.Node.prototype.removeChild,Ve=window.Node.prototype.replaceChild,We=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),qe=window.Element.prototype.attachShadow,Be=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Ue=window.Element.prototype.getAttribute,Ge=window.Element.prototype.setAttribute,$e=window.Element.prototype.removeAttribute,ze=window.Element.prototype.getAttributeNS,Je=window.Element.prototype.setAttributeNS,Ke=window.Element.prototype.removeAttributeNS,Xe=window.Element.prototype.insertAdjacentElement,Ye=window.Element.prototype.prepend,Ze=window.Element.prototype.append,Qe=window.Element.prototype.before,tn=window.Element.prototype.after,en=window.Element.prototype.replaceWith,nn=window.Element.prototype.remove,on=window.HTMLElement,rn=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),an=window.HTMLElement.prototype.insertAdjacentElement,sn=new function(){};function ln(t,e,n){function o(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&me(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)Ne(t,i[o]);if(me(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&Ee(t,i)}}void 0!==n.P&&(e.prepend=o(n.P)),void 0!==n.append&&(e.append=o(n.append))}var cn=window.customElements;if(!cn||cn.forcePolyfill||"function"!=typeof cn.define||"function"!=typeof cn.get){var dn=new ge;!function(){var t=dn;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.m.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=Ae.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,t.b(o),o;var r=o[n=o.length-1];if(r===sn)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=sn,Object.setPrototypeOf(r,e.prototype),t.b(r),r}return e.prototype=on.prototype,e}()}(),function(){var t=dn;ve(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructor}return e=Ae.call(this,e),t.b(e),e}),ve(Document.prototype,"importNode",function(e,n){return e=Le.call(this,e,n),this.__CE_hasRegistry?Ce(t,e):we(t,e),e}),ve(Document.prototype,"createElementNS",function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructor}return e=De.call(this,e,n),t.b(e),e}),ln(t,Document.prototype,{P:Me,append:ke})}(),ln(dn,DocumentFragment.prototype,{P:Re,append:je}),function(){var t=dn;function e(e,n){Object.defineProperty(e,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,e);else{var o=void 0;if(this.firstChild){var r=this.childNodes,i=r.length;if(0<i&&me(this)){o=Array(i);for(var a=0;a<i;a++)o[a]=r[a]}}if(n.set.call(this,e),o)for(e=0;e<o.length;e++)Ne(t,o[e])}}})}ve(Node.prototype,"insertBefore",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=Ie.call(this,e,n),me(this))for(n=0;n<o.length;n++)Ee(t,o[n]);return e}return o=me(e),n=Ie.call(this,e,n),o&&Ne(t,e),me(this)&&Ee(t,e),n}),ve(Node.prototype,"appendChild",function(e){if(e instanceof DocumentFragment){var n=Array.prototype.slice.apply(e.childNodes);if(e=He.call(this,e),me(this))for(var o=0;o<n.length;o++)Ee(t,n[o]);return e}return n=me(e),o=He.call(this,e),n&&Ne(t,e),me(this)&&Ee(t,e),o}),ve(Node.prototype,"cloneNode",function(e){return e=Pe.call(this,e),this.ownerDocument.__CE_hasRegistry?Ce(t,e):we(t,e),e}),ve(Node.prototype,"removeChild",function(e){var n=me(e),o=Fe.call(this,e);return n&&Ne(t,e),o}),ve(Node.prototype,"replaceChild",function(e,n){if(e instanceof DocumentFragment){var o=Array.prototype.slice.apply(e.childNodes);if(e=Ve.call(this,e,n),me(this))for(Ne(t,n),n=0;n<o.length;n++)Ee(t,o[n]);return e}o=me(e);var r=Ve.call(this,e,n),i=me(this);return i&&Ne(t,n),o&&Ne(t,e),i&&Ee(t,e),r}),We&&We.get?e(Node.prototype,We):be(t,function(t){e(t,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++)t.push(this.childNodes[e].textContent);return t.join("")},set:function(t){for(;this.firstChild;)Fe.call(this,this.firstChild);He.call(this,document.createTextNode(t))}})})}(),function(){var t=dn;function e(e,n){Object.defineProperty(e,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(e){var o=this,r=void 0;if(me(this)&&(r=[],_e(this,function(t){t!==o&&r.push(t)})),n.set.call(this,e),r)for(var i=0;i<r.length;i++){var a=r[i];1===a.__CE_state&&t.disconnectedCallback(a)}return this.ownerDocument.__CE_hasRegistry?Ce(t,this):we(t,this),e}})}function n(e,n){ve(e,"insertAdjacentElement",function(e,o){var r=me(o);return e=n.call(this,e,o),r&&Ne(t,o),me(e)&&Ee(t,o),e})}qe&&ve(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=qe.call(this,t)}),Be&&Be.get?e(Element.prototype,Be):rn&&rn.get?e(HTMLElement.prototype,rn):be(t,function(t){e(t,{enumerable:!0,configurable:!0,get:function(){return Pe.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,o=Ae.call(document,this.localName);for(o.innerHTML=t;0<n.childNodes.length;)Fe.call(n,n.childNodes[0]);for(t=e?o.content:o;0<t.childNodes.length;)He.call(n,t.childNodes[0])}})}),ve(Element.prototype,"setAttribute",function(e,n){if(1!==this.__CE_state)return Ge.call(this,e,n);var o=Ue.call(this,e);Ge.call(this,e,n),n=Ue.call(this,e),t.attributeChangedCallback(this,e,o,n,null)}),ve(Element.prototype,"setAttributeNS",function(e,n,o){if(1!==this.__CE_state)return Je.call(this,e,n,o);var r=ze.call(this,e,n);Je.call(this,e,n,o),o=ze.call(this,e,n),t.attributeChangedCallback(this,n,r,o,e)}),ve(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return $e.call(this,e);var n=Ue.call(this,e);$e.call(this,e),null!==n&&t.attributeChangedCallback(this,e,n,null,null)}),ve(Element.prototype,"removeAttributeNS",function(e,n){if(1!==this.__CE_state)return Ke.call(this,e,n);var o=ze.call(this,e,n);Ke.call(this,e,n);var r=ze.call(this,e,n);o!==r&&t.attributeChangedCallback(this,n,o,r,e)}),an?n(HTMLElement.prototype,an):Xe?n(Element.prototype,Xe):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),ln(t,Element.prototype,{P:Ye,append:Ze}),function(t){var e=Element.prototype;function n(e){return function(n){for(var o=[],r=0;r<arguments.length;++r)o[r-0]=arguments[r];r=[];for(var i=[],a=0;a<o.length;a++){var s=o[a];if(s instanceof Element&&me(s)&&i.push(s),s instanceof DocumentFragment)for(s=s.firstChild;s;s=s.nextSibling)r.push(s);else r.push(s)}for(e.apply(this,o),o=0;o<i.length;o++)Ne(t,i[o]);if(me(this))for(o=0;o<r.length;o++)(i=r[o])instanceof Element&&Ee(t,i)}}void 0!==Qe&&(e.before=n(Qe)),void 0!==Qe&&(e.after=n(tn)),void 0!==en&&ve(e,"replaceWith",function(e){for(var n=[],o=0;o<arguments.length;++o)n[o-0]=arguments[o];o=[];for(var r=[],i=0;i<n.length;i++){var a=n[i];if(a instanceof Element&&me(a)&&r.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)o.push(a);else o.push(a)}for(i=me(this),en.apply(this,n),n=0;n<r.length;n++)Ne(t,r[n]);if(i)for(Ne(t,this),n=0;n<o.length;n++)(r=o[n])instanceof Element&&Ee(t,r)}),void 0!==nn&&ve(e,"remove",function(){var e=me(this);nn.call(this),e&&Ne(t,this)})}(t)}(),document.__CE_hasRegistry=!0;var un=new Oe(dn);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:un})}function hn(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function fn(t){var e=pn,n=t=t.replace(bn,"").replace(wn,""),o=new hn;o.start=0,o.end=n.length;for(var r=o,i=0,a=n.length;i<a;i++)if("{"===n[i]){r.rules||(r.rules=[]);var s=r,l=s.rules[s.rules.length-1]||null;(r=new hn).start=i+1,r.parent=s,r.previous=l,s.rules.push(r)}else"}"===n[i]&&(r.end=i+1,r=r.parent||o);return e(o,t)}function pn(t,e){var n=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=n.trim(),t.parent&&(n=(n=(n=function(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,function(t,e){for(e=6-(t=e).length;e--;)t="0"+t;return"\\"+t})}(n=e.substring(t.previous?t.previous.end:t.parent.start,t.start-1))).replace(xn," ")).substring(n.lastIndexOf(";")+1),n=t.parsedSelector=t.selector=n.trim(),t.atRule=0===n.indexOf("@"),t.atRule?0===n.indexOf("@media")?t.type=vn:n.match(Tn)&&(t.type=_n,t.keyframesName=t.selector.split(xn).pop()):t.type=0===n.indexOf("--")?gn:yn),n=t.rules)for(var o,r=0,i=n.length;r<i&&(o=n[r]);r++)pn(o,e);return t}var mn,yn=1,_n=7,vn=4,gn=1e3,bn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,wn=/@import[^;]*;/gim,En=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Nn=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Cn=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Sn=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Tn=/^@[^\s]*keyframes/,xn=/\s+/g,On=!(window.ShadyDOM&&window.ShadyDOM.inUse);function An(t){mn=(!t||!t.shimcssproperties)&&(On||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?mn=window.ShadyCSS.nativeCss:window.ShadyCSS?(An(window.ShadyCSS),window.ShadyCSS=void 0):An(window.WebComponents&&window.WebComponents.flags);var Dn=mn,Ln=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Mn=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,kn=/(--[\w-]+)\s*([:,;)]|$)/gi,Rn=/(animation\s*:)|(animation-name\s*:)/,jn=/@media\s(.*)/,Pn=/\{[^}]*\}/g,Hn=new Set;function In(t,e){return t?("string"==typeof t&&(t=fn(t)),e&&Wn(t,e),function t(e,n,o){o=void 0===o?"":o;var r="";if(e.cssText||e.rules){var i,a=e.rules;if((i=a)&&(i=!((i=a[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var s,l=a.length;i<l&&(s=a[i]);i++)r=t(s,n,r)}else n=n?e.cssText:(n=(n=e.cssText).replace(En,"").replace(Nn,"")).replace(Cn,"").replace(Sn,""),(r=n.trim())&&(r=" "+r+"\n")}return r&&(e.selector&&(o+=e.selector+" {\n"),o+=r,e.selector&&(o+="}\n\n")),o}(t,Dn)):""}function Fn(t){return!t.__cssRules&&t.textContent&&(t.__cssRules=fn(t.textContent)),t.__cssRules||null}function Vn(t){return!!t.parent&&t.parent.type===_n}function Wn(t,e,n,o){if(t){var r=!1,i=t.type;if(o&&i===vn){var a=t.selector.match(jn);a&&(window.matchMedia(a[1]).matches||(r=!0))}if(i===yn?e(t):n&&i===_n?n(t):i===gn&&(r=!0),(t=t.rules)&&!r){r=0,i=t.length;for(var s;r<i&&(s=t[r]);r++)Wn(s,e,n,o)}}}function qn(t,e,n,o){var r=document.createElement("style");return e&&r.setAttribute("scope",e),r.textContent=t,Un(r,n,o),r}var Bn=null;function Un(t,e,n){(e=e||document.head).insertBefore(t,n&&n.nextSibling||e.firstChild),Bn?t.compareDocumentPosition(Bn)===Node.DOCUMENT_POSITION_PRECEDING&&(Bn=t):Bn=t}function Gn(t,e){On?t.setAttribute("class",e):window.ShadyDOM.nativeMethods.setAttribute.call(t,"class",e)}function $n(t){var e=t.localName,n="";return e?-1<e.indexOf("-")||(n=e,e=t.getAttribute&&t.getAttribute("is")||""):(e=t.is,n=t.extends),{is:e,J:n}}function zn(){}function Jn(t,e,n){var o=go;t.__styleScoped?t.__styleScoped=null:function t(e,n,o,r){n.nodeType===Node.ELEMENT_NODE&&Kn(n,o,r);if(n="template"===n.localName?(n.content||n.Va).childNodes:n.children||n.childNodes)for(var i=0;i<n.length;i++)t(e,n[i],o,r)}(o,t,e||"",n)}function Kn(t,e,n){if(e)if(t.classList)n?(t.classList.remove("style-scope"),t.classList.remove(e)):(t.classList.add("style-scope"),t.classList.add(e));else if(t.getAttribute){var o=t.getAttribute(_o);n?o&&Gn(t,e=o.replace("style-scope","").replace(e,"")):Gn(t,(o?o+" ":"")+"style-scope "+e)}}function Xn(t,e,n){var o=go,r=t.__cssBuild;return On||"shady"===r?e=In(e,n):e=function(t,e,n,o,r){var i=Yn(n,o);return n=n?mo+n:"",In(e,function(e){e.c||(e.selector=e.j=Zn(t,e,t.b,n,i),e.c=!0),r&&r(e,n,i)})}(o,e,(t=$n(t)).is,t.J,n)+"\n\n",e.trim()}function Yn(t,e){return e?"[is="+t+"]":t}function Zn(t,e,n,o,r){var i=e.selector.split(ro);if(!Vn(e)){e=0;for(var a,s=i.length;e<s&&(a=i[e]);e++)i[e]=n.call(t,a,o,r)}return i.join(ro)}function Qn(t){return t.replace(no,function(t,e,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+e+"("+n+")"})}function to(t,e){return(t=t.split(yo))[0]+=e,t.join(yo)}function eo(t){t.selector===lo&&(t.selector="html")}zn.prototype.b=function(t,e,n){var o=!1;t=t.trim();var r=no.test(t);return r&&(t=Qn(t=t.replace(no,function(t,e,n){return":"+e+"("+n.replace(/\s/g,"")+")"}))),t=(t=t.replace(uo,so+" $1")).replace(io,function(t,r,i){return o||(t=function(t,e,n,o){var r=t.indexOf(co);if(0<=t.indexOf(so)?t=function(t,e){var n=t.match(ho);return(n=n&&n[2].trim()||"")?n[0].match(ao)?t.replace(ho,function(t,n,o){return e+o}):n.split(ao)[0]===e?n:vo:t.replace(so,e)}(t,o):0!==r&&(t=n?to(t,n):t),n=!1,0<=r&&(e="",n=!0),n){var i=!0;n&&(t=t.replace(fo,function(t,e){return" > "+e}))}return{value:t=t.replace(po,function(t,e,n){return'[dir="'+n+'"] '+e+", "+e+'[dir="'+n+'"]'}),za:e,stop:i}}(i,r,e,n),o=o||t.stop,r=t.za,i=t.value),r+i}),r&&(t=Qn(t)),t},zn.prototype.c=function(t){return t.match(co)?this.b(t,oo):to(t.trim(),oo)},e.Object.defineProperties(zn.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var no=/:(nth[-\w]+)\(([^)]+)\)/,oo=":not(.style-scope)",ro=",",io=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ao=/[[.:#*]/,so=":host",lo=":root",co="::slotted",uo=new RegExp("^("+co+")"),ho=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fo=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,po=/(.*):dir\((?:(ltr|rtl))\)/,mo=".",yo=":",_o="class",vo="should_not_match",go=new zn;function bo(t,e,n,o){this.u=t||null,this.b=e||null,this.ba=n||[],this.B=null,this.J=o||"",this.a=this.o=this.v=null}function wo(t){return t?t.__styleInfo:null}function Eo(t,e){return t.__styleInfo=e}bo.prototype.c=function(){return this.u},bo.prototype._getStyleRules=bo.prototype.c;var No,Co=window.Element.prototype;No=Co.matches||Co.matchesSelector||Co.mozMatchesSelector||Co.msMatchesSelector||Co.oMatchesSelector||Co.webkitMatchesSelector;var So=navigator.userAgent.match("Trident");function To(){}function xo(t){if(!t.g){var e={},n={};Oo(t,n)&&(e.s=n,t.rules=null),e.cssText=t.parsedCssText.replace(Pn,"").replace(Ln,""),t.g=e}}function Oo(t,e){var n=t.g;if(!n){n=t.parsedCssText;for(var o;t=Ln.exec(n);)"inherit"===(o=(t[2]||t[3]).trim())&&"unset"===o||(e[t[1].trim()]=o),o=!0;return o}if(n.s)return Object.assign(e,n.s),!0}function Ao(t,e,n){return e&&(e=0<=e.indexOf(";")?Do(t,e,n):function t(e,n){var o=e.indexOf("var(");if(-1===o)return n(e,"","","");t:{for(var r=0,i=o+3,a=e.length;i<a;i++)if("("===e[i])r++;else if(")"===e[i]&&0==--r)break t;i=-1}return r=e.substring(o+4,i),o=e.substring(0,o),e=t(e.substring(i+1),n),-1===(i=r.indexOf(","))?n(o,r.trim(),"",e):n(o,r.substring(0,i).trim(),r.substring(i+1).trim(),e)}(e,function(e,o,r,i){return o?((o=Ao(t,n[o],n))&&"initial"!==o?"apply-shim-inherit"===o&&(o="inherit"):o=Ao(t,n[r]||r,n)||r,e+(o||"")+i):e+i})),e&&e.trim()||""}function Do(t,e,n){e=e.split(";");for(var o,r,i=0;i<e.length;i++)if(o=e[i]){if(Mn.lastIndex=0,r=Mn.exec(o))o=Ao(t,n[r[1]],n);else if(-1!==(r=o.indexOf(":"))){var a=o.substring(r);a=Ao(t,a=a.trim(),n)||a,o=o.substring(0,r)+a}e[i]=o&&o.lastIndexOf(";")===o.length-1?o.slice(0,-1):o||""}return e.join(";")}function Lo(t,e){var n={},o={},r=e&&e.__cssBuild;return Wn(e,function(e){!function(t,e,n,o){if(e.g||xo(e),e.g.s){var r=$n(t);t=r.is,r=r.J,r=t?Yn(t,r):"html";var i=e.parsedSelector,a=":host > *"===i||"html"===i,s=0===i.indexOf(":host")&&!a;"shady"===n&&(s=!(a=i===r+" > *."+r||-1!==i.indexOf("html"))&&0===i.indexOf(r)),"shadow"===n&&(a=":host > *"===i||"html"===i,s=s&&!a),(a||s)&&(n=r,s&&(On&&!e.j&&(e.j=Zn(go,e,go.b,t?mo+t:"",r)),n=e.j||r),o({Ma:n,Fa:s,Wa:a}))}}(t,e,r,function(r){No.call(t.f||t,r.Ma)&&(r.Fa?Oo(e,n):Oo(e,o))})},null,!0),{La:o,Da:n}}function Mo(t,e,n,o){var r=$n(e),i=Yn(r.is,r.J),a=new RegExp("(?:^|[^.#[:])"+(e.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),s=function(t,e){t=t.b;var n={};if(!On&&t)for(var o=0,r=t[o];o<t.length;r=t[++o]){var i=r,a=e;i.f=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.a=i.keyframesName+"-"+a,i.j=i.j||i.selector,i.selector=i.j.replace(i.keyframesName,i.a),n[r.keyframesName]=ko(r)}return n}(r=wo(e).u,o);return Xn(e,r,function(e){var r="";if(e.g||xo(e),e.g.cssText&&(r=Do(t,e.g.cssText,n)),e.cssText=r,!On&&!Vn(e)&&e.cssText){var l=r=e.cssText;if(null==e.ha&&(e.ha=Rn.test(r)),e.ha)if(null==e.O)for(var c in e.O=[],s)r!==(l=(l=s[c])(r))&&(r=l,e.O.push(c));else{for(c=0;c<e.O.length;++c)r=(l=s[e.O[c]])(r);l=r}e.cssText=l,e.j=e.j||e.selector,r="."+o,l=0;for(var d,u=(c=e.j.split(",")).length;l<u&&(d=c[l]);l++)c[l]=d.match(a)?d.replace(i,r):r+" "+d;e.selector=c.join(",")}})}function ko(t){return function(e){return e.replace(t.f,t.a)}}function Ro(t,e){var n=jo,o=Fn(t);t.textContent=In(o,function(t){var o=t.cssText=t.parsedCssText;t.g&&t.g.cssText&&(o=o.replace(En,"").replace(Nn,""),t.cssText=Do(n,o,e))})}e.Object.defineProperties(To.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var jo=new To,Po={},Ho=window.customElements;if(Ho&&!On){var Io=Ho.define;Ho.define=function(t,e,n){var o=document.createComment(" Shady DOM styles for "+t+" "),r=document.head;return r.insertBefore(o,(Bn?Bn.nextSibling:null)||r.firstChild),Bn=o,Po[t]=o,Io.call(Ho,t,e,n)}}function Fo(){this.cache={}}function Vo(){}function Wo(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.target!==document.documentElement&&n.target!==document.head)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r.nodeType===Node.ELEMENT_NODE){var i=r.getRootNode(),a=r,s=[];if(a.classList?s=Array.from(a.classList):a instanceof window.SVGElement&&a.hasAttribute("class")&&(s=a.getAttribute("class").split(/\s+/)),(a=-1<(s=(a=s).indexOf(go.a))?a[s+1]:"")&&i===r.ownerDocument)Jn(r,a,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(a===(i=$n(i).is))for(r=window.ShadyDOM.nativeMethods.querySelectorAll.call(r,":not(."+go.a+")"),i=0;i<r.length;i++)Kn(r[i],a);else a&&Jn(r,a,!0),Jn(r,i)}}}}if(Fo.prototype.store=function(t,e,n,o){var r=this.cache[t]||[];r.push({s:e,styleElement:n,o:o}),100<r.length&&r.shift(),this.cache[t]=r},Fo.prototype.fetch=function(t,e,n){if(t=this.cache[t])for(var o=t.length-1;0<=o;o--){var r,i=t[o];t:{for(r=0;r<n.length;r++){var a=n[r];if(i.s[a]!==e[a]){r=!1;break t}}r=!0}if(r)return i}},!On){var qo=new MutationObserver(Wo),Bo=function(t){qo.observe(t,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Bo(document);else{var Uo=function(){Bo(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Uo):requestAnimationFrame(function(){if("loading"===document.readyState){var t=function(){Uo(),document.removeEventListener("readystatechange",t)};document.addEventListener("readystatechange",t)}else Uo()})}Vo=function(){Wo(qo.takeRecords())}}var Go=Vo,$o={},zo=Promise.resolve();function Jo(t){(t=$o[t])&&(t._applyShimCurrentVersion=t._applyShimCurrentVersion||0,t._applyShimValidatingVersion=t._applyShimValidatingVersion||0,t._applyShimNextVersion=(t._applyShimNextVersion||0)+1)}function Ko(t){return t._applyShimCurrentVersion===t._applyShimNextVersion}var Xo,Yo=null,Zo=window.HTMLImports&&window.HTMLImports.whenReady||null;var Qo=new Fo;function tr(){var t=this;this.F={},this.c=document.documentElement;var e=new hn;e.rules=[],this.f=Eo(this.c,new bo(e)),this.m=!1,this.b=this.a=null,function(t){requestAnimationFrame(function(){Zo?Zo(t):(Yo||(Yo=new Promise(function(t){Xo=t}),"complete"===document.readyState?Xo():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&Xo()})),Yo.then(function(){t&&t()}))})}(function(){er(t)})}function er(t){!t.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(t.a=window.ShadyCSS.ApplyShim,t.a.invalidCallback=Jo),function(t){!t.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(t.b=window.ShadyCSS.CustomStyleInterface,t.b.transformCallback=function(e){t.ka(e)},t.b.validateCallback=function(){requestAnimationFrame(function(){(t.b.enqueued||t.m)&&t.A()})})}(t)}function nr(t,e){return(e=e.getRootNode().host)?wo(e)?e:nr(t,e):t.c}function or(t,e,n){var o=wo(t=nr(t,e));t=Object.create(o.v||null);var r=Lo(e,n.u);for(var i in e=function(t,e){var n={},o=[];return Wn(t,function(t){t.g||xo(t);var r=t.j||t.parsedSelector;e&&t.g.s&&r&&No.call(e,r)&&(Oo(t,n),t=t.index,r=parseInt(t/32,10),o[r]=(o[r]||0)|1<<t%32)},null,!0),{s:n,key:o}}(o.u,e).s,Object.assign(t,r.Da,e,r.La),e=n.B)((r=e[i])||0===r)&&(t[i]=r);for(i=jo,e=Object.getOwnPropertyNames(t),r=0;r<e.length;r++)t[o=e[r]]=Ao(i,t[o],t);n.v=t}(t=tr.prototype).ma=function(){Go()},t.Ba=function(t){return Fn(t)},t.Oa=function(t){return In(t)},t.prepareTemplate=function(t,e,n){if(!t.b){t.b=!0,t.name=e,t.extends=n,$o[e]=t;for(var o=(o=t.content.querySelector("style"))&&o.getAttribute("css-build")||"",r=[],i=t.content.querySelectorAll("style"),a=0;a<i.length;a++){var s=i[a];if(s.hasAttribute("shady-unscoped")){if(!On){var l=s.textContent;Hn.has(l)||(Hn.add(l),l=s.cloneNode(!0),document.head.appendChild(l)),s.parentNode.removeChild(s)}}else r.push(s.textContent),s.parentNode.removeChild(s)}r=r.join("").trim(),n={is:e,extends:n,Ta:o},On||Jn(t.content,e),er(this),i=Mn.test(r)||Ln.test(r),Mn.lastIndex=0,Ln.lastIndex=0,r=fn(r),i&&Dn&&this.a&&this.a.transformRules(r,e),t._styleAst=r,t.c=o,o=[],Dn||(o=function(t){var e={},n=[],o=0;for(var r in Wn(t,function(t){xo(t),t.index=o++,t=t.g.cssText;for(var n;n=kn.exec(t);){var r=n[1];":"!==n[2]&&(e[r]=!0)}},function(t){n.push(t)}),t.b=n,t=[],e)t.push(r);return t}(t._styleAst)),o.length&&!Dn||(r=On?t.content:null,e=Po[e],e=(i=Xn(n,t._styleAst)).length?qn(i,n.is,r,e):void 0,t.ga=e),t.wa=o}},t.A=function(){if(er(this),this.b){var t=this.b.processStyles();if(this.b.enqueued){if(Dn)for(var e=0;e<t.length;e++){var n=this.b.getStyleForCustomStyle(t[e]);if(n&&Dn&&this.a){var o=Fn(n);er(this),this.a.transformRules(o),n.textContent=In(o)}}else for(or(this,this.c,this.f),e=0;e<t.length;e++)(n=this.b.getStyleForCustomStyle(t[e]))&&Ro(n,this.f.v);this.b.enqueued=!1,this.m&&!Dn&&this.styleDocument()}}},t.styleElement=function(t,e){var n=$n(t).is,o=wo(t);if(!o){var r=$n(t);o=r.is,r=r.J;var i=Po[o];if(o=$o[o])var a=o._styleAst,s=o.wa;o=Eo(t,new bo(a,i,s,r))}if(t!==this.c&&(this.m=!0),e&&(o.B=o.B||{},Object.assign(o.B,e)),Dn){if(o.B)for(var l in e=o.B)null===l?t.style.removeProperty(l):t.style.setProperty(l,e[l]);((l=$o[n])||t===this.c)&&l&&l.ga&&!Ko(l)&&((Ko(l)||l._applyShimValidatingVersion!==l._applyShimNextVersion)&&(er(this),this.a&&this.a.transformRules(l._styleAst,n),l.ga.textContent=Xn(t,o.u),function(t){t._applyShimValidatingVersion=t._applyShimNextVersion,t.a||(t.a=!0,zo.then(function(){t._applyShimCurrentVersion=t._applyShimNextVersion,t.a=!1}))}(l)),On&&(n=t.shadowRoot)&&(n.querySelector("style").textContent=Xn(t,o.u)),o.u=l._styleAst)}else if(or(this,t,o),o.ba&&o.ba.length){n=o,l=$n(t).is,o=(e=Qo.fetch(l,n.v,n.ba))?e.styleElement:null,a=n.o,(s=e&&e.o)||(s=l+"-"+(s=this.F[l]=(this.F[l]||0)+1)),n.o=s,s=n.o,r=jo,r=o?o.textContent||"":Mo(r,t,n.v,s);var c=(i=wo(t)).a;c&&!On&&c!==o&&(c._useCount--,0>=c._useCount&&c.parentNode&&c.parentNode.removeChild(c)),On?i.a?(i.a.textContent=r,o=i.a):r&&(o=qn(r,s,t.shadowRoot,i.b)):o?o.parentNode||(So&&-1<r.indexOf("@media")&&(o.textContent=r),Un(o,null,i.b)):r&&(o=qn(r,s,null,i.b)),o&&(o._useCount=o._useCount||0,i.a!=o&&o._useCount++,i.a=o),s=o,On||(o=n.o,i=r=t.getAttribute("class")||"",a&&(i=r.replace(new RegExp("\\s*x-scope\\s*"+a+"\\s*","g")," ")),r!==(i+=(i?" ":"")+"x-scope "+o)&&Gn(t,i)),e||Qo.store(l,n.v,s,n.o)}},t.styleDocument=function(t){this.styleSubtree(this.c,t)},t.styleSubtree=function(t,e){var n=t.shadowRoot;if((n||t===this.c)&&this.styleElement(t,e),e=n&&(n.children||n.childNodes))for(t=0;t<e.length;t++)this.styleSubtree(e[t]);else if(t=t.children||t.childNodes)for(e=0;e<t.length;e++)this.styleSubtree(t[e])},t.ka=function(t){var e=this,n=Fn(t);Wn(n,function(t){if(On)eo(t);else{var n=go;t.selector=t.parsedSelector,eo(t),t.selector=t.j=Zn(n,t,n.c,void 0,void 0)}Dn&&(er(e),e.a&&e.a.transformRule(t))}),Dn?t.textContent=In(n):this.f.u.rules.push(n)},t.getComputedStyleValue=function(t,e){var n;return Dn||(n=(wo(t)||wo(nr(this,t))).v[e]),(n=n||window.getComputedStyle(t).getPropertyValue(e))?n.trim():""},t.Na=function(t,e){var n=t.getRootNode();if(e=e?e.split(/\s/):[],!(n=n.host&&n.host.localName)){var o=t.getAttribute("class");if(o){o=o.split(/\s/);for(var r=0;r<o.length;r++)if(o[r]===go.a){n=o[r+1];break}}}n&&e.push(go.a,n),Dn||(n=wo(t))&&n.o&&e.push(jo.a,n.o),Gn(t,e.join(" "))},t.xa=function(t){return wo(t)},tr.prototype.flush=tr.prototype.ma,tr.prototype.prepareTemplate=tr.prototype.prepareTemplate,tr.prototype.styleElement=tr.prototype.styleElement,tr.prototype.styleDocument=tr.prototype.styleDocument,tr.prototype.styleSubtree=tr.prototype.styleSubtree,tr.prototype.getComputedStyleValue=tr.prototype.getComputedStyleValue,tr.prototype.setElementClass=tr.prototype.Na,tr.prototype._styleInfoForNode=tr.prototype.xa,tr.prototype.transformCustomStyleForDocument=tr.prototype.ka,tr.prototype.getStyleAst=tr.prototype.Ba,tr.prototype.styleAstToString=tr.prototype.Oa,tr.prototype.flushCustomStyles=tr.prototype.A,Object.defineProperties(tr.prototype,{nativeShadow:{get:function(){return On}},nativeCss:{get:function(){return Dn}}});var rr,ir,ar=new tr;window.ShadyCSS&&(rr=window.ShadyCSS.ApplyShim,ir=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:ar,prepareTemplate:function(t,e,n){ar.A(),ar.prepareTemplate(t,e,n)},styleSubtree:function(t,e){ar.A(),ar.styleSubtree(t,e)},styleElement:function(t){ar.A(),ar.styleElement(t)},styleDocument:function(t){ar.A(),ar.styleDocument(t)},getComputedStyleValue:function(t,e){return ar.getComputedStyleValue(t,e)},nativeCss:Dn,nativeShadow:On},rr&&(window.ShadyCSS.ApplyShim=rr),ir&&(window.ShadyCSS.CustomStyleInterface=ir);var sr=window.customElements,lr=window.HTMLImports,cr=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},sr&&sr.polyfillWrapFlushCallback){var dr,ur=function(){if(dr){cr.ya&&cr.ya(window.document);var t=dr;return dr=null,t(),!0}},hr=lr.whenReady;sr.polyfillWrapFlushCallback(function(t){dr=t,hr(ur)}),lr.whenReady=function(t){hr(function(){ur()?lr.whenReady(t):t()})}}lr.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var fr=document.createElement("style");fr.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var pr=document.querySelector("head");pr.insertBefore(fr,pr.firstChild)}).call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L46

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd.js:46
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- C.children=function(a){var b=[];E.currentNode=a;for(a=E.firstChild();a;)b.push(a),a=E.nextSibling();return b};C.innerHTML=function(a){return $a(a,function(a){return ab(a)})};C.textContent=function(a){switch(a.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b;default:return a.nodeValue}};var bb=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),cb=document.implementation.createHTMLDocument("inert"),db=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),eb={parentElement:{get:function(){var a=this.__shady&&this.__shady.parentNode;a&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:C.parentElement(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&this.__shady.parentNode;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L52

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd.js:52
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):C.children(this);a.item=function(b){return a[b]};return a},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return t(this)?$a(a):C.innerHTML(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);var c=this.localName;c&&"template"!==c||(c="div");c=cb.createElement(c);for(bb&&bb.set?bb.set.call(c,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd.min.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd.min.js:1
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- (function(){"use strict";var e,t="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,n="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function r(){r=function(){},t.Symbol||(t.Symbol=i)}var o,i=(o=0,function(e){return"jscomp_symbol_"+(e||"")+o++});function s(){r();var e=t.Symbol.iterator;e||(e=t.Symbol.iterator=t.Symbol("iterator")),"function"!=typeof Array.prototype[e]&&n(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return a(this)}}),s=function(){}}function a(e){var n=0;return function(e){return s(),(e={next:e})[t.Symbol.iterator]=function(){return this},e}(function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}})}!function(e){function t(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}function n(e){if(u)return e.ownerDocument!==document?e.ownerDocument:null;var t=e.__importDoc;if(!t&&e.parentNode){if("function"==typeof(t=e.parentNode).closest)t=t.closest("link[rel=import]");else for(;!s(t)&&(t=t.parentNode););e.__importDoc=t}return t}function r(e){function t(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",t),e())}document.addEventListener("readystatechange",t),t()}function o(e){r(function(){return function(e){var t=l(document,"link[rel=import]:not([import-dependency])"),n=t.length;n?d(t,function(t){return i(t,function(){0==--n&&e()})}):e()}(function(){return e&&e()})})}function i(e,t){if(e.__loaded)t&&t();else if("script"===e.localName&&!e.src||"style"===e.localName&&!e.firstChild)e.__loaded=!0,t&&t();else{var n=function(r){e.removeEventListener(r.type,n),e.__loaded=!0,t&&t()};e.addEventListener("load",n),g&&"style"===e.localName||e.addEventListener("error",n)}}function s(e){return e.nodeType===Node.ELEMENT_NODE&&"link"===e.localName&&"import"===e.rel}function a(){var e=this;this.a={},this.b=0,this.c=new MutationObserver(function(t){return e.xa(t)}),this.c.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document)}function l(e,t){return e.childNodes.length?e.querySelectorAll(t):h}function d(e,t,n){var r=e?e.length:0,o=n?-1:1;for(n=n?r-1:0;n<r&&0<=n;n+=o)t(e[n],n)}var c=document.createElement("link"),u="import"in c,h=c.querySelectorAll("*"),f=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return f||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var p=/(url\()([^)]*)(\))/g,y=/(@import[\s]+(?!url\())([^;]*)(;)/g,m=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,_={ra:function(e,t){if(e.href&&e.setAttribute("href",_.M(e.getAttribute("href"),t)),e.src&&e.setAttribute("src",_.M(e.getAttribute("src"),t)),"style"===e.localName){var n=_.ba(e.textContent,t,p);e.textContent=_.ba(n,t,y)}},ba:function(e,t,n){return e.replace(n,function(e,n,r,o){return e=r.replace(/["']/g,""),t&&(e=_.M(e,t)),n+"'"+e+"'"+o})},M:function(e,t){if(void 0===_.R){_.R=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",_.R="http://a/c%20d"===n.href}catch(e){}}return _.R?new URL(e,t).href:((n=_.ia)||(n=document.implementation.createHTMLDocument("temp"),_.ia=n,n.X=n.createElement("base"),n.head.appendChild(n.X),n.W=n.createElement("a")),n.X.href=t,n.W.href=e,n.W.href||e)}},v={async:!0,load:function(e,t,n){if(e)if(e.match(/^data:/)){var r=(e=e.split(","))[1];r=-1<e[0].indexOf(";base64")?atob(r):decodeURIComponent(r),t(r)}else{var o=new XMLHttpRequest;o.open("GET",e,v.async),o.onload=function(){var e=o.responseURL||o.getResponseHeader("Location");e&&0===e.indexOf("/")&&(e=(location.origin||location.protocol+"//"+location.host)+e);var r=o.response||o.responseText;304===o.status||0===o.status||200<=o.status&&300>o.status?t(r,e):n(r)},o.send()}else n("error: href must be specified")}},g=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);a.prototype.loadImports=function(e){var t=this;d(e=l(e,"link[rel=import]"),function(e){return t.v(e)})},a.prototype.v=function(e){var t=this,n=e.href;if(void 0!==this.a[n]){var r=this.a[n];r&&r.__loaded&&(e.__import=r,this.h(e))}else this.b++,this.a[n]="pending",v.load(n,function(e,r){e=t.ya(e,r||n),t.a[n]=e,t.b--,t.loadImports(e),t.C()},function(){t.a[n]=null,t.b--,t.C()})},a.prototype.ya=function(e,t){if(!e)return document.createDocumentFragment();g&&(e=e.replace(m,function(e,t,n){return-1===e.indexOf("type=")?t+" type=import-disable "+n:e}));var n=document.createElement("template");if(n.innerHTML=e,n.content)(function e(t){d(l(t,"template"),function(t){d(l(t.content,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(e){var t=document.createElement("script");d(e.attributes,function(e){return t.setAttribute(e.name,e.value)}),t.textContent=e.textContent,e.parentNode.replaceChild(t,e)}),e(t.content)})})(e=n.content);else for(e=document.createDocumentFragment();n.firstChild;)e.appendChild(n.firstChild);(n=e.querySelector("base"))&&(t=_.M(n.getAttribute("href"),t),n.removeAttribute("href"));var r=0;return d(n=l(e,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),function(e){i(e),_.ra(e,t),e.setAttribute("import-dependency",""),"script"===e.localName&&!e.src&&e.textContent&&(e.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(e.textContent+"\n//# sourceURL="+t+(r?"-"+r:"")+".js\n")),e.textContent="",r++)}),e},a.prototype.C=function(){var e=this;if(!this.b){this.c.disconnect(),this.flatten(document);var t=!1,n=!1,r=function(){n&&t&&(e.loadImports(document),e.b||(e.c.observe(document.head,{childList:!0,subtree:!0}),e.va()))};this.Aa(function(){n=!0,r()}),this.za(function(){t=!0,r()})}},a.prototype.flatten=function(e){var t=this;d(e=l(e,"link[rel=import]"),function(e){var n=t.a[e.href];(e.__import=n)&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(t.a[e.href]=e,e.readyState="loading",e.__import=e,t.flatten(n),e.appendChild(n))})},a.prototype.za=function(e){var t=l(document,"script[import-dependency]"),n=t.length;!function r(o){if(o<n){var s=t[o],a=document.createElement("script");s.removeAttribute("import-dependency"),d(s.attributes,function(e){return a.setAttribute(e.name,e.value)}),f=a,s.parentNode.replaceChild(a,s),i(a,function(){f=null,r(o+1)})}else e()}(0)},a.prototype.Aa=function(e){var t=l(document,"style[import-dependency],link[rel=stylesheet][import-dependency]"),r=t.length;if(r){var o=g&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");d(t,function(t){if(i(t,function(){t.removeAttribute("import-dependency"),0==--r&&e()}),o&&t.parentNode!==document.head){var s=document.createElement(t.localName);for(s.__appliedElement=t,s.setAttribute("type","import-placeholder"),t.parentNode.insertBefore(s,t.nextSibling),s=n(t);s&&n(s);)s=n(s);s.parentNode!==document.head&&(s=null),document.head.insertBefore(t,s),t.removeAttribute("type")}})}else e()},a.prototype.va=function(){var e=this;d(l(document,"link[rel=import]"),function(t){return e.h(t)},!0)},a.prototype.h=function(e){e.__loaded||(e.__loaded=!0,e.import&&(e.import.readyState="complete"),e.dispatchEvent(t(e.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))},a.prototype.xa=function(e){var t=this;d(e,function(e){return d(e.addedNodes,function(e){e&&e.nodeType===Node.ELEMENT_NODE&&(s(e)?t.v(e):t.loadImports(e))})})};var b=null;if(u)d(c=l(document,"link[rel=import]"),function(e){e.import&&"loading"===e.import.readyState||(e.__loaded=!0)}),c=function(e){s(e=e.target)&&(e.__loaded=!0)},document.addEventListener("load",c,!0),document.addEventListener("error",c,!0);else{var N=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!N||N.configurable?Node:Element).prototype,"baseURI",{get:function(){var e=s(this)?this:n(this);return e?e.href:N&&N.get?N.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),Object.defineProperty(HTMLLinkElement.prototype,"import",{get:function(){return this.__import||null},configurable:!0,enumerable:!0}),r(function(){b=new a})}o(function(){return document.dispatchEvent(t("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),e.useNative=u,e.whenReady=o,e.importForElement=n,e.loadImports=function(e){b&&b.loadImports(e)}}(window.HTMLImports=window.HTMLImports||{});var l=window.ShadyDOM||{};l.ta=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var d=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");function c(e){return e.__shady&&void 0!==e.__shady.firstChild}function u(e){return"ShadyRoot"===e.fa}function h(e){if(u(e=e.getRootNode()))return e}l.D=!!(d&&d.configurable&&d.get),l.aa=l.force||!l.ta;var f=Element.prototype,p=f.matches||f.matchesSelector||f.mozMatchesSelector||f.msMatchesSelector||f.oMatchesSelector||f.webkitMatchesSelector;function y(e,t){if(e&&t)for(var n,r=Object.getOwnPropertyNames(t),o=0;o<r.length&&(n=r[o]);o++){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}}function m(e,t){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];for(r=0;r<n.length;r++)y(e,n[r]);return e}var _=document.createTextNode(""),v=0,g=[];function b(e){g.push(e),_.textContent=v++}new MutationObserver(function(){for(;g.length;)try{g.shift()()}catch(e){throw _.textContent=v++,e}}).observe(_,{characterData:!0});var N=!!document.contains;function w(e,t){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}var S,E=[];function C(e){S||(S=!0,b(x)),E.push(e)}function x(){S=!1;for(var e=!!E.length;E.length;)E.shift()();return e}function T(){this.a=!1,this.addedNodes=[],this.removedNodes=[],this.K=new Set}x.list=E,T.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var e=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],e}return[]};var O={},A=Element.prototype.insertBefore,L=Element.prototype.removeChild,M=Element.prototype.setAttribute,D=Element.prototype.removeAttribute,R=Element.prototype.cloneNode,j=Document.prototype.importNode,k=Element.prototype.addEventListener,P=Element.prototype.removeEventListener,I=Window.prototype.addEventListener,H=Window.prototype.removeEventListener,F=Element.prototype.dispatchEvent,V=Element.prototype.querySelector,q=Element.prototype.querySelectorAll,B=Node.prototype.contains||HTMLElement.prototype.contains;O.appendChild=Element.prototype.appendChild,O.insertBefore=A,O.removeChild=L,O.setAttribute=M,O.removeAttribute=D,O.cloneNode=R,O.importNode=j,O.addEventListener=k,O.removeEventListener=P,O.Ga=I,O.Ha=H,O.dispatchEvent=F,O.querySelector=V,O.querySelectorAll=q,O.contains=B;var W=/[&\u00A0"]/g,U=/[&\u00A0<>]/g;function G(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";case" ":return"&nbsp;"}}function $(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return t}var K=$("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),J=$("style script xmp iframe noembed noframes plaintext noscript".split(" "));function X(e,t){"template"===e.localName&&(e=e.content);for(var n,r="",o=t?t(e):e.childNodes,i=0,s=o.length;i<s&&(n=o[i]);i++){e:{var a=n,l=e,d=t;switch(a.nodeType){case Node.ELEMENT_NODE:for(var c=a.localName,u="<"+c,h=a.attributes,f=0;l=h[f];f++)u+=" "+l.name+'="'+l.value.replace(W,G)+'"';u+=">",a=K[c]?u:u+X(a,d)+"</"+c+">";break e;case Node.TEXT_NODE:a=a.data,a=l&&J[l.localName]?a:a.replace(U,G);break e;case Node.COMMENT_NODE:a="\x3c!--"+a.data+"--\x3e";break e;default:throw window.console.error(a),Error("not implemented")}}r+=a}return r}var z={},Y=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Z=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);function Q(e){var t=[];for(Y.currentNode=e,e=Y.firstChild();e;)t.push(e),e=Y.nextSibling();return t}z.parentNode=function(e){return Y.currentNode=e,Y.parentNode()},z.firstChild=function(e){return Y.currentNode=e,Y.firstChild()},z.lastChild=function(e){return Y.currentNode=e,Y.lastChild()},z.previousSibling=function(e){return Y.currentNode=e,Y.previousSibling()},z.nextSibling=function(e){return Y.currentNode=e,Y.nextSibling()},z.childNodes=Q,z.parentElement=function(e){return Z.currentNode=e,Z.parentNode()},z.firstElementChild=function(e){return Z.currentNode=e,Z.firstChild()},z.lastElementChild=function(e){return Z.currentNode=e,Z.lastChild()},z.previousElementSibling=function(e){return Z.currentNode=e,Z.previousSibling()},z.nextElementSibling=function(e){return Z.currentNode=e,Z.nextSibling()},z.children=function(e){var t=[];for(Z.currentNode=e,e=Z.firstChild();e;)t.push(e),e=Z.nextSibling();return t},z.innerHTML=function(e){return X(e,function(e){return Q(e)})},z.textContent=function(e){switch(e.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:e=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);for(var t,n="";t=e.nextNode();)n+=t.nodeValue;return n;default:return e.nodeValue}};var ee=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),te=document.implementation.createHTMLDocument("inert"),ne=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),re={parentElement:{get:function(){var e=this.__shady&&this.__shady.parentNode;return e&&e.nodeType!==Node.ELEMENT_NODE&&(e=null),void 0!==e?e:z.parentElement(this)},configurable:!0},parentNode:{get:function(){var e=this.__shady&&this.__shady.parentNode;return void 0!==e?e:z.parentNode(this)},configurable:!0},nextSibling:{get:function(){var e=this.__shady&&this.__shady.nextSibling;return void 0!==e?e:z.nextSibling(this)},configurable:!0},previousSibling:{get:function(){var e=this.__shady&&this.__shady.previousSibling;return void 0!==e?e:z.previousSibling(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(e){this.setAttribute("class",e)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}return z.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}return z.previousElementSibling(this)},configurable:!0}},oe={childNodes:{get:function(){if(c(this)){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var e=this.firstChild;e;e=e.nextSibling)this.__shady.childNodes.push(e)}var t=this.__shady.childNodes}else t=z.childNodes(this);return t.item=function(e){return t[e]},t},configurable:!0},childElementCount:{get:function(){return this.children.length},configurable:!0},firstChild:{get:function(){var e=this.__shady&&this.__shady.firstChild;return void 0!==e?e:z.firstChild(this)},configurable:!0},lastChild:{get:function(){var e=this.__shady&&this.__shady.lastChild;return void 0!==e?e:z.lastChild(this)},configurable:!0},textContent:{get:function(){if(c(this)){for(var e,t=[],n=0,r=this.childNodes;e=r[n];n++)e.nodeType!==Node.COMMENT_NODE&&t.push(e.textContent);return t.join("")}return z.textContent(this)},set:function(e){switch(void 0!==e&&null!==e||(e=""),this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(0<e.length||this.nodeType===Node.ELEMENT_NODE)&&this.appendChild(document.createTextNode(e));break;default:this.nodeValue=e}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var e=this.firstChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e}return z.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var e=this.lastChild;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}return z.lastElementChild(this)},configurable:!0},children:{get:function(){var e=c(this)?Array.prototype.filter.call(this.childNodes,function(e){return e.nodeType===Node.ELEMENT_NODE}):z.children(this);return e.item=function(t){return e[t]},e},configurable:!0},innerHTML:{get:function(){var e="template"===this.localName?this.content:this;return c(this)?X(e):z.innerHTML(e)},set:function(e){for(var t="template"===this.localName?this.content:this;t.firstChild;)t.removeChild(t.firstChild);var n=this.localName;for(n&&"template"!==n||(n="div"),n=te.createElement(n),ee&&ee.set?ee.set.call(n,e):n.innerHTML=e;n.firstChild;)t.appendChild(n.firstChild)},configurable:!0}},ie={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ba||null},configurable:!0}},se={activeElement:{get:function(){var e=ne&&ne.get?ne.get.call(document):l.D?void 0:document.activeElement;if(e&&e.nodeType){var t=!!u(this);if(this===document||t&&this.host!==e&&O.contains.call(this.host,e)){for(t=h(e);t&&t!==this;)t=h(e=t.host);e=this===document?t?null:e:t===this?e:null}else e=null}else e=null;return e},set:function(){},configurable:!0}};function ae(e,t,n){for(var r in t){var o=Object.getOwnPropertyDescriptor(e,r);o&&o.configurable||!o&&n?Object.defineProperty(e,r,t[r]):n&&console.warn("Could not define",r,"on",e)}}function le(e){ae(e,re),ae(e,oe),ae(e,se)}var de=l.D?function(){}:function(e){e.__shady&&e.__shady.ga||(e.__shady=e.__shady||{},e.__shady.ga=!0,ae(e,re,!0))},ce=l.D?function(){}:function(e){e.__shady&&e.__shady.ea||(e.__shady=e.__shady||{},e.__shady.ea=!0,ae(e,oe,!0),ae(e,ie,!0))};function ue(e,t,n){de(e),n=n||null,e.__shady=e.__shady||{},t.__shady=t.__shady||{},n&&(n.__shady=n.__shady||{}),e.__shady.previousSibling=n?n.__shady.previousSibling:t.lastChild;var r=e.__shady.previousSibling;r&&r.__shady&&(r.__shady.nextSibling=e),(r=e.__shady.nextSibling=n)&&r.__shady&&(r.__shady.previousSibling=e),e.__shady.parentNode=t,n?n===t.__shady.firstChild&&(t.__shady.firstChild=e):(t.__shady.lastChild=e,t.__shady.firstChild||(t.__shady.firstChild=e)),t.__shady.childNodes=null}function he(e){if(!e.__shady||void 0===e.__shady.firstChild){e.__shady=e.__shady||{},e.__shady.firstChild=z.firstChild(e),e.__shady.lastChild=z.lastChild(e),ce(e);for(var t,n=e.__shady.childNodes=z.childNodes(e),r=0;r<n.length&&(t=n[r]);r++)t.__shady=t.__shady||{},t.__shady.parentNode=e,t.__shady.nextSibling=n[r+1]||null,t.__shady.previousSibling=n[r-1]||null,de(t)}}function fe(e,t,n){if(t===e)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");if(n){var r=n.__shady&&n.__shady.parentNode;if(void 0!==r&&r!==e||void 0===r&&z.parentNode(n)!==e)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.")}if(n===t)return t;var o;if(t.parentNode&&pe(t.parentNode,t),o=r=h(e))e:{var i;if(!t.__noInsertionPoint)if("slot"===t.localName?i=[t]:t.querySelectorAll&&(i=t.querySelectorAll("slot")),i&&i.length){o=i;break e}o=void 0}if((i=o)&&r.A.push.apply(r.A,[].concat(i instanceof Array?i:function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(function(e){s();var t=e[Symbol.iterator];return t?t.call(e):a(e)}(i)))),r&&("slot"===e.localName||i)&&We(r),c(e)){if(r=n,ce(e),e.__shady=e.__shady||{},void 0!==e.__shady.firstChild&&(e.__shady.childNodes=null),t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(i=t.childNodes,o=0;o<i.length;o++)ue(i[o],e,r);t.__shady=t.__shady||{},r=void 0!==t.__shady.firstChild?null:void 0,t.__shady.firstChild=t.__shady.lastChild=r,t.__shady.childNodes=r}else ue(t,e,r);if(ye(e)){We(e.__shady.root);var l=!0}else e.__shady.root&&(l=!0)}return l||(l=u(e)?e.host:e,n?(n=function e(t){var n=t;t&&"slot"===t.localName&&(n=(n=t.__shady&&t.__shady.B)&&n.length?n[0]:e(t.nextSibling));return n}(n),O.insertBefore.call(l,t,n)):O.appendChild.call(l,t)),_e(e,t),t}function pe(e,t){if(t.parentNode!==e)throw Error("The node to be removed is not a child of this node: "+t);var n=h(t);if(c(e)){t.__shady=t.__shady||{},e.__shady=e.__shady||{},t===e.__shady.firstChild&&(e.__shady.firstChild=t.__shady.nextSibling),t===e.__shady.lastChild&&(e.__shady.lastChild=t.__shady.previousSibling);var r=t.__shady.previousSibling,o=t.__shady.nextSibling;if(r&&(r.__shady=r.__shady||{},r.__shady.nextSibling=o),o&&(o.__shady=o.__shady||{},o.__shady.previousSibling=r),t.__shady.parentNode=t.__shady.previousSibling=t.__shady.nextSibling=void 0,void 0!==e.__shady.childNodes&&(e.__shady.childNodes=null),ye(e)){We(e.__shady.root);var i=!0}}if(function e(t){if(t.__shady&&void 0!==t.__shady.V)for(var n,r=t.childNodes,o=0,i=r.length;o<i&&(n=r[o]);o++)e(n);t.__shady&&(t.__shady.V=void 0)}(t),n){for(var s in(r=e&&"slot"===e.localName)&&(i=!0),Je(n),o=n.g)for(var a=o[s],l=0;l<a.length;l++){var d=a[l];if(w(t,d)){a.splice(l,1);var f=n.j.indexOf(d);if(0<=f&&n.j.splice(f,1),l--,f=d.__shady.B)for(d=0;d<f.length;d++){var p=f[d],y=z.parentNode(p);y&&O.removeChild.call(y,p)}f=!0}}(f||r)&&We(n)}return i||(i=u(e)?e.host:e,(!e.__shady.root&&"slot"!==t.localName||i===z.parentNode(t))&&O.removeChild.call(i,t)),_e(e,null,t),t}function ye(e){return(e=e&&e.__shady&&e.__shady.root)&&Ze(e)}function me(e,t){if("slot"===t)ye(e=e.parentNode)&&We(e.__shady.root);else if("slot"===e.localName&&"name"===t&&(t=h(e))){var n=e.ha,r=Xe(e);if(r!==n){var o=(n=t.g[n]).indexOf(e);0<=o&&n.splice(o,1),(n=t.g[r]||(t.g[r]=[])).push(e),1<n.length&&(t.g[r]=ze(n))}We(t)}}function _e(e,t,n){(e=e.__shady&&e.__shady.F)&&(t&&e.addedNodes.push(t),n&&e.removedNodes.push(n),function(e){e.a||(e.a=!0,b(function(){!function(e){if(e.a){e.a=!1;var t=e.takeRecords();t.length&&e.K.forEach(function(e){e(t)})}}(e)}))}(e))}function ve(e,t,n){var r=[];return function e(t,n,r,o){for(var i,s=0,a=t.length;s<a&&(i=t[s]);s++){var l;if(l=i.nodeType===Node.ELEMENT_NODE){var d=n,c=r,u=o,h=d(l=i);h&&u.push(l),c&&c(h)?l=h:(e(l.childNodes,d,c,u),l=void 0)}if(l)break}}(e.childNodes,t,n,r),r}var ge=null;function be(e,t,n){ge||(ge=window.ShadyCSS&&window.ShadyCSS.ScopingShim),ge&&"class"===t?ge.setElementClass(e,n):(O.setAttribute.call(e,t,n),me(e,t))}var Ne="__eventWrappers"+Date.now(),we={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0};function Se(e,t){var n=[],r=e;for(e=e===window?window:e.getRootNode();r;)n.push(r),r=r.assignedSlot?r.assignedSlot:r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host&&(t||r!==e)?r.host:r.parentNode;return n[n.length-1]===document&&n.push(window),n}function Ee(e,t){if(!u)return e;e=Se(e,!0);for(var n,r,o,i,s=0;s<t.length;s++)if((o=(n=t[s])===window?window:n.getRootNode())!==r&&(i=e.indexOf(o),r=o),!u(o)||-1<i)return n}var Ce={get composed(){return!1!==this.isTrusted&&void 0===this.N&&(this.N=we[this.type]),this.N||!1},composedPath:function(){return this.b||(this.b=Se(this.__target,this.composed)),this.b},get target(){return Ee(this.currentTarget,this.composedPath())},get relatedTarget(){return this.O?(this.c||(this.c=Se(this.O,!0)),Ee(this.currentTarget,this.c)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.a=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.a=this.h=!0}};function xe(e){function t(t,n){return(t=new e(t,n)).N=n&&!!n.composed,t}return function(e,t){for(var n in t)e[n]=t[n]}(t,e),t.prototype=e.prototype,t}var Te={focus:!0,blur:!0};function Oe(e){return e.__target!==e.target||e.O!==e.relatedTarget}function Ae(e,t,n){if(n=t.__handlers&&t.__handlers[e.type]&&t.__handlers[e.type][n])for(var r,o=0;(r=n[o])&&(!Oe(e)||e.target!==e.relatedTarget)&&(r.call(t,e),!e.h);o++);}function Le(e){var t,n=e.composedPath();Object.defineProperty(e,"currentTarget",{get:function(){return o},configurable:!0});for(var r=n.length-1;0<=r;r--){var o=n[r];if(Ae(e,o,"capture"),e.a)return}for(Object.defineProperty(e,"eventPhase",{get:function(){return Event.AT_TARGET}}),r=0;r<n.length;r++){var i=(o=n[r]).__shady&&o.__shady.root;if((0===r||i&&i===t)&&(Ae(e,o,"bubble"),o!==window&&(t=o.getRootNode()),e.a))break}}function Me(e,t,n,r,o,i){for(var s=0;s<e.length;s++){var a=e[s],l=a.type,d=a.capture,c=a.once,u=a.passive;if(t===a.node&&n===l&&r===d&&o===c&&i===u)return s}return-1}function De(e,t,n){if(t){var r=typeof t;if(("function"===r||"object"===r)&&("object"!==r||t.handleEvent&&"function"==typeof t.handleEvent)){if(n&&"object"==typeof n)var o=!!n.capture,i=!!n.once,s=!!n.passive;else o=!!n,s=i=!1;var a=n&&n.P||this,l=t[Ne];if(l){if(-1<Me(l,a,e,o,i,s))return}else t[Ne]=[];l=function(o){if(i&&this.removeEventListener(e,t,n),o.__target||je(o),a!==this){var s=Object.getOwnPropertyDescriptor(o,"currentTarget");Object.defineProperty(o,"currentTarget",{get:function(){return a},configurable:!0})}if(o.composed||-1<o.composedPath().indexOf(a))if(Oe(o)&&o.target===o.relatedTarget)o.eventPhase===Event.BUBBLING_PHASE&&o.stopImmediatePropagation();else if(o.eventPhase===Event.CAPTURING_PHASE||o.bubbles||o.target===a||a instanceof Window){var l="function"===r?t.call(a,o):t.handleEvent&&t.handleEvent(o);return a!==this&&(s?(Object.defineProperty(o,"currentTarget",s),s=null):delete o.currentTarget),l}},t[Ne].push({node:this,type:e,capture:o,once:i,passive:s,Ia:l}),Te[e]?(this.__handlers=this.__handlers||{},this.__handlers[e]=this.__handlers[e]||{capture:[],bubble:[]},this.__handlers[e][o?"capture":"bubble"].push(l)):(this instanceof Window?O.Ga:O.addEventListener).call(this,e,l,n)}}}function Re(e,t,n){if(t){if(n&&"object"==typeof n)var r=!!n.capture,o=!!n.once,i=!!n.passive;else r=!!n,i=o=!1;var s=n&&n.P||this,a=void 0,l=null;try{l=t[Ne]}catch(e){}l&&(-1<(o=Me(l,s,e,r,o,i))&&(a=l.splice(o,1)[0].Ia,l.length||(t[Ne]=void 0))),(this instanceof Window?O.Ha:O.removeEventListener).call(this,e,a||t,n),a&&Te[e]&&this.__handlers&&this.__handlers[e]&&(-1<(a=(e=this.__handlers[e][r?"capture":"bubble"]).indexOf(a))&&e.splice(a,1))}}function je(e){if(e.__target=e.target,e.O=e.relatedTarget,l.D){var t=Object.getPrototypeOf(e);if(!t.hasOwnProperty("__patchProto")){var n=Object.create(t);n.Ka=t,y(n,Ce),t.__patchProto=n}e.__proto__=t.__patchProto}else y(e,Ce)}var ke=xe(window.Event),Pe=xe(window.CustomEvent),Ie=xe(window.MouseEvent);function He(e,t){return{index:e,G:[],J:t}}function Fe(e,t,n,r){var o=0,i=0,s=0,a=0,l=Math.min(t-o,r-i);if(0==o&&0==i)e:{for(s=0;s<l;s++)if(e[s]!==n[s])break e;s=l}if(t==e.length&&r==n.length){a=e.length;for(var d=n.length,c=0;c<l-s&&Ve(e[--a],n[--d]);)c++;a=c}if(i+=s,r-=a,0==(t-=a)-(o+=s)&&0==r-i)return[];if(o==t){for(t=He(o,0);i<r;)t.G.push(n[i++]);return[t]}if(i==r)return[He(o,t-o)];for(r=r-(s=i)+1,a=t-(l=o)+1,t=Array(r),d=0;d<r;d++)t[d]=Array(a),t[d][0]=d;for(d=0;d<a;d++)t[0][d]=d;for(d=1;d<r;d++)for(c=1;c<a;c++)if(e[l+c-1]===n[s+d-1])t[d][c]=t[d-1][c-1];else{var u=t[d-1][c]+1,h=t[d][c-1]+1;t[d][c]=u<h?u:h}for(l=t.length-1,s=t[0].length-1,r=t[l][s],e=[];0<l||0<s;)0==l?(e.push(2),s--):0==s?(e.push(3),l--):(a=t[l-1][s-1],(u=(d=t[l-1][s])<(c=t[l][s-1])?d<a?d:a:c<a?c:a)==a?(a==r?e.push(0):(e.push(1),r=a),l--,s--):u==d?(e.push(3),l--,r=d):(e.push(2),s--,r=c));for(e.reverse(),t=void 0,l=[],s=0;s<e.length;s++)switch(e[s]){case 0:t&&(l.push(t),t=void 0),o++,i++;break;case 1:t||(t=He(o,0)),t.J++,o++,t.G.push(n[i]),i++;break;case 2:t||(t=He(o,0)),t.J++,o++;break;case 3:t||(t=He(o,0)),t.G.push(n[i]),i++}return t&&l.push(t),l}function Ve(e,t){return e===t}var qe={};function Be(e,t,n){if(e!==qe)throw new TypeError("Illegal constructor");(e=document.createDocumentFragment()).__proto__=Be.prototype,e.fa="ShadyRoot",he(t),he(e),e.host=t,e.ka=n&&n.mode,t.__shady=t.__shady||{},t.__shady.root=e,t.__shady.Ba="closed"!==e.ka?e:null,e.I=!1,e.j=[],e.g={},e.A=[];for(var r=0,o=(n=z.childNodes(t)).length;r<o;r++)O.removeChild.call(t,n[r]);return e}function We(e){e.I||(e.I=!0,C(function(){return Ue(e)}))}function Ue(e){for(var t;e;){e.I&&(t=e);e:{var n=e;if(u(e=n.host.getRootNode()))for(var r=n.host.childNodes,o=0;o<r.length;o++)if("slot"==(n=r[o]).localName)break e;e=void 0}}t&&t._renderRoot()}function Ge(e,t,n){t.__shady=t.__shady||{};var r=t.__shady.S;t.__shady.S=null,n||(n=(e=e.g[t.slot||"__catchall"])&&e[0]),n?(n.__shady.assignedNodes.push(t),t.__shady.assignedSlot=n):t.__shady.assignedSlot=void 0,r!==t.__shady.assignedSlot&&t.__shady.assignedSlot&&(t.__shady.assignedSlot.__shady.T=!0)}function $e(e,t,n){for(var r,o=0;o<n.length&&(r=n[o]);o++)if("slot"==r.localName){var i=r.__shady.assignedNodes;i&&i.length&&$e(e,t,i)}else t.push(n[o])}function Ke(e,t){O.dispatchEvent.call(t,new Event("slotchange")),t.__shady.assignedSlot&&Ke(e,t.__shady.assignedSlot)}function Je(e){if(e.A.length){for(var t,n=e.A,r=0;r<n.length;r++){var o=n[r];o.__shady=o.__shady||{},he(o),he(o.parentNode);var i=Xe(o);e.g[i]?((t=t||{})[i]=!0,e.g[i].push(o)):e.g[i]=[o],e.j.push(o)}if(t)for(var s in t)e.g[s]=ze(e.g[s]);e.A=[]}}function Xe(e){var t=e.name||e.getAttribute("name")||"__catchall";return e.ha=t}function ze(e){return e.sort(function(e,t){e=Ye(e);for(var n=Ye(t),r=0;r<e.length;r++){t=e[r];var o=n[r];if(t!==o)return(e=Array.from(t.parentNode.childNodes)).indexOf(t)-e.indexOf(o)}})}function Ye(e){var t=[];do{t.unshift(e)}while(e=e.parentNode);return t}function Ze(e){return Je(e),!!e.j.length}Be.prototype=Object.create(DocumentFragment.prototype),Be.prototype._renderRoot=function(){this.I=!1,Je(this);for(var e,t=0;t<this.j.length;t++){var n=(e=this.j[t]).__shady.assignedNodes;if(e.__shady.assignedNodes=[],e.__shady.B=[],e.__shady.Y=n)for(var r=0;r<n.length;r++){var o=n[r];o.__shady.S=o.__shady.assignedSlot,o.__shady.assignedSlot===e&&(o.__shady.assignedSlot=null)}}for(e=this.host.firstChild;e;e=e.nextSibling)Ge(this,e);for(t=0;t<this.j.length;t++){if(!(e=this.j[t]).__shady.assignedNodes.length)for(n=e.firstChild;n;n=n.nextSibling)Ge(this,n,e);if((n=(n=e.parentNode).__shady&&n.__shady.root)&&Ze(n)&&n._renderRoot(),$e(this,e.__shady.B,e.__shady.assignedNodes),n=e.__shady.Y){for(r=0;r<n.length;r++)n[r].__shady.S=null;e.__shady.Y=null,n.length>e.__shady.assignedNodes.length&&(e.__shady.T=!0)}e.__shady.T&&(e.__shady.T=!1,Ke(this,e))}for(t=this.j,e=[],n=0;n<t.length;n++)(r=t[n].parentNode).__shady&&r.__shady.root||!(0>e.indexOf(r))||e.push(r);for(t=0;t<e.length;t++){r=(n=e[t])===this?this.host:n,o=[],n=n.childNodes;for(var i=0;i<n.length;i++){var s=n[i];if("slot"==s.localName){s=s.__shady.B;for(var a=0;a<s.length;a++)o.push(s[a])}else o.push(s)}n=void 0,i=z.childNodes(r),s=Fe(o,o.length,i,i.length);for(var l=a=0;a<s.length&&(n=s[a]);a++){for(var d,c=0;c<n.G.length&&(d=n.G[c]);c++)z.parentNode(d)===r&&O.removeChild.call(r,d),i.splice(n.index+l,1);l-=n.J}for(l=0;l<s.length&&(n=s[l]);l++)for(a=i[n.index],c=n.index;c<n.index+n.J;c++)d=o[c],O.insertBefore.call(r,d,a),i.splice(c,0,d)}},Be.prototype.addEventListener=function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.P=this,this.host.addEventListener(e,t,n)},Be.prototype.removeEventListener=function(e,t,n){"object"!=typeof n&&(n={capture:!!n}),n.P=this,this.host.removeEventListener(e,t,n)},Be.prototype.getElementById=function(e){return ve(this,function(t){return t.id==e},function(e){return!!e})[0]||null};var Qe=Be.prototype;function et(e){var t=e.getRootNode();return u(t)&&Ue(t),e.__shady&&e.__shady.assignedSlot||null}ae(Qe,oe,!0),ae(Qe,se,!0);var tt={addEventListener:De.bind(window),removeEventListener:Re.bind(window)},nt={addEventListener:De,removeEventListener:Re,appendChild:function(e){return fe(this,e)},insertBefore:function(e,t){return fe(this,e,t)},removeChild:function(e){return pe(this,e)},replaceChild:function(e,t){return fe(this,e,t),pe(this,t),e},cloneNode:function(e){if("template"==this.localName)var t=O.cloneNode.call(this,e);else if(t=O.cloneNode.call(this,!1),e){e=this.childNodes;for(var n,r=0;r<e.length;r++)n=e[r].cloneNode(!0),t.appendChild(n)}return t},getRootNode:function(){return function e(t){if(t&&t.nodeType){t.__shady=t.__shady||{};var n=t.__shady.V;return void 0===n&&(n=u(t)?t:(n=t.parentNode)?e(n):t,O.contains.call(document.documentElement,t)&&(t.__shady.V=n)),n}}(this)},contains:function(e){return w(this,e)},get isConnected(){var e=this.ownerDocument;if(N&&O.contains.call(e,this)||e.documentElement&&O.contains.call(e.documentElement,this))return!0;for(e=this;e&&!(e instanceof Document);)e=e.parentNode||(e instanceof Be?e.host:void 0);return!!(e&&e instanceof Document)},dispatchEvent:function(e){return x(),O.dispatchEvent.call(this,e)}},rt={get assignedSlot(){return et(this)}},ot={querySelector:function(e){return ve(this,function(t){return p.call(t,e)},function(e){return!!e})[0]||null},querySelectorAll:function(e){return ve(this,function(t){return p.call(t,e)})}},it={assignedNodes:function(e){if("slot"===this.localName){var t=this.getRootNode();return u(t)&&Ue(t),this.__shady&&(e&&e.flatten?this.__shady.B:this.__shady.assignedNodes)||[]}}},st=m({setAttribute:function(e,t){be(this,e,t)},removeAttribute:function(e){O.removeAttribute.call(this,e),me(this,e)},attachShadow:function(e){if(!this)throw"Must provide a host.";if(!e)throw"Not enough arguments.";return new Be(qe,this,e)},get slot(){return this.getAttribute("slot")},set slot(e){be(this,"slot",e)},get assignedSlot(){return et(this)}},ot,it);Object.defineProperties(st,ie);var at=m({importNode:function(e,t){return function e(t,n){if(t.ownerDocument!==document)return O.importNode.call(document,t,n);var r=O.importNode.call(document,t,!1);if(n){t=t.childNodes,n=0;for(var o;n<t.length;n++)o=e(t[n],!0),r.appendChild(o)}return r}(e,t)},getElementById:function(e){return ve(this,function(t){return t.id==e},function(e){return!!e})[0]||null}},ot);Object.defineProperties(at,{_activeElement:se.activeElement});var lt=HTMLElement.prototype.blur,dt=m({blur:function(){var e=this.__shady&&this.__shady.root;(e=e&&e.activeElement)?e.blur():lt.call(this)}});function ct(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i.value?e[o]=i.value:Object.defineProperty(e,o,i)}}if(l.aa){var ut={inUse:l.aa,patch:function(e){return e},isShadyRoot:u,enqueue:C,flush:x,settings:l,filterMutations:function(e,t){var n=t.getRootNode();return e.map(function(e){var t=n===e.target.getRootNode();if(t&&e.addedNodes){if((t=Array.from(e.addedNodes).filter(function(e){return n===e.getRootNode()})).length)return e=Object.create(e),Object.defineProperty(e,"addedNodes",{value:t,configurable:!0}),e}else if(t)return e}).filter(function(e){return e})},observeChildren:function(e,t){e.__shady=e.__shady||{},e.__shady.F||(e.__shady.F=new T),e.__shady.F.K.add(t);var n=e.__shady.F;return{ja:t,ma:n,la:e,takeRecords:function(){return n.takeRecords()}}},unobserveChildren:function(e){var t=e&&e.ma;t&&(t.K.delete(e.ja),t.K.size||(e.la.__shady.F=null))},nativeMethods:O,nativeTree:z};window.ShadyDOM=ut,window.Event=ke,window.CustomEvent=Pe,window.MouseEvent=Ie,function(){for(var e in Te)window.addEventListener(e,function(e){e.__target||(je(e),Le(e))},!0)}();var ht=window.customElements&&window.customElements.nativeHTMLElement||HTMLElement;ct(window.Node.prototype,nt),ct(window.Window.prototype,tt),ct(window.Text.prototype,rt),ct(window.DocumentFragment.prototype,ot),ct(window.Element.prototype,st),ct(window.Document.prototype,at),window.HTMLSlotElement&&ct(window.HTMLSlotElement.prototype,it),ct(ht.prototype,dt),l.D&&(le(window.Node.prototype),le(window.Text.prototype),le(window.DocumentFragment.prototype),le(window.Element.prototype),le(ht.prototype),le(window.Document.prototype),window.HTMLSlotElement&&le(window.HTMLSlotElement.prototype)),window.ShadowRoot=Be}function ft(){this.end=this.start=0,this.rules=this.parent=this.previous=null,this.cssText=this.parsedCssText="",this.atRule=!1,this.type=0,this.parsedSelector=this.selector=this.keyframesName=""}function pt(e){var t=yt,n=e=e.replace(Nt,"").replace(wt,""),r=new ft;r.start=0,r.end=n.length;for(var o=r,i=0,s=n.length;i<s;i++)if("{"===n[i]){o.rules||(o.rules=[]);var a=o,l=a.rules[a.rules.length-1]||null;(o=new ft).start=i+1,o.parent=a,o.previous=l,a.rules.push(o)}else"}"===n[i]&&(o.end=i+1,o=o.parent||r);return t(r,e)}function yt(e,t){var n=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=n.trim(),e.parent&&(n=(n=(n=function(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,function(e,t){for(t=6-(e=t).length;t--;)e="0"+e;return"\\"+e})}(n=t.substring(e.previous?e.previous.end:e.parent.start,e.start-1))).replace(Ot," ")).substring(n.lastIndexOf(";")+1),n=e.parsedSelector=e.selector=n.trim(),e.atRule=0===n.indexOf("@"),e.atRule?0===n.indexOf("@media")?e.type=gt:n.match(Tt)&&(e.type=vt,e.keyframesName=e.selector.split(Ot).pop()):e.type=0===n.indexOf("--")?bt:_t),n=e.rules)for(var r,o=0,i=n.length;o<i&&(r=n[o]);o++)yt(r,t);return e}var mt,_t=1,vt=7,gt=4,bt=1e3,Nt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,wt=/@import[^;]*;/gim,St=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Et=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Ct=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,xt=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Tt=/^@[^\s]*keyframes/,Ot=/\s+/g,At=!(window.ShadyDOM&&window.ShadyDOM.inUse);function Lt(e){mt=(!e||!e.shimcssproperties)&&(At||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?mt=window.ShadyCSS.nativeCss:window.ShadyCSS?(Lt(window.ShadyCSS),window.ShadyCSS=void 0):Lt(window.WebComponents&&window.WebComponents.flags);var Mt=mt,Dt=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Rt=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,jt=/(--[\w-]+)\s*([:,;)]|$)/gi,kt=/(animation\s*:)|(animation-name\s*:)/,Pt=/@media\s(.*)/,It=/\{[^}]*\}/g,Ht=new Set;function Ft(e,t){return e?("string"==typeof e&&(e=pt(e)),t&&Bt(e,t),function e(t,n,r){r=void 0===r?"":r;var o="";if(t.cssText||t.rules){var i,s=t.rules;if((i=s)&&(i=!((i=s[0])&&i.selector&&0===i.selector.indexOf("--"))),i){i=0;for(var a,l=s.length;i<l&&(a=s[i]);i++)o=e(a,n,o)}else n=n?t.cssText:(n=(n=t.cssText).replace(St,"").replace(Et,"")).replace(Ct,"").replace(xt,""),(o=n.trim())&&(o=" "+o+"\n")}return o&&(t.selector&&(r+=t.selector+" {\n"),r+=o,t.selector&&(r+="}\n\n")),r}(e,Mt)):""}function Vt(e){return!e.__cssRules&&e.textContent&&(e.__cssRules=pt(e.textContent)),e.__cssRules||null}function qt(e){return!!e.parent&&e.parent.type===vt}function Bt(e,t,n,r){if(e){var o=!1,i=e.type;if(r&&i===gt){var s=e.selector.match(Pt);s&&(window.matchMedia(s[1]).matches||(o=!0))}if(i===_t?t(e):n&&i===vt?n(e):i===bt&&(o=!0),(e=e.rules)&&!o){o=0,i=e.length;for(var a;o<i&&(a=e[o]);o++)Bt(a,t,n,r)}}}function Wt(e,t,n,r){var o=document.createElement("style");return t&&o.setAttribute("scope",t),o.textContent=e,Gt(o,n,r),o}var Ut=null;function Gt(e,t,n){(t=t||document.head).insertBefore(e,n&&n.nextSibling||t.firstChild),Ut?e.compareDocumentPosition(Ut)===Node.DOCUMENT_POSITION_PRECEDING&&(Ut=e):Ut=e}function $t(e,t){At?e.setAttribute("class",t):window.ShadyDOM.nativeMethods.setAttribute.call(e,"class",t)}function Kt(e){var t=e.localName,n="";return t?-1<t.indexOf("-")||(n=t,t=e.getAttribute&&e.getAttribute("is")||""):(t=e.is,n=e.extends),{is:t,H:n}}function Jt(){}function Xt(e,t,n){var r=bn;e.__styleScoped?e.__styleScoped=null:function e(t,n,r,o){n.nodeType===Node.ELEMENT_NODE&&zt(n,r,o);if(n="template"===n.localName?(n.content||n.La).childNodes:n.children||n.childNodes)for(var i=0;i<n.length;i++)e(t,n[i],r,o)}(r,e,t||"",n)}function zt(e,t,n){if(t)if(e.classList)n?(e.classList.remove("style-scope"),e.classList.remove(t)):(e.classList.add("style-scope"),e.classList.add(t));else if(e.getAttribute){var r=e.getAttribute(vn);n?r&&$t(e,t=r.replace("style-scope","").replace(t,"")):$t(e,(r?r+" ":"")+"style-scope "+t)}}function Yt(e,t,n){var r=bn,o=e.__cssBuild;return At||"shady"===o?t=Ft(t,n):t=function(e,t,n,r,o){var i=Zt(n,r);return n=n?mn+n:"",Ft(t,function(t){t.c||(t.selector=t.i=Qt(e,t,e.b,n,i),t.c=!0),o&&o(t,n,i)})}(r,t,(e=Kt(e)).is,e.H,n)+"\n\n",t.trim()}function Zt(e,t){return t?"[is="+e+"]":e}function Qt(e,t,n,r,o){var i=t.selector.split(sn);if(!qt(t)){t=0;for(var s,a=i.length;t<a&&(s=i[t]);t++)i[t]=n.call(e,s,r,o)}return i.join(sn)}function en(e){return e.replace(rn,function(e,t,n){return-1<n.indexOf("+")?n=n.replace(/\+/g,"___"):-1<n.indexOf("___")&&(n=n.replace(/___/g,"+")),":"+t+"("+n+")"})}function tn(e,t){return(e=e.split(_n))[0]+=t,e.join(_n)}function nn(e){e.selector===cn&&(e.selector="html")}Jt.prototype.b=function(e,t,n){var r=!1;e=e.trim();var o=rn.test(e);return o&&(e=en(e=e.replace(rn,function(e,t,n){return":"+t+"("+n.replace(/\s/g,"")+")"}))),e=(e=e.replace(hn,dn+" $1")).replace(an,function(e,o,i){return r||(e=function(e,t,n,r){var o=e.indexOf(un);if(0<=e.indexOf(dn)?e=function(e,t){var n=e.match(fn);return(n=n&&n[2].trim()||"")?n[0].match(ln)?e.replace(fn,function(e,n,r){return t+r}):n.split(ln)[0]===t?n:gn:e.replace(dn,t)}(e,r):0!==o&&(e=n?tn(e,n):e),n=!1,0<=o&&(t="",n=!0),n){var i=!0;n&&(e=e.replace(pn,function(e,t){return" > "+t}))}return{value:e=e.replace(yn,function(e,t,n){return'[dir="'+n+'"] '+t+", "+t+'[dir="'+n+'"]'}),qa:t,stop:i}}(i,o,t,n),r=r||e.stop,o=e.qa,i=e.value),o+i}),o&&(e=en(e)),e},Jt.prototype.c=function(e){return e.match(un)?this.b(e,on):tn(e.trim(),on)},t.Object.defineProperties(Jt.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var rn=/:(nth[-\w]+)\(([^)]+)\)/,on=":not(.style-scope)",sn=",",an=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ln=/[[.:#*]/,dn=":host",cn=":root",un="::slotted",hn=new RegExp("^("+un+")"),fn=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,pn=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,yn=/(.*):dir\((?:(ltr|rtl))\)/,mn=".",_n=":",vn="class",gn="should_not_match",bn=new Jt;function Nn(e,t,n,r){this.o=e||null,this.b=t||null,this.U=n||[],this.w=null,this.H=r||"",this.a=this.l=this.s=null}function wn(e){return e?e.__styleInfo:null}function Sn(e,t){return e.__styleInfo=t}Nn.prototype.c=function(){return this.o},Nn.prototype._getStyleRules=Nn.prototype.c;var En,Cn=window.Element.prototype;En=Cn.matches||Cn.matchesSelector||Cn.mozMatchesSelector||Cn.msMatchesSelector||Cn.oMatchesSelector||Cn.webkitMatchesSelector;var xn=navigator.userAgent.match("Trident");function Tn(){}function On(e){if(!e.f){var t={},n={};An(e,n)&&(t.m=n,e.rules=null),t.cssText=e.parsedCssText.replace(It,"").replace(Dt,""),e.f=t}}function An(e,t){var n=e.f;if(!n){n=e.parsedCssText;for(var r;e=Dt.exec(n);)"inherit"===(r=(e[2]||e[3]).trim())&&"unset"===r||(t[e[1].trim()]=r),r=!0;return r}if(n.m)return Object.assign(t,n.m),!0}function Ln(e,t,n){return t&&(t=0<=t.indexOf(";")?Mn(e,t,n):function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");e:{for(var o=0,i=r+3,s=t.length;i<s;i++)if("("===t[i])o++;else if(")"===t[i]&&0==--o)break e;i=-1}return o=t.substring(r+4,i),r=t.substring(0,r),t=e(t.substring(i+1),n),-1===(i=o.indexOf(","))?n(r,o.trim(),"",t):n(r,o.substring(0,i).trim(),o.substring(i+1).trim(),t)}(t,function(t,r,o,i){return r?((r=Ln(e,n[r],n))&&"initial"!==r?"apply-shim-inherit"===r&&(r="inherit"):r=Ln(e,n[o]||o,n)||o,t+(r||"")+i):t+i})),t&&t.trim()||""}function Mn(e,t,n){t=t.split(";");for(var r,o,i=0;i<t.length;i++)if(r=t[i]){if(Rt.lastIndex=0,o=Rt.exec(r))r=Ln(e,n[o[1]],n);else if(-1!==(o=r.indexOf(":"))){var s=r.substring(o);s=Ln(e,s=s.trim(),n)||s,r=r.substring(0,o)+s}t[i]=r&&r.lastIndexOf(";")===r.length-1?r.slice(0,-1):r||""}return t.join(";")}function Dn(e,t){var n={},r={},o=t&&t.__cssBuild;return Bt(t,function(t){!function(e,t,n,r){if(t.f||On(t),t.f.m){var o=Kt(e);e=o.is,o=o.H,o=e?Zt(e,o):"html";var i=t.parsedSelector,s=":host > *"===i||"html"===i,a=0===i.indexOf(":host")&&!s;"shady"===n&&(a=!(s=i===o+" > *."+o||-1!==i.indexOf("html"))&&0===i.indexOf(o)),"shadow"===n&&(s=":host > *"===i||"html"===i,a=a&&!s),(s||a)&&(n=o,a&&(At&&!t.i&&(t.i=Qt(bn,t,bn.b,e?mn+e:"",o)),n=t.i||o),r({Da:n,wa:a,Ma:s}))}}(e,t,o,function(o){En.call(e.h||e,o.Da)&&(o.wa?An(t,n):An(t,r))})},null,!0),{Ca:r,ua:n}}function Rn(e,t,n,r){var o=Kt(t),i=Zt(o.is,o.H),s=new RegExp("(?:^|[^.#[:])"+(t.extends?"\\"+i.slice(0,-1)+"\\]":i)+"($|[.:[\\s>+~])"),a=function(e,t){e=e.b;var n={};if(!At&&e)for(var r=0,o=e[r];r<e.length;o=e[++r]){var i=o,s=t;i.h=new RegExp("\\b"+i.keyframesName+"(?!\\B|-)","g"),i.a=i.keyframesName+"-"+s,i.i=i.i||i.selector,i.selector=i.i.replace(i.keyframesName,i.a),n[o.keyframesName]=jn(o)}return n}(o=wn(t).o,r);return Yt(t,o,function(t){var o="";if(t.f||On(t),t.f.cssText&&(o=Mn(e,t.f.cssText,n)),t.cssText=o,!At&&!qt(t)&&t.cssText){var l=o=t.cssText;if(null==t.$&&(t.$=kt.test(o)),t.$)if(null==t.L)for(var d in t.L=[],a)o!==(l=(l=a[d])(o))&&(o=l,t.L.push(d));else{for(d=0;d<t.L.length;++d)o=(l=a[t.L[d]])(o);l=o}t.cssText=l,t.i=t.i||t.selector,o="."+r,l=0;for(var c,u=(d=t.i.split(",")).length;l<u&&(c=d[l]);l++)d[l]=c.match(s)?c.replace(i,o):o+" "+c;t.selector=d.join(",")}})}function jn(e){return function(t){return t.replace(e.h,e.a)}}function kn(e,t){var n=Pn,r=Vt(e);e.textContent=Ft(r,function(e){var r=e.cssText=e.parsedCssText;e.f&&e.f.cssText&&(r=r.replace(St,"").replace(Et,""),e.cssText=Mn(n,r,t))})}t.Object.defineProperties(Tn.prototype,{a:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Pn=new Tn,In={},Hn=window.customElements;if(Hn&&!At){var Fn=Hn.define;Hn.define=function(e,t,n){var r=document.createComment(" Shady DOM styles for "+e+" "),o=document.head;return o.insertBefore(r,(Ut?Ut.nextSibling:null)||o.firstChild),Ut=r,In[e]=r,Fn.call(Hn,e,t,n)}}function Vn(){this.cache={}}function qn(){}function Bn(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.target!==document.documentElement&&n.target!==document.head)for(var r=0;r<n.addedNodes.length;r++){var o=n.addedNodes[r];if(o.nodeType===Node.ELEMENT_NODE){var i=o.getRootNode(),s=o,a=[];if(s.classList?a=Array.from(s.classList):s instanceof window.SVGElement&&s.hasAttribute("class")&&(a=s.getAttribute("class").split(/\s+/)),(s=-1<(a=(s=a).indexOf(bn.a))?s[a+1]:"")&&i===o.ownerDocument)Xt(o,s,!0);else if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(i=i.host))if(s===(i=Kt(i).is))for(o=window.ShadyDOM.nativeMethods.querySelectorAll.call(o,":not(."+bn.a+")"),i=0;i<o.length;i++)zt(o[i],s);else s&&Xt(o,s,!0),Xt(o,i)}}}}if(Vn.prototype.store=function(e,t,n,r){var o=this.cache[e]||[];o.push({m:t,styleElement:n,l:r}),100<o.length&&o.shift(),this.cache[e]=o},Vn.prototype.fetch=function(e,t,n){if(e=this.cache[e])for(var r=e.length-1;0<=r;r--){var o,i=e[r];e:{for(o=0;o<n.length;o++){var s=n[o];if(i.m[s]!==t[s]){o=!1;break e}}o=!0}if(o)return i}},!At){var Wn=new MutationObserver(Bn),Un=function(e){Wn.observe(e,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Un(document);else{var Gn=function(){Un(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Gn):requestAnimationFrame(function(){if("loading"===document.readyState){var e=function(){Gn(),document.removeEventListener("readystatechange",e)};document.addEventListener("readystatechange",e)}else Gn()})}qn=function(){Bn(Wn.takeRecords())}}var $n=qn,Kn={},Jn=Promise.resolve();function Xn(e){(e=Kn[e])&&(e._applyShimCurrentVersion=e._applyShimCurrentVersion||0,e._applyShimValidatingVersion=e._applyShimValidatingVersion||0,e._applyShimNextVersion=(e._applyShimNextVersion||0)+1)}function zn(e){return e._applyShimCurrentVersion===e._applyShimNextVersion}var Yn,Zn=null,Qn=window.HTMLImports&&window.HTMLImports.whenReady||null;var er=new Vn;function tr(){var e=this;this.C={},this.c=document.documentElement;var t=new ft;t.rules=[],this.h=Sn(this.c,new Nn(t)),this.v=!1,this.b=this.a=null,function(e){requestAnimationFrame(function(){Qn?Qn(e):(Zn||(Zn=new Promise(function(e){Yn=e}),"complete"===document.readyState?Yn():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&Yn()})),Zn.then(function(){e&&e()}))})}(function(){nr(e)})}function nr(e){!e.a&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(e.a=window.ShadyCSS.ApplyShim,e.a.invalidCallback=Xn),function(e){!e.b&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(e.b=window.ShadyCSS.CustomStyleInterface,e.b.transformCallback=function(t){e.ca(t)},e.b.validateCallback=function(){requestAnimationFrame(function(){(e.b.enqueued||e.v)&&e.u()})})}(e)}function rr(e,t){return(t=t.getRootNode().host)?wn(t)?t:rr(e,t):e.c}function or(e,t,n){var r=wn(e=rr(e,t));e=Object.create(r.s||null);var o=Dn(t,n.o);for(var i in t=function(e,t){var n={},r=[];return Bt(e,function(e){e.f||On(e);var o=e.i||e.parsedSelector;t&&e.f.m&&o&&En.call(t,o)&&(An(e,n),e=e.index,o=parseInt(e/32,10),r[o]=(r[o]||0)|1<<e%32)},null,!0),{m:n,key:r}}(r.o,t).m,Object.assign(e,o.ua,t,o.Ca),t=n.w)((o=t[i])||0===o)&&(e[i]=o);for(i=Pn,t=Object.getOwnPropertyNames(e),o=0;o<t.length;o++)e[r=t[o]]=Ln(i,e[r],e);n.s=e}(e=tr.prototype).da=function(){$n()},e.sa=function(e){return Vt(e)},e.Fa=function(e){return Ft(e)},e.prepareTemplate=function(e,t,n){if(!e.b){e.b=!0,e.name=t,e.extends=n,Kn[t]=e;for(var r=(r=e.content.querySelector("style"))&&r.getAttribute("css-build")||"",o=[],i=e.content.querySelectorAll("style"),s=0;s<i.length;s++){var a=i[s];if(a.hasAttribute("shady-unscoped")){if(!At){var l=a.textContent;Ht.has(l)||(Ht.add(l),l=a.cloneNode(!0),document.head.appendChild(l)),a.parentNode.removeChild(a)}}else o.push(a.textContent),a.parentNode.removeChild(a)}o=o.join("").trim(),n={is:t,extends:n,Ja:r},At||Xt(e.content,t),nr(this),i=Rt.test(o)||Dt.test(o),Rt.lastIndex=0,Dt.lastIndex=0,o=pt(o),i&&Mt&&this.a&&this.a.transformRules(o,t),e._styleAst=o,e.c=r,r=[],Mt||(r=function(e){var t={},n=[],r=0;for(var o in Bt(e,function(e){On(e),e.index=r++,e=e.f.cssText;for(var n;n=jt.exec(e);){var o=n[1];":"!==n[2]&&(t[o]=!0)}},function(e){n.push(e)}),e.b=n,e=[],t)e.push(o);return e}(e._styleAst)),r.length&&!Mt||(o=At?e.content:null,t=In[t],t=(i=Yt(n,e._styleAst)).length?Wt(i,n.is,o,t):void 0,e.Z=t),e.na=r}},e.u=function(){if(nr(this),this.b){var e=this.b.processStyles();if(this.b.enqueued){if(Mt)for(var t=0;t<e.length;t++){var n=this.b.getStyleForCustomStyle(e[t]);if(n&&Mt&&this.a){var r=Vt(n);nr(this),this.a.transformRules(r),n.textContent=Ft(r)}}else for(or(this,this.c,this.h),t=0;t<e.length;t++)(n=this.b.getStyleForCustomStyle(e[t]))&&kn(n,this.h.s);this.b.enqueued=!1,this.v&&!Mt&&this.styleDocument()}}},e.styleElement=function(e,t){var n=Kt(e).is,r=wn(e);if(!r){var o=Kt(e);r=o.is,o=o.H;var i=In[r];if(r=Kn[r])var s=r._styleAst,a=r.na;r=Sn(e,new Nn(s,i,a,o))}if(e!==this.c&&(this.v=!0),t&&(r.w=r.w||{},Object.assign(r.w,t)),Mt){if(r.w)for(var l in t=r.w)null===l?e.style.removeProperty(l):e.style.setProperty(l,t[l]);((l=Kn[n])||e===this.c)&&l&&l.Z&&!zn(l)&&((zn(l)||l._applyShimValidatingVersion!==l._applyShimNextVersion)&&(nr(this),this.a&&this.a.transformRules(l._styleAst,n),l.Z.textContent=Yt(e,r.o),function(e){e._applyShimValidatingVersion=e._applyShimNextVersion,e.a||(e.a=!0,Jn.then(function(){e._applyShimCurrentVersion=e._applyShimNextVersion,e.a=!1}))}(l)),At&&(n=e.shadowRoot)&&(n.querySelector("style").textContent=Yt(e,r.o)),r.o=l._styleAst)}else if(or(this,e,r),r.U&&r.U.length){n=r,l=Kt(e).is,r=(t=er.fetch(l,n.s,n.U))?t.styleElement:null,s=n.l,(a=t&&t.l)||(a=l+"-"+(a=this.C[l]=(this.C[l]||0)+1)),n.l=a,a=n.l,o=Pn,o=r?r.textContent||"":Rn(o,e,n.s,a);var d=(i=wn(e)).a;d&&!At&&d!==r&&(d._useCount--,0>=d._useCount&&d.parentNode&&d.parentNode.removeChild(d)),At?i.a?(i.a.textContent=o,r=i.a):o&&(r=Wt(o,a,e.shadowRoot,i.b)):r?r.parentNode||(xn&&-1<o.indexOf("@media")&&(r.textContent=o),Gt(r,null,i.b)):o&&(r=Wt(o,a,null,i.b)),r&&(r._useCount=r._useCount||0,i.a!=r&&r._useCount++,i.a=r),a=r,At||(r=n.l,i=o=e.getAttribute("class")||"",s&&(i=o.replace(new RegExp("\\s*x-scope\\s*"+s+"\\s*","g")," ")),o!==(i+=(i?" ":"")+"x-scope "+r)&&$t(e,i)),t||er.store(l,n.s,a,n.l)}},e.styleDocument=function(e){this.styleSubtree(this.c,e)},e.styleSubtree=function(e,t){var n=e.shadowRoot;if((n||e===this.c)&&this.styleElement(e,t),t=n&&(n.children||n.childNodes))for(e=0;e<t.length;e++)this.styleSubtree(t[e]);else if(e=e.children||e.childNodes)for(t=0;t<e.length;t++)this.styleSubtree(e[t])},e.ca=function(e){var t=this,n=Vt(e);Bt(n,function(e){if(At)nn(e);else{var n=bn;e.selector=e.parsedSelector,nn(e),e.selector=e.i=Qt(n,e,n.c,void 0,void 0)}Mt&&(nr(t),t.a&&t.a.transformRule(e))}),Mt?e.textContent=Ft(n):this.h.o.rules.push(n)},e.getComputedStyleValue=function(e,t){var n;return Mt||(n=(wn(e)||wn(rr(this,e))).s[t]),(n=n||window.getComputedStyle(e).getPropertyValue(t))?n.trim():""},e.Ea=function(e,t){var n=e.getRootNode();if(t=t?t.split(/\s/):[],!(n=n.host&&n.host.localName)){var r=e.getAttribute("class");if(r){r=r.split(/\s/);for(var o=0;o<r.length;o++)if(r[o]===bn.a){n=r[o+1];break}}}n&&t.push(bn.a,n),Mt||(n=wn(e))&&n.l&&t.push(Pn.a,n.l),$t(e,t.join(" "))},e.oa=function(e){return wn(e)},tr.prototype.flush=tr.prototype.da,tr.prototype.prepareTemplate=tr.prototype.prepareTemplate,tr.prototype.styleElement=tr.prototype.styleElement,tr.prototype.styleDocument=tr.prototype.styleDocument,tr.prototype.styleSubtree=tr.prototype.styleSubtree,tr.prototype.getComputedStyleValue=tr.prototype.getComputedStyleValue,tr.prototype.setElementClass=tr.prototype.Ea,tr.prototype._styleInfoForNode=tr.prototype.oa,tr.prototype.transformCustomStyleForDocument=tr.prototype.ca,tr.prototype.getStyleAst=tr.prototype.sa,tr.prototype.styleAstToString=tr.prototype.Fa,tr.prototype.flushCustomStyles=tr.prototype.u,Object.defineProperties(tr.prototype,{nativeShadow:{get:function(){return At}},nativeCss:{get:function(){return Mt}}});var ir,sr,ar=new tr;window.ShadyCSS&&(ir=window.ShadyCSS.ApplyShim,sr=window.ShadyCSS.CustomStyleInterface),window.ShadyCSS={ScopingShim:ar,prepareTemplate:function(e,t,n){ar.u(),ar.prepareTemplate(e,t,n)},styleSubtree:function(e,t){ar.u(),ar.styleSubtree(e,t)},styleElement:function(e){ar.u(),ar.styleElement(e)},styleDocument:function(e){ar.u(),ar.styleDocument(e)},getComputedStyleValue:function(e,t){return ar.getComputedStyleValue(e,t)},nativeCss:Mt,nativeShadow:At},ir&&(window.ShadyCSS.ApplyShim=ir),sr&&(window.ShadyCSS.CustomStyleInterface=sr);var lr=window.customElements,dr=window.HTMLImports,cr=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},lr&&lr.polyfillWrapFlushCallback){var ur,hr=function(){if(ur){cr.pa&&cr.pa(window.document);var e=ur;return ur=null,e(),!0}},fr=dr.whenReady;lr.polyfillWrapFlushCallback(function(e){ur=e,fr(hr)}),dr.whenReady=function(e){fr(function(){hr()?dr.whenReady(e):e()})}}dr.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var pr=document.createElement("style");pr.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var yr=document.querySelector("head");yr.insertBefore(pr,yr.firstChild)}).call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L18

Insecure DOM Manipulation (XSS) in webcomponents-hi.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi.js:18
Security Score:
74 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content,E(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=e.c(c.getAttribute("href"),b),c.removeAttribute("href");var d=0;g(l(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]'),
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in admin-compare-compare.min.js

CWE-79
File Location: media/com_contenthistory/js/admin-compare-compare.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.addEventListener("DOMContentLoaded",function(){function e(e,n){var t=n.nextElementSibling,d="",o=null,r=JsDiff.diffWords(e.innerHTML,n.innerHTML),a=document.createDocumentFragment();r.forEach(function(e){d=e.added?"#a6f3a6":e.removed?"#f8cbcb":"",(o=document.createElement("span")).style.backgroundColor=d,o.style.borderRadius=".2rem",o.appendChild(document.createTextNode(e.value)),a.appendChild(o)}),t.appendChild(a)}for(var n=document.querySelectorAll(".original"),t=0,d=n.length;t<d;t++)e(n[t],n[t].nextElementSibling)});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in indexer.min.js

CWE-79
File Location: media/com_finder/js/indexer.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- Joomla=window.Joomla||{},function(e,r){"use strict";e.finderIndexer=function(){var n=null,t=null,s=null,o=!1,a="&"+r.getElementById("finder-indexer-token").getAttribute("name")+"=1",i=function(r){e.request({url:"index.php?option=com_finder&tmpl=component&format=json&task="+r+a,method:"GET",data:"",perform:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:function(e,r){l(JSON.parse(e))},onError:function(e){m(e)}})},d=function(e){var n=r.getElementById(e);if(n)return n.parentNode.removeChild(n)},l=function(s,a){var l=r.getElementById("finder-progress-header"),m=r.getElementById("finder-progress-message");try{if(null===s)throw a;if(s.error)throw s;s.start&&(n=s.totalItems),t+=s.batchOffset,u(s.header,s.message),t<n?i("indexer.batch"):o||(o=!0,i("indexer.optimize"))}catch(r){d("progress");try{s.error&&(l&&(l.innerText=s.header,l.classList.add("finder-error")),m&&(m.innerHTML=s.message,m.classList.add("finder-error")))}catch(n){""===r&&(r=e.JText._("COM_FINDER_NO_ERROR_RETURNED")),l&&(l.innerText=e.JText._("COM_FINDER_AN_ERROR_HAS_OCCURRED"),l.classList.add("finder-error")),m&&(m.innerHTML=r,m.classList.add("finder-error"))}}return!0},m=function(n){var t=r.getElementById("finder-progress-header"),s=r.getElementById("finder-progress-message");json="object"==typeof n&&n.responseText?n.responseText:null,json=json?JSON.parse(json):null,d("progress"),json&&(json=null!=json.responseText?Json.evaluate(json.responseText,!0):json);var o=json?json.header:e.JText._("COM_FINDER_AN_ERROR_HAS_OCCURRED"),a=json?json.message:e.JText._("COM_FINDER_MESSAGE_RETURNED")+"<br>"+json;t&&(t.innerText=o,t.classList.add("finder-error")),s&&(s.innerHTML=a,s.classList.add("finder-error"))},u=function(e,o){s=t/n*100;var a=r.getElementById("progress-bar"),i=r.getElementById("finder-progress-header"),l=r.getElementById("finder-progress-message");i&&(i.innerText=e),l&&(l.innerHTML=o),a&&(s<100?(a.style.width=s+"%",a.setAttribute("aria-valuenow",s)):(a.classList.remove("bar-success"),a.classList.add("bar-warning"),a.setAttribute("aria-valuemin",100),a.setAttribute("aria-valuemax",200),a.style.width=s+"%",a.setAttribute("aria-valuenow",s)),o===msg&&(d("progress"),window.parent.jQuery("#modal-archive",parent.document).modal("hide")))};t=0,s=0,i("indexer.start")}}(Joomla,document),document.addEventListener("DOMContentLoaded",function(){Indexer=Joomla.finderIndexer()});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L36

Insecure DOM Manipulation (XSS) in edit-images.js

CWE-79
File Location: media/com_media/js/edit-images.js:36
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.getElementById('media-manager-edit-container').innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in caption.min.js

CWE-79
File Location: media/legacy/js/caption.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- Joomla=window.Joomla||{},function(t){t.JCaption=function(t){var e=function(t,e){var n,o,i,a=t.getAttribute("title"),s=t.getAttribute("width")||t.style.width,c=t.getAttribute("align")||t.style.cssFloat||"none",l=document.createElement("p"),d=e.replace(".","_").replace("#","").replace(",","").split(" ");l.innerHTML=a,n=document.createElement("div"),d.forEach(function(t){l.classList.add(t),n.classList.add(t)}),n.classList.add(c),o=n,(i=t).parentNode.insertBefore(o,i),""!==a&&n.appendChild(l),n.style.cssFloat=c,n.style.width=/px/.test(s)?s:s+"px",n.appendChild(t)};!function(t){for(var n=document.querySelectorAll(t),o=0,i=n.length;o<i;o++)e(n[o],t)}(t)},document.addEventListener("DOMContentLoaded",function(){t.getOptions&&"function"==typeof t.getOptions&&t.getOptions("js-image-caption")&&t.getOptions("js-image-caption").selector&&new t.JCaption(t.getOptions("js-image-caption").selector)})}(Joomla);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L171

Insecure DOM Manipulation (XSS) in client.js

CWE-79
File Location: media/plg_installer_webinstaller/js/client.js:171
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- document.querySelector('#uploadform-web-url').innerHTML = install_url;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L74

Insecure DOM Manipulation (XSS) in extensionupdatecheck.js

CWE-79
File Location: media/plg_quickicon_extensionupdate/js/extensionupdatecheck.js:74
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- linkSpan[i].innerHTML = Joomla.JText._('PLG_QUICKICON_EXTENSIONUPDATE_ERROR');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in jupdatecheck.min.js

CWE-79
File Location: media/plg_quickicon_joomlaupdate/js/jupdatecheck.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){"use strict";var e=function(){if(Joomla.getOptions("js-joomla-update")){var e=Joomla.getOptions("js-joomla-update");Joomla.request({url:e.ajaxUrl+"&eid=700&cache_timeout=3600",method:"GET",data:"",perform:!0,onSuccess:function(o,n){var a=document.getElementById("plg_quickicon_joomlaupdate"),t=a.querySelectorAll("span.j-links-link"),l=JSON.parse(o);if(l instanceof Array)if(0===l.length){a.classList.add("success");for(var s=0,r=t.length;s<r;s++)t[s].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE")}else{if(l.shift().version!=e.version){var i={message:[Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND_MESSAGE").replace("%s",'<span class="badge badge-light">'+l.length+"</span>")+'<button class="btn btn-primary" onclick="document.location=\''+e.url+"'\">"+Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND_BUTOON")+"</button>"],error:["info"]};Joomla.renderMessages(i),window.scrollTo(0,0),a.classList.add("danger");for(s=0,r=t.length;s<r;s++)t[s].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND").replace("%s",'<span class="badge badge-light">'+l.length+"</span>")}else for(s=0,r=t.length;s<r;s++)t[s].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE")}else{a.classList.add("danger");for(s=0,r=t.length;s<r;s++)t[s].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_ERROR")}},onError:function(e){var o=document.getElementById("plg_quickicon_joomlaupdate"),n=o.querySelectorAll("span.j-links-link");o.classList.add("danger");for(var a=0,t=n.length;a<t;a++)n[a].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_ERROR")}})}};document.addEventListener("DOMContentLoaded",function(){setTimeout(e,2e3)})}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L612

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:612
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- cell.innerHTML = cs ? "<div unselectable='on'" + classes + ">" + text + "</div>" : text;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L105

Insecure DOM Manipulation (XSS) in passwordstrength.js

CWE-79
File Location: media/system/js/fields/passwordstrength.js:105
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- label.innerHTML = Joomla.JText._('JFIELD_PASSWORD_INDICATE_INCOMPLETE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in validate.min.js

CWE-79
File Location: media/system/js/fields/validate.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- var JFormValidator=function(){"use strict";var e,t,a,r=function(t,a,r){r=""===r||r,e[t]={enabled:r,exec:a}},s=function(e,t,a){"button"!==t.tagName.toLowerCase()&&"undefined"!==t.value&&(!1===e?n(t,a):i(t))},i=function(e){var t,a=e.form.querySelector('label[for="'+e.id+'"]');(e.classList.contains("required")||e.getAttribute("required"))&&(a&&(t=a.querySelector("span.form-control-feedback")));e.classList.remove("form-control-danger"),e.classList.add("form-control-success"),e.parentNode.classList.remove("has-danger"),e.parentNode.classList.add("has-success"),e.setAttribute("aria-invalid","false"),t&&t.parentNode.removeChild(t),a&&a.classList.remove("invalid")},n=function(e,t){var a=e.form.querySelector('label[for="'+e.id+'"]');e.classList.remove("form-control-success"),e.classList.add("form-control-danger"),e.classList.add("invalid"),e.parentNode.classList.remove("has-success"),e.parentNode.classList.add("has-danger"),e.setAttribute("aria-invalid","true");var r,s=e.getAttribute("data-validation-text");if(a&&(r=a.querySelector("span.form-control-feedback")),!r){var i=document.createElement("span");i.classList.add("form-control-feedback"),i.innerHTML=t&&"checkbox"===t?s||Joomla.JText._("JLIB_FORM_FIELD_REQUIRED_CHECK"):t&&"value"===t?s||Joomla.JText._("JLIB_FORM_FIELD_REQUIRED_VALUE"):s||Joomla.JText._("JLIB_FORM_FIELD_INVALID_VALUE"),a&&a.appendChild(i)}a&&a.classList.add("invalid")},o=function(t){var a,r;if("disabled"===t.getAttribute("disabled")||"none"===t.getAttribute("display"))return s(!0,t),!0;if(t.getAttribute("required")||t.classList.contains("required"))if("fieldset"===(a=t.tagName.toLowerCase())&&(t.classList.contains("radio")||t.classList.contains("checkboxes"))){if(!t.querySelector("input:checked").length)return s(!1,t,"checkbox"),!1}else{if("checkbox"===t.getAttribute("type")&&0!==!t.checked.length||"select"===a&&!t.value.length)return s(!1,t,"checkbox"),!1;if(!t.value||t.classList.contains("placeholder"))return s(!1,t,"value"),!1}return r=t.getAttribute("class")&&t.getAttribute("class").match(/validate-([a-zA-Z0-9\_\-]+)/)?t.getAttribute("class").match(/validate-([a-zA-Z0-9\_\-]+)/)[1]:"",t.getAttribute("pattern")&&""!=t.getAttribute("pattern")?t.value.length?(l=new RegExp("^"+t.getAttribute("pattern")+"$").test(t.value),s(l,t,"empty"),l):(s(!1,t),!1):""===r?(s(!0,t),!0):r&&"none"!==r&&e[r]&&t.value&&!0!==e[r].exec(t.value,t)?(s(!1,t,"invalid_value"),!1):(s(!0,t),!0)},l=function(e){var t,r,s,i,n=!0,l=[];for(s=0,i=(t=e.querySelectorAll("input, textarea, select, button")).length;s<i;s++)!1===o(t[s])&&(n=!1,l.push(t[s]));for(var c in a)a.hasOwnProperty(c)&&!0!==a[validator].exec()&&(n=!1);return function(e,t){for(var a=0,r=e.length;a<r;++a)t(e[a],a)}(a,function(e,t){!0!==t.exec()&&(n=!1)}),!n&&l.length>0&&(r={error:[e.getAttribute("data-validation-text")?e.getAttribute("data-validation-text"):Joomla.JText._("JLIB_FORM_CONTAINS_INVALID_FIELDS")]},Joomla.renderMessages(r)),n},c=function(e){for(var a,r=[],s=0,i=(a=e.querySelectorAll("input, textarea, select, button, fieldset")).length;s<i;s++){var n=a[s],c=n.tagName.toLowerCase();["input","textarea","select","fieldset"].indexOf(c)>-1&&n.classList.contains("required")&&(n.setAttribute("required",""),n.setAttribute("aria-required","true")),"input"!==c&&"button"!==c||"submit"!==n.getAttribute("type")&&"image"!==n.getAttribute("type")?"button"===c||"input"===c&&"button"===n.getAttribute("type")||(n.classList.contains("required")&&n.setAttribute("aria-required",!0),"fieldset"!==c&&(n.addEventListener("blur",function(){return o(this)}),n.addEventListener("focus",function(){return(a=(e=this).form.querySelector('label[for="'+e.id+'"]'))&&(t=a.querySelector("span.form-control-feedback")),e.classList.remove("form-control-danger"),e.classList.remove("form-control-success"),e.classList.remove("invalid"),e.classList.add("valid"),e.parentNode.classList.remove("has-danger"),e.parentNode.classList.remove("has-success"),t&&a&&a.removeChild(t),void(a&&a.classList.remove("invalid"));var e,t,a}),n.classList.contains("validate-email")&&t&&n.setAttribute("type","email")),r.push(n)):n.classList.contains("validate")&&n.addEventListener("click",function(){return l(e)})}};return function(){var s;e={},a=a||{},(s=document.createElement("input")).setAttribute("type","email"),t="text"!==s.type,r("username",function(e,t){return!new RegExp("[<|>|\"|'|%|;|(|)|&]","i").test(e)}),r("password",function(e,t){return/^\S[\S ]{2,98}\S$/.test(e)}),r("numeric",function(e,t){return/^(\d|-)?(\d|,)*\.?\d*$/.test(e)}),r("email",function(e,t){return e=punycode.toASCII(e),/^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e)});for(var i=document.querySelectorAll("form"),n=0,o=i.length;n<o;n++)i[n].classList.contains("form-validate")&&c(i[n])}(),{isValid:l,validate:o,setHandler:r,attachToForm:c,custom:a}};document.formvalidator=null,document.addEventListener("DOMContentLoaded",function(){document.formvalidator=new JFormValidator});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-field-permissions-es5.min.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-permissions-es5.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){return function e(t,r,n){function o(i,s){if(!r[i]){if(!t[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var l=new Error("Cannot find module '"+i+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[i]={exports:{}};t[i][0].call(c.exports,function(e){return o(t[i][1][e]||e)},c,c.exports,e,t,r,n)}return r[i].exports}for(var a="function"==typeof require&&require,i=0;i<n.length;i++)o(n[i]);return o}}()({1:[function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();!function(e,t){var r=function(e){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));if(!t)throw new Error("Joomla API is not properly initiated");if(!e.getAttribute("data-uri"))throw new Error("No valid url for validation");return e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,HTMLElement),o(r,[{key:"connectedCallback",value:function(){var e=this,t=[].slice.call(document.querySelectorAll("[data-onchange-task]"));t&&t.forEach(function(t){t.addEventListener("change",function(t){t.preventDefault(),"permissions.apply"==t.target.getAttribute("data-onchange-task")&&e.sendPermissions(t)})})}},{key:"sendPermissions",value:function(e){var r=e.target,o=document.getElementById("icon_"+r.id);o.removeAttribute("class"),o.setAttribute("class","fa fa-spinner fa-spin");var a="not",i=this.getUrlParam("component"),s=this.getUrlParam("extension"),u=this.getUrlParam("option"),l=this.getUrlParam("view"),c=i,f=r.value,m="";document.getElementById("jform_context")&&(m=(m=document.getElementById("jform_context").value).split(".")[0]),"com_config"==u&&0==i&&0==s?a="root.1":0==s&&"component"==l?a=i:m?(a="group"==l?m+".fieldgroup."+this.getUrlParam("id"):m+".field."+this.getUrlParam("id"),c=document.getElementById("jform_title").value):0!=s&&0!=l?(a=s+"."+l+"."+this.getUrlParam("id"),c=document.getElementById("jform_title").value):0==s&&0!=l&&(a=u+"."+l+"."+this.getUrlParam("id"),c=document.getElementById("jform_title").value);var p=r.id.replace("jform_rules_",""),d=p.lastIndexOf("_"),y={comp:a,action:p.substring(0,d),rule:p.substring(d+1),value:f,title:c};t.removeMessages(),t.request({url:this.getAttribute("data-uri"),method:"POST",data:JSON.stringify(y),perform:!0,headers:{"Content-Type":"application/json"},onSuccess:function(e,a){try{e=JSON.parse(e)}catch(e){console.log(e)}if(o.removeAttribute("class"),e.data&&!0===e.data.result){o.setAttribute("class","fa fa-check");var i=r.parentNode.parentNode.nextElementSibling.querySelector("span");i.removeAttribute("class"),i.setAttribute("class",e.data.class),i.innerHTML=e.data.text}"object"===n(e.messages)&&null!==e.messages&&(t.renderMessages(e.messages),e.data&&!0===e.data.result?o.setAttribute("class","fa fa-check"):o.setAttribute("class","fa fa-times"))},onError:function(e){o.removeAttribute("style"),t.renderMessages(t.ajaxErrorsMessages(jqXHR,textStatus,error)),o.setAttribute("class","fa fa-times")}})}},{key:"getUrlParam",value:function(e){for(var t=window.location.search.substring(1).split("&"),r=0;r<t.length;r+=1){var n=t[r].split("=");if(n[0]==e)return n[1]}return!1}}]),r}();e.define("joomla-field-permissions",r)}(customElements,Joomla)},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L238

Insecure DOM Manipulation (XSS) in joomla-field-simple-color-es5.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-simple-color-es5.js:238
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- close.innerHTML = this.textClose;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L240

Insecure DOM Manipulation (XSS) in joomla-field-simple-color.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-simple-color.js:240
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.icon.innerHTML = '<span class="sr-only">' + this.textSelect + '</span>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-field-switcher-es5.min.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-switcher-es5.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){return function t(e,i,n){function s(a,c){if(!i[a]){if(!e[a]){var o="function"==typeof require&&require;if(!c&&o)return o(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=i[a]={exports:{}};e[a][0].call(h.exports,function(t){return s(e[a][1][t]||t)},h,h.exports,t,e,i,n)}return i[a].exports}for(var r="function"==typeof require&&require,a=0;a<n.length;a++)s(n[a]);return s}}()({1:[function(t,e,i){"use strict";var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();!function(t){var e=13,i=32,s=function(t){function s(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return t.inputs=[],t.spans=[],t.inputsContainer="",t.newActive="",t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(s,HTMLElement),n(s,[{key:"type",get:function(){return this.getAttribute("type")},set:function(t){return this.setAttribute("type",t)}},{key:"offText",get:function(){return this.getAttribute("off-text")||"Off"}},{key:"onText",get:function(){return this.getAttribute("on-text")||"On"}}],[{key:"observedAttributes",get:function(){return["type","off-text","on-text"]}}]),n(s,[{key:"connectedCallback",value:function(){var t=this;if(this.inputs=[].slice.call(this.querySelectorAll("input")),2!==this.inputs.length||"radio"!==this.inputs[0].type)throw new Error('`Joomla-switcher` requires two inputs type="checkbox"');this.createMarkup.bind(this)(),this.inputsContainer=this.firstElementChild,this.inputsContainer.setAttribute("role","switch"),this.inputs[1].checked?(this.inputs[1].parentNode.classList.add("active"),this.spans[1].classList.add("active"),this.inputsContainer.setAttribute("aria-label",this.spans[1].innerHTML)):(this.spans[0].classList.add("active"),this.inputsContainer.setAttribute("aria-label",this.spans[0].innerHTML)),this.inputs.forEach(function(e){e.addEventListener("click",t.toggle.bind(t))}),this.inputsContainer.addEventListener("keydown",this.keyEvents.bind(this))}},{key:"disconnectedCallback",value:function(){this.removeEventListener("joomla.switcher.toggle",this.toggle,!0),this.removeEventListener("click",this.switch,!0),this.removeEventListener("keydown",this.keydown,!0)}},{key:"dispatchCustomEvent",value:function(t){var e=new CustomEvent(t,{bubbles:!0,cancelable:!0});e.relatedTarget=this,this.dispatchEvent(e),this.removeEventListener(t,this)}},{key:"createMarkup",value:function(){var t=0,e=document.createElement("span");e.classList.add("switcher"),e.setAttribute("tabindex",0),this.type||this.setAttribute("type","success");var i=document.createElement("span");i.classList.add("switch"),this.inputs.forEach(function(i,n){i.setAttribute("tabindex","-1"),i.checked&&e.setAttribute("aria-checked",!0),e.appendChild(i),1===n&&i.checked&&(t=1)}),e.appendChild(i);var n=document.createElement("span");n.classList.add("switcher-labels");var s=document.createElement("span");s.classList.add("switcher-label-0"),s.innerText=this.offText;var r=document.createElement("span");r.classList.add("switcher-label-1"),r.innerText=this.onText,0===t?s.classList.add("active"):r.classList.add("active"),this.spans.push(s),this.spans.push(r),n.appendChild(s),n.appendChild(r),this.appendChild(e),this.appendChild(n)}},{key:"switch",value:function(){this.spans.forEach(function(t){t.classList.remove("active")}),this.inputsContainer.classList.contains("active")?this.inputsContainer.classList.remove("active"):this.inputsContainer.classList.add("active"),this.inputs.forEach(function(t){t.classList.remove("active")}),1===this.newActive?(this.inputs[this.newActive].classList.add("active"),this.inputs[1].setAttribute("checked",""),this.inputs[0].removeAttribute("checked"),this.inputsContainer.setAttribute("aria-checked",!0),this.inputsContainer.setAttribute("aria-label",this.spans[1].innerHTML),this.dispatchCustomEvent("joomla.switcher.on")):(this.inputs[1].removeAttribute("checked"),this.inputs[0].setAttribute("checked",""),this.inputs[0].classList.add("active"),this.inputsContainer.setAttribute("aria-checked",!1),this.inputsContainer.setAttribute("aria-label",this.spans[0].innerHTML),this.dispatchCustomEvent("joomla.switcher.off")),this.spans[this.newActive].classList.add("active")}},{key:"toggle",value:function(){this.newActive=this.inputs[1].classList.contains("active")?0:1,this.switch.bind(this)()}},{key:"keyEvents",value:function(t){t.keyCode!==e&&t.keyCode!==i||(t.preventDefault(),this.newActive=this.inputs[1].classList.contains("active")?0:1,this.switch.bind(this)())}}]),s}();t.define("joomla-field-switcher",s)}(customElements)},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L102

Insecure DOM Manipulation (XSS) in joomla-field-user-es5.js

CWE-79
File Location: media/system/webcomponents/js/joomla-field-user-es5.js:102
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- this.modalBody.innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in joomla-hidden-mail-es5.min.js

CWE-79
File Location: media/system/webcomponents/js/joomla-hidden-mail-es5.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){return function t(e,r,n){function i(u,a){if(!r[u]){if(!e[u]){var c="function"==typeof require&&require;if(!a&&c)return c(u,!0);if(o)return o(u,!0);var s=new Error("Cannot find module '"+u+"'");throw s.code="MODULE_NOT_FOUND",s}var f=r[u]={exports:{}};e[u][0].call(f.exports,function(t){return i(e[u][1][t]||t)},f,f.exports,t,e,r,n)}return r[u].exports}for(var o="function"==typeof require&&require,u=0;u<n.length;u++)i(n[u]);return i}}()({1:[function(t,e,r){"use strict";var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();customElements.define("joomla-hidden-mail",function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,HTMLElement),n(e,[{key:"connectedCallback",value:function(){var t=void 0,e=this.getAttribute("base")+"/";if("1"===this.getAttribute("is-link")){(t=document.createElement("a")).setAttribute("href","mailto:"+this.b64DecodeUnicode(this.getAttribute("first"))+"@"+this.b64DecodeUnicode(this.getAttribute("last")));for(var r=0,n=this.attributes.length;r<n;++r){var i=this.attributes.item(r).nodeName;if(i){if(["is-link","is-email","first","last","text"].indexOf(i)>-1)continue;var o=this.attributes.item(r).nodeValue;t.setAttribute(i,o)}}}else t=document.createElement("span");if(this.getAttribute("text")){var u=this.b64DecodeUnicode(this.getAttribute("text"));u=u.replace('src="images/','src="'+e+"images/").replace('src="media/','src="'+e+"media/"),t.innerHTML=u}else t.innerText=window.atob(this.getAttribute("first"))+"@"+window.atob(this.getAttribute("last"));this.innerText="",this.appendChild(t)}},{key:"b64DecodeUnicode",value:function(t){return decodeURIComponent(Array.prototype.map.call(atob(t),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}}]),e}())},{}]},{},[1]);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2683

Insecure DOM Manipulation (XSS) in mediaelement-and-player.js

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2683
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- t.slidesContainer.innerHTML += self.innerHTML;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

Insecure DOM Manipulation (XSS) in plugin.min.js

CWE-79
File Location: media/vendor/tinymce/plugins/help/plugin.min.js:1
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- !function(){"use strict";var t,e,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(t){return function(){return t}},o={noop:function(){},noarg:function(t){return function(){return t()}},compose:function(t,e){return function(){return t(e.apply(null,arguments))}},constant:r,identity:function(t){return t},tripleEquals:function(t,e){return t===e},curry:function(t){for(var e=new Array(arguments.length-1),n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];var o=e.concat(n);return t.apply(null,o)}},not:function(t){return function(){return!t.apply(null,arguments)}},die:function(t){return function(){throw new Error(t)}},apply:function(t){return t()},call:function(t){t()},never:r(!1),always:r(!0)},a=o.never,i=o.always,u=function(){return c},c=function(){var t=function(t){return t.isNone()},e=function(t){return t()},n=function(t){return t},r={fold:function(t,e){return t()},is:a,isSome:a,isNone:i,getOr:n,getOrThunk:e,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},or:n,orThunk:e,map:u,ap:u,each:function(){},bind:u,flatten:u,exists:a,forall:i,filter:u,equals:t,equals_:t,toArray:function(){return[]},toString:o.constant("none()")};return Object.freeze&&Object.freeze(r),r}(),l=function(t){var e=function(){return t},n=function(){return o},r=function(e){return e(t)},o={fold:function(e,n){return n(t)},is:function(e){return t===e},isSome:i,isNone:a,getOr:e,getOrThunk:e,getOrDie:e,or:n,orThunk:n,map:function(e){return l(e(t))},ap:function(e){return e.fold(u,function(e){return l(e(t))})},each:function(e){e(t)},bind:r,flatten:e,exists:r,forall:r,filter:function(e){return e(t)?o:c},equals:function(e){return e.is(t)},equals_:function(e,n){return e.fold(a,function(e){return n(t,e)})},toArray:function(){return[t]},toString:function(){return"some("+t+")"}};return o},s={some:l,none:u,from:function(t){return null===t||void 0===t?c:l(t)}},f=void 0===(t=Array.prototype.indexOf)?function(t,e){return d(t,e)}:function(e,n){return t.call(e,n)},m=function(t,e){return f(t,e)>-1},p=function(t,e){for(var n=t.length,r=new Array(n),o=0;o<n;o++){var a=t[o];r[o]=e(a,o,t)}return r},h=function(t,e){for(var n=[],r=0,o=t.length;r<o;r++){var a=t[r];e(a,r,t)&&n.push(a)}return n},d=function(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n]===e)return n;return-1},y=(Array.prototype.push,Array.prototype.slice,p),g=h,k=function(t,e){for(var n=0,r=t.length;n<r;n++){var o=t[n];if(e(o,n,t))return s.some(o)}return s.none()},v=m,b=tinymce.util.Tools.resolve("tinymce.util.I18n"),x=tinymce.util.Tools.resolve("tinymce.Env"),w=x.mac?"⌘":"Ctrl",C=x.mac?"Ctrl + Alt":"Shift + Alt",A={shortcuts:[{shortcut:w+" + B",action:"Bold"},{shortcut:w+" + I",action:"Italic"},{shortcut:w+" + U",action:"Underline"},{shortcut:w+" + A",action:"Select all"},{shortcut:w+" + Y or "+w+" + Shift + Z",action:"Redo"},{shortcut:w+" + Z",action:"Undo"},{shortcut:C+" + 1",action:"Header 1"},{shortcut:C+" + 2",action:"Header 2"},{shortcut:C+" + 3",action:"Header 3"},{shortcut:C+" + 4",action:"Header 4"},{shortcut:C+" + 5",action:"Header 5"},{shortcut:C+" + 6",action:"Header 6"},{shortcut:C+" + 7",action:"Paragraph"},{shortcut:C+" + 8",action:"Div"},{shortcut:C+" + 9",action:"Address"},{shortcut:"Alt + F9",action:"Focus to menubar"},{shortcut:"Alt + F10",action:"Focus to toolbar"},{shortcut:"Alt + F11",action:"Focus to element path"},{shortcut:"Ctrl + Shift + P > Ctrl + Shift + P",action:"Focus to contextual toolbar"},{shortcut:w+" + K",action:"Insert link (if link plugin activated)"},{shortcut:w+" + S",action:"Save (if save plugin activated)"},{shortcut:w+" + F",action:"Find (if searchreplace plugin activated)"}]},S=function(){var t=y(A.shortcuts,function(t){return'<tr data-mce-tabstop="1" tabindex="-1" '+function(t){return'aria-label="Action: '+t.action+", Shortcut: "+t.shortcut.replace(/Ctrl/g,"Control")+'"'}(t)+"><td>"+b.translate(t.action)+"</td><td>"+t.shortcut+"</td></tr>"}).join("");return{title:"Handy Shortcuts",type:"container",style:"overflow-y: auto; overflow-x: hidden; max-height: 250px",items:[{type:"container",html:'<div><table class="mce-table-striped"><thead><th>'+b.translate("Action")+"</th><th>"+b.translate("Shortcut")+"</th></thead>"+t+"</table></div>"}]}},T=void 0===(e=Object.keys)?function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}:e,P=function(t,e){for(var n=T(t),r=0,o=n.length;r<o;r++){var a=n[r];e(t[a],a,t)}},_=function(t,e){var n={};return P(t,function(r,o){var a=e(r,o,t);n[a.k]=a.v}),n},H=function(t,e){var n=[];return P(t,function(t,r){n.push(e(t,r))}),n},O=function(t){return H(t,function(t){return t})},M={bifilter:function(t,e){var n={},r={};return P(t,function(t,o){(e(t,o)?n:r)[o]=t}),{t:n,f:r}},each:P,map:function(t,e){return _(t,function(t,n,r){return{k:n,v:e(t,n,r)}})},mapToArray:H,tupleMap:_,find:function(t,e){for(var n=T(t),r=0,o=n.length;r<o;r++){var a=n[r],i=t[a];if(e(i,a,t))return s.some(i)}return s.none()},keys:T,values:O,size:function(t){return O(t).length}},E=[{key:"advlist",name:"Advanced List"},{key:"anchor",name:"Anchor"},{key:"autolink",name:"Autolink"},{key:"autoresize",name:"Autoresize"},{key:"autosave",name:"Autosave"},{key:"bbcode",name:"BBCode"},{key:"charmap",name:"Character Map"},{key:"code",name:"Code"},{key:"codesample",name:"Code Sample"},{key:"colorpicker",name:"Color Picker"},{key:"compat3x",name:"3.x Compatibility"},{key:"contextmenu",name:"Context Menu"},{key:"directionality",name:"Directionality"},{key:"emoticons",name:"Emoticons"},{key:"fullpage",name:"Full Page"},{key:"fullscreen",name:"Full Screen"},{key:"help",name:"Help"},{key:"hr",name:"Horizontal Rule"},{key:"image",name:"Image"},{key:"imagetools",name:"Image Tools"},{key:"importcss",name:"Import CSS"},{key:"insertdatetime",name:"Insert Date/Time"},{key:"legacyoutput",name:"Legacy Output"},{key:"link",name:"Link"},{key:"lists",name:"Lists"},{key:"media",name:"Media"},{key:"nonbreaking",name:"Nonbreaking"},{key:"noneditable",name:"Noneditable"},{key:"pagebreak",name:"Page Break"},{key:"paste",name:"Paste"},{key:"preview",name:"Preview"},{key:"print",name:"Print"},{key:"save",name:"Save"},{key:"searchreplace",name:"Search and Replace"},{key:"spellchecker",name:"Spell Checker"},{key:"tabfocus",name:"Tab Focus"},{key:"table",name:"Table"},{key:"template",name:"Template"},{key:"textcolor",name:"Text Color"},{key:"textpattern",name:"Text Pattern"},{key:"toc",name:"Table of Contents"},{key:"visualblocks",name:"Visual Blocks"},{key:"visualchars",name:"Visual Characters"},{key:"wordcount",name:"Word Count"}],F=o.curry(function(t,e){return t.replace(/\${([^{}]*)}/g,function(t,n){var r=e[n];return function(t){var e=typeof t;return"string"===e||"number"===e}(r)?r:t})},'<a href="${url}" target="_blank" rel="noopener">${name}</a>'),I=function(t){var e=function(t){var e=M.keys(t.plugins);return void 0===t.settings.forced_plugins?e:g(e,o.not(o.curry(v,t.settings.forced_plugins)))}(t),n=y(e,function(e){return"<li>"+function(t,e){return k(E,function(t){return t.key===e}).fold(function(){var n=t.plugins[e].getMetadata;return"function"==typeof n?F(n()):e},function(t){return F({name:t.name,url:"https://www.tinymce.com/docs/plugins/"+t.key})})}(t,e)+"</li>"}),r=n.length,a=n.join("");return"<p><b>"+b.translate(["Plugins installed ({0}):",r])+"</b></p><ul>"+a+"</ul>"},L=function(t){return{title:"Plugins",type:"container",style:"overflow-y: auto; overflow-x: hidden;",layout:"flex",padding:10,spacing:10,items:[function(t){return{type:"container",html:'<div style="overflow-y: auto; overflow-x: hidden; max-height: 230px; height: 230px;" data-mce-tabstop="1" tabindex="-1">'+I(t)+"</div>",flex:1}}(t),{type:"container",html:'<div style="padding: 10px; background: #e3e7f4; height: 100%;" data-mce-tabstop="1" tabindex="-1"><p><b>'+b.translate("Premium plugins:")+'</b></p><ul><li>PowerPaste</li><li>Spell Checker Pro</li><li>Accessibility Checker</li><li>Advanced Code Editor</li><li>Enhanced Media Embed</li><li>Link Checker</li></ul><br /><p style="float: right;"><a href="https://www.tinymce.com/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">'+b.translate("Learn more...")+"</a></p></div>",flex:1}]}},B=tinymce.util.Tools.resolve("tinymce.EditorManager"),j=function(){var t,e,n='<a href="https://www.tinymce.com/docs/changelog/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">TinyMCE '+(t=B.majorVersion,e=B.minorVersion,0===t.indexOf("@")?"X.X.X":t+"."+e)+"</a>";return[{type:"label",html:b.translate(["You are using {0}",n])},{type:"spacer",flex:1},{text:"Close",onclick:function(){this.parent().parent().close()}}]},z=function(t,e){return function(){t.windowManager.open({title:"Help",bodyType:"tabpanel",layout:"flex",body:[S(),L(t)],buttons:j(),onPostRender:function(){this.getEl("title").innerHTML='<img src="'+e+'/img/logo.png" alt="TinyMCE Logo" style="display: inline-block; width: 200px; height: 50px">'}})}},D=function(t,e){t.addCommand("mceHelp",z(t,e))},q=function(t,e){t.addButton("help",{icon:"help",onclick:z(t,e)}),t.addMenuItem("Help",{text:"Help",icon:"help",context:"help",onclick:z(t,e)})};n.add("help",function(t,e){q(t,e),D(t,e),t.shortcuts.add("Alt+0","Open help dialog","mceHelp")})}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L659

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/table/plugin.js:659
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- div.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L217

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/template/plugin.js:217
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- n.innerHTML = $_fmug07pzjdud7d7z.getDateTime(editor, $_6gyjmapxjdud7d7x.getCdateFormat(editor));
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L963

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:963
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- elm.innerHTML = children;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2605

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:2605
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl().lastChild.innerHTML = self.encode(e.value);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2728

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:2728
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl().lastChild.innerHTML = value + '%';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2803

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:2803
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl().firstChild.innerHTML = e.value;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4302

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.js:4302
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- self.getEl().firstChild.innerHTML = e.value;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L20479

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:20479
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- resizeHelper.innerHTML = width + ' &times; ' + height;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L22367

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:22367
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- elm.innerHTML = '<br data-mce-bogus="1">';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L21

Insecure DOM Manipulation (XSS) in webcomponents-hi-sd-ce.js

CWE-79
File Location: media/vendor/webcomponentsjs/js/webcomponents-hi-sd-ce.js:21
Security Score:
73 / 100
Needs Audit

Rule Engine Warning

Detected insecure pattern matching known vulnerability signatures. Medium Confidence (Fuzzy matcher overlap - minor review required). Please apply remediation steps matching the recommended patch format below.

Heuristics Diff
- a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content,l(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=A.R(c.getAttribute("href"),b),c.removeAttribute("href");c=m(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output