@travlrcom/icons
Version:
TRAVLR Icons
2 lines • 9.28 kB
JavaScript
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(window,function(){return i={},o.m=n=[function(e,t,n){n(1),n(2),e.exports=n(11)},function(e,t){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)},function(e,t,n){n(3),n(4),n(5),n(6),n(7),n(8),n(9),n(10)},function(e,t){!function(){if(!(void 0===window.Element||"classList"in document.documentElement)){var e,t,n,i=Array.prototype,o=i.push,r=i.splice,a=i.join;s.prototype={add:function(e){this.contains(e)||(o.call(this,e),this.el.className=this.toString())},contains:function(e){return-1!=this.el.className.indexOf(e)},item:function(e){return this[e]||null},remove:function(e){if(this.contains(e)){for(var t=0;t<this.length&&this[t]!=e;t++);r.call(this,t,1),this.el.className=this.toString()}},toString:function(){return a.call(this," ")},toggle:function(e){return this.contains(e)?this.remove(e):this.add(e),this.contains(e)}},window.DOMTokenList=s,e=Element.prototype,t="classList",n=function(){return new s(this)},Object.defineProperty?Object.defineProperty(e,t,{get:n}):e.__defineGetter__(t,n)}function s(e){for(var t=(this.el=e).className.replace(/^\s+|\s+$/g,"").split(/\s+/),n=0;n<t.length;n++)o.call(this,t[n])}}()},function(e,t){function n(){var t={};return s.call(this.attributes,function(e){(i=e.name.match(l))&&(t[function(e){return e.replace(u,function(e,t){return t.toUpperCase()})}(i[1])]=e.value)}),t}var i,o,r,a,s,l,u,d,c;s=[].forEach,l=/^data-(.+)/,u=/\-([a-z])/gi,d=document.createElement("div"),c=!1,null==d.dataset&&(d.addEventListener("DOMAttrModified",function e(){c=!0,this.removeEventListener("DOMAttrModified",e,!1)},!1),d.setAttribute("foo","bar"),o=Element.prototype,r="dataset",a=c?function(){return this._datasetCache||(this._datasetCache=n.call(this)),this._datasetCache}:n,Object.defineProperty?Object.defineProperty(o,r,{get:a}):o.__defineGetter__(r,a),document.addEventListener("DOMAttrModified",function(e){delete e.target._datasetCache},!1))},function(n,e,t){!function(e){if(!("EventSource"in e)){function t(e){var l=this,u=500,d=null,c="";if(!e||"string"!=typeof e)throw new SyntaxError("Not enough arguments");function f(e){l._pollTimer=setTimeout(function(){t.call(l)},e)}function t(){try{if(l.readyState==l.CLOSED)return;var e=new XMLHttpRequest;e.open("GET",l.URL,!0),e.setRequestHeader("Accept","text/event-stream"),e.setRequestHeader("Cache-Control","no-cache"),e.setRequestHeader("X-Requested-With","XMLHttpRequest"),null!=d&&e.setRequestHeader("Last-Event-ID",d),c="",e.timeout=5e4,e.onreadystatechange=function(){if(3==this.readyState||4==this.readyState&&200==this.status){l.readyState==l.CONNECTING&&(l.readyState=l.OPEN,l.dispatchEvent("open",{type:"open"}));var e="";try{e=this.responseText||""}catch(e){}var t=e.substr(c.length).split("\n"),n="message",i=[],o=0,r="";for(c=e;o<t.length;o++)if(0==(r=t[o].replace(p,"")).indexOf("event"))n=r.replace(/event:?\s*/,"");else if(0==r.indexOf("retry")){var a=parseInt(r.replace(/retry:?\s*/,""));isNaN(a)||(u=a)}else if(0==r.indexOf("data"))i.push(r.replace(/data:?\s*/,""));else if(0==r.indexOf("id:"))d=r.replace(/id:?\s*/,"");else if(0==r.indexOf("id"))d=null;else if(""==r&&i.length){var s=new h(i.join("\n"),l.url,d);l.dispatchEvent(n,s),i=[],n="message"}4==this.readyState&&f(u)}else l.readyState!==l.CLOSED&&(4==this.readyState?(l.readyState=l.CONNECTING,l.dispatchEvent("error",{type:"error"}),f(u)):0==this.readyState&&f(u))},e.send(),setTimeout(function(){e.abort()},e.timeout),l._xhr=e}catch(e){l.dispatchEvent("error",{type:"error",data:e.message})}}this.URL=e,this.readyState=this.CONNECTING,this._pollTimer=null,this._xhr=null,t()}var p=/^(\s|\u00A0)+|(\s|\u00A0)+$/g;t.prototype={close:function(){this.readyState=this.CLOSED,clearInterval(this._pollTimer),this._xhr.abort()},CONNECTING:0,OPEN:1,CLOSED:2,dispatchEvent:function(e,t){var n=this["_"+e+"Handlers"];if(n)for(var i=0;i<n.length;i++)n[i].call(this,t);this["on"+e]&&this["on"+e].call(this,t)},addEventListener:function(e,t){this["_"+e+"Handlers"]||(this["_"+e+"Handlers"]=[]),this["_"+e+"Handlers"].push(t)},removeEventListener:function(e,t){var n=this["_"+e+"Handlers"];if(n)for(var i=n.length-1;0<=i;--i)if(n[i]===t){n.splice(i,1);break}},onerror:null,onmessage:null,onopen:null,readyState:0,URL:""};var h=function(e,t,n){this.data=e,this.origin=t,this.lastEventId=n||""};h.prototype={data:null,type:"message",lastEventId:"",origin:""},"module"in e&&(n.exports=t),e.EventSource=t}}(this)},function(e,t){function n(e){var t=(e=e||window.event).target||e.srcElement;if(3===t.nodeType&&(t=t.parentNode),"INPUT"===t.nodeName&&"submit"===t.type&&null===t.form){o=document.getElementById(t.getAttribute("form"));var n=t.cloneNode(!0);n.style.display="none",o.appendChild(n),n.click(),o.removeChild(n)}}var i,o,r,a,s;o=document.createElement("form"),r=document.createElement("input"),a=document.body,s="f"+ +new Date,o.setAttribute("id",s),r.setAttribute("form",s),a.appendChild(o),a.appendChild(r),i=null!==r.form,a.removeChild(o),a.removeChild(r),i||(a.addEventListener?a.addEventListener("click",n,!1):a.attachEvent("onclick",n))},function(e,t){function n(e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),t.eventName=e,(document.body||window).dispatchEvent(t)}function i(){var e=new XMLHttpRequest;e.open("HEAD","/",!1);try{e.send(),o=!0}catch(e){o=!1}return o}var o,r;r=o=!0,navigator.__defineGetter__("onLine",i),i(),!1===o&&(r=!1,n("offline")),setInterval(function(){i(),o!==r&&(n(o?"online":"offline"),r=o)},5e3)},function(e,t){!function(){var e=document.createElement("input");e.setAttribute("type","range");var t,n,i,o,r,a,s,l="text"!==e.type;if(l?(e.style.cssText="position:absolute;visibility:hidden;",e.value=":)",void 0!==e.style.WebkitAppearance&&(document.body.appendChild(e),defaultView=document.defaultView,l=defaultView.getComputedStyle&&"textfield"!==defaultView.getComputedStyle(e,null).WebkitAppearance&&0!==e.offsetHeight,document.body.removeChild(e))):l=":)"==e.value,l){for(var u=document.getElementsByTagName("select"),d=0;d<u.length;d++)"range"==u[d].getAttribute("data-type")&&(t=u[d],s=a=r=o=i=n=void 0,a=document.createElement("input"),s=t.parentNode,a.setAttribute("type","range"),t=s.replaceChild(a,t),a.autofocus=t.autofocus,a.disabled=t.disabled,a.autocomplete=t.autocomplete,a.className=t.className,a.id=t.id,a.style=t.style,a.tabindex=t.tabindex,a.title=t.title,a.min=(n=t,i=(i="option").toUpperCase(),n.firstChild.nodeName===i?n.firstChild:n.firstChild.nextSibling).value,a.max=(o=t,r=(r="option").toUpperCase(),o.lastChild.nodeName===r?o.lastChild:o.lastChild.previousSibling).value,a.value=t.value,a.name=t.name,t.getAttribute("data-type-range-step")&&(a.step=t.getAttribute("data-type-range-step")),d--)}}()},function(e,t){var n;!sessionStorage&&JSON&&(sessionStorage=(n=window.name?JSON.parse(window.name):{},{clear:function(){n={},window.name=""},getItem:function(e){return void 0===n[e]?null:n[e]},removeItem:function(e){delete n[e],window.name=JSON.stringify(n)},setItem:function(e,t){n[e]=t,window.name=JSON.stringify(n)}}))},function(e,t){function n(t){function n(e,t,n){var i,o;o=n?((i=new Date).setTime(i.getTime()+24*n*60*60*1e3),"; expires="+i.toGMTString()):"",document.cookie=e+"="+t+o+"; path=/"}function i(e){e=JSON.stringify(e),"session"==t?window.name=e:n("localStorage",e,365)}var e,o=(e="session"==t?window.name:function(e){var t,n,i=e+"=",o=document.cookie.split(";");for(t=0;t<o.length;t++){for(n=o[t];" "==n.charAt(0);)n=n.substring(1,n.length);if(0==n.indexOf(i))return n.substring(i.length,n.length)}return null}("localStorage"))?JSON.parse(e):{};return{length:0,clear:function(){o={},this.length=0,"session"==t?window.name="":n("localStorage","",365)},getItem:function(e){return void 0===o[e]?null:o[e]},key:function(e){var t=0;for(var n in o){if(t==e)return n;t++}return null},removeItem:function(e){delete o[e],this.length--,i(o)},setItem:function(e,t){o[e]=t+"",this.length++,i(o)}}}void 0!==window.localStorage&&void 0!==window.sessionStorage||(void 0===window.localStorage&&(window.localStorage=new n("local")),void 0===window.sessionStorage&&(window.sessionStorage=new n("session")))},function(e,t,n){n(12)},function(e,t,n){}],o.c=i,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(n,i,function(e){return t[e]}.bind(null,i));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0);function o(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var n,i});
//# sourceMappingURL=travlr-icons.min.js.map