!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define("vShape",[],t):"object"===typeof exports?exports.vShape=t():e.vShape=t()}("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var c=t[o]={i:o,l:!1,exports:{}};return e[o].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var c in e)n.d(o,c,function(t){return e[t]}.bind(null,c));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s="4XVO")}({"4XVO":function(e,t,n){"use strict";n.r(t);var o=n("g8md");const c="mdc-shape--rounded",r="mdc-shape--cut",u={small:"mdc-shape--small",medium:"mdc-shape--medium",large:"mdc-shape--large"},i=(e,t)=>{let{value:n,modifiers:o}=t;if(o.cut){let t=n.split(" ").map((e=>e)),o="0% ".concat(t[0],", ").concat(t[0]," 0%"),c="calc(100% - ".concat(t[1],") 0, 100% ").concat(t[1]),r="100% calc(100% - ".concat(t[2],"), calc(100% - ").concat(t[2],") 100%"),u="".concat(t[3]," 100%, 0px calc(100% - ").concat(t[3],")");e.style.clipPath="polygon(".concat(o,", ").concat(c,", ").concat(r,", ").concat(u,")")}else e.style.borderRadius=n},a=(e,t,n)=>{let{value:o,modifiers:a}=n;if("update"===e)o&&i(t,{value:o,modifiers:a});else if(o)i(t,{value:o,modifiers:a});else{let n=a.cut?[r]:[c];a.small?n.push(u.small):a.large?n.push(u.large):n.push(u.medium),t.classList[e](...n)}},l={name:"shape",bind(e,t){a("add",e,t)},update(e,t){a("update",e,t)},unbind(e,t){a("remove",e,t)}};Object(o.a)(l,"directive"),t.default=l},Y0i2:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(o){"object"===typeof window&&(n=window)}e.exports=n},g8md:function(e,t,n){"use strict";(function(e){t.a=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",o=null;"undefined"!==typeof window?o=window.Vue:"undefined"!==typeof e&&(o=e.Vue),o&&("directive"===n?o.directive(t.name,t):o.use(t))}}).call(this,n("Y0i2"))}}).default}));