UNPKG

@dvhb/themes

Version:
1 lines 14.3 kB
!function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var parentJsonpFunction=window.webpackJsonp;window.webpackJsonp=function(chunkIds,moreModules){for(var moduleId,chunkId,i=0,callbacks=[];i<chunkIds.length;i++)chunkId=chunkIds[i],installedChunks[chunkId]&&callbacks.push.apply(callbacks,installedChunks[chunkId]),installedChunks[chunkId]=0;for(moduleId in moreModules)modules[moduleId]=moreModules[moduleId];for(parentJsonpFunction&&parentJsonpFunction(chunkIds,moreModules);callbacks.length;)callbacks.shift().call(null,__webpack_require__);if(moreModules[0])return installedModules[0]=0,__webpack_require__(0)};var installedModules={},installedChunks={1:0};__webpack_require__.e=function(chunkId,callback){if(0===installedChunks[chunkId])return callback.call(null,__webpack_require__);if(void 0!==installedChunks[chunkId])installedChunks[chunkId].push(callback);else{installedChunks[chunkId]=[callback];var head=document.getElementsByTagName("head")[0],script=document.createElement("script");script.type="text/javascript",script.charset="utf-8",script.async=!0,script.src=__webpack_require__.p+window.webpackManifest[chunkId],head.appendChild(script)}},__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p=""}([,function(module,exports,__webpack_require__){var files=__webpack_require__(2);files.keys().forEach(files)},,,function(module,exports,__webpack_require__){var Sprite=__webpack_require__(5),globalSprite=new Sprite;document.body?globalSprite.elem=globalSprite.render(document.body):document.addEventListener("DOMContentLoaded",function(){globalSprite.elem=globalSprite.render(document.body)},!1),module.exports=globalSprite},function(module,exports,__webpack_require__){function arrayFrom(arrayLike){return Array.prototype.slice.call(arrayLike,0)}function encodeUrlForEmbedding(url){return url.replace(/\(|\)/g,"\\$&")}function baseUrlWorkAround(svg,currentUrlPrefix,newUrlPrefix){var nodes=svg.querySelectorAll(fixAttributesQuery);nodes&&arrayFrom(nodes).forEach(function(node){node.attributes&&arrayFrom(node.attributes).forEach(function(attribute){var attributeName=attribute.localName.toLowerCase();if(fixAttributes.indexOf(attributeName)!==-1){var match=URI_FUNC_REGEX.exec(node.getAttribute(attributeName));if(match&&0===match[1].indexOf(currentUrlPrefix)){var referenceUrl=encodeUrlForEmbedding(newUrlPrefix+match[1].split(currentUrlPrefix)[1]);node.setAttribute(attributeName,"url("+referenceUrl+")")}}})})}function importSvg(svg){try{if(document.importNode)return document.importNode(svg,!0)}catch(e){}return svg}function Sprite(){var baseElement=document.getElementsByTagName("base")[0],currentUrl=window.location.href.split("#")[0],baseUrl=baseElement&&baseElement.href;this.urlPrefix=baseUrl&&baseUrl!==currentUrl?currentUrl+DEFAULT_URI_PREFIX:DEFAULT_URI_PREFIX;var sniffr=new Sniffr;sniffr.sniff(),this.browser=sniffr.browser,this.content=[],"ie"!==this.browser.name&&baseUrl&&window.addEventListener("spriteLoaderLocationUpdated",function(e){var currentPrefix=this.urlPrefix,newUrlPrefix=e.detail.newUrl.split(DEFAULT_URI_PREFIX)[0]+DEFAULT_URI_PREFIX;if(baseUrlWorkAround(this.svg,currentPrefix,newUrlPrefix),this.urlPrefix=newUrlPrefix,"firefox"===this.browser.name||"edge"===this.browser.name||"chrome"===this.browser.name&&this.browser.version[0]>=49){var nodes=arrayFrom(document.querySelectorAll("use[*|href]"));nodes.forEach(function(node){var href=node.getAttribute(xLinkHref);href&&0===href.indexOf(currentPrefix)&&node.setAttributeNS(xLinkNS,xLinkHref,newUrlPrefix+href.split(DEFAULT_URI_PREFIX)[1])})}}.bind(this))}var Sniffr=__webpack_require__(6),fixAttributes=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke"],fixAttributesQuery="["+fixAttributes.join("],[")+"]",URI_FUNC_REGEX=/^url\((.*)\)$/,FirefoxSymbolBugWorkaround=function(svg){for(var defs=svg.querySelector("defs"),moveToDefsElems=svg.querySelectorAll("symbol linearGradient, symbol radialGradient, symbol pattern"),i=0,len=moveToDefsElems.length;i<len;i++)defs.appendChild(moveToDefsElems[i])},DEFAULT_URI_PREFIX="#",xLinkHref="xlink:href",xLinkNS="http://www.w3.org/1999/xlink",svgOpening='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="'+xLinkNS+'"',svgClosing="</svg>",contentPlaceHolder="{content}";Sprite.styles=["position:absolute","width:0","height:0"],Sprite.spriteTemplate=function(){return svgOpening+' style="'+Sprite.styles.join(";")+'"><defs>'+contentPlaceHolder+"</defs>"+svgClosing},Sprite.symbolTemplate=function(){return svgOpening+">"+contentPlaceHolder+svgClosing},Sprite.prototype.content=null,Sprite.prototype.add=function(content,id){return this.svg&&this.appendSymbol(content),this.content.push(content),DEFAULT_URI_PREFIX+id},Sprite.prototype.wrapSVG=function(content,template){var svgString=template.replace(contentPlaceHolder,content),svg=(new DOMParser).parseFromString(svgString,"image/svg+xml").documentElement,importedSvg=importSvg(svg);return"ie"!==this.browser.name&&this.urlPrefix&&baseUrlWorkAround(importedSvg,DEFAULT_URI_PREFIX,this.urlPrefix),importedSvg},Sprite.prototype.appendSymbol=function(content){var symbol=this.wrapSVG(content,Sprite.symbolTemplate()).childNodes[0];this.svg.querySelector("defs").appendChild(symbol),"firefox"===this.browser.name&&FirefoxSymbolBugWorkaround(this.svg)},Sprite.prototype.toString=function(){var wrapper=document.createElement("div");return wrapper.appendChild(this.render()),wrapper.innerHTML},Sprite.prototype.render=function(target,prepend){target=target||null,prepend="boolean"!=typeof prepend||prepend;var svg=this.wrapSVG(this.content.join(""),Sprite.spriteTemplate());return"firefox"===this.browser.name&&FirefoxSymbolBugWorkaround(svg),target&&(prepend&&target.childNodes[0]?target.insertBefore(svg,target.childNodes[0]):target.appendChild(svg)),this.svg=svg,svg},module.exports=Sprite},function(module,exports){!function(host){function Sniffr(){var self=this;propertyNames.forEach(function(propertyName){self[propertyName]={name:UNKNOWN,version:[],versionString:UNKNOWN}})}function determineProperty(self,propertyName,userAgent){properties[propertyName].forEach(function(propertyMatcher){var propertyRegex=propertyMatcher[0],propertyValue=propertyMatcher[1],match=userAgent.match(propertyRegex);match&&(self[propertyName].name=propertyValue,match[2]?(self[propertyName].versionString=match[2],self[propertyName].version=[]):match[1]?(self[propertyName].versionString=match[1].replace(/_/g,"."),self[propertyName].version=parseVersion(match[1])):(self[propertyName].versionString=UNKNOWN,self[propertyName].version=[]))})}function parseVersion(versionString){return versionString.split(/[\._]/).map(function(versionPart){return parseInt(versionPart)})}var properties={browser:[[/msie ([\.\_\d]+)/,"ie"],[/trident\/.*?rv:([\.\_\d]+)/,"ie"],[/firefox\/([\.\_\d]+)/,"firefox"],[/chrome\/([\.\_\d]+)/,"chrome"],[/version\/([\.\_\d]+).*?safari/,"safari"],[/mobile safari ([\.\_\d]+)/,"safari"],[/android.*?version\/([\.\_\d]+).*?safari/,"com.android.browser"],[/crios\/([\.\_\d]+).*?safari/,"chrome"],[/opera/,"opera"],[/opera\/([\.\_\d]+)/,"opera"],[/opera ([\.\_\d]+)/,"opera"],[/opera mini.*?version\/([\.\_\d]+)/,"opera.mini"],[/opios\/([a-z\.\_\d]+)/,"opera"],[/blackberry/,"blackberry"],[/blackberry.*?version\/([\.\_\d]+)/,"blackberry"],[/bb\d+.*?version\/([\.\_\d]+)/,"blackberry"],[/rim.*?version\/([\.\_\d]+)/,"blackberry"],[/iceweasel\/([\.\_\d]+)/,"iceweasel"],[/edge\/([\.\d]+)/,"edge"]],os:[[/linux ()([a-z\.\_\d]+)/,"linux"],[/mac os x/,"macos"],[/mac os x.*?([\.\_\d]+)/,"macos"],[/os ([\.\_\d]+) like mac os/,"ios"],[/openbsd ()([a-z\.\_\d]+)/,"openbsd"],[/android/,"android"],[/android ([a-z\.\_\d]+);/,"android"],[/mozilla\/[a-z\.\_\d]+ \((?:mobile)|(?:tablet)/,"firefoxos"],[/windows\s*(?:nt)?\s*([\.\_\d]+)/,"windows"],[/windows phone.*?([\.\_\d]+)/,"windows.phone"],[/windows mobile/,"windows.mobile"],[/blackberry/,"blackberryos"],[/bb\d+/,"blackberryos"],[/rim.*?os\s*([\.\_\d]+)/,"blackberryos"]],device:[[/ipad/,"ipad"],[/iphone/,"iphone"],[/lumia/,"lumia"],[/htc/,"htc"],[/nexus/,"nexus"],[/galaxy nexus/,"galaxy.nexus"],[/nokia/,"nokia"],[/ gt\-/,"galaxy"],[/ sm\-/,"galaxy"],[/xbox/,"xbox"],[/(?:bb\d+)|(?:blackberry)|(?: rim )/,"blackberry"]]},UNKNOWN="Unknown",propertyNames=Object.keys(properties);Sniffr.prototype.sniff=function(userAgentString){var self=this,userAgent=(userAgentString||navigator.userAgent||"").toLowerCase();propertyNames.forEach(function(propertyName){determineProperty(self,propertyName,userAgent)})},"undefined"!=typeof module&&module.exports?module.exports=Sniffr:(host.Sniffr=new Sniffr,host.Sniffr.sniff(navigator.userAgent))}(this)},,,,,function(module,exports,__webpack_require__){function addStylesToDom(styles,options){for(var i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];if(domStyle){domStyle.refs++;for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j](item.parts[j]);for(;j<item.parts.length;j++)domStyle.parts.push(addStyle(item.parts[j],options))}else{for(var parts=[],j=0;j<item.parts.length;j++)parts.push(addStyle(item.parts[j],options));stylesInDom[item.id]={id:item.id,refs:1,parts:parts}}}}function listToStyles(list){for(var styles=[],newStyles={},i=0;i<list.length;i++){var item=list[i],id=item[0],css=item[1],media=item[2],sourceMap=item[3],part={css:css,media:media,sourceMap:sourceMap};newStyles[id]?newStyles[id].parts.push(part):styles.push(newStyles[id]={id:id,parts:[part]})}return styles}function insertStyleElement(options,styleElement){var head=getHeadElement(),lastStyleElementInsertedAtTop=styleElementsInsertedAtTop[styleElementsInsertedAtTop.length-1];if("top"===options.insertAt)lastStyleElementInsertedAtTop?lastStyleElementInsertedAtTop.nextSibling?head.insertBefore(styleElement,lastStyleElementInsertedAtTop.nextSibling):head.appendChild(styleElement):head.insertBefore(styleElement,head.firstChild),styleElementsInsertedAtTop.push(styleElement);else{if("bottom"!==options.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");head.appendChild(styleElement)}}function removeStyleElement(styleElement){styleElement.parentNode.removeChild(styleElement);var idx=styleElementsInsertedAtTop.indexOf(styleElement);idx>=0&&styleElementsInsertedAtTop.splice(idx,1)}function createStyleElement(options){var styleElement=document.createElement("style");return styleElement.type="text/css",insertStyleElement(options,styleElement),styleElement}function createLinkElement(options){var linkElement=document.createElement("link");return linkElement.rel="stylesheet",insertStyleElement(options,linkElement),linkElement}function addStyle(obj,options){var styleElement,update,remove;if(options.singleton){var styleIndex=singletonCounter++;styleElement=singletonElement||(singletonElement=createStyleElement(options)),update=applyToSingletonTag.bind(null,styleElement,styleIndex,!1),remove=applyToSingletonTag.bind(null,styleElement,styleIndex,!0)}else obj.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(styleElement=createLinkElement(options),update=updateLink.bind(null,styleElement),remove=function(){removeStyleElement(styleElement),styleElement.href&&URL.revokeObjectURL(styleElement.href)}):(styleElement=createStyleElement(options),update=applyToTag.bind(null,styleElement),remove=function(){removeStyleElement(styleElement)});return update(obj),function(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap)return;update(obj=newObj)}else remove()}}function applyToSingletonTag(styleElement,index,remove,obj){var css=remove?"":obj.css;if(styleElement.styleSheet)styleElement.styleSheet.cssText=replaceText(index,css);else{var cssNode=document.createTextNode(css),childNodes=styleElement.childNodes;childNodes[index]&&styleElement.removeChild(childNodes[index]),childNodes.length?styleElement.insertBefore(cssNode,childNodes[index]):styleElement.appendChild(cssNode)}}function applyToTag(styleElement,obj){var css=obj.css,media=obj.media;if(media&&styleElement.setAttribute("media",media),styleElement.styleSheet)styleElement.styleSheet.cssText=css;else{for(;styleElement.firstChild;)styleElement.removeChild(styleElement.firstChild);styleElement.appendChild(document.createTextNode(css))}}function updateLink(linkElement,obj){var css=obj.css,sourceMap=obj.sourceMap;sourceMap&&(css+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */");var blob=new Blob([css],{type:"text/css"}),oldSrc=linkElement.href;linkElement.href=URL.createObjectURL(blob),oldSrc&&URL.revokeObjectURL(oldSrc)}var stylesInDom={},memoize=function(fn){var memo;return function(){return"undefined"==typeof memo&&(memo=fn.apply(this,arguments)),memo}},isOldIE=memoize(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),getHeadElement=memoize(function(){return document.head||document.getElementsByTagName("head")[0]}),singletonElement=null,singletonCounter=0,styleElementsInsertedAtTop=[];module.exports=function(list,options){options=options||{},"undefined"==typeof options.singleton&&(options.singleton=isOldIE()),"undefined"==typeof options.insertAt&&(options.insertAt="bottom");var styles=listToStyles(list);return addStylesToDom(styles,options),function(newList){for(var mayRemove=[],i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];domStyle.refs--,mayRemove.push(domStyle)}if(newList){var newStyles=listToStyles(newList);addStylesToDom(newStyles,options)}for(var i=0;i<mayRemove.length;i++){var domStyle=mayRemove[i];if(0===domStyle.refs){for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j]();delete stylesInDom[domStyle.id]}}}};var replaceText=function(){var textStore=[];return function(index,replacement){return textStore[index]=replacement,textStore.filter(Boolean).join("\n")}}()}]);