2019-10-26 02:17:07 +02:00
/*! This file is auto-generated */
2021-02-02 06:17:13 +01:00
this . wp = this . wp || { } , this . wp . blockLibrary = function ( e ) { var t = { } ; function r ( n ) { if ( t [ n ] ) return t [ n ] . exports ; var c = t [ n ] = { i : n , l : ! 1 , exports : { } } ; return e [ n ] . call ( c . exports , c , c . exports , r ) , c . l = ! 0 , c . exports } return r . m = e , r . c = t , r . d = function ( e , t , n ) { r . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : n } ) } , r . r = function ( e ) { "undefined" != typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , r . t = function ( e , t ) { if ( 1 & t && ( e = r ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var n = Object . create ( null ) ; if ( r . r ( n ) , Object . defineProperty ( n , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var c in e ) r . d ( n , c , function ( t ) { return e [ t ] } . bind ( null , c ) ) ; return n } , r . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return r . d ( t , "a" , t ) , t } , r . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , r . p = "" , r ( r . s = 455 ) } ( { 0 : function ( e , t ) { e . exports = window . wp . element } , 1 : function ( e , t ) { e . exports = window . wp . i18n } , 10 : function ( e , t , r ) { var n ;
2018-12-14 05:11:47 +01:00
/ * !
Copyright ( c ) 2017 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2021-02-02 06:17:13 +01:00
* / ! f u n c t i o n ( ) { " u s e s t r i c t " ; v a r r = { } . h a s O w n P r o p e r t y ; f u n c t i o n c ( ) { 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 o = t y p e o f n ; i f ( " s t r i n g " = = = o | | " n u m b e r " = = = o ) 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 ) & & n . l e n g t h ) { v a r a = c . a p p l y ( n u l l , n ) ; a & & e . p u s h ( a ) } e l s e i f ( " o b j e c t " = = = o ) f o r ( v a r i i n n ) r . c a l l ( n , i ) & & n [ i ] & & e . p u s h ( i ) } } r e t u r n e . j o i n ( " " ) } e . e x p o r t s ? ( c . d e f a u l t = c , e . e x p o r t s = c ) : v o i d 0 = = = ( n = f u n c t i o n ( ) { r e t u r n c } . a p p l y ( t , [ ] ) ) | | ( e . e x p o r t s = n ) } ( ) } , 1 1 : f u n c t i o n ( e , t , r ) { " u s e s t r i c t " ; r . d ( t , " a " , ( f u n c t i o n ( ) { r e t u r n a } ) ) ; v a r n = r ( 3 8 ) ; v a r c = r ( 3 1 ) , o = r ( 3 9 ) ; f u n c t i o n a ( e , t ) { r e t u r n O b j e c t ( n . a ) ( e ) | | f u n c t i o n ( e , t ) { i f ( " u n d e f i n e d " ! = t y p e o f S y m b o l & & S y m b o l . i t e r a t o r i n O b j e c t ( e ) ) { v a r r = [ ] , n = ! 0 , c = ! 1 , o = v o i d 0 ; t r y { f o r ( v a r a , i = e [ S y m b o l . i t e r a t o r ] ( ) ; ! ( n = ( a = i . n e x t ( ) ) . d o n e ) & & ( r . p u s h ( a . v a l u e ) , ! t | | r . l e n g t h ! = = t ) ; n = ! 0 ) ; } c a t c h ( e ) { c = ! 0 , o = e } f i n a l l y { t r y { n | | n u l l = = i . r e t u r n | | i . r e t u r n ( ) } f i n a l l y { i f ( c ) t h r o w o } } r e t u r n r } } ( e , t ) | | O b j e c t ( c . a ) ( e , t ) | | O b j e c t ( o . a ) ( ) } } , 1 1 4 : f u n c t i o n ( e , t ) { e . e x p o r t s = w i n d o w . w p . v i e w p o r t } , 1 1 5 : f u n c t i o n ( e , t ) { e . e x p o r t s = w i n d o w . w p . a u t o p } , 1 1 7 : f u n c t i o n ( e , t , r ) { v a r n ;
2021-01-28 03:04:13 +01:00
/ * !
Copyright ( c ) 2017 Jed Watson .
Licensed under the MIT License ( MIT ) , see
http : //jedwatson.github.io/classnames
2021-02-02 06:17:13 +01:00
* /!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var r=t.length,n=0;n<r;++n)c(e,t[n])}e.prototype=Object.create(null);var r={}.hasOwnProperty;var n=/ \ s + /;function c(e,c){if(c){var o=typeof c;"string"===o?function(e,t){for(var r=t.split(n),c=r.length,o=0;o<c;++o)e[r[o]]=!0}(e,c):Array.isArray(c)?t(e,c):"object"===o?function(e,t){for(var n in t)r.call(t,n)&&(e[n]=!!t[n])}(e,c):"number"===o&&function(e,t){e[t]=!0}(e,c)}}return function(){for(var r=arguments.length,n=Array(r),c=0;c<r;c++)n[c]=arguments[c];var o=new e;t(o,n);var a=[];for(var i in o)o[i]&&a.push(i);return a.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},12:function(e,t){e.exports=window.wp.compose},13:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(44);function c(e,t){if(null==e)return{};var r,c,o=Object(n.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(c=0;c<a.length;c++)r=a[c],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},138:function(e,t,r){"use strict";var n=r(5),c=r(13),o=r(0);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}t.a=function(e){var t=e.icon,r=e.size,i=void 0===r?24:r,l=Object(c.a)(e,["icon","size"]);return Object(o.cloneElement)(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){Object(n.a)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({width:i,height:i},l))}},14:function(e,t){e.exports=window.React},146:function(e,t){e.exports=window.wp.reusableBlocks},15:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(24);var c=r(37),o=r(31);function a(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||Object(c.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},159:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http:/ / www . w3 . org / 2000 / svg ",viewBox:" 0 0 24 24 "},Object(n.createElement)(c.Path,{d:" M13 11.9 l3 . 3 - 3.4 - 1.1 - 1 - 3.2 3.3 - 3.2 - 3.3 - 1.1 1 3.3 3.4 - 3.5 3.6 1 1 L12 13 l3 . 5 3.5 1 - 1 z "}));t.a=o},161:function(e,t,r){" use strict ";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:" http : //www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M18.3 5.6L9.9 16.9l-4.6-3.4-.9 1.2 5.8 4.3 9.3-12.6z"}));t.a=o},17:function(e,t){e.exports=window.wp.keycodes},18:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,"a",(function(){return n}))},19:function(e,t,r){"use strict";function n(e){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.d(t,"a",(function(){return n}))},192:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"}));t.a=o},2:function(e,t){e.exports=window.lodash},21:function(e,t){e.exports=window.wp.richText},217:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4
2019-10-15 17:37:08 +02:00
/*! Fast Average Color | © 2019 Denis Seleznev | MIT License | https://github.com/hcodes/fast-average-color/ */
2021-02-02 06:17:13 +01:00
e . exports = function ( ) { "use strict" ; function e ( e , t ) { for ( var r = 0 ; r < t . length ; r ++ ) { var n = t [ r ] ; n . enumerable = n . enumerable || ! 1 , n . configurable = ! 0 , "value" in n && ( n . writable = ! 0 ) , Object . defineProperty ( e , n . key , n ) } } function t ( e , t ) { return function ( e ) { if ( Array . isArray ( e ) ) return e } ( e ) || function ( e , t ) { var r = [ ] , n = ! 0 , c = ! 1 , o = void 0 ; try { for ( var a , i = e [ Symbol . iterator ] ( ) ; ! ( n = ( a = i . next ( ) ) . done ) && ( r . push ( a . value ) , ! t || r . length !== t ) ; n = ! 0 ) ; } catch ( e ) { c = ! 0 , o = e } finally { try { n || null == i . return || i . return ( ) } finally { if ( c ) throw o } } return r } ( e , t ) || function ( ) { throw new TypeError ( "Invalid attempt to destructure non-iterable instance" ) } ( ) } return function ( ) { function r ( ) { ! function ( e , t ) { if ( ! ( e instanceof t ) ) throw new TypeError ( "Cannot call a class as a function" ) } ( this , r ) } var n , c , o ; return n = r , ( c = [ { key : "getColorAsync" , value : function ( e , t , r ) { e . complete ? t . call ( e , this . getColor ( e , r ) , r && r . data ) : this . _bindImageEvents ( e , t , r ) } } , { key : "getColor" , value : function ( e , t ) { t = t || { } ; var r = this . _getDefaultColor ( t ) , n = this . _getOriginalSize ( e ) , c = this . _prepareSizeAndPosition ( n , t ) , o = null , a = r ; if ( ! ( c . srcWidth && c . srcHeight && c . destWidth && c . destHeight ) ) return this . _prepareResult ( r , 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 ( r , new Error ( "FastAverageColor: Canvas Context 2D is not supported in this browser." ) ) ; this . _canvas . width = c . destWidth , this . _canvas . height = c . destHeight ; try { this . _ctx . clearRect ( 0 , 0 , c . destWidth , c . destHeight ) , this . _ctx . drawImage ( e , c . srcLeft , c . srcTop , c . srcWidth , c . srcHeight , 0 , 0 , c . destWidth , c . destHeight ) ; var i = this . _ctx . getImageData ( 0 , 0 , c . destWidth , c . destHeight ) . data ; a = this . getColorFromArray4 ( i , t ) } catch ( e ) { o = e } return this . _prepareResult ( a , o ) } } , { key : "getColorFromArray4" , value : function ( e , t ) { t = t || { } ; var r = e . length ; if ( r < 4 ) return this . _getDefaultColor ( t ) ; var n = r - r % 4 , c = 4 * ( t . step || 1 ) , o = "_" + ( t . algorithm || "sqrt" ) + "Algorithm" ; if ( "function" != typeof this [ o ] ) throw new Error ( "FastAverageColor: " . concat ( t . algorithm , " is unknown algorithm." ) ) ; return this [ o ] ( e , n , c ) } } , { 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 , r ) { return void 0 === e [ t ] ? r : e [ t ] } } , { key : "_prepareSizeAndPosition" , value : function ( e , t ) { var r , n = this . _getOption ( t , "left" , 0 ) , c = this . _getOption ( t , "top" , 0 ) , o = this . _getOption ( t , "width" , e . width ) , a = this . _getOption ( t , "height" , e . height ) , i = o , l = a ; return "precision" === t . mode || ( o > a ? ( r = o / a , i = 100 , l = Math . round ( i / r ) ) : ( r = a / o , l = 100 , i = Math . round ( l / r ) ) , ( i > o || l > a || i < 10 || l < 10 ) && ( i = o , l = a ) ) , { srcLeft : n , srcTop : c , srcWidth : o , srcHeight : a , destWidth : i , destHeight : l } } } , { key : "_simpleAlgorithm" , value : function ( e , t , r ) { for ( var n = 0 , c = 0 , o = 0 , a = 0 , i = 0 , l = 0 ; l < t ; l += r ) { var s = e [ l + 3 ] ; n += e [ l ] * s , c += e [ l + 1 ] * s , o += e [ l + 2 ] * s , a += s , i ++ } return a ? [ Math . round ( n / a ) , Math . round ( c / a ) , Math . round ( o / a ) , Math . round ( a / i ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_sqrtAlgorithm" , value : function ( e , t , r ) { for ( var n = 0 , c = 0 , o = 0 , a = 0 , i = 0 , l = 0 ; l < t ; l += r ) { var s = e [ l ] , u = e [ l + 1 ] , b = e [ l + 2 ] , m = e [ l + 3 ] ; n += s * s * m , c += u * u * m , o += b * b * m , a += m , i ++ } return a ? [ Math . round ( Math . sqrt ( n / a ) ) , Math . round ( Math . sqrt ( c / a ) ) , Math . round ( Math . sqrt ( o / a ) ) , Math . round ( a / i ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_dominantAlgorithm" , value : function ( e , r , n ) { for ( var c = { } , o = 0 ; o < r ; o += n ) { var a = e [ o ] , i = e [ o + 1 ] , l = e [ o + 2 ] , s = e [ o + 3 ] , u = Math . round ( a / 24 ) + "," + Math . round ( i / 24 ) + "," + Math . round ( l / 24 ) ; c [ u ] ? c [ u ] = [ c [ u ] [ 0 ] + a * s , c [ u ] [ 1 ] + i * s , c [ u ] [ 2 ] + l * s , c [ u ] [ 3 ] + s , c [ u ] [ 4 ] + 1 ] : c [ u ] = [ a * s , i * s , l * s , s , 1 ] } var b = t ( Object . keys ( c ) . map ( ( function ( e ) { return c [ e ] } ) ) . sort ( ( function ( e , t ) { var r = e [ 4 ] , n = t [ 4 ] ; return r > n ? - 1 : r === n ? 0 : 1 } ) ) [ 0 ] , 5 ) , m = b [ 0 ] , d = b [ 1 ] , p = b [ 2 ] , g = b [ 3 ] , h = b [ 4 ] ; return g ? [ Math . round ( m / g ) , Math . round ( d / g ) , Math . round ( p / g ) , Math . round ( g / h ) ] : [ 0 , 0 , 0 , 0 ] } } , { key : "_bindImageEvents" , value : function ( e , t , r ) { var n = this , c = ( r = r || { } ) && r . data , o = this . _getDefaultColor ( r ) , a = function ( ) { s ( ) , t . call ( e , n . getColor ( e , r ) , c ) } , i = function ( ) { s ( ) , t . call ( e , n . _prepareResult ( o , new Error ( "Image error" ) ) , c ) } , l = function ( ) { s ( ) , t . call ( e , n . _prepareResult ( o , new Error ( "Image abort" ) ) , c ) } , s = function ( ) { e . removeEventListener ( "load" , a ) , 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-02-02 06:17:13 +01:00
* /,e.exports=function(e,t){if(!c.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,o=r in document;if(!o){var a=document.createElement("div");a.setAttribute(r,"return;"),o="function"==typeof a[r]}return!o&&n&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},318:function(e,t,r){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),c={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=c},319:function(e,t,r){"use strict";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{viewBox:"0 0 24 24",xmlns:"http:/ / www . w3 . org / 2000 / svg "},Object(n.createElement)(c.Path,{d:" M19 6.5 H5c - 1.1 0 - 2 . 9 - 2 2 v7c0 1.1 . 9 2 2 2 h14c1 . 1 0 2 - . 9 2 - 2 v - 7 c0 - 1.1 - . 9 - 2 - 2 - 2 zm . 5 9 c0 . 3 - . 2.5 - . 5.5 H5c - . 3 0 - . 5 - . 2 - . 5 - . 5 v - 7 c0 - . 3.2 - . 5.5 - . 5 h14c . 3 0 . 5.2 . 5.5 v7zM8 13 h8v - 1.5 H8V13z "}));t.a=o},32:function(e,t){e.exports=window.wp.url},320:function(e,t,r){" use strict ";var n=r(0),c=r(7),o=Object(n.createElement)(c.SVG,{viewBox:" 0 0 24 24 ",xmlns:" http : //www.w3.org/2000/svg"},Object(n.createElement)(c.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));t.a=o},33:function(e,t){e.exports=window.wp.hooks},35:function(e,t){e.exports=window.wp.deprecated},37:function(e,t,r){"use strict";function n(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}r.d(t,"a",(function(){return n}))},38:function(e,t,r){"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,"a",(function(){return n}))},39:function(e,t,r){"use strict";function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,"a",(function(){return n}))},4:function(e,t){e.exports=window.wp.data},42:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,"a",(function(){return n}))},43:function(e,t){e.exports=window.wp.blob},44:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,c={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(c[r]=e[r]);return c}r.d(t,"a",(function(){return n}))},45:function(e,t){e.exports=window.moment},455:function(e,t,r){"use strict";r.r(t),r.d(t,"__experimentalGetCoreBlocks",(function(){return Bb})),r.d(t,"registerCoreBlocks",(function(){return Tb})),r.d(t,"__experimentalRegisterExperimentalCoreBlocks",(function(){return zb}));var n={};r.r(n),r.d(n,"metadata",(function(){return je})),r.d(n,"name",(function(){return ye})),r.d(n,"settings",(function(){return we}));var c={};r.r(c),r.d(c,"metadata",(function(){return Wt})),r.d(c,"name",(function(){return qt})),r.d(c,"settings",(function(){return Zt}));var o={};r.r(o),r.d(o,"metadata",(function(){return dr})),r.d(o,"name",(function(){return pr})),r.d(o,"settings",(function(){return gr}));var a={};r.r(a),r.d(a,"metadata",(function(){return Pr})),r.d(a,"name",(function(){return Br})),r.d(a,"settings",(function(){return Tr}));var i={};r.r(i),r.d(i,"metadata",(function(){return bn})),r.d(i,"name",(function(){return mn})),r.d(i,"settings",(function(){return dn}));var l={};r.r(l),r.d(l,"metadata",(function(){return fn})),r.d(l,"name",(function(){return On})),r.d(l,"settings",(function(){return vn}));var s={};r.r(s),r.d(s,"metadata",(function(){return En})),r.d(s,"name",(function(){return Cn})),r.d(s,"settings",(function(){return xn}));var u={};r.r(u),r.d(u,"metadata",(function(){return ac})),r.d(u,"name",(function(){return ic})),r.d(u,"settings",(function(){return lc}));var b={};r.r(b),r.d(b,"metadata",(function(){return wc})),r.d(b,"name",(function(){return _c})),r.d(b,"settings",(function(){return kc}));
2020-06-26 15:33:47 +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-02-08 04:37:09 +01:00
var qe = function ( e , t ) { return ( qe = Object . setPrototypeOf || { _ _proto _ _ : [ ] } instanceof Array && function ( e , t ) { e . _ _proto _ _ = t } || function ( e , t ) { for ( var r in t ) Object . prototype . hasOwnProperty . call ( t , r ) && ( e [ r ] = t [ r ] ) } ) ( e , t ) } ; var Ze = function ( ) { return ( Ze = Object . assign || function ( e ) { for ( var t , r = 1 , n = arguments . length ; r < n ; r ++ ) for ( var c in t = arguments [ r ] ) Object . prototype . hasOwnProperty . call ( t , c ) && ( e [ c ] = t [ c ] ) ; return e } ) . apply ( this , arguments ) } ; Object . create ; Object . create ; var $e = r ( 14 ) , Ye = r . n ( $e ) , Ke = r ( 282 ) , Je = r . n ( Ke ) ; function Xe ( e , t , r , n , c , o ) { void 0 === o && ( o = 0 ) ; var a = st ( e , t , o ) , i = a . width , l = a . height , s = Math . min ( i , r ) , u = Math . min ( l , n ) ; return s > u * c ? { width : u * c , height : u } : { width : s , height : s / c } } function Qe ( e , t , r , n , c ) { void 0 === c && ( c = 0 ) ; var o = st ( t . width , t . height , c ) , a = o . width , i = o . height ; return { x : et ( e . x , a , r . width , n ) , y : et ( e . y , i , r . height , n ) } } function et ( e , t , r , n ) { var c = t * n / 2 - r / 2 ; return Math . min ( c , Math . max ( e , - c ) ) } function tt ( e , t ) { return Math . sqrt ( Math . pow ( e . y - t . y , 2 ) + Math . pow ( e . x - t . x , 2 ) ) } function rt ( e , t ) { return 180 * Math . atan2 ( t . y - e . y , t . x - e . x ) / Math . PI } function nt ( e , t , r , n , c , o , a ) { void 0 === o && ( o = 0 ) , void 0 === a && ( a = ! 0 ) ; var i = a && 0 === o ? ct : ot , l = { x : i ( 100 , ( ( t . width - r . width / c ) / 2 - e . x / c ) / t . width * 100 ) , y : i ( 100 , ( ( t . height - r . height / c ) / 2 - e . y / c ) / t . height * 100 ) , width : i ( 100 , r . width / t . width * 100 / c ) , height : i ( 100 , r . height / t . height * 100 / c ) } , s = Math . round ( i ( t . naturalWidth , l . width * t . naturalWidth / 100 ) ) , u = Math . round ( i ( t . naturalHeight , l . height * t . naturalHeight / 100 ) ) , b = t . naturalWidth >= t . naturalHeight * n ? { width : Math . round ( u * n ) , height : u } : { width : s , height : Math . round ( s / n ) } ; return { croppedAreaPercentages : l , croppedAreaPixels : Ze ( Ze ( { } , b ) , { x : Math . round ( i ( t . naturalWidth - b . width , l . x * t . naturalWidth / 100 ) ) , y : Math . round ( i ( t . naturalHeight - b . height , l . y * t . naturalHeight / 100 ) ) } ) } } function ct ( e , t ) { return Math . min ( e , Math . max ( 0 , t ) ) } function ot ( e , t ) { return t } function at ( e , t , r ) { var n = t . width / t . naturalWidth , c = function ( e , t , r ) { var n = t . width / t . naturalWidth ; if ( r ) return r . height > r . width ? r . height / n / e . height : r . width / n / e . width ; var c = e . width / e . height ; return t . naturalWidth >= t . naturalHeight * c ? t . naturalHeight / e . height : t . naturalWidth / e . width } ( e , t , r ) , o = n * c ; return { crop : { x : ( ( t . naturalWidth - e . width ) / 2 - e . x ) * o , y : ( ( t . naturalHeight - e . height ) / 2 - e . y ) * o } , zoom : c } } function it ( e , t ) { return { x : ( t . x + e . x ) / 2 , y : ( t . y + e . y ) / 2 } } function lt ( e , t , r , n , c ) { var o = Math . cos , a = Math . sin , i = c * Math . PI / 180 ; return [ ( e - r ) * o ( i ) - ( t - n ) * a ( i ) + r , ( e - r ) * a ( i ) + ( t - n ) * o ( i ) + n ] } function st ( e , t , r ) { var n = e / 2 , c = t / 2 , o = [ lt ( 0 , 0 , n , c , r ) , lt ( e , 0 , n , c , r ) , lt ( e , t , n , c , r ) , lt ( 0 , t , n , c , r ) ] , a = Math . min . apply ( Math , o . map ( ( function ( e ) { return e [ 0 ] } ) ) ) , i = Math . max . apply ( Math , o . map ( ( function ( e ) { return e [ 0 ] } ) ) ) , l = Math . min . apply ( Math , o . map ( ( function ( e ) { return e [ 1 ] } ) ) ) ; return { width : i - a , height : Math . max . apply ( Math , o . map ( ( function ( e ) { return e [ 1 ] } ) ) ) - l } } function ut ( ) { for ( var e = [ ] , t = 0 ; t < arguments . length ; t ++ ) e [ t ] = arguments [ t ] ; return e . filter ( ( function ( e ) { return "string" == typeof e && e . length > 0 } ) ) . join ( " " ) . trim ( ) } var bt = function ( e ) { function t ( ) { var r = null !== e && e . apply ( this , arguments ) || this ; return r . imageRef = null , r . videoRef = null , r . containerRef = null , r . styleRef = null , r . containerRect = null , r . mediaSize = { width : 0 , height : 0 , naturalWidth : 0 , naturalHeight : 0 } , r . dragStartPosition = { x : 0 , y : 0 } , r . dragStartCrop = { x : 0 , y : 0 } , r . lastPinchDistance = 0 , r . lastPinchRotation = 0 , r . rafDragTimeout = null , r . rafPinchTimeout = null , r . wheelTimer = null , r . state = { cropSize : null , hasWheelJustStarted : ! 1 } , r . preventZoomSafari = function ( e ) { return e . preventDefault ( ) } , r . cleanEvents = function ( ) { document . removeEventListener ( "mousemove" , r . onMouseMove ) , document . removeEventListener ( "mouseup" , r . onDragStopped ) , document . removeEventListener ( "touchmove" , r . onTouchMove ) , document . removeEventListener ( "touchend" , r . onDragStopped ) } , r . clearScrollEvent = function ( ) { r . containerRef && r . containerRef . removeEventListener ( "wheel" , r . onWheel ) , r . wheelTimer && clearTimeout ( r . wheelTimer ) } , r . onMediaLoad = function ( ) { r . computeSizes ( ) , r . emitCropData ( ) , r . setInitialCrop ( ) , r . props . onMediaLoaded && r . props . onMediaLoaded ( r . mediaSize ) } , r . setInitialCrop = function ( ) { var e = r . props , t = e . initialCroppedAreaPixels , n = e . cropSize ; if ( t ) { var c = at ( t , r . mediaSize , n ) , o = c . crop , a = c . zoom ; r . props . onCropChange ( o ) , r . props . onZoomChange && r . props . onZoomChange ( a ) } } , r . computeSiz