├── run-js ├── public │ ├── favicon.ico │ └── index.html ├── src │ ├── assets │ │ └── logo.png │ ├── main.js │ ├── App.vue │ └── components │ │ └── RunJavascript.vue ├── package.json ├── README.md ├── hexo │ └── scripts │ │ └── filter │ │ └── run_js.js ├── index.html └── dist │ ├── RunJavascript.umd.min.js │ ├── RunJavascript.common.js │ └── RunJavascript.umd.js ├── .gitignore ├── tabs ├── dist │ ├── tabs.min.js │ └── tabs.css ├── README.md ├── hexo │ └── scripts │ │ └── filter │ │ └── tabs.js └── index.html ├── LICENSE └── README.md /run-js/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flexiodata/markdown-components/HEAD/run-js/public/favicon.ico -------------------------------------------------------------------------------- /run-js/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flexiodata/markdown-components/HEAD/run-js/src/assets/logo.png -------------------------------------------------------------------------------- /run-js/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | 4 | Vue.config.productionTip = false 5 | 6 | new Vue({ 7 | render: h => h(App) 8 | }).$mount('#app') 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env.local 7 | .env.*.local 8 | 9 | # Log files 10 | npm-debug.log* 11 | yarn-debug.log* 12 | yarn-error.log* 13 | 14 | # Editor directories and files 15 | .idea 16 | .vscode 17 | *.suo 18 | *.ntvs* 19 | *.njsproj 20 | *.sln -------------------------------------------------------------------------------- /run-js/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | run-js 9 | 10 | 11 | 12 | 15 |
16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /run-js/src/App.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 24 | 25 | 35 | -------------------------------------------------------------------------------- /tabs/dist/tabs.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Vanilla JavaScript Tabs v1.0.0 3 | * https://zoltantothcom.github.io/vanilla-js-tabs 4 | */ 5 | var Tabs=function(e){function t(e){u.addEventListener("click",n);for(var t=a(null==e?s:e),l=0;lv?0:e}function c(e){l();var t=a(e);u.querySelectorAll("."+f)[t].className+=" "+d,u.querySelectorAll("."+y)[t].style.display=""}function o(e){i(),l(),t(e)}function i(){u.removeEventListener("click",n)}var u=document.getElementById(e.elem),s=e.open||0,f="js-tabs__title",d="js-tabs__title-active",y="js-tabs__content",v=u.querySelectorAll("."+f).length;return t(),{open:c,update:o,destroy:i}}; 6 | -------------------------------------------------------------------------------- /run-js/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "run-js", 3 | "version": "0.1.0", 4 | "private": true, 5 | "scripts": { 6 | "serve": "vue-cli-service serve", 7 | "build": "vue-cli-service build", 8 | "build-lib": "vue-cli-service build --target lib --name RunJavascript src/components/RunJavascript.vue", 9 | "lint": "vue-cli-service lint" 10 | }, 11 | "dependencies": { 12 | "vue": "^2.5.13" 13 | }, 14 | "devDependencies": { 15 | "@vue/cli-plugin-babel": "^3.0.0-beta.6", 16 | "@vue/cli-plugin-eslint": "^3.0.0-beta.6", 17 | "@vue/cli-service": "^3.0.0-beta.6", 18 | "vue-template-compiler": "^2.5.13" 19 | }, 20 | "babel": { 21 | "presets": [ 22 | "@vue/app" 23 | ] 24 | }, 25 | "eslintConfig": { 26 | "root": true, 27 | "extends": [ 28 | "plugin:vue/essential", 29 | "eslint:recommended" 30 | ] 31 | }, 32 | "postcss": { 33 | "plugins": { 34 | "autoprefixer": {} 35 | } 36 | }, 37 | "browserslist": [ 38 | "> 1%", 39 | "last 2 versions", 40 | "not ie <= 8" 41 | ] 42 | } 43 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018-2019 Gold Prairie, LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /tabs/dist/tabs.css: -------------------------------------------------------------------------------- 1 | .js-tabs { 2 | max-width: 100%; 3 | margin-bottom: 2em; 4 | } 5 | .js-tabs__header { 6 | display: block; 7 | margin: 0; 8 | padding: 0; 9 | overflow: hidden; 10 | background: #f8f8f8; 11 | border-top: 1px solid rgba(0,0,0,0.075); 12 | border-right: 1px solid rgba(0,0,0,0.075); 13 | } 14 | .js-tabs__header > div { 15 | display: inline-block; 16 | float: left; 17 | } 18 | .js-tabs__title { 19 | background: #f8f8f8; 20 | border: 1px solid rgba(0,0,0,0.075); 21 | color: #357edd; 22 | cursor: pointer; 23 | display: block; 24 | margin-top: -1px; 25 | margin-right: -1px; 26 | padding: 0.5em 1em; 27 | font-size: 0.875rem; 28 | font-weight: 600; 29 | text-decoration: none; 30 | } 31 | .js-tabs__title:hover { 32 | text-decoration: none; 33 | } 34 | .js-tabs__title-active { 35 | background: #fff; 36 | border-bottom-color: #fff; 37 | color: #333; 38 | cursor: default; 39 | } 40 | .js-tabs__content { 41 | border: 1px solid rgba(0,0,0,0.075); 42 | border-bottom: 1px solid rgba(0,0,0,0.15); 43 | margin-top: -1px; 44 | padding: 0.25em; 45 | box-shadow: 0 4px 5px -3px rgba(0,0,0,0.15); 46 | } 47 | .js-tabs__content > br { 48 | display: none; 49 | } 50 | .js-tabs__content .highlight { 51 | margin: 0; 52 | } 53 | -------------------------------------------------------------------------------- /tabs/README.md: -------------------------------------------------------------------------------- 1 | # Tabs 2 | 3 | Organize content in tabs on your [Hexo](https://hexo.io/) website. 4 | 5 | ## Demo 6 | 7 | [https://flexiodata.github.io/markdown-components/tabs/](https://flexiodata.github.io/markdown-components/tabs/) 8 | 9 | ## Installation 10 | 11 | To install this component and use it with your own static site, do the following: 12 | 13 | 1. Add the Hexo filter file [tabs.js](https://github.com/flexiodata/markdown-components/blob/master/tabs/hexo/scripts/filter/tabs.js) to the `/scripts/filters` folder 14 | 2. Copy [tabs.min.js](https://github.com/flexiodata/markdown-components/blob/master/tabs/dist/tabs.min.js) from the `dist` folder into the JS source folder in your Hexo theme (`/themes//source/js`) 15 | 3. Copy [tabs.css](https://github.com/flexiodata/markdown-components/blob/master/tabs/dist/tabs.css) from the `dist` folder into the CSS source folder in your Hexo theme (`/themes//source/js`) and be sure it is included in your CSS output 16 | 4. Make the following changes to your `layout.ejs` file: 17 | * Add `` to the bottom of the **<body>** 18 | 19 | ## Usage 20 | 21 | ``` 22 | [[[tabs 23 | (((tab:First Tab 24 | First tab contents 25 | ))) 26 | 27 | (((tab:Second Tab 28 | Second tab contents 29 | ))) 30 | ]]] 31 | ``` 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Markdown Components 2 | 3 | Extend Markdown capabilities on static sites with simple, inline JavaScript apps (using Hexo & Vue.js). 4 | 5 | ## Live Demo and Tutorial 6 | 7 | Here's a blog post on [how we use Markdown Components for our static docs](https://www.flex.io/blog/markdown-syntax-javascript-hexo-vue/), including examples of live code snippets. 8 | 9 | ## Overview 10 | 11 | Static site generators are fantastic, but migrating an existing site from CMS system does come at the cost of some classic front-end components. For instance, WordPress has a thriving plugin ecosystem which allows simple custom strings to be inserted into posts which are hooks for adding things like embedded YouTube videos, lightboxes for images and a host of other cool dynamic components that spice up your site. When everything is written in Markdown, this simple functionality isn't really possible outside of raw HTML or raw JavaScript. 12 | 13 | The Markdown Components repo aims to meet in the middle. 14 | 15 | It provides components that are injected via Markdown syntax before the static site generator processes the Markdown. The components that are created consist of a placeholder
where the component will be inserted along with small snippets of Javascript which provide the functionality that can't normally be created in a Markdown document. 16 | 17 | ## Components 18 | 19 | Each component contains a `README.md` with an explanation of what it does and how to add it to your static site. 20 | 21 | | Component | Source | Demo | 22 | |:--------|:------:|:------:| 23 | | **Run Javascript**
A live, runnable, copyable code snippet. | [Source](https://github.com/flexiodata/markdown-components/tree/master/run-js) | https://flexiodata.github.io/markdown-components/run-js/ 24 | | **Tabs**
Organize content in tabs. | [Source](https://github.com/flexiodata/markdown-components/tree/master/tabs) | https://flexiodata.github.io/markdown-components/tabs/ 25 | 26 | ## Contributions 27 | 28 | **Have a component you'd like to add?** Submit a PR or [open an issue](https://github.com/flexiodata/markdown-components/issues). 29 | 30 | ## License 31 | 32 | MIT 33 | -------------------------------------------------------------------------------- /run-js/README.md: -------------------------------------------------------------------------------- 1 | # Run Javascript 2 | 3 | Show Javascript code snippets with a copy and run button to copy the code or run it live on your [Hexo](https://hexo.io/) website. 4 | 5 | ## Demo 6 | 7 | [https://flexiodata.github.io/markdown-components/run-js/](https://flexiodata.github.io/markdown-components/run-js/) 8 | 9 | ## Running Locally 10 | 11 | Fork and clone this repo. In the `run-js` subfolder of the target folder where you cloned this repo, run the following commands: 12 | 13 | ``` 14 | yarn 15 | yarn serve 16 | ``` 17 | 18 | ## Installation 19 | 20 | To install this component and use it with your own static site, do the following: 21 | 22 | 1. Add the Hexo filter file [run_js.js](https://github.com/flexiodata/markdown-components/blob/master/run-js/hexo/scripts/filter/run_js.js) to the `/scripts/filters` folder 23 | 2. Copy [RunJavascript.umd.min.js](https://github.com/flexiodata/markdown-components/blob/master/run-js/dist/RunJavascript.umd.min.js) from the `dist` folder into the JS source folder in your Hexo theme (`/themes//source/js`) 24 | 3. Make the following changes to your `layout.ejs` file: 25 | * Add `` to the **<head>** 26 | * Add `` to the bottom of the **<body>** 27 | * Add `` to the bottom of the **<body>** 28 | 29 | ## Usage 30 | 31 | ```` 32 | ```run-js:{ options } 33 | 34 | ``` 35 | ```` 36 | 37 | ## Options 38 | 39 | | Attribute | Type | Description | Accepted Values | Default | 40 | |:--------|:--------|:--------|:--------|:------:| 41 | | **show-buttons** | boolean | Show or hide buttons in the upper-right corner | — | true | 42 | | **buttons** | array | Choose which buttons to show in the upper-right corner | 'copy', 'run' | ['copy', 'run'] | 43 | | **copy-prefix** | string | Text to prepend to the code when the copy button is clicked | — | *empty string* | 44 | | **copy-suffix** | string | Text to append to the code when the copy button is clicked | — | *empty string* | 45 | -------------------------------------------------------------------------------- /run-js/hexo/scripts/filter/run_js.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Name: Run Javascript 3 | * 4 | * Syntax: 5 | * 6 | * ```run-js:{ options } 7 | * 8 | * ``` 9 | */ 10 | 11 | var regex = /(\s*)(```)\s*(run-js)\s*\n?([\s\S]+?)\s*(\2)(\n+|$)/g 12 | 13 | function htmlEscape(text) { 14 | return text 15 | .replace(/&/g, '&') 16 | .replace(/"/g, '"') 17 | .replace(/'/g, ''') 18 | .replace(//g, '>') 20 | } 21 | 22 | function ignore(data) { 23 | var source = data.source 24 | var ext = source.substring(source.lastIndexOf('.')).toLowerCase() 25 | return ['.js', '.css', '.html', '.htm'].indexOf(ext) > -1 26 | } 27 | 28 | function getId(index) { 29 | return 'run-js-app-' + index 30 | } 31 | 32 | function getMarkupInclude(id, code, options) { 33 | return '
' 34 | } 35 | 36 | function getScriptInclude(id, idx) { 37 | return '' + 38 | '' 46 | } 47 | 48 | function parseContent(content) { 49 | var res = { 50 | code: content, 51 | options: '{}' 52 | } 53 | 54 | if (content.substring(0, 1) == ':') 55 | { 56 | res.options = res.code.substring(0, res.code.indexOf('\n')) 57 | 58 | // remove options string from code 59 | res.code = res.code.substring(res.options.length) 60 | 61 | // remove ':' from options string 62 | if (res.options.length > 0) 63 | res.options = res.options.substring(1).trim() 64 | } 65 | 66 | return res 67 | } 68 | 69 | function render(data) { 70 | if (!ignore(data)) { 71 | var idx = 0 72 | data.content = data.content.replace(regex, function(raw, start, startQuote, lang, content, endQuote, end) { 73 | var id = getId(idx) 74 | var res = parseContent(content) 75 | 76 | //return start + debug(res) + end 77 | 78 | return '' + 79 | start + 80 | '{% raw %}' + 81 | getMarkupInclude(id, res.code, res.options) + 82 | getScriptInclude(id, idx++) + 83 | '{% endraw %}' + 84 | end 85 | }) 86 | } 87 | } 88 | 89 | hexo.extend.filter.register('before_post_render', render, 9) 90 | -------------------------------------------------------------------------------- /run-js/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Run Javascript | Markdown Components 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 29 | 30 | 31 | Fork me on GitHub 32 | 33 |
34 |

Run Javascript | Markdown Components

35 |

Show Javascript code snippets with a copy and run button to copy the code or run it live on your Hexo website.

36 |
37 | 38 | 39 | 40 | 41 |
42 |
43 | 44 | 45 | 46 | 47 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /run-js/src/components/RunJavascript.vue: -------------------------------------------------------------------------------- 1 | 35 | 36 | 112 | -------------------------------------------------------------------------------- /tabs/hexo/scripts/filter/tabs.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Name: Tabs 3 | * 4 | * Syntax: 5 | * 6 | * [[[tabs 7 | * (((tab:First Tab 8 | * First tab contents 9 | * ))) 10 | * 11 | * (((tab:Second Tab 12 | * Second tab contents 13 | * ))) 14 | * ]]] 15 | */ 16 | 17 | var regex = /(\s*)(\[\[\[)\s*(tabs)\s*\n?([\s\S]+?)\s*(\]\]\])(\n+|$)/g 18 | 19 | function htmlEscape(text) { 20 | return text 21 | .replace(/&/g, '&') 22 | .replace(/"/g, '"') 23 | .replace(/'/g, ''') 24 | .replace(//g, '>') 26 | } 27 | 28 | function ignore(data) { 29 | var source = data.source 30 | var ext = source.substring(source.lastIndexOf('.')).toLowerCase() 31 | return ['.js', '.css', '.html', '.htm'].indexOf(ext) > -1 32 | } 33 | 34 | function getId(index) { 35 | return 'vanilla-tab-' + index 36 | } 37 | 38 | /* 39 | function getMarkupInclude(id) { 40 | return '' + 41 | '
' + 42 | '
' + 43 | '' + 44 | '' + 45 | '
' + 46 | '
' + 47 | '

Tab content #1

' + 48 | '
' + 49 | '
' + 50 | '

Tab content #2

' + 51 | '
' + 52 | '
' 53 | } 54 | */ 55 | function getMarkupInclude(id, tabs) { 56 | return '' + 57 | '
' + 58 | '
' + 59 | tabs.headings + 60 | '
' + 61 | tabs.contents + 62 | '
' 63 | } 64 | 65 | function getScriptInclude(id, idx) { 66 | return '' + 67 | '' 75 | } 76 | 77 | function parseContent(str) { 78 | var tab_regex = /(\s*)(\(\(\() *(tab) *\n?([\s\S]+?)\s*(\)\)\))(\n+|$)/g 79 | 80 | var tabs = { 81 | headings: '', 82 | contents: '' 83 | } 84 | 85 | function addHeading(title) { 86 | tabs.headings += '' + 87 | '' 90 | } 91 | 92 | function addTabContents(contents) { 93 | tabs.contents += '' + 94 | '
' + 95 | contents + 96 | '
' 97 | } 98 | 99 | str.replace(tab_regex, function(raw, start, startQuote, lang, content, endQuote, end) { 100 | var heading = 'Tab Title' 101 | var rest = content 102 | 103 | if (content.substring(0, 1) == ':') 104 | { 105 | heading = content.substring(0, content.indexOf('\n')) 106 | 107 | // remove heading string from the rest of the contents 108 | rest = rest.substring(heading.length) 109 | 110 | // remove ':' from heading string 111 | if (heading.length > 0) 112 | heading = heading.substring(1).trim() 113 | } 114 | 115 | addHeading(heading) 116 | addTabContents(rest) 117 | return '' 118 | }) 119 | 120 | /* 121 | Output will be an array of objects with the following structure: 122 | 123 | { 124 | headings: '', 125 | contents: '' + 126 | '
' + 127 | '

Tab content #1

' + 128 | '
' 129 | } 130 | */ 131 | 132 | return tabs 133 | } 134 | 135 | function render(data) { 136 | if (!ignore(data)) { 137 | var idx = 0 138 | data.content = data.content.replace(regex, function(raw, start, startQuote, lang, content, endQuote, end) { 139 | var id = getId(idx) 140 | var tabs = parseContent(content) 141 | 142 | return '' + 143 | start + 144 | getMarkupInclude(id, tabs) + 145 | '{% raw %}' + 146 | getScriptInclude(id, idx++) + 147 | '{% endraw %}' + 148 | end 149 | }) 150 | } 151 | } 152 | 153 | hexo.extend.filter.register('before_post_render', render, 11) 154 | -------------------------------------------------------------------------------- /tabs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Tabs | Markdown Components 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 30 | 31 | 32 | Fork me on GitHub 33 | 34 |
35 |

Tabs | Markdown Components

36 |

Organize content in tabs on your Hexo website.

37 |
38 |
39 | 40 | 41 | 42 |
43 |
44 |

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam sed mauris sit amet dui maximus imperdiet. In feugiat vestibulum sem, ac maximus nisi euismod ac. Aliquam erat volutpat. Proin hendrerit pretium tempus. Curabitur eget laoreet massa, sit amet aliquam magna. Donec dui orci, congue in pharetra nec, convallis id velit. Quisque facilisis tincidunt urna sed condimentum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla fermentum ac enim eget suscipit. Curabitur non massa dui. Proin congue, mi non euismod imperdiet, elit leo ultrices arcu, eu ornare libero mi eget dui. Vestibulum tempus efficitur lacus, eget maximus nisi tincidunt eget. Praesent ullamcorper sollicitudin dictum. Cras quis consectetur mi. Duis sed sem et mauris convallis dignissim eu quis mauris.

45 | 46 |

Phasellus porta ac diam at semper. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum at finibus nulla. Proin ornare vulputate convallis. Donec et ultrices diam. Nulla nec dui magna. Nullam et diam non ligula pulvinar consequat sit amet vel orci. Donec laoreet nisl nec laoreet finibus. Etiam mattis faucibus ullamcorper. Donec consequat maximus elit, in varius eros. Vivamus interdum eu est quis iaculis. Sed fermentum non nisi at rhoncus. Nullam nec facilisis ante, sed imperdiet felis. Duis metus felis, placerat nec quam vitae, laoreet imperdiet leo. Mauris vel ligula tempor, lobortis libero vel, tincidunt eros. Donec efficitur nisi in nibh semper volutpat.

47 |
48 |
49 |

Second tab contents...

50 |
51 |
52 |

Third tab contents...

53 |
54 |
55 |
56 | 57 | 58 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /run-js/dist/RunJavascript.umd.min.js: -------------------------------------------------------------------------------- 1 | (function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["RunJavascript"]=n():t["RunJavascript"]=n()})("undefined"!==typeof self?self:this,function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="./",e(e.s=0)}({"+E39":function(t,n,e){t.exports=!e("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+ZMJ":function(t,n,e){var r=e("lOnJ");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"+tPU":function(t,n,e){e("xGkn");for(var r=e("7KvD"),o=e("hJx8"),i=e("/bQp"),u=e("dSzd")("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s0},show_copy_button:function(){return-1!=this.buttons.indexOf("copy")},show_run_button:function(){return-1!=this.buttons.indexOf("run")},run_fn:function run_fn(){return eval("("+this.code+")")},copy_code:function(){return this.copyPrefix+this.code+this.copySuffix}},methods:{run:function(){if("function"==typeof this.run_fn){this.text_result="",this.is_loading=!0;var t=this.run_fn,n=t.call();"object"==__WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof___default()(n)?this.text_result=JSON.stringify(n,null,2):this.text_result="string"==typeof n?n:"",this.is_loading=!1}}}}},Ibhu:function(t,n,e){var r=e("D2L2"),o=e("TcQ7"),i=e("vFc/")(!1),u=e("ax3d")("IE_PROTO");t.exports=function(t,n){var e,c=o(t),s=0,f=[];for(e in c)e!=u&&r(c,e)&&f.push(e);while(n.length>s)r(c,e=n[s++])&&(~i(f,e)||f.push(e));return f}},Kh4W:function(t,n,e){n.f=e("dSzd")},LKZe:function(t,n,e){var r=e("NpIQ"),o=e("X8DO"),i=e("TcQ7"),u=e("MmMw"),c=e("D2L2"),s=e("SfB7"),f=Object.getOwnPropertyDescriptor;n.f=e("+E39")?f:function(t,n){if(t=i(t),n=u(n,!0),s)try{return f(t,n)}catch(t){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},M6a0:function(t,n){},MU5D:function(t,n,e){var r=e("R9M2");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},MmMw:function(t,n,e){var r=e("EqjI");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},NpIQ:function(t,n){n.f={}.propertyIsEnumerable},O4g8:function(t,n){t.exports=!0},ON07:function(t,n,e){var r=e("EqjI"),o=e("7KvD").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},OYls:function(t,n,e){e("crlp")("asyncIterator")},Oy1H:function(t,n,e){var r=e("tRu9"),o=e("xah7");function i(t){return i="function"===typeof o&&"symbol"===typeof r?function(t){return typeof t}:function(t){return t&&"function"===typeof o&&t.constructor===o&&t!==o.prototype?"symbol":typeof t},i(t)}function u(n){return"function"===typeof o&&"symbol"===i(r)?t.exports=u=function(t){return i(t)}:t.exports=u=function(t){return t&&"function"===typeof o&&t.constructor===o&&t!==o.prototype?"symbol":i(t)},u(n)}t.exports=u},PzxK:function(t,n,e){var r=e("D2L2"),o=e("sB3e"),i=e("ax3d")("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},QRG4:function(t,n,e){var r=e("UuGF"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"QWe/":function(t,n,e){e("crlp")("observable")},R9M2:function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},RPLV:function(t,n,e){var r=e("7KvD").document;t.exports=r&&r.documentElement},Rrel:function(t,n,e){var r=e("TcQ7"),o=e("n0T6").f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},S82l:function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},SfB7:function(t,n,e){t.exports=!e("+E39")&&!e("S82l")(function(){return 7!=Object.defineProperty(e("ON07")("div"),"a",{get:function(){return 7}}).a})},TcQ7:function(t,n,e){var r=e("MU5D"),o=e("52gC");t.exports=function(t){return r(o(t))}},UuGF:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},X8DO:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},Xc4G:function(t,n,e){var r=e("lktj"),o=e("1kS7"),i=e("NpIQ");t.exports=function(t){var n=r(t),e=o.f;if(e){var u,c=e(t),s=i.f,f=0;while(c.length>f)s.call(t,u=c[f++])&&n.push(u)}return n}},Yobk:function(t,n,e){var r=e("77Pl"),o=e("qio6"),i=e("xnc9"),u=e("ax3d")("IE_PROTO"),c=function(){},s="prototype",f=function(){var t,n=e("ON07")("iframe"),r=i.length,o="<",u=">";n.style.display="none",e("RPLV").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),f=t.F;while(r--)delete f[s][i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[s]=r(t),e=new c,c[s]=null,e[u]=t):e=f(),void 0===n?e:o(e,n)}},ax3d:function(t,n,e){var r=e("e8AB")("keys"),o=e("3Eo+");t.exports=function(t){return r[t]||(r[t]=o(t))}},crlp:function(t,n,e){var r=e("7KvD"),o=e("FeBl"),i=e("O4g8"),u=e("Kh4W"),c=e("evD5").f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},dSzd:function(t,n,e){var r=e("e8AB")("wks"),o=e("3Eo+"),i=e("7KvD").Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},e6n0:function(t,n,e){var r=e("evD5").f,o=e("D2L2"),i=e("dSzd")("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},e8AB:function(t,n,e){var r=e("7KvD"),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},evD5:function(t,n,e){var r=e("77Pl"),o=e("SfB7"),i=e("MmMw"),u=Object.defineProperty;n.f=e("+E39")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},fWfb:function(t,n,e){"use strict";var r=e("7KvD"),o=e("D2L2"),i=e("+E39"),u=e("kM2E"),c=e("880/"),s=e("06OY").KEY,f=e("S82l"),a=e("e8AB"),l=e("e6n0"),p=e("3Eo+"),_=e("dSzd"),h=e("Kh4W"),v=e("crlp"),y=e("Xc4G"),d=e("7UMu"),b=e("77Pl"),x=e("EqjI"),m=e("TcQ7"),g=e("MmMw"),O=e("X8DO"),S=e("Yobk"),w=e("Rrel"),E=e("LKZe"),j=e("evD5"),P=e("lktj"),C=E.f,M=j.f,k=w.f,D=r.Symbol,L=r.JSON,T=L&&L.stringify,R="prototype",I=_("_hidden"),B=_("toPrimitive"),F={}.propertyIsEnumerable,A=a("symbol-registry"),N=a("symbols"),Q=a("op-symbols"),K=Object[R],G="function"==typeof D,J=r.QObject,W=!J||!J[R]||!J[R].findChild,U=i&&f(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=C(K,n);r&&delete K[n],M(t,n,e),r&&t!==K&&M(K,n,r)}:M,z=function(t){var n=N[t]=S(D[R]);return n._k=t,n},V=G&&"symbol"==typeof D.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof D},q=function(t,n,e){return t===K&&q(Q,n,e),b(t),n=g(n,!0),b(e),o(N,n)?(e.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),e=S(e,{enumerable:O(0,!1)})):(o(t,I)||M(t,I,O(1,{})),t[I][n]=!0),U(t,n,e)):M(t,n,e)},Y=function(t,n){b(t);var e,r=y(n=m(n)),o=0,i=r.length;while(i>o)q(t,e=r[o++],n[e]);return t},H=function(t,n){return void 0===n?S(t):Y(S(t),n)},X=function(t){var n=F.call(this,t=g(t,!0));return!(this===K&&o(N,t)&&!o(Q,t))&&(!(n||!o(this,t)||!o(N,t)||o(this,I)&&this[I][t])||n)},$=function(t,n){if(t=m(t),n=g(n,!0),t!==K||!o(N,n)||o(Q,n)){var e=C(t,n);return!e||!o(N,n)||o(t,I)&&t[I][n]||(e.enumerable=!0),e}},Z=function(t){var n,e=k(m(t)),r=[],i=0;while(e.length>i)o(N,n=e[i++])||n==I||n==s||r.push(n);return r},tt=function(t){var n,e=t===K,r=k(e?Q:m(t)),i=[],u=0;while(r.length>u)!o(N,n=r[u++])||e&&!o(K,n)||i.push(N[n]);return i};G||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===K&&n.call(Q,e),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),U(this,t,O(1,e))};return i&&W&&U(K,t,{configurable:!0,set:n}),z(t)},c(D[R],"toString",function(){return this._k}),E.f=$,j.f=q,e("n0T6").f=w.f=Z,e("NpIQ").f=X,e("1kS7").f=tt,i&&!e("O4g8")&&c(K,"propertyIsEnumerable",X,!0),h.f=function(t){return z(_(t))}),u(u.G+u.W+u.F*!G,{Symbol:D});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)_(nt[et++]);for(var rt=P(_.store),ot=0;rt.length>ot;)v(rt[ot++]);u(u.S+u.F*!G,"Symbol",{for:function(t){return o(A,t+="")?A[t]:A[t]=D(t)},keyFor:function(t){if(!V(t))throw TypeError(t+" is not a symbol!");for(var n in A)if(A[n]===t)return n},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!G,"Object",{create:H,defineProperty:q,defineProperties:Y,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),L&&u(u.S+u.F*(!G||f(function(){var t=D();return"[null]"!=T([t])||"{}"!=T({a:t})||"{}"!=T(Object(t))})),"JSON",{stringify:function(t){var n,e,r=[t],o=1;while(arguments.length>o)r.push(arguments[o++]);if(e=n=r[1],(x(n)||void 0!==t)&&!V(t))return d(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!V(n))return n}),r[1]=n,T.apply(L,r)}}),D[R][B]||e("hJx8")(D[R],B,D[R].valueOf),l(D,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},fkB2:function(t,n,e){var r=e("UuGF"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},h65t:function(t,n,e){var r=e("UuGF"),o=e("52gC");t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),s=r(e),f=c.length;return s<0||s>=f?t?"":void 0:(i=c.charCodeAt(s),i<55296||i>56319||s+1===f||(u=c.charCodeAt(s+1))<56320||u>57343?t?c.charAt(s):i:t?c.slice(s,s+2):u-56320+(i-55296<<10)+65536)}}},hJx8:function(t,n,e){var r=e("evD5"),o=e("X8DO");t.exports=e("+E39")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},kM2E:function(t,n,e){var r=e("7KvD"),o=e("FeBl"),i=e("+ZMJ"),u=e("hJx8"),c=e("D2L2"),s="prototype",f=function(t,n,e){var a,l,p,_=t&f.F,h=t&f.G,v=t&f.S,y=t&f.P,d=t&f.B,b=t&f.W,x=h?o:o[n]||(o[n]={}),m=x[s],g=h?r:v?r[n]:(r[n]||{})[s];for(a in h&&(e=n),e)l=!_&&g&&void 0!==g[a],l&&c(x,a)||(p=l?g[a]:e[a],x[a]=h&&"function"!=typeof g[a]?e[a]:d&&l?i(p,r):b&&g[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[s]=t[s],n}(p):y&&"function"==typeof p?i(Function.call,p):p,y&&((x.virtual||(x.virtual={}))[a]=p,t&f.R&&m&&!m[a]&&u(m,a,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},lOnJ:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},lktj:function(t,n,e){var r=e("Ibhu"),o=e("xnc9");t.exports=Object.keys||function(t){return r(t,o)}},n0T6:function(t,n,e){var r=e("Ibhu"),o=e("xnc9").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},qio6:function(t,n,e){var r=e("evD5"),o=e("77Pl"),i=e("lktj");t.exports=e("+E39")?Object.defineProperties:function(t,n){o(t);var e,u=i(n),c=u.length,s=0;while(c>s)r.f(t,e=u[s++],n[e]);return t}},sB3e:function(t,n,e){var r=e("52gC");t.exports=function(t){return Object(r(t))}},tRu9:function(t,n,e){t.exports=e("/n6Q")},"vFc/":function(t,n,e){var r=e("TcQ7"),o=e("QRG4"),i=e("fkB2");t.exports=function(t){return function(n,e,u){var c,s=r(n),f=o(s.length),a=i(u,f);if(t&&e!=e){while(f>a)if(c=s[a++],c!=c)return!0}else for(;f>a;a++)if((t||a in s)&&s[a]===e)return t||a||0;return!t&&-1}}},"vIB/":function(t,n,e){"use strict";var r=e("O4g8"),o=e("kM2E"),i=e("880/"),u=e("hJx8"),c=e("/bQp"),s=e("94VQ"),f=e("e6n0"),a=e("PzxK"),l=e("dSzd")("iterator"),p=!([].keys&&"next"in[].keys()),_="@@iterator",h="keys",v="values",y=function(){return this};t.exports=function(t,n,e,d,b,x,m){s(e,n,d);var g,O,S,w=function(t){if(!p&&t in C)return C[t];switch(t){case h:return function(){return new e(this,t)};case v:return function(){return new e(this,t)}}return function(){return new e(this,t)}},E=n+" Iterator",j=b==v,P=!1,C=t.prototype,M=C[l]||C[_]||b&&C[b],k=M||w(b),D=b?j?w("entries"):k:void 0,L="Array"==n&&C.entries||M;if(L&&(S=a(L.call(new t)),S!==Object.prototype&&S.next&&(f(S,E,!0),r||"function"==typeof S[l]||u(S,l,y))),j&&M&&M.name!==v&&(P=!0,k=function(){return M.call(this)}),r&&!m||!p&&!P&&C[l]||u(C,l,k),c[n]=k,c[E]=y,b)if(g={values:j?k:w(v),keys:x?k:w(h),entries:D},m)for(O in g)O in C||i(C,O,g[O]);else o(o.P+o.F*(p||P),n,g);return g}},vgs7:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("H/H3"),o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"relative pa3 bg-near-white br2"},[t.showButtons?e("div",{staticClass:"flex flex-row absolute top-0 right-0"},[t.show_copy_button?e("button",{staticClass:"no-select pointer f6 pv1 lh-copy ph3 white bn bg-black-20 hover-bg-blue darken-10 hint--top",class:t.show_run_button?"":"br2 br--top br--right",attrs:{type:"button","aria-label":"Copy to Clipboard","data-clipboard-text":t.copy_code}},[e("span",{staticClass:"f6 ttu b"},[t._v("Copy")])]):t._e(),t.show_run_button?e("button",{staticClass:"no-select pointer f6 pv1 lh-copy ph3 white bn bg-blue br2 br--top br--right darken-10",attrs:{type:"button"},on:{click:t.run}},[e("span",{staticClass:"f6 ttu b"},[t._v("Run")])]):t._e()]):t._e(),e("div",[e("pre",{staticClass:"f6 line-numbers"},[e("code",{ref:"code",staticClass:"db overflow-x-auto language-javascript",attrs:{spellcheck:"false"}},[t._v(t._s(t.code))])])]),t.is_loading?e("div",{staticClass:"mt3"},[e("div",{staticClass:"bb b--black-10"}),t._m(0)]):t.has_text_result?e("div",{staticClass:"mt3"},[e("div",{staticClass:"bb b--black-10"}),e("h4",{staticClass:"mt3 mb2"},[t._v("Output")]),e("div",[e("pre",{staticClass:"f6"},[e("code",{ref:"output",staticClass:"db overflow-auto language-javascript",staticStyle:{"max-height":"25rem"},attrs:{spellcheck:"false"}},[t._v(t._s(t.text_result))])])])]):t._e()])},i=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"v-mid fw6 dark-gray mt3 mb"},[e("span",{staticClass:"fa fa-spin fa-spinner"}),t._v(" Running...")])}];function u(t,n,e,r,o,i,u,c){t=t||{};var s=typeof t.default;"object"!==s&&"function"!==s||(t=t.default);var f,a="function"===typeof t?t.options:t;if(n&&(a.render=n,a.staticRenderFns=e,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId=i),u?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},a._ssrRegister=f):o&&(f=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(a.functional){a._injectStyles=f;var l=a.render;a.render=function(t,n){return f.call(n),l(t,n)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,f):[f]}return{exports:t,options:a}}var c=!1,s=null,f=null,a=null,l=u(r["a"],o,i,c,s,f,a),p=l.exports;n["default"]=p},xGkn:function(t,n,e){"use strict";var r=e("4mcu"),o=e("EGZi"),i=e("/bQp"),u=e("TcQ7");t.exports=e("vIB/")(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},xah7:function(t,n,e){t.exports=e("BwfY")},xnc9:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},zQR9:function(t,n,e){"use strict";var r=e("h65t")(!0);e("vIB/")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})}})["default"]}); 2 | //# sourceMappingURL=RunJavascript.umd.min.js.map -------------------------------------------------------------------------------- /run-js/dist/RunJavascript.common.js: -------------------------------------------------------------------------------- 1 | module.exports = 2 | /******/ (function(modules) { // webpackBootstrap 3 | /******/ // The module cache 4 | /******/ var installedModules = {}; 5 | /******/ 6 | /******/ // The require function 7 | /******/ function __webpack_require__(moduleId) { 8 | /******/ 9 | /******/ // Check if module is in cache 10 | /******/ if(installedModules[moduleId]) { 11 | /******/ return installedModules[moduleId].exports; 12 | /******/ } 13 | /******/ // Create a new module (and put it into the cache) 14 | /******/ var module = installedModules[moduleId] = { 15 | /******/ i: moduleId, 16 | /******/ l: false, 17 | /******/ exports: {} 18 | /******/ }; 19 | /******/ 20 | /******/ // Execute the module function 21 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 22 | /******/ 23 | /******/ // Flag the module as loaded 24 | /******/ module.l = true; 25 | /******/ 26 | /******/ // Return the exports of the module 27 | /******/ return module.exports; 28 | /******/ } 29 | /******/ 30 | /******/ 31 | /******/ // expose the modules object (__webpack_modules__) 32 | /******/ __webpack_require__.m = modules; 33 | /******/ 34 | /******/ // expose the module cache 35 | /******/ __webpack_require__.c = installedModules; 36 | /******/ 37 | /******/ // define getter function for harmony exports 38 | /******/ __webpack_require__.d = function(exports, name, getter) { 39 | /******/ if(!__webpack_require__.o(exports, name)) { 40 | /******/ Object.defineProperty(exports, name, { 41 | /******/ configurable: false, 42 | /******/ enumerable: true, 43 | /******/ get: getter 44 | /******/ }); 45 | /******/ } 46 | /******/ }; 47 | /******/ 48 | /******/ // getDefaultExport function for compatibility with non-harmony modules 49 | /******/ __webpack_require__.n = function(module) { 50 | /******/ var getter = module && module.__esModule ? 51 | /******/ function getDefault() { return module['default']; } : 52 | /******/ function getModuleExports() { return module; }; 53 | /******/ __webpack_require__.d(getter, 'a', getter); 54 | /******/ return getter; 55 | /******/ }; 56 | /******/ 57 | /******/ // Object.prototype.hasOwnProperty.call 58 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 59 | /******/ 60 | /******/ // __webpack_public_path__ 61 | /******/ __webpack_require__.p = "./"; 62 | /******/ 63 | /******/ // Load entry module and return exports 64 | /******/ return __webpack_require__(__webpack_require__.s = 0); 65 | /******/ }) 66 | /************************************************************************/ 67 | /******/ ({ 68 | 69 | /***/ "+E39": 70 | /***/ (function(module, exports, __webpack_require__) { 71 | 72 | // Thank's IE8 for his funny defineProperty 73 | module.exports = !__webpack_require__("S82l")(function () { 74 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 75 | }); 76 | 77 | 78 | /***/ }), 79 | 80 | /***/ "+ZMJ": 81 | /***/ (function(module, exports, __webpack_require__) { 82 | 83 | // optional / simple context binding 84 | var aFunction = __webpack_require__("lOnJ"); 85 | module.exports = function (fn, that, length) { 86 | aFunction(fn); 87 | if (that === undefined) return fn; 88 | switch (length) { 89 | case 1: return function (a) { 90 | return fn.call(that, a); 91 | }; 92 | case 2: return function (a, b) { 93 | return fn.call(that, a, b); 94 | }; 95 | case 3: return function (a, b, c) { 96 | return fn.call(that, a, b, c); 97 | }; 98 | } 99 | return function (/* ...args */) { 100 | return fn.apply(that, arguments); 101 | }; 102 | }; 103 | 104 | 105 | /***/ }), 106 | 107 | /***/ "+tPU": 108 | /***/ (function(module, exports, __webpack_require__) { 109 | 110 | __webpack_require__("xGkn"); 111 | var global = __webpack_require__("7KvD"); 112 | var hide = __webpack_require__("hJx8"); 113 | var Iterators = __webpack_require__("/bQp"); 114 | var TO_STRING_TAG = __webpack_require__("dSzd")('toStringTag'); 115 | 116 | var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 117 | 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 118 | 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 119 | 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 120 | 'TextTrackList,TouchList').split(','); 121 | 122 | for (var i = 0; i < DOMIterables.length; i++) { 123 | var NAME = DOMIterables[i]; 124 | var Collection = global[NAME]; 125 | var proto = Collection && Collection.prototype; 126 | if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 127 | Iterators[NAME] = Iterators.Array; 128 | } 129 | 130 | 131 | /***/ }), 132 | 133 | /***/ "/bQp": 134 | /***/ (function(module, exports) { 135 | 136 | module.exports = {}; 137 | 138 | 139 | /***/ }), 140 | 141 | /***/ "/n6Q": 142 | /***/ (function(module, exports, __webpack_require__) { 143 | 144 | __webpack_require__("zQR9"); 145 | __webpack_require__("+tPU"); 146 | module.exports = __webpack_require__("Kh4W").f('iterator'); 147 | 148 | 149 | /***/ }), 150 | 151 | /***/ 0: 152 | /***/ (function(module, exports, __webpack_require__) { 153 | 154 | module.exports = __webpack_require__("vgs7"); 155 | 156 | 157 | /***/ }), 158 | 159 | /***/ "06OY": 160 | /***/ (function(module, exports, __webpack_require__) { 161 | 162 | var META = __webpack_require__("3Eo+")('meta'); 163 | var isObject = __webpack_require__("EqjI"); 164 | var has = __webpack_require__("D2L2"); 165 | var setDesc = __webpack_require__("evD5").f; 166 | var id = 0; 167 | var isExtensible = Object.isExtensible || function () { 168 | return true; 169 | }; 170 | var FREEZE = !__webpack_require__("S82l")(function () { 171 | return isExtensible(Object.preventExtensions({})); 172 | }); 173 | var setMeta = function (it) { 174 | setDesc(it, META, { value: { 175 | i: 'O' + ++id, // object ID 176 | w: {} // weak collections IDs 177 | } }); 178 | }; 179 | var fastKey = function (it, create) { 180 | // return primitive with prefix 181 | if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; 182 | if (!has(it, META)) { 183 | // can't set metadata to uncaught frozen object 184 | if (!isExtensible(it)) return 'F'; 185 | // not necessary to add metadata 186 | if (!create) return 'E'; 187 | // add missing metadata 188 | setMeta(it); 189 | // return object ID 190 | } return it[META].i; 191 | }; 192 | var getWeak = function (it, create) { 193 | if (!has(it, META)) { 194 | // can't set metadata to uncaught frozen object 195 | if (!isExtensible(it)) return true; 196 | // not necessary to add metadata 197 | if (!create) return false; 198 | // add missing metadata 199 | setMeta(it); 200 | // return hash weak collections IDs 201 | } return it[META].w; 202 | }; 203 | // add metadata on freeze-family methods calling 204 | var onFreeze = function (it) { 205 | if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); 206 | return it; 207 | }; 208 | var meta = module.exports = { 209 | KEY: META, 210 | NEED: false, 211 | fastKey: fastKey, 212 | getWeak: getWeak, 213 | onFreeze: onFreeze 214 | }; 215 | 216 | 217 | /***/ }), 218 | 219 | /***/ "1kS7": 220 | /***/ (function(module, exports) { 221 | 222 | exports.f = Object.getOwnPropertySymbols; 223 | 224 | 225 | /***/ }), 226 | 227 | /***/ "3Eo+": 228 | /***/ (function(module, exports) { 229 | 230 | var id = 0; 231 | var px = Math.random(); 232 | module.exports = function (key) { 233 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 234 | }; 235 | 236 | 237 | /***/ }), 238 | 239 | /***/ "4mcu": 240 | /***/ (function(module, exports) { 241 | 242 | module.exports = function () { /* empty */ }; 243 | 244 | 245 | /***/ }), 246 | 247 | /***/ "52gC": 248 | /***/ (function(module, exports) { 249 | 250 | // 7.2.1 RequireObjectCoercible(argument) 251 | module.exports = function (it) { 252 | if (it == undefined) throw TypeError("Can't call method on " + it); 253 | return it; 254 | }; 255 | 256 | 257 | /***/ }), 258 | 259 | /***/ "77Pl": 260 | /***/ (function(module, exports, __webpack_require__) { 261 | 262 | var isObject = __webpack_require__("EqjI"); 263 | module.exports = function (it) { 264 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 265 | return it; 266 | }; 267 | 268 | 269 | /***/ }), 270 | 271 | /***/ "7KvD": 272 | /***/ (function(module, exports) { 273 | 274 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 275 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 276 | ? window : typeof self != 'undefined' && self.Math == Math ? self 277 | // eslint-disable-next-line no-new-func 278 | : Function('return this')(); 279 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 280 | 281 | 282 | /***/ }), 283 | 284 | /***/ "7UMu": 285 | /***/ (function(module, exports, __webpack_require__) { 286 | 287 | // 7.2.2 IsArray(argument) 288 | var cof = __webpack_require__("R9M2"); 289 | module.exports = Array.isArray || function isArray(arg) { 290 | return cof(arg) == 'Array'; 291 | }; 292 | 293 | 294 | /***/ }), 295 | 296 | /***/ "880/": 297 | /***/ (function(module, exports, __webpack_require__) { 298 | 299 | module.exports = __webpack_require__("hJx8"); 300 | 301 | 302 | /***/ }), 303 | 304 | /***/ "94VQ": 305 | /***/ (function(module, exports, __webpack_require__) { 306 | 307 | "use strict"; 308 | 309 | var create = __webpack_require__("Yobk"); 310 | var descriptor = __webpack_require__("X8DO"); 311 | var setToStringTag = __webpack_require__("e6n0"); 312 | var IteratorPrototype = {}; 313 | 314 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 315 | __webpack_require__("hJx8")(IteratorPrototype, __webpack_require__("dSzd")('iterator'), function () { return this; }); 316 | 317 | module.exports = function (Constructor, NAME, next) { 318 | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 319 | setToStringTag(Constructor, NAME + ' Iterator'); 320 | }; 321 | 322 | 323 | /***/ }), 324 | 325 | /***/ "BwfY": 326 | /***/ (function(module, exports, __webpack_require__) { 327 | 328 | __webpack_require__("fWfb"); 329 | __webpack_require__("M6a0"); 330 | __webpack_require__("OYls"); 331 | __webpack_require__("QWe/"); 332 | module.exports = __webpack_require__("FeBl").Symbol; 333 | 334 | 335 | /***/ }), 336 | 337 | /***/ "D2L2": 338 | /***/ (function(module, exports) { 339 | 340 | var hasOwnProperty = {}.hasOwnProperty; 341 | module.exports = function (it, key) { 342 | return hasOwnProperty.call(it, key); 343 | }; 344 | 345 | 346 | /***/ }), 347 | 348 | /***/ "EGZi": 349 | /***/ (function(module, exports) { 350 | 351 | module.exports = function (done, value) { 352 | return { value: value, done: !!done }; 353 | }; 354 | 355 | 356 | /***/ }), 357 | 358 | /***/ "EqjI": 359 | /***/ (function(module, exports) { 360 | 361 | module.exports = function (it) { 362 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 363 | }; 364 | 365 | 366 | /***/ }), 367 | 368 | /***/ "FeBl": 369 | /***/ (function(module, exports) { 370 | 371 | var core = module.exports = { version: '2.5.4' }; 372 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 373 | 374 | 375 | /***/ }), 376 | 377 | /***/ "H/H3": 378 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 379 | 380 | "use strict"; 381 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof__ = __webpack_require__("Oy1H"); 382 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof__); 383 | 384 | // 385 | // 386 | // 387 | // 388 | // 389 | // 390 | // 391 | // 392 | // 393 | // 394 | // 395 | // 396 | // 397 | // 398 | // 399 | // 400 | // 401 | // 402 | // 403 | // 404 | // 405 | // 406 | // 407 | // 408 | // 409 | // 410 | // 411 | // 412 | // 413 | // 414 | // 415 | // 416 | // 417 | // 418 | // 419 | /* harmony default export */ __webpack_exports__["a"] = ({ 420 | name: 'RunJavascript', 421 | props: { 422 | 'code': { 423 | type: String, 424 | default: '' 425 | }, 426 | 'show-buttons': { 427 | type: Boolean, 428 | default: true 429 | }, 430 | 'buttons': { 431 | type: Array, 432 | default: function _default() { 433 | return ['copy', 'run']; 434 | } 435 | }, 436 | 'copy-prefix': { 437 | type: String, 438 | default: '' 439 | }, 440 | 'copy-suffix': { 441 | type: String, 442 | default: '' 443 | } 444 | }, 445 | data: function data() { 446 | return { 447 | text_result: '', 448 | is_loading: false 449 | }; 450 | }, 451 | computed: { 452 | has_text_result: function has_text_result() { 453 | return this.text_result.length > 0; 454 | }, 455 | show_copy_button: function show_copy_button() { 456 | return this.buttons.indexOf('copy') != -1; 457 | }, 458 | show_run_button: function show_run_button() { 459 | return this.buttons.indexOf('run') != -1; 460 | }, 461 | run_fn: function run_fn() { 462 | return eval('(' + this.code + ')'); 463 | }, 464 | copy_code: function copy_code() { 465 | return this.copyPrefix + this.code + this.copySuffix; 466 | } 467 | }, 468 | methods: { 469 | run: function run() { 470 | if (typeof this.run_fn == 'function') { 471 | this.text_result = ''; 472 | this.is_loading = true; 473 | var fn = this.run_fn; 474 | var response = fn.call(); 475 | 476 | if (__WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof___default()(response) == 'object') { 477 | // response is json 478 | this.text_result = JSON.stringify(response, null, 2); 479 | } else if (typeof response == 'string') { 480 | // echo text by default 481 | this.text_result = response; 482 | } else { 483 | this.text_result = ''; 484 | } 485 | 486 | this.is_loading = false; 487 | } 488 | } 489 | } 490 | }); 491 | 492 | /***/ }), 493 | 494 | /***/ "Ibhu": 495 | /***/ (function(module, exports, __webpack_require__) { 496 | 497 | var has = __webpack_require__("D2L2"); 498 | var toIObject = __webpack_require__("TcQ7"); 499 | var arrayIndexOf = __webpack_require__("vFc/")(false); 500 | var IE_PROTO = __webpack_require__("ax3d")('IE_PROTO'); 501 | 502 | module.exports = function (object, names) { 503 | var O = toIObject(object); 504 | var i = 0; 505 | var result = []; 506 | var key; 507 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 508 | // Don't enum bug & hidden keys 509 | while (names.length > i) if (has(O, key = names[i++])) { 510 | ~arrayIndexOf(result, key) || result.push(key); 511 | } 512 | return result; 513 | }; 514 | 515 | 516 | /***/ }), 517 | 518 | /***/ "Kh4W": 519 | /***/ (function(module, exports, __webpack_require__) { 520 | 521 | exports.f = __webpack_require__("dSzd"); 522 | 523 | 524 | /***/ }), 525 | 526 | /***/ "LKZe": 527 | /***/ (function(module, exports, __webpack_require__) { 528 | 529 | var pIE = __webpack_require__("NpIQ"); 530 | var createDesc = __webpack_require__("X8DO"); 531 | var toIObject = __webpack_require__("TcQ7"); 532 | var toPrimitive = __webpack_require__("MmMw"); 533 | var has = __webpack_require__("D2L2"); 534 | var IE8_DOM_DEFINE = __webpack_require__("SfB7"); 535 | var gOPD = Object.getOwnPropertyDescriptor; 536 | 537 | exports.f = __webpack_require__("+E39") ? gOPD : function getOwnPropertyDescriptor(O, P) { 538 | O = toIObject(O); 539 | P = toPrimitive(P, true); 540 | if (IE8_DOM_DEFINE) try { 541 | return gOPD(O, P); 542 | } catch (e) { /* empty */ } 543 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 544 | }; 545 | 546 | 547 | /***/ }), 548 | 549 | /***/ "M6a0": 550 | /***/ (function(module, exports) { 551 | 552 | 553 | 554 | /***/ }), 555 | 556 | /***/ "MU5D": 557 | /***/ (function(module, exports, __webpack_require__) { 558 | 559 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 560 | var cof = __webpack_require__("R9M2"); 561 | // eslint-disable-next-line no-prototype-builtins 562 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 563 | return cof(it) == 'String' ? it.split('') : Object(it); 564 | }; 565 | 566 | 567 | /***/ }), 568 | 569 | /***/ "MmMw": 570 | /***/ (function(module, exports, __webpack_require__) { 571 | 572 | // 7.1.1 ToPrimitive(input [, PreferredType]) 573 | var isObject = __webpack_require__("EqjI"); 574 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 575 | // and the second argument - flag - preferred type is a string 576 | module.exports = function (it, S) { 577 | if (!isObject(it)) return it; 578 | var fn, val; 579 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 580 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 581 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 582 | throw TypeError("Can't convert object to primitive value"); 583 | }; 584 | 585 | 586 | /***/ }), 587 | 588 | /***/ "NpIQ": 589 | /***/ (function(module, exports) { 590 | 591 | exports.f = {}.propertyIsEnumerable; 592 | 593 | 594 | /***/ }), 595 | 596 | /***/ "O4g8": 597 | /***/ (function(module, exports) { 598 | 599 | module.exports = true; 600 | 601 | 602 | /***/ }), 603 | 604 | /***/ "ON07": 605 | /***/ (function(module, exports, __webpack_require__) { 606 | 607 | var isObject = __webpack_require__("EqjI"); 608 | var document = __webpack_require__("7KvD").document; 609 | // typeof document.createElement is 'object' in old IE 610 | var is = isObject(document) && isObject(document.createElement); 611 | module.exports = function (it) { 612 | return is ? document.createElement(it) : {}; 613 | }; 614 | 615 | 616 | /***/ }), 617 | 618 | /***/ "OYls": 619 | /***/ (function(module, exports, __webpack_require__) { 620 | 621 | __webpack_require__("crlp")('asyncIterator'); 622 | 623 | 624 | /***/ }), 625 | 626 | /***/ "Oy1H": 627 | /***/ (function(module, exports, __webpack_require__) { 628 | 629 | var _Symbol$iterator = __webpack_require__("tRu9"); 630 | 631 | var _Symbol = __webpack_require__("xah7"); 632 | 633 | function _typeof2(obj) { if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); } 634 | 635 | function _typeof(obj) { 636 | if (typeof _Symbol === "function" && _typeof2(_Symbol$iterator) === "symbol") { 637 | module.exports = _typeof = function _typeof(obj) { 638 | return _typeof2(obj); 639 | }; 640 | } else { 641 | module.exports = _typeof = function _typeof(obj) { 642 | return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : _typeof2(obj); 643 | }; 644 | } 645 | 646 | return _typeof(obj); 647 | } 648 | 649 | module.exports = _typeof; 650 | 651 | /***/ }), 652 | 653 | /***/ "PzxK": 654 | /***/ (function(module, exports, __webpack_require__) { 655 | 656 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 657 | var has = __webpack_require__("D2L2"); 658 | var toObject = __webpack_require__("sB3e"); 659 | var IE_PROTO = __webpack_require__("ax3d")('IE_PROTO'); 660 | var ObjectProto = Object.prototype; 661 | 662 | module.exports = Object.getPrototypeOf || function (O) { 663 | O = toObject(O); 664 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 665 | if (typeof O.constructor == 'function' && O instanceof O.constructor) { 666 | return O.constructor.prototype; 667 | } return O instanceof Object ? ObjectProto : null; 668 | }; 669 | 670 | 671 | /***/ }), 672 | 673 | /***/ "QRG4": 674 | /***/ (function(module, exports, __webpack_require__) { 675 | 676 | // 7.1.15 ToLength 677 | var toInteger = __webpack_require__("UuGF"); 678 | var min = Math.min; 679 | module.exports = function (it) { 680 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 681 | }; 682 | 683 | 684 | /***/ }), 685 | 686 | /***/ "QWe/": 687 | /***/ (function(module, exports, __webpack_require__) { 688 | 689 | __webpack_require__("crlp")('observable'); 690 | 691 | 692 | /***/ }), 693 | 694 | /***/ "R9M2": 695 | /***/ (function(module, exports) { 696 | 697 | var toString = {}.toString; 698 | 699 | module.exports = function (it) { 700 | return toString.call(it).slice(8, -1); 701 | }; 702 | 703 | 704 | /***/ }), 705 | 706 | /***/ "RPLV": 707 | /***/ (function(module, exports, __webpack_require__) { 708 | 709 | var document = __webpack_require__("7KvD").document; 710 | module.exports = document && document.documentElement; 711 | 712 | 713 | /***/ }), 714 | 715 | /***/ "Rrel": 716 | /***/ (function(module, exports, __webpack_require__) { 717 | 718 | // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window 719 | var toIObject = __webpack_require__("TcQ7"); 720 | var gOPN = __webpack_require__("n0T6").f; 721 | var toString = {}.toString; 722 | 723 | var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames 724 | ? Object.getOwnPropertyNames(window) : []; 725 | 726 | var getWindowNames = function (it) { 727 | try { 728 | return gOPN(it); 729 | } catch (e) { 730 | return windowNames.slice(); 731 | } 732 | }; 733 | 734 | module.exports.f = function getOwnPropertyNames(it) { 735 | return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); 736 | }; 737 | 738 | 739 | /***/ }), 740 | 741 | /***/ "S82l": 742 | /***/ (function(module, exports) { 743 | 744 | module.exports = function (exec) { 745 | try { 746 | return !!exec(); 747 | } catch (e) { 748 | return true; 749 | } 750 | }; 751 | 752 | 753 | /***/ }), 754 | 755 | /***/ "SfB7": 756 | /***/ (function(module, exports, __webpack_require__) { 757 | 758 | module.exports = !__webpack_require__("+E39") && !__webpack_require__("S82l")(function () { 759 | return Object.defineProperty(__webpack_require__("ON07")('div'), 'a', { get: function () { return 7; } }).a != 7; 760 | }); 761 | 762 | 763 | /***/ }), 764 | 765 | /***/ "TcQ7": 766 | /***/ (function(module, exports, __webpack_require__) { 767 | 768 | // to indexed object, toObject with fallback for non-array-like ES3 strings 769 | var IObject = __webpack_require__("MU5D"); 770 | var defined = __webpack_require__("52gC"); 771 | module.exports = function (it) { 772 | return IObject(defined(it)); 773 | }; 774 | 775 | 776 | /***/ }), 777 | 778 | /***/ "UuGF": 779 | /***/ (function(module, exports) { 780 | 781 | // 7.1.4 ToInteger 782 | var ceil = Math.ceil; 783 | var floor = Math.floor; 784 | module.exports = function (it) { 785 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 786 | }; 787 | 788 | 789 | /***/ }), 790 | 791 | /***/ "X8DO": 792 | /***/ (function(module, exports) { 793 | 794 | module.exports = function (bitmap, value) { 795 | return { 796 | enumerable: !(bitmap & 1), 797 | configurable: !(bitmap & 2), 798 | writable: !(bitmap & 4), 799 | value: value 800 | }; 801 | }; 802 | 803 | 804 | /***/ }), 805 | 806 | /***/ "Xc4G": 807 | /***/ (function(module, exports, __webpack_require__) { 808 | 809 | // all enumerable object keys, includes symbols 810 | var getKeys = __webpack_require__("lktj"); 811 | var gOPS = __webpack_require__("1kS7"); 812 | var pIE = __webpack_require__("NpIQ"); 813 | module.exports = function (it) { 814 | var result = getKeys(it); 815 | var getSymbols = gOPS.f; 816 | if (getSymbols) { 817 | var symbols = getSymbols(it); 818 | var isEnum = pIE.f; 819 | var i = 0; 820 | var key; 821 | while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); 822 | } return result; 823 | }; 824 | 825 | 826 | /***/ }), 827 | 828 | /***/ "Yobk": 829 | /***/ (function(module, exports, __webpack_require__) { 830 | 831 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 832 | var anObject = __webpack_require__("77Pl"); 833 | var dPs = __webpack_require__("qio6"); 834 | var enumBugKeys = __webpack_require__("xnc9"); 835 | var IE_PROTO = __webpack_require__("ax3d")('IE_PROTO'); 836 | var Empty = function () { /* empty */ }; 837 | var PROTOTYPE = 'prototype'; 838 | 839 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 840 | var createDict = function () { 841 | // Thrash, waste and sodomy: IE GC bug 842 | var iframe = __webpack_require__("ON07")('iframe'); 843 | var i = enumBugKeys.length; 844 | var lt = '<'; 845 | var gt = '>'; 846 | var iframeDocument; 847 | iframe.style.display = 'none'; 848 | __webpack_require__("RPLV").appendChild(iframe); 849 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 850 | // createDict = iframe.contentWindow.Object; 851 | // html.removeChild(iframe); 852 | iframeDocument = iframe.contentWindow.document; 853 | iframeDocument.open(); 854 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 855 | iframeDocument.close(); 856 | createDict = iframeDocument.F; 857 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 858 | return createDict(); 859 | }; 860 | 861 | module.exports = Object.create || function create(O, Properties) { 862 | var result; 863 | if (O !== null) { 864 | Empty[PROTOTYPE] = anObject(O); 865 | result = new Empty(); 866 | Empty[PROTOTYPE] = null; 867 | // add "__proto__" for Object.getPrototypeOf polyfill 868 | result[IE_PROTO] = O; 869 | } else result = createDict(); 870 | return Properties === undefined ? result : dPs(result, Properties); 871 | }; 872 | 873 | 874 | /***/ }), 875 | 876 | /***/ "ax3d": 877 | /***/ (function(module, exports, __webpack_require__) { 878 | 879 | var shared = __webpack_require__("e8AB")('keys'); 880 | var uid = __webpack_require__("3Eo+"); 881 | module.exports = function (key) { 882 | return shared[key] || (shared[key] = uid(key)); 883 | }; 884 | 885 | 886 | /***/ }), 887 | 888 | /***/ "crlp": 889 | /***/ (function(module, exports, __webpack_require__) { 890 | 891 | var global = __webpack_require__("7KvD"); 892 | var core = __webpack_require__("FeBl"); 893 | var LIBRARY = __webpack_require__("O4g8"); 894 | var wksExt = __webpack_require__("Kh4W"); 895 | var defineProperty = __webpack_require__("evD5").f; 896 | module.exports = function (name) { 897 | var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 898 | if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); 899 | }; 900 | 901 | 902 | /***/ }), 903 | 904 | /***/ "dSzd": 905 | /***/ (function(module, exports, __webpack_require__) { 906 | 907 | var store = __webpack_require__("e8AB")('wks'); 908 | var uid = __webpack_require__("3Eo+"); 909 | var Symbol = __webpack_require__("7KvD").Symbol; 910 | var USE_SYMBOL = typeof Symbol == 'function'; 911 | 912 | var $exports = module.exports = function (name) { 913 | return store[name] || (store[name] = 914 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 915 | }; 916 | 917 | $exports.store = store; 918 | 919 | 920 | /***/ }), 921 | 922 | /***/ "e6n0": 923 | /***/ (function(module, exports, __webpack_require__) { 924 | 925 | var def = __webpack_require__("evD5").f; 926 | var has = __webpack_require__("D2L2"); 927 | var TAG = __webpack_require__("dSzd")('toStringTag'); 928 | 929 | module.exports = function (it, tag, stat) { 930 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 931 | }; 932 | 933 | 934 | /***/ }), 935 | 936 | /***/ "e8AB": 937 | /***/ (function(module, exports, __webpack_require__) { 938 | 939 | var global = __webpack_require__("7KvD"); 940 | var SHARED = '__core-js_shared__'; 941 | var store = global[SHARED] || (global[SHARED] = {}); 942 | module.exports = function (key) { 943 | return store[key] || (store[key] = {}); 944 | }; 945 | 946 | 947 | /***/ }), 948 | 949 | /***/ "evD5": 950 | /***/ (function(module, exports, __webpack_require__) { 951 | 952 | var anObject = __webpack_require__("77Pl"); 953 | var IE8_DOM_DEFINE = __webpack_require__("SfB7"); 954 | var toPrimitive = __webpack_require__("MmMw"); 955 | var dP = Object.defineProperty; 956 | 957 | exports.f = __webpack_require__("+E39") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 958 | anObject(O); 959 | P = toPrimitive(P, true); 960 | anObject(Attributes); 961 | if (IE8_DOM_DEFINE) try { 962 | return dP(O, P, Attributes); 963 | } catch (e) { /* empty */ } 964 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 965 | if ('value' in Attributes) O[P] = Attributes.value; 966 | return O; 967 | }; 968 | 969 | 970 | /***/ }), 971 | 972 | /***/ "fWfb": 973 | /***/ (function(module, exports, __webpack_require__) { 974 | 975 | "use strict"; 976 | 977 | // ECMAScript 6 symbols shim 978 | var global = __webpack_require__("7KvD"); 979 | var has = __webpack_require__("D2L2"); 980 | var DESCRIPTORS = __webpack_require__("+E39"); 981 | var $export = __webpack_require__("kM2E"); 982 | var redefine = __webpack_require__("880/"); 983 | var META = __webpack_require__("06OY").KEY; 984 | var $fails = __webpack_require__("S82l"); 985 | var shared = __webpack_require__("e8AB"); 986 | var setToStringTag = __webpack_require__("e6n0"); 987 | var uid = __webpack_require__("3Eo+"); 988 | var wks = __webpack_require__("dSzd"); 989 | var wksExt = __webpack_require__("Kh4W"); 990 | var wksDefine = __webpack_require__("crlp"); 991 | var enumKeys = __webpack_require__("Xc4G"); 992 | var isArray = __webpack_require__("7UMu"); 993 | var anObject = __webpack_require__("77Pl"); 994 | var isObject = __webpack_require__("EqjI"); 995 | var toIObject = __webpack_require__("TcQ7"); 996 | var toPrimitive = __webpack_require__("MmMw"); 997 | var createDesc = __webpack_require__("X8DO"); 998 | var _create = __webpack_require__("Yobk"); 999 | var gOPNExt = __webpack_require__("Rrel"); 1000 | var $GOPD = __webpack_require__("LKZe"); 1001 | var $DP = __webpack_require__("evD5"); 1002 | var $keys = __webpack_require__("lktj"); 1003 | var gOPD = $GOPD.f; 1004 | var dP = $DP.f; 1005 | var gOPN = gOPNExt.f; 1006 | var $Symbol = global.Symbol; 1007 | var $JSON = global.JSON; 1008 | var _stringify = $JSON && $JSON.stringify; 1009 | var PROTOTYPE = 'prototype'; 1010 | var HIDDEN = wks('_hidden'); 1011 | var TO_PRIMITIVE = wks('toPrimitive'); 1012 | var isEnum = {}.propertyIsEnumerable; 1013 | var SymbolRegistry = shared('symbol-registry'); 1014 | var AllSymbols = shared('symbols'); 1015 | var OPSymbols = shared('op-symbols'); 1016 | var ObjectProto = Object[PROTOTYPE]; 1017 | var USE_NATIVE = typeof $Symbol == 'function'; 1018 | var QObject = global.QObject; 1019 | // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 1020 | var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; 1021 | 1022 | // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 1023 | var setSymbolDesc = DESCRIPTORS && $fails(function () { 1024 | return _create(dP({}, 'a', { 1025 | get: function () { return dP(this, 'a', { value: 7 }).a; } 1026 | })).a != 7; 1027 | }) ? function (it, key, D) { 1028 | var protoDesc = gOPD(ObjectProto, key); 1029 | if (protoDesc) delete ObjectProto[key]; 1030 | dP(it, key, D); 1031 | if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); 1032 | } : dP; 1033 | 1034 | var wrap = function (tag) { 1035 | var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); 1036 | sym._k = tag; 1037 | return sym; 1038 | }; 1039 | 1040 | var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { 1041 | return typeof it == 'symbol'; 1042 | } : function (it) { 1043 | return it instanceof $Symbol; 1044 | }; 1045 | 1046 | var $defineProperty = function defineProperty(it, key, D) { 1047 | if (it === ObjectProto) $defineProperty(OPSymbols, key, D); 1048 | anObject(it); 1049 | key = toPrimitive(key, true); 1050 | anObject(D); 1051 | if (has(AllSymbols, key)) { 1052 | if (!D.enumerable) { 1053 | if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); 1054 | it[HIDDEN][key] = true; 1055 | } else { 1056 | if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; 1057 | D = _create(D, { enumerable: createDesc(0, false) }); 1058 | } return setSymbolDesc(it, key, D); 1059 | } return dP(it, key, D); 1060 | }; 1061 | var $defineProperties = function defineProperties(it, P) { 1062 | anObject(it); 1063 | var keys = enumKeys(P = toIObject(P)); 1064 | var i = 0; 1065 | var l = keys.length; 1066 | var key; 1067 | while (l > i) $defineProperty(it, key = keys[i++], P[key]); 1068 | return it; 1069 | }; 1070 | var $create = function create(it, P) { 1071 | return P === undefined ? _create(it) : $defineProperties(_create(it), P); 1072 | }; 1073 | var $propertyIsEnumerable = function propertyIsEnumerable(key) { 1074 | var E = isEnum.call(this, key = toPrimitive(key, true)); 1075 | if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; 1076 | return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; 1077 | }; 1078 | var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { 1079 | it = toIObject(it); 1080 | key = toPrimitive(key, true); 1081 | if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; 1082 | var D = gOPD(it, key); 1083 | if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; 1084 | return D; 1085 | }; 1086 | var $getOwnPropertyNames = function getOwnPropertyNames(it) { 1087 | var names = gOPN(toIObject(it)); 1088 | var result = []; 1089 | var i = 0; 1090 | var key; 1091 | while (names.length > i) { 1092 | if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); 1093 | } return result; 1094 | }; 1095 | var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { 1096 | var IS_OP = it === ObjectProto; 1097 | var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); 1098 | var result = []; 1099 | var i = 0; 1100 | var key; 1101 | while (names.length > i) { 1102 | if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); 1103 | } return result; 1104 | }; 1105 | 1106 | // 19.4.1.1 Symbol([description]) 1107 | if (!USE_NATIVE) { 1108 | $Symbol = function Symbol() { 1109 | if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); 1110 | var tag = uid(arguments.length > 0 ? arguments[0] : undefined); 1111 | var $set = function (value) { 1112 | if (this === ObjectProto) $set.call(OPSymbols, value); 1113 | if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; 1114 | setSymbolDesc(this, tag, createDesc(1, value)); 1115 | }; 1116 | if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); 1117 | return wrap(tag); 1118 | }; 1119 | redefine($Symbol[PROTOTYPE], 'toString', function toString() { 1120 | return this._k; 1121 | }); 1122 | 1123 | $GOPD.f = $getOwnPropertyDescriptor; 1124 | $DP.f = $defineProperty; 1125 | __webpack_require__("n0T6").f = gOPNExt.f = $getOwnPropertyNames; 1126 | __webpack_require__("NpIQ").f = $propertyIsEnumerable; 1127 | __webpack_require__("1kS7").f = $getOwnPropertySymbols; 1128 | 1129 | if (DESCRIPTORS && !__webpack_require__("O4g8")) { 1130 | redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); 1131 | } 1132 | 1133 | wksExt.f = function (name) { 1134 | return wrap(wks(name)); 1135 | }; 1136 | } 1137 | 1138 | $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); 1139 | 1140 | for (var es6Symbols = ( 1141 | // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 1142 | 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' 1143 | ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); 1144 | 1145 | for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); 1146 | 1147 | $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { 1148 | // 19.4.2.1 Symbol.for(key) 1149 | 'for': function (key) { 1150 | return has(SymbolRegistry, key += '') 1151 | ? SymbolRegistry[key] 1152 | : SymbolRegistry[key] = $Symbol(key); 1153 | }, 1154 | // 19.4.2.5 Symbol.keyFor(sym) 1155 | keyFor: function keyFor(sym) { 1156 | if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); 1157 | for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; 1158 | }, 1159 | useSetter: function () { setter = true; }, 1160 | useSimple: function () { setter = false; } 1161 | }); 1162 | 1163 | $export($export.S + $export.F * !USE_NATIVE, 'Object', { 1164 | // 19.1.2.2 Object.create(O [, Properties]) 1165 | create: $create, 1166 | // 19.1.2.4 Object.defineProperty(O, P, Attributes) 1167 | defineProperty: $defineProperty, 1168 | // 19.1.2.3 Object.defineProperties(O, Properties) 1169 | defineProperties: $defineProperties, 1170 | // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) 1171 | getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 1172 | // 19.1.2.7 Object.getOwnPropertyNames(O) 1173 | getOwnPropertyNames: $getOwnPropertyNames, 1174 | // 19.1.2.8 Object.getOwnPropertySymbols(O) 1175 | getOwnPropertySymbols: $getOwnPropertySymbols 1176 | }); 1177 | 1178 | // 24.3.2 JSON.stringify(value [, replacer [, space]]) 1179 | $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { 1180 | var S = $Symbol(); 1181 | // MS Edge converts symbol values to JSON as {} 1182 | // WebKit converts symbol values to JSON as null 1183 | // V8 throws on boxed symbols 1184 | return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; 1185 | })), 'JSON', { 1186 | stringify: function stringify(it) { 1187 | var args = [it]; 1188 | var i = 1; 1189 | var replacer, $replacer; 1190 | while (arguments.length > i) args.push(arguments[i++]); 1191 | $replacer = replacer = args[1]; 1192 | if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined 1193 | if (!isArray(replacer)) replacer = function (key, value) { 1194 | if (typeof $replacer == 'function') value = $replacer.call(this, key, value); 1195 | if (!isSymbol(value)) return value; 1196 | }; 1197 | args[1] = replacer; 1198 | return _stringify.apply($JSON, args); 1199 | } 1200 | }); 1201 | 1202 | // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) 1203 | $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__("hJx8")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); 1204 | // 19.4.3.5 Symbol.prototype[@@toStringTag] 1205 | setToStringTag($Symbol, 'Symbol'); 1206 | // 20.2.1.9 Math[@@toStringTag] 1207 | setToStringTag(Math, 'Math', true); 1208 | // 24.3.3 JSON[@@toStringTag] 1209 | setToStringTag(global.JSON, 'JSON', true); 1210 | 1211 | 1212 | /***/ }), 1213 | 1214 | /***/ "fkB2": 1215 | /***/ (function(module, exports, __webpack_require__) { 1216 | 1217 | var toInteger = __webpack_require__("UuGF"); 1218 | var max = Math.max; 1219 | var min = Math.min; 1220 | module.exports = function (index, length) { 1221 | index = toInteger(index); 1222 | return index < 0 ? max(index + length, 0) : min(index, length); 1223 | }; 1224 | 1225 | 1226 | /***/ }), 1227 | 1228 | /***/ "h65t": 1229 | /***/ (function(module, exports, __webpack_require__) { 1230 | 1231 | var toInteger = __webpack_require__("UuGF"); 1232 | var defined = __webpack_require__("52gC"); 1233 | // true -> String#at 1234 | // false -> String#codePointAt 1235 | module.exports = function (TO_STRING) { 1236 | return function (that, pos) { 1237 | var s = String(defined(that)); 1238 | var i = toInteger(pos); 1239 | var l = s.length; 1240 | var a, b; 1241 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 1242 | a = s.charCodeAt(i); 1243 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 1244 | ? TO_STRING ? s.charAt(i) : a 1245 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 1246 | }; 1247 | }; 1248 | 1249 | 1250 | /***/ }), 1251 | 1252 | /***/ "hJx8": 1253 | /***/ (function(module, exports, __webpack_require__) { 1254 | 1255 | var dP = __webpack_require__("evD5"); 1256 | var createDesc = __webpack_require__("X8DO"); 1257 | module.exports = __webpack_require__("+E39") ? function (object, key, value) { 1258 | return dP.f(object, key, createDesc(1, value)); 1259 | } : function (object, key, value) { 1260 | object[key] = value; 1261 | return object; 1262 | }; 1263 | 1264 | 1265 | /***/ }), 1266 | 1267 | /***/ "kM2E": 1268 | /***/ (function(module, exports, __webpack_require__) { 1269 | 1270 | var global = __webpack_require__("7KvD"); 1271 | var core = __webpack_require__("FeBl"); 1272 | var ctx = __webpack_require__("+ZMJ"); 1273 | var hide = __webpack_require__("hJx8"); 1274 | var has = __webpack_require__("D2L2"); 1275 | var PROTOTYPE = 'prototype'; 1276 | 1277 | var $export = function (type, name, source) { 1278 | var IS_FORCED = type & $export.F; 1279 | var IS_GLOBAL = type & $export.G; 1280 | var IS_STATIC = type & $export.S; 1281 | var IS_PROTO = type & $export.P; 1282 | var IS_BIND = type & $export.B; 1283 | var IS_WRAP = type & $export.W; 1284 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 1285 | var expProto = exports[PROTOTYPE]; 1286 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; 1287 | var key, own, out; 1288 | if (IS_GLOBAL) source = name; 1289 | for (key in source) { 1290 | // contains in native 1291 | own = !IS_FORCED && target && target[key] !== undefined; 1292 | if (own && has(exports, key)) continue; 1293 | // export native or passed 1294 | out = own ? target[key] : source[key]; 1295 | // prevent global pollution for namespaces 1296 | exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 1297 | // bind timers to global for call from export context 1298 | : IS_BIND && own ? ctx(out, global) 1299 | // wrap global constructors for prevent change them in library 1300 | : IS_WRAP && target[key] == out ? (function (C) { 1301 | var F = function (a, b, c) { 1302 | if (this instanceof C) { 1303 | switch (arguments.length) { 1304 | case 0: return new C(); 1305 | case 1: return new C(a); 1306 | case 2: return new C(a, b); 1307 | } return new C(a, b, c); 1308 | } return C.apply(this, arguments); 1309 | }; 1310 | F[PROTOTYPE] = C[PROTOTYPE]; 1311 | return F; 1312 | // make static versions for prototype methods 1313 | })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 1314 | // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 1315 | if (IS_PROTO) { 1316 | (exports.virtual || (exports.virtual = {}))[key] = out; 1317 | // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 1318 | if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); 1319 | } 1320 | } 1321 | }; 1322 | // type bitmap 1323 | $export.F = 1; // forced 1324 | $export.G = 2; // global 1325 | $export.S = 4; // static 1326 | $export.P = 8; // proto 1327 | $export.B = 16; // bind 1328 | $export.W = 32; // wrap 1329 | $export.U = 64; // safe 1330 | $export.R = 128; // real proto method for `library` 1331 | module.exports = $export; 1332 | 1333 | 1334 | /***/ }), 1335 | 1336 | /***/ "lOnJ": 1337 | /***/ (function(module, exports) { 1338 | 1339 | module.exports = function (it) { 1340 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1341 | return it; 1342 | }; 1343 | 1344 | 1345 | /***/ }), 1346 | 1347 | /***/ "lktj": 1348 | /***/ (function(module, exports, __webpack_require__) { 1349 | 1350 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1351 | var $keys = __webpack_require__("Ibhu"); 1352 | var enumBugKeys = __webpack_require__("xnc9"); 1353 | 1354 | module.exports = Object.keys || function keys(O) { 1355 | return $keys(O, enumBugKeys); 1356 | }; 1357 | 1358 | 1359 | /***/ }), 1360 | 1361 | /***/ "n0T6": 1362 | /***/ (function(module, exports, __webpack_require__) { 1363 | 1364 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 1365 | var $keys = __webpack_require__("Ibhu"); 1366 | var hiddenKeys = __webpack_require__("xnc9").concat('length', 'prototype'); 1367 | 1368 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 1369 | return $keys(O, hiddenKeys); 1370 | }; 1371 | 1372 | 1373 | /***/ }), 1374 | 1375 | /***/ "qio6": 1376 | /***/ (function(module, exports, __webpack_require__) { 1377 | 1378 | var dP = __webpack_require__("evD5"); 1379 | var anObject = __webpack_require__("77Pl"); 1380 | var getKeys = __webpack_require__("lktj"); 1381 | 1382 | module.exports = __webpack_require__("+E39") ? Object.defineProperties : function defineProperties(O, Properties) { 1383 | anObject(O); 1384 | var keys = getKeys(Properties); 1385 | var length = keys.length; 1386 | var i = 0; 1387 | var P; 1388 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 1389 | return O; 1390 | }; 1391 | 1392 | 1393 | /***/ }), 1394 | 1395 | /***/ "sB3e": 1396 | /***/ (function(module, exports, __webpack_require__) { 1397 | 1398 | // 7.1.13 ToObject(argument) 1399 | var defined = __webpack_require__("52gC"); 1400 | module.exports = function (it) { 1401 | return Object(defined(it)); 1402 | }; 1403 | 1404 | 1405 | /***/ }), 1406 | 1407 | /***/ "tRu9": 1408 | /***/ (function(module, exports, __webpack_require__) { 1409 | 1410 | module.exports = __webpack_require__("/n6Q"); 1411 | 1412 | /***/ }), 1413 | 1414 | /***/ "vFc/": 1415 | /***/ (function(module, exports, __webpack_require__) { 1416 | 1417 | // false -> Array#indexOf 1418 | // true -> Array#includes 1419 | var toIObject = __webpack_require__("TcQ7"); 1420 | var toLength = __webpack_require__("QRG4"); 1421 | var toAbsoluteIndex = __webpack_require__("fkB2"); 1422 | module.exports = function (IS_INCLUDES) { 1423 | return function ($this, el, fromIndex) { 1424 | var O = toIObject($this); 1425 | var length = toLength(O.length); 1426 | var index = toAbsoluteIndex(fromIndex, length); 1427 | var value; 1428 | // Array#includes uses SameValueZero equality algorithm 1429 | // eslint-disable-next-line no-self-compare 1430 | if (IS_INCLUDES && el != el) while (length > index) { 1431 | value = O[index++]; 1432 | // eslint-disable-next-line no-self-compare 1433 | if (value != value) return true; 1434 | // Array#indexOf ignores holes, Array#includes - not 1435 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 1436 | if (O[index] === el) return IS_INCLUDES || index || 0; 1437 | } return !IS_INCLUDES && -1; 1438 | }; 1439 | }; 1440 | 1441 | 1442 | /***/ }), 1443 | 1444 | /***/ "vIB/": 1445 | /***/ (function(module, exports, __webpack_require__) { 1446 | 1447 | "use strict"; 1448 | 1449 | var LIBRARY = __webpack_require__("O4g8"); 1450 | var $export = __webpack_require__("kM2E"); 1451 | var redefine = __webpack_require__("880/"); 1452 | var hide = __webpack_require__("hJx8"); 1453 | var Iterators = __webpack_require__("/bQp"); 1454 | var $iterCreate = __webpack_require__("94VQ"); 1455 | var setToStringTag = __webpack_require__("e6n0"); 1456 | var getPrototypeOf = __webpack_require__("PzxK"); 1457 | var ITERATOR = __webpack_require__("dSzd")('iterator'); 1458 | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 1459 | var FF_ITERATOR = '@@iterator'; 1460 | var KEYS = 'keys'; 1461 | var VALUES = 'values'; 1462 | 1463 | var returnThis = function () { return this; }; 1464 | 1465 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 1466 | $iterCreate(Constructor, NAME, next); 1467 | var getMethod = function (kind) { 1468 | if (!BUGGY && kind in proto) return proto[kind]; 1469 | switch (kind) { 1470 | case KEYS: return function keys() { return new Constructor(this, kind); }; 1471 | case VALUES: return function values() { return new Constructor(this, kind); }; 1472 | } return function entries() { return new Constructor(this, kind); }; 1473 | }; 1474 | var TAG = NAME + ' Iterator'; 1475 | var DEF_VALUES = DEFAULT == VALUES; 1476 | var VALUES_BUG = false; 1477 | var proto = Base.prototype; 1478 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 1479 | var $default = $native || getMethod(DEFAULT); 1480 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 1481 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 1482 | var methods, key, IteratorPrototype; 1483 | // Fix native 1484 | if ($anyNative) { 1485 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 1486 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 1487 | // Set @@toStringTag to native iterators 1488 | setToStringTag(IteratorPrototype, TAG, true); 1489 | // fix for some old engines 1490 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 1491 | } 1492 | } 1493 | // fix Array#{values, @@iterator}.name in V8 / FF 1494 | if (DEF_VALUES && $native && $native.name !== VALUES) { 1495 | VALUES_BUG = true; 1496 | $default = function values() { return $native.call(this); }; 1497 | } 1498 | // Define iterator 1499 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 1500 | hide(proto, ITERATOR, $default); 1501 | } 1502 | // Plug for library 1503 | Iterators[NAME] = $default; 1504 | Iterators[TAG] = returnThis; 1505 | if (DEFAULT) { 1506 | methods = { 1507 | values: DEF_VALUES ? $default : getMethod(VALUES), 1508 | keys: IS_SET ? $default : getMethod(KEYS), 1509 | entries: $entries 1510 | }; 1511 | if (FORCED) for (key in methods) { 1512 | if (!(key in proto)) redefine(proto, key, methods[key]); 1513 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 1514 | } 1515 | return methods; 1516 | }; 1517 | 1518 | 1519 | /***/ }), 1520 | 1521 | /***/ "vgs7": 1522 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1523 | 1524 | "use strict"; 1525 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 1526 | 1527 | // EXTERNAL MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"C://src//markdown-components//runjs//node_modules//.cache//cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/RunJavascript.vue 1528 | var RunJavascript = __webpack_require__("H/H3"); 1529 | 1530 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-17e2d56a","hasScoped":false,"optionsId":"0","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/RunJavascript.vue 1531 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"relative pa3 bg-near-white br2"},[(_vm.showButtons)?_c('div',{staticClass:"flex flex-row absolute top-0 right-0"},[(_vm.show_copy_button)?_c('button',{staticClass:"no-select pointer f6 pv1 lh-copy ph3 white bn bg-black-20 hover-bg-blue darken-10 hint--top",class:_vm.show_run_button ? '' : 'br2 br--top br--right',attrs:{"type":"button","aria-label":"Copy to Clipboard","data-clipboard-text":_vm.copy_code}},[_c('span',{staticClass:"f6 ttu b"},[_vm._v("Copy")])]):_vm._e(),(_vm.show_run_button)?_c('button',{staticClass:"no-select pointer f6 pv1 lh-copy ph3 white bn bg-blue br2 br--top br--right darken-10",attrs:{"type":"button"},on:{"click":_vm.run}},[_c('span',{staticClass:"f6 ttu b"},[_vm._v("Run")])]):_vm._e()]):_vm._e(),_c('div',[_c('pre',{staticClass:"f6 line-numbers"},[_c('code',{ref:"code",staticClass:"db overflow-x-auto language-javascript",attrs:{"spellcheck":"false"}},[_vm._v(_vm._s(_vm.code))])])]),(_vm.is_loading)?_c('div',{staticClass:"mt3"},[_c('div',{staticClass:"bb b--black-10"}),_vm._m(0)]):(_vm.has_text_result)?_c('div',{staticClass:"mt3"},[_c('div',{staticClass:"bb b--black-10"}),_c('h4',{staticClass:"mt3 mb2"},[_vm._v("Output")]),_c('div',[_c('pre',{staticClass:"f6"},[_c('code',{ref:"output",staticClass:"db overflow-auto language-javascript",staticStyle:{"max-height":"25rem"},attrs:{"spellcheck":"false"}},[_vm._v(_vm._s(_vm.text_result))])])])]):_vm._e()])} 1532 | var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-mid fw6 dark-gray mt3 mb"},[_c('span',{staticClass:"fa fa-spin fa-spinner"}),_vm._v(" Running...")])}] 1533 | 1534 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/component-normalizer.js 1535 | /* globals __VUE_SSR_CONTEXT__ */ 1536 | 1537 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). 1538 | // This module is a runtime utility for cleaner component module output and will 1539 | // be included in the final webpack user bundle. 1540 | 1541 | function normalizeComponent ( 1542 | scriptExports, 1543 | render, 1544 | staticRenderFns, 1545 | functionalTemplate, 1546 | injectStyles, 1547 | scopeId, 1548 | moduleIdentifier, /* server only */ 1549 | shadowMode /* vue-cli only */ 1550 | ) { 1551 | scriptExports = scriptExports || {} 1552 | 1553 | // ES6 modules interop 1554 | var type = typeof scriptExports.default 1555 | if (type === 'object' || type === 'function') { 1556 | scriptExports = scriptExports.default 1557 | } 1558 | 1559 | // Vue.extend constructor export interop 1560 | var options = typeof scriptExports === 'function' 1561 | ? scriptExports.options 1562 | : scriptExports 1563 | 1564 | // render functions 1565 | if (render) { 1566 | options.render = render 1567 | options.staticRenderFns = staticRenderFns 1568 | options._compiled = true 1569 | } 1570 | 1571 | // functional template 1572 | if (functionalTemplate) { 1573 | options.functional = true 1574 | } 1575 | 1576 | // scopedId 1577 | if (scopeId) { 1578 | options._scopeId = scopeId 1579 | } 1580 | 1581 | var hook 1582 | if (moduleIdentifier) { // server build 1583 | hook = function (context) { 1584 | // 2.3 injection 1585 | context = 1586 | context || // cached call 1587 | (this.$vnode && this.$vnode.ssrContext) || // stateful 1588 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional 1589 | // 2.2 with runInNewContext: true 1590 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 1591 | context = __VUE_SSR_CONTEXT__ 1592 | } 1593 | // inject component styles 1594 | if (injectStyles) { 1595 | injectStyles.call(this, context) 1596 | } 1597 | // register component module identifier for async chunk inferrence 1598 | if (context && context._registeredComponents) { 1599 | context._registeredComponents.add(moduleIdentifier) 1600 | } 1601 | } 1602 | // used by ssr in case component is cached and beforeCreate 1603 | // never gets called 1604 | options._ssrRegister = hook 1605 | } else if (injectStyles) { 1606 | hook = shadowMode 1607 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } 1608 | : injectStyles 1609 | } 1610 | 1611 | if (hook) { 1612 | if (options.functional) { 1613 | // for template-only hot-reload because in that case the render fn doesn't 1614 | // go through the normalizer 1615 | options._injectStyles = hook 1616 | // register for functioal component in vue file 1617 | var originalRender = options.render 1618 | options.render = function renderWithStyleInjection (h, context) { 1619 | hook.call(context) 1620 | return originalRender(h, context) 1621 | } 1622 | } else { 1623 | // inject component registration as beforeCreate hook 1624 | var existing = options.beforeCreate 1625 | options.beforeCreate = existing 1626 | ? [].concat(existing, hook) 1627 | : [hook] 1628 | } 1629 | } 1630 | 1631 | return { 1632 | exports: scriptExports, 1633 | options: options 1634 | } 1635 | } 1636 | 1637 | // CONCATENATED MODULE: ./src/components/RunJavascript.vue 1638 | /* script */ 1639 | 1640 | 1641 | /* template */ 1642 | 1643 | /* template functional */ 1644 | var __vue_template_functional__ = false 1645 | /* styles */ 1646 | var __vue_styles__ = null 1647 | /* scopeId */ 1648 | var __vue_scopeId__ = null 1649 | /* moduleIdentifier (server only) */ 1650 | var __vue_module_identifier__ = null 1651 | 1652 | var Component = normalizeComponent( 1653 | RunJavascript["a" /* default */], 1654 | render, 1655 | staticRenderFns, 1656 | __vue_template_functional__, 1657 | __vue_styles__, 1658 | __vue_scopeId__, 1659 | __vue_module_identifier__ 1660 | ) 1661 | 1662 | /* harmony default export */ var components_RunJavascript = (Component.exports); 1663 | 1664 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 1665 | 1666 | 1667 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_RunJavascript); 1668 | 1669 | 1670 | /***/ }), 1671 | 1672 | /***/ "xGkn": 1673 | /***/ (function(module, exports, __webpack_require__) { 1674 | 1675 | "use strict"; 1676 | 1677 | var addToUnscopables = __webpack_require__("4mcu"); 1678 | var step = __webpack_require__("EGZi"); 1679 | var Iterators = __webpack_require__("/bQp"); 1680 | var toIObject = __webpack_require__("TcQ7"); 1681 | 1682 | // 22.1.3.4 Array.prototype.entries() 1683 | // 22.1.3.13 Array.prototype.keys() 1684 | // 22.1.3.29 Array.prototype.values() 1685 | // 22.1.3.30 Array.prototype[@@iterator]() 1686 | module.exports = __webpack_require__("vIB/")(Array, 'Array', function (iterated, kind) { 1687 | this._t = toIObject(iterated); // target 1688 | this._i = 0; // next index 1689 | this._k = kind; // kind 1690 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1691 | }, function () { 1692 | var O = this._t; 1693 | var kind = this._k; 1694 | var index = this._i++; 1695 | if (!O || index >= O.length) { 1696 | this._t = undefined; 1697 | return step(1); 1698 | } 1699 | if (kind == 'keys') return step(0, index); 1700 | if (kind == 'values') return step(0, O[index]); 1701 | return step(0, [index, O[index]]); 1702 | }, 'values'); 1703 | 1704 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1705 | Iterators.Arguments = Iterators.Array; 1706 | 1707 | addToUnscopables('keys'); 1708 | addToUnscopables('values'); 1709 | addToUnscopables('entries'); 1710 | 1711 | 1712 | /***/ }), 1713 | 1714 | /***/ "xah7": 1715 | /***/ (function(module, exports, __webpack_require__) { 1716 | 1717 | module.exports = __webpack_require__("BwfY"); 1718 | 1719 | /***/ }), 1720 | 1721 | /***/ "xnc9": 1722 | /***/ (function(module, exports) { 1723 | 1724 | // IE 8- don't enum bug keys 1725 | module.exports = ( 1726 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 1727 | ).split(','); 1728 | 1729 | 1730 | /***/ }), 1731 | 1732 | /***/ "zQR9": 1733 | /***/ (function(module, exports, __webpack_require__) { 1734 | 1735 | "use strict"; 1736 | 1737 | var $at = __webpack_require__("h65t")(true); 1738 | 1739 | // 21.1.3.27 String.prototype[@@iterator]() 1740 | __webpack_require__("vIB/")(String, 'String', function (iterated) { 1741 | this._t = String(iterated); // target 1742 | this._i = 0; // next index 1743 | // 21.1.5.2.1 %StringIteratorPrototype%.next() 1744 | }, function () { 1745 | var O = this._t; 1746 | var index = this._i; 1747 | var point; 1748 | if (index >= O.length) return { value: undefined, done: true }; 1749 | point = $at(O, index); 1750 | this._i += point.length; 1751 | return { value: point, done: false }; 1752 | }); 1753 | 1754 | 1755 | /***/ }) 1756 | 1757 | /******/ })["default"]; 1758 | //# sourceMappingURL=RunJavascript.common.js.map -------------------------------------------------------------------------------- /run-js/dist/RunJavascript.umd.js: -------------------------------------------------------------------------------- 1 | (function webpackUniversalModuleDefinition(root, factory) { 2 | if(typeof exports === 'object' && typeof module === 'object') 3 | module.exports = factory(); 4 | else if(typeof define === 'function' && define.amd) 5 | define([], factory); 6 | else if(typeof exports === 'object') 7 | exports["RunJavascript"] = factory(); 8 | else 9 | root["RunJavascript"] = factory(); 10 | })(typeof self !== 'undefined' ? self : this, function() { 11 | return /******/ (function(modules) { // webpackBootstrap 12 | /******/ // The module cache 13 | /******/ var installedModules = {}; 14 | /******/ 15 | /******/ // The require function 16 | /******/ function __webpack_require__(moduleId) { 17 | /******/ 18 | /******/ // Check if module is in cache 19 | /******/ if(installedModules[moduleId]) { 20 | /******/ return installedModules[moduleId].exports; 21 | /******/ } 22 | /******/ // Create a new module (and put it into the cache) 23 | /******/ var module = installedModules[moduleId] = { 24 | /******/ i: moduleId, 25 | /******/ l: false, 26 | /******/ exports: {} 27 | /******/ }; 28 | /******/ 29 | /******/ // Execute the module function 30 | /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); 31 | /******/ 32 | /******/ // Flag the module as loaded 33 | /******/ module.l = true; 34 | /******/ 35 | /******/ // Return the exports of the module 36 | /******/ return module.exports; 37 | /******/ } 38 | /******/ 39 | /******/ 40 | /******/ // expose the modules object (__webpack_modules__) 41 | /******/ __webpack_require__.m = modules; 42 | /******/ 43 | /******/ // expose the module cache 44 | /******/ __webpack_require__.c = installedModules; 45 | /******/ 46 | /******/ // define getter function for harmony exports 47 | /******/ __webpack_require__.d = function(exports, name, getter) { 48 | /******/ if(!__webpack_require__.o(exports, name)) { 49 | /******/ Object.defineProperty(exports, name, { 50 | /******/ configurable: false, 51 | /******/ enumerable: true, 52 | /******/ get: getter 53 | /******/ }); 54 | /******/ } 55 | /******/ }; 56 | /******/ 57 | /******/ // getDefaultExport function for compatibility with non-harmony modules 58 | /******/ __webpack_require__.n = function(module) { 59 | /******/ var getter = module && module.__esModule ? 60 | /******/ function getDefault() { return module['default']; } : 61 | /******/ function getModuleExports() { return module; }; 62 | /******/ __webpack_require__.d(getter, 'a', getter); 63 | /******/ return getter; 64 | /******/ }; 65 | /******/ 66 | /******/ // Object.prototype.hasOwnProperty.call 67 | /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; 68 | /******/ 69 | /******/ // __webpack_public_path__ 70 | /******/ __webpack_require__.p = "./"; 71 | /******/ 72 | /******/ // Load entry module and return exports 73 | /******/ return __webpack_require__(__webpack_require__.s = 0); 74 | /******/ }) 75 | /************************************************************************/ 76 | /******/ ({ 77 | 78 | /***/ "+E39": 79 | /***/ (function(module, exports, __webpack_require__) { 80 | 81 | // Thank's IE8 for his funny defineProperty 82 | module.exports = !__webpack_require__("S82l")(function () { 83 | return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7; 84 | }); 85 | 86 | 87 | /***/ }), 88 | 89 | /***/ "+ZMJ": 90 | /***/ (function(module, exports, __webpack_require__) { 91 | 92 | // optional / simple context binding 93 | var aFunction = __webpack_require__("lOnJ"); 94 | module.exports = function (fn, that, length) { 95 | aFunction(fn); 96 | if (that === undefined) return fn; 97 | switch (length) { 98 | case 1: return function (a) { 99 | return fn.call(that, a); 100 | }; 101 | case 2: return function (a, b) { 102 | return fn.call(that, a, b); 103 | }; 104 | case 3: return function (a, b, c) { 105 | return fn.call(that, a, b, c); 106 | }; 107 | } 108 | return function (/* ...args */) { 109 | return fn.apply(that, arguments); 110 | }; 111 | }; 112 | 113 | 114 | /***/ }), 115 | 116 | /***/ "+tPU": 117 | /***/ (function(module, exports, __webpack_require__) { 118 | 119 | __webpack_require__("xGkn"); 120 | var global = __webpack_require__("7KvD"); 121 | var hide = __webpack_require__("hJx8"); 122 | var Iterators = __webpack_require__("/bQp"); 123 | var TO_STRING_TAG = __webpack_require__("dSzd")('toStringTag'); 124 | 125 | var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' + 126 | 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' + 127 | 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' + 128 | 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' + 129 | 'TextTrackList,TouchList').split(','); 130 | 131 | for (var i = 0; i < DOMIterables.length; i++) { 132 | var NAME = DOMIterables[i]; 133 | var Collection = global[NAME]; 134 | var proto = Collection && Collection.prototype; 135 | if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME); 136 | Iterators[NAME] = Iterators.Array; 137 | } 138 | 139 | 140 | /***/ }), 141 | 142 | /***/ "/bQp": 143 | /***/ (function(module, exports) { 144 | 145 | module.exports = {}; 146 | 147 | 148 | /***/ }), 149 | 150 | /***/ "/n6Q": 151 | /***/ (function(module, exports, __webpack_require__) { 152 | 153 | __webpack_require__("zQR9"); 154 | __webpack_require__("+tPU"); 155 | module.exports = __webpack_require__("Kh4W").f('iterator'); 156 | 157 | 158 | /***/ }), 159 | 160 | /***/ 0: 161 | /***/ (function(module, exports, __webpack_require__) { 162 | 163 | module.exports = __webpack_require__("vgs7"); 164 | 165 | 166 | /***/ }), 167 | 168 | /***/ "06OY": 169 | /***/ (function(module, exports, __webpack_require__) { 170 | 171 | var META = __webpack_require__("3Eo+")('meta'); 172 | var isObject = __webpack_require__("EqjI"); 173 | var has = __webpack_require__("D2L2"); 174 | var setDesc = __webpack_require__("evD5").f; 175 | var id = 0; 176 | var isExtensible = Object.isExtensible || function () { 177 | return true; 178 | }; 179 | var FREEZE = !__webpack_require__("S82l")(function () { 180 | return isExtensible(Object.preventExtensions({})); 181 | }); 182 | var setMeta = function (it) { 183 | setDesc(it, META, { value: { 184 | i: 'O' + ++id, // object ID 185 | w: {} // weak collections IDs 186 | } }); 187 | }; 188 | var fastKey = function (it, create) { 189 | // return primitive with prefix 190 | if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; 191 | if (!has(it, META)) { 192 | // can't set metadata to uncaught frozen object 193 | if (!isExtensible(it)) return 'F'; 194 | // not necessary to add metadata 195 | if (!create) return 'E'; 196 | // add missing metadata 197 | setMeta(it); 198 | // return object ID 199 | } return it[META].i; 200 | }; 201 | var getWeak = function (it, create) { 202 | if (!has(it, META)) { 203 | // can't set metadata to uncaught frozen object 204 | if (!isExtensible(it)) return true; 205 | // not necessary to add metadata 206 | if (!create) return false; 207 | // add missing metadata 208 | setMeta(it); 209 | // return hash weak collections IDs 210 | } return it[META].w; 211 | }; 212 | // add metadata on freeze-family methods calling 213 | var onFreeze = function (it) { 214 | if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it); 215 | return it; 216 | }; 217 | var meta = module.exports = { 218 | KEY: META, 219 | NEED: false, 220 | fastKey: fastKey, 221 | getWeak: getWeak, 222 | onFreeze: onFreeze 223 | }; 224 | 225 | 226 | /***/ }), 227 | 228 | /***/ "1kS7": 229 | /***/ (function(module, exports) { 230 | 231 | exports.f = Object.getOwnPropertySymbols; 232 | 233 | 234 | /***/ }), 235 | 236 | /***/ "3Eo+": 237 | /***/ (function(module, exports) { 238 | 239 | var id = 0; 240 | var px = Math.random(); 241 | module.exports = function (key) { 242 | return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36)); 243 | }; 244 | 245 | 246 | /***/ }), 247 | 248 | /***/ "4mcu": 249 | /***/ (function(module, exports) { 250 | 251 | module.exports = function () { /* empty */ }; 252 | 253 | 254 | /***/ }), 255 | 256 | /***/ "52gC": 257 | /***/ (function(module, exports) { 258 | 259 | // 7.2.1 RequireObjectCoercible(argument) 260 | module.exports = function (it) { 261 | if (it == undefined) throw TypeError("Can't call method on " + it); 262 | return it; 263 | }; 264 | 265 | 266 | /***/ }), 267 | 268 | /***/ "77Pl": 269 | /***/ (function(module, exports, __webpack_require__) { 270 | 271 | var isObject = __webpack_require__("EqjI"); 272 | module.exports = function (it) { 273 | if (!isObject(it)) throw TypeError(it + ' is not an object!'); 274 | return it; 275 | }; 276 | 277 | 278 | /***/ }), 279 | 280 | /***/ "7KvD": 281 | /***/ (function(module, exports) { 282 | 283 | // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 284 | var global = module.exports = typeof window != 'undefined' && window.Math == Math 285 | ? window : typeof self != 'undefined' && self.Math == Math ? self 286 | // eslint-disable-next-line no-new-func 287 | : Function('return this')(); 288 | if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef 289 | 290 | 291 | /***/ }), 292 | 293 | /***/ "7UMu": 294 | /***/ (function(module, exports, __webpack_require__) { 295 | 296 | // 7.2.2 IsArray(argument) 297 | var cof = __webpack_require__("R9M2"); 298 | module.exports = Array.isArray || function isArray(arg) { 299 | return cof(arg) == 'Array'; 300 | }; 301 | 302 | 303 | /***/ }), 304 | 305 | /***/ "880/": 306 | /***/ (function(module, exports, __webpack_require__) { 307 | 308 | module.exports = __webpack_require__("hJx8"); 309 | 310 | 311 | /***/ }), 312 | 313 | /***/ "94VQ": 314 | /***/ (function(module, exports, __webpack_require__) { 315 | 316 | "use strict"; 317 | 318 | var create = __webpack_require__("Yobk"); 319 | var descriptor = __webpack_require__("X8DO"); 320 | var setToStringTag = __webpack_require__("e6n0"); 321 | var IteratorPrototype = {}; 322 | 323 | // 25.1.2.1.1 %IteratorPrototype%[@@iterator]() 324 | __webpack_require__("hJx8")(IteratorPrototype, __webpack_require__("dSzd")('iterator'), function () { return this; }); 325 | 326 | module.exports = function (Constructor, NAME, next) { 327 | Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) }); 328 | setToStringTag(Constructor, NAME + ' Iterator'); 329 | }; 330 | 331 | 332 | /***/ }), 333 | 334 | /***/ "BwfY": 335 | /***/ (function(module, exports, __webpack_require__) { 336 | 337 | __webpack_require__("fWfb"); 338 | __webpack_require__("M6a0"); 339 | __webpack_require__("OYls"); 340 | __webpack_require__("QWe/"); 341 | module.exports = __webpack_require__("FeBl").Symbol; 342 | 343 | 344 | /***/ }), 345 | 346 | /***/ "D2L2": 347 | /***/ (function(module, exports) { 348 | 349 | var hasOwnProperty = {}.hasOwnProperty; 350 | module.exports = function (it, key) { 351 | return hasOwnProperty.call(it, key); 352 | }; 353 | 354 | 355 | /***/ }), 356 | 357 | /***/ "EGZi": 358 | /***/ (function(module, exports) { 359 | 360 | module.exports = function (done, value) { 361 | return { value: value, done: !!done }; 362 | }; 363 | 364 | 365 | /***/ }), 366 | 367 | /***/ "EqjI": 368 | /***/ (function(module, exports) { 369 | 370 | module.exports = function (it) { 371 | return typeof it === 'object' ? it !== null : typeof it === 'function'; 372 | }; 373 | 374 | 375 | /***/ }), 376 | 377 | /***/ "FeBl": 378 | /***/ (function(module, exports) { 379 | 380 | var core = module.exports = { version: '2.5.4' }; 381 | if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef 382 | 383 | 384 | /***/ }), 385 | 386 | /***/ "H/H3": 387 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 388 | 389 | "use strict"; 390 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof__ = __webpack_require__("Oy1H"); 391 | /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof__); 392 | 393 | // 394 | // 395 | // 396 | // 397 | // 398 | // 399 | // 400 | // 401 | // 402 | // 403 | // 404 | // 405 | // 406 | // 407 | // 408 | // 409 | // 410 | // 411 | // 412 | // 413 | // 414 | // 415 | // 416 | // 417 | // 418 | // 419 | // 420 | // 421 | // 422 | // 423 | // 424 | // 425 | // 426 | // 427 | // 428 | /* harmony default export */ __webpack_exports__["a"] = ({ 429 | name: 'RunJavascript', 430 | props: { 431 | 'code': { 432 | type: String, 433 | default: '' 434 | }, 435 | 'show-buttons': { 436 | type: Boolean, 437 | default: true 438 | }, 439 | 'buttons': { 440 | type: Array, 441 | default: function _default() { 442 | return ['copy', 'run']; 443 | } 444 | }, 445 | 'copy-prefix': { 446 | type: String, 447 | default: '' 448 | }, 449 | 'copy-suffix': { 450 | type: String, 451 | default: '' 452 | } 453 | }, 454 | data: function data() { 455 | return { 456 | text_result: '', 457 | is_loading: false 458 | }; 459 | }, 460 | computed: { 461 | has_text_result: function has_text_result() { 462 | return this.text_result.length > 0; 463 | }, 464 | show_copy_button: function show_copy_button() { 465 | return this.buttons.indexOf('copy') != -1; 466 | }, 467 | show_run_button: function show_run_button() { 468 | return this.buttons.indexOf('run') != -1; 469 | }, 470 | run_fn: function run_fn() { 471 | return eval('(' + this.code + ')'); 472 | }, 473 | copy_code: function copy_code() { 474 | return this.copyPrefix + this.code + this.copySuffix; 475 | } 476 | }, 477 | methods: { 478 | run: function run() { 479 | if (typeof this.run_fn == 'function') { 480 | this.text_result = ''; 481 | this.is_loading = true; 482 | var fn = this.run_fn; 483 | var response = fn.call(); 484 | 485 | if (__WEBPACK_IMPORTED_MODULE_0_C_src_markdown_components_runjs_node_modules_babel_runtime_helpers_typeof___default()(response) == 'object') { 486 | // response is json 487 | this.text_result = JSON.stringify(response, null, 2); 488 | } else if (typeof response == 'string') { 489 | // echo text by default 490 | this.text_result = response; 491 | } else { 492 | this.text_result = ''; 493 | } 494 | 495 | this.is_loading = false; 496 | } 497 | } 498 | } 499 | }); 500 | 501 | /***/ }), 502 | 503 | /***/ "Ibhu": 504 | /***/ (function(module, exports, __webpack_require__) { 505 | 506 | var has = __webpack_require__("D2L2"); 507 | var toIObject = __webpack_require__("TcQ7"); 508 | var arrayIndexOf = __webpack_require__("vFc/")(false); 509 | var IE_PROTO = __webpack_require__("ax3d")('IE_PROTO'); 510 | 511 | module.exports = function (object, names) { 512 | var O = toIObject(object); 513 | var i = 0; 514 | var result = []; 515 | var key; 516 | for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key); 517 | // Don't enum bug & hidden keys 518 | while (names.length > i) if (has(O, key = names[i++])) { 519 | ~arrayIndexOf(result, key) || result.push(key); 520 | } 521 | return result; 522 | }; 523 | 524 | 525 | /***/ }), 526 | 527 | /***/ "Kh4W": 528 | /***/ (function(module, exports, __webpack_require__) { 529 | 530 | exports.f = __webpack_require__("dSzd"); 531 | 532 | 533 | /***/ }), 534 | 535 | /***/ "LKZe": 536 | /***/ (function(module, exports, __webpack_require__) { 537 | 538 | var pIE = __webpack_require__("NpIQ"); 539 | var createDesc = __webpack_require__("X8DO"); 540 | var toIObject = __webpack_require__("TcQ7"); 541 | var toPrimitive = __webpack_require__("MmMw"); 542 | var has = __webpack_require__("D2L2"); 543 | var IE8_DOM_DEFINE = __webpack_require__("SfB7"); 544 | var gOPD = Object.getOwnPropertyDescriptor; 545 | 546 | exports.f = __webpack_require__("+E39") ? gOPD : function getOwnPropertyDescriptor(O, P) { 547 | O = toIObject(O); 548 | P = toPrimitive(P, true); 549 | if (IE8_DOM_DEFINE) try { 550 | return gOPD(O, P); 551 | } catch (e) { /* empty */ } 552 | if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]); 553 | }; 554 | 555 | 556 | /***/ }), 557 | 558 | /***/ "M6a0": 559 | /***/ (function(module, exports) { 560 | 561 | 562 | 563 | /***/ }), 564 | 565 | /***/ "MU5D": 566 | /***/ (function(module, exports, __webpack_require__) { 567 | 568 | // fallback for non-array-like ES3 and non-enumerable old V8 strings 569 | var cof = __webpack_require__("R9M2"); 570 | // eslint-disable-next-line no-prototype-builtins 571 | module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) { 572 | return cof(it) == 'String' ? it.split('') : Object(it); 573 | }; 574 | 575 | 576 | /***/ }), 577 | 578 | /***/ "MmMw": 579 | /***/ (function(module, exports, __webpack_require__) { 580 | 581 | // 7.1.1 ToPrimitive(input [, PreferredType]) 582 | var isObject = __webpack_require__("EqjI"); 583 | // instead of the ES6 spec version, we didn't implement @@toPrimitive case 584 | // and the second argument - flag - preferred type is a string 585 | module.exports = function (it, S) { 586 | if (!isObject(it)) return it; 587 | var fn, val; 588 | if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 589 | if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val; 590 | if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val; 591 | throw TypeError("Can't convert object to primitive value"); 592 | }; 593 | 594 | 595 | /***/ }), 596 | 597 | /***/ "NpIQ": 598 | /***/ (function(module, exports) { 599 | 600 | exports.f = {}.propertyIsEnumerable; 601 | 602 | 603 | /***/ }), 604 | 605 | /***/ "O4g8": 606 | /***/ (function(module, exports) { 607 | 608 | module.exports = true; 609 | 610 | 611 | /***/ }), 612 | 613 | /***/ "ON07": 614 | /***/ (function(module, exports, __webpack_require__) { 615 | 616 | var isObject = __webpack_require__("EqjI"); 617 | var document = __webpack_require__("7KvD").document; 618 | // typeof document.createElement is 'object' in old IE 619 | var is = isObject(document) && isObject(document.createElement); 620 | module.exports = function (it) { 621 | return is ? document.createElement(it) : {}; 622 | }; 623 | 624 | 625 | /***/ }), 626 | 627 | /***/ "OYls": 628 | /***/ (function(module, exports, __webpack_require__) { 629 | 630 | __webpack_require__("crlp")('asyncIterator'); 631 | 632 | 633 | /***/ }), 634 | 635 | /***/ "Oy1H": 636 | /***/ (function(module, exports, __webpack_require__) { 637 | 638 | var _Symbol$iterator = __webpack_require__("tRu9"); 639 | 640 | var _Symbol = __webpack_require__("xah7"); 641 | 642 | function _typeof2(obj) { if (typeof _Symbol === "function" && typeof _Symbol$iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); } 643 | 644 | function _typeof(obj) { 645 | if (typeof _Symbol === "function" && _typeof2(_Symbol$iterator) === "symbol") { 646 | module.exports = _typeof = function _typeof(obj) { 647 | return _typeof2(obj); 648 | }; 649 | } else { 650 | module.exports = _typeof = function _typeof(obj) { 651 | return obj && typeof _Symbol === "function" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? "symbol" : _typeof2(obj); 652 | }; 653 | } 654 | 655 | return _typeof(obj); 656 | } 657 | 658 | module.exports = _typeof; 659 | 660 | /***/ }), 661 | 662 | /***/ "PzxK": 663 | /***/ (function(module, exports, __webpack_require__) { 664 | 665 | // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O) 666 | var has = __webpack_require__("D2L2"); 667 | var toObject = __webpack_require__("sB3e"); 668 | var IE_PROTO = __webpack_require__("ax3d")('IE_PROTO'); 669 | var ObjectProto = Object.prototype; 670 | 671 | module.exports = Object.getPrototypeOf || function (O) { 672 | O = toObject(O); 673 | if (has(O, IE_PROTO)) return O[IE_PROTO]; 674 | if (typeof O.constructor == 'function' && O instanceof O.constructor) { 675 | return O.constructor.prototype; 676 | } return O instanceof Object ? ObjectProto : null; 677 | }; 678 | 679 | 680 | /***/ }), 681 | 682 | /***/ "QRG4": 683 | /***/ (function(module, exports, __webpack_require__) { 684 | 685 | // 7.1.15 ToLength 686 | var toInteger = __webpack_require__("UuGF"); 687 | var min = Math.min; 688 | module.exports = function (it) { 689 | return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991 690 | }; 691 | 692 | 693 | /***/ }), 694 | 695 | /***/ "QWe/": 696 | /***/ (function(module, exports, __webpack_require__) { 697 | 698 | __webpack_require__("crlp")('observable'); 699 | 700 | 701 | /***/ }), 702 | 703 | /***/ "R9M2": 704 | /***/ (function(module, exports) { 705 | 706 | var toString = {}.toString; 707 | 708 | module.exports = function (it) { 709 | return toString.call(it).slice(8, -1); 710 | }; 711 | 712 | 713 | /***/ }), 714 | 715 | /***/ "RPLV": 716 | /***/ (function(module, exports, __webpack_require__) { 717 | 718 | var document = __webpack_require__("7KvD").document; 719 | module.exports = document && document.documentElement; 720 | 721 | 722 | /***/ }), 723 | 724 | /***/ "Rrel": 725 | /***/ (function(module, exports, __webpack_require__) { 726 | 727 | // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window 728 | var toIObject = __webpack_require__("TcQ7"); 729 | var gOPN = __webpack_require__("n0T6").f; 730 | var toString = {}.toString; 731 | 732 | var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames 733 | ? Object.getOwnPropertyNames(window) : []; 734 | 735 | var getWindowNames = function (it) { 736 | try { 737 | return gOPN(it); 738 | } catch (e) { 739 | return windowNames.slice(); 740 | } 741 | }; 742 | 743 | module.exports.f = function getOwnPropertyNames(it) { 744 | return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it)); 745 | }; 746 | 747 | 748 | /***/ }), 749 | 750 | /***/ "S82l": 751 | /***/ (function(module, exports) { 752 | 753 | module.exports = function (exec) { 754 | try { 755 | return !!exec(); 756 | } catch (e) { 757 | return true; 758 | } 759 | }; 760 | 761 | 762 | /***/ }), 763 | 764 | /***/ "SfB7": 765 | /***/ (function(module, exports, __webpack_require__) { 766 | 767 | module.exports = !__webpack_require__("+E39") && !__webpack_require__("S82l")(function () { 768 | return Object.defineProperty(__webpack_require__("ON07")('div'), 'a', { get: function () { return 7; } }).a != 7; 769 | }); 770 | 771 | 772 | /***/ }), 773 | 774 | /***/ "TcQ7": 775 | /***/ (function(module, exports, __webpack_require__) { 776 | 777 | // to indexed object, toObject with fallback for non-array-like ES3 strings 778 | var IObject = __webpack_require__("MU5D"); 779 | var defined = __webpack_require__("52gC"); 780 | module.exports = function (it) { 781 | return IObject(defined(it)); 782 | }; 783 | 784 | 785 | /***/ }), 786 | 787 | /***/ "UuGF": 788 | /***/ (function(module, exports) { 789 | 790 | // 7.1.4 ToInteger 791 | var ceil = Math.ceil; 792 | var floor = Math.floor; 793 | module.exports = function (it) { 794 | return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it); 795 | }; 796 | 797 | 798 | /***/ }), 799 | 800 | /***/ "X8DO": 801 | /***/ (function(module, exports) { 802 | 803 | module.exports = function (bitmap, value) { 804 | return { 805 | enumerable: !(bitmap & 1), 806 | configurable: !(bitmap & 2), 807 | writable: !(bitmap & 4), 808 | value: value 809 | }; 810 | }; 811 | 812 | 813 | /***/ }), 814 | 815 | /***/ "Xc4G": 816 | /***/ (function(module, exports, __webpack_require__) { 817 | 818 | // all enumerable object keys, includes symbols 819 | var getKeys = __webpack_require__("lktj"); 820 | var gOPS = __webpack_require__("1kS7"); 821 | var pIE = __webpack_require__("NpIQ"); 822 | module.exports = function (it) { 823 | var result = getKeys(it); 824 | var getSymbols = gOPS.f; 825 | if (getSymbols) { 826 | var symbols = getSymbols(it); 827 | var isEnum = pIE.f; 828 | var i = 0; 829 | var key; 830 | while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key); 831 | } return result; 832 | }; 833 | 834 | 835 | /***/ }), 836 | 837 | /***/ "Yobk": 838 | /***/ (function(module, exports, __webpack_require__) { 839 | 840 | // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties]) 841 | var anObject = __webpack_require__("77Pl"); 842 | var dPs = __webpack_require__("qio6"); 843 | var enumBugKeys = __webpack_require__("xnc9"); 844 | var IE_PROTO = __webpack_require__("ax3d")('IE_PROTO'); 845 | var Empty = function () { /* empty */ }; 846 | var PROTOTYPE = 'prototype'; 847 | 848 | // Create object with fake `null` prototype: use iframe Object with cleared prototype 849 | var createDict = function () { 850 | // Thrash, waste and sodomy: IE GC bug 851 | var iframe = __webpack_require__("ON07")('iframe'); 852 | var i = enumBugKeys.length; 853 | var lt = '<'; 854 | var gt = '>'; 855 | var iframeDocument; 856 | iframe.style.display = 'none'; 857 | __webpack_require__("RPLV").appendChild(iframe); 858 | iframe.src = 'javascript:'; // eslint-disable-line no-script-url 859 | // createDict = iframe.contentWindow.Object; 860 | // html.removeChild(iframe); 861 | iframeDocument = iframe.contentWindow.document; 862 | iframeDocument.open(); 863 | iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt); 864 | iframeDocument.close(); 865 | createDict = iframeDocument.F; 866 | while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]]; 867 | return createDict(); 868 | }; 869 | 870 | module.exports = Object.create || function create(O, Properties) { 871 | var result; 872 | if (O !== null) { 873 | Empty[PROTOTYPE] = anObject(O); 874 | result = new Empty(); 875 | Empty[PROTOTYPE] = null; 876 | // add "__proto__" for Object.getPrototypeOf polyfill 877 | result[IE_PROTO] = O; 878 | } else result = createDict(); 879 | return Properties === undefined ? result : dPs(result, Properties); 880 | }; 881 | 882 | 883 | /***/ }), 884 | 885 | /***/ "ax3d": 886 | /***/ (function(module, exports, __webpack_require__) { 887 | 888 | var shared = __webpack_require__("e8AB")('keys'); 889 | var uid = __webpack_require__("3Eo+"); 890 | module.exports = function (key) { 891 | return shared[key] || (shared[key] = uid(key)); 892 | }; 893 | 894 | 895 | /***/ }), 896 | 897 | /***/ "crlp": 898 | /***/ (function(module, exports, __webpack_require__) { 899 | 900 | var global = __webpack_require__("7KvD"); 901 | var core = __webpack_require__("FeBl"); 902 | var LIBRARY = __webpack_require__("O4g8"); 903 | var wksExt = __webpack_require__("Kh4W"); 904 | var defineProperty = __webpack_require__("evD5").f; 905 | module.exports = function (name) { 906 | var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {}); 907 | if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) }); 908 | }; 909 | 910 | 911 | /***/ }), 912 | 913 | /***/ "dSzd": 914 | /***/ (function(module, exports, __webpack_require__) { 915 | 916 | var store = __webpack_require__("e8AB")('wks'); 917 | var uid = __webpack_require__("3Eo+"); 918 | var Symbol = __webpack_require__("7KvD").Symbol; 919 | var USE_SYMBOL = typeof Symbol == 'function'; 920 | 921 | var $exports = module.exports = function (name) { 922 | return store[name] || (store[name] = 923 | USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name)); 924 | }; 925 | 926 | $exports.store = store; 927 | 928 | 929 | /***/ }), 930 | 931 | /***/ "e6n0": 932 | /***/ (function(module, exports, __webpack_require__) { 933 | 934 | var def = __webpack_require__("evD5").f; 935 | var has = __webpack_require__("D2L2"); 936 | var TAG = __webpack_require__("dSzd")('toStringTag'); 937 | 938 | module.exports = function (it, tag, stat) { 939 | if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag }); 940 | }; 941 | 942 | 943 | /***/ }), 944 | 945 | /***/ "e8AB": 946 | /***/ (function(module, exports, __webpack_require__) { 947 | 948 | var global = __webpack_require__("7KvD"); 949 | var SHARED = '__core-js_shared__'; 950 | var store = global[SHARED] || (global[SHARED] = {}); 951 | module.exports = function (key) { 952 | return store[key] || (store[key] = {}); 953 | }; 954 | 955 | 956 | /***/ }), 957 | 958 | /***/ "evD5": 959 | /***/ (function(module, exports, __webpack_require__) { 960 | 961 | var anObject = __webpack_require__("77Pl"); 962 | var IE8_DOM_DEFINE = __webpack_require__("SfB7"); 963 | var toPrimitive = __webpack_require__("MmMw"); 964 | var dP = Object.defineProperty; 965 | 966 | exports.f = __webpack_require__("+E39") ? Object.defineProperty : function defineProperty(O, P, Attributes) { 967 | anObject(O); 968 | P = toPrimitive(P, true); 969 | anObject(Attributes); 970 | if (IE8_DOM_DEFINE) try { 971 | return dP(O, P, Attributes); 972 | } catch (e) { /* empty */ } 973 | if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!'); 974 | if ('value' in Attributes) O[P] = Attributes.value; 975 | return O; 976 | }; 977 | 978 | 979 | /***/ }), 980 | 981 | /***/ "fWfb": 982 | /***/ (function(module, exports, __webpack_require__) { 983 | 984 | "use strict"; 985 | 986 | // ECMAScript 6 symbols shim 987 | var global = __webpack_require__("7KvD"); 988 | var has = __webpack_require__("D2L2"); 989 | var DESCRIPTORS = __webpack_require__("+E39"); 990 | var $export = __webpack_require__("kM2E"); 991 | var redefine = __webpack_require__("880/"); 992 | var META = __webpack_require__("06OY").KEY; 993 | var $fails = __webpack_require__("S82l"); 994 | var shared = __webpack_require__("e8AB"); 995 | var setToStringTag = __webpack_require__("e6n0"); 996 | var uid = __webpack_require__("3Eo+"); 997 | var wks = __webpack_require__("dSzd"); 998 | var wksExt = __webpack_require__("Kh4W"); 999 | var wksDefine = __webpack_require__("crlp"); 1000 | var enumKeys = __webpack_require__("Xc4G"); 1001 | var isArray = __webpack_require__("7UMu"); 1002 | var anObject = __webpack_require__("77Pl"); 1003 | var isObject = __webpack_require__("EqjI"); 1004 | var toIObject = __webpack_require__("TcQ7"); 1005 | var toPrimitive = __webpack_require__("MmMw"); 1006 | var createDesc = __webpack_require__("X8DO"); 1007 | var _create = __webpack_require__("Yobk"); 1008 | var gOPNExt = __webpack_require__("Rrel"); 1009 | var $GOPD = __webpack_require__("LKZe"); 1010 | var $DP = __webpack_require__("evD5"); 1011 | var $keys = __webpack_require__("lktj"); 1012 | var gOPD = $GOPD.f; 1013 | var dP = $DP.f; 1014 | var gOPN = gOPNExt.f; 1015 | var $Symbol = global.Symbol; 1016 | var $JSON = global.JSON; 1017 | var _stringify = $JSON && $JSON.stringify; 1018 | var PROTOTYPE = 'prototype'; 1019 | var HIDDEN = wks('_hidden'); 1020 | var TO_PRIMITIVE = wks('toPrimitive'); 1021 | var isEnum = {}.propertyIsEnumerable; 1022 | var SymbolRegistry = shared('symbol-registry'); 1023 | var AllSymbols = shared('symbols'); 1024 | var OPSymbols = shared('op-symbols'); 1025 | var ObjectProto = Object[PROTOTYPE]; 1026 | var USE_NATIVE = typeof $Symbol == 'function'; 1027 | var QObject = global.QObject; 1028 | // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 1029 | var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild; 1030 | 1031 | // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 1032 | var setSymbolDesc = DESCRIPTORS && $fails(function () { 1033 | return _create(dP({}, 'a', { 1034 | get: function () { return dP(this, 'a', { value: 7 }).a; } 1035 | })).a != 7; 1036 | }) ? function (it, key, D) { 1037 | var protoDesc = gOPD(ObjectProto, key); 1038 | if (protoDesc) delete ObjectProto[key]; 1039 | dP(it, key, D); 1040 | if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc); 1041 | } : dP; 1042 | 1043 | var wrap = function (tag) { 1044 | var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]); 1045 | sym._k = tag; 1046 | return sym; 1047 | }; 1048 | 1049 | var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) { 1050 | return typeof it == 'symbol'; 1051 | } : function (it) { 1052 | return it instanceof $Symbol; 1053 | }; 1054 | 1055 | var $defineProperty = function defineProperty(it, key, D) { 1056 | if (it === ObjectProto) $defineProperty(OPSymbols, key, D); 1057 | anObject(it); 1058 | key = toPrimitive(key, true); 1059 | anObject(D); 1060 | if (has(AllSymbols, key)) { 1061 | if (!D.enumerable) { 1062 | if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {})); 1063 | it[HIDDEN][key] = true; 1064 | } else { 1065 | if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false; 1066 | D = _create(D, { enumerable: createDesc(0, false) }); 1067 | } return setSymbolDesc(it, key, D); 1068 | } return dP(it, key, D); 1069 | }; 1070 | var $defineProperties = function defineProperties(it, P) { 1071 | anObject(it); 1072 | var keys = enumKeys(P = toIObject(P)); 1073 | var i = 0; 1074 | var l = keys.length; 1075 | var key; 1076 | while (l > i) $defineProperty(it, key = keys[i++], P[key]); 1077 | return it; 1078 | }; 1079 | var $create = function create(it, P) { 1080 | return P === undefined ? _create(it) : $defineProperties(_create(it), P); 1081 | }; 1082 | var $propertyIsEnumerable = function propertyIsEnumerable(key) { 1083 | var E = isEnum.call(this, key = toPrimitive(key, true)); 1084 | if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false; 1085 | return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true; 1086 | }; 1087 | var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) { 1088 | it = toIObject(it); 1089 | key = toPrimitive(key, true); 1090 | if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return; 1091 | var D = gOPD(it, key); 1092 | if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true; 1093 | return D; 1094 | }; 1095 | var $getOwnPropertyNames = function getOwnPropertyNames(it) { 1096 | var names = gOPN(toIObject(it)); 1097 | var result = []; 1098 | var i = 0; 1099 | var key; 1100 | while (names.length > i) { 1101 | if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key); 1102 | } return result; 1103 | }; 1104 | var $getOwnPropertySymbols = function getOwnPropertySymbols(it) { 1105 | var IS_OP = it === ObjectProto; 1106 | var names = gOPN(IS_OP ? OPSymbols : toIObject(it)); 1107 | var result = []; 1108 | var i = 0; 1109 | var key; 1110 | while (names.length > i) { 1111 | if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]); 1112 | } return result; 1113 | }; 1114 | 1115 | // 19.4.1.1 Symbol([description]) 1116 | if (!USE_NATIVE) { 1117 | $Symbol = function Symbol() { 1118 | if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!'); 1119 | var tag = uid(arguments.length > 0 ? arguments[0] : undefined); 1120 | var $set = function (value) { 1121 | if (this === ObjectProto) $set.call(OPSymbols, value); 1122 | if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false; 1123 | setSymbolDesc(this, tag, createDesc(1, value)); 1124 | }; 1125 | if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set }); 1126 | return wrap(tag); 1127 | }; 1128 | redefine($Symbol[PROTOTYPE], 'toString', function toString() { 1129 | return this._k; 1130 | }); 1131 | 1132 | $GOPD.f = $getOwnPropertyDescriptor; 1133 | $DP.f = $defineProperty; 1134 | __webpack_require__("n0T6").f = gOPNExt.f = $getOwnPropertyNames; 1135 | __webpack_require__("NpIQ").f = $propertyIsEnumerable; 1136 | __webpack_require__("1kS7").f = $getOwnPropertySymbols; 1137 | 1138 | if (DESCRIPTORS && !__webpack_require__("O4g8")) { 1139 | redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true); 1140 | } 1141 | 1142 | wksExt.f = function (name) { 1143 | return wrap(wks(name)); 1144 | }; 1145 | } 1146 | 1147 | $export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol }); 1148 | 1149 | for (var es6Symbols = ( 1150 | // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14 1151 | 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables' 1152 | ).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]); 1153 | 1154 | for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]); 1155 | 1156 | $export($export.S + $export.F * !USE_NATIVE, 'Symbol', { 1157 | // 19.4.2.1 Symbol.for(key) 1158 | 'for': function (key) { 1159 | return has(SymbolRegistry, key += '') 1160 | ? SymbolRegistry[key] 1161 | : SymbolRegistry[key] = $Symbol(key); 1162 | }, 1163 | // 19.4.2.5 Symbol.keyFor(sym) 1164 | keyFor: function keyFor(sym) { 1165 | if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!'); 1166 | for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key; 1167 | }, 1168 | useSetter: function () { setter = true; }, 1169 | useSimple: function () { setter = false; } 1170 | }); 1171 | 1172 | $export($export.S + $export.F * !USE_NATIVE, 'Object', { 1173 | // 19.1.2.2 Object.create(O [, Properties]) 1174 | create: $create, 1175 | // 19.1.2.4 Object.defineProperty(O, P, Attributes) 1176 | defineProperty: $defineProperty, 1177 | // 19.1.2.3 Object.defineProperties(O, Properties) 1178 | defineProperties: $defineProperties, 1179 | // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P) 1180 | getOwnPropertyDescriptor: $getOwnPropertyDescriptor, 1181 | // 19.1.2.7 Object.getOwnPropertyNames(O) 1182 | getOwnPropertyNames: $getOwnPropertyNames, 1183 | // 19.1.2.8 Object.getOwnPropertySymbols(O) 1184 | getOwnPropertySymbols: $getOwnPropertySymbols 1185 | }); 1186 | 1187 | // 24.3.2 JSON.stringify(value [, replacer [, space]]) 1188 | $JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () { 1189 | var S = $Symbol(); 1190 | // MS Edge converts symbol values to JSON as {} 1191 | // WebKit converts symbol values to JSON as null 1192 | // V8 throws on boxed symbols 1193 | return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}'; 1194 | })), 'JSON', { 1195 | stringify: function stringify(it) { 1196 | var args = [it]; 1197 | var i = 1; 1198 | var replacer, $replacer; 1199 | while (arguments.length > i) args.push(arguments[i++]); 1200 | $replacer = replacer = args[1]; 1201 | if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined 1202 | if (!isArray(replacer)) replacer = function (key, value) { 1203 | if (typeof $replacer == 'function') value = $replacer.call(this, key, value); 1204 | if (!isSymbol(value)) return value; 1205 | }; 1206 | args[1] = replacer; 1207 | return _stringify.apply($JSON, args); 1208 | } 1209 | }); 1210 | 1211 | // 19.4.3.4 Symbol.prototype[@@toPrimitive](hint) 1212 | $Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__("hJx8")($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf); 1213 | // 19.4.3.5 Symbol.prototype[@@toStringTag] 1214 | setToStringTag($Symbol, 'Symbol'); 1215 | // 20.2.1.9 Math[@@toStringTag] 1216 | setToStringTag(Math, 'Math', true); 1217 | // 24.3.3 JSON[@@toStringTag] 1218 | setToStringTag(global.JSON, 'JSON', true); 1219 | 1220 | 1221 | /***/ }), 1222 | 1223 | /***/ "fkB2": 1224 | /***/ (function(module, exports, __webpack_require__) { 1225 | 1226 | var toInteger = __webpack_require__("UuGF"); 1227 | var max = Math.max; 1228 | var min = Math.min; 1229 | module.exports = function (index, length) { 1230 | index = toInteger(index); 1231 | return index < 0 ? max(index + length, 0) : min(index, length); 1232 | }; 1233 | 1234 | 1235 | /***/ }), 1236 | 1237 | /***/ "h65t": 1238 | /***/ (function(module, exports, __webpack_require__) { 1239 | 1240 | var toInteger = __webpack_require__("UuGF"); 1241 | var defined = __webpack_require__("52gC"); 1242 | // true -> String#at 1243 | // false -> String#codePointAt 1244 | module.exports = function (TO_STRING) { 1245 | return function (that, pos) { 1246 | var s = String(defined(that)); 1247 | var i = toInteger(pos); 1248 | var l = s.length; 1249 | var a, b; 1250 | if (i < 0 || i >= l) return TO_STRING ? '' : undefined; 1251 | a = s.charCodeAt(i); 1252 | return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff 1253 | ? TO_STRING ? s.charAt(i) : a 1254 | : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000; 1255 | }; 1256 | }; 1257 | 1258 | 1259 | /***/ }), 1260 | 1261 | /***/ "hJx8": 1262 | /***/ (function(module, exports, __webpack_require__) { 1263 | 1264 | var dP = __webpack_require__("evD5"); 1265 | var createDesc = __webpack_require__("X8DO"); 1266 | module.exports = __webpack_require__("+E39") ? function (object, key, value) { 1267 | return dP.f(object, key, createDesc(1, value)); 1268 | } : function (object, key, value) { 1269 | object[key] = value; 1270 | return object; 1271 | }; 1272 | 1273 | 1274 | /***/ }), 1275 | 1276 | /***/ "kM2E": 1277 | /***/ (function(module, exports, __webpack_require__) { 1278 | 1279 | var global = __webpack_require__("7KvD"); 1280 | var core = __webpack_require__("FeBl"); 1281 | var ctx = __webpack_require__("+ZMJ"); 1282 | var hide = __webpack_require__("hJx8"); 1283 | var has = __webpack_require__("D2L2"); 1284 | var PROTOTYPE = 'prototype'; 1285 | 1286 | var $export = function (type, name, source) { 1287 | var IS_FORCED = type & $export.F; 1288 | var IS_GLOBAL = type & $export.G; 1289 | var IS_STATIC = type & $export.S; 1290 | var IS_PROTO = type & $export.P; 1291 | var IS_BIND = type & $export.B; 1292 | var IS_WRAP = type & $export.W; 1293 | var exports = IS_GLOBAL ? core : core[name] || (core[name] = {}); 1294 | var expProto = exports[PROTOTYPE]; 1295 | var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]; 1296 | var key, own, out; 1297 | if (IS_GLOBAL) source = name; 1298 | for (key in source) { 1299 | // contains in native 1300 | own = !IS_FORCED && target && target[key] !== undefined; 1301 | if (own && has(exports, key)) continue; 1302 | // export native or passed 1303 | out = own ? target[key] : source[key]; 1304 | // prevent global pollution for namespaces 1305 | exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] 1306 | // bind timers to global for call from export context 1307 | : IS_BIND && own ? ctx(out, global) 1308 | // wrap global constructors for prevent change them in library 1309 | : IS_WRAP && target[key] == out ? (function (C) { 1310 | var F = function (a, b, c) { 1311 | if (this instanceof C) { 1312 | switch (arguments.length) { 1313 | case 0: return new C(); 1314 | case 1: return new C(a); 1315 | case 2: return new C(a, b); 1316 | } return new C(a, b, c); 1317 | } return C.apply(this, arguments); 1318 | }; 1319 | F[PROTOTYPE] = C[PROTOTYPE]; 1320 | return F; 1321 | // make static versions for prototype methods 1322 | })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; 1323 | // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% 1324 | if (IS_PROTO) { 1325 | (exports.virtual || (exports.virtual = {}))[key] = out; 1326 | // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% 1327 | if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out); 1328 | } 1329 | } 1330 | }; 1331 | // type bitmap 1332 | $export.F = 1; // forced 1333 | $export.G = 2; // global 1334 | $export.S = 4; // static 1335 | $export.P = 8; // proto 1336 | $export.B = 16; // bind 1337 | $export.W = 32; // wrap 1338 | $export.U = 64; // safe 1339 | $export.R = 128; // real proto method for `library` 1340 | module.exports = $export; 1341 | 1342 | 1343 | /***/ }), 1344 | 1345 | /***/ "lOnJ": 1346 | /***/ (function(module, exports) { 1347 | 1348 | module.exports = function (it) { 1349 | if (typeof it != 'function') throw TypeError(it + ' is not a function!'); 1350 | return it; 1351 | }; 1352 | 1353 | 1354 | /***/ }), 1355 | 1356 | /***/ "lktj": 1357 | /***/ (function(module, exports, __webpack_require__) { 1358 | 1359 | // 19.1.2.14 / 15.2.3.14 Object.keys(O) 1360 | var $keys = __webpack_require__("Ibhu"); 1361 | var enumBugKeys = __webpack_require__("xnc9"); 1362 | 1363 | module.exports = Object.keys || function keys(O) { 1364 | return $keys(O, enumBugKeys); 1365 | }; 1366 | 1367 | 1368 | /***/ }), 1369 | 1370 | /***/ "n0T6": 1371 | /***/ (function(module, exports, __webpack_require__) { 1372 | 1373 | // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O) 1374 | var $keys = __webpack_require__("Ibhu"); 1375 | var hiddenKeys = __webpack_require__("xnc9").concat('length', 'prototype'); 1376 | 1377 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { 1378 | return $keys(O, hiddenKeys); 1379 | }; 1380 | 1381 | 1382 | /***/ }), 1383 | 1384 | /***/ "qio6": 1385 | /***/ (function(module, exports, __webpack_require__) { 1386 | 1387 | var dP = __webpack_require__("evD5"); 1388 | var anObject = __webpack_require__("77Pl"); 1389 | var getKeys = __webpack_require__("lktj"); 1390 | 1391 | module.exports = __webpack_require__("+E39") ? Object.defineProperties : function defineProperties(O, Properties) { 1392 | anObject(O); 1393 | var keys = getKeys(Properties); 1394 | var length = keys.length; 1395 | var i = 0; 1396 | var P; 1397 | while (length > i) dP.f(O, P = keys[i++], Properties[P]); 1398 | return O; 1399 | }; 1400 | 1401 | 1402 | /***/ }), 1403 | 1404 | /***/ "sB3e": 1405 | /***/ (function(module, exports, __webpack_require__) { 1406 | 1407 | // 7.1.13 ToObject(argument) 1408 | var defined = __webpack_require__("52gC"); 1409 | module.exports = function (it) { 1410 | return Object(defined(it)); 1411 | }; 1412 | 1413 | 1414 | /***/ }), 1415 | 1416 | /***/ "tRu9": 1417 | /***/ (function(module, exports, __webpack_require__) { 1418 | 1419 | module.exports = __webpack_require__("/n6Q"); 1420 | 1421 | /***/ }), 1422 | 1423 | /***/ "vFc/": 1424 | /***/ (function(module, exports, __webpack_require__) { 1425 | 1426 | // false -> Array#indexOf 1427 | // true -> Array#includes 1428 | var toIObject = __webpack_require__("TcQ7"); 1429 | var toLength = __webpack_require__("QRG4"); 1430 | var toAbsoluteIndex = __webpack_require__("fkB2"); 1431 | module.exports = function (IS_INCLUDES) { 1432 | return function ($this, el, fromIndex) { 1433 | var O = toIObject($this); 1434 | var length = toLength(O.length); 1435 | var index = toAbsoluteIndex(fromIndex, length); 1436 | var value; 1437 | // Array#includes uses SameValueZero equality algorithm 1438 | // eslint-disable-next-line no-self-compare 1439 | if (IS_INCLUDES && el != el) while (length > index) { 1440 | value = O[index++]; 1441 | // eslint-disable-next-line no-self-compare 1442 | if (value != value) return true; 1443 | // Array#indexOf ignores holes, Array#includes - not 1444 | } else for (;length > index; index++) if (IS_INCLUDES || index in O) { 1445 | if (O[index] === el) return IS_INCLUDES || index || 0; 1446 | } return !IS_INCLUDES && -1; 1447 | }; 1448 | }; 1449 | 1450 | 1451 | /***/ }), 1452 | 1453 | /***/ "vIB/": 1454 | /***/ (function(module, exports, __webpack_require__) { 1455 | 1456 | "use strict"; 1457 | 1458 | var LIBRARY = __webpack_require__("O4g8"); 1459 | var $export = __webpack_require__("kM2E"); 1460 | var redefine = __webpack_require__("880/"); 1461 | var hide = __webpack_require__("hJx8"); 1462 | var Iterators = __webpack_require__("/bQp"); 1463 | var $iterCreate = __webpack_require__("94VQ"); 1464 | var setToStringTag = __webpack_require__("e6n0"); 1465 | var getPrototypeOf = __webpack_require__("PzxK"); 1466 | var ITERATOR = __webpack_require__("dSzd")('iterator'); 1467 | var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next` 1468 | var FF_ITERATOR = '@@iterator'; 1469 | var KEYS = 'keys'; 1470 | var VALUES = 'values'; 1471 | 1472 | var returnThis = function () { return this; }; 1473 | 1474 | module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) { 1475 | $iterCreate(Constructor, NAME, next); 1476 | var getMethod = function (kind) { 1477 | if (!BUGGY && kind in proto) return proto[kind]; 1478 | switch (kind) { 1479 | case KEYS: return function keys() { return new Constructor(this, kind); }; 1480 | case VALUES: return function values() { return new Constructor(this, kind); }; 1481 | } return function entries() { return new Constructor(this, kind); }; 1482 | }; 1483 | var TAG = NAME + ' Iterator'; 1484 | var DEF_VALUES = DEFAULT == VALUES; 1485 | var VALUES_BUG = false; 1486 | var proto = Base.prototype; 1487 | var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]; 1488 | var $default = $native || getMethod(DEFAULT); 1489 | var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined; 1490 | var $anyNative = NAME == 'Array' ? proto.entries || $native : $native; 1491 | var methods, key, IteratorPrototype; 1492 | // Fix native 1493 | if ($anyNative) { 1494 | IteratorPrototype = getPrototypeOf($anyNative.call(new Base())); 1495 | if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) { 1496 | // Set @@toStringTag to native iterators 1497 | setToStringTag(IteratorPrototype, TAG, true); 1498 | // fix for some old engines 1499 | if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis); 1500 | } 1501 | } 1502 | // fix Array#{values, @@iterator}.name in V8 / FF 1503 | if (DEF_VALUES && $native && $native.name !== VALUES) { 1504 | VALUES_BUG = true; 1505 | $default = function values() { return $native.call(this); }; 1506 | } 1507 | // Define iterator 1508 | if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) { 1509 | hide(proto, ITERATOR, $default); 1510 | } 1511 | // Plug for library 1512 | Iterators[NAME] = $default; 1513 | Iterators[TAG] = returnThis; 1514 | if (DEFAULT) { 1515 | methods = { 1516 | values: DEF_VALUES ? $default : getMethod(VALUES), 1517 | keys: IS_SET ? $default : getMethod(KEYS), 1518 | entries: $entries 1519 | }; 1520 | if (FORCED) for (key in methods) { 1521 | if (!(key in proto)) redefine(proto, key, methods[key]); 1522 | } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods); 1523 | } 1524 | return methods; 1525 | }; 1526 | 1527 | 1528 | /***/ }), 1529 | 1530 | /***/ "vgs7": 1531 | /***/ (function(module, __webpack_exports__, __webpack_require__) { 1532 | 1533 | "use strict"; 1534 | Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); 1535 | 1536 | // EXTERNAL MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"C://src//markdown-components//runjs//node_modules//.cache//cache-loader"}!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/RunJavascript.vue 1537 | var RunJavascript = __webpack_require__("H/H3"); 1538 | 1539 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/template-compiler?{"id":"data-v-17e2d56a","hasScoped":false,"optionsId":"2","buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/components/RunJavascript.vue 1540 | var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"relative pa3 bg-near-white br2"},[(_vm.showButtons)?_c('div',{staticClass:"flex flex-row absolute top-0 right-0"},[(_vm.show_copy_button)?_c('button',{staticClass:"no-select pointer f6 pv1 lh-copy ph3 white bn bg-black-20 hover-bg-blue darken-10 hint--top",class:_vm.show_run_button ? '' : 'br2 br--top br--right',attrs:{"type":"button","aria-label":"Copy to Clipboard","data-clipboard-text":_vm.copy_code}},[_c('span',{staticClass:"f6 ttu b"},[_vm._v("Copy")])]):_vm._e(),(_vm.show_run_button)?_c('button',{staticClass:"no-select pointer f6 pv1 lh-copy ph3 white bn bg-blue br2 br--top br--right darken-10",attrs:{"type":"button"},on:{"click":_vm.run}},[_c('span',{staticClass:"f6 ttu b"},[_vm._v("Run")])]):_vm._e()]):_vm._e(),_c('div',[_c('pre',{staticClass:"f6 line-numbers"},[_c('code',{ref:"code",staticClass:"db overflow-x-auto language-javascript",attrs:{"spellcheck":"false"}},[_vm._v(_vm._s(_vm.code))])])]),(_vm.is_loading)?_c('div',{staticClass:"mt3"},[_c('div',{staticClass:"bb b--black-10"}),_vm._m(0)]):(_vm.has_text_result)?_c('div',{staticClass:"mt3"},[_c('div',{staticClass:"bb b--black-10"}),_c('h4',{staticClass:"mt3 mb2"},[_vm._v("Output")]),_c('div',[_c('pre',{staticClass:"f6"},[_c('code',{ref:"output",staticClass:"db overflow-auto language-javascript",staticStyle:{"max-height":"25rem"},attrs:{"spellcheck":"false"}},[_vm._v(_vm._s(_vm.text_result))])])])]):_vm._e()])} 1541 | var staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"v-mid fw6 dark-gray mt3 mb"},[_c('span',{staticClass:"fa fa-spin fa-spinner"}),_vm._v(" Running...")])}] 1542 | 1543 | // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/component-normalizer.js 1544 | /* globals __VUE_SSR_CONTEXT__ */ 1545 | 1546 | // IMPORTANT: Do NOT use ES2015 features in this file (except for modules). 1547 | // This module is a runtime utility for cleaner component module output and will 1548 | // be included in the final webpack user bundle. 1549 | 1550 | function normalizeComponent ( 1551 | scriptExports, 1552 | render, 1553 | staticRenderFns, 1554 | functionalTemplate, 1555 | injectStyles, 1556 | scopeId, 1557 | moduleIdentifier, /* server only */ 1558 | shadowMode /* vue-cli only */ 1559 | ) { 1560 | scriptExports = scriptExports || {} 1561 | 1562 | // ES6 modules interop 1563 | var type = typeof scriptExports.default 1564 | if (type === 'object' || type === 'function') { 1565 | scriptExports = scriptExports.default 1566 | } 1567 | 1568 | // Vue.extend constructor export interop 1569 | var options = typeof scriptExports === 'function' 1570 | ? scriptExports.options 1571 | : scriptExports 1572 | 1573 | // render functions 1574 | if (render) { 1575 | options.render = render 1576 | options.staticRenderFns = staticRenderFns 1577 | options._compiled = true 1578 | } 1579 | 1580 | // functional template 1581 | if (functionalTemplate) { 1582 | options.functional = true 1583 | } 1584 | 1585 | // scopedId 1586 | if (scopeId) { 1587 | options._scopeId = scopeId 1588 | } 1589 | 1590 | var hook 1591 | if (moduleIdentifier) { // server build 1592 | hook = function (context) { 1593 | // 2.3 injection 1594 | context = 1595 | context || // cached call 1596 | (this.$vnode && this.$vnode.ssrContext) || // stateful 1597 | (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional 1598 | // 2.2 with runInNewContext: true 1599 | if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { 1600 | context = __VUE_SSR_CONTEXT__ 1601 | } 1602 | // inject component styles 1603 | if (injectStyles) { 1604 | injectStyles.call(this, context) 1605 | } 1606 | // register component module identifier for async chunk inferrence 1607 | if (context && context._registeredComponents) { 1608 | context._registeredComponents.add(moduleIdentifier) 1609 | } 1610 | } 1611 | // used by ssr in case component is cached and beforeCreate 1612 | // never gets called 1613 | options._ssrRegister = hook 1614 | } else if (injectStyles) { 1615 | hook = shadowMode 1616 | ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } 1617 | : injectStyles 1618 | } 1619 | 1620 | if (hook) { 1621 | if (options.functional) { 1622 | // for template-only hot-reload because in that case the render fn doesn't 1623 | // go through the normalizer 1624 | options._injectStyles = hook 1625 | // register for functioal component in vue file 1626 | var originalRender = options.render 1627 | options.render = function renderWithStyleInjection (h, context) { 1628 | hook.call(context) 1629 | return originalRender(h, context) 1630 | } 1631 | } else { 1632 | // inject component registration as beforeCreate hook 1633 | var existing = options.beforeCreate 1634 | options.beforeCreate = existing 1635 | ? [].concat(existing, hook) 1636 | : [hook] 1637 | } 1638 | } 1639 | 1640 | return { 1641 | exports: scriptExports, 1642 | options: options 1643 | } 1644 | } 1645 | 1646 | // CONCATENATED MODULE: ./src/components/RunJavascript.vue 1647 | /* script */ 1648 | 1649 | 1650 | /* template */ 1651 | 1652 | /* template functional */ 1653 | var __vue_template_functional__ = false 1654 | /* styles */ 1655 | var __vue_styles__ = null 1656 | /* scopeId */ 1657 | var __vue_scopeId__ = null 1658 | /* moduleIdentifier (server only) */ 1659 | var __vue_module_identifier__ = null 1660 | 1661 | var Component = normalizeComponent( 1662 | RunJavascript["a" /* default */], 1663 | render, 1664 | staticRenderFns, 1665 | __vue_template_functional__, 1666 | __vue_styles__, 1667 | __vue_scopeId__, 1668 | __vue_module_identifier__ 1669 | ) 1670 | 1671 | /* harmony default export */ var components_RunJavascript = (Component.exports); 1672 | 1673 | // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js 1674 | 1675 | 1676 | /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_RunJavascript); 1677 | 1678 | 1679 | /***/ }), 1680 | 1681 | /***/ "xGkn": 1682 | /***/ (function(module, exports, __webpack_require__) { 1683 | 1684 | "use strict"; 1685 | 1686 | var addToUnscopables = __webpack_require__("4mcu"); 1687 | var step = __webpack_require__("EGZi"); 1688 | var Iterators = __webpack_require__("/bQp"); 1689 | var toIObject = __webpack_require__("TcQ7"); 1690 | 1691 | // 22.1.3.4 Array.prototype.entries() 1692 | // 22.1.3.13 Array.prototype.keys() 1693 | // 22.1.3.29 Array.prototype.values() 1694 | // 22.1.3.30 Array.prototype[@@iterator]() 1695 | module.exports = __webpack_require__("vIB/")(Array, 'Array', function (iterated, kind) { 1696 | this._t = toIObject(iterated); // target 1697 | this._i = 0; // next index 1698 | this._k = kind; // kind 1699 | // 22.1.5.2.1 %ArrayIteratorPrototype%.next() 1700 | }, function () { 1701 | var O = this._t; 1702 | var kind = this._k; 1703 | var index = this._i++; 1704 | if (!O || index >= O.length) { 1705 | this._t = undefined; 1706 | return step(1); 1707 | } 1708 | if (kind == 'keys') return step(0, index); 1709 | if (kind == 'values') return step(0, O[index]); 1710 | return step(0, [index, O[index]]); 1711 | }, 'values'); 1712 | 1713 | // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7) 1714 | Iterators.Arguments = Iterators.Array; 1715 | 1716 | addToUnscopables('keys'); 1717 | addToUnscopables('values'); 1718 | addToUnscopables('entries'); 1719 | 1720 | 1721 | /***/ }), 1722 | 1723 | /***/ "xah7": 1724 | /***/ (function(module, exports, __webpack_require__) { 1725 | 1726 | module.exports = __webpack_require__("BwfY"); 1727 | 1728 | /***/ }), 1729 | 1730 | /***/ "xnc9": 1731 | /***/ (function(module, exports) { 1732 | 1733 | // IE 8- don't enum bug keys 1734 | module.exports = ( 1735 | 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf' 1736 | ).split(','); 1737 | 1738 | 1739 | /***/ }), 1740 | 1741 | /***/ "zQR9": 1742 | /***/ (function(module, exports, __webpack_require__) { 1743 | 1744 | "use strict"; 1745 | 1746 | var $at = __webpack_require__("h65t")(true); 1747 | 1748 | // 21.1.3.27 String.prototype[@@iterator]() 1749 | __webpack_require__("vIB/")(String, 'String', function (iterated) { 1750 | this._t = String(iterated); // target 1751 | this._i = 0; // next index 1752 | // 21.1.5.2.1 %StringIteratorPrototype%.next() 1753 | }, function () { 1754 | var O = this._t; 1755 | var index = this._i; 1756 | var point; 1757 | if (index >= O.length) return { value: undefined, done: true }; 1758 | point = $at(O, index); 1759 | this._i += point.length; 1760 | return { value: point, done: false }; 1761 | }); 1762 | 1763 | 1764 | /***/ }) 1765 | 1766 | /******/ })["default"]; 1767 | }); 1768 | //# sourceMappingURL=RunJavascript.umd.js.map --------------------------------------------------------------------------------