/*! 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="undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&f,g=(()=>"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 y(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 b(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function v(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 A="object"==typeof navigator?navigator:{userAgent:""},w=(()=>/Macintosh/.test(A.userAgent)&&/AppleWebKit/.test(A.userAgent)&&!/Safari/.test(A.userAgent))(),_=f?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!w?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?b(o.href)?y(t,e,n):(o.target="_blank",v(o)):v(o)):(o.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(o.href)}),4e4),setTimeout((function(){v(o)}),0))}:"msSaveOrOpenBlob"in A?function(t,e="download",n){if("string"==typeof t)if(b(t))y(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){v(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 y(t,e,n);const s="application/octet-stream"===t.type,r=/constructor/i.test(String(g.HTMLElement))||"safari"in g,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&r||w)&&"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 C(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 x(t){return"_a"in t&&"install"in t}function S(){if(!("clipboard"in navigator))return C("Your browser doesn't support the Clipboard API","error"),!0}function O(t){return!!(t instanceof Error&&t.message.toLowerCase().includes("document is not focused"))&&(C('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let E;function I(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 j(t){return{_custom:{display:t}}}const T="๐Ÿ Pinia (root)",$="_root";function k(t){return x(t)?{id:$,label:T}:{id:t.$id,label:t.$id}}function M(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:j(t.type),key:j(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function P(t){switch(t){case d.direct:return"mutation";case d.patchFunction:case d.patchObject:return"$patch";default:return"unknown"}}let N=!0;const R=[],L="pinia:mutations",D="pinia",{assign:W}=Object,B=t=>"๐Ÿ "+t;function V(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&&C("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:D,label:"Pinia ๐Ÿ",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!S())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),C("Global state copied to clipboard.")}catch(t){if(O(t))return;C("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(!S())try{I(t,JSON.parse(await navigator.clipboard.readText())),C("Global state pasted from clipboard.")}catch(t){if(O(t))return;C("Failed to deserialize the state from clipboard. Check the console for more details.","error"),c.error(t)}}(e),n.sendInspectorTree(D),n.sendInspectorState(D)},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){C("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=(E||(E=document.createElement("input"),E.type="file",E.accept=".json"),function(){return new Promise(((t,e)=>{E.onchange=async()=>{const e=E.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},E.oncancel=()=>t(null),E.onerror=e,E.click()}))}),n=await e();if(!n)return;const{text:o,file:s}=n;I(t,JSON.parse(o)),C(`Global state imported from "${s.name}".`)}catch(t){C("Failed to import the state from JSON. Check the console for more details.","error"),c.error(t)}}(e),n.sendInspectorTree(D),n.sendInspectorState(D)},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?C(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),C(`Store "${t}" reset.`)):C(`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:B(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:B(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===D){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(k)}})),n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===D){const t=n.nodeId===$?e:e._s.get(n.nodeId);if(!t)return;t&&(n.state=function(t){if(x(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===D){const t=n.nodeId===$?e:e._s.get(n.nodeId);if(!t)return C(`store "${n.nodeId}" not found`,"error");const{path:o}=n;x(t)?o.unshift("state"):1===o.length&&t._customProperties.has(o[0])&&!(o[0]in t.$state)||o.unshift("$state"),N=!1,n.set(t,o,n.state.value),N=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("๐Ÿ")){const n=t.type.replace(/^๐Ÿ\s*/,""),o=e._s.get(n);if(!o)return C(`store "${n}" not found`,"error");const{path:s}=t;if("state"!==s[0])return C(`Invalid path for store "${n}":\n${s}\nOnly state can be modified.`);s[0]="$state",N=!1,t.set(o,s,t.state.value),N=!0}}))}))}let z,U=0;function H(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)=>(z=s,Reflect.get(...t)),set:(...t)=>(z=s,Reflect.set(...t))}):t;z=s;const i=o[e].apply(r,arguments);return z=void 0,i}}function G({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,H(e,Object.keys(n.actions),e._isOptionsAPI);const o=e._hotUpdate;(0,i.ux)(e)._hotUpdate=function(t){o.apply(this,arguments),H(e,Object.keys(t._hmrPayload.actions),!!e._isOptionsAPI)},function(t,e){R.includes(B(e.$id))||R.push(B(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:j(e.$id),action:j(r),args:i},groupId:a}}),o((o=>{z=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),title:"๐Ÿ›ฌ "+r,subtitle:"end",data:{store:j(e.$id),action:j(r),args:i,result:o},groupId:a}})})),s((o=>{z=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),logType:"error",title:"๐Ÿ’ฅ "+r,subtitle:"end",data:{store:j(e.$id),action:j(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(D),N&&t.addTimelineEvent({layerId:L,event:{time:n(),title:"Change",subtitle:o,data:{newValue:e,oldValue:s},groupId:z}})}),{deep:!0})})),e.$subscribe((({events:o,type:s},r)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(D),!N)return;const i={time:n(),title:P(s),data:W({store:j(e.$id)},M(o)),groupId:z};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:j(e.$id),info:j("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(D),t.sendInspectorState(D)}));const{$dispose:s}=e;e.$dispose=()=>{s(),t.notifyComponentUpdate(),t.sendInspectorTree(D),t.sendInspectorState(D),t.getSettings().logStoreChanges&&C(`Disposed "${e.$id}" store ๐Ÿ—‘`)},t.notifyComponentUpdate(),t.sendInspectorTree(D),t.sendInspectorState(D),t.getSettings().logStoreChanges&&C(`"${e.$id}" store installed ๐Ÿ†•`)}))}(t,e)}const F=()=>{};function q(t,e,n,o=F){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 Y(t,...e){t.slice().forEach((t=>{t(...e)}))}const Z=t=>t();function J(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]=J(s,o):t[n]=o}return t}const K=Symbol(),Q=new WeakMap,{assign:X}=Object;function tt(t,e,n={},o,s,r){let a;const c=X({actions:{}},n),l={deep:!0};let p,f,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 w;function _(e){let n;p=f=!1,"function"==typeof e?(e(o.state.value[t]),n={type:d.patchFunction,storeId:t,events:g}):(J(o.state.value[t],e),n={type:d.patchObject,payload:e,storeId:t,events:g});const s=w=Symbol();(0,i.dY)().then((()=>{w===s&&(p=!0)})),f=!0,Y(y,n,o.state.value[t])}const C=r?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{X(t,e)}))}:F;function x(e,n){return function(){u(o);const s=Array.from(arguments),r=[],i=[];let a;Y(b,{args:s,name:e,store:E,after:function(t){r.push(t)},onError:function(t){i.push(t)}});try{a=n.apply(this&&this.$id===t?this:E,s)}catch(t){throw Y(i,t),t}return a instanceof Promise?a.then((t=>(Y(r,t),t))).catch((t=>(Y(i,t),Promise.reject(t)))):(Y(r,a),a)}}const S=(0,i.IG)({actions:{},getters:{},state:[],hotState:A}),O={_p:o,$id:t,$onAction:q.bind(null,b),$patch:_,$reset:C,$subscribe(e,n={}){const s=q(y,e,n.detached,(()=>r())),r=a.run((()=>(0,i.wB)((()=>o.state.value[t]),(o=>{("sync"===n.flush?f:p)&&e({storeId:t,type:d.direct,events:g},o)}),X({},l,n))));return s},$dispose:function(){a.stop(),y=[],b=[],o._s.delete(t)}};i.LE&&(O._r=!1);const E=(0,i.Kh)(m?X({_hmrPayload:S,_customProperties:(0,i.IG)(new Set)},O):O);o._s.set(t,E);const I=(o._a&&o._a.runWithContext||Z)((()=>o._e.run((()=>(a=(0,i.uY)()).run(e)))));for(const e in I){const n=I[e];if((0,i.i9)(n)&&(T=n,!(0,i.i9)(T)||!T.effect)||(0,i.g8)(n))r||(!v||(j=n,i.LE?Q.has(j):h(j)&&j.hasOwnProperty(K))||((0,i.i9)(n)?n.value=v[e]:J(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(e,n);i.LE?(0,i.hZ)(I,e,t):I[e]=t,c.actions[e]=n}}var j,T;if(i.LE?Object.keys(I).forEach((t=>{(0,i.hZ)(E,t,I[t])})):(X(E,I),X((0,i.ux)(E),I)),Object.defineProperty(E,"$state",{get:()=>o.state.value[t],set:t=>{_((e=>{X(e,t)}))}}),m){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(E,e,X({value:E[e]},t))}))}return i.LE&&(E._r=!0),o._p.forEach((t=>{if(m){const e=a.run((()=>t({store:E,app:o._a,pinia:o,options:c})));Object.keys(e||{}).forEach((t=>E._customProperties.add(t))),X(E,e)}else X(E,a.run((()=>t({store:E,app:o._a,pinia:o,options:c}))))})),v&&r&&n.hydrate&&n.hydrate(E.$state,v),p=!0,f=!0,E}function et(...t){return t.reduce(((t,e)=>(t[e.$id+"Store"]=function(){return e(this.$pinia)},t)),{})}var nt=o(85471),ot=o(85168),st=o(55042),rt=o(80284),it=o(96763);function at(t){return at="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},at(t)}function ct(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&&ct(e.prototype,n),t}();function ht(t,e,n){var o=e.value;if(o)if("undefined"==typeof IntersectionObserver)it.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 pt(t,o,n);t._vue_visibilityState=s}}function dt(t){var e=t._vue_visibilityState;e&&(e.destroyObserver(),delete t._vue_visibilityState)}var ft={bind:ht,update:function(t,e,n){var o=e.value;if(!ut(o,e.oldValue)){var s=t._vue_visibilityState;o?s?s.createObserver(o,n):ht(t,{value:o},n):dt(t)}},unbind:dt},mt={version:"1.0.0",install:function(t){t.directive("observe-visibility",ft)}},gt=null;"undefined"!=typeof window?gt=window.Vue:void 0!==o.g&&(gt=o.g.Vue),gt&>.use(mt);const yt=mt;var bt=o(76162);const vt={name:"MessageReplyTextIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var At=o(14486);const wt=(0,At.A)(vt,(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 _t=o(54332),Ct=o(34196);const xt={name:"RefreshIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},St=(0,At.A)(xt,(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 Ot=o(44719),Et=o(68928);const It=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]},Tt=t=>t.replace(/[[\]\\-]/g,"\\$&"),$t=t=>t.join(""),kt=(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(Tt(p)+"-"+Tt(e)):e===p&&o.push(Tt(e)),p="",r++):t.startsWith("-]",r+1)?(o.push(Tt(e+"-")),r+=2):t.startsWith("-",r+1)?(p=e,r+=2):(o.push(Tt(e)),r++)}else c=!0,r++}else l=!0,r++}if(ue?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),Pt=new Set(["!","?","+","*","@"]),Nt=t=>Pt.has(t),Rt="(?!\\.)",Lt=new Set(["[","."]),Dt=new Set(["..","."]),Wt=new Set("().*{}+?[]^$\\!"),Bt="[^/]",Vt=Bt+"*?",zt=Bt+"+?";class Ut{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?Ut.#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||!Dt.has(this.#o[0]))){const n=Lt,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?Rt:""}let r="";return this.isEnd()&&this.#t.#a&&"!"===this.#s?.type&&(r="(?:$|\\/)"),[s+o+r,Mt(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,Mt(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?Rt:"")+zt:o+s+("!"===this.type?"))"+(!this.isStart()||e||t?"":Rt)+Vt+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&r?")":"*"===this.type&&r?")?":`)${this.type}`),[i,Mt(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(It(e),!(!n.nocomment&&"#"===e.charAt(0))&&new be(e,n).match(t)),qt=/^\*+([^+@!?\*\[\(]*)$/,Yt=t=>e=>!e.startsWith(".")&&e.endsWith(t),Zt=t=>e=>e.endsWith(t),Jt=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),Kt=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),Qt=/^\*+\.\*+$/,Xt=t=>!t.startsWith(".")&&t.includes("."),te=t=>"."!==t&&".."!==t&&t.includes("."),ee=/^\.\*+$/,ne=t=>"."!==t&&".."!==t&&t.startsWith("."),oe=/^\*+$/,se=t=>0!==t.length&&!t.startsWith("."),re=t=>0!==t.length&&"."!==t&&".."!==t,ie=/^\?+([^+@!?\*\[\(]*)?$/,ae=([t,e=""])=>{const n=pe([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},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=he([t]);return e?t=>n(t)&&t.endsWith(e):n},ue=([t,e=""])=>{const n=pe([t]);return e?t=>n(t)&&t.endsWith(e):n},pe=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},he=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},de="object"==typeof Ht&&Ht?"object"==typeof Ht.env&&Ht.env&&Ht.env.__MINIMATCH_TESTING_PLATFORM__||Ht.platform:"posix";Ft.sep="win32"===de?"\\":"/";const fe=Symbol("globstar **");Ft.GLOBSTAR=fe,Ft.filter=(t,e={})=>n=>Ft(n,t,e);const me=(t,e={})=>Object.assign({},t,e);Ft.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return Ft;const e=Ft;return Object.assign(((n,o,s={})=>e(n,o,me(t,s))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,me(t,n))}static defaults(n){return e.defaults(me(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,o={}){super(e,n,me(t,o))}static fromGlob(n,o={}){return e.AST.fromGlob(n,me(t,o))}},unescape:(n,o={})=>e.unescape(n,me(t,o)),escape:(n,o={})=>e.escape(n,me(t,o)),filter:(n,o={})=>e.filter(n,me(t,o)),defaults:n=>e.defaults(me(t,n)),makeRe:(n,o={})=>e.makeRe(n,me(t,o)),braceExpand:(n,o={})=>e.braceExpand(n,me(t,o)),match:(n,o,s={})=>e.match(n,o,me(t,s)),sep:e.sep,GLOBSTAR:fe})};const ge=(t,e={})=>(It(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:Et(t));Ft.braceExpand=ge,Ft.makeRe=(t,e={})=>new be(t,e).makeRe(),Ft.match=(t,e,n={})=>{const o=new be(e,n);return t=t.filter((t=>o.match(t))),o.options.nonull&&!t.length&&t.push(e),t};const ye=/[?*]|[+@!]\(.*?\)|\[|\]/;class be{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){It(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||de,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)=>Gt.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]&&ye.test(t[2])||ye.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 ge(this.pattern,this.options)}parse(t){It(t);const e=this.options;if("**"===t)return fe;if(""===t)return"";let n,o=null;(n=t.match(oe))?o=e.dot?re:se:(n=t.match(qt))?o=(e.nocase?e.dot?Kt:Jt:e.dot?Zt:Yt)(n[1]):(n=t.match(ie))?o=(e.nocase?e.dot?ce:ae:e.dot?le:ue)(n):(n=t.match(Qt))?o=e.dot?te:Xt:(n=t.match(ee))&&(o=ne);const s=Ut.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===fe?fe:t._src}));return e.forEach(((t,o)=>{const s=e[o+1],r=e[o-1];t===fe&&r!==fe&&(void 0===r?void 0!==s&&s!==fe?e[o+1]="(?:\\/|"+n+"\\/)?"+s:e[o]=n:void 0===s?e[o-1]=r+"(?:\\/|"+n+")?":s!==fe&&(e[o-1]=r+"(?:\\/|\\/"+n+"\\/)"+s,e[o+1]=fe))})),e.filter((t=>t!==fe)).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,"\\$&"),Ft.unescape=Mt;var Ae,we=o(12692);o(86454),o(26602),Error,function(t){t.Array="array",t.Object="object",t.Original="original"}(Ae||(Ae={}));var _e=o(63814);const Ce=function(){return(0,_e.dC)("dav/comments")},xe=(0,Ot.UU)(Ce()),Se=t=>{xe.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=t?t:""})};(0,s.zo)(Se),Se((0,s.do)());const Oe=xe,Ee=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 Oe.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,Ot.h4)(c);return function(t,e,n=!1){return n?{data:e,headers:t.headers?ve(t.headers):{},status:t.status,statusText:t.statusText}:e}(a,Ie(l,!0),!0)},Ie=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),Te=o(24764),$e=o(80114),ke=o(41944),Me=o(4604),Pe=o(84237),Ne=o(80701),Re=o(9191),Le=o(24325),De=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)}}}),Ue=(0,o(53529).YK)().setApp("comments").detectUser().build();var He=o(96763);const Ge={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:{...et(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 Oe.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),Ue.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,ot.Qg)(t("comments","An error occurred while trying to edit the comment")),He.error(e)}finally{this.loading=!1}},onDeleteWithUndo(){this.$emit("delete"),this.deleted=!0,this.deletedCommentLimboStore.addId(this.id);const e=setTimeout(this.onDelete,ot.Br);(0,ot._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 Oe.deleteFile(o)}(this.resourceType,this.resourceId,this.id),Ue.debug("Comment deleted",{resourceType:this.resourceType,resourceId:this.resourceId,id:this.id}),this.$emit("delete",this.id)}catch(e){(0,ot.Qg)(t("comments","An error occurred while trying to delete the comment")),He.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 Ve.A.post(Ce()+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 Oe.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);Ue.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,ot.Qg)(t("comments","An error occurred while trying to create the comment")),He.error(e)}finally{this.loading=!1}}}},Fe={name:"Comment",components:{IconArrowRight:Re.A,IconClose:Le.A,IconDelete:De.A,IconEdit:We.A,NcActionButton:je.A,NcActions:Te.A,NcActionSeparator:$e.A,NcAvatar:ke.A,NcButton:_t.A,NcDateTime:Me.A,NcLoadingIcon:Pe.A,NcRichContenteditable:()=>Promise.all([o.e(4208),o.e(5528)]).then(o.bind(o,95528))},mixins:[Ne.Ay,Ge],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:{...et(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 qe=o(85072),Ye=o.n(qe),Ze=o(97825),Je=o.n(Ze),Ke=o(77659),Qe=o.n(Ke),Xe=o(55056),tn=o.n(Xe),en=o(10540),nn=o.n(en),on=o(41113),sn=o.n(on),rn=o(93183),an={};an.styleTagTransform=sn(),an.setAttributes=tn(),an.insert=Qe().bind(null,"head"),an.domAPI=Je(),an.insertStyleElement=nn(),Ye()(rn.A,an),rn.A&&rn.A.locals&&rn.A.locals;const cn=(0,At.A)(Fe,(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 ln=o(32981);const un=(0,nt.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 Ve.A.get((0,_e.KT)("core/autocomplete/get"),{params:{search:t,itemType:"files",itemId:this.resourceId,sorter:"commenters|share-recipients",limit:(0,ln.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 pn=o(96763);nt.Ay.use(rt.Ay),nt.Ay.use(yt);const hn={name:"Comments",components:{Comment:cn,NcEmptyContent:Ct.A,NcButton:_t.A,RefreshIcon:St,MessageReplyTextIcon:wt,AlertCircleOutlineIcon:bt.A},directives:{elementVisibility:st.Zx},mixins:[un],data(){return{error:"",loading:!1,done:!1,currentResourceId:this.resourceId,offset:0,comments:[],cancelRequest:()=>{},Comment:cn,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 Oe.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,ot.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()}}(Ee);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"),pn.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):pn.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 dn=o(70384),fn={};fn.styleTagTransform=sn(),fn.setAttributes=tn(),fn.insert=Qe().bind(null,"head"),fn.domAPI=Je(),fn.insertStyleElement=nn(),Ye()(dn.A,fn),dn.A&&dn.A.locals&&dn.A.locals;const mn=(0,At.A)(hn,(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;nt.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),m&&V(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)()),nt.Ay.mixin({data:()=>({logger:Ue}),methods:{t:r.t,n:r.n}});var gn=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,m&&V(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 m&&"undefined"!=typeof Proxy&&s.use(G),s}();return n={...n,propsData:{...null!==(t=n.propsData)&&void 0!==t?t:{},resourceType:e},pinia:o},new(nt.Ay.extend(mn))(n)}}}),gn.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(w)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(w){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");T=j<0?"-"+k+T.slice(1):k+T}}b.push(T)}}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="+{1165:"390ca4dfc085e9dd8c8c",4473:"ad3e2d3de184247b1fb2",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=988b65be3a23e16eb646