-
Notifications
You must be signed in to change notification settings - Fork 4
/
cssprefix.min.js
2 lines (2 loc) · 2.34 KB
/
cssprefix.min.js
1
2
/*! CSSPrefix v2.0.17 (c) anseki https://github.com/anseki/cssprefix */
var CSSPrefix=function(e){var r={};function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var u in e)t.d(n,u,function(r){return e[r]}.bind(null,u));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";function n(e){return e.substr(0,1).toUpperCase()+e.substr(1)}t.r(r);var u,o,i,a,c=["webkit","moz","ms","o"],l=c.reduce((function(e,r){return e.push(r),e.push(n(r)),e}),[]),f=c.map((function(e){return"-".concat(e,"-")})),s=function(){return a=a||document.createElement("div").style},p=(o=new RegExp("^(?:"+c.join("|")+")(.)","i"),i=/[A-Z]/,function(e){return"float"===(e=(e+"").replace(/\s/g,"").replace(/-([\da-z])/gi,(function(e,r){return r.toUpperCase()})).replace(o,(function(e,r){return i.test(r)?r.toLowerCase():e}))).toLowerCase()?"cssFloat":e}),d=(u=new RegExp("^(?:"+f.join("|")+")","i"),function(e){return(null!=e?e+"":"").replace(/\s/g,"").replace(u,"")}),v=function(e,r){var t=s();return e=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),t.setProperty(e,r),null!=t[e]&&t.getPropertyValue(e)===r},y={},b={};function g(e){if((e=p(e))&&null==y[e]){var r=s();if(null!=r[e])y[e]=e;else{var t=n(e);l.some((function(n){var u=n+t;return null!=r[u]&&(y[e]=u,!0)}))||(y[e]=!1)}}return y[e]||void 0}var m={getName:g,getValue:function(e,r){var t;return(e=g(e))?(b[e]=b[e]||{},(Array.isArray(r)?r:[r]).some((function(r){return r=d(r),null!=b[e][r]?!1!==b[e][r]&&(t=b[e][r],!0):v(e,r)?(t=b[e][r]=r,!0):!!f.some((function(n){var u=n+r;return!!v(e,u)&&(t=b[e][r]=u,!0)}))||(b[e][r]=!1,!1)})),"string"==typeof t?t:void 0):t}};r.default=m}]).default;