!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Pagine=t():e.Pagine=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assign=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r/g,">")}function u(e){function t(e){var t=i[e.replace(/\*/g,"_")[1]||""],n=h[h.length-1]==e;return t?t[1]?(h[n?"pop":"push"](e),t[0|n]):t[0]:e}function n(){for(var e="";h.length;)e+=t(h[h.length-1]);return e}var s,a,c,l,f,p=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^```(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:\!\[([^\]]*?)\]\(([^\)]+?)\))|(\[)|(\](?:\(([^\)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(\-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,3})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*])/gm,h=[],d="",v=0,m={};for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(e,t,n){return m[t.toLowerCase()]=n,""}).replace(/^\n+|\n+$/g,"");c=p.exec(e);)a=e.substring(v,c.index),v=p.lastIndex,s=c[0],a.match(/[^\\](\\\\)*\\$/)||(c[3]||c[4]?s='
'+r(o(c[3]||c[4]).replace(/^\n+|\n+$/g,""))+"
":c[6]?(f=c[6],f.match(/\./)&&(c[5]=c[5].replace(/^\d+/gm,"")),l=u(r(c[5].replace(/^\s*[>*+.-]/gm,""))),">"===f?f="blockquote":(f=f.match(/\./)?"ol":"ul",l=l.replace(/^(.*)(\n|$)/gm,"
  • $1
  • ")),s="<"+f+">"+l+""):c[8]?s=''+o(c[7])+'':c[10]?(d=d.replace("",''),s=n()+""):c[9]?s="":c[12]||c[14]?(f="h"+(c[14]?c[14].length:"="===c[13][0]?1:2),s="<"+f+">"+u(c[12]||c[15])+""):c[16]?s=""+o(c[16])+"":(c[17]||c[1])&&(s=t(c[17]||"--"))),d+=a,d+=s;return(d+e.substring(v)+n()).trim()}Object.defineProperty(t,"__esModule",{value:!0});var i={"":["",""],_:["",""],"\n":["
    "]," ":["
    "],"-":["
    "]};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof fetch?fetch.bind():function(e,t){return t=t||{},new Promise(function(n,r){function o(){var e,t=[],n=[],r={};return u.getAllResponseHeaders().replace(/^(.*?):\s*([\s\S]*?)$/gm,function(o,u,i){t.push(u=u.toLowerCase()),n.push([u,i]),e=r[u],r[u]=e?e+","+i:i}),{ok:1==(u.status/200|0),status:u.status,statusText:u.statusText,url:u.responseURL,clone:o,text:function(){return Promise.resolve(u.responseText)},json:function(){return Promise.resolve(u.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([u.response]))},headers:{keys:function(){return t},entries:function(){return n},get:function(e){return r[e.toLowerCase()]},has:function(e){return e.toLowerCase()in r}}}}var u=new XMLHttpRequest;u.open(t.method||"get",e);for(var i in t.headers)u.setRequestHeader(i,t.headers[i]);u.withCredentials="include"==t.credentials,u.onload=function(){n(o())},u.onerror=r,u.send(t.body)})};t.default=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("\t").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):this.cache[e]=this.cache[e]||this.tmpl(document.getElementById(e).innerHTML);return t?n(t):n}}]),e}();t.default=u}])});