"object"!=typeof window.CP&&(window.CP={}),window.CP.PenTimer={programNoLongerBeingMonitored:!1,timeOfFirstCallToShouldStopLoop:0,_loopExits:{},_loopTimers:{},START_MONITORING_AFTER:2e3,STOP_ALL_MONITORING_TIMEOUT:5e3,MAX_TIME_IN_LOOP_WO_EXIT:2200,exitedLoop:function(o){this._loopExits[o]=!0},shouldStopLoop:function(o){if(this.programKilledSoStopMonitoring)return!0;if(this.programNoLongerBeingMonitored)return!1;if(this._loopExits[o])return!1;var i=this._getTime();if(0===this.timeOfFirstCallToShouldStopLoop)return this.timeOfFirstCallToShouldStopLoop=i,!1;var n=i-this.timeOfFirstCallToShouldStopLoop;if(n<this.START_MONITORING_AFTER)return!1;if(n>this.STOP_ALL_MONITORING_TIMEOUT)return this.programNoLongerBeingMonitored=!0,!1;try{this._checkOnInfiniteLoop(o,i)}catch(o){return this._sendErrorMessageToEditor(),this.programKilledSoStopMonitoring=!0,!0}return!1},_sendErrorMessageToEditor:function(){try{if(this._shouldPostMessage()){var o={action:"infinite-loop",line:this._findAroundLineNumber()};parent.postMessage(JSON.stringify(o),"*")}else this._throwAnErrorToStopPen()}catch(o){this._throwAnErrorToStopPen()}},_shouldPostMessage:function(){return document.location.href.match(/boomerang/)},_throwAnErrorToStopPen:function(){throw"We found an infinite loop in your Pen. We've stopped the Pen from running. Please correct it or contact support@codepen.io."},_findAroundLineNumber:function(){var o=new Error,i=0;if(o.stack){var n=o.stack.match(/boomerang\S+:(\d+):\d+/);n&&(i=n[1])}return i},_checkOnInfiniteLoop:function(o,i){if(!this._loopTimers[o])return this._loopTimers[o]=i,!1;var n=i-this._loopTimers[o];if(n>this.MAX_TIME_IN_LOOP_WO_EXIT)throw"Infinite Loop found on loop: "+o},_getTime:function(){return+new Date}},window.CP.shouldStopExecution=function(o){return window.CP.PenTimer.shouldStopLoop(o)},window.CP.exitedLoop=function(o){window.CP.PenTimer.exitedLoop(o)},function(o){o.fn.jaliswall=function(i){return this.each(function(){function n(){p=t(),e(),d(),a.resize&&o(window).resize(function(){p!=t()&&(p=t(),r(),d())})}function t(){var o=!1;0==c.find(a.columnClass).length&&(o=!0,c.append("<div class='"+s(a.columnClass)+"'></div>"));var i=c.find(a.columnClass).outerWidth(!0),n=c.innerWidth();return o&&c.find(a.columnClass).remove(),Math.round(n/i)}function e(){h.each(function(i){var n=o(this);f.push({content:n.html(),class:n.attr("class"),href:n.attr("href"),id:n.attr("id"),colid:i%p}),n.remove()})}function r(){for(var o in f){if(window.CP.shouldStopExecution(1))break;f[o].colid=o%p}window.CP.exitedLoop(1)}function s(o){return o.slice(1,o.length)}function d(){for(var o="",i=0;i<p&&!window.CP.shouldStopExecution(2);i++)o+="<div class='"+s(a.columnClass)+"'></div>";window.CP.exitedLoop(2),c.html(o);for(var i in f){var n="",t=void 0!=f[i].content?f[i].content:"",e=f[i].href!=e?f[i].href:"",r=void 0!=f[i].class?f[i].class:"",d=void 0!=f[i].id?f[i].id:"";n+=void 0!=f[i].href?"<a "+l(e,"href")+" "+l(r,"class")+" "+l(d,"id")+">"+t+"</a>":"<div "+l(r,"class")+" "+l(d,"id")+">"+t+"</a>",c.children(a.columnClass).eq(i%p).append(n)}}function l(o,i){return void 0!=o?i+"='"+o+"'":""}var u={item:".wall-item",columnClass:".wall-column",resize:!0},a=o.extend(u,i),c=o(this),h=c.find(a.item),f=[],p=t();n()}),this}}(jQuery);