!function t(e,i,n){function o(s,a){if(!i[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(r)return r(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var l=i[s]={exports:{}};e[s][0].call(l.exports,function(t){var i=e[s][1][t];return o(i?i:t)},l,l.exports,t,e,i,n)}return i[s].exports}for(var r="function"==typeof require&&require,s=0;s1&&(t=Array.prototype.slice.call(arguments)),console.log(t),___.DEBUG&&console.log(t)},uniqid:function(t){var e,t=t||"";return this.seed=function(t,e){return t=parseInt(t,10).toString(16),et.length?new Array(1+(e-t.length)).join("0")+t:t},e=t+this.seed(parseInt((new Date).getTime()/1e3,10),8)+this.seed(Math.floor(123456789*Math.random())+1,5)}}},{}],7:[function(t,e,i){e.exports=app.extend("services.url",{domain:function(){var t=location.protocol+"//"+location.hostname;return t},param:function(t){var e=new RegExp("[?&]"+t+"=([^&#]*)").exec(window.location.href);return null==e?null:e[1]||0}})},{}],8:[function(t,e,i){e.exports=app.factory("ui.factories.postWidget",{width:null,height:250,page:1,perPage:20,type:"list",userId:0,initialize:function(){var t=this;if(this.dom.getAttribute("data-type")&&"grid"==this.dom.getAttribute("data-type")&&(this.type="grid"),this.dom.getAttribute("data-user-id"))this.userId=this.dom.getAttribute("data-user-id");else if(this.dom.getAttribute("href")){var e=this.dom.getAttribute("href"),i=e.split("/");this.userId=i.pop()}var n=this.dom.getAttribute("data-width");n&&"auto"!=n?this.width=this.dom.getAttribute("data-width"):this.width=null,this.dom.getAttribute("data-height")&&(this.height=this.dom.getAttribute("data-height"));var o=document.createElement("iframe");o.id="diggerslist-widget-"+app.uniqid(),o.scrolling="no",o.frameBorder=0,o.allowTransparency=!0,o.style.background="none",o.style.border="none",o.style.height=this.height+"px",o.style.overflow="hidden",this.width?o.style.width=this.width+"px":o.style.width="100%";var r=["domain="+window.location.protocol+"//"+window.location.host,"page="+this.page,"per_page="+this.perPage,"type="+this.type,"user_id="+this.userId];o.src="https://www.diggerslist.com/widgets/listings?"+r.join("&"),this.dom.parentNode.insertBefore(o,this.dom),this.dom.parentNode.removeChild(this.dom),window.addEventListener?window.addEventListener("message",t.handleMessage,!1):window.attachEvent&&window.attachEvent("onmessage",t.handleMessage)}})},{}],9:[function(t,e,i){t("beetlejs"),function(){"use strict";if(navigator.userAgent.match(/IEMobile\/10\.0/)){var t=document.createElement("style");t.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")),document.querySelector("head").appendChild(t)}}();var n=window.app=new ___;t("./../app/services/url"),t("./ui/factories/postWidget");for(var o=[],r=document.querySelectorAll(".diggerslist-widget"),s=0;s