var h=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,b=/\n/g,d=/^\s*/,P=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,S=/^:\s*/,w=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,N=/^[;\s]*/,G=/^\s+|\s+$/g,I=` `,O="/",R="*",o="",X="comment",L="declaration",M=function(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var c=1,a=1;function f(n){var r=n.match(b);r&&(c+=r.length);var i=n.lastIndexOf(I);a=~i?n.length-i:a+n.length}function E(){var n={line:c,column:a};return function(r){return r.position=new p(n),v(),r}}function p(n){this.start=n,this.end={line:c,column:a},this.source=e.source}p.prototype.content=t;function s(n){var r=new Error(e.source+":"+c+":"+a+": "+n);if(r.reason=n,r.filename=e.source,r.line=c,r.column=a,r.source=t,!e.silent)throw r}function u(n){var r=n.exec(t);if(r){var i=r[0];return f(i),t=t.slice(i.length),r}}function v(){u(d)}function l(n){var r;for(n=n||[];r=m();)r!==!1&&n.push(r);return n}function m(){var n=E();if(!(O!=t.charAt(0)||R!=t.charAt(1))){for(var r=2;o!=t.charAt(r)&&(R!=t.charAt(r)||O!=t.charAt(r+1));)++r;if(r+=2,o===t.charAt(r-1))return s("End of comment missing");var i=t.slice(2,r-2);return a+=2,f(i),t=t.slice(r),a+=2,n({type:X,comment:i})}}function A(){var n=E(),r=u(P);if(r){if(m(),!u(S))return s("property missing ':'");var i=u(w),_=n({type:L,property:g(r[0].replace(h,o)),value:i?g(i[0].replace(h,o)):o});return u(N),_}}function T(){var n=[];l(n);for(var r;r=A();)r!==!1&&(n.push(r),l(n));return n}return v(),T()};function g(t){return t?t.replace(G,o):o}function j(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}/*! * is-extendable * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */var C=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")};export{C as a,M as b,j as i};