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: ce980afaa5746d0bac01ab953389e58362d17d59 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
!function(e){function t(t){for(var i,a,c=t[0],r=t[1],n=0,g=[];n<c.length;n++)a=c[n],Object.prototype.hasOwnProperty.call(h,a)&&h[a]&&g.push(h[a][0]),h[a]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(l&&l(t);g.length;)g.shift()()}var i={},h={200:0};function a(t){if(i[t])return i[t].exports;var h=i[t]={i:t,l:!1,exports:{}};return e[t].call(h.exports,h,h.exports,a),h.l=!0,h.exports}a.e=function(e){var t=[],i=h[e];if(0!==i)if(i)t.push(i[2]);else{var c=new Promise((function(t,a){i=h[e]=[t,a]}));t.push(i[2]=c);var r,n=document.createElement("script");n.charset="utf-8",n.timeout=120,a.nc&&n.setAttribute("nonce",a.nc),n.src=function(e){return a.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/cal",25:"highlight/capnproto",26:"highlight/ceylon",27:"highlight/clean",28:"highlight/clojure",29:"highlight/clojure-repl",30:"highlight/cmake",31:"highlight/coffeescript",32:"highlight/coq",33:"highlight/cos",34:"highlight/cpp",35:"highlight/crmsh",36:"highlight/crystal",37:"highlight/cs",38:"highlight/csp",39:"highlight/css",40:"highlight/d",41:"highlight/dart",42:"highlight/delphi",43:"highlight/diff",44:"highlight/django",45:"highlight/dns",46:"highlight/dockerfile",47:"highlight/dos",48:"highlight/dsconfig",49:"highlight/dts",50:"highlight/dust",51:"highlight/ebnf",52:"highlight/elixir",53:"highlight/elm",54:"highlight/erb",55:"highlight/erlang",56:"highlight/erlang-repl",57:"highlight/excel",58:"highlight/fix",59:"highlight/flix",60:"highlight/fortran",61:"highlight/fsharp",62:"highlight/gams",63:"highlight/gauss",64:"highlight/gcode",65:"highlight/gherkin",66:"highlight/glsl",67:"highlight/gml",68:"highlight/go",69:"highlight/golo",70:"highlight/gradle",71:"highlight/groovy",72:"highlight/haml",73:"highlight/handlebars",74:"highlight/haskell",75:"highlight/haxe",76:"highlight/hsp",77:"highlight/htmlbars",78:"highlight/http",79:"highlight/hy",80:"highlight/inform7",81:"highlight/ini",82:"highlight/irpf90",83:"highlight/isbl",84:"highlight/java",85:"highlight/javascript",86:"highlight/jboss-cli",87:"highlight/json",88:"highlight/julia",89:"highlight/julia-repl",90:"highlight/kotlin",91:"highlight/lasso",92:"highlight/ldif",93:"highlight/leaf",94:"highlight/less",95:"highlight/lisp",96:"highlight/livecodeserver",97:"highlight/livescript",98:"highlight/llvm",99:"highlight/lsl",100:"highlight/lua",101:"highlight/makefile",102:"highlight/markdown",103:"highlight/mathematica",104:"highlight/matlab",105:"highlight/maxima",106:"highlight/mel",107:"highlight/mercury",108:"highlight/mipsasm",109:"highlight/mizar",110:"highlight/mojolicious",111:"highlight/monkey",112:"highlight/moonscript",113:"highlight/n1ql",114:"highlight/nginx",115:"highlight/nimrod",116:"highlight/nix",117:"highlight/nsis",118:"highlight/objectivec",119:"highlight/ocaml",120:"highlight/openscad",121:"highlight/oxygene",122:"highlight/parser3",123:"highlight/perl",124:"highlight/pf",125:"highlight/pgsql",126:"highlight/php",127:"highlight/plaintext",128:"highlight/pony",129:"highlight/powershell",130:"highlight/processing",131:"highlight/profile",132:"highlight/prolog",133:"highlight/properties",134:"highlight/protobuf",135:"highlight/puppet",136:"highlight/purebasic",137:"highlight/python",138:"highlight/q",139:"highlight/qml",140:"highlight/r",141:"highlight/reasonml",142:"highlight/rib",143:"highlight/roboconf",144:"highlight/routeros",145:"highlight/rsl",146:"highlight/ruby",147:"highlight/ruleslanguage",148:"highlight/rust",149:"highlight/sas",150:"highlight/scala",151:"highlight/scheme",152:"highlight/scilab",153:"highlight/scss",154:"highlight/shell",155:"highlight/smali",156:"highlight/smalltalk",157:"highlight/sml",158:"highlight/sqf",159:"highlight/sql",160:"highlight/stan",161:"highlight/stata",162:"highlight/step21",163:"highlight/stylus",164:"highlight/subunit",165:"highlight/swift",166:"highlight/taggerscript",167:"highlight/tap",168:"highlight/tcl",169:"highlight/tex",170:"highlight/thrift",171:"highlight/tp",172:"highlight/twig",173:"highlight/typescript",174:"highlight/vala",175:"highlight/vbnet",176:"highlight/vbscript",177:"highlight/vbscript-html",178:"highlight/verilog",179:"highlight/vhdl",180:"highlight/vim",181:"highlight/x86asm",182:"highlight/xl",183:"highlight/xml",184:"highlight/xquery",185:"highlight/yaml",186:"highlight/zephir",187:"vendors~editor-collab~editor-guest",188:"vendors~editor-rich~files-modal",189:"vendors~editor~files-modal",190:"editor",191:"editor-collab",192:"editor-guest",193:"editor-rich",195:"files-modal",198:"vendors~editor",199:"vendors~editor-rich"}[e]||e)+".js?v="+{0:"fad73abb360929e2b413",1:"37eaf60075f91485c814",2:"5de70a1fb1f9f9a21ced",3:"81ac5ce058d925fd3874",4:"626b88350d95b94f543f",5:"a396c7648e051ab2a1ef",6:"9d819ab727d38deb6a27",7:"224cac2231d916dbe4c0",8:"d81be65d94ce296eecd1",9:"03619205db3f0d1441d4",10:"0ca4fa152732b472de9d",11:"89329f75941d0692b79e",12:"a2460ffd7f26c0b3ecce",13:"2f2fc006d3a47476365f",14:"0f304dbb0409c3d4c5f7",15:"7b1c96a1b8b5be4fd7d9",16:"05571d64f75e4abcbd62",17:"baf84b67a6f772f816dd",18:"f5d7b8ff8729162a0334",19:"0cb75319a66b4d1aac6c",20:"230e8b4244177b38473d",21:"4bc237d2331d5270194e",22:"9a00ac8fddc726da299c",23:"28bbbd56437d17edf8af",24:"873d9bd2b5905d18fe23",25:"871cbdb172e133303669",26:"1a6117f839dfe6e068f5",27:"11bd39f351767e36d3d6",28:"1cda6d8c120201166628",29:"b85c4332713895d4b2b8",30:"d8e2686dedb5f2230cd6",31:"6d9757f8d7af92d53479",32:"d603203007c1c5de7698",33:"6d79caa05e521f747811",34:"91ef8f075c0e4651e938",35:"665a511f85789b4dcf90",36:"6557b27acf237fb0d5dc",37:"ffc3e8ba089cc12ecd0f",38:"3f22fc8e941964ae839f",39:"a17619900f942fbe91e5",40:"9eece97a78dc36cb6c42",41:"b2bb531ee7206201409f",42:"21d112602ae20cbf41cf",43:"46e363aca62faa02f008",44:"644084517b434d573835",45:"53467e80d9029b1bd9e3",46:"059aeea382e1deed4181",47:"af4a535e5d1bfc46b2c1",48:"adedcb968d56e31da1f7",49:"9ba9ba7a3bcecc455b85",50:"2d02e08c056d0ec0378f",51:"aed3c09347818b6f17bd",52:"d0bf7dbb9ac569677c16",53:"5ca6cd013199285d811b",54:"d44bac29fcf21e93abdd",55:"3f9dc41ad08493f65ffb",56:"dc012d0389af8ce440ec",57:"207cfac1ee33b5fa751b",58:"1f604d5846c8aa3b91cd",59:"ed4ed21417f0ab134307",60:"a0ce1a52a82ef73522ea",61:"255724bb3ff6b77f36aa",62:"e29317394bc490bc3d3c",63:"c9c08f4da09a6e600b3c",64:"085eaced1dd59ea2e73f",65:"2fb304e2747fc6a1f66a",66:"aecd4d40032bfcc0fe8c",67:"9728feab1a31ac45c28e",68:"e93b4947ea20106a1433",69:"9a8f0e9e31759547117d",70:"8e2576b8fcd23192ffea",71:"cc252e78504520930819",72:"9941605aae2a9115551b",73:"0c8ded57117d52b5268b",74:"9f0205205535ed84d0da",75:"5964554f6bbec1c0498e",76:"39856d61320c8ed6bafe",77:"38770a9c25bcfe792e5d",78:"16f319527858c95f7bf6",79:"867706bbfb3b420a8477",80:"4b373f341912ef759175",81:"726eb6c009b5647b3925",82:"000bf0327b256ab69bc3",83:"c33c096e0eb78e87e31b",84:"30f1d344a770eec231df",85:"475de87598b7592d5e58",86:"e3c9b7f410ff93c88278",87:"510e298a444720658bfa",88:"a2dbc1a3d288615b938d",89:"3800b3b4ab9f9b3c974a",90:"88659a271411a11d4b17",91:"d26906e7bc7aa1a0d98a",92:"228e885d2ebee244387b",93:"2d6774500376ec35312d",94:"af1b50c476a7ad7f40cf",95:"74bc174a8905f198efb7",96:"ca934f8c89fd6441b4c2",97:"673e822eb451e250c536",98:"52348ed8923cf6576622",99:"b0c9907bd3eabd191933",100:"8a2251750e6c020b4158",101:"074d48781827a61cc466",102:"a6065eae9d910caf02e7",103:"aa3af0fbd2aeb8fe57b0",104:"e3bb06d1d557e1824c09",105:"5beaa5cac4fc66baa514",106:"a43d4d9fe157c4feab17",107:"82740b7f6bb1172cd207",108:"34564d75eebc616c1d29",109:"6ef139d1996833eeeec3",110:"b0a6e170a9402d441eef",111:"5282fd3993c475bd18b7",112:"23319ea805ae54ebff39",113:"01fb79a62763a1ee3522",114:"4d3575b03e24ca6e694a",115:"dddadc70a2ef47c993d8",116:"34c727d54781b406c629",117:"1417aceb75d563984dca",118:"fe5e3beb9662d55119ab",119:"d424ff4b17a7f86df1aa",120:"5bbe63636a65ef25848a",121:"3b16462703048efa4b81",122:"200ca1868fbb83440632",123:"4dcfd8fc316e6f4a7f5b",124:"18815cab86a96da3873d",125:"3b5fc65bb7d9ae0604df",126:"2de1152b1a7a16ca208e",127:"6ba7cbcb56ce668f9e31",128:"e9520625e145dd7faac9",129:"5dee54fd007d63631aaf",130:"c7e737ed068aebf0c092",131:"7438905cde23e53731b0",132:"fbfb22cd41641e2adacb",133:"ea923aa5bc667215f433",134:"e1ba9aecbc4962fe18c1",135:"ec634e8b3086734c5201",136:"e68f0a6505ea4a668f66",137:"2b56e61a50d9d9e37df5",138:"af97c716f9a86d9a67bb",139:"feb61a5f7d4c6e882c6b",140:"c09ed69cb3711baf0b4e",141:"6f8e4426a094c7da3f3d",142:"8e0ddb7e14afccf6c953",143:"dd0fdcf494fabc3b5e30",144:"8421cfe87dfcb60de753",145:"4f454bd99097c53581ac",146:"ce4bb9e6a17a7d1abab2",147:"364a19b5255c717f2270",148:"9bd7a3548a5a1226b2bb",149:"f0703f6cac8635737414",150:"4a7071a9d7ae3f2a1a46",151:"ae6c2912a0bd02d50ad7",152:"f32d8fce1dae6ac86595",153:"4691cc498019c164f262",154:"b1076c3ae678d815e063",155:"6a7af85a0f26cecdfd83",156:"c56df873180edc706f61",157:"df8e31c8f6052fb88a6a",158:"1496b7c93faf1ef023fe",159:"50376746ef9a838d5d9f",160:"dcb299baa8e3a8c30044",161:"ff396de574c6293c14bf",162:"6b4bffa8221e99326f53",163:"f331ae888c73cd89df41",164:"57584f55afaf5c67b555",165:"84fcffd6952be5ad7d31",166:"ca0022d06f0238e2f1f8",167:"844fd864aebd92bd16e7",168:"2a1140cdf8052fdc7521",169:"0117773be6d8ce7d726e",170:"e76a2659df855444ca86",171:"8b92d042423e15b2761a",172:"d970ebd0a720011a4c97",173:"a00edb753fec1bcfcb85",174:"59a626e70b24b3138672",175:"15064e69f37611b4baf9",176:"eab23b5e0c65d45da3ff",177:"4d115009bd5689c947eb",178:"6f220412edf29b7cee77",179:"c108be3248a290797122",180:"5b5313e212371d81808f",181:"a4de0d854bfc04fc8b1b",182:"17c46c438fc17cc8fe04",183:"fafa045bf21850f8eb36",184:"d60f502f4431352cab9e",185:"9b5190130eb916fa6120",186:"bb4ef6754875e2f0bfe7",187:"9c4d7d0ff58f49c3e531",188:"729604cb20dd151899bb",189:"7bef7246d035156d6ba3",190:"32271153bc27484280f0",191:"a60e697a92df4ed2d64f",192:"691e271c6e31aeb7ea73",193:"4c0dc6dd77bf6c026422",195:"a463a0bfb460b09f29c6",198:"7f1fc76f6399f49f5cc3",199:"11a1b1e0e1addc85c814"}[e]}(e);var l=new Error;r=function(t){n.onerror=n.onload=null,clearTimeout(g);var i=h[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",l.name="ChunkLoadError",l.type=a,l.request=c,i[1](l)}h[e]=void 0}};var g=setTimeout((function(){r({type:"timeout",target:n})}),12e4);n.onerror=n.onload=r,document.head.appendChild(n)}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 h in e)a.d(i,h,function(t){return e[t]}.bind(null,h));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 c=window.textWebpackJsonp=window.textWebpackJsonp||[],r=c.push.bind(c);c.push=t,c=c.slice();for(var n=0;n<c.length;n++)t(c[n]);var l=r;a(a.s=168)}({12:function(e,t,i){"use strict";i.d(t,"a",(function(){return c})),i.d(t,"b",(function(){return h})),i.d(t,"c",(function(){return a}));
/*
 * @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 h=["text/markdown"],a=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/epub+zip","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"],c=[].concat(h,a)},165:function(e,t,i){"use strict";var h=i(94);i.n(h).a},166:function(e,t,i){(t=i(48)(!1)).push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n",""]),e.exports=t},168:function(e,t,i){"use strict";i.r(t);var h={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(0),i.e(189),i.e(198),i.e(190)]).then(i.bind(null,169))}},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)}},a=(i(165),i(19)),c=Object(a.a)(h,(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}})}),[],!1,null,null,null).exports,r=i(12);function n(e){return function(e){if(Array.isArray(e))return l(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 l(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 l(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,h=new Array(t);i<t;i++)h[i]=e[i];return h}
/*
 * @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/>.
 *
 */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(n(r.b),n(r.c)),component:c,group:null}):console.error("Viewer app is not installed")}))},19:function(e,t,i){"use strict";function h(e,t,i,h,a,c,r,n){var l,g="function"==typeof e?e.options:e;if(t&&(g.render=t,g.staticRenderFns=i,g._compiled=!0),h&&(g.functional=!0),c&&(g._scopeId="data-v-"+c),r?(l=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)},g._ssrRegister=l):a&&(l=n?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(g.functional){g._injectStyles=l;var d=g.render;g.render=function(e,t){return l.call(t),d(e,t)}}else{var f=g.beforeCreate;g.beforeCreate=f?[].concat(f,l):[l]}return{exports:e,options:g}}i.d(t,"a",(function(){return h}))},48:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",h=e[3];if(!h)return i;if(t&&"function"==typeof btoa){var a=(r=h,n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(l," */")),c=h.sources.map((function(e){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(e," */")}));return[i].concat(c).concat([a]).join("\n")}var r,n,l;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,h){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(h)for(var c=0;c<this.length;c++){var r=this[c][0];null!=r&&(a[r]=!0)}for(var n=0;n<e.length;n++){var l=[].concat(e[n]);h&&a[l[0]]||(i&&(l[2]?l[2]="".concat(i," and ").concat(l[2]):l[2]=i),t.push(l))}},t}},49:function(e,t,i){"use strict";function h(e,t){for(var i=[],h={},a=0;a<t.length;a++){var c=t[a],r=c[0],n={id:e+":"+a,css:c[1],media:c[2],sourceMap:c[3]};h[r]?h[r].parts.push(n):i.push(h[r]={id:r,parts:[n]})}return i}i.r(t),i.d(t,"default",(function(){return s}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},r=a&&(document.head||document.getElementsByTagName("head")[0]),n=null,l=0,g=!1,d=function(){},f=null,o="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function s(e,t,i,a){g=i,f=a||{};var r=h(e,t);return b(r),function(t){for(var i=[],a=0;a<r.length;a++){var n=r[a];(l=c[n.id]).refs--,i.push(l)}t?b(r=h(e,t)):r=[];for(a=0;a<i.length;a++){var l;if(0===(l=i[a]).refs){for(var g=0;g<l.parts.length;g++)l.parts[g]();delete c[l.id]}}}}function b(e){for(var t=0;t<e.length;t++){var i=e[t],h=c[i.id];if(h){h.refs++;for(var a=0;a<h.parts.length;a++)h.parts[a](i.parts[a]);for(;a<i.parts.length;a++)h.parts.push(p(i.parts[a]));h.parts.length>i.parts.length&&(h.parts.length=i.parts.length)}else{var r=[];for(a=0;a<i.parts.length;a++)r.push(p(i.parts[a]));c[i.id]={id:i.id,refs:1,parts:r}}}}function u(){var e=document.createElement("style");return e.type="text/css",r.appendChild(e),e}function p(e){var t,i,h=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(h){if(g)return d;h.parentNode.removeChild(h)}if(o){var a=l++;h=n||(n=u()),t=y.bind(null,h,a,!1),i=y.bind(null,h,a,!0)}else h=u(),t=x.bind(null,h),i=function(){h.parentNode.removeChild(h)};return t(e),function(h){if(h){if(h.css===e.css&&h.media===e.media&&h.sourceMap===e.sourceMap)return;t(e=h)}else i()}}var m,v=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function y(e,t,i,h){var a=i?"":h.css;if(e.styleSheet)e.styleSheet.cssText=v(t,a);else{var c=document.createTextNode(a),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(c,r[t]):e.appendChild(c)}}function x(e,t){var i=t.css,h=t.media,a=t.sourceMap;if(h&&e.setAttribute("media",h),f.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),a&&(i+="\n/*# sourceURL="+a.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}},94:function(e,t,i){var h=i(166);"string"==typeof h&&(h=[[e.i,h,""]]),h.locals&&(e.exports=h.locals);(0,i(49).default)("4861ac69",h,!0,{})}});
//# sourceMappingURL=viewer.js.map