2019-10-26 02:17:07 +02:00
/*! This file is auto-generated */
2021-11-23 06:40:38 +01:00
this . wp = this . wp || { } , this . wp . blockEditor = function ( e ) { var t = { } ; function n ( o ) { if ( t [ o ] ) return t [ o ] . exports ; var r = t [ o ] = { i : o , l : ! 1 , exports : { } } ; return e [ o ] . call ( r . exports , r , r . exports , n ) , r . l = ! 0 , r . exports } return n . m = e , n . c = t , n . d = function ( e , t , o ) { n . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : o } ) } , n . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , n . t = function ( e , t ) { if ( 1 & t && ( e = n ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var o = Object . create ( null ) ; if ( n . r ( o ) , Object . defineProperty ( o , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var r in e ) n . d ( o , r , function ( t ) { return e [ t ] } . bind ( null , r ) ) ; return o } , n . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return n . d ( t , "a" , t ) , t } , n . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , n . p = "" , n ( n . s = "tr0p" ) } ( { "+0ps" : function ( e , t , n ) { "use strict" ; n . d ( t , "c" , ( function ( ) { return b } ) ) , n . d ( t , "b" , ( function ( ) { return p } ) ) ; var o = n ( "GRId" ) , r = n ( "HSyU" ) , c = n ( "1CF3" ) , l = n ( "1ZqX" ) , i = n ( "l3Sj" ) , a = n ( "onLe" ) , s = n ( "K9lf" ) , u = n ( "xTGt" ) ; var d = n ( "BhPs" ) ; function b ( ) { const { getBlockName : e } = Object ( l . useSelect ) ( d . a ) , { getBlockType : t } = Object ( l . useSelect ) ( r . store ) , { createSuccessNotice : n } = Object ( l . useDispatch ) ( a . store ) ; return Object ( o . useCallback ) ( ( o , r ) => { let c = "" ; if ( 1 === r . length ) { var l ; const n = r [ 0 ] , a = null === ( l = t ( e ( n ) ) ) || void 0 === l ? void 0 : l . title ; c = "copy" === o ? Object ( i . sprintf ) ( Object ( i . _ _ ) ( 'Copied "%s" to clipboard.' ) , a ) : Object ( i . sprintf ) ( Object ( i . _ _ ) ( 'Moved "%s" to clipboard.' ) , a ) } else c = "copy" === o ? Object ( i . sprintf ) ( Object ( i . _n ) ( "Copied %d block to clipboard." , "Copied %d blocks to clipboard." , r . length ) , r . length ) : Object ( i . sprintf ) ( Object ( i . _n ) ( "Moved %d block to clipboard." , "Moved %d blocks to clipboard." , r . length ) , r . length ) ; n ( c , { type : "snackbar" } ) } , [ ] ) } function p ( ) { const { getBlocksByClientId : e , getSelectedBlockClientIds : t , hasMultiSelection : n , getSettings : o } = Object ( l . useSelect ) ( d . a ) , { flashBlock : i , removeBlocks : a , replaceBlocks : p } = Object ( l . useDispatch ) ( d . a ) , m = b ( ) ; return Object ( s . useRefEffect ) ( l => { function s ( s ) { const d = t ( ) ; if ( 0 === d . length ) return ; if ( ! n ( ) ) { const { target : e } = s , { ownerDocument : t } = e ; if ( "copy" === s . type || "cut" === s . type ? Object ( c . documentHasUncollapsedSelection ) ( t ) : Object ( c . documentHasSelection ) ( t ) ) return } if ( ! l . contains ( s . target . ownerDocument . activeElement ) ) return ; const b = s . defaultPrevented ; if ( s . preventDefault ( ) , "copy" === s . type || "cut" === s . type ) { 1 === d . length && i ( d [ 0 ] ) , m ( s . type , d ) ; const t = e ( d ) , n = Object ( r . serialize ) ( t ) ; s . clipboardData . setData ( "text/plain" , n ) , s . clipboardData . setData ( "text/html" , n ) } if ( "cut" === s . type ) a ( d ) ; else if ( "paste" === s . type ) { if ( b ) return ; const { _ _experimentalCanUserUseUnfilteredHTML : e } = o ( ) , { plainText : t , html : n } = function ( e ) { let { clipboardData : t } = e , n = "" , o = "" ; try { n = t . getData ( "text/plain" ) , o = t . getData ( "text/html" ) } catch ( e ) { try { o = t . getData ( "Text" ) } catch ( e ) { return } } const r = Object ( c . getFilesFromDataTransfer ) ( t ) . filter ( e => { let { type : t } = e ; return /^image\/(?:jpe?g|png|gif)$/ . test ( t ) } ) ; return r . length && ! o && ( o = r . map ( e => ` <img src=" ${ Object ( u . createBlobURL ) ( e ) } "> ` ) . join ( "" ) , n = "" ) , { html : o , plainText : n } } ( s ) , l = Object ( r . pasteHandler ) ( { HTML : n , plainText : t , mode : "BLOCKS" , canUserUseUnfilteredHTML : e } ) ; p ( d , l , l . length - 1 , - 1 ) } } return l . ownerDocument . addEventListener ( "copy" , s ) , l . ownerDocument . addEventListener ( "cut" , s ) , l . ownerDocument . addEventListener ( "paste" , s ) , ( ) => { l . ownerDocument . removeEventListener ( "copy" , s ) , l . ownerDocument . removeEventListener ( "cut" , s ) , l . ownerDocument . removeEventListener ( "paste" , s ) } } , [ ] ) } t . a = function ( e ) { let { children : t } = e ; return Object ( o . createElement ) ( "div" , { ref : p ( ) } , t ) } } , "+6d5" : function ( e , t , n ) { "use strict" ; n . d ( t , "a" , ( function ( ) { return i } ) ) ; var o = n ( "TSYQ" ) , r = n . n ( o ) , c = n ( "1ZqX" ) , l = n ( "BhPs" ) ; function i ( e ) { return Object ( c . useSelect ) ( t => { const { hasBlockMovingClientId : n , canInsertBlockType : o , getBlockName : c , getBlockRootClientId : i , isBlockSelected : a } = t ( l . a ) ; if ( ! a ( e ) ) return ; const s = n ( ) ; return s ? r ( ) ( "is-block-moving-mode" , { "can-insert-moving-block" : o ( c ( s ) , i ( e ) ) } ) : void 0 } , [ e ] ) } } , "+DUQ" : function ( e , t , n ) { "use strict" ; n . d ( t , "animated" , ( f
2020-01-08 12:57:23 +01:00
/ * !
2021-05-21 12:14:23 +02:00
autosize 4.0 . 4
2020-01-08 12:57:23 +01:00
license : MIT
http : //www.jacklmoore.com/autosize
2021-11-23 06:40:38 +01:00
* / r = [ e , t ] , v o i d 0 = = = ( c = " f u n c t i o n " = = t y p e o f ( o = f u n c t i o n ( e , t ) { " u s e s t r i c t " ; v a r n , o , r = " f u n c t i o n " = = t y p e o f M a p ? n e w M a p : ( n = [ ] , o = [ ] , { h a s : f u n c t i o n ( e ) { r e t u r n n . i n d e x O f ( e ) > - 1 } , g e t : f u n c t i o n ( e ) { r e t u r n o [ n . i n d e x O f ( e ) ] } , s e t : f u n c t i o n ( e , t ) { - 1 = = = n . i n d e x O f ( e ) & & ( n . p u s h ( e ) , o . p u s h ( t ) ) } , d e l e t e : f u n c t i o n ( e ) { v a r t = n . i n d e x O f ( e ) ; t > - 1 & & ( n . s p l i c e ( t , 1 ) , o . s p l i c e ( t , 1 ) ) } } ) , c = f u n c t i o n ( e ) { r e t u r n n e w E v e n t ( e , { b u b b l e s : ! 0 } ) } ; t r y { n e w E v e n t ( " t e s t " ) } c a t c h ( e ) { c = f u n c t i o n ( e ) { v a r t = d o c u m e n t . c r e a t e E v e n t ( " E v e n t " ) ; r e t u r n t . i n i t E v e n t ( e , ! 0 , ! 1 ) , t } } f u n c t i o n l ( e ) { i f ( e & & e . n o d e N a m e & & " T E X T A R E A " = = = e . n o d e N a m e & & ! r . h a s ( e ) ) { v a r t , n = n u l l , o = n u l l , l = n u l l , i = f u n c t i o n ( ) { e . c l i e n t W i d t h ! = = o & & d ( ) } , a = f u n c t i o n ( t ) { w i n d o w . r e m o v e E v e n t L i s t e n e r ( " r e s i z e " , i , ! 1 ) , e . r e m o v e E v e n t L i s t e n e r ( " i n p u t " , d , ! 1 ) , e . r e m o v e E v e n t L i s t e n e r ( " k e y u p " , d , ! 1 ) , e . r e m o v e E v e n t L i s t e n e r ( " a u t o s i z e : d e s t r o y " , a , ! 1 ) , e . r e m o v e E v e n t L i s t e n e r ( " a u t o s i z e : u p d a t e " , d , ! 1 ) , O b j e c t . k e y s ( t ) . f o r E a c h ( ( f u n c t i o n ( n ) { e . s t y l e [ n ] = t [ n ] } ) ) , r . d e l e t e ( e ) } . b i n d ( e , { h e i g h t : e . s t y l e . h e i g h t , r e s i z e : e . s t y l e . r e s i z e , o v e r f l o w Y : e . s t y l e . o v e r f l o w Y , o v e r f l o w X : e . s t y l e . o v e r f l o w X , w o r d W r a p : e . s t y l e . w o r d W r a p } ) ; e . a d d E v e n t L i s t e n e r ( " a u t o s i z e : d e s t r o y " , a , ! 1 ) , " o n p r o p e r t y c h a n g e " i n e & & " o n i n p u t " i n e & & e . a d d E v e n t L i s t e n e r ( " k e y u p " , d , ! 1 ) , w i n d o w . a d d E v e n t L i s t e n e r ( " r e s i z e " , i , ! 1 ) , e . a d d E v e n t L i s t e n e r ( " i n p u t " , d , ! 1 ) , e . a d d E v e n t L i s t e n e r ( " a u t o s i z e : u p d a t e " , d , ! 1 ) , e . s t y l e . o v e r f l o w X = " h i d d e n " , e . s t y l e . w o r d W r a p = " b r e a k - w o r d " , r . s e t ( e , { d e s t r o y : a , u p d a t e : d } ) , " v e r t i c a l " = = = ( t = w i n d o w . g e t C o m p u t e d S t y l e ( e , n u l l ) ) . r e s i z e ? e . s t y l e . r e s i z e = " n o n e " : " b o t h " = = = t . r e s i z e & & ( e . s t y l e . r e s i z e = " h o r i z o n t a l " ) , n = " c o n t e n t - b o x " = = = t . b o x S i z i n g ? - ( p a r s e F l o a t ( t . p a d d i n g T o p ) + p a r s e F l o a t ( t . p a d d i n g B o t t o m ) ) : p a r s e F l o a t ( t . b o r d e r T o p W i d t h ) + p a r s e F l o a t ( t . b o r d e r B o t t o m W i d t h ) , i s N a N ( n ) & & ( n = 0 ) , d ( ) } f u n c t i o n s ( t ) { v a r n = e . s t y l e . w i d t h ; e . s t y l e . w i d t h = " 0 p x " , e . o f f s e t W i d t h , e . s t y l e . w i d t h = n , e . s t y l e . o v e r f l o w Y = t } f u n c t i o n u ( ) { i f ( 0 ! = = e . s c r o l l H e i g h t ) { v a r t = f u n c t i o n ( e ) { f o r ( v a r t = [ ] ; e & & e . p a r e n t N o d e & & e . p a r e n t N o d e i n s t a n c e o f E l e m e n t ; ) e . p a r e n t N o d e . s c r o l l T o p & & t . p u s h ( { n o d e : e . p a r e n t N o d e , s c r o l l T o p : e . p a r e n t N o d e . s c r o l l T o p } ) , e = e . p a r e n t N o d e ; r e t u r n t } ( e ) , r = d o c u m e n t . d o c u m e n t E l e m e n t & & d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p ; e . s t y l e . h e i g h t = " " , e . s t y l e . h e i g h t = e . s c r o l l H e i g h t + n + " p x " , o = e . c l i e n t W i d t h , t . f o r E a c h ( ( f u n c t i o n ( e ) { e . n o d e . s c r o l l T o p = e . s c r o l l T o p } ) ) , r & & ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p = r ) } } f u n c t i o n d ( ) { u ( ) ; v a r t = M a t h . r o u n d ( p a r s e F l o a t ( e . s t y l e . h e i g h t ) ) , n = w i n d o w . g e t C o m p u t e d S t y l e ( e , n u l l ) , o = " c o n t e n t - b o x " = = = n . b o x S i z i n g ? M a t h . r o u n d ( p a r s e F l o a t ( n . h e i g h t ) ) : e . o f f s e t H e i g h t ; i f ( o < t ? " h i d d e n " = = = n . o v e r f l o w Y & & ( s ( " s c r o l l " ) , u ( ) , o = " c o n t e n t - b o x " = = = n . b o x S i z i n g ? M a t h . r o u n d ( p a r s e F l o a t ( w i n d o w . g e t C o m p u t e d S t y l e ( e , n u l l ) . h e i g h t ) ) : e . o f f s e t H e i g h t ) : " h i d d e n " ! = = n . o v e r f l o w Y & & ( s ( " h i d d e n " ) , u ( ) , o = " c o n t e n t - b o x " = = = n . b o x S i z i n g ? M a t h . r o u n d ( p a r s e F l o a t ( w i n d o w . g e t C o m p u t e d S t y l e ( e , n u l l ) . h e i g h t ) ) : e . o f f s e t H e i g h t ) , l ! = = o ) { l = o ; v a r r = c ( " a u t o s i z e : r e s i z e d " ) ; t r y { e . d i s p a t c h E v e n t ( r ) } c a t c h ( e ) { } } } } f u n c t i o n i ( e ) { v a r t = r . g e t ( e ) ; t & & t . d e s t r o y ( ) } f u n c t i o n a ( e ) { v a r t = r . g e t ( e ) ; t & & t . u p d a t e ( ) } v a r s = n u l l ; " u n d e f i n e d " = = t y p e o f w i n d o w | | " f u n c t i o n " ! = t y p e o f w i n d o w . g e t C o m p u t e d S t y l e ? ( ( s = f u n c t i o n ( e ) { r e t u r n e } ) . d e s t r o y = f u n c t i o n ( e ) { r e t u r n e } , s . u p d a t e = f u n c t i o n ( e ) { r e t u r n e } ) : ( ( s = f u n c t i o n ( e , t ) { r e t u r n e & & A r r a y . p r o t o t y p e . f o r E a c h . c a l l ( e . l e n g t h ? e : [ e ] , ( f u n c t i o n ( e ) { r e t u r n l ( e ) } ) ) , e } ) . d e s t r o y = f u n c t i o n ( e ) { r e t u r n e & & A r r a y . p r o t o t y p e . f o r E a c h . c a l l ( e . l e n g t h ? e : [ e ] , i ) , e } , s . u p d a t e = f u n c t i o n ( e ) { r e t u r n e & & A r r a y . p r o t o t y p e . f o r E a c h . c a l l ( e . l e n g t h ? e : [ e ] , a ) , e } ) , t . d e f a u l t = s , e . e x p o r t s = t . d e f a u l t } ) ? o . a p p l y ( t , r ) : o ) | | ( e . e x p o r t s = c ) } , G k E L : f u n c t i o n ( e , t , n ) { " u s e s t r i c t " ; v a r o = n ( " w x 1 4 " ) , r = n ( " G R I d " ) , c = n ( " t I + e " ) , l = n ( " N M b 1 " ) , i = n . n ( l ) , a = n ( " 1 C F 3 " ) , s = n ( " h F 7 m " ) ; f u n c t i o n u ( e ) { r e t u r n A r r a y . f r o m ( e . q u e r y S e l e c t o r A l l ( " [ d a t a - t o o l b a r - i t e m ] " ) ) } f u n c t i o n d ( e , t , n , o , c ) { c o n s t [ l ] = O b j e c t ( r . u s e S t a t e ) ( t ) , [ i ] = O b j e c t ( r . u s e S t a t e ) ( o ) , d = O b j e c t ( r . u s e C a l l b a c k ) ( ( ) = > { ! f u n c t i o n ( e ) { c o n s t [ t ] = a . f o c u s . t a b b a b l e . f i n d ( e ) ; t & & t . f o c u s ( ) } ( e . c u r r e n t ) } , [ ] ) ; O b j e c t ( s . u s e S h o r t c u t ) ( " c o r e / b l o c k - e d i t o r / f o c u s - t o o l b a r " , d ) , O b j e c t ( r . u s e E f f e c t ) ( ( ) = > { l & & d ( ) } , [ n , l , d ] ) , O b j e c t ( r . u s e E f f e c t ) ( ( ) = > { l e t t = 0 ; r e t u r n i & & ! l & & ( t = w i n d o w . r e q u e s t A n i m a t i o n F r a m e ( ( ) = > { c o n s t t = u ( e . c u r r e n t ) , n = i | | 0 ; v a r o ; t [ n ] & & ( o = e . c u r r e n t ) . c o n t a i n s ( o . o w n e r D o c u m e n t . a c t i v e E l e m e n t ) & & t [ n ] . f o c u s ( ) } ) ) , ( ) = > { i f ( w i n d o w . c a n c e l A n i m a t i o n F r a m e ( t ) ,
2021-05-19 17:09:27 +02:00
/ * !
Copyright ( c ) 2018 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2021-11-23 06:40:38 +01:00
* /!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var c=typeof o;if("string"===c||"number"===c)e.push(o);else if(Array.isArray(o)){if(o.length){var l=r.apply(null,o);l&&e.push(l)}}else if("object"===c)if(o.toString===Object.prototype.toString)for(var i in o)n.call(o,i)&&o[i]&&e.push(i);else e.push(o.toString())}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},TVFh:function(e,t,n){"use strict";n.d(t,"b",(function(){return E}));var o=n("wx14"),r=n("GRId"),c=n("TSYQ"),l=n.n(c),i=n("1ZqX"),a=n("l3Sj"),s=n("K9lf"),u=n("YLtl"),d=n("BhPs"),b=n("PKbb");function p(e,t){const n="start"===t?"firstChild":"lastChild",o="start"===t?"nextSibling":"previousSibling";for(;e[n];)for(e=e[n];e.nodeType===e.TEXT_NODE&&/ ^ [ \ t \ n ] * $ / . test ( e . data ) && e [ o ] ; ) e = e [ o ] ; return e } function m ( e ) { const { isMultiSelecting : t , getMultiSelectedBlockClientIds : n , hasMultiSelection : o , getSelectedBlockClientId : r } = e ( d . a ) ; return { isMultiSelecting : t ( ) , multiSelectedBlockClientIds : n ( ) , hasMultiSelection : o ( ) , selectedBlockClientId : r ( ) } } function f ( ) { const { isMultiSelecting : e , multiSelectedBlockClientIds : t , hasMultiSelection : n , selectedBlockClientId : o } = Object ( i . useSelect ) ( m , [ ] ) , r = Object ( b . b ) ( o ) , c = Object ( b . b ) ( Object ( u . first ) ( t ) ) , l = Object ( b . b ) ( Object ( u . last ) ( t ) ) ; return Object ( s . useRefEffect ) ( i => { const { ownerDocument : a } = i , { defaultView : s } = a ; if ( ! n || e ) { if ( ! o || e ) return ; const t = s . getSelection ( ) ; if ( t . rangeCount && ! t . isCollapsed ) { const e = r . current , { startContainer : n , endContainer : o } = t . getRangeAt ( 0 ) ; ! e || e . contains ( n ) && e . contains ( o ) || t . removeAllRanges ( ) } return } const { length : u } = t ; if ( u < 2 ) return ; if ( ! c . current || ! l . current ) return ; i . focus ( ) ; const d = s . getSelection ( ) , b = a . createRange ( ) , m = p ( c . current , "start" ) , f = p ( l . current , "end" ) ; var h , g ; h = i , g = ! 1 , Array . from ( h . querySelectorAll ( ".rich-text" ) ) . forEach ( e => { g ? e . setAttribute ( "contenteditable" , ! 0 ) : e . removeAttribute ( "contenteditable" ) } ) , b . setStartBefore ( m ) , b . setEndAfter ( f ) , d . removeAllRanges ( ) , d . addRange ( b ) } , [ n , e , t , o ] ) } var h = n ( "1CF3" ) , g = n ( "RxS6" ) ; function O ( e ) { const { tagName : t } = e ; return "INPUT" === t || "BUTTON" === t || "SELECT" === t || "TEXTAREA" === t } var v = n ( "OL6h" ) ; function j ( e , t , n , o ) { let r , c = h . focus . focusable . find ( n ) ; return t && ( c = Object ( u . reverse ) ( c ) ) , c = c . slice ( c . indexOf ( e ) + 1 ) , o && ( r = e . getBoundingClientRect ( ) ) , Object ( u . find ) ( c , ( function ( e ) { if ( ! h . focus . tabbable . isTabbableIndex ( e ) ) return ! 1 ; if ( e . isContentEditable && "true" !== e . contentEditable ) return ! 1 ; if ( o ) { const t = e . getBoundingClientRect ( ) ; if ( t . left >= r . right || t . right <= r . left ) return ! 1 } return ! 0 } ) ) } function k ( ) { const { getSelectedBlockClientId : e , getMultiSelectedBlocksStartClientId : t , getMultiSelectedBlocksEndClientId : n , getPreviousBlockClientId : o , getNextBlockClientId : r , getFirstMultiSelectedBlockClientId : c , getLastMultiSelectedBlockClientId : l , getSettings : a , hasMultiSelection : u } = Object ( i . useSelect ) ( d . a ) , { multiSelect : b , selectBlock : p } = Object ( i . useDispatch ) ( d . a ) ; return Object ( s . useRefEffect ) ( i => { let s ; function d ( ) { s = null } function m ( c ) { const l = e ( ) , i = t ( ) , a = n ( ) , s = o ( a || l ) , u = r ( a || l ) , d = c ? s : u ; d && ( i === d ? p ( d ) : b ( i || l , d ) ) } function f ( e ) { const t = c ( ) , n = l ( ) , o = e ? t : n ; o && p ( o ) } function O ( t ) { const { keyCode : c , target : l } = t , d = c === g . UP , b = c === g . DOWN , p = c === g . LEFT , O = c === g . RIGHT , k = d || p , _ = p || O , y = d || b , E = _ || y , C = t . shiftKey , S = C || t . ctrlKey || t . altKey || t . metaKey , w = y ? h . isVerticalEdge : h . isHorizontalEdge , { ownerDocument : I } = i , { defaultView : B } = I ; if ( u ( ) ) { if ( E ) { ( C ? m : f ) ( k ) , t . preventDefault ( ) } return } if ( y ? s || ( s = Object ( h . computeCaretRect ) ( B ) ) : s = null , t . defaultPrevented ) return ; if ( ! E ) return ; if ( ! function ( e , t , n ) { if ( ( t === g . UP || t === g . DOWN ) && ! n ) return ! 0 ; const { tagName : o } = e ; return "INPUT" !== o && "TEXTAREA" !== o } ( l , c , S ) ) return ; const x = Object ( h . isRTL ) ( l ) ? ! k : k , { keepCaretInsideBlock : T } = a ( ) , P = e ( ) ; if ( C ) { const e = n ( ) , c = o ( e || P ) , a = r ( e || P ) ; ( k && c || ! k && a ) && function ( e , t ) { const n = j ( e , t , i ) ; return ! n || ! Object ( v . b ) ( e , n ) } ( l , k ) && w ( l , k ) && ( m ( k ) , t . preventDefault ( ) ) } else if ( y && Object ( h . isVerticalEdge ) ( l , k ) && ! T ) { const e = j ( l , k , i , ! 0 ) ; e && ( Object ( h . placeCaretAtVerticalEdge ) ( e , k , s ) , t . preventDefault ( ) ) } else if ( _ && B . getSelection ( ) . isCollapsed && Object ( h . isHorizontalEdge ) ( l , x ) && ! T ) { const e = j ( l , x , i
2021-11-08 15:29:21 +01:00
/ * *
* Checks if an event is supported in the current execution environment .
*
* NOTE : This will not work correctly for non - generic events such as ` change ` ,
* ` reset ` , ` load ` , ` error ` , and ` select ` .
*
* Borrows from Modernizr .
*
* @ param { string } eventNameSuffix Event name , e . g . "click" .
* @ param { ? boolean } capture Check if the capture phase is supported .
* @ return { boolean } True if the event is supported .
* @ internal
* @ license Modernizr 3.0 . 0 pre ( Custom Build ) | MIT
2021-11-23 06:40:38 +01:00
* /,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,c=n in document;if(!c){var l=document.createElement("div");l.setAttribute(n,"return;"),c="function"==typeof l[n]}return!c&&o&&"wheel"===e&&(c=document.implementation.hasFeature("Events.wheel","3.0")),c}},f8JO:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n("YLtl"),r=n("1ZqX"),c=n("HSyU"),l=n("wC17"),i=n("BhPs");function a(e){let{clientId:t}=e;const{attributes:n,name:a,reusableBlockTitle:s}=Object(r.useSelect)(e=>{if(!t)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=e(i.a),l=n(t);if(!l)return{};const a=Object(c.isReusableBlock)(Object(c.getBlockType)(l));return{attributes:o(t),name:l,reusableBlockTitle:a&&r(o(t).ref)}},[t]),u=Object(l.a)(t);if(!a||!u)return null;const d=Object(c.getBlockType)(a),b=d?Object(c.__experimentalGetBlockLabel)(d,n):null,p=s||b;return p&&p!==d.title?Object(o.truncate)(p,{length:35}):u.title}},fHnH:function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return T}));var o={grad:.9,turn:360,rad:360/ ( 2 * Math . PI ) } , r = function ( e ) { return "string" == typeof e ? e . length > 0 : "number" == typeof e } , c = function ( e , t , n ) { return void 0 === t && ( t = 0 ) , void 0 === n && ( n = Math . pow ( 10 , t ) ) , Math . round ( n * e ) / n + 0 } , l = function ( e , t , n ) { return void 0 === t && ( t = 0 ) , void 0 === n && ( n = 1 ) , e > n ? n : e > t ? e : t } , i = function ( e ) { return ( e = isFinite ( e ) ? e % 360 : 0 ) > 0 ? e : e + 360 } , a = function ( e ) { return { r : l ( e . r , 0 , 255 ) , g : l ( e . g , 0 , 255 ) , b : l ( e . b , 0 , 255 ) , a : l ( e . a ) } } , s = function ( e ) { return { r : c ( e . r ) , g : c ( e . g ) , b : c ( e . b ) , a : c ( e . a , 3 ) } } , u = /^#([0-9a-f]{3,8})$/i , d = function ( e ) { var t = e . toString ( 16 ) ; return t . length < 2 ? "0" + t : t } , b = function ( e ) { var t = e . r , n = e . g , o = e . b , r = e . a , c = Math . max ( t , n , o ) , l = c - Math . min ( t , n , o ) , i = l ? c === t ? ( n - o ) / l : c === n ? 2 + ( o - t ) / l : 4 + ( t - n ) / l : 0 ; return { h : 60 * ( i < 0 ? i + 6 : i ) , s : c ? l / c * 100 : 0 , v : c / 255 * 100 , a : r } } , p = function ( e ) { var t = e . h , n = e . s , o = e . v , r = e . a ; t = t / 360 * 6 , n /= 100 , o /= 100 ; var c = Math . floor ( t ) , l = o * ( 1 - n ) , i = o * ( 1 - ( t - c ) * n ) , a = o * ( 1 - ( 1 - t + c ) * n ) , s = c % 6 ; return { r : 255 * [ o , i , l , l , a , o ] [ s ] , g : 255 * [ a , o , o , i , l , l ] [ s ] , b : 255 * [ l , l , a , o , o , i ] [ s ] , a : r } } , m = function ( e ) { return { h : i ( e . h ) , s : l ( e . s , 0 , 100 ) , l : l ( e . l , 0 , 100 ) , a : l ( e . a ) } } , f = function ( e ) { return { h : c ( e . h ) , s : c ( e . s ) , l : c ( e . l ) , a : c ( e . a , 3 ) } } , h = function ( e ) { return p ( ( n = ( t = e ) . s , { h : t . h , s : ( n *= ( ( o = t . l ) < 50 ? o : 100 - o ) / 100 ) > 0 ? 2 * n / ( o + n ) * 100 : 0 , v : o + n , a : t . a } ) ) ; var t , n , o } , g = function ( e ) { return { h : ( t = b ( e ) ) . h , s : ( r = ( 200 - ( n = t . s ) ) * ( o = t . v ) / 100 ) > 0 && r < 200 ? n * o / 100 / ( r <= 100 ? r : 200 - r ) * 100 : 0 , l : r / 2 , a : t . a } ; var t , n , o , r } , O = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i , v = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i , j = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i , k = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i , _ = { string : [ [ function ( e ) { var t = u . exec ( e ) ; return t ? ( e = t [ 1 ] ) . length <= 4 ? { r : parseInt ( e [ 0 ] + e [ 0 ] , 16 ) , g : parseInt ( e [ 1 ] + e [ 1 ] , 16 ) , b : parseInt ( e [ 2 ] + e [ 2 ] , 16 ) , a : 4 === e . length ? c ( parseInt ( e [ 3 ] + e [ 3 ] , 16 ) / 255 , 2 ) : 1 } : 6 === e . length || 8 === e . length ? { r : parseInt ( e . substr ( 0 , 2 ) , 16 ) , g : parseInt ( e . substr ( 2 , 2 ) , 16 ) , b : parseInt ( e . substr ( 4 , 2 ) , 16 ) , a : 8 === e . length ? c ( parseInt ( e . substr ( 6 , 2 ) , 16 ) / 255 , 2 ) : 1 } : null : null } , "hex" ] , [ function ( e ) { var t = j . exec ( e ) || k . exec ( e ) ; return t ? t [ 2 ] !== t [ 4 ] || t [ 4 ] !== t [ 6 ] ? null : a ( { r : Number ( t [ 1 ] ) / ( t [ 2 ] ? 100 / 255 : 1 ) , g : Number ( t [ 3 ] ) / ( t [ 4 ] ? 100 / 255 : 1 ) , b : Number ( t [ 5 ] ) / ( t [ 6 ] ? 100 / 255 : 1 ) , a : void 0 === t [ 7 ] ? 1 : Number ( t [ 7 ] ) / ( t [ 8 ] ? 100 : 1 ) } ) : null } , "rgb" ] , [ function ( e ) { var t = O . exec ( e ) || v . exec ( e ) ; if ( ! t ) return null ; var n , r , c = m ( { h : ( n = t [ 1 ] , r = t [ 2 ] , void 0 === r && ( r = "deg" ) , Number ( n ) * ( o [ r ] || 1 ) ) , s : Number ( t [ 3 ] ) , l : Number ( t [ 4 ] ) , a : void 0 === t [ 5 ] ? 1 : Number ( t [ 5 ] ) / ( t [ 6 ] ? 100 : 1 ) } ) ; return h ( c ) } , "hsl" ] ] , object : [ [ function ( e ) { var t = e . r , n = e . g , o = e . b , c = e . a , l = void 0 === c ? 1 : c ; return r ( t ) && r ( n ) && r ( o ) ? a ( { r : Number ( t ) , g : Number ( n ) , b : Number ( o ) , a : Number ( l ) } ) : null } , "rgb" ] , [ function ( e ) { var t = e . h , n = e . s , o = e . l , c = e . a , l = void 0 === c ? 1 : c ; if ( ! r ( t ) || ! r ( n ) || ! r ( o ) ) return null ; var i = m ( { h : Number ( t ) , s : Number ( n )