!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((r=r||self).rtlCSSJSCore={})}(this,(function(r){"use strict";function t(r){return r.reduce((function(r,t){var e=t[0],n=t[1];return r[e]=n,r[n]=e,r}),{})}function e(r){return"boolean"==typeof r}function n(r){return"function"==typeof r}function o(r){return"number"==typeof r}function i(r){return null==r}function a(r){return r&&"object"==typeof r}function s(r){return"string"==typeof r}function u(r,t){return-1!==r.indexOf(t)}function l(r){return 0===parseFloat(r)?r:"-"===r[0]?r.slice(1):"-"+r}function g(r,t,e,n){return t+l(e)+n}function d(r){var t=r.indexOf(".");if(-1===t)r=100-parseFloat(r)+"%";else{var e=r.length-t-2;r=(r=100-parseFloat(r)).toFixed(e)+"%"}return r}function f(r){return r.replace(/ +/g," ").split(" ").map((function(r){return r.trim()})).filter(Boolean).reduce((function(r,t){var e=r.list,n=r.state,o=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return n.parensDepth>0?e[e.length-1]=e[e.length-1]+" "+t:e.push(t),n.parensDepth+=o-i,{list:e,state:n}}),{list:[],state:{parensDepth:0}}).list}function c(r){var t=f(r);if(t.length<=3||t.length>4)return r;var e=t[0],n=t[1],o=t[2];return[e,t[3],o,n].join(" ")}function p(r){return!e(r)&&!i(r)}function b(r){for(var t=[],e=0,n=0,o=!1;n