/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/parse-glob@3.0.4/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*!
 * parse-glob <https://github.com/jonschlinkert/parse-glob>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
"use strict";var isGlob=require("is-glob"),findBase=require("glob-base"),extglob=require("is-extglob"),dotfile=require("is-dotfile"),cache=module.exports.cache={};function dotdir(e){return-1!==e.indexOf("/.")||"."===e.charAt(0)&&"/"!==e.charAt(1)}function has(e,a,t){return e&&-1!==a.indexOf(t)}function escape(e){return e.replace(/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g,(function(e,a,t,i){var n=a||t||i;return n?e.split(n).join(esc(n)):e}))}function esc(e){return e=(e=e.split("/").join("__SLASH__")).split(".").join("__DOT__")}function unescape(e){return e=(e=e.split("__SLASH__").join("/")).split("__DOT__").join(".")}module.exports=function(e){if(cache.hasOwnProperty(e))return cache[e];var a={};a.orig=e,a.is={},e=escape(e);var t=findBase(e);a.is.glob=t.isGlob,a.glob=t.glob,a.base=t.base;var i=/([^\/]*)$/.exec(e);a.path={},a.path.dirname="",a.path.basename=i[1]||"",a.path.dirname=e.split(a.path.basename).join("")||"";var n=(a.path.basename||"").split(".")||"";a.path.filename=n[0]||"",a.path.extname=n.slice(1).join(".")||"",a.path.ext="",isGlob(a.path.dirname)&&!a.path.basename&&(/\/$/.test(a.glob)||(a.path.basename=a.glob),a.path.dirname=a.base),-1!==e.indexOf("/")||a.is.globstar||(a.path.dirname="",a.path.basename=a.orig);var s=a.path.basename.indexOf(".");if(-1!==s&&(a.path.filename=a.path.basename.slice(0,s),a.path.extname=a.path.basename.slice(s)),"."===a.path.extname.charAt(0)){var r=a.path.extname.split(".");a.path.ext=r[r.length-1]}a.glob=unescape(a.glob),a.path.dirname=unescape(a.path.dirname),a.path.basename=unescape(a.path.basename),a.path.filename=unescape(a.path.filename),a.path.extname=unescape(a.path.extname);var p=e&&a.is.glob;return a.is.negated=e&&"!"===e.charAt(0),a.is.extglob=e&&extglob(e),a.is.braces=has(p,e,"{"),a.is.brackets=has(p,e,"[:"),a.is.globstar=has(p,e,"**"),a.is.dotfile=dotfile(a.path.basename)||dotfile(a.path.filename),a.is.dotdir=dotdir(a.path.dirname),cache[e]=a};
//# sourceMappingURL=/sm/f39db0fa2f9e8da09ed983178c9d219ecab94bab3c0a7c11533c53adf1fdad28.map