Welcome to mirror list, hosted at ThFree Co, Russian Federation.

viewer.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 678dc5afa15e159734193f6ad0d916ba92cec11c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
!function(e){function t(t){for(var i,a,h=t[0],r=t[1],c=0,l=[];c<h.length;c++)a=h[c],Object.prototype.hasOwnProperty.call(n,a)&&n[a]&&l.push(n[a][0]),n[a]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(o&&o(t);l.length;)l.shift()()}var i={},n={204:0};function a(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.e=function(e){var t=[],i=n[e];if(0!==i)if(i)t.push(i[2]);else{var h=new Promise((function(t,a){i=n[e]=[t,a]}));t.push(i[2]=h);var r,c=document.createElement("script");c.charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.src=function(e){return a.p+""+({0:"vendors~editor-collab~editor-guest~editor-rich~files-modal",1:"highlight/1c",2:"highlight/abnf",3:"highlight/accesslog",4:"highlight/actionscript",5:"highlight/ada",6:"highlight/angelscript",7:"highlight/apache",8:"highlight/applescript",9:"highlight/arcade",10:"highlight/arduino",11:"highlight/armasm",12:"highlight/asciidoc",13:"highlight/aspectj",14:"highlight/autohotkey",15:"highlight/autoit",16:"highlight/avrasm",17:"highlight/awk",18:"highlight/axapta",19:"highlight/bash",20:"highlight/basic",21:"highlight/bnf",22:"highlight/brainfuck",23:"highlight/c",24:"highlight/c-like",25:"highlight/cal",26:"highlight/capnproto",27:"highlight/ceylon",28:"highlight/clean",29:"highlight/clojure",30:"highlight/clojure-repl",31:"highlight/cmake",32:"highlight/coffeescript",33:"highlight/coq",34:"highlight/cos",35:"highlight/cpp",36:"highlight/crmsh",37:"highlight/crystal",38:"highlight/csharp",39:"highlight/csp",40:"highlight/css",41:"highlight/d",42:"highlight/dart",43:"highlight/delphi",44:"highlight/diff",45:"highlight/django",46:"highlight/dns",47:"highlight/dockerfile",48:"highlight/dos",49:"highlight/dsconfig",50:"highlight/dts",51:"highlight/dust",52:"highlight/ebnf",53:"highlight/elixir",54:"highlight/elm",55:"highlight/erb",56:"highlight/erlang",57:"highlight/erlang-repl",58:"highlight/excel",59:"highlight/fix",60:"highlight/flix",61:"highlight/fortran",62:"highlight/fsharp",63:"highlight/gams",64:"highlight/gauss",65:"highlight/gcode",66:"highlight/gherkin",67:"highlight/glsl",68:"highlight/gml",69:"highlight/go",70:"highlight/golo",71:"highlight/gradle",72:"highlight/groovy",73:"highlight/haml",74:"highlight/handlebars",75:"highlight/haskell",76:"highlight/haxe",77:"highlight/hsp",78:"highlight/htmlbars",79:"highlight/http",80:"highlight/hy",81:"highlight/inform7",82:"highlight/ini",83:"highlight/irpf90",84:"highlight/isbl",85:"highlight/java",86:"highlight/javascript",87:"highlight/jboss-cli",88:"highlight/json",89:"highlight/julia",90:"highlight/julia-repl",91:"highlight/kotlin",92:"highlight/lasso",93:"highlight/latex",94:"highlight/ldif",95:"highlight/leaf",96:"highlight/less",97:"highlight/lisp",98:"highlight/livecodeserver",99:"highlight/livescript",100:"highlight/llvm",101:"highlight/lsl",102:"highlight/lua",103:"highlight/makefile",104:"highlight/markdown",105:"highlight/mathematica",106:"highlight/matlab",107:"highlight/maxima",108:"highlight/mel",109:"highlight/mercury",110:"highlight/mipsasm",111:"highlight/mizar",112:"highlight/mojolicious",113:"highlight/monkey",114:"highlight/moonscript",115:"highlight/n1ql",116:"highlight/nginx",117:"highlight/nim",118:"highlight/nix",119:"highlight/node-repl",120:"highlight/nsis",121:"highlight/objectivec",122:"highlight/ocaml",123:"highlight/openscad",124:"highlight/oxygene",125:"highlight/parser3",126:"highlight/perl",127:"highlight/pf",128:"highlight/pgsql",129:"highlight/php",130:"highlight/php-template",131:"highlight/plaintext",132:"highlight/pony",133:"highlight/powershell",134:"highlight/processing",135:"highlight/profile",136:"highlight/prolog",137:"highlight/properties",138:"highlight/protobuf",139:"highlight/puppet",140:"highlight/purebasic",141:"highlight/python",142:"highlight/python-repl",143:"highlight/q",144:"highlight/qml",145:"highlight/r",146:"highlight/reasonml",147:"highlight/rib",148:"highlight/roboconf",149:"highlight/routeros",150:"highlight/rsl",151:"highlight/ruby",152:"highlight/ruleslanguage",153:"highlight/rust",154:"highlight/sas",155:"highlight/scala",156:"highlight/scheme",157:"highlight/scilab",158:"highlight/scss",159:"highlight/shell",160:"highlight/smali",161:"highlight/smalltalk",162:"highlight/sml",163:"highlight/sqf",164:"highlight/sql",165:"highlight/stan",166:"highlight/stata",167:"highlight/step21",168:"highlight/stylus",169:"highlight/subunit",170:"highlight/swift",171:"highlight/taggerscript",172:"highlight/tap",173:"highlight/tcl",174:"highlight/thrift",175:"highlight/tp",176:"highlight/twig",177:"highlight/typescript",178:"highlight/vala",179:"highlight/vbnet",180:"highlight/vbscript",181:"highlight/vbscript-html",182:"highlight/verilog",183:"highlight/vhdl",184:"highlight/vim",185:"highlight/x86asm",186:"highlight/xl",187:"highlight/xml",188:"highlight/xquery",189:"highlight/yaml",190:"highlight/zephir",191:"vendors~editor-collab~editor-guest",192:"vendors~editor~files-modal",193:"editor",194:"editor-collab",195:"editor-guest",196:"editor-rich",198:"files-modal",201:"vendors~editor",202:"vendors~editor-rich",203:"vendors~files-modal"}[e]||e)+".js?v="+{0:"69d8df3344a35797822a",1:"e66c8cdc6612bf2a9a5c",2:"b9119df6ab89bbda7875",3:"0beb03cb0e924345aa9e",4:"1c2708a2a309cebaff75",5:"432c54ead16032de4735",6:"39176e67774923f44140",7:"ac3fb12ecee1fdbbb76c",8:"87db0dbe47adf20518a2",9:"6dcbde0219a80011b318",10:"62b6f9248787017d7b50",11:"e04acdbac0cebb682e7a",12:"dea775cf26be5a5319d0",13:"b53815fc11314c658888",14:"fb9cf8a88c98f2519975",15:"2d887f2ab4969f6989c6",16:"80497215b9bfd60711fd",17:"17060588f634a81acc5e",18:"39b7914dbb6341b642bc",19:"8d53f943fd7e94e1b678",20:"96c8ae616e08159869c8",21:"060b299e0035f2868c27",22:"8d0e8686fe124295039c",23:"e4d86849f1ff037e739d",24:"4b82e796295f8309dbc9",25:"44b0e584487b12fd1b3c",26:"724dff1dbe01c9cde7d9",27:"db34865281f9bb6241f3",28:"00911511fbc649dcea22",29:"4562ffbce1f525bd1c45",30:"6a49fb9ffffbdc501e1a",31:"d8b7f693070e4502380e",32:"df77e89e63a39d9845c3",33:"92b9ad2235fee61b4767",34:"efea96eb685efcac5759",35:"7fc7231055efcc062666",36:"e6e962fe014785866537",37:"1270a58d45a09a57f873",38:"296b244f40ee6dad5f2a",39:"384cf2bc7d0baacfe91b",40:"75bf9e2d804a2f186016",41:"c286669881fc98daf0ba",42:"8337bef9388558436823",43:"d22c1c37c3ff0947b9a8",44:"acbe0bab9ab76d0f8506",45:"fe1284a079f4008212e1",46:"7dd5b7d5eeea2a1e9da4",47:"0f7d601171de336c2815",48:"007bcb5a0d2ca28d516b",49:"416764b8c61fc9d20b01",50:"cea0255705a3f88d63bf",51:"372ac14c26d4e6ba7f21",52:"d8ec6cfa1c90f4a87d2a",53:"ad91e15071affcd27b32",54:"eeaae9eae35fc7d2117d",55:"d736c8da012463917bac",56:"7c059289511952d34377",57:"9e13e20724ef6298ce11",58:"a4c3cd8b3d376dde506e",59:"a1987340708ebbcee3d4",60:"967d1bbf369a3ea76dcd",61:"ce25a03c744c75b4f6bd",62:"e60e8c90b3c3e2600286",63:"bef3743dec9433e78825",64:"d52928051a1c5439b23e",65:"a3a5ac08c36b943a5f22",66:"5a6b2ae032af6961a045",67:"a118f8ac9bf07ae83e64",68:"bae06a62a6bbf92efa26",69:"c2d8994146b2428beaaf",70:"19ce1de0af4989f6a0be",71:"97219276d4fb2d05a95c",72:"4c20e1fa8e37aeabc333",73:"4536266dfc3ca2c1a9e3",74:"80754807b77d24af825f",75:"996a39184d8b0545ba31",76:"8ba0ee79d49d6f336789",77:"add285ccbd02cde99d0b",78:"255e2008a5f9a55f16bf",79:"bdaef75b7d649b8cb9e8",80:"d92862fe9a188775c6ad",81:"e6a3f6f7fe7968ff65b1",82:"57819a679e3ff8c693fa",83:"6d75f584c3c1716f3888",84:"0b3057df97e075360fea",85:"0467de1ed6479a26cb46",86:"77526655675e5f24057c",87:"58b50874f1c3b3026560",88:"71affdfb4c852d97b288",89:"229b013ace5e3df8755d",90:"d6622eb1952797edbb2b",91:"9e29c2b6d82f023220a8",92:"e22c165d2d59ae8cd9c0",93:"652b7391d888ee1e4550",94:"3617916e569ee9adf2b2",95:"15bd7928af064652b93a",96:"462de208b3374f022432",97:"c9b4d2d89e98c5ec01b0",98:"88d10e307a5bc18b87f6",99:"2acb5251bafc229cde4b",100:"3e2ceb80593224e8c949",101:"e651df3fe417c83468e2",102:"194c44ca5c08e64fe572",103:"c7ada5f929f756cf7bcd",104:"4ac7676920734b11b627",105:"6ffd3098d260a5c3a993",106:"a4f1d8c7e134379a6ced",107:"1b3b5d8afb7ad892d9e1",108:"3e482247f3ae4a423a47",109:"9c82baa4d1fff1573791",110:"d1bf5392eeb59650743b",111:"dbc3a76086cacc6bd7eb",112:"e46d0baba0c6b27d1e30",113:"5475fcd9691225c704e9",114:"8d5c374e08ee447ac2f1",115:"3097e3783d05e9a35718",116:"7c68a7b09ecaa83eff7b",117:"5f6d409abbd39dbd8e92",118:"94dcf38760f760efb00e",119:"30d3a0dbcc281f6a690e",120:"acda8fb8213990bc9848",121:"79abbd4dae9f211e9bf0",122:"167c27f61ab490523d24",123:"4809055a6bfe86027f6e",124:"d27d34a79aa373032417",125:"b7f095393e06c9ca51b0",126:"fd67423f0906c5bb21e8",127:"2ccda489ecf64272860b",128:"7a9b4bb4d4ae00f28f6b",129:"bdae0d0d2e577d9bfa1c",130:"1661d98032b19a8fe818",131:"18ed69487dc45bdfbd2e",132:"b9c0a6d5905b631e1395",133:"1556f4ee36b598f00d98",134:"52ddc1e8a4f440a1f1d6",135:"5d2bc74f04e90461272c",136:"55bd26046b9a6d006fa5",137:"c267a424e9df09690c09",138:"ae0b56c2daa57f1c0b10",139:"498a27450794980dc73f",140:"bd483a5fb2b5eec567f9",141:"a4f9f974e61ddc229dcf",142:"13552c007a072e64ac63",143:"608a8e9519051cddef23",144:"8f32a1bb33f7949c3a25",145:"f82145465343ce377560",146:"843c299daf1cb7c87b8c",147:"7da694a3b0a543905f8d",148:"ad2cf8c410ed9b4f461b",149:"103b15f4098097e2d4c1",150:"a4f91176a08a89b19fff",151:"6664f92424d0159d1daa",152:"699145f5c8aaad4299b9",153:"e26f1fa8fa1fb1f6611c",154:"820a123f76ae53e370ad",155:"cd1fc5e5f20574a50dfa",156:"6f39e7bdf9164ae174bc",157:"b1172c1399724fddd234",158:"38c342aa8d262c4bf623",159:"bde723904665ac1b926e",160:"edc8ad5800db949593e6",161:"6fdf2b9066f67ddad5f2",162:"8cde7e3bbc5e8c4963c6",163:"c2c6889154f0848f827c",164:"666b825685bae8655e6b",165:"148f82f93d8c1a4b426e",166:"d757bea8a8640d16e0a9",167:"40215f18ebc51f8fbd7f",168:"50f6e35da82b66585744",169:"6c96f998466d2483bbe7",170:"46055df9f52e33c86567",171:"3a3c8dac0f6ed45fc530",172:"dbba0b438ebd9c40a2e9",173:"cccd7ddb73928571f7d3",174:"6e87f8e3b3db22b2f628",175:"2b019b195f223b2bd742",176:"e78d4c33e14bfb54024d",177:"41246ba9a6de1de69c31",178:"d49d957645fc52a1878e",179:"261deeb0a265430c9d43",180:"e63ed2682e93aa93b106",181:"3a0d54aaf0a915732e96",182:"128bf0eccb7ecc3a9b7b",183:"b8f54d94a13ea07fbd44",184:"15dbbab350350a6d65ca",185:"d228389c3563cadc7363",186:"dd76f53caa053a38e235",187:"729619c3e38db95ec342",188:"17923164e0616c99c550",189:"61bb75e1172d5ef37e89",190:"4cbf3eafbf57ebfd432b",191:"68c35fd480a72d119333",192:"cb4cf1ab68cfae30ad24",193:"049692530fb001234176",194:"dab8088d81801f19ba24",195:"6e8b5a7679f7bb9bc2d0",196:"5dd89e3450633a765813",198:"80b32436aaeb31d7ad0f",201:"69f645fd2ff1c5e5422c",202:"b2c52b1fe6abc0d4dded",203:"22f4021876ecddad87c8"}[e]}(e);var o=new Error;r=function(t){c.onerror=c.onload=null,clearTimeout(l);var i=n[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),h=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+a+": "+h+")",o.name="ChunkLoadError",o.type=a,o.request=h,i[1](o)}n[e]=void 0}};var l=setTimeout((function(){r({type:"timeout",target:c})}),12e4);c.onerror=c.onload=r,document.head.appendChild(c)}return Promise.all(t)},a.m=e,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(i,n,function(t){return e[t]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/js/",a.oe=function(e){throw console.error(e),e};var h=window.textWebpackJsonp=window.textWebpackJsonp||[],r=h.push.bind(h);h.push=t,h=h.slice();for(var c=0;c<h.length;c++)t(h[c]);var o=r;a(a.s=199)}({126:function(e,t,i){"use strict";i.r(t);var n=i(127),a=i.n(n);for(var h in n)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(h);t.default=a.a},127:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(192),i.e(201),i.e(193)]).then(i.bind(null,142))}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount:function(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}};t.default=n},190:function(e,t,i){"use strict";var n=i(46),a=i.n(n),h=i(47),r=i.n(h)()(a.a);r.push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n","",{version:3,sources:["webpack://./src/components/ViewerComponent.vue"],names:[],mappings:";AAmEA;CACA,yBAAA;CACA,SAAA;AACA",sourcesContent:['\x3c!--\n  - @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>\n  -\n  - @author Julius Härtl <jus@bitgrid.net>\n  -\n  - @license GNU AGPL version 3 or any later version\n  -\n  - This program is free software: you can redistribute it and/or modify\n  - it under the terms of the GNU Affero General Public License as\n  - published by the Free Software Foundation, either version 3 of the\n  - License, or (at your option) any later version.\n  -\n  - This program is distributed in the hope that it will be useful,\n  - but WITHOUT ANY WARRANTY; without even the implied warranty of\n  - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n  - GNU Affero General Public License for more details.\n  -\n  - You should have received a copy of the GNU Affero General Public License\n  - along with this program. If not, see <http://www.gnu.org/licenses/>.\n  -\n  --\x3e\n\n<template>\n\t<EditorWrapper :file-id="fileid"\n\t\t:relative-path="filename"\n\t\t:active="active"\n\t\t:share-token="shareToken"\n\t\t:mime="mime" />\n</template>\n\n<script>\nexport default {\n\tname: \'ViewerComponent\',\n\tcomponents: {\n\t\tEditorWrapper: () => import(/* webpackChunkName: "editor" */\'./EditorWrapper\'),\n\t},\n\tprops: {\n\t\tfilename: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tfileid: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\tactive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\tshareToken: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tmime: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\tbeforeMount() {\n\t\t// FIXME Dirty fix to avoid recreating the component on stable16\n\t\tif (typeof this.$parent.$parent !== \'undefined\' && this.$parent.$parent.onResize) {\n\t\t\twindow.removeEventListener(\'resize\', this.$parent.$parent.onResize)\n\t\t}\n\t},\n}\n<\/script>\n<style>\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n</style>\n'],sourceRoot:""}]),t.a=r},192:function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}));var n=function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,"share-token":this.shareToken,mime:this.mime}})},a=[]},199:function(e,t,i){"use strict";var n,a=(n=i(200))&&n.__esModule?n:{default:n},h=i(75);function r(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",(function(){void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[].concat(r(h.openMimetypesMarkdown),r(h.openMimetypesPlainText)),component:a.default,group:null}):console.error("Viewer app is not installed")}))},200:function(e,t,i){"use strict";i.r(t);var n=i(192),a=i(126);for(var h in a)["default"].indexOf(h)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(h);i(201);var r=i(32),c=Object(r.a)(a.default,n.a,n.b,!1,null,null,null);t.default=c.exports},201:function(e,t,i){"use strict";var n=i(45),a=i.n(n),h=i(190),r={insert:"head",singleton:!1};a()(h.a,r),h.a.locals},32:function(e,t,i){"use strict";function n(e,t,i,n,a,h,r,c){var o,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),h&&(l._scopeId="data-v-"+h),r?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=o):a&&(o=c?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),o)if(l.functional){l._injectStyles=o;var f=l.render;l.render=function(e,t){return o.call(t),f(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,o):[o]}return{exports:e,options:l}}i.d(t,"a",(function(){return n}))},45:function(e,t,i){"use strict";var n,a=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},h=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function c(e){for(var t=-1,i=0;i<r.length;i++)if(r[i].identifier===e){t=i;break}return t}function o(e,t){for(var i={},n=[],a=0;a<e.length;a++){var h=e[a],o=t.base?h[0]+t.base:h[0],l=i[o]||0,f="".concat(o," ").concat(l);i[o]=l+1;var d=c(f),g={css:h[1],media:h[2],sourceMap:h[3]};-1!==d?(r[d].references++,r[d].updater(g)):r.push({identifier:f,updater:p(g,t),references:1}),n.push(f)}return n}function l(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var a=i.nc;a&&(n.nonce=a)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var r=h(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var f,d=(f=[],function(e,t){return f[e]=t,f.filter(Boolean).join("\n")});function g(e,t,i,n){var a=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,a);else{var h=document.createTextNode(a),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(h,r[t]):e.appendChild(h)}}function s(e,t,i){var n=i.css,a=i.media,h=i.sourceMap;if(a?e.setAttribute("media",a):e.removeAttribute("media"),h&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(h))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var b=null,u=0;function p(e,t){var i,n,a;if(t.singleton){var h=u++;i=b||(b=l(t)),n=g.bind(null,i,h,!1),a=g.bind(null,i,h,!0)}else i=l(t),n=s.bind(null,i,t),a=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else a()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=a());var i=o(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var a=c(i[n]);r[a].references--}for(var h=o(e,t),l=0;l<i.length;l++){var f=c(i[l]);0===r[f].references&&(r[f].updater(),r.splice(f,1))}i=h}}}},46:function(e,t,i){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var i=[],n=!0,a=!1,h=void 0;try{for(var r,c=e[Symbol.iterator]();!(n=(r=c.next()).done)&&(i.push(r.value),!t||i.length!==t);n=!0);}catch(e){a=!0,h=e}finally{try{n||null==c.return||c.return()}finally{if(a)throw h}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}e.exports=function(e){var t=n(e,4),i=t[1],a=t[3];if("function"==typeof btoa){var h=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),c="/*# ".concat(r," */"),o=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(o).concat([c]).join("\n")}return[i].join("\n")}},47:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=e(t);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,n){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(n)for(var h=0;h<this.length;h++){var r=this[h][0];null!=r&&(a[r]=!0)}for(var c=0;c<e.length;c++){var o=[].concat(e[c]);n&&a[o[0]]||(i&&(o[2]?o[2]="".concat(i," and ").concat(o[2]):o[2]=i),t.push(o))}},t}},75:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMimetypesPlainText=t.openMimetypesMarkdown=t.openMimetypes=void 0;
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var n=["text/markdown"];t.openMimetypesMarkdown=n;var a=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/org","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"];t.openMimetypesPlainText=a;var h=[].concat(n,a);t.openMimetypes=h}});
//# sourceMappingURL=viewer.js.map