/*! For license information please see comments-comments-app.js.LICENSE.txt */ (()=>{var e,n,o,s={87861:(e,n,o)=>{"use strict";var s=o(21777),r=o(53334),i=o(19166),a=o(63757),c=o(96763);let l;const u=t=>l=t,p=Symbol();function h(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var d;!function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"}(d||(d={}));const f="undefined"!=typeof window,m=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function g(t,e,n){const o=new XMLHttpRequest;o.open("GET",t),o.responseType="blob",o.onload=function(){_(o.response,e,n)},o.onerror=function(){c.error("could not download file")},o.send()}function y(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function b(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const v="object"==typeof navigator?navigator:{userAgent:""},A=(()=>/Macintosh/.test(v.userAgent)&&/AppleWebKit/.test(v.userAgent)&&!/Safari/.test(v.userAgent))(),_=f?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!A?function(t,e="download",n){const o=document.createElement("a");o.download=e,o.rel="noopener","string"==typeof t?(o.href=t,o.origin!==location.origin?y(o.href)?g(t,e,n):(o.target="_blank",b(o)):b(o)):(o.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(o.href)}),4e4),setTimeout((function(){b(o)}),0))}:"msSaveOrOpenBlob"in v?function(t,e="download",n){if("string"==typeof t)if(y(t))g(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){b(e)}))}else navigator.msSaveOrOpenBlob(function(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return g(t,e,n);const s="application/octet-stream"===t.type,r=/constructor/i.test(String(m.HTMLElement))||"safari"in m,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&r||A)&&"undefined"!=typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!=typeof t)throw o=null,new Error("Wrong reader.result type");t=i?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location.assign(t),o=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);o?o.location.assign(e):location.href=e,o=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}:()=>{};function w(t,e){const n="๐Ÿ "+t;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?c.error(n):"warn"===e?c.warn(n):c.log(n)}function C(t){return"_a"in t&&"install"in t}function x(){if(!("clipboard"in navigator))return w("Your browser doesn't support the Clipboard API","error"),!0}function S(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(w('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let O;function E(t,e){for(const n in e){const o=t.state.value[n];o?Object.assign(o,e[n]):t.state.value[n]=e[n]}}function I(t){return{_custom:{display:t}}}const T="๐Ÿ Pinia (root)",j="_root";function $(t){return C(t)?{id:j,label:T}:{id:t.$id,label:t.$id}}function k(t){return t?Array.isArray(t)?t.reduce(((t,e)=>(t.keys.push(e.key),t.operations.push(e.type),t.oldValue[e.key]=e.oldValue,t.newValue[e.key]=e.newValue,t)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:I(t.type),key:I(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function M(t){switch(t){case d.direct:return"mutation";case d.patchFunction:case d.patchObject:return"$patch";default:return"unknown"}}let P=!0;const R=[],L="pinia:mutations",N="pinia",{assign:D}=Object,V=t=>"๐Ÿ "+t;function W(t,e){(0,a.$q)({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:R,app:t},(n=>{"function"!=typeof n.now&&w("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:L,label:"Pinia ๐Ÿ",color:15064968}),n.addInspector({id:N,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!x())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),w("Global state copied to clipboard.")}catch(t){if(S(t))return;w("Failed to serialize the state. Check the console for more details.","error"),c.error(t)}}(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(t){if(!x())try{E(t,JSON.parse(await navigator.clipboard.readText())),w("Global state pasted from clipboard.")}catch(t){if(S(t))return;w("Failed to deserialize the state from clipboard. Check the console for more details.","error"),c.error(t)}}(e),n.sendInspectorTree(N),n.sendInspectorState(N)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(t){try{_(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){w("Failed to export the state as JSON. Check the console for more details.","error"),c.error(t)}}(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(t){try{const e=(O||(O=document.createElement("input"),O.type="file",O.accept=".json"),function(){return new Promise(((t,e)=>{O.onchange=async()=>{const e=O.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},O.oncancel=()=>t(null),O.onerror=e,O.click()}))}),n=await e();if(!n)return;const{text:o,file:s}=n;E(t,JSON.parse(o)),w(`Global state imported from "${s.name}".`)}catch(t){w("Failed to import the state from JSON. Check the console for more details.","error"),c.error(t)}}(e),n.sendInspectorTree(N),n.sendInspectorState(N)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:t=>{const n=e._s.get(t);n?"function"!=typeof n.$reset?w(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),w(`Store "${t}" reset.`)):w(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((t,e)=>{const n=t.componentInstance&&t.componentInstance.proxy;if(n&&n._pStores){const e=t.componentInstance.proxy._pStores;Object.values(e).forEach((e=>{t.instanceData.state.push({type:V(e.$id),key:"state",editable:!0,value:e._isOptionsAPI?{_custom:{value:(0,i.ux)(e.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>e.$reset()}]}}:Object.keys(e.$state).reduce(((t,n)=>(t[n]=e.$state[n],t)),{})}),e._getters&&e._getters.length&&t.instanceData.state.push({type:V(e.$id),key:"getters",editable:!1,value:e._getters.reduce(((t,n)=>{try{t[n]=e[n]}catch(e){t[n]=e}return t}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===t&&n.inspectorId===N){let t=[e];t=t.concat(Array.from(e._s.values())),n.rootNodes=(n.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(n.filter.toLowerCase()):T.toLowerCase().includes(n.filter.toLowerCase()))):t).map($)}})),globalThis.$pinia=e,n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===N){const t=n.nodeId===j?e:e._s.get(n.nodeId);if(!t)return;t&&(n.nodeId!==j&&(globalThis.$store=(0,i.ux)(t)),n.state=function(t){if(C(t)){const e=Array.from(t._s.keys()),n=t._s,o={state:e.map((e=>({editable:!0,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:!1,key:t,value:e._getters.reduce(((t,n)=>(t[n]=e[n],t)),{})}}))};return o}const e={state:Object.keys(t.$state).map((e=>({editable:!0,key:e,value:t.$state[e]})))};return t._getters&&t._getters.length&&(e.getters=t._getters.map((e=>({editable:!1,key:e,value:t[e]})))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map((e=>({editable:!0,key:e,value:t[e]})))),e}(t))}})),n.on.editInspectorState(((n,o)=>{if(n.app===t&&n.inspectorId===N){const t=n.nodeId===j?e:e._s.get(n.nodeId);if(!t)return w(`store "${n.nodeId}" not found`,"error");const{path:o}=n;C(t)?o.unshift("state"):1===o.length&&t._customProperties.has(o[0])&&!(o[0]in t.$state)||o.unshift("$state"),P=!1,n.set(t,o,n.state.value),P=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("๐Ÿ")){const n=t.type.replace(/^๐Ÿ\s*/,""),o=e._s.get(n);if(!o)return w(`store "${n}" not found`,"error");const{path:s}=t;if("state"!==s[0])return w(`Invalid path for store "${n}":\n${s}\nOnly state can be modified.`);s[0]="$state",P=!1,t.set(o,s,t.state.value),P=!0}}))}))}let B,U=0;function z(t,e,n){const o=e.reduce(((e,n)=>(e[n]=(0,i.ux)(t)[n],e)),{});for(const e in o)t[e]=function(){const s=U,r=n?new Proxy(t,{get:(...t)=>(B=s,Reflect.get(...t)),set:(...t)=>(B=s,Reflect.set(...t))}):t;B=s;const i=o[e].apply(r,arguments);return B=void 0,i}}function H({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!n.state,!e._p._testing){z(e,Object.keys(n.actions),e._isOptionsAPI);const t=e._hotUpdate;(0,i.ux)(e)._hotUpdate=function(n){t.apply(this,arguments),z(e,Object.keys(n._hmrPayload.actions),!!e._isOptionsAPI)}}!function(t,e){R.includes(V(e.$id))||R.push(V(e.$id)),(0,a.$q)({id:"dev.esm.pinia",label:"Pinia ๐Ÿ",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:R,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(t=>{const n="function"==typeof t.now?t.now.bind(t):Date.now;e.$onAction((({after:o,onError:s,name:r,args:i})=>{const a=U++;t.addTimelineEvent({layerId:L,event:{time:n(),title:"๐Ÿ›ซ "+r,subtitle:"start",data:{store:I(e.$id),action:I(r),args:i},groupId:a}}),o((o=>{B=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),title:"๐Ÿ›ฌ "+r,subtitle:"end",data:{store:I(e.$id),action:I(r),args:i,result:o},groupId:a}})})),s((o=>{B=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),logType:"error",title:"๐Ÿ’ฅ "+r,subtitle:"end",data:{store:I(e.$id),action:I(r),args:i,error:o},groupId:a}})}))}),!0),e._customProperties.forEach((o=>{(0,i.wB)((()=>(0,i.R1)(e[o])),((e,s)=>{t.notifyComponentUpdate(),t.sendInspectorState(N),P&&t.addTimelineEvent({layerId:L,event:{time:n(),title:"Change",subtitle:o,data:{newValue:e,oldValue:s},groupId:B}})}),{deep:!0})})),e.$subscribe((({events:o,type:s},r)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(N),!P)return;const i={time:n(),title:M(s),data:D({store:I(e.$id)},k(o)),groupId:B};s===d.patchFunction?i.subtitle="โคต๏ธ":s===d.patchObject?i.subtitle="๐Ÿงฉ":o&&!Array.isArray(o)&&(i.subtitle=o.type),o&&(i.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:o}}),t.addTimelineEvent({layerId:L,event:i})}),{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=(0,i.IG)((s=>{o(s),t.addTimelineEvent({layerId:L,event:{time:n(),title:"๐Ÿ”ฅ "+e.$id,subtitle:"HMR update",data:{store:I(e.$id),info:I("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(N),t.sendInspectorState(N)}));const{$dispose:s}=e;e.$dispose=()=>{s(),t.notifyComponentUpdate(),t.sendInspectorTree(N),t.sendInspectorState(N),t.getSettings().logStoreChanges&&w(`Disposed "${e.$id}" store ๐Ÿ—‘`)},t.notifyComponentUpdate(),t.sendInspectorTree(N),t.sendInspectorState(N),t.getSettings().logStoreChanges&&w(`"${e.$id}" store installed ๐Ÿ†•`)}))}(t,e)}}const G=()=>{};function F(t,e,n,o=G){t.push(e);const s=()=>{const n=t.indexOf(e);n>-1&&(t.splice(n,1),o())};return!n&&(0,i.o5)()&&(0,i.jr)(s),s}function q(t,...e){t.slice().forEach((t=>{t(...e)}))}const Y=t=>t(),Z=Symbol(),J=Symbol();function K(t,e){t instanceof Map&&e instanceof Map?e.forEach(((e,n)=>t.set(n,e))):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const o=e[n],s=t[n];h(s)&&h(o)&&t.hasOwnProperty(n)&&!(0,i.i9)(o)&&!(0,i.g8)(o)?t[n]=K(s,o):t[n]=o}return t}const Q=Symbol(),X=new WeakMap,{assign:tt}=Object;function et(t,e,n={},o,s,r){let a;const c=tt({actions:{}},n),l={deep:!0};let p,m,g,y=[],b=[];const v=o.state.value[t];r||v||(i.LE?(0,i.hZ)(o.state.value,t,{}):o.state.value[t]={});const A=(0,i.KR)({});let _;function w(e){let n;p=m=!1,"function"==typeof e?(e(o.state.value[t]),n={type:d.patchFunction,storeId:t,events:g}):(K(o.state.value[t],e),n={type:d.patchObject,payload:e,storeId:t,events:g});const s=_=Symbol();(0,i.dY)().then((()=>{_===s&&(p=!0)})),m=!0,q(y,n,o.state.value[t])}const C=r?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{tt(t,e)}))}:G,x=(e,n="")=>{if(Z in e)return e[J]=n,e;const s=function(){u(o);const n=Array.from(arguments),r=[],i=[];let a;q(b,{args:n,name:s[J],store:E,after:function(t){r.push(t)},onError:function(t){i.push(t)}});try{a=e.apply(this&&this.$id===t?this:E,n)}catch(t){throw q(i,t),t}return a instanceof Promise?a.then((t=>(q(r,t),t))).catch((t=>(q(i,t),Promise.reject(t)))):(q(r,a),a)};return s[Z]=!0,s[J]=n,s},S=(0,i.IG)({actions:{},getters:{},state:[],hotState:A}),O={_p:o,$id:t,$onAction:F.bind(null,b),$patch:w,$reset:C,$subscribe(e,n={}){const s=F(y,e,n.detached,(()=>r())),r=a.run((()=>(0,i.wB)((()=>o.state.value[t]),(o=>{("sync"===n.flush?m:p)&&e({storeId:t,type:d.direct,events:g},o)}),tt({},l,n))));return s},$dispose:function(){a.stop(),y=[],b=[],o._s.delete(t)}};i.LE&&(O._r=!1);const E=(0,i.Kh)("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&f?tt({_hmrPayload:S,_customProperties:(0,i.IG)(new Set)},O):O);o._s.set(t,E);const I=(o._a&&o._a.runWithContext||Y)((()=>o._e.run((()=>(a=(0,i.uY)()).run((()=>e({action:x})))))));for(const e in I){const n=I[e];if((0,i.i9)(n)&&(j=n,!(0,i.i9)(j)||!j.effect)||(0,i.g8)(n))r||(!v||(T=n,i.LE?X.has(T):h(T)&&T.hasOwnProperty(Q))||((0,i.i9)(n)?n.value=v[e]:K(n,v[e])),i.LE?(0,i.hZ)(o.state.value[t],e,n):o.state.value[t][e]=n);else if("function"==typeof n){const t=x(n,e);i.LE?(0,i.hZ)(I,e,t):I[e]=t,c.actions[e]=n}}var T,j;if(i.LE?Object.keys(I).forEach((t=>{(0,i.hZ)(E,t,I[t])})):(tt(E,I),tt((0,i.ux)(E),I)),Object.defineProperty(E,"$state",{get:()=>o.state.value[t],set:t=>{w((e=>{tt(e,t)}))}}),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&f){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(E,e,tt({value:E[e]},t))}))}return i.LE&&(E._r=!0),o._p.forEach((t=>{if("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&f){const e=a.run((()=>t({store:E,app:o._a,pinia:o,options:c})));Object.keys(e||{}).forEach((t=>E._customProperties.add(t))),tt(E,e)}else tt(E,a.run((()=>t({store:E,app:o._a,pinia:o,options:c}))))})),v&&r&&n.hydrate&&n.hydrate(E.$state,v),p=!0,m=!0,E}function nt(...t){return t.reduce(((t,e)=>(t[e.$id+"Store"]=function(){return e(this.$pinia)},t)),{})}var ot=o(85471),st=o(85168),rt=o(55042),it=o(80284),at=o(96763);function ct(t){return ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ct(t)}function lt(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{},i=function(i){for(var a=arguments.length,c=new Array(a>1?a-1:0),l=1;l1){var o=t.find((function(t){return t.isIntersecting}));o&&(e=o)}if(n.callback){var s=e.isIntersecting&&e.intersectionRatio>=n.threshold;if(s===n.oldResult)return;n.oldResult=s,n.callback(s,e)}}),this.options.intersection),e.context.$nextTick((function(){n.observer&&n.observer.observe(n.el)}))}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&"number"==typeof this.options.intersection.threshold?this.options.intersection.threshold:0}}],n&<(e.prototype,n),t}();function dt(t,e,n){var o=e.value;if(o)if("undefined"==typeof IntersectionObserver)at.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new ht(t,o,n);t._vue_visibilityState=s}}function ft(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var mt={bind:dt,update:function(t,e,n){var o=e.value;if(!pt(o,e.oldValue)){var s=t._vue_visibilityState;o?s?s.createObserver(o,n):dt(t,{value:o},n):ft(t)}},unbind:ft},gt={version:"1.0.0",install:function(t){t.directive("observe-visibility",mt)}},yt=null;"undefined"!=typeof window?yt=window.Vue:void 0!==o.g&&(yt=o.g.Vue),yt&&yt.use(gt);const bt=gt;var vt=o(76162);const At={name:"MessageReplyTextIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _t=o(14486);const wt=(0,_t.A)(At,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon message-reply-text-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var Ct=o(54332),xt=o(34196);const St={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Ot=(0,_t.A)(St,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon refresh-icon",attrs:{"aria-hidden":!t.title||null,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var Et=o(44719),It=o(68928);const Tt=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},jt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},$t=t=>t.replace(/[[\]\\-]/g,"\\$&"),kt=t=>t.join(""),Mt=(t,e)=>{const n=e;if("["!==t.charAt(n))throw new Error("not in a brace expression");const o=[],s=[];let r=n+1,i=!1,a=!1,c=!1,l=!1,u=n,p="";t:for(;rp?o.push($t(p)+"-"+$t(e)):e===p&&o.push($t(e)),p="",r++):t.startsWith("-]",r+1)?(o.push($t(e+"-")),r+=2):t.startsWith("-",r+1)?(p=e,r+=2):(o.push($t(e)),r++)}else c=!0,r++}else l=!0,r++}if(ue?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),Rt=new Set(["!","?","+","*","@"]),Lt=t=>Rt.has(t),Nt="(?!\\.)",Dt=new Set(["[","."]),Vt=new Set(["..","."]),Wt=new Set("().*{}+?[]^$\\!"),Bt="[^/]",Ut=Bt+"*?",zt=Bt+"+?";class Ht{type;#t;#e;#n=!1;#o=[];#s;#r;#i;#a=!1;#c;#l;#u=!1;constructor(t,e,n={}){this.type=t,t&&(this.#e=!0),this.#s=e,this.#t=this.#s?this.#s.#t:this,this.#c=this.#t===this?n:this.#t.#c,this.#i=this.#t===this?[]:this.#t.#i,"!"!==t||this.#t.#a||this.#i.push(this),this.#r=this.#s?this.#s.#o.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#o)if("string"!=typeof t&&(t.type||t.hasMagic))return this.#e=!0;return this.#e}toString(){return void 0!==this.#l?this.#l:this.type?this.#l=this.type+"("+this.#o.map((t=>String(t))).join("|")+")":this.#l=this.#o.map((t=>String(t))).join("")}#p(){if(this!==this.#t)throw new Error("should only call on root");if(this.#a)return this;let t;for(this.toString(),this.#a=!0;t=this.#i.pop();){if("!"!==t.type)continue;let e=t,n=e.#s;for(;n;){for(let o=e.#r+1;!n.type&&o"string"==typeof t?t:t.toJSON())):[this.type,...this.#o.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#s?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#s?.isStart())return!1;if(0===this.#r)return!0;const t=this.#s;for(let e=0;e{const[o,s,r,i]="string"==typeof e?Ht.#d(e,this.#e,n):e.toRegExpSource(t);return this.#e=this.#e||r,this.#n=this.#n||i,o})).join("");let s="";if(this.isStart()&&"string"==typeof this.#o[0]&&(1!==this.#o.length||!Vt.has(this.#o[0]))){const n=Dt,r=e&&n.has(o.charAt(0))||o.startsWith("\\.")&&n.has(o.charAt(2))||o.startsWith("\\.\\.")&&n.has(o.charAt(4)),i=!e&&!t&&n.has(o.charAt(0));s=r?"(?!(?:^|/)\\.\\.?(?:$|/))":i?Nt:""}let r="";return this.isEnd()&&this.#t.#a&&"!"===this.#s?.type&&(r="(?:$|\\/)"),[s+o+r,Pt(o),this.#e=!!this.#e,this.#n]}const n="*"===this.type||"+"===this.type,o="!"===this.type?"(?:(?!(?:":"(?:";let s=this.#f(e);if(this.isStart()&&this.isEnd()&&!s&&"!"!==this.type){const t=this.toString();return this.#o=[t],this.type=null,this.#e=void 0,[t,Pt(this.toString()),!1,!1]}let r=!n||t||e?"":this.#f(!0);r===s&&(r=""),r&&(s=`(?:${s})(?:${r})*?`);let i="";return i="!"===this.type&&this.#u?(this.isStart()&&!e?Nt:"")+zt:o+s+("!"===this.type?"))"+(!this.isStart()||e||t?"":Nt)+Ut+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&r?")":"*"===this.type&&r?")?":`)${this.type}`),[i,Pt(s),this.#e=!!this.#e,this.#n]}#f(t){return this.#o.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[n,o,s,r]=e.toRegExpSource(t);return this.#n=this.#n||r,n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#d(t,e,n=!1){let o=!1,s="",r=!1;for(let i=0;i(Tt(e),!(!n.nocomment&&"#"===e.charAt(0))&&new ve(e,n).match(t)),Yt=/^\*+([^+@!?\*\[\(]*)$/,Zt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Jt=t=>e=>e.endsWith(t),Kt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Qt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Xt=/^\*+\.\*+$/,te=t=>!t.startsWith(".")&&t.includes("."),ee=t=>"."!==t&&".."!==t&&t.includes("."),ne=/^\.\*+$/,oe=t=>"."!==t&&".."!==t&&t.startsWith("."),se=/^\*+$/,re=t=>0!==t.length&&!t.startsWith("."),ie=t=>0!==t.length&&"."!==t&&".."!==t,ae=/^\?+([^+@!?\*\[\(]*)?$/,ce=([t,e=""])=>{const n=he([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},le=([t,e=""])=>{const n=de([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},ue=([t,e=""])=>{const n=de([t]);return e?t=>n(t)&&t.endsWith(e):n},pe=([t,e=""])=>{const n=he([t]);return e?t=>n(t)&&t.endsWith(e):n},he=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},de=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},fe="object"==typeof Gt&&Gt?"object"==typeof Gt.env&&Gt.env&&Gt.env.__MINIMATCH_TESTING_PLATFORM__||Gt.platform:"posix";qt.sep="win32"===fe?"\\":"/";const me=Symbol("globstar **");qt.GLOBSTAR=me,qt.filter=(t,e={})=>n=>qt(n,t,e);const ge=(t,e={})=>Object.assign({},t,e);qt.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return qt;const e=qt;return Object.assign(((n,o,s={})=>e(n,o,ge(t,s))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,ge(t,n))}static defaults(n){return e.defaults(ge(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,o={}){super(e,n,ge(t,o))}static fromGlob(n,o={}){return e.AST.fromGlob(n,ge(t,o))}},unescape:(n,o={})=>e.unescape(n,ge(t,o)),escape:(n,o={})=>e.escape(n,ge(t,o)),filter:(n,o={})=>e.filter(n,ge(t,o)),defaults:n=>e.defaults(ge(t,n)),makeRe:(n,o={})=>e.makeRe(n,ge(t,o)),braceExpand:(n,o={})=>e.braceExpand(n,ge(t,o)),match:(n,o,s={})=>e.match(n,o,ge(t,s)),sep:e.sep,GLOBSTAR:me})};const ye=(t,e={})=>(Tt(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:It(t));qt.braceExpand=ye,qt.makeRe=(t,e={})=>new ve(t,e).makeRe(),qt.match=(t,e,n={})=>{const o=new ve(e,n);return t=t.filter((t=>o.match(t))),o.options.nonull&&!t.length&&t.push(e),t};const be=/[?*]|[+@!]\(.*?\)|\[|\]/;class ve{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){Tt(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||fe,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==e.windowsNoMagicRoot?e.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const e of t)if("string"!=typeof e)return!0;return!1}debug(...t){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...t)=>Ft.error(...t)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((t=>this.slashSplit(t)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map(((t,e,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&be.test(t[2])||be.test(t[3])),n=/^[a-z]:/i.test(t[0]);if(e)return[...t.slice(0,4),...t.slice(4).map((t=>this.parse(t)))];if(n)return[t[0],...t.slice(1).map((t=>this.parse(t)))]}return t.map((t=>this.parse(t)))}));if(this.debug(this.pattern,o),this.set=o.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):t=e>=1?this.levelOneOptimize(t):this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map((t=>{let e=-1;for(;-1!==(e=t.indexOf("**",e+1));){let n=e;for(;"**"===t[n+1];)n++;n!==e&&t.splice(e,n-e)}return t}))}levelOneOptimize(t){return t.map((t=>0===(t=t.reduce(((t,e)=>{const n=t[t.length-1];return"**"===e&&"**"===n?t:".."===e&&n&&".."!==n&&"."!==n&&"**"!==n?(t.pop(),t):(t.push(e),t)}),[])).length?[""]:t))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let n=1;no&&n.splice(o+1,s-o);let r=n[o+1];const i=n[o+2],a=n[o+3];if(".."!==r)continue;if(!i||"."===i||".."===i||!a||"."===a||".."===a)continue;e=!0,n.splice(o,1);const c=n.slice(0);c[o]="**",t.push(c),o--}if(!this.preserveMultipleSlashes){for(let t=1;tt.length))}partsMatch(t,e,n=!1){let o=0,s=0,r=[],i="";for(;or?e=e.slice(i):r>i&&(t=t.slice(r)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var r=0,i=0,a=t.length,c=e.length;r>> no match, partial?",t,p,e,h),p!==a))}let s;if("string"==typeof l?(s=u===l,this.debug("string match",l,u,s)):(s=l.test(u),this.debug("pattern match",l,u,s)),!s)return!1}if(r===a&&i===c)return!0;if(r===a)return n;if(i===c)return r===a-1&&""===t[r];throw new Error("wtf?")}braceExpand(){return ye(this.pattern,this.options)}parse(t){Tt(t);const e=this.options;if("**"===t)return me;if(""===t)return"";let n,o=null;(n=t.match(se))?o=e.dot?ie:re:(n=t.match(Yt))?o=(e.nocase?e.dot?Qt:Kt:e.dot?Jt:Zt)(n[1]):(n=t.match(ae))?o=(e.nocase?e.dot?le:ce:e.dot?ue:pe)(n):(n=t.match(Xt))?o=e.dot?ee:te:(n=t.match(ne))&&(o=oe);const s=Ht.fromGlob(t,this.options).toMMPattern();return o&&"object"==typeof s&&Reflect.defineProperty(s,"test",{value:o}),s}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",o=new Set(e.nocase?["i"]:[]);let s=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))o.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===me?me:t._src}));return e.forEach(((t,o)=>{const s=e[o+1],r=e[o-1];t===me&&r!==me&&(void 0===r?void 0!==s&&s!==me?e[o+1]="(?:\\/|"+n+"\\/)?"+s:e[o]=n:void 0===s?e[o-1]=r+"(?:\\/|"+n+")?":s!==me&&(e[o-1]=r+"(?:\\/|\\/"+n+"\\/)"+s,e[o+1]=me))})),e.filter((t=>t!==me)).join("/")})).join("|");const[r,i]=t.length>1?["(?:",")"]:["",""];s="^"+r+s+i+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...o].join(""))}catch(t){this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const o=this.slashSplit(t);this.debug(this.pattern,"split",o);const s=this.set;this.debug(this.pattern,"set",s);let r=o[o.length-1];if(!r)for(let t=o.length-2;!r&&t>=0;t--)r=o[t];for(let t=0;te?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),qt.unescape=Pt;var _e,we=o(12692);o(86454),o(26602),Error,function(t){t.Array="array",t.Object="object",t.Original="original"}(_e||(_e={}));var Ce=o(63814);const xe=function(){return(0,Ce.dC)("dav/comments")},Se=(0,Et.UU)(xe()),Oe=t=>{Se.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=t?t:""})};(0,s.zo)(Oe),Oe((0,s.do)());const Ee=Se,Ie=async function(t,e){var n;let{resourceType:o,resourceId:s}=t;const r=["",o,s].join("/"),i=e.datetime?"".concat(e.datetime.toISOString(),""):"",a=await Ee.customRequest(r,Object.assign({method:"REPORT",data:'\n\t\t\t\n\t\t\t\t'.concat(null!==(n=e.limit)&&void 0!==n?n:20,"\n\t\t\t\t").concat(e.offset||0,"\n\t\t\t\t").concat(i,"\n\t\t\t")},e)),c=await a.text(),l=await(0,Et.h4)(c);return function(t,e,n=!1){return n?{data:e,headers:t.headers?Ae(t.headers):{},status:t.status,statusText:t.statusText}:e}(a,Te(l,!0),!0)},Te=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{multistatus:{response:n}}=t;return n.map((t=>{const n=t.propstat.prop;return function(t,e,n=!1){const{getlastmodified:o=null,getcontentlength:s="0",resourcetype:r=null,getcontenttype:i=null,getetag:a=null}=t,c=r&&"object"==typeof r&&void 0!==r.collection?"directory":"file",l={filename:e,basename:we.basename(e),lastmod:o,size:parseInt(s,10),type:c,etag:"string"==typeof a?a.replace(/"/g,""):null};return"file"===c&&(l.mime=i&&"string"==typeof i?i.split(";")[0]:""),n&&(void 0!==t.displayname&&(t.displayname=String(t.displayname)),l.props=t),l}(n,n.id.toString(),e)}))};var je=o(89257),$e=o(24764),ke=o(80114),Me=o(41944),Pe=o(4604),Re=o(84237),Le=o(80701),Ne=o(9191),De=o(24325),Ve=o(11037),We=o(93919);function Be(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=new DOMParser;let o=t;for(let t=0;t(e[o]=(0,i.IG)((0,i.EW)((()=>{u(n);const e=n._s.get(t);if(!i.LE||e._r)return a[o].call(e,e)}))),e)),{}))}),e,n,0,!0)}(o,s,t)),t._s.get(o)}return o=t,s=r?void 0:e,a.$id=o,a}("deletedCommentLimbo",{state:()=>({idsInLimbo:[]}),actions:{addId(t){this.idsInLimbo.push(t)},removeId(t){const e=this.idsInLimbo.indexOf(t);e>-1&&this.idsInLimbo.splice(e,1)},checkForId(t){this.idsInLimbo.includes(t)}}}),He=(0,o(53529).YK)().setApp("comments").detectUser().build();var Ge=o(96763);const Fe={props:{id:{type:Number,default:null},message:{type:String,default:""},resourceId:{type:[String,Number],required:!0},resourceType:{type:String,default:"files"}},data:()=>({deleted:!1,editing:!1,loading:!1}),computed:{...nt(ze)},methods:{onEdit(){this.editing=!0},onEditCancel(){this.editing=!1,this.updateLocalMessage(this.message)},async onEditComment(e){this.loading=!0;try{await async function(t,e,n,o){const s=["",t,e,n].join("/");return await Ee.customRequest(s,Object.assign({method:"PROPPATCH",data:'\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t'.concat(o,"\n\t\t\t\t\n\t\t\t\n\t\t\t")}))}(this.resourceType,this.resourceId,this.id,e),He.debug("Comment edited",{resourceType:this.resourceType,resourceId:this.resourceId,id:this.id,message:e}),this.$emit("update:message",e),this.editing=!1}catch(e){(0,st.Qg)(t("comments","An error occurred while trying to edit the comment")),Ge.error(e)}finally{this.loading=!1}},onDeleteWithUndo(){this.$emit("delete"),this.deleted=!0,this.deletedCommentLimboStore.addId(this.id);const e=setTimeout(this.onDelete,st.Br);(0,st._h)(t("comments","Comment deleted"),(()=>{clearTimeout(e),this.deleted=!1,this.deletedCommentLimboStore.removeId(this.id)}))},async onDelete(){try{await async function(t,e,n){const o=["",t,e,n].join("/");await Ee.deleteFile(o)}(this.resourceType,this.resourceId,this.id),He.debug("Comment deleted",{resourceType:this.resourceType,resourceId:this.resourceId,id:this.id}),this.$emit("delete",this.id)}catch(e){(0,st.Qg)(t("comments","An error occurred while trying to delete the comment")),Ge.error(e),this.deleted=!1,this.deletedCommentLimboStore.removeId(this.id)}},async onNewComment(e){this.loading=!0;try{const t=await async function(t,e,n){const o=["",t,e].join("/"),r=await Ue.Ay.post(xe()+o,{actorDisplayName:(0,s.HW)().displayName,actorId:(0,s.HW)().uid,actorType:"users",creationDateTime:(new Date).toUTCString(),message:n,objectType:t,verb:"comment"}),i=o+"/"+parseInt(r.headers["content-location"].split("/").pop()),a=await Ee.stat(i,{details:!0}),c=a.data.props;return c.actorDisplayName=Be(c.actorDisplayName,2),c.message=Be(c.message,2),a.data}(this.resourceType,this.resourceId,e);He.debug("New comment posted",{resourceType:this.resourceType,resourceId:this.resourceId,newComment:t}),this.$emit("new",t),this.$emit("update:message",""),this.localMessage=""}catch(e){(0,st.Qg)(t("comments","An error occurred while trying to create the comment")),Ge.error(e)}finally{this.loading=!1}}}},qe={name:"Comment",components:{IconArrowRight:Ne.A,IconClose:De.A,IconDelete:Ve.A,IconEdit:We.A,NcActionButton:je.A,NcActions:$e.A,NcActionSeparator:ke.A,NcAvatar:Me.A,NcButton:Ct.A,NcDateTime:Pe.A,NcLoadingIcon:Re.A,NcRichContenteditable:()=>Promise.all([o.e(4208),o.e(5528)]).then(o.bind(o,95528))},mixins:[Le.Ay,Fe],inheritAttrs:!1,props:{actorDisplayName:{type:String,required:!0},actorId:{type:String,required:!0},creationDateTime:{type:String,default:null},editor:{type:Boolean,default:!1},autoComplete:{type:Function,required:!0},tag:{type:String,default:"div"}},data:()=>({expanded:!1,localMessage:"",submitted:!1}),computed:{...nt(ze),isOwnComment(){return(0,s.HW)().uid===this.actorId},renderedContent(){return this.isEmptyMessage?"":this.renderContent(this.localMessage)},isEmptyMessage(){return!this.localMessage||""===this.localMessage.trim()},timestamp(){return Date.parse(this.creationDateTime)},isLimbo(){return this.deletedCommentLimboStore.checkForId(this.id)}},watch:{message(t){this.updateLocalMessage(t)}},beforeMount(){this.updateLocalMessage(this.message)},methods:{t:r.Tl,updateLocalMessage(t){this.localMessage=t.toString(),this.submitted=!1},onSubmit(){if(""!==this.localMessage.trim())return this.editor?(this.onNewComment(this.localMessage.trim()),void this.$nextTick((()=>{this.$refs.editor.$el.focus()}))):void this.onEditComment(this.localMessage.trim())},onExpand(){this.expanded=!0}}};var Ye=o(85072),Ze=o.n(Ye),Je=o(97825),Ke=o.n(Je),Qe=o(77659),Xe=o.n(Qe),tn=o(55056),en=o.n(tn),nn=o(10540),on=o.n(nn),sn=o(41113),rn=o.n(sn),an=o(93183),cn={};cn.styleTagTransform=rn(),cn.setAttributes=en(),cn.insert=Xe().bind(null,"head"),cn.domAPI=Ke(),cn.insertStyleElement=on(),Ze()(an.A,cn),an.A&&an.A.locals&&an.A.locals;const ln=(0,_t.A)(qe,(function(){var t=this,e=t._self._c;return e(t.tag,{directives:[{name:"show",rawName:"v-show",value:!t.deleted&&!t.isLimbo,expression:"!deleted && !isLimbo"}],tag:"component",staticClass:"comment",class:{"comment--loading":t.loading}},[e("div",{staticClass:"comment__side"},[e("NcAvatar",{staticClass:"comment__avatar",attrs:{"display-name":t.actorDisplayName,user:t.actorId,size:32}})],1),t._v(" "),e("div",{staticClass:"comment__body"},[e("div",{staticClass:"comment__header"},[e("span",{staticClass:"comment__author"},[t._v(t._s(t.actorDisplayName))]),t._v(" "),t.isOwnComment&&t.id&&!t.loading?e("NcActions",{staticClass:"comment__actions"},[t.editing?e("NcActionButton",{on:{click:t.onEditCancel},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconClose",{attrs:{size:20}})]},proxy:!0}],null,!1,2888946197)},[t._v("\n\t\t\t\t\t"+t._s(t.t("comments","Cancel edit"))+"\n\t\t\t\t")]):[e("NcActionButton",{attrs:{"close-after-click":""},on:{click:t.onEdit},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconEdit",{attrs:{size:20}})]},proxy:!0}],null,!1,649782975)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("comments","Edit comment"))+"\n\t\t\t\t\t")]),t._v(" "),e("NcActionSeparator"),t._v(" "),e("NcActionButton",{attrs:{"close-after-click":""},on:{click:t.onDeleteWithUndo},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!1,881161434)},[t._v("\n\t\t\t\t\t\t"+t._s(t.t("comments","Delete comment"))+"\n\t\t\t\t\t")])]],2):t._e(),t._v(" "),t.id&&t.loading?e("div",{staticClass:"comment_loading icon-loading-small"}):t.creationDateTime?e("NcDateTime",{staticClass:"comment__timestamp",attrs:{timestamp:t.timestamp,"ignore-seconds":!0}}):t._e()],1),t._v(" "),t.editor||t.editing?e("form",{staticClass:"comment__editor",on:{submit:function(t){t.preventDefault()}}},[e("div",{staticClass:"comment__editor-group"},[e("NcRichContenteditable",{ref:"editor",attrs:{"auto-complete":t.autoComplete,contenteditable:!t.loading,label:t.editor?t.t("comments","New comment"):t.t("comments","Edit comment"),placeholder:t.t("comments","Write a comment โ€ฆ"),value:t.localMessage,"user-data":t.userData,"aria-describedby":"tab-comments__editor-description"},on:{"update:value":t.updateLocalMessage,submit:t.onSubmit}}),t._v(" "),e("div",{staticClass:"comment__submit"},[e("NcButton",{attrs:{type:"tertiary-no-background","native-type":"submit","aria-label":t.t("comments","Post comment"),disabled:t.isEmptyMessage},on:{click:t.onSubmit},scopedSlots:t._u([{key:"icon",fn:function(){return[t.loading?e("NcLoadingIcon"):e("IconArrowRight",{attrs:{size:20}})]},proxy:!0}],null,!1,758946661)})],1)],1),t._v(" "),e("div",{staticClass:"comment__editor-description",attrs:{id:"tab-comments__editor-description"}},[t._v("\n\t\t\t\t"+t._s(t.t("comments","@ for mentions, : for emoji, / for smart picker"))+"\n\t\t\t")])]):e("div",{staticClass:"comment__message",class:{"comment__message--expanded":t.expanded},domProps:{innerHTML:t._s(t.renderedContent)},on:{click:t.onExpand}})])])}),[],!1,null,"6f6ef97e",null).exports;var un=o(32981);const pn=(0,ot.pM)({props:{resourceId:{type:Number,required:!0},resourceType:{type:String,default:"files"}},data:()=>({editorData:{actorDisplayName:(0,s.HW)().displayName,actorId:(0,s.HW)().uid,key:"editor"},userData:{}}),methods:{async autoComplete(t,e){const{data:n}=await Ue.Ay.get((0,Ce.KT)("core/autocomplete/get"),{params:{search:t,itemType:"files",itemId:this.resourceId,sorter:"commenters|share-recipients",limit:(0,un.C)("comments","maxAutoCompleteResults")}});return n.ocs.data.forEach((t=>{this.userData[t.id]=t})),e(Object.values(this.userData))},genMentionsData(t){return Object.values(t).flat().forEach((t=>{var e;this.userData[t.mentionId]={icon:"icon-user",id:t.mentionId,label:t.mentionDisplayName,source:"users",primary:(null===(e=(0,s.HW)())||void 0===e?void 0:e.uid)===t.mentionId}})),this.userData}}});var hn=o(96763);ot.Ay.use(it.Ay),ot.Ay.use(bt);const dn={name:"Comments",components:{Comment:ln,NcEmptyContent:xt.A,NcButton:Ct.A,RefreshIcon:Ot,MessageReplyTextIcon:wt,AlertCircleOutlineIcon:vt.A},directives:{elementVisibility:rt.Zx},mixins:[pn],data(){return{error:"",loading:!1,done:!1,currentResourceId:this.resourceId,offset:0,comments:[],cancelRequest:()=>{},Comment:ln,userData:{}}},computed:{hasComments(){return this.comments.length>0},isFirstLoading(){return this.loading&&0===this.offset}},watch:{resourceId(){this.currentResourceId=this.resourceId}},methods:{t:r.Tl,async onVisibilityChange(t){if(t)try{await((t,e,n)=>{const o=["",t,e].join("/"),s=n.toUTCString();return Ee.customRequest(o,{method:"PROPPATCH",data:'\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t'.concat(s,"\n\t\t\t\t\n\t\t\t\n\t\t\t")})})(this.resourceType,this.currentResourceId,new Date)}catch(t){(0,st.Qg)(t.message||(0,r.Tl)("comments","Failed to mark comments as read"))}},async update(t){this.currentResourceId=t,this.resetState(),this.getComments()},onScrollBottomReached(){this.error||this.done||this.loading||this.getComments()},async getComments(){this.cancelRequest("cancel");try{this.loading=!0,this.error="";const{request:t,abort:e}=function(t){const e=new AbortController,n=e.signal;return{request:async function(e,o){return await t(e,Object.assign({signal:n},o))},abort:()=>e.abort()}}(Ie);this.cancelRequest=e;const{data:n}=await t({resourceType:this.resourceType,resourceId:this.currentResourceId},{offset:this.offset})||{data:[]};this.logger.debug("Processed ".concat(n.length," comments"),{comments:n}),n.length<20&&(this.done=!0),this.comments.push(...n),this.offset+=20}catch(t){if("cancel"===t.message)return;this.error=(0,r.Tl)("comments","Unable to load the comments list"),hn.error("Error loading the comments list",t)}finally{this.loading=!1}},onNewComment(t){this.comments.unshift(t)},onDelete(t){const e=this.comments.findIndex((e=>e.props.id===t));e>-1?this.comments.splice(e,1):hn.error("Could not find the deleted comment in the list",t)},resetState(){this.error="",this.loading=!1,this.done=!1,this.offset=0,this.comments=[]}}};var fn=o(70384),mn={};mn.styleTagTransform=rn(),mn.setAttributes=en(),mn.insert=Xe().bind(null,"head"),mn.domAPI=Ke(),mn.insertStyleElement=on(),Ze()(fn.A,mn),fn.A&&fn.A.locals&&fn.A.locals;const gn=(0,_t.A)(dn,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.onVisibilityChange,expression:"onVisibilityChange"}],staticClass:"comments",class:{"icon-loading":t.isFirstLoading}},[e("Comment",t._b({staticClass:"comments__writer",attrs:{"auto-complete":t.autoComplete,"resource-type":t.resourceType,editor:!0,"user-data":t.userData,"resource-id":t.currentResourceId},on:{new:t.onNewComment}},"Comment",t.editorData,!1)),t._v(" "),t.isFirstLoading?t._e():[!t.hasComments&&t.done?e("NcEmptyContent",{staticClass:"comments__empty",attrs:{name:t.t("comments","No comments yet, start the conversation!")},scopedSlots:t._u([{key:"icon",fn:function(){return[e("MessageReplyTextIcon")]},proxy:!0}],null,!1,1033639148)}):e("ul",t._l(t.comments,(function(n){return e("Comment",t._b({key:n.props.id,staticClass:"comments__list",attrs:{tag:"li","auto-complete":t.autoComplete,"resource-type":t.resourceType,message:n.props.message,"resource-id":t.currentResourceId,"user-data":t.genMentionsData(n.props.mentions)},on:{"update:message":function(e){return t.$set(n.props,"message",e)},delete:t.onDelete}},"Comment",n.props,!1))})),1),t._v(" "),t.loading&&!t.isFirstLoading?e("div",{staticClass:"comments__info icon-loading"}):t.hasComments&&t.done?e("div",{staticClass:"comments__info"},[t._v("\n\t\t\t"+t._s(t.t("comments","No more messages"))+"\n\t\t")]):t.error?[e("NcEmptyContent",{staticClass:"comments__error",attrs:{name:t.error},scopedSlots:t._u([{key:"icon",fn:function(){return[e("AlertCircleOutlineIcon")]},proxy:!0}],null,!1,66050004)}),t._v(" "),e("NcButton",{staticClass:"comments__retry",on:{click:t.getComments},scopedSlots:t._u([{key:"icon",fn:function(){return[e("RefreshIcon")]},proxy:!0}],null,!1,3924573781)},[t._v("\n\t\t\t\t"+t._s(t.t("comments","Retry"))+"\n\t\t\t")])]:t._e()]],2)}),[],!1,null,"222c65b2",null).exports;ot.Ay.use((function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[p]=e,this.$pinia||(this.$pinia=e),e._a=this,f&&u(e),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&f&&W(e._a,e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})})),o.nc=btoa((0,s.do)()),ot.Ay.mixin({data:()=>({logger:He}),methods:{t:r.t,n:r.n}});var yn=o(96763);window.OCA&&!window.OCA.Comments&&Object.assign(window.OCA,{Comments:{}}),Object.assign(window.OCA.Comments,{View:class{constructor(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"files",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=function(){const t=(0,i.uY)(!0),e=t.run((()=>(0,i.KR)({})));let n=[],o=[];const s=(0,i.IG)({install(t){u(s),i.LE||(s._a=t,t.provide(p,s),t.config.globalProperties.$pinia=s,"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&f&&W(t,s),o.forEach((t=>n.push(t))),o=[])},use(t){return this._a||i.LE?n.push(t):o.push(t),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&"undefined"!=typeof Proxy&&s.use(H),s}();return n={...n,propsData:{...null!==(t=n.propsData)&&void 0!==t?t:{},resourceType:e},pinia:o},new(ot.Ay.extend(gn))(n)}}}),yn.debug("OCA.Comments.View initialized")},8505:t=>{"use strict";function e(t,e,s){t instanceof RegExp&&(t=n(t,s)),e instanceof RegExp&&(e=n(e,s));var r=o(t,e,s);return r&&{start:r[0],end:r[1],pre:s.slice(0,r[0]),body:s.slice(r[0]+t.length,r[1]),post:s.slice(r[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function o(t,e,n){var o,s,r,i,a,c=n.indexOf(t),l=n.indexOf(e,c+1),u=c;if(c>=0&&l>0){if(t===e)return[c,l];for(o=[],r=n.length;u>=0&&!a;)u==c?(o.push(u),c=n.indexOf(t,u+1)):1==o.length?a=[o.pop(),l]:((s=o.pop())=0?c:l;o.length&&(a=[r,i])}return a}t.exports=e,e.range=o},68928:(t,e,n)=>{var o=n(8505);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),g(function(t){return t.split("\\\\").join(s).split("\\{").join(r).split("\\}").join(i).split("\\,").join(a).split("\\.").join(c)}(t),!0).map(u)):[]};var s="\0SLASH"+Math.random()+"\0",r="\0OPEN"+Math.random()+"\0",i="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function l(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function u(t){return t.split(s).join("\\").split(r).join("{").split(i).join("}").split(a).join(",").split(c).join(".")}function p(t){if(!t)return[""];var e=[],n=o("{","}",t);if(!n)return t.split(",");var s=n.pre,r=n.body,i=n.post,a=s.split(",");a[a.length-1]+="{"+r+"}";var c=p(i);return i.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}function h(t){return"{"+t+"}"}function d(t){return/^-?0\d/.test(t)}function f(t,e){return t<=e}function m(t,e){return t>=e}function g(t,e){var n=[],s=o("{","}",t);if(!s)return[t];var r=s.pre,a=s.post.length?g(s.post,!1):[""];if(/\$$/.test(s.pre))for(var c=0;c=0;if(!_&&!w)return s.post.match(/,.*\}/)?g(t=s.pre+"{"+s.body+i+s.post):[t];if(_)y=s.body.split(/\.\./);else if(1===(y=p(s.body)).length&&1===(y=g(y[0],!1).map(h)).length)return a.map((function(t){return s.pre+y[0]+t}));if(_){var C=l(y[0]),x=l(y[1]),S=Math.max(y[0].length,y[1].length),O=3==y.length?Math.abs(l(y[2])):1,E=f;x0){var k=new Array($+1).join("0");j=T<0?"-"+k+j.slice(1):k+j}}b.push(j)}}else{b=[];for(var M=0;M{"use strict";n.d(e,{A:()=>a});var o=n(71354),s=n.n(o),r=n(76314),i=n.n(r)()(s());i.push([t.id,".comment[data-v-6f6ef97e]{display:flex;gap:8px;padding:5px 10px}.comment__side[data-v-6f6ef97e]{display:flex;align-items:flex-start;padding-top:6px}.comment__body[data-v-6f6ef97e]{display:flex;flex-grow:1;flex-direction:column}.comment__header[data-v-6f6ef97e]{display:flex;align-items:center;min-height:44px}.comment__actions[data-v-6f6ef97e]{margin-left:10px !important}.comment__author[data-v-6f6ef97e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--color-text-maxcontrast)}.comment_loading[data-v-6f6ef97e],.comment__timestamp[data-v-6f6ef97e]{margin-left:auto;text-align:right;white-space:nowrap;color:var(--color-text-maxcontrast)}.comment__editor-group[data-v-6f6ef97e]{position:relative}.comment__editor-description[data-v-6f6ef97e]{color:var(--color-text-maxcontrast);padding-block:var(--default-grid-baseline)}.comment__submit[data-v-6f6ef97e]{position:absolute !important;bottom:5px;right:0}.comment__message[data-v-6f6ef97e]{white-space:pre-wrap;word-break:break-word;max-height:70px;overflow:hidden;margin-top:-6px}.comment__message--expanded[data-v-6f6ef97e]{max-height:none;overflow:visible}.rich-contenteditable__input[data-v-6f6ef97e]{min-height:44px;margin:0;padding:10px}","",{version:3,sources:["webpack://./apps/comments/src/components/Comment.vue"],names:[],mappings:"AAKA,0BACC,YAAA,CACA,OAAA,CACA,gBAAA,CAEA,gCACC,YAAA,CACA,sBAAA,CACA,eAAA,CAGD,gCACC,YAAA,CACA,WAAA,CACA,qBAAA,CAGD,kCACC,YAAA,CACA,kBAAA,CACA,eAAA,CAGD,mCACC,2BAAA,CAGD,kCACC,eAAA,CACA,kBAAA,CACA,sBAAA,CACA,mCAAA,CAGD,uEAEC,gBAAA,CACA,gBAAA,CACA,kBAAA,CACA,mCAAA,CAGD,wCACC,iBAAA,CAGD,8CACC,mCAAA,CACA,0CAAA,CAGD,kCACC,4BAAA,CACA,UAAA,CACA,OAAA,CAGD,mCACC,oBAAA,CACA,qBAAA,CACA,eAAA,CACA,eAAA,CACA,eAAA,CACA,6CACC,eAAA,CACA,gBAAA,CAKH,8CACC,eAAA,CACA,QAAA,CACA,YA3EiB",sourcesContent:['\n@use "sass:math";\n\n$comment-padding: 10px;\n\n.comment {\n\tdisplay: flex;\n\tgap: 8px;\n\tpadding: 5px $comment-padding;\n\n\t&__side {\n\t\tdisplay: flex;\n\t\talign-items: flex-start;\n\t\tpadding-top: 6px;\n\t}\n\n\t&__body {\n\t\tdisplay: flex;\n\t\tflex-grow: 1;\n\t\tflex-direction: column;\n\t}\n\n\t&__header {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tmin-height: 44px;\n\t}\n\n\t&__actions {\n\t\tmargin-left: $comment-padding !important;\n\t}\n\n\t&__author {\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\t&_loading,\n\t&__timestamp {\n\t\tmargin-left: auto;\n\t\ttext-align: right;\n\t\twhite-space: nowrap;\n\t\tcolor: var(--color-text-maxcontrast);\n\t}\n\n\t&__editor-group {\n\t\tposition: relative;\n\t}\n\n\t&__editor-description {\n\t\tcolor: var(--color-text-maxcontrast);\n\t\tpadding-block: var(--default-grid-baseline);\n\t}\n\n\t&__submit {\n\t\tposition: absolute !important;\n\t\tbottom: 5px;\n\t\tright: 0;\n\t}\n\n\t&__message {\n\t\twhite-space: pre-wrap;\n\t\tword-break: break-word;\n\t\tmax-height: 70px;\n\t\toverflow: hidden;\n\t\tmargin-top: -6px;\n\t\t&--expanded {\n\t\t\tmax-height: none;\n\t\t\toverflow: visible;\n\t\t}\n\t}\n}\n\n.rich-contenteditable__input {\n\tmin-height: 44px;\n\tmargin: 0;\n\tpadding: $comment-padding;\n}\n\n'],sourceRoot:""}]);const a=i},70384:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(71354),s=n.n(o),r=n(76314),i=n.n(r)()(s());i.push([t.id,".comments[data-v-222c65b2]{min-height:100%;display:flex;flex-direction:column}.comments__empty[data-v-222c65b2],.comments__error[data-v-222c65b2]{flex:1 0}.comments__retry[data-v-222c65b2]{margin:0 auto}.comments__info[data-v-222c65b2]{height:60px;color:var(--color-text-maxcontrast);text-align:center;line-height:60px}","",{version:3,sources:["webpack://./apps/comments/src/views/Comments.vue"],names:[],mappings:"AACA,2BACC,eAAA,CACA,YAAA,CACA,qBAAA,CAEA,oEAEC,QAAA,CAGD,kCACC,aAAA,CAGD,iCACC,WAAA,CACA,mCAAA,CACA,iBAAA,CACA,gBAAA",sourcesContent:["\n.comments {\n\tmin-height: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t&__empty,\n\t&__error {\n\t\tflex: 1 0;\n\t}\n\n\t&__retry {\n\t\tmargin: 0 auto;\n\t}\n\n\t&__info {\n\t\theight: 60px;\n\t\tcolor: var(--color-text-maxcontrast);\n\t\ttext-align: center;\n\t\tline-height: 60px;\n\t}\n}\n"],sourceRoot:""}]);const a=i},86454:(t,e,n)=>{"use strict";const o=n(43918),s=n(32923),r=n(8904);t.exports={XMLParser:s,XMLValidator:o,XMLBuilder:r}},26602:t=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function n(t){var e="function"==typeof Map?new Map:void 0;return n=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return o(t,arguments,r(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),s(i,t)},n(t)}function o(t,e,n){return o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&s(r,n.prototype),r},o.apply(null,arguments)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}var i=function(t){function n(t){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(o=function(t,n){return!n||"object"!==e(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}(this,r(n).call(this,t))).name="ObjectPrototypeMutationError",o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(n,t),n}(n(Error));function a(t,n){for(var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},s=n.split("."),r=s.length,i=function(e){var n=s[e];if(!t)return{v:void 0};if("+"===n){if(Array.isArray(t))return{v:t.map((function(n,r){var i=s.slice(e+1);return i.length>0?a(n,i.join("."),o):o(t,r,s,e)}))};var r=s.slice(0,e).join(".");throw new Error("Object at wildcard (".concat(r,") is not an array"))}t=o(t,n,s,e)},c=0;c2&&void 0!==arguments[2]?arguments[2]:{};if("object"!=e(t)||null===t)return!1;if(void 0===n)return!1;if("number"==typeof n)return n in t;try{var s=!1;return a(t,n,(function(t,e,n,r){if(!c(n,r))return t&&t[e];s=o.own?t.hasOwnProperty(e):e in t})),s}catch(t){return!1}},hasOwn:function(t,e,n){return this.has(t,e,n||{own:!0})},isIn:function(t,n,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("object"!=e(t)||null===t)return!1;if(void 0===n)return!1;try{var r=!1,i=!1;return a(t,n,(function(t,n,s,a){return r=r||t===o||!!t&&t[n]===o,i=c(s,a)&&"object"===e(t)&&n in t,t&&t[n]})),s.validPath?r&&i:r}catch(t){return!1}},ObjectPrototypeMutationError:i}},12692:(t,e,n)=>{"use strict";var o=n(65606),s=n(40537),r=function(t){return"string"==typeof t};function i(t,e){for(var n=[],o=0;o=-1&&!e;n--){var s=n>=0?arguments[n]:o.cwd();if(!r(s))throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,e="/"===s.charAt(0))}return(e?"/":"")+(t=i(t.split("/"),!e).join("/"))||"."},c.normalize=function(t){var e=c.isAbsolute(t),n="/"===t.substr(-1);return(t=i(t.split("/"),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},c.isAbsolute=function(t){return"/"===t.charAt(0)},c.join=function(){for(var t="",e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n+1)}t=c.resolve(t).substr(1),e=c.resolve(e).substr(1);for(var o=n(t.split("/")),s=n(e.split("/")),r=Math.min(o.length,s.length),i=r,a=0;a{if(!n){var r=1/0;for(u=0;u=s)&&Object.keys(i.O).every((t=>i.O[t](n[c])))?n.splice(c--,1):(a=!1,s0&&e[u-1][2]>s;u--)e[u]=e[u-1];e[u]=[n,o,s]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.f={},i.e=t=>Promise.all(Object.keys(i.f).reduce(((e,n)=>(i.f[n](t,e),e)),[])),i.u=t=>t+"-"+t+".js?v="+{1957:"96a4d042dd15d21b005b",4473:"6009e669b1a0737a2378",5528:"231caad2efb966b857ef"}[t],i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},o="nextcloud:",i.l=(t,e,s,r)=>{if(n[t])n[t].push(e);else{var a,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),u=0;u{a.onerror=a.onload=null,clearTimeout(d);var s=n[t];if(delete n[t],a.parentNode&&a.parentNode.removeChild(a),s&&s.forEach((t=>t(o))),e)return e(o)},d=setTimeout(h.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=h.bind(null,a.onerror),a.onload=h.bind(null,a.onload),c&&document.head.appendChild(a)}},i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),i.j=7062,(()=>{var t;i.g.importScripts&&(t=i.g.location+"");var e=i.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!t||!/^http(s?):/.test(t));)t=n[o--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t})(),(()=>{i.b=document.baseURI||self.location.href;var t={7062:0};i.f.j=(e,n)=>{var o=i.o(t,e)?t[e]:void 0;if(0!==o)if(o)n.push(o[2]);else{var s=new Promise(((n,s)=>o=t[e]=[n,s]));n.push(o[2]=s);var r=i.p+i.u(e),a=new Error;i.l(r,(n=>{if(i.o(t,e)&&(0!==(o=t[e])&&(t[e]=void 0),o)){var s=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+s+": "+r+")",a.name="ChunkLoadError",a.type=s,a.request=r,o[1](a)}}),"chunk-"+e,e)}},i.O.j=e=>0===t[e];var e=(e,n)=>{var o,s,r=n[0],a=n[1],c=n[2],l=0;if(r.some((e=>0!==t[e]))){for(o in a)i.o(a,o)&&(i.m[o]=a[o]);if(c)var u=c(i)}for(e&&e(n);li(87861)));a=i.O(a)})(); //# sourceMappingURL=comments-comments-app.js.map?v=99ad0732a4dc660e42c4