`00${int.toString(16)}`.slice(-2);\n return `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`;\n }\n}\nfunction calculateStepIncrement(steps, color1, color2) {\n return {\n r: (color2.r - color1.r) / steps,\n g: (color2.g - color1.g) / steps,\n b: (color2.b - color1.b) / steps\n };\n}\nfunction mixPalette(steps, color1, color2) {\n const palette = [];\n palette.push(color1);\n const increment = calculateStepIncrement(steps, color1, color2);\n for (let i = 1; i < steps; i++) {\n const r = Math.floor(color1.r + increment.r * i);\n const g = Math.floor(color1.g + increment.g * i);\n const b = Math.floor(color1.b + increment.b * i);\n palette.push(new Color(r, g, b));\n }\n return palette;\n}\nconst COLOR_RED = new Color(182, 70, 157, t(\"Purple\"));\nconst COLOR_YELLOW = new Color(221, 203, 85, t(\"Gold\"));\nconst COLOR_BLUE = new Color(0, 130, 201, t(\"Nextcloud blue\"));\nconst COLOR_BLACK = new Color(0, 0, 0, t(\"Black\"));\nconst COLOR_WHITE = new Color(255, 255, 255, t(\"White\"));\nconst defaultPalette = [\n COLOR_RED,\n new Color(\n ...[191, 103, 139],\n t(\"Rosy brown\")\n // TRANSLATORS: A color name for RGB(191, 103, 139)\n ),\n new Color(\n ...[201, 136, 121],\n t(\"Feldspar\")\n // TRANSLATORS: A color name for RGB(201, 136, 121)\n ),\n new Color(\n ...[211, 169, 103],\n t(\"Whiskey\")\n // TRANSLATORS: A color name for RGB(211, 169, 103)\n ),\n COLOR_YELLOW,\n new Color(\n ...[165, 184, 114],\n t(\"Olivine\")\n // TRANSLATORS: A color name for RGB(165, 184, 114)\n ),\n new Color(\n ...[110, 166, 143],\n t(\"Acapulco\")\n // TRANSLATORS: A color name for RGB(110, 166, 143)\n ),\n new Color(\n ...[55, 148, 172],\n t(\"Boston Blue\")\n // TRANSLATORS: A color name for RGB(55, 148, 172)\n ),\n COLOR_BLUE,\n new Color(\n ...[45, 115, 190],\n t(\"Mariner\")\n // TRANSLATORS: A color name for RGB(45, 115, 190)\n ),\n new Color(\n ...[91, 100, 179],\n t(\"Blue Violet\")\n // TRANSLATORS: A color name for RGB(91, 100, 179)\n ),\n new Color(\n ...[136, 85, 168],\n t(\"Deluge\")\n // TRANSLATORS: A color name for RGB(136, 85, 168)\n )\n];\nfunction generatePalette(steps) {\n const palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW);\n const palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE);\n const palette3 = mixPalette(steps, COLOR_BLUE, COLOR_RED);\n return palette1.concat(palette2).concat(palette3);\n}\nexport {\n Color as C,\n COLOR_BLACK as a,\n COLOR_WHITE as b,\n defaultPalette as d,\n generatePalette as g\n};\n//# sourceMappingURL=colors-BDeMBgfq.mjs.map\n"],"names":["register","t3","Color","r","g","b","name","toHex","int","calculateStepIncrement","steps","color1","color2","mixPalette","palette","increment","i","COLOR_RED","t","COLOR_YELLOW","COLOR_BLUE","COLOR_BLACK","COLOR_WHITE","defaultPalette","generatePalette","palette1","palette2","palette3"],"mappings":"8DACAA,EAASC,CAAE,EACX,MAAMC,CAAM,CAOV,YAAYC,EAAGC,EAAGC,EAAGC,EAAM,CACzB,KAAK,EAAIH,EACT,KAAK,EAAIC,EACT,KAAK,EAAIC,EACT,KAAK,KAAOC,EACZ,KAAK,EAAI,KAAK,IAAIH,EAAG,GAAG,EACxB,KAAK,EAAI,KAAK,IAAIC,EAAG,GAAG,EACxB,KAAK,EAAI,KAAK,IAAIC,EAAG,GAAG,EACxB,KAAK,KAAOC,CACd,CACA,EACA,EACA,EACA,KAIA,IAAI,OAAQ,CACV,MAAMC,EAASC,GAAQ,KAAKA,EAAI,SAAS,EAAE,CAAC,GAAG,MAAM,EAAE,EACvD,MAAO,IAAID,EAAM,KAAK,CAAC,CAAC,GAAGA,EAAM,KAAK,CAAC,CAAC,GAAGA,EAAM,KAAK,CAAC,CAAC,EAC1D,CACF,CACA,SAASE,EAAuBC,EAAOC,EAAQC,EAAQ,CACrD,MAAO,CACL,GAAIA,EAAO,EAAID,EAAO,GAAKD,EAC3B,GAAIE,EAAO,EAAID,EAAO,GAAKD,EAC3B,GAAIE,EAAO,EAAID,EAAO,GAAKD,CAC/B,CACA,CACA,SAASG,EAAWH,EAAOC,EAAQC,EAAQ,CACzC,MAAME,EAAU,CAAA,EAChBA,EAAQ,KAAKH,CAAM,EACnB,MAAMI,EAAYN,EAAuBC,EAAOC,EAAQC,CAAM,EAC9D,QAASI,EAAI,EAAGA,EAAIN,EAAOM,IAAK,CAC9B,MAAMb,EAAI,KAAK,MAAMQ,EAAO,EAAII,EAAU,EAAIC,CAAC,EACzC,EAAI,KAAK,MAAML,EAAO,EAAII,EAAU,EAAIC,CAAC,EACzC,EAAI,KAAK,MAAML,EAAO,EAAII,EAAU,EAAIC,CAAC,EAC/CF,EAAQ,KAAK,IAAIZ,EAAMC,EAAG,EAAG,CAAC,CAAC,CACjC,CACA,OAAOW,CACT,CACA,MAAMG,EAAY,IAAIf,EAAM,IAAK,GAAI,IAAKgB,EAAE,QAAQ,CAAC,EAC/CC,EAAe,IAAIjB,EAAM,IAAK,IAAK,GAAIgB,EAAE,MAAM,CAAC,EAChDE,EAAa,IAAIlB,EAAM,EAAG,IAAK,IAAKgB,EAAE,gBAAgB,CAAC,EACvDG,EAAc,IAAInB,EAAM,EAAG,EAAG,EAAGgB,EAAE,OAAO,CAAC,EAC3CI,EAAc,IAAIpB,EAAM,IAAK,IAAK,IAAKgB,EAAE,OAAO,CAAC,EACjDK,EAAiB,CACrBN,EACA,IAAIf,EACE,IAAK,IAAK,IACdgB,EAAE,YAAY,CAElB,EACE,IAAIhB,EACE,IAAK,IAAK,IACdgB,EAAE,UAAU,CAEhB,EACE,IAAIhB,EACE,IAAK,IAAK,IACdgB,EAAE,SAAS,CAEf,EACEC,EACA,IAAIjB,EACE,IAAK,IAAK,IACdgB,EAAE,SAAS,CAEf,EACE,IAAIhB,EACE,IAAK,IAAK,IACdgB,EAAE,UAAU,CAEhB,EACE,IAAIhB,EACE,GAAI,IAAK,IACbgB,EAAE,aAAa,CAEnB,EACEE,EACA,IAAIlB,EACE,GAAI,IAAK,IACbgB,EAAE,SAAS,CAEf,EACE,IAAIhB,EACE,GAAI,IAAK,IACbgB,EAAE,aAAa,CAEnB,EACE,IAAIhB,EACE,IAAK,GAAI,IACbgB,EAAE,QAAQ,CAEd,CACA,EACA,SAASM,EAAgBd,EAAO,CAC9B,MAAMe,EAAWZ,EAAWH,EAAOO,EAAWE,CAAY,EACpDO,EAAWb,EAAWH,EAAOS,EAAcC,CAAU,EACrDO,EAAWd,EAAWH,EAAOU,EAAYH,CAAS,EACxD,OAAOQ,EAAS,OAAOC,CAAQ,EAAE,OAAOC,CAAQ,CAClD","x_google_ignoreList":[0]}
\ No newline at end of file
+{"version":3,"file":"colors-BDeMBgfq-D6bmAHL3.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/colors-BDeMBgfq.mjs"],"sourcesContent":["import { r as register, t as t3, a as t } from \"./_l10n-CG4CuN3H.mjs\";\nregister(t3);\nclass Color {\n /**\n * @param r - The red value\n * @param g - The green value\n * @param b - The blue value\n * @param name - The name of the color\n */\n constructor(r, g, b, name) {\n this.r = r;\n this.g = g;\n this.b = b;\n this.name = name;\n this.r = Math.min(r, 255);\n this.g = Math.min(g, 255);\n this.b = Math.min(b, 255);\n this.name = name;\n }\n r;\n g;\n b;\n name;\n /**\n * The hexadecimal color string.\n */\n get color() {\n const toHex = (int) => `00${int.toString(16)}`.slice(-2);\n return `#${toHex(this.r)}${toHex(this.g)}${toHex(this.b)}`;\n }\n}\nfunction calculateStepIncrement(steps, color1, color2) {\n return {\n r: (color2.r - color1.r) / steps,\n g: (color2.g - color1.g) / steps,\n b: (color2.b - color1.b) / steps\n };\n}\nfunction mixPalette(steps, color1, color2) {\n const palette = [];\n palette.push(color1);\n const increment = calculateStepIncrement(steps, color1, color2);\n for (let i = 1; i < steps; i++) {\n const r = Math.floor(color1.r + increment.r * i);\n const g = Math.floor(color1.g + increment.g * i);\n const b = Math.floor(color1.b + increment.b * i);\n palette.push(new Color(r, g, b));\n }\n return palette;\n}\nconst COLOR_RED = new Color(182, 70, 157, t(\"Purple\"));\nconst COLOR_YELLOW = new Color(221, 203, 85, t(\"Gold\"));\nconst COLOR_BLUE = new Color(0, 130, 201, t(\"Nextcloud blue\"));\nconst COLOR_BLACK = new Color(0, 0, 0, t(\"Black\"));\nconst COLOR_WHITE = new Color(255, 255, 255, t(\"White\"));\nconst defaultPalette = [\n COLOR_RED,\n new Color(\n ...[191, 103, 139],\n t(\"Rosy brown\")\n // TRANSLATORS: A color name for RGB(191, 103, 139)\n ),\n new Color(\n ...[201, 136, 121],\n t(\"Feldspar\")\n // TRANSLATORS: A color name for RGB(201, 136, 121)\n ),\n new Color(\n ...[211, 169, 103],\n t(\"Whiskey\")\n // TRANSLATORS: A color name for RGB(211, 169, 103)\n ),\n COLOR_YELLOW,\n new Color(\n ...[165, 184, 114],\n t(\"Olivine\")\n // TRANSLATORS: A color name for RGB(165, 184, 114)\n ),\n new Color(\n ...[110, 166, 143],\n t(\"Acapulco\")\n // TRANSLATORS: A color name for RGB(110, 166, 143)\n ),\n new Color(\n ...[55, 148, 172],\n t(\"Boston Blue\")\n // TRANSLATORS: A color name for RGB(55, 148, 172)\n ),\n COLOR_BLUE,\n new Color(\n ...[45, 115, 190],\n t(\"Mariner\")\n // TRANSLATORS: A color name for RGB(45, 115, 190)\n ),\n new Color(\n ...[91, 100, 179],\n t(\"Blue Violet\")\n // TRANSLATORS: A color name for RGB(91, 100, 179)\n ),\n new Color(\n ...[136, 85, 168],\n t(\"Deluge\")\n // TRANSLATORS: A color name for RGB(136, 85, 168)\n )\n];\nfunction generatePalette(steps) {\n const palette1 = mixPalette(steps, COLOR_RED, COLOR_YELLOW);\n const palette2 = mixPalette(steps, COLOR_YELLOW, COLOR_BLUE);\n const palette3 = mixPalette(steps, COLOR_BLUE, COLOR_RED);\n return palette1.concat(palette2).concat(palette3);\n}\nexport {\n Color as C,\n COLOR_BLACK as a,\n COLOR_WHITE as b,\n defaultPalette as d,\n generatePalette as g\n};\n//# sourceMappingURL=colors-BDeMBgfq.mjs.map\n"],"names":["register","t3","Color","r","g","b","name","toHex","int","calculateStepIncrement","steps","color1","color2","mixPalette","palette","increment","i","COLOR_RED","t","COLOR_YELLOW","COLOR_BLUE","COLOR_BLACK","COLOR_WHITE","defaultPalette","generatePalette","palette1","palette2","palette3"],"mappings":"8DACAA,EAASC,CAAE,EACX,MAAMC,CAAM,CAOV,YAAYC,EAAGC,EAAGC,EAAGC,EAAM,CACzB,KAAK,EAAIH,EACT,KAAK,EAAIC,EACT,KAAK,EAAIC,EACT,KAAK,KAAOC,EACZ,KAAK,EAAI,KAAK,IAAIH,EAAG,GAAG,EACxB,KAAK,EAAI,KAAK,IAAIC,EAAG,GAAG,EACxB,KAAK,EAAI,KAAK,IAAIC,EAAG,GAAG,EACxB,KAAK,KAAOC,CACd,CACA,EACA,EACA,EACA,KAIA,IAAI,OAAQ,CACV,MAAMC,EAASC,GAAQ,KAAKA,EAAI,SAAS,EAAE,CAAC,GAAG,MAAM,EAAE,EACvD,MAAO,IAAID,EAAM,KAAK,CAAC,CAAC,GAAGA,EAAM,KAAK,CAAC,CAAC,GAAGA,EAAM,KAAK,CAAC,CAAC,EAC1D,CACF,CACA,SAASE,EAAuBC,EAAOC,EAAQC,EAAQ,CACrD,MAAO,CACL,GAAIA,EAAO,EAAID,EAAO,GAAKD,EAC3B,GAAIE,EAAO,EAAID,EAAO,GAAKD,EAC3B,GAAIE,EAAO,EAAID,EAAO,GAAKD,CAC/B,CACA,CACA,SAASG,EAAWH,EAAOC,EAAQC,EAAQ,CACzC,MAAME,EAAU,CAAA,EAChBA,EAAQ,KAAKH,CAAM,EACnB,MAAMI,EAAYN,EAAuBC,EAAOC,EAAQC,CAAM,EAC9D,QAASI,EAAI,EAAGA,EAAIN,EAAOM,IAAK,CAC9B,MAAMb,EAAI,KAAK,MAAMQ,EAAO,EAAII,EAAU,EAAIC,CAAC,EACzC,EAAI,KAAK,MAAML,EAAO,EAAII,EAAU,EAAIC,CAAC,EACzC,EAAI,KAAK,MAAML,EAAO,EAAII,EAAU,EAAIC,CAAC,EAC/CF,EAAQ,KAAK,IAAIZ,EAAMC,EAAG,EAAG,CAAC,CAAC,CACjC,CACA,OAAOW,CACT,CACA,MAAMG,EAAY,IAAIf,EAAM,IAAK,GAAI,IAAKgB,EAAE,QAAQ,CAAC,EAC/CC,EAAe,IAAIjB,EAAM,IAAK,IAAK,GAAIgB,EAAE,MAAM,CAAC,EAChDE,EAAa,IAAIlB,EAAM,EAAG,IAAK,IAAKgB,EAAE,gBAAgB,CAAC,EACvDG,EAAc,IAAInB,EAAM,EAAG,EAAG,EAAGgB,EAAE,OAAO,CAAC,EAC3CI,EAAc,IAAIpB,EAAM,IAAK,IAAK,IAAKgB,EAAE,OAAO,CAAC,EACjDK,EAAiB,CACrBN,EACA,IAAIf,EACE,IAAK,IAAK,IACdgB,EAAE,YAAY,CAElB,EACE,IAAIhB,EACE,IAAK,IAAK,IACdgB,EAAE,UAAU,CAEhB,EACE,IAAIhB,EACE,IAAK,IAAK,IACdgB,EAAE,SAAS,CAEf,EACEC,EACA,IAAIjB,EACE,IAAK,IAAK,IACdgB,EAAE,SAAS,CAEf,EACE,IAAIhB,EACE,IAAK,IAAK,IACdgB,EAAE,UAAU,CAEhB,EACE,IAAIhB,EACE,GAAI,IAAK,IACbgB,EAAE,aAAa,CAEnB,EACEE,EACA,IAAIlB,EACE,GAAI,IAAK,IACbgB,EAAE,SAAS,CAEf,EACE,IAAIhB,EACE,GAAI,IAAK,IACbgB,EAAE,aAAa,CAEnB,EACE,IAAIhB,EACE,IAAK,GAAI,IACbgB,EAAE,QAAQ,CAEd,CACA,EACA,SAASM,EAAgBd,EAAO,CAC9B,MAAMe,EAAWZ,EAAWH,EAAOO,EAAWE,CAAY,EACpDO,EAAWb,EAAWH,EAAOS,EAAcC,CAAU,EACrDO,EAAWd,EAAWH,EAAOU,EAAYH,CAAS,EACxD,OAAOQ,EAAS,OAAOC,CAAQ,EAAE,OAAOC,CAAQ,CAClD","x_google_ignoreList":[0]}
\ No newline at end of file
diff --git a/js/colors-BDeMBgfq-D6bmAHL3.chunk.mjs.map.license b/js/colors-BDeMBgfq-D6bmAHL3.chunk.mjs.map.license
new file mode 100644
index 000000000..da3376101
--- /dev/null
+++ b/js/colors-BDeMBgfq-D6bmAHL3.chunk.mjs.map.license
@@ -0,0 +1,7 @@
+SPDX-License-Identifier: AGPL-3.0-or-later
+SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
+
+This file is generated from multiple sources. Included packages:
+- @nextcloud/vue
+ - version: 9.8.2
+ - license: AGPL-3.0-or-later
diff --git a/js/index-CbT-ib2g.chunk.mjs b/js/index-CbT-ib2g.chunk.mjs
new file mode 100644
index 000000000..c47447fbd
--- /dev/null
+++ b/js/index-CbT-ib2g.chunk.mjs
@@ -0,0 +1,10 @@
+import{_ as pe,o as C,I as j,B as Q,C as Ct,K as wt,l as pt,aO as re,d6 as Zt,d7 as st,d8 as Zr,d9 as Jt,da as ie,db as Bn,dc as Et,dd as De,de as Vn,df as Un,dg as Wn,dh as zn,b8 as Gn,h as z,bL as Z,bM as J,a2 as cr,as as Re,J as ne,bE as Hn,a0 as ve,f as At,aH as we,au as Jr,P as xe,Q as pr,D as zt,w as ot,$ as dr,cS as qn,bB as fr,d as Kn,a4 as se,Z as Ut,r as Xn,di as Yn,c as Qt,aI as Zn,g as Jn,ax as Qn,a1 as gr}from"./logger-bSwHn5Oe.chunk.mjs";const ts={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},es=["aria-hidden","aria-label"],rs=["fill","width","height"],ns={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},ss={key:0};function is(r,t,e,n,s,i){return C(),j("span",pt(r.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=a=>r.$emit("click",a))}),[(C(),j("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[Q("path",ns,[e.title?(C(),j("title",ss,Ct(e.title),1)):wt("",!0)])],8,rs))],16,es)}const os=pe(ts,[["render",is]]),as={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ls=["aria-hidden","aria-label"],us=["fill","width","height"],hs={d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},cs={key:0};function ps(r,t,e,n,s,i){return C(),j("span",pt(r.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon close-icon",role:"img",onClick:t[0]||(t[0]=a=>r.$emit("click",a))}),[(C(),j("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[Q("path",hs,[e.title?(C(),j("title",cs,Ct(e.title),1)):wt("",!0)])],8,us))],16,ls)}const ds=pe(as,[["render",ps]]);var Ne={},fs={2(r){function t(s,i,a){s instanceof RegExp&&(s=e(s,a)),i instanceof RegExp&&(i=e(i,a));var o=n(s,i,a);return o&&{start:o[0],end:o[1],pre:a.slice(0,o[0]),body:a.slice(o[0]+s.length,o[1]),post:a.slice(o[1]+i.length)}}function e(s,i){var a=i.match(s);return a?a[0]:null}function n(s,i,a){var o,h,u,l,p,c=a.indexOf(s),f=a.indexOf(i,c+1),g=c;if(c>=0&&f>0){for(o=[],u=a.length;g>=0&&!p;)g==c?(o.push(g),c=a.indexOf(s,g+1)):o.length==1?p=[o.pop(),f]:((h=o.pop())=0?c:f;o.length&&(p=[u,l])}return p}r.exports=t,t.range=n},101(r,t,e){var n;r=e.nmd(r),(function(){var s=(r&&r.exports,typeof Zt=="object"&&Zt);s.global!==s&&s.window;var i=function(l){this.message=l};(i.prototype=new Error).name="InvalidCharacterError";var a=function(l){throw new i(l)},o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=/[\t\n\f\r ]/g,u={encode:function(l){l=String(l),/[^\0-\xFF]/.test(l)&&a("The string to be encoded contains characters outside of the Latin1 range.");for(var p,c,f,g,d=l.length%3,m="",y=-1,b=l.length-d;++y>18&63)+o.charAt(g>>12&63)+o.charAt(g>>6&63)+o.charAt(63&g);return d==2?(p=l.charCodeAt(y)<<8,c=l.charCodeAt(++y),m+=o.charAt((g=p+c)>>10)+o.charAt(g>>4&63)+o.charAt(g<<2&63)+"="):d==1&&(g=l.charCodeAt(y),m+=o.charAt(g>>2)+o.charAt(g<<4&63)+"=="),m},decode:function(l){var p=(l=String(l).replace(h,"")).length;p%4==0&&(p=(l=l.replace(/==?$/,"")).length),(p%4==1||/[^+a-zA-Z0-9/]/.test(l))&&a("Invalid character: the string to be decoded is not correctly encoded.");for(var c,f,g=0,d="",m=-1;++m>(-2*g&6)));return d},version:"1.0.0"};(n=function(){return u}.call(t,e,t,r))===void 0||(r.exports=n)})()},172(r,t){t.d=function(e){if(!e)return 0;for(var n=(e=e.toString()).length,s=e.length;s--;){var i=e.charCodeAt(s);56320<=i&&i<=57343&&s--,127>>32-s},rotr:function(n,s){return n<<32-s|n>>>s},endian:function(n){if(n.constructor==Number)return 16711935&e.rotl(n,8)|4278255360&e.rotl(n,24);for(var s=0;s0;n--)s.push(Math.floor(256*Math.random()));return s},bytesToWords:function(n){for(var s=[],i=0,a=0;i>>5]|=n[i]<<24-a%32;return s},wordsToBytes:function(n){for(var s=[],i=0;i<32*n.length;i+=8)s.push(n[i>>>5]>>>24-i%32&255);return s},bytesToHex:function(n){for(var s=[],i=0;i>>4).toString(16)),s.push((15&n[i]).toString(16));return s.join("")},hexToBytes:function(n){for(var s=[],i=0;i>>6*(3-o)&63)):s.push("=");return s.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var s=[],i=0,a=0;i>>6-2*a);return s}},r.exports=e},135(r){function t(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}r.exports=function(e){return e!=null&&(t(e)||(function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))})(e)||!!e._isBuffer)}},542(r,t,e){(function(){var n=e(298),s=e(526).utf8,i=e(135),a=e(526).bin,o=function(h,u){h.constructor==String?h=u&&u.encoding==="binary"?a.stringToBytes(h):s.stringToBytes(h):i(h)?h=Array.prototype.slice.call(h,0):Array.isArray(h)||h.constructor===Uint8Array||(h=h.toString());for(var l=n.bytesToWords(h),p=8*h.length,c=1732584193,f=-271733879,g=-1732584194,d=271733878,m=0;m>>24)|4278255360&(l[m]<<24|l[m]>>>8);l[p>>>5]|=128<>>9<<4)]=p;var y=o._ff,b=o._gg,v=o._hh,w=o._ii;for(m=0;m>>0,f=f+N>>>0,g=g+E>>>0,d=d+A>>>0}return n.endian([c,f,g,d])};o._ff=function(h,u,l,p,c,f,g){var d=h+(u&l|~u&p)+(c>>>0)+g;return(d<>>32-f)+u},o._gg=function(h,u,l,p,c,f,g){var d=h+(u&p|l&~p)+(c>>>0)+g;return(d<>>32-f)+u},o._hh=function(h,u,l,p,c,f,g){var d=h+(u^l^p)+(c>>>0)+g;return(d<>>32-f)+u},o._ii=function(h,u,l,p,c,f,g){var d=h+(l^(u|~p))+(c>>>0)+g;return(d<>>32-f)+u},o._blocksize=16,o._digestsize=16,r.exports=function(h,u){if(h==null)throw new Error("Illegal argument "+h);var l=n.wordsToBytes(o(h,u));return u&&u.asBytes?l:u&&u.asString?a.bytesToString(l):n.bytesToHex(l)}})()},285(r,t,e){var n=e(2);r.exports=function(y,b){if(!y)return[];var v=(b=b||{}).max==null?1/0:b.max;return y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),m((function(w){return w.split("\\\\").join(s).split("\\{").join(i).split("\\}").join(a).split("\\,").join(o).split("\\.").join(h)})(y),v,!0).map(l)};var s="\0SLASH"+Math.random()+"\0",i="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",o="\0COMMA"+Math.random()+"\0",h="\0PERIOD"+Math.random()+"\0";function u(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)}function l(y){return y.split(s).join("\\").split(i).join("{").split(a).join("}").split(o).join(",").split(h).join(".")}function p(y){if(!y)return[""];var b=[],v=n("{","}",y);if(!v)return y.split(",");var w=v.pre,x=v.body,N=v.post,E=w.split(",");E[E.length-1]+="{"+x+"}";var A=p(N);return N.length&&(E[E.length-1]+=A.shift(),E.push.apply(E,A)),b.push.apply(b,E),b}function c(y){return"{"+y+"}"}function f(y){return/^-?0\d/.test(y)}function g(y,b){return y<=b}function d(y,b){return y>=b}function m(y,b,v){var w=[],x=n("{","}",y);if(!x)return[y];var N=x.pre,E=x.post.length?m(x.post,b,!1):[""];if(/\$$/.test(x.pre))for(var A=0;A=0;if(!ut&&!Yt)return x.post.match(/,(?!,).*\}/)?m(y=x.pre+"{"+x.body+a+x.post,b,!0):[y];if(ut)O=x.body.split(/\.\./);else if((O=p(x.body)).length===1&&(O=m(O[0],b,!1).map(c)).length===1)return E.map((function(Fn){return x.pre+O[0]+Fn}));if(ut){var jt=u(O[0]),H=u(O[1]),nt=Math.max(O[0].length,O[1].length),It=O.length==3?Math.max(Math.abs(u(O[2])),1):1,kt=g;H0){var hr=new Array(ur+1).join("0");ht=Dt<0?"-"+hr+ht.slice(1):hr+ht}}tt.push(ht)}}else{tt=[];for(var gt=0;gt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}})()?Reflect.construct:function(c,f,g){var d=[null];d.push.apply(d,f);var m=new(Function.bind.apply(c,d));return g&&s(m,g.prototype),m},n.apply(null,arguments)}function s(u,l){return s=Object.setPrototypeOf||function(p,c){return p.__proto__=c,p},s(u,l)}function i(u){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(l){return l.__proto__||Object.getPrototypeOf(l)},i(u)}var a=(function(u){function l(p){var c;return(function(f,g){if(!(f instanceof g))throw new TypeError("Cannot call a class as a function")})(this,l),(c=(function(f,g){return!g||t(g)!=="object"&&typeof g!="function"?(function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d})(f):g})(this,i(l).call(this,p))).name="ObjectPrototypeMutationError",c}return(function(p,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(c&&c.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),c&&s(p,c)})(l,u),l})(e(Error));function o(u,l){for(var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=l.split("."),f=c.length,g=function(y){var b=c[y];if(!u)return{v:void 0};if(b==="+"){if(Array.isArray(u))return{v:u.map((function(w,x){var N=c.slice(y+1);return N.length>0?o(w,N.join("."),p):p(u,x,c,y)}))};var v=c.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(v,") is not an array"))}u=p(u,b,c,y)},d=0;d2&&arguments[2]!==void 0?arguments[2]:{};if(t(u)!="object"||u===null||l===void 0)return!1;if(typeof l=="number")return l in u;try{var c=!1;return o(u,l,(function(f,g,d,m){if(!h(d,m))return f&&f[g];c=p.own?f.hasOwnProperty(g):g in f})),c}catch{return!1}},hasOwn:function(u,l,p){return this.has(u,l,p||{own:!0})},isIn:function(u,l,p){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(t(u)!="object"||u===null||l===void 0)return!1;try{var f=!1,g=!1;return o(u,l,(function(d,m,y,b){return f=f||d===p||!!d&&d[m]===p,g=h(y,b)&&t(d)==="object"&&m in d,d&&d[m]})),c.validPath?f&&g:f}catch{return!1}},ObjectPrototypeMutationError:a}},47(r,t,e){var n=e(410),s=function(u){return typeof u=="string"};function i(u,l){for(var p=[],c=0;c=-1&&!l;p--){var c=p>=0?arguments[p]:re.cwd();if(!s(c))throw new TypeError("Arguments to path.resolve must be strings");c&&(u=c+"/"+u,l=c.charAt(0)==="/")}return(l?"/":"")+(u=i(u.split("/"),!l).join("/"))||"."},o.normalize=function(u){var l=o.isAbsolute(u),p=u.substr(-1)==="/";return(u=i(u.split("/"),!l).join("/"))||l||(u="."),u&&p&&(u+="/"),(l?"/":"")+u},o.isAbsolute=function(u){return u.charAt(0)==="/"},o.join=function(){for(var u="",l=0;l=0&&b[w]==="";w--);return v>w?[]:b.slice(v,w+1)}u=o.resolve(u).substr(1),l=o.resolve(l).substr(1);for(var c=p(u.split("/")),f=p(l.split("/")),g=Math.min(c.length,f.length),d=g,m=0;m=2&&(w=w.slice(2)):d(N)?w=x[4]:N?E&&(w=w.slice(2)):P>=2&&d(v.protocol)&&(w=x[4]),{protocol:N,slashes:E||d(N),slashesCount:P,rest:w}}function y(b,v,w){if(b=(b=p(b)).replace(a,""),!(this instanceof y))return new y(b,v,w);var x,N,E,A,P,O,tt=c.slice(),Xt=typeof v,S=this,ut=0;for(Xt!=="object"&&Xt!=="string"&&(w=v,v=null),w&&typeof w!="function"&&(w=s.parse),x=!(N=m(b||"",v=g(v))).protocol&&!N.slashes,S.slashes=N.slashes||x&&v.slashes,S.protocol=N.protocol||v.protocol||"",b=N.rest,(N.protocol==="file:"&&(N.slashesCount!==2||l.test(b))||!N.slashes&&(N.protocol||N.slashesCount<2||!d(S.protocol)))&&(tt[3]=[/(.*)/,"pathname"]);ut{var t=r&&r.__esModule?()=>r.default:()=>r;return T.d(t,{a:t}),t},T.d=(r,t)=>{for(var e in t)T.o(t,e)&&!T.o(r,e)&&Object.defineProperty(r,e,{enumerable:!0,get:t[e]})},T.o=(r,t)=>Object.prototype.hasOwnProperty.call(r,t),T.nmd=r=>(r.paths=[],r.children||(r.children=[]),r);var gs=T(737),ms=T.n(gs);function Se(r){if(!Fe(r))throw new Error("Parameter was not an error")}function Fe(r){return!!r&&typeof r=="object"&&(t=r,Object.prototype.toString.call(t)==="[object Error]")||r instanceof Error;var t}class V extends Error{constructor(t,e){const n=[...arguments],{options:s,shortMessage:i}=(function(o){let h,u="";if(o.length===0)h={};else if(Fe(o[0]))h={cause:o[0]},u=o.slice(1).join(" ")||"";else if(o[0]&&typeof o[0]=="object")h=Object.assign({},o[0]),u=o.slice(1).join(" ")||"";else{if(typeof o[0]!="string")throw new Error("Invalid arguments passed to Layerr");h={},u=u=o.join(" ")||""}return{options:h,shortMessage:u}})(n);let a=i;if(s.cause&&(a=`${a}: ${s.cause.message}`),super(a),this.message=a,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const o=s.constructorOpt||this.constructor;Error.captureStackTrace(this,o)}}static cause(t){return Se(t),t._cause&&Fe(t._cause)?t._cause:null}static fullStack(t){Se(t);const e=V.cause(t);return e?`${t.stack}
+caused by: ${V.fullStack(e)}`:t.stack??""}static info(t){Se(t);const e={},n=V.cause(t);return n&&Object.assign(e,V.info(n)),t._info&&Object.assign(e,t._info),e}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}var ys=T(47),oe=T.n(ys);const yr="__PATH_SEPARATOR_POSIX__",br="__PATH_SEPARATOR_WINDOWS__";function _(r){try{const t=r.replace(/\//g,yr).replace(/\\\\/g,br);return encodeURIComponent(t).split(br).join("\\\\").split(yr).join("/")}catch(t){throw new V(t,"Failed encoding path")}}function vr(r){return r.startsWith("/")?r:"/"+r}function Ht(r){let t=r;return t[0]!=="/"&&(t="/"+t),/^.+\/$/.test(t)&&(t=t.substr(0,t.length-1)),t}function bs(r){let t=new(ms())(r).pathname;return t.length<=0&&(t="/"),Ht(t)}function $(){for(var r=arguments.length,t=new Array(r),e=0;e1){var i=n.shift();n[0]=i+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var a=0;a0&&(o=o.replace(/^[\/]+/,"")),o=a0?"?":"")+u.join("&")})(typeof arguments[0]=="object"?arguments[0]:[].slice.call(arguments))})(t.reduce(((n,s,i)=>((i===0||s!=="/"||s==="/"&&n[n.length-1]!=="/")&&n.push(s),n)),[]))}var vs=T(542),Rt=T.n(vs);function wr(r,t){const e=r.url.replace("//",""),n=e.indexOf("/")==-1?"/":e.slice(e.indexOf("/")),s=r.method?r.method.toUpperCase():"GET",i=!!/(^|,)\s*auth\s*($|,)/.test(t.qop)&&"auth",a=`00000000${t.nc}`.slice(-8),o=(function(c,f,g,d,m,y,b){const v=b||Rt()(`${f}:${g}:${d}`);return c&&c.toLowerCase()==="md5-sess"?Rt()(`${v}:${m}:${y}`):v})(t.algorithm,t.username,t.realm,t.password,t.nonce,t.cnonce,t.ha1),h=Rt()(`${s}:${n}`),u=i?Rt()(`${o}:${t.nonce}:${a}:${t.cnonce}:${i}:${h}`):Rt()(`${o}:${t.nonce}:${h}`),l={username:t.username,realm:t.realm,nonce:t.nonce,uri:n,qop:i,response:u,nc:a,cnonce:t.cnonce,algorithm:t.algorithm,opaque:t.opaque},p=[];for(const c in l)l[c]&&(c==="qop"||c==="nc"||c==="algorithm"?p.push(`${c}=${l[c]}`):p.push(`${c}="${l[c]}"`));return`Digest ${p.join(", ")}`}function Qr(r){return(r.headers&&r.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}var ws=T(101),tn=T.n(ws);function xr(r){return tn().decode(r)}function Nr(r,t){var e;return`Basic ${e=`${r}:${t}`,tn().encode(e)}`}const Sr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:typeof window<"u"?window:globalThis,xs=Sr.fetch.bind(Sr);let G=(function(r){return r.Auto="auto",r.Digest="digest",r.None="none",r.Password="password",r.Token="token",r})({}),dt=(function(r){return r.DataTypeNoLength="data-type-no-length",r.InvalidAuthType="invalid-auth-type",r.InvalidOutputFormat="invalid-output-format",r.LinkUnsupportedAuthType="link-unsupported-auth",r.InvalidUpdateRange="invalid-update-range",r.NotSupported="not-supported",r})({});function en(r,t,e,n,s){switch(r.authType){case G.Auto:t&&e&&(r.headers.Authorization=Nr(t,e));break;case G.Digest:r.digest=(function(a,o,h){return{username:a,password:o,ha1:h,nc:0,algorithm:"md5",hasDigestAuth:!1}})(t,e,s);break;case G.None:break;case G.Password:r.headers.Authorization=Nr(t,e);break;case G.Token:r.headers.Authorization=`${(i=n).token_type} ${i.access_token}`;break;default:throw new V({info:{code:dt.InvalidAuthType}},`Invalid auth type: ${r.authType}`)}var i}T(345),T(800);const Er="@@HOTPATCHER",Ns=()=>{};function Ee(r){return{original:r,methods:[r],final:!1}}class Ss{constructor(){this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Er}get configuration(){return this._configuration}get getEmptyAction(){return this.configuration.getEmptyAction}set getEmptyAction(t){this.configuration.getEmptyAction=t}control(t){let e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!t||t.__type__!==Er)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(t.configuration.registry).forEach((n=>{this.configuration.registry.hasOwnProperty(n)?e&&(this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])):this.configuration.registry[n]=Object.assign({},t.configuration.registry[n])})),t._configuration=this.configuration,this}execute(t){const e=this.get(t)||Ns;for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i0;)u=[s.shift().apply(l,u)];return u[0]}})(...e.methods)}isPatched(t){return!!this.configuration.registry[t]}patch(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{chain:s=!1}=n;if(this.configuration.registry[t]&&this.configuration.registry[t].final)throw new Error(`Failed patching '${t}': Method marked as being final`);if(typeof e!="function")throw new Error(`Failed patching '${t}': Provided method is not a function`);if(s)this.configuration.registry[t]?this.configuration.registry[t].methods.push(e):this.configuration.registry[t]=Ee(e);else if(this.isPatched(t)){const{original:i}=this.configuration.registry[t];this.configuration.registry[t]=Object.assign(Ee(e),{original:i})}else this.configuration.registry[t]=Ee(e);return this}patchInline(t,e){this.isPatched(t)||this.patch(t,e);for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i1?e-1:0),s=1;s{this.patch(t,i,{chain:!0})})),this}restore(t){if(!this.isPatched(t))throw new Error(`Failed restoring method: No method present for key: ${t}`);if(typeof this.configuration.registry[t].original!="function")throw new Error(`Failed restoring method: Original method not found or of invalid type for key: ${t}`);return this.configuration.registry[t].methods=[this.configuration.registry[t].original],this}setFinal(t){if(!this.configuration.registry.hasOwnProperty(t))throw new Error(`Failed marking '${t}' as final: No method found for key`);return this.configuration.registry[t].final=!0,this}}let Ae=null;function Es(){return Ae||(Ae=new Ss),Ae}function ae(r){return(function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!="[object Object]")return!1;if(Object.getPrototypeOf(t)===null)return!0;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e})(r)?Object.assign({},r):Object.setPrototypeOf(Object.assign({},r),Object.getPrototypeOf(r))}function Ar(){for(var r=arguments.length,t=new Array(r),e=0;e0;){const i=s.shift();n=n?rn(n,i):ae(i)}return n}function rn(r,t){const e=ae(r);return Object.keys(t).forEach((n=>{e.hasOwnProperty(n)?Array.isArray(t[n])?e[n]=Array.isArray(e[n])?[...e[n],...t[n]]:[...t[n]]:typeof t[n]=="object"&&t[n]?e[n]=typeof e[n]=="object"&&e[n]?rn(e[n],t[n]):ae(t[n]):e[n]=t[n]:e[n]=t[n]})),e}function As(r){const t={};for(const e of r.keys())t[e]=r.get(e);return t}function Be(){for(var r=arguments.length,t=new Array(r),e=0;e(Object.keys(i).forEach((a=>{const o=a.toLowerCase();n.hasOwnProperty(o)?s[n[o]]=i[a]:(n[o]=a,s[a]=i[a])})),s)),{})}T(805);const Os=typeof ArrayBuffer=="function",{toString:Ps}=Object.prototype;function nn(r){return Os&&(r instanceof ArrayBuffer||Ps.call(r)==="[object ArrayBuffer]")}function sn(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function Xe(r){return function(){for(var t=[],e=0;et.patchInline("fetch",xs,e.url,(function(n){let s={};const i={method:n.method};if(n.headers&&(s=Be(s,n.headers)),n.data!==void 0){const[a,o]=(function(h){if(typeof h=="string")return[h,{}];if(sn(h))return[h,{}];if(nn(h))return[h,{}];if(h&&typeof h=="object")return[JSON.stringify(h),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+typeof h)})(n.data);i.body=a,s=Be(s,o)}return n.signal&&(i.signal=n.signal),n.withCredentials&&(i.credentials="include"),i.headers=s,i})(e))),r)}var Ts=T(285);const ue=r=>{if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")},_s={"[: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]},Ft=r=>r.replace(/[[\]\\-]/g,"\\$&"),Or=r=>r.join(""),$s=(r,t)=>{const e=t;if(r.charAt(e)!=="[")throw new Error("not in a brace expression");const n=[],s=[];let i=e+1,a=!1,o=!1,h=!1,u=!1,l=e,p="";t:for(;ip?n.push(Ft(p)+"-"+Ft(d)):d===p&&n.push(Ft(d)),p="",i++):r.startsWith("-]",i+1)?(n.push(Ft(d+"-")),i+=2):r.startsWith("-",i+1)?(p=d,i+=2):(n.push(Ft(d)),i++)}else h=!0,i++}else u=!0,i++}if(l1&&arguments[1]!==void 0?arguments[1]:{};return t?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")};var W;const Ls=new Set(["!","?","+","*","@"]),Ue=r=>Ls.has(r),Pr=r=>Ue(r.type),js=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),Is=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),ks=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Cr=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),Oe="(?!\\.)",Ms=new Set(["[","."]),Ds=new Set(["..","."]),Rs=new Set("().*{}+?[]^$\\!"),Ye="[^/]",Tr=Ye+"*?",_r=Ye+"+?";class Ze{type;#r;#n;#s=!1;#t=[];#e;#a;#u;#l=!1;#i;#o;#h=!1;constructor(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=t,t&&(this.#n=!0),this.#e=e,this.#r=this.#e?this.#e.#r:this,this.#i=this.#r===this?n:this.#r.#i,this.#u=this.#r===this?[]:this.#r.#u,t!=="!"||this.#r.#l||this.#u.push(this),this.#a=this.#e?this.#e.#t.length:0}get hasMagic(){if(this.#n!==void 0)return this.#n;for(const t of this.#t)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#n=!0;return this.#n}toString(){return this.#o!==void 0?this.#o:this.type?this.#o=this.type+"("+this.#t.map((t=>String(t))).join("|")+")":this.#o=this.#t.map((t=>String(t))).join("")}#y(){if(this!==this.#r)throw new Error("should only call on root");if(this.#l)return this;let t;for(this.toString(),this.#l=!0;t=this.#u.pop();){if(t.type!=="!")continue;let e=t,n=e.#e;for(;n;){for(let s=e.#a+1;!n.type&&stypeof e=="string"?e:e.toJSON())):[this.type,...this.#t.map((e=>e.toJSON()))];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#r||this.#r.#l&&this.#e?.type==="!")&&t.push({}),t}isStart(){if(this.#r===this)return!0;if(!this.#e?.isStart())return!1;if(this.#a===0)return!0;const t=this.#e;for(let e=0;e1&&arguments[1]!==void 0?arguments[1]:js;if(!t||typeof t!="object"||t.type!==null||t.#t.length!==1||this.type===null)return!1;const n=t.#t[0];return!(!n||typeof n!="object"||n.type===null)&&this.#p(n.type,e)}#p(t){return!!(arguments.length>1&&arguments[1]!==void 0?arguments[1]:ks).get(this.type)?.includes(t)}#v(t,e){const n=t.#t[0],s=new W(null,n,this.options);s.#t.push(""),n.push(s),this.#g(t,e)}#g(t,e){const n=t.#t[0];this.#t.splice(e,1,...n.#t);for(const s of n.#t)typeof s=="object"&&(s.#e=this);this.#o=void 0}#w(t){return!!Cr.get(this.type)?.has(t)}#x(t){if(!t||typeof t!="object"||t.type!==null||t.#t.length!==1||this.type===null||this.#t.length!==1)return!1;const e=t.#t[0];return!(!e||typeof e!="object"||e.type===null)&&this.#w(e.type)}#N(t){const e=Cr.get(this.type),n=t.#t[0],s=e?.get(n.type);if(!s)return!1;this.#t=n.#t;for(const i of this.#t)typeof i=="object"&&(i.#e=this);this.type=s,this.#o=void 0,this.#h=!1}#d(){if(Pr(this)){let t=0,e=!1;do{e=!0;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:{};const n=new W(null,void 0,e);return W.#c(t,n,0,e,0),n}toMMPattern(){if(this!==this.#r)return this.#r.toMMPattern();const t=this.toString(),[e,n,s,i]=this.toRegExpSource();if(!(s||this.#n||this.#i.nocase&&!this.#i.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const a=(this.#i.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${e}$`,a),{_src:e,_glob:t})}get options(){return this.#i}toRegExpSource(t){const e=t??!!this.#i.dot;if(this.#r===this&&(this.#d(),this.#y()),!Pr(this)){const h=this.isStart()&&this.isEnd(),u=this.#t.map((c=>{const[f,g,d,m]=typeof c=="string"?W.#S(c,this.#n,h):c.toRegExpSource(t);return this.#n=this.#n||d,this.#s=this.#s||m,f})).join("");let l="";if(this.isStart()&&typeof this.#t[0]=="string"&&(this.#t.length!==1||!Ds.has(this.#t[0]))){const c=Ms,f=e&&c.has(u.charAt(0))||u.startsWith("\\.")&&c.has(u.charAt(2))||u.startsWith("\\.\\.")&&c.has(u.charAt(4)),g=!e&&!t&&c.has(u.charAt(0));l=f?"(?!(?:^|/)\\.\\.?(?:$|/))":g?Oe:""}let p="";return this.isEnd()&&this.#r.#l&&this.#e?.type==="!"&&(p="(?:$|\\/)"),[l+u+p,Wt(u),this.#n=!!this.#n,this.#s]}const n=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let i=this.#m(e);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){const h=this.toString(),u=this;return u.#t=[h],u.type=null,u.#n=void 0,[h,Wt(this.toString()),!1,!1]}let a=!n||t||e?"":this.#m(!0);a===i&&(a=""),a&&(i=`(?:${i})(?:${a})*?`);let o="";return o=this.type==="!"&&this.#h?(this.isStart()&&!e?Oe:"")+_r:s+i+(this.type==="!"?"))"+(!this.isStart()||e||t?"":Oe)+Tr+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`),[o,Wt(i),this.#n=!!this.#n,this.#s]}#m(t){return this.#t.map((e=>{if(typeof e=="string")throw new Error("string type in extglob ast??");const[n,s,i,a]=e.toRegExpSource(t);return this.#s=this.#s||a,n})).filter((e=>!(this.isStart()&&this.isEnd()&&!e))).join("|")}static#S(t,e){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],s=!1,i="",a=!1,o=!1;for(let h=0;h