@ -0,0 +1,88 @@
|
|||||||
|
baseURL = "https://h.cowbay.org"
|
||||||
|
builddrafts = false
|
||||||
|
languageCode = "zn-Hant"
|
||||||
|
canonifyurls = true
|
||||||
|
contentdir = "content"
|
||||||
|
layoutdir = "layouts"
|
||||||
|
publishdir = "public"
|
||||||
|
enableEmoji = true
|
||||||
|
hasCJKLanguage = true
|
||||||
|
summaryLength = 200
|
||||||
|
Paginate = 3
|
||||||
|
|
||||||
|
theme = "AllinOne"
|
||||||
|
title = "Orianna"
|
||||||
|
|
||||||
|
pygmentsuseclasses = true
|
||||||
|
|
||||||
|
|
||||||
|
[permalinks]
|
||||||
|
blog = "blog/:year-:month/:slug/"
|
||||||
|
|
||||||
|
|
||||||
|
[taxonomies]
|
||||||
|
tag = "tags"
|
||||||
|
series = "series"
|
||||||
|
category = "categories"
|
||||||
|
|
||||||
|
|
||||||
|
[menu]
|
||||||
|
#[[menu.main]]
|
||||||
|
# name = "Blog"
|
||||||
|
# weight = -120
|
||||||
|
# identifier = "blog"
|
||||||
|
# url = "blog/"
|
||||||
|
|
||||||
|
#[[menu.main]]
|
||||||
|
# name = "Moment"
|
||||||
|
# weight = -110
|
||||||
|
# identifier = "moment"
|
||||||
|
# url = "moment/"
|
||||||
|
|
||||||
|
[[menu.main]]
|
||||||
|
name = "About"
|
||||||
|
weight = -100
|
||||||
|
identifier = "about"
|
||||||
|
url = "about/"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[params]
|
||||||
|
faviconfile = "img/zheng.png" # from static/
|
||||||
|
avatar = "img/profile.jpg" # path to image in static dir e.g img/avatar.png
|
||||||
|
author = "Orianna"
|
||||||
|
description = ["Be myself.", "Love the wonderful world.", "Do the right things and be a better man."] # appears in the site header when set to a non-empty string
|
||||||
|
welcome_head = "Hello, World!"
|
||||||
|
welcome_word = "~ No Day But Today ~"
|
||||||
|
|
||||||
|
latestpostscount = 5 # how many posts to display on the home page
|
||||||
|
bloggroupby = 'month'
|
||||||
|
dateform = "Jan 2, 2006"
|
||||||
|
dateformfull = "2006-01-02 Monday 15:04:05"
|
||||||
|
noshowreadtime = false # if true, don't show "<x> minutes read" in posts
|
||||||
|
|
||||||
|
# slides
|
||||||
|
slidesDirPath = "themes/AllinOne/static/img/header-slides" # path to image in local dir (path for hugo)
|
||||||
|
slidesDirPathURL = "img/header-slides" # path to image in static dir (for static pages)
|
||||||
|
|
||||||
|
# highlighting
|
||||||
|
highlightjs = true
|
||||||
|
|
||||||
|
# latex
|
||||||
|
katex = true
|
||||||
|
|
||||||
|
# links
|
||||||
|
email = "mc@mc4.us"
|
||||||
|
github = "//github.com/you"
|
||||||
|
linkedin = "//linkedin.com/in/you"
|
||||||
|
facebook = "//facebook.com/you"
|
||||||
|
googleplus = "//google.com/you"
|
||||||
|
twitter = "//twitter.com/you"
|
||||||
|
px500 = "//px500"
|
||||||
|
instagram = "//instagram.com/you"
|
||||||
|
include_rss = true # include RSS <link> tag in <head> and show RSS icon
|
||||||
|
|
||||||
|
# analytics
|
||||||
|
googleAnalytics = "your-google-analytic-id"
|
||||||
|
|
||||||
|
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
|
||||||
|
/* Font Awesome 5.3.1 */
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Font Awesome 5 Brands';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
src: url("../fonts/fontawesome/fa-brands-400.eot");
|
||||||
|
src: url("../fonts/fontawesome/fa-brands-400.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome/fa-brands-400.woff2") format("woff2"), url("../fonts/fontawesome/fa-brands-400.woff") format("woff"), url("../fonts/fontawesome/fa-brands-400.ttf") format("truetype"), url("../fonts/fontawesome/fa-brands-400.svg#fontawesome") format("svg"); }
|
||||||
|
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Font Awesome 5 Free';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url("../fonts/fontawesome/fa-regular-400.eot");
|
||||||
|
src: url("../fonts/fontawesome/fa-regular-400.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome/fa-regular-400.woff2") format("woff2"), url("../fonts/fontawesome/fa-regular-400.woff") format("woff"), url("../fonts/fontawesome/fa-regular-400.ttf") format("truetype"), url("../fonts/fontawesome/fa-regular-400.svg#fontawesome") format("svg"); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Font Awesome 5 Free';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 900;
|
||||||
|
src: url("../fonts/fontawesome/fa-solid-900.eot");
|
||||||
|
src: url("../fonts/fontawesome/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("../fonts/fontawesome/fa-solid-900.woff2") format("woff2"), url("../fonts/fontawesome/fa-solid-900.woff") format("woff"), url("../fonts/fontawesome/fa-solid-900.ttf") format("truetype"), url("../fonts/fontawesome/fa-solid-900.svg#fontawesome") format("svg"); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* English */
|
||||||
|
|
||||||
|
/* Roboto */
|
||||||
|
/* @font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url("../fonts/roboto/Roboto-Thin.eot");
|
||||||
|
src: url("../fonts/roboto/Roboto-Thin.eot?#iefix") format("embedded-opentype"), url("../fonts/roboto/Roboto-Thin.woff2") format("woff2"), url("../fonts/roboto/Roboto-Thin.woff") format("woff"), url("../fonts/roboto/Roboto-Thin.ttf") format("truetype"); }
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
src: url("../fonts/roboto/Roboto-Light.eot");
|
||||||
|
src: url("../fonts/roboto/Roboto-Light.eot?#iefix") format("embedded-opentype"), url("../fonts/roboto/Roboto-Light.woff2") format("woff2"), url("../fonts/roboto/Roboto-Light.woff") format("woff"), url("../fonts/roboto/Roboto-Light.ttf") format("truetype"); }
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 600;
|
||||||
|
src: url("../fonts/roboto/Roboto-Regular.eot");
|
||||||
|
src: url("../fonts/roboto/Roboto-Regular.eot?#iefix") format("embedded-opentype"), url("../fonts/roboto/Roboto-Regular.woff2") format("woff2"), url("../fonts/roboto/Roboto-Regular.woff") format("woff"), url("../fonts/roboto/Roboto-Regular.ttf") format("truetype"); }
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
src: url("../fonts/roboto/Roboto-Medium.eot");
|
||||||
|
src: url("../fonts/roboto/Roboto-Medium.eot?#iefix") format("embedded-opentype"), url("../fonts/roboto/Roboto-Medium.woff2") format("woff2"), url("../fonts/roboto/Roboto-Medium.woff") format("woff"), url("../fonts/roboto/Roboto-Medium.ttf") format("truetype"); }
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 800;
|
||||||
|
src: url("../fonts/roboto/Roboto-Bold.eot");
|
||||||
|
src: url("../fonts/roboto/Roboto-Bold.eot?#iefix") format("embedded-opentype"), url("../fonts/roboto/Roboto-Bold.woff2") format("woff2"), url("../fonts/roboto/Roboto-Bold.woff") format("woff"), url("../fonts/roboto/Roboto-Bold.ttf") format("truetype"); }
|
||||||
|
*/
|
||||||
@ -0,0 +1,71 @@
|
|||||||
|
/**
|
||||||
|
* GitHub Gist Theme
|
||||||
|
* Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro
|
||||||
|
*/
|
||||||
|
|
||||||
|
.hljs {
|
||||||
|
display: block;
|
||||||
|
background: white;
|
||||||
|
padding: 0.5em;
|
||||||
|
color: #333333;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-comment,
|
||||||
|
.hljs-meta {
|
||||||
|
color: #969896;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-string,
|
||||||
|
.hljs-variable,
|
||||||
|
.hljs-template-variable,
|
||||||
|
.hljs-strong,
|
||||||
|
.hljs-emphasis,
|
||||||
|
.hljs-quote {
|
||||||
|
color: #df5000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-keyword,
|
||||||
|
.hljs-selector-tag,
|
||||||
|
.hljs-type {
|
||||||
|
color: #a71d5d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-literal,
|
||||||
|
.hljs-symbol,
|
||||||
|
.hljs-bullet,
|
||||||
|
.hljs-attribute {
|
||||||
|
color: #0086b3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-section,
|
||||||
|
.hljs-name {
|
||||||
|
color: #63a35c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-tag {
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-title,
|
||||||
|
.hljs-attr,
|
||||||
|
.hljs-selector-id,
|
||||||
|
.hljs-selector-class,
|
||||||
|
.hljs-selector-attr,
|
||||||
|
.hljs-selector-pseudo {
|
||||||
|
color: #795da3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-addition {
|
||||||
|
color: #55a532;
|
||||||
|
background-color: #eaffea;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-deletion {
|
||||||
|
color: #bd2c00;
|
||||||
|
background-color: #ffecec;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hljs-link {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
.carousel,.carousel .carousel-inner,.carousel .carousel-inner .active,.carousel .carousel-inner .carousel-item,.view,body,html{height:100%}.navbar{background-color:rgba(0,0,0,.2)}.page-footer,.top-nav-collapse{background-color:#1C2331}@media only screen and (max-width:768px){.navbar{background-color:#1C2331}}
|
||||||
|
After Width: | Height: | Size: 633 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 665 KiB |
|
After Width: | Height: | Size: 467 KiB |
|
After Width: | Height: | Size: 368 KiB |
|
After Width: | Height: | Size: 467 KiB |
|
After Width: | Height: | Size: 324 B |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 215 B |
|
After Width: | Height: | Size: 214 B |
|
After Width: | Height: | Size: 27 KiB |
@ -0,0 +1,57 @@
|
|||||||
|
// smooth-scroll
|
||||||
|
$.smoothScroll({
|
||||||
|
//滑动到的位置的偏移量
|
||||||
|
offset: 0,
|
||||||
|
//滑动的方向,可取 'top' 或 'left'
|
||||||
|
direction: 'top',
|
||||||
|
// 只有当你想重写默认行为的时候才会用到
|
||||||
|
scrollTarget: null,
|
||||||
|
// 滑动开始前的回调函数。`this` 代表正在被滚动的元素
|
||||||
|
beforeScroll: function () { },
|
||||||
|
//滑动完成后的回调函数。 `this` 代表触发滑动的元素
|
||||||
|
afterScroll: function () { },
|
||||||
|
//缓动效果
|
||||||
|
easing: 'swing',
|
||||||
|
//滑动的速度
|
||||||
|
speed: 700,
|
||||||
|
// "自动" 加速的系数
|
||||||
|
autoCoefficent: 2
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// Bind the hashchange event listener
|
||||||
|
$(window).bind('hashchange', function (event) {
|
||||||
|
$.smoothScroll({
|
||||||
|
// Replace '#/' with '#' to go to the correct target
|
||||||
|
offset: $("body").attr("data-offset")? -$("body").attr("data-offset"):0 ,
|
||||||
|
// offset: -30,
|
||||||
|
scrollTarget: decodeURI(location.hash.replace(/^\#\/?/, '#'))
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// $(".smooth-scroll").on('click', "a", function() {
|
||||||
|
$('a[href*="#"]')
|
||||||
|
.bind('click', function (event) {
|
||||||
|
// Remove '#' from the hash.
|
||||||
|
var hash = this.hash.replace(/^#/, '')
|
||||||
|
if (this.pathname === location.pathname && hash) {
|
||||||
|
event.preventDefault();
|
||||||
|
// Change '#' (removed above) to '#/' so it doesn't jump without the smooth scrolling
|
||||||
|
location.hash = '#/' + hash;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Trigger hashchange event on page load if there is a hash in the URL.
|
||||||
|
if (location.hash) {
|
||||||
|
$(window).trigger('hashchange');
|
||||||
|
}
|
||||||
|
|
||||||
|
// // $('[data-spy="scroll"]').each(function () {
|
||||||
|
// // var $spy = $(this).scrollspy('refresh')
|
||||||
|
// // })
|
||||||
|
|
||||||
|
// $('[data-spy="scroll"]').on('activate.bs.scrollspy', function () {
|
||||||
|
// // do something…
|
||||||
|
// var offset = $('[data-spy="scroll"]').attr("data-offset")
|
||||||
|
// })
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
/*!
|
||||||
|
* jQuery Smooth Scroll - v2.2.0 - 2017-05-05
|
||||||
|
* https://github.com/kswedberg/jquery-smooth-scroll
|
||||||
|
* Copyright (c) 2017 Karl Swedberg
|
||||||
|
* Licensed MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){var b={},c={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,autoFocus:!1,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},d=function(b){var c=[],d=!1,e=b.dir&&"left"===b.dir?"scrollLeft":"scrollTop";return this.each(function(){var b=a(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(b[e]()>0?c.push(this):(b[e](1),d=b[e]()>0,d&&c.push(this),b[e](0))):(c.push(document.scrollingElement),!1)}),c.length||this.each(function(){this===document.documentElement&&"smooth"===a(this).css("scrollBehavior")&&(c=[this]),c.length||"BODY"!==this.nodeName||(c=[this])}),"first"===b.el&&c.length>1&&(c=[c[0]]),c},e=/^([\-\+]=)(\d+)/;a.fn.extend({scrollable:function(a){var b=d.call(this,{dir:a});return this.pushStack(b)},firstScrollable:function(a){var b=d.call(this,{el:"first",dir:a});return this.pushStack(b)},smoothScroll:function(b,c){if("options"===(b=b||{}))return c?this.each(function(){var b=a(this),d=a.extend(b.data("ssOpts")||{},c);a(this).data("ssOpts",d)}):this.first().data("ssOpts");var d=a.extend({},a.fn.smoothScroll.defaults,b),e=function(b){var c=function(a){return a.replace(/(:|\.|\/)/g,"\\$1")},e=this,f=a(this),g=a.extend({},d,f.data("ssOpts")||{}),h=d.exclude,i=g.excludeWithin,j=0,k=0,l=!0,m={},n=a.smoothScroll.filterPath(location.pathname),o=a.smoothScroll.filterPath(e.pathname),p=location.hostname===e.hostname||!e.hostname,q=g.scrollTarget||o===n,r=c(e.hash);if(r&&!a(r).length&&(l=!1),g.scrollTarget||p&&q&&r){for(;l&&j<h.length;)f.is(c(h[j++]))&&(l=!1);for(;l&&k<i.length;)f.closest(i[k++]).length&&(l=!1)}else l=!1;l&&(g.preventDefault&&b.preventDefault(),a.extend(m,g,{scrollTarget:g.scrollTarget||r,link:e}),a.smoothScroll(m))};return null!==b.delegateSelector?this.off("click.smoothscroll",b.delegateSelector).on("click.smoothscroll",b.delegateSelector,e):this.off("click.smoothscroll").on("click.smoothscroll",e),this}});var f=function(a){var b={relative:""},c="string"==typeof a&&e.exec(a);return"number"==typeof a?b.px=a:c&&(b.relative=c[1],b.px=parseFloat(c[2])||0),b},g=function(b){var c=a(b.scrollTarget);b.autoFocus&&c.length&&(c[0].focus(),c.is(document.activeElement)||(c.prop({tabIndex:-1}),c[0].focus())),b.afterScroll.call(b.link,b)};a.smoothScroll=function(c,d){if("options"===c&&"object"==typeof d)return a.extend(b,d);var e,h,i,j,k=f(c),l={},m=0,n="offset",o="scrollTop",p={},q={};k.px?e=a.extend({link:null},a.fn.smoothScroll.defaults,b):(e=a.extend({link:null},a.fn.smoothScroll.defaults,c||{},b),e.scrollElement&&(n="position","static"===e.scrollElement.css("position")&&e.scrollElement.css("position","relative")),d&&(k=f(d))),o="left"===e.direction?"scrollLeft":o,e.scrollElement?(h=e.scrollElement,k.px||/^(?:HTML|BODY)$/.test(h[0].nodeName)||(m=h[o]())):h=a("html, body").firstScrollable(e.direction),e.beforeScroll.call(h,e),l=k.px?k:{relative:"",px:a(e.scrollTarget)[n]()&&a(e.scrollTarget)[n]()[e.direction]||0},p[o]=l.relative+(l.px+m+e.offset),i=e.speed,"auto"===i&&(j=Math.abs(p[o]-h[o]()),i=j/e.autoCoefficient),q={duration:i,easing:e.easing,complete:function(){g(e)}},e.step&&(q.step=e.step),h.length?h.stop().animate(p,q):g(e)},a.smoothScroll.version="2.2.0",a.smoothScroll.filterPath=function(a){return a=a||"",a.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},a.fn.smoothScroll.defaults=c});
|
||||||
@ -0,0 +1,790 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory(require("katex"));
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define(["katex"], factory);
|
||||||
|
else if(typeof exports === 'object')
|
||||||
|
exports["renderMathInElement"] = factory(require("katex"));
|
||||||
|
else
|
||||||
|
root["renderMathInElement"] = factory(root["katex"]);
|
||||||
|
})(this, function(__WEBPACK_EXTERNAL_MODULE_38__) {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 9);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ([
|
||||||
|
/* 0 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
||||||
|
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
||||||
|
? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
|
||||||
|
if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 1 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
module.exports = function(it){
|
||||||
|
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 2 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// Thank's IE8 for his funny defineProperty
|
||||||
|
module.exports = !__webpack_require__(3)(function(){
|
||||||
|
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
|
||||||
|
});
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 3 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
module.exports = function(exec){
|
||||||
|
try {
|
||||||
|
return !!exec();
|
||||||
|
} catch(e){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 4 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
var core = module.exports = {version: '2.4.0'};
|
||||||
|
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 5 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
||||||
|
var IObject = __webpack_require__(6)
|
||||||
|
, defined = __webpack_require__(7);
|
||||||
|
module.exports = function(it){
|
||||||
|
return IObject(defined(it));
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 6 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
||||||
|
var cof = __webpack_require__(27);
|
||||||
|
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
|
||||||
|
return cof(it) == 'String' ? it.split('') : Object(it);
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 7 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
// 7.2.1 RequireObjectCoercible(argument)
|
||||||
|
module.exports = function(it){
|
||||||
|
if(it == undefined)throw TypeError("Can't call method on " + it);
|
||||||
|
return it;
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 8 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
// 7.1.4 ToInteger
|
||||||
|
var ceil = Math.ceil
|
||||||
|
, floor = Math.floor;
|
||||||
|
module.exports = function(it){
|
||||||
|
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 9 */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign__ = __webpack_require__(10);
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign__);
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_katex__ = __webpack_require__(38);
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_katex___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_katex__);
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__splitAtDelimiters__ = __webpack_require__(39);
|
||||||
|
|
||||||
|
/* eslint no-console:0 */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var splitWithDelimiters = function splitWithDelimiters(text, delimiters) {
|
||||||
|
var data = [{ type: "text", data: text }];
|
||||||
|
for (var i = 0; i < delimiters.length; i++) {
|
||||||
|
var delimiter = delimiters[i];
|
||||||
|
data = Object(__WEBPACK_IMPORTED_MODULE_2__splitAtDelimiters__["a" /* default */])(data, delimiter.left, delimiter.right, delimiter.display || false);
|
||||||
|
}
|
||||||
|
return data;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* Note: optionsCopy is mutated by this method. If it is ever exposed in the
|
||||||
|
* API, we should copy it before mutating.
|
||||||
|
*/
|
||||||
|
var renderMathInText = function renderMathInText(text, optionsCopy) {
|
||||||
|
var data = splitWithDelimiters(text, optionsCopy.delimiters);
|
||||||
|
var fragment = document.createDocumentFragment();
|
||||||
|
|
||||||
|
for (var i = 0; i < data.length; i++) {
|
||||||
|
if (data[i].type === "text") {
|
||||||
|
fragment.appendChild(document.createTextNode(data[i].data));
|
||||||
|
} else {
|
||||||
|
var span = document.createElement("span");
|
||||||
|
var math = data[i].data;
|
||||||
|
// Override any display mode defined in the settings with that
|
||||||
|
// defined by the text itself
|
||||||
|
optionsCopy.displayMode = data[i].display;
|
||||||
|
try {
|
||||||
|
__WEBPACK_IMPORTED_MODULE_1_katex___default.a.render(math, span, optionsCopy);
|
||||||
|
} catch (e) {
|
||||||
|
if (!(e instanceof __WEBPACK_IMPORTED_MODULE_1_katex___default.a.ParseError)) {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
optionsCopy.errorCallback("KaTeX auto-render: Failed to parse `" + data[i].data + "` with ", e);
|
||||||
|
fragment.appendChild(document.createTextNode(data[i].rawData));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
fragment.appendChild(span);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return fragment;
|
||||||
|
};
|
||||||
|
|
||||||
|
var renderElem = function renderElem(elem, optionsCopy) {
|
||||||
|
for (var i = 0; i < elem.childNodes.length; i++) {
|
||||||
|
var childNode = elem.childNodes[i];
|
||||||
|
if (childNode.nodeType === 3) {
|
||||||
|
// Text node
|
||||||
|
var frag = renderMathInText(childNode.textContent, optionsCopy);
|
||||||
|
i += frag.childNodes.length - 1;
|
||||||
|
elem.replaceChild(frag, childNode);
|
||||||
|
} else if (childNode.nodeType === 1) {
|
||||||
|
// Element node
|
||||||
|
var shouldRender = optionsCopy.ignoredTags.indexOf(childNode.nodeName.toLowerCase()) === -1;
|
||||||
|
|
||||||
|
if (shouldRender) {
|
||||||
|
renderElem(childNode, optionsCopy);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Otherwise, it's something else, and ignore it.
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var defaultAutoRenderOptions = {
|
||||||
|
delimiters: [{ left: "$$", right: "$$", display: true }, { left: "\\[", right: "\\]", display: true }, { left: "\\(", right: "\\)", display: false }],
|
||||||
|
|
||||||
|
ignoredTags: ["script", "noscript", "style", "textarea", "pre", "code"],
|
||||||
|
|
||||||
|
errorCallback: function errorCallback(msg, err) {
|
||||||
|
console.error(msg, err);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var renderMathInElement = function renderMathInElement(elem, options) {
|
||||||
|
if (!elem) {
|
||||||
|
throw new Error("No element provided to render");
|
||||||
|
}
|
||||||
|
|
||||||
|
var optionsCopy = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default()({}, defaultAutoRenderOptions, options);
|
||||||
|
renderElem(elem, optionsCopy);
|
||||||
|
};
|
||||||
|
|
||||||
|
/* harmony default export */ __webpack_exports__["default"] = (renderMathInElement);
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 10 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
module.exports = { "default": __webpack_require__(11), __esModule: true };
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 11 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
__webpack_require__(12);
|
||||||
|
module.exports = __webpack_require__(4).Object.assign;
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 12 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// 19.1.3.1 Object.assign(target, source)
|
||||||
|
var $export = __webpack_require__(13);
|
||||||
|
|
||||||
|
$export($export.S + $export.F, 'Object', {assign: __webpack_require__(23)});
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 13 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var global = __webpack_require__(0)
|
||||||
|
, core = __webpack_require__(4)
|
||||||
|
, ctx = __webpack_require__(14)
|
||||||
|
, hide = __webpack_require__(16)
|
||||||
|
, PROTOTYPE = 'prototype';
|
||||||
|
|
||||||
|
var $export = function(type, name, source){
|
||||||
|
var IS_FORCED = type & $export.F
|
||||||
|
, IS_GLOBAL = type & $export.G
|
||||||
|
, IS_STATIC = type & $export.S
|
||||||
|
, IS_PROTO = type & $export.P
|
||||||
|
, IS_BIND = type & $export.B
|
||||||
|
, IS_WRAP = type & $export.W
|
||||||
|
, exports = IS_GLOBAL ? core : core[name] || (core[name] = {})
|
||||||
|
, expProto = exports[PROTOTYPE]
|
||||||
|
, target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
|
||||||
|
, key, own, out;
|
||||||
|
if(IS_GLOBAL)source = name;
|
||||||
|
for(key in source){
|
||||||
|
// contains in native
|
||||||
|
own = !IS_FORCED && target && target[key] !== undefined;
|
||||||
|
if(own && key in exports)continue;
|
||||||
|
// export native or passed
|
||||||
|
out = own ? target[key] : source[key];
|
||||||
|
// prevent global pollution for namespaces
|
||||||
|
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
|
||||||
|
// bind timers to global for call from export context
|
||||||
|
: IS_BIND && own ? ctx(out, global)
|
||||||
|
// wrap global constructors for prevent change them in library
|
||||||
|
: IS_WRAP && target[key] == out ? (function(C){
|
||||||
|
var F = function(a, b, c){
|
||||||
|
if(this instanceof C){
|
||||||
|
switch(arguments.length){
|
||||||
|
case 0: return new C;
|
||||||
|
case 1: return new C(a);
|
||||||
|
case 2: return new C(a, b);
|
||||||
|
} return new C(a, b, c);
|
||||||
|
} return C.apply(this, arguments);
|
||||||
|
};
|
||||||
|
F[PROTOTYPE] = C[PROTOTYPE];
|
||||||
|
return F;
|
||||||
|
// make static versions for prototype methods
|
||||||
|
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
||||||
|
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
|
||||||
|
if(IS_PROTO){
|
||||||
|
(exports.virtual || (exports.virtual = {}))[key] = out;
|
||||||
|
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
|
||||||
|
if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// type bitmap
|
||||||
|
$export.F = 1; // forced
|
||||||
|
$export.G = 2; // global
|
||||||
|
$export.S = 4; // static
|
||||||
|
$export.P = 8; // proto
|
||||||
|
$export.B = 16; // bind
|
||||||
|
$export.W = 32; // wrap
|
||||||
|
$export.U = 64; // safe
|
||||||
|
$export.R = 128; // real proto method for `library`
|
||||||
|
module.exports = $export;
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 14 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// optional / simple context binding
|
||||||
|
var aFunction = __webpack_require__(15);
|
||||||
|
module.exports = function(fn, that, length){
|
||||||
|
aFunction(fn);
|
||||||
|
if(that === undefined)return fn;
|
||||||
|
switch(length){
|
||||||
|
case 1: return function(a){
|
||||||
|
return fn.call(that, a);
|
||||||
|
};
|
||||||
|
case 2: return function(a, b){
|
||||||
|
return fn.call(that, a, b);
|
||||||
|
};
|
||||||
|
case 3: return function(a, b, c){
|
||||||
|
return fn.call(that, a, b, c);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return function(/* ...args */){
|
||||||
|
return fn.apply(that, arguments);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 15 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
module.exports = function(it){
|
||||||
|
if(typeof it != 'function')throw TypeError(it + ' is not a function!');
|
||||||
|
return it;
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 16 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var dP = __webpack_require__(17)
|
||||||
|
, createDesc = __webpack_require__(22);
|
||||||
|
module.exports = __webpack_require__(2) ? function(object, key, value){
|
||||||
|
return dP.f(object, key, createDesc(1, value));
|
||||||
|
} : function(object, key, value){
|
||||||
|
object[key] = value;
|
||||||
|
return object;
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 17 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var anObject = __webpack_require__(18)
|
||||||
|
, IE8_DOM_DEFINE = __webpack_require__(19)
|
||||||
|
, toPrimitive = __webpack_require__(21)
|
||||||
|
, dP = Object.defineProperty;
|
||||||
|
|
||||||
|
exports.f = __webpack_require__(2) ? Object.defineProperty : function defineProperty(O, P, Attributes){
|
||||||
|
anObject(O);
|
||||||
|
P = toPrimitive(P, true);
|
||||||
|
anObject(Attributes);
|
||||||
|
if(IE8_DOM_DEFINE)try {
|
||||||
|
return dP(O, P, Attributes);
|
||||||
|
} catch(e){ /* empty */ }
|
||||||
|
if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
|
||||||
|
if('value' in Attributes)O[P] = Attributes.value;
|
||||||
|
return O;
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 18 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var isObject = __webpack_require__(1);
|
||||||
|
module.exports = function(it){
|
||||||
|
if(!isObject(it))throw TypeError(it + ' is not an object!');
|
||||||
|
return it;
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 19 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
module.exports = !__webpack_require__(2) && !__webpack_require__(3)(function(){
|
||||||
|
return Object.defineProperty(__webpack_require__(20)('div'), 'a', {get: function(){ return 7; }}).a != 7;
|
||||||
|
});
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 20 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var isObject = __webpack_require__(1)
|
||||||
|
, document = __webpack_require__(0).document
|
||||||
|
// in old IE typeof document.createElement is 'object'
|
||||||
|
, is = isObject(document) && isObject(document.createElement);
|
||||||
|
module.exports = function(it){
|
||||||
|
return is ? document.createElement(it) : {};
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 21 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// 7.1.1 ToPrimitive(input [, PreferredType])
|
||||||
|
var isObject = __webpack_require__(1);
|
||||||
|
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
||||||
|
// and the second argument - flag - preferred type is a string
|
||||||
|
module.exports = function(it, S){
|
||||||
|
if(!isObject(it))return it;
|
||||||
|
var fn, val;
|
||||||
|
if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
|
||||||
|
if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;
|
||||||
|
if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
|
||||||
|
throw TypeError("Can't convert object to primitive value");
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 22 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
module.exports = function(bitmap, value){
|
||||||
|
return {
|
||||||
|
enumerable : !(bitmap & 1),
|
||||||
|
configurable: !(bitmap & 2),
|
||||||
|
writable : !(bitmap & 4),
|
||||||
|
value : value
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 23 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
// 19.1.2.1 Object.assign(target, source, ...)
|
||||||
|
var getKeys = __webpack_require__(24)
|
||||||
|
, gOPS = __webpack_require__(35)
|
||||||
|
, pIE = __webpack_require__(36)
|
||||||
|
, toObject = __webpack_require__(37)
|
||||||
|
, IObject = __webpack_require__(6)
|
||||||
|
, $assign = Object.assign;
|
||||||
|
|
||||||
|
// should work with symbols and should have deterministic property order (V8 bug)
|
||||||
|
module.exports = !$assign || __webpack_require__(3)(function(){
|
||||||
|
var A = {}
|
||||||
|
, B = {}
|
||||||
|
, S = Symbol()
|
||||||
|
, K = 'abcdefghijklmnopqrst';
|
||||||
|
A[S] = 7;
|
||||||
|
K.split('').forEach(function(k){ B[k] = k; });
|
||||||
|
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
|
||||||
|
}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
|
||||||
|
var T = toObject(target)
|
||||||
|
, aLen = arguments.length
|
||||||
|
, index = 1
|
||||||
|
, getSymbols = gOPS.f
|
||||||
|
, isEnum = pIE.f;
|
||||||
|
while(aLen > index){
|
||||||
|
var S = IObject(arguments[index++])
|
||||||
|
, keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
|
||||||
|
, length = keys.length
|
||||||
|
, j = 0
|
||||||
|
, key;
|
||||||
|
while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
|
||||||
|
} return T;
|
||||||
|
} : $assign;
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 24 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
||||||
|
var $keys = __webpack_require__(25)
|
||||||
|
, enumBugKeys = __webpack_require__(34);
|
||||||
|
|
||||||
|
module.exports = Object.keys || function keys(O){
|
||||||
|
return $keys(O, enumBugKeys);
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 25 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var has = __webpack_require__(26)
|
||||||
|
, toIObject = __webpack_require__(5)
|
||||||
|
, arrayIndexOf = __webpack_require__(28)(false)
|
||||||
|
, IE_PROTO = __webpack_require__(31)('IE_PROTO');
|
||||||
|
|
||||||
|
module.exports = function(object, names){
|
||||||
|
var O = toIObject(object)
|
||||||
|
, i = 0
|
||||||
|
, result = []
|
||||||
|
, key;
|
||||||
|
for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
|
||||||
|
// Don't enum bug & hidden keys
|
||||||
|
while(names.length > i)if(has(O, key = names[i++])){
|
||||||
|
~arrayIndexOf(result, key) || result.push(key);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 26 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
var hasOwnProperty = {}.hasOwnProperty;
|
||||||
|
module.exports = function(it, key){
|
||||||
|
return hasOwnProperty.call(it, key);
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 27 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
var toString = {}.toString;
|
||||||
|
|
||||||
|
module.exports = function(it){
|
||||||
|
return toString.call(it).slice(8, -1);
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 28 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// false -> Array#indexOf
|
||||||
|
// true -> Array#includes
|
||||||
|
var toIObject = __webpack_require__(5)
|
||||||
|
, toLength = __webpack_require__(29)
|
||||||
|
, toIndex = __webpack_require__(30);
|
||||||
|
module.exports = function(IS_INCLUDES){
|
||||||
|
return function($this, el, fromIndex){
|
||||||
|
var O = toIObject($this)
|
||||||
|
, length = toLength(O.length)
|
||||||
|
, index = toIndex(fromIndex, length)
|
||||||
|
, value;
|
||||||
|
// Array#includes uses SameValueZero equality algorithm
|
||||||
|
if(IS_INCLUDES && el != el)while(length > index){
|
||||||
|
value = O[index++];
|
||||||
|
if(value != value)return true;
|
||||||
|
// Array#toIndex ignores holes, Array#includes - not
|
||||||
|
} else for(;length > index; index++)if(IS_INCLUDES || index in O){
|
||||||
|
if(O[index] === el)return IS_INCLUDES || index || 0;
|
||||||
|
} return !IS_INCLUDES && -1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 29 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// 7.1.15 ToLength
|
||||||
|
var toInteger = __webpack_require__(8)
|
||||||
|
, min = Math.min;
|
||||||
|
module.exports = function(it){
|
||||||
|
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 30 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var toInteger = __webpack_require__(8)
|
||||||
|
, max = Math.max
|
||||||
|
, min = Math.min;
|
||||||
|
module.exports = function(index, length){
|
||||||
|
index = toInteger(index);
|
||||||
|
return index < 0 ? max(index + length, 0) : min(index, length);
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 31 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var shared = __webpack_require__(32)('keys')
|
||||||
|
, uid = __webpack_require__(33);
|
||||||
|
module.exports = function(key){
|
||||||
|
return shared[key] || (shared[key] = uid(key));
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 32 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
var global = __webpack_require__(0)
|
||||||
|
, SHARED = '__core-js_shared__'
|
||||||
|
, store = global[SHARED] || (global[SHARED] = {});
|
||||||
|
module.exports = function(key){
|
||||||
|
return store[key] || (store[key] = {});
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 33 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
var id = 0
|
||||||
|
, px = Math.random();
|
||||||
|
module.exports = function(key){
|
||||||
|
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 34 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
// IE 8- don't enum bug keys
|
||||||
|
module.exports = (
|
||||||
|
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
||||||
|
).split(',');
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 35 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
exports.f = Object.getOwnPropertySymbols;
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 36 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
exports.f = {}.propertyIsEnumerable;
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 37 */
|
||||||
|
/***/ (function(module, exports, __webpack_require__) {
|
||||||
|
|
||||||
|
// 7.1.13 ToObject(argument)
|
||||||
|
var defined = __webpack_require__(7);
|
||||||
|
module.exports = function(it){
|
||||||
|
return Object(defined(it));
|
||||||
|
};
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 38 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
module.exports = __WEBPACK_EXTERNAL_MODULE_38__;
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 39 */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* eslint no-constant-condition:0 */
|
||||||
|
var findEndOfMath = function findEndOfMath(delimiter, text, startIndex) {
|
||||||
|
// Adapted from
|
||||||
|
// https://github.com/Khan/perseus/blob/master/src/perseus-markdown.jsx
|
||||||
|
var index = startIndex;
|
||||||
|
var braceLevel = 0;
|
||||||
|
|
||||||
|
var delimLength = delimiter.length;
|
||||||
|
|
||||||
|
while (index < text.length) {
|
||||||
|
var character = text[index];
|
||||||
|
|
||||||
|
if (braceLevel <= 0 && text.slice(index, index + delimLength) === delimiter) {
|
||||||
|
return index;
|
||||||
|
} else if (character === "\\") {
|
||||||
|
index++;
|
||||||
|
} else if (character === "{") {
|
||||||
|
braceLevel++;
|
||||||
|
} else if (character === "}") {
|
||||||
|
braceLevel--;
|
||||||
|
}
|
||||||
|
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
};
|
||||||
|
|
||||||
|
var splitAtDelimiters = function splitAtDelimiters(startData, leftDelim, rightDelim, display) {
|
||||||
|
var finalData = [];
|
||||||
|
|
||||||
|
for (var i = 0; i < startData.length; i++) {
|
||||||
|
if (startData[i].type === "text") {
|
||||||
|
var text = startData[i].data;
|
||||||
|
|
||||||
|
var lookingForLeft = true;
|
||||||
|
var currIndex = 0;
|
||||||
|
var nextIndex = void 0;
|
||||||
|
|
||||||
|
nextIndex = text.indexOf(leftDelim);
|
||||||
|
if (nextIndex !== -1) {
|
||||||
|
currIndex = nextIndex;
|
||||||
|
finalData.push({
|
||||||
|
type: "text",
|
||||||
|
data: text.slice(0, currIndex)
|
||||||
|
});
|
||||||
|
lookingForLeft = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (true) {
|
||||||
|
if (lookingForLeft) {
|
||||||
|
nextIndex = text.indexOf(leftDelim, currIndex);
|
||||||
|
if (nextIndex === -1) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
finalData.push({
|
||||||
|
type: "text",
|
||||||
|
data: text.slice(currIndex, nextIndex)
|
||||||
|
});
|
||||||
|
|
||||||
|
currIndex = nextIndex;
|
||||||
|
} else {
|
||||||
|
nextIndex = findEndOfMath(rightDelim, text, currIndex + leftDelim.length);
|
||||||
|
if (nextIndex === -1) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
finalData.push({
|
||||||
|
type: "math",
|
||||||
|
data: text.slice(currIndex + leftDelim.length, nextIndex),
|
||||||
|
rawData: text.slice(currIndex, nextIndex + rightDelim.length),
|
||||||
|
display: display
|
||||||
|
});
|
||||||
|
|
||||||
|
currIndex = nextIndex + rightDelim.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
lookingForLeft = !lookingForLeft;
|
||||||
|
}
|
||||||
|
|
||||||
|
finalData.push({
|
||||||
|
type: "text",
|
||||||
|
data: text.slice(currIndex)
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
finalData.push(startData[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return finalData;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* harmony default export */ __webpack_exports__["a"] = (splitAtDelimiters);
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
/******/ ])["default"];
|
||||||
|
});
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
/* Force selection of entire .katex/.katex-display blocks, so that we can
|
||||||
|
* copy/paste the entire source code. If you omit this CSS, partial
|
||||||
|
* selections of a formula will work, but will copy the ugly HTML
|
||||||
|
* representation instead of the LaTeX source code. (Full selections will
|
||||||
|
* still produce the LaTeX source code.)
|
||||||
|
*/
|
||||||
|
.katex, .katex-display {
|
||||||
|
user-select: all;
|
||||||
|
-moz-user-select: all;
|
||||||
|
-webkit-user-select: all;
|
||||||
|
-ms-user-select: all;
|
||||||
|
}
|
||||||
@ -0,0 +1,174 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define([], factory);
|
||||||
|
else {
|
||||||
|
var a = factory();
|
||||||
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
||||||
|
}
|
||||||
|
})(this, function() {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ([
|
||||||
|
/* 0 */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__copy_tex_css__ = __webpack_require__(1);
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__copy_tex_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__copy_tex_css__);
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__katex2tex__ = __webpack_require__(2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Global copy handler to modify behavior on .katex elements.
|
||||||
|
document.addEventListener('copy', function (event) {
|
||||||
|
var selection = window.getSelection();
|
||||||
|
if (selection.isCollapsed) {
|
||||||
|
return; // default action OK if selection is empty
|
||||||
|
}
|
||||||
|
var fragment = selection.getRangeAt(0).cloneContents();
|
||||||
|
if (!fragment.querySelector('.katex-mathml')) {
|
||||||
|
return; // default action OK if no .katex-mathml elements
|
||||||
|
}
|
||||||
|
// Preserve usual HTML copy/paste behavior.
|
||||||
|
var html = [];
|
||||||
|
for (var i = 0; i < fragment.childNodes.length; i++) {
|
||||||
|
html.push(fragment.childNodes[i].outerHTML);
|
||||||
|
}
|
||||||
|
event.clipboardData.setData('text/html', html.join(''));
|
||||||
|
// Rewrite plain-text version.
|
||||||
|
event.clipboardData.setData('text/plain', Object(__WEBPACK_IMPORTED_MODULE_1__katex2tex__["a" /* default */])(fragment).textContent);
|
||||||
|
// Prevent normal copy handling.
|
||||||
|
event.preventDefault();
|
||||||
|
});
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 1 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
// removed by extract-text-webpack-plugin
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 2 */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
/* unused harmony export defaultCopyDelimiters */
|
||||||
|
/* unused harmony export katexReplaceWithTex */
|
||||||
|
// Set these to how you want inline and display math to be delimited.
|
||||||
|
var defaultCopyDelimiters = {
|
||||||
|
inline: ['$', '$'], // alternative: ['\(', '\)']
|
||||||
|
display: ['$$', '$$'] // alternative: ['\[', '\]']
|
||||||
|
};
|
||||||
|
|
||||||
|
// Replace .katex elements with their TeX source (<annotation> element).
|
||||||
|
// Modifies fragment in-place. Useful for writing your own 'copy' handler,
|
||||||
|
// as in copy-tex.js.
|
||||||
|
var katexReplaceWithTex = function katexReplaceWithTex(fragment) {
|
||||||
|
var copyDelimiters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultCopyDelimiters;
|
||||||
|
|
||||||
|
// Remove .katex-html blocks that are preceded by .katex-mathml blocks
|
||||||
|
// (which will get replaced below).
|
||||||
|
var katexHtml = fragment.querySelectorAll('.katex-mathml + .katex-html');
|
||||||
|
for (var i = 0; i < katexHtml.length; i++) {
|
||||||
|
var element = katexHtml[i];
|
||||||
|
if (element.remove) {
|
||||||
|
element.remove(null);
|
||||||
|
} else {
|
||||||
|
element.parentNode.removeChild(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Replace .katex-mathml elements with their annotation (TeX source)
|
||||||
|
// descendant, with inline delimiters.
|
||||||
|
var katexMathml = fragment.querySelectorAll('.katex-mathml');
|
||||||
|
for (var _i = 0; _i < katexMathml.length; _i++) {
|
||||||
|
var _element = katexMathml[_i];
|
||||||
|
var texSource = _element.querySelector('annotation');
|
||||||
|
if (texSource) {
|
||||||
|
if (_element.replaceWith) {
|
||||||
|
_element.replaceWith(texSource);
|
||||||
|
} else {
|
||||||
|
_element.parentNode.replaceChild(texSource, _element);
|
||||||
|
}
|
||||||
|
texSource.innerHTML = copyDelimiters.inline[0] + texSource.innerHTML + copyDelimiters.inline[1];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Switch display math to display delimiters.
|
||||||
|
var displays = fragment.querySelectorAll('.katex-display annotation');
|
||||||
|
for (var _i2 = 0; _i2 < displays.length; _i2++) {
|
||||||
|
var _element2 = displays[_i2];
|
||||||
|
_element2.innerHTML = copyDelimiters.display[0] + _element2.innerHTML.substr(copyDelimiters.inline[0].length, _element2.innerHTML.length - copyDelimiters.inline[0].length - copyDelimiters.inline[1].length) + copyDelimiters.display[1];
|
||||||
|
}
|
||||||
|
return fragment;
|
||||||
|
};
|
||||||
|
|
||||||
|
/* harmony default export */ __webpack_exports__["a"] = (katexReplaceWithTex);
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
/******/ ])["default"];
|
||||||
|
});
|
||||||
@ -0,0 +1 @@
|
|||||||
|
.katex,.katex-display{user-select:all;-moz-user-select:all;-webkit-user-select:all;-ms-user-select:all}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(n.n(r),n(2));document.addEventListener("copy",function(e){var t=window.getSelection();if(!t.isCollapsed){var n=t.getRangeAt(0).cloneContents();if(n.querySelector(".katex-mathml")){for(var r=[],i=0;i<n.childNodes.length;i++)r.push(n.childNodes[i].outerHTML);e.clipboardData.setData("text/html",r.join("")),e.clipboardData.setData("text/plain",Object(o.a)(n).textContent),e.preventDefault()}}})},function(e,t){},function(e,t,n){"use strict";var r={inline:["$","$"],display:["$$","$$"]};t.a=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=e.querySelectorAll(".katex-mathml + .katex-html"),o=0;o<n.length;o++){var i=n[o];i.remove?i.remove(null):i.parentNode.removeChild(i)}for(var l=e.querySelectorAll(".katex-mathml"),a=0;a<l.length;a++){var u=l[a],c=u.querySelector("annotation");c&&(u.replaceWith?u.replaceWith(c):u.parentNode.replaceChild(c,u),c.innerHTML=t.inline[0]+c.innerHTML+t.inline[1])}for(var f=e.querySelectorAll(".katex-display annotation"),p=0;p<f.length;p++){var s=f[p];s.innerHTML=t.display[0]+s.innerHTML.substr(t.inline[0].length,s.innerHTML.length-t.inline[0].length-t.inline[1].length)+t.display[1]}return e}}]).default});
|
||||||
@ -0,0 +1,113 @@
|
|||||||
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
|
module.exports = factory(require("katex"));
|
||||||
|
else if(typeof define === 'function' && define.amd)
|
||||||
|
define(["katex"], factory);
|
||||||
|
else {
|
||||||
|
var a = typeof exports === 'object' ? factory(require("katex")) : factory(root["katex"]);
|
||||||
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
||||||
|
}
|
||||||
|
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__) {
|
||||||
|
return /******/ (function(modules) { // webpackBootstrap
|
||||||
|
/******/ // The module cache
|
||||||
|
/******/ var installedModules = {};
|
||||||
|
/******/
|
||||||
|
/******/ // The require function
|
||||||
|
/******/ function __webpack_require__(moduleId) {
|
||||||
|
/******/
|
||||||
|
/******/ // Check if module is in cache
|
||||||
|
/******/ if(installedModules[moduleId]) {
|
||||||
|
/******/ return installedModules[moduleId].exports;
|
||||||
|
/******/ }
|
||||||
|
/******/ // Create a new module (and put it into the cache)
|
||||||
|
/******/ var module = installedModules[moduleId] = {
|
||||||
|
/******/ i: moduleId,
|
||||||
|
/******/ l: false,
|
||||||
|
/******/ exports: {}
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Execute the module function
|
||||||
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||||
|
/******/
|
||||||
|
/******/ // Flag the module as loaded
|
||||||
|
/******/ module.l = true;
|
||||||
|
/******/
|
||||||
|
/******/ // Return the exports of the module
|
||||||
|
/******/ return module.exports;
|
||||||
|
/******/ }
|
||||||
|
/******/
|
||||||
|
/******/
|
||||||
|
/******/ // expose the modules object (__webpack_modules__)
|
||||||
|
/******/ __webpack_require__.m = modules;
|
||||||
|
/******/
|
||||||
|
/******/ // expose the module cache
|
||||||
|
/******/ __webpack_require__.c = installedModules;
|
||||||
|
/******/
|
||||||
|
/******/ // define getter function for harmony exports
|
||||||
|
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||||
|
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||||
|
/******/ Object.defineProperty(exports, name, {
|
||||||
|
/******/ configurable: false,
|
||||||
|
/******/ enumerable: true,
|
||||||
|
/******/ get: getter
|
||||||
|
/******/ });
|
||||||
|
/******/ }
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||||
|
/******/ __webpack_require__.n = function(module) {
|
||||||
|
/******/ var getter = module && module.__esModule ?
|
||||||
|
/******/ function getDefault() { return module['default']; } :
|
||||||
|
/******/ function getModuleExports() { return module; };
|
||||||
|
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||||
|
/******/ return getter;
|
||||||
|
/******/ };
|
||||||
|
/******/
|
||||||
|
/******/ // Object.prototype.hasOwnProperty.call
|
||||||
|
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||||
|
/******/
|
||||||
|
/******/ // __webpack_public_path__
|
||||||
|
/******/ __webpack_require__.p = "";
|
||||||
|
/******/
|
||||||
|
/******/ // Load entry module and return exports
|
||||||
|
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
||||||
|
/******/ })
|
||||||
|
/************************************************************************/
|
||||||
|
/******/ ([
|
||||||
|
/* 0 */
|
||||||
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||||
|
|
||||||
|
"use strict";
|
||||||
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_katex__ = __webpack_require__(1);
|
||||||
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_katex___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_katex__);
|
||||||
|
|
||||||
|
|
||||||
|
var scripts = document.body.getElementsByTagName("script");
|
||||||
|
scripts = Array.prototype.slice.call(scripts);
|
||||||
|
scripts.forEach(function (script) {
|
||||||
|
if (!script.type || !script.type.match(/math\/tex/i)) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
var display = script.type.match(/mode\s*=\s*display(;|\s|\n|$)/) != null;
|
||||||
|
|
||||||
|
var katexElement = document.createElement(display ? "div" : "span");
|
||||||
|
katexElement.setAttribute("class", display ? "equation" : "inline-equation");
|
||||||
|
try {
|
||||||
|
__WEBPACK_IMPORTED_MODULE_0_katex___default.a.render(script.text, katexElement, { displayMode: display });
|
||||||
|
} catch (err) {
|
||||||
|
//console.error(err); linter doesn't like this
|
||||||
|
katexElement.textContent = script.text;
|
||||||
|
}
|
||||||
|
script.parentNode.replaceChild(katexElement, script);
|
||||||
|
});
|
||||||
|
|
||||||
|
/***/ }),
|
||||||
|
/* 1 */
|
||||||
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
|
module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
|
||||||
|
|
||||||
|
/***/ })
|
||||||
|
/******/ ])["default"];
|
||||||
|
});
|
||||||
@ -0,0 +1 @@
|
|||||||
|
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("katex"));else if("function"==typeof define&&define.amd)define(["katex"],t);else{var r="object"==typeof exports?t(require("katex")):t(e.katex);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=r.n(n),i=document.body.getElementsByTagName("script");(i=Array.prototype.slice.call(i)).forEach(function(e){if(!e.type||!e.type.match(/math\/tex/i))return-1;var t=null!=e.type.match(/mode\s*=\s*display(;|\s|\n|$)/),r=document.createElement(t?"div":"span");r.setAttribute("class",t?"equation":"inline-equation");try{o.a.render(e.text,r,{displayMode:t})}catch(t){r.textContent=e.text}e.parentNode.replaceChild(r,e)})},function(t,r){t.exports=e}]).default});
|
||||||