!function(b,a){typeof exports==='object'&&typeof module!=='undefined'?module.exports=b():typeof define==='function'&&define.amd?define([],b):(typeof window!=='undefined'?a=window:typeof global!=='undefined'?a=global:typeof self!=='undefined'?a=self:a=this,a.remarkSlug=b())}(function(){return function a(b,c,e){function f(d,k){if(!c[d]){if(!b[d]){var i=typeof require=='function'&&require;if(!k&&i)return i(d,!0);if(g)return g(d,!0);var j=new Error("Cannot find module '"+d+"'");throw j.code='MODULE_NOT_FOUND',j}var h=c[d]={exports:{}};b[d][0].call(h.exports,function(c){var a=b[d][1][c];return f(a?a:c)},h,h.exports,a,b,c,e)}return c[d].exports}var g=typeof require=='function'&&require;for(var d=0;d?@[\]^`{|}~]/g,e='-';return typeof a!=='string'?'':(g||(a=a.replace(/[A-Z]+/g,f)),a.trim().replace(d,'').replace(b(),'').replace(c,e))}var b=d('emoji-regex');e.exports=a,a.prototype.slug=function(e,d){d=d===!0;var c=this,a=g(e,d),b=c.occurrences[a];return c.occurrences.hasOwnProperty(a)?b++:b=0,c.occurrences[a]=b,b&&(a=a+'-'+b),a},a.prototype.reset=function(){this.occurrences={}};var c=/\s/g},{'emoji-regex':2}],4:[function(d,b,e){'use strict';function a(b){return c(b)||b.children&&b.children.map(a).join('')||''}function c(a){return a?a.value?a.value:(a.alt?a.alt:a.title)||'':''}b.exports=a},{}],5:[function(i,c,j){'use strict';function b(i,e,c,d,j){var f=d!==null&&d!==undefined,g=c!==null&&c!==undefined,h=a(i);if(g&&(typeof c!=='number'||c<0||c===Infinity))throw new Error('Expected positive finite index or child node');if(f&&!(b(null,d)&&d.children))throw new Error('Expected parent node');if(!(e&&e.type)||typeof e.type!=='string')return!1;if(f!==g)throw new Error('Expected both parent and index');return Boolean(h.call(j,e,c,d))}function a(a){if(typeof a==='string')return d(a);if(a===null||a===undefined)return e;if(typeof a==='object')return('length'in a?f:h)(a);if(typeof a==='function')return a;throw new Error('Expected function, string, or object as test')}function g(d){var c=[],e=d.length,b=-1;while(++bf&&a