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IAEK,EAAS,SAAW,IACrB,EAAM,IAAI,aAAc,WACxB,EAAW,IAAI,UAAW,GAC1B,KAAK,EAAG,aAAc,OACtB,KAAK,iBAAgB,WACjB,KAAK,KAAM,SAAS,EAAM,IAC9B,KAGJ,IAAI,EAAQ,KACR,EAAW,SAAU,GAEvB,GADA,EAAQ,KACH,EAAK,eACD,EAAK,kBACN,EAAY,EAAK,iBAAiB,WAF1C,CAOA,IAAI,EAAK,EAAe,QAEpB,IAAO,IACP,EAAQ,EACR,EAAS,EAAY,CACjB,MAAM,EACN,MAAO,GACP,OAAO,EACP,SAAU,WACN,EAAO,OAAQ,EAAW,SAC9B,IAZR,CAeF,EAEA,EAAE,GAAQ,QAAQ,WACT,GACD,aAAa,GAEjB,EAAQ,WAAW,EAAU,IACjC,IACA,GACJ,IAGO,CACX","file":"/npm/galleria@1.6.1/src/themes/folio/galleria.folio.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/galleria@1.6.1/src/themes/folio/galleria.folio.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/**\n * Galleria Folio Theme\n *\n *\n * Copyright (c) 2010 - 2019 worse is better UG\n * Licensed under the MIT License.\n */\n\n( function( window, factory ) {\n    if ( typeof define == 'function' && define.amd ) {\n        define( ['../galleria', 'jquery' ], function( Galleria, jQuery ) {\n            return factory( window, Galleria, jQuery );\n        });\n    } else if ( typeof module == 'object' && module.exports ) {\n        module.exports = factory(\n            window,\n            require('galleria'),\n            require('jquery')\n        );\n    } else {\n        factory(\n            window,\n            window.Galleria,\n            window.jQuery\n        );\n    }\n}( window, function factory( window, Galleria, $ ) {\n\n/*global jQuery, Galleria, window */\n\nGalleria.addTheme({\n    name: 'folio',\n    version: 1.60,\n    author: 'Galleria',\n    css: 'galleria.folio.css',\n    defaults: {\n        transition: 'pulse',\n        thumbCrop: 'width',\n        imageCrop: false,\n        carousel: false,\n        show: false,\n        easing: 'galleriaOut',\n        trueFullscreen: false,\n\n        _webkitCursor: false,\n        _animate: true,\n        _center: false, /* Set this to false for now, for backwards compability */\n        _onClick: null\n    },\n    init: function(options) {\n\n        Galleria.requires( 1.6, 'This version of Folio theme requires Galleria version 1.6 or later');\n        \n        this.addElement( 'preloader', 'loaded', 'close' ).append({\n            container: 'preloader',\n            preloader: 'loaded',\n            stage: 'close'\n        });\n\n        var self = this,\n            stage = this.$('stage'),\n            thumbnails = this.$('thumbnails'),\n            thumbContainer = this.$('thumbnails-container'),\n            images = this.$('images'),\n            info = this.$('info'),\n            loader = this.$('loader'),\n            target = this.$('target'),\n            len = 0,\n            width = target.width(),\n            center = options._center,\n            colWidth = 0,\n            colMargin = 0,\n\n            HASH = window.location.hash.substr( 2 ),\n\n            adjustInfo = function( width ) {\n                self.$('info').css({\n                    left: self.finger ? 20 : Math.max(20, ( $(window).width()/2 - width/2 + 10 ) )\n                });\n            },\n\n            mi = function( arr ) { return Math.min.apply( window, arr ); },\n\n            ma = function(arr) { return Math.max.apply( window, arr ); },\n\n            masonry = function( elem, options ) {\n\n                options = $.extend({\n                    speed: 400,\n                    width: 190,\n                    onbrick: function(){},\n                    onheight: function(){},\n                    delay: 0,\n                    debug: false\n                }, options );\n\n                elem = $(elem);\n\n                var bricks = elem.children(),\n                    width = elem.width(),\n                    colCount = Math.floor( width / options.width ),\n                    colHeight = [],\n                    i,\n                    thisCol,\n                    sz,\n                    mH,\n                    css = {\n                        'float': 'none',\n                        position: 'absolute',\n                        display: Galleria.SAFARI ? 'inline-block' : 'block'\n                    };\n\n                if ( center ) {\n                  var width = thumbContainer.width();\n                  var margin = (width-(colCount*colWidth-10))/2; // TODO calc margin dynamic\n                  thumbnails.css('left', colCount ? margin : 0);\n                }\n\n                if ( elem.data('colCount') === colCount ) {\n                    return;\n                }\n\n                elem.data( 'colCount', colCount );\n\n                if ( !bricks.length ) {\n                    return;\n                }\n\n                for ( i = 0; i < colCount; i++ ) {\n                    colHeight[ i ] = 0;\n                }\n\n                elem.css( 'position', 'relative' );\n\n                bricks.css( css ).each( function( j, brick ) {\n\n                    brick = $( brick );\n\n                    for ( i = colCount-1; i > -1; i-- ) {\n                        if ( colHeight[ i ] === mi( colHeight ) ) {\n                            thisCol = i;\n                        }\n                    }\n\n                    sz = {\n                        top: colHeight[ thisCol ],\n                        left: options.width * thisCol\n                    };\n\n                    if ( typeof sz.top !== 'number' || typeof sz.left !== 'number' ) {\n                        return;\n                    }\n\n                    if ( options.speed ) {\n\n                        window.setTimeout((function( brick, options, sz ) {\n                            return function(e) {\n                                Galleria.utils.animate( brick, sz, {\n                                    easing: 'galleriaOut',\n                                    duration: options.speed,\n                                    complete: options.onbrick\n                                });\n                            };\n                        }( brick, options, sz )), j * options.delay );\n\n                    } else {\n                        brick.css( sz );\n                        options.onbrick.call( brick );\n                    }\n\n                    if ( !brick.data( 'height' ) ) {\n                        brick.data( 'height', brick.outerHeight( true ) );\n                    }\n\n                    colHeight[ thisCol ] += brick.data('height');\n\n                });\n\n                mH = ma( colHeight );\n\n                if (mH < 0) {\n                    return;\n                }\n\n                if (typeof mH !== 'number') {\n                    return;\n                }\n\n                if ( options.speed ) {\n                    elem.animate({ height: ma( colHeight ) }, options.speed, options.onheight );\n                } else {\n                    elem.height( ma( colHeight ) );\n                    options.onheight.call( elem );\n                }\n            };\n\n        if ( center ) {\n          this.$('container').addClass('center');\n        }\n\n        this.bind( 'fullscreen_enter', function(e) {\n            this.$('container').css('height','100%');\n            if ( self.finger ) {\n                $.each( self._controls.slides, function( i, slide ) {\n                    $( slide.container ).show();\n                });\n            }\n        });\n\n        this.bind( 'fullscreen_exit', function(e) {\n\n            if ( this.getData().iframe ) {\n                $(this._controls.getActive().container).find('iframe').remove();\n                this.$('container').removeClass('iframe');\n            }\n            Galleria.TOUCH || $( self._controls.getActive().container ).hide();\n            if ( self.finger ) {\n                $.each( self._controls.slides, function( i, slide ) {\n                    $( slide.container ).hide();\n                });\n            }\n\n        });\n\n        this._fullscreen.beforeExit = function(ready) {\n            info.hide();\n            if ( Galleria.IE8 ) {\n                Galleria.utils.animate( self.getActiveImage(), {\n                    opacity: 0\n                }, {\n                    duration: 200\n                });\n            }\n            Galleria.utils.animate( stage[0], {\n                opacity: 0\n            }, {\n                duration: 200,\n                complete: function() {\n                    stage.css({\n                        visibility: 'hidden',\n                        opacity: 1\n                    });\n                    thumbnails.show();\n                    Galleria.utils.animate(thumbnails[0], {\n                        opacity: 1\n                    }, {\n                        duration: 200\n                    });\n                    ready();\n                }\n            });\n        };\n\n        this.bind( 'thumbnail', function(e) {\n\n            this.addElement( 'plus' );\n\n            var thumb = e.thumbTarget,\n                plus = this.$( 'plus' ).css({\n                    display:'block'\n                }).insertAfter( thumb ),\n                parent = $( thumb ).parent().data('index', e.index);\n\n            if ( options.showInfo && this.hasInfo( e.index ) ) {\n                plus.append( '<span>'+this.getData( e.index ).title+'</span>' );\n            }\n\n            colWidth = colWidth || $(thumb).parent().outerWidth(true);\n            colMargin = colMargin || colWidth - $(thumb).width();\n\n            $( thumb ).css( 'opacity', 0 );\n            parent.off( options.thumbEventType );\n\n            if (Galleria.IE) {\n                plus.hide();\n            } else {\n                plus.css('opacity',0);\n            }\n\n            if ( !Galleria.TOUCH ) {\n\n                parent.hover(function() {\n                    if (Galleria.IE) {\n                        plus.show();\n                    } else {\n                        plus.stop().css('opacity',1);\n                    }\n                }, function() {\n                    if (Galleria.IE) {\n                        plus.hide();\n                    } else {\n                        plus.stop().animate({opacity:0}, 300);\n                    }\n                });\n            } else {\n                parent.on('touchstart', function() {\n                    plus.css('opacity',1);\n                }).on( 'touchend', function() {\n                    plus.hide();\n                });\n            }\n\n            len++;\n\n            this.$( 'loaded' ).css('width', ( len / this.getDataLength() * 100 ) + '%' );\n\n            if ( len === this.getDataLength() ) {\n                this.$( 'preloader' ).fadeOut( 100 );\n\n                thumbnails.data('colCount', null);\n\n                masonry( thumbnails, {\n                    width: colWidth,\n                    speed: options._animate ? 400 : 0,\n                    onbrick: function() {\n\n                        var el = this,\n                            image = $( el ).find('img, .img');\n\n                        window.setTimeout( (function(image) {\n\n                            return function() {\n\n                                Galleria.utils.animate( image, {\n                                    opacity: 1\n                                }, {\n                                    duration: options.transition_speed,\n                                    complete: function() {\n                                        $(image).parent().css('background', '#000');\n                                    }\n                                });\n\n                                image.parent().off( 'click:fast click' ).on('click:fast', function() {\n\n                                    var index = $(this).data('index');\n\n                                    if ( Galleria.IE < 9 ) {\n                                        $(this).find('.galleria-plus').hide();\n                                    }\n\n                                    if ( $.isFunction( options._onClick ) ) {\n                                        options._onClick.call(self, self.getData(index));\n                                        return;\n                                    }\n\n                                    stage.css({\n                                        visibility: 'visible',\n                                        opacity: 0\n                                    });\n\n                                    self.$( 'target' ).height( self.$('target').height() );\n\n                                    if ( self.finger ) {\n                                        images.css( 'opacity', 0 );\n                                    }\n\n                                    Galleria.utils.animate(thumbnails[0], {\n                                        opacity: 0\n                                    }, {\n                                        duration: 100,\n                                        complete: function() {\n                                            thumbnails.hide();\n                                            self.enterFullscreen();\n                                            Galleria.utils.animate( stage[0], {\n                                                opacity: 1\n                                            }, {\n                                                duration: 200,\n                                                complete: function() {\n                                                    if ( self.finger ) {\n                                                        images.animate({ opacity: 1 });\n                                                        self.finger.moveTo( index );\n                                                    }\n                                                    if ( self.finger ) {\n                                                        self.finger.setPosition( -index*self.finger.width );\n                                                    }\n                                                    self.show( index );\n                                                }\n                                            });\n                                        }\n                                    });\n                                });\n                            };\n                        }( image )), options._animate ? image.parent().data('index')*100 : 0);\n                    },\n                    onheight: function() {\n                        target.height( thumbnails.height() );\n                    }\n                });\n            }\n        });\n\n        this.bind( 'loadstart', function(e) {\n            if (! e.cached ) {\n                loader.show();\n            }\n        });\n\n        this.bind('data', function() {\n            len = 0;\n        });\n\n        this.bind( 'loadfinish', function(e) {\n            if ( !e.galleriaData ) {\n                return;\n            }\n            loader.hide();\n            this.finger || info.hide();\n            if ( this.hasInfo() && options.showInfo && this.isFullscreen() && !this.finger ) {\n                info.fadeIn( options.transition ? options.transitionSpeed : 0 );\n            }\n\n            adjustInfo( $(e.imageTarget).width() );\n            this.finger && options.showInfo && info.show();\n        });\n\n        if ( !Galleria.TOUCH && !options._webkitCursor ) {\n\n            this.addIdleState( this.get('image-nav-left'), { left: -100 });\n            this.addIdleState( this.get('image-nav-right'), { right: -100 });\n            this.addIdleState( this.get('info'), { opacity: 0 });\n        }\n\n        this.$('container').css({\n            width: options.width,\n            height: 'auto'\n        });\n\n        if (options._webkitCursor && Galleria.WEBKIT && !Galleria.TOUCH) {\n            this.$('image-nav-right,image-nav-left').addClass('cur');\n        }\n\n        if (Galleria.TOUCH) {\n            this.setOptions({\n                transition: 'fadeslide',\n                initialTransition: false\n            });\n        }\n\n        this.$('close').on('click:fast', function() {\n            self.exitFullscreen();\n        });\n\n        if ( Galleria.History && HASH ) {\n            stage.css('visibility', 'visible');\n            thumbnails.css('opacity', 0);\n            this.$( 'preloader' ).hide();\n            this.enterFullscreen(function() {\n                this.show( parseInt(HASH, 10) );\n            });\n        }\n\n        var timer = null;\n        var onResize = function( e ) {\n          timer = null;\n          if ( self.isFullscreen() ) {\n              if ( self.getActiveImage() ) {\n                  adjustInfo( self.getActiveImage().width );\n              }\n              return;\n          }\n\n          var nw = thumbContainer.width();\n\n          if( nw !== width ) {\n              width = nw;\n              masonry( thumbnails, {\n                  width:colWidth,\n                  delay: 50,\n                  debug: true,\n                  onheight: function() {\n                      target.height( thumbnails.height() );\n                  }\n              });\n          }\n        }\n\n        $(window).resize( function() {\n            if ( timer ) {\n                clearTimeout(timer);\n            }\n            timer = setTimeout(onResize, 200);\n        })\n        onResize();\n    }\n});\n\n    return Galleria;\n}));\n"]}