git.psu.edu has been upgraded to 13.8.4. Please email support@git.psu.edu with any Gitlab problems. See the git.psu.edu yammer group for more information. 13.9.x will be soon.

Commit 1808a0c5 authored by ROBERT PATRICK CAREY III's avatar ROBERT PATRICK CAREY III 🗿

FontAPI + FontFaceObserver

parent dc82a5d6
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=41)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var o=n(18)("wks"),r=n(8),i=n(0).Symbol,s="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=s&&i[t]||(s?i:r)("Symbol."+t))}).store=o},function(t,e,n){var o=n(3),r=n(12);t.exports=n(4)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(10),r=n(24),i=n(17),s=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return s(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}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var o=n(27),r=n(30);t.exports=function(t){return o(r(t))}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var o=n(6);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var o=n(0),r=n(2),i=n(5),s=n(8)("src"),c=Function.toString,a=(""+c).split("toString");n(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var u="function"==typeof n;u&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(u&&(i(n,s)||r(n,s,t[e]?""+t[e]:a.join(String(e)))),t===o?t[e]=n:c?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||c.call(this)})},function(t,e){t.exports=!1},function(t,e,n){var o=n(37),r=n(21);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e,n){var o=n(0),r=n(9),i=n(2),s=n(13),c=n(26),a=function(t,e,n){var u,l,f,d,p=t&a.F,m=t&a.G,h=t&a.S,y=t&a.P,v=t&a.B,g=m?o:h?o[e]||(o[e]={}):(o[e]||{}).prototype,b=m?r:r[e]||(r[e]={}),w=b.prototype||(b.prototype={});for(u in m&&(n=e),n)f=((l=!p&&g&&void 0!==g[u])?g:n)[u],d=v&&l?c(f,o):y&&"function"==typeof f?c(Function.call,f):f,g&&s(g,u,f,t&a.U),b[u]!=f&&i(b,u,d),y&&w[u]!=f&&(w[u]=f)};o.core=r,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var o=n(6);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var o=n(9),r=n(0),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(14)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var o=n(3).f,r=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){var o=n(18)("keys"),r=n(8);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports={}},function(t,e,n){t.exports=!n(4)&&!n(11)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(6),r=n(0).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){var o=n(43);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var o=n(28);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var o=n(30);t.exports=function(t){return Object(o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var o=n(32),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){var o=n(28);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,n){var o=n(1)("unscopables"),r=Array.prototype;null==r[o]&&n(2)(r,o,{}),t.exports=function(t){r[o][t]=!0}},function(t,e,n){var o=n(0),r=n(9),i=n(14),s=n(36),c=n(3).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:s.f(t)})}},function(t,e,n){e.f=n(1)},function(t,e,n){var o=n(5),r=n(7),i=n(51)(!1),s=n(20)("IE_PROTO");t.exports=function(t,e){var n,c=r(t),a=0,u=[];for(n in c)n!=s&&o(c,n)&&u.push(n);for(;e.length>a;)o(c,n=e[a++])&&(~i(u,n)||u.push(n));return u}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(10),r=n(53),i=n(21),s=n(20)("IE_PROTO"),c=function(){},a=function(){var t,e=n(25)("iframe"),o=i.length;for(e.style.display="none",n(54).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;o--;)delete a.prototype[i[o]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=o(t),n=new c,c.prototype=null,n[s]=t):n=a(),void 0===e?n:r(n,e)}},function(t,e,n){var o=n(37),r=n(21).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e,n){"use strict";n.r(e);n(42),n(47),n(48),n(57),n(63);var o={fontSize:{base:1,max:1.5,min:.75,increment:.5},fontFamily:"sans",viewingMode:"light",readingMode:"enable",dyslexiaFont:{name:"Open Dyslexic",url:"https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@20160623-Stable/woff/OpenDyslexic-Regular.woff"}},r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fontSize,r=void 0===e?o.fontSize.base:e,i=t.fontFamily,s=void 0===i?o.fontFamily:i,c=t.viewingMode,a=void 0===c?o.viewingMode:c,u=t.readingMode;return{fontSize:r,fontFamily:s,viewingMode:a,readingMode:void 0===u?o.readingMode:u,setFontSize:function(t){t=t||o.fontSize.base;try{t<o.fontSize.min?t=o.fontSize.min:t>o.fontSize.max&&(t=o.fontSize.max),document.documentElement.style.fontSize=t+"rem",this.fontSize=t}catch(t){console.warn(t)}return this},setFontFamily:function(t){t=t||o.fontFamily;try{"serif"==t?(document.documentElement.classList.remove("font-sans","font-dyslexic"),document.documentElement.classList.add("font-serif")):"dyslexic"==t?(document.documentElement.classList.remove("font-sans","font-serif"),document.documentElement.classList.add("font-dyslexic"),this.fetchFontFace(o.dyslexiaFont)):(t="sans",document.documentElement.classList.remove("font-dyslexic","font-serif"),document.documentElement.classList.add("font-sans")),this.fontFamily=t}catch(t){console.warn(t)}return this},fetchFontFace:function(t){var e=new(n(64))(t.name);e.load().then(function(){document.fonts.add(e)})},setViewingMode:function(t){t=t||o.viewingMode;try{if("dark"==t)document.documentElement.classList.remove("light-mode"),document.documentElement.classList.add("dark-mode");else{if("light"!=t)throw"Unsupported viewing mode: "+t;document.documentElement.classList.remove("dark-mode"),document.documentElement.classList.add("light-mode")}this.viewingMode=t}catch(t){console.warn(t)}return this},setReadingMode:function(t){t=t||o.readingMode;try{"disable"==t?document.documentElement.classList.add("reading-mode"):(t="enable",document.documentElement.classList.remove("reading-mode")),this.readingMode=t}catch(t){console.warn(t)}return this},setSelected:function(){this.setFontSize(this.fontSize),this.setFontFamily(this.fontFamily),this.setViewingMode(this.viewingMode),this.setReadingMode(this.readingMode);var t=document.querySelectorAll(".fontSlider"),e=!0,n=!1,o=void 0;try{for(var r,i=t[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){r.value.value=this.fontSize}}catch(t){n=!0,o=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw o}}var s=document.querySelectorAll(".toggle-font-"+this.fontFamily),c=!0,a=!1,u=void 0;try{for(var l,f=s[Symbol.iterator]();!(c=(l=f.next()).done);c=!0){l.value.classList.add("active")}}catch(t){a=!0,u=t}finally{try{c||null==f.return||f.return()}finally{if(a)throw u}}var d=document.querySelectorAll(".toggle-"+this.viewingMode+"-mode"),p=!0,m=!1,h=void 0;try{for(var y,v=d[Symbol.iterator]();!(p=(y=v.next()).done);p=!0){y.value.classList.add("active")}}catch(t){m=!0,h=t}finally{try{p||null==v.return||v.return()}finally{if(m)throw h}}var g=document.querySelectorAll("."+this.readingMode+"-cards"),b=!0,w=!1,S=void 0;try{for(var x,E=g[Symbol.iterator]();!(b=(x=E.next()).done);b=!0){x.value.classList.add("active")}}catch(t){w=!0,S=t}finally{try{b||null==E.return||E.return()}finally{if(w)throw S}}}}};document.addEventListener("DOMContentLoaded",function(t){!function(t){var e,n,i,s,c,a=function(){if("undefined"!=typeof Storage)return JSON.parse(localStorage.getItem("userPreferences"));console.warn("Unable to retrieve settings. This browser may not support local storage.")}();(e=a?r({fontSize:a.fontSize,fontFamily:a.fontFamily,viewingMode:a.viewingMode,readingMode:a.readingMode}):r()).setSelected(),window.addEventListener("resize",(n=function(){window.innerWidth<=767&&l(!0)},i=100,function(){var t=this,e=arguments,o=s&&!c;clearTimeout(c),c=setTimeout(function(){c=null,s||n.apply(t,e)},i),o&&n.apply(t,e)}));var u=document.getElementById("sidebar_collapse");function l(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?(document.getElementById("sidebar_first").classList.remove("collapsed"),setTimeout(function(){document.querySelector(".main-content").classList.add("col-md-9")},500)):(document.querySelector(".main-content").classList.remove("col-md-9"),document.getElementById("sidebar_first").classList.add("collapsed"))}function f(){t(".toggle-fullscreen").find("[data-fa-processed]").toggleClass("fa-expand").toggleClass("fa-compress"),"Enter Fullscreen"===t(".toggle-fullscreen").attr("data-original-title")?t(".toggle-fullscreen").attr("title","Exit Fullscreen"):t(".toggle-fullscreen").attr("title","Enter Fullscreen")}null!==u&&(u.onclick=function(){l(document.getElementById("sidebar_first").classList.contains("collapsed"))}),new MutationObserver(function(t){1==t[0].target.classList.contains("collapsed")?(document.querySelector("#sidebar_collapse svg").classList.remove("fa-arrow-alt-from-right"),document.querySelector("#sidebar_collapse svg").classList.add("fa-arrow-alt-from-left"),document.querySelector("#sidebar_collapse").setAttribute("title","Show sidebar")):(document.querySelector("#sidebar_collapse svg").classList.remove("fa-arrow-alt-from-left"),document.querySelector("#sidebar_collapse svg").classList.add("fa-arrow-alt-from-right"),document.querySelector("#sidebar_collapse").setAttribute("title","Hide sidebar"))}).observe(document.getElementById("sidebar_first"),{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1}),t(".toggle-font-serif").on("click touchstart",function(){t(".toggle-font-sans").removeClass("active"),t(".toggle-font-dyslexic").removeClass("active"),e.setFontFamily("serif")}),t(".toggle-font-sans").on("click touchstart",function(){t(".toggle-font-serif").removeClass("active"),t(".toggle-font-dyslexic").removeClass("active"),e.setFontFamily("sans")}),t(".toggle-font-dyslexic").on("click touchstart",function(){t(".toggle-font-serif").removeClass("active"),t(".toggle-font-sans").removeClass("active"),e.fetchFontFace(o.dyslexiaFont),e.setFontFamily("dyslexic")}),t(".toggle-dark-mode").on("click touchstart",function(){t(".toggle-light-mode").removeClass("active"),e.setViewingMode("dark")}),t(".toggle-light-mode").on("click touchstart",function(){t(".toggle-dark-mode").removeClass("active"),e.setViewingMode("light")}),t(".disable-cards").on("click touchstart",function(){t(".enable-cards").removeClass("active"),e.setReadingMode("disable")}),t(".enable-cards").on("click touchstart",function(){t(".disable-cards").removeClass("active"),e.setReadingMode("enable")}),t(".reset-mode").on("click touchstart",function(){t("#userPreferences button").removeClass("active"),function(t){t.setFontSize(o.fontSize.base),t.setFontFamily(o.fontFamily),t.setViewingMode(o.viewingMode),t.setReadingMode(o.readingMode),t.setSelected(),"undefined"!=typeof Storage?localStorage.removeItem("userPreferences"):console.warn("Unable to store settings. This browser may not support local storage.")}(e)}),t(".save-user-preferences").on("click touchstart",function(){t("#userPreferences").modal("toggle"),function(t){"undefined"!=typeof Storage?localStorage.setItem("userPreferences",JSON.stringify(t)):console.warn("Unable to store settings. This browser may not support local storage.")}(e)}),t(".toggle-fullscreen").on("click touchstart",function(){var t;document.fullscreen?document.exitFullscreen():document.mozFullScreen?document.mozCancelFullScreen():document.webkitIsFullScreen?document.webkitCancelFullScreen():document.msFullscreenElement?document.msExitFullscreen():(t=document.documentElement).requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}),t(".fontSlider").on("input change",function(){e.setFontSize(this.value)}),document.addEventListener("webkitfullscreenchange",f,!1),document.addEventListener("mozfullscreenchange",f,!1),document.addEventListener("fullscreenchange",f,!1),document.addEventListener("MSFullscreenChange",f,!1)}(jQuery)})},function(t,e,n){"use strict";var o=n(16),r=n(44)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),o(o.P+o.F*i,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(34)("find")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var o=n(26),r=n(27),i=n(29),s=n(31),c=n(45);t.exports=function(t,e){var n=1==t,a=2==t,u=3==t,l=4==t,f=6==t,d=5==t||f,p=e||c;return function(e,c,m){for(var h,y,v=i(e),g=r(v),b=o(c,m,3),w=s(g.length),S=0,x=n?p(e,w):a?p(e,0):void 0;w>S;S++)if((d||S in g)&&(y=b(h=g[S],S,v),t))if(n)x[S]=y;else if(y)switch(t){case 3:return!0;case 5:return h;case 6:return S;case 2:x.push(h)}else if(l)return!1;return f?-1:u||l?l:x}}},function(t,e,n){var o=n(46);t.exports=function(t,e){return new(o(t))(e)}},function(t,e,n){var o=n(6),r=n(33),i=n(1)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){n(35)("asyncIterator")},function(t,e,n){"use strict";var o=n(0),r=n(5),i=n(4),s=n(16),c=n(13),a=n(49).KEY,u=n(11),l=n(18),f=n(19),d=n(8),p=n(1),m=n(36),h=n(35),y=n(50),v=n(33),g=n(10),b=n(6),w=n(7),S=n(17),x=n(12),E=n(39),F=n(55),O=n(56),L=n(3),M=n(15),_=O.f,P=L.f,k=F.f,T=o.Symbol,j=o.JSON,C=j&&j.stringify,z=p("_hidden"),A=p("toPrimitive"),I={}.propertyIsEnumerable,N=l("symbol-registry"),q=l("symbols"),R=l("op-symbols"),D=Object.prototype,W="function"==typeof T,V=o.QObject,B=!V||!V.prototype||!V.prototype.findChild,G=i&&u(function(){return 7!=E(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=_(D,e);o&&delete D[e],P(t,e,n),o&&t!==D&&P(D,e,o)}:P,J=function(t){var e=q[t]=E(T.prototype);return e._k=t,e},U=W&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},H=function(t,e,n){return t===D&&H(R,e,n),g(t),e=S(e,!0),g(n),r(q,e)?(n.enumerable?(r(t,z)&&t[z][e]&&(t[z][e]=!1),n=E(n,{enumerable:x(0,!1)})):(r(t,z)||P(t,z,x(1,{})),t[z][e]=!0),G(t,e,n)):P(t,e,n)},K=function(t,e){g(t);for(var n,o=y(e=w(e)),r=0,i=o.length;i>r;)H(t,n=o[r++],e[n]);return t},Q=function(t){var e=I.call(this,t=S(t,!0));return!(this===D&&r(q,t)&&!r(R,t))&&(!(e||!r(this,t)||!r(q,t)||r(this,z)&&this[z][t])||e)},Y=function(t,e){if(t=w(t),e=S(e,!0),t!==D||!r(q,e)||r(R,e)){var n=_(t,e);return!n||!r(q,e)||r(t,z)&&t[z][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=k(w(t)),o=[],i=0;n.length>i;)r(q,e=n[i++])||e==z||e==a||o.push(e);return o},Z=function(t){for(var e,n=t===D,o=k(n?R:w(t)),i=[],s=0;o.length>s;)!r(q,e=o[s++])||n&&!r(D,e)||i.push(q[e]);return i};W||(c((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===D&&e.call(R,n),r(this,z)&&r(this[z],t)&&(this[z][t]=!1),G(this,t,x(1,n))};return i&&B&&G(D,t,{configurable:!0,set:e}),J(t)}).prototype,"toString",function(){return this._k}),O.f=Y,L.f=H,n(40).f=F.f=X,n(22).f=Q,n(38).f=Z,i&&!n(14)&&c(D,"propertyIsEnumerable",Q,!0),m.f=function(t){return J(p(t))}),s(s.G+s.W+s.F*!W,{Symbol:T});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)p($[tt++]);for(var et=M(p.store),nt=0;et.length>nt;)h(et[nt++]);s(s.S+s.F*!W,"Symbol",{for:function(t){return r(N,t+="")?N[t]:N[t]=T(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),s(s.S+s.F*!W,"Object",{create:function(t,e){return void 0===e?E(t):K(E(t),e)},defineProperty:H,defineProperties:K,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),j&&s(s.S+s.F*(!W||u(function(){var t=T();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e=o[1],(b(e)||void 0!==t)&&!U(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!U(e))return e}),o[1]=e,C.apply(j,o)}}),T.prototype[A]||n(2)(T.prototype,A,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,e,n){var o=n(8)("meta"),r=n(6),i=n(5),s=n(3).f,c=0,a=Object.isExtensible||function(){return!0},u=!n(11)(function(){return a(Object.preventExtensions({}))}),l=function(t){s(t,o,{value:{i:"O"+ ++c,w:{}}})},f=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,o)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[o].i},getWeak:function(t,e){if(!i(t,o)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[o].w},onFreeze:function(t){return u&&f.NEED&&a(t)&&!i(t,o)&&l(t),t}}},function(t,e,n){var o=n(15),r=n(38),i=n(22);t.exports=function(t){var e=o(t),n=r.f;if(n)for(var s,c=n(t),a=i.f,u=0;c.length>u;)a.call(t,s=c[u++])&&e.push(s);return e}},function(t,e,n){var o=n(7),r=n(31),i=n(52);t.exports=function(t){return function(e,n,s){var c,a=o(e),u=r(a.length),l=i(s,u);if(t&&n!=n){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var o=n(32),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},function(t,e,n){var o=n(3),r=n(10),i=n(15);t.exports=n(4)?Object.defineProperties:function(t,e){r(t);for(var n,s=i(e),c=s.length,a=0;c>a;)o.f(t,n=s[a++],e[n]);return t}},function(t,e,n){var o=n(0).document;t.exports=o&&o.documentElement},function(t,e,n){var o=n(7),r=n(40).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return r(t)}catch(t){return s.slice()}}(t):r(o(t))}},function(t,e,n){var o=n(22),r=n(12),i=n(7),s=n(17),c=n(5),a=n(24),u=Object.getOwnPropertyDescriptor;e.f=n(4)?u:function(t,e){if(t=i(t),e=s(e,!0),a)try{return u(t,e)}catch(t){}if(c(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e,n){for(var o=n(58),r=n(15),i=n(13),s=n(0),c=n(2),a=n(23),u=n(1),l=u("iterator"),f=u("toStringTag"),d=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=r(p),h=0;h<m.length;h++){var y,v=m[h],g=p[v],b=s[v],w=b&&b.prototype;if(w&&(w[l]||c(w,l,d),w[f]||c(w,f,v),a[v]=d,g))for(y in o)w[y]||i(w,y,o[y],!0)}},function(t,e,n){"use strict";var o=n(34),r=n(59),i=n(23),s=n(7);t.exports=n(60)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var o=n(14),r=n(16),i=n(13),s=n(2),c=n(23),a=n(61),u=n(19),l=n(62),f=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,m,h,y,v){a(n,e,m);var g,b,w,S=function(t){if(!d&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",E="values"==h,F=!1,O=t.prototype,L=O[f]||O["@@iterator"]||h&&O[h],M=L||S(h),_=h?E?S("entries"):M:void 0,P="Array"==e&&O.entries||L;if(P&&(w=l(P.call(new t)))!==Object.prototype&&w.next&&(u(w,x,!0),o||"function"==typeof w[f]||s(w,f,p)),E&&L&&"values"!==L.name&&(F=!0,M=function(){return L.call(this)}),o&&!v||!d&&!F&&O[f]||s(O,f,M),c[e]=M,c[x]=p,h)if(g={values:E?M:S("values"),keys:y?M:S("keys"),entries:_},v)for(b in g)b in O||i(O,b,g[b]);else r(r.P+r.F*(d||F),e,g);return g}},function(t,e,n){"use strict";var o=n(39),r=n(12),i=n(19),s={};n(2)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=o(s,{next:r(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var o=n(5),r=n(29),i=n(20)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var o=n(3).f,r=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in r||n(4)&&o(r,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){!function(){function e(t,e){document.addEventListener?t.addEventListener("scroll",e,!1):t.attachEvent("scroll",e)}function n(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function o(t,e){t.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+e+";"}function r(t){var e=t.a.offsetWidth,n=e+100;return t.f.style.width=n+"px",t.c.scrollLeft=n,t.b.scrollLeft=t.b.scrollWidth+100,t.g!==e&&(t.g=e,!0)}function i(t,n){function o(){var t=i;r(t)&&t.a.parentNode&&n(t.g)}var i=t;e(t.b,o),e(t.c,o),r(t)}function s(t,e){var n=e||{};this.family=t,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var c=null,a=null,u=null,l=null;function f(){return null===l&&(l=!!document.fonts),l}function d(){if(null===u){var t=document.createElement("div");try{t.style.font="condensed 100px sans-serif"}catch(t){}u=""!==t.style.font}return u}function p(t,e){return[t.style,t.weight,d()?t.stretch:"","100px",e].join(" ")}s.prototype.load=function(t,e){var r=this,s=t||"BESbswy",u=0,l=e||3e3,d=(new Date).getTime();return new Promise(function(t,e){if(f()&&!function(){if(null===a)if(f()&&/Apple/.test(window.navigator.vendor)){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);a=!!t&&603>parseInt(t[1],10)}else a=!1;return a}()){var m=new Promise(function(t,e){!function n(){(new Date).getTime()-d>=l?e(Error(l+"ms timeout exceeded")):document.fonts.load(p(r,'"'+r.family+'"'),s).then(function(e){1<=e.length?t():setTimeout(n,25)},e)}()}),h=new Promise(function(t,e){u=setTimeout(function(){e(Error(l+"ms timeout exceeded"))},l)});Promise.race([h,m]).then(function(){clearTimeout(u),t(r)},e)}else!function(t){document.body?t():document.addEventListener?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),t()}):document.attachEvent("onreadystatechange",function e(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",e),t())})}(function(){function a(){var e;(e=-1!=y&&-1!=v||-1!=y&&-1!=g||-1!=v&&-1!=g)&&((e=y!=v&&y!=g&&v!=g)||(null===c&&(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),c=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))),e=c&&(y==b&&v==b&&g==b||y==w&&v==w&&g==w||y==S&&v==S&&g==S)),e=!e),e&&(x.parentNode&&x.parentNode.removeChild(x),clearTimeout(u),t(r))}var f=new n(s),m=new n(s),h=new n(s),y=-1,v=-1,g=-1,b=-1,w=-1,S=-1,x=document.createElement("div");x.dir="ltr",o(f,p(r,"sans-serif")),o(m,p(r,"serif")),o(h,p(r,"monospace")),x.appendChild(f.a),x.appendChild(m.a),x.appendChild(h.a),document.body.appendChild(x),b=f.a.offsetWidth,w=m.a.offsetWidth,S=h.a.offsetWidth,function t(){if((new Date).getTime()-d>=l)x.parentNode&&x.parentNode.removeChild(x),e(Error(l+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(y=f.a.offsetWidth,v=m.a.offsetWidth,g=h.a.offsetWidth,a()),u=setTimeout(t,50)}}(),i(f,function(t){y=t,a()}),o(f,p(r,'"'+r.family+'",sans-serif')),i(m,function(t){v=t,a()}),o(m,p(r,'"'+r.family+'",serif')),i(h,function(t){g=t,a()}),o(h,p(r,'"'+r.family+'",monospace'))})})},t.exports=s}()}]);
\ No newline at end of file
!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=41)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var o=n(18)("wks"),r=n(8),i=n(0).Symbol,s="function"==typeof i;(t.exports=function(t){return o[t]||(o[t]=s&&i[t]||(s?i:r)("Symbol."+t))}).store=o},function(t,e,n){var o=n(3),r=n(12);t.exports=n(4)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(10),r=n(24),i=n(17),s=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return s(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}},function(t,e,n){t.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var o=n(27),r=n(30);t.exports=function(t){return o(r(t))}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var o=n(6);t.exports=function(t){if(!o(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var o=n(0),r=n(2),i=n(5),s=n(8)("src"),c=Function.toString,a=(""+c).split("toString");n(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var u="function"==typeof n;u&&(i(n,"name")||r(n,"name",e)),t[e]!==n&&(u&&(i(n,s)||r(n,s,t[e]?""+t[e]:a.join(String(e)))),t===o?t[e]=n:c?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||c.call(this)})},function(t,e){t.exports=!1},function(t,e,n){var o=n(37),r=n(21);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e,n){var o=n(0),r=n(9),i=n(2),s=n(13),c=n(26),a=function(t,e,n){var u,l,f,d,p=t&a.F,m=t&a.G,h=t&a.S,y=t&a.P,v=t&a.B,g=m?o:h?o[e]||(o[e]={}):(o[e]||{}).prototype,b=m?r:r[e]||(r[e]={}),w=b.prototype||(b.prototype={});for(u in m&&(n=e),n)f=((l=!p&&g&&void 0!==g[u])?g:n)[u],d=v&&l?c(f,o):y&&"function"==typeof f?c(Function.call,f):f,g&&s(g,u,f,t&a.U),b[u]!=f&&i(b,u,d),y&&w[u]!=f&&(w[u]=f)};o.core=r,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e,n){var o=n(6);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var o=n(9),r=n(0),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:o.version,mode:n(14)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var o=n(3).f,r=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,i)&&o(t,i,{configurable:!0,value:e})}},function(t,e,n){var o=n(18)("keys"),r=n(8);t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports={}},function(t,e,n){t.exports=!n(4)&&!n(11)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var o=n(6),r=n(0).document,i=o(r)&&o(r.createElement);t.exports=function(t){return i?r.createElement(t):{}}},function(t,e,n){var o=n(43);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var o=n(28);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==o(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var o=n(30);t.exports=function(t){return Object(o(t))}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var o=n(32),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){var o=n(28);t.exports=Array.isArray||function(t){return"Array"==o(t)}},function(t,e,n){var o=n(1)("unscopables"),r=Array.prototype;null==r[o]&&n(2)(r,o,{}),t.exports=function(t){r[o][t]=!0}},function(t,e,n){var o=n(0),r=n(9),i=n(14),s=n(36),c=n(3).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:s.f(t)})}},function(t,e,n){e.f=n(1)},function(t,e,n){var o=n(5),r=n(7),i=n(51)(!1),s=n(20)("IE_PROTO");t.exports=function(t,e){var n,c=r(t),a=0,u=[];for(n in c)n!=s&&o(c,n)&&u.push(n);for(;e.length>a;)o(c,n=e[a++])&&(~i(u,n)||u.push(n));return u}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var o=n(10),r=n(53),i=n(21),s=n(20)("IE_PROTO"),c=function(){},a=function(){var t,e=n(25)("iframe"),o=i.length;for(e.style.display="none",n(54).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),a=t.F;o--;)delete a.prototype[i[o]];return a()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=o(t),n=new c,c.prototype=null,n[s]=t):n=a(),void 0===e?n:r(n,e)}},function(t,e,n){var o=n(37),r=n(21).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return o(t,r)}},function(t,e,n){"use strict";n.r(e);n(42),n(47),n(48),n(57),n(63);var o={fontSize:{base:1,max:1.5,min:.75,increment:.5},fontFamily:"sans",viewingMode:"light",readingMode:"enable",dyslexiaFont:{name:"Open Dyslexic",url:"https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@20160623-Stable/woff/OpenDyslexic-Regular.woff"}},r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.fontSize,r=void 0===e?o.fontSize.base:e,i=t.fontFamily,s=void 0===i?o.fontFamily:i,c=t.viewingMode,a=void 0===c?o.viewingMode:c,u=t.readingMode;return{fontSize:r,fontFamily:s,viewingMode:a,readingMode:void 0===u?o.readingMode:u,setFontSize:function(t){t=t||o.fontSize.base;try{t<o.fontSize.min?t=o.fontSize.min:t>o.fontSize.max&&(t=o.fontSize.max),document.documentElement.style.fontSize=t+"rem",this.fontSize=t}catch(t){console.warn(t)}return this},setFontFamily:function(t){t=t||o.fontFamily;try{"serif"==t?(document.documentElement.classList.remove("font-sans","font-dyslexic"),document.documentElement.classList.add("font-serif")):"dyslexic"==t?(document.documentElement.classList.remove("font-sans","font-serif"),document.documentElement.classList.add("font-dyslexic"),this.fetchFontFace(o.dyslexiaFont)):(t="sans",document.documentElement.classList.remove("font-dyslexic","font-serif"),document.documentElement.classList.add("font-sans")),this.fontFamily=t}catch(t){console.warn(t)}return this},fetchFontFace:function(t){var e=new(n(64))(t.name),o=new FontFace(t.name,"url("+t.url+")");e.load().then(function(){document.fonts.add(o)})},setViewingMode:function(t){t=t||o.viewingMode;try{if("dark"==t)document.documentElement.classList.remove("light-mode"),document.documentElement.classList.add("dark-mode");else{if("light"!=t)throw"Unsupported viewing mode: "+t;document.documentElement.classList.remove("dark-mode"),document.documentElement.classList.add("light-mode")}this.viewingMode=t}catch(t){console.warn(t)}return this},setReadingMode:function(t){t=t||o.readingMode;try{"disable"==t?document.documentElement.classList.add("reading-mode"):(t="enable",document.documentElement.classList.remove("reading-mode")),this.readingMode=t}catch(t){console.warn(t)}return this},setSelected:function(){this.setFontSize(this.fontSize),this.setFontFamily(this.fontFamily),this.setViewingMode(this.viewingMode),this.setReadingMode(this.readingMode);var t=document.querySelectorAll(".fontSlider"),e=!0,n=!1,o=void 0;try{for(var r,i=t[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){r.value.value=this.fontSize}}catch(t){n=!0,o=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw o}}var s=document.querySelectorAll(".toggle-font-"+this.fontFamily),c=!0,a=!1,u=void 0;try{for(var l,f=s[Symbol.iterator]();!(c=(l=f.next()).done);c=!0){l.value.classList.add("active")}}catch(t){a=!0,u=t}finally{try{c||null==f.return||f.return()}finally{if(a)throw u}}var d=document.querySelectorAll(".toggle-"+this.viewingMode+"-mode"),p=!0,m=!1,h=void 0;try{for(var y,v=d[Symbol.iterator]();!(p=(y=v.next()).done);p=!0){y.value.classList.add("active")}}catch(t){m=!0,h=t}finally{try{p||null==v.return||v.return()}finally{if(m)throw h}}var g=document.querySelectorAll("."+this.readingMode+"-cards"),b=!0,w=!1,S=void 0;try{for(var x,E=g[Symbol.iterator]();!(b=(x=E.next()).done);b=!0){x.value.classList.add("active")}}catch(t){w=!0,S=t}finally{try{b||null==E.return||E.return()}finally{if(w)throw S}}}}};document.addEventListener("DOMContentLoaded",function(t){!function(t){var e,n,i,s,c,a=function(){if("undefined"!=typeof Storage)return JSON.parse(localStorage.getItem("userPreferences"));console.warn("Unable to retrieve settings. This browser may not support local storage.")}();(e=a?r({fontSize:a.fontSize,fontFamily:a.fontFamily,viewingMode:a.viewingMode,readingMode:a.readingMode}):r()).setSelected(),window.addEventListener("resize",(n=function(){window.innerWidth<=767&&l(!0)},i=100,function(){var t=this,e=arguments,o=s&&!c;clearTimeout(c),c=setTimeout(function(){c=null,s||n.apply(t,e)},i),o&&n.apply(t,e)}));var u=document.getElementById("sidebar_collapse");function l(){!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?(document.getElementById("sidebar_first").classList.remove("collapsed"),setTimeout(function(){document.querySelector(".main-content").classList.add("col-md-9")},500)):(document.querySelector(".main-content").classList.remove("col-md-9"),document.getElementById("sidebar_first").classList.add("collapsed"))}function f(){t(".toggle-fullscreen").find("[data-fa-processed]").toggleClass("fa-expand").toggleClass("fa-compress"),"Enter Fullscreen"===t(".toggle-fullscreen").attr("data-original-title")?t(".toggle-fullscreen").attr("title","Exit Fullscreen"):t(".toggle-fullscreen").attr("title","Enter Fullscreen")}null!==u&&(u.onclick=function(){l(document.getElementById("sidebar_first").classList.contains("collapsed"))}),new MutationObserver(function(t){1==t[0].target.classList.contains("collapsed")?(document.querySelector("#sidebar_collapse svg").classList.remove("fa-arrow-alt-from-right"),document.querySelector("#sidebar_collapse svg").classList.add("fa-arrow-alt-from-left"),document.querySelector("#sidebar_collapse").setAttribute("title","Show sidebar")):(document.querySelector("#sidebar_collapse svg").classList.remove("fa-arrow-alt-from-left"),document.querySelector("#sidebar_collapse svg").classList.add("fa-arrow-alt-from-right"),document.querySelector("#sidebar_collapse").setAttribute("title","Hide sidebar"))}).observe(document.getElementById("sidebar_first"),{attributes:!0,attributeFilter:["class"],childList:!1,characterData:!1}),t(".toggle-font-serif").on("click touchstart",function(){t(".toggle-font-sans").removeClass("active"),t(".toggle-font-dyslexic").removeClass("active"),e.setFontFamily("serif")}),t(".toggle-font-sans").on("click touchstart",function(){t(".toggle-font-serif").removeClass("active"),t(".toggle-font-dyslexic").removeClass("active"),e.setFontFamily("sans")}),t(".toggle-font-dyslexic").on("click touchstart",function(){t(".toggle-font-serif").removeClass("active"),t(".toggle-font-sans").removeClass("active"),e.fetchFontFace(o.dyslexiaFont),e.setFontFamily("dyslexic")}),t(".toggle-dark-mode").on("click touchstart",function(){t(".toggle-light-mode").removeClass("active"),e.setViewingMode("dark")}),t(".toggle-light-mode").on("click touchstart",function(){t(".toggle-dark-mode").removeClass("active"),e.setViewingMode("light")}),t(".disable-cards").on("click touchstart",function(){t(".enable-cards").removeClass("active"),e.setReadingMode("disable")}),t(".enable-cards").on("click touchstart",function(){t(".disable-cards").removeClass("active"),e.setReadingMode("enable")}),t(".reset-mode").on("click touchstart",function(){t("#userPreferences button").removeClass("active"),function(t){t.setFontSize(o.fontSize.base),t.setFontFamily(o.fontFamily),t.setViewingMode(o.viewingMode),t.setReadingMode(o.readingMode),t.setSelected(),"undefined"!=typeof Storage?localStorage.removeItem("userPreferences"):console.warn("Unable to store settings. This browser may not support local storage.")}(e)}),t(".save-user-preferences").on("click touchstart",function(){t("#userPreferences").modal("toggle"),function(t){"undefined"!=typeof Storage?localStorage.setItem("userPreferences",JSON.stringify(t)):console.warn("Unable to store settings. This browser may not support local storage.")}(e)}),t(".toggle-fullscreen").on("click touchstart",function(){var t;document.fullscreen?document.exitFullscreen():document.mozFullScreen?document.mozCancelFullScreen():document.webkitIsFullScreen?document.webkitCancelFullScreen():document.msFullscreenElement?document.msExitFullscreen():(t=document.documentElement).requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullScreen?t.webkitRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}),t(".fontSlider").on("input change",function(){e.setFontSize(this.value)}),document.addEventListener("webkitfullscreenchange",f,!1),document.addEventListener("mozfullscreenchange",f,!1),document.addEventListener("fullscreenchange",f,!1),document.addEventListener("MSFullscreenChange",f,!1)}(jQuery)})},function(t,e,n){"use strict";var o=n(16),r=n(44)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),o(o.P+o.F*i,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(34)("find")},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var o=n(26),r=n(27),i=n(29),s=n(31),c=n(45);t.exports=function(t,e){var n=1==t,a=2==t,u=3==t,l=4==t,f=6==t,d=5==t||f,p=e||c;return function(e,c,m){for(var h,y,v=i(e),g=r(v),b=o(c,m,3),w=s(g.length),S=0,x=n?p(e,w):a?p(e,0):void 0;w>S;S++)if((d||S in g)&&(y=b(h=g[S],S,v),t))if(n)x[S]=y;else if(y)switch(t){case 3:return!0;case 5:return h;case 6:return S;case 2:x.push(h)}else if(l)return!1;return f?-1:u||l?l:x}}},function(t,e,n){var o=n(46);t.exports=function(t,e){return new(o(t))(e)}},function(t,e,n){var o=n(6),r=n(33),i=n(1)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),o(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){n(35)("asyncIterator")},function(t,e,n){"use strict";var o=n(0),r=n(5),i=n(4),s=n(16),c=n(13),a=n(49).KEY,u=n(11),l=n(18),f=n(19),d=n(8),p=n(1),m=n(36),h=n(35),y=n(50),v=n(33),g=n(10),b=n(6),w=n(7),S=n(17),x=n(12),E=n(39),F=n(55),O=n(56),L=n(3),M=n(15),_=O.f,P=L.f,k=F.f,T=o.Symbol,j=o.JSON,C=j&&j.stringify,z=p("_hidden"),A=p("toPrimitive"),I={}.propertyIsEnumerable,N=l("symbol-registry"),q=l("symbols"),R=l("op-symbols"),D=Object.prototype,W="function"==typeof T,V=o.QObject,B=!V||!V.prototype||!V.prototype.findChild,G=i&&u(function(){return 7!=E(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var o=_(D,e);o&&delete D[e],P(t,e,n),o&&t!==D&&P(D,e,o)}:P,J=function(t){var e=q[t]=E(T.prototype);return e._k=t,e},U=W&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},H=function(t,e,n){return t===D&&H(R,e,n),g(t),e=S(e,!0),g(n),r(q,e)?(n.enumerable?(r(t,z)&&t[z][e]&&(t[z][e]=!1),n=E(n,{enumerable:x(0,!1)})):(r(t,z)||P(t,z,x(1,{})),t[z][e]=!0),G(t,e,n)):P(t,e,n)},K=function(t,e){g(t);for(var n,o=y(e=w(e)),r=0,i=o.length;i>r;)H(t,n=o[r++],e[n]);return t},Q=function(t){var e=I.call(this,t=S(t,!0));return!(this===D&&r(q,t)&&!r(R,t))&&(!(e||!r(this,t)||!r(q,t)||r(this,z)&&this[z][t])||e)},Y=function(t,e){if(t=w(t),e=S(e,!0),t!==D||!r(q,e)||r(R,e)){var n=_(t,e);return!n||!r(q,e)||r(t,z)&&t[z][e]||(n.enumerable=!0),n}},X=function(t){for(var e,n=k(w(t)),o=[],i=0;n.length>i;)r(q,e=n[i++])||e==z||e==a||o.push(e);return o},Z=function(t){for(var e,n=t===D,o=k(n?R:w(t)),i=[],s=0;o.length>s;)!r(q,e=o[s++])||n&&!r(D,e)||i.push(q[e]);return i};W||(c((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===D&&e.call(R,n),r(this,z)&&r(this[z],t)&&(this[z][t]=!1),G(this,t,x(1,n))};return i&&B&&G(D,t,{configurable:!0,set:e}),J(t)}).prototype,"toString",function(){return this._k}),O.f=Y,L.f=H,n(40).f=F.f=X,n(22).f=Q,n(38).f=Z,i&&!n(14)&&c(D,"propertyIsEnumerable",Q,!0),m.f=function(t){return J(p(t))}),s(s.G+s.W+s.F*!W,{Symbol:T});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;$.length>tt;)p($[tt++]);for(var et=M(p.store),nt=0;et.length>nt;)h(et[nt++]);s(s.S+s.F*!W,"Symbol",{for:function(t){return r(N,t+="")?N[t]:N[t]=T(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),s(s.S+s.F*!W,"Object",{create:function(t,e){return void 0===e?E(t):K(E(t),e)},defineProperty:H,defineProperties:K,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:Z}),j&&s(s.S+s.F*(!W||u(function(){var t=T();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))})),"JSON",{stringify:function(t){for(var e,n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e=o[1],(b(e)||void 0!==t)&&!U(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!U(e))return e}),o[1]=e,C.apply(j,o)}}),T.prototype[A]||n(2)(T.prototype,A,T.prototype.valueOf),f(T,"Symbol"),f(Math,"Math",!0),f(o.JSON,"JSON",!0)},function(t,e,n){var o=n(8)("meta"),r=n(6),i=n(5),s=n(3).f,c=0,a=Object.isExtensible||function(){return!0},u=!n(11)(function(){return a(Object.preventExtensions({}))}),l=function(t){s(t,o,{value:{i:"O"+ ++c,w:{}}})},f=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,o)){if(!a(t))return"F";if(!e)return"E";l(t)}return t[o].i},getWeak:function(t,e){if(!i(t,o)){if(!a(t))return!0;if(!e)return!1;l(t)}return t[o].w},onFreeze:function(t){return u&&f.NEED&&a(t)&&!i(t,o)&&l(t),t}}},function(t,e,n){var o=n(15),r=n(38),i=n(22);t.exports=function(t){var e=o(t),n=r.f;if(n)for(var s,c=n(t),a=i.f,u=0;c.length>u;)a.call(t,s=c[u++])&&e.push(s);return e}},function(t,e,n){var o=n(7),r=n(31),i=n(52);t.exports=function(t){return function(e,n,s){var c,a=o(e),u=r(a.length),l=i(s,u);if(t&&n!=n){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){var o=n(32),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},function(t,e,n){var o=n(3),r=n(10),i=n(15);t.exports=n(4)?Object.defineProperties:function(t,e){r(t);for(var n,s=i(e),c=s.length,a=0;c>a;)o.f(t,n=s[a++],e[n]);return t}},function(t,e,n){var o=n(0).document;t.exports=o&&o.documentElement},function(t,e,n){var o=n(7),r=n(40).f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==i.call(t)?function(t){try{return r(t)}catch(t){return s.slice()}}(t):r(o(t))}},function(t,e,n){var o=n(22),r=n(12),i=n(7),s=n(17),c=n(5),a=n(24),u=Object.getOwnPropertyDescriptor;e.f=n(4)?u:function(t,e){if(t=i(t),e=s(e,!0),a)try{return u(t,e)}catch(t){}if(c(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e,n){for(var o=n(58),r=n(15),i=n(13),s=n(0),c=n(2),a=n(23),u=n(1),l=u("iterator"),f=u("toStringTag"),d=a.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=r(p),h=0;h<m.length;h++){var y,v=m[h],g=p[v],b=s[v],w=b&&b.prototype;if(w&&(w[l]||c(w,l,d),w[f]||c(w,f,v),a[v]=d,g))for(y in o)w[y]||i(w,y,o[y],!0)}},function(t,e,n){"use strict";var o=n(34),r=n(59),i=n(23),s=n(7);t.exports=n(60)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var o=n(14),r=n(16),i=n(13),s=n(2),c=n(23),a=n(61),u=n(19),l=n(62),f=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,m,h,y,v){a(n,e,m);var g,b,w,S=function(t){if(!d&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",E="values"==h,F=!1,O=t.prototype,L=O[f]||O["@@iterator"]||h&&O[h],M=L||S(h),_=h?E?S("entries"):M:void 0,P="Array"==e&&O.entries||L;if(P&&(w=l(P.call(new t)))!==Object.prototype&&w.next&&(u(w,x,!0),o||"function"==typeof w[f]||s(w,f,p)),E&&L&&"values"!==L.name&&(F=!0,M=function(){return L.call(this)}),o&&!v||!d&&!F&&O[f]||s(O,f,M),c[e]=M,c[x]=p,h)if(g={values:E?M:S("values"),keys:y?M:S("keys"),entries:_},v)for(b in g)b in O||i(O,b,g[b]);else r(r.P+r.F*(d||F),e,g);return g}},function(t,e,n){"use strict";var o=n(39),r=n(12),i=n(19),s={};n(2)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=o(s,{next:r(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var o=n(5),r=n(29),i=n(20)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),o(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var o=n(3).f,r=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in r||n(4)&&o(r,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},function(t,e,n){!function(){function e(t,e){document.addEventListener?t.addEventListener("scroll",e,!1):t.attachEvent("scroll",e)}function n(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function o(t,e){t.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+e+";"}function r(t){var e=t.a.offsetWidth,n=e+100;return t.f.style.width=n+"px",t.c.scrollLeft=n,t.b.scrollLeft=t.b.scrollWidth+100,t.g!==e&&(t.g=e,!0)}function i(t,n){function o(){var t=i;r(t)&&t.a.parentNode&&n(t.g)}var i=t;e(t.b,o),e(t.c,o),r(t)}function s(t,e){var n=e||{};this.family=t,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var c=null,a=null,u=null,l=null;function f(){return null===l&&(l=!!document.fonts),l}function d(){if(null===u){var t=document.createElement("div");try{t.style.font="condensed 100px sans-serif"}catch(t){}u=""!==t.style.font}return u}function p(t,e){return[t.style,t.weight,d()?t.stretch:"","100px",e].join(" ")}s.prototype.load=function(t,e){var r=this,s=t||"BESbswy",u=0,l=e||3e3,d=(new Date).getTime();return new Promise(function(t,e){if(f()&&!function(){if(null===a)if(f()&&/Apple/.test(window.navigator.vendor)){var t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);a=!!t&&603>parseInt(t[1],10)}else a=!1;return a}()){var m=new Promise(function(t,e){!function n(){(new Date).getTime()-d>=l?e(Error(l+"ms timeout exceeded")):document.fonts.load(p(r,'"'+r.family+'"'),s).then(function(e){1<=e.length?t():setTimeout(n,25)},e)}()}),h=new Promise(function(t,e){u=setTimeout(function(){e(Error(l+"ms timeout exceeded"))},l)});Promise.race([h,m]).then(function(){clearTimeout(u),t(r)},e)}else!function(t){document.body?t():document.addEventListener?document.addEventListener("DOMContentLoaded",function e(){document.removeEventListener("DOMContentLoaded",e),t()}):document.attachEvent("onreadystatechange",function e(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",e),t())})}(function(){function a(){var e;(e=-1!=y&&-1!=v||-1!=y&&-1!=g||-1!=v&&-1!=g)&&((e=y!=v&&y!=g&&v!=g)||(null===c&&(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),c=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))),e=c&&(y==b&&v==b&&g==b||y==w&&v==w&&g==w||y==S&&v==S&&g==S)),e=!e),e&&(x.parentNode&&x.parentNode.removeChild(x),clearTimeout(u),t(r))}var f=new n(s),m=new n(s),h=new n(s),y=-1,v=-1,g=-1,b=-1,w=-1,S=-1,x=document.createElement("div");x.dir="ltr",o(f,p(r,"sans-serif")),o(m,p(r,"serif")),o(h,p(r,"monospace")),x.appendChild(f.a),x.appendChild(m.a),x.appendChild(h.a),document.body.appendChild(x),b=f.a.offsetWidth,w=m.a.offsetWidth,S=h.a.offsetWidth,function t(){if((new Date).getTime()-d>=l)x.parentNode&&x.parentNode.removeChild(x),e(Error(l+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(y=f.a.offsetWidth,v=m.a.offsetWidth,g=h.a.offsetWidth,a()),u=setTimeout(t,50)}}(),i(f,function(t){y=t,a()}),o(f,p(r,'"'+r.family+'",sans-serif')),i(m,function(t){v=t,a()}),o(m,p(r,'"'+r.family+'",serif')),i(h,function(t){g=t,a()}),o(h,p(r,'"'+r.family+'",monospace'))})})},t.exports=s}()}]);
\ No newline at end of file
......@@ -74,9 +74,10 @@ const userPreferences = ({
},
fetchFontFace(params){
let FontFaceObserver = require('fontfaceobserver');
let font = new FontFaceObserver(params.name);
let fontFace = new FontFaceObserver(params.name);
let font = new FontFace(params.name, "url("+params.url+")");
font.load().then(function() {
fontFace.load().then(function() {
document.fonts.add(font);
});
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment