!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).RevealNotes=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),o={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,s={f:l&&!o.call({1:2},1)?function(t){var e=l(this,t);return!!e&&e.enumerable}:o},u=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,p=function(t){return c.call(t).slice(8,-1)},d="".split,f=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?d.call(t,""):Object(t)}:Object,h=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return f(h(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},v=function(t,e){if(!m(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,k=function(t,e){return y.call(t,e)},b=r.document,x=m(b)&&m(b.createElement),w=function(t){return x?b.createElement(t):{}},S=!a&&!i((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),_=Object.getOwnPropertyDescriptor,T={f:a?_:function(t,e){if(t=g(t),e=v(e,!0),S)try{return _(t,e)}catch(t){}if(k(t,e))return u(!s.f.call(t,e),t[e])}},E=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,z={f:a?A:function(t,e,n){if(E(t),e=v(e,!0),E(n),S)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},R=a?function(t,e,n){return z.f(t,e,u(1,n))}:function(t,e,n){return t[e]=n,t},O=function(t,e){try{R(r,t,e)}catch(n){r[t]=e}return e},I="__core-js_shared__",$=r[I]||O(I,{}),C=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(t){return C.call(t)});var P,L,j,M=$.inspectSource,N=r.WeakMap,U="function"==typeof N&&/native code/.test(M(N)),q=e((function(t){(t.exports=function(t,e){return $[t]||($[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),D=0,Z=Math.random(),W=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+Z).toString(36)},K=q("keys"),F=function(t){return K[t]||(K[t]=W(t))},J={},H=r.WeakMap;if(U){var B=$.state||($.state=new H),Y=B.get,V=B.has,X=B.set;P=function(t,e){return e.facade=t,X.call(B,t,e),e},L=function(t){return Y.call(B,t)||{}},j=function(t){return V.call(B,t)}}else{var G=F("state");J[G]=!0,P=function(t,e){return e.facade=t,R(t,G,e),e},L=function(t){return k(t,G)?t[G]:{}},j=function(t){return k(t,G)}}var Q={set:P,get:L,has:j,enforce:function(t){return j(t)?L(t):P(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=L(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},tt=e((function(t){var e=Q.get,n=Q.enforce,i=String(String).split("String");(t.exports=function(t,e,a,o){var l,s=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof a&&("string"!=typeof e||k(a,"name")||R(a,"name",e),(l=n(a)).source||(l.source=i.join("string"==typeof e?e:""))),t!==r?(s?!c&&t[e]&&(u=!0):delete t[e],u?t[e]=a:R(t,e,a)):u?t[e]=a:O(e,a)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||M(this)}))})),et=r,nt=function(t){return"function"==typeof t?t:void 0},rt=function(t,e){return arguments.length<2?nt(et[t])||nt(r[t]):et[t]&&et[t][e]||r[t]&&r[t][e]},it=Math.ceil,at=Math.floor,ot=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},lt=Math.min,st=function(t){return t>0?lt(ot(t),9007199254740991):0},ut=Math.max,ct=Math.min,pt=function(t,e){var n=ot(t);return n<0?ut(n+e,0):ct(n,e)},dt=function(t){return function(e,n,r){var i,a=g(e),o=st(a.length),l=pt(r,o);if(t&&n!=n){for(;o>l;)if((i=a[l++])!=i)return!0}else for(;o>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}},ft={includes:dt(!0),indexOf:dt(!1)},ht=ft.indexOf,gt=function(t,e){var n,r=g(t),i=0,a=[];for(n in r)!k(J,n)&&k(r,n)&&a.push(n);for(;e.length>i;)k(r,n=e[i++])&&(~ht(a,n)||a.push(n));return a},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vt=mt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return gt(t,vt)}},kt={f:Object.getOwnPropertySymbols},bt=rt("Reflect","ownKeys")||function(t){var e=yt.f(E(t)),n=kt.f;return n?e.concat(n(t)):e},xt=function(t,e){for(var n=bt(e),r=z.f,i=T.f,a=0;a0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(s="(?: "+s+")",c=" "+c,u++),n=new RegExp("^(?:"+s+")",l)),Ut&&(n=new RegExp("^"+s+"$(?!\\s)",l)),Mt&&(e=a.lastIndex),r=Pt.call(o?n:a,c),o?r?(r.input=r.input.slice(u),r[0]=r[0].slice(u),r.index=a.lastIndex,a.lastIndex+=r[0].length):a.lastIndex=0:Mt&&r&&(a.lastIndex=a.global?r.index+r[0].length:e),Ut&&r&&r.length>1&&Lt.call(r[0],n,(function(){for(i=1;i")})),Yt="$0"==="a".replace(/./,"$0"),Vt=Jt("replace"),Xt=!!/./[Vt]&&""===/./[Vt]("a","$0"),Gt=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Qt=function(t,e,n,r){var a=Jt(t),o=!i((function(){var e={};return e[a]=function(){return 7},7!=""[t](e)})),l=o&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Ht]=function(){return n},n.flags="",n[a]=/./[a]),n.exec=function(){return e=!0,null},n[a](""),!e}));if(!o||!l||"replace"===t&&(!Bt||!Yt||Xt)||"split"===t&&!Gt){var s=/./[a],u=n(a,""[t],(function(t,e,n,r,i){return e.exec===qt?o&&!i?{done:!0,value:s.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Yt,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Xt}),c=u[0],p=u[1];tt(String.prototype,t,c),tt(RegExp.prototype,a,2==e?function(t,e){return p.call(t,this,e)}:function(t){return p.call(t,this)})}r&&R(RegExp.prototype[a],"sham",!0)},te=function(t){return function(e,n){var r,i,a=String(h(e)),o=ot(n),l=a.length;return o<0||o>=l?t?"":void 0:(r=a.charCodeAt(o))<55296||r>56319||o+1===l||(i=a.charCodeAt(o+1))<56320||i>57343?t?a.charAt(o):r:t?a.slice(o,o+2):i-56320+(r-55296<<10)+65536}},ee={codeAt:te(!1),charAt:te(!0)}.charAt,ne=function(t,e,n){return e+(n?ee(t,e).length:1)},re=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return qt.call(t,e)};Qt("match",1,(function(t,e,n){return[function(e){var n=h(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=E(t),a=String(this);if(!i.global)return re(i,a);var o=i.unicode;i.lastIndex=0;for(var l,s=[],u=0;null!==(l=re(i,a));){var c=String(l[0]);s[u]=c,""===c&&(i.lastIndex=ne(a,st(i.lastIndex),o)),u++}return 0===u?null:s}]}));var ie=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};Qt("search",1,(function(t,e,n){return[function(e){var n=h(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var i=E(t),a=String(this),o=i.lastIndex;ie(o,0)||(i.lastIndex=0);var l=re(i,a);return ie(i.lastIndex,o)||(i.lastIndex=o),null===l?-1:l.index}]}));var ae={};ae[Jt("toStringTag")]="z";var oe="[object z]"===String(ae),le=Jt("toStringTag"),se="Arguments"==p(function(){return arguments}()),ue=oe?p:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),le))?n:se?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},ce=oe?{}.toString:function(){return"[object "+ue(this)+"]"};oe||tt(Object.prototype,"toString",ce,{unsafe:!0});var pe="toString",de=RegExp.prototype,fe=de.toString,he=i((function(){return"/a/b"!=fe.call({source:"a",flags:"b"})})),ge=fe.name!=pe;function me(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ve(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){l=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}(he||ge)&&tt(RegExp.prototype,pe,(function(){var t=E(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in de)?It.call(t):n)}),{unsafe:!0});var Se,_e=Object.keys||function(t){return gt(t,mt)},Te=a?Object.defineProperties:function(t,e){E(t);for(var n,r=_e(e),i=r.length,a=0;i>a;)z.f(t,n=r[a++],e[n]);return t},Ee=rt("document","documentElement"),Ae=F("IE_PROTO"),ze=function(){},Re=function(t){return"