!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/js/",n(n.s=140)}([function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n(56))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(1),o=n(36),i=n(2),u=n(26),c=n(42),s=n(64),a=o("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||u;e.exports=function(e){return i(a,e)||(c&&i(f,e)?a[e]=f[e]:a[e]=l("Symbol."+e)),a[e]}},function(e,t,n){var r=n(0);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(4),o=n(9),i=n(17);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(1),o=n(30).f,i=n(7),u=n(10),c=n(18),s=n(58),a=n(47);e.exports=function(e,t){var n,f,l,p,v,h=e.target,d=e.global,g=e.stat;if(n=d?r:g?r[h]||c(h,{}):(r[h]||{}).prototype)for(f in t){if(p=t[f],l=e.noTargetGet?(v=o(n,f))&&v.value:n[f],!a(d?f:h+(g?".":"#")+f,e.forced)&&void 0!==l){if(typeof p==typeof l)continue;s(p,l)}(e.sham||l&&l.sham)&&i(p,"sham",!0),u(n,f,p,e)}}},function(e,t,n){var r=n(4),o=n(32),i=n(5),u=n(24),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(i(e),t=u(t,!0),i(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(1),o=n(7),i=n(2),u=n(18),c=n(33),s=n(25),a=s.get,f=s.enforce,l=String(String).split("String");(e.exports=function(e,t,n,c){var s=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),f(n).source=l.join("string"==typeof t?t:"")),e!==r?(s?!p&&e[t]&&(a=!0):delete e[t],a?e[t]=n:o(e,t,n)):a?e[t]=n:u(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||c(this)}))},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(23),o=n(11);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(12),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(11);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(1),o=n(7);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t){e.exports={}},function(e,t,n){var r={};r[n(3)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r,o,i=n(44),u=n(66),c=RegExp.prototype.exec,s=String.prototype.replace,a=c,f=(r=/a/,o=/b*/g,c.call(r,"a"),c.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),l=u.UNSUPPORTED_Y||u.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(f||p||l)&&(a=function(e){var t,n,r,o,u=this,a=l&&u.sticky,v=i.call(u),h=u.source,d=0,g=e;return a&&(-1===(v=v.replace("y","")).indexOf("g")&&(v+="g"),g=String(e).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==e[u.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,d++),n=new RegExp("^(?:"+h+")",v)),p&&(n=new RegExp("^"+h+"$(?!\\s)",v)),f&&(t=u.lastIndex),r=c.call(a?n:u,g),a?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=u.lastIndex,u.lastIndex+=r[0].length):u.lastIndex=0:f&&r&&(u.lastIndex=u.global?r.index+r[0].length:t),p&&r&&r.length>1&&s.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),e.exports=a},function(e,t,n){"use strict";
/**
 * @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @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 r=document.getElementById("hideDownload");t.a=function(){return!r||r&&"true"!==r.value}},function(e,t,n){var r=n(0),o=n(14),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(6);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r,o,i,u=n(57),c=n(1),s=n(6),a=n(7),f=n(2),l=n(35),p=n(19),v=c.WeakMap;if(u){var h=new v,d=h.get,g=h.has,E=h.set;r=function(e,t){return E.call(h,e,t),t},o=function(e){return d.call(h,e)||{}},i=function(e){return g.call(h,e)}}else{var y=l("state");p[y]=!0,r=function(e,t){return a(e,y,t),t},o=function(e){return f(e,y)?e[y]:{}},i=function(e){return f(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(60),o=n(1),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";n(55),n(49),n(51),n(43),n(67),n(68),Object.defineProperty(t,"__esModule",{value:!0}),t.getRootUrl=t.generateFilePath=t.imagePath=t.generateUrl=t.generateOcsUrl=t.generateRemoteUrl=t.linkTo=void 0;t.linkTo=function(e,t){return r(e,"",t)};t.generateRemoteUrl=function(e){return window.location.protocol+"//"+window.location.host+function(e){return o()+"/remote.php/"+e}(e)};t.generateOcsUrl=function(e,t){return t=2!==t?1:2,window.location.protocol+"//"+window.location.host+o()+"/ocs/v"+t+".php/"+e+"/"};t.generateUrl=function(e,t,n){var r=Object.assign({escape:!0,noRewrite:!1},n||{}),i=function(e,t){return t=t||{},e.replace(/{([^{}]*)}/g,(function(e,n){var o=t[n];return r.escape?"string"==typeof o||"number"==typeof o?encodeURIComponent(o.toString()):encodeURIComponent(e):"string"==typeof o||"number"==typeof o?o.toString():e}))};return"/"!==e.charAt(0)&&(e="/"+e),!0!==OC.config.modRewriteWorking||r.noRewrite?o()+"/index.php"+i(e,t||{}):o()+i(e,t||{})};t.imagePath=function(e,t){return-1===t.indexOf(".")?r(e,"img",t+".svg"):r(e,"img",t)};var r=function(e,t,n){var r=-1!==OC.coreApps.indexOf(e),i=o();return"php"!==n.substring(n.length-3)||r?"php"===n.substring(n.length-3)||r?(i+="settings"!==e&&"core"!==e&&"search"!==e||"ajax"!==t?"/":"/index.php/",r||(i+="apps/"),""!==e&&(i+=e+="/"),t&&(i+=t+"/"),i+=n):(i=OC.appswebroots[e],t&&(i+="/"+t+"/"),"/"!==i.substring(i.length-1)&&(i+="/"),i+=n):(i+="/index.php/apps/"+e,"index.php"!==n&&(i+="/",t&&(i+=encodeURI(t+"/")),i+=n)),i};t.generateFilePath=r;var o=function(){return OC.webroot};t.getRootUrl=o},function(e,t,n){var r=n(4),o=n(31),i=n(17),u=n(13),c=n(24),s=n(2),a=n(32),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=u(e),t=c(t,!0),a)try{return f(e,t)}catch(e){}if(s(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(4),o=n(0),i=n(46);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(34),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(1),o=n(18),i=r["__core-js_shared__"]||o("__core-js_shared__",{});e.exports=i},function(e,t,n){var r=n(36),o=n(26),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){var r=n(37),o=n(34);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){var r=n(2),o=n(13),i=n(39).indexOf,u=n(19);e.exports=function(e,t){var n,c=o(e),s=0,a=[];for(n in c)!r(u,n)&&r(c,n)&&a.push(n);for(;t.length>s;)r(c,n=t[s++])&&(~i(a,n)||a.push(n));return a}},function(e,t,n){var r=n(13),o=n(15),i=n(62),u=function(e){return function(t,n,u){var c,s=r(t),a=o(s.length),f=i(u,a);if(e&&n!=n){for(;a>f;)if((c=s[f++])!=c)return!0}else for(;a>f;f++)if((e||f in s)&&s[f]===n)return e||f||0;return!e&&-1}};e.exports={includes:u(!0),indexOf:u(!1)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4),o=n(0),i=n(2),u=Object.defineProperty,c={},s=function(e){throw e};e.exports=function(e,t){if(i(c,e))return c[e];t||(t={});var n=[][e],a=!!i(t,"ACCESSORS")&&t.ACCESSORS,f=i(t,0)?t[0]:s,l=i(t,1)?t[1]:void 0;return c[e]=!!n&&!o((function(){if(a&&!r)return!0;var e={length:-1};a?u(e,1,{enumerable:!0,get:s}):e[1]=1,n.call(e,f,l)}))}},function(e,t,n){var r=n(0);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(e,t,n){"use strict";var r=n(8),o=n(21);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(e,t,n){"use strict";var r=n(5);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t){e.exports={}},function(e,t,n){var r=n(1),o=n(6),i=r.document,u=o(i)&&o(i.createElement);e.exports=function(e){return u?i.createElement(e):{}}},function(e,t,n){var r=n(0),o=/#|\.prototype\./,i=function(e,t){var n=c[u(e)];return n==a||n!=s&&("function"==typeof t?r(t):!!t)},u=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=i.data={},s=i.NATIVE="N",a=i.POLYFILL="P";e.exports=i},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r=n(8),o=n(63);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){var r=n(38),o=n(28);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(20),o=n(10),i=n(65);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(e,t,n){var r=n(20),o=n(14),i=n(3)("toStringTag"),u="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:u?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(12),o=n(11),i=function(e){return function(t,n){var i,u,c=String(o(t)),s=r(n),a=c.length;return s<0||s>=a?e?"":void 0:(i=c.charCodeAt(s))<55296||i>56319||s+1===a||(u=c.charCodeAt(s+1))<56320||u>57343?e?c.charAt(s):i:e?c.slice(s,s+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},,function(e,t,n){"use strict";var r=n(8),o=n(39).indexOf,i=n(48),u=n(41),c=[].indexOf,s=!!c&&1/[1].indexOf(1,-0)<0,a=i("indexOf"),f=u("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:s||!a||!f},{indexOf:function(e){return s?c.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(1),o=n(33),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},function(e,t,n){var r=n(2),o=n(59),i=n(30),u=n(9);e.exports=function(e,t){for(var n=o(t),c=u.f,s=i.f,a=0;a<n.length;a++){var f=n[a];r(e,f)||c(e,f,s(t,f))}}},function(e,t,n){var r=n(27),o=n(61),i=n(40),u=n(5);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(u(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(1);e.exports=r},function(e,t,n){var r=n(38),o=n(28).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(12),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){"use strict";var r=n(4),o=n(0),i=n(50),u=n(40),c=n(31),s=n(16),a=n(23),f=Object.assign,l=Object.defineProperty;e.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=f({},e)[n]||"abcdefghijklmnopqrst"!=i(f({},t)).join("")}))?function(e,t){for(var n=s(e),o=arguments.length,f=1,l=u.f,p=c.f;o>f;)for(var v,h=a(arguments[f++]),d=l?i(h).concat(l(h)):i(h),g=d.length,E=0;g>E;)v=d[E++],r&&!p.call(h,v)||(n[v]=h[v]);return n}:f},function(e,t,n){var r=n(42);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){"use strict";var r=n(20),o=n(52);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(e,t,n){"use strict";var r=n(0);function o(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},function(e,t,n){"use strict";var r=n(10),o=n(5),i=n(0),u=n(44),c=RegExp.prototype,s=c.toString,a=i((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),f="toString"!=s.name;(a||f)&&r(RegExp.prototype,"toString",(function(){var e=o(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in c)?u.call(e):n)}),{unsafe:!0})},function(e,t,n){"use strict";var r=n(69),o=n(5),i=n(16),u=n(15),c=n(12),s=n(11),a=n(70),f=n(71),l=Math.max,p=Math.min,v=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(e,t,n,r){var g=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,E=r.REPLACE_KEEPS_$0,y=g?"$":"$0";return[function(n,r){var o=s(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!g&&E||"string"==typeof r&&-1===r.indexOf(y)){var i=n(t,e,this,r);if(i.done)return i.value}var s=o(e),v=String(this),h="function"==typeof r;h||(r=String(r));var d=s.global;if(d){var O=s.unicode;s.lastIndex=0}for(var m=[];;){var x=f(s,v);if(null===x)break;if(m.push(x),!d)break;""===String(x[0])&&(s.lastIndex=a(v,u(s.lastIndex),O))}for(var I,R="",L=0,S=0;S<m.length;S++){x=m[S];for(var w=String(x[0]),T=l(p(c(x.index),v.length),0),A=[],N=1;N<x.length;N++)A.push(void 0===(I=x[N])?I:String(I));var P=x.groups;if(h){var j=[w].concat(A,T,v);void 0!==P&&j.push(P);var _=String(r.apply(void 0,j))}else _=b(w,v,T,A,P,r);T>=L&&(R+=v.slice(L,T)+_,L=T+w.length)}return R+v.slice(L)}];function b(e,n,r,o,u,c){var s=r+e.length,a=o.length,f=d;return void 0!==u&&(u=i(u),f=h),t.call(c,f,(function(t,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":c=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return t;if(f>a){var l=v(f/10);return 0===l?t:l<=a?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):t}c=o[f-1]}return void 0===c?"":c}))}}))},function(e,t,n){"use strict";n(43);var r=n(10),o=n(0),i=n(3),u=n(21),c=n(7),s=i("species"),a=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),v=!o((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,l){var h=i(e),d=!o((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),g=d&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[s]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!d||!g||"replace"===e&&(!a||!f||p)||"split"===e&&!v){var E=/./[h],y=n(h,""[e],(function(e,t,n,r,o){return t.exec===u?d&&!o?{done:!0,value:E.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:f,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],O=y[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return O.call(e,this,t)}:function(e){return O.call(e,this)})}l&&c(RegExp.prototype[h],"sham",!0)}},function(e,t,n){"use strict";var r=n(53).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r=n(14),o=n(21);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){var r=n(105);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){const n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,n){var r,o=n(5),i=n(119),u=n(28),c=n(19),s=n(120),a=n(46),f=n(35),l=f("IE_PROTO"),p=function(){},v=function(e){return"<script>"+e+"<\/script>"},h=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;h=r?function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):((t=a("iframe")).style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p.prototype=o(e),n=new p,p.prototype=null,n[l]=e):n=h(),void 0===t?n:i(n,t)}},function(e,t,n){"use strict";var r=n(8),o=n(121),i=n(90),u=n(91),c=n(76),s=n(7),a=n(10),f=n(3),l=n(37),p=n(45),v=n(89),h=v.IteratorPrototype,d=v.BUGGY_SAFARI_ITERATORS,g=f("iterator"),E=function(){return this};e.exports=function(e,t,n,f,v,y,b){o(n,t,f);var O,m,x,I=function(e){if(e===v&&T)return T;if(!d&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},R=t+" Iterator",L=!1,S=e.prototype,w=S[g]||S["@@iterator"]||v&&S[v],T=!d&&w||I(v),A="Array"==t&&S.entries||w;if(A&&(O=i(A.call(new e)),h!==Object.prototype&&O.next&&(l||i(O)===h||(u?u(O,h):"function"!=typeof O[g]&&s(O,g,E)),c(O,R,!0,!0),l&&(p[R]=E))),"values"==v&&w&&"values"!==w.name&&(L=!0,T=function(){return w.call(this)}),l&&!b||S[g]===T||s(S,g,T),p[t]=T,v)if(m={values:I("values"),keys:y?T:I("keys"),entries:I("entries")},b)for(x in m)(d||L||!(x in S))&&a(S,x,m[x]);else r({target:t,proto:!0,forced:d||L},m);return m}},function(e,t,n){var r=n(9).f,o=n(2),i=n(3)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(8),o=n(78);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(e,t,n){"use strict";var r=n(79).forEach,o=n(48),i=n(41),u=o("forEach"),c=i("forEach");e.exports=u&&c?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){var r=n(72),o=n(23),i=n(16),u=n(15),c=n(80),s=[].push,a=function(e){var t=1==e,n=2==e,a=3==e,f=4==e,l=6==e,p=5==e||l;return function(v,h,d,g){for(var E,y,b=i(v),O=o(b),m=r(h,d,3),x=u(O.length),I=0,R=g||c,L=t?R(v,x):n?R(v,0):void 0;x>I;I++)if((p||I in O)&&(y=m(E=O[I],I,b),e))if(t)L[I]=y;else if(y)switch(e){case 3:return!0;case 5:return E;case 6:return I;case 2:s.call(L,E)}else if(f)return!1;return l?-1:a||f?f:L}};e.exports={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6)}},function(e,t,n){var r=n(6),o=n(81),i=n(3)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(14);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r}=n(73),o=n(83),i=(t=e.exports={}).re=[],u=t.src=[],c=t.t={};let s=0;const a=(e,t,n)=>{const r=s++;o(r,t),c[e]=r,u[r]=t,i[r]=new RegExp(t,n?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),a("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),a("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),a("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),a("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),a("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),a("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),a("FULL",`^${u[c.FULLPLAIN]}$`),a("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),a("LOOSE",`^${u[c.LOOSEPLAIN]}$`),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE",u[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),a("XRANGEIDENTIFIER",u[c.NUMERICIDENTIFIER]+"|x|X|\\*"),a("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),a("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),a("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),a("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),a("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),a("COERCERTL",u[c.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",a("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),a("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),a("LONECARET","(?:\\^)"),a("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",a("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),a("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),a("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),a("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),a("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),a("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},function(e,t,n){(function(t){const n="object"==typeof t&&t.env&&t.env.NODE_DEBUG&&/\bsemver\b/i.test(t.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=n}).call(this,n(110))},function(e,t,n){const r=n(83),{MAX_LENGTH:o,MAX_SAFE_INTEGER:i}=n(73),{re:u,t:c}=n(82),s=n(85),{compareIdentifiers:a}=n(111);class f{constructor(e,t){if(t=s(t),e instanceof f){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?u[c.LOOSE]:u[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof f)){if("string"==typeof e&&e===this.version)return 0;e=new f(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof f||(e=new f(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch)}comparePre(e){if(e instanceof f||(e=new f(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return a(n,o)}while(++t)}compareBuild(e){e instanceof f||(e=new f(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return a(n,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=f},function(e,t){const n=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:n.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{}},function(e,t,n){var r=n(0),o=n(3),i=n(87),u=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[u]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t,n){var r,o,i=n(1),u=n(116),c=i.process,s=c&&c.versions,a=s&&s.v8;a?o=(r=a.split("."))[0]+r[1]:u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},function(e,t,n){"use strict";var r=n(13),o=n(118),i=n(45),u=n(25),c=n(75),s=u.set,a=u.getterFor("Array Iterator");e.exports=c(Array,"Array",(function(e,t){s(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=a(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";var r,o,i,u=n(90),c=n(7),s=n(2),a=n(3),f=n(37),l=a("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):p=!0),null==r&&(r={}),f||s(r,l)||c(r,l,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},function(e,t,n){var r=n(2),o=n(16),i=n(35),u=n(122),c=i("IE_PROTO"),s=Object.prototype;e.exports=u?Object.getPrototypeOf:function(e){return e=o(e),r(e,c)?e[c]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(5),o=n(123);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},function(e,t,n){var r=n(19),o=n(6),i=n(2),u=n(9).f,c=n(26),s=n(126),a=c("meta"),f=0,l=Object.isExtensible||function(){return!0},p=function(e){u(e,a,{value:{objectID:"O"+ ++f,weakData:{}}})},v=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,a)){if(!l(e))return"F";if(!t)return"E";p(e)}return e[a].objectID},getWeakData:function(e,t){if(!i(e,a)){if(!l(e))return!0;if(!t)return!1;p(e)}return e[a].weakData},onFreeze:function(e){return s&&v.REQUIRED&&l(e)&&!i(e,a)&&p(e),e}};r[a]=!0},function(e,t,n){var r=n(5),o=n(127),i=n(15),u=n(72),c=n(128),s=n(129),a=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,f,l){var p,v,h,d,g,E,y,b=u(t,n,f?2:1);if(l)p=e;else{if("function"!=typeof(v=c(e)))throw TypeError("Target is not iterable");if(o(v)){for(h=0,d=i(e.length);d>h;h++)if((g=f?b(r(y=e[h])[0],y[1]):b(e[h]))&&g instanceof a)return g;return new a(!1)}p=v.call(e)}for(E=p.next;!(y=E.call(p)).done;)if("object"==typeof(g=s(p,b,y.value,f))&&g&&g instanceof a)return g;return new a(!1)}).stop=function(e){return new a(!0,e)}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLoggerBuilder=i,t.getLogger=function(){return i().build()};var r=n(100),o=n(102);function i(){return new o.LoggerBuilder(r.buildConsoleLogger)}},,,,function(e,t,n){"use strict";n(49),Object.defineProperty(t,"__esModule",{value:!0}),t.buildConsoleLogger=function(e){return new i(e)},t.ConsoleLogger=void 0;var r=n(101);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context=t}var t,n,i;return t=e,(n=[{key:"formatMessage",value:function(e,t,n){var r="["+t+"]";return n&&n.app&&(r+=" "+n.app+": "),r+e}},{key:"log",value:function(e,t,n){switch(e){case 0:console.debug(this.formatMessage(t,r.LogLevel.Debug,n),n);break;case 1:console.info(this.formatMessage(t,r.LogLevel.Info,n),n);break;case 2:console.warn(this.formatMessage(t,r.LogLevel.Warn,n),n);break;case 3:console.error(this.formatMessage(t,r.LogLevel.Error,n),n);break;default:console.error(this.formatMessage(t,r.LogLevel.Fatal,n),n)}}},{key:"debug",value:function(e,t){this.log(0,e,Object.assign({},this.context,t))}},{key:"info",value:function(e,t){this.log(1,e,Object.assign({},this.context,t))}},{key:"warn",value:function(e,t){this.log(2,e,Object.assign({},this.context,t))}},{key:"error",value:function(e,t){this.log(3,e,Object.assign({},this.context,t))}},{key:"fatal",value:function(e,t){this.log(4,e,Object.assign({},this.context,t))}}])&&o(t.prototype,n),i&&o(t,i),e}();t.ConsoleLogger=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0,t.LogLevel=r,function(e){e.Debug="DEBUG",e.Info="INFO",e.Warn="WARN",e.Error="ERROR",e.Fatal="FATAL"}(r||(t.LogLevel=r={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerBuilder=void 0;var r=n(103);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.context={},this.factory=t}var t,n,i;return t=e,(n=[{key:"setApp",value:function(e){return this.context.app=e,this}},{key:"setUid",value:function(e){return this.context.uid=e,this}},{key:"detectUser",value:function(){var e=(0,r.getCurrentUser)();return null!==e&&(this.context.uid=e.uid),this}},{key:"build",value:function(){return this.factory(this.context)}}])&&o(t.prototype,n),i&&o(t,i),e}();t.LoggerBuilder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRequestToken",{enumerable:!0,get:function(){return r.getRequestToken}}),Object.defineProperty(t,"onRequestTokenUpdate",{enumerable:!0,get:function(){return r.onRequestTokenUpdate}}),Object.defineProperty(t,"getCurrentUser",{enumerable:!0,get:function(){return o.getCurrentUser}});var r=n(104),o=n(138)},function(e,t,n){"use strict";n(77),Object.defineProperty(t,"__esModule",{value:!0}),t.getRequestToken=function(){return i},t.onRequestTokenUpdate=function(e){u.push(e)};var r=n(106),o=document.getElementsByTagName("head")[0],i=o?o.getAttribute("data-requesttoken"):null,u=[];(0,r.subscribe)("csrf-token-update",(function(e){i=e.token,u.forEach((function(t){try{t(e.token)}catch(e){console.error("error updating CSRF token observer",e)}}))}))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribe=function(e,t){i.subscribe(e,t)},t.unsubscribe=function(e,t){i.unsubscribe(e,t)},t.emit=function(e,t){i.emit(e,t)};var r=n(107),o=n(113);var i=(void 0!==window.OC&&window.OC._eventBus&&void 0===window._nc_event_bus&&(console.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),void 0!==window._nc_event_bus?new r.ProxyBus(window._nc_event_bus):window._nc_event_bus=new o.SimpleBus)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyBus=void 0;var r=i(n(108)),o=i(n(112));function i(e){return e&&e.__esModule?e:{default:e}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var c="1.2.0",s=function(){function e(t){var n,i,u;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u=void 0,(i="bus")in(n=this)?Object.defineProperty(n,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[i]=u,"function"==typeof t.getVersion&&(0,r.default)(t.getVersion())?(0,o.default)(t.getVersion())!==(0,o.default)(this.getVersion())&&console.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):console.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}var t,n,i;return t=e,(n=[{key:"getVersion",value:function(){return c}},{key:"subscribe",value:function(e,t){this.bus.subscribe(e,t)}},{key:"unsubscribe",value:function(e,t){this.bus.unsubscribe(e,t)}},{key:"emit",value:function(e,t){this.bus.emit(e,t)}}])&&u(t.prototype,n),i&&u(t,i),e}();t.ProxyBus=s},function(e,t,n){const r=n(109);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},function(e,t,n){const{MAX_LENGTH:r}=n(73),{re:o,t:i}=n(82),u=n(84),c=n(85);e.exports=(e,t)=>{if(t=c(t),e instanceof u)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new u(e,t)}catch(e){return null}}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var s,a=[],f=!1,l=-1;function p(){f&&s&&(f=!1,s.length?a=s.concat(a):l=-1,a.length&&v())}function v(){if(!f){var e=c(p);f=!0;for(var t=a.length;t;){for(s=a,a=[];++l<t;)s&&s[l].run();l=-1,t=a.length}s=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];a.push(new h(e,t)),1!==a.length||f||c(v)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){const n=/^[0-9]+$/,r=(e,t)=>{const r=n.test(e),o=n.test(t);return r&&o&&(e=+e,t=+t),e===t?0:r&&!o?-1:o&&!r?1:e<t?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},function(e,t,n){const r=n(84);e.exports=(e,t)=>new r(e,t).major},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(114),n(117),n(77),n(88),n(124),n(51),n(135),n(136),n(137),Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleBus=void 0;var o="1.2.0",i=function(){function e(){var t,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=this,n="handlers",r=new Map,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r}var t,n,i;return t=e,(n=[{key:"getVersion",value:function(){return o}},{key:"subscribe",value:function(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).concat(t))}},{key:"unsubscribe",value:function(e,t){this.handlers.set(e,(this.handlers.get(e)||[]).filter((function(e){return e!=t})))}},{key:"emit",value:function(e,t){(this.handlers.get(e)||[]).forEach((function(e){try{e(t)}catch(e){console.error("could not invoke event listener",e)}}))}}])&&r(t.prototype,n),i&&r(t,i),e}();t.SimpleBus=i},function(e,t,n){"use strict";var r=n(8),o=n(0),i=n(81),u=n(6),c=n(16),s=n(15),a=n(115),f=n(80),l=n(86),p=n(3),v=n(87),h=p("isConcatSpreadable"),d=v>=51||!o((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),g=l("concat"),E=function(e){if(!u(e))return!1;var t=e[h];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!d||!g},{concat:function(e){var t,n,r,o,i,u=c(this),l=f(u,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(E(i=-1===t?u:arguments[t])){if(p+(o=s(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&a(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");a(l,p++,i)}return l.length=p,l}})},function(e,t,n){"use strict";var r=n(24),o=n(9),i=n(17);e.exports=function(e,t,n){var u=r(t);u in e?o.f(e,u,i(0,n)):e[u]=n}},function(e,t,n){var r=n(27);e.exports=r("navigator","userAgent")||""},function(e,t,n){"use strict";var r=n(8),o=n(79).filter,i=n(86),u=n(41),c=i("filter"),s=u("filter");r({target:"Array",proto:!0,forced:!c||!s},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(3),o=n(74),i=n(9),u=r("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),e.exports=function(e){c[u][e]=!0}},function(e,t,n){var r=n(4),o=n(9),i=n(5),u=n(50);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=u(t),c=r.length,s=0;c>s;)o.f(e,n=r[s++],t[n]);return e}},function(e,t,n){var r=n(27);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(89).IteratorPrototype,o=n(74),i=n(17),u=n(76),c=n(45),s=function(){return this};e.exports=function(e,t,n){var a=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),u(e,a,!1,!0),c[a]=s,e}},function(e,t,n){var r=n(0);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(6);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){"use strict";var r=n(125),o=n(132);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},function(e,t,n){"use strict";var r=n(8),o=n(1),i=n(47),u=n(10),c=n(92),s=n(93),a=n(94),f=n(6),l=n(0),p=n(130),v=n(76),h=n(131);e.exports=function(e,t,n){var d=-1!==e.indexOf("Map"),g=-1!==e.indexOf("Weak"),E=d?"set":"add",y=o[e],b=y&&y.prototype,O=y,m={},x=function(e){var t=b[e];u(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(g&&!f(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return g&&!f(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(g&&!f(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(i(e,"function"!=typeof y||!(g||b.forEach&&!l((function(){(new y).entries().next()})))))O=n.getConstructor(t,e,d,E),c.REQUIRED=!0;else if(i(e,!0)){var I=new O,R=I[E](g?{}:-0,1)!=I,L=l((function(){I.has(1)})),S=p((function(e){new y(e)})),w=!g&&l((function(){for(var e=new y,t=5;t--;)e[E](t,t);return!e.has(-0)}));S||((O=t((function(t,n){a(t,O,e);var r=h(new y,t,O);return null!=n&&s(n,r[E],r,d),r}))).prototype=b,b.constructor=O),(L||w)&&(x("delete"),x("has"),d&&x("get")),(w||R)&&x(E),g&&b.clear&&delete b.clear}return m[e]=O,r({global:!0,forced:O!=y},m),v(O,e),g||n.setStrong(O,e,d),O}},function(e,t,n){var r=n(0);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){var r=n(3),o=n(45),i=r("iterator"),u=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||u[i]===e)}},function(e,t,n){var r=n(52),o=n(45),i=n(3)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(5);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(3)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[r]=function(){return this},Array.from(u,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r=n(6),o=n(91);e.exports=function(e,t,n){var i,u;return o&&"function"==typeof(i=t.constructor)&&i!==n&&r(u=i.prototype)&&u!==n.prototype&&o(e,u),e}},function(e,t,n){"use strict";var r=n(9).f,o=n(74),i=n(133),u=n(72),c=n(94),s=n(93),a=n(75),f=n(134),l=n(4),p=n(92).fastKey,v=n(25),h=v.set,d=v.getterFor;e.exports={getConstructor:function(e,t,n,a){var f=e((function(e,r){c(e,f,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),l||(e.size=0),null!=r&&s(r,e[a],e,n)})),v=d(t),g=function(e,t,n){var r,o,i=v(e),u=E(e,t);return u?u.value=n:(i.last=u={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),l?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},E=function(e,t){var n,r=v(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(f.prototype,{clear:function(){for(var e=v(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,l?e.size=0:this.size=0},delete:function(e){var t=v(this),n=E(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),l?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=v(this),r=u(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!E(this,e)}}),i(f.prototype,n?{get:function(e){var t=E(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),l&&r(f.prototype,"size",{get:function(){return v(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",o=d(t),i=d(r);a(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){var r=n(10);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(27),o=n(9),i=n(3),u=n(4),c=i("species");e.exports=function(e){var t=r(e),n=o.f;u&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(53).charAt,o=n(25),i=n(75),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(e){u(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=c(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(1),o=n(95),i=n(78),u=n(7);for(var c in o){var s=r[c],a=s&&s.prototype;if(a&&a.forEach!==i)try{u(a,"forEach",i)}catch(e){a.forEach=i}}},function(e,t,n){var r=n(1),o=n(95),i=n(88),u=n(7),c=n(3),s=c("iterator"),a=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],v=p&&p.prototype;if(v){if(v[s]!==f)try{u(v,s,f)}catch(e){v[s]=f}if(v[a]||u(v,a,l),o[l])for(var h in i)if(v[h]!==i[h])try{u(v,h,i[h])}catch(e){v[h]=i[h]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentUser=function(){if(null===o)return null;return{uid:o,displayName:u,isAdmin:c}};var r=document.getElementsByTagName("head")[0],o=r?r.getAttribute("data-user"):null,i=document.getElementsByTagName("head")[0],u=i?i.getAttribute("data-user-displayname"):null,c="undefined"!=typeof OC&&OC.isUserAdmin()},,function(e,t,n){"use strict";n.r(t);var r=n(29),o=n(96),i=Object(o.getLoggerBuilder)().setApp("Files_PDFViewer").detectUser().build(),u=n(22),c=document.getElementById("isPublic"),s=function(){return!(!c||"1"!==c.value)},a=document.getElementById("mimetype"),f=function(){return!Object(u.a)()&&void 0!==OCA.RichDocuments};
/**
 * @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @author John Molakvoæ <skjnldsv@protonmail.com>
 *
 * @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/>.
 *
 */
window.addEventListener("DOMContentLoaded",(function(){if(i.debug("Initializing for public page",{isPublicPage:s(),canDownload:Object(u.a)(),isSecureViewerAvailable:f()}),s()&&a&&"application/pdf"===a.value&&!f()){var e=location.hash.split("page=")[1]||0,t=document.getElementById("files-public-content"),n=document.getElementById("sharingToken"),o=document.querySelector("#app-content > footer"),c=n.value,l=Object(r.generateUrl)("/s/{token}/download",{token:c}),p=Object(r.generateUrl)("/apps/files_pdfviewer/?file={downloadUrl}#page={page}",{downloadUrl:l,page:e}),v=document.createElement("iframe");v.src=p,v.style.height="100%",v.style.width="100%",v.style.position="absolute",t?(t.innerHTML="",t.appendChild(v),o.style.display="none"):i.error("Unable to inject the PDF Viewer")}else i.error("But this does not appear to be a public page")}))}]);
//# sourceMappingURL=files_pdfviewer-public.js.map?v=d778f1217bb576d38f11