@ -1,12 +1,12 @@
( self [ "webpackChunk" ] = self [ "webpackChunk" ] || [ ] ) . push ( [ [ 3 5023 ] , {
( self [ "webpackChunk" ] = self [ "webpackChunk" ] || [ ] ) . push ( [ [ 3 1496 ] , {
/***/ 3 5023 :
/***/ 3 1496 :
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ! * \
! * * * . / node _modules / _dompurify @ 2.5 . 0 @ dompurify / dist / purify . js * * * !
! * * * . / node _modules / _dompurify @ 2.5 . 1 @ dompurify / dist / purify . js * * * !
\ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /
/***/ ( function ( module ) {
/*! @license DOMPurify 2.5. 0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.0 /LICENSE */
/*! @license DOMPurify 2.5. 1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.1 /LICENSE */
( function ( global , factory ) {
true ? module . exports = factory ( ) :
@ -294,7 +294,7 @@
* Version label , exposed for easier checks
* if DOMPurify is up to date or not
* /
DOMPurify . version = '2.5. 0 ';
DOMPurify . version = '2.5. 1 ';
/ * *
* Array of elements that DOMPurify removed during sanitation .
@ -520,6 +520,9 @@
/* Keep a reference to config to pass to hooks */
var CONFIG = null ;
/* Specify the maximum element nesting depth to prevent mXSS */
var MAX _NESTING _DEPTH = 255 ;
/* Ideally, do not touch anything below this line */
/* ______________________________________________ */
@ -914,7 +917,7 @@
* @ return { Boolean } true if clobbered , false if safe
* /
var _isClobbered = function _isClobbered ( elm ) {
return elm instanceof HTMLFormElement && ( typeof elm . nodeName !== 'string' || typeof elm . textContent !== 'string' || typeof elm . removeChild !== 'function' || ! ( elm . attributes instanceof NamedNodeMap ) || typeof elm . removeAttribute !== 'function' || typeof elm . setAttribute !== 'function' || typeof elm . namespaceURI !== 'string' || typeof elm . insertBefore !== 'function' || typeof elm . hasChildNodes !== 'function' ) ;
return elm instanceof HTMLFormElement && ( typeof elm . __depth !== 'undefined' && typeof elm . _ _depth !== 'number' || typeof elm . _ _removalCount !== 'undefined' && typeof elm . _ _removalCount !== 'number' || typeof elm . nodeName !== 'string' || typeof elm . textContent !== 'string' || typeof elm . removeChild !== 'function' || ! ( elm . attributes instanceof NamedNodeMap ) || typeof elm . removeAttribute !== 'function' || typeof elm . setAttribute !== 'function' || typeof elm . namespaceURI !== 'string' || typeof elm . insertBefore !== 'function' || typeof elm . hasChildNodes !== 'function' ) ;
} ;
/ * *
@ -1020,7 +1023,9 @@
if ( childNodes && parentNode ) {
var childCount = childNodes . length ;
for ( var i = childCount - 1 ; i >= 0 ; -- i ) {
parentNode . insertBefore ( cloneNode ( childNodes [ i ] , true ) , getNextSibling ( currentNode ) ) ;
var childClone = cloneNode ( childNodes [ i ] , true ) ;
childClone . _ _removalCount = ( currentNode . _ _removalCount || 0 ) + 1 ;
parentNode . insertBefore ( childClone , getNextSibling ( currentNode ) ) ;
}
}
}
@ -1251,8 +1256,27 @@
continue ;
}
/* Set the nesting depth of an element */
if ( shadowNode . nodeType === 1 ) {
if ( shadowNode . parentNode && shadowNode . parentNode . _ _depth ) {
/ *
We want the depth of the node in the original tree , which can
change when it ' s removed from its parent .
* /
shadowNode . _ _depth = ( shadowNode . _ _removalCount || 0 ) + shadowNode . parentNode . _ _depth + 1 ;
} else {
shadowNode . _ _depth = 1 ;
}
}
/* Remove an element if nested too deeply to avoid mXSS */
if ( shadowNode . _ _depth >= MAX _NESTING _DEPTH ) {
_forceRemove ( shadowNode ) ;
}
/* Deep shadow DOM detected */
if ( shadowNode . content instanceof DocumentFragment ) {
shadowNode . content . _ _depth = shadowNode . _ _depth ;
_sanitizeShadowDOM ( shadowNode . content ) ;
}
@ -1383,8 +1407,27 @@
continue ;
}
/* Set the nesting depth of an element */
if ( currentNode . nodeType === 1 ) {
if ( currentNode . parentNode && currentNode . parentNode . _ _depth ) {
/ *
We want the depth of the node in the original tree , which can
change when it ' s removed from its parent .
* /
currentNode . _ _depth = ( currentNode . _ _removalCount || 0 ) + currentNode . parentNode . _ _depth + 1 ;
} else {
currentNode . _ _depth = 1 ;
}
}
/* Remove an element if nested too deeply to avoid mXSS */
if ( currentNode . _ _depth >= MAX _NESTING _DEPTH ) {
_forceRemove ( currentNode ) ;
}
/* Shadow DOM detected, sanitize it */
if ( currentNode . content instanceof DocumentFragment ) {
currentNode . content . _ _depth = currentNode . _ _depth ;
_sanitizeShadowDOM ( currentNode . content ) ;
}