123 |
- /*! For license information please see comments-comments-tab.js.LICENSE.txt */
- (()=>{var e,n,r,o={24167:(e,n,r)=>{"use strict";var o=r(21777),s=r(32981),i=r(19231),a=r(85471),c=r(96689),l=r(44719),p=r(68928);const u=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},h={"[: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]},f=t=>t.replace(/[[\]\\-]/g,"\\$&"),d=t=>t.join(""),g=(t,e)=>{const n=e;if("["!==t.charAt(n))throw new Error("not in a brace expression");const r=[],o=[];let s=n+1,i=!1,a=!1,c=!1,l=!1,p=n,u="";t:for(;s<t.length;){const e=t.charAt(s);if("!"!==e&&"^"!==e||s!==n+1){if("]"===e&&i&&!c){p=s+1;break}if(i=!0,"\\"!==e||c){if("["===e&&!c)for(const[e,[i,c,l]]of Object.entries(h))if(t.startsWith(e,s)){if(u)return["$.",!1,t.length-n,!0];s+=e.length,l?o.push(i):r.push(i),a=a||c;continue t}c=!1,u?(e>u?r.push(f(u)+"-"+f(e)):e===u&&r.push(f(e)),u="",s++):t.startsWith("-]",s+1)?(r.push(f(e+"-")),s+=2):t.startsWith("-",s+1)?(u=e,s+=2):(r.push(f(e)),s++)}else c=!0,s++}else l=!0,s++}if(p<s)return["",!1,0,!1];if(!r.length&&!o.length)return["$.",!1,t.length-n,!0];if(0===o.length&&1===r.length&&/^\\?.$/.test(r[0])&&!l){return[(g=2===r[0].length?r[0].slice(-1):r[0],g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,p-n,!1]}var g;const m="["+(l?"^":"")+d(r)+"]",y="["+(l?"":"^")+d(o)+"]";return[r.length&&o.length?"("+m+"|"+y+")":r.length?m:y,a,p-n,!0]},m=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),y=new Set(["!","?","+","*","@"]),b=t=>y.has(t),v="(?!\\.)",w=new Set(["[","."]),_=new Set(["..","."]),O=new Set("().*{}+?[]^$\\!"),S="[^/]",E=S+"*?",$=S+"+?";class j{type;#t;#e;#n=!1;#r=[];#o;#s;#i;#a=!1;#c;#l;#p=!1;constructor(t,e,n={}){this.type=t,t&&(this.#e=!0),this.#o=e,this.#t=this.#o?this.#o.#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.#s=this.#o?this.#o.#r.length:0}get hasMagic(){if(void 0!==this.#e)return this.#e;for(const t of this.#r)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.#r.map((t=>String(t))).join("|")+")":this.#l=this.#r.map((t=>String(t))).join("")}#u(){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.#o;for(;n;){for(let r=e.#s+1;!n.type&&r<n.#r.length;r++)for(const e of t.#r){if("string"==typeof e)throw new Error("string part in extglob AST??");e.copyIn(n.#r[r])}e=n,n=e.#o}}return this}push(...t){for(const e of t)if(""!==e){if("string"!=typeof e&&!(e instanceof j&&e.#o===this))throw new Error("invalid part: "+e);this.#r.push(e)}}toJSON(){const t=null===this.type?this.#r.slice().map((t=>"string"==typeof t?t:t.toJSON())):[this.type,...this.#r.map((t=>t.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#t||this.#t.#a&&"!"===this.#o?.type)&&t.push({}),t}isStart(){if(this.#t===this)return!0;if(!this.#o?.isStart())return!1;if(0===this.#s)return!0;const t=this.#o;for(let e=0;e<this.#s;e++){const n=t.#r[e];if(!(n instanceof j&&"!"===n.type))return!1}return!0}isEnd(){if(this.#t===this)return!0;if("!"===this.#o?.type)return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();const t=this.#o?this.#o.#r.length:0;return this.#s===t-1}copyIn(t){"string"==typeof t?this.push(t):this.push(t.clone(this))}clone(t){const e=new j(this.type,t);for(const t of this.#r)e.copyIn(t);return e}static#h(t,e,n,r){let o=!1,s=!1,i=-1,a=!1;if(null===e.type){let c=n,l="";for(;c<t.length;){const n=t.charAt(c++);if(o||"\\"===n)o=!o,l+=n;else if(s)c===i+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||c===i+2&&a||(s=!1),l+=n;else if("["!==n)if(r.noext||!b(n)||"("!==t.charAt(c))l+=n;else{e.push(l),l="";const o=new j(n,e);c=j.#h(t,o,c,r),e.push(o)}else s=!0,i=c,a=!1,l+=n}return e.push(l),c}let c=n+1,l=new j(null,e);const p=[];let u="";for(;c<t.length;){const n=t.charAt(c++);if(o||"\\"===n)o=!o,u+=n;else if(s)c===i+1?"^"!==n&&"!"!==n||(a=!0):"]"!==n||c===i+2&&a||(s=!1),u+=n;else if("["!==n)if(b(n)&&"("===t.charAt(c)){l.push(u),u="";const e=new j(n,l);l.push(e),c=j.#h(t,e,c,r)}else if("|"!==n){if(")"===n)return""===u&&0===e.#r.length&&(e.#p=!0),l.push(u),u="",e.push(...p,l),c;u+=n}else l.push(u),u="",p.push(l),l=new j(null,e);else s=!0,i=c,a=!1,u+=n}return e.type=null,e.#e=void 0,e.#r=[t.substring(n-1)],c}static fromGlob(t,e={}){const n=new j(null,void 0,e);return j.#h(t,n,0,e),n}toMMPattern(){if(this!==this.#t)return this.#t.toMMPattern();const t=this.toString(),[e,n,r,o]=this.toRegExpSource();if(!(r||this.#e||this.#c.nocase&&!this.#c.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const s=(this.#c.nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${e}$`,s),{_src:e,_glob:t})}get options(){return this.#c}toRegExpSource(t){const e=t??!!this.#c.dot;if(this.#t===this&&this.#u(),!this.type){const n=this.isStart()&&this.isEnd(),r=this.#r.map((e=>{const[r,o,s,i]="string"==typeof e?j.#f(e,this.#e,n):e.toRegExpSource(t);return this.#e=this.#e||s,this.#n=this.#n||i,r})).join("");let o="";if(this.isStart()&&"string"==typeof this.#r[0]&&(1!==this.#r.length||!_.has(this.#r[0]))){const n=w,s=e&&n.has(r.charAt(0))||r.startsWith("\\.")&&n.has(r.charAt(2))||r.startsWith("\\.\\.")&&n.has(r.charAt(4)),i=!e&&!t&&n.has(r.charAt(0));o=s?"(?!(?:^|/)\\.\\.?(?:$|/))":i?v:""}let s="";return this.isEnd()&&this.#t.#a&&"!"===this.#o?.type&&(s="(?:$|\\/)"),[o+r+s,m(r),this.#e=!!this.#e,this.#n]}const n="*"===this.type||"+"===this.type,r="!"===this.type?"(?:(?!(?:":"(?:";let o=this.#d(e);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){const t=this.toString();return this.#r=[t],this.type=null,this.#e=void 0,[t,m(this.toString()),!1,!1]}let s=!n||t||e?"":this.#d(!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let i="";return i="!"===this.type&&this.#p?(this.isStart()&&!e?v:"")+$:r+o+("!"===this.type?"))"+(!this.isStart()||e||t?"":v)+E+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&s?")":"*"===this.type&&s?")?":`)${this.type}`),[i,m(o),this.#e=!!this.#e,this.#n]}#d(t){return this.#r.map((e=>{if("string"==typeof e)throw new Error("string type in extglob ast??");const[n,r,o,s]=e.toRegExpSource(t);return this.#n=this.#n||s,n})).filter((t=>!(this.isStart()&&this.isEnd()&&!t))).join("|")}static#f(t,e,n=!1){let r=!1,o="",s=!1;for(let i=0;i<t.length;i++){const a=t.charAt(i);if(r)r=!1,o+=(O.has(a)?"\\":"")+a;else if("\\"!==a){if("["===a){const[n,r,a,c]=g(t,i);if(a){o+=n,s=s||r,i+=a-1,e=e||c;continue}}"*"!==a?"?"!==a?o+=a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(o+=S,e=!0):(o+=n&&"*"===t?$:E,e=!0)}else i===t.length-1?o+="\\\\":r=!0}return[o,m(t),!!e,s]}}var x=r(65606),A=r(96763);const P=(t,e,n={})=>(u(e),!(!n.nocomment&&"#"===e.charAt(0))&&new et(e,n).match(t)),T=/^\*+([^+@!?\*\[\(]*)$/,M=t=>e=>!e.startsWith(".")&&e.endsWith(t),I=t=>e=>e.endsWith(t),L=t=>(t=t.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(t)),R=t=>(t=t.toLowerCase(),e=>e.toLowerCase().endsWith(t)),C=/^\*+\.\*+$/,k=t=>!t.startsWith(".")&&t.includes("."),V=t=>"."!==t&&".."!==t&&t.includes("."),N=/^\.\*+$/,D=t=>"."!==t&&".."!==t&&t.startsWith("."),W=/^\*+$/,U=t=>0!==t.length&&!t.startsWith("."),z=t=>0!==t.length&&"."!==t&&".."!==t,F=/^\?+([^+@!?\*\[\(]*)?$/,G=([t,e=""])=>{const n=Z([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},H=([t,e=""])=>{const n=q([t]);return e?(e=e.toLowerCase(),t=>n(t)&&t.toLowerCase().endsWith(e)):n},B=([t,e=""])=>{const n=q([t]);return e?t=>n(t)&&t.endsWith(e):n},J=([t,e=""])=>{const n=Z([t]);return e?t=>n(t)&&t.endsWith(e):n},Z=([t])=>{const e=t.length;return t=>t.length===e&&!t.startsWith(".")},q=([t])=>{const e=t.length;return t=>t.length===e&&"."!==t&&".."!==t},Y="object"==typeof x&&x?"object"==typeof x.env&&x.env&&x.env.__MINIMATCH_TESTING_PLATFORM__||x.platform:"posix";P.sep="win32"===Y?"\\":"/";const X=Symbol("globstar **");P.GLOBSTAR=X,P.filter=(t,e={})=>n=>P(n,t,e);const K=(t,e={})=>Object.assign({},t,e);P.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return P;const e=P;return Object.assign(((n,r,o={})=>e(n,r,K(t,o))),{Minimatch:class extends e.Minimatch{constructor(e,n={}){super(e,K(t,n))}static defaults(n){return e.defaults(K(t,n)).Minimatch}},AST:class extends e.AST{constructor(e,n,r={}){super(e,n,K(t,r))}static fromGlob(n,r={}){return e.AST.fromGlob(n,K(t,r))}},unescape:(n,r={})=>e.unescape(n,K(t,r)),escape:(n,r={})=>e.escape(n,K(t,r)),filter:(n,r={})=>e.filter(n,K(t,r)),defaults:n=>e.defaults(K(t,n)),makeRe:(n,r={})=>e.makeRe(n,K(t,r)),braceExpand:(n,r={})=>e.braceExpand(n,K(t,r)),match:(n,r,o={})=>e.match(n,r,K(t,o)),sep:e.sep,GLOBSTAR:X})};const Q=(t,e={})=>(u(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:p(t));P.braceExpand=Q,P.makeRe=(t,e={})=>new et(t,e).makeRe(),P.match=(t,e,n={})=>{const r=new et(e,n);return t=t.filter((t=>r.match(t))),r.options.nonull&&!t.length&&t.push(e),t};const tt=/[?*]|[+@!]\(.*?\)|\[|\]/;class et{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,e={}){u(t),e=e||{},this.options=e,this.pattern=t,this.platform=e.platform||Y,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)=>A.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 r=this.globParts.map(((t,e,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const e=!(""!==t[0]||""!==t[1]||"?"!==t[2]&&tt.test(t[2])||tt.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,r),this.set=r.filter((t=>-1===t.indexOf(!1))),this.isWindows)for(let t=0;t<this.set.length;t++){const e=this.set[t];""===e[0]&&""===e[1]&&"?"===this.globParts[t][2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])&&(e[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let e=0;e<t.length;e++)for(let n=0;n<t[e].length;n++)"**"===t[e][n]&&(t[e][n]="*");const{optimizationLevel:e=1}=this.options;return e>=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;n<t.length-1;n++){const r=t[n];1===n&&""===r&&""===t[0]||"."!==r&&""!==r||(e=!0,t.splice(n,1),n--)}"."!==t[0]||2!==t.length||"."!==t[1]&&""!==t[1]||(e=!0,t.pop())}let n=0;for(;-1!==(n=t.indexOf("..",n+1));){const r=t[n-1];r&&"."!==r&&".."!==r&&"**"!==r&&(e=!0,t.splice(n-1,2),n-=2)}}while(e);return 0===t.length?[""]:t}firstPhasePreProcess(t){let e=!1;do{e=!1;for(let n of t){let r=-1;for(;-1!==(r=n.indexOf("**",r+1));){let o=r;for(;"**"===n[o+1];)o++;o>r&&n.splice(r+1,o-r);let s=n[r+1];const i=n[r+2],a=n[r+3];if(".."!==s)continue;if(!i||"."===i||".."===i||!a||"."===a||".."===a)continue;e=!0,n.splice(r,1);const c=n.slice(0);c[r]="**",t.push(c),r--}if(!this.preserveMultipleSlashes){for(let t=1;t<n.length-1;t++){const r=n[t];1===t&&""===r&&""===n[0]||"."!==r&&""!==r||(e=!0,n.splice(t,1),t--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(e=!0,n.pop())}let o=0;for(;-1!==(o=n.indexOf("..",o+1));){const t=n[o-1];if(t&&"."!==t&&".."!==t&&"**"!==t){e=!0;const t=1===o&&"**"===n[o+1]?["."]:[];n.splice(o-1,2,...t),0===n.length&&n.push(""),o-=2}}}}while(e);return t}secondPhasePreProcess(t){for(let e=0;e<t.length-1;e++)for(let n=e+1;n<t.length;n++){const r=this.partsMatch(t[e],t[n],!this.preserveMultipleSlashes);if(r){t[e]=[],t[n]=r;break}}return t.filter((t=>t.length))}partsMatch(t,e,n=!1){let r=0,o=0,s=[],i="";for(;r<t.length&&o<e.length;)if(t[r]===e[o])s.push("b"===i?e[o]:t[r]),r++,o++;else if(n&&"**"===t[r]&&e[o]===t[r+1])s.push(t[r]),r++;else if(n&&"**"===e[o]&&t[r]===e[o+1])s.push(e[o]),o++;else if("*"!==t[r]||!e[o]||!this.options.dot&&e[o].startsWith(".")||"**"===e[o]){if("*"!==e[o]||!t[r]||!this.options.dot&&t[r].startsWith(".")||"**"===t[r])return!1;if("a"===i)return!1;i="b",s.push(e[o]),r++,o++}else{if("b"===i)return!1;i="a",s.push(t[r]),r++,o++}return t.length===e.length&&s}parseNegate(){if(this.nonegate)return;const t=this.pattern;let e=!1,n=0;for(let r=0;r<t.length&&"!"===t.charAt(r);r++)e=!e,n++;n&&(this.pattern=t.slice(n)),this.negate=e}matchOne(t,e,n=!1){const r=this.options;if(this.isWindows){const n="string"==typeof t[0]&&/^[a-z]:$/i.test(t[0]),r=!n&&""===t[0]&&""===t[1]&&"?"===t[2]&&/^[a-z]:$/i.test(t[3]),o="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),s=r?3:n?0:void 0,i=!o&&""===e[0]&&""===e[1]&&"?"===e[2]&&"string"==typeof e[3]&&/^[a-z]:$/i.test(e[3])?3:o?0:void 0;if("number"==typeof s&&"number"==typeof i){const[n,r]=[t[s],e[i]];n.toLowerCase()===r.toLowerCase()&&(e[i]=n,i>s?e=e.slice(i):s>i&&(t=t.slice(s)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,i=0,a=t.length,c=e.length;s<a&&i<c;s++,i++){this.debug("matchOne loop");var l=e[i],p=t[s];if(this.debug(e,l,p),!1===l)return!1;if(l===X){this.debug("GLOBSTAR",[e,l,p]);var u=s,h=i+1;if(h===c){for(this.debug("** at the end");s<a;s++)if("."===t[s]||".."===t[s]||!r.dot&&"."===t[s].charAt(0))return!1;return!0}for(;u<a;){var f=t[u];if(this.debug("\nglobstar while",t,u,e,h,f),this.matchOne(t.slice(u),e.slice(h),n))return this.debug("globstar found match!",u,a,f),!0;if("."===f||".."===f||!r.dot&&"."===f.charAt(0)){this.debug("dot detected!",t,u,e,h);break}this.debug("globstar swallow a segment, and continue"),u++}return!(!n||(this.debug("\n>>> no match, partial?",t,u,e,h),u!==a))}let o;if("string"==typeof l?(o=p===l,this.debug("string match",l,p,o)):(o=l.test(p),this.debug("pattern match",l,p,o)),!o)return!1}if(s===a&&i===c)return!0;if(s===a)return n;if(i===c)return s===a-1&&""===t[s];throw new Error("wtf?")}braceExpand(){return Q(this.pattern,this.options)}parse(t){u(t);const e=this.options;if("**"===t)return X;if(""===t)return"";let n,r=null;(n=t.match(W))?r=e.dot?z:U:(n=t.match(T))?r=(e.nocase?e.dot?R:L:e.dot?I:M)(n[1]):(n=t.match(F))?r=(e.nocase?e.dot?H:G:e.dot?B:J)(n):(n=t.match(C))?r=e.dot?V:k:(n=t.match(N))&&(r=D);const o=j.fromGlob(t,this.options).toMMPattern();return r&&"object"==typeof o&&Reflect.defineProperty(o,"test",{value:r}),o}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})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(e.nocase?["i"]:[]);let o=t.map((t=>{const e=t.map((t=>{if(t instanceof RegExp)for(const e of t.flags.split(""))r.add(e);return"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===X?X:t._src}));return e.forEach(((t,r)=>{const o=e[r+1],s=e[r-1];t===X&&s!==X&&(void 0===s?void 0!==o&&o!==X?e[r+1]="(?:\\/|"+n+"\\/)?"+o:e[r]=n:void 0===o?e[r-1]=s+"(?:\\/|"+n+")?":o!==X&&(e[r-1]=s+"(?:\\/|\\/"+n+"\\/)"+o,e[r+1]=X))})),e.filter((t=>t!==X)).join("/")})).join("|");const[s,i]=t.length>1?["(?:",")"]:["",""];o="^"+s+o+i+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...r].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 r=this.slashSplit(t);this.debug(this.pattern,"split",r);const o=this.set;this.debug(this.pattern,"set",o);let s=r[r.length-1];if(!s)for(let t=r.length-2;!s&&t>=0;t--)s=r[t];for(let t=0;t<o.length;t++){const i=o[t];let a=r;if(n.matchBase&&1===i.length&&(a=[s]),this.matchOne(a,i,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(t){return P.defaults(t).Minimatch}}function nt(t){const e={};for(const n of t.keys())e[n]=t.get(n);return e}P.AST=j,P.Minimatch=et,P.escape=(t,{windowsPathsNoEscape:e=!1}={})=>e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),P.unescape=m;var rt,ot=r(12692);r(86454),r(26602),Error,function(t){t.Array="array",t.Object="object",t.Original="original"}(rt||(rt={}));var st=r(35550);const it=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:r=null,getcontentlength:o="0",resourcetype:s=null,getcontenttype:i=null,getetag:a=null}=t,c=s&&"object"==typeof s&&void 0!==s.collection?"directory":"file",l={filename:e,basename:ot.basename(e),lastmod:r,size:parseInt(o,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 at=r(10810);let ct,lt;var pt;if(a.Ay.use(at.R2),r.nc=btoa((0,o.do)()),(0,s.C)("comments","activityEnabled",!1)&&void 0!==(null===(pt=OCA)||void 0===pt||null===(pt=pt.Activity)||void 0===pt?void 0:pt.registerSidebarAction))window.addEventListener("DOMContentLoaded",(function(){window.OCA.Activity.registerSidebarAction({mount:async(t,e)=>{let{context:n,fileInfo:o,reload:s}=e;const i=(0,at.Ey)();if(!ct){const{default:t}=await Promise.all([r.e(4208),r.e(7462),r.e(2913)]).then(r.bind(r,72913));ct=a.Ay.extend(t)}lt=new ct({el:t,parent:n,pinia:i,propsData:{reloadCallback:s,resourceId:o.id}}),c.A.info("Comments plugin mounted in Activity sidebar action",{fileInfo:o})},unmount:()=>{lt&<.$destroy()}}),window.OCA.Activity.registerSidebarEntries((async t=>{let{fileInfo:e,limit:n,offset:o}=t;const{data:s}=await async function(t,e){var n;let{resourceType:r,resourceId:o}=t;const s=["",r,o].join("/"),i=e.datetime?"<oc:datetime>".concat(e.datetime.toISOString(),"</oc:datetime>"):"",a=await st.A.customRequest(s,Object.assign({method:"REPORT",data:'<?xml version="1.0"?>\n\t\t\t<oc:filter-comments\n\t\t\t\txmlns:d="DAV:"\n\t\t\t\txmlns:oc="http://owncloud.org/ns"\n\t\t\t\txmlns:nc="http://nextcloud.org/ns"\n\t\t\t\txmlns:ocs="http://open-collaboration-services.org/ns">\n\t\t\t\t<oc:limit>'.concat(null!==(n=e.limit)&&void 0!==n?n:20,"</oc:limit>\n\t\t\t\t<oc:offset>").concat(e.offset||0,"</oc:offset>\n\t\t\t\t").concat(i,"\n\t\t\t</oc:filter-comments>")},e)),c=await a.text(),p=await(0,l.h4)(c);return function(t,e,n=!1){return n?{data:e,headers:t.headers?nt(t.headers):{},status:t.status,statusText:t.statusText}:e}(a,it(p,!0),!0)}({resourceType:"files",resourceId:e.id},{limit:n,offset:o});c.A.debug("Loaded comments",{fileInfo:e,comments:s});const{default:p}=await Promise.all([r.e(4208),r.e(7462),r.e(1241)]).then(r.bind(r,41241)),u=a.Ay.extend(p);return s.map((t=>{var n;return{_CommentsViewInstance:void 0,timestamp:(0,i.A)(null===(n=t.props)||void 0===n?void 0:n.creationDateTime).toDate().getTime(),mount(n,r){let{context:o,reload:s}=r;this._CommentsViewInstance=new u({el:n,parent:o,propsData:{comment:t,resourceId:e.id,reloadCallback:s}})},unmount(){var t;null===(t=this._CommentsViewInstance)||void 0===t||t.$destroy()}}}))})),window.OCA.Activity.registerSidebarFilter((t=>"comments"!==t.type)),c.A.info("Comments plugin registered for Activity sidebar action")}));else{let e=null;const n=new OCA.Files.Sidebar.Tab({id:"comments",name:t("comments","Comments"),iconSvg:'<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path 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" /></svg>',async mount(t,n,r){e&&e.$destroy(),e=new OCA.Comments.View("files",{parent:r,propsData:{resourceId:n.id}}),await e.update(n.id),e.$mount(t)},update(t){e.update(t.id)},destroy(){e.$destroy(),e=null},scrollBottomReached(){e.onScrollBottomReached()}});window.addEventListener("DOMContentLoaded",(function(){OCA.Files&&OCA.Files.Sidebar&&OCA.Files.Sidebar.registerTab(n)}))}},96689:(t,e,n)=>{"use strict";n.d(e,{A:()=>r});const r=(0,n(53529).YK)().setApp("comments").detectUser().build()},35550:(t,e,n)=>{"use strict";n.d(e,{A:()=>c});var r=n(44719),o=n(17003),s=n(21777);const i=(0,r.UU)((0,o.e)()),a=t=>{i.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:null!=t?t:""})};(0,s.zo)(a),a((0,s.do)());const c=i},17003:(t,e,n)=>{"use strict";n.d(e,{e:()=>o});var r=n(63814);const o=function(){return(0,r.dC)("dav/comments")}},8505:t=>{"use strict";function e(t,e,o){t instanceof RegExp&&(t=n(t,o)),e instanceof RegExp&&(e=n(e,o));var s=r(t,e,o);return s&&{start:s[0],end:s[1],pre:o.slice(0,s[0]),body:o.slice(s[0]+t.length,s[1]),post:o.slice(s[1]+e.length)}}function n(t,e){var n=e.match(t);return n?n[0]:null}function r(t,e,n){var r,o,s,i,a,c=n.indexOf(t),l=n.indexOf(e,c+1),p=c;if(c>=0&&l>0){if(t===e)return[c,l];for(r=[],s=n.length;p>=0&&!a;)p==c?(r.push(p),c=n.indexOf(t,p+1)):1==r.length?a=[r.pop(),l]:((o=r.pop())<s&&(s=o,i=l),l=n.indexOf(e,p+1)),p=c<l&&c>=0?c:l;r.length&&(a=[s,i])}return a}t.exports=e,e.range=r},68928:(t,e,n)=>{var r=n(8505);t.exports=function(t){return t?("{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2)),m(function(t){return t.split("\\\\").join(o).split("\\{").join(s).split("\\}").join(i).split("\\,").join(a).split("\\.").join(c)}(t),!0).map(p)):[]};var o="\0SLASH"+Math.random()+"\0",s="\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 p(t){return t.split(o).join("\\").split(s).join("{").split(i).join("}").split(a).join(",").split(c).join(".")}function u(t){if(!t)return[""];var e=[],n=r("{","}",t);if(!n)return t.split(",");var o=n.pre,s=n.body,i=n.post,a=o.split(",");a[a.length-1]+="{"+s+"}";var c=u(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 f(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function g(t,e){return t>=e}function m(t,e){var n=[],o=r("{","}",t);if(!o)return[t];var s=o.pre,a=o.post.length?m(o.post,!1):[""];if(/\$$/.test(o.pre))for(var c=0;c<a.length;c++){var p=s+"{"+o.body+"}"+a[c];n.push(p)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),w=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),_=v||w,O=o.body.indexOf(",")>=0;if(!_&&!O)return o.post.match(/,.*\}/)?m(t=o.pre+"{"+o.body+i+o.post):[t];if(_)y=o.body.split(/\.\./);else if(1===(y=u(o.body)).length&&1===(y=m(y[0],!1).map(h)).length)return a.map((function(t){return o.pre+y[0]+t}));if(_){var S=l(y[0]),E=l(y[1]),$=Math.max(y[0].length,y[1].length),j=3==y.length?Math.abs(l(y[2])):1,x=d;E<S&&(j*=-1,x=g);var A=y.some(f);b=[];for(var P=S;x(P,E);P+=j){var T;if(w)"\\"===(T=String.fromCharCode(P))&&(T="");else if(T=String(P),A){var M=$-T.length;if(M>0){var I=new Array(M+1).join("0");T=P<0?"-"+I+T.slice(1):I+T}}b.push(T)}}else{b=[];for(var L=0;L<y.length;L++)b.push.apply(b,m(y[L],!1))}for(L=0;L<b.length;L++)for(c=0;c<a.length;c++)p=s+b[L]+a[c],(!e||_||p)&&n.push(p)}return n}},86454:(t,e,n)=>{"use strict";const r=n(43918),o=n(32923),s=n(8904);t.exports={XMLParser:o,XMLValidator:r,XMLBuilder:s}},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 r(t,arguments,s(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),o(i,t)},n(t)}function r(t,e,n){return r=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 r=[null];r.push.apply(r,e);var s=new(Function.bind.apply(t,r));return n&&o(s,n.prototype),s},r.apply(null,arguments)}function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var i=function(t){function n(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(r=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,s(n).call(this,t))).name="ObjectPrototypeMutationError",r}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&&o(t,e)}(n,t),n}(n(Error));function a(t,n){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=n.split("."),s=o.length,i=function(e){var n=o[e];if(!t)return{v:void 0};if("+"===n){if(Array.isArray(t))return{v:t.map((function(n,s){var i=o.slice(e+1);return i.length>0?a(n,i.join("."),r):r(t,s,o,e)}))};var s=o.slice(0,e).join(".");throw new Error("Object at wildcard (".concat(s,") is not an array"))}t=r(t,n,o,e)},c=0;c<s;c++){var l=i(c);if("object"===e(l))return l.v}return t}function c(t,e){return t.length===e+1}t.exports={set:function(t,n,r){if("object"!=e(t)||null===t)return t;if(void 0===n)return t;if("number"==typeof n)return t[n]=r,t[n];try{return a(t,n,(function(t,e,n,o){if(t===Reflect.getPrototypeOf({}))throw new i("Attempting to mutate Object.prototype");if(!t[e]){var s=Number.isInteger(Number(n[o+1])),a="+"===n[o+1];t[e]=s||a?[]:{}}return c(n,o)&&(t[e]=r),t[e]}))}catch(e){if(e instanceof i)throw e;return t}},get:function(t,n){if("object"!=e(t)||null===t)return t;if(void 0===n)return t;if("number"==typeof n)return t[n];try{return a(t,n,(function(t,e){return t[e]}))}catch(e){return t}},has:function(t,n){var r=arguments.length>2&&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 o=!1;return a(t,n,(function(t,e,n,s){if(!c(n,s))return t&&t[e];o=r.own?t.hasOwnProperty(e):e in t})),o}catch(t){return!1}},hasOwn:function(t,e,n){return this.has(t,e,n||{own:!0})},isIn:function(t,n,r){var o=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 s=!1,i=!1;return a(t,n,(function(t,n,o,a){return s=s||t===r||!!t&&t[n]===r,i=c(o,a)&&"object"===e(t)&&n in t,t&&t[n]})),o.validPath?s&&i:s}catch(t){return!1}},ObjectPrototypeMutationError:i}},12692:(t,e,n)=>{"use strict";var r=n(65606),o=n(40537),s=function(t){return"string"==typeof t};function i(t,e){for(var n=[],r=0;r<t.length;r++){var o=t[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():e&&n.push(".."):n.push(o))}return n}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,c={};function l(t){return a.exec(t).slice(1)}c.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var o=n>=0?arguments[n]:r.cwd();if(!s(o))throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,e="/"===o.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<arguments.length;e++){var n=arguments[e];if(!s(n))throw new TypeError("Arguments to path.join must be strings");n&&(t+=t?"/"+n:n)}return c.normalize(t)},c.relative=function(t,e){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=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 r=n(t.split("/")),o=n(e.split("/")),s=Math.min(r.length,o.length),i=s,a=0;a<s;a++)if(r[a]!==o[a]){i=a;break}var l=[];for(a=i;a<r.length;a++)l.push("..");return(l=l.concat(o.slice(i))).join("/")},c._makeLong=function(t){return t},c.dirname=function(t){var e=l(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(t,e){var n=l(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},c.extname=function(t){return l(t)[3]},c.format=function(t){if(!o.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!s(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+c.sep:"")+(t.base||"")},c.parse=function(t){if(!s(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=l(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,e[1].length-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},c.sep="/",c.delimiter=":",t.exports=c},10810:(t,e,n)=>{"use strict";n.d(e,{Ey:()=>z,R2:()=>rt,n2:()=>nt,nY:()=>tt});var r=n(19166),o=n(63757),s=n(96763);let i;const a=t=>i=t,c=Symbol();function l(t){return t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&"function"!=typeof t.toJSON}var p;!function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"}(p||(p={}));const u="undefined"!=typeof window,h=(()=>"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 f(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){b(r.response,e,n)},r.onerror=function(){s.error("could not download file")},r.send()}function d(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function g(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 m="object"==typeof navigator?navigator:{userAgent:""},y=(()=>/Macintosh/.test(m.userAgent)&&/AppleWebKit/.test(m.userAgent)&&!/Safari/.test(m.userAgent))(),b=u?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!y?function(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener","string"==typeof t?(r.href=t,r.origin!==location.origin?d(r.href)?f(t,e,n):(r.target="_blank",g(r)):g(r)):(r.href=URL.createObjectURL(t),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){g(r)}),0))}:"msSaveOrOpenBlob"in m?function(t,e="download",n){if("string"==typeof t)if(d(t))f(t,e,n);else{const e=document.createElement("a");e.href=t,e.target="_blank",setTimeout((function(){g(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,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return f(t,e,n);const o="application/octet-stream"===t.type,s=/constructor/i.test(String(h.HTMLElement))||"safari"in h,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||o&&s||y)&&"undefined"!=typeof FileReader){const e=new FileReader;e.onloadend=function(){let t=e.result;if("string"!=typeof t)throw r=null,new Error("Wrong reader.result type");t=i?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location.assign(t),r=null},e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);r?r.location.assign(e):location.href=e,r=null,setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}:()=>{};function v(t,e){const n="🍍 "+t;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,e):"error"===e?s.error(n):"warn"===e?s.warn(n):s.log(n)}function w(t){return"_a"in t&&"install"in t}function _(){if(!("clipboard"in navigator))return v("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"))&&(v('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let S;function E(t,e){for(const n in e){const r=t.state.value[n];r?Object.assign(r,e[n]):t.state.value[n]=e[n]}}function $(t){return{_custom:{display:t}}}const j="🍍 Pinia (root)",x="_root";function A(t){return w(t)?{id:x,label:j}:{id:t.$id,label:t.$id}}function P(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:$(t.type),key:$(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function T(t){switch(t){case p.direct:return"mutation";case p.patchFunction:case p.patchObject:return"$patch";default:return"unknown"}}let M=!0;const I=[],L="pinia:mutations",R="pinia",{assign:C}=Object,k=t=>"🍍 "+t;function V(t,e){(0,o.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:I,app:t},(n=>{"function"!=typeof n.now&&v("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:R,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(t){if(!_())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),v("Global state copied to clipboard.")}catch(t){if(O(t))return;v("Failed to serialize the state. Check the console for more details.","error"),s.error(t)}}(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(t){if(!_())try{E(t,JSON.parse(await navigator.clipboard.readText())),v("Global state pasted from clipboard.")}catch(t){if(O(t))return;v("Failed to deserialize the state from clipboard. Check the console for more details.","error"),s.error(t)}}(e),n.sendInspectorTree(R),n.sendInspectorState(R)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(t){try{b(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){v("Failed to export the state as JSON. Check the console for more details.","error"),s.error(t)}}(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await async function(t){try{const e=(S||(S=document.createElement("input"),S.type="file",S.accept=".json"),function(){return new Promise(((t,e)=>{S.onchange=async()=>{const e=S.files;if(!e)return t(null);const n=e.item(0);return t(n?{text:await n.text(),file:n}:null)},S.oncancel=()=>t(null),S.onerror=e,S.click()}))}),n=await e();if(!n)return;const{text:r,file:o}=n;E(t,JSON.parse(r)),v(`Global state imported from "${o.name}".`)}catch(t){v("Failed to import the state from JSON. Check the console for more details.","error"),s.error(t)}}(e),n.sendInspectorTree(R),n.sendInspectorState(R)},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?v(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`,"warn"):(n.$reset(),v(`Store "${t}" reset.`)):v(`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:k(e.$id),key:"state",editable:!0,value:e._isOptionsAPI?{_custom:{value:(0,r.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:k(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===R){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()):j.toLowerCase().includes(n.filter.toLowerCase()))):t).map(A)}})),globalThis.$pinia=e,n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===R){const t=n.nodeId===x?e:e._s.get(n.nodeId);if(!t)return;t&&(n.nodeId!==x&&(globalThis.$store=(0,r.ux)(t)),n.state=function(t){if(w(t)){const e=Array.from(t._s.keys()),n=t._s,r={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 r}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,r)=>{if(n.app===t&&n.inspectorId===R){const t=n.nodeId===x?e:e._s.get(n.nodeId);if(!t)return v(`store "${n.nodeId}" not found`,"error");const{path:r}=n;w(t)?r.unshift("state"):1===r.length&&t._customProperties.has(r[0])&&!(r[0]in t.$state)||r.unshift("$state"),M=!1,n.set(t,r,n.state.value),M=!0}})),n.on.editComponentState((t=>{if(t.type.startsWith("🍍")){const n=t.type.replace(/^🍍\s*/,""),r=e._s.get(n);if(!r)return v(`store "${n}" not found`,"error");const{path:o}=t;if("state"!==o[0])return v(`Invalid path for store "${n}":\n${o}\nOnly state can be modified.`);o[0]="$state",M=!1,t.set(r,o,t.state.value),M=!0}}))}))}let N,D=0;function W(t,e,n){const o=e.reduce(((e,n)=>(e[n]=(0,r.ux)(t)[n],e)),{});for(const e in o)t[e]=function(){const r=D,s=n?new Proxy(t,{get:(...t)=>(N=r,Reflect.get(...t)),set:(...t)=>(N=r,Reflect.set(...t))}):t;N=r;const i=o[e].apply(s,arguments);return N=void 0,i}}function U({app:t,store:e,options:n}){if(!e.$id.startsWith("__hot:")){if(e._isOptionsAPI=!!n.state,!e._p._testing){W(e,Object.keys(n.actions),e._isOptionsAPI);const t=e._hotUpdate;(0,r.ux)(e)._hotUpdate=function(n){t.apply(this,arguments),W(e,Object.keys(n._hmrPayload.actions),!!e._isOptionsAPI)}}!function(t,e){I.includes(k(e.$id))||I.push(k(e.$id)),(0,o.$q)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:I,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:r,onError:o,name:s,args:i})=>{const a=D++;t.addTimelineEvent({layerId:L,event:{time:n(),title:"🛫 "+s,subtitle:"start",data:{store:$(e.$id),action:$(s),args:i},groupId:a}}),r((r=>{N=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),title:"🛬 "+s,subtitle:"end",data:{store:$(e.$id),action:$(s),args:i,result:r},groupId:a}})})),o((r=>{N=void 0,t.addTimelineEvent({layerId:L,event:{time:n(),logType:"error",title:"💥 "+s,subtitle:"end",data:{store:$(e.$id),action:$(s),args:i,error:r},groupId:a}})}))}),!0),e._customProperties.forEach((o=>{(0,r.wB)((()=>(0,r.R1)(e[o])),((e,r)=>{t.notifyComponentUpdate(),t.sendInspectorState(R),M&&t.addTimelineEvent({layerId:L,event:{time:n(),title:"Change",subtitle:o,data:{newValue:e,oldValue:r},groupId:N}})}),{deep:!0})})),e.$subscribe((({events:r,type:o},s)=>{if(t.notifyComponentUpdate(),t.sendInspectorState(R),!M)return;const i={time:n(),title:T(o),data:C({store:$(e.$id)},P(r)),groupId:N};o===p.patchFunction?i.subtitle="⤵️":o===p.patchObject?i.subtitle="🧩":r&&!Array.isArray(r)&&(i.subtitle=r.type),r&&(i.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),t.addTimelineEvent({layerId:L,event:i})}),{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=(0,r.IG)((r=>{o(r),t.addTimelineEvent({layerId:L,event:{time:n(),title:"🔥 "+e.$id,subtitle:"HMR update",data:{store:$(e.$id),info:$("HMR update")}}}),t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R)}));const{$dispose:s}=e;e.$dispose=()=>{s(),t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R),t.getSettings().logStoreChanges&&v(`Disposed "${e.$id}" store 🗑`)},t.notifyComponentUpdate(),t.sendInspectorTree(R),t.sendInspectorState(R),t.getSettings().logStoreChanges&&v(`"${e.$id}" store installed 🆕`)}))}(t,e)}}function z(){const t=(0,r.uY)(!0),e=t.run((()=>(0,r.KR)({})));let n=[],o=[];const s=(0,r.IG)({install(t){a(s),r.LE||(s._a=t,t.provide(c,s),t.config.globalProperties.$pinia=s,"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u&&V(t,s),o.forEach((t=>n.push(t))),o=[])},use(t){return this._a||r.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(U),s}const F=()=>{};function G(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,r.o5)()&&(0,r.jr)(s),s}function H(t,...e){t.slice().forEach((t=>{t(...e)}))}const B=t=>t(),J=Symbol(),Z=Symbol();function q(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];l(s)&&l(o)&&t.hasOwnProperty(n)&&!(0,r.i9)(o)&&!(0,r.g8)(o)?t[n]=q(s,o):t[n]=o}return t}const Y=Symbol(),X=new WeakMap,{assign:K}=Object;function Q(t,e,n={},o,s,i){let c;const h=K({actions:{}},n),f={deep:!0};let d,g,m,y=[],b=[];const v=o.state.value[t];i||v||(r.LE?(0,r.hZ)(o.state.value,t,{}):o.state.value[t]={});const w=(0,r.KR)({});let _;function O(e){let n;d=g=!1,"function"==typeof e?(e(o.state.value[t]),n={type:p.patchFunction,storeId:t,events:m}):(q(o.state.value[t],e),n={type:p.patchObject,payload:e,storeId:t,events:m});const s=_=Symbol();(0,r.dY)().then((()=>{_===s&&(d=!0)})),g=!0,H(y,n,o.state.value[t])}const S=i?function(){const{state:t}=n,e=t?t():{};this.$patch((t=>{K(t,e)}))}:F,E=(e,n="")=>{if(J in e)return e[Z]=n,e;const r=function(){a(o);const n=Array.from(arguments),s=[],i=[];let c;H(b,{args:n,name:r[Z],store:x,after:function(t){s.push(t)},onError:function(t){i.push(t)}});try{c=e.apply(this&&this.$id===t?this:x,n)}catch(t){throw H(i,t),t}return c instanceof Promise?c.then((t=>(H(s,t),t))).catch((t=>(H(i,t),Promise.reject(t)))):(H(s,c),c)};return r[J]=!0,r[Z]=n,r},$=(0,r.IG)({actions:{},getters:{},state:[],hotState:w}),j={_p:o,$id:t,$onAction:G.bind(null,b),$patch:O,$reset:S,$subscribe(e,n={}){const s=G(y,e,n.detached,(()=>i())),i=c.run((()=>(0,r.wB)((()=>o.state.value[t]),(r=>{("sync"===n.flush?g:d)&&e({storeId:t,type:p.direct,events:m},r)}),K({},f,n))));return s},$dispose:function(){c.stop(),y=[],b=[],o._s.delete(t)}};r.LE&&(j._r=!1);const x=(0,r.Kh)("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u?K({_hmrPayload:$,_customProperties:(0,r.IG)(new Set)},j):j);o._s.set(t,x);const A=(o._a&&o._a.runWithContext||B)((()=>o._e.run((()=>(c=(0,r.uY)()).run((()=>e({action:E})))))));for(const e in A){const n=A[e];if((0,r.i9)(n)&&(T=n,!(0,r.i9)(T)||!T.effect)||(0,r.g8)(n))i||(!v||(P=n,r.LE?X.has(P):l(P)&&P.hasOwnProperty(Y))||((0,r.i9)(n)?n.value=v[e]:q(n,v[e])),r.LE?(0,r.hZ)(o.state.value[t],e,n):o.state.value[t][e]=n);else if("function"==typeof n){const t=E(n,e);r.LE?(0,r.hZ)(A,e,t):A[e]=t,h.actions[e]=n}}var P,T;if(r.LE?Object.keys(A).forEach((t=>{(0,r.hZ)(x,t,A[t])})):(K(x,A),K((0,r.ux)(x),A)),Object.defineProperty(x,"$state",{get:()=>o.state.value[t],set:t=>{O((e=>{K(e,t)}))}}),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u){const t={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(x,e,K({value:x[e]},t))}))}return r.LE&&(x._r=!0),o._p.forEach((t=>{if("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u){const e=c.run((()=>t({store:x,app:o._a,pinia:o,options:h})));Object.keys(e||{}).forEach((t=>x._customProperties.add(t))),K(x,e)}else K(x,c.run((()=>t({store:x,app:o._a,pinia:o,options:h}))))})),v&&i&&n.hydrate&&n.hydrate(x.$state,v),d=!0,g=!0,x}function tt(t,e,n){let o,s;const l="function"==typeof e;function p(t,n){const p=(0,r.PS)();return(t=t||(p?(0,r.WQ)(c,null):null))&&a(t),(t=i)._s.has(o)||(l?Q(o,e,s,t):function(t,e,n,o){const{state:s,actions:i,getters:c}=e,l=n.state.value[t];let p;p=Q(t,(function(){l||(r.LE?(0,r.hZ)(n.state.value,t,s?s():{}):n.state.value[t]=s?s():{});const e=(0,r.QW)(n.state.value[t]);return K(e,i,Object.keys(c||{}).reduce(((e,o)=>(e[o]=(0,r.IG)((0,r.EW)((()=>{a(n);const e=n._s.get(t);if(!r.LE||e._r)return c[o].call(e,e)}))),e)),{}))}),e,n,0,!0)}(o,s,t)),t._s.get(o)}return"string"==typeof t?(o=t,s=l?n:e):(s=t,o=t.id),p.$id=o,p}let et="Store";function nt(...t){return t.reduce(((t,e)=>(t[e.$id+et]=function(){return e(this.$pinia)},t)),{})}const rt=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[c]=e,this.$pinia||(this.$pinia=e),e._a=this,u&&a(e),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&u&&V(e._a,e)}else!this.$pinia&&t.parent&&t.parent.$pinia&&(this.$pinia=t.parent.$pinia)},destroyed(){delete this._pStores}})}}},s={};function i(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={id:t,loaded:!1,exports:{}};return o[t].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,e=[],i.O=(t,n,r,o)=>{if(!n){var s=1/0;for(p=0;p<e.length;p++){n=e[p][0],r=e[p][1],o=e[p][2];for(var a=!0,c=0;c<n.length;c++)(!1&o||s>=o)&&Object.keys(i.O).every((t=>i.O[t](n[c])))?n.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(p--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var p=e.length;p>0&&e[p-1][2]>o;p--)e[p]=e[p-1];e[p]=[n,r,o]},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="+{1241:"a4187792299da984916c",1957:"96a4d042dd15d21b005b",2913:"1ccb2adaaea884424d3c",4473:"6009e669b1a0737a2378",5528:"231caad2efb966b857ef",7462:"98761c488f4b8f24f170"}[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={},r="nextcloud:",i.l=(t,e,o,s)=>{if(n[t])n[t].push(e);else{var a,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),p=0;p<l.length;p++){var u=l[p];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==r+o){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.setAttribute("data-webpack",r+o),a.src=t),n[t]=[e];var h=(e,r)=>{a.onerror=a.onload=null,clearTimeout(f);var o=n[t];if(delete n[t],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(r))),e)return e(r)},f=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=2122,(()=>{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 r=n.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=n[r--].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={2122:0};i.f.j=(e,n)=>{var r=i.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=o);var s=i.p+i.u(e),a=new Error;i.l(s,(n=>{if(i.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,r[1](a)}}),"chunk-"+e,e)}},i.O.j=e=>0===t[e];var e=(e,n)=>{var r,o,s=n[0],a=n[1],c=n[2],l=0;if(s.some((e=>0!==t[e]))){for(r in a)i.o(a,r)&&(i.m[r]=a[r]);if(c)var p=c(i)}for(e&&e(n);l<s.length;l++)o=s[l],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(p)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),i.nc=void 0;var a=i.O(void 0,[4208],(()=>i(24167)));a=i.O(a)})();
- //# sourceMappingURL=comments-comments-tab.js.map?v=39212d3b52c103d8a513
|