2019-10-26 02:17:07 +02:00
/*! This file is auto-generated */
2021-05-25 10:40:25 +02:00
this . wp = this . wp || { } , this . wp . blockLibrary = function ( e ) { var t = { } ; function o ( n ) { if ( t [ n ] ) return t [ n ] . exports ; var r = t [ n ] = { i : n , l : ! 1 , exports : { } } ; return e [ n ] . call ( r . exports , r , r . exports , o ) , r . l = ! 0 , r . exports } return o . m = e , o . c = t , o . d = function ( e , t , n ) { o . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : n } ) } , o . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , o . t = function ( e , t ) { if ( 1 & t && ( e = o ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var n = Object . create ( null ) ; if ( o . r ( n ) , Object . defineProperty ( n , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var r in e ) o . d ( n , r , function ( t ) { return e [ t ] } . bind ( null , r ) ) ; return n } , o . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return o . d ( t , "a" , t ) , t } , o . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , o . p = "" , o ( o . s = "./node_modules/@wordpress/block-library/build-module/index.js" ) } ( { "./node_modules/@babel/runtime/helpers/esm/extends.js" : function ( e , t , o ) { "use strict" ; function n ( ) { return ( n = Object . assign || function ( e ) { for ( var t = 1 ; t < arguments . length ; t ++ ) { var o = arguments [ t ] ; for ( var n in o ) Object . prototype . hasOwnProperty . call ( o , n ) && ( e [ n ] = o [ n ] ) } return e } ) . apply ( this , arguments ) } o . d ( t , "a" , ( function ( ) { return n } ) ) } , "./node_modules/@wordpress/block-library/build-module/index.js" : function ( e , t , o ) { "use strict" ; o . r ( t ) , o . d ( t , "__experimentalGetCoreBlocks" , ( function ( ) { return mm } ) ) , o . d ( t , "registerCoreBlocks" , ( function ( ) { return bm } ) ) , o . d ( t , "__experimentalRegisterExperimentalCoreBlocks" , ( function ( ) { return pm } ) ) ; var n = { } ; o . r ( n ) , o . d ( n , "metadata" , ( function ( ) { return ze } ) ) , o . d ( n , "name" , ( function ( ) { return Pe } ) ) , o . d ( n , "settings" , ( function ( ) { return Ne } ) ) ; var r = { } ; o . r ( r ) , o . d ( r , "metadata" , ( function ( ) { return Qt } ) ) , o . d ( r , "name" , ( function ( ) { return Yt } ) ) , o . d ( r , "settings" , ( function ( ) { return Jt } ) ) ; var a = { } ; o . r ( a ) , o . d ( a , "metadata" , ( function ( ) { return po } ) ) , o . d ( a , "name" , ( function ( ) { return go } ) ) , o . d ( a , "settings" , ( function ( ) { return ho } ) ) ; var c = { } ; o . r ( c ) , o . d ( c , "metadata" , ( function ( ) { return _o } ) ) , o . d ( c , "name" , ( function ( ) { return ko } ) ) , o . d ( c , "settings" , ( function ( ) { return Eo } ) ) ; var l = { } ; o . r ( l ) , o . d ( l , "metadata" , ( function ( ) { return $o } ) ) , o . d ( l , "name" , ( function ( ) { return Zo } ) ) , o . d ( l , "settings" , ( function ( ) { return Qo } ) ) ; var i = { } ; o . r ( i ) , o . d ( i , "metadata" , ( function ( ) { return Xo } ) ) , o . d ( i , "name" , ( function ( ) { return en } ) ) , o . d ( i , "settings" , ( function ( ) { return tn } ) ) ; var s = { } ; o . r ( s ) , o . d ( s , "metadata" , ( function ( ) { return ln } ) ) , o . d ( s , "name" , ( function ( ) { return sn } ) ) , o . d ( s , "settings" , ( function ( ) { return un } ) ) ; var u = { } ; o . r ( u ) , o . d ( u , "metadata" , ( function ( ) { return Cn } ) ) , o . d ( u , "name" , ( function ( ) { return xn } ) ) , o . d ( u , "settings" , ( function ( ) { return Sn } ) ) ; var d = { } ; o . r ( d ) , o . d ( d , "metadata" , ( function ( ) { return Nn } ) ) , o . d ( d , "name" , ( function ( ) { return Mn } ) ) , o . d ( d , "settings" , ( function ( ) { return Vn } ) ) ; var m = { } ; o . r ( m ) , o . d ( m , "metadata" , ( function ( ) { return Dn } ) ) , o . d ( m , "name" , ( function ( ) { return Fn } ) ) , o . d ( m , "settings" , ( function ( ) { return Un } ) ) ; var b = { } ; o . r ( b ) , o . d ( b , "metadata" , ( function ( ) { return Wn } ) ) , o . d ( b , "name" , ( function ( ) { return $n } ) ) , o . d ( b , "settings" , ( function ( ) { return Zn } ) ) ; var p = { } ; o . r ( p ) , o . d ( p , "metadata" , ( function ( ) { return Xn } ) ) , o . d ( p , "name" , ( function ( ) { return er } ) ) , o . d ( p , "settings" , ( function ( ) { return tr } ) ) ; var g = { } ; o . r ( g ) , o . d ( g , "metadata" , ( function ( ) { return gr } ) ) , o . d ( g , "name" , ( function ( ) { return hr } ) ) , o . d ( g , "settings" , ( function ( ) { return vr } ) ) ; var h = { } ; o . r ( h ) , o . d ( h , "metadata" , ( function ( ) { return yr } ) ) , o . d ( h , "name" , ( function ( ) { return wr } ) ) , o . d ( h , "settings" , ( function ( ) { return _r } ) ) ; var v = { } ; o . r ( v ) , o . d ( v , "metadata" , ( function ( ) { return $r } ) ) , o . d ( v , "name" , ( function ( ) { return Zr } ) ) , o . d ( v , "settings" , ( function ( ) { return Qr } ) ) ; var O = { } ; o . r ( O ) , o . d ( O , "metadata" , ( function ( ) { return xa } ) ) , o . d ( O , "name" , ( function ( ) { return Sa } ) ) , o . d ( O , "settings" , ( function ( ) { return Ba } ) ) ; var j = { } ; o . r ( j ) , o . d ( j , "metadata" , ( function ( ) { return Aa } ) ) , o . d ( j , "name" , ( function ( ) { return Ia } ) ) , o . d ( j , "settings" , ( function ( ) { return Da } ) ) ; var f = { } ; o . r ( f ) , o . d ( f , "metadata" , ( function ( ) { return Ga } ) ) , o . d ( f , "name" , ( function ( ) { return qa } ) ) , o . d ( f , " settings
2021-05-20 14:20:04 +02:00
/ * ! * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Copyright ( c ) Microsoft Corporation .
Permission to use , copy , modify , and / or distribute this software for any
purpose with or without fee is hereby granted .
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS . IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL , DIRECT ,
INDIRECT , OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE , DATA OR PROFITS , WHETHER IN AN ACTION OF CONTRACT , NEGLIGENCE OR
OTHER TORTIOUS ACTION , ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE .
2021-05-25 10:40:25 +02:00
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * / v a r n t = f u n c t i o n ( e , t ) { r e t u r n ( n t = O b j e c t . s e t P r o t o t y p e O f | | { _ _ p r o t o _ _ : [ ] } i n s t a n c e o f A r r a y & & f u n c t i o n ( e , t ) { e . _ _ p r o t o _ _ = t } | | f u n c t i o n ( e , t ) { f o r ( v a r o i n t ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , o ) & & ( e [ o ] = t [ o ] ) } ) ( e , t ) } ; v a r r t = f u n c t i o n ( ) { r e t u r n ( r t = O b j e c t . a s s i g n | | f u n c t i o n ( e ) { f o r ( v a r t , o = 1 , n = a r g u m e n t s . l e n g t h ; o < n ; o + + ) f o r ( v a r r i n t = a r g u m e n t s [ o ] ) O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , r ) & & ( e [ r ] = t [ r ] ) ; r e t u r n e } ) . a p p l y ( t h i s , a r g u m e n t s ) } ; O b j e c t . c r e a t e ; O b j e c t . c r e a t e ; v a r a t = o ( " r e a c t " ) , c t = o . n ( a t ) , l t = o ( " . / n o d e _ m o d u l e s / n o r m a l i z e - w h e e l / i n d e x . j s " ) , i t = o . n ( l t ) ; f u n c t i o n s t ( e , t , o , n , r , a ) { v o i d 0 = = = a & & ( a = 0 ) ; v a r c = f t ( e , t , a ) , l = c . w i d t h , i = c . h e i g h t , s = M a t h . m i n ( l , o ) , u = M a t h . m i n ( i , n ) ; r e t u r n s > u * r ? { w i d t h : u * r , h e i g h t : u } : { w i d t h : s , h e i g h t : s / r } } f u n c t i o n u t ( e , t , o , n , r ) { v o i d 0 = = = r & & ( r = 0 ) ; v a r a = f t ( t . w i d t h , t . h e i g h t , r ) , c = a . w i d t h , l = a . h e i g h t ; r e t u r n { x : d t ( e . x , c , o . w i d t h , n ) , y : d t ( e . y , l , o . h e i g h t , n ) } } f u n c t i o n d t ( e , t , o , n ) { v a r r = t * n / 2 - o / 2 ; r e t u r n M a t h . m i n ( r , M a t h . m a x ( e , - r ) ) } f u n c t i o n m t ( e , t ) { r e t u r n M a t h . s q r t ( M a t h . p o w ( e . y - t . y , 2 ) + M a t h . p o w ( e . x - t . x , 2 ) ) } f u n c t i o n b t ( e , t ) { r e t u r n 1 8 0 * M a t h . a t a n 2 ( t . y - e . y , t . x - e . x ) / M a t h . P I } f u n c t i o n p t ( e , t , o , n , r , a , c ) { v o i d 0 = = = a & & ( a = 0 ) , v o i d 0 = = = c & & ( c = ! 0 ) ; v a r l = c & & 0 = = = a ? g t : h t , i = { x : l ( 1 0 0 , ( ( t . w i d t h - o . w i d t h / r ) / 2 - e . x / r ) / t . w i d t h * 1 0 0 ) , y : l ( 1 0 0 , ( ( t . h e i g h t - o . h e i g h t / r ) / 2 - e . y / r ) / t . h e i g h t * 1 0 0 ) , w i d t h : l ( 1 0 0 , o . w i d t h / t . w i d t h * 1 0 0 / r ) , h e i g h t : l ( 1 0 0 , o . h e i g h t / t . h e i g h t * 1 0 0 / r ) } , s = M a t h . r o u n d ( l ( t . n a t u r a l W i d t h , i . w i d t h * t . n a t u r a l W i d t h / 1 0 0 ) ) , u = M a t h . r o u n d ( l ( t . n a t u r a l H e i g h t , i . h e i g h t * t . n a t u r a l H e i g h t / 1 0 0 ) ) , d = t . n a t u r a l W i d t h > = t . n a t u r a l H e i g h t * n ? { w i d t h : M a t h . r o u n d ( u * n ) , h e i g h t : u } : { w i d t h : s , h e i g h t : M a t h . r o u n d ( s / n ) } ; r e t u r n { c r o p p e d A r e a P e r c e n t a g e s : i , c r o p p e d A r e a P i x e l s : r t ( r t ( { } , d ) , { x : M a t h . r o u n d ( l ( t . n a t u r a l W i d t h - d . w i d t h , i . x * t . n a t u r a l W i d t h / 1 0 0 ) ) , y : M a t h . r o u n d ( l ( t . n a t u r a l H e i g h t - d . h e i g h t , i . y * t . n a t u r a l H e i g h t / 1 0 0 ) ) } ) } } f u n c t i o n g t ( e , t ) { r e t u r n M a t h . m i n ( e , M a t h . m a x ( 0 , t ) ) } f u n c t i o n h t ( e , t ) { r e t u r n t } f u n c t i o n v t ( e , t , o ) { v a r n = t . w i d t h / t . n a t u r a l W i d t h , r = f u n c t i o n ( e , t , o ) { v a r n = t . w i d t h / t . n a t u r a l W i d t h ; i f ( o ) r e t u r n o . h e i g h t > o . w i d t h ? o . h e i g h t / n / e . h e i g h t : o . w i d t h / n / e . w i d t h ; v a r r = e . w i d t h / e . h e i g h t ; r e t u r n t . n a t u r a l W i d t h > = t . n a t u r a l H e i g h t * r ? t . n a t u r a l H e i g h t / e . h e i g h t : t . n a t u r a l W i d t h / e . w i d t h } ( e , t , o ) , a = n * r ; r e t u r n { c r o p : { x : ( ( t . n a t u r a l W i d t h - e . w i d t h ) / 2 - e . x ) * a , y : ( ( t . n a t u r a l H e i g h t - e . h e i g h t ) / 2 - e . y ) * a } , z o o m : r } } f u n c t i o n O t ( e , t ) { r e t u r n { x : ( t . x + e . x ) / 2 , y : ( t . y + e . y ) / 2 } } f u n c t i o n j t ( e , t , o , n , r ) { v a r a = M a t h . c o s , c = M a t h . s i n , l = r * M a t h . P I / 1 8 0 ; r e t u r n [ ( e - o ) * a ( l ) - ( t - n ) * c ( l ) + o , ( e - o ) * c ( l ) + ( t - n ) * a ( l ) + n ] } f u n c t i o n f t ( e , t , o ) { v a r n = e / 2 , r = t / 2 , a = [ j t ( 0 , 0 , n , r , o ) , j t ( e , 0 , n , r , o ) , j t ( e , t , n , r , o ) , j t ( 0 , t , n , r , o ) ] , c = M a t h . m i n . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 0 ] } ) ) ) , l = M a t h . m a x . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 0 ] } ) ) ) , i = M a t h . m i n . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 1 ] } ) ) ) ; r e t u r n { w i d t h : l - c , h e i g h t : M a t h . m a x . a p p l y ( M a t h , a . m a p ( ( f u n c t i o n ( e ) { r e t u r n e [ 1 ] } ) ) ) - i } } f u n c t i o n y t ( ) { f o r ( v a r e = [ ] , t = 0 ; t < a r g u m e n t s . l e n g t h ; t + + ) e [ t ] = a r g u m e n t s [ t ] ; r e t u r n e . f i l t e r ( ( f u n c t i o n ( e ) { r e t u r n " s t r i n g " = = t y p e o f e & & e . l e n g t h > 0 } ) ) . j o i n ( " " ) . t r i m ( ) } v a r w t = f u n c t i o n ( e ) { f u n c t i o n t ( ) { v a r o = n u l l ! = = e & & e . a p p l y ( t h i s , a r g u m e n t s ) | | t h i s ; r e t u r n o . i m a g e R e f = n u l l , o . v i d e o R e f = n u l l , o . c o n t a i n e r R e f = n u l l , o . s t y l e R e f = n u l l , o . c o n t a i n e r R e c t = n u l l , o . m e d i a S i z e = { w i d t h : 0 , h e i g h t : 0 , n a t u r a l W i d t h : 0 , n a t u r a l H e i g h t : 0 } , o . d r a g S t a r t P o s i t i o n = { x : 0 , y : 0 } , o . d r a g S t a r t C r o p = { x : 0 , y : 0 } , o . l a s t P i n c h D i s t a n c e = 0 , o . l a s t P i n c h R o t a t i o n = 0 , o . r a f D r a g T i m e o u t = n u l l , o . r a f P i n c h T i m e o u t = n u l l , o . w h e e l T i m e r = n u l l , o . s t a t e = { c r o p S i z e : n u l l , h a s W h e e l J u s t S t a r t e d : ! 1 } , o . p r e v e n t Z o o m S a f a r i = f u n c t i o n ( e ) { r e t u r n e . p r e v e n t D e f a u l t ( ) } , o . c l e a n E v e n t s = f u n c t i o n ( ) { d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " m o u s e m o v e " , o . o n M o u s e M o v e ) , d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " m o u s e u p " , o . o n D r a g S t o p p e d ) , d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " t o u c h m o v e " , o . o n T o u c h M o v e ) , d o c u m e n t . r e m o v e E v e n t L i s t e n e r ( " t o u c h e n d " , o . o n D r a g S t o p p e d ) } , o . c l e a r S c r o l l E v e n t = f u n c t i o n ( ) { o . c o n t a i n e r R e f & & o . c o n t a i n e r R e f . r e m o v e E v e n t L i s t e n e r ( " w h e e l " , o . o n W h e e l ) , o . w h e e l T i m e r & & c l e a r T i m e o u t ( o . w h e e l T i m e r ) } , o . o n M e d i a L o a d = f u n c t i o n ( ) { o . c o m p u t e S i z e s ( ) , o . e m i t C r o p D a t a ( ) , o . s e t I n i t i a l C r o p ( ) , o . p r o p s . o n M e d i a L o a d e d & & o . p r o p s . o n M e d i a L o a d e d ( o . m e d i a S i z e ) } , o . s e t I n i t i a l C r o p = f u n c t i o n ( ) { v a r e = o . p r o p s , t = e . i n i t i a l C r o p p e d A r e a P i x e l s , n = e . c r o p S i z e ; i f ( t ) { v a r r
2018-12-14 05:11:47 +01:00
/ * !
2021-04-15 17:19:43 +02:00
Copyright ( c ) 2018 Jed Watson .
2018-12-14 05:11:47 +01:00
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2021-05-25 10:40:25 +02:00
* /!function(){"use strict";var o=function(){function e(){}function t(e,t){for(var o=t.length,n=0;n<o;++n)r(e,t[n])}e.prototype=Object.create(null);var o={}.hasOwnProperty;var n=/ \ s + / ; f u n c t i o n r ( e , r ) { i f ( r ) { v a r a = t y p e o f r ; " s t r i n g " = = = a ? f u n c t i o n ( e , t ) { f o r ( v a r o = t . s p l i t ( n ) , r = o . l e n g t h , a = 0 ; a < r ; + + a ) e [ o [ a ] ] = ! 0 } ( e , r ) : A r r a y . i s A r r a y ( r ) ? t ( e , r ) : " o b j e c t " = = = a ? f u n c t i o n ( e , t ) { i f ( t . t o S t r i n g = = = O b j e c t . p r o t o t y p e . t o S t r i n g ) f o r ( v a r n i n t ) o . c a l l ( t , n ) & & ( e [ n ] = ! ! t [ n ] ) ; e l s e e [ t . t o S t r i n g ( ) ] = ! 0 } ( e , r ) : " n u m b e r " = = = a & & f u n c t i o n ( e , t ) { e [ t ] = ! 0 } ( e , r ) } } r e t u r n f u n c t i o n ( ) { f o r ( v a r o = a r g u m e n t s . l e n g t h , n = A r r a y ( o ) , r = 0 ; r < o ; r + + ) n [ r ] = a r g u m e n t s [ r ] ; v a r a = n e w e ; t ( a , n ) ; v a r c = [ ] ; f o r ( v a r l i n a ) a [ l ] & & c . p u s h ( l ) ; r e t u r n c . j o i n ( " " ) } } ( ) ; e . e x p o r t s ? ( o . d e f a u l t = o , e . e x p o r t s = o ) : v o i d 0 = = = ( n = f u n c t i o n ( ) { r e t u r n o } . a p p l y ( t , [ ] ) ) | | ( e . e x p o r t s = n ) } ( ) } , " . / n o d e _ m o d u l e s / c l a s s n a m e s / i n d e x . j s " : f u n c t i o n ( e , t , o ) { v a r n ;
2021-01-28 03:04:13 +01:00
/ * !
2021-04-15 17:19:43 +02:00
Copyright ( c ) 2018 Jed Watson .
2021-01-28 03:04:13 +01:00
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2021-05-25 10:40:25 +02:00
* / ! f u n c t i o n ( ) { " u s e s t r i c t " ; v a r o = { } . h a s O w n P r o p e r t y ; f u n c t i o n r ( ) { f o r ( v a r e = [ ] , t = 0 ; t < a r g u m e n t s . l e n g t h ; t + + ) { v a r n = a r g u m e n t s [ t ] ; i f ( n ) { v a r a = t y p e o f n ; i f ( " s t r i n g " = = = a | | " n u m b e r " = = = a ) e . p u s h ( n ) ; e l s e i f ( A r r a y . i s A r r a y ( n ) ) { i f ( n . l e n g t h ) { v a r c = r . a p p l y ( n u l l , n ) ; c & & e . p u s h ( c ) } } e l s e i f ( " o b j e c t " = = = a ) i f ( n . t o S t r i n g = = = O b j e c t . p r o t o t y p e . t o S t r i n g ) f o r ( v a r l i n n ) o . c a l l ( n , l ) & & n [ l ] & & e . p u s h ( l ) ; e l s e e . p u s h ( n . t o S t r i n g ( ) ) } } r e t u r n e . j o i n ( " " ) } e . e x p o r t s ? ( r . d e f a u l t = r , e . e x p o r t s = r ) : v o i d 0 = = = ( n = f u n c t i o n ( ) { r e t u r n r } . a p p l y ( t , [ ] ) ) | | ( e . e x p o r t s = n ) } ( ) } , " . / n o d e _ m o d u l e s / f a s t - a v e r a g e - c o l o r / d i s t / i n d e x . j s " : f u n c t i o n ( e , t , o ) {
2019-10-15 17:37:08 +02:00
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
2021-05-25 10:40:25 +02:00
e . exports = function ( ) { "use strict" ; function e ( e , t ) { for ( var o = 0 ; o < t . length ; o ++ ) { var n = t [ o ] ; n . enumerable = n . enumerable || ! 1 , n . configurable = ! 0 , "value" in n && ( n . writable = ! 0 ) , Object . defineProperty ( e , n . key , n ) } } function t ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var o = [ ] , n = ! 0 , r = ! 1 , a = void 0 ; try { for ( var c , l = e [ Symbol . iterator ] ( ) ; ! ( n = ( c = l . next ( ) ) . done ) && ( o . push ( c . value ) , ! t || o . length !== t ) ; n = ! 0 ) ; } catch ( e ) { r = ! 0 , a = e } finally { try { n || null == l . return || l . return ( ) } finally { if ( r ) throw a } } return o } ( e , t ) || function ( ) { throw new TypeError ( "Invalid attempt to destructure non-iterable instance" ) } ( ) } return function ( ) { function o ( ) { ! function ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } ( this , o ) } var n , r , a ; return n = o , ( r = [ { key : "getColorAsync" , value : function ( e , t , o ) { e . complete ? t . call ( e , this . getColor ( e , o ) , o && o . data ) : this . _bindImageEvents ( e , t , o ) } } , { key : "getColor" , value : function ( e , t ) { t = t || { } ; var o = this . _getDefaultColor ( t ) , n = this . _getOriginalSize ( e ) , r = this . _prepareSizeAndPosition ( n , t ) , a = null , c = o ; if ( ! ( r . srcWidth && r . srcHeight && r . destWidth && r . destHeight ) ) return this . _prepareResult ( o , new Error ( "FastAverageColor: Incorrect sizes." ) ) ; if ( ! this . _ctx && ( this . _canvas = this . _makeCanvas ( ) , this . _ctx = this . _canvas . getContext && this . _canvas . getContext ( "2d" ) , ! this . _ctx ) ) return this . _prepareResult ( o , new Error ( "FastAverageColor: Canvas Context 2D is not supported in this browser." ) ) ; this . _canvas . width = r . destWidth , this . _canvas . height = r . destHeight ; try { this . _ctx . clearRect ( 0 , 0 , r . destWidth , r . destHeight ) , this . _ctx . drawImage ( e , r . srcLeft , r . srcTop , r . srcWidth , r . srcHeight , 0 , 0 , r . destWidth , r . destHeight ) ; var l = this . _ctx . getImageData ( 0 , 0 , r . destWidth , r . destHeight ) . data ; c = this . getColorFromArray4 ( l , t ) } catch ( e ) { a = e } return this . _prepareResult ( c , a ) } } , { key : "getColorFromArray4" , value : function ( e , t ) { t = t || { } ; var o = e . length ; if ( o < 4 ) return this . _getDefaultColor ( t ) ; var n = o - o % 4 , r = 4 * ( t . step || 1 ) , a = "_" + ( t . algorithm || "sqrt" ) + "Algorithm" ; if ( "function" != typeof this [ a ] ) throw new Error ( "FastAverageColor: " . concat ( t . algorithm , " is unknown algorithm." ) ) ; return this [ a ] ( e , n , r ) } } , { key : "destroy" , value : function ( ) { delete this . _canvas , delete this . _ctx } } , { key : "_getDefaultColor" , value : function ( e ) { return this . _getOption ( e , "defaultColor" , [ 255 , 255 , 255 , 255 ] ) } } , { key : "_getOption" , value : function ( e , t , o ) { return void 0 === e [ t ] ? o : e [ t ] } } , { key : "_prepareSizeAndPosition" , value : function ( e , t ) { var o , n = this . _getOption ( t , "left" , 0 ) , r = this . _getOption ( t , "top" , 0 ) , a = this . _getOption ( t , "width" , e . width ) , c = this . _getOption ( t , "height" , e . height ) , l = a , i = c ; return "precision" === t . mode || ( a > c ? ( o = a / c , l = 100 , i = Math . round ( l / o ) ) : ( o = c / a , i = 100 , l = Math . round ( i / o ) ) , ( l > a || i > c || l < 10 || i < 10 ) && ( l = a , i = c ) ) , { srcLeft : n , srcTop : r , srcWidth : a , srcHeight : c , destWidth : l , destHeight : i } } } , { key : "_simpleAlgorithm" , value : function ( e , t , o ) { for ( var n = 0 , r = 0 , a = 0 , c = 0 , l = 0 , i = 0 ; i < t ; i += o ) { var s = e [ i + 3 ] ; n += e [ i ] * s , r += e [ i + 1 ] * s , a += e [ i + 2 ] * s , c += s , l ++ } return c ? [ Math . round ( n / c ) , Math . round ( r / c ) , Math . round ( a / c ) , Math . round ( c / l ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_sqrtAlgorithm" , value : function ( e , t , o ) { for ( var n = 0 , r = 0 , a = 0 , c = 0 , l = 0 , i = 0 ; i < t ; i += o ) { var s = e [ i ] , u = e [ i + 1 ] , d = e [ i + 2 ] , m = e [ i + 3 ] ; n += s * s * m , r += u * u * m , a += d * d * m , c += m , l ++ } return c ? [ Math . round ( Math . sqrt ( n / c ) ) , Math . round ( Math . sqrt ( r / c ) ) , Math . round ( Math . sqrt ( a / c ) ) , Math . round ( c / l ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_dominantAlgorithm" , value : function ( e , o , n ) { for ( var r = { } , a = 0 ; a < o ; a += n ) { var c = e [ a ] , l = e [ a + 1 ] , i = e [ a + 2 ] , s = e [ a + 3 ] , u = Math . round ( c / 24 ) + "," + Math . round ( l / 24 ) + "," + Math . round ( i / 24 ) ; r [ u ] ? r [ u ] = [ r [ u ] [ 0 ] + c * s , r [ u ] [ 1 ] + l * s , r [ u ] [ 2 ] + i * s , r [ u ] [ 3 ] + s , r [ u ] [ 4 ] + 1 ] : r [ u ] = [ c * s , l * s , i * s , s , 1 ] } var d = t ( Object . keys ( r ) . map ( ( function ( e ) { return r [ e ] } ) ) . sort ( ( function ( e , t ) { var o = e [ 4 ] , n = t [ 4 ] ; return o > n ? - 1 : o === n ? 0 : 1 } ) ) [ 0 ] , 5 ) , m = d [ 0 ] , b = d [ 1 ] , p = d [ 2 ] , g = d [ 3 ] , h = d [ 4 ] ; return g ? [ Math . round ( m / g ) , Math . round ( b / g ) , Math . round ( p / g ) , Math . round ( g / h ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_bindImageEvents" , value : function ( e , t , o ) { var n = this , r = ( o = o || { } ) && o . data , a = this . _getDefaultColor ( o ) , c = function ( ) { s ( ) , t . call ( e , n . getColor ( e , o ) , r ) } , l = function ( ) { s ( ) , t . call ( e , n . _prepareResult ( a , new Error ( "Image error" ) ) , r ) } , i = function ( ) { s ( ) , t . call ( e , n . _prepareResult ( a , new Error ( "Image abort" ) ) , r ) } , s = function ( ) { e . removeEventListener ( "load" , c ) , e . remo
2020-12-01 13:19:43 +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-05-25 10:40:25 +02:00
* / , e . e x p o r t s = f u n c t i o n ( e , t ) { i f ( ! r . c a n U s e D O M | | t & & ! ( " a d d E v e n t L i s t e n e r " i n d o c u m e n t ) ) r e t u r n ! 1 ; v a r o = " o n " + e , a = o i n d o c u m e n t ; i f ( ! a ) { v a r c = d o c u m e n t . c r e a t e E l e m e n t ( " d i v " ) ; c . s e t A t t r i b u t e ( o , " r e t u r n ; " ) , a = " f u n c t i o n " = = t y p e o f c [ o ] } r e t u r n ! a & & n & & " w h e e l " = = = e & & ( a = d o c u m e n t . i m p l e m e n t a t i o n . h a s F e a t u r e ( " E v e n t s . w h e e l " , " 3 . 0 " ) ) , a } } , " . / n o d e _ m o d u l e s / n o r m a l i z e - w h e e l / s r c / n o r m a l i z e W h e e l . j s " : f u n c t i o n ( e , t , o ) { " u s e s t r i c t " ; v a r n = o ( " . / n o d e _ m o d u l e s / n o r m a l i z e - w h e e l / s r c / U s e r A g e n t _ D E P R E C A T E D . j s " ) , r = o ( " . / n o d e _ m o d u l e s / n o r m a l i z e - w h e e l / s r c / i s E v e n t S u p p o r t e d . j s " ) ; f u n c t i o n a ( e ) { v a r t = 0 , o = 0 , n = 0 , r = 0 ; r e t u r n " d e t a i l " i n e & & ( o = e . d e t a i l ) , " w h e e l D e l t a " i n e & & ( o = - e . w h e e l D e l t a / 1 2 0 ) , " w h e e l D e l t a Y " i n e & & ( o = - e . w h e e l D e l t a Y / 1 2 0 ) , " w h e e l D e l t a X " i n e & & ( t = - e . w h e e l D e l t a X / 1 2 0 ) , " a x i s " i n e & & e . a x i s = = = e . H O R I Z O N T A L _ A X I S & & ( t = o , o = 0 ) , n = 1 0 * t , r = 1 0 * o , " d e l t a Y " i n e & & ( r = e . d e l t a Y ) , " d e l t a X " i n e & & ( n = e . d e l t a X ) , ( n | | r ) & & e . d e l t a M o d e & & ( 1 = = e . d e l t a M o d e ? ( n * = 4 0 , r * = 4 0 ) : ( n * = 8 0 0 , r * = 8 0 0 ) ) , n & & ! t & & ( t = n < 1 ? - 1 : 1 ) , r & & ! o & & ( o = r < 1 ? - 1 : 1 ) , { s p i n X : t , s p i n Y : o , p i x e l X : n , p i x e l Y : r } } a . g e t E v e n t T y p e = f u n c t i o n ( ) { r e t u r n n . f i r e f o x ( ) ? " D O M M o u s e S c r o l l " : r ( " w h e e l " ) ? " w h e e l " : " m o u s e w h e e l " } , e . e x p o r t s = a } , " . / n o d e _ m o d u l e s / t i n y c o l o r 2 / t i n y c o l o r . j s " : f u n c t i o n ( e , t , o ) { v a r n ; ! f u n c t i o n ( r ) { v a r a = / ^ \ s + / , c = / \ s + $ / , l = 0 , i = r . r o u n d , s = r . m i n , u = r . m a x , d = r . r a n d o m ; f u n c t i o n m ( e , t ) { i f ( t = t | | { } , ( e = e | | " " ) i n s t a n c e o f m ) r e t u r n e ; i f ( ! ( t h i s i n s t a n c e o f m ) ) r e t u r n n e w m ( e , t ) ; v a r o = f u n c t i o n ( e ) { v a r t = { r : 0 , g : 0 , b : 0 } , o = 1 , n = n u l l , l = n u l l , i = n u l l , d = ! 1 , m = ! 1 ; " s t r i n g " = = t y p e o f e & & ( e = f u n c t i o n ( e ) { e = e . r e p l a c e ( a , " " ) . r e p l a c e ( c , " " ) . t o L o w e r C a s e ( ) ; v a r t , o = ! 1 ; i f ( T [ e ] ) e = T [ e ] , o = ! 0 ; e l s e i f ( " t r a n s p a r e n t " = = e ) r e t u r n { r : 0 , g : 0 , b : 0 , a : 0 , f o r m a t : " n a m e " } ; i f ( t = U . r g b . e x e c ( e ) ) r e t u r n { r : t [ 1 ] , g : t [ 2 ] , b : t [ 3 ] } ; i f ( t = U . r g b a . e x e c ( e ) ) r e t u r n { r : t [ 1 ] , g : t [ 2 ] , b : t [ 3 ] , a : t [ 4 ] } ; i f ( t = U . h s l . e x e c ( e ) ) r e t u r n { h : t [ 1 ] , s : t [ 2 ] , l : t [ 3 ] } ; i f ( t = U . h s l a . e x e c ( e ) ) r e t u r n { h : t [ 1 ] , s : t [ 2 ] , l : t [ 3 ] , a : t [ 4 ] } ; i f ( t = U . h s v . e x e c ( e ) ) r e t u r n { h : t [ 1 ] , s : t [ 2 ] , v : t [ 3 ] } ; i f ( t = U . h s v a . e x e c ( e ) ) r e t u r n { h : t [ 1 ] , s : t [ 2 ] , v : t [ 3 ] , a : t [ 4 ] } ; i f ( t = U . h e x 8 . e x e c ( e ) ) r e t u r n { r : V ( t [ 1 ] ) , g : V ( t [ 2 ] ) , b : V ( t [ 3 ] ) , a : A ( t [ 4 ] ) , f o r m a t : o ? " n a m e " : " h e x 8 " } ; i f ( t = U . h e x 6 . e x e c ( e ) ) r e t u r n { r : V ( t [ 1 ] ) , g : V ( t [ 2 ] ) , b : V ( t [ 3 ] ) , f o r m a t : o ? " n a m e " : " h e x " } ; i f ( t = U . h e x 4 . e x e c ( e ) ) r e t u r n { r : V ( t [ 1 ] + " " + t [ 1 ] ) , g : V ( t [ 2 ] + " " + t [ 2 ] ) , b : V ( t [ 3 ] + " " + t [ 3 ] ) , a : A ( t [ 4 ] + " " + t [ 4 ] ) , f o r m a t : o ? " n a m e " : " h e x 8 " } ; i f ( t = U . h e x 3 . e x e c ( e ) ) r e t u r n { r : V ( t [ 1 ] + " " + t [ 1 ] ) , g : V ( t [ 2 ] + " " + t [ 2 ] ) , b : V ( t [ 3 ] + " " + t [ 3 ] ) , f o r m a t : o ? " n a m e " : " h e x " } ; r e t u r n ! 1 } ( e ) ) ; " o b j e c t " = = t y p e o f e & & ( G ( e . r ) & & G ( e . g ) & & G ( e . b ) ? ( b = e . r , p = e . g , g = e . b , t = { r : 2 5 5 * N ( b , 2 5 5 ) , g : 2 5 5 * N ( p , 2 5 5 ) , b : 2 5 5 * N ( g , 2 5 5 ) } , d = ! 0 , m = " % " = = = S t r i n g ( e . r ) . s u b s t r ( - 1 ) ? " p r g b " : " r g b " ) : G ( e . h ) & & G ( e . s ) & & G ( e . v ) ? ( n = R ( e . s ) , l = R ( e . v ) , t = f u n c t i o n ( e , t , o ) { e = 6 * N ( e , 3 6 0 ) , t = N ( t , 1 0 0 ) , o = N ( o , 1 0 0 ) ; v a r n = r . f l o o r ( e ) , a = e - n , c = o * ( 1 - t ) , l = o * ( 1 - a * t ) , i = o * ( 1 - ( 1 - a ) * t ) , s = n % 6 ; r e t u r n { r : 2 5 5 * [ o , l , c , c , i , o ] [ s ] , g : 2 5 5 * [ i , o , o , l , c , c ] [ s ] , b : 2 5 5 * [ c , c , i , o , o , l ] [ s ] } } ( e . h , n , l ) , d = ! 0 , m = " h s v " ) : G ( e . h ) & & G ( e . s ) & & G ( e . l ) & & ( n = R ( e . s ) , i = R ( e . l ) , t = f u n c t i o n ( e , t , o ) { v a r n , r , a ; f u n c t i o n c ( e , t , o ) { r e t u r n o < 0 & & ( o + = 1 ) , o > 1 & & ( o - = 1 ) , o < 1 / 6 ? e + 6 * ( t - e ) * o : o < . 5 ? t : o < 2 / 3 ? e + ( t - e ) * ( 2 / 3 - o ) * 6 : e } i f ( e = N ( e , 3 6 0 ) , t = N ( t , 1 0 0 ) , o = N ( o , 1 0 0 ) , 0 = = = t ) n = r = a = o ; e l s e { v a r l = o < . 5 ? o * ( 1 + t ) : o + t - o * t , i = 2 * o - l ; n = c ( i , l , e + 1 / 3 ) , r = c ( i , l , e ) , a = c ( i , l , e - 1 / 3 ) } r e t u r n { r : 2 5 5 * n , g : 2 5 5 * r , b : 2 5 5 * a } } ( e . h , n , i ) , d = ! 0 , m = " h s l " ) , e . h a s O w n P r o p e r t y ( " a " ) & & ( o = e . a ) ) ; v a r b , p , g ; r e t u r n o = P ( o ) , { o k : d , f o r m a t : e . f o r m a t | | m , r : s ( 2 5 5 , u ( t . r , 0 ) ) , g : s ( 2 5 5 , u ( t . g , 0 ) ) , b : s ( 2 5 5 , u ( t . b , 0 ) ) , a : o } } ( e ) ; t h i s . _ o r i g i n a l I n p u t = e , t h i s . _ r = o . r , t h i s . _ g = o . g , t h i s . _ b = o . b , t h i s . _ a = o . a , t h i s . _ r o u n d A = i ( 1 0 0 * t h i s . _ a ) / 1 0 0 , t h i s . _ f o r m a t = t . f o r m a t | | o . f o r m a t , t h i s . _ g r a d i e n t T y p e = t . g r a d i e n t T y p e , t h i s . _ r < 1 & & ( t h i s . _ r = i ( t h i s . _ r ) ) , t h i s . _ g < 1 & & ( t h i s . _ g = i ( t h i s . _ g ) ) , t h i s . _ b < 1 & & ( t h i s . _ b = i ( t h i s . _ b ) ) , t h i s . _ o k = o . o k , t h i s . _ t c _ i d = l + + } f u n c t i o n b ( e , t , o ) { e = N ( e , 2 5 5 ) , t = N ( t , 2 5 5 ) , o = N ( o , 2 5 5 ) ; v a r n , r , a = u ( e , t , o ) , c = s ( e , t , o ) , l = ( a + c ) / 2 ; i f ( a = = c ) n = r = 0 ; e l s e { v a r i = a - c ; s w i t c h ( r = l > . 5 ? i / ( 2 - a - c ) : i / ( a + c ) , a ) { c a s e e : n = ( t - o ) / i + ( t < o ? 6 : 0 ) ; b r e a k ; c a s e t : n = ( o - e ) / i + 2 ; b r e a k ; c a s e o : n = ( e - t ) / i + 4 } n / = 6 } r e t u r n { h : n , s : r , l : l } } f u n c t i o n p ( e , t , o ) { e = N ( e , 2 5 5 ) , t = N ( t , 2 5 5 ) , o = N ( o , 2 5 5 ) ; v a r n , r , a = u ( e , t , o ) , c = s ( e , t , o ) , l = a , i = a - c ; i f ( r = 0 = = = a ? 0 : i / a , a = = c ) n = 0 ; e l s e { s w i t c h ( a ) { c a s e e : n = ( t - o ) / i + ( t < o ? 6 : 0 ) ; b r e a k ; c a s e t : n = ( o - e ) / i + 2 ; b r e a k ; c a s e o : n = ( e - t ) / i + 4 } n / = 6 } r e t u r n { h : n , s : r , v : l } } f u n c t i o n g ( e , t , o , n ) { v a r r = [ H ( i ( e ) . t o S t r i n g ( 1 6 ) ) , H ( i ( t ) . t o S t r i n g ( 1 6 ) ) , H ( i ( o ) . t o S t r i n g ( 1 6 )