UNPKG

i8-icon

Version:

> This repo is for distribution on `npm` and `bower`. The source for this module is in the [main i8-icon repo](https://github.com/icons8/i8-icon). > Please file issues and pull requests against that repo.

2 lines 21.3 kB
!function(t,n){"use strict";function e(t){function n(t,o){var r,c;if(!o){if(!e[t])throw r=new Error('Cannot found service provider "'+t+'"'),console.error(r),r;if(!i.hasOwnProperty(t))try{i[t]=new e[t](n)}catch(r){throw console.error(r),r}return i[t]}if(i.hasOwnProperty(t))throw r=new Error('Cannot override instantiated service "'+t+'"'),console.error(r),r;return"function"!=typeof o?void console.error('Provider "'+t+'" is not a function'):void(e.hasOwnProperty(t)?(c=e[t],e[t]=function(t){return new o(t,new c(t))}):e[t]=o)}var e={},i={};return Object.keys(o.providers).forEach(function(t){e[t]=o.providers[t]}),n.has=function(t){return e.hasOwnProperty(t)},n("ready",function(t){return function(n){"function"==typeof n?n(t):n&&console.error("Ready listener not a function")}}),t&&("function"==typeof t?t(n):console.error("Injector initializer not a function")),(r.listeners||[]).forEach(function(t){t(n)}),n}function o(t,n){var e,r;return r=o.providers=o.providers||{},"function"!=typeof n?void console.error('Provider "'+t+'" is not a function'):void(r.hasOwnProperty(t)?(e=r[t],r[t]=function(t){return new n(t,new e(t))}):r[t]=n)}function r(t){var n;n=r.listeners=r.listeners||[],"function"==typeof t?n.push(t):t&&console.error("Ready listener not a function")}function i(t,n){var e,o,r=t("publicApi"),i=t("iconManager"),c={ios8:["ios","ios7","i"],win8:["win","w"],android:["kitkat","ak","a-k","k"],androidL:["android-l","al","a-l","l"],flat_color:["color","c","colored"]};e={},Object.keys(c).forEach(function(t){e[t.toLowerCase()]=t,c[t].forEach(function(n){e[n]=t})}),i.setDefaultIconSet("i8").addSvgIconSet("i8",function(t){var e={url:n.gateway.url,params:{}};return t&&(Array.isArray(t)||(t=[t]),e.params.icons=t.join(",")),o&&(e.params.token=o),e},{cumulative:!0,iconIdParser:function(t,n){var o;for(t=String(t||""),Array.isArray(n)||(n=[]),n=n.map(function(t){return String(t).toLowerCase()}),o=0;o<n.length;o++)if(e.hasOwnProperty(n[o]))return[e[n[o]],t].join("-");return[e.c,t].join("-")}}),r.i8ApiToken=function(t){o=t},t.has("configPerformer")&&t("configPerformer").strategy(function(t){"undefined"!=typeof t.i8ApiToken&&r.i8ApiToken(t.i8ApiToken)})}function c(t,n){var e,o,r=t("iconManager");e=function(t){return String(t||"").replace(/_/g,"-").replace(/^ic-/,"").replace(/-\d+px$/,"")},o={iconIdResolver:e,iconIdParser:e,preloadable:!1},n.categories.forEach(function(t){r.addSvgIconSet("md-"+t,"//cdn.rawgit.com/google/material-design-icons/"+n.version+"/sprites/svg-sprite/svg-sprite-"+t+".svg",o)})}function s(t){r(t)}o("ScopeCollection",function(t){function n(){this.collection=[]}return n.prototype={add:function(n){var e=t("SvgCumulativeIconSetScope"),o=t("FontIconSetScope");n instanceof e||n instanceof o?this.collection.push(n):this.collection.unshift(n)},preload:function(){var n=t("Promise");return n.all(this.collection.map(function(t){return n.resolve(t.preload()).then(null,function(){return!1})})).then(function(){return!0},function(){return!1})},getIconScope:function(n,e){var o,r=t("Promise"),i=(t("SvgCumulativeIconSetScope"),this.collection);return o=r.all(i.map(function(t){return r.resolve(t.hasIcon(n,e)).then(function(n){return n?t:!1},function(){return!1})})),o.then(function(t){var n;for(n=0;n<t.length;n++)if(t[n])return t[n];return r.reject()})},getIcon:function(t,n){return this.getIconScope(t,n).then(function(e){return e.getIcon(t,n)})}},n}),o("SvgIconSet",function(t){function n(n,e){var o,r,i,c,s,u,a,l=t("log"),f=t("parseSvgOptions"),h=t("SvgIcon"),p=t("nodeWrapper");u="function"==typeof e.iconIdResolver?e.iconIdResolver:function(t){return t},a=f(e),this.icons={},s=a.viewBox||n[0].getAttribute("viewBox"),c=a.iconSize;try{for(r=n[0].querySelectorAll("[id]"),o=0;o<r.length;o++)i=r[o],this.icons[u(i.getAttribute("id"))]=new h(p(i.cloneNode(!0)),{iconSize:c,viewBox:s})}catch(d){l.warn(d)}this.iconSize=c,this.viewBox=s,this.iconIdResolver=u}return n.loadByUrl=function(e,o){var r=t("loadSvgByUrl");return r(e).then(function(t){return new n(t,o)})},n.prototype={notExists:function(t){var n=this.icons;return t.filter(function(t){return!n.hasOwnProperty(t)})},exists:function(t){return this.icons.hasOwnProperty(t)},getIconById:function(t){return this.icons.hasOwnProperty(t)?this.icons[t]:null},merge:function(t){var n=this,e=t.icons;return Object.keys(e).forEach(function(t){n.icons[t]=e[t]}),this},mergeByUrl:function(t,e){var o=this;return n.loadByUrl(t,e).then(function(t){return o.merge(t)})}},n}),o("iconManager",function(t){function n(){this._collections={},this._defaultCollectionId=null,this._defaultSvgIconSize=i}function e(n,e){var o=t("log"),r=t("Promise"),i='icon "'+n+'" not found';return e&&(i+=' in "'+e+'" icon set'),o.warn(i),r.reject(i)}function o(t,n){return function(){return e(t,n)}}var r=/[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/i,i=24,c="__SINGLE_ICONS_COLLECTION";return n.prototype={addIcon:function(t,n,e){function o(t){return t.split("?")[0].split(/[/\\]/).slice(-1)[0].split(".").slice(-1)[0].toLowerCase()}var r,i=n;return"object"==typeof n&&(i=n.url),r=o("function"==typeof i?i():i+""),"svg"!=r&&r?this.addImageIcon(t,n):this.addSvgIcon(t,n,e)},addSvgIcon:function(n,e,o){var r=t("SvgIconScope");return this._getSingleIconsCollection().add(new r(n,e,o)),this},addImageIcon:function(n,e,o){var r=t("ImageIconScope");return this._getSingleIconsCollection().add(new r(n,e,o)),this},addSvgIconSet:function(n,e,o){var r,i=t("SvgCumulativeIconSetScope"),c=t("SvgIconSetScope");return o=o||{},r=o.cumulative?i:c,this._getCollection(n).add(new r(n,e,o)),this},addFontIconSet:function(n,e,o){var r=t("FontIconSetScope");return this._getCollection(n).add(new r(n,e,o)),this},addSpriteIconSet:function(n,e,o){var r=t("SpriteIconSetScope");return this._getCollection(n).add(new r(n,e,o)),this},addIconSetAlias:function(t,n){return this._collections.hasOwnProperty(n)||(this._collections[n]=this._getCollection(t)),this},setDefaultIconSet:function(t){return this._defaultCollectionId=t,this},setDefaultSvgIconSize:function(t){return this._defaultSvgIconSize=t,this},getDefaultSvgIconSize:function(){return this._defaultSvgIconSize},preload:function(){var t=this._collections;Object.keys(t).forEach(function(n){t[n].preload()})},getIcon:function(t,n){var i,c,s,u;if(t=t||"",n=n||[],i=t.split(/\s+/).filter(function(t){return t}),t=i[0],Array.prototype.push.apply(n,i.slice(1)),r.test(t))return this.hasSingleIcon(t)||this.addIcon(t,t),this._getSingleIconsCollection().getIcon(t,n).then(null,o(t));if(s=t,u=null,c=t.indexOf(":"),-1!=c&&(u=t.slice(0,c),s=t.slice(c+1)),u){if(this.hasIconSet(u))return this._getCollection(u).getIcon(s,n).then(null,o(s,u))}else{if(this.hasSingleIcon(s,n))return this._getSingleIconsCollection().getIcon(s,n).then(null,o(s));if(this.hasDefaultIconSet())return this._getCollection(this._defaultCollectionId).getIcon(s,n).then(null,o(s,this._defaultCollectionId))}return e(t)},hasSingleIcon:function(t,n){return this._getSingleIconsCollection().collection.filter(function(e){return e.hasIcon(t,n)}).length>0},hasIconSet:function(t){return this._collections.hasOwnProperty(t)},hasDefaultIconSet:function(){return this._defaultCollectionId&&this.hasIconSet(this._defaultCollectionId)},_getCollection:function(n){var e=t("ScopeCollection");return this._collections.hasOwnProperty(n)||(this._collections[n]=new e),this._collections[n]},_getSingleIconsCollection:function(){return this._getCollection(c)}},new n}),o("inherit",function(t){return function(t,n,e,o){return t.prototype=Object.create(n.prototype,o||{}),Object.keys(e||{}).forEach(function(n){t.prototype[n]=e[n]}),t}}),o("initIconElement",function(n){function e(n,e){function o(e,o){function r(n,e){function o(n){var e=n.currentStyle?n.currentStyle:t.getComputedStyle(n);return"none"===e.display}var r,i,c,s=n.hasChildNodes();if(s)for(r=n.childNodes,i=0;i<r.length;i++)if(c=r[i],1===c.nodeType&&c.hasAttribute(e)&&!o(c))return!0;return!1}var i=n[0];i.hasAttribute(e)||r(i,e)||(o="string"==typeof o?o.trim():"",o.length&&n.attr(e,o))}function r(){var t=n.parent();return t.attr("aria-label")||t.text().trim()?!0:"BODY"!=t.prop("tagName")&&(t.parent().attr("aria-label")||t.parent().text().trim())?!0:!1}""==e||r()?o("aria-hidden","true"):(o("aria-label",e),o("role","img"))}return function(t,n,o){var r,i="i8-icon";n||"string"==typeof n||(o=String(o||"").split(":").slice(-1)[0].trim(),/[/\\.]/.test(o)?(r=o.split(/[/\\]/).slice(-1)[0].split("."),r.length>1&&(r=r.slice(0,-1)),n=r.join(".")):n=o.split(/\s/)[0]),e(t,n||""),t.hasClass(i)||t.addClass(i)}}),o("loadSvgByUrl",function(t){return function(n){var e=t("httpGet"),o=t("log"),r=t("Promise"),i=t("nodeWrapper"),c=n,s=null;return"object"==typeof n&&(c=n.url,s=n.params),e(c,s).then(function(t){var n=i("<div>").append(t.data),e=n.find("svg");return e.length>0?e:n.children().first()},function(t){var n="string"==typeof t?t:String(t.message||t.data||t.responseText||t.statusText);return o.warn(n),r.reject(n)})}}),o("parseSvgOptions",function(t){return function(t){if(t)switch(typeof t){case"number":t={iconSize:t};break;case"string":t={viewBox:t}}else t={};return{iconSize:t.iconSize,viewBox:t.viewBox}}}),o("publicApi",function(t){var n,e=t("iconManager"),o=t("ready");return n={icon:function(t,n,o){return e.addIcon(t,n,o),this},svgSet:function(t,n,o){return e.addSvgIconSet(t,n,o),this},font:function(t,n,o){return e.addFontIconSet(t,n,o),this},sprite:function(t,n,o){return e.addSpriteIconSet(t,n,o),this},sourceAlias:function(t,n){return e.addIconSetAlias(t,n),this},defaultSvgSetUrl:function(t,n){return e.addSvgIconSet(t,t,n).setDefaultIconSet(t),this},defaultSource:function(t){return e.setDefaultIconSet(t),this},defaultSvgIconSize:function(t){return e.setDefaultSvgIconSize(t),this},preload:function(){return e.preload(),this},extension:o},n.iconSet=n.svgSet,n.defaultIconSetUrl=n.defaultSvgSetUrl,n.defaultSvgIconSetUrl=n.defaultSvgSetUrl,n.alias=n.sourceAlias,n["default"]=n.defaultSource,n}),r(function(n){var e,o,r,i=n("nodeWrapper");r='<style type="text/css">@charset "UTF-8";i8-icon,i8icon,[i8-icon],[i8icon],[data-i8-icon],[data-i8icon],.i8icon,.i8-icon{display:inline-block;}.i8-svg-icon svg{fill:currentColor;}</style>',e=i(t.document).find("head"),o=e.find("style")[0],o&&o.outerHTML==r||e.prepend(r)}),o("AbstractCssClassIcon",function(t){function n(t,n){e.call(this,t),this.className=n}var e=t("AbstractIcon"),o=t("inherit");return o(n,e,{render:function(t){function n(){return t.attr("class").split(/\s+/)}function o(t){var e=n();return t=t||[],e.filter(function(n){return-1==t.indexOf(n)})}var r,i,c;return c=e.prototype.render.call(this,t),r=n(),t.addClass(this.className),i=o(r).join(" "),function(){t.removeClass(i),c&&c()}}})}),o("AbstractElementIcon",function(t){function n(t,n){e.call(this,t),this.element=n}var e=t("AbstractIcon"),o=t("inherit");return o(n,e,{cloneNode:function(){return this.element[0].cloneNode(!0)},render:function(t){var n;return n=e.prototype.render.call(this,t),t.append(this.cloneNode()),function(){for(;t.firstChild;)t.removeChild(t.firstChild);n&&n()}}})}),o("AbstractIcon",function(t){function n(t){this.iconClassName=t}return n.prototype={render:function(t){var n=this.iconClassName;return t.addClass(n),function(){t.removeClass(n)}}},n}),o("FontIcon",function(t){function n(t){var n="i8-font-icon";e.call(this,n,t)}var e=t("AbstractCssClassIcon"),o=t("inherit");return o(n,e)}),o("ImageIcon",function(t){function n(t){var n="i8-image-icon";t.attr({width:"100%",height:"100%"}),t.css({"pointer-events":"none",display:"inline-block"}),e.call(this,n,t)}var e=t("AbstractElementIcon"),o=t("inherit");return n.loadByUrl=function(e){var o,r,i=t("buildUrlParams"),c=t("nodeWrapper"),s=t("Promise"),u=e;return"object"==typeof e&&(u=e.url,o=i(e.params),o&&(u=[u,o].join("?"))),new s(function(t,e){r=c("<img>"),r.bind("load",function(){t(new n(r))}),r.bind("error",e),r.attr("src",u)})},o(n,e)}),o("SpriteIcon",function(t){function n(t){var n="i8-sprite-icon";e.call(this,n,t)}var e=t("AbstractCssClassIcon"),o=t("inherit");return o(n,e)}),o("SvgIcon",function(t){function n(n,o){var r,i,c,s,u,a,l,f,h="i8-svg-icon",p=t("nodeWrapper"),d=t("iconManager"),v=t("parseSvgOptions");if(o=v(o),["id","x","y"].forEach(function(t){n.removeAttr(t)}),l=n[0],"svg"!=l.tagName)if("symbol"==l.tagName){for(r=p('<svg xmlns="http://www.w3.org/2000/svg">'),i=r[0],c=l.attributes,a=0;a<c.length;a++)i.setAttribute(c[a].name,c[a].value);n=r.append(p(l).children())}else n=p('<svg xmlns="http://www.w3.org/2000/svg">').append(n);l=n[0],u={xmlns:"http://www.w3.org/2000/svg",version:"1.0"},Object.keys(u).forEach(function(t){l.getAttribute(t)||l.setAttribute(t,u[t])}),f=o.iconSize||d.getDefaultSvgIconSize(),c={fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:l.getAttribute("viewBox")||o.viewBox||"0 0 "+f+" "+f},Object.keys(c).forEach(function(t){l.setAttribute(t,c[t])}),s={"pointer-events":"none",display:"inline-block"},Object.keys(s).forEach(function(t){l.style[t]=s[t]}),this.iconSize=f,e.call(this,h,n)}var e=t("AbstractElementIcon"),o=t("inherit");return n.loadByUrl=function(e,o){var r=t("loadSvgByUrl");return r(e).then(function(t){return new n(t,o)})},o(n,e)}),o("AbstractCssClassIconSetScope",function(t){function n(t,n,r){o.call(this,t,r),this._classResolver=e(n)}function e(t){var n;return"function"==typeof t?t:(t=(t||"")+"",n=t.split(/[?%]/),function(t){return n.join(t)})}var o=t("AbstractScope"),r=t("inherit");return r(n,o,{_resolveCssClass:function(t,n){return this._classResolver(t,n)}})}),o("AbstractRemoteResourceScope",function(n){function e(t,n,e){r.call(this,t,e),this._urlResolver=o(n),this._preloadable=this.options.preloadable||"undefined"==typeof this.options.preloadable,this._cache=null,this._resource=null}function o(e){var o,r,i=n("mergeObjects"),c=null;return o&&"object"==typeof o?(o=e.url,c=e.params):o=e,r="function"==typeof o?o:function(){return o},function(){var n,e,o=null;return n=r.apply(null,Array.prototype.slice.call(arguments)),e=n,n&&"object"==typeof n&&(e=n.url,o=n.params),e=String(e||""),"//"===e.slice(0,2)&&(e=t.document.location.protocol+e),{url:e,params:i({},c||{},o||{})}}}var r=n("AbstractScope"),i=n("inherit");return i(e,r,{preload:function(){return this._preloadable?this._getResource():!0},_resolveUrl:function(t){return this._urlResolver(t)},_getResource:function(){var t,n=this;return this._cache?this._cache:(t=this._cache=this._loadResource(),t.then(null,function(t){n._resource=t},function(){n._cache=null}),t)},_loadResource:function(){var t=n("Promise");return t.reject()}})}),o("AbstractRemoteSvgResourceScope",function(t){function n(t,n,o){var i=r(o),c=this;e.call(this,t,n,o),Object.keys(i).forEach(function(t){c.options[t]=i[t]})}var e=t("AbstractRemoteResourceScope"),o=t("inherit"),r=t("parseSvgOptions");return o(n,e)}),o("AbstractScope",function(t){function n(t,n){n=n&&"object"==typeof n?n:{},this.id=t,this.options=n,this._iconIdParser=e(n.iconIdParser),this._iconIdResolver=e(n.iconIdResolver)}function e(t){return"function"==typeof t?t:function(t){return t}}return n.prototype={preload:function(){return!0},hasIcon:function(){return!0},_parseIconId:function(t,n){return this._iconIdParser(t,n)},_resolveIconId:function(t){return this._iconIdResolver(t)}},n}),o("FontIconSetScope",function(t){function n(t,n,o){e.call(this,t,n,o)}var e=t("AbstractCssClassIconSetScope"),o=t("inherit");return o(n,e,{getIcon:function(n,e){var o=t("FontIcon");return new o(this._resolveCssClass(this._parseIconId(n,e),e))}})}),o("ImageIconScope",function(t){function n(t,n,o){e.call(this,t,n,o)}var e=t("AbstractRemoteResourceScope"),o=t("inherit");return o(n,e,{_loadResource:function(){var n=t("ImageIcon");return n.loadByUrl(this._resolveUrl())},hasIcon:function(t,n){return this._parseIconId(t,n)==this._resolveIconId(this.id)},getIcon:function(){return this._getResource()}})}),o("SpriteIconSetScope",function(t){function n(t,n,o){e.call(this,t,n,o)}var e=t("AbstractCssClassIconSetScope"),o=t("inherit");return o(n,e,{getIcon:function(n,e){var o=t("SpriteIcon");return new o(this._resolveCssClass(this._parseIconId(n,e),e))}})}),o("SvgCumulativeIconSetScope",function(t){function n(t,n,o){var r=10;e.call(this,t,n,o),this.waitDuration=this.options.waitDuration||r,this.waitPromise=null,this.waitIconIds=[]}var e=t("AbstractRemoteSvgResourceScope"),o=t("inherit");return o(n,e,{_loadResource:function(){var n=t("SvgIconSet");return n.loadByUrl(this._resolveUrl(this.waitIconIds),this.options)},preload:function(){return!0},getIcon:function(n,e){var o=t("Promise"),r=t("timeout"),i=this;return n=this._parseIconId(n,e),this._resource&&this._resource.exists(n)?o.resolve(this._resource.getIconById(n)):(this.waitPromise?-1==this.waitIconIds.indexOf(n)&&this.waitIconIds.push(n):(this.waitIconIds=[n],this.waitPromise=r(this.waitDuration).then(function(){return i.waitPromise=null,i._resource?i._resource.mergeByUrl(i._resolveUrl(i._resource.notExists(i.waitIconIds)),i.options):i._getResource()})),this.waitPromise.then(function(t){var e=t.getIconById(n);return e?e:o.reject()}))}})}),o("SvgIconScope",function(t){function n(t,n,o){e.call(this,t,n,o)}var e=t("AbstractRemoteSvgResourceScope"),o=t("inherit");return o(n,e,{_loadResource:function(){var n=t("SvgIcon");return n.loadByUrl(this._resolveUrl(),this.options)},hasIcon:function(t,n){return this._parseIconId(t,n)==this._resolveIconId(this.id)},getIcon:function(){return this._getResource()}})}),o("SvgIconSetScope",function(t){function n(t,n,o){e.call(this,t,n,o)}var e=t("AbstractRemoteSvgResourceScope"),o=t("inherit");return o(n,e,{_loadResource:function(){var n=t("SvgIconSet");return n.loadByUrl(this._resolveUrl(),this.options)},hasIcon:function(t,n){return t=this._parseIconId(t,n),this._getResource().then(function(n){return n.exists(t)})},getIcon:function(n,e){var o=t("Promise");return n=this._parseIconId(n,e),this._getResource().then(function(t){var e=t.getIconById(n);return e?e:o.reject()})}})}),o("IconDirective",function(t){function n(n){return{restrict:"EA",scope:!0,link:function(e,o,r){var i,c=t("initIconElement"),s=r.$normalize(r.$attr.alt||""),u=r.$normalize(r.$attr.icon||r.$attr.i8Icon||""),a=null;i=s?r[s]:null,c(o,i,r[u]),u&&r.$observe(u,function(t){a&&a(),a=null,t&&n(t).then(function(t){a=t.render(o)})})}}}return n.$inject=["$i8Icon"],n}),o("IconProvider",function(t){function n(){var n=!1;this.preload=function(){return n=!0,this},this.$get=["$injector",function(e){var o,r=t("iconManager"),i=t("ensureDependenciesRegistered");return i(e),o=function(t){return r.getIcon(t)},o.preload=function(){r.preload()},o.$checkLazyPreload=function(){n&&this.preload()},o}]}return n.prototype=t("publicApi"),n}),o("buildUrlParams",function(t){return function(t){var n=[];return t=t||{},Object.keys(t).filter(function(){return"undefined"!=typeof t[key]&&null!==t[key]}).map(function(n){return Array.isArray(t[n])?t[n]:[t[n]]}).forEach(function(e){t[e].forEach(function(t){n.push(encodeURIComponent(e)+"="+encodeURIComponent(t+""))})}),n.join("&")}}),o("ensureDependenciesRegistered",function(t){var n=!1;return function(e){n||(t("$injector",function(){return e}),t("log",function(){return e.get("$log")}),t("httpGet",function(){var t=e.get("$http"),n=e.get("$templateCache");return function(e,o){var r={cache:n};return o&&"object"==typeof o&&Object.keys(o).length>0&&(r.params=o),t.get(e,r)}}),t("Promise",function(){function t(t){return function(){var n=Array.prototype.slice.call(arguments);r.$$phase?t.apply(this,n):r.$apply(function(){t.apply(this,n)})}}function n(e){var r;return"function"!=typeof e?n.resolve(e):(r=o.defer(),e(t(r.resolve),t(r.reject)),r.promise)}var o=e.get("$q"),r=e.get("$rootScope");return n.reject=o.reject,n.resolve=o.when,n.all=o.all,n}),t("timeout",function(){var t=e.get("$timeout");return function(n,e){return"function"!=typeof n&&(e=n,n=function(){}),t(n,e)}}),n=!0)}}),o("mergeObjects",function(){return function(t){function n(t,e){return!t||!e||"object"!=typeof t||"object"!=typeof e||Array.isArray(t)||Array.isArray(e)?e:(Object.keys(e).forEach(function(o){t[o]=t.hasOwnProperty(o)?n(t[o],e[o]):e[o]}),t)}var e=Array.prototype.slice.call(arguments);if(0==e.length)return{};if(e.length<2){if(!Array.isArray(t))return t;e=t,t=e[0]}return e.slice(1).forEach(function(e){t=n(t,e)}),t}}),o("nodeWrapper",function(t){var n=t("angular");return n.element});var u={gateway:{url:"//api.icons8.com/api/iconsets/svg-symbol"}},a={version:"1.0.1",categories:["action","alert","av","communication","content","device","editor","file","hardware","image","maps","navigation","notification","social","toggle"]};s(function(t){var n=t("iconManager");n.addFontIconSet("fa",function(t,n){var e=["fa","fa-"+t];return n=n||[],Array.prototype.push.apply(e,n.map(function(t){return"fa-"+t})),e.join(" ")})}),s(function(t){var n=t("iconManager");n.addIconSetAlias("glyphicon","gi").addFontIconSet("glyphicon","glyphicon glyphicon-?")}),s(function(t){i(t,u)}),s(function(t){c(t,a)}),n.module("i8.icon",[]).config(["$provide","$compileProvider",function(t,o){var r=e(function(t){t("angular",function(){return n})});t.provider("$i8Icon",r("IconProvider")),o.directive("i8Icon",r("IconDirective"))}]).run(["$i8Icon",function(t){t.$checkLazyPreload()}])}(window,window.angular); //# sourceMappingURL=angular-i8-icon.min.js.map