vendor: 18,546 bytes, lines 1-11
1(self["webpackChunksommer_patternlab_frontend"]=self["webpackChunksommer_patternlab_frontend"]||[]).push([[5333],{9786:function(t,i,e){var n,o;(function(s,r){"use strict";n=r,o="function"===typeof n?n.call(i,e,i,t):n,void 0===o||(t.exports=o)})(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var i=["webkit","moz","ms","o"],e=0;e<i.length;e++){var n=i[e],o=n+"MatchesSelector";if(t[o])return o}}();return function(i,e){return i[t](e)}}))},2137:function(t,i,e){var n,o;(function(s,r){n=r,o="function"===typeof n?n.call(i,e,i,t):n,void 0===o||(t.exports=o)})("undefined"!=typeof window&&window,(function(){"use strict";function t(){}var i=t.prototype;return i.on=function(t,i){if(t&&i){var e=this._events=this._events||{},n=e[t]=e[t]||[];return-1==n.indexOf(i)&&n.push(i),this}},i.once=function(t,i){if(t&&i){this.on(t,i);var e=this._onceEvents=this._onceEvents||{},n=e[t]=e[t]||{};return n[i]=!0,this}},i.off=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){var n=e.indexOf(i);return-1!=n&&e.splice(n,1),this}},i.emitEvent=function(t,i){var e=this._events&&this._events[t];if(e&&e.length){e=e.slice(0),i=i||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<e.length;o++){var s=e[o],r=n&&n[s];r&&(this.off(t,s),delete n[s]),s.apply(this,i)}return this}},i.allOff=function(){delete this._events,delete this._onceEvents},t}))},977:function(t,i,e){var n,o;(function(s,r){n=[e(9786)],o=function(t){return r(s,t)}.apply(i,n),void 0===o||(t.exports=o)})(window,(function(t,i){"use strict";var e={extend:function(t,i){for(var e in i)t[e]=i[e];return t},modulo:function(t,i){return(t%i+i)%i}},n=Array.prototype.slice;e.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var i="object"==typeof t&&"number"==typeof t.length;return i?n.call(t):[t]},e.removeFrom=function(t,i){var e=t.indexOf(i);-1!=e&&t.splice(e,1)},e.getParent=function(t,e){while(t.parentNode&&t!=document.body)if(t=t.parentNode,i(t,e))return t},e.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},e.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},e.filterFindElements=function(t,n){t=e.makeArray(t);var o=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(n){i(t,n)&&o.push(t);for(var e=t.querySelectorAll(n),s=0;s<e.length;s++)o.push(e[s])}else o.push(t)})),o},e.debounceMethod=function(t,i,e){e=e||100;var n=t.prototype[i],o=i+"Timeout";t.prototype[i]=function(){var t=this[o];clearTimeout(t);var i=arguments,s=this;this[o]=setTimeout((function(){n.apply(s,i),delete s[o]}),e)}},e.docReady=function(t){var i=document.readyState;"complete"==i||"interactive"==i?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},e.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,i,e){return i+"-"+e})).toLowerCase()};var o=t.console;return e.htmlInit=function(i,n){e.docReady((function(){var s=e.toDashed(n),r="data-"+s,a=document.querySelectorAll("["+r+"]"),h=document.querySelectorAll(".js-"+s),c=e.makeArray(a).concat(e.makeArray(h)),u=r+"-options",d=t.jQuery;c.forEach((function(t){var e,s=t.getAttribute(r)||t.getAttribute(u);try{e=s&&JSON.parse(s)}catch(h){return void(o&&o.error("Error parsing "+r+" on "+t.className+": "+h))}var a=new i(t,e);d&&d.data(t,n,a)}))}))},e}))},1485:function(t,i,e){var n,o; 2/*! 3 * getSize v2.0.3 4 * measure size of elements 5 * MIT license 6 */(function(s,r){n=r,o="function"===typeof n?n.call(i,e,i,t):n,void 0===o||(t.exports=o)})(window,(function(){"use strict";function t(t){var i=parseFloat(t),e=-1==t.indexOf("%")&&!isNaN(i);return e&&i}function i(){}var e="undefined"==typeof console?i:function(t){console.error(t)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=n.length;function s(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},i=0;i<o;i++){var e=n[i];t[e]=0}return t}function r(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var a,h=!1;function c(){if(!h){h=!0;var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(i);var n=r(i);a=200==Math.round(t(n.width)),u.isBoxSizeOuter=a,e.removeChild(i)}}function u(i){if(c(),"string"==typeof i&&(i=document.querySelector(i)),i&&"object"==typeof i&&i.nodeType){var e=r(i);if("none"==e.display)return s();var h={};h.width=i.offsetWidth,h.height=i.offsetHeight;for(var u=h.isBorderBox="border-box"==e.boxSizing,d=0;d<o;d++){var l=n[d],f=e[l],p=parseFloat(f);h[l]=isNaN(p)?0:p}var g=h.paddingLeft+h.paddingRight,m=h.paddingTop+h.paddingBottom,y=h.marginLeft+h.marginRight,v=h.marginTop+h.marginBottom,_=h.borderLeftWidth+h.borderRightWidth,x=h.borderTopWidth+h.borderBottomWidth,b=u&&a,E=t(e.width);!1!==E&&(h.width=E+(b?0:g+_));var w=t(e.height);return!1!==w&&(h.height=w+(b?0:m+x)),h.innerWidth=h.width-(g+_),h.innerHeight=h.height-(m+x),h.outerWidth=h.width+y,h.outerHeight=h.height+v,h}}return u}))},3169:function(t,i,e){var n,o,s;(function(r,a){o=[e(2137),e(1485)],n=a,s="function"===typeof n?n.apply(i,o):n,void 0===s||(t.exports=s)})(window,(function(t,i){"use strict";function e(t){for(var i in t)return!1;return null,!0}var n=document.documentElement.style,o="string"==typeof n.transition?"transition":"WebkitTransition",s="string"==typeof n.transform?"transform":"WebkitTransform",r={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[o],a={transform:s,transition:o,transitionDuration:o+"Duration",transitionProperty:o+"Property",transitionDelay:o+"Delay"};function h(t,i){t&&(this.element=t,this.layout=i,this.position={x:0,y:0},this._create())}var c=h.prototype=Object.create(t.prototype);function u(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}c.constructor=h,c._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},c.handleEvent=function(t){var i="on"+t.type;this[i]&&this[i](t)},c.getSize=function(){this.size=i(this.element)},c.css=function(t){var i=this.element.style;for(var e in t){var n=a[e]||e;i[n]=t[e]}},c.getPosition=function(){var t=getComputedStyle(this.element),i=this.layout._getOption("originLeft"),e=this.layout._getOption("originTop"),n=t[i?"left":"right"],o=t[e?"top":"bottom"],s=parseFloat(n),r=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*a.width),-1!=o.indexOf("%")&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=i?a.paddingLeft:a.paddingRight,r-=e?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},c.layoutPosition=function(){var t=this.layout.size,i={},e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=e?"paddingLeft":"paddingRight",s=e?"left":"right",r=e?"right":"left",a=this.position.x+t[o];i[s]=this.getXValue(a),i[r]="";var h=n?"paddingTop":"paddingBottom",c=n?"top":"bottom",u=n?"bottom":"top",d=this.position.y+t[h];i[c]=this.getYValue(d),i[u]="",this.css(i),this.emitEvent("layout",[this])},c.getXValue=function(t){var i=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!i?t/this.layout.size.width*100+"%":t+"px"},c.getYValue=function(t){var i=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&i?t/this.layout.size.height*100+"%":t+"px"},c._transitionTo=function(t,i){this.getPosition();var e=this.position.x,n=this.position.y,o=t==this.position.x&&i==this.position.y;if(this.setPosition(t,i),!o||this.isTransitioning){var s=t-e,r=i-n,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},c.getTranslate=function(t,i){var e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=e?t:-t,i=n?i:-i,"translate3d("+t+"px, "+i+"px, 0)"},c.goTo=function(t,i){this.setPosition(t,i),this.layoutPosition()},c.moveTo=c._transitionTo,c.setPosition=function(t,i){this.position.x=parseFloat(t),this.position.y=parseFloat(i)},c._nonTransition=function(t){for(var i in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[i].call(this)},c.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var i=this._transn;for(var e in t.onTransitionEnd)i.onEnd[e]=t.onTransitionEnd[e];for(e in t.to)i.ingProperties[e]=!0,t.isCleaning&&(i.clean[e]=!0);if(t.from){this.css(t.from);this.element.offsetHeight;null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var d="opacity,"+u(s);c.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(r,this,!1)}},c.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},c.onotransitionend=function(t){this.ontransitionend(t)};var l={"-webkit-transform":"transform"};c.ontransitionend=function(t){if(t.target===this.element){var i=this._transn,n=l[t.propertyName]||t.propertyName;if(delete i.ingProperties[n],e(i.ingProperties)&&this.disableTransition(),n in i.clean&&(this.element.style[t.propertyName]="",delete i.clean[n]),n in i.onEnd){var o=i.onEnd[n];o.call(this),delete i.onEnd[n]}this.emitEvent("transitionEnd",[this])}},c.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(r,this,!1),this.isTransitioning=!1},c._removeStyles=function(t){var i={};for(var e in t)i[e]="";this.css(i)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return c.removeTransitionStyles=function(){this.css(f)},c.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},c.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},c.remove=function(){o&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},c.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,i={},e=this.getHideRevealTransitionEndProperty("visibleStyle");i[e]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:i})},c.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},c.getHideRevealTransitionEndProperty=function(t){var i=this.layout.options[t];if(i.opacity)return"opacity";for(var e in i)return e},c.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,i={},e=this.getHideRevealTransitionEndProperty("hiddenStyle");i[e]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:i})},c.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},c.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},h}))},2831:function(t,i,e){var n,o; 7/*! 8 * Outlayer v2.1.1 9 * the brains and guts of a layout library 10 * MIT license 11 */(function(s,r){"use strict";n=[e(2137),e(1485),e(977),e(3169)],o=function(t,i,e,n){return r(s,t,i,e,n)}.apply(i,n),void 0===o||(t.exports=o)})(window,(function(t,i,e,n,o){"use strict";var s=t.console,r=t.jQuery,a=function(){},h=0,c={};function u(t,i){var e=n.getQueryElement(t);if(e){this.element=e,r&&(this.$element=r(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(i);var o=++h;this.element.outlayerGUID=o,c[o]=this,this._create();var a=this._getOption("initLayout");a&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(e||t))}u.namespace="outlayer",u.Item=o,u.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var d=u.prototype;function l(t){function i(){t.apply(this,arguments)}return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i}n.extend(d,i.prototype),d.option=function(t){n.extend(this.options,t)},d._getOption=function(t){var i=this.constructor.compatOptions[t];return i&&void 0!==this.options[i]?this.options[i]:this.options[t]},u.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},d._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},d.reloadItems=function(){this.items=this._itemize(this.element.children)},d._itemize=function(t){for(var i=this._filterFindItemElements(t),e=this.constructor.Item,n=[],o=0;o<i.length;o++){var s=i[o],r=new e(s,this);n.push(r)}return n},d._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},d.getItemElements=function(){return this.items.map((function(t){return t.element}))},d.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),i=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,i),this._isLayoutInited=!0},d._init=d.layout,d._resetLayout=function(){this.getSize()},d.getSize=function(){this.size=e(this.element)},d._getMeasurement=function(t,i){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?e(n)[i]:o):this[t]=0},d.layoutItems=function(t,i){t=this._getItemsForLayout(t),this._layoutItems(t,i),this._postLayout()},d._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},d._layoutItems=function(t,i){if(this._emitCompleteOnItems("layout",t),t&&t.length){var e=[];t.forEach((function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=i||t.isLayoutInstant,e.push(n)}),this),this._processLayoutQueue(e)}},d._getItemLayoutPosition=function(){return{x:0,y:0}},d._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,i){this._positionItem(t.item,t.x,t.y,t.isInstant,i)}),this)},d.updateStagger=function(){var t=this.options.stagger;if(null!==t&&void 0!==t)return this.stagger=p(t),this.stagger;this.stagger=0},d._positionItem=function(t,i,e,n,o){n?t.goTo(i,e):(t.stagger(o*this.stagger),t.moveTo(i,e))},d._postLayout=function(){this.resizeContainer()},d.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var i=this._getContainerSize();i&&(this._setContainerMeasure(i.width,!0),this._setContainerMeasure(i.height,!1))}},d._getContainerSize=a,d._setContainerMeasure=function(t,i){if(void 0!==t){var e=this.size;e.isBorderBox&&(t+=i?e.paddingLeft+e.paddingRight+e.borderLeftWidth+e.borderRightWidth:e.paddingBottom+e.paddingTop+e.borderTopWidth+e.borderBottomWidth),t=Math.max(t,0),this.element.style[i?"width":"height"]=t+"px"}},d._emitCompleteOnItems=function(t,i){var e=this;function n(){e.dispatchEvent(t+"Complete",null,[i])}var o=i.length;if(i&&o){var s=0;i.forEach((function(i){i.once(t,r)}))}else n();function r(){s++,s==o&&n()}},d.dispatchEvent=function(t,i,e){var n=i?[i].concat(e):e;if(this.emitEvent(t,n),r)if(this.$element=this.$element||r(this.element),i){var o=r.Event(i);o.type=t,this.$element.trigger(o,e)}else this.$element.trigger(t,e)},d.ignore=function(t){var i=this.getItem(t);i&&(i.isIgnored=!0)},d.unignore=function(t){var i=this.getItem(t);i&&delete i.isIgnored},d.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},d.unstamp=function(t){t=this._find(t),t&&t.forEach((function(t){n.removeFrom(this.stamps,t),this.unignore(t)}),this)},d._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t),t},d._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},d._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),i=this.size;this._boundingRect={left:t.left+i.paddingLeft+i.borderLeftWidth,top:t.top+i.paddingTop+i.borderTopWidth,right:t.right-(i.paddingRight+i.borderRightWidth),bottom:t.bottom-(i.paddingBottom+i.borderBottomWidth)}},d._manageStamp=a,d._getElementOffset=function(t){var i=t.getBoundingClientRect(),n=this._boundingRect,o=e(t),s={left:i.left-n.left-o.marginLeft,top:i.top-n.top-o.marginTop,right:n.right-i.right-o.marginRight,bottom:n.bottom-i.bottom-o.marginBottom};return s},d.handleEvent=n.handleEvent,d.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},d.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},d.onresize=function(){this.resize()},n.debounceMethod(u,"onresize",100),d.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},d.needsResizeLayout=function(){var t=e(this.element),i=this.size&&t;return i&&t.innerWidth!==this.size.innerWidth},d.addItems=function(t){var i=this._itemize(t);return i.length&&(this.items=this.items.concat(i)),i},d.appended=function(t){var i=this.addItems(t);i.length&&(this.layoutItems(i,!0),this.reveal(i))},d.prepended=function(t){var i=this._itemize(t);if(i.length){var e=this.items.slice(0);this.items=i.concat(e),this._resetLayout(),this._manageStamps(),this.layoutItems(i,!0),this.reveal(i),this.layoutItems(e)}},d.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var i=this.updateStagger();t.forEach((function(t,e){t.stagger(e*i),t.reveal()}))}},d.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var i=this.updateStagger();t.forEach((function(t,e){t.stagger(e*i),t.hide()}))}},d.revealItemElements=function(t){var i=this.getItems(t);this.reveal(i)},d.hideItemElements=function(t){var i=this.getItems(t);this.hide(i)},d.getItem=function(t){for(var i=0;i<this.items.length;i++){var e=this.items[i];if(e.element==t)return e}},d.getItems=function(t){t=n.makeArray(t);var i=[];return t.forEach((function(t){var e=this.getItem(t);e&&i.push(e)}),this),i},d.remove=function(t){var i=this.getItems(t);
11this._emitCompleteOnItems("remove",i),i&&i.length&&i.forEach((function(t){t.remove(),n.removeFrom(this.items,t)}),this)},d.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize();var i=this.element.outlayerGUID;delete c[i],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace)},u.data=function(t){t=n.getQueryElement(t);var i=t&&t.outlayerGUID;return i&&c[i]},u.create=function(t,i){var e=l(u);return e.defaults=n.extend({},u.defaults),n.extend(e.defaults,i),e.compatOptions=n.extend({},u.compatOptions),e.namespace=t,e.data=u.data,e.Item=l(o),n.htmlInit(e,t),r&&r.bridget&&r.bridget(t,e),e};var f={ms:1,s:1e3};function p(t){if("number"==typeof t)return t;var i=t.match(/(^\d*\.?\d*)(\w*)/),e=i&&i[1],n=i&&i[2];if(!e.length)return 0;e=parseFloat(e);var o=f[n]||1;return e*o}return u.Item=o,u}))},6045:function(t,i,e){var n,o,s;(function(r,a){o=[e(2831),e(9264)],n=a,s="function"===typeof n?n.apply(i,o):n,void 0===s||(t.exports=s)})(window,(function(t,i){"use strict";var e=document.documentElement.style,n="string"==typeof e.transform?"transform":"WebkitTransform",o=function(){t.Item.apply(this,arguments)},s=o.prototype=Object.create(t.Item.prototype),r=s._create;s._create=function(){r.call(this),this.rect=new i};var a=s.moveTo;return s.moveTo=function(t,i){var e=Math.abs(this.position.x-t),n=Math.abs(this.position.y-i),o=this.layout.dragItemCount&&!this.isPlacing&&!this.isTransitioning&&e<1&&n<1;o?this.goTo(t,i):a.apply(this,arguments)},s.enablePlacing=function(){this.removeTransitionStyles(),this.isTransitioning&&n&&(this.element.style[n]="none"),this.isTransitioning=!1,this.getSize(),this.layout._setRectSize(this.element,this.rect),this.isPlacing=!0},s.disablePlacing=function(){this.isPlacing=!1},s.removeElem=function(){var t=this.element.parentNode;t&&t.removeChild(this.element),this.layout.packer.addSpace(this.rect),this.emitEvent("remove",[this])},s.showDropPlaceholder=function(){var t=this.dropPlaceholder;t||(t=this.dropPlaceholder=document.createElement("div"),t.className="packery-drop-placeholder",t.style.position="absolute"),t.style.width=this.size.width+"px",t.style.height=this.size.height+"px",this.positionDropPlaceholder(),this.layout.element.appendChild(t)},s.positionDropPlaceholder=function(){this.dropPlaceholder.style[n]="translate("+this.rect.x+"px, "+this.rect.y+"px)"},s.hideDropPlaceholder=function(){var t=this.dropPlaceholder.parentNode;t&&t.removeChild(this.dropPlaceholder)},o}))},8656:function(t,i,e){var n,o,s;(function(r,a){o=[e(9264)],n=a,s="function"===typeof n?n.apply(i,o):n,void 0===s||(t.exports=s)})(window,(function(t){"use strict";function i(t,i,e){this.width=t||0,this.height=i||0,this.sortDirection=e||"downwardLeftToRight",this.reset()}var e=i.prototype;e.reset=function(){this.spaces=[];var i=new t({x:0,y:0,width:this.width,height:this.height});this.spaces.push(i),this.sorter=n[this.sortDirection]||n.downwardLeftToRight},e.pack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i];if(e.canFit(t)){this.placeInSpace(t,e);break}}},e.columnPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i],n=e.x<=t.x&&e.x+e.width>=t.x+t.width&&e.height>=t.height-.01;if(n){t.y=e.y,this.placed(t);break}}},e.rowPack=function(t){for(var i=0;i<this.spaces.length;i++){var e=this.spaces[i],n=e.y<=t.y&&e.y+e.height>=t.y+t.height&&e.width>=t.width-.01;if(n){t.x=e.x,this.placed(t);break}}},e.placeInSpace=function(t,i){t.x=i.x,t.y=i.y,this.placed(t)},e.placed=function(t){for(var i=[],e=0;e<this.spaces.length;e++){var n=this.spaces[e],o=n.getMaximalFreeRects(t);o?i.push.apply(i,o):i.push(n)}this.spaces=i,this.mergeSortSpaces()},e.mergeSortSpaces=function(){i.mergeRects(this.spaces),this.spaces.sort(this.sorter)},e.addSpace=function(t){this.spaces.push(t),this.mergeSortSpaces()},i.mergeRects=function(t){var i=0,e=t[i];t:while(e){var n=0,o=t[i+n];while(o){if(o==e)n++;else{if(o.contains(e)){t.splice(i,1),e=t[i];continue t}e.contains(o)?t.splice(i+n,1):n++}o=t[i+n]}i++,e=t[i]}return t};var n={downwardLeftToRight:function(t,i){return t.y-i.y||t.x-i.x},rightwardTopToBottom:function(t,i){return t.x-i.x||t.y-i.y}};return i}))},6217:function(t,i,e){var n,o,s; 12/*! 13 * Packery v2.1.2
14 * Gapless, draggable grid layouts 15 * 16 * Licensed GPLv3 for open source use 17 * or Packery Commercial License for commercial use 18 * 19 * http://packery.metafizzy.co 20 * Copyright 2013-2018 Metafizzy 21 */(function(r,a){o=[e(1485),e(2831),e(9264),e(8656),e(6045)],n=a,s="function"===typeof n?n.apply(i,o):n,void 0===s||(t.exports=s)})(window,(function(t,i,e,n,o){"use strict";e.prototype.canFit=function(t){return this.width>=t.width-1&&this.height>=t.height-1};var s=i.create("packery");s.Item=o;var r=s.prototype;function a(t,i){return t.position.y-i.position.y||t.position.x-i.position.x}function h(t,i){return t.position.x-i.position.x||t.position.y-i.position.y}function c(t,i){var e=i.x-t.x,n=i.y-t.y;return Math.sqrt(e*e+n*n)}r._create=function(){i.prototype._create.call(this),this.packer=new n,this.shiftPacker=new n,this.isEnabled=!0,this.dragItemCount=0;var t=this;this.handleDraggabilly={dragStart:function(){t.itemDragStart(this.element)},dragMove:function(){t.itemDragMove(this.element,this.position.x,this.position.y)},dragEnd:function(){t.itemDragEnd(this.element)}},this.handleUIDraggable={start:function(i,e){e&&t.itemDragStart(i.currentTarget)},drag:function(i,e){e&&t.itemDragMove(i.currentTarget,e.position.left,e.position.top)},stop:function(i,e){e&&t.itemDragEnd(i.currentTarget)}}},r._resetLayout=function(){var t,i,e;
21this.getSize(),this._getMeasurements(),this._getOption("horizontal")?(t=1/0,i=this.size.innerHeight+this.gutter,e="rightwardTopToBottom"):(t=this.size.innerWidth+this.gutter,i=1/0,e="downwardLeftToRight"),this.packer.width=this.shiftPacker.width=t,this.packer.height=this.shiftPacker.height=i,this.packer.sortDirection=this.shiftPacker.sortDirection=e,this.packer.reset(),this.maxY=0,this.maxX=0},r._getMeasurements=function(){this._getMeasurement("columnWidth","width"),this._getMeasurement("rowHeight","height"),this._getMeasurement("gutter","width")},r._getItemLayoutPosition=function(t){if(this._setRectSize(t.element,t.rect),this.isShifting||this.dragItemCount>0){var i=this._getPackMethod();this.packer[i](t.rect)}else this.packer.pack(t.rect);return this._setMaxXY(t.rect),t.rect},r.shiftLayout=function(){this.isShifting=!0,this.layout(),delete this.isShifting},r._getPackMethod=function(){return this._getOption("horizontal")?"rowPack":"columnPack"},r._setMaxXY=function(t){this.maxX=Math.max(t.x+t.width,this.maxX),this.maxY=Math.max(t.y+t.height,this.maxY)},r._setRectSize=function(i,e){var n=t(i),o=n.outerWidth,s=n.outerHeight;(o||s)&&(o=this._applyGridGutter(o,this.columnWidth),s=this._applyGridGutter(s,this.rowHeight)),e.width=Math.min(o,this.packer.width),e.height=Math.min(s,this.packer.height)},r._applyGridGutter=function(t,i){if(!i)return t+this.gutter;i+=this.gutter;var e=t%i,n=e&&e<1?"round":"ceil";return t=Math[n](t/i)*i,t},r._getContainerSize=function(){return this._getOption("horizontal")?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},r._manageStamp=function(t){var i,n=this.getItem(t);if(n&&n.isPlacing)i=n.rect;else{var o=this._getElementOffset(t);i=new e({x:this._getOption("originLeft")?o.left:o.right,y:this._getOption("originTop")?o.top:o.bottom})}this._setRectSize(t,i),this.packer.placed(i),this._setMaxXY(i)},r.sortItemsByPosition=function(){var t=this._getOption("horizontal")?h:a;this.items.sort(t)},r.fit=function(t,i,e){var n=this.getItem(t);n&&(this.stamp(n.element),n.enablePlacing(),this.updateShiftTargets(n),i=void 0===i?n.rect.x:i,e=void 0===e?n.rect.y:e,this.shift(n,i,e),this._bindFitEvents(n),n.moveTo(n.rect.x,n.rect.y),this.shiftLayout(),this.unstamp(n.element),this.sortItemsByPosition(),n.disablePlacing())},r._bindFitEvents=function(t){var i=this,e=0;function n(){e++,2==e&&i.dispatchEvent("fitComplete",null,[t])}t.once("layout",n),this.once("layoutComplete",n)},r.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&(this.options.shiftPercentResize?this.resizeShiftPercentLayout():this.layout())},r.needsResizeLayout=function(){var i=t(this.element),e=this._getOption("horizontal")?"innerHeight":"innerWidth";return i[e]!=this.size[e]},r.resizeShiftPercentLayout=function(){var i=this._getItemsForLayout(this.items),e=this._getOption("horizontal"),n=e?"y":"x",o=e?"height":"width",s=e?"rowHeight":"columnWidth",r=e?"innerHeight":"innerWidth",a=this[s];if(a=a&&a+this.gutter,a){this._getMeasurements();var h=this[s]+this.gutter;i.forEach((function(t){var i=Math.round(t.rect[n]/a);t.rect[n]=i*h}))}else{var c=t(this.element)[r]+this.gutter,u=this.packer[o];i.forEach((function(t){t.rect[n]=t.rect[n]/u*c}))}this.shiftLayout()},r.itemDragStart=function(t){if(this.isEnabled){this.stamp(t);var i=this.getItem(t);i&&(i.enablePlacing(),i.showDropPlaceholder(),this.dragItemCount++,this.updateShiftTargets(i))}},r.updateShiftTargets=function(t){this.shiftPacker.reset(),this._getBoundingRect();var i=this._getOption("originLeft"),n=this._getOption("originTop");this.stamps.forEach((function(t){var o=this.getItem(t);if(!o||!o.isPlacing){var s=this._getElementOffset(t),r=new e({x:i?s.left:s.right,y:n?s.top:s.bottom});this._setRectSize(t,r),this.shiftPacker.placed(r)}}),this);var o,s=this._getOption("horizontal"),r=s?"rowHeight":"columnWidth",a=s?"height":"width";this.shiftTargetKeys=[],this.shiftTargets=[];var h=this[r];if(h=h&&h+this.gutter,h){var c=Math.ceil(t.rect[a]/h),u=Math.floor((this.shiftPacker[a]+this.gutter)/h);o=(u-c)*h;for(var d=0;d<u;d++){var l=s?0:d*h,f=s?d*h:0;this._addShiftTarget(l,f,o)}}
21else o=this.shiftPacker[a]+this.gutter-t.rect[a],this._addShiftTarget(0,0,o);var p=this._getItemsForLayout(this.items),g=this._getPackMethod();p.forEach((function(t){var i=t.rect;this._setRectSize(t.element,i),this.shiftPacker[g](i),this._addShiftTarget(i.x,i.y,o);var e=s?i.x+i.width:i.x,n=s?i.y:i.y+i.height;if(this._addShiftTarget(e,n,o),h)for(var r=Math.round(i[a]/h),c=1;c<r;c++){var u=s?e:i.x+h*c,d=s?i.y+h*c:n;this._addShiftTarget(u,d,o)}}),this)},r._addShiftTarget=function(t,i,e){var n=this._getOption("horizontal")?i:t;if(!(0!==n&&n>e)){var o=t+","+i,s=-1!=this.shiftTargetKeys.indexOf(o);s||(this.shiftTargetKeys.push(o),this.shiftTargets.push({x:t,y:i}))}},r.shift=function(t,i,e){var n,o=1/0,s={x:i,y:e};this.shiftTargets.forEach((function(t){var i=c(t,s);i<o&&(n=t,o=i)})),t.rect.x=n.x,t.rect.y=n.y};var u=120;r.itemDragMove=function(t,i,e){var n=this.isEnabled&&this.getItem(t);if(n){i-=this.size.paddingLeft,e-=this.size.paddingTop;var o=this,s=new Date,r=this._itemDragTime&&s-this._itemDragTime<u;r?(clearTimeout(this.dragTimeout),this.dragTimeout=setTimeout(a,u)):(a(),this._itemDragTime=s)}function a(){o.shift(n,i,e),n.positionDropPlaceholder(),o.layout()}},r.itemDragEnd=function(t){var i=this.isEnabled&&this.getItem(t);if(i){clearTimeout(this.dragTimeout),i.element.classList.add("is-positioning-post-drag");var e=0,n=this;i.once("layout",o),this.once("layoutComplete",o),i.moveTo(i.rect.x,i.rect.y),this.layout(),this.dragItemCount=Math.max(0,this.dragItemCount-1),this.sortItemsByPosition(),i.disablePlacing(),this.unstamp(i.element)}function o(){e++,2==e&&(i.element.classList.remove("is-positioning-post-drag"),i.hideDropPlaceholder(),n.dispatchEvent("dragItemPositioned",null,[i]))}},r.bindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"on")},r.unbindDraggabillyEvents=function(t){this._bindDraggabillyEvents(t,"off")},r._bindDraggabillyEvents=function(t,i){var e=this.handleDraggabilly;t[i]("dragStart",e.dragStart),t[i]("dragMove",e.dragMove),t[i]("dragEnd",e.dragEnd)},r.bindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"on")},r.unbindUIDraggableEvents=function(t){this._bindUIDraggableEvents(t,"off")},r._bindUIDraggableEvents=function(t,i){var e=this.handleUIDraggable;t[i]("dragstart",e.start)[i]("drag",e.drag)[i]("dragstop",e.stop)};var d=r.destroy;return r.destroy=function(){d.apply(this,arguments),this.isEnabled=!1},s.Rect=e,s.Packer=n,s}))},9264:function(t,i,e){var n,o;(function(s,r){n=r,o="function"===typeof n?n.call(i,e,i,t):n,void 0===o||(t.exports=o)})(window,(function(){"use strict";function t(i){for(var e in t.defaults)this[e]=t.defaults[e];for(e in i)this[e]=i[e]}t.defaults={x:0,y:0,width:0,height:0};var i=t.prototype;return i.contains=function(t){var i=t.width||0,e=t.height||0;return this.x<=t.x&&this.y<=t.y&&this.x+this.width>=t.x+i&&this.y+this.height>=t.y+e},i.overlaps=function(t){var i=this.x+this.width,e=this.y+this.height,n=t.x+t.width,o=t.y+t.height;return this.x<n&&i>t.x&&this.y<o&&e>t.y},i.getMaximalFreeRects=function(i){if(!this.overlaps(i))return!1;var e,n=[],o=this.x+this.width,s=this.y+this.height,r=i.x+i.width,a=i.y+i.height;return this.y<i.y&&(e=new t({x:this.x,y:this.y,width:this.width,height:i.y-this.y}),n.push(e)),o>r&&(e=new t({x:r,y:this.y,width:o-r,height:this.height}),n.push(e)),s>a&&(e=new t({x:this.x,y:a,width:this.width,height:s-a}),n.push(e)),this.x<i.x&&(e=new t({x:this.x,y:this.y,width:i.x-this.x,height:this.height}),n.push(e)),n},i.canFit=function(t){return this.width>=t.width&&this.height>=t.height},t}))},1244:function(t,i,e){"use strict";var n=e(6217),o=e.n(n),s=e(8113);function r(t){const i=t.parentElement.querySelector('[type="application/json"]');return i?JSON.parse(i.textContent):{}}function a(t,i){const e=t.parentElement.querySelector('[type="application/json"]');e.textContent=i}async function h(t){const i=r(t),e=await s.A.post("/packery/image-teaser-items",i).catch((()=>{t.remove()}));return e?.data||{}}const c=({btnEl:t,packeryGridEl:i,packeryObj:e})=>{t.addEventListener("click",(async()=>{const n=await h(t),o=n.items;if(o){const t=document.createElement("template");t.innerHTML=o;let n=Array.from(t.content.children);i.appendChild(t.content),e.appended(n),n=null}n.jsonData&&n.jsonData.length?a(t,n.jsonData):t.remove()}))};var u=c;
21const d=document.querySelectorAll(".js-packery-grid");if(d.length){const t={itemSelector:".grid-item",gutter:".gutter-sizer",columnsWidth:".grid-sizer",percentPosition:!0};d.forEach((i=>{const e=new(o())(i,{...t}),n=i.parentElement.querySelector(".js-packery-grid-load-more");n&&u({btnEl:n,packeryGridEl:i,packeryObj:e})}))}}}]); 22//# sourceMappingURL=5333.bfd4f12e.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.