Socket
Socket
Sign inDemoInstall

j2c-plugin-prefix-browser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

j2c-plugin-prefix-browser - npm Package Compare versions

Comparing version 1.0.3 to 1.0.5

23

dist/j2c-plugin-prefix-browser.amd.js

@@ -8,3 +8,4 @@ define(['exports'], function (exports) { 'use strict';

var styleElement;
var convert;
var supportedProperty;
var supportedDecl;

@@ -15,3 +16,9 @@ function init() {

styleElement = document.documentElement.appendChild(document.createElement('style'));
convert = ('zIndex' in styleAttr) ? function(p){return p} : deCamelCase;
supportedDecl = _supportedDecl;
supportedProperty = _supportedProperty;
if ('zIndex' in styleAttr && !('z-index' in styleAttr)) {
// Some browsers like it dash-cased, some camelCased, most like both.
supportedDecl = function(property, value) {return _supportedDecl(camelCase(property), value)};
supportedProperty = function(property) {return _supportedProperty(camelCase(property))};
}
}

@@ -32,4 +39,3 @@ function finalize() {

}
function supportedDecl(property, value) {
property = convert(property);
function _supportedDecl(property, value) {
styleAttr[property] = '';

@@ -46,5 +52,4 @@ styleAttr[property] = value;

}
function supportedProperty(property) {
// Some browsers like it dash-cased, some camelCased, most like both.
return convert(property) in styleAttr
function _supportedProperty(property) {
return property in styleAttr
}

@@ -104,3 +109,3 @@ function supportedRule(selector) {

'linear-gradient': {
property: 'backgroundImage',
property: 'background-image',
params: 'red, teal'

@@ -113,3 +118,3 @@ },

'element': {
property: 'backgroundImage',
property: 'background-image',
params: '#foo'

@@ -116,0 +121,0 @@ },

@@ -1,1 +0,1 @@

define(["exports"],function(e){"use strict";function r(){k=getComputedStyle(document.documentElement,null),S=document.createElement("div").style,P=document.documentElement.appendChild(document.createElement("style")),R="zIndex"in S?function(e){return e}:t}function i(){"undefined"!=typeof document&&document.documentElement.removeChild(P),k=P=null}function n(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function t(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function o(e,r){return e=R(e),S[e]="",S[e]=r,!!S[e]}function l(e){return P.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(P.sheet.cssRules[0].cssText)}function a(e){return R(e)in S}function s(e){return P.textContent=e+"{}",!!P.sheet.cssRules.length}function p(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!s("@"+n)&&s("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=l("resolution:1dppx"),e.hasPixelRatio=l(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=l(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",l("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function f(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],t=n.property,l=i+"("+n.params+")";!o(t,l)&&o(t,e.prefix+l)&&e.functions.push(i)}}}function u(e){if(""!==e.prefix){for(var r=0;r<j.length;r++){for(var i,n={},t=j[r].props[0],l=0;i=j[r].values[l];l++)!o(t,i)&&o(t,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(l=0;t=j[r].props[l];l++)e.keywords[t]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!o("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"];for(var a in C)e.properties[a]=C[a],e.keywords[a]=E}else if(e.keywords.display&&e.keywords.display.box&&!o("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(a in M)e.properties[a]=e.prefix+M[a],e.keywords[a]=O}!o("color","initial")&&o("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function c(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];i[r]=++i[r]||1}}var i={};if(k&&k.length>0)for(var o=0;o<k.length;o++)r(k[o]);else for(var l in k)r(t(l));var a=0;for(var s in i)a<i[s]&&(a=i[s],e.prefix="-"+s+"-");e.Prefix=n(e.prefix)}function x(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":fullscreen":":fullscreen",":full-screen":":fullscreen","::backdrop":"::backdrop",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!s(i)&&s(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function d(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function m(e){r(),c(e),x(e),p(e),u(e),f(e),i()}function y(e){for(var r,i=[],n=[],t=0;r=L.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function h(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function g(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function v(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=a(r)||!a(i=n+r)?r:i};var t=h("",e.selectorList,"(?:\\b|$|[^-])"),o=g("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var s=e.functions.indexOf("linear-gradient")>-1,p=/\blinear-gradient\(/,f=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,i,n){return r+i+(90-n)+"deg"},c=!!e.functions.length,x=h("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=g("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),m=/^\s*([-\w]+)/gi,v=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||z)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(m,v):y(i).map(function(e){return e.replace(m,v)}).join(",")),c&&x.test(i)&&(s&&p.test(i)&&(t=t.replace(f,u)),t=t.replace(d,r)),t)};var b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,w=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(b,w):e};var k=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(k,i)}}function b(){A=d(),"function"==typeof getComputedStyle&&m(A),v(A)}function w(e){var r=A,i=[];return e&&(e.setPrefixDb=function(e){return i.indexOf(e)===-1&&(v(e),i.push(e)),r=e,w}),{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){return!n||"string"!=typeof t&&"number"!=typeof t?e.decl(r.properties[n]||r.fixProperty(n),t):(t+="",void("flex-flow"===n&&r.flexbox2009?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var k,S,P,R,A,j=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],M={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},O={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},C={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},E={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},z={},L=/[(),]|\/\*[\s\S]*?\*\//g;b(),e.prefixPlugin=w,Object.defineProperty(e,"__esModule",{value:!0})});
define(["exports"],function(e){"use strict";function r(){k=getComputedStyle(document.documentElement,null),S=document.createElement("div").style,P=document.documentElement.appendChild(document.createElement("style")),A=o,R=a,"zIndex"in S&&!("z-index"in S)&&(A=function(e,r){return o(n(e),r)},R=function(e){return a(n(e))})}function i(){"undefined"!=typeof document&&document.documentElement.removeChild(P),k=P=null}function n(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function t(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function o(e,r){return S[e]="",S[e]=r,!!S[e]}function l(e){return P.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(P.sheet.cssRules[0].cssText)}function a(e){return e in S}function s(e){return P.textContent=e+"{}",!!P.sheet.cssRules.length}function p(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!s("@"+n)&&s("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=l("resolution:1dppx"),e.hasPixelRatio=l(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=l(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",l("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function f(e){if(""!==e.prefix){var r={"linear-gradient":{property:"background-image",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"background-image",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],t=n.property,o=i+"("+n.params+")";!A(t,o)&&A(t,e.prefix+o)&&e.functions.push(i)}}}function u(e){if(""!==e.prefix){for(var r=0;r<M.length;r++){for(var i,n={},t=M[r].props[0],o=0;i=M[r].values[o];o++)!A(t,i)&&A(t,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(o=0;t=M[r].props[o];o++)e.keywords[t]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!A("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"];for(var l in E)e.properties[l]=E[l],e.keywords[l]=z}else if(e.keywords.display&&e.keywords.display.box&&!A("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(l in O)e.properties[l]=e.prefix+O[l],e.keywords[l]=C}!A("color","initial")&&A("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function c(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];i[r]=++i[r]||1}}var i={};if(k&&k.length>0)for(var o=0;o<k.length;o++)r(k[o]);else for(var l in k)r(t(l));var a=0;for(var s in i)a<i[s]&&(a=i[s],e.prefix="-"+s+"-");e.Prefix=n(e.prefix)}function x(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":fullscreen":":fullscreen",":full-screen":":fullscreen","::backdrop":"::backdrop",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!s(i)&&s(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function d(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function m(e){r(),c(e),x(e),p(e),u(e),f(e),i()}function y(e){for(var r,i=[],n=[],t=0;r=V.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function h(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function g(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function v(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=R(r)||!R(i=n+r)?r:i};var t=h("",e.selectorList,"(?:\\b|$|[^-])"),o=g("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var a=e.functions.indexOf("linear-gradient")>-1,s=/\blinear-gradient\(/,p=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,f=function(e,r,i,n){return r+i+(90-n)+"deg"},u=!!e.functions.length,c=h("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),x=g("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),d=/^\s*([-\w]+)/gi,m=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||L)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(d,m):y(i).map(function(e){return e.replace(d,m)}).join(",")),u&&c.test(i)&&(a&&s.test(i)&&(t=t.replace(p,f)),t=t.replace(x,r)),t)};var v=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,b=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(v,b):e};var w=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(w,i)}}function b(){j=d(),"function"==typeof getComputedStyle&&m(j),v(j)}function w(e){var r=j,i=[];return e&&(e.setPrefixDb=function(e){return i.indexOf(e)===-1&&(v(e),i.push(e)),r=e,w}),{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){return!n||"string"!=typeof t&&"number"!=typeof t?e.decl(r.properties[n]||r.fixProperty(n),t):(t+="",void("flex-flow"===n&&r.flexbox2009?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var k,S,P,R,A,j,M=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],O={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},C={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},E={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},z={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},L={},V=/[(),]|\/\*[\s\S]*?\*\//g;b(),e.prefixPlugin=w,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -10,3 +10,4 @@ 'use strict';

var styleElement;
var convert;
var supportedProperty;
var supportedDecl;

@@ -17,3 +18,9 @@ function init() {

styleElement = document.documentElement.appendChild(document.createElement('style'));
convert = ('zIndex' in styleAttr) ? function(p){return p} : deCamelCase;
supportedDecl = _supportedDecl;
supportedProperty = _supportedProperty;
if ('zIndex' in styleAttr && !('z-index' in styleAttr)) {
// Some browsers like it dash-cased, some camelCased, most like both.
supportedDecl = function(property, value) {return _supportedDecl(camelCase(property), value)};
supportedProperty = function(property) {return _supportedProperty(camelCase(property))};
}
}

@@ -34,4 +41,3 @@ function finalize() {

}
function supportedDecl(property, value) {
property = convert(property);
function _supportedDecl(property, value) {
styleAttr[property] = '';

@@ -48,5 +54,4 @@ styleAttr[property] = value;

}
function supportedProperty(property) {
// Some browsers like it dash-cased, some camelCased, most like both.
return convert(property) in styleAttr
function _supportedProperty(property) {
return property in styleAttr
}

@@ -106,3 +111,3 @@ function supportedRule(selector) {

'linear-gradient': {
property: 'backgroundImage',
property: 'background-image',
params: 'red, teal'

@@ -115,3 +120,3 @@ },

'element': {
property: 'backgroundImage',
property: 'background-image',
params: '#foo'

@@ -118,0 +123,0 @@ },

@@ -1,1 +0,1 @@

"use strict";function init(){allStyles=getComputedStyle(document.documentElement,null),styleAttr=document.createElement("div").style,styleElement=document.documentElement.appendChild(document.createElement("style")),convert="zIndex"in styleAttr?function(e){return e}:deCamelCase}function finalize(){"undefined"!=typeof document&&document.documentElement.removeChild(styleElement),allStyles=styleElement=null}function camelCase(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function deCamelCase(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function supportedDecl(e,r){return e=convert(e),styleAttr[e]="",styleAttr[e]=r,!!styleAttr[e]}function supportedMedia(e){return styleElement.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(styleElement.sheet.cssRules[0].cssText)}function supportedProperty(e){return convert(e)in styleAttr}function supportedRule(e){return styleElement.textContent=e+"{}",!!styleElement.sheet.cssRules.length}function detectAtrules(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var t in r){var i=t+" "+(r[t]||"");!supportedRule("@"+i)&&supportedRule("@"+e.prefix+i)&&(e.hasAtrules=!0,e.atrules["@"+t]="@"+e.prefix+t)}e.hasDppx=supportedMedia("resolution:1dppx"),e.hasPixelRatio=supportedMedia(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=supportedMedia(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",supportedMedia("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function detectFunctions(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var t in r){var i=r[t],n=i.property,l=t+"("+i.params+")";!supportedDecl(n,l)&&supportedDecl(n,e.prefix+l)&&e.functions.push(t)}}}function detectKeywords(e){if(""!==e.prefix){for(var r=0;r<keywords.length;r++){for(var t,i={},n=keywords[r].props[0],l=0;t=keywords[r].values[l];l++)!supportedDecl(n,t)&&supportedDecl(n,e.prefix+t)&&(e.hasKeywords=!0,i[t]=e.prefix+t);for(l=0;n=keywords[r].props[l];l++)e.keywords[n]=i}if(e.keywords.display&&e.keywords.display.flexbox&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"];for(var o in flex2012Props)e.properties[o]=flex2012Props[o],e.keywords[o]=flex2012Values}else if(e.keywords.display&&e.keywords.display.box&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(o in flex2009Props)e.properties[o]=e.prefix+flex2009Props[o],e.keywords[o]=flex2009Values}!supportedDecl("color","initial")&&supportedDecl("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function detectPrefix(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(allStyles&&allStyles.length>0)for(var i=0;i<allStyles.length;i++)r(allStyles[i]);else for(var n in allStyles)r(deCamelCase(n));var l=0;for(var o in t)l<t[o]&&(l=t[o],e.prefix="-"+o+"-");e.Prefix=camelCase(e.prefix)}function detectSelectors(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var t,i;if(""!==e.prefix){var n={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":fullscreen":":fullscreen",":full-screen":":fullscreen","::backdrop":"::backdrop",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(t in n)i=r(t),!supportedRule(t)&&supportedRule(i)&&(e.hasSelectors=!0,e.selectorList.push(n[t]),e.selectorMap[n[t]]=i)}}function blankFixers(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function browserDetector(e){init(),detectPrefix(e),detectSelectors(e),detectAtrules(e),detectKeywords(e),detectFunctions(e),finalize()}function splitValue(e){for(var r,t=[],i=[],n=0;r=valueTokenizer.exec(e);)switch(r[0]){case"(":n++;break;case")":n--;break;case",":if(n)break;t.push(r.index)}for(r=t.length;r--;)i.unshift(e.slice(t[r]+1)),e=e.slice(0,t[r]);return i.unshift(e),i}function makeDetector(e,r,t){return new RegExp(e+"(?:"+r.join("|")+")"+t)}function makeLexer(e,r,t){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+t,"gi")}function finalizeFixers(e){function r(e,r,t){return r+i+t}function t(r,t,i){return"("+(e.properties[t]||e.fixProperty(t))+":"+e.fixValue(i,t)}var i=e.prefix;e.fixProperty=e.fixProperty||function(r){var t;return e.properties[r]=supportedProperty(r)||!supportedProperty(t=i+r)?r:t};var n=makeDetector("",e.selectorList,"(?:\\b|$|[^-])"),l=makeLexer("",e.selectorList,"(?:\\b|$|[^-])"),o=function(r,t){return null!=t?e.selectorMap[t]:r};e.fixSelector=function(e){return n.test(e)?e.replace(l,o):e};var s=e.functions.indexOf("linear-gradient")>-1,a=/\blinear-gradient\(/,p=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,t,i){return r+t+(90-i)+"deg"},f=!!e.functions.length,c=makeDetector("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=makeLexer("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),x=/^\s*([-\w]+)/gi,m=function(r,t){return e.properties[t]||e.fixProperty(t)};e.fixValue=function(t,i){var n;return null!=e.initial&&"initial"===t?e.initial:e.hasKeywords&&(n=(e.keywords[i]||emptySet)[t])?n:(n=t,e.valueProperties.hasOwnProperty(i)&&(n=t.indexOf(",")===-1?t.replace(x,m):splitValue(t).map(function(e){return e.replace(x,m)}).join(",")),f&&c.test(t)&&(s&&a.test(t)&&(n=n.replace(p,u)),n=n.replace(d,r)),n)};var y=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,g=e.hasPixelRatio?function(r,t,i){return e.properties[t]+":"+i}:e.hasPixelRatioFraction?function(r,t,i){return e.properties[t]+":"+Math.round(10*i)+"/10"}:function(e,r,t){return r+":"+Math.round(96*t)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(y,g):e};var h=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(h,t)}}function initBrowser(){commonFixers=blankFixers(),"function"==typeof getComputedStyle&&browserDetector(commonFixers),finalizeFixers(commonFixers)}function prefixPlugin(e){var r=commonFixers,t=[];return e&&(e.setPrefixDb=function(e){return t.indexOf(e)===-1&&(finalizeFixers(e),t.push(e)),r=e,prefixPlugin}),{$filter:function(e){return{atrule:function(t,i,n,l){e.atrule(r.hasAtrules&&r.atrules[t]||t,i,"@media"===t?r.fixAtMediaParams(n):"@supports"===t?r.fixAtSupportsParams(n):n,l)},decl:function t(i,n){return!i||"string"!=typeof n&&"number"!=typeof n?e.decl(r.properties[i]||r.fixProperty(i),n):(n+="",void("flex-flow"===i&&r.flexbox2009?n.split(" ").forEach(function(e){e.indexOf("wrap")>-1?t("flex-wrap",e):""!==e&&t("flex-direction",e)}):"flex-direction"===i&&r.flexbox2009?(e.decl(r.properties["box-orient"],n.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],n.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[i]||r.fixProperty(i),r.fixValue(n,i))))},rule:function(t){e.rule(r.hasSelectors?r.fixSelector(t):t)}}}}}Object.defineProperty(exports,"__esModule",{value:!0});var allStyles,styleAttr,styleElement,convert,keywords=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],flex2009Props={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},flex2009Values={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},flex2012Props={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},flex2012Values={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},emptySet={},valueTokenizer=/[(),]|\/\*[\s\S]*?\*\//g,commonFixers;initBrowser(),exports.prefixPlugin=prefixPlugin;
"use strict";function init(){allStyles=getComputedStyle(document.documentElement,null),styleAttr=document.createElement("div").style,styleElement=document.documentElement.appendChild(document.createElement("style")),supportedDecl=_supportedDecl,supportedProperty=_supportedProperty,"zIndex"in styleAttr&&!("z-index"in styleAttr)&&(supportedDecl=function(e,r){return _supportedDecl(camelCase(e),r)},supportedProperty=function(e){return _supportedProperty(camelCase(e))})}function finalize(){"undefined"!=typeof document&&document.documentElement.removeChild(styleElement),allStyles=styleElement=null}function camelCase(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function deCamelCase(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function _supportedDecl(e,r){return styleAttr[e]="",styleAttr[e]=r,!!styleAttr[e]}function supportedMedia(e){return styleElement.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(styleElement.sheet.cssRules[0].cssText)}function _supportedProperty(e){return e in styleAttr}function supportedRule(e){return styleElement.textContent=e+"{}",!!styleElement.sheet.cssRules.length}function detectAtrules(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var t in r){var i=t+" "+(r[t]||"");!supportedRule("@"+i)&&supportedRule("@"+e.prefix+i)&&(e.hasAtrules=!0,e.atrules["@"+t]="@"+e.prefix+t)}e.hasDppx=supportedMedia("resolution:1dppx"),e.hasPixelRatio=supportedMedia(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=supportedMedia(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",supportedMedia("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function detectFunctions(e){if(""!==e.prefix){var r={"linear-gradient":{property:"background-image",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"background-image",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var t in r){var i=r[t],n=i.property,o=t+"("+i.params+")";!supportedDecl(n,o)&&supportedDecl(n,e.prefix+o)&&e.functions.push(t)}}}function detectKeywords(e){if(""!==e.prefix){for(var r=0;r<keywords.length;r++){for(var t,i={},n=keywords[r].props[0],o=0;t=keywords[r].values[o];o++)!supportedDecl(n,t)&&supportedDecl(n,e.prefix+t)&&(e.hasKeywords=!0,i[t]=e.prefix+t);for(o=0;n=keywords[r].props[o];o++)e.keywords[n]=i}if(e.keywords.display&&e.keywords.display.flexbox&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"];for(var l in flex2012Props)e.properties[l]=flex2012Props[l],e.keywords[l]=flex2012Values}else if(e.keywords.display&&e.keywords.display.box&&!supportedDecl("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(l in flex2009Props)e.properties[l]=e.prefix+flex2009Props[l],e.keywords[l]=flex2009Values}!supportedDecl("color","initial")&&supportedDecl("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function detectPrefix(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];t[r]=++t[r]||1}}var t={};if(allStyles&&allStyles.length>0)for(var i=0;i<allStyles.length;i++)r(allStyles[i]);else for(var n in allStyles)r(deCamelCase(n));var o=0;for(var l in t)o<t[l]&&(o=t[l],e.prefix="-"+l+"-");e.Prefix=camelCase(e.prefix)}function detectSelectors(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var t,i;if(""!==e.prefix){var n={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":fullscreen":":fullscreen",":full-screen":":fullscreen","::backdrop":"::backdrop",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(t in n)i=r(t),!supportedRule(t)&&supportedRule(i)&&(e.hasSelectors=!0,e.selectorList.push(n[t]),e.selectorMap[n[t]]=i)}}function blankFixers(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function browserDetector(e){init(),detectPrefix(e),detectSelectors(e),detectAtrules(e),detectKeywords(e),detectFunctions(e),finalize()}function splitValue(e){for(var r,t=[],i=[],n=0;r=valueTokenizer.exec(e);)switch(r[0]){case"(":n++;break;case")":n--;break;case",":if(n)break;t.push(r.index)}for(r=t.length;r--;)i.unshift(e.slice(t[r]+1)),e=e.slice(0,t[r]);return i.unshift(e),i}function makeDetector(e,r,t){return new RegExp(e+"(?:"+r.join("|")+")"+t)}function makeLexer(e,r,t){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+t,"gi")}function finalizeFixers(e){function r(e,r,t){return r+i+t}function t(r,t,i){return"("+(e.properties[t]||e.fixProperty(t))+":"+e.fixValue(i,t)}var i=e.prefix;e.fixProperty=e.fixProperty||function(r){var t;return e.properties[r]=supportedProperty(r)||!supportedProperty(t=i+r)?r:t};var n=makeDetector("",e.selectorList,"(?:\\b|$|[^-])"),o=makeLexer("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,t){return null!=t?e.selectorMap[t]:r};e.fixSelector=function(e){return n.test(e)?e.replace(o,l):e};var s=e.functions.indexOf("linear-gradient")>-1,a=/\blinear-gradient\(/,p=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,t,i){return r+t+(90-i)+"deg"},f=!!e.functions.length,c=makeDetector("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=makeLexer("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),x=/^\s*([-\w]+)/gi,y=function(r,t){return e.properties[t]||e.fixProperty(t)};e.fixValue=function(t,i){var n;return null!=e.initial&&"initial"===t?e.initial:e.hasKeywords&&(n=(e.keywords[i]||emptySet)[t])?n:(n=t,e.valueProperties.hasOwnProperty(i)&&(n=t.indexOf(",")===-1?t.replace(x,y):splitValue(t).map(function(e){return e.replace(x,y)}).join(",")),f&&c.test(t)&&(s&&a.test(t)&&(n=n.replace(p,u)),n=n.replace(d,r)),n)};var m=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,g=e.hasPixelRatio?function(r,t,i){return e.properties[t]+":"+i}:e.hasPixelRatioFraction?function(r,t,i){return e.properties[t]+":"+Math.round(10*i)+"/10"}:function(e,r,t){return r+":"+Math.round(96*t)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(m,g):e};var h=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(h,t)}}function initBrowser(){commonFixers=blankFixers(),"function"==typeof getComputedStyle&&browserDetector(commonFixers),finalizeFixers(commonFixers)}function prefixPlugin(e){var r=commonFixers,t=[];return e&&(e.setPrefixDb=function(e){return t.indexOf(e)===-1&&(finalizeFixers(e),t.push(e)),r=e,prefixPlugin}),{$filter:function(e){return{atrule:function(t,i,n,o){e.atrule(r.hasAtrules&&r.atrules[t]||t,i,"@media"===t?r.fixAtMediaParams(n):"@supports"===t?r.fixAtSupportsParams(n):n,o)},decl:function t(i,n){return!i||"string"!=typeof n&&"number"!=typeof n?e.decl(r.properties[i]||r.fixProperty(i),n):(n+="",void("flex-flow"===i&&r.flexbox2009?n.split(" ").forEach(function(e){e.indexOf("wrap")>-1?t("flex-wrap",e):""!==e&&t("flex-direction",e)}):"flex-direction"===i&&r.flexbox2009?(e.decl(r.properties["box-orient"],n.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],n.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[i]||r.fixProperty(i),r.fixValue(n,i))))},rule:function(t){e.rule(r.hasSelectors?r.fixSelector(t):t)}}}}}Object.defineProperty(exports,"__esModule",{value:!0});var allStyles,styleAttr,styleElement,supportedProperty,supportedDecl,keywords=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],flex2009Props={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},flex2009Values={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},flex2012Props={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},flex2012Values={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},emptySet={},valueTokenizer=/[(),]|\/\*[\s\S]*?\*\//g,commonFixers;initBrowser(),exports.prefixPlugin=prefixPlugin;

@@ -9,3 +9,4 @@ (function (exports) {

var styleElement;
var convert;
var supportedProperty;
var supportedDecl;

@@ -16,3 +17,9 @@ function init() {

styleElement = document.documentElement.appendChild(document.createElement('style'));
convert = ('zIndex' in styleAttr) ? function(p){return p} : deCamelCase;
supportedDecl = _supportedDecl;
supportedProperty = _supportedProperty;
if ('zIndex' in styleAttr && !('z-index' in styleAttr)) {
// Some browsers like it dash-cased, some camelCased, most like both.
supportedDecl = function(property, value) {return _supportedDecl(camelCase(property), value)};
supportedProperty = function(property) {return _supportedProperty(camelCase(property))};
}
}

@@ -33,4 +40,3 @@ function finalize() {

}
function supportedDecl(property, value) {
property = convert(property);
function _supportedDecl(property, value) {
styleAttr[property] = '';

@@ -47,5 +53,4 @@ styleAttr[property] = value;

}
function supportedProperty(property) {
// Some browsers like it dash-cased, some camelCased, most like both.
return convert(property) in styleAttr
function _supportedProperty(property) {
return property in styleAttr
}

@@ -105,3 +110,3 @@ function supportedRule(selector) {

'linear-gradient': {
property: 'backgroundImage',
property: 'background-image',
params: 'red, teal'

@@ -114,3 +119,3 @@ },

'element': {
property: 'backgroundImage',
property: 'background-image',
params: '#foo'

@@ -117,0 +122,0 @@ },

@@ -1,1 +0,1 @@

!function(e){"use strict";function r(){k=getComputedStyle(document.documentElement,null),P=document.createElement("div").style,S=document.documentElement.appendChild(document.createElement("style")),R="zIndex"in P?function(e){return e}:t}function i(){"undefined"!=typeof document&&document.documentElement.removeChild(S),k=S=null}function n(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function t(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function o(e,r){return e=R(e),P[e]="",P[e]=r,!!P[e]}function l(e){return S.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(S.sheet.cssRules[0].cssText)}function a(e){return R(e)in P}function s(e){return S.textContent=e+"{}",!!S.sheet.cssRules.length}function p(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!s("@"+n)&&s("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=l("resolution:1dppx"),e.hasPixelRatio=l(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=l(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",l("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function f(e){if(""!==e.prefix){var r={"linear-gradient":{property:"backgroundImage",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"backgroundImage",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],t=n.property,l=i+"("+n.params+")";!o(t,l)&&o(t,e.prefix+l)&&e.functions.push(i)}}}function u(e){if(""!==e.prefix){for(var r=0;r<j.length;r++){for(var i,n={},t=j[r].props[0],l=0;i=j[r].values[l];l++)!o(t,i)&&o(t,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(l=0;t=j[r].props[l];l++)e.keywords[t]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!o("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"];for(var a in M)e.properties[a]=M[a],e.keywords[a]=O}else if(e.keywords.display&&e.keywords.display.box&&!o("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(a in C)e.properties[a]=e.prefix+C[a],e.keywords[a]=E}!o("color","initial")&&o("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function c(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];i[r]=++i[r]||1}}var i={};if(k&&k.length>0)for(var o=0;o<k.length;o++)r(k[o]);else for(var l in k)r(t(l));var a=0;for(var s in i)a<i[s]&&(a=i[s],e.prefix="-"+s+"-");e.Prefix=n(e.prefix)}function x(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":fullscreen":":fullscreen",":full-screen":":fullscreen","::backdrop":"::backdrop",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!s(i)&&s(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function d(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function m(e){r(),c(e),x(e),p(e),u(e),f(e),i()}function y(e){for(var r,i=[],n=[],t=0;r=L.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function h(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function g(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function v(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=a(r)||!a(i=n+r)?r:i};var t=h("",e.selectorList,"(?:\\b|$|[^-])"),o=g("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var s=e.functions.indexOf("linear-gradient")>-1,p=/\blinear-gradient\(/,f=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,u=function(e,r,i,n){return r+i+(90-n)+"deg"},c=!!e.functions.length,x=h("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),d=g("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),m=/^\s*([-\w]+)/gi,v=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||z)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(m,v):y(i).map(function(e){return e.replace(m,v)}).join(",")),c&&x.test(i)&&(s&&p.test(i)&&(t=t.replace(f,u)),t=t.replace(d,r)),t)};var b=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,w=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(b,w):e};var k=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(k,i)}}function b(){A=d(),"function"==typeof getComputedStyle&&m(A),v(A)}function w(e){var r=A,i=[];return e&&(e.setPrefixDb=function(e){return i.indexOf(e)===-1&&(v(e),i.push(e)),r=e,w}),{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){return!n||"string"!=typeof t&&"number"!=typeof t?e.decl(r.properties[n]||r.fixProperty(n),t):(t+="",void("flex-flow"===n&&r.flexbox2009?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var k,P,S,R,A,j=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],C={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},E={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},M={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},O={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},z={},L=/[(),]|\/\*[\s\S]*?\*\//g;b(),e.prefixPlugin=w}(this.j2cPrefixPluginBrowser=this.j2cPrefixPluginBrowser||{});
!function(e){"use strict";function r(){k=getComputedStyle(document.documentElement,null),P=document.createElement("div").style,S=document.documentElement.appendChild(document.createElement("style")),A=o,R=a,"zIndex"in P&&!("z-index"in P)&&(A=function(e,r){return o(n(e),r)},R=function(e){return a(n(e))})}function i(){"undefined"!=typeof document&&document.documentElement.removeChild(S),k=S=null}function n(e){return e.replace(/-([a-z])/g,function(e,r){return r.toUpperCase()}).replace("-","")}function t(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}function o(e,r){return P[e]="",P[e]=r,!!P[e]}function l(e){return S.textContent="@media ("+e+"){}",!/^@media(?:\s+not)?\s+all/.test(S.sheet.cssRules[0].cssText)}function a(e){return e in P}function s(e){return S.textContent=e+"{}",!!S.sheet.cssRules.length}function p(e){if(""!==e.prefix){var r={keyframes:"name",viewport:null,document:'regexp(".")'};for(var i in r){var n=i+" "+(r[i]||"");!s("@"+n)&&s("@"+e.prefix+n)&&(e.hasAtrules=!0,e.atrules["@"+i]="@"+e.prefix+i)}e.hasDppx=l("resolution:1dppx"),e.hasPixelRatio=l(e.prefix+"device-pixel-ratio:1"),e.hasPixelRatioFraction=l(e.prefix+"device-pixel-ratio:1/1"),(e.hasPixelRatio||e.hasPixelRatioFraction)&&(e.properties.resolution=e.prefix+"device-pixel-ratio",e.properties["min-resolution"]=e.prefix+"min-device-pixel-ratio",e.properties["max-resolution"]=e.prefix+"max-device-pixel-ratio",l("min-"+e.prefix+"device-pixel-ratio:1")&&(e.properties["min-resolution"]="min-"+e.prefix+"device-pixel-ratio",e.properties["max-resolution"]="max-"+e.prefix+"device-pixel-ratio"))}}function f(e){if(""!==e.prefix){var r={"linear-gradient":{property:"background-image",params:"red, teal"},calc:{property:"width",params:"1px + 5%"},element:{property:"background-image",params:"#foo"},"cross-fade":{property:"backgroundImage",params:"url(a.png), url(b.png), 50%"}};r["repeating-linear-gradient"]=r["repeating-radial-gradient"]=r["radial-gradient"]=r["linear-gradient"];for(var i in r){var n=r[i],t=n.property,o=i+"("+n.params+")";!A(t,o)&&A(t,e.prefix+o)&&e.functions.push(i)}}}function u(e){if(""!==e.prefix){for(var r=0;r<C.length;r++){for(var i,n={},t=C[r].props[0],o=0;i=C[r].values[o];o++)!A(t,i)&&A(t,e.prefix+i)&&(e.hasKeywords=!0,n[i]=e.prefix+i);for(o=0;t=C[r].props[o];o++)e.keywords[t]=n}if(e.keywords.display&&e.keywords.display.flexbox&&!A("display","flex")){e.keywords.display.flex=e.keywords.display.flexbox,e.keywords.display["inline-flex"]=e.keywords.display["inline-flexbox"];for(var l in O)e.properties[l]=O[l],e.keywords[l]=z}else if(e.keywords.display&&e.keywords.display.box&&!A("display","flex")){e.keywords.display.flex=e.keywords.display.box,e.keywords.display["inline-flex"]=e.keywords.display["inline-box"],e.flexbox2009=!0;for(l in E)e.properties[l]=e.prefix+E[l],e.keywords[l]=M}!A("color","initial")&&A("color",e.prefix+"initial")&&(e.initial=e.prefix+"initial")}}function c(e){function r(e){if("-"===e.charAt(0)){var r=e.split("-")[1];i[r]=++i[r]||1}}var i={};if(k&&k.length>0)for(var o=0;o<k.length;o++)r(k[o]);else for(var l in k)r(t(l));var a=0;for(var s in i)a<i[s]&&(a=i[s],e.prefix="-"+s+"-");e.Prefix=n(e.prefix)}function x(e){function r(r){return r.replace(/^::?/,function(r){return r+e.prefix})}var i,n;if(""!==e.prefix){var t={":any-link":":any-link",":read-only":":read-only",":read-write":":read-write","::selection":"::selection",":fullscreen":":fullscreen",":full-screen":":fullscreen","::backdrop":"::backdrop",":placeholder":"::placeholder","::placeholder":"::placeholder",":input-placeholder":"::placeholder","::input-placeholder":"::placeholder"};for(i in t)n=r(i),!s(i)&&s(n)&&(e.hasSelectors=!0,e.selectorList.push(t[i]),e.selectorMap[t[i]]=n)}}function d(){return{atrules:{},hasAtrules:!1,hasDppx:null,hasKeywords:!1,hasPixelRatio:!1,hasPixelRatioFraction:!1,hasSelectors:!1,hasValues:!1,fixAtMediaParams:null,fixAtSupportsParams:null,fixProperty:null,fixSelector:null,fixValue:null,flexbox2009:!1,functions:[],initial:null,keywords:{},placeholder:null,prefix:"",Prefix:"",properties:{},selectorList:[],selectorMap:{},valueProperties:{transition:1,"transition-property":1,"will-change":1}}}function m(e){r(),c(e),x(e),p(e),u(e),f(e),i()}function y(e){for(var r,i=[],n=[],t=0;r=V.exec(e);)switch(r[0]){case"(":t++;break;case")":t--;break;case",":if(t)break;i.push(r.index)}for(r=i.length;r--;)n.unshift(e.slice(i[r]+1)),e=e.slice(0,i[r]);return n.unshift(e),n}function h(e,r,i){return new RegExp(e+"(?:"+r.join("|")+")"+i)}function g(e,r,i){return new RegExp("\"(?:\\\\[\\S\\s]|[^\"])*\"|'(?:\\\\[\\S\\s]|[^'])*'|\\/\\*[\\S\\s]*?\\*\\/|"+e+"((?:"+r.join("|")+"))"+i,"gi")}function v(e){function r(e,r,i){return r+n+i}function i(r,i,n){return"("+(e.properties[i]||e.fixProperty(i))+":"+e.fixValue(n,i)}var n=e.prefix;e.fixProperty=e.fixProperty||function(r){var i;return e.properties[r]=R(r)||!R(i=n+r)?r:i};var t=h("",e.selectorList,"(?:\\b|$|[^-])"),o=g("",e.selectorList,"(?:\\b|$|[^-])"),l=function(r,i){return null!=i?e.selectorMap[i]:r};e.fixSelector=function(e){return t.test(e)?e.replace(o,l):e};var a=e.functions.indexOf("linear-gradient")>-1,s=/\blinear-gradient\(/,p=/(^|\s|,|\()((?:repeating-)?linear-gradient\()\s*(-?\d*\.?\d*)deg/gi,f=function(e,r,i,n){return r+i+(90-n)+"deg"},u=!!e.functions.length,c=h("(?:^|\\s|,|\\()",e.functions,"\\s*\\("),x=g("(^|\\s|,|\\()",e.functions,"(?=\\s*\\()"),d=/^\s*([-\w]+)/gi,m=function(r,i){return e.properties[i]||e.fixProperty(i)};e.fixValue=function(i,n){var t;return null!=e.initial&&"initial"===i?e.initial:e.hasKeywords&&(t=(e.keywords[n]||L)[i])?t:(t=i,e.valueProperties.hasOwnProperty(n)&&(t=i.indexOf(",")===-1?i.replace(d,m):y(i).map(function(e){return e.replace(d,m)}).join(",")),u&&c.test(i)&&(a&&s.test(i)&&(t=t.replace(p,f)),t=t.replace(x,r)),t)};var v=/((?:min-|max-)?resolution)\s*:\s*((?:\d*.)?\d+)dppx/g,b=e.hasPixelRatio?function(r,i,n){return e.properties[i]+":"+n}:e.hasPixelRatioFraction?function(r,i,n){return e.properties[i]+":"+Math.round(10*n)+"/10"}:function(e,r,i){return r+":"+Math.round(96*i)+"dpi"};e.fixAtMediaParams=e.hasDppx!==!1?function(e){return e}:function(e){return e.indexOf("reso")!==-1?e.replace(v,b):e};var w=/\(\s*([-\w]+)\s*:\s*((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\((?:"(?:\\[\S\s]|[^"])*"|'(?:\\[\S\s]|[^'])*'|\/\*[\S\s]*?\*\/|\([^\)]*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*\)|[^\)])*)/g;e.fixAtSupportsParams=function(e){return e.replace(w,i)}}function b(){j=d(),"function"==typeof getComputedStyle&&m(j),v(j)}function w(e){var r=j,i=[];return e&&(e.setPrefixDb=function(e){return i.indexOf(e)===-1&&(v(e),i.push(e)),r=e,w}),{$filter:function(e){return{atrule:function(i,n,t,o){e.atrule(r.hasAtrules&&r.atrules[i]||i,n,"@media"===i?r.fixAtMediaParams(t):"@supports"===i?r.fixAtSupportsParams(t):t,o)},decl:function i(n,t){return!n||"string"!=typeof t&&"number"!=typeof t?e.decl(r.properties[n]||r.fixProperty(n),t):(t+="",void("flex-flow"===n&&r.flexbox2009?t.split(" ").forEach(function(e){e.indexOf("wrap")>-1?i("flex-wrap",e):""!==e&&i("flex-direction",e)}):"flex-direction"===n&&r.flexbox2009?(e.decl(r.properties["box-orient"],t.indexOf("column")>-1?"block-axis":"inline-axis"),e.decl(r.properties["box-direction"],t.indexOf("-reverse")>-1?"reverse":"normal")):e.decl(r.properties[n]||r.fixProperty(n),r.fixValue(t,n))))},rule:function(i){e.rule(r.hasSelectors?r.fixSelector(i):i)}}}}}var k,P,S,R,A,j,C=[{props:["cursor"],values:["grab","grabbing","zoom-in","zoom-out"]},{props:["display"],values:["box","inline-box","flexbox","inline-flexbox","flex","inline-flex","grid","inline-grid"]},{props:["position"],values:["sticky"]},{props:["width","column-width","height","max-height","max-width","min-height","min-width"],values:["contain-floats","fill-available","fit-content","max-content","min-content"]}],E={"align-items":"box-align",flex:"box-flex","box-direction":"box-direction","box-orient":"box-orient","flex-wrap":"box-lines","justify-content":"box-pack",order:"box-ordinal-group"},M={"flex-end":"end","flex-start":"start",nowrap:"single","space-around":"justify","space-between":"justify",wrap:"multiple","wrap-reverse":"multiple"},O={"align-content":"-ms-flex-line-pack","align-items":"-ms-flex-align","align-self":"-ms-flex-item-align","flex-basis":"-ms-preferred-size","flex-grow":"-ms-flex-positive","flex-shrink":"-ms-flex-negative","justify-content":"-ms-flex-pack",order:"-ms-flex-order"},z={"flex-end":"end","flex-start":"start","space-around":"distribute","space-between":"justify"},L={},V=/[(),]|\/\*[\s\S]*?\*\//g;b(),e.prefixPlugin=w}(this.j2cPrefixPluginBrowser=this.j2cPrefixPluginBrowser||{});
{
"name": "j2c-plugin-prefix-browser",
"version": "1.0.3",
"version": "1.0.5",
"description": "Vendor prefix handling for j2c in the browser, built on top of Lea Verou's PrefixFree",

@@ -5,0 +5,0 @@ "main": "dist/j2c-plugin-prefix-browser.commonjs.js",

# j2c-plugin-prefix-browser
This j2c plugin does client side vendor prefix insertion (and some polyfilling) for
This j2c plugin does client side vendor prefix insertion (and some polyfilling) for:

@@ -13,3 +13,3 @@ - properties and values (including flexbox).

You can watch it at work [in your browser](https://cdn.rawgit.com/j2css/j2c/86db0ee4f2ea0e76eebac0b389c068463e3b1cd4/plugins/prefix-browser/tests/index.html).
You can watch it at work [in your browser](https://cdn.rawgit.com/j2css/j2c/23612e7d41cc6c004a8ca67e338869fbc719faac/plugins/prefix-browser/tests/index.html).

@@ -188,3 +188,3 @@ The plugin is well tested (385 assertions, many of which are `deepEquals` on nested objects) and has 100% branch coverage (which doesn't mean it is bug free, off course).

- `column` => `column`
- `column-reverse` => `column-reverse
- `column-reverse` => `column-reverse`
- `row` => `row`

@@ -191,0 +191,0 @@ - `row-reverse` => `row-reverse`

@@ -10,3 +10,3 @@ // Derived from Lea Verou's PrefixFree

'linear-gradient': {
property: 'backgroundImage',
property: 'background-image',
params: 'red, teal'

@@ -19,3 +19,3 @@ },

'element': {
property: 'backgroundImage',
property: 'background-image',
params: '#foo'

@@ -22,0 +22,0 @@ },

// Derived from Lea Verou's PrefixFree
var allStyles, styleAttr, styleElement, convert
var allStyles, styleAttr, styleElement, supportedProperty, supportedDecl

@@ -9,3 +9,9 @@ function init() {

styleElement = document.documentElement.appendChild(document.createElement('style'))
convert = ('zIndex' in styleAttr) ? function(p){return p} : deCamelCase
supportedDecl = _supportedDecl
supportedProperty = _supportedProperty
if ('zIndex' in styleAttr && !('z-index' in styleAttr)) {
// Some browsers like it dash-cased, some camelCased, most like both.
supportedDecl = function(property, value) {return _supportedDecl(camelCase(property), value)}
supportedProperty = function(property) {return _supportedProperty(camelCase(property))}
}
}

@@ -33,4 +39,3 @@ function finalize() {

}
function supportedDecl(property, value) {
property = convert(property)
function _supportedDecl(property, value) {
styleAttr[property] = ''

@@ -47,5 +52,4 @@ styleAttr[property] = value

}
function supportedProperty(property) {
// Some browsers like it dash-cased, some camelCased, most like both.
return convert(property) in styleAttr
function _supportedProperty(property) {
return property in styleAttr
}

@@ -52,0 +56,0 @@ function supportedRule(selector) {

@@ -11,3 +11,3 @@ // This file is generated by `../script/build.js`, from `./_exposed.es6.js`

var styleElement;
var convert;
var supportedDecl;

@@ -18,3 +18,9 @@ function init() {

styleElement = document.documentElement.appendChild(document.createElement('style'));
convert = ('zIndex' in styleAttr) ? function(p){return p} : deCamelCase;
supportedDecl = _supportedDecl;
exports.supportedProperty = _supportedProperty;
if ('zIndex' in styleAttr && !('z-index' in styleAttr)) {
// Some browsers like it dash-cased, some camelCased, most like both.
supportedDecl = function(property, value) {return _supportedDecl(camelCase(property), value)};
exports.supportedProperty = function(property) {return _supportedProperty(camelCase(property))};
}
}

@@ -42,4 +48,3 @@ function finalize() {

}
function supportedDecl(property, value) {
property = convert(property);
function _supportedDecl(property, value) {
styleAttr[property] = '';

@@ -56,5 +61,4 @@ styleAttr[property] = value;

}
function supportedProperty(property) {
// Some browsers like it dash-cased, some camelCased, most like both.
return convert(property) in styleAttr
function _supportedProperty(property) {
return property in styleAttr
}

@@ -114,3 +118,3 @@ function supportedRule(selector) {

'linear-gradient': {
property: 'backgroundImage',
property: 'background-image',
params: 'red, teal'

@@ -123,3 +127,3 @@ },

'element': {
property: 'backgroundImage',
property: 'background-image',
params: '#foo'

@@ -462,4 +466,4 @@ },

return fixers.properties[prop] = (
supportedProperty(prop) ||
!supportedProperty(prefixed = prefix + prop)
exports.supportedProperty(prop) ||
!exports.supportedProperty(prefixed = prefix + prop)
) ? prop : prefixed

@@ -648,3 +652,2 @@ };

exports.deCamelCase = deCamelCase;
exports.supportedProperty = supportedProperty;
exports.detectAtrules = detectAtrules;

@@ -651,0 +654,0 @@ exports.detectFunctions = detectFunctions;

@@ -89,3 +89,3 @@ var camelCase = require('./exposed').camelCase

})
Object.defineProperty(proxy, deCamelCase(prop), {
if (prop != 'zIndex') Object.defineProperty(proxy, deCamelCase(prop), {
configurable: true,

@@ -92,0 +92,0 @@ enumerable: true,

@@ -11,3 +11,3 @@ var o = require('../test-utils/ospec-instance')

var finalize = exposed.finalize
var supportedProperty = exposed.supportedProperty
function supportedProperty (p) {return exposed.supportedProperty(p)}
var blankFixers = exposed.blankFixers

@@ -14,0 +14,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc