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

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-02-23 12:35:58 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-03-17 19:17:52 +0300
commit24d06f86cfeea271483ea67629a1d57b46116c69 (patch)
tree982c6fb38f41282f408e4aeb0c73d458e5ff3761 /js/files_pdfviewer-public.js
parent02db975e33afe5f077e9551805a7136315426fe3 (diff)
Make sure we only load the public script on public pages
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'js/files_pdfviewer-public.js')
-rw-r--r--js/files_pdfviewer-public.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/js/files_pdfviewer-public.js b/js/files_pdfviewer-public.js
index d20924b..c3fe466 100644
--- a/js/files_pdfviewer-public.js
+++ b/js/files_pdfviewer-public.js
@@ -1,4 +1,4 @@
-!function(t){var n={};function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="/js/",e(e.s=75)}([function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){(function(n){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof n&&n)||Function("return this")()}).call(this,e(41))},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(0);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,e){var r=e(3),o=e(25),i=e(21);t.exports=r?function(t,n,e){return o.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(1),o=e(4),i=e(2),c=e(13),u=e(26),a=e(43),f=a.get,l=a.enforce,s=String(String).split("String");(t.exports=function(t,n,e,u){var a=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,p=!!u&&!!u.noTargetGet;"function"==typeof e&&("string"!=typeof n||i(e,"name")||o(e,"name",n),l(e).source=s.join("string"==typeof n?n:"")),t!==r?(a?!p&&t[n]&&(f=!0):delete t[n],f?t[n]=e:o(t,n,e)):f?t[n]=e:c(n,e)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(1),o=e(19).f,i=e(4),c=e(8),u=e(13),a=e(47),f=e(53);t.exports=function(t,n){var e,l,s,p,v,g=t.target,d=t.global,h=t.stat;if(e=d?r:h?r[g]||u(g,{}):(r[g]||{}).prototype)for(l in n){if(p=n[l],s=t.noTargetGet?(v=o(e,l))&&v.value:e[l],!f(d?l:g+(h?".":"#")+l,t.forced)&&void 0!==s){if(typeof p==typeof s)continue;a(p,s)}(t.sham||s&&s.sham)&&i(p,"sham",!0),c(e,l,p,t)}}},function(t,n,e){var r=e(22),o=e(6);t.exports=function(t){return r(o(t))}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(1),o=e(4);t.exports=function(t,n){try{o(r,t,n)}catch(e){r[t]=n}return n}},function(t,n,e){var r={};r[e(15)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,n,e){var r=e(1),o=e(28),i=e(2),c=e(29),u=e(37),a=e(60),f=o("wks"),l=r.Symbol,s=a?l:l&&l.withoutSetter||c;t.exports=function(t){return i(f,t)||(u&&i(l,t)?f[t]=l[t]:f[t]=s("Symbol."+t)),f[t]}},function(t,n,e){"use strict";var r,o,i=e(39),c=e(63),u=RegExp.prototype.exec,a=String.prototype.replace,f=u,l=(r=/a/,o=/b*/g,u.call(r,"a"),u.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),s=c.UNSUPPORTED_Y||c.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(l||p||s)&&(f=function(t){var n,e,r,o,c=this,f=s&&c.sticky,v=i.call(c),g=c.source,d=0,h=t;return f&&(-1===(v=v.replace("y","")).indexOf("g")&&(v+="g"),h=String(t).slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==t[c.lastIndex-1])&&(g="(?: "+g+")",h=" "+h,d++),e=new RegExp("^(?:"+g+")",v)),p&&(e=new RegExp("^"+g+"$(?!\\s)",v)),l&&(n=c.lastIndex),r=u.call(f?e:c,h),f?r?(r.input=r.input.slice(d),r[0]=r[0].slice(d),r.index=c.lastIndex,c.lastIndex+=r[0].length):c.lastIndex=0:l&&r&&(c.lastIndex=c.global?r.index+r[0].length:n),p&&r&&r.length>1&&a.call(r[0],e,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),t.exports=f},function(t,n,e){"use strict";
+!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(55))},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(27),c=n(42),s=n(63),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(57),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(25),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(26),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(24),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(65),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>
*
@@ -19,7 +19,7 @@
* 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/>.
*
- */const r=document.getElementById("hideDownload");n.a=()=>!r||r&&"true"!==r.value},function(t,n,e){"use strict";e(40),e(56),e(59),e(38),e(64),e(65),Object.defineProperty(n,"__esModule",{value:!0}),n.getRootUrl=n.generateFilePath=n.imagePath=n.generateUrl=n.generateOcsUrl=n.generateRemoteUrl=n.linkTo=void 0;n.linkTo=function(t,n){return r(t,"",n)};n.generateRemoteUrl=function(t){return window.location.protocol+"//"+window.location.host+function(t){return o()+"/remote.php/"+t}(t)};n.generateOcsUrl=function(t,n){return n=2!==n?1:2,window.location.protocol+"//"+window.location.host+o()+"/ocs/v"+n+".php/"+t+"/"};n.generateUrl=function(t,n,e){var r=Object.assign({escape:!0,noRewrite:!1},e||{}),i=function(t,n){return n=n||{},t.replace(/{([^{}]*)}/g,(function(t,e){var o=n[e];return r.escape?"string"==typeof o||"number"==typeof o?encodeURIComponent(o.toString()):encodeURIComponent(t):"string"==typeof o||"number"==typeof o?o.toString():t}))};return"/"!==t.charAt(0)&&(t="/"+t),!0!==OC.config.modRewriteWorking||r.noRewrite?o()+"/index.php"+i(t,n||{}):o()+i(t,n||{})};n.imagePath=function(t,n){return-1===n.indexOf(".")?r(t,"img",n+".svg"):r(t,"img",n)};var r=function(t,n,e){var r=-1!==OC.coreApps.indexOf(t),i=o();return"php"!==e.substring(e.length-3)||r?"php"===e.substring(e.length-3)||r?(i+="settings"!==t&&"core"!==t&&"search"!==t||"ajax"!==n?"/":"/index.php/",r||(i+="apps/"),""!==t&&(i+=t+="/"),n&&(i+=n+"/"),i+=e):(i=OC.appswebroots[t],n&&(i+="/"+n+"/"),"/"!==i.substring(i.length-1)&&(i+="/"),i+=e):(i+="/index.php/apps/"+t,"index.php"!==e&&(i+="/",n&&(i+=encodeURI(n+"/")),i+=e)),i};n.generateFilePath=r;var o=function(){return OC.webroot};n.getRootUrl=o},function(t,n,e){var r=e(3),o=e(20),i=e(21),c=e(11),u=e(23),a=e(2),f=e(24),l=Object.getOwnPropertyDescriptor;n.f=r?l:function(t,n){if(t=c(t),n=u(n,!0),f)try{return l(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n,e){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:r},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(0),o=e(12),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(3),o=e(0),i=e(42);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(3),o=e(24),i=e(5),c=e(23),u=Object.defineProperty;n.f=r?u:function(t,n,e){if(i(t),n=c(n,!0),i(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(27),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},function(t,n,e){var r=e(1),o=e(13),i=r["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,e){var r=e(46),o=e(27);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},function(t,n){t.exports={}},function(t,n,e){var r=e(2),o=e(11),i=e(32).indexOf,c=e(30);t.exports=function(t,n){var e,u=o(t),a=0,f=[];for(e in u)!r(c,e)&&r(u,e)&&f.push(e);for(;n.length>a;)r(u,e=n[a++])&&(~i(f,e)||f.push(e));return f}},function(t,n,e){var r=e(11),o=e(33),i=e(52),c=function(t){return function(n,e,c){var u,a=r(n),f=o(a.length),l=i(c,f);if(t&&e!=e){for(;f>l;)if((u=a[l++])!=u)return!0}else for(;f>l;l++)if((t||l in a)&&a[l]===e)return t||l||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},function(t,n,e){var r=e(9),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(6);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(0);t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},function(t,n,e){"use strict";var r=e(10),o=e(16);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,n,e){"use strict";var r=e(5);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(10),o=e(32).indexOf,i=e(54),c=e(55),u=[].indexOf,a=!!u&&1/[1].indexOf(1,-0)<0,f=i("indexOf"),l=c("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:a||!f||!l},{indexOf:function(t){return a?u.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,n){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(1),o=e(7),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},function(t,n,e){var r,o,i,c=e(44),u=e(1),a=e(7),f=e(4),l=e(2),s=e(45),p=e(30),v=u.WeakMap;if(c){var g=new v,d=g.get,h=g.has,x=g.set;r=function(t,n){return x.call(g,t,n),n},o=function(t){return d.call(g,t)||{}},i=function(t){return h.call(g,t)}}else{var y=s("state");p[y]=!0,r=function(t,n){return f(t,y,n),n},o=function(t){return l(t,y)?t[y]:{}},i=function(t){return l(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(n){var e;if(!a(n)||(e=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return e}}}},function(t,n,e){var r=e(1),o=e(26),i=r.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,e){var r=e(28),o=e(29),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(2),o=e(48),i=e(19),c=e(25);t.exports=function(t,n){for(var e=o(n),u=c.f,a=i.f,f=0;f<e.length;f++){var l=e[f];r(t,l)||u(t,l,a(n,l))}}},function(t,n,e){var r=e(49),o=e(51),i=e(35),c=e(5);t.exports=r("Reflect","ownKeys")||function(t){var n=o.f(c(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(50),o=e(1),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][n]||o[t]&&o[t][n]}},function(t,n,e){var r=e(1);t.exports=r},function(t,n,e){var r=e(31),o=e(34).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){var r=e(9),o=Math.max,i=Math.min;t.exports=function(t,n){var e=r(t);return e<0?o(e+n,0):i(e,n)}},function(t,n,e){var r=e(0),o=/#|\.prototype\./,i=function(t,n){var e=u[c(t)];return e==f||e!=a&&("function"==typeof n?r(n):!!n)},c=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,e){"use strict";var r=e(0);t.exports=function(t,n){var e=[][t];return!!e&&r((function(){e.call(null,n||function(){throw 1},1)}))}},function(t,n,e){var r=e(3),o=e(0),i=e(2),c=Object.defineProperty,u={},a=function(t){throw t};t.exports=function(t,n){if(i(u,t))return u[t];n||(n={});var e=[][t],f=!!i(n,"ACCESSORS")&&n.ACCESSORS,l=i(n,0)?n[0]:a,s=i(n,1)?n[1]:void 0;return u[t]=!!e&&!o((function(){if(f&&!r)return!0;var t={length:-1};f?c(t,1,{enumerable:!0,get:a}):t[1]=1,e.call(t,l,s)}))}},function(t,n,e){var r=e(10),o=e(57);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,n,e){"use strict";var r=e(3),o=e(0),i=e(58),c=e(35),u=e(20),a=e(36),f=e(22),l=Object.assign,s=Object.defineProperty;t.exports=!l||o((function(){if(r&&1!==l({b:1},l(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},e=Symbol();return t[e]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),7!=l({},t)[e]||"abcdefghijklmnopqrst"!=i(l({},n)).join("")}))?function(t,n){for(var e=a(t),o=arguments.length,l=1,s=c.f,p=u.f;o>l;)for(var v,g=f(arguments[l++]),d=s?i(g).concat(s(g)):i(g),h=d.length,x=0;h>x;)v=d[x++],r&&!p.call(g,v)||(e[v]=g[v]);return e}:l},function(t,n,e){var r=e(31),o=e(34);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(14),o=e(8),i=e(61);r||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,n,e){var r=e(37);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,e){"use strict";var r=e(14),o=e(62);t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,n,e){var r=e(14),o=e(12),i=e(15)("toStringTag"),c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var n,e,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:c?o(n):"Object"==(r=o(n))&&"function"==typeof n.callee?"Arguments":r}},function(t,n,e){"use strict";var r=e(0);function o(t,n){return RegExp(t,n)}n.UNSUPPORTED_Y=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),n.BROKEN_CARET=r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,n,e){"use strict";var r=e(8),o=e(5),i=e(0),c=e(39),u=RegExp.prototype,a=u.toString,f=i((function(){return"/a/b"!=a.call({source:"a",flags:"b"})})),l="toString"!=a.name;(f||l)&&r(RegExp.prototype,"toString",(function(){var t=o(this),n=String(t.source),e=t.flags;return"/"+n+"/"+String(void 0===e&&t instanceof RegExp&&!("flags"in u)?c.call(t):e)}),{unsafe:!0})},function(t,n,e){"use strict";var r=e(66),o=e(5),i=e(36),c=e(33),u=e(9),a=e(6),f=e(67),l=e(69),s=Math.max,p=Math.min,v=Math.floor,g=/\$([$&'`]|\d\d?|<[^>]*>)/g,d=/\$([$&'`]|\d\d?)/g;r("replace",2,(function(t,n,e,r){var h=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,x=r.REPLACE_KEEPS_$0,y=h?"$":"$0";return[function(e,r){var o=a(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,r):n.call(String(o),e,r)},function(t,r){if(!h&&x||"string"==typeof r&&-1===r.indexOf(y)){var i=e(n,t,this,r);if(i.done)return i.value}var a=o(t),v=String(this),g="function"==typeof r;g||(r=String(r));var d=a.global;if(d){var m=a.unicode;a.lastIndex=0}for(var S=[];;){var O=l(a,v);if(null===O)break;if(S.push(O),!d)break;""===String(O[0])&&(a.lastIndex=f(v,c(a.lastIndex),m))}for(var E,w="",j=0,P=0;P<S.length;P++){O=S[P];for(var R=String(O[0]),_=s(p(u(O.index),v.length),0),I=[],T=1;T<O.length;T++)I.push(void 0===(E=O[T])?E:String(E));var A=O.groups;if(g){var C=[R].concat(I,_,v);void 0!==A&&C.push(A);var U=String(r.apply(void 0,C))}else U=b(R,v,_,I,A,r);_>=j&&(w+=v.slice(j,_)+U,j=_+R.length)}return w+v.slice(j)}];function b(t,e,r,o,c,u){var a=r+t.length,f=o.length,l=d;return void 0!==c&&(c=i(c),l=g),n.call(u,l,(function(n,i){var u;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,r);case"'":return e.slice(a);case"<":u=c[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>f){var s=v(l/10);return 0===s?n:s<=f?void 0===o[s-1]?i.charAt(1):o[s-1]+i.charAt(1):n}u=o[l-1]}return void 0===u?"":u}))}}))},function(t,n,e){"use strict";e(38);var r=e(8),o=e(0),i=e(15),c=e(16),u=e(4),a=i("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),l="$0"==="a".replace(/./,"$0"),s=i("replace"),p=!!/./[s]&&""===/./[s]("a","$0"),v=!o((function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2!==e.length||"a"!==e[0]||"b"!==e[1]}));t.exports=function(t,n,e,s){var g=i(t),d=!o((function(){var n={};return n[g]=function(){return 7},7!=""[t](n)})),h=d&&!o((function(){var n=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[a]=function(){return e},e.flags="",e[g]=/./[g]),e.exec=function(){return n=!0,null},e[g](""),!n}));if(!d||!h||"replace"===t&&(!f||!l||p)||"split"===t&&!v){var x=/./[g],y=e(g,""[t],(function(t,n,e,r,o){return n.exec===c?d&&!o?{done:!0,value:x.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],m=y[1];r(String.prototype,t,b),r(RegExp.prototype,g,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}s&&u(RegExp.prototype[g],"sham",!0)}},function(t,n,e){"use strict";var r=e(68).charAt;t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){var r=e(9),o=e(6),i=function(t){return function(n,e){var i,c,u=String(o(n)),a=r(e),f=u.length;return a<0||a>=f?t?"":void 0:(i=u.charCodeAt(a))<55296||i>56319||a+1===f||(c=u.charCodeAt(a+1))<56320||c>57343?t?u.charAt(a):i:t?u.slice(a,a+2):c-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,n,e){var r=e(12),o=e(16);t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var i=e.call(t,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},,,,,,function(t,n,e){"use strict";e.r(n);var r=e(18),o=e(17);
+ */const r=document.getElementById("hideDownload");t.a=()=>!r||r&&"true"!==r.value},function(e,t,n){"use strict";n(54),n(49),n(51),n(43),n(66),n(67),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(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(56),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(59),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){var r=n(4),o=n(31),i=n(17),u=n(13),c=n(25),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(27),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(61),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(62);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(e,t,n){var r=n(38),o=n(29);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(20),o=n(10),i=n(64);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(58),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(28),o=n(60),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(29).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(24),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(68),o=n(5),i=n(16),u=n(15),c=n(12),s=n(11),a=n(69),f=n(70),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(29),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(75),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(71),o=n(24),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(72),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(72),{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(26),c=n(74),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(27),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(71),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(72),{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(25),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(28);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(73),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(28);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(89).IteratorPrototype,o=n(73),i=n(17),u=n(75),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(75),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(73),i=n(133),u=n(71),c=n(94),s=n(93),a=n(74),f=n(134),l=n(4),p=n(92).fastKey,v=n(26),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(28),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(26),i=n(74),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(23),o=n(96);var i=Object(o.getLoggerBuilder)().setApp("Files_PDFViewer").detectUser().build(),u=n(22);
/**
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
*
@@ -41,7 +41,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-const i=document.getElementById("isPublic");var c=()=>i&&"1"===i.value;
+const c=document.getElementById("isPublic");var s=()=>!(!c||"1"!==c.value);
/**
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
*
@@ -62,7 +62,7 @@ const i=document.getElementById("isPublic");var c=()=>i&&"1"===i.value;
* 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/>.
*
- */const u=document.getElementById("mimetype");var a=()=>!Object(o.a)()&&void 0!==OCA.RichDocuments;
+ */const a=document.getElementById("mimetype");var f=()=>!Object(u.a)()&&void 0!==OCA.RichDocuments;
/**
* @copyright Copyright (c) 2020 John Molakvoæ <skjnldsv@protonmail.com>
*
@@ -105,5 +105,5 @@ const i=document.getElementById("isPublic");var c=()=>i&&"1"===i.value;
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
-window.addEventListener("DOMContentLoaded",(function(){if(console.debug("Files_PDFViewer initialized for public page",{isPublicPage:c(),canDownload:Object(o.a)(),isSecureViewerAvailable:a()}),c()&&u&&"application/pdf"===u.value&&!a()){const t=location.hash.split("page=")[1]||0,n=document.getElementById("files-public-content"),e=document.getElementById("sharingToken"),o=document.querySelector("#app-content > footer"),i=e.value,c=Object(r.generateUrl)("/s/{token}/download",{token:i}),u=Object(r.generateUrl)("/apps/files_pdfviewer/?file={downloadUrl}#page={page}",{downloadUrl:c,page:t}),a=document.createElement("iframe");a.src=u,a.style.height="100%",a.style.width="100%",a.style.position="absolute",n?(n.innerHTML="",n.appendChild(a),o.style.display="none"):console.error("Unable to inject the PDF Viewer")}}))}]);
-//# sourceMappingURL=files_pdfviewer-public.js.map?v=fe3ed2374df8387b1770 \ No newline at end of file
+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()){const e=location.hash.split("page=")[1]||0,t=document.getElementById("files-public-content"),n=document.getElementById("sharingToken"),o=document.querySelector("#app-content > footer"),u=n.value,c=Object(r.generateUrl)("/s/{token}/download",{token:u}),s=Object(r.generateUrl)("/apps/files_pdfviewer/?file={downloadUrl}#page={page}",{downloadUrl:c,page:e}),a=document.createElement("iframe");a.src=s,a.style.height="100%",a.style.width="100%",a.style.position="absolute",t?(t.innerHTML="",t.appendChild(a),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=68a190b1893de6f7b703 \ No newline at end of file