Back to Codebase

Vulnerability Analysis Report

Cassiopeia Framework Theme v4.0.0-alpha2

Scan ID: SCAN-CASSIOPEIA-lDguX7 • Hash: 340f2a36

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

Vulnerability Details

L42

Dynamic Code Execution in uctc.php

CWE-94
File Location: libraries/idna_convert/uctc.php:42
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
- if ($from != 'ucs4array') eval('$data = self::'.$from.'_ucs4array($data);');
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L445

Dynamic Code Execution in PlgContentEmailcloakTest.php

CWE-94
File Location: tests/unit/suites/plugins/content/emailcloak/PlgContentEmailcloakTest.php:445
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
- eval($js);
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L597

Dynamic Code Execution in HtmlDocument.php

CWE-94
File Location: libraries/src/Document/HtmlDocument.php:597
Security Score:
97 / 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.
L43

Dynamic Code Execution in uctc.php

CWE-94
File Location: libraries/idna_convert/uctc.php:43
Security Score:
96 / 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
- if ($to != 'ucs4array') eval('$data = self::ucs4array_'.$to.'($data);');
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L453

Dynamic Code Execution in PlgContentEmailcloakTest.php

CWE-94
File Location: tests/unit/suites/plugins/content/emailcloak/PlgContentEmailcloakTest.php:453
Security Score:
96 / 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
- eval($js);
+ // Avoid dynamic function/code evaluation. Rewrite with native callbacks.
L29

Insecure DOM Manipulation (XSS) in error.js

CWE-79
File Location: installation/template/js/error.js:29
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
- header.innerHTML = errorLocale[ref].header;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L240

Insecure DOM Manipulation (XSS) in sidebyside.js

CWE-79
File Location: media/com_associations/js/sidebyside.js:240
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-change-text').innerHTML = document.getElementById('select-change').getAttribute('data-change');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L204

Insecure DOM Manipulation (XSS) in overrider.js

CWE-79
File Location: media/com_languages/js/overrider.js:204
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
- string.innerHTML = item.string;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L6

Insecure DOM Manipulation (XSS) in mediamanager.js

CWE-79
File Location: media/com_media/js/mediamanager.js:6
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 n(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function i(t){return!0===t}function o(t){return!1===t}function a(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}function c(t){return"[object Object]"===Ui.call(t)}function u(t){return"[object RegExp]"===Ui.call(t)}function l(t){var e=parseFloat(t);return e>=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function d(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}function v(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}function h(t,e){return Gi.call(t,e)}function m(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function _(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function y(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function g(t,e){for(var n in e)t[n]=e[n];return t}function b(t){for(var e={},n=0;n<t.length;n++)t[n]&&g(e,t[n]);return e}function E(t,e,n){}function C(t,e){if(t===e)return!0;var n=s(t),r=s(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every(function(t,n){return C(t,e[n])});if(i||o)return!1;var a=Object.keys(t),c=Object.keys(e);return a.length===c.length&&a.every(function(n){return C(t[n],e[n])})}catch(t){return!1}}function w(t,e){for(var n=0;n<t.length;n++)if(C(t[n],e))return n;return-1}function O(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function S(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function A(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}function x(t){if(!no.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}function M(t,e,n){if(to.errorHandler)to.errorHandler.call(null,t,e,n);else{if(!oo||"undefined"==typeof console)throw t;console.error(t)}}function I(t){return"function"==typeof t&&/native code/.test(t.toString())}function $(t){Oo.target&&So.push(Oo.target),Oo.target=t}function T(){Oo.target=So.pop()}function D(t,e,n){t.__proto__=e}function k(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];A(t,o,e[o])}}function L(t,e){if(s(t)){var n;return h(t,"__ob__")&&t.__ob__ instanceof $o?n=t.__ob__:Io.shouldConvert&&!go()&&(Array.isArray(t)||c(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new $o(t)),e&&n&&n.vmCount++,n}}function R(t,e,n,r,i){var o=new Oo,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set,u=!i&&L(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return Oo.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&N(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||(c?c.call(t,e):n=e,u=!i&&L(e),o.notify())}})}}function j(t,e,n){if(Array.isArray(t)&&l(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(h(t,e))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(R(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function P(t,e){if(Array.isArray(t)&&l(e))return void t.splice(e,1);var n=t.__ob__;t._isVue||n&&n.vmCount||h(t,e)&&(delete t[e],n&&n.dep.notify())}function N(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&N(e)}function F(t,e){if(!e)return t;for(var n,r,i,o=Object.keys(e),a=0;a<o.length;a++)n=o[a],r=t[n],i=e[n],h(t,n)?c(r)&&c(i)&&F(r,i):j(t,n,i);return t}function U(t,e,n){return n?t||e?function(){var r="function"==typeof e?e.call(n):e,i="function"==typeof t?t.call(n):t;return r?F(r,i):i}:void 0:e?t?function(){return F("function"==typeof e?e.call(this):e,"function"==typeof t?t.call(this):t)}:e:t}function B(t,e){return e?t?t.concat(e):Array.isArray(e)?e:[e]:t}function H(t,e){var n=Object.create(t||null);return e?g(n,e):n}function G(t){var e=t.props;if(e){var n,r,i,o={};if(Array.isArray(e))for(n=e.length;n--;)"string"==typeof(r=e[n])&&(i=Wi(r),o[i]={type:null});else if(c(e))for(var a in e)r=e[a],i=Wi(a),o[i]=c(r)?r:{type:r};t.props=o}}function V(t){var e=t.inject;if(Array.isArray(e))for(var n=t.inject={},r=0;r<e.length;r++)n[e[r]]=e[r]}function W(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}function z(t,e,n){function r(r){var i=To[r]||Do;c[r]=i(t[r],e[r],n,r)}"function"==typeof e&&(e=e.options),G(e),V(e),W(e);var i=e.extends;if(i&&(t=z(t,i,n)),e.mixins)for(var o=0,a=e.mixins.length;o<a;o++)t=z(t,e.mixins[o],n);var s,c={};for(s in t)r(s);for(s in e)h(t,s)||r(s);return c}function J(t,e,n,r){if("string"==typeof n){var i=t[e];if(h(i,n))return i[n];var o=Wi(n);if(h(i,o))return i[o];var a=zi(o);if(h(i,a))return i[a];return i[n]||i[o]||i[a]}}function q(t,e,n,r){var i=e[t],o=!h(n,t),a=n[t];if(Y(Boolean,i.type)&&(o&&!h(i,"default")?a=!1:Y(String,i.type)||""!==a&&a!==qi(t)||(a=!0)),void 0===a){a=K(r,i,t);var s=Io.shouldConvert;Io.shouldConvert=!0,L(a),Io.shouldConvert=s}return a}function K(t,e,n){if(h(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof r&&"Function"!==Z(e.type)?r.call(t):r}}function Z(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Y(t,e){if(!Array.isArray(e))return Z(e)===Z(t);for(var n=0,r=e.length;n<r;n++)if(Z(e[n])===Z(t))return!0;return!1}function X(t){return new ko(void 0,void 0,void 0,String(t))}function Q(t,e){var n=new ko(t.tag,t.data,t.children,t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return n.ns=t.ns,n.isStatic=t.isStatic,n.key=t.key,n.isComment=t.isComment,n.isCloned=!0,e&&t.children&&(n.children=tt(t.children)),n}function tt(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++)r[i]=Q(t[i],e);return r}function et(t){function e(){var t=arguments,n=e.fns;if(!Array.isArray(n))return n.apply(null,arguments);for(var r=n.slice(),i=0;i<r.length;i++)r[i].apply(null,t)}return e.fns=t,e}function nt(t,e){return t.plain?-1:e.plain?1:0}function rt(t,e,r,i,o){var a,s,c,u,l=[],f=!1;for(a in t)s=t[a],c=e[a],u=Po(a),u.plain||(f=!0),n(s)||(n(c)?(n(s.fns)&&(s=t[a]=et(s)),u.handler=s,l.push(u)):s!==c&&(c.fns=s,t[a]=c));if(l.length){f&&l.sort(nt);for(var d=0;d<l.length;d++){var p=l[d];r(p.name,p.handler,p.once,p.capture,p.passive)}}for(a in e)n(t[a])&&(u=Po(a),i(u.name,e[a],u.capture))}function it(t,e,o){function a(){o.apply(this,arguments),v(s.fns,a)}var s,c=t[e];n(c)?s=et([a]):r(c.fns)&&i(c.merged)?(s=c,s.fns.push(a)):s=et([c,a]),s.merged=!0,t[e]=s}function ot(t,e,i){var o=e.options.props;if(!n(o)){var a={},s=t.attrs,c=t.props;if(r(s)||r(c))for(var u in o){var l=qi(u);at(a,c,u,l,!0)||at(a,s,u,l,!1)}return a}}function at(t,e,n,i,o){if(r(e)){if(h(e,n))return t[n]=e[n],o||delete e[n],!0;if(h(e,i))return t[n]=e[i],o||delete e[i],!0}return!1}function st(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function ct(t){return a(t)?[X(t)]:Array.isArray(t)?lt(t):void 0}function ut(t){return r(t)&&r(t.text)&&o(t.isComment)}function lt(t,e){var o,s,c,u=[];for(o=0;o<t.length;o++)s=t[o],n(s)||"boolean"==typeof s||(c=u[u.length-1],Array.isArray(s)?u.push.apply(u,lt(s,(e||"")+"_"+o)):a(s)?ut(c)?c.text+=String(s):""!==s&&u.push(X(s)):ut(s)&&ut(c)?u[u.length-1]=X(c.text+s.text):(i(t._isVList)&&r(s.tag)&&n(s.key)&&r(e)&&(s.key="__vlist"+e+"_"+o+"__"),u.push(s)));return u}function ft(t,e){return t.__esModule&&t.default&&(t=t.default),s(t)?e.extend(t):t}function dt(t,e,n,r,i){var o=jo();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function pt(t,e,o){if(i(t.error)&&r(t.errorComp))return t.errorComp;if(r(t.resolved))return t.resolved;if(i(t.loading)&&r(t.loadingComp))return t.loadingComp;if(!r(t.contexts)){var a=t.contexts=[o],c=!0,u=function(){for(var t=0,e=a.length;t<e;t++)a[t].$forceUpdate()},l=O(function(n){t.resolved=ft(n,e),c||u()}),f=O(function(e){r(t.errorComp)&&(t.error=!0,u())}),d=t(l,f);return s(d)&&("function"==typeof d.then?n(t.resolved)&&d.then(l,f):r(d.component)&&"function"==typeof d.component.then&&(d.component.then(l,f),r(d.error)&&(t.errorComp=ft(d.error,e)),r(d.loading)&&(t.loadingComp=ft(d.loading,e),0===d.delay?t.loading=!0:setTimeout(function(){n(t.resolved)&&n(t.error)&&(t.loading=!0,u())},d.delay||200)),r(d.timeout)&&setTimeout(function(){n(t.resolved)&&f(null)},d.timeout))),c=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(o)}function vt(t){return t.isComment&&t.asyncFactory}function ht(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(r(n)&&(r(n.componentOptions)||vt(n)))return n}}function mt(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&gt(t,e)}function _t(t,e,n){n?Ro.$once(t,e):Ro.$on(t,e)}function yt(t,e){Ro.$off(t,e)}function gt(t,e,n){Ro=t,rt(e,n||{},_t,yt,t)}function bt(t,e){var n={};if(!t)return n;for(var r=[],i=0,o=t.length;i<o;i++){var a=t[i],s=a.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,a.context!==e&&a.functionalContext!==e||!s||null==s.slot)r.push(a);else{var c=a.data.slot,u=n[c]||(n[c]=[]);"template"===a.tag?u.push.apply(u,a.children):u.push(a)}}return r.every(Et)||(n.default=r),n}function Et(t){return t.isComment||" "===t.text}function Ct(t,e){e=e||{};for(var n=0;n<t.length;n++)Array.isArray(t[n])?Ct(t[n],e):e[t[n].key]=t[n].fn;return e}function wt(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function Ot(t,e,n){t.$el=e,t.$options.render||(t.$options.render=jo),It(t,"beforeMount");var r;return r=function(){t._update(t._render(),n)},t._watcher=new zo(t,r,E),n=!1,null==t.$vnode&&(t._isMounted=!0,It(t,"mounted")),t}function St(t,e,n,r,i){var o=!!(i||t.$options._renderChildren||r.data.scopedSlots||t.$scopedSlots!==eo);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=i,t.$attrs=r.data&&r.data.attrs||eo,t.$listeners=n||eo,e&&t.$options.props){Io.shouldConvert=!1;for(var a=t._props,s=t.$options._propKeys||[],c=0;c<s.length;c++){var u=s[c];a[u]=q(u,t.$options.props,e,t)}Io.shouldConvert=!0,t.$options.propsData=e}if(n){var l=t.$options._parentListeners;t.$options._parentListeners=n,gt(t,n,l)}o&&(t.$slots=bt(i,r.context),t.$forceUpdate())}function At(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function xt(t,e){if(e){if(t._directInactive=!1,At(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)xt(t.$children[n]);It(t,"activated")}}function Mt(t,e){if(!(e&&(t._directInactive=!0,At(t))||t._inactive)){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Mt(t.$children[n]);It(t,"deactivated")}}function It(t,e){var n=t.$options[e];if(n)for(var r=0,i=n.length;r<i;r++)try{n[r].call(t)}catch(n){M(n,t,e+" hook")}t._hasHookEvent&&t.$emit("hook:"+e)}function $t(){Vo=Fo.length=Uo.length=0,Bo={},Ho=Go=!1}function Tt(){Go=!0;var t,e;for(Fo.sort(function(t,e){return t.id-e.id}),Vo=0;Vo<Fo.length;Vo++)t=Fo[Vo],e=t.id,Bo[e]=null,t.run();var n=Uo.slice(),r=Fo.slice();$t(),Lt(n),Dt(r),bo&&to.devtools&&bo.emit("flush")}function Dt(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&It(r,"updated")}}function kt(t){t._inactive=!1,Uo.push(t)}function Lt(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,xt(t[e],!0)}function Rt(t){var e=t.id;if(null==Bo[e]){if(Bo[e]=!0,Go){for(var n=Fo.length-1;n>Vo&&Fo[n].id>t.id;)n--;Fo.splice(n+1,0,t)}else Fo.push(t);Ho||(Ho=!0,Co(Tt))}}function jt(t){Jo.clear(),Pt(t,Jo)}function Pt(t,e){var n,r,i=Array.isArray(t);if((i||s(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)Pt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)Pt(t[r[n]],e)}}function Nt(t,e,n){qo.get=function(){return this[e][n]},qo.set=function(t){this[e][n]=t},Object.defineProperty(t,n,qo)}function Ft(t){t._watchers=[];var e=t.$options;e.props&&Ut(t,e.props),e.methods&&zt(t,e.methods),e.data?Bt(t):L(t._data={},!0),e.computed&&Gt(t,e.computed),e.watch&&e.watch!==vo&&Jt(t,e.watch)}function Ut(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;Io.shouldConvert=o;for(var a in e)!function(o){i.push(o);var a=q(o,e,n,t);R(r,o,a),o in t||Nt(t,"_props",o)}(a);Io.shouldConvert=!0}function Bt(t){var e=t.$options.data;e=t._data="function"==typeof e?Ht(e,t):e||{},c(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);i--;){var o=n[i];r&&h(r,o)||S(o)||Nt(t,"_data",o)}L(e,!0)}function Ht(t,e){try{return t.call(e)}catch(t){return M(t,e,"data()"),{}}}function Gt(t,e){var n=t._computedWatchers=Object.create(null),r=go();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new zo(t,a||E,E,Ko)),i in t||Vt(t,i,o)}}function Vt(t,e,n){var r=!go();"function"==typeof n?(qo.get=r?Wt(e):n,qo.set=E):(qo.get=n.get?r&&!1!==n.cache?Wt(e):n.get:E,qo.set=n.set?n.set:E),Object.defineProperty(t,e,qo)}function Wt(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),Oo.target&&e.depend(),e.value}}function zt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?E:_(e[n],t)}function Jt(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)qt(t,n,r[i]);else qt(t,n,r)}}function qt(t,e,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}function Kt(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}function Zt(t){var e=Yt(t.$options.inject,t);e&&(Io.shouldConvert=!1,Object.keys(e).forEach(function(n){R(t,n,e[n])}),Io.shouldConvert=!0)}function Yt(t,e){if(t){for(var n=Object.create(null),r=Eo?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),i=0;i<r.length;i++)for(var o=r[i],a=t[o],s=e;s;){if(s._provided&&a in s._provided){n[o]=s._provided[a];break}s=s.$parent}return n}}function Xt(t,e,n,i,o){var a={},s=t.options.props;if(r(s))for(var c in s)a[c]=q(c,s,e||eo);else r(n.attrs)&&Qt(a,n.attrs),r(n.props)&&Qt(a,n.props);var u=Object.create(i),l=function(t,e,n,r){return oe(u,t,e,n,r,!0)},f=t.options.render.call(null,l,{data:n,props:a,children:o,parent:i,listeners:n.on||eo,injections:Yt(t.options.inject,i),slots:function(){return bt(o,i)}});return f instanceof ko&&(f.functionalContext=i,f.functionalOptions=t.options,n.slot&&((f.data||(f.data={})).slot=n.slot)),f}function Qt(t,e){for(var n in e)t[Wi(n)]=e[n]}function te(t,e,o,a,c){if(!n(t)){var u=o.$options._base;if(s(t)&&(t=u.extend(t)),"function"==typeof t){var l;if(n(t.cid)&&(l=t,void 0===(t=pt(l,u,o))))return dt(l,e,o,a,c);e=e||{},be(t),r(e.model)&&ie(t.options,e);var f=ot(e,t,c);if(i(t.options.functional))return Xt(t,f,e,o,a);var d=e.on;if(e.on=e.nativeOn,i(t.options.abstract)){var p=e.slot;e={},p&&(e.slot=p)}ne(e);var v=t.options.name||c;return new ko("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,o,{Ctor:t,propsData:f,listeners:d,tag:c,children:a},l)}}}function ee(t,e,n,i){var o=t.componentOptions,a={_isComponent:!0,parent:e,propsData:o.propsData,_componentTag:o.tag,_parentVnode:t,_parentListeners:o.listeners,_renderChildren:o.children,_parentElm:n||null,_refElm:i||null},s=t.data.inlineTemplate;return r(s)&&(a.render=s.render,a.staticRenderFns=s.staticRenderFns),new o.Ctor(a)}function ne(t){t.hook||(t.hook={});for(var e=0;e<Yo.length;e++){var n=Yo[e],r=t.hook[n],i=Zo[n];t.hook[n]=r?re(i,r):i}}function re(t,e){return function(n,r,i,o){t(n,r,i,o),e(n,r,i,o)}}function ie(t,e){var n=t.model&&t.model.prop||"value",i=t.model&&t.model.event||"input";(e.props||(e.props={}))[n]=e.model.value;var o=e.on||(e.on={});r(o[i])?o[i]=[e.model.callback].concat(o[i]):o[i]=e.model.callback}function oe(t,e,n,r,o,s){return(Array.isArray(n)||a(n))&&(o=r,r=n,n=void 0),i(s)&&(o=Qo),ae(t,e,n,r,o)}function ae(t,e,n,i,o){if(r(n)&&r(n.__ob__))return jo();if(r(n)&&r(n.is)&&(e=n.is),!e)return jo();Array.isArray(i)&&"function"==typeof i[0]&&(n=n||{},n.scopedSlots={default:i[0]},i.length=0),o===Qo?i=ct(i):o===Xo&&(i=st(i));var a,s;if("string"==typeof e){var c;s=t.$vnode&&t.$vnode.ns||to.getTagNamespace(e),a=to.isReservedTag(e)?new ko(to.parsePlatformTagName(e),n,i,void 0,void 0,t):r(c=J(t.$options,"components",e))?te(c,n,t,i,e):new ko(e,n,i,void 0,void 0,t)}else a=te(e,n,t,i);return r(a)?(s&&se(a,s),a):jo()}function se(t,e){if(t.ns=e,"foreignObject"!==t.tag&&r(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];r(a.tag)&&n(a.ns)&&se(a,e)}}function ce(t,e){var n,i,o,a,c;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),i=0,o=t.length;i<o;i++)n[i]=e(t[i],i);else if("number"==typeof t)for(n=new Array(t),i=0;i<t;i++)n[i]=e(i+1,i);else if(s(t))for(a=Object.keys(t),n=new Array(a.length),i=0,o=a.length;i<o;i++)c=a[i],n[i]=e(t[c],c,i);return r(n)&&(n._isVList=!0),n}function ue(t,e,n,r){var i=this.$scopedSlots[t];if(i)return n=n||{},r&&(n=g(g({},r),n)),i(n)||e;var o=this.$slots[t];return o||e}function le(t){return J(this.$options,"filters",t,!0)||Zi}function fe(t,e,n){var r=to.keyCodes[e]||n;return Array.isArray(r)?-1===r.indexOf(t):r!==t}function de(t,e,n,r,i){if(n)if(s(n)){Array.isArray(n)&&(n=b(n));var o;for(var a in n)!function(a){if("class"===a||"style"===a||Hi(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||to.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}if(!(a in o)&&(o[a]=n[a],i)){(t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}}}(a)}else;return t}function pe(t,e){var n=this._staticTrees[t];return n&&!e?Array.isArray(n)?tt(n):Q(n):(n=this._staticTrees[t]=this.$options.staticRenderFns[t].call(this._renderProxy),he(n,"__static__"+t,!1),n)}function ve(t,e,n){return he(t,"__once__"+e+(n?"_"+n:""),!0),t}function he(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&me(t[r],e+"_"+r,n);else me(t,e,n)}function me(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function _e(t,e){if(e)if(c(e)){var n=t.on=t.on?g({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(o,i):o}}else;return t}function ye(t){t._vnode=null,t._staticTrees=null;var e=t.$vnode=t.$options._parentVnode,n=e&&e.context;t.$slots=bt(t.$options._renderChildren,n),t.$scopedSlots=eo,t._c=function(e,n,r,i){return oe(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return oe(t,e,n,r,i,!0)};var r=e&&e.data;R(t,"$attrs",r&&r.attrs||eo,null,!0),R(t,"$listeners",t.$options._parentListeners||eo,null,!0)}function ge(t,e){var n=t.$options=Object.create(t.constructor.options);n.parent=e.parent,n.propsData=e.propsData,n._parentVnode=e._parentVnode,n._parentListeners=e._parentListeners,n._renderChildren=e._renderChildren,n._componentTag=e._componentTag,n._parentElm=e._parentElm,n._refElm=e._refElm,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function be(t){var e=t.options;if(t.super){var n=be(t.super);if(n!==t.superOptions){t.superOptions=n;var r=Ee(t);r&&g(t.extendOptions,r),e=t.options=z(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function Ee(t){var e,n=t.options,r=t.extendOptions,i=t.sealedOptions;for(var o in n)n[o]!==i[o]&&(e||(e={}),e[o]=Ce(n[o],r[o],i[o]));return e}function Ce(t,e,n){if(Array.isArray(t)){var r=[];n=Array.isArray(n)?n:[n],e=Array.isArray(e)?e:[e];for(var i=0;i<t.length;i++)(e.indexOf(t[i])>=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function we(t){this._init(t)}function Oe(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function Se(t){t.mixin=function(t){return this.options=z(this.options,t),this}}function Ae(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=z(n.options,t),a.super=n,a.options.props&&xe(a),a.options.computed&&Me(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Xi.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=g({},a.options),i[r]=a,a}}function xe(t){var e=t.options.props;for(var n in e)Nt(t.prototype,"_props",n)}function Me(t){var e=t.options.computed;for(var n in e)Vt(t.prototype,n,e[n])}function Ie(t){Xi.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function $e(t){return t&&(t.Ctor.options.name||t.tag)}function Te(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!u(t)&&t.test(e)}function De(t,e,n){for(var r in t){var i=t[r];if(i){var o=$e(i.componentOptions);o&&!n(o)&&(i!==e&&ke(i),t[r]=null)}}}function ke(t){t&&t.componentInstance.$destroy()}function Le(t){for(var e=t.data,n=t,i=t;r(i.componentInstance);)i=i.componentInstance._vnode,i.data&&(e=Re(i.data,e));for(;r(n=n.parent);)n.data&&(e=Re(e,n.data));return je(e.staticClass,e.class)}function Re(t,e){return{staticClass:Pe(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function je(t,e){return r(t)||r(e)?Pe(t,Ne(e)):""}function Pe(t,e){return t?e?t+" "+e:t:e||""}function Ne(t){return Array.isArray(t)?Fe(t):s(t)?Ue(t):"string"==typeof t?t:""}function Fe(t){for(var e,n="",i=0,o=t.length;i<o;i++)r(e=Ne(t[i]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function Ue(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function Be(t){return Oa(t)?"svg":"math"===t?"math":void 0}function He(t){if(!oo)return!0;if(Aa(t))return!1;if(t=t.toLowerCase(),null!=xa[t])return xa[t];var e=document.createElement(t);return t.indexOf("-")>-1?xa[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:xa[t]=/HTMLUnknownElement/.test(e.toString())}function Ge(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Ve(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function We(t,e){return document.createElementNS(Ca[t],e)}function ze(t){return document.createTextNode(t)}function Je(t){return document.createComment(t)}function qe(t,e,n){t.insertBefore(e,n)}function Ke(t,e){t.removeChild(e)}function Ze(t,e){t.appendChild(e)}function Ye(t){return t.parentNode}function Xe(t){return t.nextSibling}function Qe(t){return t.tagName}function tn(t,e){t.textContent=e}function en(t,e,n){t.setAttribute(e,n)}function nn(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?v(o[n],i):o[n]===i&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}function rn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&on(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&n(e.asyncFactory.error))}function on(t,e){if("input"!==t.tag)return!0;var n,i=r(n=t.data)&&r(n=n.attrs)&&n.type,o=r(n=e.data)&&r(n=n.attrs)&&n.type;return i===o||Ma(i)&&Ma(o)}function an(t,e,n){var i,o,a={};for(i=e;i<=n;++i)o=t[i].key,r(o)&&(a[o]=i);return a}function sn(t,e){(t.data.directives||e.data.directives)&&cn(t,e)}function cn(t,e){var n,r,i,o=t===Ta,a=e===Ta,s=un(t.data.directives,t.context),c=un(e.data.directives,e.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,fn(i,"update",e,t),i.def&&i.def.componentUpdated&&l.push(i)):(fn(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)fn(u[n],"inserted",e,t)};o?it(e.data.hook||(e.data.hook={}),"insert",f):f()}if(l.length&&it(e.data.hook||(e.data.hook={}),"postpatch",function(){for(var n=0;n<l.length;n++)fn(l[n],"componentUpdated",e,t)}),!o)for(n in s)c[n]||fn(s[n],"unbind",t,t,a)}function un(t,e){var n=Object.create(null);if(!t)return n;var r,i;for(r=0;r<t.length;r++)i=t[r],i.modifiers||(i.modifiers=La),n[ln(i)]=i,i.def=J(e.$options,"directives",i.name,!0);return n}function ln(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function fn(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){M(r,n.context,"directive "+t.name+" "+e+" hook")}}function dn(t,e){var i=e.componentOptions;if(!(r(i)&&!1===i.Ctor.options.inheritAttrs||n(t.data.attrs)&&n(e.data.attrs))){var o,a,s=e.elm,c=t.data.attrs||{},u=e.data.attrs||{};r(u.__ob__)&&(u=e.data.attrs=g({},u));for(o in u)a=u[o],c[o]!==a&&pn(s,o,a);co&&u.value!==c.value&&pn(s,"value",u.value);for(o in c)n(u[o])&&(ga(o)?s.removeAttributeNS(ya,ba(o)):ma(o)||s.removeAttribute(o))}}function pn(t,e,n){_a(e)?Ea(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):ma(e)?t.setAttribute(e,Ea(n)||"false"===n?"false":"true"):ga(e)?Ea(n)?t.removeAttributeNS(ya,ba(e)):t.setAttributeNS(ya,e,n):Ea(n)?t.removeAttribute(e):t.setAttribute(e,n)}function vn(t,e){var i=e.elm,o=e.data,a=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Le(e),c=i._transitionClasses;r(c)&&(s=Pe(s,Ne(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}function hn(t){function e(){(a||(a=[])).push(t.slice(v,i).trim()),v=i+1}var n,r,i,o,a,s=!1,c=!1,u=!1,l=!1,f=0,d=0,p=0,v=0;for(i=0;i<t.length;i++)if(r=n,n=t.charCodeAt(i),s)39===n&&92!==r&&(s=!1);else if(c)34===n&&92!==r&&(c=!1);else if(u)96===n&&92!==r&&(u=!1);else if(l)47===n&&92!==r&&(l=!1);else if(124!==n||124===t.charCodeAt(i+1)||124===t.charCodeAt(i-1)||f||d||p){switch(n){case 34:c=!0;break;case 39:s=!0;break;case 96:u=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:f++;break;case 125:f--}if(47===n){for(var h=i-1,m=void 0;h>=0&&" "===(m=t.charAt(h));h--);m&&Na.test(m)||(l=!0)}}else void 0===o?(v=i+1,o=t.slice(0,i).trim()):e();if(void 0===o?o=t.slice(0,i).trim():0!==v&&e(),a)for(i=0;i<a.length;i++)o=mn(o,a[i]);return o}function mn(t,e){var n=e.indexOf("(");return n<0?'_f("'+e+'")('+t+")":'_f("'+e.slice(0,n)+'")('+t+","+e.slice(n+1)}function _n(t){console.error("[Vue compiler]: "+t)}function yn(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function gn(t,e,n){(t.props||(t.props=[])).push({name:e,value:n})}function bn(t,e,n){(t.attrs||(t.attrs=[])).push({name:e,value:n})}function En(t,e,n,r,i,o){(t.directives||(t.directives=[])).push({name:e,rawName:n,value:r,arg:i,modifiers:o})}function Cn(t,e,n,r,i,o){r&&r.capture&&(delete r.capture,e="!"+e),r&&r.once&&(delete r.once,e="~"+e),r&&r.passive&&(delete r.passive,e="&"+e);var a;r&&r.native?(delete r.native,a=t.nativeEvents||(t.nativeEvents={})):a=t.events||(t.events={});var s={value:n,modifiers:r},c=a[e];Array.isArray(c)?i?c.unshift(s):c.push(s):a[e]=c?i?[s,c]:[c,s]:s}function wn(t,e,n){var r=On(t,":"+e)||On(t,"v-bind:"+e);if(null!=r)return hn(r);if(!1!==n){var i=On(t,e);if(null!=i)return JSON.stringify(i)}}function On(t,e){var n;if(null!=(n=t.attrsMap[e]))for(var r=t.attrsList,i=0,o=r.length;i<o;i++)if(r[i].name===e){r.splice(i,1);break}return n}function Sn(t,e,n){var r=n||{},i=r.number,o=r.trim,a="$$v";o&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(a="_n("+a+")");var s=An(e,a);t.model={value:"("+e+")",expression:'"'+e+'"',callback:"function ($$v) {"+s+"}"}}function An(t,e){var n=xn(t);return null===n.idx?t+"="+e:"$set("+n.exp+", "+n.idx+", "+e+")"}function xn(t){if(oa=t,ia=oa.length,sa=ca=ua=0,t.indexOf("[")<0||t.lastIndexOf("]")<ia-1)return{exp:t,idx:null};for(;!In();)aa=Mn(),$n(aa)?Dn(aa):91===aa&&Tn(aa);return{exp:t.substring(0,ca),idx:t.substring(ca+1,ua)}}function Mn(){return oa.charCodeAt(++sa)}function In(){return sa>=ia}function $n(t){return 34===t||39===t}function Tn(t){var e=1;for(ca=sa;!In();)if(t=Mn(),$n(t))Dn(t);else if(91===t&&e++,93===t&&e--,0===e){ua=sa;break}}function Dn(t){for(var e=t;!In()&&(t=Mn())!==e;);}function kn(t,e,n){la=n;var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return Sn(t,r,i),!1;if("select"===o)jn(t,r,i);else if("input"===o&&"checkbox"===a)Ln(t,r,i);else if("input"===o&&"radio"===a)Rn(t,r,i);else if("input"===o||"textarea"===o)Pn(t,r,i);else if(!to.isReservedTag(o))return Sn(t,r,i),!1;return!0}function Ln(t,e,n){var r=n&&n.number,i=wn(t,"value")||"null",o=wn(t,"true-value")||"true",a=wn(t,"false-value")||"false";gn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Cn(t,Ua,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat([$$v]))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+An(e,"$$c")+"}",null,!0)}function Rn(t,e,n){var r=n&&n.number,i=wn(t,"value")||"null";i=r?"_n("+i+")":i,gn(t,"checked","_q("+e+","+i+")"),Cn(t,Ua,An(e,i),null,!0)}function jn(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+An(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Cn(t,"change",o,null,!0)}function Pn(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Fa:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=An(e,l);c&&(f="if($event.target.composing)return;"+f),gn(t,"value","("+e+")"),Cn(t,u,f,null,!0),(s||a)&&Cn(t,"blur","$forceUpdate()")}function Nn(t){var e;r(t[Fa])&&(e=so?"change":"input",t[e]=[].concat(t[Fa],t[e]||[]),delete t[Fa]),r(t[Ua])&&(e=po?"click":"change",t[e]=[].concat(t[Ua],t[e]||[]),delete t[Ua])}function Fn(t,e,n,r,i){if(n){var o=e,a=fa;e=function(n){null!==(1===arguments.length?o(n):o.apply(null,arguments))&&Un(t,e,r,a)}}fa.addEventListener(t,e,ho?{capture:r,passive:i}:r)}function Un(t,e,n,r){(r||fa).removeEventListener(t,e,n)}function Bn(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},i=t.data.on||{};fa=e.elm,Nn(r),rt(r,i,Fn,Un,e.context)}}function Hn(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var i,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};r(c.__ob__)&&(c=e.data.domProps=g({},c));for(i in s)n(c[i])&&(a[i]="");for(i in c)if(o=c[i],"textContent"!==i&&"innerHTML"!==i||(e.children&&(e.children.length=0),o!==s[i]))if("value"===i){a._value=o;var u=n(o)?"":String(o);Gn(a,e,u)&&(a.value=u)}else a[i]=o}}function Gn(t,e,n){return!t.composing&&("option"===e.tag||Vn(t,n)||Wn(t,n))}function Vn(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Wn(t,e){var n=t.value,i=t._vModifiers;return r(i)&&i.number?d(n)!==d(e):r(i)&&i.trim?n.trim()!==e.trim():n!==e}function zn(t){var e=Jn(t.style);return t.staticStyle?g(t.staticStyle,e):e}function Jn(t){return Array.isArray(t)?b(t):"string"==typeof t?Ga(t):t}function qn(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(n=zn(i.data))&&g(r,n);(n=zn(t.data))&&g(r,n);for(var o=t;o=o.parent;)o.data&&(n=zn(o.data))&&g(r,n);return r}function Kn(t,e){var i=e.data,o=t.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var a,s,c=e.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,d=Jn(e.data.style)||{};e.data.normalizedStyle=r(d.__ob__)?g({},d):d;var p=qn(e,!0);for(s in f)n(p[s])&&za(c,s,"");for(s in p)(a=p[s])!==f[s]&&za(c,s,null==a?"":a)}}function Zn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Yn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Xn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&g(e,Za(t.name||"v")),g(e,t),e}return"string"==typeof t?Za(t):void 0}}function Qn(t){is(function(){is(t)})}function tr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Zn(t,e))}function er(t,e){t._transitionClasses&&v(t._transitionClasses,e),Yn(t,e)}function nr(t,e,n){var r=rr(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Xa?es:rs,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),t.addEventListener(s,l)}function rr(t,e){var n,r=window.getComputedStyle(t),i=r[ts+"Delay"].split(", "),o=r[ts+"Duration"].split(", "),a=ir(i,o),s=r[ns+"Delay"].split(", "),c=r[ns+"Duration"].split(", "),u=ir(s,c),l=0,f=0;return e===Xa?a>0&&(n=Xa,l=a,f=o.length):e===Qa?u>0&&(n=Qa,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?Xa:Qa:null,f=n?n===Xa?o.length:c.length:0),{type:n,timeout:l,propCount:f,hasTransform:n===Xa&&os.test(r[ts+"Property"])}}function ir(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,n){return or(e)+or(t[n])}))}function or(t){return 1e3*Number(t.slice(0,-1))}function ar(t,e){var i=t.elm;r(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var o=Xn(t.data.transition);if(!n(o)&&!r(i._enterCb)&&1===i.nodeType){for(var a=o.css,c=o.type,u=o.enterClass,l=o.enterToClass,f=o.enterActiveClass,p=o.appearClass,v=o.appearToClass,h=o.appearActiveClass,m=o.beforeEnter,_=o.enter,y=o.afterEnter,g=o.enterCancelled,b=o.beforeAppear,E=o.appear,C=o.afterAppear,w=o.appearCancelled,S=o.duration,A=No,x=No.$vnode;x&&x.parent;)x=x.parent,A=x.context;var M=!A._isMounted||!t.isRootInsert;if(!M||E||""===E){var I=M&&p?p:u,$=M&&h?h:f,T=M&&v?v:l,D=M?b||m:m,k=M&&"function"==typeof E?E:_,L=M?C||y:y,R=M?w||g:g,j=d(s(S)?S.enter:S),P=!1!==a&&!co,N=ur(k),F=i._enterCb=O(function(){P&&(er(i,T),er(i,$)),F.cancelled?(P&&er(i,I),R&&R(i)):L&&L(i),i._enterCb=null});t.data.show||it(t.data.hook||(t.data.hook={}),"insert",function(){var e=i.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),k&&k(i,F)}),D&&D(i),P&&(tr(i,I),tr(i,$),Qn(function(){tr(i,T),er(i,I),F.cancelled||N||(cr(j)?setTimeout(F,j):nr(i,c,F))})),t.data.show&&(e&&e(),k&&k(i,F)),P||N||F()}}}function sr(t,e){function i(){w.cancelled||(t.data.show||((o.parentNode._pending||(o.parentNode._pending={}))[t.key]=t),v&&v(o),b&&(tr(o,l),tr(o,p),Qn(function(){tr(o,f),er(o,l),w.cancelled||E||(cr(C)?setTimeout(w,C):nr(o,u,w))})),h&&h(o,w),b||E||w())}var o=t.elm;r(o._enterCb)&&(o._enterCb.cancelled=!0,o._enterCb());var a=Xn(t.data.transition);if(n(a))return e();if(!r(o._leaveCb)&&1===o.nodeType){var c=a.css,u=a.type,l=a.leaveClass,f=a.leaveToClass,p=a.leaveActiveClass,v=a.beforeLeave,h=a.leave,m=a.afterLeave,_=a.leaveCancelled,y=a.delayLeave,g=a.duration,b=!1!==c&&!co,E=ur(h),C=d(s(g)?g.leave:g),w=o._leaveCb=O(function(){o.parentNode&&o.parentNode._pending&&(o.parentNode._pending[t.key]=null),b&&(er(o,f),er(o,p)),w.cancelled?(b&&er(o,l),_&&_(o)):(e(),m&&m(o)),o._leaveCb=null});y?y(i):i()}}function cr(t){return"number"==typeof t&&!isNaN(t)}function ur(t){if(n(t))return!1;var e=t.fns;return r(e)?ur(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function lr(t,e){!0!==e.data.show&&ar(e)}function fr(t,e,n){dr(t,e,n),(so||uo)&&setTimeout(function(){dr(t,e,n)},0)}function dr(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=t.options.length;s<c;s++)if(a=t.options[s],i)o=w(r,vr(a))>-1,a.selected!==o&&(a.selected=o);else if(C(vr(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function pr(t,e){return e.every(function(e){return!C(e,t)})}function vr(t){return"_value"in t?t._value:t.value}function hr(t){t.target.composing=!0}function mr(t){t.target.composing&&(t.target.composing=!1,_r(t.target,"input"))}function _r(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function yr(t){return!t.componentInstance||t.data&&t.data.transition?t:yr(t.componentInstance._vnode)}function gr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?gr(ht(e.children)):t}function br(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[Wi(o)]=i[o];return e}function Er(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Cr(t){for(;t=t.parent;)if(t.data.transition)return!0}function wr(t,e){return e.key===t.key&&e.tag===t.tag}function Or(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Sr(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ar(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function xr(t,e){var n=e?Cs(e):bs;if(n.test(t)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(t);){i=r.index,i>a&&o.push(JSON.stringify(t.slice(a,i)));var s=hn(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a<t.length&&o.push(JSON.stringify(t.slice(a))),o.join("+")}}function Mr(t,e){var n=(e.warn,On(t,"class"));n&&(t.staticClass=JSON.stringify(n));var r=wn(t,"class",!1);r&&(t.classBinding=r)}function Ir(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function $r(t,e){var n=(e.warn,On(t,"style"));if(n){t.staticStyle=JSON.stringify(Ga(n))}var r=wn(t,"style",!1);r&&(t.styleBinding=r)}function Tr(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Dr(t,e){e.value&&gn(t,"textContent","_s("+e.value+")")}function kr(t,e){e.value&&gn(t,"innerHTML","_s("+e.value+")")}function Lr(t,e){var n=e?nc:ec;return t.replace(n,function(t){return tc[t]})}function Rr(t,e){function n(e){l+=e,t=t.substring(e)}function r(t,n,r){var i,s;if(null==n&&(n=l),null==r&&(r=l),t&&(s=t.toLowerCase()),t)for(i=a.length-1;i>=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var c=a.length-1;c>=i;c--)e.end&&e.end(a[c].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var i,o,a=[],s=e.expectHTML,c=e.isUnaryTag||Ki,u=e.canBeLeftOpenTag||Ki,l=0;t;){if(i=t,o&&Xs(o)){var f=0,d=o.toLowerCase(),p=Qs[d]||(Qs[d]=new RegExp("([\\s\\S]*?)(</"+d+"[^>]*>)","i")),v=t.replace(p,function(t,n,r){return f=r.length,Xs(d)||"noscript"===d||(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),ic(d,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});l+=t.length-v.length,t=v,r(d,l-f,l)}else{var h=t.indexOf("<");if(0===h){if(Fs.test(t)){var m=t.indexOf("--\x3e");if(m>=0){e.shouldKeepComment&&e.comment(t.substring(4,m)),n(m+3);continue}}if(Us.test(t)){var _=t.indexOf("]>");if(_>=0){n(_+2);continue}}var y=t.match(Ns);if(y){n(y[0].length);continue}var g=t.match(Ps);if(g){var b=l;n(g[0].length),r(g[1],b,l);continue}var E=function(){var e=t.match(Rs);if(e){var r={tagName:e[1],attrs:[],start:l};n(e[0].length);for(var i,o;!(i=t.match(js))&&(o=t.match(Ds));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=l,r}}();if(E){!function(t){var n=t.tagName,i=t.unarySlash;s&&("p"===o&&Is(n)&&r(o),u(n)&&o===n&&r(n));for(var l=c(n)||!!i,f=t.attrs.length,d=new Array(f),p=0;p<f;p++){var v=t.attrs[p];Bs&&-1===v[0].indexOf('""')&&(""===v[3]&&delete v[3],""===v[4]&&delete v[4],""===v[5]&&delete v[5]);var h=v[3]||v[4]||v[5]||"";d[p]={name:v[1],value:Lr(h,e.shouldDecodeNewlines)}}l||(a.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d}),o=n),e.start&&e.start(n,d,l,t.start,t.end)}(E),ic(o,t)&&n(1);continue}}var C=void 0,w=void 0,O=void 0;if(h>=0){for(w=t.slice(h);!(Ps.test(w)||Rs.test(w)||Fs.test(w)||Us.test(w)||(O=w.indexOf("<",1))<0);)h+=O,w=t.slice(h);C=t.substring(0,h),n(h)}h<0&&(C=t,t=""),e.chars&&C&&e.chars(C)}if(t===i){e.chars&&e.chars(t);break}}r()}function jr(t,e){function n(t){t.pre&&(s=!1),Js(t.tag)&&(c=!1)}Hs=e.warn||_n,Js=e.isPreTag||Ki,qs=e.mustUseProp||Ki,Ks=e.getTagNamespace||Ki,Vs=yn(e.modules,"transformNode"),Ws=yn(e.modules,"preTransformNode"),zs=yn(e.modules,"postTransformNode"),Gs=e.delimiters;var r,i,o=[],a=!1!==e.preserveWhitespace,s=!1,c=!1;return Rr(t,{warn:Hs,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldKeepComment:e.comments,start:function(t,a,u){var l=i&&i.ns||Ks(t);so&&"svg"===l&&(a=ei(a));var f={type:1,tag:t,attrsList:a,attrsMap:Xr(a),parent:i,children:[]};l&&(f.ns=l),ti(f)&&!go()&&(f.forbidden=!0);for(var d=0;d<Ws.length;d++)Ws[d](f,e);if(s||(Pr(f),f.pre&&(s=!0)),Js(f.tag)&&(c=!0),s)Nr(f);else{Br(f),Hr(f),zr(f),Fr(f),f.plain=!f.key&&!a.length,Ur(f),Jr(f),qr(f);for(var p=0;p<Vs.length;p++)Vs[p](f,e);Kr(f)}if(r?o.length||r.if&&(f.elseif||f.else)&&Wr(r,{exp:f.elseif,block:f}):r=f,i&&!f.forbidden)if(f.elseif||f.else)Gr(f,i);else if(f.slotScope){i.plain=!1;var v=f.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[v]=f}else i.children.push(f),f.parent=i;u?n(f):(i=f,o.push(f));for(var h=0;h<zs.length;h++)zs[h](f,e)},end:function(){var t=o[o.length-1],e=t.children[t.children.length-1];e&&3===e.type&&" "===e.text&&!c&&t.children.pop(),o.length-=1,i=o[o.length-1],n(t)},chars:function(t){if(i&&(!so||"textarea"!==i.tag||i.attrsMap.placeholder!==t)){var e=i.children;if(t=c||t.trim()?Qr(i)?t:dc(t):a&&e.length?" ":""){var n;!s&&" "!==t&&(n=xr(t,Gs))?e.push({type:2,expression:n,text:t}):" "===t&&e.length&&" "===e[e.length-1].text||e.push({type:3,text:t})}}},comment:function(t){i.children.push({type:3,text:t,isComment:!0})}}),r}function Pr(t){null!=On(t,"v-pre")&&(t.pre=!0)}function Nr(t){var e=t.attrsList.length;if(e)for(var n=t.attrs=new Array(e),r=0;r<e;r++)n[r]={name:t.attrsList[r].name,value:JSON.stringify(t.attrsList[r].value)};else t.pre||(t.plain=!0)}function Fr(t){var e=wn(t,"key");e&&(t.key=e)}function Ur(t){var e=wn(t,"ref");e&&(t.ref=e,t.refInFor=Zr(t))}function Br(t){var e;if(e=On(t,"v-for")){var n=e.match(sc);if(!n)return;t.for=n[2].trim();var r=n[1].trim(),i=r.match(cc);i?(t.alias=i[1].trim(),t.iterator1=i[2].trim(),i[3]&&(t.iterator2=i[3].trim())):t.alias=r}}function Hr(t){var e=On(t,"v-if");if(e)t.if=e,Wr(t,{exp:e,block:t});else{null!=On(t,"v-else")&&(t.else=!0);var n=On(t,"v-else-if");n&&(t.elseif=n)}}function Gr(t,e){var n=Vr(e.children);n&&n.if&&Wr(n,{exp:t.elseif,block:t})}function Vr(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}function Wr(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function zr(t){null!=On(t,"v-once")&&(t.once=!0)}function Jr(t){if("slot"===t.tag)t.slotName=wn(t,"name");else{var e=wn(t,"slot");e&&(t.slotTarget='""'===e?'"default"':e,bn(t,"slot",e)),"template"===t.tag&&(t.slotScope=On(t,"scope"))}}function qr(t){var e;(e=wn(t,"is"))&&(t.component=e),null!=On(t,"inline-template")&&(t.inlineTemplate=!0)}function Kr(t){var e,n,r,i,o,a,s,c=t.attrsList;for(e=0,n=c.length;e<n;e++)if(r=i=c[e].name,o=c[e].value,ac.test(r))if(t.hasBindings=!0,a=Yr(r),a&&(r=r.replace(fc,"")),lc.test(r))r=r.replace(lc,""),o=hn(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(r=Wi(r))&&(r="innerHTML")),a.camel&&(r=Wi(r)),a.sync&&Cn(t,"update:"+Wi(r),An(o,"$event"))),s||!t.component&&qs(t.tag,t.attrsMap.type,r)?gn(t,r,o):bn(t,r,o);else if(oc.test(r))r=r.replace(oc,""),Cn(t,r,o,a,!1,Hs);else{r=r.replace(ac,"");var u=r.match(uc),l=u&&u[1];l&&(r=r.slice(0,-(l.length+1))),En(t,r,i,o,l,a)}else{bn(t,r,JSON.stringify(o))}}function Zr(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}function Yr(t){var e=t.match(fc);if(e){var n={};return e.forEach(function(t){n[t.slice(1)]=!0}),n}}function Xr(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}function Qr(t){return"script"===t.tag||"style"===t.tag}function ti(t){return"style"===t.tag||"script"===t.tag&&(!t.attrsMap.type||"text/javascript"===t.attrsMap.type)}function ei(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];pc.test(r.name)||(r.name=r.name.replace(vc,""),e.push(r))}return e}function ni(t,e){t&&(Zs=hc(e.staticKeys||""),Ys=e.isReservedTag||Ki,ii(t),oi(t,!1))}function ri(t){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(t?","+t:""))}function ii(t){if(t.static=ai(t),1===t.type){if(!Ys(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var e=0,n=t.children.length;e<n;e++){var r=t.children[e];ii(r),r.static||(t.static=!1)}if(t.ifConditions)for(var i=1,o=t.ifConditions.length;i<o;i++){var a=t.ifConditions[i].block;ii(a),a.static||(t.static=!1)}}}function oi(t,e){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=e),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var n=0,r=t.children.length;n<r;n++)oi(t.children[n],e||!!t.for);if(t.ifConditions)for(var i=1,o=t.ifConditions.length;i<o;i++)oi(t.ifConditions[i].block,e)}}function ai(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||Bi(t.tag)||!Ys(t.tag)||si(t)||!Object.keys(t).every(Zs))))}function si(t){for(;t.parent;){if(t=t.parent,"template"!==t.tag)return!1;if(t.for)return!0}return!1}function ci(t,e,n){var r=e?"nativeOn:{":"on:{";for(var i in t){r+='"'+i+'":'+ui(i,t[i])+","}return r.slice(0,-1)+"}"}function ui(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return ui(t,e)}).join(",")+"]";var n=_c.test(e.value),r=mc.test(e.value);if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)bc[s]?(o+=bc[s],yc[s]&&a.push(s)):a.push(s);a.length&&(i+=li(a)),o&&(i+=o);return"function($event){"+i+(n?e.value+"($event)":r?"("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function li(t){return"if(!('button' in $event)&&"+t.map(fi).join("&&")+")return null;"}function fi(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=yc[t];return"_k($event.keyCode,"+JSON.stringify(t)+(n?","+JSON.stringify(n):"")+")"}function di(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}}function pi(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}}function vi(t,e){var n=new Cc(e);return{render:"with(this){return "+(t?hi(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function hi(t,e){if(t.staticRoot&&!t.staticProcessed)return mi(t,e);if(t.once&&!t.onceProcessed)return _i(t,e);if(t.for&&!t.forProcessed)return bi(t,e);if(t.if&&!t.ifProcessed)return yi(t,e);if("template"!==t.tag||t.slotTarget){if("slot"===t.tag)return ki(t,e);var n;if(t.component)n=Li(t.component,t,e);else{var r=t.plain?void 0:Ei(t,e),i=t.inlineTemplate?null:xi(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<e.transforms.length;o++)n=e.transforms[o](t,n);return n}return xi(t,e)||"void 0"}function mi(t,e){return t.staticProcessed=!0,e.staticRenderFns.push("with(this){return "+hi(t,e)+"}"),"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function _i(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return yi(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+hi(t,e)+","+e.onceId+++","+n+")":hi(t,e)}return mi(t,e)}function yi(t,e,n,r){return t.ifProcessed=!0,gi(t.ifConditions.slice(),e,n,r)}function gi(t,e,n,r){function i(t){return n?n(t,e):t.once?_i(t,e):hi(t,e)}if(!t.length)return r||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+i(o.block)+":"+gi(t,e,n,r):""+i(o.block)}function bi(t,e,n,r){var i=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||hi)(t,e)+"})"}function Ei(t,e){var n="{",r=Ci(t,e);r&&(n+=r+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var i=0;i<e.dataGenFns.length;i++)n+=e.dataGenFns[i](t);if(t.attrs&&(n+="attrs:{"+Ri(t.attrs)+"},"),t.props&&(n+="domProps:{"+Ri(t.props)+"},"),t.events&&(n+=ci(t.events,!1,e.warn)+","),t.nativeEvents&&(n+=ci(t.nativeEvents,!0,e.warn)+","),t.slotTarget&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=Oi(t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=wi(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ci(t,e){var n=t.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=e.directives[o.name];u&&(a=!!u(t,o,e.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}function wi(t,e){var n=t.children[0];if(1===n.type){var r=vi(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}function Oi(t,e){return"scopedSlots:_u(["+Object.keys(t).map(function(n){return Si(n,t[n],e)}).join(",")+"])"}function Si(t,e,n){return e.for&&!e.forProcessed?Ai(t,e,n):"{key:"+t+",fn:function("+String(e.attrsMap.scope)+"){return "+("template"===e.tag?xi(e,n)||"void 0":hi(e,n))+"}}"}function Ai(t,e,n){var r=e.for,i=e.alias,o=e.iterator1?","+e.iterator1:"",a=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,"_l(("+r+"),function("+i+o+a+"){return "+Si(t,e,n)+"})"}function xi(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(r||hi)(a,e);var s=n?Mi(o,e.maybeComponent):0,c=i||$i;return"["+o.map(function(t){return c(t,e)}).join(",")+"]"+(s?","+s:"")}}function Mi(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(1===i.type){if(Ii(i)||i.ifConditions&&i.ifConditions.some(function(t){return Ii(t.block)})){n=2;break}(e(i)||i.ifConditions&&i.ifConditions.some(function(t){return e(t.block)}))&&(n=1)}}return n}function Ii(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function $i(t,e){return 1===t.type?hi(t,e):3===t.type&&t.isComment?Di(t):Ti(t)}function Ti(t){return"_v("+(2===t.type?t.expression:ji(JSON.stringify(t.text)))+")"}function Di(t){return"_e("+JSON.stringify(t.text)+")"}function ki(t,e){var n=t.slotName||'"default"',r=xi(t,e),i="_t("+n+(r?","+r:""),o=t.attrs&&"{"+t.attrs.map(function(t){return Wi(t.name)+":"+t.value}).join(",")+"}",a=t.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}function Li(t,e,n){var r=e.inlineTemplate?null:xi(e,n,!0);return"_c("+t+","+Ei(e,n)+(r?","+r:"")+")"}function Ri(t){for(var e="",n=0;n<t.length;n++){var r=t[n];e+='"'+r.name+'":'+ji(r.value)+","}return e.slice(0,-1)}function ji(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Pi(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),E}}function Ni(t){var e=Object.create(null);return function(n,r,i){r=r||{};var o=r.delimiters?String(r.delimiters)+n:n;if(e[o])return e[o];var a=t(n,r),s={},c=[];return s.render=Pi(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(t){return Pi(t,c)}),e[o]=s}}function Fi(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}var Ui=Object.prototype.toString,Bi=p("slot,component",!0),Hi=p("key,ref,slot,is"),Gi=Object.prototype.hasOwnProperty,Vi=/-(\w)/g,Wi=m(function(t){return t.replace(Vi,function(t,e){return e?e.toUpperCase():""})}),zi=m(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),Ji=/\B([A-Z])/g,qi=m(function(t){return t.replace(Ji,"-$1").toLowerCase()}),Ki=function(t,e,n){return!1},Zi=function(t){return t},Yi="data-server-rendered",Xi=["component","directive","filter"],Qi=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],to={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Ki,isReservedAttr:Ki,isUnknownElement:Ki,getTagNamespace:E,parsePlatformTagName:Zi,mustUseProp:Ki,_lifecycleHooks:Qi},eo=Object.freeze({}),no=/[^\w.$]/,ro=E,io="__proto__"in{},oo="undefined"!=typeof window,ao=oo&&window.navigator.userAgent.toLowerCase(),so=ao&&/msie|trident/.test(ao),co=ao&&ao.indexOf("msie 9.0")>0,uo=ao&&ao.indexOf("edge/")>0,lo=ao&&ao.indexOf("android")>0,fo=ao&&/iphone|ipad|ipod|ios/.test(ao),po=ao&&/chrome\/\d+/.test(ao)&&!uo,vo={}.watch,ho=!1;if(oo)try{var mo={};Object.defineProperty(mo,"passive",{get:function(){ho=!0}}),window.addEventListener("test-passive",null,mo)}catch(t){}var _o,yo,go=function(){return void 0===_o&&(_o=!oo&&void 0!==t&&"server"===t.process.env.VUE_ENV),_o},bo=oo&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Eo="undefined"!=typeof Symbol&&I(Symbol)&&"undefined"!=typeof Reflect&&I(Reflect.ownKeys),Co=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e<t.length;e++)t[e]()}var e,n=[],r=!1;if("undefined"!=typeof Promise&&I(Promise)){var i=Promise.resolve(),o=function(t){console.error(t)};e=function(){i.then(t).catch(o),fo&&setTimeout(E)}}else if(so||"undefined"==typeof MutationObserver||!I(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())e=function(){setTimeout(t,0)};else{var a=1,s=new MutationObserver(t),c=document.createTextNode(String(a));s.observe(c,{characterData:!0}),e=function(){a=(a+1)%2,c.data=String(a)}}return function(t,i){var o;if(n.push(function(){if(t)try{t.call(i)}catch(t){M(t,i,"nextTick")}else o&&o(i)}),r||(r=!0,e()),!t&&"undefined"!=typeof Promise)return new Promise(function(t,e){o=t})}}();yo="undefined"!=typeof Set&&I(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var wo=0,Oo=function(){this.id=wo++,this.subs=[]};Oo.prototype.addSub=function(t){this.subs.push(t)},Oo.prototype.removeSub=function(t){v(this.subs,t)},Oo.prototype.depend=function(){Oo.target&&Oo.target.addDep(this)},Oo.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},Oo.target=null;var So=[],Ao=Array.prototype,xo=Object.create(Ao);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=Ao[t];A(xo,t,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var Mo=Object.getOwnPropertyNames(xo),Io={shouldConvert:!0},$o=function(t){if(this.value=t,this.dep=new Oo,this.vmCount=0,A(t,"__ob__",this),Array.isArray(t)){(io?D:k)(t,xo,Mo),this.observeArray(t)}else this.walk(t)};$o.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)R(t,e[n],t[e[n]])},$o.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)L(t[e])};var To=to.optionMergeStrategies;To.data=function(t,e,n){return n?U(t,e,n):e&&"function"!=typeof e?t:U.call(this,t,e)},Qi.forEach(function(t){To[t]=B}),Xi.forEach(function(t){To[t+"s"]=H}),To.watch=function(t,e){if(t===vo&&(t=void 0),e===vo&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var n={};g(n,t);for(var r in e){var i=n[r],o=e[r];i&&!Array.isArray(i)&&(i=[i]),n[r]=i?i.concat(o):Array.isArray(o)?o:[o]}return n},To.props=To.methods=To.inject=To.computed=function(t,e){if(!t)return e;var n=Object.create(null);return g(n,t),e&&g(n,e),n},To.provide=U;var Do=function(t,e){return void 0===e?t:e},ko=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.functionalContext=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},Lo={child:{}};Lo.child.get=function(){return this.componentInstance},Object.defineProperties(ko.prototype,Lo);var Ro,jo=function(t){void 0===t&&(t="");var e=new ko;return e.text=t,e.isComment=!0,e},Po=m(function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,plain:!(e||n||r),once:n,capture:r,passive:e}}),No=null,Fo=[],Uo=[],Bo={},Ho=!1,Go=!1,Vo=0,Wo=0,zo=function(t,e,n,r){this.vm=t,t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Wo,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new yo,this.newDepIds=new yo,this.expression="","function"==typeof e?this.getter=e:(this.getter=x(e),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};zo.prototype.get=function(){$(this);var t,e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;M(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&jt(t),T(),this.cleanupDeps()}return t},zo.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},zo.prototype.cleanupDeps=function(){for(var t=this,e=this.deps.length;e--;){var n=t.deps[e];t.newDepIds.has(n.id)||n.removeSub(t)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},zo.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Rt(this)},zo.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){M(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},zo.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},zo.prototype.depend=function(){for(var t=this,e=this.deps.length;e--;)t.deps[e].depend()},zo.prototype.teardown=function(){var t=this;if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var e=this.deps.length;e--;)t.deps[e].removeSub(t);this.active=!1}};var Jo=new yo,qo={enumerable:!0,configurable:!0,get:E,set:E},Ko={lazy:!0},Zo={init:function(t,e,n,r){if(!t.componentInstance||t.componentInstance._isDestroyed){(t.componentInstance=ee(t,No,n,r)).$mount(e?t.elm:void 0,e)}else if(t.data.keepAlive){var i=t;Zo.prepatch(i,i)}},prepatch:function(t,e){var n=e.componentOptions;St(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,It(n,"mounted")),t.data.keepAlive&&(e._isMounted?kt(n):xt(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Mt(e,!0):e.$destroy())}},Yo=Object.keys(Zo),Xo=1,Qo=2,ta=0;!function(t){t.prototype._init=function(t){var e=this;e._uid=ta++,e._isVue=!0,t&&t._isComponent?ge(e,t):e.$options=z(be(e.constructor),t||{},e),e._renderProxy=e,e._self=e,wt(e),mt(e),ye(e),It(e,"beforeCreate"),Zt(e),Ft(e),Kt(e),It(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(we),function(t){var e={};e.get=function(){return this._data};var n={};n.get=function(){return this._props},Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=j,t.prototype.$delete=P,t.prototype.$watch=function(t,e,n){var r=this;if(c(e))return qt(r,t,e,n);n=n||{},n.user=!0;var i=new zo(r,t,e,n);return n.immediate&&e.call(r,i.value),function(){i.teardown()}}}(we),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this,i=this;if(Array.isArray(t))for(var o=0,a=t.length;o<a;o++)r.$on(t[o],n);else(i._events[t]||(i._events[t]=[])).push(n),e.test(t)&&(i._hasHookEvent=!0);return i},t.prototype.$once=function(t,e){function n(){r.$off(t,n),e.apply(r,arguments)}var r=this;return n.fn=e,r.$on(t,n),r},t.prototype.$off=function(t,e){var n=this,r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(t)){for(var i=0,o=t.length;i<o;i++)n.$off(t[i],e);return r}var a=r._events[t];if(!a)return r;if(1===arguments.length)return r._events[t]=null,r;if(e)for(var s,c=a.length;c--;)if((s=a[c])===e||s.fn===e){a.splice(c,1);break}return r},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?y(n):n;for(var r=y(arguments,1),i=0,o=n.length;i<o;i++)try{n[i].apply(e,r)}catch(n){M(n,e,'event handler for "'+t+'"')}}return e}}(we),function(t){t.prototype._update=function(t,e){var n=this;n._isMounted&&It(n,"beforeUpdate");var r=n.$el,i=n._vnode,o=No;No=n,n._vnode=t,i?n.$el=n.__patch__(i,t):(n.$el=n.__patch__(n.$el,t,e,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),No=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){It(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||v(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),It(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null)}}}(we),function(t){t.prototype.$nextTick=function(t){return Co(t,this)},t.prototype._render=function(){var t=this,e=t.$options,n=e.render,r=e.staticRenderFns,i=e._parentVnode;if(t._isMounted)for(var o in t.$slots){var a=t.$slots[o];a._rendered&&(t.$slots[o]=tt(a,!0))}t.$scopedSlots=i&&i.data.scopedSlots||eo,r&&!t._staticTrees&&(t._staticTrees=[]),t.$vnode=i;var s;try{s=n.call(t._renderProxy,t.$createElement)}catch(e){M(e,t,"render function"),s=t._vnode}return s instanceof ko||(s=jo()),s.parent=i,s},t.prototype._o=ve,t.prototype._n=d,t.prototype._s=f,t.prototype._l=ce,t.prototype._t=ue,t.prototype._q=C,t.prototype._i=w,t.prototype._m=pe,t.prototype._f=le,t.prototype._k=fe,t.prototype._b=de,t.prototype._v=X,t.prototype._e=jo,t.prototype._u=Ct,t.prototype._g=_e}(we);var ea=[String,RegExp,Array],na={name:"keep-alive",abstract:!0,props:{include:ea,exclude:ea},created:function(){this.cache=Object.create(null)},destroyed:function(){var t=this;for(var e in t.cache)ke(t.cache[e])},watch:{include:function(t){De(this.cache,this._vnode,function(e){return Te(t,e)})},exclude:function(t){De(this.cache,this._vnode,function(e){return!Te(t,e)})}},render:function(){var t=ht(this.$slots.default),e=t&&t.componentOptions;if(e){var n=$e(e);if(n&&(this.include&&!Te(this.include,n)||this.exclude&&Te(this.exclude,n)))return t;var r=null==t.key?e.Ctor.cid+(e.tag?"::"+e.tag:""):t.key;this.cache[r]?t.componentInstance=this.cache[r].componentInstance:this.cache[r]=t,t.data.keepAlive=!0}return t}},ra={KeepAlive:na};!function(t){var e={};e.get=function(){return to},Object.defineProperty(t,"config",e),t.util={warn:ro,extend:g,mergeOptions:z,defineReactive:R},t.set=j,t.delete=P,t.nextTick=Co,t.options=Object.create(null),Xi.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,g(t.options.components,ra),Oe(t),Se(t),Ae(t),Ie(t)}(we),Object.defineProperty(we.prototype,"$isServer",{get:go}),Object.defineProperty(we.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),we.version="2.4.4";var ia,oa,aa,sa,ca,ua,la,fa,da,pa=p("style,class"),va=p("input,textarea,option,select,progress"),ha=function(t,e,n){return"value"===n&&va(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},ma=p("contenteditable,draggable,spellcheck"),_a=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),ya="http://www.w3.org/1999/xlink",ga=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},ba=function(t){return ga(t)?t.slice(6,t.length):""},Ea=function(t){return null==t||!1===t},Ca={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},wa=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Oa=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Sa=function(t){return"pre"===t},Aa=function(t){return wa(t)||Oa(t)},xa=Object.create(null),Ma=p("text,number,password,search,email,tel,url"),Ia=Object.freeze({createElement:Ve,createElementNS:We,createTextNode:ze,createComment:Je,insertBefore:qe,removeChild:Ke,appendChild:Ze,parentNode:Ye,nextSibling:Xe,tagName:Qe,setTextContent:tn,setAttribute:en}),$a={create:function(t,e){nn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(nn(t,!0),nn(e))},destroy:function(t){nn(t,!0)}},Ta=new ko("",{},[]),Da=["create","activate","update","remove","destroy"],ka={create:sn,update:sn,destroy:function(t){sn(t,Ta)}},La=Object.create(null),Ra=[$a,ka],ja={create:dn,update:dn},Pa={create:vn,update:vn},Na=/[\w).+\-_$\]]/,Fa="__r",Ua="__c",Ba={create:Bn,update:Bn},Ha={create:Hn,update:Hn},Ga=m(function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach(function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}),Va=/^--/,Wa=/\s*!important$/,za=function(t,e,n){if(Va.test(e))t.style.setProperty(e,n);else if(Wa.test(n))t.style.setProperty(e,n.replace(Wa,""),"important");else{var r=qa(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},Ja=["Webkit","Moz","ms"],qa=m(function(t){if(da=da||document.createElement("div").style,"filter"!==(t=Wi(t))&&t in da)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<Ja.length;n++){var r=Ja[n]+e;if(r in da)return r}}),Ka={create:Kn,update:Kn},Za=m(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),Ya=oo&&!co,Xa="transition",Qa="animation",ts="transition",es="transitionend",ns="animation",rs="animationend";Ya&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ts="WebkitTransition",es="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ns="WebkitAnimation",rs="webkitAnimationEnd"));var is=oo&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout,os=/\b(transform|all)(,|$)/,as=oo?{create:lr,activate:lr,remove:function(t,e){!0!==t.data.show?sr(t,e):e()}}:{},ss=[ja,Pa,Ba,Ha,Ka,as],cs=ss.concat(Ra),us=function(t){function e(t){return new ko(T.tagName(t).toLowerCase(),{},[],void 0,t)}function o(t,e){function n(){0==--n.listeners&&s(t)}return n.listeners=e,n}function s(t){var e=T.parentNode(t);r(e)&&T.removeChild(e,t)}function c(t,e,n,o,a){if(t.isRootInsert=!a,!u(t,e,n,o)){var s=t.data,c=t.children,l=t.tag;r(l)?(t.elm=t.ns?T.createElementNS(t.ns,l):T.createElement(l,t),_(t),v(t,c,e),r(s)&&m(t,e),d(n,t.elm,o)):i(t.isComment)?(t.elm=T.createComment(t.text),d(n,t.elm,o)):(t.elm=T.createTextNode(t.text),d(n,t.elm,o))}}function u(t,e,n,o){var a=t.data;if(r(a)){var s=r(t.componentInstance)&&a.keepAlive;if(r(a=a.hook)&&r(a=a.init)&&a(t,!1,n,o),r(t.componentInstance))return l(t,e),i(s)&&f(t,e,n,o),!0}}function l(t,e){r(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,h(t)?(m(t,e),_(t)):(nn(t),e.push(t))}function f(t,e,n,i){for(var o,a=t;a.componentInstance;)if(a=a.componentInstance._vnode,r(o=a.data)&&r(o=o.transition)){for(o=0;o<I.activate.length;++o)I.activate[o](Ta,a);e.push(a);break}d(n,t.elm,i)}function d(t,e,n){r(t)&&(r(n)?n.parentNode===t&&T.insertBefore(t,e,n):T.appendChild(t,e))}function v(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)c(e[r],n,t.elm,null,!0);else a(t.text)&&T.appendChild(t.elm,T.createTextNode(t.text))}function h(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return r(t.tag)}function m(t,e){for(var n=0;n<I.create.length;++n)I.create[n](Ta,t);x=t.data.hook,r(x)&&(r(x.create)&&x.create(Ta,t),r(x.insert)&&e.push(t))}function _(t){for(var e,n=t;n;)r(e=n.context)&&r(e=e.$options._scopeId)&&T.setAttribute(t.elm,e,""),n=n.parent;r(e=No)&&e!==t.context&&r(e=e.$options._scopeId)&&T.setAttribute(t.elm,e,"")}function y(t,e,n,r,i,o){for(;r<=i;++r)c(n[r],o,t,e)}function g(t){var e,n,i=t.data;if(r(i))for(r(e=i.hook)&&r(e=e.destroy)&&e(t),e=0;e<I.destroy.length;++e)I.destroy[e](t);if(r(e=t.children))for(n=0;n<t.children.length;++n)g(t.children[n])}function b(t,e,n,i){for(;n<=i;++n){var o=e[n];r(o)&&(r(o.tag)?(E(o),g(o)):s(o.elm))}}function E(t,e){if(r(e)||r(t.data)){var n,i=I.remove.length+1;for(r(e)?e.listeners+=i:e=o(t.elm,i),r(n=t.componentInstance)&&r(n=n._vnode)&&r(n.data)&&E(n,e),n=0;n<I.remove.length;++n)I.remove[n](t,e);r(n=t.data.hook)&&r(n=n.remove)?n(t,e):e()}else s(t.elm)}function C(t,e,i,o,a){for(var s,u,l,f,d=0,p=0,v=e.length-1,h=e[0],m=e[v],_=i.length-1,g=i[0],E=i[_],C=!a;d<=v&&p<=_;)n(h)?h=e[++d]:n(m)?m=e[--v]:rn(h,g)?(O(h,g,o),h=e[++d],g=i[++p]):rn(m,E)?(O(m,E,o),m=e[--v],E=i[--_]):rn(h,E)?(O(h,E,o),C&&T.insertBefore(t,h.elm,T.nextSibling(m.elm)),h=e[++d],E=i[--_]):rn(m,g)?(O(m,g,o),C&&T.insertBefore(t,m.elm,h.elm),m=e[--v],g=i[++p]):(n(s)&&(s=an(e,d,v)),u=r(g.key)?s[g.key]:w(g,e,d,v),n(u)?c(g,o,t,h.elm):(l=e[u],rn(l,g)?(O(l,g,o),e[u]=void 0,C&&T.insertBefore(t,l.elm,h.elm)):c(g,o,t,h.elm)),g=i[++p]);d>v?(f=n(i[_+1])?null:i[_+1].elm,y(t,f,i,p,_,o)):p>_&&b(t,e,d,v)}function w(t,e,n,i){for(var o=n;o<i;o++){var a=e[o];if(r(a)&&rn(t,a))return o}}function O(t,e,o,a){if(t!==e){var s=e.elm=t.elm;if(i(t.isAsyncPlaceholder))return void(r(e.asyncFactory.resolved)?A(t.elm,e,o):e.isAsyncPlaceholder=!0);if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))return void(e.componentInstance=t.componentInstance);var c,u=e.data;r(u)&&r(c=u.hook)&&r(c=c.prepatch)&&c(t,e);var l=t.children,f=e.children;if(r(u)&&h(e)){for(c=0;c<I.update.length;++c)I.update[c](t,e);r(c=u.hook)&&r(c=c.update)&&c(t,e)}n(e.text)?r(l)&&r(f)?l!==f&&C(s,l,f,o,a):r(f)?(r(t.text)&&T.setTextContent(s,""),y(s,null,f,0,f.length-1,o)):r(l)?b(s,l,0,l.length-1):r(t.text)&&T.setTextContent(s,""):t.text!==e.text&&T.setTextContent(s,e.text),r(u)&&r(c=u.hook)&&r(c=c.postpatch)&&c(t,e)}}function S(t,e,n){if(i(n)&&r(t.parent))t.parent.data.pendingInsert=e;else for(var o=0;o<e.length;++o)e[o].data.hook.insert(e[o])}function A(t,e,n){if(i(e.isComment)&&r(e.asyncFactory))return e.elm=t,e.isAsyncPlaceholder=!0,!0;e.elm=t;var o=e.tag,a=e.data,s=e.children;if(r(a)&&(r(x=a.hook)&&r(x=x.init)&&x(e,!0),r(x=e.componentInstance)))return l(e,n),!0;if(r(o)){if(r(s))if(t.hasChildNodes())if(r(x=a)&&r(x=x.domProps)&&r(x=x.innerHTML)){if(x!==t.innerHTML)return!1}else{for(var c=!0,u=t.firstChild,f=0;f<s.length;f++){if(!u||!A(u,s[f],n)){c=!1;break}u=u.nextSibling}if(!c||u)return!1}else v(e,s,n);if(r(a))for(var d in a)if(!D(d)){m(e,n);break}}else t.data!==e.text&&(t.data=e.text);return!0}var x,M,I={},$=t.modules,T=t.nodeOps;for(x=0;x<Da.length;++x)for(I[Da[x]]=[],M=0;M<$.length;++M)r($[M][Da[x]])&&I[Da[x]].push($[M][Da[x]]);var D=p("attrs,style,class,staticClass,staticStyle,key");return function(t,o,a,s,u,l){if(n(o))return void(r(t)&&g(t));var f=!1,d=[];if(n(t))f=!0,c(o,d,u,l);else{var p=r(t.nodeType);if(!p&&rn(t,o))O(t,o,d,s);else{if(p){if(1===t.nodeType&&t.hasAttribute(Yi)&&(t.removeAttribute(Yi),a=!0),i(a)&&A(t,o,d))return S(o,d,!0),t;t=e(t)}var v=t.elm,m=T.parentNode(v);if(c(o,d,v._leaveCb?null:m,T.nextSibling(v)),r(o.parent))for(var _=o.parent,y=h(o);_;){for(var E=0;E<I.destroy.length;++E)I.destroy[E](_);if(_.elm=o.elm,y){for(var C=0;C<I.create.length;++C)I.create[C](Ta,_);var w=_.data.hook.insert;if(w.merged)for(var x=1;x<w.fns.length;x++)w.fns[x]()}_=_.parent}r(m)?b(m,[t],0,0):r(t.tag)&&g(t)}}return S(o,d,f),o.elm}}({nodeOps:Ia,modules:cs});co&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&_r(t,"input")});var ls={inserted:function(t,e,n){"select"===n.tag?(fr(t,e,n.context),t._vOptions=[].map.call(t.options,vr)):("textarea"===n.tag||Ma(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("change",mr),lo||(t.addEventListener("compositionstart",hr),t.addEventListener("compositionend",mr)),co&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){fr(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,vr);if(i.some(function(t,e){return!C(t,r[e])})){(t.multiple?e.value.some(function(t){return pr(t,i)}):e.value!==e.oldValue&&pr(e.value,i))&&_r(t,"change")}}}},fs={bind:function(t,e,n){var r=e.value;n=yr(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ar(n,function(){t.style.display=o})):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;r!==e.oldValue&&(n=yr(n),n.data&&n.data.transition?(n.data.show=!0,r?ar(n,function(){t.style.display=t.__vOriginalDisplay}):sr(n,function(){t.style.display="none"})):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},ds={model:ls,show:fs},ps={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]},vs={name:"transition",props:ps,abstract:!0,render:function(t){var e=this,n=this.$options._renderChildren;if(n&&(n=n.filter(function(t){return t.tag||vt(t)}),n.length)){var r=this.mode,i=n[0];if(Cr(this.$vnode))return i;var o=gr(i);if(!o)return i;if(this._leaving)return Er(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=br(this),u=this._vnode,l=gr(u);if(o.data.directives&&o.data.directives.some(function(t){return"show"===t.name})&&(o.data.show=!0),l&&l.data&&!wr(o,l)&&!vt(l)){var f=l&&(l.data.transition=g({},c));if("out-in"===r)return this._leaving=!0,it(f,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),Er(t,i);if("in-out"===r){if(vt(o))return u;var d,p=function(){d()};it(c,"afterEnter",p),it(c,"enterCancelled",p),it(f,"delayLeave",function(t){d=t})}}return i}}},hs=g({tag:String,moveClass:String},ps);delete hs.mode;var ms={props:hs,render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=br(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?u.push(d):l.push(d)}this.kept=t(e,null,u),this.removed=l}return t(e,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";if(t.length&&this.hasMove(t[0].elm,e)){t.forEach(Or),t.forEach(Sr),t.forEach(Ar);var n=document.body;n.offsetHeight;t.forEach(function(t){if(t.data.moved){var n=t.elm,r=n.style;tr(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(es,n._moveCb=function t(r){r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(es,t),n._moveCb=null,er(n,e))})}})}},methods:{hasMove:function(t,e){if(!Ya)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){Yn(n,t)}),Zn(n,e),n.style.display="none",this.$el.appendChild(n);var r=rr(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}},_s={Transition:vs,TransitionGroup:ms};we.config.mustUseProp=ha,we.config.isReservedTag=Aa,we.config.isReservedAttr=pa,we.config.getTagNamespace=Be,we.config.isUnknownElement=He,g(we.options.directives,ds),g(we.options.components,_s),we.prototype.__patch__=oo?us:E,we.prototype.$mount=function(t,e){return t=t&&oo?Ge(t):void 0,Ot(this,t,e)},setTimeout(function(){to.devtools&&bo&&bo.emit("init",we)},0);var ys,gs=!!oo&&function(t,e){var n=document.createElement("div");return n.innerHTML='<div a="'+t+'"/>',n.innerHTML.indexOf(e)>0}("\n","&#10;"),bs=/\{\{((?:.|\n)+?)\}\}/g,Es=/[-.*+?^${}()|[\]\/\\]/g,Cs=m(function(t){var e=t[0].replace(Es,"\\$&"),n=t[1].replace(Es,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),ws={staticKeys:["staticClass"],transformNode:Mr,genData:Ir},Os={staticKeys:["staticStyle"],transformNode:$r,genData:Tr},Ss=[ws,Os],As={model:kn,text:Dr,html:kr},xs=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),Ms=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Is=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),$s={expectHTML:!0,modules:Ss,directives:As,isPreTag:Sa,isUnaryTag:xs,mustUseProp:ha,canBeLeftOpenTag:Ms,isReservedTag:Aa,getTagNamespace:Be,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(Ss)},Ts={decode:function(t){return ys=ys||document.createElement("div"),ys.innerHTML=t,ys.textContent}},Ds=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ks="[a-zA-Z_][\\w\\-\\.]*",Ls="((?:"+ks+"\\:)?"+ks+")",Rs=new RegExp("^<"+Ls),js=/^\s*(\/?)>/,Ps=new RegExp("^<\\/"+Ls+"[^>]*>"),Ns=/^<!DOCTYPE [^>]+>/i,Fs=/^<!--/,Us=/^<!\[/,Bs=!1;"x".replace(/x(.)?/g,function(t,e){Bs=""===e});var Hs,Gs,Vs,Ws,zs,Js,qs,Ks,Zs,Ys,Xs=p("script,style,textarea",!0),Qs={},tc={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n"},ec=/&(?:lt|gt|quot|amp);/g,nc=/&(?:lt|gt|quot|amp|#10);/g,rc=p("pre,textarea",!0),ic=function(t,e){return t&&rc(t)&&"\n"===e[0]},oc=/^@|^v-on:/,ac=/^v-|^@|^:/,sc=/(.*?)\s+(?:in|of)\s+(.*)/,cc=/\((\{[^}]*\}|[^,]*),([^,]*)(?:,([^,]*))?\)/,uc=/:(.*)$/,lc=/^:|^v-bind:/,fc=/\.[^.]+/g,dc=m(Ts.decode),pc=/^xmlns:NS\d+/,vc=/^NS\d+:/,hc=m(ri),mc=/^\s*([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,_c=/^\s*[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?']|\[".*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*\s*$/,yc={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},gc=function(t){return"if("+t+")return null;"},bc={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:gc("$event.target !== $event.currentTarget"),ctrl:gc("!$event.ctrlKey"),shift:gc("!$event.shiftKey"),alt:gc("!$event.altKey"),meta:gc("!$event.metaKey"),left:gc("'button' in $event && $event.button !== 0"),middle:gc("'button' in $event && $event.button !== 1"),right:gc("'button' in $event && $event.button !== 2")},Ec={on:di,bind:pi,cloak:E},Cc=function(t){this.options=t,this.warn=t.warn||_n,this.transforms=yn(t.modules,"transformCode"),this.dataGenFns=yn(t.modules,"genData"),this.directives=g(g({},Ec),t.directives);var e=t.isReservedTag||Ki;this.maybeComponent=function(t){return!e(t.tag)},this.onceId=0,this.staticRenderFns=[]},wc=(new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)"),function(t){return function(e){function n(n,r){var i=Object.create(e),o=[],a=[];if(i.warn=function(t,e){(e?a:o).push(t)},r){r.modules&&(i.modules=(e.modules||[]).concat(r.modules)),r.directives&&(i.directives=g(Object.create(e.directives),r.directives));for(var s in r)"modules"!==s&&"directives"!==s&&(i[s]=r[s])}var c=t(n,i);return c.errors=o,c.tips=a,c}return{compile:n,compileToFunctions:Ni(n)}}}(function(t,e){var n=jr(t.trim(),e);ni(n,e);var r=vi(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}})),Oc=wc($s),Sc=Oc.compileToFunctions,Ac=m(function(t){var e=Ge(t);return e&&e.innerHTML}),xc=we.prototype.$mount;we.prototype.$mount=function(t,e){if((t=t&&Ge(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=Ac(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=Fi(t));if(r){var i=Sc(r,{shouldDecodeNewlines:gs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return xc.call(this,t,e)},we.compile=Sc,e.default=we}.call(e,n(35))},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(36),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,i.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(11),i=n(2).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(36),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";var r=n(75)(!0);n(39)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(42),i=n(26);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(25),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(43)("keys"),i=n(44);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(8).f,i=n(16),o=n(4)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(26);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(48),i=n(4)("iterator"),o=n(12);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=i(e),this.reject=i(n)}var i=n(15);t.exports.f=function(t){return new r(t)}},function(t,e,n){"use strict";e.__esModule=!0;var r=n(123),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){t.exports={default:n(65),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.api=void 0;var i=n(38),o=r(i),a=n(23),s=r(a),c=n(72),u=r(c),l=n(18),f=r(l),d=n(19),p=r(d),v=n(56),h=n(58),m=function(){function t(){(0,f.default)(this,t);var e=Joomla.getOptions("com_media",{});if(void 0===e.apiBaseUrl)throw new TypeError("Media api baseUrl is not defined");if(void 0===e.csrfToken)throw new TypeError("Media api csrf token is not defined");this._baseUrl=e.apiBaseUrl,this._csrfToken=Joomla.getOptions("csrf.token")}return(0,p.default)(t,[{key:"getContents",value:function(t,e){var n=this;return new u.default(function(r,i){if(-1!==["0","1"].indexOf(e))throw"Invalid parameter";var o=n._baseUrl+"&task=api.files&path="+t+(e?"&url="+e:"");Joomla.request({url:o,method:"GET",headers:{"Content-Type":"application/json"},onSuccess:function(t){r(n._normalizeArray(JSON.parse(t).data))},onError:function(t){i(t)}})}).catch(this._handleError)}},{key:"createDirectory",value:function(t,e){var n=this;return new u.default(function(r,i){var a,c=n._baseUrl+"&task=api.files&path="+e,u=(a={},(0,s.default)(a,n._csrfToken,"1"),(0,s.default)(a,"name",t),a);Joomla.request({url:c,method:"POST",data:(0,o.default)(u),headers:{"Content-Type":"application/json"},onSuccess:function(t){v.notifications.success("COM_MEDIA_CREATE_NEW_FOLDER_SUCCESS"),r(n._normalizeItem(JSON.parse(t).data))},onError:function(t){v.notifications.error("COM_MEDIA_CREATE_NEW_FOLDER_ERROR"),i(t)}})}).catch(this._handleError)}},{key:"upload",value:function(t,e,n,r){var i=this;return new u.default(function(a,c){var u,l=i._baseUrl+"&task=api.files&path="+e,f=(u={},(0,s.default)(u,i._csrfToken,"1"),(0,s.default)(u,"name",t),(0,s.default)(u,"content",n),u);!0===r&&(f.override=!0),Joomla.request({url:l,method:"POST",data:(0,o.default)(f),headers:{"Content-Type":"application/json"},onSuccess:function(t){v.notifications.success("COM_MEDIA_UPDLOAD_SUCCESS"),a(i._normalizeItem(JSON.parse(t).data))},onError:function(t){c(t)}})}).catch(this._handleError)}},{key:"rename",value:function(t,e){var n=this;return new u.default(function(r,i){var a,c=n._baseUrl+"&task=api.files&path="+t,u=(a={},(0,s.default)(a,n._csrfToken,"1"),(0,s.default)(a,"newPath",e),a);Joomla.request({url:c,method:"PUT",data:(0,o.default)(u),headers:{"Content-Type":"application/json"},onSuccess:function(t){v.notifications.success("COM_MEDIA_RENAME_SUCCESS"),r(n._normalizeItem(JSON.parse(t).data))},onError:function(t){v.notifications.error("COM_MEDIA_RENAME_ERROR"),i(t)}})}).catch(this._handleError)}},{key:"delete",value:function(t){var e=this;return new u.default(function(n,r){var i=e._baseUrl+"&task=api.files&path="+t,a=(0,s.default)({},e._csrfToken,"1");Joomla.request({url:i,method:"DELETE",data:(0,o.default)(a),headers:{"Content-Type":"application/json"},onSuccess:function(){v.notifications.success("COM_MEDIA_DELETE_SUCCESS"),n()},onError:function(t){v.notifications.error("COM_MEDIA_DELETE_ERROR"),r(t)}})}).catch(this._handleError)}},{key:"_normalizeItem",value:function(t){return"dir"===t.type&&(t.directories=[],t.files=[]),t.directory=h.dirname(t.path),-1!==t.directory.indexOf(":",t.directory.length-1)&&(t.directory+="/"),t}},{key:"_normalizeArray",value:function(t){var e=this;return{directories:t.filter(function(t){return"dir"===t.type}).map(function(t){return e._normalizeItem(t)}),files:t.filter(function(t){return"file"===t.type}).map(function(t){return e._normalizeItem(t)})}}},{key:"_handleError",value:function(t){switch(t.status){case 409:break;case 404:v.notifications.error("COM_MEDIA_ERROR_NOT_FOUND");break;case 401:v.notifications.error("COM_MEDIA_ERROR_NOT_AUTHENTICATED");break;case 403:v.notifications.error("COM_MEDIA_ERROR_NOT_AUTHORIZED");break;case 500:v.notifications.error("COM_MEDIA_SERVER_ERROR");break;default:v.notifications.error("COM_MEDIA_ERROR")}throw t}}]),t}();e.api=new m},function(t,e,n){t.exports={default:n(71),__esModule:!0}},function(t,e,n){"use strict";var r=n(40),i=n(6),o=n(76),a=n(7),s=n(16),c=n(12),u=n(77),l=n(30),f=n(83),d=n(4)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,m,_,y){u(n,e,h);var g,b,E,C=function(t){if(!p&&t in A)return A[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==m,S=!1,A=t.prototype,x=A[d]||A["@@iterator"]||m&&A[m],M=x||C(m),I=m?O?C("entries"):M:void 0,$="Array"==e?A.entries||x:x;if($&&(E=f($.call(new t)))!==Object.prototype&&E.next&&(l(E,w,!0),r||s(E,d)||a(E,d,v)),O&&x&&"values"!==x.name&&(S=!0,M=function(){return x.call(this)}),r&&!y||!p&&!S&&A[d]||a(A,d,M),c[e]=M,c[w]=v,m)if(g={values:O?M:C("values"),keys:_?M:C("keys"),entries:I},y)for(b in g)b in A||o(A,b,g[b]);else i(i.P+i.F*(p||S),e,g);return g}},function(t,e){t.exports=!0},function(t,e,n){var r=n(80),i=n(45);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(2),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){n(84);for(var r=n(2),i=n(7),o=n(12),a=n(4)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&i(f,a,u),o[u]=o.Array}},function(t,e,n){var r=n(17),i=n(4)("toStringTag"),o="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),i))?n:o?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var r=n(5);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(12),i=n(4)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(5),i=n(15),o=n(4)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[o])?e:i(n)}},function(t,e,n){var r,i,o,a=n(10),s=n(90),c=n(46),u=n(21),l=n(2),f=l.process,d=l.setImmediate,p=l.clearImmediate,v=l.MessageChannel,h=l.Dispatch,m=0,_={},y=function(){var t=+this;if(_.hasOwnProperty(t)){var e=_[t];delete _[t],e()}},g=function(t){y.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return _[++m]=function(){s("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete _[t]},"process"==n(17)(f)?r=function(t){f.nextTick(a(y,t,1))}:h&&h.now?r=function(t){h.now(a(y,t,1))}:v?(i=new v,o=i.port2,i.port1.onmessage=g,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",g,!1)):r="onreadystatechange"in u("script")?function(t){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:p}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(5),i=n(11),o=n(33);t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(4)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.notifications=void 0;var i=n(57),o=r(i),a=n(18),s=r(a),c=n(19),u=r(c),l=function(){function t(){(0,s.default)(this,t)}return(0,u.default)(t,[{key:"success",value:function(t,e){f.notify(t,(0,o.default)({level:"success",dismiss:!0},e))}},{key:"error",value:function(t,e){f.notify(t,(0,o.default)({level:"danger",dismiss:!0},e))}},{key:"ask",value:function(t,e){return window.confirm(t)}},{key:"notify",value:function(t,e){var n=document.createElement("joomla-alert");n.setAttribute("level",e.level||"info"),n.setAttribute("dismiss",e.dismiss||!0),n.setAttribute("auto-dismiss",e.autoDismiss||!0),n.innerHTML=Joomla.JText._(t,t)||"",document.getElementById("system-message").appendChild(n)}}]),t}(),f=e.notifications=new l},function(t,e,n){t.exports={default:n(96),__esModule:!0}},function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(t){return i.exec(t).slice(1)};e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return e=n(r(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),o="/"===a(t,-1);return t=n(r(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&o&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}for(var u=[],c=s;c<i.length;c++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=o(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},e.basename=function(t,e){var n=o(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){return o(t)[3]};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(e,n(101))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(128),o=r(i),a=n(131),s=r(a),c=n(134),u=r(c),l=n(137),f=r(l),d=n(140),p=r(d),v=n(1),h=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(v);e.default={functional:!0,props:["item"],render:function(t,e){function n(){return i.state.selectedItems.some(function(t){return t.path===a.path})}function r(t){var e={path:!1,thumb:!1,fileType:!!a.mime_type&&a.mime_type,extension:!!a.extension&&a.extension};if("file"===a.type){e.path=a.path,e.thumb=!!a.thumb&&a.thumb;var r=new CustomEvent("onMediaFileSelected",{bubbles:!0,cancelable:!1,detail:e});window.parent.document.dispatchEvent(r)}if(!n())return t.shiftKey||13===t.keyCode||i.commit(h.UNSELECT_ALL_BROWSER_ITEMS),void i.commit(h.SELECT_BROWSER_ITEM,a);i.state.selectedItems.length>1&&(i.commit(h.UNSELECT_ALL_BROWSER_ITEMS),i.commit(h.SELECT_BROWSER_ITEM,a))}var i=e.parent.$store,a=e.props.item;return t("div",{class:{"media-browser-item":!0,selected:n()},on:{click:r}},[t(function(){if("table"==i.state.listView)return p.default;var t=["jpg","jpeg","png","gif"],e=["mp4"];return"dir"===a.type?o.default:a.extension&&-1!==t.indexOf(a.extension.toLowerCase())?u.default:a.extension&&-1!==e.indexOf(a.extension.toLowerCase())?f.default:s.default}(),{props:e.props})])}}},function(t,e,n){"use strict";var r=n(14);r="default"in r?r.default:r;/^2\./.test(r.version)||r.util.warn("VueFocus 2.1.0 only supports Vue 2.x, and does not support Vue "+r.version);var i={inserted:function(t,e){e.value?t.focus():t.blur()},componentUpdated:function(t,e){e.modifiers.lazy&&Boolean(e.value)===Boolean(e.oldValue)||(e.value?t.focus():t.blur())}},o={directives:{focus:i}};e.version="2.1.0",e.focus=i,e.mixin=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.persistedStateOptions={key:"joomla.mediamanager",paths:["selectedDirectory","showInfoBar","listView","gridSize"],storage:window.sessionStorage}},function(t,e,n){n(63),t.exports=n(175)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i=n(14),o=r(i),a=n(64),s=r(a),c=n(69),u=r(c),l=n(103),f=r(l),d=n(106),p=r(d),v=n(109),h=r(v),m=n(112),_=r(m),y=n(115),g=r(y),b=n(118),E=r(b),C=n(121),w=r(C),O=n(59),S=r(O),A=n(143),x=r(A),M=n(146),I=r(M),$=n(149),T=r($),D=n(152),k=r(D),L=n(155),R=r(L),j=n(158),P=r(j),N=n(164),F=r(N),U=n(165),B=r(U);o.default.use(F.default),o.default.component("media-drive",p.default),o.default.component("media-disk",f.default),o.default.component("media-tree",h.default),o.default.component("media-tree-item",_.default),o.default.component("media-toolbar",g.default),o.default.component("media-breadcrumb",E.default),o.default.component("media-browser",w.default),o.default.component("media-browser-item",S.default),o.default.component("media-modal",x.default),o.default.component("media-create-folder-modal",I.default),o.default.component("media-preview-modal",T.default),o.default.component("media-rename-modal",k.default),o.default.component("media-infobar",R.default),o.default.component("media-upload",P.default),window.MediaManager=window.MediaManager||{},window.MediaManager.Event=new s.default,document.addEventListener("DOMContentLoaded",function(t){return new o.default({el:"#com-media",store:B.default,render:function(t){return t(u.default)}})})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=r(i),a=n(19),s=r(a),c=n(14),u=r(c),l=function(){function t(){(0,o.default)(this,t),this.vue=new u.default}return(0,s.default)(t,[{key:"fire",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.vue.$emit(t,e)}},{key:"listen",value:function(t,e){this.vue.$on(t,e)}}]),t}();e.default=l},function(t,e,n){n(66);var r=n(3).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(6);r(r.S+r.F*!n(9),"Object",{defineProperty:n(8).f})},function(t,e,n){t.exports=!n(9)&&!n(20)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(11);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(0)(n(70),n(102),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=n(37);!function(t){t&&t.__esModule}(o);e.default={name:"media-app",data:function(){return{fullHeight:""}},computed:{disks:function(){return this.$store.state.disks},isModal:function(){return Joomla.getOptions("com_media",{}).isModal}},methods:{setFullHeight:function(){this.fullHeight=window.innerHeight-this.$el.getBoundingClientRect().top+"px"}},created:function(){var t=this;MediaManager.Event.listen("onClickCreateFolder",function(){return t.$store.commit(i.SHOW_CREATE_FOLDER_MODAL)}),MediaManager.Event.listen("onClickDelete",function(){return t.$store.dispatch("deleteSelectedItems")})},mounted:function(){var t=this;this.$nextTick(function(){t.setFullHeight(),window.addEventListener("resize",t.setFullHeight)}),this.$store.dispatch("getContents",this.$store.state.selectedDirectory)},beforeDestroy:function(){window.removeEventListener("resize",this.setFullHeight)}}},function(t,e,n){var r=n(3),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){t.exports={default:n(73),__esModule:!0}},function(t,e,n){n(74),n(24),n(47),n(87),n(94),n(95),t.exports=n(3).Promise},function(t,e){},function(t,e,n){var r=n(25),i=n(26);t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,n){t.exports=n(7)},function(t,e,n){"use strict";var r=n(78),i=n(22),o=n(30),a={};n(7)(a,n(4)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(5),i=n(79),o=n(45),a=n(29)("IE_PROTO"),s=function(){},c=function(){var t,e=n(21)("iframe"),r=o.length;for(e.style.display="none",n(46).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(8),i=n(5),o=n(41);t.exports=n(9)?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(16),i=n(27),o=n(81)(!1),a=n(29)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){var r=n(27),i=n(28),o=n(82);t.exports=function(t){return function(e,n,a){var s,c=r(e),u=i(c.length),l=o(a,u);if(t&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var r=n(25),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(16),i=n(31),o=n(29)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){"use strict";var r=n(85),i=n(86),o=n(12),a=n(27);t.exports=n(39)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,i,o,a,s=n(40),c=n(2),u=n(10),l=n(48),f=n(6),d=n(11),p=n(15),v=n(88),h=n(89),m=n(51),_=n(52).set,y=n(91)(),g=n(33),b=n(53),E=n(54),C=c.TypeError,w=c.process,O=c.Promise,S="process"==l(w),A=function(){},x=i=g.f,M=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[n(4)("species")]=function(t){t(A,A)};return(S||"function"==typeof PromiseRejectionEvent)&&t.then(A)instanceof e}catch(t){}}(),I=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},$=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,i=1==t._s,o=0;n.length>o;)!function(e){var n,o,a=i?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{a?(i||(2==t._h&&k(t),t._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&u.exit()),n===e.promise?c(C("Promise-chain cycle")):(o=I(n))?o.call(n,s,c):s(n)):c(r)}catch(t){c(t)}}(n[o++]);t._c=[],t._n=!1,e&&!t._h&&T(t)})}},T=function(t){_.call(c,function(){var e,n,r,i=t._v,o=D(t);if(o&&(e=b(function(){S?w.emit("unhandledRejection",i,t):(n=c.onunhandledrejection)?n({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=S||D(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},D=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!D(e.promise))return!1;return!0},k=function(t){_.call(c,function(){var e;S?w.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),$(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw C("Promise can't be resolved itself");(e=I(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,u(R,r,1),u(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,$(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};M||(O=function(t){v(this,O,"Promise","_h"),p(t),r.call(this);try{t(u(R,this,1),u(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(92)(O.prototype,{then:function(t,e){var n=x(m(this,O));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=S?w.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&$(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=u(R,t,1),this.reject=u(L,t,1)},g.f=x=function(t){return t===O||t===a?new o(t):i(t)}),f(f.G+f.W+f.F*!M,{Promise:O}),n(30)(O,"Promise"),n(93)("Promise"),a=n(3).Promise,f(f.S+f.F*!M,"Promise",{reject:function(t){var e=x(this);return(0,e.reject)(t),e.promise}}),f(f.S+f.F*(s||!M),"Promise",{resolve:function(t){return E(s&&this===a?O:this,t)}}),f(f.S+f.F*!(M&&n(55)(function(t){O.all(t).catch(A)})),"Promise",{all:function(t){var e=this,n=x(e),r=n.resolve,i=n.reject,o=b(function(){var n=[],o=0,a=1;h(t,!1,function(t){var s=o++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(t){var e=this,n=x(e),r=n.reject,i=b(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(10),i=n(49),o=n(50),a=n(5),s=n(28),c=n(32),u={},l={},e=t.exports=function(t,e,n,f,d){var p,v,h,m,_=d?function(){return t}:c(t),y=r(n,f,e?2:1),g=0;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(o(_)){for(p=s(t.length);p>g;g++)if((m=e?y(a(v=t[g])[0],v[1]):y(t[g]))===u||m===l)return m}else for(h=_.call(t);!(v=h.next()).done;)if((m=i(h,y,v.value,e))===u||m===l)return m};e.BREAK=u,e.RETURN=l},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(2),i=n(52).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(17)(a);t.exports=function(){var t,e,n,u=function(){var r,i;for(c&&(r=a.domain)&&r.exit();t;){i=t.fn,t=t.next;try{i()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(o){var l=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(s&&s.resolve){var d=s.resolve();n=function(){d.then(u)}}else n=function(){i.call(r,u)};return function(r){var i={fn:r,next:void 0};e&&(e.next=i),t||(t=i,n()),e=i}}},function(t,e,n){var r=n(7);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=n(8),a=n(9),s=n(4)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(6),i=n(3),o=n(2),a=n(51),s=n(54);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(6),i=n(33),o=n(53);r(r.S,"Promise",{try:function(t){var e=i.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){n(97),t.exports=n(3).Object.assign},function(t,e,n){var r=n(6);r(r.S+r.F,"Object",{assign:n(98)})},function(t,e,n){"use strict";var r=n(41),i=n(99),o=n(100),a=n(31),s=n(42),c=Object.assign;t.exports=!c||n(20)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,u=1,l=i.f,f=o.f;c>u;)for(var d,p=s(arguments[u++]),v=l?r(p).concat(l(p)):r(p),h=v.length,m=0;h>m;)f.call(p,d=v[m++])&&(n[d]=p[d]);return n}:c},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){h&&p&&(h=!1,p.length?v=p.concat(v):m=-1,v.length&&s())}function s(){if(!h){var t=i(a);h=!0;for(var e=v.length;e;){for(p=v,v=[];++m<e;)p&&p[m].run();m=-1,e=v.length}p=null,h=!1,o(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var l,f,d=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var p,v=[],h=!1,m=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];v.push(new c(t,e)),1!==v.length||h||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.prependListener=u,d.prependOnceListener=u,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-container row"},[n("div",{staticClass:"media-sidebar col-md-2 hidden-sm-down"},t._l(t.disks,function(t,e){return n("media-disk",{key:e,attrs:{disk:t}})})),t._v(" "),n("div",{staticClass:"col-md-10"},[n("div",{staticClass:"media-main"},[n("media-toolbar"),t._v(" "),n("media-browser"),t._v(" "),this.isModal?t._e():n("media-infobar")],1)]),t._v(" "),n("media-upload"),t._v(" "),n("media-create-folder-modal"),t._v(" "),n("media-preview-modal"),t._v(" "),n("media-rename-modal")],1)},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(104),n(105),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"media-disk",props:["disk"]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-disk"},[n("div",{staticClass:"media-disk-name"},[t._v(t._s(t.disk.displayName))]),t._v(" "),t._l(t.disk.drives,function(t,e){return n("media-drive",{key:e,attrs:{drive:t}})})],2)},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(107),n(108),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"media-drive",props:["drive"],mixins:[i.default],methods:{onDriveClick:function(){this.navigateTo(this.drive.root)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-drive",on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.onDriveClick()}}},[n("div",{staticClass:"media-drive-name"},[t._v(t._s(t.drive.displayName))]),t._v(" "),n("media-tree",{attrs:{root:t.drive.root}})],1)},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(110),n(111),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"media-tree",props:["root"],computed:{directories:function(){var t=this;return this.$store.state.directories.filter(function(e){return e.directory===t.root}).sort(function(t,e){return t.name.toUpperCase()<e.name.toUpperCase()?-1:1})}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"media-tree"},t._l(t.directories,function(t){return n("media-tree-item",{key:t.path,attrs:{item:t}})}))},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(113),n(114),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"media-tree-item",props:["item"],mixins:[i.default],computed:{isActive:function(){return this.item.path===this.$store.state.selectedDirectory},isOpen:function(){return this.$store.state.selectedDirectory.includes(this.item.path)},hasChildren:function(){return this.item.directories.length>0},iconClass:function(){return{fa:!0,"fa-folder-o":!this.isOpen,"fa-folder-open-o":this.isOpen}}},methods:{onItemClick:function(){this.navigateTo(this.item.path)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"media-tree-item",class:{active:t.isActive}},[n("a",{on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.onItemClick()}}},[n("span",{staticClass:"item-icon"},[n("span",{class:t.iconClass})]),t._v(" "),n("span",{staticClass:"item-name"},[t._v(t._s(t.item.name))])]),t._v(" "),n("transition",{attrs:{name:"slide-fade"}},[t.hasChildren?n("media-tree",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],attrs:{root:t.item.path}}):t._e()],1)],1)},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(116),n(117),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r);e.default={name:"media-toolbar",computed:{toggleListViewBtnIcon:function(){return this.isGridView?"fa fa-list":"fa fa-th"},toggleSelectAllBtnIcon:function(){return this.allItemsSelected?"fa fa fa-square-o":"fa fa-check-square-o"},isLoading:function(){return this.$store.state.isLoading},atLeastOneItemSelected:function(){return this.$store.state.selectedItems.length>0},isGridView:function(){return"grid"===this.$store.state.listView},allItemsSelected:function(){return this.$store.getters.getSelectedDirectoryContents.length===this.$store.state.selectedItems.length}},methods:{toggleInfoBar:function(){this.$store.state.showInfoBar?this.$store.commit(i.HIDE_INFOBAR):this.$store.commit(i.SHOW_INFOBAR)},decreaseGridSize:function(){this.isGridSize("xs")||this.$store.commit(i.DECREASE_GRID_SIZE)},increaseGridSize:function(){this.isGridSize("xl")||this.$store.commit(i.INCREASE_GRID_SIZE)},changeListView:function(){"grid"===this.$store.state.listView?this.$store.commit(i.CHANGE_LIST_VIEW,"table"):this.$store.commit(i.CHANGE_LIST_VIEW,"grid")},toggleSelectAll:function(){this.allItemsSelected?this.$store.commit(i.UNSELECT_ALL_BROWSER_ITEMS):this.$store.commit(i.SELECT_BROWSER_ITEMS,this.$store.getters.getSelectedDirectoryContents)},isGridSize:function(t){return this.$store.state.gridSize===t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-toolbar"},[t.isLoading?n("div",{staticClass:"media-loader"}):t._e(),t._v(" "),n("div",{staticClass:"media-view-icons"},[n("a",{staticClass:"media-toolbar-icon media-toolbar-select-all",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_SELECT_ALL")},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.toggleSelectAll()}}},[n("span",{class:t.toggleSelectAllBtnIcon,attrs:{"aria-hidden":"true"}})])]),t._v(" "),n("media-breadcrumb"),t._v(" "),n("div",{staticClass:"media-view-icons"},[t.isGridView?n("a",{staticClass:"media-toolbar-icon media-toolbar-decrease-grid-size",class:{disabled:t.isGridSize("xs")},attrs:{href:"#","aria-label":t.translate("COM_MEDIA_DECREASE_GRID")},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.decreaseGridSize()}}},[n("span",{staticClass:"fa fa-minus",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),t.isGridView?n("a",{staticClass:"media-toolbar-icon media-toolbar-increase-grid-size",class:{disabled:t.isGridSize("xl")},attrs:{href:"#","aria-label":t.translate("COM_MEDIA_INCREASE_GRID")},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.increaseGridSize()}}},[n("span",{staticClass:"fa fa-plus",attrs:{"aria-hidden":"true"}})]):t._e(),t._v(" "),n("a",{staticClass:"media-toolbar-icon media-toolbar-list-view",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_TOGGLE_LIST_VIEW")},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.changeListView()}}},[n("span",{class:t.toggleListViewBtnIcon,attrs:{"aria-hidden":"true"}})]),t._v(" "),n("a",{staticClass:"media-toolbar-icon media-toolbar-info",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_TOGGLE_INFO")},on:{click:function(e){e.stopPropagation(),e.preventDefault(),t.toggleInfoBar(e)}}},[n("span",{staticClass:"fa fa-info",attrs:{"aria-hidden":"true"}})])])],1)},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(119),n(120),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"media-breadcrumb",mixins:[i.default],computed:{crumbs:function(){var t=this,e=[],n=this.$store.state.selectedDirectory.split("/");if(n){var r=this.findDrive(n[0]);r&&(e.push(r),n.shift())}return n.filter(function(t){return 0!==t.length}).forEach(function(n){e.push({name:n,path:t.$store.state.selectedDirectory.split(n)[0]+n})}),e},isLast:function(t){return this.crumbs.indexOf(t)===this.crumbs.length-1}},methods:{onCrumbClick:function(t){this.navigateTo(t.path)},findDrive:function(t){var e=null;return this.$store.state.disks.forEach(function(n){n.drives.forEach(function(n){n.root.startsWith(t)&&(e={name:n.displayName,path:n.root})})}),e}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ol",{staticClass:"media-breadcrumb"},t._l(t.crumbs,function(e){return n("li",{staticClass:"media-breadcrumb-item"},[n("a",{on:{click:function(n){n.stopPropagation(),n.preventDefault(),t.onCrumbClick(e)}}},[t._v(t._s(e.name))])])}))},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(122),n(127),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(23),o=r(i),a=n(34),s=r(a),c=n(1),u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(c);e.default={name:"media-browser",computed:{items:function(){var t=this.$store.getters.getSelectedDirectoryDirectories.sort(function(t,e){return t.name.toUpperCase()<e.name.toUpperCase()?-1:1}),e=this.$store.getters.getSelectedDirectoryFiles.sort(function(t,e){return t.name.toUpperCase()<e.name.toUpperCase()?-1:1});return[].concat((0,s.default)(t),(0,s.default)(e))},mediaBrowserStyles:function(){return{width:this.$store.state.showInfoBar?"75%":"100%"}},listView:function(){return this.$store.state.listView},mediaBrowserGridItemsClass:function(){return(0,o.default)({},"media-browser-items-"+this.$store.state.gridSize,!0)}},methods:{unselectAllBrowserItems:function(t){(this.$refs.browserItems&&!this.$refs.browserItems.contains(t.target)||t.target===this.$refs.browserItems)&&this.$store.commit(u.UNSELECT_ALL_BROWSER_ITEMS)},onDragEnter:function(t){return t.stopPropagation(),!1},onDragOver:function(t){return t.preventDefault(),document.querySelector(".media-dragoutline").classList.add("active"),!1},upload:function(t){var e=this,n=new FileReader;n.onload=function(n){var r=n.target.result,i=r.indexOf("base64")+7,o=r.slice(i,r.length);e.$store.dispatch("uploadFile",{name:t.name,parent:e.$store.state.selectedDirectory,content:o})},n.readAsDataURL(t)},onDrop:function(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files.length>0)for(var e,n=0;e=t.dataTransfer.files[n];n++)document.querySelector(".media-dragoutline").classList.remove("active"),this.upload(e);document.querySelector(".media-dragoutline").classList.remove("active")},onDragLeave:function(t){return t.stopPropagation(),t.preventDefault(),document.querySelector(".media-dragoutline").classList.remove("active"),!1}},created:function(){document.body.addEventListener("click",this.unselectAllBrowserItems,!1)},beforeDestroy:function(){document.body.removeEventListener("click",this.unselectAllBrowserItems,!1)}}},function(t,e,n){t.exports={default:n(124),__esModule:!0}},function(t,e,n){n(24),n(125),t.exports=n(3).Array.from},function(t,e,n){"use strict";var r=n(10),i=n(6),o=n(31),a=n(49),s=n(50),c=n(28),u=n(126),l=n(32);i(i.S+i.F*!n(55)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,d=o(t),p="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,m=void 0!==h,_=0,y=l(d);if(m&&(h=r(h,v>2?arguments[2]:void 0,2)),void 0==y||p==Array&&s(y))for(e=c(d.length),n=new p(e);e>_;_++)u(n,_,m?h(d[_],_):d[_]);else for(f=y.call(d),n=new p;!(i=f.next()).done;_++)u(n,_,m?a(f,h,[i.value,_],!0):i.value);return n.length=_,n}})},function(t,e,n){"use strict";var r=n(8),i=n(22);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"browserItems",staticClass:"media-browser",style:t.mediaBrowserStyles,on:{dragenter:t.onDragEnter,drop:t.onDrop,dragover:t.onDragOver,dragleave:t.onDragLeave}},[t._m(0),t._v(" "),"table"===t.listView?n("div",{staticClass:"media-browser-table"},[n("div",{staticClass:"media-browser-table-head"},[n("ul",[n("li",{staticClass:"type"}),t._v(" "),n("li",{staticClass:"name"},[t._v(t._s(t.translate("COM_MEDIA_MEDIA_NAME")))]),t._v(" "),n("li",{staticClass:"size"},[t._v(t._s(t.translate("COM_MEDIA_MEDIA_SIZE")))]),t._v(" "),n("li",{staticClass:"dimension"},[t._v(t._s(t.translate("COM_MEDIA_MEDIA_DIMENSION")))]),t._v(" "),n("li",{staticClass:"created"},[t._v(t._s(t.translate("COM_MEDIA_MEDIA_CREATED_AT")))]),t._v(" "),n("li",{staticClass:"modified"},[t._v(t._s(t.translate("COM_MEDIA_MEDIA_MODIFIED_AT")))])])]),t._v(" "),t._l(t.items,function(t){return n("media-browser-item",{key:t.path,attrs:{item:t}})})],2):"grid"===t.listView?n("div",{staticClass:"media-browser-grid"},[n("div",{staticClass:"media-browser-items",class:t.mediaBrowserGridItemsClass},t._l(t.items,function(t){return n("media-browser-item",{key:t.path,attrs:{item:t}})}))]):t._e()])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-dragoutline"},[n("span",{staticClass:"fa fa-cloud-upload upload-icon",attrs:{"aria-hidden":"true"}}),t._v(" "),n("p",[t._v("Drop file(s) to Upload")])])}]}},function(t,e,n){var r=n(0)(n(129),n(130),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(1),a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o);e.default={name:"media-browser-item-directory",data:function(){return{showActions:!1}},props:["item"],mixins:[i.default],methods:{onPreviewDblClick:function(){this.navigateTo(this.item.path)},deleteItem:function(){this.$store.dispatch("deleteItem",this.item)},openRenameModal:function(){this.$store.commit(a.SELECT_BROWSER_ITEM,this.item),this.$store.commit(a.SHOW_RENAME_MODAL)},toggleSelect:function(){this.$store.dispatch("toggleBrowserItemSelect",this.item)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-browser-item-directory"},[n("div",{staticClass:"media-browser-item-preview",on:{dblclick:function(e){e.stopPropagation(),e.preventDefault(),t.onPreviewDblClick()}}},[t._m(0)]),t._v(" "),n("div",{staticClass:"media-browser-item-info"},[t._v("\n "+t._s(t.item.name)+"\n ")]),t._v(" "),n("a",{staticClass:"media-browser-select",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},on:{click:function(e){e.stopPropagation(),t.toggleSelect()}}}),t._v(" "),n("div",{staticClass:"media-browser-actions",class:{active:t.showActions}},[n("a",{staticClass:"action-toggle",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_OPEN_ITEM_ACTIONS")}},[n("span",{staticClass:"image-browser-action fa fa-ellipsis-h",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.showActions=!0}}})]),t._v(" "),n("div",{staticClass:"media-browser-actions-list"},[n("a",{staticClass:"action-rename",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTIN_RENAME")}},[n("span",{staticClass:"image-browser-action fa fa-text-width",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.openRenameModal()}}})]),t._v(" "),n("a",{staticClass:"action-delete",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTION_DELETE")}},[n("span",{staticClass:"image-browser-action fa fa-trash",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.deleteItem()}}})])])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"file-background"},[n("div",{staticClass:"folder-icon"},[n("span",{staticClass:"fa fa-folder-o"})])])}]}},function(t,e,n){var r=n(0)(n(132),n(133),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r);e.default={name:"media-browser-item-file",data:function(){return{showActions:!1}},props:["item"],methods:{deleteItem:function(){this.$store.dispatch("deleteItem",this.item)},openRenameModal:function(){this.$store.commit(i.SELECT_BROWSER_ITEM,this.item),this.$store.commit(i.SHOW_RENAME_MODAL)},toggleSelect:function(){this.$store.dispatch("toggleBrowserItemSelect",this.item)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-browser-item-file"},[t._m(0),t._v(" "),n("div",{staticClass:"media-browser-item-info"},[t._v("\n "+t._s(t.item.name)+" "+t._s(t.item.filetype)+"\n ")]),t._v(" "),n("a",{staticClass:"media-browser-select",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},on:{click:function(e){e.stopPropagation(),t.toggleSelect()}}}),t._v(" "),n("div",{staticClass:"media-browser-actions",class:{active:t.showActions}},[n("a",{staticClass:"action-toggle",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_OPEN_ITEM_ACTIONS")}},[n("span",{staticClass:"image-browser-action fa fa-ellipsis-h",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.showActions=!0}}})]),t._v(" "),n("div",{staticClass:"media-browser-actions-list"},[n("a",{staticClass:"action-rename",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTIN_RENAME")}},[n("span",{staticClass:"image-browser-action fa fa-text-width",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.openRenameModal()}}})]),t._v(" "),n("a",{staticClass:"action-delete",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTION_DELETE")}},[n("span",{staticClass:"image-browser-action fa fa-trash",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.deleteItem()}}})])])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-browser-item-preview"},[n("div",{staticClass:"file-background"},[n("div",{staticClass:"file-icon"},[n("span",{staticClass:"fa fa-file-text-o"})])])])}]}},function(t,e,n){var r=n(0)(n(135),n(136),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r);e.default={name:"media-browser-item-image",data:function(){return{showActions:!1}},props:["item"],computed:{thumbUrl:function(){return this.item.thumb_path},canEdit:function(){return["jpg","jpeg","png"].indexOf(this.item.extension.toLowerCase())>-1}},methods:{openPreview:function(){this.$store.commit(i.SHOW_PREVIEW_MODAL),this.$store.dispatch("getFullContents",this.item)},deleteItem:function(){this.$store.dispatch("deleteItem",this.item)},openRenameModal:function(){this.$store.commit(i.SELECT_BROWSER_ITEM,this.item),this.$store.commit(i.SHOW_RENAME_MODAL)},editItem:function(){var t=Joomla.getOptions("com_media").editViewUrl+"&path=";window.location.href=t+this.item.path},toggleSelect:function(){this.$store.dispatch("toggleBrowserItemSelect",this.item)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-browser-image",on:{dblclick:function(e){t.openPreview()},mouseleave:function(e){t.showActions=!1}}},[n("div",{staticClass:"media-browser-item-preview"},[n("div",{staticClass:"image-brackground"},[n("div",{staticClass:"image-cropped",style:{backgroundImage:"url("+t.thumbUrl+")"}})])]),t._v(" "),n("div",{staticClass:"media-browser-item-info"},[t._v("\n "+t._s(t.item.name)+" "+t._s(t.item.filetype)+"\n ")]),t._v(" "),n("a",{staticClass:"media-browser-select",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},on:{click:function(e){e.stopPropagation(),t.toggleSelect()}}}),t._v(" "),n("div",{staticClass:"media-browser-actions",class:{active:t.showActions}},[n("a",{staticClass:"action-toggle",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_OPEN_ITEM_ACTIONS")}},[n("span",{staticClass:"image-browser-action fa fa-ellipsis-h",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.showActions=!0}}})]),t._v(" "),n("div",{staticClass:"media-browser-actions-list"},[n("a",{staticClass:"action-preview",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTION_PREVIEW")}},[n("span",{staticClass:"image-browser-action fa fa-search-plus",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.openPreview()}}})]),t._v(" "),n("a",{staticClass:"action-rename",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTIN_RENAME")}},[n("span",{staticClass:"image-browser-action fa fa-text-width",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.openRenameModal()}}})]),t._v(" "),t.canEdit?n("a",{staticClass:"action-edit",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTION_EDIT")}},[n("span",{staticClass:"image-browser-action fa fa-pencil",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.editItem()}}})]):t._e(),t._v(" "),n("a",{staticClass:"action-delete",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTION_DELETE")}},[n("span",{staticClass:"image-browser-action fa fa-trash",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.deleteItem()}}})])])])])},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(138),n(139),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r);e.default={name:"media-browser-item-video",data:function(){return{showActions:!1}},props:["item"],methods:{openPreview:function(){this.$store.commit(i.SHOW_PREVIEW_MODAL),this.$store.dispatch("getFullContents",this.item)},deleteItem:function(){this.$store.dispatch("deleteItem",this.item)},openRenameModal:function(){this.$store.commit(i.SELECT_BROWSER_ITEM,this.item),this.$store.commit(i.SHOW_RENAME_MODAL)},toggleSelect:function(){this.$store.dispatch("toggleBrowserItemSelect",this.item)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-browser-image",on:{dblclick:function(e){t.openPreview()}}},[t._m(0),t._v(" "),n("div",{staticClass:"media-browser-item-info"},[t._v("\n "+t._s(t.item.name)+" "+t._s(t.item.filetype)+"\n ")]),t._v(" "),n("a",{staticClass:"media-browser-select",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_TOGGLE_SELECT_ITEM")},on:{click:function(e){e.stopPropagation(),t.toggleSelect()}}}),t._v(" "),n("div",{staticClass:"media-browser-actions",class:{active:t.showActions}},[n("a",{staticClass:"action-toggle",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_OPEN_ITEM_ACTIONS")}},[n("span",{staticClass:"image-browser-action fa fa-ellipsis-h",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.showActions=!0}}})]),t._v(" "),n("div",{staticClass:"media-browser-actions-list"},[n("a",{staticClass:"action-preview",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTION_PREVIEW")}},[n("span",{staticClass:"image-browser-action fa fa-search-plus",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.openPreview()}}})]),t._v(" "),n("a",{staticClass:"action-rename",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTIN_RENAME")}},[n("span",{staticClass:"image-browser-action fa fa-text-width",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.openRenameModal()}}})]),t._v(" "),n("a",{staticClass:"action-delete",attrs:{href:"#","aria-label":t.translate("COM_MEDIA_ACTION_DELETE")}},[n("span",{staticClass:"image-browser-action fa fa-trash",attrs:{"aria-hidden":"true"},on:{click:function(e){e.stopPropagation(),t.deleteItem()}}})])])])])},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-browser-item-preview"},[n("div",{staticClass:"file-background"},[n("div",{staticClass:"file-icon"},[n("span",{staticClass:"fa fa-file-text-o"})])])])}]}},function(t,e,n){var r=n(0)(n(141),n(142),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"media-browser-item-row",props:["item"],mixins:[i.default],computed:{dimension:function(){return this.item.width?this.item.width+" x "+this.item.height:""},isDir:function(){return"dir"===this.item.type}},methods:{onDblClick:function(){this.isDir&&this.navigateTo(this.item.path)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{on:{dblclick:function(e){e.stopPropagation(),e.preventDefault(),t.onDblClick()}}},[n("li",{staticClass:"type",attrs:{"data-type":t.item.extension}}),t._v(" "),n("li",{staticClass:"name"},[t._v("\n "+t._s(t.item.name)+"\n ")]),t._v(" "),n("li",{staticClass:"size"},[t._v("\n "+t._s(t.item.size)+"\n ")]),t._v(" "),n("li",{staticClass:"dimension"},[t._v("\n "+t._s(t.dimension)+"\n ")]),t._v(" "),n("li",{staticClass:"created"},[t._v("\n "+t._s(t.item.create_date_formatted)+"\n ")]),t._v(" "),n("li",{staticClass:"modified"},[t._v("\n "+t._s(t.item.modified_date_formatted)+"\n ")])])},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(144),n(145),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);e.default=t}(r);e.default={name:"media-modal",props:{showClose:{type:Boolean,default:!0},size:{type:String}},computed:{modalClass:function(){return{"modal-sm":"sm"===this.size}}},methods:{close:function(){this.$emit("close")},onKeyDown:function(t){27==t.keyCode&&this.close()}},mounted:function(){document.addEventListener("keydown",this.onKeyDown)},beforeDestroy:function(){document.removeEventListener("keydown",this.onKeyDown)}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media-modal-backdrop",on:{click:function(e){t.close()}}},[n("div",{staticClass:"modal",staticStyle:{display:"flex"},on:{click:function(t){t.stopPropagation()}}},[t._t("backdrop-close"),t._v(" "),n("div",{staticClass:"modal-dialog",class:t.modalClass,attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{staticClass:"modal-header"},[t._t("header"),t._v(" "),t.showClose?n("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"},on:{click:function(e){t.close()}}},[n("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]):t._e()],2),t._v(" "),n("div",{staticClass:"modal-body"},[t._t("body")],2),t._v(" "),n("div",{staticClass:"modal-footer"},[t._t("footer")],2)])])],2)])},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(147),n(148),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=n(60);e.default={name:"media-create-folder-modal",directives:{focus:o.focus},data:function(){return{folder:""}},methods:{isValid:function(){return this.folder},close:function(){this.reset(),this.$store.commit(i.HIDE_CREATE_FOLDER_MODAL)},save:function(){this.isValid()&&(this.$store.dispatch("createDirectory",{name:this.folder,parent:this.$store.state.selectedDirectory}),this.reset())},reset:function(){this.folder=""}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.$store.state.showCreateFolderModal?n("media-modal",{attrs:{size:"sm"},on:{close:function(e){t.close()}}},[n("h3",{staticClass:"modal-title",attrs:{slot:"header"},slot:"header"},[t._v(t._s(t.translate("COM_MEDIA_CREATE_NEW_FOLDER")))]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[n("form",{staticClass:"form",attrs:{novalidate:""},on:{submit:function(e){e.preventDefault(),t.save(e)}}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"folder"}},[t._v(t._s(t.translate("COM_MEDIA_FOLDER")))]),t._v(" "),n("input",{directives:[{name:"focus",rawName:"v-focus",value:!0,expression:"true"},{name:"model",rawName:"v-model.trim",value:t.folder,expression:"folder",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{id:"folder",placeholder:"Folder",required:"",autocomplete:"off"},domProps:{value:t.folder},on:{input:[function(e){e.target.composing||(t.folder=e.target.value.trim())},function(e){t.folder=e.target.value}],blur:function(e){t.$forceUpdate()}}})])])]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("button",{staticClass:"btn btn-link",on:{click:function(e){t.close()}}},[t._v(t._s(t.translate("JCANCEL")))]),t._v(" "),n("button",{staticClass:"btn btn-success",attrs:{disabled:!t.isValid()},on:{click:function(e){t.save()}}},[t._v(t._s(t.translate("JAPPLY"))+"\n ")])])]):t._e()},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(150),n(151),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),a=n(59);r(a);e.default={name:"media-preview-modal",computed:{item:function(){return this.$store.state.previewItem}},methods:{close:function(){this.$store.commit(o.HIDE_PREVIEW_MODAL)},isImage:function(){return 0===this.item.mime_type.indexOf("image/")},isVideo:function(){return 0===this.item.mime_type.indexOf("video/")}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.$store.state.showPreviewModal&&t.item?n("media-modal",{staticClass:"media-preview-modal",attrs:{size:"md"},on:{close:function(e){t.close()}}},[n("h3",{staticClass:"modal-title",attrs:{slot:"header"},slot:"header"},[t._v(t._s(t.item.name))]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[t.isImage()?n("img",{attrs:{src:t.item.url,type:t.item.mime_type}}):t._e(),t._v(" "),t.isVideo()?n("video",{attrs:{controls:""}},[n("source",{attrs:{src:t.item.url,type:t.item.mime_type}})]):t._e()]),t._v(" "),n("a",{staticClass:"media-preview-close",attrs:{slot:"backdrop-close"},on:{click:function(e){t.close()}},slot:"backdrop-close"},[n("span",{staticClass:"fa fa-times"})])]):t._e()},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(153),n(154),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r),o=n(60);e.default={name:"media-rename-modal",directives:{focus:o.focus},data:function(){return{originalName:""}},computed:{item:function(){return this.$store.state.selectedItems[this.$store.state.selectedItems.length-1]},name:{get:function(){return 0===this.originalName.length&&(this.originalName=this.item.name),this.item.name.replace("."+this.item.extension,"")},set:function(t){this.extension.length&&(t+="."+this.item.extension),this.$store.state.selectedItems[this.$store.state.selectedItems.length-1].name=t}},extension:function(){return this.item.extension}},methods:{isValid:function(){return this.item.name.length>0},close:function(){this.$store.state.selectedItems[this.$store.state.selectedItems.length-1].name=this.originalName,this.originalName="",this.$store.commit(i.HIDE_RENAME_MODAL)},save:function(){if(this.isValid()){var t=this.item.directory;"/"!==t.substr(-1)&&(t+="/"),t+=this.item.name,this.$store.dispatch("renameItem",{path:this.item.path,newPath:t}),this.originalName=""}}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.$store.state.showRenameModal?n("media-modal",{attrs:{size:"sm","show-close":!1},on:{close:function(e){t.close()}}},[n("h3",{staticClass:"modal-title",attrs:{slot:"header"},slot:"header"},[t._v(t._s(t.translate("COM_MEDIA_RENAME")))]),t._v(" "),n("div",{attrs:{slot:"body"},slot:"body"},[n("form",{staticClass:"form",attrs:{novalidate:""},on:{submit:function(e){e.preventDefault(),t.save(e)}}},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"name"}},[t._v(t._s(t.translate("COM_MEDIA_NAME")))]),t._v(" "),n("div",{class:{"input-group":t.extension.length}},[n("input",{directives:[{name:"focus",rawName:"v-focus",value:!0,expression:"true"},{name:"model",rawName:"v-model.trim",value:t.name,expression:"name",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{id:"name",placeholder:"Name",required:"",autocomplete:"off"},domProps:{value:t.name},on:{input:[function(e){e.target.composing||(t.name=e.target.value.trim())},function(e){t.name=e.target.value}],blur:function(e){t.$forceUpdate()}}}),t._v(" "),t.extension.length?n("span",{staticClass:"input-group-addon"},[t._v(t._s(t.extension))]):t._e()])])])]),t._v(" "),n("div",{attrs:{slot:"footer"},slot:"footer"},[n("button",{staticClass:"btn btn-link",on:{click:function(e){t.close()}}},[t._v(t._s(t.translate("JCANCEL")))]),t._v(" "),n("button",{staticClass:"btn btn-success",attrs:{disabled:!t.isValid()},on:{click:function(e){t.save()}}},[t._v(t._s(t.translate("JAPPLY"))+"\n ")])])]):t._e()},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(156),n(157),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(r);e.default={name:"media-infobar",computed:{item:function(){var t=this.$store.state.selectedItems;return 1===t.length?t[0]:t.length>1?t.slice(-1)[0]:this.$store.getters.getSelectedDirectory},showInfoBar:function(){return this.$store.state.showInfoBar}},methods:{hideInfoBar:function(){this.$store.commit(i.HIDE_INFOBAR)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"infobar"}},[t.showInfoBar&&t.item?n("div",{staticClass:"media-infobar"},[n("span",{staticClass:"infobar-close",on:{click:function(e){t.hideInfoBar()}}},[t._v("×")]),t._v(" "),n("h2",[t._v(t._s(t.item.name))]),t._v(" "),"/"===t.item.path?n("div",{staticClass:"text-center"},[n("span",{staticClass:"fa fa-file placeholder-icon"}),t._v("\n Select file or folder to view its details.\n ")]):n("dl",[n("dt",[t._v(t._s(t.translate("COM_MEDIA_FOLDER")))]),t._v(" "),n("dd",[t._v(t._s(t.item.directory))]),t._v(" "),n("dt",[t._v(t._s(t.translate("COM_MEDIA_MEDIA_TYPE")))]),t._v(" "),n("dd",[t._v(t._s(t.item.type||"-"))]),t._v(" "),n("dt",[t._v(t._s(t.translate("COM_MEDIA_MEDIA_CREATED_AT")))]),t._v(" "),n("dd",[t._v(t._s(t.item.create_date_formatted))]),t._v(" "),n("dt",[t._v(t._s(t.translate("COM_MEDIA_MEDIA_MODIFIED_AT")))]),t._v(" "),n("dd",[t._v(t._s(t.item.modified_date_formatted))]),t._v(" "),n("dt",[t._v(t._s(t.translate("COM_MEDIA_MEDIA_DIMENSION")))]),t._v(" "),t.item.width||t.item.height?n("dd",[t._v(t._s(t.item.width)+" x "+t._s(t.item.height))]):n("dd",[t._v("-")]),t._v(" "),n("dt",[t._v(t._s(t.translate("COM_MEDIA_MEDIA_SIZE")))]),t._v(" "),n("dd",[t._v(t._s(t.item.size||"-"))]),t._v(" "),n("dt",[t._v(t._s(t.translate("COM_MEDIA_MEDIA_MIME_TYPE")))]),t._v(" "),n("dd",[t._v(t._s(t.item.mime_type))]),t._v(" "),n("dt",[t._v(t._s(t.translate("COM_MEDIA_MEDIA_EXTENSION")))]),t._v(" "),n("dd",[t._v(t._s(t.item.extension||"-"))])])]):t._e()])},staticRenderFns:[]}},function(t,e,n){var r=n(0)(n(159),n(163),null,null,null);t.exports=r.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(160),i=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default={name:"media-upload",props:{accept:{type:String},extensions:{default:function(){return[]}},name:{type:String,default:"file"},multiple:{type:Boolean,default:!0}},methods:{chooseFiles:function(){this.$refs.fileInput.click()},upload:function(t){var e=this;t.preventDefault();var n=t.target.files,r=!0,o=!1,a=void 0;try{for(var s,c=(0,i.default)(n);!(r=(s=c.next()).done);r=!0)!function(){var t=s.value,n=new FileReader;n.onload=function(n){var r=n.target.result,i=r.indexOf("base64")+7,o=r.slice(i,r.length);e.$store.dispatch("uploadFile",{name:t.name,parent:e.$store.state.selectedDirectory,content:o})},n.readAsDataURL(t)}()}catch(t){o=!0,a=t}finally{try{!r&&c.return&&c.return()}finally{if(o)throw a}}}},created:function(){var t=this;MediaManager.Event.listen("onClickUpload",function(){return t.chooseFiles()})}}},function(t,e,n){t.exports={default:n(161),__esModule:!0}},function(t,e,n){n(47),n(24),t.exports=n(162)},function(t,e,n){var r=n(5),i=n(32);t.exports=n(3).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{ref:"fileInput",staticClass:"hidden",attrs:{type:"file",name:t.name,multiple:t.multiple,accept:t.accept},on:{change:t.upload}})},staticRenderFns:[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};r.install=function(t,e){t.mixin({methods:{translate:function(t){return Joomla.JText._(t,t)}}})},e.default=r},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(14),a=i(o),s=n(166),c=i(s),u=n(167),l=i(u),f=n(168),d=r(f),p=n(169),v=r(p),h=n(170),m=i(h),_=n(171),y=i(_),g=n(61);a.default.use(c.default),e.default=new c.default.Store({state:l.default,getters:d,actions:v,mutations:m.default,plugins:[(0,y.default)(g.persistedStateOptions)],strict:!1})},function(t,e,n){"use strict";function r(t){O&&(t._devtoolHook=O,O.emit("vuex:init",t),O.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){O.emit("vuex:mutation",t,e)}))}function i(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function o(t){return null!==t&&"object"==typeof t}function a(t){return t&&"function"==typeof t.then}function s(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return;s(t.concat(r),e.getChild(r),n.modules[r])}}function c(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;l(t,n,[],t._modules.root,!0),u(t,n,e)}function u(t,e,n){var r=t._vm;t.getters={};var o=t._wrappedGetters,a={};i(o,function(e,n){a[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var s=M.config.silent;M.config.silent=!0,t._vm=new M({data:{$$state:e},computed:a}),M.config.silent=s,t.strict&&m(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),M.nextTick(function(){return r.$destroy()}))}function l(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a]=r),!o&&!i){var s=_(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit(function(){M.set(s,c,r.state)})}var u=r.context=f(t,a,n);r.forEachMutation(function(e,n){p(t,a+n,e,u)}),r.forEachAction(function(e,n){v(t,a+n,e,u)}),r.forEachGetter(function(e,n){h(t,a+n,e,u)}),r.forEachChild(function(r,o){l(t,e,n.concat(o),r,i)})}function f(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:r?t.commit:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return d(t,e)}},state:{get:function(){return _(t.state,n)}}}),i}function d(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}}),n}function p(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,r.state,e)})}function v(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push(function(e,i){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,i);return a(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}function h(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function m(t){t._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function _(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function y(t,e,n){return o(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function g(t){M||(M=t,w(M))}function b(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function E(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Store",function(){return I}),n.d(e,"mapState",function(){return T}),n.d(e,"mapMutations",function(){return D}),n.d(e,"mapGetters",function(){return k}),n.d(e,"mapActions",function(){return L}),n.d(e,"createNamespacedHelpers",function(){return R});/**
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L49

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

CWE-79
File Location: media/com_modules/js/admin-module-edit.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
- tmpMenu.innerHTML = '<span class=\"badge badge-danger\">' + Joomla.JText._('JNO') + '</span>';
+ 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:
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_ERROR');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L67

Insecure DOM Manipulation (XSS) in jupdatecheck.js

CWE-79
File Location: media/plg_quickicon_joomlaupdate/js/jupdatecheck.js:67
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_JOOMLAUPDATE_ERROR');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L897

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:897
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 = date.getLocalWeekNumber(this.params.dateType); //date.convertNumbers();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L991

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:991
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._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 html5.min.js

CWE-79
File Location: media/system/js/legacy/html5.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){function n(){var e=f.elements;return"string"==typeof e?e.split(" "):e}function r(e){var t=h[e[u]];return t||(t={},d++,e[u]=d,h[d]=t),t}function a(e,n,a){if(n||(n=t),i)return n.createElement(e);a||(a=r(n));var o;return!(o=a.cache[e]?a.cache[e].cloneNode():s.test(e)?(a.cache[e]=a.createElem(e)).cloneNode():a.createElem(e)).canHaveChildren||m.test(e)||o.tagUrn?o:a.frag.appendChild(o)}function o(e){e||(e=t);var o=r(e);return!f.shivCSS||c||o.hasCSS||(o.hasCSS=!!function(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),i||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return f.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(f,t.frag)}(e,o),e}var c,i,l=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,s=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",d=0,h={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",c="hidden"in e,i=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){c=!0,i=!0}}();var f={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==l.shivCSS,supportsUnknownElements:i,shivMethods:!1!==l.shivMethods,type:"default",shivDocument:o,createElement:a,createDocumentFragment:function(e,a){if(e||(e=t),i)return e.createDocumentFragment();for(var o=(a=a||r(e)).frag.cloneNode(),c=0,l=n(),m=l.length;c<m;c++)o.createElement(l[c]);return o},addElements:function(e,t){var n=f.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),f.elements=n+" "+e,o(t)}};e.html5=f,o(t),"object"==typeof module&&module.exports&&(module.exports=f)}("undefined"!=typeof window?window:this,document);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-ce.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(){"use strict";function t(t){var e=w.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!e&&t}function e(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 n(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function o(t,e,r){r=void 0===r?new Set:r;for(var i=t;i;){if(i.nodeType===Node.ELEMENT_NODE){var a=i;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){if((i=a.import)instanceof Node&&!r.has(i))for(r.add(i),i=i.firstChild;i;i=i.nextSibling)o(i,e,r);i=n(t,a);continue}if("template"===c){i=n(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)o(a,e,r)}i=i.firstChild?i.firstChild:n(t,i)}}function r(t,e,n){t[e]=n}function i(){this.a=new Map,this.g=new Map,this.c=[],this.b=!1}function a(t,e){t.b=!0,t.c.push(e)}function c(t,e){t.b&&o(e,function(e){return l(t,e)})}function l(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e)}}function s(t,e){var n=[];for(o(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state?t.connectedCallback(r):p(t,r)}}function u(t,e){var n=[];for(o(e,function(t){return n.push(t)}),e=0;e<n.length;e++){var r=n[e];1===r.__CE_state&&t.disconnectedCallback(r)}}function d(t,e,n){var r=(n=void 0===n?{}:n).R||new Set,i=n.F||function(e){return p(t,e)},a=[];if(o(e,function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&"complete"===n.readyState?(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0):e.addEventListener("load",function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0,n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0;var o=new Set(r);o.delete(n),d(t,n,{R:o,F:i})}})}else a.push(e)},r),t.b)for(e=0;e<a.length;e++)l(t,a[e]);for(e=0;e<a.length;e++)i(a[e])}function p(t,n){if(void 0===n.__CE_state){var o=t.a.get(n.localName);if(o){o.constructionStack.push(n);var r=o.constructor;try{try{if(new r!==n)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw n.__CE_state=2,t}if(n.__CE_state=1,n.__CE_definition=o,o.attributeChangedCallback)for(o=o.observedAttributes,r=0;r<o.length;r++){var i=o[r],a=n.getAttribute(i);null!==a&&t.attributeChangedCallback(n,i,null,a,null)}e(n)&&t.connectedCallback(n)}}}function f(t,e){this.f=t,this.a=e,this.b=void 0,d(this.f,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.c.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function h(t){t.b&&t.b.disconnect()}function m(t){if(t.a)throw Error("Already resolved.");t.a=void 0,t.b&&t.b(void 0)}function y(t){this.m=!1,this.f=t,this.u=new Map,this.o=function(t){return t()},this.h=!1,this.s=[],this.H=new f(t,document)}function v(t,n,o){function r(n){return function(o){for(var r=[],i=0;i<arguments.length;++i)r[i-0]=arguments[i];i=[];for(var a=[],c=0;c<r.length;c++){var l=r[c];if(l instanceof Element&&e(l)&&a.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)i.push(l);else i.push(l)}for(n.apply(this,r),r=0;r<a.length;r++)u(t,a[r]);if(e(this))for(r=0;r<i.length;r++)(a=i[r])instanceof Element&&s(t,a)}}void 0!==o.i&&(n.prepend=r(o.i)),void 0!==o.append&&(n.append=r(o.append))}function b(){function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var r=this,a=void 0;if(e(this)&&(a=[],o(this,function(t){t!==r&&a.push(t)})),n.set.call(this,t),a)for(var l=0;l<a.length;l++){var s=a[l];1===s.__CE_state&&i.disconnectedCallback(s)}return this.ownerDocument.__CE_hasRegistry?d(i,this):c(i,this),t}})}function n(t,n){r(t,"insertAdjacentElement",function(t,o){var r=e(o);return t=n.call(this,t,o),r&&u(i,o),e(t)&&s(i,o),t})}var i=Z;if(R&&r(Element.prototype,"attachShadow",function(t){return this.__CE_shadowRoot=t=R.call(this,t)}),x&&x.get)t(Element.prototype,x);else if($&&$.get)t(HTMLElement.prototype,$);else{var l=g.call(document,"div");a(i,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return S.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName?this.content:this;for(l.innerHTML=t;0<e.childNodes.length;)T.call(e,e.childNodes[0]);for(;0<l.childNodes.length;)D.call(e,l.childNodes[0])}})})}r(Element.prototype,"setAttribute",function(t,e){if(1!==this.__CE_state)return H.call(this,t,e);var n=j.call(this,t);H.call(this,t,e),e=j.call(this,t),i.attributeChangedCallback(this,t,n,e,null)}),r(Element.prototype,"setAttributeNS",function(t,e,n){if(1!==this.__CE_state)return q.call(this,t,e,n);var o=P.call(this,t,e);q.call(this,t,e,n),n=P.call(this,t,e),i.attributeChangedCallback(this,e,o,n,t)}),r(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return F.call(this,t);var e=j.call(this,t);F.call(this,t),null!==e&&i.attributeChangedCallback(this,t,e,null,null)}),r(Element.prototype,"removeAttributeNS",function(t,e){if(1!==this.__CE_state)return I.call(this,t,e);var n=P.call(this,t,e);I.call(this,t,e);var o=P.call(this,t,e);n!==o&&i.attributeChangedCallback(this,e,n,o,t)}),Q?n(HTMLElement.prototype,Q):U?n(Element.prototype,U):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),v(i,Element.prototype,{i:W,append:B}),function(t){function n(n){return function(o){for(var r=[],i=0;i<arguments.length;++i)r[i-0]=arguments[i];i=[];for(var a=[],c=0;c<r.length;c++){var l=r[c];if(l instanceof Element&&e(l)&&a.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)i.push(l);else i.push(l)}for(n.apply(this,r),r=0;r<a.length;r++)u(t,a[r]);if(e(this))for(r=0;r<i.length;r++)(a=i[r])instanceof Element&&s(t,a)}}var o=Element.prototype;void 0!==G&&(o.before=n(G)),void 0!==G&&(o.after=n(z)),void 0!==J&&r(o,"replaceWith",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 c=o[a];if(c instanceof Element&&e(c)&&i.push(c),c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)r.push(c);else r.push(c)}for(a=e(this),J.apply(this,o),o=0;o<i.length;o++)u(t,i[o]);if(a)for(u(t,this),o=0;o<r.length;o++)(i=r[o])instanceof Element&&s(t,i)}),void 0!==K&&r(o,"remove",function(){var n=e(this);K.call(this),n&&u(t,this)})}(i)}!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(s)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=document.querySelectorAll("link[rel=import]:not([import-dependency])"),n=e.length;n?l(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),y&&"style"===t.localName||t.addEventListener("error",n)}}function a(t){return t.nodeType===Node.ELEMENT_NODE&&"link"===t.localName&&"import"===t.rel}function c(){var t=this;this.a={},this.b=0,this.g=new MutationObserver(function(e){return t.L(e)}),this.g.observe(document.head,{childList:!0,subtree:!0}),this.c(document)}function l(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 s="import"in document.createElement("link"),u=null;!1=="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return u||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var d=/(url\()([^)]*)(\))/g,p=/(@import[\s]+(?!url\())([^;]*)(;)/g,f=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,h={J:function(t,e){if(t.href&&t.setAttribute("href",h.j(t.getAttribute("href"),e)),t.src&&t.setAttribute("src",h.j(t.getAttribute("src"),e)),"style"===t.localName){var n=h.D(t.textContent,e,d);t.textContent=h.D(n,e,p)}},D:function(t,e,n){return t.replace(n,function(t,n,o,r){return t=o.replace(/["']/g,""),e&&(t=h.j(t,e)),n+"'"+t+"'"+r})},j:function(t,e){if(void 0===h.l){h.l=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",h.l="http://a/c%20d"===n.href}catch(t){}}return h.l?new URL(t,e).href:((n=h.G)||(n=document.implementation.createHTMLDocument("temp"),h.G=n,n.w=n.createElement("base"),n.head.appendChild(n.w),n.v=n.createElement("a")),n.w.href=e,n.v.href=t,n.v.href||t)}},m={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,m.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")}},y=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);if(c.prototype.c=function(t){var e=this;l(t.querySelectorAll("link[rel=import]"),function(t){return e.B(t)})},c.prototype.B=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.A(t))}else this.b++,this.a[n]="pending",m.load(n,function(t,o){t=e.M(t,o||n),e.a[n]=t,e.b--,e.c(t),e.C()},function(){e.a[n]=null,e.b--,e.C()})},c.prototype.M=function(t,e){if(!t)return document.createDocumentFragment();y&&(t=t.replace(f,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)t=n.content;else for(t=document.createDocumentFragment();n.firstChild;)t.appendChild(n.firstChild);(n=t.querySelector("base"))&&(e=h.j(n.getAttribute("href"),e),n.removeAttribute("href"));var o=0;return l(t.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),function(t){i(t),h.J(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},c.prototype.C=function(){var t=this;if(!this.b){this.g.disconnect(),this.flatten(document);var e=!1,n=!1,o=function(){n&&e&&(t.c(document),t.b||(t.g.observe(document.head,{childList:!0,subtree:!0}),t.K()))};this.P(function(){n=!0,o()}),this.N(function(){e=!0,o()})}},c.prototype.flatten=function(t){var e=this;l(t.querySelectorAll("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))})},c.prototype.N=function(t){function e(r){if(r<o){var a=n[r],c=document.createElement("script");a.removeAttribute("import-dependency"),l(a.attributes,function(t){return c.setAttribute(t.name,t.value)}),u=c,a.parentNode.replaceChild(c,a),i(c,function(){u=null,e(r+1)})}else t()}var n=document.querySelectorAll("script[import-dependency]"),o=n.length;e(0)},c.prototype.P=function(t){var e=document.querySelectorAll("style[import-dependency],\n link[rel=stylesheet][import-dependency]"),o=e.length;if(o){var r=y&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");l(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()},c.prototype.K=function(){var t=this;l(document.querySelectorAll("link[rel=import]"),function(e){return t.A(e)},!0)},c.prototype.A=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})))},c.prototype.L=function(t){var e=this;l(t,function(t){return l(t.addedNodes,function(t){t&&t.nodeType===Node.ELEMENT_NODE&&(a(t)?e.B(t):e.c(t))})})},s){l(document.querySelectorAll("link[rel=import]"),function(t){t.import&&"loading"===t.import.readyState||(t.__loaded=!0)});var v=function(t){a(t=t.target)&&(t.__loaded=!0)};document.addEventListener("load",v,!0),document.addEventListener("error",v,!0)}else{var b=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!b||b.configurable?Node:Element).prototype,"baseURI",{get:function(){var t=a(this)?this:n(this);return t?t.href:b&&b.get?b.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0}),o(function(){return new c})}r(function(){return document.dispatchEvent(e("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))}),t.useNative=s,t.whenReady=r,t.importForElement=n}(window.HTMLImports=window.HTMLImports||{});var w=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));i.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)},i.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)},i.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)},f.prototype.c=function(t){var e=this.a.readyState;for("interactive"!==e&&"complete"!==e||h(this),e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)d(this.f,n[o])},y.prototype.define=function(e,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!t(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.f.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");if(this.m)throw Error("A custom element is already being defined.");this.m=!0;try{var r=function(t){var e=i[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},i=n.prototype;if(!(i instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=r("connectedCallback"),c=r("disconnectedCallback"),l=r("adoptedCallback"),s=r("attributeChangedCallback"),u=n.observedAttributes||[]}catch(t){return}finally{this.m=!1}n={localName:e,constructor:n,connectedCallback:a,disconnectedCallback:c,adoptedCallback:l,attributeChangedCallback:s,observedAttributes:u,constructionStack:[]},function(t,e,n){t.a.set(e,n),t.g.set(n.constructor,n)}(this.f,e,n),this.s.push(n),this.h||(this.h=!0,this.o(function(){return function(t){if(!1!==t.h){t.h=!1;for(var e=t.s,n=[],o=new Map,r=0;r<e.length;r++)o.set(e[r].localName,[]);for(d(t.f,document,{F:function(e){if(void 0===e.__CE_state){var r=e.localName,i=o.get(r);i?i.push(e):t.f.a.get(r)&&n.push(e)}}}),r=0;r<n.length;r++)p(t.f,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++)p(t.f,i[a]);(r=t.u.get(r))&&m(r)}}}(o)}))},y.prototype.get=function(t){if(t=this.f.a.get(t))return t.constructor},y.prototype.whenDefined=function(e){if(!t(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var n=this.u.get(e);return n?n.c:(n=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.u.set(e,n),this.f.a.get(e)&&!this.s.some(function(t){return t.localName===e})&&m(n),n.c)},y.prototype.O=function(t){h(this.H);var e=this.o;this.o=function(n){return t(function(){return e(n)})}},window.CustomElementRegistry=y,y.prototype.define=y.prototype.define,y.prototype.get=y.prototype.get,y.prototype.whenDefined=y.prototype.whenDefined,y.prototype.polyfillWrapFlushCallback=y.prototype.O;var g=window.Document.prototype.createElement,E=window.Document.prototype.createElementNS,_=window.Document.prototype.importNode,C=window.Document.prototype.prepend,N=window.Document.prototype.append,A=window.DocumentFragment.prototype.prepend,k=window.DocumentFragment.prototype.append,S=window.Node.prototype.cloneNode,D=window.Node.prototype.appendChild,L=window.Node.prototype.insertBefore,T=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,O=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),R=window.Element.prototype.attachShadow,x=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),j=window.Element.prototype.getAttribute,H=window.Element.prototype.setAttribute,F=window.Element.prototype.removeAttribute,P=window.Element.prototype.getAttributeNS,q=window.Element.prototype.setAttributeNS,I=window.Element.prototype.removeAttributeNS,U=window.Element.prototype.insertAdjacentElement,W=window.Element.prototype.prepend,B=window.Element.prototype.append,G=window.Element.prototype.before,z=window.Element.prototype.after,J=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,X=window.HTMLElement,$=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Q=window.HTMLElement.prototype.insertAdjacentElement,V=new function(){},Y=window.customElements;if(!Y||Y.forcePolyfill||"function"!=typeof Y.define||"function"!=typeof Y.get){var Z=new i;!function(){var t=Z;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.g.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=g.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,l(t,o),o;var r=o[n=o.length-1];if(r===V)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return o[n]=V,Object.setPrototypeOf(r,e.prototype),l(t,r),r}return e.prototype=X.prototype,e}()}(),function(){var t=Z;r(Document.prototype,"createElement",function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructor}return e=g.call(this,e),l(t,e),e}),r(Document.prototype,"importNode",function(e,n){return e=_.call(this,e,n),this.__CE_hasRegistry?d(t,e):c(t,e),e}),r(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=E.call(this,e,n),l(t,e),e}),v(t,Document.prototype,{i:C,append:N})}(),v(Z,DocumentFragment.prototype,{i:A,append:k}),function(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{var r=void 0;if(this.firstChild){var i=this.childNodes,a=i.length;if(0<a&&e(this)){r=Array(a);for(var c=0;c<a;c++)r[c]=i[c]}}if(o.set.call(this,t),r)for(t=0;t<r.length;t++)u(n,r[t])}}})}var n=Z;r(Node.prototype,"insertBefore",function(t,o){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=L.call(this,t,o),e(this))for(o=0;o<r.length;o++)s(n,r[o]);return t}return r=e(t),o=L.call(this,t,o),r&&u(n,t),e(this)&&s(n,t),o}),r(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);if(t=D.call(this,t),e(this))for(var r=0;r<o.length;r++)s(n,o[r]);return t}return o=e(t),r=D.call(this,t),o&&u(n,t),e(this)&&s(n,t),r}),r(Node.prototype,"cloneNode",function(t){return t=S.call(this,t),this.ownerDocument.__CE_hasRegistry?d(n,t):c(n,t),t}),r(Node.prototype,"removeChild",function(t){var o=e(t),r=T.call(this,t);return o&&u(n,t),r}),r(Node.prototype,"replaceChild",function(t,o){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=M.call(this,t,o),e(this))for(u(n,o),o=0;o<r.length;o++)s(n,r[o]);return t}r=e(t);var i=M.call(this,t,o),a=e(this);return a&&u(n,o),r&&u(n,t),a&&s(n,t),i}),O&&O.get?t(Node.prototype,O):a(n,function(e){t(e,{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;)T.call(this,this.firstChild);D.call(this,document.createTextNode(t))}})})}(),b(),document.__CE_hasRegistry=!0;var tt=new y(Z);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:tt})}var et=window.customElements,nt=window.HTMLImports,ot=window.HTMLTemplateElement;if(window.WebComponents=window.WebComponents||{},et&&et.polyfillWrapFlushCallback){var rt,it=function(){if(rt){ot.I&&ot.I(window.document);var t=rt;return rt=null,t(),!0}},at=nt.whenReady;et.polyfillWrapFlushCallback(function(t){rt=t,at(it)}),nt.whenReady=function(t){at(function(){it()?nt.whenReady(t):t()})}}nt.whenReady(function(){requestAnimationFrame(function(){window.WebComponents.ready=!0,document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})});var ct=document.createElement("style");ct.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var lt=document.querySelector("head");lt.insertBefore(ct,lt.firstChild)}).call(this);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L51

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-sd-ce.js:51
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.ELEMENT_NODE}):a=x.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)?bb(a):x.innerHTML(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(db&&db.set?db.set.call(eb,a):eb.innerHTML=a;eb.firstChild;)b.appendChild(eb.firstChild)},configurable:!0}},ib={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ma||
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/system/webcomponents/js/joomla-field-media-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 t(e,i,n){function r(u,s){if(!i[u]){if(!e[u]){var l="function"==typeof require&&require;if(!s&&l)return l(u,!0);if(o)return o(u,!0);var a=new Error("Cannot find module '"+u+"'");throw a.code="MODULE_NOT_FOUND",a}var c=i[u]={exports:{}};e[u][0].call(c.exports,function(t){var i=e[u][1][t];return r(i||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"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(){function t(t,e){for(var i,n=0;n<e.length;n++)(i=e[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),o="function"==typeof Symbol&&"symbol"==n(Symbol.iterator)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":n(t)};!function(){var t=window.Joomla||{};t.selectedFile={},window.document.addEventListener("onMediaFileSelected",function(e){t.selectedFile=e.detail}),t.doIt=function(e,i,n){if(!0===e.success){if(e.data[0].url)if(/local-/.test(e.data[0].adapter)){var r=t.getOptions("system.paths").rootFull;t.selectedFile.url=e.data[0].url.split(r)[1],t.selectedFile.thumb=!!e.data[0].thumb_path&&e.data[0].thumb_path}else e.data[0].thumb_path&&(t.selectedFile.thumb=e.data[0].thumb_path);else t.selectedFile.url=!1;var u=function(t){return"object"===("undefined"==typeof HTMLElement?"undefined":o(HTMLElement))?t instanceof HTMLElement:t&&"object"===(void 0===t?"undefined":o(t))&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName};t.selectedFile.url&&(u(i)||"object"===(void 0===i?"undefined":o(i))?!u(i)&&"object"===(void 0===i?"undefined":o(i))&&i.id?parent.window.Joomla.editors.instances[i.id].replaceSelection('<img src="'+t.selectedFile.url+'" alt=""/>'):(i.value=t.selectedFile.url,n.updatePreview()):t.editors.instances[i].replaceSelection('<img src="'+t.selectedFile.url+'" alt=""/>'))}},t.getImage=function(e,i,n){return new Promise(function(r,o){var u=t.getOptions("csrf.token"),s=t.getOptions("system.paths").rootFull+"administrator/index.php?option=com_media&format=json";t.request({url:s+"&task=api.files&url=true&path="+e.path+"&"+u+"=1&format=json",method:"GET",perform:!0,headers:{"Content-Type":"application/json"},onSuccess:function(e){var o=JSON.parse(e);r(t.doIt(o,i,n))},onError:function(){o()}})})};var e=function(e){function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=(void 0===e?"undefined":n(e))&&"function"!=typeof e?t:e}(this,(i.__proto__||Object.getPrototypeOf(i)).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 "+(void 0===e?"undefined":n(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)}(i,HTMLElement),r(i,[{key:"connectedCallback",value:function(){var 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()}},{key:"disconnectedCallback",value:function(){this.querySelector(this.buttonClear).removeEventListener("click",self)}},{key:"show",value:function(){var t=this,e=this;this.querySelector(this.input);window.jQuery(this.querySelector('[role="dialog"]')).modal("show"),window.jQuery(this.querySelector(this.buttonSaveSelected)).on("click",function(i){return i.preventDefault(),i.stopPropagation(),t.selectedPath&&e.setValue(t.selectedPath),e.modalClose(),!1})}},{key:"modalClose",value:function(){var e=this.querySelector(this.input);t.getImage(t.selectedFile,e,this),window.jQuery(this.querySelector('[role="dialog"]')).modal("hide")}},{key:"setValue",value:function(t){window.jQuery(this.querySelector(this.input)).val(t).trigger("change"),this.updatePreview()}},{key:"clearValue",value:function(){this.setValue("")}},{key:"updatePreview",value:function(){if(-1!==["true","static"].indexOf(this.preview)&&"false"!==this.preview&&this.preview){var t=this.querySelector(this.input).value,e=this.querySelector(".field-media-preview");if(t){e.innerHTML="";var i=new Image;switch(this.type){case"image":i.src=i.src=/http/.test(t)?t:"/"+t}e.style.width=this.previewWidth,e.appendChild(i)}else e.innerHTML='<span class="field-media-preview-icon fa fa-picture-o"></span>'}}},{key:"type",get:function(){return this.getAttribute("type")},set:function(t){this.setAttribute("type",t)}},{key:"basePath",get:function(){return this.getAttribute("base-path")},set:function(t){this.setAttribute("base-path",t)}},{key:"rootFolder",get:function(){return this.getAttribute("root-folder")},set:function(t){this.setAttribute("root-folder",t)}},{key:"url",get:function(){return this.getAttribute("url")},set:function(t){this.setAttribute("url",t)}},{key:"modalContainer",get:function(){return this.getAttribute("modal-container")},set:function(t){this.setAttribute("modal-container",t)}},{key:"input",get:function(){return this.getAttribute("input")},set:function(t){this.setAttribute("input",t)}},{key:"buttonSelect",get:function(){return this.getAttribute("button-select")},set:function(t){this.setAttribute("button-select",t)}},{key:"buttonClear",get:function(){return this.getAttribute("button-clear")},set:function(t){this.setAttribute("button-clear",t)}},{key:"buttonSaveSelected",get:function(){return this.getAttribute("button-save-selected")},set:function(t){this.setAttribute("button-save-selected",t)}},{key:"modalWidth",get:function(){return this.getAttribute(parseInt("modal-width",10))},set:function(t){this.setAttribute("modal-width",t)}},{key:"modalHeight",get:function(){return this.getAttribute(parseInt("modal-height",10))},set:function(t){this.setAttribute("modal-height",t)}},{key:"previewWidth",get:function(){return this.getAttribute(parseInt("preview-width",10))},set:function(t){this.setAttribute("preview-width",t)}},{key:"previewHeight",get:function(){return this.getAttribute(parseInt("preview-height",10))},set:function(t){this.setAttribute("preview-height",t)}},{key:"preview",get:function(){return this.getAttribute("preview")},set:function(t){this.setAttribute("preview",t)}},{key:"previewContainer",get:function(){return this.getAttribute("preview-container")}}],[{key:"observedAttributes",get:function(){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"]}}]),i}();customElements.define("joomla-field-media",e)}()},{}]},{},[1]);
+ 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:
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.ul.innerHTML = "";
+ 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")),t.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){function u(e){if("string"==typeof e)s.value=e;else{if(f)return;f=!0,c.parentNode.removeChild(c),a.focus(),r.onClose&&r.onClose(c)}}r||(r={}),n(this,null);var l,c=o(this,t,r.bottom),f=!1,a=this,s=c.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,u)}),r.onKeyUp&&e.on(s,"keyup",function(e){r.onKeyUp(e,s.value,u)}),e.on(s,"keydown",function(o){r&&r.onKeyDown&&r.onKeyDown(o,s.value,u)||((27==o.keyCode||!1!==r.closeOnEnter&&13==o.keyCode)&&(s.blur(),e.e_stop(o),u()),13==o.keyCode&&i(s.value,o))}),!1!==r.closeOnBlur&&e.on(s,"blur",u)):(l=c.getElementsByTagName("button")[0])&&(e.on(l,"click",function(){u(),a.focus()}),!1!==r.closeOnBlur&&e.on(l,"blur",u),l.focus()),u}),e.defineExtension("openConfirm",function(t,i,r){function u(){f||(f=!0,l.parentNode.removeChild(l),a.focus())}n(this,null);var l=o(this,t,r&&r.bottom),c=l.getElementsByTagName("button"),f=!1,a=this,s=1;c[0].focus();for(var d=0;d<c.length;++d){var p=c[d];!function(o){e.on(p,"click",function(n){e.e_preventDefault(n),u(),o&&o(a)})}(i[d]),e.on(p,"blur",function(){--s,setTimeout(function(){s<=0&&u()},200)}),e.on(p,"focus",function(){++s})}}),e.defineExtension("openNotification",function(t,i){function r(){c||(c=!0,clearTimeout(u),l.parentNode.removeChild(l))}n(this,r);var u,l=o(this,t,i&&i.bottom),c=!1,f=i&&void 0!==i.duration?i.duration:5e3;return e.on(l,"click",function(o){e.e_preventDefault(o),r()}),f&&(u=setTimeout(r,f)),r})});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/vendor/codemirror/addon/runmode/runmode-standalone.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
- window.CodeMirror={},function(){"use strict";function t(t){this.pos=this.start=0,this.string=t,this.lineStart=0}t.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return 0==this.pos},peek:function(){return this.string.charAt(this.pos)||null},next:function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},eat:function(t){var r=this.string.charAt(this.pos);if("string"==typeof t)e=r==t;else var e=r&&(t.test?t.test(r):t(r));if(e)return++this.pos,r},eatWhile:function(t){for(var r=this.pos;this.eat(t););return this.pos>r},eatSpace:function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},skipToEnd:function(){this.pos=this.string.length},skipTo:function(t){var r=this.string.indexOf(t,this.pos);if(r>-1)return this.pos=r,!0},backUp:function(t){this.pos-=t},column:function(){return this.start-this.lineStart},indentation:function(){return 0},match:function(t,r,e){if("string"!=typeof t){var n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&!1!==r&&(this.pos+=n[0].length),n)}var i=function(t){return e?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==r&&(this.pos+=t.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(t,r){this.lineStart+=t;try{return r()}finally{this.lineStart-=t}},lookAhead:function(){return null}},CodeMirror.StringStream=t,CodeMirror.startState=function(t,r,e){return!t.startState||t.startState(r,e)};var r=CodeMirror.modes={},e=CodeMirror.mimeModes={};CodeMirror.defineMode=function(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),r[t]=e},CodeMirror.defineMIME=function(t,r){e[t]=r},CodeMirror.resolveMode=function(t){return"string"==typeof t&&e.hasOwnProperty(t)?t=e[t]:t&&"string"==typeof t.name&&e.hasOwnProperty(t.name)&&(t=e[t.name]),"string"==typeof t?{name:t}:t||{name:"null"}},CodeMirror.getMode=function(t,e){e=CodeMirror.resolveMode(e);var n=r[e.name];if(!n)throw new Error("Unknown mode: "+e);return n(t,e)},CodeMirror.registerHelper=CodeMirror.registerGlobalHelper=Math.min,CodeMirror.defineMode("null",function(){return{token:function(t){t.skipToEnd()}}}),CodeMirror.defineMIME("text/plain","null"),CodeMirror.runMode=function(t,r,e,n){var i=CodeMirror.getMode({indentUnit:2},r);if(1==e.nodeType){var o=n&&n.tabSize||4,s=e,a=0;s.innerHTML="",e=function(t,r){if("\n"==t)return s.appendChild(document.createElement("br")),void(a=0);for(var e="",n=0;;){var i=t.indexOf("\t",n);if(-1==i){e+=t.slice(n),a+=t.length-n;break}a+=i-n,e+=t.slice(n,i);var h=o-a%o;a+=h;for(var u=0;u<h;++u)e+=" ";n=i+1}if(r){var c=s.appendChild(document.createElement("span"));c.className="cm-"+r.replace(/ +/g," cm-"),c.appendChild(document.createTextNode(e))}else s.appendChild(document.createTextNode(e))}}for(var h=function(t){return t.split(/\r?\n|\r/)}(t),u=n&&n.state||CodeMirror.startState(i),c=0,d=h.length;c<d;++c){c&&e("\n");var l=new CodeMirror.StringStream(h[c]);for(!l.string&&i.blankLine&&i.blankLine(u);!l.eol();){var f=i.token(l,u);e(l.current(),f,c,l.start,u),l.start=l.pos}}}}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L22

Insecure DOM Manipulation (XSS) in runmode.js

CWE-79
File Location: media/vendor/codemirror/addon/runmode/runmode.js:22
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 = "";
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1629

Insecure DOM Manipulation (XSS) in cropper.esm.js

CWE-79
File Location: media/vendor/cropperjs/js/cropper.esm.js:1629
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
- element.innerHTML = data.html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L22

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

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert-es5.js:22
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
- var a = document.createElement('style');a.id = 'joomla-alert-stylesheet', a.innerHTML = 'joomla-alert{padding:.5rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;display:block;opacity:0;transition:opacity .15s linear}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{position:relative;top:-.5rem;right:-1.25rem;padding:.5rem 1.25rem;color:inherit}joomla-alert .joomla-alert--close{font-size:1.5rem;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff}joomla-alert .joomla-alert--close,joomla-alert .joomla-alert-button--close{background:0 0;border:0;float:right;color:#000;opacity:.5}joomla-alert .joomla-alert--close:focus,joomla-alert .joomla-alert--close:hover,joomla-alert .joomla-alert-button--close:focus,joomla-alert .joomla-alert-button--close:hover{color:#000;text-decoration:none;cursor:pointer;opacity:.75}joomla-alert button.joomla-alert-button--close{font-size:100%;line-height:1.15;cursor:pointer;padding-top:.75rem;background:0 0;border:0;-webkit-appearance:none}joomla-alert.joomla-alert--show{opacity:1}joomla-alert[level=success]{background-color:#dff0d8;border-color:#d0e9c6;color:#3c763d}joomla-alert[level=success] hr{border-top-color:#c1e2b3}joomla-alert[level=success] .alert-link{color:#2b542c}joomla-alert[level=info]{background-color:#d9edf7;border-color:#bcdff1;color:#31708f}joomla-alert[level=info] hr{border-top-color:#a6d5ec}joomla-alert[level=info] .alert-link{color:#245269}joomla-alert[level=warning]{background-color:#fcf8e3;border-color:#faf2cc;color:#8a6d3b}joomla-alert[level=warning] hr{border-top-color:#f7ecb5}joomla-alert[level=warning] .alert-link{color:#66512c}joomla-alert[level=danger]{background-color:#f2dede;border-color:#ebcccc;color:#a94442}joomla-alert[level=danger] hr{border-top-color:#e4b9b9}joomla-alert[level=danger] .alert-link{color:#843534}', document.head.appendChild(a);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L123

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

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

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:1730
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.timefloatcurrent.innerHTML = (0, _time.secondsToTimeCode)(t.newTime, player.options.alwaysShowHours, player.options.showTimecodeFrameCount, player.options.framesPerSecond, player.options.secondsDecimalLength);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2280

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2280
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.chaptersButton.innerHTML = '<button type="button" aria-controls="' + t.id + '" title="' + chaptersTitle + '" aria-label="' + chaptersTitle + '" tabindex="0"></button>' + ('<div class="' + t.options.classPrefix + 'chapters-selector ' + t.options.classPrefix + 'offscreen">') + ('<ul class="' + t.options.classPrefix + 'chapters-selector-list"></ul>') + '</div>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2608

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2608
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
L6017

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:6017
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
- flash.flashWrapper.innerHTML = '<embed ' + settings.join(' ') + '>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L6816

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/table/plugin.js:6816
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
L1

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

CWE-79
File Location: media/vendor/tinymce/plugins/table/plugin.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(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};h("p",Array),h("q",Error),g("n",["p","q"],function(a,b){var c=function(){},d=function(a,b){return function(){return a(b.apply(null,arguments))}},e=function(a){return function(){return a}},f=function(a){return a},g=function(a,b){return a===b},h=function(b){for(var c=new a(arguments.length-1),d=1;d<arguments.length;d++)c[d-1]=arguments[d];return function(){for(var d=new a(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];var f=c.concat(d);return b.apply(null,f)}},i=function(a){return function(){return!a.apply(null,arguments)}},j=function(a){return function(){throw new b(a)}},k=function(a){return a()},l=function(a){a()},m=e(!1),n=e(!0);return{noop:c,compose:d,constant:e,identity:f,tripleEquals:g,curry:h,not:i,die:j,apply:k,call:l,never:m,always:n}}),h("o",Object),g("2",["n","o"],function(a,b){var c=a.never,d=a.always,e=function(){return f},f=function(){var f=function(a){return a.isNone()},g=function(a){return a()},h=function(a){return a},i=function(){},j={fold:function(a,b){return a()},is:c,isSome:c,isNone:d,getOr:h,getOrThunk:g,getOrDie:function(a){throw new Error(a||"error: getOrDie called on none.")},or:h,orThunk:g,map:e,ap:e,each:i,bind:e,flatten:e,exists:c,forall:d,filter:e,equals:f,equals_:f,toArray:function(){return[]},toString:a.constant("none()")};return b.freeze&&b.freeze(j),j}(),g=function(a){var b=function(){return a},h=function(){return k},i=function(b){return g(b(a))},j=function(b){return b(a)},k={fold:function(b,c){return c(a)},is:function(b){return a===b},isSome:d,isNone:c,getOr:b,getOrThunk:b,getOrDie:b,or:h,orThunk:h,map:i,ap:function(b){return b.fold(e,function(b){return g(b(a))})},each:function(b){b(a)},bind:j,flatten:b,exists:j,forall:j,filter:function(b){return b(a)?k:f},equals:function(b){return b.is(a)},equals_:function(b,d){return b.fold(c,function(b){return d(a,b)})},toArray:function(){return[a]},toString:function(){return"some("+a+")"}};return k},h=function(a){return null===a||void 0===a?f:g(a)};return{some:g,none:e,from:h}}),h("r",String),g("1",["2","p","q","r"],function(a,b,c,d){var e=function(){var a=b.prototype.indexOf,c=function(b,c){return a.call(b,c)},d=function(a,b){return u(a,b)};return void 0===a?d:c}(),f=function(b,c){var d=e(b,c);return d===-1?a.none():a.some(d)},g=function(a,b){return e(a,b)>-1},h=function(a,b){return t(a,b).isSome()},i=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b(d));return c},j=function(a,b){for(var c=[],d=0;d<a.length;d+=b){var e=a.slice(d,d+b);c.push(e)}return c},k=function(a,c){for(var d=a.length,e=new b(d),f=0;f<d;f++){var g=a[f];e[f]=c(g,f,a)}return e},l=function(a,b){for(var c=0,d=a.length;c<d;c++){var e=a[c];b(e,c,a)}},m=function(a,b){for(var c=a.length-1;c>=0;c--){var d=a[c];b(d,c,a)}},n=function(a,b){for(var c=[],d=[],e=0,f=a.length;e<f;e++){var g=a[e],h=b(g,e,a)?c:d;h.push(g)}return{pass:c,fail:d}},o=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];b(f,d,a)&&c.push(f)}return c},p=function(a,b){if(0===a.length)return[];for(var c=b(a[0]),d=[],e=[],f=0,g=a.length;f<g;f++){var h=a[f],i=b(h);i!==c&&(d.push(e),e=[]),c=i,e.push(h)}return 0!==e.length&&d.push(e),d},q=function(a,b,c){return m(a,function(a){c=b(c,a)}),c},r=function(a,b,c){return l(a,function(a){c=b(c,a)}),c},s=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(f)}return a.none()},t=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(d)}return a.none()},u=function(a,b){for(var c=0,d=a.length;c<d;++c)if(a[c]===b)return c;return-1},v=b.prototype.push,w=function(a){for(var d=[],e=0,f=a.length;e<f;++e){if(!b.prototype.isPrototypeOf(a[e]))throw new c("Arr.flatten item "+e+" was not an array, input: "+a);v.apply(d,a[e])}return d},x=function(a,b){var c=k(a,b);return w(c)},y=function(a,b){for(var c=0,d=a.length;c<d;++c){var e=a[c];if(b(e,c,a)!==!0)return!1}return!0},z=function(a,b){return a.length===b.length&&y(a,function(a,c){return a===b[c]})},A=b.prototype.slice,B=function(a){var b=A.call(a,0);return b.reverse(),b},C=function(a,b){return o(a,function(a){return!g(b,a)})},D=function(a,b){for(var c={},e=0,f=a.length;e<f;e++){var g=a[e];c[d(g)]=b(g,e)}return c},E=function(a){return[a]},F=function(a,b){var c=A.call(a,0);return c.sort(b),c},G=function(b){return 0===b.length?a.none():a.some(b[0])},H=function(b){return 0===b.length?a.none():a.some(b[b.length-1])};return{map:k,each:l,eachr:m,partition:n,filter:o,groupBy:p,indexOf:f,foldr:q,foldl:r,find:s,findIndex:t,flatten:w,bind:x,forall:y,exists:h,contains:g,equal:z,reverse:B,chunk:j,difference:C,mapToObject:D,pure:E,sort:F,range:i,head:G,last:H}}),g("s",[],function(){return"undefined"==typeof console&&(console={log:function(){}}),console}),h("t",document),g("6",["n","q","s","t"],function(a,b,c,d){var e=function(a,b){var e=b||d,f=e.createElement("div");if(f.innerHTML=a,!f.hasChildNodes()||f.childNodes.length>1)throw c.error("HTML does not have a single root node",a),"HTML must have a single root node";return h(f.childNodes[0])},f=function(a,b){var c=b||d,e=c.createElement(a);return h(e)},g=function(a,b){var c=b||d,e=c.createTextNode(a);return h(e)},h=function(c){if(null===c||void 0===c)throw new b("Node cannot be null or undefined");return{dom:a.constant(c)}};return{fromHtml:e,fromTag:f,fromText:g,fromDom:h}}),g("v",["n"],function(a){var b=function(c,d){var e=function(a,e){return b(c+a,d+e)};return{left:a.constant(c),top:a.constant(d),translate:e}};return b}),g("5v",[],function(){return"undefined"!=typeof window?window:Function("return this;")()}),g("58",["5v"],function(a){var b=function(b,c){for(var d=void 0!==c?c:a,e=0;e<b.length&&void 0!==d&&null!==d;++e)d=d[b[e]];return d},c=function(a,c){var d=a.split(".");return b(d,c)},d=function(a,b){return void 0!==a[b]&&null!==a[b]||(a[b]={}),a[b]},e=function(b,c){for(var e=void 0!==c?c:a,f=0;f<b.length;++f)e=d(e,b[f]);return e},f=function(a,b){var c=a.split(".");return e(c,b)};return{path:b,resolve:c,forge:e,namespace:f}}),g("48",["58"],function(a){var b=function(b,c){return a.resolve(b,c)},c=function(a,c){var d=b(a,c);if(void 0===d)throw a+" not available on this browser";return d};return{getOrDie:c}}),g("2r",["48"],function(a){var b=function(){var b=a.getOrDie("Node");return b},c=function(a,b,c){return 0!==(a.compareDocumentPosition(b)&c)},d=function(a,d){return c(a,d,b().DOCUMENT_POSITION_PRECEDING)},e=function(a,d){return c(a,d,b().DOCUMENT_POSITION_CONTAINED_BY)};return{documentPositionPreceding:d,documentPositionContainedBy:e}}),g("2v",[],function(){var a=function(a){var b,c=!1;return function(){return c||(c=!0,b=a.apply(null,arguments)),b}};return{cached:a}}),h("6a",Number),g("5w",["1","6a","r"],function(a,b,c){var d=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d.test(b))return d}},e=function(a,c){var e=d(a,c);if(!e)return{major:0,minor:0};var f=function(a){return b(c.replace(e,"$"+a))};return h(f(1),f(2))},f=function(a,b){var d=c(b).toLowerCase();return 0===a.length?g():e(a,d)},g=function(){return h(0,0)},h=function(a,b){return{major:a,minor:b}};return{nu:h,detect:f,unknown:g}}),g("59",["n","5w"],function(a,b){var c="Edge",d="Chrome",e="IE",f="Opera",g="Firefox",h="Safari",i=function(a,b){return function(){return b===a}},j=function(){return k({current:void 0,version:b.unknown()})},k=function(a){var b=a.current,j=a.version;return{current:b,version:j,isEdge:i(c,b),isChrome:i(d,b),isIE:i(e,b),isOpera:i(f,b),isFirefox:i(g,b),isSafari:i(h,b)}};return{unknown:j,nu:k,edge:a.constant(c),chrome:a.constant(d),ie:a.constant(e),opera:a.constant(f),firefox:a.constant(g),safari:a.constant(h)}}),g("5a",["n","5w"],function(a,b){var c="Windows",d="iOS",e="Android",f="Linux",g="OSX",h="Solaris",i="FreeBSD",j=function(a,b){return function(){return b===a}},k=function(){return l({current:void 0,version:b.unknown()})},l=function(a){var b=a.current,k=a.version;return{current:b,version:k,isWindows:j(c,b),isiOS:j(d,b),isAndroid:j(e,b),isOSX:j(g,b),isLinux:j(f,b),isSolaris:j(h,b),isFreeBSD:j(i,b)}};return{unknown:k,nu:l,windows:a.constant(c),ios:a.constant(d),android:a.constant(e),linux:a.constant(f),osx:a.constant(g),solaris:a.constant(h),freebsd:a.constant(i)}}),g("5b",["n"],function(a){return function(b,c,d){var e=b.isiOS()&&/ipad/i.test(d)===!0,f=b.isiOS()&&!e,g=b.isAndroid()&&3===b.version.major,h=b.isAndroid()&&4===b.version.major,i=e||g||h&&/mobile/i.test(d)===!0,j=b.isiOS()||b.isAndroid(),k=j&&!i,l=c.isSafari()&&b.isiOS()&&/safari/i.test(d)===!1;return{isiPad:a.constant(e),isiPhone:a.constant(f),isTablet:a.constant(i),isPhone:a.constant(k),isTouch:a.constant(j),isAndroid:b.isAndroid,isiOS:b.isiOS,isWebView:a.constant(l)}}}),g("5c",["1","5w","r"],function(a,b,c){var d=function(b,d){var e=c(d).toLowerCase();return a.find(b,function(a){return a.search(e)})},e=function(a,c){return d(a,c).map(function(a){var d=b.detect(a.versionRegexes,c);return{current:a.name,version:d}})},f=function(a,c){return d(a,c).map(function(a){var d=b.detect(a.versionRegexes,c);return{current:a.name,version:d}})};return{detectBrowser:e,detectOs:f}}),g("4c",[],function(){var a=function(a,b){return b+a},b=function(a,b){return a+b},c=function(a,b){return a.substring(b)},d=function(a,b){return a.substring(0,a.length-b)};return{addToStart:a,addToEnd:b,removeFromStart:c,removeFromEnd:d}}),g("4d",["2","q"],function(a,b){var c=function(a,b){return a.substr(0,b)},d=function(a,b){return a.substr(a.length-b,a.length)},e=function(b){return""===b?a.none():a.some(b.substr(0,1))},f=function(b){return""===b?a.none():a.some(b.substring(1))};return{first:c,last:d,head:e,tail:f}}),g("2y",["4c","4d","q"],function(a,b,c){var d=function(a,b,c){if(""===b)return!0;if(a.length<b.length)return!1;var d=a.substr(c,c+b.length);return d===b},e=function(a,b){var c=function(a){var b=typeof a;return"string"===b||"number"===b};return a.replace(/\${([^{}]*)}/g,function(a,d){var e=b[d];return c(e)?e:a})},f=function(b,c){return l(b,c)?a.removeFromStart(b,c.length):b},g=function(b,c){return m(b,c)?a.removeFromEnd(b,c.length):b},h=function(b,c){return l(b,c)?b:a.addToStart(b,c)},i=function(b,c){return m(b,c)?b:a.addToEnd(b,c)},j=function(a,b){return a.indexOf(b)!==-1},k=function(a){return b.head(a).bind(function(c){return b.tail(a).map(function(a){return c.toUpperCase()+a})}).getOr(a)},l=function(a,b){return d(a,b,0)},m=function(a,b){return d(a,b,a.length-b.length)},n=function(a){return a.replace(/^\s+|\s+$/g,"")},o=function(a){return a.replace(/^\s+/g,"")},p=function(a){return a.replace(/\s+$/g,"")};return{supplant:e,startsWith:l,removeLeading:f,removeTrailing:g,ensureLeading:h,ensureTrailing:i,endsWith:m,contains:j,trim:n,lTrim:o,rTrim:p,capitalize:k}}),g("5d",["n","2y"],function(a,b){var c=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,d=function(a){return function(c){return b.contains(c,a)}},e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(a){var c=b.contains(a,"edge/")&&b.contains(a,"chrome")&&b.contains(a,"safari")&&b.contains(a,"applewebkit");return c}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,c],search:function(a){return b.contains(a,"chrome")&&!b.contains(a,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(a){return b.contains(a,"msie")||b.contains(a,"trident")}},{name:"Opera",versionRegexes:[c,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:d("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:d("firefox")},{name:"Safari",versionRegexes:[c,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(a){return(b.contains(a,"safari")||b.contains(a,"mobile/"))&&b.contains(a,"applewebkit")}}],f=[{name:"Windows",search:d("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(a){return b.contains(a,"iphone")||b.contains(a,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:d("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:d("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:d("linux"),versionRegexes:[]},{name:"Solaris",search:d("sunos"),versionRegexes:[]},{name:"FreeBSD",search:d("freebsd"),versionRegexes:[]}];return{browsers:a.constant(e),oses:a.constant(f)}}),g("49",["59","5a","5b","5c","5d"],function(a,b,c,d,e){var f=function(f){var g=e.browsers(),h=e.oses(),i=d.detectBrowser(g,f).fold(a.unknown,a.nu),j=d.detectOs(h,f).fold(b.unknown,b.nu),k=c(j,i,f);return{browser:i,os:j,deviceType:k}};return{detect:f}}),h("4a",navigator),g("2s",["2v","49","4a"],function(a,b,c){var d=a.cached(function(){var a=c.userAgent;return b.detect(a)});return{detect:d}}),g("2t",[],function(){return{ATTRIBUTE:2,CDATA_SECTION:4,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,ELEMENT:1,TEXT:3,PROCESSING_INSTRUCTION:7,ENTITY_REFERENCE:5,ENTITY:6,NOTATION:12}}),g("16",["1","2","6","2t","q","t"],function(a,b,c,d,e,f){var g=0,h=1,i=2,j=3,k=function(){var a=f.createElement("span");return void 0!==a.matches?g:void 0!==a.msMatchesSelector?h:void 0!==a.webkitMatchesSelector?i:void 0!==a.mozMatchesSelector?j:-1}(),l=d.ELEMENT,m=d.DOCUMENT,n=function(a,b){var c=a.dom();if(c.nodeType!==l)return!1;if(k===g)return c.matches(b);if(k===h)return c.msMatchesSelector(b);if(k===i)return c.webkitMatchesSelector(b);if(k===j)return c.mozMatchesSelector(b);throw new e("Browser lacks native selectors")},o=function(a){return a.nodeType!==l&&a.nodeType!==m||0===a.childElementCount},p=function(b,d){var e=void 0===d?f:d.dom();return o(e)?[]:a.map(e.querySelectorAll(b),c.fromDom)},q=function(a,d){var e=void 0===d?f:d.dom();return o(e)?b.none():b.from(e.querySelector(a)).map(c.fromDom)};return{all:p,is:n,one:q}}),g("1w",["1","n","2r","2s","16"],function(a,b,c,d,e){var f=function(a,b){return a.dom()===b.dom()},g=function(a,b){return a.dom().isEqualNode(b.dom())},h=function(c,d){return a.exists(d,b.curry(f,c))},i=function(a,b){var c=a.dom(),d=b.dom();return c!==d&&c.contains(d)},j=function(a,b){return c.documentPositionContainedBy(a.dom(),b.dom())},k=d.detect().browser,l=k.isIE()?j:i;return{eq:f,isEqualNode:g,member:h,contains:l,is:e.is}}),g("14",["2t"],function(a){var b=function(a){var b=a.dom().nodeName;return b.toLowerCase()},c=function(a){return a.dom().nodeType},d=function(a){return a.dom().nodeValue},e=function(a){return function(b){return c(b)===a}},f=function(d){return c(d)===a.COMMENT||"#comment"===b(d)},g=e(a.ELEMENT),h=e(a.TEXT),i=e(a.DOCUMENT);return{name:b,type:c,value:d,isElement:g,isText:h,isDocument:i,isComment:f}}),g("12",["p","r"],function(a,b){var c=function(c){if(null===c)return"null";var d=typeof c;return"object"===d&&a.prototype.isPrototypeOf(c)?"array":"object"===d&&b.prototype.isPrototypeOf(c)?"string":d},d=function(a){return function(b){return c(b)===a}};return{isString:d("string"),isObject:d("object"),isArray:d("array"),isNull:d("null"),isBoolean:d("boolean"),isUndefined:d("undefined"),isFunction:d("function"),isNumber:d("number")}}),g("1t",["2v","6","14","t"],function(a,b,c,d){var e=function(a){var b=c.isText(a)?a.dom().parentNode:a.dom();return void 0!==b&&null!==b&&b.ownerDocument.body.contains(b)},f=a.cached(function(){return g(b.fromDom(d))}),g=function(a){var c=a.dom().body;if(null===c||void 0===c)throw"Body is not available yet";return b.fromDom(c)};return{body:f,getBody:g,inBody:e}}),g("32",["12","2"],function(a,b){return function(c,d,e,f,g){return c(e,f)?b.some(e):a.isFunction(g)&&g(e)?b.none():d(e,f,g)}}),g("31",["12","1","n","2","1t","1w","6","32"],function(a,b,c,d,e,f,g,h){var i=function(a){return n(e.body(),a)},j=function(b,e,f){for(var h=b.dom(),i=a.isFunction(f)?f:c.constant(!1);h.parentNode;){h=h.parentNode;var j=g.fromDom(h);if(e(j))return d.some(j);if(i(j))break}return d.none()},k=function(a,b,c){var d=function(a){return b(a)};return h(d,j,a,b,c)},l=function(a,b){var c=a.dom();return c.parentNode?m(g.fromDom(c.parentNode),function(c){return!f.eq(a,c)&&b(c)}):d.none()},m=function(a,d){var e=b.find(a.dom().childNodes,c.compose(d,g.fromDom));return e.map(g.fromDom)},n=function(a,b){var c=function(a){for(var e=0;e<a.childNodes.length;e++){if(b(g.fromDom(a.childNodes[e])))return d.some(g.fromDom(a.childNodes[e]));var f=c(a.childNodes[e]);if(f.isSome())return f}return d.none()};return c(a.dom())};return{first:i,ancestor:j,closest:k,sibling:l,child:m,descendant:n}}),g("29",["n","1w","6","14","31","t"],function(a,b,c,d,e,f){var g=function(d,g){var h=g||c.fromDom(f.documentElement);return e.ancestor(d,a.curry(b.eq,h)).isSome()},h=function(a){var b=a.dom();return b===b.window?a:d.isDocument(a)?b.defaultView||b.parentWindow:null};return{attached:g,windowOf:h}}),g("u",["v","29","6"],function(a,b,c){var d=function(b){var c=b.getBoundingClientRect();return a(c.left,c.top)},e=function(a,b){return void 0!==a?a:void 0!==b?b:0},f=function(a){var d=a.dom().ownerDocument,f=d.body,g=b.windowOf(c.fromDom(d)),i=d.documentElement,j=e(g.pageYOffset,i.scrollTop),k=e(g.pageXOffset,i.scrollLeft),l=e(i.clientTop,f.clientTop),m=e(i.clientLeft,f.clientLeft);return h(a).translate(k-m,j-l)},g=function(b){var c=b.dom();return a(c.offsetLeft,c.offsetTop)},h=function(e){var f=e.dom(),g=f.ownerDocument,h=g.body,i=c.fromDom(g.documentElement);return h===f?a(h.offsetLeft,h.offsetTop):b.attached(e,i)?d(f):a(0,0)};return{absolute:f,relative:g,viewport:h}}),g("3",["n","2","6","u","v"],function(a,b,c,d,e){var f=function(d){var f=b.from(d.dom().documentElement).map(c.fromDom).getOr(d);return{parent:a.constant(f),view:a.constant(d),origin:a.constant(e(0,0))}},g=function(b,c){var e=a.curry(d.absolute,c);return{parent:a.constant(c),view:a.constant(b),origin:e}},h=function(b,c){return{parent:a.constant(c),view:a.constant(b),origin:a.constant(e(0,0))}};return{only:f,detached:g,body:h}}),g("2a",["1","n","p","q"],function(a,b,c,d){return function(){var e=arguments;return function(){for(var f=new c(arguments.length),g=0;g<f.length;g++)f[g]=arguments[g];if(e.length!==f.length)throw new d('Wrong number of arguments to struct. Expected "['+e.length+']", got '+f.length+" arguments");var h={};return a.each(e,function(a,c){h[a]=b.constant(f[c])}),h}}}),g("13",["2","o"],function(a,b){var c=function(){var a=b.keys,c=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};return void 0===a?c:a}(),d=function(a,b){for(var d=c(a),e=0,f=d.length;e<f;e++){var g=d[e],h=a[g];b(h,g,a)}},e=function(a,b){return f(a,function(a,c,d){return{k:c,v:b(a,c,d)}})},f=function(a,b){var c={};return d(a,function(d,e){var f=b(d,e,a);c[f.k]=f.v}),c},g=function(a,b){var c={},e={};return d(a,function(a,d){var f=b(a,d)?c:e;f[d]=a}),{t:c,f:e}},h=function(a,b){var c=[];return d(a,function(a,d){c.push(b(a,d))}),c},i=function(b,d){for(var e=c(b),f=0,g=e.length;f<g;f++){var h=e[f],i=b[h];if(d(i,h,b))return a.some(i)}return a.none()},j=function(a){return h(a,function(a){return a})},k=function(a){return j(a).length};return{bifilter:g,each:d,map:e,mapToArray:h,tupleMap:f,find:i,keys:c,values:j,size:k}}),g("4b",["1","12","q"],function(a,b,c){var d=function(a){return a.slice(0).sort()},e=function(a,b){throw new c("All required keys ("+d(a).join(", ")+") were not specified. Specified keys were: "+d(b).join(", ")+".")},f=function(a){throw new c("Unsupported keys for object: "+d(a).join(", "))},g=function(d,e){if(!b.isArray(e))throw new c("The "+d+" fields must be an array. Was: "+e+".");a.each(e,function(a){if(!b.isString(a))throw new c("The value "+a+" in the "+d+" fields was not a string.")})},h=function(a,b){throw new c("All values need to be of type: "+b+". Keys ("+d(a).join(", ")+") were not.")},i=function(b){var e=d(b),f=a.find(e,function(a,b){return b<e.length-1&&a===e[b+1]});f.each(function(a){throw new c("The field: "+a+" occurs more than once in the combined fields: ["+e.join(", ")+"].")})};return{sort:d,reqMessage:e,unsuppMessage:f,validateStrArr:g,invalidTypeMessage:h,checkDupes:i}}),g("2b",["1","n","13","2","4b","q","o"],function(a,b,c,d,e,f,g){return function(h,i){var j=h.concat(i);if(0===j.length)throw new f("You must specify at least one required or optional field.");return e.validateStrArr("required",h),e.validateStrArr("optional",i),e.checkDupes(j),function(f){var k=c.keys(f),l=a.forall(h,function(b){return a.contains(k,b)});l||e.reqMessage(h,k);var m=a.filter(k,function(b){return!a.contains(j,b)});m.length>0&&e.unsuppMessage(m);var n={};return a.each(h,function(a){n[a]=b.constant(f[a])}),a.each(i,function(a){n[a]=b.constant(g.prototype.hasOwnProperty.call(f,a)?d.some(f[a]):d.none())}),n}}}),g("24",["2a","2b"],function(a,b){return{immutable:a,immutableBag:b}}),g("7",["12","1","13","14","q","s"],function(a,b,c,d,e,f){var g=function(b,c,d){if(!(a.isString(d)||a.isBoolean(d)||a.isNumber(d)))throw f.error("Invalid call to Attr.set. Key ",c,":: Value ",d,":: Element ",b),new e("Attribute value was not simple");b.setAttribute(c,d+"")},h=function(a,b,c){g(a.dom(),b,c)},i=function(a,b){var d=a.dom();c.each(b,function(a,b){g(d,b,a)})},j=function(a,b){var c=a.dom().getAttribute(b);return null===c?void 0:c},k=function(a,b){var c=a.dom();return!(!c||!c.hasAttribute)&&c.hasAttribute(b)},l=function(a,b){a.dom().removeAttribute(b)},m=function(a){var b=a.dom().attributes;return void 0===b||null===b||0===b.length},n=function(a){return b.foldl(a.dom().attributes,function(a,b){return a[b.name]=b.value,a},{})},o=function(a,b,c){k(a,c)&&!k(b,c)&&h(b,c,j(a,c))},p=function(a,c,e){d.isElement(a)&&d.isElement(c)&&b.each(e,function(b){o(a,c,b)})};return{clone:n,set:h,setAll:i,get:j,has:k,remove:l,hasNone:m,transfer:p}}),g("2x",[],function(){var a=function(a){return void 0!==a.style};return{isSupported:a}}),h("2z",window),g("1u",["12","1","13","2","7","1t","6","14","2x","2y","q","s","2z"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=function(b,c,d){if(!a.isString(d))throw l.error("Invalid call to CSS.set. Property ",c,":: Value ",d,":: Element ",b),new k("CSS value must be a string: "+d);i.isSupported(b)&&b.style.setProperty(c,d)},o=function(a,b){i.isSupported(a)&&a.style.removeProperty(b)},p=function(a,b,c){var d=a.dom();n(d,b,c)},q=function(a,b){var d=a.dom();c.each(b,function(a,b){n(d,b,a)})},r=function(a,b){var d=a.dom();c.each(b,function(a,b){a.fold(function(){o(d,b)},function(a){n(d,b,a)})})},s=function(a,b){var c=a.dom(),d=m.getComputedStyle(c),e=d.getPropertyValue(b),g=""!==e||f.inBody(a)?e:t(c,b);return null===g?void 0:g},t=function(a,b){return i.isSupported(a)?a.style.getPropertyValue(b):""},u=function(a,b){var c=a.dom(),e=t(c,b);return d.from(e).filter(function(a){return a.length>0})},v=function(a){var b={},c=a.dom();if(i.isSupported(c))for(var d=0;d<c.style.length;d++){var e=c.style.item(d);b[e]=c.style[e]}return b},w=function(a,b,c){var d=g.fromTag(a);p(d,b,c);var e=u(d,b);return e.isSome()},x=function(a,b){var c=a.dom();o(c,b),e.has(a,"style")&&""===j.trim(e.get(a,"style"))&&e.remove(a,"style")},y=function(a,b){var c=e.get(a,"style"),d=b(a),f=void 0===c?e.remove:e.set;return f(a,"style",c),d},z=function(a,b){var c=a.dom(),d=b.dom();i.isSupported(c)&&i.isSupported(d)&&(d.style.cssText=c.style.cssText)},A=function(a){return a.dom().offsetWidth},B=function(a,b,c){u(a,c).each(function(a){u(b,c).isNone()&&p(b,c,a)})},C=function(a,c,d){h.isElement(a)&&h.isElement(c)&&b.each(d,function(b){B(a,c,b)})};return{copy:z,set:p,preserve:y,setAll:q,setOptions:r,remove:x,get:s,getRaw:u,getAllRaw:v,isValidValue:w,reflow:A,transfer:C}}),g("4e",["12","1","1u","2x"],function(a,b,c,d){return function(e,f){var g=function(b,c){if(!a.isNumber(c)&&!c.match(/^[0-9]+$/))throw e+".set accepts only positive integer values. Value was "+c;var f=b.dom();d.isSupported(f)&&(f.style[e]=c+"px")},h=function(a){var b=f(a);if(b<=0||null===b){var d=c.get(a,e);return parseFloat(d)||0}return b},i=h,j=function(a,d){return b.foldl(d,function(b,d){var e=c.get(a,d),f=void 0===e?0:parseInt(e,10);return isNaN(f)?b:b+f},0)},k=function(a,b,c){var d=j(a,c),e=b>d?b-d:0;return e};return{set:g,get:h,getOuter:i,aggregate:j,max:k}}}),g("2c",["1t","1u","4e"],function(a,b,c){var d=c("height",function(b){return a.inBody(b)?b.dom().getBoundingClientRect().height:b.dom().offsetHeight}),e=function(a,b){d.set(a,b)},f=function(a){return d.get(a)},g=function(a){return d.getOuter(a)},h=function(a,c){var e=["margin-top","border-top-width","padding-top","padding-bottom","border-bottom-width","margin-bottom"],f=d.max(a,c,e);b.set(a,"max-height",f+"px")};return{set:e,get:f,getOuter:g,setMax:h}}),g("2d",["1u","4e"],function(a,b){var c=b("width",function(a){return a.dom().offsetWidth}),d=function(a,b){c.set(a,b)},e=function(a){return c.get(a)},f=function(a){return c.getOuter(a)},g=function(b,d){var e=["margin-left","border-left-width","padding-left","padding-right","border-right-width","margin-right"],f=c.max(b,d,e);a.set(b,"max-width",f+"px")};return{set:d,get:e,getOuter:f,setMax:g}}),g("11",["1","n","24","2c","u","2d"],function(a,b,c,d,e,f){var g=c.immutable("row","y"),h=c.immutable("col","x"),i=function(a){var b=e.absolute(a);return b.left()+f.getOuter(a)},j=function(a){return e.absolute(a).left()},k=function(a,b){return h(a,j(b))},l=function(a,b){return h(a,i(b))},m=function(a){return e.absolute(a).top()},n=function(a,b){return g(a,m(b))},o=function(a,b){return g(a,m(b)+d.getOuter(b))},p=function(b,c,d){if(0===d.length)return[];var e=a.map(d.slice(1),function(a,c){return a.map(function(a){return b(c,a)})}),f=d[d.length-1].map(function(a){return c(d.length-1,a)});return e.concat([f])},q=function(a,b){return-a},r={delta:b.identity,positions:b.curry(p,n,o),edge:m},s={delta:b.identity,edge:j,positions:b.curry(p,k,l)},t={delta:q,edge:i,positions:b.curry(p,l,k)};return{height:r,rtl:t,ltr:s}}),g("w",["11"],function(a){return{ltr:a.ltr,rtl:a.rtl}}),g("4",["w"],function(a){return function(b){var c=function(c){return b(c).isRtl()?a.rtl:a.ltr},d=function(a,b){return c(b).delta(a,b)},e=function(a,b){return c(b).positions(a,b)},f=function(a){return c(a).edge(a)};return{delta:d,edge:f,positions:e}}}),g("x",["1","24"],function(a,b){return function(c){var d=b.immutable.apply(null,c),e=[],f=function(a){if(void 0===a)throw"Event bind error: undefined handler";e.push(a)},g=function(b){e=a.filter(e,function(a){return a!==b})},h=function(){var b=d.apply(null,arguments);a.each(e,function(a){a(b)})};return{bind:f,unbind:g,trigger:h}}}),g("y",["13"],function(a){var b=function(b){var c=a.map(b,function(a){return{bind:a.bind,unbind:a.unbind}}),d=a.map(b,function(a){return a.trigger});return{registry:c,trigger:d}};return{create:b}}),g("4f",[],function(){var a=function(){return f(function(a,b,c,d,e){return a()})},b=function(a){return f(function(b,c,d,e,f){return c(a)})},c=function(a,b){return f(function(c,d,e,f,g){return e(a,b)})},d=function(a,b,c){return f(function(d,e,f,g,h){return g(a,b,c)})},e=function(a,b){return f(function(c,d,e,f,g){return g(a,b)})},f=function(a){return{fold:a}};return{none:a,only:b,left:c,middle:d,right:e}}),h("2m",Math),g("2e",["1","n","4f","2m"],function(a,b,c,d){var e=function(a,b){return 0===a.length?c.none():1===a.length?c.only(0):0===b?c.left(0,1):b===a.length-1?c.right(b-1,b):b>0&&b<a.length-1?c.middle(b-1,b,b+1):c.none()},f=function(c,f,g,h){var i=c.slice(0),j=e(c,f),k=function(c){return a.map(c,b.constant(0))},l=b.constant(k(i)),m=function(a){return h.singleColumnWidth(i[a],g)},n=function(a,b){if(g>=0){var c=d.max(h.minCellWidth(),i[b]-g);return k(i.slice(0,a)).concat([g,c-i[b]]).concat(k(i.slice(b+1)))}var e=d.max(h.minCellWidth(),i[a]+g),f=i[a]-e;return k(i.slice(0,a)).concat([e-i[a],f]).concat(k(i.slice(b+1)))},o=n,p=function(a,b,c){return n(b,c)},q=function(a,b){if(g>=0)return k(i.slice(0,b)).concat([g]);var c=d.max(h.minCellWidth(),i[b]+g);return k(i.slice(0,b)).concat([c-i[b]])};return j.fold(l,m,o,p,q)};return{determine:f}}),g("38",["24"],function(a){var b=a.immutable("width","height"),c=a.immutable("rows","columns"),d=a.immutable("row","column"),e=a.immutable("x","y"),f=a.immutable("element","rowspan","colspan"),g=a.immutable("element","rowspan","colspan","isNew"),h=a.immutable("element","rowspan","colspan","row","column"),i=a.immutable("element","cells","section"),j=a.immutable("element","isNew"),k=a.immutable("element","cells","section","isNew"),l=a.immutable("cells","section"),m=a.immutable("details","section"),n=a.immutable("startRow","startCol","finishRow","finishCol");return{dimensions:b,grid:c,address:d,coords:e,extended:h,detail:f,detailnew:g,rowdata:i,elementnew:j,rowdatanew:k,rowcells:l,rowdetails:m,bounds:n}}),g("34",[],function(){var a=function(a,b){var c=[],d=function(a){return c.push(a),b(a)},e=b(a);do e=e.bind(d);while(e.isSome());return c};return{toArray:a}}),g("26",["12","1","n","2","24","34","1w","6"],function(a,b,c,d,e,f,g,h){var i=function(a){return h.fromDom(a.dom().ownerDocument)},j=function(a){var b=i(a);return h.fromDom(b.dom().documentElement)},k=function(a){var b=a.dom(),c=b.ownerDocument.defaultView;return h.fromDom(c)},l=function(a){var b=a.dom();return d.from(b.parentNode).map(h.fromDom)},m=function(a){return l(a).bind(function(c){var d=u(c);return b.findIndex(d,function(b){return g.eq(a,b)})})},n=function(b,d){for(var e=a.isFunction(d)?d:c.constant(!1),f=b.dom(),g=[];null!==f.parentNode&&void 0!==f.parentNode;){var i=f.parentNode,j=h.fromDom(i);if(g.push(j),e(j)===!0)break;f=i}return g},o=function(a){var c=function(c){return b.filter(c,function(b){return!g.eq(a,b)})};return l(a).map(u).map(c).getOr([])},p=function(a){var b=a.dom();return d.from(b.offsetParent).map(h.fromDom)},q=function(a){var b=a.dom();return d.from(b.previousSibling).map(h.fromDom)},r=function(a){var b=a.dom();return d.from(b.nextSibling).map(h.fromDom)},s=function(a){return b.reverse(f.toArray(a,q))},t=function(a){return f.toArray(a,r)},u=function(a){var c=a.dom();return b.map(c.childNodes,h.fromDom)},v=function(a,b){var c=a.dom().childNodes;return d.from(c[b]).map(h.fromDom)},w=function(a){return v(a,0)},x=function(a){return v(a,a.dom().childNodes.length-1)},y=function(a,b){return a.dom().childNodes.length},z=e.immutable("element","offset"),A=function(a,b){var c=u(a);return c.length>0&&b<c.length?z(c[b],0):z(a,b)};return{owner:i,defaultView:k,documentElement:j,parent:l,findIndex:m,parents:n,siblings:o,prevSibling:q,offsetParent:p,prevSiblings:s,nextSibling:r,nextSiblings:t,children:u,child:v,firstChild:w,lastChild:x,childNodesCount:y,leaf:A}}),g("35",["1","n","16","26"],function(a,b,c,d){var e=function(a,c){return f(a,c,b.constant(!0))},f=function(b,e,g){return a.bind(d.children(b),function(a){return c.is(a,e)?g(a)?[a]:[]:f(a,e,g)})};return{firstLayer:e,filterFirstLayer:f}}),g("15",["1","1t","26"],function(a,b,c){var d=function(a){return h(b.body(),a)},e=function(b,d,e){return a.filter(c.parents(b,e),d)},f=function(b,d){return a.filter(c.siblings(b),d)},g=function(b,d){return a.filter(c.children(b),d)},h=function(b,d){var e=[];return a.each(c.children(b),function(a){d(a)&&(e=e.concat([a])),e=e.concat(h(a,d))}),e};return{all:d,ancestors:e,siblings:f,children:g,descendants:h}}),g("8",["15","16"],function(a,b){var c=function(a){return b.all(a)},d=function(c,d,e){return a.ancestors(c,function(a){return b.is(a,d)},e)},e=function(c,d){return a.siblings(c,function(a){return b.is(a,d)})},f=function(c,d){return a.children(c,function(a){return b.is(a,d)})},g=function(a,c){return b.all(c,a)};return{all:c,ancestors:d,siblings:e,children:f,
+ 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/template/plugin.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(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};h("5",tinymce.util.Tools.resolve),g("1",["5"],function(a){return a("tinymce.PluginManager")}),h("c",Array),h("d",Error),g("6",["c","d"],function(a,b){var c=function(){},d=function(a,b){return function(){return a(b.apply(null,arguments))}},e=function(a){return function(){return a}},f=function(a){return a},g=function(a,b){return a===b},h=function(b){for(var c=new a(arguments.length-1),d=1;d<arguments.length;d++)c[d-1]=arguments[d];return function(){for(var d=new a(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];var f=c.concat(d);return b.apply(null,f)}},i=function(a){return function(){return!a.apply(null,arguments)}},j=function(a){return function(){throw new b(a)}},k=function(a){return a()},l=function(a){a()},m=e(!1),n=e(!0);return{noop:c,compose:d,constant:e,identity:f,tripleEquals:g,curry:h,not:i,die:j,apply:k,call:l,never:m,always:n}}),g("8",["5"],function(a){return a("tinymce.util.Tools")}),g("e",["5"],function(a){return a("tinymce.util.XHR")}),g("f",["5"],function(a){return a("tinymce.dom.DOMUtils")}),g("9",["f"],function(a){var b=function(a){return a.getParam("template_cdate_classes","cdate")},c=function(a){return a.getParam("template_mdate_classes","mdate")},d=function(a){return a.getParam("template_selected_content_classes","selcontent")},e=function(a){return a.getParam("template_preview_replace_values")},f=function(a){return a.getParam("template_replace_values")},g=function(a){return a.templates},h=function(a){return a.getParam("template_cdate_format",a.getLang("template.cdate_format"))},i=function(a){return a.getParam("template_mdate_format",a.getLang("template.mdate_format"))},j=function(a){return a.getParam("template_popup_width",600)},k=function(b){return Math.min(a.DOM.getViewPort().h,b.getParam("template_popup_height",500))};return{getCreationDateClasses:b,getModificationDateClasses:c,getSelectedContentClasses:d,getPreviewReplaceValues:e,getTemplateReplaceValues:f,getTemplates:g,getCdateFormat:h,getMdateFormat:i,getDialogWidth:j,getDialogHeight:k}}),g("a",[],function(){var a=function(a,b){if(a=""+a,a.length<b)for(var c=0;c<b-a.length;c++)a="0"+a;return a},b=function(b,c,d){var e="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),f="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),g="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),h="January February March April May June July August September October November December".split(" ");return d=d||new Date,c=c.replace("%D","%m/%d/%Y"),c=c.replace("%r","%I:%M:%S %p"),c=c.replace("%Y",""+d.getFullYear()),c=c.replace("%y",""+d.getYear()),c=c.replace("%m",a(d.getMonth()+1,2)),c=c.replace("%d",a(d.getDate(),2)),c=c.replace("%H",""+a(d.getHours(),2)),c=c.replace("%M",""+a(d.getMinutes(),2)),c=c.replace("%S",""+a(d.getSeconds(),2)),c=c.replace("%I",""+((d.getHours()+11)%12+1)),c=c.replace("%p",""+(d.getHours()<12?"AM":"PM")),c=c.replace("%B",""+b.translate(h[d.getMonth()])),c=c.replace("%b",""+b.translate(g[d.getMonth()])),c=c.replace("%A",""+b.translate(f[d.getDay()])),c=c.replace("%a",""+b.translate(e[d.getDay()])),c=c.replace("%%","%")};return{getDateTime:b}}),g("7",["8","e","9","a"],function(a,b,c,d){var e=function(a,d){return function(){var e=c.getTemplates(a);return"function"==typeof e?void e(d):void("string"==typeof e?b.send({url:e,success:function(a){d(JSON.parse(a))}}):d(e))}},f=function(b,c,d){return a.each(d,function(a,b){"function"==typeof a&&(a=a(b)),c=c.replace(new RegExp("\\{\\$"+b+"\\}","g"),a)}),c},g=function(b,d){var e=b.dom,f=c.getTemplateReplaceValues(b);a.each(e.select("*",d),function(b){a.each(f,function(a,c){e.hasClass(b,c)&&"function"==typeof f[c]&&f[c](b)})})},h=function(a,b){return new RegExp("\\b"+b+"\\b","g").test(a.className)},i=function(b,e,i){var j,k,l=b.dom,m=b.selection.getContent();i=f(b,i,c.getTemplateReplaceValues(b)),j=l.create("div",null,i),k=l.select(".mceTmpl",j),k&&k.length>0&&(j=l.create("div",null),j.appendChild(k[0].cloneNode(!0))),a.each(l.select("*",j),function(a){h(a,c.getCreationDateClasses(b).replace(/\s+/g,"|"))&&(a.innerHTML=d.getDateTime(b,c.getCdateFormat(b))),h(a,c.getModificationDateClasses(b).replace(/\s+/g,"|"))&&(a.innerHTML=d.getDateTime(b,c.getMdateFormat(b))),h(a,c.getSelectedContentClasses(b).replace(/\s+/g,"|"))&&(a.innerHTML=m)}),g(b,j),b.execCommand("mceInsertContent",!1,j.innerHTML),b.addVisual()};return{createTemplateList:e,replaceTemplateValues:f,replaceVals:g,insertTemplate:i}}),g("2",["6","7"],function(a,b){var c=function(c){c.addCommand("mceInsertTemplate",a.curry(b.insertTemplate,c))};return{register:c}}),g("3",["8","9","a","7"],function(a,b,c,d){var e=function(e){e.on("PreProcess",function(f){var g=e.dom,h=b.getMdateFormat(e);a.each(g.select("div",f.node),function(b){g.hasClass(b,"mceTmpl")&&(a.each(g.select("*",b),function(a){g.hasClass(a,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(a.innerHTML=c.getDateTime(e,h))}),d.replaceVals(e,b))})})};return{setup:e}}),g("b",["f","8","e","9","7"],function(a,b,c,d,e){var f=function(a,c,f){if(f.indexOf("<html>")===-1){var g="";b.each(a.contentCSS,function(b){g+='<link type="text/css" rel="stylesheet" href="'+a.documentBaseURI.toAbsolute(b)+'">'});var h=a.settings.body_class||"";h.indexOf("=")!==-1&&(h=a.getParam("body_class","","hash"),h=h[a.id]||""),f="<!DOCTYPE html><html><head>"+g+'</head><body class="'+h+'">'+f+"</body></html>"}f=e.replaceTemplateValues(a,f,d.getPreviewReplaceValues(a));var i=c.find("iframe")[0].getEl().contentWindow.document;i.open(),i.write(f),i.close()},g=function(a,g){var h,i,j=[];if(!g||0===g.length){var k=a.translate("No templates defined.");return void a.notificationManager.open({text:k,type:"info"})}b.each(g,function(a){j.push({selected:!j.length,text:a.title,value:{url:a.url,content:a.content,description:a.description}})});var l=function(b){var d=b.control.value();d.url?c.send({url:d.url,success:function(b){i=b,f(a,h,i)}}):(i=d.content,f(a,h,i)),h.find("#description")[0].text(b.control.value().description)};h=a.windowManager.open({title:"Insert template",layout:"flex",direction:"column",align:"stretch",padding:15,spacing:10,items:[{type:"form",flex:0,padding:0,items:[{type:"container",label:"Templates",items:{type:"listbox",label:"Templates",name:"template",values:j,onselect:l}}]},{type:"label",name:"description",label:"Description",text:"\xa0"},{type:"iframe",flex:1,border:1}],onsubmit:function(){e.insertTemplate(a,!1,i)},minWidth:d.getDialogWidth(a),minHeight:d.getDialogHeight(a)}),h.find("listbox")[0].fire("select")};return{open:g}}),g("4",["7","b"],function(a,b){var c=function(a){return function(c){b.open(a,c)}},d=function(b){b.addButton("template",{title:"Insert template",onclick:a.createTemplateList(b.settings,c(b))}),b.addMenuItem("template",{text:"Template",onclick:a.createTemplateList(b.settings,c(b)),icon:"template",context:"insert"})};return{register:d}}),g("0",["1","2","3","4"],function(a,b,c,d){return a.add("template",function(a){d.register(a),b.register(a),c.setup(a)}),function(){}}),d("0")()}();
+ 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/visualchars/plugin.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(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};g("1",[],function(){var a=function(b){var c=b,d=function(){return c},e=function(a){c=a},f=function(){return a(d())};return{get:d,set:e,clone:f}};return a}),h("7",tinymce.util.Tools.resolve),g("2",["7"],function(a){return a("tinymce.PluginManager")}),g("3",[],function(){var a=function(a){var b=function(){return a.get()};return{isEnabled:b}};return{get:a}}),g("b",[],function(){var a=function(a,b){return a.fire("VisualChars",{state:b})};return{fireVisualChars:a}}),g("c",[],function(){var a={"\xa0":"nbsp","\xad":"shy"},b=function(a,b){var c,d="";for(c in a)d+=c;return new RegExp("["+d+"]",b?"g":"")},c=function(a){var b,c="";for(b in a)c&&(c+=","),c+="span.mce-"+a[b];return c};return{charMap:a,regExp:b(a),regExpGlobal:b(a,!0),selector:c(a),charMapToRegExp:b,charMapToSelector:c}}),h("i",Array),h("j",Error),g("l",["i","j"],function(a,b){var c=function(){},d=function(a,b){return function(){return a(b.apply(null,arguments))}},e=function(a){return function(){return a}},f=function(a){return a},g=function(a,b){return a===b},h=function(b){for(var c=new a(arguments.length-1),d=1;d<arguments.length;d++)c[d-1]=arguments[d];return function(){for(var d=new a(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];var f=c.concat(d);return b.apply(null,f)}},i=function(a){return function(){return!a.apply(null,arguments)}},j=function(a){return function(){throw new b(a)}},k=function(a){return a()},l=function(a){a()},m=e(!1),n=e(!0);return{noop:c,compose:d,constant:e,identity:f,tripleEquals:g,curry:h,not:i,die:j,apply:k,call:l,never:m,always:n}}),h("q",Object),g("h",["l","q"],function(a,b){var c=a.never,d=a.always,e=function(){return f},f=function(){var f=function(a){return a.isNone()},g=function(a){return a()},h=function(a){return a},i=function(){},j={fold:function(a,b){return a()},is:c,isSome:c,isNone:d,getOr:h,getOrThunk:g,getOrDie:function(a){throw new Error(a||"error: getOrDie called on none.")},or:h,orThunk:g,map:e,ap:e,each:i,bind:e,flatten:e,exists:c,forall:d,filter:e,equals:f,equals_:f,toArray:function(){return[]},toString:a.constant("none()")};return b.freeze&&b.freeze(j),j}(),g=function(a){var b=function(){return a},h=function(){return k},i=function(b){return g(b(a))},j=function(b){return b(a)},k={fold:function(b,c){return c(a)},is:function(b){return a===b},isSome:d,isNone:c,getOr:b,getOrThunk:b,getOrDie:b,or:h,orThunk:h,map:i,ap:function(b){return b.fold(e,function(b){return g(b(a))})},each:function(b){b(a)},bind:j,flatten:b,exists:j,forall:j,filter:function(b){return b(a)?k:f},equals:function(b){return b.is(a)},equals_:function(b,d){return b.fold(c,function(b){return d(a,b)})},toArray:function(){return[a]},toString:function(){return"some("+a+")"}};return k},h=function(a){return null===a||void 0===a?f:g(a)};return{some:g,none:e,from:h}}),h("k",String),g("e",["h","i","j","k"],function(a,b,c,d){var e=function(){var a=b.prototype.indexOf,c=function(b,c){return a.call(b,c)},d=function(a,b){return u(a,b)};return void 0===a?d:c}(),f=function(b,c){var d=e(b,c);return d===-1?a.none():a.some(d)},g=function(a,b){return e(a,b)>-1},h=function(a,b){return t(a,b).isSome()},i=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b(d));return c},j=function(a,b){for(var c=[],d=0;d<a.length;d+=b){var e=a.slice(d,d+b);c.push(e)}return c},k=function(a,c){for(var d=a.length,e=new b(d),f=0;f<d;f++){var g=a[f];e[f]=c(g,f,a)}return e},l=function(a,b){for(var c=0,d=a.length;c<d;c++){var e=a[c];b(e,c,a)}},m=function(a,b){for(var c=a.length-1;c>=0;c--){var d=a[c];b(d,c,a)}},n=function(a,b){for(var c=[],d=[],e=0,f=a.length;e<f;e++){var g=a[e],h=b(g,e,a)?c:d;h.push(g)}return{pass:c,fail:d}},o=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];b(f,d,a)&&c.push(f)}return c},p=function(a,b){if(0===a.length)return[];for(var c=b(a[0]),d=[],e=[],f=0,g=a.length;f<g;f++){var h=a[f],i=b(h);i!==c&&(d.push(e),e=[]),c=i,e.push(h)}return 0!==e.length&&d.push(e),d},q=function(a,b,c){return m(a,function(a){c=b(c,a)}),c},r=function(a,b,c){return l(a,function(a){c=b(c,a)}),c},s=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(f)}return a.none()},t=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(d)}return a.none()},u=function(a,b){for(var c=0,d=a.length;c<d;++c)if(a[c]===b)return c;return-1},v=b.prototype.push,w=function(a){for(var d=[],e=0,f=a.length;e<f;++e){if(!b.prototype.isPrototypeOf(a[e]))throw new c("Arr.flatten item "+e+" was not an array, input: "+a);v.apply(d,a[e])}return d},x=function(a,b){var c=k(a,b);return w(c)},y=function(a,b){for(var c=0,d=a.length;c<d;++c){var e=a[c];if(b(e,c,a)!==!0)return!1}return!0},z=function(a,b){return a.length===b.length&&y(a,function(a,c){return a===b[c]})},A=b.prototype.slice,B=function(a){var b=A.call(a,0);return b.reverse(),b},C=function(a,b){return o(a,function(a){return!g(b,a)})},D=function(a,b){for(var c={},e=0,f=a.length;e<f;e++){var g=a[e];c[d(g)]=b(g,e)}return c},E=function(a){return[a]},F=function(a,b){var c=A.call(a,0);return c.sort(b),c},G=function(b){return 0===b.length?a.none():a.some(b[0])},H=function(b){return 0===b.length?a.none():a.some(b[b.length-1])};return{map:k,each:l,eachr:m,partition:n,filter:o,groupBy:p,indexOf:f,foldr:q,foldl:r,find:s,findIndex:t,flatten:w,bind:x,forall:y,exists:h,contains:g,equal:z,reverse:B,chunk:j,difference:C,mapToObject:D,pure:E,sort:F,range:i,head:G,last:H}}),g("m",[],function(){return"undefined"==typeof console&&(console={log:function(){}}),console}),h("n",document),g("f",["l","j","m","n"],function(a,b,c,d){var e=function(a,b){var e=b||d,f=e.createElement("div");if(f.innerHTML=a,!f.hasChildNodes()||f.childNodes.length>1)throw c.error("HTML does not have a single root node",a),"HTML must have a single root node";return h(f.childNodes[0])},f=function(a,b){var c=b||d,e=c.createElement(a);return h(e)},g=function(a,b){var c=b||d,e=c.createTextNode(a);return h(e)},h=function(c){if(null===c||void 0===c)throw new b("Node cannot be null or undefined");return{dom:a.constant(c)}};return{fromHtml:e,fromTag:f,fromText:g,fromDom:h}}),g("o",[],function(){return{ATTRIBUTE:2,CDATA_SECTION:4,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,ELEMENT:1,TEXT:3,PROCESSING_INSTRUCTION:7,ENTITY_REFERENCE:5,ENTITY:6,NOTATION:12}}),g("g",["o"],function(a){var b=function(a){var b=a.dom().nodeName;return b.toLowerCase()},c=function(a){return a.dom().nodeType},d=function(a){return a.dom().nodeValue},e=function(a){return function(b){return c(b)===a}},f=function(d){return c(d)===a.COMMENT||"#comment"===b(d)},g=e(a.ELEMENT),h=e(a.TEXT),i=e(a.DOCUMENT);return{name:b,type:c,value:d,isElement:g,isText:h,isDocument:i,isComment:f}}),g("p",["c"],function(a){var b=function(b){return'<span data-mce-bogus="1" class="mce-'+a.charMap[b]+'">'+b+"</span>"};return{wrapCharWithSpan:b}}),g("d",["e","f","g","c","p"],function(a,b,c,d,e){var f=function(a){return c.isText(a)&&void 0!==c.value(a)&&d.regExp.test(c.value(a))},g=function(c,d){var e=[],f=c.dom(),h=a.map(f.childNodes,b.fromDom);return a.each(h,function(a){d(a)&&(e=e.concat([a])),e=e.concat(g(a,d))}),e},h=function(a,b){for(;a.parentNode;){if(a.parentNode===b)return a;a=a.parentNode}},i=function(a){return a.replace(d.regExpGlobal,e.wrapCharWithSpan)};return{isMatch:f,filterDescendants:g,findParentElm:h,replaceWithSpans:i}}),g("a",["c","d","e","f","g"],function(a,b,c,d,e){var f=function(a,f){var g,h,i=b.filterDescendants(d.fromDom(f),b.isMatch);c.each(i,function(c){var d=b.replaceWithSpans(e.value(c));for(h=a.dom.create("div",null,d);g=h.lastChild;)a.dom.insertAfter(g,c.dom());a.dom.remove(c.dom())})},g=function(b,d){var e=b.dom.select(a.selector,d);c.each(e,function(a){b.dom.remove(a,1)})},h=function(a){var c=a.getBody(),d=a.selection.getBookmark(),e=b.findParentElm(a.selection.getNode(),c);e=void 0!==e?e:c,g(a,e),f(a,e),a.selection.moveToBookmark(d)};return{show:f,hide:g,toggle:h}}),g("8",["b","a"],function(a,b){var c=function(c,d){var e,f=c.getBody(),g=c.selection;d.set(!d.get()),a.fireVisualChars(c,d.get()),e=g.getBookmark(),d.get()===!0?b.show(c,f):b.hide(c,f),g.moveToBookmark(e)};return{toggleVisualChars:c}}),g("4",["8"],function(a){var b=function(b,c){b.addCommand("mceVisualChars",function(){a.toggleVisualChars(b,c)})};return{register:b}}),g("9",["7"],function(a){return a("tinymce.util.Delay")}),g("5",["9","a"],function(a,b){var c=function(c,d){var e=a.debounce(function(){b.toggle(c)},300);c.settings.forced_root_block!==!1&&c.on("keydown",function(a){d.get()===!0&&(13===a.keyCode?b.toggle(c):e())})};return{setup:c}}),g("6",[],function(){var a=function(a){return function(b){var c=b.control;a.on("VisualChars",function(a){c.active(a.state)})}},b=function(b){b.addButton("visualchars",{title:"Show invisible characters",cmd:"mceVisualChars",onPostRender:a(b)}),b.addMenuItem("visualchars",{text:"Show invisible characters",cmd:"mceVisualChars",onPostRender:a(b),selectable:!0,context:"view",prependToContext:!0})};return{register:b}}),g("0",["1","2","3","4","5","6"],function(a,b,c,d,e,f){return b.add("visualchars",function(b){var g=a(!1);return d.register(b,g),f.register(b),e.setup(b,g),c.get(g)}),function(){}}),d("0")()}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L11856

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:11856
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
L1448

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/mobile/theme.js:1448
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
L5093

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/mobile/theme.js:5093
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
L7834

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.js:7834
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
- self.getEl().firstChild.innerHTML = e.value;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L36876

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:36876
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
- container.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3

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

CWE-79
File Location: media/vendor/tinymce/tinymce.min.js:3
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
- var e=0;for(arguments.length<3&&(c=a[0]);e<a.length;e++)c=b.call(d,c,a[e],e);return c},h=function(a,b,c){var d,e;for(d=0,e=a.length;d<e;d++)if(b.call(c,a[d],d,a))return d;return-1},i=function(a,b,c){var d=h(a,b,c);if(d!==-1)return a[d]},j=function(a){return a[a.length-1]};return{isArray:a,toArray:b,each:c,map:d,filter:e,indexOf:f,reduce:g,findIndex:h,find:i,last:j}}),g("1e",["2","b","1r"],function(a,b,c){var d=/^\s*|\s*$/g,e=function(a){return null===a||void 0===a?"":(""+a).replace(d,"")},f=function(a,b){return b?!("array"!=b||!c.isArray(a))||typeof a==b:void 0!==a},g=function(a,b,c){var d;for(a=a||[],b=b||",","string"==typeof a&&(a=a.split(b)),c=c||{},d=a.length;d--;)c[a[d]]={};return c},h=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},i=function(a,b,c){var d,e,f,g,h,i=this,j=0;if(a=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(a),f=a[3].match(/(^|\.)(\w+)$/i)[2],e=i.createNS(a[3].replace(/\.\w+$/,""),c),!e[f]){if("static"==a[2])return e[f]=b,void(this.onCreate&&this.onCreate(a[2],a[3],e[f]));b[f]||(b[f]=function(){},j=1),e[f]=b[f],i.extend(e[f].prototype,b),a[5]&&(d=i.resolve(a[5]).prototype,g=a[5].match(/\.(\w+)$/i)[1],h=e[f],j?e[f]=function(){return d[g].apply(this,arguments)}:e[f]=function(){return this.parent=d[g],h.apply(this,arguments)},e[f].prototype[f]=e[f],i.each(d,function(a,b){e[f].prototype[b]=d[b]}),i.each(b,function(a,b){d[b]?e[f].prototype[b]=function(){return this.parent=d[b],a.apply(this,arguments)}:b!=f&&(e[f].prototype[b]=a)})),i.each(b["static"],function(a,b){e[f][b]=a})}},j=function(a,b){var c,d,e,f,g=arguments;for(c=1,d=g.length;c<d;c++){b=g[c];for(e in b)b.hasOwnProperty(e)&&(f=b[e],void 0!==f&&(a[e]=f))}return a},k=function(a,b,d,e){e=e||this,a&&(d&&(a=a[d]),c.each(a,function(a,c){return b.call(e,a,c,d)!==!1&&void k(a,b,d,e)}))},l=function(b,c){var d,e;for(c=c||a,b=b.split("."),d=0;d<b.length;d++)e=b[d],c[e]||(c[e]={}),c=c[e];return c},m=function(b,c){var d,e;for(c=c||a,b=b.split("."),d=0,e=b.length;d<e&&(c=c[b[d]],c);d++);return c},n=function(a,b){return!a||f(a,"array")?a:c.map(a.split(b||","),e)},o=function(a){var c=b.cacheSuffix;return c&&(a+=(a.indexOf("?")===-1?"?":"&")+c),a};return{trim:e,isArray:c.isArray,is:f,toArray:c.toArray,makeMap:g,each:c.each,map:c.map,grep:c.filter,inArray:c.indexOf,hasOwn:h,extend:j,create:i,walk:k,createNS:l,resolve:m,explode:n,_addCacheSuffix:o}}),g("m",["1j","n","r","b","1e"],function(a,b,c,d,e){var f,g=a,h=Array.prototype.push,i=Array.prototype.slice,j=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,k=b.Event,l=e.makeMap("children,contents,next,prev"),m=function(a){return"undefined"!=typeof a},n=function(a){return"string"==typeof a},o=function(a){return a&&a==a.window},p=function(a,b){var c,d,e;for(b=b||g,e=b.createElement("div"),c=b.createDocumentFragment(),e.innerHTML=a;d=e.firstChild;)c.appendChild(d);return c},q=function(a,b,c,d){var e;if(n(b))b=p(b,F(a[0]));else if(b.length&&!b.nodeType){if(b=z.makeArray(b),d)for(e=b.length-1;e>=0;e--)q(a,b[e],c,d);else for(e=0;e<b.length;e++)q(a,b[e],c,d);return a}if(b.nodeType)for(e=a.length;e--;)c.call(a[e],b);return a},r=function(a,b){return a&&b&&(" "+a.className+" ").indexOf(" "+b+" ")!==-1},s=function(a,b,c){var d,e;return b=z(b)[0],a.each(function(){var a=this;c&&d==a.parentNode?e.appendChild(a):(d=a.parentNode,e=b.cloneNode(!1),a.parentNode.insertBefore(e,a),e.appendChild(a))}),a},t=e.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),u=e.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),v={"for":"htmlFor","class":"className",readonly:"readOnly"},w={"float":"cssFloat"},x={},y={},z=function(a,b){return new z.fn.init(a,b)},A=function(a,b){var c;if(b.indexOf)return b.indexOf(a);for(c=b.length;c--;)if(b[c]===a)return c;return-1},B=/^\s*|\s*$/g,C=function(a){return null===a||a===f?"":(""+a).replace(B,"")},D=function(a,b){var c,d,e,f,g;if(a)if(c=a.length,c===f){for(d in a)if(a.hasOwnProperty(d)&&(g=a[d],b.call(g,d,g)===!1))break}else for(e=0;e<c&&(g=a[e],b.call(g,e,g)!==!1);e++);return a},E=function(a,b){var c=[];return D(a,function(a,d){b(d,a)&&c.push(d)}),c},F=function(a){return a?9==a.nodeType?a:a.ownerDocument:g};z.fn=z.prototype={constructor:z,selector:"",context:null,length:0,init:function(b,c){var d,e,f=this;if(!b)return f;if(b.nodeType)return f.context=f[0]=b,f.length=1,f;if(c&&c.nodeType)f.context=c;else{if(c)return z(b).attr(c);f.context=c=a}if(n(b)){if(f.selector=b,d="<"===b.charAt(0)&&">"===b.charAt(b.length-1)&&b.length>=3?[null,b,null]:j.exec(b),!d)return z(c).find(b);if(d[1])for(e=p(b,F(c)).firstChild;e;)h.call(f,e),e=e.nextSibling;else{if(e=F(c).getElementById(d[2]),!e)return f;if(e.id!==d[2])return f.find(b);f.length=1,f[0]=e}}else this.add(b,!1);return f},toArray:function(){return e.toArray(this)},add:function(a,b){var c,d,e=this;if(n(a))return e.add(z(a));if(b!==!1)for(c=z.unique(e.toArray().concat(z.makeArray(a))),e.length=c.length,d=0;d<c.length;d++)e[d]=c[d];else h.apply(e,z.makeArray(a));return e},attr:function(a,b){var c,d=this;if("object"==typeof a)D(a,function(a,b){d.attr(a,b)});else{if(!m(b)){if(d[0]&&1===d[0].nodeType){if(c=x[a],c&&c.get)return c.get(d[0],a);if(u[a])return d.prop(a)?a:f;b=d[0].getAttribute(a,2),null===b&&(b=f)}return b}this.each(function(){var c;if(1===this.nodeType){if(c=x[a],c&&c.set)return void c.set(this,b);null===b?this.removeAttribute(a,2):this.setAttribute(a,b,2)}})}return d},removeAttr:function(a){return this.attr(a,null)},prop:function(a,b){var c=this;if(a=v[a]||a,"object"==typeof a)D(a,function(a,b){c.prop(a,b)});else{if(!m(b))return c[0]&&c[0].nodeType&&a in c[0]?c[0][a]:b;this.each(function(){1==this.nodeType&&(this[a]=b)})}return c},css:function(a,b){var c,d,e=this,g=function(a){return a.replace(/-(\D)/g,function(a,b){return b.toUpperCase()})},h=function(a){return a.replace(/[A-Z]/g,function(a){return"-"+a})};if("object"==typeof a)D(a,function(a,b){e.css(a,b)});else if(m(b))a=g(a),"number"!=typeof b||t[a]||(b+="px"),e.each(function(){var c=this.style;if(d=y[a],d&&d.set)return void d.set(this,b);try{this.style[w[a]||a]=b}catch(a){}null!==b&&""!==b||(c.removeProperty?c.removeProperty(h(a)):c.removeAttribute(a))});else{if(c=e[0],d=y[a],d&&d.get)return d.get(c);if(c.ownerDocument.defaultView)try{return c.ownerDocument.defaultView.getComputedStyle(c,null).getPropertyValue(h(a))}catch(a){return f}else if(c.currentStyle)return c.currentStyle[g(a)]}return e},remove:function(){for(var a,b=this,c=this.length;c--;)a=b[c],k.clean(a),a.parentNode&&a.parentNode.removeChild(a);return this},empty:function(){for(var a,b=this,c=this.length;c--;)for(a=b[c];a.firstChild;)a.removeChild(a.firstChild);return this},html:function(a){var b,c=this;if(m(a)){b=c.length;try{for(;b--;)c[b].innerHTML=a}catch(d){z(c[b]).empty().append(a)}return c}return c[0]?c[0].innerHTML:""},text:function(a){var b,c=this;if(m(a)){for(b=c.length;b--;)"innerText"in c[b]?c[b].innerText=a:c[0].textContent=a;return c}return c[0]?c[0].innerText||c[0].textContent:""},append:function(){return q(this,arguments,function(a){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(a)})},prepend:function(){return q(this,arguments,function(a){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(a,this.firstChild)},!0)},before:function(){var a=this;return a[0]&&a[0].parentNode?q(a,arguments,function(a){this.parentNode.insertBefore(a,this)}):a},after:function(){var a=this;return a[0]&&a[0].parentNode?q(a,arguments,function(a){this.parentNode.insertBefore(a,this.nextSibling)},!0):a},appendTo:function(a){return z(a).append(this),this},prependTo:function(a){return z(a).prepend(this),this},replaceWith:function(a){return this.before(a).remove()},wrap:function(a){return s(this,a)},wrapAll:function(a){return s(this,a,!0)},wrapInner:function(a){return this.each(function(){z(this).contents().wrapAll(a)}),this},unwrap:function(){return this.parent().each(function(){z(this).replaceWith(this.childNodes)})},clone:function(){var a=[];return this.each(function(){a.push(this.cloneNode(!0))}),z(a)},addClass:function(a){return this.toggleClass(a,!0)},removeClass:function(a){return this.toggleClass(a,!1)},toggleClass:function(a,b){var c=this;return"string"!=typeof a?c:(a.indexOf(" ")!==-1?D(a.split(" "),function(){c.toggleClass(this,b)}):c.each(function(c,d){var e,f;f=r(d,a),f!==b&&(e=d.className,f?d.className=C((" "+e+" ").replace(" "+a+" "," ")):d.className+=e?" "+a:a)}),c)},hasClass:function(a){return r(this[0],a)},each:function(a){return D(this,a)},on:function(a,b){return this.each(function(){k.bind(this,a,b)})},off:function(a,b){return this.each(function(){k.unbind(this,a,b)})},trigger:function(a){return this.each(function(){"object"==typeof a?k.fire(this,a.type,a):k.fire(this,a)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new z(i.apply(this,arguments))},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(a){var b,c,d=[];for(b=0,c=this.length;b<c;b++)z.find(a,this[b],d);return z(d)},filter:function(a){return z("function"==typeof a?E(this.toArray(),function(b,c){return a(c,b)}):z.filter(a,this.toArray()))},closest:function(a){var b=[];return a instanceof z&&(a=a[0]),this.each(function(c,d){for(;d;){if("string"==typeof a&&z(d).is(a)){b.push(d);break}if(d==a){b.push(d);break}d=d.parentNode}}),z(b)},offset:function(a){var b,c,d,e,f=0,g=0;return a?this.css(a):(b=this[0],b&&(c=b.ownerDocument,d=c.documentElement,b.getBoundingClientRect&&(e=b.getBoundingClientRect(),f=e.left+(d.scrollLeft||c.body.scrollLeft)-d.clientLeft,g=e.top+(d.scrollTop||c.body.scrollTop)-d.clientTop)),{left:f,top:g})},push:h,sort:[].sort,splice:[].splice},e.extend(z,{extend:e.extend,makeArray:function(a){return o(a)||a.nodeType?[a]:e.toArray(a)},inArray:A,isArray:e.isArray,each:D,trim:C,grep:E,find:c,expr:c.selectors,unique:c.uniqueSort,text:c.getText,contains:c.contains,filter:function(a,b,c){var d=b.length;for(c&&(a=":not("+a+")");d--;)1!=b[d].nodeType&&b.splice(d,1);return b=1===b.length?z.find.matchesSelector(b[0],a)?[b[0]]:[]:z.find.matches(a,b)}});var G=function(a,b,c){var d=[],e=a[b];for("string"!=typeof c&&c instanceof z&&(c=c[0]);e&&9!==e.nodeType;){if(void 0!==c){if(e===c)break;if("string"==typeof c&&z(e).is(c))break}1===e.nodeType&&d.push(e),e=e[b]}return d},H=function(a,b,c,d){var e=[];for(d instanceof z&&(d=d[0]);a;a=a[b])if(!c||a.nodeType===c){if(void 0!==d){if(a===d)break;if("string"==typeof d&&z(a).is(d))break}e.push(a)}return e},I=function(a,b,c){for(a=a[b];a;a=a[b])if(a.nodeType==c)return a;return null};D({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return G(a,"parentNode")},next:function(a){return I(a,"nextSibling",1)},prev:function(a){return I(a,"previousSibling",1)},children:function(a){return H(a.firstChild,"nextSibling",1)},contents:function(a){return e.toArray(("iframe"===a.nodeName?a.contentDocument||a.contentWindow.document:a).childNodes)}},function(a,b){z.fn[a]=function(c){var d=this,e=[];return d.each(function(){var a=b.call(e,this,c,e);a&&(z.isArray(a)?e.push.apply(e,a):e.push(a))}),this.length>1&&(l[a]||(e=z.unique(e)),0===a.indexOf("parents")&&(e=e.reverse())),e=z(e),c?e.filter(c):e}}),D({parentsUntil:function(a,b){return G(a,"parentNode",b)},nextUntil:function(a,b){return H(a,"nextSibling",1,b).slice(1)},prevUntil:function(a,b){return H(a,"previousSibling",1,b).slice(1)}},function(a,b){z.fn[a]=function(c,d){var e=this,f=[];return e.each(function(){var a=b.call(f,this,c,f);a&&(z.isArray(a)?f.push.apply(f,a):f.push(a))}),this.length>1&&(f=z.unique(f),0!==a.indexOf("parents")&&"prevUntil"!==a||(f=f.reverse())),f=z(f),d?f.filter(d):f}}),z.fn.is=function(a){return!!a&&this.filter(a).length>0},z.fn.init.prototype=z.fn,z.overrideDefaults=function(a){var b,c=function(d,e){return b=b||a(),0===arguments.length&&(d=b.element),e||(e=b.context),new c.fn.init(d,e)};return z.extend(c,this),c};var J=function(a,b,c){D(c,function(c,d){a[c]=a[c]||{},a[c][b]=d})};return d.ie&&d.ie<8&&(J(x,"get",{maxlength:function(a){var b=a.maxLength;return 2147483647===b?f:b},size:function(a){var b=a.size;return 20===b?f:b},"class":function(a){return a.className},style:function(a){var b=a.style.cssText;return 0===b.length?f:b}}),J(x,"set",{"class":function(a,b){a.className=b},style:function(a,b){a.style.cssText=b}})),d.ie&&d.ie<9&&(w["float"]="styleFloat",J(y,"set",{opacity:function(a,b){var c=a.style;null===b||""===b?c.removeAttribute("filter"):(c.zoom=1,c.filter="alpha(opacity="+100*b+")")}})),z.attrHooks=x,z.cssHooks=y,z}),g("4r",[],function(){var a=function(a){var b,c=!1;return function(){return c||(c=!0,b=a.apply(null,arguments)),b}};return{cached:a}}),h("6v",Number),g("6h",["1i","6v","3a"],function(a,b,c){var d=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d.test(b))return d}},e=function(a,c){var e=d(a,c);if(!e)return{major:0,minor:0};var f=function(a){return b(c.replace(e,"$"+a))};return h(f(1),f(2))},f=function(a,b){var d=c(b).toLowerCase();return 0===a.length?g():e(a,d)},g=function(){return h(0,0)},h=function(a,b){return{major:a,minor:b}};return{nu:h,detect:f,unknown:g}}),g("5y",["1","6h"],function(a,b){var c="Edge",d="Chrome",e="IE",f="Opera",g="Firefox",h="Safari",i=function(a,b){return function(){return b===a}},j=function(){return k({current:void 0,version:b.unknown()})},k=function(a){var b=a.current,j=a.version;return{current:b,version:j,isEdge:i(c,b),isChrome:i(d,b),isIE:i(e,b),isOpera:i(f,b),isFirefox:i(g,b),isSafari:i(h,b)}};return{unknown:j,nu:k,edge:a.constant(c),chrome:a.constant(d),ie:a.constant(e),opera:a.constant(f),firefox:a.constant(g),safari:a.constant(h)}}),g("5z",["1","6h"],function(a,b){var c="Windows",d="iOS",e="Android",f="Linux",g="OSX",h="Solaris",i="FreeBSD",j=function(a,b){return function(){return b===a}},k=function(){return l({current:void 0,version:b.unknown()})},l=function(a){var b=a.current,k=a.version;return{current:b,version:k,isWindows:j(c,b),isiOS:j(d,b),isAndroid:j(e,b),isOSX:j(g,b),isLinux:j(f,b),isSolaris:j(h,b),isFreeBSD:j(i,b)}};return{unknown:k,nu:l,windows:a.constant(c),ios:a.constant(d),android:a.constant(e),linux:a.constant(f),osx:a.constant(g),solaris:a.constant(h),freebsd:a.constant(i)}}),g("60",["1"],function(a){return function(b,c,d){var e=b.isiOS()&&/ipad/i.test(d)===!0,f=b.isiOS()&&!e,g=b.isAndroid()&&3===b.version.major,h=b.isAndroid()&&4===b.version.major,i=e||g||h&&/mobile/i.test(d)===!0,j=b.isiOS()||b.isAndroid(),k=j&&!i,l=c.isSafari()&&b.isiOS()&&/safari/i.test(d)===!1;return{isiPad:a.constant(e),isiPhone:a.constant(f),isTablet:a.constant(i),isPhone:a.constant(k),isTouch:a.constant(j),isAndroid:b.isAndroid,isiOS:b.isiOS,isWebView:a.constant(l)}}}),g("61",["1i","6h","3a"],function(a,b,c){var d=function(b,d){var e=c(d).toLowerCase();return a.find(b,function(a){return a.search(e)})},e=function(a,c){return d(a,c).map(function(a){var d=b.detect(a.versionRegexes,c);return{current:a.name,version:d}})},f=function(a,c){return d(a,c).map(function(a){var d=b.detect(a.versionRegexes,c);return{current:a.name,version:d}})};return{detectBrowser:e,detectOs:f}}),g("4v",[],function(){var a=function(a,b){return b+a},b=function(a,b){return a+b},c=function(a,b){return a.substring(b)},d=function(a,b){return a.substring(0,a.length-b)};return{addToStart:a,addToEnd:b,removeFromStart:c,removeFromEnd:d}}),g("4w",["2m","5"],function(a,b){var c=function(a,b){return a.substr(0,b)},d=function(a,b){return a.substr(a.length-b,a.length)},e=function(b){return""===b?a.none():a.some(b.substr(0,1))},f=function(b){return""===b?a.none():a.some(b.substring(1))};return{first:c,last:d,head:e,tail:f}}),g("4f",["4v","4w","5"],function(a,b,c){var d=function(a,b,c){if(""===b)return!0;if(a.length<b.length)return!1;var d=a.substr(c,c+b.length);return d===b},e=function(a,b){var c=function(a){var b=typeof a;return"string"===b||"number"===b};return a.replace(/\${([^{}]*)}/g,function(a,d){var e=b[d];return c(e)?e:a})},f=function(b,c){return l(b,c)?a.removeFromStart(b,c.length):b},g=function(b,c){return m(b,c)?a.removeFromEnd(b,c.length):b},h=function(b,c){return l(b,c)?b:a.addToStart(b,c)},i=function(b,c){return m(b,c)?b:a.addToEnd(b,c)},j=function(a,b){return a.indexOf(b)!==-1},k=function(a){return b.head(a).bind(function(c){return b.tail(a).map(function(a){return c.toUpperCase()+a})}).getOr(a)},l=function(a,b){return d(a,b,0)},m=function(a,b){return d(a,b,a.length-b.length)},n=function(a){return a.replace(/^\s+|\s+$/g,"")},o=function(a){return a.replace(/^\s+/g,"")},p=function(a){return a.replace(/\s+$/g,"")};return{supplant:e,startsWith:l,removeLeading:f,removeTrailing:g,ensureLeading:h,ensureTrailing:i,endsWith:m,contains:j,trim:n,lTrim:o,rTrim:p,capitalize:k}}),g("62",["1","4f"],function(a,b){var c=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,d=function(a){return function(c){return b.contains(c,a)}},e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(a){var c=b.contains(a,"edge/")&&b.contains(a,"chrome")&&b.contains(a,"safari")&&b.contains(a,"applewebkit");return c}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,c],search:function(a){return b.contains(a,"chrome")&&!b.contains(a,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(a){return b.contains(a,"msie")||b.contains(a,"trident")}},{name:"Opera",versionRegexes:[c,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:d("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:d("firefox")},{name:"Safari",versionRegexes:[c,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(a){return(b.contains(a,"safari")||b.contains(a,"mobile/"))&&b.contains(a,"applewebkit")}}],f=[{name:"Windows",search:d("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(a){return b.contains(a,"iphone")||b.contains(a,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:d("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:d("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:d("linux"),versionRegexes:[]},{name:"Solaris",search:d("sunos"),versionRegexes:[]},{name:"FreeBSD",search:d("freebsd"),versionRegexes:[]}];return{browsers:a.constant(e),oses:a.constant(f)}}),g("4s",["5y","5z","60","61","62"],function(a,b,c,d,e){var f=function(f){var g=e.browsers(),h=e.oses(),i=d.detectBrowser(g,f).fold(a.unknown,a.nu),j=d.detectOs(h,f).fold(b.unknown,b.nu),k=c(j,i,f);return{browser:i,os:j,deviceType:k}};return{detect:f}}),g("3c",["4r","4s","1m"],function(a,b,c){var d=a.cached(function(){var a=c.userAgent;return b.detect(a)});return{detect:d}}),g("3d",[],function(){return"undefined"==typeof console&&(console={log:function(){}}),console}),g("1v",["1","5","3d","1j"],function(a,b,c,d){var e=function(a,b){var e=b||d,f=e.createElement("div");if(f.innerHTML=a,!f.hasChildNodes()||f.childNodes.length>1)throw c.error("HTML does not have a single root node",a),"HTML must have a single root node";return h(f.childNodes[0])},f=function(a,b){var c=b||d,e=c.createElement(a);return h(e)},g=function(a,b){var c=b||d,e=c.createTextNode(a);return h(e)},h=function(c){if(null===c||void 0===c)throw new b("Node cannot be null or undefined");return{dom:a.constant(c)}};return{fromHtml:e,fromTag:f,fromText:g,fromDom:h}}),g("4b",[],function(){return{ATTRIBUTE:2,CDATA_SECTION:4,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,ELEMENT:1,TEXT:3,PROCESSING_INSTRUCTION:7,ENTITY_REFERENCE:5,ENTITY:6,NOTATION:12}}),g("3e",["4b"],function(a){var b=function(a){var b=a.dom().nodeName;return b.toLowerCase()},c=function(a){return a.dom().nodeType},d=function(a){return a.dom().nodeValue},e=function(a){return function(b){return c(b)===a}},f=function(d){return c(d)===a.COMMENT||"#comment"===b(d)},g=e(a.ELEMENT),h=e(a.TEXT),i=e(a.DOCUMENT);return{name:b,type:c,value:d,isElement:g,isText:h,isDocument:i,isComment:f}}),g("27",["4","3a"],function(a,b){var c=function(c){if(null===c)return"null";var d=typeof c;return"object"===d&&a.prototype.isPrototypeOf(c)?"array":"object"===d&&b.prototype.isPrototypeOf(c)?"string":d},d=function(a){return function(b){return c(b)===a}};return{isString:d("string"),isObject:d("object"),isArray:d("array"),isNull:d("null"),isBoolean:d("boolean"),isUndefined:d("undefined"),isFunction:d("function"),isNumber:d("number")}}),g("4e",["2m","39"],function(a,b){var c=function(){var a=b.keys,c=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};return void 0===a?c:a}(),d=function(a,b){for(var d=c(a),e=0,f=d.length;e<f;e++){var g=d[e],h=a[g];b(h,g,a)}},e=function(a,b){return f(a,function(a,c,d){return{k:c,v:b(a,c,d)}})},f=function(a,b){var c={};return d(a,function(d,e){var f=b(d,e,a);c[f.k]=f.v}),c},g=function(a,b){var c={},e={};return d(a,function(a,d){var f=b(a,d)?c:e;f[d]=a}),{t:c,f:e}},h=function(a,b){var c=[];return d(a,function(a,d){c.push(b(a,d))}),c},i=function(b,d){for(var e=c(b),f=0,g=e.length;f<g;f++){var h=e[f],i=b[h];if(d(i,h,b))return a.some(i)}return a.none()},j=function(a){return h(a,function(a){return a})},k=function(a){return j(a).length};return{bifilter:g,each:d,map:e,mapToArray:h,tupleMap:f,find:i,keys:c,values:j,size:k}}),g("46",["27","1i","4e","3e","5","3d"],function(a,b,c,d,e,f){var g=function(b,c,d){if(!(a.isString(d)||a.isBoolean(d)||a.isNumber(d)))throw f.error("Invalid call to Attr.set. Key ",c,":: Value ",d,":: Element ",b),new e("Attribute value was not simple");b.setAttribute(c,d+"")},h=function(a,b,c){g(a.dom(),b,c)},i=function(a,b){var d=a.dom();c.each(b,function(a,b){g(d,b,a)})},j=function(a,b){var c=a.dom().getAttribute(b);return null===c?void 0:c},k=function(a,b){var c=a.dom();return!(!c||!c.hasAttribute)&&c.hasAttribute(b)},l=function(a,b){a.dom().removeAttribute(b)},m=function(a){var b=a.dom().attributes;return void 0===b||null===b||0===b.length},n=function(a){return b.foldl(a.dom().attributes,function(a,b){return a[b.name]=b.value,a},{})},o=function(a,b,c){k(a,c)&&!k(b,c)&&h(b,c,j(a,c))},p=function(a,c,e){d.isElement(a)&&d.isElement(c)&&b.each(e,function(b){o(a,c,b)})};return{clone:n,set:h,setAll:i,get:j,has:k,remove:l,hasNone:m,transfer:p}}),g("4t",["4r","1v","3e","1j"],function(a,b,c,d){var e=function(a){var b=c.isText(a)?a.dom().parentNode:a.dom();return void 0!==b&&null!==b&&b.ownerDocument.body.contains(b)},f=a.cached(function(){return g(b.fromDom(d))}),g=function(a){var c=a.dom().body;if(null===c||void 0===c)throw"Body is not available yet";return b.fromDom(c)};return{body:f,getBody:g,inBody:e}}),g("4u",[],function(){var a=function(a){return void 0!==a.style};return{isSupported:a}}),g("3f",["27","1i","4e","2m","46","4t","1v","3e","4u","4f","5","3d","2"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=function(b,c,d){if(!a.isString(d))throw l.error("Invalid call to CSS.set. Property ",c,":: Value ",d,":: Element ",b),new k("CSS value must be a string: "+d);i.isSupported(b)&&b.style.setProperty(c,d)},o=function(a,b){i.isSupported(a)&&a.style.removeProperty(b)},p=function(a,b,c){var d=a.dom();n(d,b,c)},q=function(a,b){var d=a.dom();c.each(b,function(a,b){n(d,b,a)})},r=function(a,b){var d=a.dom();c.each(b,function(a,b){a.fold(function(){o(d,b)},function(a){n(d,b,a)})})},s=function(a,b){var c=a.dom(),d=m.getComputedStyle(c),e=d.getPropertyValue(b),g=""!==e||f.inBody(a)?e:t(c,b);return null===g?void 0:g},t=function(a,b){return i.isSupported(a)?a.style.getPropertyValue(b):""},u=function(a,b){var c=a.dom(),e=t(c,b);return d.from(e).filter(function(a){return a.length>0})},v=function(a){var b={},c=a.dom();if(i.isSupported(c))for(var d=0;d<c.style.length;d++){var e=c.style.item(d);b[e]=c.style[e]}return b},w=function(a,b,c){var d=g.fromTag(a);p(d,b,c);var e=u(d,b);return e.isSome()},x=function(a,b){var c=a.dom();o(c,b),e.has(a,"style")&&""===j.trim(e.get(a,"style"))&&e.remove(a,"style")},y=function(a,b){var c=e.get(a,"style"),d=b(a),f=void 0===c?e.remove:e.set;return f(a,"style",c),d},z=function(a,b){var c=a.dom(),d=b.dom();i.isSupported(c)&&i.isSupported(d)&&(d.style.cssText=c.style.cssText)},A=function(a){return a.dom().offsetWidth},B=function(a,b,c){u(a,c).each(function(a){u(b,c).isNone()&&p(b,c,a)})},C=function(a,c,d){h.isElement(a)&&h.isElement(c)&&b.each(d,function(b){B(a,c,b)})};return{copy:z,set:p,preserve:y,setAll:q,setOptions:r,remove:x,get:s,getRaw:u,getAllRaw:v,isValidValue:w,reflow:A,transfer:C}}),g("4x",["1i","1","4","5"],function(a,b,c,d){return function(){var e=arguments;return function(){for(var f=new c(arguments.length),g=0;g<f.length;g++)f[g]=arguments[g];if(e.length!==f.length)throw new d('Wrong number of arguments to struct. Expected "['+e.length+']", got '+f.length+" arguments");var h={};return a.each(e,function(a,c){h[a]=b.constant(f[c])}),h}}}),g("63",["1i","27","5"],function(a,b,c){var d=function(a){return a.slice(0).sort()},e=function(a,b){throw new c("All required keys ("+d(a).join(", ")+") were not specified. Specified keys were: "+d(b).join(", ")+".")},f=function(a){throw new c("Unsupported keys for object: "+d(a).join(", "))},g=function(d,e){if(!b.isArray(e))throw new c("The "+d+" fields must be an array. Was: "+e+".");a.each(e,function(a){if(!b.isString(a))throw new c("The value "+a+" in the "+d+" fields was not a string.")})},h=function(a,b){throw new c("All values need to be of type: "+b+". Keys ("+d(a).join(", ")+") were not.")},i=function(b){var e=d(b),f=a.find(e,function(a,b){return b<e.length-1&&a===e[b+1]});f.each(function(a){throw new c("The field: "+a+" occurs more than once in the combined fields: ["+e.join(", ")+"].")})};return{sort:d,reqMessage:e,unsuppMessage:f,validateStrArr:g,invalidTypeMessage:h,checkDupes:i}}),g("4y",["1i","1","4e","2m","63","5","39"],function(a,b,c,d,e,f,g){return function(h,i){var j=h.concat(i);if(0===j.length)throw new f("You must specify at least one required or optional field.");return e.validateStrArr("required",h),e.validateStrArr("optional",i),e.checkDupes(j),function(f){var k=c.keys(f),l=a.forall(h,function(b){return a.contains(k,b)});l||e.reqMessage(h,k);var m=a.filter(k,function(b){return!a.contains(j,b)});m.length>0&&e.unsuppMessage(m);var n={};return a.each(h,function(a){n[a]=b.constant(f[a])}),a.each(i,function(a){n[a]=b.constant(g.prototype.hasOwnProperty.call(f,a)?d.some(f[a]):d.none())}),n}}}),g("44",["4x","4y"],function(a,b){return{immutable:a,immutableBag:b}}),g("4z",[],function(){var a=function(a,b){var c=[],d=function(a){return c.push(a),b(a)},e=b(a);do e=e.bind(d);while(e.isSome());return c};return{toArray:a}}),g("4a",["3b"],function(a){var b=function(){var b=a.getOrDie("Node");return b},c=function(a,b,c){return 0!==(a.compareDocumentPosition(b)&c)},d=function(a,d){return c(a,d,b().DOCUMENT_POSITION_PRECEDING)},e=function(a,d){return c(a,d,b().DOCUMENT_POSITION_CONTAINED_BY)};return{documentPositionPreceding:d,documentPositionContainedBy:e}}),g("30",["1i","2m","1v","4b","5","1j"],function(a,b,c,d,e,f){var g=0,h=1,i=2,j=3,k=function(){var a=f.createElement("span");return void 0!==a.matches?g:void 0!==a.msMatchesSelector?h:void 0!==a.webkitMatchesSelector?i:void 0!==a.mozMatchesSelector?j:-1}(),l=d.ELEMENT,m=d.DOCUMENT,n=function(a,b){var c=a.dom();if(c.nodeType!==l)return!1;if(k===g)return c.matches(b);if(k===h)return c.msMatchesSelector(b);if(k===i)return c.webkitMatchesSelector(b);if(k===j)return c.mozMatchesSelector(b);throw new e("Browser lacks native selectors")},o=function(a){return a.nodeType!==l&&a.nodeType!==m||0===a.childElementCount},p=function(b,d){var e=void 0===d?f:d.dom();return o(e)?[]:a.map(e.querySelectorAll(b),c.fromDom)},q=function(a,d){var e=void 0===d?f:d.dom();return o(e)?b.none():b.from(e.querySelector(a)).map(c.fromDom)};return{all:p,is:n,one:q}}),g("32",["1i","1","4a","3c","30"],function(a,b,c,d,e){var f=function(a,b){return a.dom()===b.dom()},g=function(a,b){return a.dom().isEqualNode(b.dom())},h=function(c,d){return a.exists(d,b.curry(f,c))},i=function(a,b){var c=a.dom(),d=b.dom();return c!==d&&c.contains(d)},j=function(a,b){return c.documentPositionContainedBy(a.dom(),b.dom())},k=d.detect().browser,l=k.isIE()?j:i;return{eq:f,isEqualNode:g,member:h,contains:l,is:e.is}}),g("3g",["27","1i","1","2m","44","4z","32","1v"],function(a,b,c,d,e,f,g,h){var i=function(a){return h.fromDom(a.dom().ownerDocument)},j=function(a){var b=i(a);return h.fromDom(b.dom().documentElement)},k=function(a){var b=a.dom(),c=b.ownerDocument.defaultView;return h.fromDom(c)},l=function(a){var b=a.dom();return d.from(b.parentNode).map(h.fromDom)},m=function(a){return l(a).bind(function(c){var d=u(c);return b.findIndex(d,function(b){return g.eq(a,b)})})},n=function(b,d){for(var e=a.isFunction(d)?d:c.constant(!1),f=b.dom(),g=[];null!==f.parentNode&&void 0!==f.parentNode;){var i=f.parentNode,j=h.fromDom(i);if(g.push(j),e(j)===!0)break;f=i}return g},o=function(a){var c=function(c){return b.filter(c,function(b){return!g.eq(a,b)})};return l(a).map(u).map(c).getOr([])},p=function(a){var b=a.dom();return d.from(b.offsetParent).map(h.fromDom)},q=function(a){var b=a.dom();return d.from(b.previousSibling).map(h.fromDom)},r=function(a){var b=a.dom();return d.from(b.nextSibling).map(h.fromDom)},s=function(a){return b.reverse(f.toArray(a,q))},t=function(a){return f.toArray(a,r)},u=function(a){var c=a.dom();return b.map(c.childNodes,h.fromDom)},v=function(a,b){var c=a.dom().childNodes;return d.from(c[b]).map(h.fromDom)},w=function(a){return v(a,0)},x=function(a){return v(a,a.dom().childNodes.length-1)},y=function(a,b){return a.dom().childNodes.length},z=e.immutable("element","offset"),A=function(a,b){var c=u(a);return c.length>0&&b<c.length?z(c[b],0):z(a,b)};return{owner:i,defaultView:k,documentElement:j,parent:l,findIndex:m,parents:n,siblings:o,prevSibling:q,offsetParent:p,prevSiblings:s,nextSibling:r,nextSiblings:t,children:u,child:v,firstChild:w,lastChild:x,childNodesCount:y,leaf:A}}),g("1s",["1i","3c","1v","3e","3f","3g"],function(a,b,c,d,e,f){var g=b.detect().browser,h=function(b){return a.find(b,d.isElement)},i=function(a){return g.isFirefox()&&"table"===d.name(a)?h(f.children(a)).filter(function(a){return"caption"===d.name(a)}).bind(function(a){return h(f.nextSiblings(a)).map(function(b){var c=b.dom().offsetTop,d=a.dom().offsetTop,e=a.dom().offsetHeight;return c<=d?-e:0})}).getOr(0):0},j=function(a,b,d){var f,g,h=0,j=0,k=a.ownerDocument;if(d=d?d:a,b){if(d===a&&b.getBoundingClientRect&&"static"===e.get(c.fromDom(a),"position"))return g=b.getBoundingClientRect(),h=g.left+(k.documentElement.scrollLeft||a.scrollLeft)-k.documentElement.clientLeft,j=g.top+(k.documentElement.scrollTop||a.scrollTop)-k.documentElement.clientTop,{x:h,y:j};for(f=b;f&&f!==d&&f.nodeType;)h+=f.offsetLeft||0,j+=f.offsetTop||0,f=f.offsetParent;for(f=b.parentNode;f&&f!==d&&f.nodeType;)h-=f.scrollLeft||0,j-=f.scrollTop||0,f=f.parentNode;j+=i(c.fromDom(b))}return{x:h,y:j}};return{getPos:j}}),g("50",["1i","2m","1q"],function(a,b,c){var d=function(e){var f=b.none(),g=[],h=function(a){return d(function(b){i(function(c){b(a(c))})})},i=function(a){k()?m(a):g.push(a)},j=function(a){f=b.some(a),l(g),g=[]},k=function(){return f.isSome()},l=function(b){a.each(b,m)},m=function(a){f.each(function(b){c(function(){a(b)},0)})};return e(j),{get:i,map:h,isReady:k}},e=function(a){return d(function(b){b(a)})};return{nu:d,pure:e}}),g("51",["4","1q"],function(a,b){var c=function(c){return function(){var d=a.prototype.slice.call(arguments),e=this;b(function(){c.apply(e,d)},0)}};return{bounce:c}}),g("3h",["50","51"],function(a,b){var c=function(d){var e=function(a){d(b.bounce(a))},f=function(a){return c(function(b){e(function(c){var d=a(c);b(d)})})},g=function(a){return c(function(b){e(function(c){a(c).get(b)})})},h=function(a){return c(function(b){e(function(c){a.get(b)})})},i=function(){return a.nu(e)};return{map:f,bind:g,anonBind:h,toLazy:i,get:e}},d=function(a){return c(function(b){
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L234

Insecure DOM Manipulation (XSS) in sidebyside.js

CWE-79
File Location: media/com_associations/js/sidebyside.js:234
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('select-change-text').innerHTML = document.getElementById('select-change').getAttribute('data-select');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/com_languages/js/overrider.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
- Joomla.overrider={states:{refreshing:!1,refreshed:!1,counter:0,searchstring:"",searchtype:"value"}},Joomla.overrider.refreshCache=function(){this.states.refreshing=!0;var e=this,s=document.getElementById("refresh-status");s.classList.add("show"),Joomla.request({url:"index.php?option=com_languages&task=strings.refresh&format=json",method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(t){t.error&&t.message&&alert(t.message),t.messages&&Joomla.renderMessages(t.messages),s.classList.remove("show"),e.states.refreshing=!1},onError:function(e){alert(Joomla.JText._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),s.classList.remove("show")}})},Joomla.overrider.searchStrings=function(e){var s=this,t=document.getElementById("jform_searchstring"),r=document.getElementById("jform_searchtype"),a=document.getElementById("overrider-spinner"),o=document.getElementById("overrider-spinner-btn"),n=document.getElementById("more-results"),i=document.getElementById("results-container");if(!this.states.refreshing){if(!e){this.states.searchstring=t.value,this.states.searchtype=null!==r?r.value:"value";for(var l=document.querySelectorAll(".language-results"),d=0,c=l.length;d<c;d++)l[d].parentNode.removeChild(l[d])}if(this.states.searchstring){if(e)o.classList.add("show");else{n.classList.remove("show");for(var m=document.querySelectorAll("#results-container div.language-results"),d=0,c=m.length;d<c;d++)m[d].parentNode.removeChild(m[d]);i.classList.add("show"),a.classList.add("show")}Joomla.request({url:"index.php?option=com_languages&task=strings.search&format=json&searchstring="+s.states.searchstring+"&searchtype="+s.states.searchtype+"&more="+e,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(e){(e=JSON.parse(e)).error&&e.message&&alert(e.message),e.messages&&Joomla.renderMessages(e.messages),e.data&&(e.data.results&&s.insertResults(e.data.results),e.data.more&&(s.states.more=e.data.more,n.classList.add("show"))),o.classList.remove("show"),a.classList.remove("show")},onError:function(e){alert(Joomla.JText._("COM_LANGUAGES_VIEW_OVERRIDE_REQUEST_ERROR")),n.classList.remove("show"),i.classList.remove("show")}})}else t.classList.add("invalid")}},Joomla.overrider.insertResults=function(e){var s=this;this.states.counter=this.states.counter+1;var t=document.createElement("div");if(t.setAttribute("id","language-results"+s.states.counter),t.classList.add("language-results"),t.classList.add("list-group"),t.classList.add("mb-2"),t.classList.add("show"),e.forEach(function(e,r){var a=document.createElement("a");a.setAttribute("onclick","Joomla.overrider.selectString("+s.states.counter+r+");"),a.setAttribute("href","#"),a.classList.add("list-group-item"),a.classList.add("list-group-item-action"),a.classList.add("flex-column"),a.classList.add("align-items-start");var o=document.createElement("div");o.setAttribute("id","override_key"+s.states.counter+r),o.setAttribute("title",e.file),o.classList.add("result-key"),o.innerHTML=e.constant;var n=document.createElement("div");n.setAttribute("id","override_string"+s.states.counter+r),n.classList.add("result-string"),n.innerHTML=e.string,a.appendChild(o),a.appendChild(n),t.appendChild(a)}),!e.length){var r=document.createElement("div");r.innerHTML=Joomla.JText._("COM_LANGUAGES_VIEW_OVERRIDE_NO_RESULTS"),t.appendChild(r)}var a=document.getElementById("more-results");a&&a.parentNode.insertBefore(t,a)},Joomla.overrider.selectString=function(e){document.getElementById("jform_key").value=document.getElementById("override_key"+e).innerHTML,document.getElementById("jform_override").value=document.getElementById("override_string"+e).innerHTML};
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L73

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

CWE-79
File Location: media/com_modules/js/admin-module-edit.js:73
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
- tmpMenu.innerHTML = '<span class=\"badge badge-success\">' + Joomla.JText._('JYES') + '</span>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L91

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

CWE-79
File Location: media/com_modules/js/admin-module-edit.js:91
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
- tmpStatus.innerHTML = '<span class=\"badge badge-default\">' + Joomla.JText._('JTRASHED') + '</span>';
+ 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
L55

Insecure DOM Manipulation (XSS) in jupdatecheck.js

CWE-79
File Location: media/plg_quickicon_joomlaupdate/js/jupdatecheck.js:55
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_UPDATEFOUND').replace("%s", updateInfoList.length);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/system/js/fields/moduleorder.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";document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".module-ajax-ordering"),t=e.getAttribute("data-linked-field")?e.getAttribute("data-linked-field"):"jform_position",n=document.getElementById(t),a=n.value,d=function(e,t){var n=e.getAttribute("data-url"),a=e.getAttribute("data-client-id"),d=document.getElementById(e.getAttribute("data-element")),i=e.getAttribute("data-ordering"),r=e.getAttribute("data-name"),o=e.getAttribute("data-client-attr")?e.getAttribute("data-client-attr"):"custom-select",s=e.getAttribute("id")+"_1",l=new Array;Joomla.request({url:n,method:"GET",data:"client_id="+a+"&position="+t,perform:!0,headers:{"Content-Type":"application/x-www-form-urlencoded"},onSuccess:function(e,n){if(e&&(e=JSON.parse(e)).data.length>0){for(var a=0;a<e.data.length;++a)l[a]=e.data[a].split(",");!function(e,t,n,a,d){var i,r=document.createElement("select");r.classList.add(e.itemClass),r.setAttribute("name",e.name),r.id=e.id,d&&(d.innerHTML="",d.appendChild(r));var o,s,l=n,u=0;for(o in t)t.hasOwnProperty(o)&&(s=t[o],(i=document.createElement("option")).value=s[1],i.innerHTML=s[2],(l&&a==s[1]||!l&&0===u)&&i.setAttribute("selected","selected"),r.appendChild(i),r.parentNode.innerHtml="",r.parentNode.appendChild(r),u++)}({name:r,id:s,itemClass:o},l,t,i,d)}"object"==typeof e.messages&&null!==e.messages&&(Joomla.renderMessages(e.messages),window.scrollTo(0,0))}})};d(e,a),window.jQuery&&jQuery().chosen?jQuery(n).chosen().change(function(){a=jQuery(n).chosen().val(),d(e,a),jQuery(e.childNodes[0]).chosen("destroy"),jQuery(e.childNodes[0]).chosen()}):n.addEventListener("change",function(){a=n.value,d(e,a)})})}();
+ 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:
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
- label.innerHTML = Joomla.JText._('JFIELD_PASSWORD_INDICATE_INCOMPLETE');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L289

Insecure DOM Manipulation (XSS) in chosen.js

CWE-79
File Location: media/system/js/legacy/chosen.js:289
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
- option_el.innerHTML = option.search_text;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L17

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-ce.js:17
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
- H&&(b=b.replace(wa,function(b,a,c){return-1===b.indexOf("type=")?a+" type=import-disable "+c:b}));var c=document.createElement("template");c.innerHTML=b;if(c.content)b=c.content;else for(b=document.createDocumentFragment();c.firstChild;)b.appendChild(c.firstChild);if(c=b.querySelector("base"))a=r.j(c.getAttribute("href"),a),c.removeAttribute("href");var e=0;h(b.querySelectorAll('link[rel=import], link[rel=stylesheet][href][type=import-disable],\n style:not([type]), link[rel=stylesheet][href]:not([type]),\n script:not([type]), script[type="application/javascript"],\n script[type="text/javascript"]'),
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L111

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-sd-ce.js:111
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
- return b})}Rc&&K(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=Rc.call(this,a)});if(Sc&&Sc.get)b(Element.prototype,Sc);else if(gd&&gd.get)b(HTMLElement.prototype,gd);else{var d=Ec.call(document,"div");wc(a,function(a){b(a,{enumerable:!0,configurable:!0,get:function(){return Lc.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)Oc.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)Mc.call(b,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L82

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-lite.js:82
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.children=function(a){var b=[];D.currentNode=a;for(a=D.firstChild();a;)b.push(a),a=D.nextSibling();return b};B.innerHTML=function(a){return gc(a,function(a){return hc(a)})};B.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 ic=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),jc=document.implementation.createHTMLDocument("inert").createElement("div"),kc=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),lc={parentElement:{get:function(){var a=this.__shady&&this.__shady.parentNode;a&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:B.parentElement(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L42

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

CWE-79
File Location: media/system/webcomponents/js/joomla-field-user-es5.js:42
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
L90

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

CWE-79
File Location: media/system/webcomponents/js/joomla-field-user.js:90
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
L1

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

CWE-79
File Location: media/system/webcomponents/js/joomla-field-user.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
- class JoomlaFieldUser extends HTMLElement{static get observedAttributes(){return["url","modal-class","modal-width","modal-height","input","input-name","button-select"]}get url(){return this.getAttribute("url")}set url(t){this.setAttribute("url",t)}get modalClass(){return this.getAttribute("modal")}set modalClass(t){this.setAttribute("modal",t)}get modalWidth(){return this.getAttribute("modal-width")}set modalWidth(t){this.setAttribute("modal-width",t)}get modalHeight(){return this.getAttribute("modal-height")}set modalHeight(t){this.setAttribute("modal-height",t)}get inputId(){return this.getAttribute("input")}set inputId(t){this.setAttribute("input",t)}get inputNameClass(){return this.getAttribute("input-name")}set inputNameClass(t){this.setAttribute("input-name",t)}get buttonSelectClass(){return this.getAttribute("button-select")}set buttonSelectClass(t){this.setAttribute("button-select",t)}connectedCallback(){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));const t=this.input.getAttribute("data-onchange");let e;t&&(e=new Function(t),this.input.addEventListener("change",e.bind(this.input)))}}disconnectedCallback(){this.buttonSelect.removeEventListener("click",this),this.modal.removeEventListener("hide",this)}modalOpen(){const t=this;this.removeIframe();const 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");const i=this.modalBody.querySelector("iframe");i.addEventListener("load",()=>{const e=i.contentWindow.document;[].slice.call(e.querySelectorAll(".button-select")).forEach(e=>{e.addEventListener("click",e=>{t.setValue(e.target.getAttribute("data-user-value"),e.target.getAttribute("data-user-name")),t.modalClose()})})})}modalClose(){window.jQuery(this.modal).modal("hide"),this.modalBody.innerHTML=""}removeIframe(){this.modalBody.innerHTML=""}setValue(t,e){this.input.setAttribute("value",t),this.inputName.setAttribute("value",e||t)}}customElements.define("joomla-field-user",JoomlaFieldUser);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/vendor/codemirror/addon/lint/lint.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){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";function e(t){t.parentNode&&t.parentNode.removeChild(t)}function n(n,o,r){function i(){t.off(r,"mouseout",i),a&&(!function(t){t.parentNode&&(null==t.style.opacity&&e(t),t.style.opacity=0,setTimeout(function(){e(t)},600))}(a),a=null)}var a=function(e,n){function o(e){if(!r.parentNode)return t.off(document,"mousemove",o);r.style.top=Math.max(0,e.clientY-r.offsetHeight-5)+"px",r.style.left=e.clientX+5+"px"}var r=document.createElement("div");return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),t.on(document,"mousemove",o),o(e),null!=r.style.opacity&&(r.style.opacity=1),r}(n,o),s=setInterval(function(){if(a)for(var t=r;;t=t.parentNode){if(t&&11==t.nodeType&&(t=t.host),t==document.body)return;if(!t){i();break}}if(!a)return clearInterval(s)},400);t.on(r,"mouseout",i)}function o(t,e,o){this.marked=[],this.options=e,this.timeout=null,this.hasGutter=o,this.onMouseOver=function(e){!function(t,e){var o=e.target||e.srcElement;if(!/\bCodeMirror-lint-mark-/.test(o.className))return;for(var r=o.getBoundingClientRect(),i=(r.left+r.right)/2,a=(r.top+r.bottom)/2,u=t.findMarksAt(t.coordsChar({left:i,top:a},"client")),l=[],c=0;c<u.length;++c){var f=u[c].__annotation;f&&l.push(f)}l.length&&function(t,e){for(var o=e.target||e.srcElement,r=document.createDocumentFragment(),i=0;i<t.length;i++){var a=t[i];r.appendChild(s(a))}n(e,r,o)}(l,e)}(t,e)},this.waitingFor=0}function r(t){var e=t.state.lint;e.hasGutter&&t.clearGutter(f);for(var n=0;n<e.marked.length;++n)e.marked[n].clear();e.marked.length=0}function i(e,o,r,i){var a=document.createElement("div"),s=a;return a.className="CodeMirror-lint-marker-"+o,r&&((s=a.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker-multiple"),0!=i&&t.on(s,"mouseover",function(t){n(t,e,s)}),a}function a(t,e){return"error"==t?t:e}function s(t){var e=t.severity;e||(e="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+e,void 0!==t.messageHTML?n.innerHTML=t.messageHTML:n.appendChild(document.createTextNode(t.message)),n}function u(e){var n=e.state.lint.options,o=n.options||n,r=n.getAnnotations||e.getHelper(t.Pos(0,0),"lint");if(r)if(n.async||r.async)!function(e,n,o){function r(){a=-1,e.off("change",r)}var i=e.state.lint,a=++i.waitingFor;e.on("change",r),n(e.getValue(),function(n,o){e.off("change",r),i.waitingFor==a&&(o&&n instanceof t&&(n=o),l(e,n))},o,e)}(e,r,o);else{var i=r(e.getValue(),o,e);if(!i)return;i.then?i.then(function(t){l(e,t)}):l(e,i)}}function l(t,e){r(t);for(var n=t.state.lint,o=n.options,u=function(t){for(var e=[],n=0;n<t.length;++n){var o=t[n],r=o.from.line;(e[r]||(e[r]=[])).push(o)}return e}(e),l=0;l<u.length;++l){var c=u[l];if(c){for(var m=null,d=n.hasGutter&&document.createDocumentFragment(),p=0;p<c.length;++p){var h=c[p],g=h.severity;g||(g="error"),m=a(m,g),o.formatAnnotation&&(h=o.formatAnnotation(h)),n.hasGutter&&d.appendChild(s(h)),h.to&&n.marked.push(t.markText(h.from,h.to,{className:"CodeMirror-lint-mark-"+g,__annotation:h}))}n.hasGutter&&t.setGutterMarker(l,f,i(d,m,c.length>1,n.options.tooltips))}}o.onUpdateLinting&&o.onUpdateLinting(e,u,t)}function c(t){var e=t.state.lint;e&&(clearTimeout(e.timeout),e.timeout=setTimeout(function(){u(t)},e.options.delay||500))}var f="CodeMirror-lint-markers";t.defineOption("lint",!1,function(e,n,i){if(i&&i!=t.Init&&(r(e),!1!==e.state.lint.options.lintOnChange&&e.off("change",c),t.off(e.getWrapperElement(),"mouseover",e.state.lint.onMouseOver),clearTimeout(e.state.lint.timeout),delete e.state.lint),n){for(var a=e.getOption("gutters"),s=!1,l=0;l<a.length;++l)a[l]==f&&(s=!0);var m=e.state.lint=new o(e,function(t,e){return e instanceof Function?{getAnnotations:e}:(e&&!0!==e||(e={}),e)}(0,n),s);!1!==m.options.lintOnChange&&e.on("change",c),0!=m.options.tooltips&&"gutter"!=m.options.tooltips&&t.on(e.getWrapperElement(),"mouseover",m.onMouseOver),u(e)}}),t.defineExtension("performLint",function(){this.state.lint&&u(this)})});
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L116

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

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-alert.js:116
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
L56

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

CWE-79
File Location: media/vendor/joomla-custom-elements/js/joomla-tab-es5.js:56
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
- f = document.createElement('a');e.setAttribute('role', 'presentation'), f.setAttribute('role', 'tab'), f.setAttribute('aria-controls', a.id), f.setAttribute('aria-selected', b ? 'true' : 'false'), f.setAttribute('tabindex', b ? '0' : '-1'), f.setAttribute('href', '#' + a.id), f.setAttribute('id', 'tab-' + a.id), f.innerHTML = a.getAttribute('name'), b && f.setAttribute('active', ''), f.addEventListener('click', d), e.append(f), c.append(e), a.setAttribute('aria-labelledby', 'tab-' + a.id), b || a.setAttribute('aria-hidden', 'true');
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L29

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

CWE-79
File Location: media/vendor/joomla-custom-elements/polyfills/webcomponents-sd-ce.js:29
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
- !0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(d.innerHTML=a;0<b.childNodes.length;)wa.call(b,b.childNodes[0]);for(;0<d.childNodes.length;)ca.call(b,d.childNodes[0])}})})}x(Element.prototype,"setAttribute",function(b,c){if(1!==this.__CE_state)return nb.call(this,b,c);var d=xa.call(this,b);nb.call(this,b,c);c=xa.call(this,b);a.attributeChangedCallback(this,b,d,c,null)});x(Element.prototype,"setAttributeNS",function(b,c,d){if(1!==this.__CE_state)return ob.call(this,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1476

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:1476
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
- play.innerHTML = '<button type="button" aria-controls="' + t.id + '" title="' + playTitle + '" aria-label="' + pauseTitle + '" tabindex="0"></button>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2103

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2103
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
- time.innerHTML = '<span class="' + t.options.classPrefix + 'currenttime">' + (0, _time.secondsToTimeCode)(0, player.options.alwaysShowHours, player.options.showTimecodeFrameCount, player.options.framesPerSecond, player.options.secondsDecimalLength) + '</span>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2555

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2555
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
- targetSiblings[i].innerHTML = label;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2716

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2716
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.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_' + i + '" value="' + chapters.entries[i].start + '" disabled>') + ('<label class="' + t.options.classPrefix + 'chapters-selector-label"') + ('for="' + t.id + '_chapters_' + i + '">' + chapters.entries[i].text + '</label>') + '</li>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4898

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.js:4898
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
- self.getEl().lastChild.innerHTML = self.encode(e.value);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3

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

CWE-79
File Location: media/vendor/tinymce/themes/inlite/theme.min.js:3
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
- handler:b}},d=function(a){b.active(a)},e=function(a){b.disabled(a)};return b.settings.stateSelector?c(b.settings.stateSelector,d):b.settings.disabledStateSelector?c(b.settings.disabledStateSelector,e):null},e=function(a,b,c){return function(){var e=d(b,c);null!==e&&a.selection.selectorChanged(e.selector,e.handler)}},f=function(a){return c.isArray(a)?a:c.isString(a)?a.split(/[ ,]/):[]},g=function(c,d,g){var h,i=[];if(g)return a.each(f(g),function(a){var d;"|"==a?h=null:c.buttons[a]&&(h||(h={type:"buttongroup",items:[]},i.push(h)),d=a,a=c.buttons[d],"function"==typeof a&&(a=a()),a.type=a.type||"button",a=b.create(a),a.on("postRender",e(c,d,a)),h.items.push(a))}),b.create({type:"toolbar",layout:"flow",name:d,items:i})};return{create:g}}),g("5",["c","d","e","f","g","h","i","j","k","l"],function(a,b,c,d,e,f,g,h,i,j){return function(){var k,l,m=function(a,b){return d.map(b,function(b){return j.create(a,b.id,b.items)})},n=function(a){return a.items().length>0},o=function(a,b){var e=m(a,b).concat([j.create(a,"text",f.getTextSelectionToolbarItems(a)),j.create(a,"insert",f.getInsertToolbarItems(a)),i.createQuickLinkForm(a,z)]);return c.create({type:"floatpanel",role:"dialog",classes:"tinymce tinymce-inline arrow",ariaLabel:"Inline toolbar",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:!0,fixed:!0,border:1,items:d.grep(e,n),oncancel:function(){a.focus()}})},p=function(a){a&&a.show()},q=function(a,b){a.moveTo(b.x,b.y)},r=function(a,b){b=b?b.substr(0,2):"",d.each({t:"down",b:"up",c:"center"},function(c,d){a.classes.toggle("arrow-"+c,d===b.substr(0,1))}),"cr"===b?(a.classes.toggle("arrow-left",!0),a.classes.toggle("arrow-right",!1)):"cl"===b?(a.classes.toggle("arrow-left",!0),a.classes.toggle("arrow-right",!0)):d.each({l:"left",r:"right"},function(c,d){a.classes.toggle("arrow-"+c,d===b.substr(1,1))})},s=function(a,b){var c=a.items().filter("#"+b);return c.length>0&&(c[0].show(),a.reflow(),!0)},t=function(a,c,d,e){var i,j,k,m;return m=f.getPositionHandler(d),i=h.getContentAreaRect(d),j=b.DOM.getRect(a.getEl()),k="insert"===c?g.calcInsert(e,i,j):g.calc(e,i,j),!!k&&(j=k.rect,l=e,q(a,g.userConstrain(m,e,i,j)),r(a,k.position),!0)},u=function(a,b,c,d){return p(a),a.items().hide(),s(a,b)?void(t(a,b,c,d)===!1&&z(a)):void z(a)},v=function(){return k.items().filter("form:visible").length>0},w=function(a,c){if(k){if(k.items().hide(),!s(k,c))return void z(k);var d,e,i,j;p(k),k.items().hide(),s(k,c),j=f.getPositionHandler(a),d=h.getContentAreaRect(a),e=b.DOM.getRect(k.getEl()),i=g.calc(l,d,e),i&&(e=i.rect,q(k,g.userConstrain(j,l,d,e)),r(k,i.position))}},x=function(b,c,d,f){k||(e.fireBeforeRenderUI(b),k=o(b,f),k.renderTo(a.body).reflow().moveTo(d.x,d.y),b.nodeChanged()),u(k,c,b,d)},y=function(a,b,c){k&&t(k,b,a,c)},z=function(){k&&k.hide()},A=function(){k&&k.find("toolbar:visible").eq(0).each(function(a){a.focus(!0)})},B=function(){k&&(k.remove(),k=null)},C=function(){return k&&k.visible()&&v()};return{show:x,showForm:w,reposition:y,inForm:C,hide:z,focus:A,remove:B}}}),g("4e",[],function(){return"undefined"!=typeof window?window:Function("return this;")()}),g("47",["4e"],function(a){var b=function(b,c){for(var d=void 0!==c?c:a,e=0;e<b.length&&void 0!==d&&null!==d;++e)d=d[b[e]];return d},c=function(a,c){var d=a.split(".");return b(d,c)},d=function(a,b){return void 0!==a[b]&&null!==a[b]||(a[b]={}),a[b]},e=function(b,c){for(var e=void 0!==c?c:a,f=0;f<b.length;++f)e=d(e,b[f]);return e},f=function(a,b){var c=a.split(".");return e(c,b)};return{path:b,resolve:c,forge:e,namespace:f}}),g("3y",["47"],function(a){var b=function(b,c){return a.resolve(b,c)},c=function(a,c){var d=b(a,c);if(void 0===d)throw a+" not available on this browser";return d};return{getOrDie:c}}),g("3e",["3y"],function(a){return function(){var b=a.getOrDie("FileReader");return new b}}),g("m",["3e","39"],function(a,b){var c=function(c){return new b(function(b){var d=new a;d.onloadend=function(){b(d.result.split(",")[1])},d.readAsDataURL(c)})};return{blobToBase64:c}}),g("n",["c","39"],function(a,b){var c=function(){return new b(function(b){var c;c=a.createElement("input"),c.type="file",c.style.position="fixed",c.style.left=0,c.style.top=0,c.style.opacity=.001,a.body.appendChild(c),c.onchange=function(a){b(Array.prototype.slice.call(a.target.files))},c.click(),c.parentNode.removeChild(c)})};return{pickFile:c}}),g("4",["5","m","n","o"],function(a,b,c,d){var e=function(a){for(var b=function(b){return function(){d.formatBlock(a,b)}},c=1;c<6;c++){var e="h"+c;a.addButton(e,{text:e.toUpperCase(),tooltip:"Heading "+c,stateSelector:e,onclick:b(e),onPostRender:function(){var a=this.getEl().firstChild.firstChild;a.style.fontWeight="bold"}})}},f=function(a,f){a.addButton("quicklink",{icon:"link",tooltip:"Insert/Edit link",stateSelector:"a[href]",onclick:function(){f.showForm(a,"quicklink")}}),a.addButton("quickimage",{icon:"image",tooltip:"Insert image",onclick:function(){c.pickFile().then(function(c){var e=c[0];b.blobToBase64(e).then(function(b){d.insertBlob(a,b,e)})})}}),a.addButton("quicktable",{icon:"table",tooltip:"Insert table",onclick:function(){f.hide(),d.insertTable(a,2,2)}}),e(a)};return{addToEditor:f}}),g("1w",["31","f"],function(a,b){"use strict";return a.extend({Defaults:{firstControlClass:"first",lastControlClass:"last"},init:function(a){this.settings=b.extend({},this.Defaults,a)},preRender:function(a){a.bodyClasses.add(this.settings.containerClass)},applyClasses:function(a){var b,c,d,e,f=this,g=f.settings;b=g.firstControlClass,c=g.lastControlClass,a.each(function(a){a.classes.remove(b).remove(c).add(g.controlClass),a.visible()&&(d||(d=a),e=a)}),d&&d.classes.add(b),e&&e.classes.add(c)},renderHtml:function(a){var b=this,c="";return b.applyClasses(a.items()),a.items().each(function(a){c+=a.renderHtml()}),c},recalc:function(){},postRender:function(){},isNative:function(){return!1}})}),g("p",["1w"],function(a){"use strict";return a.extend({Defaults:{containerClass:"abs-layout",controlClass:"abs-layout-item"},recalc:function(a){a.items().filter(":visible").each(function(a){var b=a.settings;a.layoutRect({x:b.x,y:b.y,w:b.w,h:b.h}),a.recalc&&a.recalc()})},renderHtml:function(a){return'<div id="'+a._id+'-absend" class="'+a.classPrefix+'abs-end"></div>'+this._super(a)}})}),g("r",["c","1","1g"],function(a,b,c){"use strict";return c.extend({Defaults:{classes:"widget btn",role:"button"},init:function(a){var b,c=this;c._super(a),a=c.settings,b=c.settings.size,c.on("click mousedown",function(a){a.preventDefault()}),c.on("touchstart",function(a){c.fire("click",a),a.preventDefault()}),a.subtype&&c.classes.add(a.subtype),b&&c.classes.add("btn-"+b),a.icon&&c.icon(a.icon)},icon:function(a){return arguments.length?(this.state.set("icon",a),this):this.state.get("icon")},repaint:function(){var a,b=this.getEl().firstChild;b&&(a=b.style,a.width=a.height="100%"),this._super()},renderHtml:function(){var a,c=this,d=c._id,e=c.classPrefix,f=c.state.get("icon"),g=c.state.get("text"),h="";return a=c.settings.image,a?(f="none","string"!=typeof a&&(a=b.getSelection?a[0]:a[1]),a=" style=\"background-image: url('"+a+"')\""):a="",g&&(c.classes.add("btn-has-text"),h='<span class="'+e+'txt">'+c.encode(g)+"</span>"),f=f?e+"ico "+e+"i-"+f:"",'<div id="'+d+'" class="'+c.classes+'" tabindex="-1"><button id="'+d+'-button" role="presentation" type="button" tabindex="-1">'+(f?'<i class="'+f+'"'+a+"></i>":"")+h+"</button></div>"},bindStates:function(){function b(a){var b=d("span."+e,c.getEl());a?(b[0]||(d("button:first",c.getEl()).append('<span class="'+e+'"></span>'),b=d("span."+e,c.getEl())),b.html(c.encode(a))):b.remove(),c.classes.toggle("btn-has-text",!!a)}var c=this,d=c.$,e=c.classPrefix+"txt";return c.state.on("change:text",function(a){b(a.value)}),c.state.on("change:icon",function(d){var e=d.value,f=c.classPrefix;c.settings.icon=e,e=e?f+"ico "+f+"i-"+c.settings.icon:"";var g=c.getEl().firstChild,h=g.getElementsByTagName("i")[0];e?(h&&h==g.firstChild||(h=a.createElement("i"),g.insertBefore(h,g.firstChild)),h.className=e):h&&g.removeChild(h),b(c.state.get("text"))}),c._super()}})}),h("3f",RegExp),g("q",["r","f","2z","30","3f"],function(a,b,c,d,e){return a.extend({init:function(a){var c=this;a=b.extend({text:"Browse...",multiple:!1,accept:null},a),c._super(a),c.classes.add("browsebutton"),a.multiple&&c.classes.add("multiple")},postRender:function(){var a=this,b=c.create("input",{type:"file",id:a._id+"-browse",accept:a.settings.accept});a._super(),d(b).on("change",function(b){var c=b.target.files;a.value=function(){return c.length?a.settings.multiple?c:c[0]:null},b.preventDefault(),c.length&&a.fire("change",b)}),d(b).on("click",function(a){a.stopPropagation()}),d(a.getEl("button")).on("click",function(a){a.stopPropagation(),b.click()}),a.getEl().appendChild(b)},remove:function(){d(this.getEl("button")).off(),d(this.getEl("input")).off(),this._super()}})}),g("s",["z"],function(a){"use strict";return a.extend({Defaults:{defaultType:"button",role:"group"},renderHtml:function(){var a=this,b=a._layout;return a.classes.add("btn-group"),a.preRender(),b.preRender(a),'<div id="'+a._id+'" class="'+a.classes+'"><div id="'+a._id+'-body">'+(a.settings.html||"")+b.renderHtml(a)+"</div></div>"}})}),g("t",["c","1g"],function(a,b){"use strict";return b.extend({Defaults:{classes:"checkbox",role:"checkbox",checked:!1},init:function(a){var b=this;b._super(a),b.on("click mousedown",function(a){a.preventDefault()}),b.on("click",function(a){a.preventDefault(),b.disabled()||b.checked(!b.checked())}),b.checked(b.settings.checked)},checked:function(a){return arguments.length?(this.state.set("checked",a),this):this.state.get("checked")},value:function(a){return arguments.length?this.checked(a):this.checked()},renderHtml:function(){var a=this,b=a._id,c=a.classPrefix;return'<div id="'+b+'" class="'+a.classes+'" unselectable="on" aria-labelledby="'+b+'-al" tabindex="-1"><i class="'+c+"ico "+c+'i-checkbox"></i><span id="'+b+'-al" class="'+c+'label">'+a.encode(a.state.get("text"))+"</span></div>"},bindStates:function(){function b(a){c.classes.toggle("checked",a),c.aria("checked",a)}var c=this;return c.state.on("change:text",function(a){c.getEl("al").firstChild.data=c.translate(a.value)}),c.state.on("change:checked change:value",function(a){c.fire("change"),b(a.value)}),c.state.on("change:icon",function(b){var d=b.value,e=c.classPrefix;if("undefined"==typeof d)return c.settings.icon;c.settings.icon=d,d=d?e+"ico "+e+"i-"+c.settings.icon:"";var f=c.getEl().firstChild,g=f.getElementsByTagName("i")[0];d?(g&&g==f.firstChild||(g=a.createElement("i"),f.insertBefore(g,f.firstChild)),g.className=d):g&&f.removeChild(g)}),c.state.get("checked")&&b(!0),c._super()}})}),g("3g",["8"],function(a){return a("tinymce.util.VK")}),g("y",["c","30","e","f","3g","2z","1g"],function(a,b,c,d,e,f,g){"use strict";return g.extend({init:function(a){var c=this;c._super(a),a=c.settings,c.classes.add("combobox"),c.subinput=!0,c.ariaTarget="inp",a.menu=a.menu||a.values,a.menu&&(a.icon="caret"),c.on("click",function(d){var e=d.target,f=c.getEl();if(b.contains(f,e)||e==f)for(;e&&e!=f;)e.id&&e.id.indexOf("-open")!=-1&&(c.fire("action"),a.menu&&(c.showMenu(),d.aria&&c.menu.items()[0].focus())),e=e.parentNode}),c.on("keydown",function(a){var b;13==a.keyCode&&"INPUT"===a.target.nodeName&&(a.preventDefault(),c.parents().reverse().each(function(a){if(a.toJSON)return b=a,!1}),c.fire("submit",{data:b.toJSON()}))}),c.on("keyup",function(a){if("INPUT"==a.target.nodeName){var b=c.state.get("value"),d=a.target.value;d!==b&&(c.state.set("value",d),c.fire("autocomplete",a))}}),c.on("mouseover",function(a){var b=c.tooltip().moveTo(-65535);if(c.statusLevel()&&a.target.className.indexOf(c.classPrefix+"status")!==-1){var d=c.statusMessage()||"Ok",e=b.text(d).show().testMoveRel(a.target,["bc-tc","bc-tl","bc-tr"]);b.classes.toggle("tooltip-n","bc-tc"==e),b.classes.toggle("tooltip-nw","bc-tl"==e),b.classes.toggle("tooltip-ne","bc-tr"==e),b.moveRel(a.target,e)}})},statusLevel:function(a){return arguments.length>0&&this.state.set("statusLevel",a),this.state.get("statusLevel")},statusMessage:function(a){return arguments.length>0&&this.state.set("statusMessage",a),this.state.get("statusMessage")},showMenu:function(){var a,b=this,d=b.settings;b.menu||(a=d.menu||[],a.length?a={type:"menu",items:a}:a.type=a.type||"menu",b.menu=c.create(a).parent(b).renderTo(b.getContainerElm()),b.fire("createmenu"),b.menu.reflow(),b.menu.on("cancel",function(a){a.control===b.menu&&b.focus()}),b.menu.on("show hide",function(a){a.control.items().each(function(a){a.active(a.value()==b.value())})}).fire("show"),b.menu.on("select",function(a){b.value(a.control.value())}),b.on("focusin",function(a){"INPUT"==a.target.tagName.toUpperCase()&&b.menu.hide()}),b.aria("expanded",!0)),b.menu.show(),b.menu.layoutRect({w:b.layoutRect().w}),b.menu.moveRel(b.getEl(),b.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},focus:function(){this.getEl("inp").focus()},repaint:function(){var c,d,e=this,g=e.getEl(),h=e.getEl("open"),i=e.layoutRect(),j=0,k=g.firstChild;e.statusLevel()&&"none"!==e.statusLevel()&&(j=parseInt(f.getRuntimeStyle(k,"padding-right"),10)-parseInt(f.getRuntimeStyle(k,"padding-left"),10)),c=h?i.w-f.getSize(h).width-10:i.w-10;var l=a;return l.all&&(!l.documentMode||l.documentMode<=8)&&(d=e.layoutRect().h-2+"px"),b(k).css({width:c-j,lineHeight:d}),e._super(),e},postRender:function(){var a=this;return b(this.getEl("inp")).on("change",function(b){a.state.set("value",b.target.value),a.fire("change",b)}),a._super()},renderHtml:function(){var a,b,c=this,d=c._id,e=c.settings,f=c.classPrefix,g=c.state.get("value")||"",h="",i="",j="";return"spellcheck"in e&&(i+=' spellcheck="'+e.spellcheck+'"'),e.maxLength&&(i+=' maxlength="'+e.maxLength+'"'),e.size&&(i+=' size="'+e.size+'"'),e.subtype&&(i+=' type="'+e.subtype+'"'),j='<i id="'+d+'-status" class="mce-status mce-ico" style="display: none"></i>',c.disabled()&&(i+=' disabled="disabled"'),a=e.icon,a&&"caret"!=a&&(a=f+"ico "+f+"i-"+e.icon),b=c.state.get("text"),(a||b)&&(h='<div id="'+d+'-open" class="'+f+"btn "+f+'open" tabIndex="-1" role="button"><button id="'+d+'-action" type="button" hidefocus="1" tabindex="-1">'+("caret"!=a?'<i class="'+a+'"></i>':'<i class="'+f+'caret"></i>')+(b?(a?" ":"")+b:"")+"</button></div>",c.classes.add("has-open")),'<div id="'+d+'" class="'+c.classes+'"><input id="'+d+'-inp" class="'+f+'textbox" value="'+c.encode(g,!1)+'" hidefocus="1"'+i+' placeholder="'+c.encode(e.placeholder)+'" />'+j+h+"</div>"},value:function(a){return arguments.length?(this.state.set("value",a),this):(this.state.get("rendered")&&this.state.set("value",this.getEl("inp").value),this.state.get("value"))},showAutoComplete:function(a,b){var e=this;if(0===a.length)return void e.hideMenu();var f=function(a,b){return function(){e.fire("selectitem",{title:b,value:a})}};e.menu?e.menu.items().remove():e.menu=c.create({type:"menu",classes:"combobox-menu",layout:"flow"}).parent(e).renderTo(),d.each(a,function(a){e.menu.add({text:a.title,url:a.previewUrl,match:b,classes:"menu-item-ellipsis",onclick:f(a.value,a.title)})}),e.menu.renderNew(),e.hideMenu(),e.menu.on("cancel",function(a){a.control.parent()===e.menu&&(a.stopPropagation(),e.focus(),e.hideMenu())}),e.menu.on("select",function(){e.focus()});var g=e.layoutRect().w;e.menu.layoutRect({w:g,minW:0,maxW:g}),e.menu.reflow(),e.menu.show(),e.menu.moveRel(e.getEl(),e.isRtl()?["br-tr","tr-br"]:["bl-tl","tl-bl"])},hideMenu:function(){this.menu&&this.menu.hide()},bindStates:function(){var a=this;a.state.on("change:value",function(b){a.getEl("inp").value!=b.value&&(a.getEl("inp").value=b.value)}),a.state.on("change:disabled",function(b){a.getEl("inp").disabled=b.value}),a.state.on("change:statusLevel",function(b){var c=a.getEl("status"),d=a.classPrefix,e=b.value;f.css(c,"display","none"===e?"none":""),f.toggleClass(c,d+"i-checkmark","ok"===e),f.toggleClass(c,d+"i-warning","warn"===e),f.toggleClass(c,d+"i-error","error"===e),a.classes.toggle("has-status","none"!==e),a.repaint()}),f.on(a.getEl("status"),"mouseleave",function(){a.tooltip().hide()}),a.on("cancel",function(b){a.menu&&a.menu.visible()&&(b.stopPropagation(),a.hideMenu())});var b=function(a,b){b&&b.items().length>0&&b.items().eq(a)[0].focus()};return a.on("keydown",function(c){var d=c.keyCode;"INPUT"===c.target.nodeName&&(d===e.DOWN?(c.preventDefault(),a.fire("autocomplete"),b(0,a.menu)):d===e.UP&&(c.preventDefault(),b(-1,a.menu)))}),a._super()},remove:function(){b(this.getEl("inp")).off(),this.menu&&this.menu.remove(),this._super()}})}),g("v",["y"],function(a){"use strict";return a.extend({init:function(a){var b=this;a.spellcheck=!1,a.onaction&&(a.icon="none"),b._super(a),b.classes.add("colorbox"),b.on("change keyup postrender",function(){b.repaintColor(b.value())})},repaintColor:function(a){var b=this.getEl("open"),c=b?b.getElementsByTagName("i")[0]:null;if(c)try{c.style.background=a}catch(a){}},bindStates:function(){var a=this;return a.state.on("change:value",function(b){a.state.get("rendered")&&a.repaintColor(b.value)}),a._super()}})}),g("26",["r","18"],function(a,b){"use strict";return a.extend({showPanel:function(){var a=this,c=a.settings;if(a.classes.add("opened"),a.panel)a.panel.show();else{var d=c.panel;d.type&&(d={layout:"grid",items:d}),d.role=d.role||"dialog",d.popover=!0,d.autohide=!0,d.ariaRoot=!0,a.panel=new b(d).on("hide",function(){a.classes.remove("opened")}).on("cancel",function(b){b.stopPropagation(),a.focus(),a.hidePanel()}).parent(a).renderTo(a.getContainerElm()),a.panel.fire("show"),a.panel.reflow()}var e=a.panel.testMoveRel(a.getEl(),c.popoverAlign||(a.isRtl()?["bc-tc","bc-tl","bc-tr"]:["bc-tc","bc-tr","bc-tl"]));a.panel.classes.toggle("start","bc-tl"===e),a.panel.classes.toggle("end","bc-tr"===e),a.panel.moveRel(a.getEl(),e)},hidePanel:function(){var a=this;a.panel&&a.panel.hide()},postRender:function(){var a=this;return a.aria("haspopup",!0),a.on("click",function(b){b.control===a&&(a.panel&&a.panel.visible()?a.hidePanel():(a.showPanel(),a.panel.focus(!!b.aria)))}),a._super()},remove:function(){return this.panel&&(this.panel.remove(),this.panel=null),this._super()}})}),g("w",["26","d"],function(a,b){"use strict";var c=b.DOM;return a.extend({init:function(a){this._super(a),this.classes.add("splitbtn"),this.classes.add("colorbutton")},color:function(a){return a?(this._color=a,this.getEl("preview").style.backgroundColor=a,this):this._color},resetColor:function(){return this._color=null,this.getEl("preview").style.backgroundColor=null,this},renderHtml:function(){var a=this,b=a._id,c=a.classPrefix,d=a.state.get("text"),e=a.settings.icon?c+"ico "+c+"i-"+a.settings.icon:"",f=a.settings.image?" style=\"background-image: url('"+a.settings.image+"')\"":"",g="";return d&&(a.classes.add("btn-has-text"),g='<span class="'+c+'txt">'+a.encode(d)+"</span>"),'<div id="'+b+'" class="'+a.classes+'" role="button" tabindex="-1" aria-haspopup="true"><button role="presentation" hidefocus="1" type="button" tabindex="-1">'+(e?'<i class="'+e+'"'+f+"></i>":"")+'<span id="'+b+'-preview" class="'+c+'preview"></span>'+g+'</button><button type="button" class="'+c+'open" hidefocus="1" tabindex="-1"> <i class="'+c+'caret"></i></button></div>'},postRender:function(){var a=this,b=a.settings.onclick;return a.on("click",function(d){d.aria&&"down"===d.aria.key||d.control!=a||c.getParent(d.target,"."+a.classPrefix+"open")||(d.stopImmediatePropagation(),b.call(a,d))}),delete a.settings.onclick,a._super()}})}),g("3h",["8"],function(a){return a("tinymce.util.Color")}),g("x",["1g","11","2z","3h"],function(a,b,c,d){"use strict";return a.extend({Defaults:{classes:"widget colorpicker"},init:function(a){this._super(a)},postRender:function(){function a(a,b){var d,e,f=c.getPos(a);return d=b.pageX-f.x,e=b.pageY-f.y,d=Math.max(0,Math.min(d/a.clientWidth,1)),e=Math.max(0,Math.min(e/a.clientHeight,1)),{x:d,y:e}}function e(a,b){var e=(360-a.h)/360;c.css(j,{top:100*e+"%"}),b||c.css(l,{left:a.s+"%",top:100-a.v+"%"}),k.style.background=new d({s:100,v:100,h:a.h}).toHex(),m.color().parse({s:a.s,v:a.v,h:a.h})}function f(b){var c;c=a(k,b),h.s=100*c.x,h.v=100*(1-c.y),e(h),m.fire("change")}function g(b){var c;c=a(i,b),h=n.toHsv(),h.h=360*(1-c.y),e(h,!0),m.fire("change")}var h,i,j,k,l,m=this,n=m.color();i=m.getEl("h"),j=m.getEl("hp"),k=m.getEl("sv"),l=m.getEl("svp"),m._repaint=function(){h=n.toHsv(),e(h)},m._super(),m._svdraghelper=new b(m._id+"-sv",{start:f,drag:f}),m._hdraghelper=new b(m._id+"-h",{start:g,drag:g}),m._repaint()},rgb:function(){return this.color().toRgb()},value:function(a){var b=this;return arguments.length?(b.color().parse(a),void(b._rendered&&b._repaint())):b.color().toHex()},color:function(){return this._color||(this._color=new d),this._color},renderHtml:function(){function a(){var a,b,c,d,g="";for(c="filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=",d=f.split(","),a=0,b=d.length-1;a<b;a++)g+='<div class="'+e+'colorpicker-h-chunk" style="height:'+100/b+"%;"+c+d[a]+",endColorstr="+d[a+1]+");-ms-"+c+d[a]+",endColorstr="+d[a+1]+')"></div>';return g}var b,c=this,d=c._id,e=c.classPrefix,f="#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000",g="background: -ms-linear-gradient(top,"+f+");background: linear-gradient(to bottom,"+f+");";return b='<div id="'+d+'-h" class="'+e+'colorpicker-h" style="'+g+'">'+a()+'<div id="'+d+'-hp" class="'+e+'colorpicker-h-marker"></div></div>','<div id="'+d+'" class="'+c.classes+'"><div id="'+d+'-sv" class="'+e+'colorpicker-sv"><div class="'+e+'colorpicker-overlay1"><div class="'+e+'colorpicker-overlay2"><div id="'+d+'-svp" class="'+e+'colorpicker-selector1"><div class="'+e+'colorpicker-selector2"></div></div></div></div></div>'+b+"</div>"}})}),g("12",["1g","f","2z","3f"],function(a,b,c,d){return a.extend({init:function(a){var c=this;a=b.extend({height:100,text:"Drop an image here",multiple:!1,accept:null},a),c._super(a),c.classes.add("dropzone"),a.multiple&&c.classes.add("multiple")},renderHtml:function(){var a,b,d=this,e=d.settings;return a={id:d._id,hidefocus:"1"},b=c.create("div",a,"<span>"+this.translate(e.text)+"</span>"),e.height&&c.css(b,"height",e.height+"px"),e.width&&c.css(b,"width",e.width+"px"),b.className=d.classes,b.outerHTML},postRender:function(){var a=this,c=function(b){b.preventDefault(),a.classes.toggle("dragenter"),a.getEl().className=a.classes},e=function(c){var e=a.settings.accept;if("string"!=typeof e)return c;var f=new d("("+e.split(/\s*,\s*/).join("|")+")$","i");return b.grep(c,function(a){return f.test(a.name)})};a._super(),a.$el.on("dragover",function(a){a.preventDefault()}),a.$el.on("dragenter",c),a.$el.on("dragleave",c),a.$el.on("drop",function(b){if(b.preventDefault(),!a.state.get("disabled")){var c=e(b.dataTransfer.files);a.value=function(){return c.length?a.settings.multiple?c:c[0]:null},c.length&&a.fire("change",b)}})},remove:function(){this.$el.off(),this._super()}})}),g("27",["1g"],function(a){"use strict";return a.extend({init:function(a){var b=this;a.delimiter||(a.delimiter="\xbb"),b._super(a),b.classes.add("path"),b.canFocus=!0,b.on("click",function(a){var c,d=a.target;(c=d.getAttribute("data-index"))&&b.fire("select",{value:b.row()[c],index:c})}),b.row(b.settings.row)},focus:function(){var a=this;return a.getEl().firstChild.focus(),a},row:function(a){return arguments.length?(this.state.set("row",a),this):this.state.get("row")},renderHtml:function(){var a=this;return'<div id="'+a._id+'" class="'+a.classes+'">'+a._getDataPathHtml(a.state.get("row"))+"</div>"},bindStates:function(){var a=this;return a.state.on("change:row",function(b){a.innerHtml(a._getDataPathHtml(b.value))}),a._super()},_getDataPathHtml:function(a){var b,c,d=this,e=a||[],f="",g=d.classPrefix;for(b=0,c=e.length;b<c;b++)f+=(b>0?'<div class="'+g+'divider" aria-hidden="true"> '+d.settings.delimiter+" </div>":"")+'<div role="button" class="'+g+"path-item"+(b==c-1?" "+g+"last":"")+'" data-index="'+b+'" tabindex="-1" id="'+d._id+"-"+b+'" aria-level="'+(b+1)+'">'+e[b].name+"</div>";return f||(f='<div class="'+g+'path-item">\xa0</div>'),f}})}),g("13",["27"],function(a){return a.extend({postRender:function(){function a(a){if(1===a.nodeType){if("BR"==a.nodeName||a.getAttribute("data-mce-bogus"))return!0;if("bookmark"===a.getAttribute("data-mce-type"))return!0}return!1}var b=this,c=b.settings.editor;return c.settings.elementpath!==!1&&(b.on("select",function(a){c.focus(),c.selection.select(this.row()[a.index].element),c.nodeChanged()}),c.on("nodeChange",function(d){for(var e=[],f=d.parents,g=f.length;g--;)if(1==f[g].nodeType&&!a(f[g])){var h=c.fire("ResolveName",{name:f[g].nodeName.toLowerCase(),target:f[g]});if(h.isDefaultPrevented()||e.push({name:h.name,element:f[g]}),h.isPropagationStopped())break}b.row(e)})),b._super()}})}),g("1q",["z"],function(a){"use strict";return a.extend({Defaults:{layout:"flex",align:"center",defaults:{flex:1}},renderHtml:function(){var a=this,b=a._layout,c=a.classPrefix;return a.classes.add("formitem"),b.preRender(a),'<div id="'+a._id+'" class="'+a.classes+'" hidefocus="1" tabindex="-1">'+(a.settings.title?'<div id="'+a._id+'-title" class="'+c+'title">'+a.settings.title+"</div>":"")+'<div id="'+a._id+'-body" class="'+a.bodyClasses+'">'+(a.settings.html||"")+b.renderHtml(a)+"</div></div>"}})}),g("1a",["z","1q","f"],function(a,b,c){"use strict";return a.extend({Defaults:{containerCls:"form",layout:"flex",direction:"column",align:"stretch",flex:1,padding:15,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var a=this,d=a.items();a.settings.formItemDefaults||(a.settings.formItemDefaults={layout:"flex",autoResize:"overflow",defaults:{flex:1}}),d.each(function(d){var e,f=d.settings.label;f&&(e=new b(c.extend({items:{type:"label",id:d._id+"-l",text:f,flex:0,forId:d._id,disabled:d.disabled()}},a.settings.formItemDefaults)),e.type="formitem",d.aria("labelledby",d._id+"-l"),"undefined"==typeof d.settings.flex&&(d.settings.flex=1),a.replace(d,e),e.add(d))})},submit:function(){return this.fire("submit",{data:this.toJSON()})},postRender:function(){var a=this;a._super(),a.fromJSON(a.settings.data)},bindStates:function(){function a(){var a,c,d,e=0,f=[];if(b.settings.labelGapCalc!==!1)for(d="children"==b.settings.labelGapCalc?b.find("formitem"):b.items(),d.filter("formitem").each(function(a){var b=a.items()[0],c=b.getEl().clientWidth;e=c>e?c:e,f.push(b)}),c=b.settings.labelGap||0,a=f.length;a--;)f[a].settings.minWidth=e+c}var b=this;b._super(),b.on("show",a),a()}})}),g("14",["1a"],function(a){"use strict";return a.extend({Defaults:{containerCls:"fieldset",layout:"flex",direction:"column",align:"stretch",flex:1,padding:"25 15 5 15",labelGap:30,spacing:10,border:1},renderHtml:function(){var a=this,b=a._layout,c=a.classPrefix;return a.preRender(),b.preRender(a),'<fieldset id="'+a._id+'" class="'+a.classes+'" hidefocus="1" tabindex="-1">'+(a.settings.title?'<legend id="'+a._id+'-title" class="'+c+'fieldset-title">'+a.settings.title+"</legend>":"")+'<div id="'+a._id+'-body" class="'+a.bodyClasses+'">'+(a.settings.html||"")+b.renderHtml(a)+"</div></fieldset>"}})}),h("48",Date),h("49",Math),g("3z",["48","49","3s"],function(a,b,c){var d=0,e=function(e){var f=new a,g=f.getTime(),h=b.floor(1e9*b.random());return d++,e+"_"+h+d+c(g)};return{generate:e}}),g("3l",[],function(){return"undefined"==typeof console&&(console={log:function(){}}),console}),g("1c",["1b","3j","3l","c"],function(a,b,c,d){var e=function(a,b){var e=b||d,f=e.createElement("div");if(f.innerHTML=a,!f.hasChildNodes()||f.childNodes.length>1)throw c.error("HTML does not have a single root node",a),"HTML must have a single root node";return h(f.childNodes[0])},f=function(a,b){var c=b||d,e=c.createElement(a);return h(e)},g=function(a,b){var c=b||d,e=c.createTextNode(a);return h(e)},h=function(c){if(null===c||void 0===c)throw new b("Node cannot be null or undefined");return{dom:a.constant(c)}};return{fromHtml:e,fromTag:f,fromText:g,fromDom:h}}),g("4b",[],function(){var a=function(a){var b,c=!1;return function(){return c||(c=!0,b=a.apply(null,arguments)),b}};return{cached:a}}),g("44",[],function(){return{ATTRIBUTE:2,CDATA_SECTION:4,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,ELEMENT:1,TEXT:3,PROCESSING_INSTRUCTION:7,ENTITY_REFERENCE:5,ENTITY:6,NOTATION:12}}),g("45",["44"],function(a){var b=function(a){var b=a.dom().nodeName;return b.toLowerCase()},c=function(a){return a.dom().nodeType},d=function(a){return a.dom().nodeValue},e=function(a){return function(b){return c(b)===a}},f=function(d){return c(d)===a.COMMENT||"#comment"===b(d)},g=e(a.ELEMENT),h=e(a.TEXT),i=e(a.DOCUMENT);return{name:b,type:c,value:d,isElement:g,isText:h,isDocument:i,isComment:f}}),g("42",["4b","1c","45","c"],function(a,b,c,d){var e=function(a){var b=c.isText(a)?a.dom().parentNode:a.dom();return void 0!==b&&null!==b&&b.ownerDocument.body.contains(b)},f=a.cached(function(){return g(b.fromDom(d))}),g=function(a){var c=a.dom().body;if(null===c||void 0===c)throw"Body is not available yet";return b.fromDom(c)};return{body:f,getBody:g,inBody:e}}),g("41",["3i","3s"],function(a,b){var c=function(c){if(null===c)return"null";var d=typeof c;return"object"===d&&a.prototype.isPrototypeOf(c)?"array":"object"===d&&b.prototype.isPrototypeOf(c)?"string":d},d=function(a){return function(b){return c(b)===a}};return{isString:d("string"),isObject:d("object"),isArray:d("array"),isNull:d("null"),isBoolean:d("boolean"),isUndefined:d("undefined"),isFunction:d("function"),isNumber:d("number")}}),g("4p",["2x","1b","3i","3j"],function(a,b,c,d){return function(){var e=arguments;return function(){for(var f=new c(arguments.length),g=0;g<f.length;g++)f[g]=arguments[g];if(e.length!==f.length)throw new d('Wrong number of arguments to struct. Expected "['+e.length+']", got '+f.length+" arguments");var h={};return a.each(e,function(a,c){h[a]=b.constant(f[c])}),h}}}),g("4t",["3r","46"],function(a,b){var c=function(){var a=b.keys,c=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};return void 0===a?c:a}(),d=function(a,b){for(var d=c(a),e=0,f=d.length;e<f;e++){var g=d[e],h=a[g];b(h,g,a)}},e=function(a,b){return f(a,function(a,c,d){return{k:c,v:b(a,c,d)}})},f=function(a,b){var c={};return d(a,function(d,e){var f=b(d,e,a);c[f.k]=f.v}),c},g=function(a,b){var c={},e={};return d(a,function(a,d){var f=b(a,d)?c:e;f[d]=a}),{t:c,f:e}},h=function(a,b){var c=[];return d(a,function(a,d){c.push(b(a,d))}),c},i=function(b,d){for(var e=c(b),f=0,g=e.length;f<g;f++){var h=e[f],i=b[h];if(d(i,h,b))return a.some(i)}return a.none()},j=function(a){return h(a,function(a){return a})},k=function(a){return j(a).length};return{bifilter:g,each:d,map:e,mapToArray:h,tupleMap:f,find:i,keys:c,values:j,size:k}}),g("4u",["2x","41","3j"],function(a,b,c){var d=function(a){return a.slice(0).sort()},e=function(a,b){throw new c("All required keys ("+d(a).join(", ")+") were not specified. Specified keys were: "+d(b).join(", ")+".")},f=function(a){throw new c("Unsupported keys for object: "+d(a).join(", "))},g=function(d,e){if(!b.isArray(e))throw new c("The "+d+" fields must be an array. Was: "+e+".");a.each(e,function(a){if(!b.isString(a))throw new c("The value "+a+" in the "+d+" fields was not a string.")})},h=function(a,b){throw new c("All values need to be of type: "+b+". Keys ("+d(a).join(", ")+") were not.")},i=function(b){var e=d(b),f=a.find(e,function(a,b){return b<e.length-1&&a===e[b+1]});f.each(function(a){throw new c("The field: "+a+" occurs more than once in the combined fields: ["+e.join(", ")+"].")})};return{sort:d,reqMessage:e,unsuppMessage:f,validateStrArr:g,invalidTypeMessage:h,checkDupes:i}}),g("4q",["2x","1b","4t","3r","4u","3j","46"],function(a,b,c,d,e,f,g){return function(h,i){var j=h.concat(i);if(0===j.length)throw new f("You must specify at least one required or optional field.");return e.validateStrArr("required",h),e.validateStrArr("optional",i),e.checkDupes(j),function(f){var k=c.keys(f),l=a.forall(h,function(b){return a.contains(k,b)});l||e.reqMessage(h,k);var m=a.filter(k,function(b){return!a.contains(j,b)});m.length>0&&e.unsuppMessage(m);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/vendor/tinymce/themes/mobile/theme.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 a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};h("u",Array),h("v",Error),g("6",["u","v"],function(a,b){var c=function(){},d=function(a,b){return function(){return a(b.apply(null,arguments))}},e=function(a){return function(){return a}},f=function(a){return a},g=function(a,b){return a===b},h=function(b){for(var c=new a(arguments.length-1),d=1;d<arguments.length;d++)c[d-1]=arguments[d];return function(){for(var d=new a(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];var f=c.concat(d);return b.apply(null,f)}},i=function(a){return function(){return!a.apply(null,arguments)}},j=function(a){return function(){throw new b(a)}},k=function(a){return a()},l=function(a){a()},m=e(!1),n=e(!0);return{noop:c,compose:d,constant:e,identity:f,tripleEquals:g,curry:h,not:i,die:j,apply:k,call:l,never:m,always:n}}),h("2n",Object),g("z",["6","2n"],function(a,b){var c=a.never,d=a.always,e=function(){return f},f=function(){var f=function(a){return a.isNone()},g=function(a){return a()},h=function(a){return a},i=function(){},j={fold:function(a,b){return a()},is:c,isSome:c,isNone:d,getOr:h,getOrThunk:g,getOrDie:function(a){throw new Error(a||"error: getOrDie called on none.")},or:h,orThunk:g,map:e,ap:e,each:i,bind:e,flatten:e,exists:c,forall:d,filter:e,equals:f,equals_:f,toArray:function(){return[]},toString:a.constant("none()")};return b.freeze&&b.freeze(j),j}(),g=function(a){var b=function(){return a},h=function(){return k},i=function(b){return g(b(a))},j=function(b){return b(a)},k={fold:function(b,c){return c(a)},is:function(b){return a===b},isSome:d,isNone:c,getOr:b,getOrThunk:b,getOrDie:b,or:h,orThunk:h,map:i,ap:function(b){return b.fold(e,function(b){return g(b(a))})},each:function(b){b(a)},bind:j,flatten:b,exists:j,forall:j,filter:function(b){return b(a)?k:f},equals:function(b){return b.is(a)},equals_:function(b,d){return b.fold(c,function(b){return d(a,b)})},toArray:function(){return[a]},toString:function(){return"some("+a+")"}};return k},h=function(a){return null===a||void 0===a?f:g(a)};return{some:g,none:e,from:h}}),h("2m",String),g("y",["z","u","v","2m"],function(a,b,c,d){var e=function(){var a=b.prototype.indexOf,c=function(b,c){return a.call(b,c)},d=function(a,b){return u(a,b)};return void 0===a?d:c}(),f=function(b,c){var d=e(b,c);return d===-1?a.none():a.some(d)},g=function(a,b){return e(a,b)>-1},h=function(a,b){return t(a,b).isSome()},i=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b(d));return c},j=function(a,b){for(var c=[],d=0;d<a.length;d+=b){var e=a.slice(d,d+b);c.push(e)}return c},k=function(a,c){for(var d=a.length,e=new b(d),f=0;f<d;f++){var g=a[f];e[f]=c(g,f,a)}return e},l=function(a,b){for(var c=0,d=a.length;c<d;c++){var e=a[c];b(e,c,a)}},m=function(a,b){for(var c=a.length-1;c>=0;c--){var d=a[c];b(d,c,a)}},n=function(a,b){for(var c=[],d=[],e=0,f=a.length;e<f;e++){var g=a[e],h=b(g,e,a)?c:d;h.push(g)}return{pass:c,fail:d}},o=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];b(f,d,a)&&c.push(f)}return c},p=function(a,b){if(0===a.length)return[];for(var c=b(a[0]),d=[],e=[],f=0,g=a.length;f<g;f++){var h=a[f],i=b(h);i!==c&&(d.push(e),e=[]),c=i,e.push(h)}return 0!==e.length&&d.push(e),d},q=function(a,b,c){return m(a,function(a){c=b(c,a)}),c},r=function(a,b,c){return l(a,function(a){c=b(c,a)}),c},s=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(f)}return a.none()},t=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(d)}return a.none()},u=function(a,b){for(var c=0,d=a.length;c<d;++c)if(a[c]===b)return c;return-1},v=b.prototype.push,w=function(a){for(var d=[],e=0,f=a.length;e<f;++e){if(!b.prototype.isPrototypeOf(a[e]))throw new c("Arr.flatten item "+e+" was not an array, input: "+a);v.apply(d,a[e])}return d},x=function(a,b){var c=k(a,b);return w(c)},y=function(a,b){for(var c=0,d=a.length;c<d;++c){var e=a[c];if(b(e,c,a)!==!0)return!1}return!0},z=function(a,b){return a.length===b.length&&y(a,function(a,c){return a===b[c]})},A=b.prototype.slice,B=function(a){var b=A.call(a,0);return b.reverse(),b},C=function(a,b){return o(a,function(a){return!g(b,a)})},D=function(a,b){for(var c={},e=0,f=a.length;e<f;e++){var g=a[e];c[d(g)]=b(g,e)}return c},E=function(a){return[a]},F=function(a,b){var c=A.call(a,0);return c.sort(b),c},G=function(b){return 0===b.length?a.none():a.some(b[0])},H=function(b){return 0===b.length?a.none():a.some(b[b.length-1])};return{map:k,each:l,eachr:m,partition:n,filter:o,groupBy:p,indexOf:f,foldr:q,foldl:r,find:s,findIndex:t,flatten:w,bind:x,forall:y,exists:h,contains:g,equal:z,reverse:B,chunk:j,difference:C,mapToObject:D,pure:E,sort:F,range:i,head:G,last:H}}),g("8o",[],function(){return"undefined"!=typeof window?window:Function("return this;")()}),g("6j",["8o"],function(a){var b=function(b,c){for(var d=void 0!==c?c:a,e=0;e<b.length&&void 0!==d&&null!==d;++e)d=d[b[e]];return d},c=function(a,c){var d=a.split(".");return b(d,c)},d=function(a,b){return void 0!==a[b]&&null!==a[b]||(a[b]={}),a[b]},e=function(b,c){for(var e=void 0!==c?c:a,f=0;f<b.length;++f)e=d(e,b[f]);return e},f=function(a,b){var c=a.split(".");return e(c,b)};return{path:b,resolve:c,forge:e,namespace:f}}),g("4m",["6j"],function(a){var b=function(b,c){return a.resolve(b,c)},c=function(a,c){var d=b(a,c);if(void 0===d)throw a+" not available on this browser";return d};return{getOrDie:c}}),g("2q",["4m"],function(a){var b=function(){var b=a.getOrDie("Node");return b},c=function(a,b,c){return 0!==(a.compareDocumentPosition(b)&c)},d=function(a,d){return c(a,d,b().DOCUMENT_POSITION_PRECEDING)},e=function(a,d){return c(a,d,b().DOCUMENT_POSITION_CONTAINED_BY)};return{documentPositionPreceding:d,documentPositionContainedBy:e}}),g("17",[],function(){var a=function(a){var b,c=!1;return function(){return c||(c=!0,b=a.apply(null,arguments)),b}};return{cached:a}}),h("6k",Number),g("44",["y","6k","2m"],function(a,b,c){var d=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];if(d.test(b))return d}},e=function(a,c){var e=d(a,c);if(!e)return{major:0,minor:0};var f=function(a){return b(c.replace(e,"$"+a))};return h(f(1),f(2))},f=function(a,b){var d=c(b).toLowerCase();return 0===a.length?g():e(a,d)},g=function(){return h(0,0)},h=function(a,b){return{major:a,minor:b}};return{nu:h,detect:f,unknown:g}}),g("2h",["6","44"],function(a,b){var c="Edge",d="Chrome",e="IE",f="Opera",g="Firefox",h="Safari",i=function(a,b){return function(){return b===a}},j=function(){return k({current:void 0,version:b.unknown()})},k=function(a){var b=a.current,j=a.version;return{current:b,version:j,isEdge:i(c,b),isChrome:i(d,b),isIE:i(e,b),isOpera:i(f,b),isFirefox:i(g,b),isSafari:i(h,b)}};return{unknown:j,nu:k,edge:a.constant(c),chrome:a.constant(d),ie:a.constant(e),opera:a.constant(f),firefox:a.constant(g),safari:a.constant(h)}}),g("2i",["6","44"],function(a,b){var c="Windows",d="iOS",e="Android",f="Linux",g="OSX",h="Solaris",i="FreeBSD",j=function(a,b){return function(){return b===a}},k=function(){return l({current:void 0,version:b.unknown()})},l=function(a){var b=a.current,k=a.version;return{current:b,version:k,isWindows:j(c,b),isiOS:j(d,b),isAndroid:j(e,b),isOSX:j(g,b),isLinux:j(f,b),isSolaris:j(h,b),isFreeBSD:j(i,b)}};return{unknown:k,nu:l,windows:a.constant(c),ios:a.constant(d),android:a.constant(e),linux:a.constant(f),osx:a.constant(g),solaris:a.constant(h),freebsd:a.constant(i)}}),g("2j",["6"],function(a){return function(b,c,d){var e=b.isiOS()&&/ipad/i.test(d)===!0,f=b.isiOS()&&!e,g=b.isAndroid()&&3===b.version.major,h=b.isAndroid()&&4===b.version.major,i=e||g||h&&/mobile/i.test(d)===!0,j=b.isiOS()||b.isAndroid(),k=j&&!i,l=c.isSafari()&&b.isiOS()&&/safari/i.test(d)===!1;return{isiPad:a.constant(e),isiPhone:a.constant(f),isTablet:a.constant(i),isPhone:a.constant(k),isTouch:a.constant(j),isAndroid:b.isAndroid,isiOS:b.isiOS,isWebView:a.constant(l)}}}),g("2k",["y","44","2m"],function(a,b,c){var d=function(b,d){var e=c(d).toLowerCase();return a.find(b,function(a){return a.search(e)})},e=function(a,c){return d(a,c).map(function(a){var d=b.detect(a.versionRegexes,c);return{current:a.name,version:d}})},f=function(a,c){return d(a,c).map(function(a){var d=b.detect(a.versionRegexes,c);return{current:a.name,version:d}})};return{detectBrowser:e,detectOs:f}}),g("45",[],function(){var a=function(a,b){return b+a},b=function(a,b){return a+b},c=function(a,b){return a.substring(b)},d=function(a,b){return a.substring(0,a.length-b)};return{addToStart:a,addToEnd:b,removeFromStart:c,removeFromEnd:d}}),g("46",["z","v"],function(a,b){var c=function(a,b){return a.substr(0,b)},d=function(a,b){return a.substr(a.length-b,a.length)},e=function(b){return""===b?a.none():a.some(b.substr(0,1))},f=function(b){return""===b?a.none():a.some(b.substring(1))};return{first:c,last:d,head:e,tail:f}}),g("37",["45","46","v"],function(a,b,c){var d=function(a,b,c){if(""===b)return!0;if(a.length<b.length)return!1;var d=a.substr(c,c+b.length);return d===b},e=function(a,b){var c=function(a){var b=typeof a;return"string"===b||"number"===b};return a.replace(/\${([^{}]*)}/g,function(a,d){var e=b[d];return c(e)?e:a})},f=function(b,c){return l(b,c)?a.removeFromStart(b,c.length):b},g=function(b,c){return m(b,c)?a.removeFromEnd(b,c.length):b},h=function(b,c){return l(b,c)?b:a.addToStart(b,c)},i=function(b,c){return m(b,c)?b:a.addToEnd(b,c)},j=function(a,b){return a.indexOf(b)!==-1},k=function(a){return b.head(a).bind(function(c){return b.tail(a).map(function(a){return c.toUpperCase()+a})}).getOr(a)},l=function(a,b){return d(a,b,0)},m=function(a,b){return d(a,b,a.length-b.length)},n=function(a){return a.replace(/^\s+|\s+$/g,"")},o=function(a){return a.replace(/^\s+/g,"")},p=function(a){return a.replace(/\s+$/g,"")};return{supplant:e,startsWith:l,removeLeading:f,removeTrailing:g,ensureLeading:h,ensureTrailing:i,endsWith:m,contains:j,trim:n,lTrim:o,rTrim:p,capitalize:k}}),g("2l",["6","37"],function(a,b){var c=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,d=function(a){return function(c){return b.contains(c,a)}},e=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(a){var c=b.contains(a,"edge/")&&b.contains(a,"chrome")&&b.contains(a,"safari")&&b.contains(a,"applewebkit");return c}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,c],search:function(a){return b.contains(a,"chrome")&&!b.contains(a,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(a){return b.contains(a,"msie")||b.contains(a,"trident")}},{name:"Opera",versionRegexes:[c,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:d("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:d("firefox")},{name:"Safari",versionRegexes:[c,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(a){return(b.contains(a,"safari")||b.contains(a,"mobile/"))&&b.contains(a,"applewebkit")}}],f=[{name:"Windows",search:d("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(a){return b.contains(a,"iphone")||b.contains(a,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:d("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:d("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:d("linux"),versionRegexes:[]},{name:"Solaris",search:d("sunos"),versionRegexes:[]},{name:"FreeBSD",search:d("freebsd"),versionRegexes:[]}];return{browsers:a.constant(e),oses:a.constant(f)}}),g("18",["2h","2i","2j","2k","2l"],function(a,b,c,d,e){var f=function(f){var g=e.browsers(),h=e.oses(),i=d.detectBrowser(g,f).fold(a.unknown,a.nu),j=d.detectOs(h,f).fold(b.unknown,b.nu),k=c(j,i,f);return{browser:i,os:j,deviceType:k}};return{detect:f}}),h("19",navigator),g("7",["17","18","19"],function(a,b,c){var d=a.cached(function(){var a=c.userAgent;return b.detect(a)});return{detect:d}}),g("16",[],function(){return"undefined"==typeof console&&(console={log:function(){}}),console}),h("1b",document),g("a",["6","v","16","1b"],function(a,b,c,d){var e=function(a,b){var e=b||d,f=e.createElement("div");if(f.innerHTML=a,!f.hasChildNodes()||f.childNodes.length>1)throw c.error("HTML does not have a single root node",a),"HTML must have a single root node";return h(f.childNodes[0])},f=function(a,b){var c=b||d,e=c.createElement(a);return h(e)},g=function(a,b){var c=b||d,e=c.createTextNode(a);return h(e)},h=function(c){if(null===c||void 0===c)throw new b("Node cannot be null or undefined");return{dom:a.constant(c)}};return{fromHtml:e,fromTag:f,fromText:g,fromDom:h}}),g("1d",[],function(){return{ATTRIBUTE:2,CDATA_SECTION:4,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,ELEMENT:1,TEXT:3,PROCESSING_INSTRUCTION:7,ENTITY_REFERENCE:5,ENTITY:6,NOTATION:12}}),g("2r",["y","z","a","1d","v","1b"],function(a,b,c,d,e,f){var g=0,h=1,i=2,j=3,k=function(){var a=f.createElement("span");return void 0!==a.matches?g:void 0!==a.msMatchesSelector?h:void 0!==a.webkitMatchesSelector?i:void 0!==a.mozMatchesSelector?j:-1}(),l=d.ELEMENT,m=d.DOCUMENT,n=function(a,b){var c=a.dom();if(c.nodeType!==l)return!1;if(k===g)return c.matches(b);if(k===h)return c.msMatchesSelector(b);if(k===i)return c.webkitMatchesSelector(b);if(k===j)return c.mozMatchesSelector(b);throw new e("Browser lacks native selectors")},o=function(a){return a.nodeType!==l&&a.nodeType!==m||0===a.childElementCount},p=function(b,d){var e=void 0===d?f:d.dom();return o(e)?[]:a.map(e.querySelectorAll(b),c.fromDom)},q=function(a,d){var e=void 0===d?f:d.dom();return o(e)?b.none():b.from(e.querySelector(a)).map(c.fromDom)};return{all:p,is:n,one:q}}),g("1a",["y","6","2q","7","2r"],function(a,b,c,d,e){var f=function(a,b){return a.dom()===b.dom()},g=function(a,b){return a.dom().isEqualNode(b.dom())},h=function(c,d){return a.exists(d,b.curry(f,c))},i=function(a,b){var c=a.dom(),d=b.dom();return c!==d&&c.contains(d)},j=function(a,b){return c.documentPositionContainedBy(a.dom(),b.dom())},k=d.detect().browser,l=k.isIE()?j:i;return{eq:f,isEqualNode:g,member:h,contains:l,is:e.is}}),g("43",["1a"],function(a){var b=function(b,c){return a.eq(b.element(),c.event().target())};return{isSource:b}}),g("2g",["6"],function(a){return{contextmenu:a.constant("contextmenu"),touchstart:a.constant("touchstart"),touchmove:a.constant("touchmove"),touchend:a.constant("touchend"),gesturestart:a.constant("gesturestart"),mousedown:a.constant("mousedown"),mousemove:a.constant("mousemove"),mouseout:a.constant("mouseout"),mouseup:a.constant("mouseup"),mouseover:a.constant("mouseover"),focusin:a.constant("focusin"),keydown:a.constant("keydown"),input:a.constant("input"),change:a.constant("change"),focus:a.constant("focus"),click:a.constant("click"),transitionend:a.constant("transitionend"),selectstart:a.constant("selectstart")}}),g("t",["2g","6","7"],function(a,b,c){var d={tap:b.constant("alloy.tap")};return{focus:b.constant("alloy.focus"),postBlur:b.constant("alloy.blur.post"),receive:b.constant("alloy.receive"),execute:b.constant("alloy.execute"),focusItem:b.constant("alloy.focus.item"),tap:d.tap,tapOrClick:c.detect().deviceType.isTouch()?d.tap:a.click,longpress:b.constant("alloy.longpress"),sandboxClose:b.constant("alloy.sandbox.close"),systemInit:b.constant("alloy.system.init"),windowScroll:b.constant("alloy.system.scroll"),attachedToDom:b.constant("alloy.system.attached"),detachedFromDom:b.constant("alloy.system.detached"),changeTab:b.constant("alloy.change.tab"),dismissTab:b.constant("alloy.dismiss.tab")}}),g("1i",["u","2m"],function(a,b){var c=function(c){if(null===c)return"null";var d=typeof c;return"object"===d&&a.prototype.isPrototypeOf(c)?"array":"object"===d&&b.prototype.isPrototypeOf(c)?"string":d},d=function(a){return function(b){return c(b)===a}};return{isString:d("string"),isObject:d("object"),isArray:d("array"),isNull:d("null"),isBoolean:d("boolean"),isUndefined:d("undefined"),isFunction:d("function"),isNumber:d("number")}}),g("w",["1i","u","v"],function(a,b,c){var d=function(a,b){return b},e=function(b,c){var d=a.isObject(b)&&a.isObject(c);return d?g(b,c):c},f=function(a){return function(){for(var d=new b(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];if(0===d.length)throw new c("Can't merge zero objects");for(var f={},g=0;g<d.length;g++){var h=d[g];for(var i in h)h.hasOwnProperty(i)&&(f[i]=a(f[i],h[i]))}return f}},g=f(e),h=f(d);return{deepMerge:g,merge:h}}),g("x",["z","2n"],function(a,b){var c=function(){var a=b.keys,c=function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};return void 0===a?c:a}(),d=function(a,b){for(var d=c(a),e=0,f=d.length;e<f;e++){var g=d[e],h=a[g];b(h,g,a)}},e=function(a,b){return f(a,function(a,c,d){return{k:c,v:b(a,c,d)}})},f=function(a,b){var c={};return d(a,function(d,e){var f=b(d,e,a);c[f.k]=f.v}),c},g=function(a,b){var c={},e={};return d(a,function(a,d){var f=b(a,d)?c:e;f[d]=a}),{t:c,f:e}},h=function(a,b){var c=[];return d(a,function(a,d){c.push(b(a,d))}),c},i=function(b,d){for(var e=c(b),f=0,g=e.length;f<g;f++){var h=e[f],i=b[h];if(d(i,h,b))return a.some(i)}return a.none()},j=function(a){return h(a,function(a){return a})},k=function(a){return j(a).length};return{bifilter:g,each:d,map:e,mapToArray:h,tupleMap:f,find:i,keys:c,values:j,size:k}}),g("2",["t","6","w","x"],function(a,b,c,d){var e=function(a,b){i(a,a.element(),b,{})},f=function(a,b,c){i(a,a.element(),b,c)},g=function(b){e(b,a.execute())},h=function(a,b,c){i(a,b,c,{})},i=function(a,e,f,g){var h=c.deepMerge({target:e},g);a.getSystem().triggerEvent(f,e,d.map(h,b.constant))},j=function(a,b,c,d){a.getSystem().triggerEvent(c,b,d.event())},k=function(a,b){a.getSystem().triggerFocus(b,a.element())};return{emit:e,emitWith:f,emitExecute:g,dispatch:h,dispatchWith:i,dispatchEvent:j,dispatchFocus:k}}),g("6l",["y","x","1i","u","v","16"],function(a,b,c,d,e,f){var g=function(g){if(!c.isArray(g))throw new e("cases must be an array");if(0===g.length)throw new e("there must be at least one case");var h=[],i={};return a.each(g,function(j,k){var l=b.keys(j);if(1!==l.length)throw new e("one and only one name per case");var m=l[0],n=j[m];if(void 0!==i[m])throw new e("duplicate key detected:"+m);if("cata"===m)throw new e("cannot have a case named cata (sorry)");if(!c.isArray(n))throw new e("case arguments must be an array");h.push(m),i[m]=function(){var c=arguments.length;if(c!==n.length)throw new e("Wrong number of arguments to case "+m+". Expected "+n.length+" ("+n+"), got "+c);for(var i=new d(c),j=0;j<i.length;j++)i[j]=arguments[j];var l=function(c){var d=b.keys(c);if(h.length!==d.length)throw new e("Wrong number of arguments to match. Expected: "+h.join(",")+"\nActual: "+d.join(","));var f=a.forall(h,function(b){return a.contains(d,b)});if(!f)throw new e("Not all branches were specified when using match. Specified: "+d.join(", ")+"\nRequired: "+h.join(", "));return c[m].apply(null,i)};return{fold:function(){if(arguments.length!==g.length)throw new e("Wrong number of arguments to fold. Expected "+g.length+", got "+arguments.length);var a=arguments[k];return a.apply(null,i)},match:l,log:function(a){f.log(a,{constructors:h,constructor:m,params:i})}}}}),i};return{generate:g}}),g("4c",["6l","6"],function(a,b){var c=a.generate([{strict:[]},{defaultedThunk:["fallbackThunk"]},{asOption:[]},{asDefaultedOptionThunk:["fallbackThunk"]},{mergeWithThunk:["baseThunk"]}]),d=function(a){return c.defaultedThunk(b.constant(a))},e=function(a){return c.asDefaultedOptionThunk(b.constant(a))},f=function(a){return c.mergeWithThunk(b.constant(a))};return{strict:c.strict,asOption:c.asOption,defaulted:d,defaultedThunk:c.defaultedThunk,asDefaultedOption:e,asDefaultedOptionThunk:c.asDefaultedOptionThunk,mergeWith:f,mergeWithThunk:c.mergeWithThunk}}),g("48",["6","z"],function(a,b){var c=function(d){var e=function(a){return d===a},f=function(a){return c(d)},g=function(a){return c(d)},h=function(a){return c(a(d))},i=function(a){a(d)},j=function(a){return a(d)},k=function(a,b){return b(d)},l=function(a){return a(d)},m=function(a){return a(d)},n=function(){return b.some(d)};return{is:e,isValue:a.constant(!0),isError:a.constant(!1),getOr:a.constant(d),getOrThunk:a.constant(d),getOrDie:a.constant(d),or:f,orThunk:g,fold:k,map:h,each:i,bind:j,exists:l,forall:m,toOption:n}},d=function(c){var e=function(a){return a()},f=function(){return a.die(c)()},g=function(a){return a},h=function(a){return a()},i=function(a){return d(c)},j=function(a){return d(c)},k=function(a,b){return a(c)};return{is:a.constant(!1),isValue:a.constant(!1),isError:a.constant(!0),getOr:a.identity,getOrThunk:e,getOrDie:f,or:g,orThunk:h,fold:k,map:i,each:a.noop,bind:j,exists:a.constant(!1),forall:a.constant(!0),toOption:b.none}};return{value:c,error:d}}),g("49",["6l","y"],function(a,b){var c=a.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]),d=function(a){var c=[],d=[];return b.each(a,function(a){a.fold(function(a){c.push(a)},function(a){d.push(a)})}),{errors:c,values:d}},e=function(a,b){return a.fold(function(a){return b.fold(function(b){return c.bothErrors(a,b)},function(b){return c.firstError(a,b)})},function(a){return b.fold(function(b){return c.secondError(a,b)},function(b){return c.bothValues(a,b)})})};return{partition:d,compare:e}}),g("2a",["y","6","w","48","49"],function(a,b,c,d,e){var f=function(a,b){return d.value(c.deepMerge.apply(void 0,[b].concat(a)))},g=function(c){return b.compose(d.error,a.flatten)(c)},h=function(a,b){var c=e.partition(a);return c.errors.length>0?g(c.errors):f(c.values,b)},i=function(a){var b=e.partition(a);return b.errors.length>0?g(b.errors):d.value(b.values)};return{consolidateObj:h,consolidateArr:i}}),g("2b",["y","x"],function(a,b){var c=function(b,c){var d={};return a.each(c,function(a){void 0!==b[a]&&b.hasOwnProperty(a)&&(d[a]=b[a])}),d},d=function(b,c){var d={};return a.each(b,function(a){var b=a[c];d[b]=a}),d},e=function(c,d){var e={};return b.each(c,function(b,c){a.contains(d,c)||(e[c]=b)}),e};return{narrow:c,exclude:e,indexOnKey:d}}),g("2c",["z"],function(a){var b=function(b){return function(c){return c.hasOwnProperty(b)?a.from(c[b]):a.none()}},c=function(a,c){return function(d){return b(a)(d).getOr(c)}},d=function(a,c){return b(c)(a)},e=function(a,b){return a.hasOwnProperty(b)&&void 0!==a[b]&&null!==a[b]};return{readOpt:b,readOr:c,readOptFrom:d,hasKey:e}}),g("2d",["y"],function(a){var b=function(a,b){var c={};return c[a]=b,c},c=function(b){var c={};return a.each(b,function(a){c[a.key]=a.value}),c};return{wrap:b,wrapAll:c}}),g("14",["2a","2b","2c","2d"],function(a,b,c,d){var e=function(a,c){return b.narrow(a,c)},f=function(a,c){return b.exclude(a,c)},g=function(a){return c.readOpt(a)},h=function(a,b){return c.readOr(a,b)},i=function(a,b){return c.readOptFrom(a,b)},j=function(a,b){return d.wrap(a,b)},k=function(a){return d.wrapAll(a)},l=function(a,c){return b.indexOnKey(a,c)},m=function(b,c){return a.consolidateObj(b,c)},n=function(a,b){return c.hasKey(a,b)};return{narrow:e,exclude:f,readOpt:g,readOr:h,readOptFrom:i,wrap:j,wrapAll:k,indexOnKey:l,hasKey:n,consolidate:m}}),g("6o",["4m"],function(a){var b=function(){return a.getOrDie("JSON")},c=function(a){return b().parse(a)},d=function(a,c,d){return b().stringify(a,c,d)};return{parse:c,stringify:d}}),g("4f",["y","x","1i","6o"],function(a,b,c,d){var e=function(a){return c.isObject(a)&&b.keys(a).length>100?" removed due to size":d.stringify(a,null,2)},f=function(b){var c=b.length>10?b.slice(0,10).concat([{path:[],getErrorInfo:function(){return"... (only showing first ten failures)"}}]):b;return a.map(c,function(a){return"Failed path: ("+a.path.join(" > ")+")\n"+a.getErrorInfo()})};return{formatObj:e,formatErrors:f}}),g("6m",["4f","48"],function(a,b){var c=function(a,c){return b.error([{path:a,getErrorInfo:c}])},d=function(b,d,e){return c(b,function(){return'Could not find valid *strict* value for "'+d+'" in '+a.formatObj(e)})},e=function(a,b){return c(a,function(){return'Choice schema did not contain choice key: "'+b+'"'})},f=function(b,d,e){return c(b,function(){return'The chosen schema: "'+e+'" did not exist in branches: '+a.formatObj(d)})},g=function(a,b){return c(a,function(){return"There are unsupported fields: ["+b.join(", ")+"] specified"})},h=function(a,b){return c(a,function(){return b})},i=function(a){return"Failed path: ("+a.path.join(" > ")+")\n"+a.getErrorInfo()};return{missingStrict:d,missingKey:e,missingBranch:f,unsupportedFields:g,custom:h,toString:i}}),g("6n",["6l"],function(a){var b=a.generate([{setOf:["validator","valueType"]},{arrOf:["valueType"]},{objOf:["fields"]},{itemOf:["validator"]},{choiceOf:["key","branches"]}]),c=a.generate([{field:["name","presence","type"]},{state:["name"]}]);return{typeAdt:b,fieldAdt:c}}),g("4d",["4c","14","2a","2c","2d","6m","6n","6l","y","6","w","x","z","48","1i"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=h.generate([{field:["key","okey","presence","prop"]},{state:["okey","instantiator"]}]),q=function(a,b){return p.state(a,j.constant(b))},r=function(a){return p.state(a,j.identity)},s=function(a,b,c){return d.readOptFrom(b,c).fold(function(){return f.missingStrict(a,c,b)},n.value)},t=function(a,b,c){var e=d.readOptFrom(a,b).fold(function(){return c(a)},j.identity);return n.value(e)},u=function(a,b){return n.value(d.readOptFrom(a,b))},v=function(a,b,c){var e=d.readOptFrom(a,b).map(function(b){return b===!0?c(a):b});return n.value(e)},w=function(a,b,c,d){return c.fold(function(c,f,g,h){var i=function(b){return h.extract(a.concat([c]),d,b).map(function(a){return e.wrap(f,d(a))})},l=function(b){return b.fold(function(){var a=e.wrap(f,d(m.none()));return n.value(a)},function(b){return h.extract(a.concat([c]),d,b).map(function(a){return e.wrap(f,d(m.some(a)))})})};return function(){return g.fold(function(){return s(a,b,c).bind(i)},function(a){return t(b,c,a).bind(i)},function(){return u(b,c).bind(l)},function(a){return v(b,c,a).bind(l)},function(a){var d=a(b);return t(b,c,j.constant({})).map(function(a){return k.deepMerge(d,a)}).bind(i)})}()},function(a,c){var f=c(b);return n.value(e.wrap(a,d(f)))})},x=function(a,b,d,e){var f=i.map(d,function(c){return w(a,b,c,e)});return c.consolidateObj(f,{})},y=function(a){var b=function(b,c,d){return a(d).fold(function(a){return f.custom(b,a)},n.value)},c=function(){return"val"},d=function(){return g.typeAdt.itemOf(a)};return{extract:b,toString:c,toDsl:d}},z=function(a){var c=l.keys(a);return i.filter(c,function(c){return b.hasKey(a,c)})},A=function(a){var c=B(a),d=i.foldr(a,function(a,c){return c.fold(function(c){return k.deepMerge(a,b.wrap(c,!0))},j.constant(a))},{}),e=function(a,e,g){var h=o.isBoolean(g)?[]:z(g),j=i.filter(h,function(a){return!b.hasKey(d,a)});return 0===j.length?c.extract(a,e,g):f.unsupportedFields(a,j)};return{extract:e,toString:c.toString,toDsl:c.toDsl}},B=function(a){var b=function(b,c,d){return x(b,d,a,c)},c=function(){var b=i.map(a,function(a){return a.fold(function(a,b,c,d){return a+" -> "+d.toString()},function(a,b){return"state("+a+")"})});return"obj{\n"+b.join("\n")+"}"},d=function(){return g.typeAdt.objOf(i.map(a,function(a){return a.fold(function(a,b,c,d){return g.fieldAdt.field(a,c,d)},function(a,b){return g.fieldAdt.state(a)})}))};return{extract:b,toString:c,toDsl:d}},C=function(a){var b=function(b,d,e){var f=i.map(e,function(c,e){return a.extract(b.concat(["["+e+"]"]),d,c)});return c.consolidateArr(f)},d=function(){return"array("+a.toString()+")"},e=function(){return g.typeAdt.arrOf(a)};return{extract:b,toString:d,toDsl:e}},D=function(b,c){var d=function(a,c){return C(y(b)).extract(a,j.identity,c)},e=function(b,e,f){var g=l.keys(f);return d(b,g).bind(function(d){var g=i.map(d,function(b){return p.field(b,b,a.strict(),c)});return B(g).extract(b,e,f)})},f=function(){return"setOf("+c.toString()+")"},h=function(){return g.typeAdt.setOf(b,c)};return{extract:e,toString:f,toDsl:h}},E=y(n.value),F=j.compose(C,B);return{anyValue:j.constant(E),value:y,obj:B,objOnly:A,arr:C,setOf:D,arrOfObj:F,state:p.state,field:p.field,output:q,snapshot:r}}),g("29",["4c","4d","48","1i"],function(a,b,c,d){var e=function(c){return b.field(c,c,a.strict(),b.anyValue())},f=function(c,d){return b.field(c,c,a.strict(),d)},g=function(e){return b.field(e,e,a.strict(),b.value(function(a){return d.isFunction(a)?c.value(a):c.error("Not a function")}))},h=function(d,e){return b.field(d,d,a.asOption(),b.value(function(a){return c.error("The field: "+d+" is forbidden. "+e)}))},i=function(a,b){return f(a,b)},j=function(c,d){return b.field(c,c,a.strict(),b.obj(d))},k=function(c,d){return b.field(c,c,a.strict(),b.arrOfObj(d))},l=function(c){return b.field(c,c,a.asOption(),b.anyValue())},m=function(c,d){return b.field(c,c,a.asOption(),d)},n=function(c,d){return b.field(c,c,a.asOption(),b.obj(d))},o=function(c,d){return b.field(c,c,a.asOption(),b.objOnly(d))},p=function(c,d){return b.field(c,c,a.defaulted(d),b.anyValue())},q=function(c,d,e){return b.field(c,c,a.defaulted(d),e)},r=function(c,d,e){return b.field(c,c,a.defaulted(d),b.obj(e))},s=function(a,c,d,e){return b.field(a,c,d,e)},t=function(a,c){return b.state(a,c)};return{strict:e,strictOf:f,strictObjOf:j,strictArrayOf:i,strictArrayOfObj:k,strictFunction:g,forbid:h,option:l,optionOf:m,optionObjOf:n,optionObjOfOnly:o,defaulted:p,defaultedOf:q,defaultedObjOf:r,field:s,state:t}}),g("4e",["14","6m","4d","6n","x"],function(a,b,c,d,e){var f=function(d,e,f,g,h){var i=a.readOptFrom(g,h);return i.fold(function(){return b.missingBranch(d,g,h)},function(a){return c.obj(a).extract(d.concat(["branch: "+h]),e,f)})},g=function(c,g){var h=function(d,e,h){var i=a.readOptFrom(h,c);return i.fold(function(){return b.missingKey(d,c)},function(a){return f(d,e,h,g,a)})},i=function(){return"chooseOn("+c+"). Possible values: "+e.keys(g)},j=function(){return d.typeAdt.choiceOf(c,g)};return{extract:h,toString:i,toDsl:j}};return{choose:g}}),g("2e",["4e","4d","4f","6","48","v"],function(a,b,c,d,e,f){var g=b.value(e.value),h=function(a){return b.arrOfObj(a)},i=function(){return b.arr(g)},j=b.arr,k=b.obj,l=b.objOnly,m=b.setOf,n=function(a){return b.value(a)},o=function(a,b,c,d){return b.extract([a],c,d).fold(function(a){return e.error({input:d,errors:a})},e.value)},p=function(a,b,c){return o(a,b,d.constant,c)},q=function(a,b,c){return o(a,b,d.identity,c)},r=function(a){return a.fold(function(a){throw new f(u(a))},d.identity)},s=function(a,b,c){return r(q(a,b,c))},t=function(a,b,c){return r(p(a,b,c))},u=function(a){return"Errors: \n"+c.formatErrors(a.errors)+"\n\nInput object: "+c.formatObj(a.input)},v=function(b,c){return a.choose(b,c)};return{anyValue:d.constant(g),arrOfObj:h,arrOf:j,arrOfVal:i,valueOf:n,setOf:m,objOf:k,objOfOnly:l,asStruct:p,asRaw:q,asStructOrDie:t,asRawOrDie:s,getOrDie:r,formatError:u,choose:v}}),g("47",["29","14","2e","1i","y","6o","6","u","v"],function(a,b,c,d,e,f,g,h,i){var j=function(d){if(!b.hasKey(d,"can")&&!b.hasKey(d,"abort")&&!b.hasKey(d,"run"))throw new i("EventHandler defined by: "+f.stringify(d,null,2)+" does not have can, abort, or run!");return c.asRawOrDie("Extracting event.handler",c.objOfOnly([a.defaulted("can",g.constant(!0)),a.defaulted("abort",g.constant(!1)),a.defaulted("run",g.noop)]),d)},k=function(a,b){return function(){var c=h.prototype.slice.call(arguments,0);return e.foldl(a,function(a,d){return a&&b(d).apply(void 0,c)},!0)}},l=function(a,b){return function(){var c=h.prototype.slice.call(arguments,0);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L7440

Insecure DOM Manipulation (XSS) in theme.js

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.js:7440
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
- self.getEl().lastChild.innerHTML = self.encode(e.value);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L6927

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:6927
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
- div.innerHTML = html;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L28853

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:28853
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
- doc.body.innerHTML = content;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L38671

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:38671
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 ed = window.parent.tinymce.get("' + editor.id + '");document.write(ed.iframeHTML);' +
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L78

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

CWE-79
File Location: media/com_modules/js/admin-module-edit.js:78
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
- tmpMenu.innerHTML = '<span class=\"badge badge-danger\">' + Joomla.JText._('JNO') + '</span>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L83

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

CWE-79
File Location: media/com_modules/js/admin-module-edit.js:83
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
- tmpStatus.innerHTML = '<span class=\"badge badge-success\">' + Joomla.JText._('JYES') + '</span>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L102

Insecure DOM Manipulation (XSS) in rotate.js

CWE-79
File Location: media/plg_media-action_rotate/js/rotate.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
- label.innerHTML = txt + ' : ' + event.target.value + ' degs';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L80

Insecure DOM Manipulation (XSS) in jupdatecheck.js

CWE-79
File Location: media/plg_quickicon_joomlaupdate/js/jupdatecheck.js:80
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_JOOMLAUPDATE_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 t=document.getElementById("plg_quickicon_joomlaupdate"),a=t.querySelectorAll("span.j-links-link"),l=JSON.parse(o);if(l instanceof Array)if(0===l.length){t.classList.add("success");for(var r=0,s=a.length;r<s;r++)a[r].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",l.length)+'<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),t.classList.add("danger");for(var r=0,s=a.length;r<s;r++)a[r].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND").replace("%s",l.length)}else for(var r=0,s=a.length;r<s;r++)a[r].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE")}else{t.classList.add("danger");for(var r=0,s=a.length;r<s;r++)a[r].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 t=0,a=n.length;t<a;t++)n[t].innerHTML=Joomla.JText._("PLG_QUICKICON_JOOMLAUPDATE_ERROR")}})}};document.addEventListener("DOMContentLoaded",function(){setTimeout(e,2e3)})}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L397

Insecure DOM Manipulation (XSS) in core.js

CWE-79
File Location: media/system/js/core.js:397
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
- titleWrapper.innerHTML = Joomla.JText._( type ) ? Joomla.JText._( type ) : type;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L767

Insecure DOM Manipulation (XSS) in calendar.js

CWE-79
File Location: media/system/js/fields/calendar.js:767
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 = "&#160;";
+ 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
L36

Insecure DOM Manipulation (XSS) in html5.js

CWE-79
File Location: media/system/js/legacy/html5.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
- a.innerHTML = '<xyz></xyz>';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L44

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-hi-ce.js:44
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
- return a})}pa&&u(Element.prototype,"attachShadow",function(b){return this.__CE_shadowRoot=b=pa.call(this,b)});if(N&&N.get)a(Element.prototype,N);else if(R&&R.get)a(HTMLElement.prototype,R);else{var d=J.call(document,"div");w(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return ma.call(this,!0).innerHTML},set:function(b){var a="template"===this.localName?this.content:this;for(d.innerHTML=b;0<a.childNodes.length;)L.call(a,a.childNodes[0]);for(;0<d.childNodes.length;)K.call(a,d.childNodes[0])}})})}u(Element.prototype,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L88

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-lite.js:88
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
- Node.ELEMENT_NODE}):a=B.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 qb(this)?gc(a):B.innerHTML(a)},set:function(a){for(var b="template"===this.localName?this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(ic&&ic.set?ic.set.call(jc,a):jc.innerHTML=a;jc.firstChild;)b.appendChild(jc.firstChild)},configurable:!0}},nc={shadowRoot:{get:function(){return this.__shady&&this.__shady.Ua||
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L21

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

CWE-79
File Location: media/system/js/polyfills/webcomponents/webcomponents-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
- x.children=function(a){var b=[];z.currentNode=a;for(a=z.firstChild();a;)b.push(a),a=z.nextSibling();return b};x.innerHTML=function(a){return Za(a,function(a){return $a(a)})};x.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 ab=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),bb=document.implementation.createHTMLDocument("inert").createElement("div"),cb=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),db={parentElement:{get:function(){var a=this.__shady&&this.__shady.parentNode;a&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:x.parentElement(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L71

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

CWE-79
File Location: media/system/webcomponents/js/joomla-field-media-es5.js:71
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
- c.innerHTML = '';var d = new Image();switch (this.type) {case 'image':
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2

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

CWE-79
File Location: media/vendor/awesomplete/js/awesomplete.min.js:2
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(){function t(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}function e(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)}}function i(t,e){return"string"==typeof t?(e||document).querySelector(t):t||null}function n(t,e){return o.call((e||document).querySelectorAll(t))}function s(){n("input.awesomplete").forEach(function(t){new r(t)})}var r=function(t,n){var s=this;this.isOpened=!1,this.input=i(t),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),n=n||{},e(this,{minChars:2,maxItems:10,autoFirst:!1,data:r.DATA,filter:r.FILTER_CONTAINS,sort:!1!==n.sort&&r.SORT_BYLENGTH,item:r.ITEM,replace:r.REPLACE},n),this.index=-1,this.container=i.create("div",{className:"awesomplete",around:t}),this.ul=i.create("ul",{hidden:"hidden",inside:this.container}),this.status=i.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))}}}},i.bind(this.input,this._events.input),i.bind(this.input.form,this._events.form),i.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")||n.list||[],r.all.push(this)};r.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=i(t))&&t.children){var e=[];o.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,i.fire(this.input,"awesomplete-close",t||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.autoFirst&&-1===this.index&&this.goto(0),i.fire(this.input,"awesomplete-open")},destroy:function(){i.unbind(this.input,this._events.input),i.unbind(this.input.form,this._events.form);var t=this.container.parentNode;t.insertBefore(this.input,this.container),t.removeChild(this.container),this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var e=r.all.indexOf(this);-1!==e&&r.all.splice(e,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,i.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(t,e){if(t?this.index=i.siblingIndex(t):t=this.ul.children[this.index],t){var n=this.suggestions[this.index];i.fire(this.input,"awesomplete-select",{text:n,origin:e||t})&&(this.replace(n),this.close({reason:"select"}),i.fire(this.input,"awesomplete-selectcomplete",{text:n}))}},evaluate:function(){var e=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 t(e.data(n,i))}).filter(function(t){return e.filter(t,i)}),!1!==this.sort&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(t){e.ul.appendChild(e.item(t,i))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},r.all=[],r.FILTER_CONTAINS=function(t,e){return RegExp(i.regExpEscape(e.trim()),"i").test(t)},r.FILTER_STARTSWITH=function(t,e){return RegExp("^"+i.regExpEscape(e.trim()),"i").test(t)},r.SORT_BYLENGTH=function(t,e){return t.length!==e.length?t.length-e.length:t<e?-1:1},r.ITEM=function(t,e){return i.create("li",{innerHTML:""===e.trim()?t:t.replace(RegExp(i.regExpEscape(e.trim()),"gi"),"<mark>$&</mark>"),"aria-selected":"false"})},r.REPLACE=function(t){this.input.value=t.value},r.DATA=function(t){return t},Object.defineProperty(t.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),t.prototype.toString=t.prototype.valueOf=function(){return""+this.label};var o=Array.prototype.slice;i.create=function(t,e){var n=document.createElement(t);for(var s in e){var r=e[s];if("inside"===s)i(r).appendChild(n);else if("around"===s){var o=i(r);o.parentNode.insertBefore(n,o),n.appendChild(o)}else s in n?n[s]=r:n.setAttribute(s,r)}return n},i.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)})}},i.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)})}},i.fire=function(t,e,i){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0);for(var s in i)n[s]=i[s];return t.dispatchEvent(n)},i.regExpEscape=function(t){return t.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},i.siblingIndex=function(t){for(var e=0;t=t.previousElementSibling;e++);return e},"undefined"!=typeof Document&&("loading"!==document.readyState?s():document.addEventListener("DOMContentLoaded",s)),r.$=i,r.$$=n,"undefined"!=typeof self&&(self.Awesomplete=r),"object"==typeof module&&module.exports&&(module.exports=r)}();
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3513

Insecure DOM Manipulation (XSS) in cropper.js

CWE-79
File Location: media/vendor/cropperjs/js/cropper.js:3513
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
- template.innerHTML = TEMPLATE;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L22

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

CWE-79
File Location: media/vendor/joomla-custom-elements/polyfills/webcomponents-ce.js:22
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
- return a})}M?q(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=M.call(this,a)}):console.warn("Custom Elements: `Element#attachShadow` was not patched.");if(N&&N.get)a(Element.prototype,N);else if(W&&W.get)a(HTMLElement.prototype,W);else{var c=F.call(document,"div");t(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return G.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName?this.content:this;for(c.innerHTML=a;0<b.childNodes.length;)J.call(b,
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L88

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

CWE-79
File Location: media/vendor/joomla-custom-elements/polyfills/webcomponents-lite.js:88
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
- case "<":return"&lt;";case ">":return"&gt;";case "\u00a0":return"&nbsp;"}},h=function(b){Object.defineProperty(b,"innerHTML",{get:function(){for(var a="",b=this.content.firstChild;b;b=b.nextSibling)a+=b.outerHTML||b.data.replace(t,g);return a},set:function(b){k.body.innerHTML=b;for(a.b(k);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;k.body.firstChild;)this.content.appendChild(k.body.firstChild)},configurable:!0})},k=document.implementation.createHTMLDocument("template"),
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1287

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

CWE-79
File Location: media/vendor/jquery/js/jquery.slim.js:1287
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
- docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2

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

CWE-79
File Location: media/vendor/jquery/js/jquery.slim.min.js:2
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(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=Array.isArray(d)))?(e?(e=!1,f=c&&Array.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e);return!1}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}return!1}}function ua(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i<f;i++)if(c=d.relative[a[i].type])m=[ta(ua(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)f[h].apply(c[0],c[1])===!1&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,N,e),g(f,c,O,e)):(f++,j.call(a,g(f,c,N,e),g(f,c,O,e),g(f,c,N,c.notifyWith))):(d!==N&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a);
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2189

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2189
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.controls.querySelector('.' + t.options.classPrefix + 'duration').innerHTML = timecode;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L2674

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2674
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
L2713

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:2713
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.chaptersButton.querySelector('ul').innerHTML = '';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4311

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

CWE-79
File Location: media/vendor/mediaelement/js/mediaelement-and-player.js:4311
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.layers.querySelector('.' + t.options.classPrefix + 'overlay-error').innerHTML = '' + imgError + errorContainer.outerHTML;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L440

Insecure DOM Manipulation (XSS) in plugin.js

CWE-79
File Location: media/vendor/tinymce/plugins/codesample/plugin.js:440
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
- env.element.innerHTML = env.highlightedCode;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L3

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

CWE-79
File Location: media/vendor/tinymce/plugins/table/plugin.min.js:3
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
- isText:j.isText,isComment:j.isComment,isElement:j.isElement,getText:p.get,setText:p.set,isBoundary:s,isEmptyTag:t}),eq:e.eq,is:e.is}}}),g("63",["1","n","2","24"],function(a,b,c,d){var e=d.immutable("left","right"),f=function(c,d,e){var f=c.property().children(d),g=a.findIndex(f,b.curry(c.eq,e));return g.map(function(a){return{before:b.constant(f.slice(0,a)),after:b.constant(f.slice(a+1))}})},g=function(a,b,c){return f(a,b,c).map(function(c){var d=a.create().clone(b);return a.insert().appendAll(d,c.after()),a.insert().after(b,d),e(b,d)})},h=function(a,b,c){return f(a,b,c).map(function(d){var f=a.create().clone(b);return a.insert().appendAll(f,d.before().concat([c])),a.insert().appendAll(b,d.after()),a.insert().before(b,f),e(f,b)})},i=function(a,b,e,f){var g=d.immutable("first","second","splits"),h=function(b,d,i){var j=g(b,c.none(),i);return e(b)?g(b,d,i):a.property().parent(b).bind(function(d){return f(a,d,b).map(function(a){var b=[{first:a.left,second:a.right}],f=e(d)?d:a.left();return h(f,c.some(a.right()),i.concat(b))}).getOr(j)})};return h(b,c.none(),[])};return{breakToLeft:h,breakToRight:g,breakPath:i}}),g("64",["1","n","2"],function(a,b,c){var d=function(a,b,c,d){var e=c[0],f=c.slice(1);return d(a,b,e,f)},e=function(a,b,e){return e.length>0?d(a,b,e,f):c.none()},f=function(b,c,d,e){var f=c(b,d);return a.foldr(e,function(a,d){var e=c(b,d);return g(b,a,e)},f)},g=function(a,c,d){return c.bind(function(c){return d.filter(b.curry(a.eq,c))})};return{oneAll:e}}),g("65",["1","n","2","2m"],function(a,b,c,d){var e=function(a,c){return b.curry(a.eq,c)},f=function(b,f,g,h){var i=b.property().children(f);if(b.eq(f,g[0]))return c.some([g[0]]);if(b.eq(f,h[0]))return c.some([h[0]]);var j=function(c){var d=a.reverse(c),g=a.findIndex(d,e(b,f)).getOr(-1),h=g<d.length-1?d[g+1]:d[g];return a.findIndex(i,e(b,h))},k=j(g),l=j(h);return k.bind(function(a){return l.map(function(b){var c=d.min(a,b),e=d.max(a,b);return i.slice(c,e+1)})})},g=function(c,d,f,g){var h=void 0!==g?g:b.constant(!1),i=[d].concat(c.up().all(d)),j=[f].concat(c.up().all(f)),k=function(b){var c=a.findIndex(b,h);return c.fold(function(){return b},function(a){return b.slice(0,a+1)})},l=k(i),m=k(j),n=a.find(l,function(b){return a.exists(m,e(c,b))});return{firstpath:b.constant(l),secondpath:b.constant(m),shared:b.constant(n)}},h=function(a,b,c){var d=g(a,b,c);return d.shared().bind(function(b){return f(a,b,d.firstpath(),d.secondpath())})};return{subset:h,ancestors:g}}),g("5k",["63","64","65"],function(a,b,c){var d=function(a,c,d){return b.oneAll(a,c,d)},e=function(a,b,d){return c.subset(a,b,d)},f=function(a,b,d,e){return c.ancestors(a,b,d,e)},g=function(b,c,d){return a.breakToLeft(b,c,d)},h=function(b,c,d){return a.breakToRight(b,c,d)},i=function(b,c,d,e){return a.breakPath(b,c,d,e)};return{sharedOne:d,subset:e,ancestors:f,breakToLeft:g,breakToRight:h,breakPath:i}}),g("4q",["5j","5k"],function(a,b){var c=a(),d=function(a,d){return b.sharedOne(c,function(b,c){return a(c)},d)},e=function(a,d){return b.subset(c,a,d)},f=function(a,d,e){return b.ancestors(c,a,d,e)},g=function(a,d){return b.breakToLeft(c,a,d)},h=function(a,d){return b.breakToRight(c,a,d)},i=function(a,d,e){return b.breakPath(c,a,d,function(a,b,c){return e(b,c)})};return{sharedOne:d,subset:e,ancestors:f,breakToLeft:g,breakToRight:h,breakPath:i}}),g("5l",["n","2","2g"],function(a,b,c){var d=function(a,b){var c=b.column(),d=b.column()+b.colspan()-1,e=b.row(),f=b.row()+b.rowspan()-1;return c<=a.finishCol()&&d>=a.startCol()&&e<=a.finishRow()&&f>=a.startRow()},e=function(a,b){return b.column()>=a.startCol()&&b.column()+b.colspan()-1<=a.finishCol()&&b.row()>=a.startRow()&&b.row()+b.rowspan()-1<=a.finishRow()},f=function(d,f){for(var g=!0,h=a.curry(e,f),i=f.startRow();i<=f.finishRow();i++)for(var j=f.startCol();j<=f.finishCol();j++)g=g&&c.getAt(d,i,j).exists(h);return g?b.some(f):b.none()};return{inSelection:d,isWithin:e,isRectangular:f}}),g("4s",["38","2g","5l","1w","2m"],function(a,b,c,d,e){var f=function(b,c){return a.bounds(e.min(b.row(),c.row()),e.min(b.column(),c.column()),e.max(b.row()+b.rowspan()-1,c.row()+c.rowspan()-1),e.max(b.column()+b.colspan()-1,c.column()+c.colspan()-1))},g=function(a,c,e){var g=b.findItem(a,c,d.eq),h=b.findItem(a,e,d.eq);return g.bind(function(a){return h.map(function(b){return f(a,b)})})},h=function(a,b,d){return g(a,b,d).bind(function(b){return c.isRectangular(a,b)})};return{getAnyBox:g,getBox:h}}),g("4r",["1","n","2g","5l","4s","1w"],function(a,b,c,d,e,f){var g=function(a,b,d,e){return c.findItem(a,b,f.eq).bind(function(b){var f=d>0?b.row()+b.rowspan()-1:b.row(),g=e>0?b.column()+b.colspan()-1:b.column(),h=c.getAt(a,f+d,g+e);return h.map(function(a){return a.element()})})},h=function(f,g,h){return e.getAnyBox(f,g,h).map(function(e){var g=c.filterItems(f,b.curry(d.inSelection,e));return a.map(g,function(a){return a.element()})})},i=function(a,b){var d=function(a,b){return f.contains(b,a)};return c.findItem(a,b,d).bind(function(a){return a.element()})};return{moveBy:g,intercepts:h,parentCell:i}}),g("47",["1a","2f","2g","4r","4s","1w"],function(a,b,c,d,e,f){var g=function(b,c,e){return a.table(b).bind(function(a){var f=k(a);return d.moveBy(f,b,c,e)})},h=function(a,b,c){var e=k(a);return d.intercepts(e,b,c)},i=function(a,b,c,e,g){var h=k(a),i=f.eq(a,c)?b:d.parentCell(h,b),j=f.eq(a,g)?e:d.parentCell(h,e);return d.intercepts(h,i,j)},j=function(a,b,c){var d=k(a);return e.getBox(d,b,c)},k=function(a){var d=b.fromTable(a);return c.generate(d)};return{moveBy:g,intercepts:h,nestedIntercepts:i,getBox:j}}),g("43",["1","n","2","4q","47","1w","8","1h","16"],function(a,b,c,d,e,f,g,h,i){var j=function(a,b){return h.ancestor(a,"table")},k=function(a,b,g){return f.eq(a,b)?c.some([a]):j(a,g).bind(function(c){return j(b,g).bind(function(i){return f.eq(c,i)?e.intercepts(c,a,b):f.contains(c,i)?e.nestedIntercepts(c,a,c,b,i):f.contains(i,c)?e.nestedIntercepts(i,a,c,b,i):d.ancestors(a,b).shared().bind(function(d){return h.closest(d,"table",g).bind(function(d){return e.nestedIntercepts(d,a,c,b,i)})})})})},l=function(a,b){var d=g.descendants(a,b);return d.length>0?c.some(d):c.none()},m=function(b,c){return a.find(b,function(a){return i.is(a,c)})},n=function(a,c,e){return h.descendant(a,c).bind(function(c){return h.descendant(a,e).bind(function(a){return d.sharedOne(j,[c,a]).map(function(d){return{first:b.constant(c),last:b.constant(a),table:b.constant(d)}})})})},o=function(a,c){return h.ancestor(a,"table").bind(function(d){return h.descendant(d,c).bind(function(c){return k(c,a).map(function(d){return{boxes:b.constant(d),start:b.constant(c),finish:b.constant(a)}})})})},p=function(a,b,c,d,f){return m(a,f).bind(function(a){return e.moveBy(a,b,c).bind(function(a){return o(a,d)})})};return{identify:k,retrieve:l,shiftSelection:p,getEdges:n}}),g("28",["43","2","47","1w","1h"],function(a,b,c,d,e){var f=function(b,c){return a.retrieve(b,c)},g=function(f,g,h){return a.getEdges(f,g,h).bind(function(a){var g=function(a){return d.eq(f,a)},h=e.ancestor(a.first(),"thead,tfoot,tbody,table",g),i=e.ancestor(a.last(),"thead,tfoot,tbody,table",g);return h.bind(function(e){return i.bind(function(f){return d.eq(e,f)?c.getBox(a.table(),a.first(),a.last()):b.none()})})})};return{retrieve:f,retrieveBox:g}}),g("j",["n"],function(a){var b="data-mce-selected",c="td["+b+"],th["+b+"]",d="["+b+"]",e="data-mce-first-selected",f="td["+e+"],th["+e+"]",g="data-mce-last-selected",h="td["+g+"],th["+g+"]";return{selected:a.constant(b),selectedSelector:a.constant(c),attributeSelector:a.constant(d),firstSelected:a.constant(e),firstSelectedSelector:a.constant(f),lastSelected:a.constant(g),lastSelectedSelector:a.constant(h)}}),g("3a",["1","13","12","p","q","s"],function(a,b,c,d,e,f){var g=function(g){if(!c.isArray(g))throw new e("cases must be an array");if(0===g.length)throw new e("there must be at least one case");var h=[],i={};return a.each(g,function(j,k){var l=b.keys(j);if(1!==l.length)throw new e("one and only one name per case");var m=l[0],n=j[m];if(void 0!==i[m])throw new e("duplicate key detected:"+m);if("cata"===m)throw new e("cannot have a case named cata (sorry)");if(!c.isArray(n))throw new e("case arguments must be an array");h.push(m),i[m]=function(){var c=arguments.length;if(c!==n.length)throw new e("Wrong number of arguments to case "+m+". Expected "+n.length+" ("+n+"), got "+c);for(var i=new d(c),j=0;j<i.length;j++)i[j]=arguments[j];var l=function(c){var d=b.keys(c);if(h.length!==d.length)throw new e("Wrong number of arguments to match. Expected: "+h.join(",")+"\nActual: "+d.join(","));var f=a.forall(h,function(b){return a.contains(d,b)});if(!f)throw new e("Not all branches were specified when using match. Specified: "+d.join(", ")+"\nRequired: "+h.join(", "));return c[m].apply(null,i)};return{fold:function(){if(arguments.length!==g.length)throw new e("Wrong number of arguments to fold. Expected "+g.length+", got "+arguments.length);var a=arguments[k];return a.apply(null,i)},match:l,log:function(a){f.log(a,{constructors:h,constructor:m,params:i})}}}}),i};return{generate:g}}),g("1e",["3a"],function(a){var b=a.generate([{none:[]},{multiple:["elements"]},{single:["selection"]}]),c=function(a,b,c,d){return a.fold(b,c,d)};return{cata:c,none:b.none,multiple:b.multiple,single:b.single}}),g("39",["28","1","n","2","7","j","1e"],function(a,b,c,d,e,f,g){var h=function(a,b){return g.cata(b.get(),c.constant([]),c.identity,c.constant([a]))},i=function(a,c){var f=function(a){return e.has(a,"rowspan")&&parseInt(e.get(a,"rowspan"),10)>1||e.has(a,"colspan")&&parseInt(e.get(a,"colspan"),10)>1},g=h(a,c);return g.length>0&&b.forall(g,f)?d.some(g):d.none()},j=function(b,e){return g.cata(e.get(),d.none,function(e,g){return 0===e.length?d.none():a.retrieveBox(b,f.firstSelectedSelector(),f.lastSelectedSelector()).bind(function(a){return e.length>1?d.some({bounds:c.constant(a),cells:c.constant(e)}):d.none()})},d.none)};return{mergable:j,unmergable:i,selection:h}}),g("1d",["n","2","24","39"],function(a,b,c,d){var e=function(c){return{element:a.constant(c),mergable:b.none,unmergable:b.none,selection:a.constant([c])}},f=function(b,c,e){return{element:a.constant(e),mergable:a.constant(d.mergable(c,b)),unmergable:a.constant(d.unmergable(e,b)),selection:a.constant(d.selection(e,b))}},g=function(a){return e(a)},h=c.immutable("element","clipboard","generators"),i=function(c,e,f,g,h){return{element:a.constant(f),mergable:b.none,unmergable:b.none,selection:a.constant(d.selection(f,c)),clipboard:a.constant(g),generators:a.constant(h)}};return{noMenu:e,forMenu:f,notCell:g,paste:h,pasteRows:i}}),g("b",["1","n","2","18","19","1a","1b","6","1c","14","1d","j","1e"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=function(a){return f.table(a[0]).map(g.deep).map(function(a){return[d.extract(a,l.attributeSelector())]})},o=function(a,b){return a.selection.serializer.serialize(b.dom(),{})},p=function(d,g,l,p){d.on("BeforeGetContent",function(c){var e=function(b){c.preventDefault(),n(b).each(function(b){c.content=a.map(b,function(a){return o(d,a)}).join("")})};c.selection===!0&&m.cata(g.get(),b.noop,e,b.noop)}),d.on("BeforeSetContent",function(b){if(b.selection===!0&&b.paste===!0){var g=c.from(d.dom.getParent(d.selection.getStart(),"th,td"));g.each(function(c){var g=h.fromDom(c),m=f.table(g);m.bind(function(c){var f=a.filter(i.fromHtml(b.content),function(a){return"meta"!==j.name(a)});if(1===f.length&&"table"===j.name(f[0])){b.preventDefault();var m=h.fromDom(d.getDoc()),n=e.paste(m),o=k.paste(g,f[0],n);l.pasteCells(c,o).each(function(a){d.selection.setRng(a),d.focus(),p.clear(c)})}})})}})};return{registerEvents:p}}),g("3b",["7","1u","6","1o","36"],function(a,b,c,d,e){var f=function(){return c.fromTag("table")},g=function(){return c.fromTag("tbody")},h=function(){return c.fromTag("tr")},i=function(){return c.fromTag("th")},j=function(){return c.fromTag("td")},k=function(k,l,m,n){var o=f();b.setAll(o,{"border-collapse":"collapse",width:"100%"}),a.set(o,"border","1");var p=g();d.append(o,p);for(var q=[],r=0;r<k;r++){for(var s=h(),t=0;t<l;t++){var u=r<m||t<n?i():j();t<n&&a.set(u,"scope","row"),r<m&&a.set(u,"scope","col"),d.append(u,c.fromTag("br")),b.set(u,"width",100/l+"%"),d.append(s,u)}q.push(s)}return e.append(p,q),o};return{render:k}}),g("1f",["3b"],function(a){return{render:a.render}}),g("1g",["6","1c","1o","36","1p","26"],function(a,b,c,d,e,f){var g=function(a){return a.dom().innerHTML},h=function(g,h){var i=f.owner(g),j=i.dom(),k=a.fromDom(j.createDocumentFragment()),l=b.fromHtml(h,j);d.append(k,l),e.empty(g),c.append(g,k)},i=function(b){var d=a.fromTag("div"),e=a.fromDom(b.dom().cloneNode(!0));return c.append(d,e),g(d)};return{get:g,set:h,getOuter:i}}),g("c",["n","1f","6","7","1g","1h"],function(a,b,c,d,e,f){var g=function(a,b){a.selection.select(b.dom(),!0),a.selection.collapse(!0)},h=function(b,c){f.descendant(c,"td,th").each(a.curry(g,b))},i=function(a,f,g){var i,j=b.render(g,f,0,0);d.set(j,"id","__mce");var k=e.getOuter(j);return a.insertContent(k),i=a.dom.get("__mce"),a.dom.setAttrib(i,"id",null),a.$("tr",i).each(function(b,c){a.fire("newrow",{node:c}),a.$("th,td",c).each(function(b,c){a.fire("newcell",{node:c})})}),a.dom.setAttribs(i,a.settings.table_default_attributes||{}),a.dom.setStyles(i,a.settings.table_default_styles||{}),h(a,c.fromDom(i)),i};return{insert:i}}),g("1i",["2j"],function(a){var b=function(b,c){var d=a.getGenericWidth(b);d.each(function(d){var e=d.width()/2;a.setGenericWidth(b,e,d.unit()),a.setGenericWidth(c,e,d.unit())})};return{halve:b}}),g("1j",["2f","2g"],function(a,b){var c=function(c){var d=a.fromTable(c),e=b.generate(d);return e.grid()};return{getGridSize:c}}),g("4t",[],function(){var a=function(b){var c=b,d=function(){return c},e=function(a){c=a},f=function(){return a(d())};return{get:d,set:e,clone:f}};return a}),g("3c",["1","n","2","4t","4u","7","1u","33"],function(a,b,c,d,e,f,g,h){var i=function(a){var c=f.has(a,"colspan")?h(f.get(a,"colspan"),10):1,d=f.has(a,"rowspan")?h(f.get(a,"rowspan"),10):1;return{element:b.constant(a),colspan:b.constant(c),rowspan:b.constant(d)}},j=function(a,b){m(a);var e=d(c.none()),f=void 0!==b?b:i,g=function(b){return a.cell(b)},h=function(a){var b=f(a);return g(b)},j=function(a){var b=h(a);return e.get().isNone()&&e.set(c.some(b)),k=c.some({item:a,replacement:b}),b},k=c.none(),l=function(a,b){return k.fold(function(){return j(a)},function(c){return b(a,c.item)?c.replacement:j(a)})};return{getOrInit:l,cursor:e.get}},k=function(b,e){return function(f){var g=d(c.none());m(f);var h=[],i=function(b,c){return a.find(h,function(a){return c(a.item,b)})},j=function(a){var d=f.replace(a,e,{scope:b});return h.push({item:a,sub:d}),g.get().isNone()&&g.set(c.some(d)),d},k=function(a,b){return i(a,b).fold(function(){return j(a)},function(c){return b(a,c.item)?c.sub:j(a)})};return{replaceOrInit:k,cursor:g.get}}},l=function(a){m(a);var e=d(c.none()),f=function(d){return e.get().isNone()&&e.set(c.some(d)),function(){var c=a.cell({element:b.constant(d),colspan:b.constant(1),rowspan:b.constant(1)});return g.remove(c,"width"),g.remove(d,"width"),c}};return{combine:f,cursor:e.get}},m=e.exactly(["cell","row","replace","gap"]);return{modification:j,transform:k,merging:l}}),g("5m",["1"],function(a){var b=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],c=function(b,c){var d=b.property().name(c);return a.contains(["ol","ul"],d)},d=function(c,d){var e=c.property().name(d);return a.contains(b,e)},e=function(b,c){var d=b.property().name(c);return a.contains(["address","pre","p","h1","h2","h3","h4","h5","h6"],d)},f=function(b,c){var d=b.property().name(c);return a.contains(["h1","h2","h3","h4","h5","h6"],d)},g=function(b,c){return a.contains(["div","li","td","th","blockquote","body","caption"],b.property().name(c))},h=function(b,c){return a.contains(["br","img","hr","input"],b.property().name(c))},i=function(a,b){return"iframe"===a.property().name(b)},j=function(a,b){return!(d(a,b)||h(a,b))&&"li"!==a.property().name(b)};return{isBlock:d,isList:c,isFormatting:e,isHeading:f,isContainer:g,isEmptyTag:h,isFrame:i,isInline:j}}),g("4v",["5j","5m"],function(a,b){var c=a(),d=function(a){return b.isBlock(c,a)},e=function(a){return b.isList(c,a)},f=function(a){return b.isFormatting(c,a)},g=function(a){return b.isHeading(c,a)},h=function(a){return b.isContainer(c,a)},i=function(a){return b.isEmptyTag(c,a)},j=function(a){return b.isFrame(c,a)},k=function(a){return b.isInline(c,a)};return{isBlock:d,isList:e,isFormatting:f,isHeading:g,isContainer:h,isEmptyTag:i,isFrame:j,isInline:k}}),g("3d",["1","4v","1w","36","1p","6","14","25","31","26","1x"],function(a,b,c,d,e,f,g,h,i,j,k){var l=function(l){var m=function(a){return"br"===g.name(a)},n=function(b){return a.forall(b,function(a){return m(a)||g.isText(a)&&0===h.get(a).trim().length})},o=function(a){return"li"===g.name(a)||i.ancestor(a,b.isList).isSome()},p=function(a){return j.nextSibling(a).map(function(a){return!!b.isBlock(a)||(b.isEmptyTag(a)?"img"!==g.name(a):void 0)}).getOr(!1)},q=function(a){return k.last(a).bind(function(d){var e=p(d);return j.parent(d).map(function(g){return e===!0||o(g)||m(d)||b.isBlock(g)&&!c.eq(a,g)?[]:[f.fromTag("br")]})}).getOr([])},r=function(){var b=a.bind(l,function(a){var b=j.children(a);return n(b)?[]:b.concat(q(a))});return 0===b.length?[f.fromTag("br")]:b},s=r();e.empty(l[0]),d.append(l[0],s)};return{merge:l}}),g("3e",["1","38"],function(a,b){var c=function(a,b,c){var d=a.cells(),f=d.slice(0,b),g=d.slice(b),h=f.concat([c]).concat(g);return e(a,h)},d=function(a,b,c){var d=a.cells();d[b]=c},e=function(a,c){return b.rowcells(c,a.section())},f=function(c,d){var e=c.cells(),f=a.map(e,d);return b.rowcells(f,c.section())},g=function(a,b){return a.cells()[b]},h=function(a,b){return g(a,b).element()},i=function(a){return a.cells().length};return{addCell:c,setCells:e,mutateCell:d,getCell:g,getCellElement:h,mapCells:f,cellLength:i}}),g("4x",["1","n","3e"],function(a,b,c){var d=function(b,d){return a.map(b,function(a){return c.getCell(a,d)})},e=function(a,b){return a[b]},f=function(b,c){if(0===b.length)return 0;var d=b[0],e=a.findIndex(b,function(a){return!c(d.element(),a.element())});return e.fold(function(){return b.length},function(a){return a})},g=function(a,c,g,h){var i=e(a,c).cells().slice(g),j=f(i,h),k=d(a,g).slice(c),l=f(k,h);return{colspan:b.constant(j),rowspan:b.constant(l)}};return{subgrid:g}}),g("3h",["1","38","4x","2g"],function(a,b,c,d){var e=function(d,e){var f=a.map(d,function(b,c){return a.map(b.cells(),function(a,b){return!1})}),g=function(a,b,c,d){for(var e=a;e<a+c;e++)for(var g=b;g<b+d;g++)f[e][g]=!0};return a.map(d,function(h,i){var j=a.bind(h.cells(),function(a,h){if(f[i][h]===!1){var j=c.subgrid(d,i,h,e);return g(i,h,j.rowspan(),j.colspan()),[b.detailnew(a.element(),j.rowspan(),j.colspan(),a.isNew())]}return[]});return b.rowdetails(j,h.section())})},f=function(a,c,e){for(var f=[],g=0;g<a.grid().rows();g++){for(var h=[],i=0;i<a.grid().columns();i++){var j=d.getAt(a,g,i).map(function(a){return b.elementnew(a.element(),e)}).getOrThunk(function(){return b.elementnew(c.gap(),!0)});h.push(j)}var k=b.rowcells(h,a.all()[g].section());f.push(k)}return f};return{toDetails:e,toGrid:f}}),g("3l",["1","n","7","6","1o","36","1p","1b","1h","26"],function(a,b,c,d,e,f,g,h,i,j){var k=function(a,b,d,e){d===e?c.remove(a,b):c.set(a,b,d)},l=function(c,h){var l=[],m=[],n=function(b,h){var n=i.child(c,h).getOrThunk(function(){var a=d.fromTag(h,j.owner(c).dom());return e.append(c,a),a});g.empty(n);var o=a.map(b,function(b){b.isNew()&&l.push(b.element());var c=b.element();return g.empty(c),a.each(b.cells(),function(a){a.isNew()&&m.push(a.element()),k(a.element(),"colspan",a.colspan(),1),k(a.element(),"rowspan",a.rowspan(),1),e.append(c,a.element())}),c});f.append(n,o)},o=function(a){i.child(c,a).bind(g.remove)},p=function(a,b){a.length>0?n(a,b):o(b)},q=[],r=[],s=[];return a.each(h,function(a){switch(a.section()){case"thead":q.push(a);break;case"tbody":r.push(a);break;case"tfoot":s.push(a)}}),p(q,"thead"),p(r,"tbody"),p(s,"tfoot"),{newRows:b.constant(l),newCells:b.constant(m)}},m=function(b){var c=a.map(b,function(b){var c=h.shallow(b.element());return a.each(b.cells(),function(a){var b=h.deep(a.element());k(b,"colspan",a.colspan(),1),k(b,"rowspan",a.rowspan(),1),e.append(c,b)}),c});return c};return{render:l,copy:m}}),g("3f",["1","4w","n","2","44","38","1a","2f","3h","2g","3l","11","2p","1w","26"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=function(a,b){return i.toGrid(a,b,!1)},q=function(b,c){var d=function(a){var b=e.findMap(a,function(a){return o.parent(a.element()).map(function(a){var b=o.parent(a).isNone();return f.elementnew(a,b)})});return b.getOrThunk(function(){return f.elementnew(c.row(),!0)})};return a.map(b,function(a){var b=d(a.details());return f.rowdatanew(b.element(),a.details(),a.section(),b.isNew())})},r=function(a,b){var c=i.toDetails(a,n.eq);return q(c,b)},s=function(b,c){var d=a.flatten(a.map(b.all(),function(a){return a.cells()}));return a.find(d,function(a){return n.eq(c,a.element())})},t=function(a,b,e,f,g){return function(i,o,q,s,t){var u=h.fromTable(o),v=j.generate(u),w=b(v,q).map(function(b){var d=p(v,s),e=a(d,b,n.eq,g(s)),f=r(e.grid(),s);return{grid:c.constant(f),cursor:e.cursor}});return w.fold(function(){return d.none()},function(a){var b=k.render(o,a.grid());return e(o,a.grid(),t),f(o),m.refresh(i,o,l.height,t),d.some({cursor:a.cursor,newRows:b.newRows,newCells:b.newCells})})}},u=function(a,b){return g.cell(b.element()).bind(function(b){return s(a,b)})},v=function(a,c){return g.cell(c.element()).bind(function(d){return s(a,d).map(function(a){return b.merge(a,{generators:c.generators,clipboard:c.clipboard})})})},w=function(c,f){var h=a.map(f.selection(),function(a){return g.cell(a).bind(function(a){return s(c,a)})}),i=e.cat(h);return i.length>0?d.some(b.merge({cells:i},{generators:f.generators,clipboard:f.clipboard})):d.none()},x=function(a,b){return b.mergable()},y=function(a,b){return b.unmergable()},z=function(b,c){var f=a.map(c.selection(),function(a){return g.cell(a).bind(function(a){return s(b,a)})}),h=e.cat(f);return h.length>0?d.some(h):d.none()};return{run:t,toDetailList:r,onCell:u,onCells:z,onPaste:v,onPasteRows:w,onMergable:x,onUnmergable:y}}),g("5n",["n","2"],function(a,b){var c=function(d){var e=function(a){return d===a},f=function(a){return c(d)},g=function(a){return c(d)},h=function(a){return c(a(d))},i=function(a){a(d)},j=function(a){return a(d)},k=function(a,b){return b(d)},l=function(a){return a(d)},m=function(a){return a(d)},n=function(){return b.some(d)};return{is:e,isValue:a.constant(!0),isError:a.constant(!1),getOr:a.constant(d),getOrThunk:a.constant(d),getOrDie:a.constant(d),or:f,orThunk:g,fold:k,map:h,each:i,bind:j,exists:l,forall:m,toOption:n}},d=function(c){var e=function(a){return a()},f=function(){return a.die(c)()},g=function(a){return a},h=function(a){return a()},i=function(a){return d(c)},j=function(a){return d(c)},k=function(a,b){return a(c)};return{is:a.constant(!1),isValue:a.constant(!1),isError:a.constant(!0),getOr:a.identity,getOrThunk:e,getOrDie:f,or:g,orThunk:h,fold:k,map:i,each:a.noop,bind:j,exists:a.constant(!1),forall:a.constant(!0),toOption:b.none}};return{value:c,error:d}}),g("4y",["1","n","5n","38","3e","4h","p","q","2m"],function(a,b,c,d,e,f,g,h,i){var j=function(a,d,f){if(a.row()>=d.length||a.column()>e.cellLength(d[0]))return c.error("invalid start address out of table bounds, row: "+a.row()+", column: "+a.column());var g=d.slice(a.row()),h=g[0].cells().slice(a.column()),i=e.cellLength(f[0]),j=f.length;return c.value({rowDelta:b.constant(g.length-j),colDelta:b.constant(h.length-i)})},k=function(a,c){var d=e.cellLength(a[0]),f=e.cellLength(c[0]);return{rowDelta:b.constant(0),colDelta:b.constant(d-f)}},l=function(b,c){return a.map(b,function(){return d.elementnew(c.cell(),!0)})},m=function(a,b,c){return a.concat(f.repeat(b,function(b){return e.setCells(a[a.length-1],l(a[a.length-1].cells(),c))}))},n=function(b,c,d){return a.map(b,function(a){return e.setCells(a,a.cells().concat(l(f.range(0,c),d)))})},o=function(a,c,d){var e=c.colDelta()<0?n:b.identity,f=c.rowDelta()<0?m:b.identity,g=e(a,i.abs(c.colDelta()),d),h=f(g,i.abs(c.rowDelta()),d);return h};return{measure:j,measureWidth:k,tailor:o}}),g("3i",["1","2","38","3e"],function(a,b,c,d){var e=function(a,b,e,f){if(0===a.length)return a;for(var g=b.startRow();g<=b.finishRow();g++)for(var h=b.startCol();h<=b.finishCol();h++)d.mutateCell(a[g],h,c.elementnew(f(),!1));return a},f=function(a,b,e,f){for(var g=!0,h=0;h<a.length;h++)for(var i=0;i<d.cellLength(a[0]);i++){var j=d.getCellElement(a[h],i),k=e(j,b);k===!0&&g===!1?d.mutateCell(a[h],i,c.elementnew(f(),!0)):k===!0&&(g=!1)}return a},g=function(b,c){return a.foldl(b,function(b,d){return a.exists(b,function(a){return c(a.element(),d.element())})?b:b.concat([d])},[])},h=function(e,f,h,i){if(f>0&&f<e.length){var j=e[f-1].cells(),k=g(j,h);a.each(k,function(a){for(var g=b.none(),j=f;j<e.length;j++)for(var k=0;k<d.cellLength(e[0]);k++){var l=e[j].cells()[k],m=h(l.element(),a.element());m&&(g.isNone()&&(g=b.some(i())),g.each(function(a){d.mutateCell(e[j],k,c.elementnew(a,!0))}))}})}return e};return{merge:e,unmerge:f,splitRows:h}}),g("3g",["n","38","4y","3e","3i"],function(a,b,c,d,e){var f=function(b,c,e,f){var g=d.getCell(b[c],e),h=a.curry(f,g.element()),i=b[c];return b.length>1&&d.cellLength(i)>1&&(e>0&&h(d.getCellElement(i,e-1))||e<i.length-1&&h(d.getCellElement(i,e+1))||c>0&&h(d.getCellElement(b[c-1],e))||c<b.length-1&&h(d.getCellElement(b[c+1],e)))},g=function(a,c,g,h,i){for(var j=a.row(),k=a.column(),l=g.length,m=d.cellLength(g[0]),n=j+l,o=k+m,p=j;p<n;p++)for(var q=k;q<o;q++){f(c,p,q,i)&&e.unmerge(c,d.getCellElement(c[p],q),i,h.cell);var r=d.getCellElement(g[p-j],q-k),s=h.replace(r);d.mutateCell(c[p],q,b.elementnew(s,!0))}return c},h=function(a,b,d,e,f){var h=c.measure(a,b,d);return h.map(function(h){var i=c.tailor(b,h,e);return g(a,i,d,e,f)})},i=function(a,b,d,f,g){e.splitRows(b,a,g,f.cell);var h=c.measureWidth(d,b),i=c.tailor(d,h,f),j=c.measureWidth(b,i),k=c.tailor(b,j,f);return k.slice(0,a).concat(i).concat(k.slice(a,k.length))};return{merge:h,insert:i}}),g("3j",["1","38","3e"],function(a,b,c){var d=function(a,d,e,f,g){var h=a.slice(0,d),i=a.slice(d),j=c.mapCells(a[e],function(e,h){var i=d>0&&d<a.length&&f(c.getCellElement(a[d-1],h),c.getCellElement(a[d],h)),j=i?c.getCell(a[d],h):b.elementnew(g(e.element(),f),!0);return j});return h.concat([j]).concat(i)},e=function(d,e,f,g,h){return a.map(d,function(a){var d=e>0&&e<c.cellLength(a)&&g(c.getCellElement(a,e-1),c.getCellElement(a,e)),i=d?c.getCell(a,e):b.elementnew(h(c.getCellElement(a,f),g),!0);return c.addCell(a,e,i)})},f=function(d,e,f,g,h){var i=f+1;return a.map(d,function(a,d){var j=d===e,k=j?b.elementnew(h(c.getCellElement(a,f),g),!0):c.getCell(a,f);return c.addCell(a,i,k)})},g=function(a,d,e,f,g){var h=d+1,i=a.slice(0,h),j=a.slice(h),k=c.mapCells(a[d],function(a,c){var d=c===e;return d?b.elementnew(g(a.element(),f),!0):a});return i.concat([k]).concat(j)},h=function(c,d,e){var f=a.map(c,function(a){var c=a.cells().slice(0,d).concat(a.cells().slice(e+1));return b.rowcells(c,a.section())});return a.filter(f,function(a){return a.cells().length>0})},i=function(a,b,c){return a.slice(0,b).concat(a.slice(c+1))};return{insertRowAt:d,insertColumnAt:e,splitCellIntoColumns:f,splitCellIntoRows:g,deleteRowsAt:i,deleteColumnsAt:h}}),g("3k",["1","38","3e"],function(a,b,c){var d=function(d,e,f,g){var h=function(b){return a.exists(e,function(a){return f(b.element(),a.element())})};return a.map(d,function(a){return c.mapCells(a,function(a){return h(a)?b.elementnew(g(a.element(),f),!0):a})})},e=function(a,b,d,e){return void 0!==c.getCellElement(a[b],d)&&b>0&&e(c.getCellElement(a[b-1],d),c.getCellElement(a[b],d))},f=function(a,b,d){return b>0&&d(c.getCellElement(a,b-1),c.getCellElement(a,b))},g=function(b,g,h,i){var j=a.bind(b,function(a,d){var i=e(b,d,g,h)||f(a,g,h);return i?[]:[c.getCell(a,g)]});return d(b,j,h,i)},h=function(b,c,g,h){var i=b[c],j=a.bind(i.cells(),function(a,d){var h=e(b,c,d,g)||f(i,d,g);return h?[]:[a]});return d(b,j,g,h)};return{replaceColumn:g,replaceRow:h}}),g("1k",["1","n","2","24","3c","38","3d","1a","2f","3e","3f","3g","3h","2g","3i","3j","3k","z","1p"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){var t=function(a){var b=h.cells(a);0===b.length&&s.remove(a)},u=d.immutable("grid","cursor"),v=function(a,b,c){return w(a,b,c).orThunk(function(){return w(a,0,0)})},w=function(a,b,d){return c.from(a[b]).bind(function(a){return c.from(a.cells()[d]).bind(function(a){return c.from(a.element())})})},x=function(a,b,c){return u(a,w(a,b,c))},y=function(b){return a.foldl(b,function(b,c){return a.exists(b,function(a){return a.row()===c.row()})?b:b.concat([c])},[]).sort(function(a,b){return a.row()-b.row()})},z=function(b){return a.foldl(b,function(b,c){return a.exists(b,function(a){return a.column()===c.column()})?b:b.concat([c])},[]).sort(function(a,b){return a.column()-b.column()})},A=function(a,b,c,d){var e=b.row(),f=b.row(),g=p.insertRowAt(a,f,e,c,d.getOrInit);return x(g,f,b.column())},B=function(b,c,d,e){var f=c[0].row(),g=c[0].row(),h=y(c),i=a.foldl(h,function(a,b){return p.insertRowAt(a,g,f,d,e.getOrInit)},b);return x(i,g,c[0].column())},C=function(a,b,c,d){var e=b.row(),f=b.row()+b.rowspan(),g=p.insertRowAt(a,f,e,c,d.getOrInit);return x(g,f,b.column())},D=function(b,c,d,e){var f=y(c),g=f[f.length-1].row(),h=f[f.length-1].row()+f[f.length-1].rowspan(),i=a.foldl(f,function(a,b){return p.insertRowAt(a,h,g,d,e.getOrInit)},b);return x(i,h,c[0].column())},E=function(a,b,c,d){var e=b.column(),f=b.column(),g=p.insertColumnAt(a,f,e,c,d.getOrInit);return x(g,b.row(),f)},F=function(b,c,d,e){var f=z(c),g=f[0].column(),h=f[0].column(),i=a.foldl(f,function(a,b){return p.insertColumnAt(a,h,g,d,e.getOrInit)},b);return x(i,c[0].row(),h)},G=function(a,b,c,d){var e=b.column(),f=b.column()+b.colspan(),g=p.insertColumnAt(a,f,e,c,d.getOrInit);return x(g,b.row(),f)},H=function(b,c,d,e){var f=c[c.length-1].column(),g=c[c.length-1].column()+c[c.length-1].colspan(),h=z(c),i=a.foldl(h,function(a,b){return p.insertColumnAt(a,g,f,d,e.getOrInit)},b);return x(i,c[0].row(),g)},I=function(a,b,c,d){var e=q.replaceRow(a,b.row(),c,d.replaceOrInit);return x(e,b.row(),b.column())},J=function(a,b,c,d){var e=q.replaceColumn(a,b.column(),c,d.replaceOrInit);return x(e,b.row(),b.column())},K=function(a,b,c,d){var e=q.replaceRow(a,b.row(),c,d.replaceOrInit);return x(e,b.row(),b.column())},L=function(a,b,c,d){var e=q.replaceColumn(a,b.column(),c,d.replaceOrInit);return x(e,b.row(),b.column())},M=function(a,b,c,d){var e=p.splitCellIntoColumns(a,b.row(),b.column(),c,d.getOrInit);return x(e,b.row(),b.column())},N=function(a,b,c,d){var e=p.splitCellIntoRows(a,b.row(),b.column(),c,d.getOrInit);return x(e,b.row(),b.column())},O=function(a,b,c,d){var e=z(b),f=p.deleteColumnsAt(a,e[0].column(),e[e.length-1].column()),g=v(f,b[0].row(),b[0].column());return u(f,g)},P=function(a,b,c,d){var e=y(b),f=p.deleteRowsAt(a,e[0].row(),e[e.length-1].row()),g=v(f,b[0].row(),b[0].column());return u(f,g)},Q=function(a,d,e,f){var h=d.cells();g.merge(h);var i=o.merge(a,d.bounds(),e,b.constant(h[0]));return u(i,c.from(h[0]))},R=function(b,d,e,f){var g=a.foldr(d,function(a,b){return o.unmerge(a,b,e,f.combine(b))},b);return u(g,c.from(d[0]))},S=function(a,b,d,e){var g=function(a,b){var c=i.fromTable(a),d=n.generate(c);return m.toGrid(d,b,!0)},h=g(b.clipboard(),b.generators()),j=f.address(b.row(),b.column()),k=l.merge(j,a,h,b.generators(),d);return k.fold(function(){return u(a,c.some(b.element()))},function(a){var c=v(a,b.row(),b.column());return u(a,c)})},T=function(a,b,c){var d=i.fromPastedRows(a,c),e=n.generate(d);return m.toGrid(e,b,!0)},U=function(a,b,c,d){var e=a[b.cells[0].row()],f=b.cells[0].row(),g=T(b.clipboard(),b.generators(),e),h=l.insert(f,a,g,b.generators(),c),i=v(h,b.cells[0].row(),b.cells[0].column());return u(h,i)},V=function(a,b,c,d){
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L4

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

CWE-79
File Location: media/vendor/tinymce/plugins/table/plugin.min.js:4
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 e=a[b.cells[0].row()],f=b.cells[b.cells.length-1].row()+b.cells[b.cells.length-1].rowspan(),g=T(b.clipboard(),b.generators(),e),h=l.insert(f,a,g,b.generators(),c),i=v(h,b.cells[0].row(),b.cells[0].column());return u(h,i)},W=r.adjustWidthTo;return{insertRowBefore:k.run(A,k.onCell,b.noop,b.noop,e.modification),insertRowsBefore:k.run(B,k.onCells,b.noop,b.noop,e.modification),insertRowAfter:k.run(C,k.onCell,b.noop,b.noop,e.modification),insertRowsAfter:k.run(D,k.onCells,b.noop,b.noop,e.modification),insertColumnBefore:k.run(E,k.onCell,W,b.noop,e.modification),insertColumnsBefore:k.run(F,k.onCells,W,b.noop,e.modification),insertColumnAfter:k.run(G,k.onCell,W,b.noop,e.modification),insertColumnsAfter:k.run(H,k.onCells,W,b.noop,e.modification),splitCellIntoColumns:k.run(M,k.onCell,W,b.noop,e.modification),splitCellIntoRows:k.run(N,k.onCell,b.noop,b.noop,e.modification),eraseColumns:k.run(O,k.onCells,W,t,e.modification),eraseRows:k.run(P,k.onCells,b.noop,t,e.modification),makeColumnHeader:k.run(J,k.onCell,b.noop,b.noop,e.transform("row","th")),unmakeColumnHeader:k.run(L,k.onCell,b.noop,b.noop,e.transform(null,"td")),makeRowHeader:k.run(I,k.onCell,b.noop,b.noop,e.transform("col","th")),unmakeRowHeader:k.run(K,k.onCell,b.noop,b.noop,e.transform(null,"td")),mergeCells:k.run(Q,k.onMergable,b.noop,b.noop,e.merging),unmergeCells:k.run(R,k.onUnmergable,W,b.noop,e.merging),pasteCells:k.run(S,k.onPaste,W,b.noop,e.modification),pasteRowsBefore:k.run(U,k.onPasteRows,b.noop,b.noop,e.modification),pasteRowsAfter:k.run(V,k.onPasteRows,b.noop,b.noop,e.modification)}}),g("1l",["1w","6"],function(a,b){var c=function(a){return b.fromDom(a.getBody())},d=function(b){return function(d){return a.eq(d,c(b))}},e=function(a){return a?a.replace(/px$/,""):""},f=function(a){return/^[0-9]+$/.test(a)&&(a+="px"),a};return{getBody:c,getIsRoot:d,addSizeSuffix:f,removePxSuffix:e}}),g("1m",["1u"],function(a){var b=function(a,b){return function(d){return"rtl"===c(d)?b:a}},c=function(b){return"rtl"===a.get(b,"direction")?"rtl":"ltr"};return{onDirection:b,getDirection:c}}),g("g",["n","1m"],function(a,b){var c={isRtl:a.constant(!1)},d={isRtl:a.constant(!0)},e=function(a){var e=b.getDirection(a);return"rtl"===e?d:c};return{directionAt:e}}),g("d",["1","n","2","1i","4","19","1j","1k","6","14","7","8","1l","g"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){return function(o,p){var q,r=function(a){return"table"===j.name(m.getBody(a))},s=function(a){var b=g.getGridSize(a);return r(o)===!1||b.rows()>1},t=function(a){var b=g.getGridSize(a);return r(o)===!1||b.columns()>1},u=function(a){return o.fire("newrow",{node:a.dom()}),a.dom()},v=function(a){return o.fire("newcell",{node:a.dom()}),a.dom()};o.settings.table_clone_elements!==!1&&("string"==typeof o.settings.table_clone_elements?q=o.settings.table_clone_elements.split(/[ ,]/):Array.isArray(o.settings.table_clone_elements)&&(q=o.settings.table_clone_elements));var w=c.from(q),x=function(b,d,g,h){return function(j,m){var p=l.descendants(j,"td[data-mce-style],th[data-mce-style]");a.each(p,function(a){k.remove(a,"data-mce-style")});var q=h(),r=i.fromDom(o.getDoc()),s=e(n.directionAt),t=f.cellOperations(g,r,w);return d(j)?b(q,j,m,t,s).bind(function(b){return a.each(b.newRows(),function(a){u(a)}),a.each(b.newCells(),function(a){v(a)}),b.cursor().map(function(a){var b=o.dom.createRng();return b.setStart(a.dom(),0),b.setEnd(a.dom(),0),b})}):c.none()}},y=x(h.eraseRows,s,b.noop,p),z=x(h.eraseColumns,t,b.noop,p),A=x(h.insertRowsBefore,b.always,b.noop,p),B=x(h.insertRowsAfter,b.always,b.noop,p),C=x(h.insertColumnsBefore,b.always,d.halve,p),D=x(h.insertColumnsAfter,b.always,d.halve,p),E=x(h.mergeCells,b.always,b.noop,p),F=x(h.unmergeCells,b.always,b.noop,p),G=x(h.pasteRowsBefore,b.always,b.noop,p),H=x(h.pasteRowsAfter,b.always,b.noop,p),I=x(h.pasteCells,b.always,b.noop,p);return{deleteRow:y,deleteColumn:z,insertRowsBefore:A,insertRowsAfter:B,insertColumnsBefore:C,insertColumnsAfter:D,mergeCells:E,unmergeCells:F,pasteRowsBefore:G,pasteRowsAfter:H,pasteCells:I}}}),g("1n",["2f","3f","3h","2g","3l"],function(a,b,c,d,e){var f=function(f,g,h){var i=a.fromTable(f),j=d.generate(i),k=b.onCells(j,g);return k.map(function(a){var d=c.toGrid(j,h,!1),f=d.slice(a[0].row(),a[a.length-1].row()+a[a.length-1].rowspan()),g=b.toDetailList(f,h);return e.copy(g)})};return{copyRows:f}}),g("3m",["17"],function(a){return a("tinymce.Env")}),g("3n",["a"],function(a){var b=function(a,b,c){var d,e=a.select("td,th",b),f=function(b,d){for(var e=0;e<d.length;e++){var f=a.getStyle(d[e],c);if("undefined"==typeof b&&(b=f),b!=f)return""}return b};return d=f(d,e)},c=function(a,b,c){c&&a.formatter.apply("align"+c,{},b)},d=function(a,b,c){c&&a.formatter.apply("valign"+c,{},b)},e=function(b,c){a.each("left center right".split(" "),function(a){b.formatter.remove("align"+a,{},c)})},f=function(b,c){a.each("top middle bottom".split(" "),function(a){b.formatter.remove("valign"+a,{},c)})};return{applyAlign:c,applyVAlign:d,unApplyAlign:e,unApplyVAlign:f,getTDTHOverallStyle:b}}),g("3o",["a"],function(a){var b=function(b,c,d){var e=function(b,d){return d=d||[],a.each(b,function(a){var b={text:a.text||a.title};a.menu?b.menu=e(a.menu):(b.value=a.value,c&&c(b)),d.push(b)}),d};return e(b,d||[])},c=function(a,b,c){var d=b.toJSON(),e=a.parseStyle(d.style);c?(b.find("#borderStyle").value(e["border-style"]||"")[0].fire("select"),b.find("#borderColor").value(e["border-color"]||"")[0].fire("change"),b.find("#backgroundColor").value(e["background-color"]||"")[0].fire("change")):(e["border-style"]=d.borderStyle,e["border-color"]=d.borderColor,e["background-color"]=d.backgroundColor),b.find("#style").value(a.serializeStyle(a.parseStyle(a.serializeStyle(e))))},d=function(a,b){var c=a.parseStyle(a.getAttrib(b,"style")),d={};return c["border-style"]&&(d.borderStyle=c["border-style"]),c["border-color"]&&(d.borderColor=c["border-color"]),c["background-color"]&&(d.backgroundColor=c["background-color"]),d.style=a.serializeStyle(c),d},e=function(a){var b=function(){c(a,this.parents().reverse()[0],"style"==this.name())},d=function(){var b=a.settings.color_picker_callback;if(b)return function(){var c=this;b.call(a,function(a){c.value(a).fire("change")},c.value())}};return{title:"Advanced",type:"form",defaults:{onchange:b},items:[{label:"Style",name:"style",type:"textbox"},{type:"form",padding:0,formItemDefaults:{layout:"grid",alignH:["start","right"]},defaults:{size:7},items:[{label:"Border style",type:"listbox",name:"borderStyle",width:90,onselect:b,values:[{text:"Select...",value:""},{text:"Solid",value:"solid"},{text:"Dotted",value:"dotted"},{text:"Dashed",value:"dashed"},{text:"Double",value:"double"},{text:"Groove",value:"groove"},{text:"Ridge",value:"ridge"},{text:"Inset",value:"inset"},{text:"Outset",value:"outset"},{text:"None",value:"none"},{text:"Hidden",value:"hidden"}]},{label:"Border color",type:"colorbox",name:"borderColor",onaction:d()},{label:"Background color",type:"colorbox",name:"backgroundColor",onaction:d()}]}]}};return{createStyleForm:e,buildListItems:b,updateStyleField:c,extractAdvancedStyles:d}}),g("1q",["a","3m","1l","3n","c","3o"],function(a,b,c,d,e,f){function g(a,b,c,d){if("TD"===b.tagName||"TH"===b.tagName)a.setStyle(b,c,d);else if(b.children)for(var e=0;e<b.children.length;e++)g(a,b.children[e],c,d)}var h=function(b,e){var g=b.dom,h={width:c.removePxSuffix(g.getStyle(e,"width")||g.getAttrib(e,"width")),height:c.removePxSuffix(g.getStyle(e,"height")||g.getAttrib(e,"height")),cellspacing:c.removePxSuffix(g.getStyle(e,"border-spacing")||g.getAttrib(e,"cellspacing")),cellpadding:g.getAttrib(e,"data-mce-cell-padding")||g.getAttrib(e,"cellpadding")||d.getTDTHOverallStyle(b.dom,e,"padding"),border:g.getAttrib(e,"data-mce-border")||g.getAttrib(e,"border")||d.getTDTHOverallStyle(b.dom,e,"border"),borderColor:g.getAttrib(e,"data-mce-border-color"),caption:!!g.select("caption",e)[0],"class":g.getAttrib(e,"class")};return a.each("left center right".split(" "),function(a){b.formatter.matchNode(e,"align"+a)&&(h.align=a)}),b.settings.table_advtab!==!1&&a.extend(h,f.extractAdvancedStyles(g,e)),h},i=function(b,d,e){var f=b.dom,h={},i={};if(h["class"]=e["class"],i.height=c.addSizeSuffix(e.height),f.getAttrib(d,"width")&&!b.settings.table_style_by_css?h.width=c.removePxSuffix(e.width):i.width=c.addSizeSuffix(e.width),b.settings.table_style_by_css?(i["border-width"]=c.addSizeSuffix(e.border),i["border-spacing"]=c.addSizeSuffix(e.cellspacing),a.extend(h,{"data-mce-border-color":e.borderColor,"data-mce-cell-padding":e.cellpadding,"data-mce-border":e.border})):a.extend(h,{border:e.border,cellpadding:e.cellpadding,cellspacing:e.cellspacing}),b.settings.table_style_by_css&&d.children)for(var j=0;j<d.children.length;j++)g(f,d.children[j],{"border-width":c.addSizeSuffix(e.border),"border-color":e.borderColor,padding:c.addSizeSuffix(e.cellpadding)});e.style?a.extend(i,f.parseStyle(e.style)):i=a.extend({},f.parseStyle(f.getAttrib(d,"style")),i),h.style=f.serializeStyle(i),f.setAttribs(d,h)},j=function(a,c,g){var h,j,k=a.dom;f.updateStyleField(k,c),j=c.toJSON(),j["class"]===!1&&delete j["class"],a.undoManager.transact(function(){g||(g=e.insert(a,j.cols||1,j.rows||1)),i(a,g,j),h=k.select("caption",g)[0],h&&!j.caption&&k.remove(h),!h&&j.caption&&(h=k.create("caption"),h.innerHTML=b.ie?"\xa0":'<br data-mce-bogus="1"/>',g.insertBefore(h,g.firstChild)),d.unApplyAlign(a,g),j.align&&d.applyAlign(a,g,j.align),a.focus(),a.addVisual()})},k=function(a,b){var c,d,e,g,i,k=a.dom,l={};b===!0?(c=k.getParent(a.selection.getStart(),"table"),c&&(l=h(a,c))):(d={label:"Cols",name:"cols"},e={label:"Rows",name:"rows"}),a.settings.table_class_list&&(l["class"]&&(l["class"]=l["class"].replace(/\s*mce\-item\-table\s*/g,"")),g={name:"class",type:"listbox",label:"Class",values:f.buildListItems(a.settings.table_class_list,function(b){b.value&&(b.textStyle=function(){return a.formatter.getCssText({block:"table",classes:[b.value]})})})}),i={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",labelGapCalc:!1,padding:0,layout:"grid",columns:2,defaults:{type:"textbox",maxWidth:50},items:a.settings.table_appearance_options!==!1?[d,e,{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell spacing",name:"cellspacing"},{label:"Cell padding",name:"cellpadding"},{label:"Border",name:"border"},{label:"Caption",name:"caption",type:"checkbox"}]:[d,e,{label:"Width",name:"width"},{label:"Height",name:"height"}]},{label:"Alignment",name:"align",type:"listbox",text:"None",values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},g]},a.settings.table_advtab!==!1?a.windowManager.open({title:"Table properties",data:l,bodyType:"tabpanel",body:[{title:"General",type:"form",items:i},f.createStyleForm(k)],onsubmit:function(){j(a,this,c)}}):a.windowManager.open({title:"Table properties",data:l,body:i,onsubmit:function(){j(a,this,c)}})};return{open:k}}),g("1r",["a","1l","3n","3o"],function(a,b,c,d){function e(e,f,h){function i(a,b,c){c&&l.setAttrib(a,b,c)}function j(a,b,c){c&&l.setStyle(a,b,c)}var k,l=e.dom;d.updateStyleField(l,f),k=f.toJSON(),e.undoManager.transact(function(){a.each(h,function(a){i(a,"scope",k.scope),i(a,"style",k.style),i(a,"class",k["class"]),j(a,"height",b.addSizeSuffix(k.height)),k.type!==a.parentNode.nodeName.toLowerCase()&&g(e.dom,a,k.type),1===h.length&&c.unApplyAlign(e,a),k.align&&c.applyAlign(e,a,k.align)}),e.focus()})}var f=function(c,e){var f=c.dom,g={height:b.removePxSuffix(f.getStyle(e,"height")||f.getAttrib(e,"height")),scope:f.getAttrib(e,"scope"),"class":f.getAttrib(e,"class")};return g.type=e.parentNode.nodeName.toLowerCase(),a.each("left center right".split(" "),function(a){c.formatter.matchNode(e,"align"+a)&&(g.align=a)}),c.settings.table_row_advtab!==!1&&a.extend(g,d.extractAdvancedStyles(f,e)),g},g=function(a,b,c){var d=a.getParent(b,"table"),e=b.parentNode,f=a.select(c,d)[0];f||(f=a.create(c),d.firstChild?"CAPTION"===d.firstChild.nodeName?a.insertAfter(f,d.firstChild):d.insertBefore(f,d.firstChild):d.appendChild(f)),f.appendChild(b),e.hasChildNodes()||a.remove(e)},h=function(b){var c,g,h,i,j,k,l=b.dom,m=[];c=b.dom.getParent(b.selection.getStart(),"table"),g=b.dom.getParent(b.selection.getStart(),"td,th"),a.each(c.rows,function(b){a.each(b.cells,function(a){if(l.getAttrib(a,"data-mce-selected")||a==g)return m.push(b),!1})}),h=m[0],h&&(j=m.length>1?{height:"",scope:"","class":"",align:"",type:h.parentNode.nodeName.toLowerCase()}:f(b,h),b.settings.table_row_class_list&&(i={name:"class",type:"listbox",label:"Class",values:d.buildListItems(b.settings.table_row_class_list,function(a){a.value&&(a.textStyle=function(){return b.formatter.getCssText({block:"tr",classes:[a.value]})})})}),k={type:"form",columns:2,padding:0,defaults:{type:"textbox"},items:[{type:"listbox",name:"type",label:"Row type",text:"Header",maxWidth:null,values:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"listbox",name:"align",label:"Alignment",text:"None",maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height"},i]},b.settings.table_row_advtab!==!1?b.windowManager.open({title:"Row properties",data:j,bodyType:"tabpanel",body:[{title:"General",type:"form",items:k},d.createStyleForm(l)],onsubmit:function(){e(b,this,m)}}):b.windowManager.open({title:"Row properties",data:j,body:k,onsubmit:function(){e(b,this,m)}}))};return{open:h}}),g("1s",["a","1l","3n","3o"],function(a,b,c,d){var e=function(c,e){var f=c.dom,g={width:b.removePxSuffix(f.getStyle(e,"width")||f.getAttrib(e,"width")),height:b.removePxSuffix(f.getStyle(e,"height")||f.getAttrib(e,"height")),scope:f.getAttrib(e,"scope"),"class":f.getAttrib(e,"class")};return g.type=e.nodeName.toLowerCase(),a.each("left center right".split(" "),function(a){c.formatter.matchNode(e,"align"+a)&&(g.align=a)}),a.each("top middle bottom".split(" "),function(a){c.formatter.matchNode(e,"valign"+a)&&(g.valign=a)}),c.settings.table_cell_advtab!==!1&&a.extend(g,d.extractAdvancedStyles(f,e)),g},f=function(e,f,g){function h(a,b,c){c&&k.setAttrib(a,b,c)}function i(a,b,c){c&&k.setStyle(a,b,c)}var j,k=e.dom;d.updateStyleField(k,f),j=f.toJSON(),e.undoManager.transact(function(){a.each(g,function(a){h(a,"scope",j.scope),h(a,"style",j.style),h(a,"class",j["class"]),i(a,"width",b.addSizeSuffix(j.width)),i(a,"height",b.addSizeSuffix(j.height)),j.type&&a.nodeName.toLowerCase()!==j.type&&(a=k.rename(a,j.type)),1===g.length&&(c.unApplyAlign(e,a),c.unApplyVAlign(e,a)),j.align&&c.applyAlign(e,a,j.align),j.valign&&c.applyVAlign(e,a,j.align)}),e.focus()})},g=function(a){var b,c,g,h=a.dom,i=[];if(i=a.dom.select("td[data-mce-selected],th[data-mce-selected]"),b=a.dom.getParent(a.selection.getStart(),"td,th"),!i.length&&b&&i.push(b),b=b||i[0]){c=i.length>1?{width:"",height:"",scope:"","class":"",align:"",style:"",type:b.nodeName.toLowerCase()}:e(a,b),a.settings.table_cell_class_list&&(g={name:"class",type:"listbox",label:"Class",values:d.buildListItems(a.settings.table_cell_class_list,function(b){b.value&&(b.textStyle=function(){return a.formatter.getCssText({block:"td",classes:[b.value]})})})});var j={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",layout:"grid",columns:2,labelGapCalc:!1,padding:0,defaults:{type:"textbox",maxWidth:50},items:[{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell type",name:"type",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{label:"Scope",name:"scope",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{label:"H Align",name:"align",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"V Align",name:"valign",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}]},g]};a.settings.table_cell_advtab!==!1?a.windowManager.open({title:"Cell properties",bodyType:"tabpanel",data:c,body:[{title:"General",type:"form",items:j},d.createStyleForm(h)],onsubmit:function(){f(a,this,i)}}):a.windowManager.open({title:"Cell properties",data:c,body:j,onsubmit:function(){f(a,this,i)}})}};return{open:g}}),g("e",["1","n","2","1n","19","1a","1o","1p","1b","6","a","1l","1d","1q","1r","1s"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var q=k.each,r=c.none(),s=function(){return r.fold(function(){},function(b){return a.map(b,function(a){return a.dom()})})},t=function(b){var d=a.map(b,j.fromDom);r=c.from(d)},u=function(k,s,t,u){var v=l.getIsRoot(k),w=function(){var a=j.fromDom(k.dom.getParent(k.selection.getStart(),"th,td")),c=f.table(a,v);c.filter(b.not(v)).each(function(a){var b=j.fromText("");g.after(a,b),h.remove(a);var c=k.dom.createRng();c.setStart(b.dom(),0),c.setEnd(b.dom(),0),k.selection.setRng(c)})},x=function(){return j.fromDom(k.dom.getParent(k.selection.getStart(),"th,td"))},y=function(a){return f.table(a,v)},z=function(a){var b=x(),c=y(b);c.each(function(c){var d=m.forMenu(u,c,b);a(c,d).each(function(a){k.selection.setRng(a),k.focus(),t.clear(c)})})},A=function(a){var f=x(),g=y(f);return g.bind(function(a){var g=j.fromDom(k.getDoc()),h=m.forMenu(u,a,f),i=e.cellOperations(b.noop,g,c.none());return d.copyRows(a,h,i)})},B=function(b){r.each(function(c){var d=a.map(c,function(a){return i.deep(a)}),f=x(),g=y(f);g.bind(function(a){var c=j.fromDom(k.getDoc()),g=e.paste(c),h=m.pasteRows(u,a,f,d,g);b(a,h).each(function(b){k.selection.setRng(b),k.focus(),t.clear(a)})})})};q({mceTableSplitCells:function(){z(s.unmergeCells)},mceTableMergeCells:function(){z(s.mergeCells)},mceTableInsertRowBefore:function(){z(s.insertRowsBefore)},mceTableInsertRowAfter:function(){z(s.insertRowsAfter)},mceTableInsertColBefore:function(){z(s.insertColumnsBefore)},mceTableInsertColAfter:function(){z(s.insertColumnsAfter)},mceTableDeleteCol:function(){z(s.deleteColumn)},mceTableDeleteRow:function(){z(s.deleteRow)},mceTableCutRow:function(a){r=A(),z(s.deleteRow)},mceTableCopyRow:function(a){r=A()},mceTablePasteRowBefore:function(a){B(s.pasteRowsBefore)},mceTablePasteRowAfter:function(a){B(s.pasteRowsAfter)},mceTableDelete:w},function(a,b){k.addCommand(b,a)}),q({mceInsertTable:b.curry(n.open,k),mceTableProps:b.curry(n.open,k,!0),mceTableRowProps:b.curry(o.open,k),mceTableCellProps:b.curry(p.open,k)},function(a,b){k.addCommand(b,function(b,c){a(c)})})};return{registerCommands:u,getClipboardRows:s,setClipboardRows:t}}),g("f",["3","1o","1p","1t","6","1u","1l"],function(a,b,c,d,e,f,g){var h=function(){var a=e.fromTag("div");return f.setAll(a,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),b.append(d.body(),a),a},i=function(b,c){return b.inline?a.body(g.getBody(b),h()):a.only(e.fromDom(b.getDoc()))},j=function(a,b){a.inline&&c.remove(b.parent())};return{get:i,remove:j}}),g("3p",[],function(){var a=function(a){return e(function(b,c,d,e){return b(a)})},b=function(a){return e(function(b,c,d,e){return c(a)})},c=function(a,b){return e(function(c,d,e,f){return e(a,b)})},d=function(a){return e(function(b,c,d,e){return e(a)})},e=function(a){return{fold:a}};return{none:a,first:b,middle:c,last:d}}),g("1v",["1","n","3p","1a","1w"],function(a,b,c,d,e){var f=function(c,f){return d.table(c,f).bind(function(f){var g=d.cells(f),h=a.findIndex(g,function(a){return e.eq(c,a)});return h.map(function(a){return{index:b.constant(a),all:b.constant(g)}})})},g=function(a,b){var d=f(a,b);return d.fold(function(){return c.none(a)},function(b){return b.index()+1<b.all().length?c.middle(a,b.all()[b.index()+1]):c.last(a)})},h=function(a,b){var d=f(a,b);return d.fold(function(){return c.none()},function(b){return b.index()-1>=0?c.middle(a,b.all()[b.index()-1]):c.first(a)})};return{next:g,prev:h}}),g("3q",["3a","n"],function(a,b){var c=a.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),d=function(a,b,c,d){return a.fold(b,c,d)},e=function(a){return a.fold(b.identity,b.identity,b.identity)};return{before:c.before,on:c.on,after:c.after,cata:d,getStart:e}}),g("1y",["3a","24","6","26","3q"],function(a,b,c,d,e){var f=a.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),g=b.immutable("start","soffset","finish","foffset"),h=function(a){return f.exact(a.start(),a.soffset(),a.finish(),a.foffset())},i=function(a){return a.match({domRange:function(a){return c.fromDom(a.startContainer)},relative:function(a,b){return e.getStart(a)},exact:function(a,b,c,d){return a}})},j=function(a){var b=i(a);return d.defaultView(b)};return{domRange:f.domRange,relative:f.relative,exact:f.exact,exactFromRange:h,range:g,getWin:j}}),g("3r",["1w","6","26"],function(a,b,c){var d=function(a,b,d,e){var f=c.owner(a),g=f.dom().createRange();return g.setStart(a.dom(),b),g.setEnd(d.dom(),e),g},e=function(a,c,e,f){var g=d(a,c,e,f);return b.fromDom(g.commonAncestorContainer)},f=function(b,c,e,f){var g=d(b,c,e,f),h=a.eq(b,e)&&c===f;return g.collapsed&&!h};return{after:f,commonAncestorContainer:e}}),g("3s",["1","6","t"],function(a,b,c){var d=function(d,e){var f=e||c,g=f.createDocumentFragment();return a.each(d,function(a){g.appendChild(a.dom())}),b.fromDom(g)};return{fromElements:d}}),g("3t",["n","2","1w","6"],function(a,b,c,d){var e=function(a,b){var c=a.document.createRange();return f(c,b),c},f=function(a,b){a.selectNodeContents(b.dom())},g=function(a,b){return b.compareBoundaryPoints(a.END_TO_START,a)<1&&b.compareBoundaryPoints(a.START_TO_END,a)>-1},h=function(a){return a.document.createRange()},i=function(a,b){b.fold(function(b){a.setStartBefore(b.dom())},function(b,c){a.setStart(b.dom(),c)},function(b){a.setStartAfter(b.dom())})},j=function(a,b){b.fold(function(b){a.setEndBefore(b.dom())},function(b,c){a.setEnd(b.dom(),c)},function(b){a.setEndAfter(b.dom())})},k=function(a,b){o(a),a.insertNode(b.dom())},l=function(a,b,d,e){return c.eq(a,d)&&b===e},m=function(a,b,c){var d=a.document.createRange();return i(d,b),j(d,c),d},n=function(a,b,c,d,e){var f=a.document.createRange();return f.setStart(b.dom(),c),f.setEnd(d.dom(),e),f},o=function(a){a.deleteContents()},p=function(a){var b=a.cloneContents();return d.fromDom(b)},q=function(b){return{left:a.constant(b.left),top:a.constant(b.top),right:a.constant(b.right),bottom:a.constant(b.bottom),width:a.constant(b.width),height:a.constant(b.height)}},r=function(a){var c=a.getClientRects(),d=c.length>0?c[0]:a.getBoundingClientRect();return d.width>0||d.height>0?b.some(d).map(q):b.none()},s=function(a){var c=a.getBoundingClientRect();return c.width>0||c.height>0?b.some(c).map(q):b.none()},t=function(a){return a.toString()};return{create:h,replaceWith:k,selectNodeContents:e,selectNodeContentsUsing:f,isCollapsed:l,relativeToNative:m,exactToNative:n,deleteContents:o,cloneFragment:p,getFirstRect:r,getBounds:s,isWithin:g,toString:t}}),g("27",["3a","n","2","2v","6","3t"],function(a,b,c,d,e,f){var g=a.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),h=function(a,b,c){return b(e.fromDom(c.startContainer),c.startOffset,e.fromDom(c.endContainer),c.endOffset)},i=function(a,e){return e.match({domRange:function(a){return{ltr:b.constant(a),rtl:c.none}},relative:function(b,e){return{ltr:d.cached(function(){return f.relativeToNative(a,b,e)}),rtl:d.cached(function(){return c.some(f.relativeToNative(a,e,b))})}},exact:function(b,e,g,h){return{ltr:d.cached(function(){return f.exactToNative(a,b,e,g,h)}),rtl:d.cached(function(){return c.some(f.exactToNative(a,g,h,b,e))})}}})},j=function(a,b){var c=b.ltr();if(c.collapsed){var d=b.rtl().filter(function(a){return a.collapsed===!1});return d.map(function(a){return g.rtl(e.fromDom(a.endContainer),a.endOffset,e.fromDom(a.startContainer),a.startOffset)}).getOrThunk(function(){return h(a,g.ltr,c)})}return h(a,g.ltr,c)},k=function(a,b){var c=i(a,b);return j(a,c)},l=function(a,b){var c=k(a,b);return c.match({ltr:function(b,c,d,e){var f=a.document.createRange();return f.setStart(b.dom(),c),f.setEnd(d.dom(),e),f},rtl:function(b,c,d,e){var f=a.document.createRange();return f.setStart(d.dom(),e),f.setEnd(b.dom(),c),f}})};return{ltr:g.ltr,rtl:g.rtl,diagnose:k,asLtrRange:l}}),g("5o",["2m"],function(a){var b=function(b,c,d,e,f){if(0===f)return 0;if(c===e)return f-1;for(var g=e,h=1;h<f;h++){var i=b(h),j=a.abs(c-i.left);if(d>i.bottom);else{if(d<i.top||j>g)return h-1;g=j}}return 0},c=function(a,b,c){return b>=a.left&&b<=a.right&&c>=a.top&&c<=a.bottom};return{inRect:c,searchForPoint:b}}),g("5p",["2","44","25","5o","2m"],function(a,b,c,d,e){var f=function(a,b,e,f,g){var h=function(c){var d=a.dom().createRange();return d.setStart(b.dom(),c),d.collapse(!0),d},i=function(a){var b=h(a);return b.getBoundingClientRect()},j=c.get(b).length,k=d.searchForPoint(i,e,f,g.right,j);return h(k)},g=function(c,e,g,h){var i=c.dom().createRange();i.selectNode(e.dom());var j=i.getClientRects(),k=b.findMap(j,function(b){return d.inRect(b,g,h)?a.some(b):a.none()});return k.map(function(a){return f(c,e,g,h,a)})};return{locate:g}}),g("4z",["2","44","14","26","5o","5p","2m"],function(a,b,c,d,e,f,g){var h=function(c,f,g,h){var j=c.dom().createRange(),k=d.children(f);return b.findMap(k,function(b){return j.selectNode(b.dom()),e.inRect(j.getBoundingClientRect(),g,h)?i(c,b,g,h):a.none()})},i=function(a,b,d,e){var g=c.isText(b)?f.locate:h;return g(a,b,d,e)},j=function(a,b,c,d){var e=a.dom().createRange();e.selectNode(b.dom());var f=e.getBoundingClientRect(),h=g.max(f.left,g.min(f.right,c)),j=g.max(f.top,g.min(f.bottom,d));return i(a,b,h,j)};return{locate:j}}),g("50",["2","26","1x"],function(a,b,c){var d=!0,e=!1,f=function(a,b){return b-a.left<a.right-b?d:e},g=function(a,b,c){var d=a.dom().createRange();return d.selectNode(b.dom()),d.collapse(c),d},h=function(a,b,e){var h=a.dom().createRange();h.selectNode(b.dom());var i=h.getBoundingClientRect(),j=f(i,e),k=j===d?c.first:c.last;return k(b).map(function(b){return g(a,b,j)})},i=function(b,c,d){var e=c.dom().getBoundingClientRect(),h=f(e,d);return a.some(g(b,c,h))},j=function(a,c,d){var e=0===b.children(c).length?i:h;return e(a,c,d)};return{search:j}}),g("3u",["2","6","26","1y","4z","50","t","2m"],function(a,b,c,d,e,f,g,h){var i=function(b,c,d){return a.from(b.dom().caretPositionFromPoint(c,d)).bind(function(c){if(null===c.offsetNode)return a.none();var d=b.dom().createRange();return d.setStart(c.offsetNode,c.offset),d.collapse(),a.some(d)})},j=function(b,c,d){return a.from(b.dom().caretRangeFromPoint(c,d))},k=function(a,b,c,d){var f=a.dom().createRange();f.selectNode(b.dom());var g=f.getBoundingClientRect(),i=h.max(g.left,h.min(g.right,c)),j=h.max(g.top,h.min(g.bottom,d));return e.locate(a,b,i,j)},l=function(d,e,g){return a.from(d.dom().elementFromPoint(e,g)).map(b.fromDom).bind(function(a){var b=function(){return f.search(d,a,e)};return 0===c.children(a).length?b():k(d,a,e,g).orThunk(b)})},m=g.caretPositionFromPoint?i:g.caretRangeFromPoint?j:l,n=function(a,c,e){var f=b.fromDom(a.document);return m(f,c,e).map(function(a){return d.range(b.fromDom(a.startContainer),a.startOffset,b.fromDom(a.endContainer),a.endOffset)})};return{fromPoint:n}}),g("3v",["1","6","14","8","16","3t","27"],function(a,b,c,d,e,f,g){var h=function(b,c,g,h){var i=f.create(b),j=e.is(c,h)?[c]:[],k=j.concat(d.descendants(c,h));return a.filter(k,function(a){return f.selectNodeContentsUsing(i,a),f.isWithin(g,i)})},i=function(a,d,e){var f=g.asLtrRange(a,d),i=b.fromDom(f.commonAncestorContainer);return c.isElement(i)?h(a,i,f,e):[]};return{find:i}}),g("3w",["1","6","14","1y","3q"],function(a,b,c,d,e){var f=function(b,d){var f=c.name(b);return"input"===f?e.after(b):a.contains(["br","img"],f)?0===d?e.before(b):e.after(b):e.on(b,d)},g=function(a,b){var c=a.fold(e.before,f,e.after),g=b.fold(e.before,f,e.after);return d.relative(c,g)},h=function(a,b,c,e){var g=f(a,b),h=f(c,e);return d.relative(g,h)},i=function(a){return a.match({domRange:function(a){var c=b.fromDom(a.startContainer),d=b.fromDom(a.endContainer);return h(c,a.startOffset,d,a.endOffset)},relative:g,exact:h})};return{beforeSpecial:f,preprocess:i,preprocessRelative:g,preprocessExact:h}}),g("1z",["2","3r","6","3s","26","1y","3t","27","3u","3v","3w"],function(a,b,c,d,e,f,g,h,i,j,k){var l=function(a,b){var c=a.getSelection();c.removeAllRanges(),c.addRange(b)},m=function(a,b,c,d,e){var f=g.exactToNative(a,b,c,d,e);l(a,f)},n=function(a,b,c){return j.find(a,b,c)},o=function(a,b){return h.diagnose(a,b).match({ltr:function(b,c,d,e){m(a,b,c,d,e)},rtl:function(b,c,d,e){var f=a.getSelection();f.extend?(f.collapse(b.dom(),c),f.extend(d.dom(),e)):m(a,d,e,b,c)}})},p=function(a,b,c,d,e){var f=k.preprocessExact(b,c,d,e);o(a,f)},q=function(a,b,c){var d=k.preprocessRelative(b,c);o(a,d)},r=function(a){var b=f.getWin(a).dom(),c=function(a,c,d,e){return g.exactToNative(b,a,c,d,e)},d=k.preprocess(a);return h.diagnose(b,d).match({ltr:c,rtl:c})},s=function(b){var d=a.from(b.getRangeAt(0));return d.map(function(a){return f.range(c.fromDom(a.startContainer),a.startOffset,c.fromDom(a.endContainer),a.endOffset)})},t=function(d){var e=c.fromDom(d.anchorNode),g=c.fromDom(d.focusNode);return b.after(e,d.anchorOffset,g,d.focusOffset)?a.some(f.range(c.fromDom(d.anchorNode),d.anchorOffset,c.fromDom(d.focusNode),d.focusOffset)):s(d)},u=function(a,b){var c=g.selectNodeContents(a,b);l(a,c)},v=function(a,b){var d=g.selectNodeContents(a,b);return f.range(c.fromDom(d.startContainer),d.startOffset,c.fromDom(d.endContainer),d.endOffset)},w=function(b){var c=b.getSelection();return c.rangeCount>0?t(c):a.none()},x=function(a){return w(a).map(function(a){return f.exact(a.start(),a.soffset(),a.finish(),a.foffset())})},y=function(a,b){var c=h.asLtrRange(a,b);return g.getFirstRect(c)},z=function(a,b){var c=h.asLtrRange(a,b);return g.getBounds(c)},A=function(a,b,c){return i.fromPoint(a,b,c)},B=function(a,b){var c=h.asLtrRange(a,b);return g.toString(c)},C=function(a){var b=a.getSelection();b.removeAllRanges()},D=function(a,b){var c=h.asLtrRange(a,b);return g.cloneFragment(c)},E=function(a,b,c){var e=h.asLtrRange(a,b),f=d.fromElements(c);g.replaceWith(e,f)},F=function(a,b){var c=h.asLtrRange(a,b);g.deleteContents(c)};return{setExact:p,getExact:w,get:x,setRelative:q,toNative:r,setToElement:u,clear:C,clone:D,replace:E,deleteAt:F,forElement:v,getFirstRect:y,getBounds:z,getAtPoint:A,findWithin:n,getAsString:B}}),g("20",["17"],function(a){return a("tinymce.util.VK")}),g("h",["1","2","1v","1a","1w","6","14","8","1h","1x","1y","1z","20","1l","1d"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o){var p=function(a,b,d,e){return t(a,b,c.next(d),e)},q=function(a,b,d,e){return t(a,b,c.prev(d),e)},r=function(a,b){var c=k.exact(b,0,b,0);return l.toNative(c)},s=function(b,c){var d=h.descendants(c,"tr");return a.last(d).bind(function(a){return i.descendant(a,"td,th").map(function(a){return r(b,a)})})},t=function(a,c,e,f,g){return e.fold(b.none,b.none,function(b,c){return j.first(c).map(function(b){return r(a,b)})},function(b){return d.table(b,c).bind(function(c){var d=o.noMenu(b);return a.undoManager.transact(function(){f.insertRowsAfter(c,d)}),s(a,c)})})},u=["table","li","dl"],v=function(b,c,h,i){if(b.keyCode===m.TAB){var j=n.getBody(c),k=function(b){var c=g.name(b);return e.eq(b,j)||a.contains(u,c)},l=c.selection.getRng();if(l.collapsed){var o=f.fromDom(l.startContainer);d.cell(o,k).each(function(a){b.preventDefault();var d=b.shiftKey?q:p,e=d(c,k,a,h,i);e.each(function(a){c.selection.setRng(a)})})}}};return{handle:v}}),g("3x",["24"],function(a){var b=a.immutable("selection","kill");return{response:b}}),g("23",[],function(){var a=function(a){return function(b){return b===a}},b=a(38),c=a(40),d=function(a){return a>=37&&a<=40;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L1

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

CWE-79
File Location: media/vendor/tinymce/themes/modern/theme.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(){var a={},b=function(b){for(var c=a[b],e=c.deps,f=c.defn,g=e.length,h=new Array(g),i=0;i<g;++i)h[i]=d(e[i]);var j=f.apply(null,h);if(void 0===j)throw"module ["+b+"] returned undefined";c.instance=j},c=function(b,c,d){if("string"!=typeof b)throw"module id must be a string";if(void 0===c)throw"no dependencies for "+b;if(void 0===d)throw"no definition function for "+b;a[b]={deps:c,defn:d,instance:void 0}},d=function(c){var d=a[c];if(void 0===d)throw"module ["+c+"] was undefined";return void 0===d.instance&&b(c),d.instance},e=function(a,b){for(var c=a.length,e=new Array(c),f=0;f<c;++f)e[f]=d(a[f]);b.apply(null,e)},f={};f.bolt={module:{api:{define:c,require:e,demand:d}}};var g=c,h=function(a,b){g(a,[],function(){return b})};h("1",window),h("6",tinymce.util.Tools.resolve),g("2",["6"],function(a){return a("tinymce.ThemeManager")}),g("13",["6"],function(a){return a("tinymce.EditorManager")}),g("c",["6"],function(a){return a("tinymce.util.Tools")}),g("2f",["13","c"],function(a,b){var c=function(a){return a.getParam("branding",!0)},d=function(a){return e(a)!==!1},e=function(a){return a.getParam("menubar")},f=function(a){return a.getParam("statusbar",!0)},g=function(a){return a.getParam("toolbar_items_size")},h=function(a){var b=a.getParam("resize","vertical");return b===!1?"none":"both"===b?"both":"vertical"},i=function(a){return a.getParam("readonly",!1)},j=function(a){return a.getParam("fixed_toolbar_container")},k=function(a){return a.getParam("inline_toolbar_position_handler")},l=function(a){return a.getParam("menu")},m=function(a){return a.getParam("removed_menuitems","")},n=function(a){return a.getParam("min_width",100)},o=function(a){return a.getParam("min_height",100)},p=function(a){return a.getParam("max_width",65535)},q=function(a){return a.getParam("max_height",65535)},r=function(b){var c=b.settings,d=c.skin,e=c.skin_url;if(d!==!1){var f=d?d:"lightgray";e=e?b.documentBaseURI.toAbsolute(e):a.baseURL+"/skins/"+f}return e},s=function(a){return a.settings.skin===!1},t=function(a){return a.getParam("inline",!1)},u=function(a,b){for(var c=[],d=1;d<10;d++){var e=a["toolbar"+d];if(!e)break;c.push(e)}var f=a.toolbar?[a.toolbar]:[b];return c.length>0?c:f},v=function(a){var c=a.getParam("toolbar"),d="undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image";return c===!1?[]:b.isArray(c)?b.grep(c,function(a){return a.length>0}):u(a.settings,d)};return{isBrandingEnabled:c,hasMenubar:d,getMenubar:e,hasStatusbar:f,getToolbarSize:g,getResize:h,isReadOnly:i,getFixedToolbarContainer:j,getInlineToolbarPositionHandler:k,getMenu:l,getRemovedMenuItems:m,getMinWidth:n,getMinHeight:o,getMaxWidth:p,getMaxHeight:q,getSkinUrl:r,isSkinDisabled:s,isInline:t,getToolbars:v}}),g("2j",["6"],function(a){return a("tinymce.dom.DOMUtils")}),g("b",["6"],function(a){return a("tinymce.ui.Factory")}),g("37",["6"],function(a){return a("tinymce.util.I18n")}),g("2k",[],function(){var a=function(a){return a.fire("SkinLoaded")},b=function(a){return a.fire("ResizeEditor")},c=function(a){return a.fire("BeforeRenderUI")};return{fireSkinLoaded:a,fireResizeEditor:b,fireBeforeRenderUI:c}}),g("38",[],function(){var a=function(a,b){return function(){var c=a.find(b)[0];c&&c.focus(!0)}},b=function(b,c){b.shortcuts.add("Alt+F9","",a(c,"menubar")),b.shortcuts.add("Alt+F10,F10","",a(c,"toolbar")),b.shortcuts.add("Alt+F11","",a(c,"elementpath")),c.on("cancel",function(){b.focus()})};return{addKeys:b}}),h("12",document),g("3p",["6"],function(a){return a("tinymce.geom.Rect")}),g("2u",["6"],function(a){return a("tinymce.util.Delay")}),g("3d",["b","c","2f"],function(a,b,c){var d=function(c,d,e){var f,g=[];if(d)return b.each(d.split(/[ ,]/),function(b){var d,h=function(){var a=c.selection;b.settings.stateSelector&&a.selectorChanged(b.settings.stateSelector,function(a){b.active(a)},!0),b.settings.disabledStateSelector&&a.selectorChanged(b.settings.disabledStateSelector,function(a){b.disabled(a)})};"|"===b?f=null:(f||(f={type:"buttongroup",items:[]},g.push(f)),c.buttons[b]&&(d=b,b=c.buttons[d],"function"==typeof b&&(b=b()),b.type=b.type||"button",b.size=e,b=a.create(b),f.items.push(b),c.initialized?h():c.on("init",h)))}),{type:"toolbar",layout:"flow",items:g}},e=function(a,e){var f=[],g=function(b){b&&f.push(d(a,b,e))};if(b.each(c.getToolbars(a),function(a){g(a)}),f.length)return{type:"panel",layout:"stack",classes:"toolbar-grp",ariaRoot:!0,ariaRemember:!0,items:f}};return{createToolbar:d,createToolbars:e}}),g("39",["12","2j","3p","b","2u","c","2f","3d"],function(a,b,c,d,e,f,g,h){var i=b.DOM,j=function(a){return{left:a.x,top:a.y,width:a.w,height:a.h,right:a.x+a.w,bottom:a.y+a.h}},k=function(a){f.each(a.contextToolbars,function(a){a.panel&&a.panel.hide()})},l=function(a,b){a.moveTo(b.left,b.top)},m=function(a,b,c){b=b?b.substr(0,2):"",f.each({t:"down",b:"up"},function(d,e){a.classes.toggle("arrow-"+d,c(e,b.substr(0,1)))}),f.each({l:"left",r:"right"},function(d,e){a.classes.toggle("arrow-"+d,c(e,b.substr(1,1)))})},n=function(a,b,c,d,e,f){return f=j({x:b,y:c,w:f.w,h:f.h}),a&&(f=a({elementRect:j(d),contentAreaRect:j(e),panelRect:f})),f},o=function(b){var j,o=function(){return b.contextToolbars||[]},p=function(a){var c,d,e;return c=i.getPos(b.getContentAreaContainer()),d=b.dom.getRect(a),e=b.dom.getRoot(),"BODY"===e.nodeName&&(d.x-=e.ownerDocument.documentElement.scrollLeft||e.scrollLeft,d.y-=e.ownerDocument.documentElement.scrollTop||e.scrollTop),d.x+=c.x,d.y+=c.y,d},q=function(a,d){var e,f,h,j,o,q,r,s,t=g.getInlineToolbarPositionHandler(b);if(!b.removed){if(!a||!a.toolbar.panel)return void k(b);if(r=["bc-tc","tc-bc","tl-bl","bl-tl","tr-br","br-tr"],o=a.toolbar.panel,d&&o.show(),h=p(a.element),f=i.getRect(o.getEl()),j=i.getRect(b.getContentAreaContainer()||b.getBody()),s=25,"inline"!==i.getStyle(a.element,"display",!0)){var u=a.element.getBoundingClientRect();h.w=u.width,h.h=u.height}b.inline||(j.w=b.getDoc().documentElement.offsetWidth),b.selection.controlSelection.isResizable(a.element)&&h.w<s&&(h=c.inflate(h,0,8)),e=c.findBestRelativePosition(f,h,j,r),h=c.clamp(h,j),e?(q=c.relativePosition(f,h,e),l(o,n(t,q.x,q.y,h,j,f))):(j.h+=f.h,h=c.intersect(j,h),h?(e=c.findBestRelativePosition(f,h,j,["bc-tc","bl-tl","br-tr"]),e?(q=c.relativePosition(f,h,e),l(o,n(t,q.x,q.y,h,j,f))):l(o,n(t,h.x,h.y,h,j,f))):o.hide()),m(o,e,function(a,b){return a===b})}},r=function(a){return function(){var c=function(){b.selection&&q(v(b.selection.getNode()),a)};e.requestAnimationFrame(c)}},s=function(){j||(j=b.selection.getScrollContainer()||b.getWin(),i.bind(j,"scroll",r(!0)),b.on("remove",function(){i.unbind(j,"scroll")}))},t=function(c){var e;return c.toolbar.panel?(c.toolbar.panel.show(),void q(c)):(s(),e=d.create({type:"floatpanel",role:"dialog",classes:"tinymce tinymce-inline arrow",ariaLabel:"Inline toolbar",layout:"flex",direction:"column",align:"stretch",autohide:!1,autofix:!0,fixed:!0,border:1,items:h.createToolbar(b,c.toolbar.items),oncancel:function(){b.focus()}}),c.toolbar.panel=e,e.renderTo(a.body).reflow(),void q(c))},u=function(){f.each(o(),function(a){a.panel&&a.panel.hide()})},v=function(a){var c,d,e,f=o();for(e=b.$(a).parents().add(a),c=e.length-1;c>=0;c--)for(d=f.length-1;d>=0;d--)if(f[d].predicate(e[c]))return{toolbar:f[d],element:e[c]};return null};b.on("click keyup setContent ObjectResized",function(a){("setcontent"!==a.type||a.selection)&&e.setEditorTimeout(b,function(){var a;a=v(b.selection.getNode()),a?(u(),t(a)):u()})}),b.on("blur hide contextmenu",u),b.on("ObjectResizeStart",function(){var a=v(b.selection.getNode());a&&a.toolbar.panel&&a.toolbar.panel.hide()}),b.on("ResizeEditor ResizeWindow",r(!0)),b.on("nodeChange",r(!1)),b.on("remove",function(){f.each(o(),function(a){a.panel&&a.panel.remove()}),b.contextToolbars={}}),b.shortcuts.add("ctrl+shift+e > ctrl+shift+p","",function(){var a=v(b.selection.getNode());a&&a.toolbar.panel&&a.toolbar.panel.items()[0].focus()})};return{addContextualToolbars:o}}),h("2y",Array),h("2z",Error),g("z",["2y","2z"],function(a,b){var c=function(){},d=function(a,b){return function(){return a(b.apply(null,arguments))}},e=function(a){return function(){return a}},f=function(a){return a},g=function(a,b){return a===b},h=function(b){for(var c=new a(arguments.length-1),d=1;d<arguments.length;d++)c[d-1]=arguments[d];return function(){for(var d=new a(arguments.length),e=0;e<d.length;e++)d[e]=arguments[e];var f=c.concat(d);return b.apply(null,f)}},i=function(a){return function(){return!a.apply(null,arguments)}},j=function(a){return function(){throw new b(a)}},k=function(a){return a()},l=function(a){a()},m=e(!1),n=e(!0);return{noop:c,compose:d,constant:e,identity:f,tripleEquals:g,curry:h,not:i,die:j,apply:k,call:l,never:m,always:n}}),h("3q",Object),g("3g",["z","3q"],function(a,b){var c=a.never,d=a.always,e=function(){return f},f=function(){var f=function(a){return a.isNone()},g=function(a){return a()},h=function(a){return a},i=function(){},j={fold:function(a,b){return a()},is:c,isSome:c,isNone:d,getOr:h,getOrThunk:g,getOrDie:function(a){throw new Error(a||"error: getOrDie called on none.")},or:h,orThunk:g,map:e,ap:e,each:i,bind:e,flatten:e,exists:c,forall:d,filter:e,equals:f,equals_:f,toArray:function(){return[]},toString:a.constant("none()")};return b.freeze&&b.freeze(j),j}(),g=function(a){var b=function(){return a},h=function(){return k},i=function(b){return g(b(a))},j=function(b){return b(a)},k={fold:function(b,c){return c(a)},is:function(b){return a===b},isSome:d,isNone:c,getOr:b,getOrThunk:b,getOrDie:b,or:h,orThunk:h,map:i,ap:function(b){return b.fold(e,function(b){return g(b(a))})},each:function(b){b(a)},bind:j,flatten:b,exists:j,forall:j,filter:function(b){return b(a)?k:f},equals:function(b){return b.is(a)},equals_:function(b,d){return b.fold(c,function(b){return d(a,b)})},toArray:function(){return[a]},toString:function(){return"some("+a+")"}};return k},h=function(a){return null===a||void 0===a?f:g(a)};return{some:g,none:e,from:h}}),h("3h",String),g("2l",["3g","2y","2z","3h"],function(a,b,c,d){var e=function(){var a=b.prototype.indexOf,c=function(b,c){return a.call(b,c)},d=function(a,b){return u(a,b)};return void 0===a?d:c}(),f=function(b,c){var d=e(b,c);return d===-1?a.none():a.some(d)},g=function(a,b){return e(a,b)>-1},h=function(a,b){return t(a,b).isSome()},i=function(a,b){for(var c=[],d=0;d<a;d++)c.push(b(d));return c},j=function(a,b){for(var c=[],d=0;d<a.length;d+=b){var e=a.slice(d,d+b);c.push(e)}return c},k=function(a,c){for(var d=a.length,e=new b(d),f=0;f<d;f++){var g=a[f];e[f]=c(g,f,a)}return e},l=function(a,b){for(var c=0,d=a.length;c<d;c++){var e=a[c];b(e,c,a)}},m=function(a,b){for(var c=a.length-1;c>=0;c--){var d=a[c];b(d,c,a)}},n=function(a,b){for(var c=[],d=[],e=0,f=a.length;e<f;e++){var g=a[e],h=b(g,e,a)?c:d;h.push(g)}return{pass:c,fail:d}},o=function(a,b){for(var c=[],d=0,e=a.length;d<e;d++){var f=a[d];b(f,d,a)&&c.push(f)}return c},p=function(a,b){if(0===a.length)return[];for(var c=b(a[0]),d=[],e=[],f=0,g=a.length;f<g;f++){var h=a[f],i=b(h);i!==c&&(d.push(e),e=[]),c=i,e.push(h)}return 0!==e.length&&d.push(e),d},q=function(a,b,c){return m(a,function(a){c=b(c,a)}),c},r=function(a,b,c){return l(a,function(a){c=b(c,a)}),c},s=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(f)}return a.none()},t=function(b,c){for(var d=0,e=b.length;d<e;d++){var f=b[d];if(c(f,d,b))return a.some(d)}return a.none()},u=function(a,b){for(var c=0,d=a.length;c<d;++c)if(a[c]===b)return c;return-1},v=b.prototype.push,w=function(a){for(var d=[],e=0,f=a.length;e<f;++e){if(!b.prototype.isPrototypeOf(a[e]))throw new c("Arr.flatten item "+e+" was not an array, input: "+a);v.apply(d,a[e])}return d},x=function(a,b){var c=k(a,b);return w(c)},y=function(a,b){for(var c=0,d=a.length;c<d;++c){var e=a[c];if(b(e,c,a)!==!0)return!1}return!0},z=function(a,b){return a.length===b.length&&y(a,function(a,c){return a===b[c]})},A=b.prototype.slice,B=function(a){var b=A.call(a,0);return b.reverse(),b},C=function(a,b){return o(a,function(a){return!g(b,a)})},D=function(a,b){for(var c={},e=0,f=a.length;e<f;e++){var g=a[e];c[d(g)]=b(g,e)}return c},E=function(a){return[a]},F=function(a,b){var c=A.call(a,0);return c.sort(b),c},G=function(b){return 0===b.length?a.none():a.some(b[0])},H=function(b){return 0===b.length?a.none():a.some(b[b.length-1])};return{map:k,each:l,eachr:m,partition:n,filter:o,groupBy:p,indexOf:f,foldr:q,foldl:r,find:s,findIndex:t,flatten:w,bind:x,forall:y,exists:h,contains:g,equal:z,reverse:B,chunk:j,difference:C,mapToObject:D,pure:E,sort:F,range:i,head:G,last:H}}),g("3a",["2l","c","2f"],function(a,b,c){var d={file:{title:"File",items:"newdocument restoredraft | preview | print"},edit:{title:"Edit",items:"undo redo | cut copy paste pastetext | selectall"},view:{title:"View",items:"code | visualaid visualchars visualblocks | spellchecker | preview fullscreen"},insert:{title:"Insert",items:"image link media template codesample inserttable | charmap hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | blockformats align | removeformat"},tools:{title:"Tools",items:"spellchecker spellcheckerlanguage | a11ycheck"},table:{title:"Table"},help:{title:"Help"}},e=function(){return{name:"|",item:{text:"|"}}},f=function(a,b){var c=b?{name:a,item:b}:null;return"|"===a?e():c},g=function(b,c){return a.findIndex(b,function(a){return a.name===c}).isSome()},h=function(a){return a&&"|"===a.item.text},i=function(b,c){var d=a.filter(b,function(a){return c.hasOwnProperty(a.name)===!1}),e=a.filter(d,function(a,b,c){return!h(a)||!h(c[b-1])});return a.filter(e,function(a,b,c){return!h(a)||b>0&&b<c.length-1})},j=function(c,h,j,k){var l,m,n,o;return h?(m=h[k],o=!0):m=d[k],m&&(l={text:m.title},n=[],b.each((m.items||"").split(/[ ,]/),function(a){var b=f(a,c[a]);b&&n.push(b)}),o||b.each(c,function(a,b){a.context!==k||g(n,b)||("before"===a.separator&&n.push(e()),a.prependToContext?n.unshift(f(b,a)):n.push(f(b,a)),"after"===a.separator&&n.push(e()))}),l.menu=a.map(i(n,j),function(a){return a.item}),!l.menu.length)?null:l},k=function(a){var b,e=[],f=c.getMenu(a);if(f)for(b in f)e.push(b);else for(b in d)e.push(b);return e},l=function(a){for(var d=[],e=k(a),f=b.makeMap(c.getRemovedMenuItems(a).split(/[ ,]/)),g=c.getMenubar(a),h="string"==typeof g?g.split(/[ ,]/):e,i=0;i<h.length;i++){var l=h[i],m=j(a.menuItems,c.getMenu(a),f,l);m&&d.push(m)}return d};return{createMenuButtons:l}}),g("8",["2j","2k","2f"],function(a,b,c){var d=a.DOM,e=function(a){return{width:a.clientWidth,height:a.clientHeight}},f=function(a,f,g){var h,i,j,k;h=a.getContainer(),i=a.getContentAreaContainer().firstChild,j=e(h),k=e(i),null!==f&&(f=Math.max(c.getMinWidth(a),f),f=Math.min(c.getMaxWidth(a),f),d.setStyle(h,"width",f+(j.width-k.width)),d.setStyle(i,"width",f)),g=Math.max(c.getMinHeight(a),g),g=Math.min(c.getMaxHeight(a),g),d.setStyle(i,"height",g),b.fireResizeEditor(a)},g=function(a,b,c){var d=a.getContentAreaContainer();f(a,d.clientWidth+b,d.clientHeight+c)};return{resizeTo:f,resizeBy:g}}),g("14",["6"],function(a){return a("tinymce.Env")}),g("3b",["14","b","c","2k"],function(a,b,c,d){var e=function(a){return{element:function(){return a}}},f=function(a,b,c){var d=a.settings[c];d&&d(e(b.getEl("body")))},g=function(a,b,d){c.each(d,function(c){var d=b.items().filter("#"+c.name)[0];d&&d.visible()&&c.name!==a&&(f(c,d,"onhide"),d.visible(!1))})},h=function(a){a.items().each(function(a){a.active(!1)})},i=function(a,b){return c.grep(a,function(a){return a.name===b})[0]},j=function(a,c,e){return function(j){var k=j.control,l=k.parents().filter("panel")[0],m=l.find("#"+c)[0],n=i(e,c);g(c,l,e),h(k.parent()),m&&m.visible()?(f(n,m,"onhide"),m.hide(),k.active(!1)):(m?(m.show(),f(n,m,"onshow")):(m=b.create({type:"container",name:c,layout:"stack",classes:"sidebar-panel",html:""}),l.prepend(m),f(n,m,"onrender"),f(n,m,"onshow")),k.active(!0)),d.fireResizeEditor(a)}},k=function(){return!a.ie||a.ie>=11},l=function(a){return!(!k()||!a.sidebars)&&a.sidebars.length>0},m=function(a){var b=c.map(a.sidebars,function(b){var c=b.settings;return{type:"button",icon:c.icon,image:c.image,tooltip:c.tooltip,onclick:j(a,b.name,a.sidebars)}});return{type:"panel",name:"sidebar",layout:"stack",classes:"sidebar",items:[{type:"toolbar",layout:"stack",classes:"sidebar-toolbar",items:b}]}};return{hasSidebar:l,createSidebar:m}}),g("3c",["2k"],function(a){var b=function(b){var c=function(){b._skinLoaded=!0,a.fireSkinLoaded(b)};return function(){b.initialized?c():b.on("init",c)}};return{fireSkinLoaded:b}}),g("2g",["2j","b","37","c","2k","2f","38","39","3a","8","3b","3c","3d"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=a.DOM,o=function(a){return function(b){a.find("*").disabled("readonly"===b.mode)}},p=function(a){return{type:"panel",name:"iframe",layout:"stack",classes:"edit-area",border:a,html:""}},q=function(a){return{type:"panel",layout:"stack",classes:"edit-aria-container",border:"1 0 0 0",items:[p("0"),k.createSidebar(a)]}},r=function(a,d,r){var s,t,u;if(f.isSkinDisabled(a)===!1&&r.skinUiCss?n.styleSheetLoader.load(r.skinUiCss,l.fireSkinLoaded(a)):l.fireSkinLoaded(a)(),s=d.panel=b.create({type:"panel",role:"application",classes:"tinymce",style:"visibility: hidden",layout:"stack",border:1,items:[{type:"container",classes:"top-part",items:[f.hasMenubar(a)===!1?null:{type:"menubar",border:"0 0 1 0",items:i.createMenuButtons(a)},m.createToolbars(a,f.getToolbarSize(a))]},k.hasSidebar(a)?q(a):p("1 0 0 0")]}),"none"!==f.getResize(a)&&(t={type:"resizehandle",direction:f.getResize(a),onResizeStart:function(){var b=a.getContentAreaContainer().firstChild;u={width:b.clientWidth,height:b.clientHeight}},onResize:function(b){"both"===f.getResize(a)?j.resizeTo(a,u.width+b.deltaX,u.height+b.deltaY):j.resizeTo(a,null,u.height+b.deltaY)}}),f.hasStatusbar(a)){var v='<a href="https://www.tinymce.com/?utm_campaign=editor_referral&utm_medium=poweredby&utm_source=tinymce" rel="noopener" target="_blank">tinymce</a>',w=c.translate(["Powered by {0}",v]),x=f.isBrandingEnabled(a)?{type:"label",classes:"branding",html:" "+w}:null;s.add({type:"panel",name:"statusbar",classes:"statusbar",layout:"flow",border:"1 0 0 0",ariaRoot:!0,items:[{type:"elementpath",editor:a},t,x]})}return e.fireBeforeRenderUI(a),a.on("SwitchMode",o(s)),s.renderBefore(r.targetNode).reflow(),f.isReadOnly(a)&&a.setMode("readonly"),r.width&&n.setStyle(s.getEl(),"width",r.width),a.on("remove",function(){s.remove(),s=null}),g.addKeys(a,s),h.addContextualToolbars(a),{iframeContainer:s.find("#iframe")[0].getEl(),editorContainer:s.getEl()}};return{render:r}}),g("2o",["6"],function(a){return a("tinymce.dom.DomQuery")}),g("2n",["12","2j","14","c"],function(a,b,c,d){"use strict";var e=0,f={id:function(){return"mceu_"+e++},create:function(c,e,f){var g=a.createElement(c);return b.DOM.setAttribs(g,e),"string"==typeof f?g.innerHTML=f:d.each(f,function(a){a.nodeType&&g.appendChild(a)}),g},createFragment:function(a){return b.DOM.createFragment(a)},getWindowSize:function(){return b.DOM.getViewPort()},getSize:function(a){var b,c;if(a.getBoundingClientRect){var d=a.getBoundingClientRect();b=Math.max(d.width||d.right-d.left,a.offsetWidth),c=Math.max(d.height||d.bottom-d.bottom,a.offsetHeight)}else b=a.offsetWidth,c=a.offsetHeight;return{width:b,height:c}},getPos:function(a,c){return b.DOM.getPos(a,c||f.getContainer())},getContainer:function(){return c.container?c.container:a.body},getViewPort:function(a){return b.DOM.getViewPort(a)},get:function(b){return a.getElementById(b)},addClass:function(a,c){return b.DOM.addClass(a,c)},removeClass:function(a,c){return b.DOM.removeClass(a,c)},hasClass:function(a,c){return b.DOM.hasClass(a,c)},toggleClass:function(a,c,d){return b.DOM.toggleClass(a,c,d)},css:function(a,c,d){return b.DOM.setStyle(a,c,d)},getRuntimeStyle:function(a,c){return b.DOM.getStyle(a,c,!0)},on:function(a,c,d,e){return b.DOM.bind(a,c,d,e)},off:function(a,c,d){return b.DOM.unbind(a,c,d)},fire:function(a,c,d){return b.DOM.fire(a,c,d)},innerHtml:function(a,c){b.DOM.setHTML(a,c)}};return f}),g("1s",["12","1","2n"],function(a,b,c){"use strict";function d(b,d,e){var f,g,h,i,j,k,l,m,n,o;return n=c.getViewPort(),g=c.getPos(d),h=g.x,i=g.y,b.state.get("fixed")&&"static"==c.getRuntimeStyle(a.body,"position")&&(h-=n.x,i-=n.y),f=b.getEl(),o=c.getSize(f),j=o.width,k=o.height,o=c.getSize(d),l=o.width,m=o.height,e=(e||"").split(""),"b"===e[0]&&(i+=m),"r"===e[1]&&(h+=l),"c"===e[0]&&(i+=Math.round(m/2)),"c"===e[1]&&(h+=Math.round(l/2)),"b"===e[3]&&(i-=k),"r"===e[4]&&(h-=j),"c"===e[3]&&(i-=Math.round(k/2)),"c"===e[4]&&(h-=Math.round(j/2)),{x:h,y:i,w:j,h:k}}return{testMoveRel:function(a,b){for(var e=c.getViewPort(),f=0;f<b.length;f++){var g=d(this,a,b[f]);if(this.state.get("fixed")){if(g.x>0&&g.x+g.w<e.w&&g.y>0&&g.y+g.h<e.h)return b[f]}else if(g.x>e.x&&g.x+g.w<e.w+e.x&&g.y>e.y&&g.y+g.h<e.h+e.y)return b[f]}return b[0]},moveRel:function(a,b){"string"!=typeof b&&(b=this.testMoveRel(a,b));var c=d(this,a,b);return this.moveTo(c.x,c.y)},moveBy:function(a,b){var c=this,d=c.layoutRect();return c.moveTo(d.x+a,d.y+b),c},moveTo:function(a,d){function e(a,b,c){return a<0?0:a+c>b?(a=b-c,a<0?0:a):a}var f=this;if(f.settings.constrainToViewport){var g=c.getViewPort(b),h=f.layoutRect();a=e(a,g.w+g.x,h.w),d=e(d,g.h+g.y,h.h)}return f.state.get("rendered")?f.layoutRect({x:a,y:d}).repaint():(f.settings.x=a,f.settings.y=d),f.fire("move",{x:a,y:d}),f}}}),g("2p",["6"],function(a){return a("tinymce.util.Class")}),g("2q",["6"],function(a){return a("tinymce.util.EventDispatcher")}),g("2r",["12"],function(a){"use strict";return{parseBox:function(a){var b,c=10;if(a)return"number"==typeof a?(a=a||0,{top:a,left:a,bottom:a,right:a}):(a=a.split(" "),b=a.length,1===b?a[1]=a[2]=a[3]=a[0]:2===b?(a[2]=a[0],a[3]=a[1]):3===b&&(a[3]=a[1]),{top:parseInt(a[0],c)||0,right:parseInt(a[1],c)||0,bottom:parseInt(a[2],c)||0,left:parseInt(a[3],c)||0})},measureBox:function(b,c){function d(c){var d=a.defaultView;return d?(c=c.replace(/[A-Z]/g,function(a){return"-"+a}),d.getComputedStyle(b,null).getPropertyValue(c)):b.currentStyle[c]}function e(a){var b=parseFloat(d(a),10);return isNaN(b)?0:b}return{top:e(c+"TopWidth"),right:e(c+"RightWidth"),bottom:e(c+"BottomWidth"),left:e(c+"LeftWidth")}}}}),g("2s",["c"],function(a){"use strict";function b(){}function c(a){this.cls=[],this.cls._map={},this.onchange=a||b,this.prefix=""}return a.extend(c.prototype,{add:function(a){return a&&!this.contains(a)&&(this.cls._map[a]=!0,this.cls.push(a),this._change()),this},remove:function(a){if(this.contains(a)){for(var b=0;b<this.cls.length&&this.cls[b]!==a;b++);this.cls.splice(b,1),delete this.cls._map[a],this._change()}return this},toggle:function(a,b){var c=this.contains(a);return c!==b&&(c?this.remove(a):this.add(a),this._change()),this},contains:function(a){return!!this.cls._map[a]},_change:function(){delete this.clsValue,this.onchange.call(this)}}),c.prototype.toString=function(){var a;if(this.clsValue)return this.clsValue;a="";for(var b=0;b<this.cls.length;b++)b>0&&(a+=" "),a+=this.prefix+this.cls[b];return a},c}),g("24",["2p"],function(a){"use strict";function b(a){for(var b,c=[],d=a.length;d--;)b=a[d],b.__checked||(c.push(b),b.__checked=1);for(d=c.length;d--;)delete c[d].__checked;return c}var c,d=/^([\w\\*]+)?(?:#([\w\-\\]+))?(?:\.([\w\\\.]+))?(?:\[\@?([\w\\]+)([\^\$\*!~]?=)([\w\\]+)\])?(?:\:(.+))?/i,e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,f=/^\s*|\s*$/g,g=a.extend({init:function(a){function b(a){if(a)return a=a.toLowerCase(),function(b){return"*"===a||b.type===a}}function c(a){if(a)return function(b){return b._name===a}}function g(a){if(a)return a=a.split("."),function(b){for(var c=a.length;c--;)if(!b.classes.contains(a[c]))return!1;return!0}}function h(a,b,c){if(a)return function(d){var e=d[a]?d[a]():"";return b?"="===b?e===c:"*="===b?e.indexOf(c)>=0:"~="===b?(" "+e+" ").indexOf(" "+c+" ")>=0:"!="===b?e!=c:"^="===b?0===e.indexOf(c):"$="===b&&e.substr(e.length-c.length)===c:!!c}}function i(a){var b;if(a)return a=/(?:not\((.+)\))|(.+)/i.exec(a),a[1]?(b=k(a[1],[]),function(a){return!l(a,b)}):(a=a[2],function(b,c,d){return"first"===a?0===c:"last"===a?c===d-1:"even"===a?c%2===0:"odd"===a?c%2===1:!!b[a]&&b[a]()})}function j(a,e,j){function k(a){a&&e.push(a)}var l;return l=d.exec(a.replace(f,"")),k(b(l[1])),k(c(l[2])),k(g(l[3])),k(h(l[4],l[5],l[6])),k(i(l[7])),e.pseudo=!!l[7],e.direct=j,e}function k(a,b){var c,d,f,g=[];do if(e.exec(""),d=e.exec(a),d&&(a=d[3],g.push(d[1]),d[2])){c=d[3];break}while(d);for(c&&k(c,b),a=[],f=0;f<g.length;f++)">"!=g[f]&&a.push(j(g[f],[],">"===g[f-1]));return b.push(a),b}var l=this.match;this._selectors=k(a,[])},match:function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o;for(b=b||this._selectors,c=0,d=b.length;c<d;c++){for(g=b[c],f=g.length,o=a,n=0,e=f-1;e>=0;e--)for(j=g[e];o;){if(j.pseudo)for(m=o.parent().items(),k=l=m.length;k--&&m[k]!==o;);for(h=0,i=j.length;h<i;h++)if(!j[h](o,k,l)){h=i+1;break}if(h===i){n++;break}if(e===f-1)break;o=o.parent()}if(n===f)return!0}return!1},find:function(a){function d(a,b,c){var e,f,g,i,j,k=b[c];for(e=0,f=a.length;e<f;e++){for(j=a[e],g=0,i=k.length;g<i;g++)if(!k[g](j,e,f)){g=i+1;break}if(g===i)c==b.length-1?h.push(j):j.items&&d(j.items(),b,c+1);else if(k.direct)return;j.items&&d(j.items(),b,c)}}var e,f,h=[],i=this._selectors;if(a.items){for(e=0,f=i.length;e<f;e++)d(a.items(),i[e],0);f>1&&(h=b(h))}return c||(c=g.Collection),new c(h)}});return g}),g("i",["c","24","2p"],function(a,b,c){"use strict";var d,e,f=Array.prototype.push,g=Array.prototype.slice;return e={length:0,init:function(a){a&&this.add(a)},add:function(b){var c=this;return a.isArray(b)?f.apply(c,b):b instanceof d?c.add(b.toArray()):f.call(c,b),c},set:function(a){var b,c=this,d=c.length;for(c.length=0,c.add(a),b=c.length;b<d;b++)delete c[b];return c},filter:function(a){var c,e,f,g,h=this,i=[];for("string"==typeof a?(a=new b(a),g=function(b){return a.match(b)}):g=a,c=0,e=h.length;c<e;c++)f=h[c],g(f)&&i.push(f);return new d(i)},slice:function(){return new d(g.apply(this,arguments))},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},each:function(b){return a.each(this,b),this},toArray:function(){return a.toArray(this)},indexOf:function(a){for(var b=this,c=b.length;c--&&b[c]!==a;);return c},reverse:function(){return new d(a.toArray(this).reverse())},hasClass:function(a){return!!this[0]&&this[0].classes.contains(a)},prop:function(a,b){var c,d,e=this;return b!==c?(e.each(function(c){c[a]&&c[a](b)}),e):(d=e[0],d&&d[a]?d[a]():void 0)},exec:function(b){var c=this,d=a.toArray(arguments).slice(1);return c.each(function(a){a[b]&&a[b].apply(a,d)}),c},remove:function(){for(var a=this.length;a--;)this[a].remove();return this},addClass:function(a){return this.each(function(b){b.classes.add(a)})},removeClass:function(a){return this.each(function(b){b.classes.remove(a)})}},a.each("fire on off show hide append prepend before after reflow".split(" "),function(b){e[b]=function(){var c=a.toArray(arguments);return this.each(function(a){b in a&&a[b].apply(a,c)}),this}}),a.each("text name disabled active selected checked visible parent value data".split(" "),function(a){e[a]=function(b){return this.prop(a,b)}}),d=c.extend(e),b.Collection=d,d}),g("3e",[],function(){function a(a){this.create=a.create}return a.create=function(b,c){return new a({create:function(a,d){function e(b){a.set(d,b.value)}function f(a){b.set(c,a.value)}var g;return a.on("change:"+d,f),b.on("change:"+c,e),g=a._bindings,g||(g=a._bindings=[],a.on("destroy",function(){for(var a=g.length;a--;)g[a]()})),g.push(function(){b.off("change:"+c,e)}),b.get(c)}})},a}),g("3f",["6"],function(a){return a("tinymce.util.Observable")}),g("2t",["3e","2p","3f","c"],function(a,b,c,d){function e(a){return a.nodeType>0}function f(a,b){var c,g;if(a===b)return!0;if(null===a||null===b)return a===b;if("object"!=typeof a||"object"!=typeof b)return a===b;if(d.isArray(b)){if(a.length!==b.length)return!1;for(c=a.length;c--;)if(!f(a[c],b[c]))return!1}if(e(a)||e(b))return a===b;g={};for(c in b){if(!f(a[c],b[c]))return!1;g[c]=!0}for(c in a)if(!g[c]&&!f(a[c],b[c]))return!1;return!0}return b.extend({Mixins:[c],init:function(b){var c,d;b=b||{};for(c in b)d=b[c],d instanceof a&&(b[c]=d.create(this,c));this.data=b},set:function(b,c){var d,e,g=this.data[b];if(c instanceof a&&(c=c.create(this,b)),"object"==typeof b){for(d in b)this.set(d,b[d]);return this}return f(g,c)||(this.data[b]=c,e={target:this,name:b,value:c,oldValue:g},this.fire("change:"+b,e),this.fire("change",e)),this},get:function(a){return this.data[a]},has:function(a){return a in this.data},bind:function(b){return a.create(this,b)},destroy:function(){this.fire("destroy")}})}),g("1z",["12","2u"],function(a,b){var c,d={};return{add:function(e){var f=e.parent();if(f){if(!f._layout||f._layout.isNative())return;d[f._id]||(d[f._id]=f),c||(c=!0,b.requestAnimationFrame(function(){var a,b;c=!1;for(a in d)b=d[a],b.state.get("rendered")&&b.reflow();d={}},a.body))}},remove:function(a){d[a._id]&&delete d[a._id]}}}),g("o",["12","2o","2p","2q","c","2r","2s","i","2t","2n","1z"],function(a,b,c,d,e,f,g,h,i,j,k){"use strict";function l(a){return a._eventDispatcher||(a._eventDispatcher=new d({scope:a,toggleEvent:function(b,c){c&&d.isNative(b)&&(a._nativeEvents||(a._nativeEvents={}),a._nativeEvents[b]=!0,a.state.get("rendered")&&m(a))}})),a._eventDispatcher}function m(a){function c(b){var c=a.getParentCtrl(b.target);c&&c.fire(b.type,b)}function d(){var a=j._lastHoverCtrl;a&&(a.fire("mouseleave",{target:a.getEl()}),a.parents().each(function(a){a.fire("mouseleave",{target:a.getEl()})}),j._lastHoverCtrl=null)}function e(b){var c,d,e,f=a.getParentCtrl(b.target),g=j._lastHoverCtrl,h=0;if(f!==g){if(j._lastHoverCtrl=f,d=f.parents().toArray().reverse(),d.push(f),g){for(e=g.parents().toArray().reverse(),e.push(g),h=0;h<e.length&&d[h]===e[h];h++);for(c=e.length-1;c>=h;c--)g=e[c],g.fire("mouseleave",{target:g.getEl()})}for(c=h;c<d.length;c++)f=d[c],f.fire("mouseenter",{target:f.getEl()})}}function f(b){b.preventDefault(),"mousewheel"==b.type?(b.deltaY=-.025*b.wheelDelta,b.wheelDeltaX&&(b.deltaX=-.025*b.wheelDeltaX)):(b.deltaX=0,b.deltaY=b.detail),b=a.fire("wheel",b)}var g,h,i,j,k,l;if(k=a._nativeEvents){for(i=a.parents().toArray(),i.unshift(a),g=0,h=i.length;!j&&g<h;g++)j=i[g]._eventsRoot;for(j||(j=i[i.length-1]||a),a._eventsRoot=j,h=g,g=0;g<h;g++)i[g]._eventsRoot=j;var m=j._delegates;m||(m=j._delegates={});for(l in k){if(!k)return!1;"wheel"!==l||p?("mouseenter"===l||"mouseleave"===l?j._hasMouseEnter||(b(j.getEl()).on("mouseleave",d).on("mouseover",e),j._hasMouseEnter=1):m[l]||(b(j.getEl()).on(l,c),m[l]=!0),k[l]=!1):o?b(a.getEl()).on("mousewheel",f):b(a.getEl()).on("DOMMouseScroll",f)}}}var n,o="onmousewheel"in a,p=!1,q="mce-",r=0,s={Statics:{classPrefix:q},isRtl:function(){return n.rtl},classPrefix:q,init:function(a){function c(a){var b;for(a=a.split(" "),b=0;b<a.length;b++)j.classes.add(a[b])}var d,h,j=this;j.settings=a=e.extend({},j.Defaults,a),j._id=a.id||"mceu_"+r++,j._aria={role:a.role},j._elmCache={},j.$=b,j.state=new i({visible:!0,active:!1,disabled:!1,value:""}),j.data=new i(a.data),j.classes=new g(function(){j.state.get("rendered")&&(j.getEl().className=this.toString())}),j.classes.prefix=j.classPrefix,d=a.classes,d&&(j.Defaults&&(h=j.Defaults.classes,h&&d!=h&&c(h)),c(d)),e.each("title text name visible disabled active value".split(" "),function(b){b in a&&j[b](a[b])}),j.on("click",function(){if(j.disabled())return!1}),j.settings=a,j.borderBox=f.parseBox(a.border),j.paddingBox=f.parseBox(a.padding),j.marginBox=f.parseBox(a.margin),a.hidden&&j.hide()},Properties:"parent,name",getContainerElm:function(){return j.getContainer()},getParentCtrl:function(a){for(var b,c=this.getRoot().controlIdLookup;a&&c&&!(b=c[a.id]);)a=a.parentNode;return b},initLayoutRect:function(){var a,b,c,d,e,g,h,i,k,l,m=this,n=m.settings,o=m.getEl();a=m.borderBox=m.borderBox||f.measureBox(o,"border"),m.paddingBox=m.paddingBox||f.measureBox(o,"padding"),
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L9274

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:9274
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 = text;
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output
L27563

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:27563
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
L34001

Insecure DOM Manipulation (XSS) in tinymce.js

CWE-79
File Location: media/vendor/tinymce/tinymce.js:34001
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
- textBlock.innerHTML = '<br data-mce-bogus="1">';
+ element.textContent = data; // Or use DOMPurify to sanitize HTML output