@sveltia/cms 0.166.2 → 0.166.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sveltia-cms.mjs
CHANGED
|
@@ -149,10 +149,10 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\
|
|
|
149
149
|
`,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){vy(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(py(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=_y(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(py(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(hy(t.key)&&!py(t.sep,`newline`)){let e=_y(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):py(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!py(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){vy(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||py(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=_y(gy(t));yy(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
|
|
150
150
|
`)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
|
|
151
151
|
`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=_y(gy(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=_y(gy(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}}));function xne(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new dy||null,prettyErrors:t}}function Sne(e,t={}){let{lineCounter:n,prettyErrors:r}=xne(t),i=new by(n?.addNewLine),a=new Yv(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Tv(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Ev(e,n)),o.warnings.forEach(Ev(e,n))),o}function Sy(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=Sne(e,n);if(!i)return null;if(i.warnings.forEach(e=>$g(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function Cy(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Wh(e)&&!r?e.toString(n):new Sv(e,r,n).toString(n)}var Cne=o((()=>{Xv(),Cv(),Dv(),e_(),Xh(),fy(),xy()})),wy=o((()=>{Xv(),Cv(),zte(),Dv(),xg(),Xh(),f_(),wg(),v_(),C_(),ny(),uy(),fy(),xy(),Cne(),ig()})),Ty=o((()=>{wy(),wy()})),Ey,Dy=o((()=>{Ey=({date:e=new Date,timeZone:t=void 0}={})=>{let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`};return Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{...n,hour12:!1,timeZone:t}).formatToParts(e).filter(({type:e})=>e in n).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))}})),Oy,wne=o((()=>{Oy=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ`,`a`],[`ُ`,`u`],[`ِ`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]])})),ky,Ay,Tne=o((()=>{ky=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],Ay={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:ky,nb:ky,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(Ay))Ay[e]=new Map(Ay[e])}));function Ene(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=Fy(t.locale),r=[...t.customReplacements],i=Oy,a=Ny;if(n&&({replacements:i,pattern:a}=Py.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var jy,My,Ny,Py,Fy,Dne=o((()=>{wne(),Tne(),jy=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),My=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>jy(e)).join(`|`),`gu`)},Ny=My(Oy),Py=new Map;for(let[e,t]of Object.entries(Ay)){let n=new Map(Oy);for(let[e,r]of t)n.set(e,r);Py.set(e,{replacements:n,pattern:My(n)})}Fy=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(Ay,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(Ay,n))return n}})),Iy,Ly=o((()=>{Iy=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})),Ry,zy,By,Vy=o((()=>{Dne(),fp(),yp(),Pp(),dF(),Ly(),Ry=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],zy=new Map,By=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A(oF)??{},u=r??s,d=e;if(a&&(d=Ene(d.normalize(`NFD`),{locale:n&&Ry.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=Iy(zy,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=lp(`short`)),typeof u==`number`&&d.length>u&&(d=mp(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}}));
|
|
152
|
-
/*! @license DOMPurify 3.4.
|
|
152
|
+
/*! @license DOMPurify 3.4.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.9/LICENSE */
|
|
153
153
|
function Hy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function One(e){if(Array.isArray(e))return e}function kne(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ane(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
154
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jne(e,t){return One(e)||kne(e,t)||Mne(e,t)||Ane()}function Mne(e,t){if(e){if(typeof e==`string`)return Hy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hy(e,t):void 0}}function Uy(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return rb(e,t,n)}}function Nne(e){return function(){return ib(e,[...arguments])}}function Wy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:db;if(Yy&&Yy(e,null),!ub(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Xy(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Pne(e){for(let t=0;t<e.length;t++)xb(e,t)||(e[t]=null);return e}function Gy(e){let t=tb(null);for(let r of Jy(e)){var n=jne(r,2);let i=n[0],a=n[1];xb(e,i)&&(ub(a)?t[i]=Pne(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=Gy(a):t[i]=a)}return t}function Fne(e){switch(typeof e){case`string`:return e;case`number`:return _b(e);case`boolean`:return vb(e);case`bigint`:return yb?yb(e):`0`;case`symbol`:return bb?bb(e):`Symbol()`;case`undefined`:return Sb(e);case`function`:case`object`:{if(e===null)return Sb(e);let t=e,n=Ky(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Sb(e)}return Sb(e)}default:return Sb(e)}}function Ky(e,t){for(;e!==null;){let n=Qy(e,t);if(n){if(n.get)return Uy(n.get);if(typeof n.value==`function`)return Uy(n.value)}e=Zy(e)}function n(){return null}return n}function Ine(e){try{return Cb(e,``),!0}catch{return!1}}function qy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qb(),t=e=>qy(e);if(t.version=`3.4.8`,t.removed=[],!e||!e.document||e.document.nodeType!==Kb.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Ky(d,`cloneNode`),p=Ky(d,`remove`),m=Ky(d,`nextSibling`),h=Ky(d,`childNodes`),g=Ky(d,`parentNode`),_=Ky(d,`shadowRoot`),v=Ky(d,`attributes`),y=o&&o.prototype?Ky(o.prototype,`nodeType`):null,b=o&&o.prototype?Ky(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=0,w=function(e){if(C>0)throw wb(`The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`);C++;try{return x.createHTML(e)}finally{C--}},T=n,ee=T.implementation,te=T.createNodeIterator,ne=T.createDocumentFragment,re=T.getElementsByTagName,ie=r.importNode,ae=Yb();t.isSupported=typeof Jy==`function`&&typeof g==`function`&&ee&&ee.createHTMLDocument!==void 0;let oe=Ib,se=Lb,ce=Rb,le=zb,ue=Bb,de=Hb,E=Ub,fe=Gb,pe=Vb,me=null,he=Wy({},[...Tb,...Eb,...Db,...kb,...jb]),ge=null,_e=Wy({},[...Mb,...Nb,...Pb,...Fb]),ve=Object.seal(tb(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ye=null,be=null,xe=Object.seal(tb(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Se=!0,Ce=!0,we=!1,Te=!0,Ee=!1,De=!0,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!1,Ne=!1,Pe=!0,Fe=!1,Ie=`user-content-`,Le=!0,Re=!1,ze={},Be=null,Ve=Wy({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),He=null,Ue=Wy({},[`audio`,`video`,`img`,`source`,`image`,`track`]),We=null,Ge=Wy({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ke=`http://www.w3.org/1998/Math/MathML`,qe=`http://www.w3.org/2000/svg`,Je=`http://www.w3.org/1999/xhtml`,Ye=Je,Xe=!1,Ze=null,Qe=Wy({},[Ke,qe,Je],fb),$e=Wy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),et=Wy({},[`annotation-xml`]),tt=Wy({},[`title`,`style`,`font`,`a`,`script`]),nt=null,rt=[`application/xhtml+xml`,`text/html`],it=null,at=null,ot=n.createElement(`form`),st=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(at&&at===e)return;(!e||typeof e!=`object`)&&(e={}),e=Gy(e),nt=rt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,it=nt===`application/xhtml+xml`?fb:db,me=xb(e,`ALLOWED_TAGS`)&&ub(e.ALLOWED_TAGS)?Wy({},e.ALLOWED_TAGS,it):he,ge=xb(e,`ALLOWED_ATTR`)&&ub(e.ALLOWED_ATTR)?Wy({},e.ALLOWED_ATTR,it):_e,Ze=xb(e,`ALLOWED_NAMESPACES`)&&ub(e.ALLOWED_NAMESPACES)?Wy({},e.ALLOWED_NAMESPACES,fb):Qe,We=xb(e,`ADD_URI_SAFE_ATTR`)&&ub(e.ADD_URI_SAFE_ATTR)?Wy(Gy(Ge),e.ADD_URI_SAFE_ATTR,it):Ge,He=xb(e,`ADD_DATA_URI_TAGS`)&&ub(e.ADD_DATA_URI_TAGS)?Wy(Gy(Ue),e.ADD_DATA_URI_TAGS,it):Ue,Be=xb(e,`FORBID_CONTENTS`)&&ub(e.FORBID_CONTENTS)?Wy({},e.FORBID_CONTENTS,it):Ve,ye=xb(e,`FORBID_TAGS`)&&ub(e.FORBID_TAGS)?Wy({},e.FORBID_TAGS,it):Gy({}),be=xb(e,`FORBID_ATTR`)&&ub(e.FORBID_ATTR)?Wy({},e.FORBID_ATTR,it):Gy({}),ze=xb(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Gy(e.USE_PROFILES):e.USE_PROFILES:!1,Se=e.ALLOW_ARIA_ATTR!==!1,Ce=e.ALLOW_DATA_ATTR!==!1,we=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Te=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ee=e.SAFE_FOR_TEMPLATES||!1,De=e.SAFE_FOR_XML!==!1,Oe=e.WHOLE_DOCUMENT||!1,je=e.RETURN_DOM||!1,Me=e.RETURN_DOM_FRAGMENT||!1,Ne=e.RETURN_TRUSTED_TYPE||!1,Ae=e.FORCE_BODY||!1,Pe=e.SANITIZE_DOM!==!1,Fe=e.SANITIZE_NAMED_PROPS||!1,Le=e.KEEP_CONTENT!==!1,Re=e.IN_PLACE||!1,pe=Ine(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Vb,Ye=typeof e.NAMESPACE==`string`?e.NAMESPACE:Je,$e=xb(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Gy(e.MATHML_TEXT_INTEGRATION_POINTS):Wy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),et=xb(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Gy(e.HTML_INTEGRATION_POINTS):Wy({},[`annotation-xml`]);let t=xb(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Gy(e.CUSTOM_ELEMENT_HANDLING):tb(null);if(ve=tb(null),xb(t,`tagNameCheck`)&&st(t.tagNameCheck)&&(ve.tagNameCheck=t.tagNameCheck),xb(t,`attributeNameCheck`)&&st(t.attributeNameCheck)&&(ve.attributeNameCheck=t.attributeNameCheck),xb(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ve.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Ee&&(Ce=!1),Me&&(je=!0),ze&&(me=Wy({},jb),ge=tb(null),ze.html===!0&&(Wy(me,Tb),Wy(ge,Mb)),ze.svg===!0&&(Wy(me,Eb),Wy(ge,Nb),Wy(ge,Fb)),ze.svgFilters===!0&&(Wy(me,Db),Wy(ge,Nb),Wy(ge,Fb)),ze.mathMl===!0&&(Wy(me,kb),Wy(ge,Pb),Wy(ge,Fb))),xe.tagCheck=null,xe.attributeCheck=null,xb(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?xe.tagCheck=e.ADD_TAGS:ub(e.ADD_TAGS)&&(me===he&&(me=Gy(me)),Wy(me,e.ADD_TAGS,it))),xb(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?xe.attributeCheck=e.ADD_ATTR:ub(e.ADD_ATTR)&&(ge===_e&&(ge=Gy(ge)),Wy(ge,e.ADD_ATTR,it))),xb(e,`ADD_URI_SAFE_ATTR`)&&ub(e.ADD_URI_SAFE_ATTR)&&Wy(We,e.ADD_URI_SAFE_ATTR,it),xb(e,`FORBID_CONTENTS`)&&ub(e.FORBID_CONTENTS)&&(Be===Ve&&(Be=Gy(Be)),Wy(Be,e.FORBID_CONTENTS,it)),xb(e,`ADD_FORBID_CONTENTS`)&&ub(e.ADD_FORBID_CONTENTS)&&(Be===Ve&&(Be=Gy(Be)),Wy(Be,e.ADD_FORBID_CONTENTS,it)),Le&&(me[`#text`]=!0),Oe&&Wy(me,[`html`,`head`,`body`]),me.table&&(Wy(me,[`tbody`]),delete ye.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw wb(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw wb(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=w(``)}catch(e){throw x=t,e}}else x===void 0&&e.TRUSTED_TYPES_POLICY!==null&&(x=Jb(u,i)),x&&typeof S==`string`&&(S=w(``));(ae.uponSanitizeElement.length>0||ae.uponSanitizeAttribute.length>0)&&me===he&&(me=Gy(me)),ae.uponSanitizeAttribute.length>0&&ge===_e&&(ge=Gy(ge)),$y&&$y(e),at=e},lt=Wy({},[...Eb,...Db,...Ob]),ut=Wy({},[...kb,...Ab]),dt=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:Ye,tagName:`template`});let n=db(e.tagName),r=db(t.tagName);return Ze[e.namespaceURI]?e.namespaceURI===qe?t.namespaceURI===Je?n===`svg`:t.namespaceURI===Ke?n===`svg`&&(r===`annotation-xml`||$e[r]):!!lt[n]:e.namespaceURI===Ke?t.namespaceURI===Je?n===`math`:t.namespaceURI===qe?n===`math`&&et[r]:!!ut[n]:e.namespaceURI===Je?t.namespaceURI===qe&&!et[r]||t.namespaceURI===Ke&&!$e[r]?!1:!ut[n]&&(tt[n]||!lt[n]):!!(nt===`application/xhtml+xml`&&Ze[e.namespaceURI]):!1},ft=function(e){cb(t.removed,{element:e});try{g(e).removeChild(e)}catch{p(e)}},pt=function(e,n){try{cb(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{cb(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(je||Me)try{ft(n)}catch{}else try{n.setAttribute(e,``)}catch{}},mt=function(e){let t=null,r=null;if(Ae)e=`<remove></remove>`+e;else{let t=pb(e,/^[\r\n\t ]+/);r=t&&t[0]}nt===`application/xhtml+xml`&&Ye===Je&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?w(e):e;if(Ye===Je)try{t=new l().parseFromString(i,nt)}catch{}if(!t||!t.documentElement){t=ee.createDocument(Ye,`template`,null);try{t.documentElement.innerHTML=Xe?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Ye===Je?re.call(t,Oe?`html`:`body`)[0]:Oe?t.documentElement:a},ht=function(e){return te.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},D=function(e){e.normalize();let t=te.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;ab([oe,se,ce],t=>{e=mb(e,t,` `)}),n.data=e,n=t.nextNode()}let r=e.querySelectorAll?.call(e,`template`)??[];ab(Array.from(r),e=>{_t(e.content)&&D(e.content)})},gt=function(e){let t=b?b(e):null;return typeof t!=`string`||it(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},_t=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===Kb.documentFragment}catch{return!1}},vt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function yt(e,n,r){ab(e,e=>{e.call(t,n,r,at)})}let bt=function(e){let n=null;if(yt(ae.beforeSanitizeElements,e,null),gt(e))return ft(e),!0;let r=it(b?b(e):e.nodeName);if(yt(ae.uponSanitizeElement,e,{tagName:r,allowedTags:me}),De&&e.hasChildNodes()&&!vt(e.firstElementChild)&&Cb(/<[/\w!]/g,e.innerHTML)&&Cb(/<[/\w!]/g,e.textContent)||De&&e.namespaceURI===Je&&r===`style`&&vt(e.firstElementChild)||e.nodeType===Kb.progressingInstruction||De&&e.nodeType===Kb.comment&&Cb(/<[/\w]/g,e.data))return ft(e),!0;if(ye[r]||!(xe.tagCheck instanceof Function&&xe.tagCheck(r))&&!me[r]){if(!ye[r]&&Ct(r)&&(ve.tagNameCheck instanceof RegExp&&Cb(ve.tagNameCheck,r)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(r)))return!1;if(Le&&!Be[r]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=f(n[i],!0);t.insertBefore(r,m(e))}}}return ft(e),!0}return(y?y(e):e.nodeType)===Kb.element&&!dt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Cb(/<\/no(script|embed|frames)/i,e.innerHTML)?(ft(e),!0):(Ee&&e.nodeType===Kb.text&&(n=e.textContent,ab([oe,se,ce],e=>{n=mb(n,e,` `)}),e.textContent!==n&&(cb(t.removed,{element:e.cloneNode()}),e.textContent=n)),yt(ae.afterSanitizeElements,e,null),!1)},xt=function(e,t,r){if(be[t]||Pe&&(t===`id`||t===`name`)&&(r in n||r in ot))return!1;let i=ge[t]||xe.attributeCheck instanceof Function&&xe.attributeCheck(t,e);if(!(Ce&&!be[t]&&Cb(le,t))&&!(Se&&Cb(ue,t))){if(!i||be[t]){if(!(Ct(e)&&(ve.tagNameCheck instanceof RegExp&&Cb(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&Cb(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t,e))||t===`is`&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&Cb(ve.tagNameCheck,r)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(r))))return!1}else if(!We[t]&&!Cb(pe,mb(r,E,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&hb(r,`data:`)===0&&He[e])&&!(we&&!Cb(de,mb(r,E,``)))&&r)return!1}return!0},St=Wy({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ct=function(e){return!St[db(e)]&&Cb(fe,e)},wt=function(e){yt(ae.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||gt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ge,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=it(o),d=c,f=o===`value`?d:gb(d);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,yt(ae.uponSanitizeAttribute,e,r),f=r.attrValue,Fe&&(l===`id`||l===`name`)&&hb(f,Ie)!==0&&(pt(o,e),f=Ie+f),De&&Cb(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){pt(o,e);continue}if(l===`attributename`&&pb(f,`href`)){pt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){pt(o,e);continue}if(!Te&&Cb(/\/>/i,f)){pt(o,e);continue}Ee&&ab([oe,se,ce],e=>{f=mb(f,e,` `)});let p=it(e.nodeName);if(!xt(p,l,f)){pt(o,e);continue}if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!s)switch(u.getAttributeType(p,l)){case`TrustedHTML`:f=w(f);break;case`TrustedScriptURL`:f=x.createScriptURL(f);break}if(f!==d)try{s?e.setAttributeNS(s,o,f):e.setAttribute(o,f),gt(e)?ft(e):sb(t.removed)}catch{pt(o,e)}}yt(ae.afterSanitizeAttributes,e,null)},Tt=function(e){let t=null,n=ht(e);for(yt(ae.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(yt(ae.uponSanitizeShadowNode,t,null),bt(t),wt(t),_t(t.content)&&Tt(t.content),(y?y(t):t.nodeType)===Kb.element){let e=_?_(t):t.shadowRoot;_t(e)&&(Et(e),Tt(e))}yt(ae.afterSanitizeShadowDOM,e,null)},Et=function(e){let t=y?y(e):e.nodeType;if(t===Kb.element){let t=_?_(e):e.shadowRoot;_t(t)&&(Et(t),Tt(t))}let n=h?h(e):e.childNodes;if(!n)return;let r=[];ab(n,e=>{cb(r,e)});for(let e of r)Et(e);if(t===Kb.element){let t=b?b(e):null;if(typeof t==`string`&&it(t)===`template`){let t=e.content;_t(t)&&Et(t)}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Xe=!e,Xe&&(e=`<!-->`),typeof e!=`string`&&!vt(e)&&(e=Fne(e),typeof e!=`string`))throw wb(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(ke||ct(n),t.removed=[],typeof e==`string`&&(Re=!1),Re){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=it(t);if(!me[e]||ye[e])throw wb(`root node is forbidden and cannot be sanitized in-place`)}if(gt(e))throw wb(`root node is clobbered and cannot be sanitized in-place`);Et(e)}else if(vt(e))i=mt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Kb.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Et(a);else{if(!je&&!Ee&&!Oe&&e.indexOf(`<`)===-1)return x&&Ne?w(e):e;if(i=mt(e),!i)return je?null:Ne?S:``}i&&Ae&&ft(i.firstChild);let c=ht(Re?e:i);for(;o=c.nextNode();)bt(o),wt(o),_t(o.content)&&Tt(o.content);if(Re)return Ee&&D(e),e;if(je){if(Ee&&D(i),Me)for(s=ne.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(ge.shadowroot||ge.shadowrootmode)&&(s=ie.call(r,s,!0)),s}let l=Oe?i.outerHTML:i.innerHTML;return Oe&&me[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Cb(Wb,i.ownerDocument.doctype.name)&&(l=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
155
|
-
`+l),Ee&&ab([oe,se,ce],e=>{l=mb(l,e,` `)}),x&&Ne?w(l):l},t.setConfig=function(){ct(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),ke=!0},t.clearConfig=function(){at=null,ke=!1},t.isValidAttribute=function(e,t,n){return at||ct({}),xt(it(e),it(t),n)},t.addHook=function(e,t){typeof t==`function`&&cb(ae[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=ob(ae[e],t);return n===-1?void 0:lb(ae[e],n,1)[0]}return sb(ae[e])},t.removeHooks=function(e){ae[e]=[]},t.removeAllHooks=function(){ae=Yb()},t}var Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Lne=o((()=>{Jy=Object.entries,Yy=Object.setPrototypeOf,Xy=Object.isFrozen,Zy=Object.getPrototypeOf,Qy=Object.getOwnPropertyDescriptor,$y=Object.freeze,eb=Object.seal,tb=Object.create,nb=typeof Reflect<`u`&&Reflect,rb=nb.apply,ib=nb.construct,$y||=function(e){return e},eb||=function(e){return e},rb||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ib||=function(e){return new e(...[...arguments].slice(1))},ab=Uy(Array.prototype.forEach),ob=Uy(Array.prototype.lastIndexOf),sb=Uy(Array.prototype.pop),cb=Uy(Array.prototype.push),lb=Uy(Array.prototype.splice),ub=Array.isArray,db=Uy(String.prototype.toLowerCase),fb=Uy(String.prototype.toString),pb=Uy(String.prototype.match),mb=Uy(String.prototype.replace),hb=Uy(String.prototype.indexOf),gb=Uy(String.prototype.trim),_b=Uy(Number.prototype.toString),vb=Uy(Boolean.prototype.toString),yb=typeof BigInt>`u`?null:Uy(BigInt.prototype.toString),bb=typeof Symbol>`u`?null:Uy(Symbol.prototype.toString),xb=Uy(Object.prototype.hasOwnProperty),Sb=Uy(Object.prototype.toString),Cb=Uy(RegExp.prototype.test),wb=Nne(TypeError),Tb=$y(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Eb=$y(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Db=$y([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Ob=$y([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),kb=$y(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Ab=$y([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),jb=$y([`#text`]),Mb=$y(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Nb=$y(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Pb=$y(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Fb=$y([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ib=eb(/{{[\w\W]*|^[\w\W]*}}/g),Lb=eb(/<%[\w\W]*|^[\w\W]*%>/g),Rb=eb(/\${[\w\W]*/g),zb=eb(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bb=eb(/^aria-[\-\w]+$/),Vb=eb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hb=eb(/^(?:\w+script|data):/i),Ub=eb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wb=eb(/^html$/i),Gb=eb(/^[a-z][.\w]*(-[.\w]+)+$/i),Kb={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qb=function(){return typeof window>`u`?null:window},Jb=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Yb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Xb=qy()})),Zb,Qb=o((()=>{Lne(),Zb=Xb.sanitize.bind(Xb),Xb.isSupported,Xb.addHook.bind(Xb),Xb.removeHook.bind(Xb),Xb.removeHooks.bind(Xb),Xb.removeAllHooks.bind(Xb),Xb.setConfig.bind(Xb),Xb.clearConfig.bind(Xb),Xb.isValidAttribute.bind(Xb),Xb.version,Xb.removed}));function $b(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function ex(e){ux=e}function tx(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function nx(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(px.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function rx(e,t){if(t){if(px.escapeTest.test(e))return e.replace(px.escapeReplace,bS)}else if(px.escapeTestNoEncode.test(e))return e.replace(px.escapeReplaceNoEncode,bS);return e}function ix(e){try{e=encodeURI(e).replace(px.percentDecode,`%`)}catch{return null}return e}function ax(e,t){let n=e.replace(px.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(px.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(px.slashPipe,`|`);return n}function ox(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function sx(e){let t=e.split(`
|
|
154
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jne(e,t){return One(e)||kne(e,t)||Mne(e,t)||Ane()}function Mne(e,t){if(e){if(typeof e==`string`)return Hy(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hy(e,t):void 0}}function Uy(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return rb(e,t,n)}}function Nne(e){return function(){return ib(e,[...arguments])}}function Wy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:db;if(Yy&&Yy(e,null),!ub(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Xy(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Pne(e){for(let t=0;t<e.length;t++)xb(e,t)||(e[t]=null);return e}function Gy(e){let t=tb(null);for(let r of Jy(e)){var n=jne(r,2);let i=n[0],a=n[1];xb(e,i)&&(ub(a)?t[i]=Pne(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=Gy(a):t[i]=a)}return t}function Fne(e){switch(typeof e){case`string`:return e;case`number`:return _b(e);case`boolean`:return vb(e);case`bigint`:return yb?yb(e):`0`;case`symbol`:return bb?bb(e):`Symbol()`;case`undefined`:return Sb(e);case`function`:case`object`:{if(e===null)return Sb(e);let t=e,n=Ky(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Sb(e)}return Sb(e)}default:return Sb(e)}}function Ky(e,t){for(;e!==null;){let n=Qy(e,t);if(n){if(n.get)return Uy(n.get);if(typeof n.value==`function`)return Uy(n.value)}e=Zy(e)}function n(){return null}return n}function Ine(e){try{return Cb(e,``),!0}catch{return!1}}function qy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qb(),t=e=>qy(e);if(t.version=`3.4.9`,t.removed=[],!e||!e.document||e.document.nodeType!==Kb.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=Ky(d,`cloneNode`),p=Ky(d,`remove`),m=Ky(d,`nextSibling`),h=Ky(d,`childNodes`),g=Ky(d,`parentNode`),_=Ky(d,`shadowRoot`),v=Ky(d,`attributes`),y=o&&o.prototype?Ky(o.prototype,`nodeType`):null,b=o&&o.prototype?Ky(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,w=!1,T=0,ee=function(){if(T>0)throw wb(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},te=function(e){ee(),T++;try{return x.createHTML(e)}finally{T--}},ne=function(e){ee(),T++;try{return x.createScriptURL(e)}finally{T--}},re=function(){return w||=(C=Jb(u,i),!0),C},ie=n,ae=ie.implementation,oe=ie.createNodeIterator,se=ie.createDocumentFragment,ce=ie.getElementsByTagName,le=r.importNode,ue=Yb();t.isSupported=typeof Jy==`function`&&typeof g==`function`&&ae&&ae.createHTMLDocument!==void 0;let de=Ib,E=Lb,fe=Rb,pe=zb,me=Bb,he=Hb,ge=Ub,_e=Gb,ve=Vb,ye=null,be=Wy({},[...Tb,...Eb,...Db,...kb,...jb]),xe=null,Se=Wy({},[...Mb,...Nb,...Pb,...Fb]),Ce=Object.seal(tb(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,Te=null,Ee=Object.seal(tb(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),De=!0,Oe=!0,ke=!1,Ae=!0,je=!1,Me=!0,Ne=!1,Pe=!1,Fe=!1,Ie=!1,Le=!1,Re=!1,ze=!0,Be=!1,Ve=`user-content-`,He=!0,Ue=!1,We={},Ge=null,Ke=Wy({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),qe=null,Je=Wy({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ye=null,Xe=Wy({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ze=`http://www.w3.org/1998/Math/MathML`,Qe=`http://www.w3.org/2000/svg`,$e=`http://www.w3.org/1999/xhtml`,et=$e,tt=!1,nt=null,rt=Wy({},[Ze,Qe,$e],fb),it=Wy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),at=Wy({},[`annotation-xml`]),ot=Wy({},[`title`,`style`,`font`,`a`,`script`]),st=null,ct=[`application/xhtml+xml`,`text/html`],lt=null,ut=null,dt=n.createElement(`form`),ft=function(e){return e instanceof RegExp||e instanceof Function},pt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ut&&ut===e)return;(!e||typeof e!=`object`)&&(e={}),e=Gy(e),st=ct.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,lt=st===`application/xhtml+xml`?fb:db,ye=xb(e,`ALLOWED_TAGS`)&&ub(e.ALLOWED_TAGS)?Wy({},e.ALLOWED_TAGS,lt):be,xe=xb(e,`ALLOWED_ATTR`)&&ub(e.ALLOWED_ATTR)?Wy({},e.ALLOWED_ATTR,lt):Se,nt=xb(e,`ALLOWED_NAMESPACES`)&&ub(e.ALLOWED_NAMESPACES)?Wy({},e.ALLOWED_NAMESPACES,fb):rt,Ye=xb(e,`ADD_URI_SAFE_ATTR`)&&ub(e.ADD_URI_SAFE_ATTR)?Wy(Gy(Xe),e.ADD_URI_SAFE_ATTR,lt):Xe,qe=xb(e,`ADD_DATA_URI_TAGS`)&&ub(e.ADD_DATA_URI_TAGS)?Wy(Gy(Je),e.ADD_DATA_URI_TAGS,lt):Je,Ge=xb(e,`FORBID_CONTENTS`)&&ub(e.FORBID_CONTENTS)?Wy({},e.FORBID_CONTENTS,lt):Ke,we=xb(e,`FORBID_TAGS`)&&ub(e.FORBID_TAGS)?Wy({},e.FORBID_TAGS,lt):Gy({}),Te=xb(e,`FORBID_ATTR`)&&ub(e.FORBID_ATTR)?Wy({},e.FORBID_ATTR,lt):Gy({}),We=xb(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Gy(e.USE_PROFILES):e.USE_PROFILES:!1,De=e.ALLOW_ARIA_ATTR!==!1,Oe=e.ALLOW_DATA_ATTR!==!1,ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ae=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=e.SAFE_FOR_TEMPLATES||!1,Me=e.SAFE_FOR_XML!==!1,Ne=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,ze=e.SANITIZE_DOM!==!1,Be=e.SANITIZE_NAMED_PROPS||!1,He=e.KEEP_CONTENT!==!1,Ue=e.IN_PLACE||!1,ve=Ine(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Vb,et=typeof e.NAMESPACE==`string`?e.NAMESPACE:$e,it=xb(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Gy(e.MATHML_TEXT_INTEGRATION_POINTS):Wy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),at=xb(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Gy(e.HTML_INTEGRATION_POINTS):Wy({},[`annotation-xml`]);let t=xb(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Gy(e.CUSTOM_ELEMENT_HANDLING):tb(null);if(Ce=tb(null),xb(t,`tagNameCheck`)&&ft(t.tagNameCheck)&&(Ce.tagNameCheck=t.tagNameCheck),xb(t,`attributeNameCheck`)&&ft(t.attributeNameCheck)&&(Ce.attributeNameCheck=t.attributeNameCheck),xb(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Ce.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),je&&(Oe=!1),Le&&(Ie=!0),We&&(ye=Wy({},jb),xe=tb(null),We.html===!0&&(Wy(ye,Tb),Wy(xe,Mb)),We.svg===!0&&(Wy(ye,Eb),Wy(xe,Nb),Wy(xe,Fb)),We.svgFilters===!0&&(Wy(ye,Db),Wy(xe,Nb),Wy(xe,Fb)),We.mathMl===!0&&(Wy(ye,kb),Wy(xe,Pb),Wy(xe,Fb))),Ee.tagCheck=null,Ee.attributeCheck=null,xb(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ee.tagCheck=e.ADD_TAGS:ub(e.ADD_TAGS)&&(ye===be&&(ye=Gy(ye)),Wy(ye,e.ADD_TAGS,lt))),xb(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ee.attributeCheck=e.ADD_ATTR:ub(e.ADD_ATTR)&&(xe===Se&&(xe=Gy(xe)),Wy(xe,e.ADD_ATTR,lt))),xb(e,`ADD_URI_SAFE_ATTR`)&&ub(e.ADD_URI_SAFE_ATTR)&&Wy(Ye,e.ADD_URI_SAFE_ATTR,lt),xb(e,`FORBID_CONTENTS`)&&ub(e.FORBID_CONTENTS)&&(Ge===Ke&&(Ge=Gy(Ge)),Wy(Ge,e.FORBID_CONTENTS,lt)),xb(e,`ADD_FORBID_CONTENTS`)&&ub(e.ADD_FORBID_CONTENTS)&&(Ge===Ke&&(Ge=Gy(Ge)),Wy(Ge,e.ADD_FORBID_CONTENTS,lt)),He&&(ye[`#text`]=!0),Ne&&Wy(ye,[`html`,`head`,`body`]),ye.table&&(Wy(ye,[`tbody`]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw wb(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw wb(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=te(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=re()),x&&typeof S==`string`&&(S=te(``)));(ue.uponSanitizeElement.length>0||ue.uponSanitizeAttribute.length>0)&&ye===be&&(ye=Gy(ye)),ue.uponSanitizeAttribute.length>0&&xe===Se&&(xe=Gy(xe)),$y&&$y(e),ut=e},mt=Wy({},[...Eb,...Db,...Ob]),ht=Wy({},[...kb,...Ab]),D=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:et,tagName:`template`});let n=db(e.tagName),r=db(t.tagName);return nt[e.namespaceURI]?e.namespaceURI===Qe?t.namespaceURI===$e?n===`svg`:t.namespaceURI===Ze?n===`svg`&&(r===`annotation-xml`||it[r]):!!mt[n]:e.namespaceURI===Ze?t.namespaceURI===$e?n===`math`:t.namespaceURI===Qe?n===`math`&&at[r]:!!ht[n]:e.namespaceURI===$e?t.namespaceURI===Qe&&!at[r]||t.namespaceURI===Ze&&!it[r]?!1:!ht[n]&&(ot[n]||!mt[n]):!!(st===`application/xhtml+xml`&&nt[e.namespaceURI]):!1},gt=function(e){cb(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw wb(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},_t=function(e){let t=h?h(e):e.childNodes;if(t){let e=[];ab(t,t=>{cb(e,t)}),ab(e,e=>{try{p(e)}catch{}})}let n=v?v(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},vt=function(e,n){try{cb(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{cb(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ie||Le)try{gt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},yt=function(e){let t=v?v(e):e.attributes;if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||xe[lt(i)]))try{e.removeAttribute(i)}catch{}}},bt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===Kb.element&&yt(e);let n=h?h(e):e.childNodes;if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},xt=function(e){let t=null,r=null;if(Fe)e=`<remove></remove>`+e;else{let t=pb(e,/^[\r\n\t ]+/);r=t&&t[0]}st===`application/xhtml+xml`&&et===$e&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?te(e):e;if(et===$e)try{t=new l().parseFromString(i,st)}catch{}if(!t||!t.documentElement){t=ae.createDocument(et,`template`,null);try{t.documentElement.innerHTML=tt?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),et===$e?ce.call(t,Ne?`html`:`body`)[0]:Ne?t.documentElement:a},St=function(e){return oe.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ct=function(e){e.normalize();let t=oe.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;ab([de,E,fe],t=>{e=mb(e,t,` `)}),n.data=e,n=t.nextNode()}let r=e.querySelectorAll?.call(e,`template`)??[];ab(Array.from(r),e=>{Tt(e.content)&&Ct(e.content)})},wt=function(e){let t=b?b(e):null;return typeof t!=`string`||lt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},Tt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===Kb.documentFragment}catch{return!1}},Et=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function Dt(e,n,r){ab(e,e=>{e.call(t,n,r,ut)})}let Ot=function(e){let n=null;if(Dt(ue.beforeSanitizeElements,e,null),wt(e))return gt(e),!0;let r=lt(b?b(e):e.nodeName);if(Dt(ue.uponSanitizeElement,e,{tagName:r,allowedTags:ye}),Me&&e.hasChildNodes()&&!Et(e.firstElementChild)&&Cb(/<[/\w!]/g,e.innerHTML)&&Cb(/<[/\w!]/g,e.textContent)||Me&&e.namespaceURI===$e&&r===`style`&&Et(e.firstElementChild)||e.nodeType===Kb.progressingInstruction||Me&&e.nodeType===Kb.comment&&Cb(/<[/\w]/g,e.data))return gt(e),!0;if(we[r]||!(Ee.tagCheck instanceof Function&&Ee.tagCheck(r))&&!ye[r]){if(!we[r]&&jt(r)&&(Ce.tagNameCheck instanceof RegExp&&Cb(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r)))return!1;if(He&&!Ge[r]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Ue?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return gt(e),!0}return(y?y(e):e.nodeType)===Kb.element&&!D(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Cb(/<\/no(script|embed|frames)/i,e.innerHTML)?(gt(e),!0):(je&&e.nodeType===Kb.text&&(n=e.textContent,ab([de,E,fe],e=>{n=mb(n,e,` `)}),e.textContent!==n&&(cb(t.removed,{element:e.cloneNode()}),e.textContent=n)),Dt(ue.afterSanitizeElements,e,null),!1)},kt=function(e,t,r){if(Te[t]||ze&&(t===`id`||t===`name`)&&(r in n||r in dt))return!1;let i=xe[t]||Ee.attributeCheck instanceof Function&&Ee.attributeCheck(t,e);if(!(Oe&&!Te[t]&&Cb(pe,t))&&!(De&&Cb(me,t))){if(!i||Te[t]){if(!(jt(e)&&(Ce.tagNameCheck instanceof RegExp&&Cb(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&Cb(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t,e))||t===`is`&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&Cb(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))))return!1}else if(!Ye[t]&&!Cb(ve,mb(r,ge,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&hb(r,`data:`)===0&&qe[e])&&!(ke&&!Cb(he,mb(r,ge,``)))&&r)return!1}return!0},At=Wy({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),jt=function(e){return!At[db(e)]&&Cb(_e,e)},Mt=function(e){Dt(ue.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||wt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=lt(o),d=c,f=o===`value`?d:gb(d);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,Dt(ue.uponSanitizeAttribute,e,r),f=r.attrValue,Be&&(l===`id`||l===`name`)&&hb(f,Ve)!==0&&(vt(o,e),f=Ve+f),Me&&Cb(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){vt(o,e);continue}if(l===`attributename`&&pb(f,`href`)){vt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){vt(o,e);continue}if(!Ae&&Cb(/\/>/i,f)){vt(o,e);continue}je&&ab([de,E,fe],e=>{f=mb(f,e,` `)});let p=lt(e.nodeName);if(!kt(p,l,f)){vt(o,e);continue}if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!s)switch(u.getAttributeType(p,l)){case`TrustedHTML`:f=te(f);break;case`TrustedScriptURL`:f=ne(f);break}if(f!==d)try{s?e.setAttributeNS(s,o,f):e.setAttribute(o,f),wt(e)?gt(e):sb(t.removed)}catch{vt(o,e)}}Dt(ue.afterSanitizeAttributes,e,null)},Nt=function(e){let t=null,n=St(e);for(Dt(ue.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Dt(ue.uponSanitizeShadowNode,t,null),Ot(t),Mt(t),Tt(t.content)&&Nt(t.content),(y?y(t):t.nodeType)===Kb.element){let e=_?_(t):t.shadowRoot;Tt(e)&&(Pt(e),Nt(e))}Dt(ue.afterSanitizeShadowDOM,e,null)},Pt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Nt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===Kb.element,i=h?h(n):n.childNodes;if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&<(e)===`template`){let e=n.content;Tt(e)&&t.push({node:e,shadow:null})}}if(r){let e=_?_(n):n.shadowRoot;Tt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(tt=!e,tt&&(e=`<!-->`),typeof e!=`string`&&!Et(e)&&(e=Fne(e),typeof e!=`string`))throw wb(`dirty is not a string, aborting`);if(!t.isSupported)return e;Pe||pt(n),t.removed=[];let c=Ue&&typeof e!=`string`&&Et(e);if(c){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=lt(t);if(!ye[e]||we[e])throw wb(`root node is forbidden and cannot be sanitized in-place`)}if(wt(e))throw wb(`root node is clobbered and cannot be sanitized in-place`);try{Pt(e)}catch(t){throw _t(e),t}}else if(Et(e))i=xt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Kb.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Pt(a);else{if(!Ie&&!je&&!Ne&&e.indexOf(`<`)===-1)return x&&Re?te(e):e;if(i=xt(e),!i)return Ie?null:Re?S:``}i&&Fe&>(i.firstChild);let l=St(c?e:i);try{for(;o=l.nextNode();)Ot(o),Mt(o),Tt(o.content)&&Nt(o.content)}catch(t){throw c&&_t(e),t}if(c)return ab(t.removed,e=>{e.element&&bt(e.element)}),je&&Ct(e),e;if(Ie){if(je&&Ct(i),Le)for(s=se.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(xe.shadowroot||xe.shadowrootmode)&&(s=le.call(r,s,!0)),s}let u=Ne?i.outerHTML:i.innerHTML;return Ne&&ye[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Cb(Wb,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
155
|
+
`+u),je&&ab([de,E,fe],e=>{u=mb(u,e,` `)}),x&&Re?te(u):u},t.setConfig=function(){pt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Pe=!0},t.clearConfig=function(){ut=null,Pe=!1,x=C,S=``},t.isValidAttribute=function(e,t,n){return ut||pt({}),kt(lt(e),lt(t),n)},t.addHook=function(e,t){typeof t==`function`&&cb(ue[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=ob(ue[e],t);return n===-1?void 0:lb(ue[e],n,1)[0]}return sb(ue[e])},t.removeHooks=function(e){ue[e]=[]},t.removeAllHooks=function(){ue=Yb()},t}var Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab,ob,sb,cb,lb,ub,db,fb,pb,mb,hb,gb,_b,vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Lne=o((()=>{Jy=Object.entries,Yy=Object.setPrototypeOf,Xy=Object.isFrozen,Zy=Object.getPrototypeOf,Qy=Object.getOwnPropertyDescriptor,$y=Object.freeze,eb=Object.seal,tb=Object.create,nb=typeof Reflect<`u`&&Reflect,rb=nb.apply,ib=nb.construct,$y||=function(e){return e},eb||=function(e){return e},rb||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ib||=function(e){return new e(...[...arguments].slice(1))},ab=Uy(Array.prototype.forEach),ob=Uy(Array.prototype.lastIndexOf),sb=Uy(Array.prototype.pop),cb=Uy(Array.prototype.push),lb=Uy(Array.prototype.splice),ub=Array.isArray,db=Uy(String.prototype.toLowerCase),fb=Uy(String.prototype.toString),pb=Uy(String.prototype.match),mb=Uy(String.prototype.replace),hb=Uy(String.prototype.indexOf),gb=Uy(String.prototype.trim),_b=Uy(Number.prototype.toString),vb=Uy(Boolean.prototype.toString),yb=typeof BigInt>`u`?null:Uy(BigInt.prototype.toString),bb=typeof Symbol>`u`?null:Uy(Symbol.prototype.toString),xb=Uy(Object.prototype.hasOwnProperty),Sb=Uy(Object.prototype.toString),Cb=Uy(RegExp.prototype.test),wb=Nne(TypeError),Tb=$y(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Eb=$y(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Db=$y([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Ob=$y([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),kb=$y(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Ab=$y([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),jb=$y([`#text`]),Mb=$y(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),Nb=$y(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Pb=$y(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Fb=$y([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ib=eb(/{{[\w\W]*|^[\w\W]*}}/g),Lb=eb(/<%[\w\W]*|^[\w\W]*%>/g),Rb=eb(/\${[\w\W]*/g),zb=eb(/^data-[\-\w.\u00B7-\uFFFF]+$/),Bb=eb(/^aria-[\-\w]+$/),Vb=eb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hb=eb(/^(?:\w+script|data):/i),Ub=eb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wb=eb(/^html$/i),Gb=eb(/^[a-z][.\w]*(-[.\w]+)+$/i),Kb={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qb=function(){return typeof window>`u`?null:window},Jb=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Yb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Xb=qy()})),Zb,Qb=o((()=>{Lne(),Zb=Xb.sanitize.bind(Xb),Xb.isSupported,Xb.addHook.bind(Xb),Xb.removeHook.bind(Xb),Xb.removeHooks.bind(Xb),Xb.removeAllHooks.bind(Xb),Xb.setConfig.bind(Xb),Xb.clearConfig.bind(Xb),Xb.isValidAttribute.bind(Xb),Xb.version,Xb.removed}));function $b(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function ex(e){ux=e}function tx(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function nx(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(px.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function rx(e,t){if(t){if(px.escapeTest.test(e))return e.replace(px.escapeReplace,bS)}else if(px.escapeTestNoEncode.test(e))return e.replace(px.escapeReplaceNoEncode,bS);return e}function ix(e){try{e=encodeURI(e).replace(px.percentDecode,`%`)}catch{return null}return e}function ax(e,t){let n=e.replace(px.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(px.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(px.slashPipe,`|`);return n}function ox(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function sx(e){let t=e.split(`
|
|
156
156
|
`),n=t.length-1;for(;n>=0&&px.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
157
157
|
`)}function Rne(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function zne(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function cx(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Bne(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
158
158
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
@@ -641,7 +641,7 @@ f(),yp(),AT(),Ty(),gw(),IC(),UC(),JC(),Ly(),jT=e=>JSON.parse(e),MT=e=>d(Yre(e)),
|
|
|
641
641
|
`,Hk=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=Dk,r=n?20:100,i=[...e],a=[];for(;;){let e=await DD(t,{paths:i.splice(0,r)});if(a.push(...e.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},Uk=async({fetchingFiles:e,blobs:t,sizes:n={},commits:r={}})=>{let i=e.map(({path:e,sha:i})=>{let a=r[e],o={sha:i,size:Number(n[e]?.size??0),text:t[e]?.rawTextBlob??void 0,meta:{}};if(a){let{author:e,authorName:t,authorEmail:n,committedDate:r}=a,{id:i,username:s}=e??{},c=i?.match(/\d+/);o.meta={commitAuthor:{name:t,email:n,id:c?Number(c[0]):void 0,login:s},committedDate:new Date(r)}}return[e,o]});return Object.fromEntries(i)},Wk=async e=>{SC.set(0);let t=window.setInterval(()=>{SC.update((e=0)=>e+1)},e.length/10),n=await Hk(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),Vk);return window.clearInterval(t),SC.set(void 0),Uk({fetchingFiles:e,blobs:n})},Gk=async()=>{await kk(),await vO({repository:Dk,fetchDefaultBranchName:jk,fetchLastCommit:Pk,fetchFileList:Bk,fetchFileContents:Wk})},Kk=async e=>{let{owner:t,repo:n,branch:r=``}=Dk,{path:i}=e;return ED(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),qk,Jk,Yk,wie=o((()=>{xD(),qk=`https://status.gitlab.com/`,Jk=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,Yk=async()=>{try{let{result:{status_overall:{status_code:e}}}=await bD(Jk);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),Xk,Zk,Qk,Tie=o((()=>{yp(),Pp(),Sie(),Rk(),Sk(),Cie(),Mk(),wie(),OD(),YD(),dF(),AO(),Xk=/(?<owner>.+)\/(?<repo>[^/]+)$/,Zk=()=>{let{backend:e}=A(oF)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=bk,auth_endpoint:i=xk,app_id:a=``,api_root:o=yk,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(Xk)?.groups??{},d=`${l}/${u}`,f=`${hp(r)}/${hp(i)}`,p=JD(o,d);return Object.assign(Dk,{service:_k,label:vk,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:wk(p),databaseName:`${_k}:${d}`,isSelfHosted:o!==yk},Ok(p,n)),Object.assign(CD,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:hp(o),graphqlBaseURL:hp(s),includeCredentials:c}),Object.assign(wD,{fullPath:d,branch:n}),kO.devModeEnabled&&console.info(`repositoryInfo`,Dk),Dk},Qk={isGit:!0,name:_k,label:vk,repository:Dk,statusDashboardURL:qk,checkStatus:Yk,init:Zk,signIn:Tk,signOut:Ek,fetchFiles:Gk,fetchBlob:Kk,commitChanges:Fk,fetchFileCommits:Lk}})),$k,eA,tA,nA,rA,iA,aA,oA=o((()=>{Pp(),sie(),cie(),pie(),bie(),Tie(),$k={github:gk,gitlab:Qk,gitea:MO,local:$E,"test-repo":lD},eA={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},tA=Object.keys($k).filter(e=>e!==`local`),nA=Object.fromEntries(Object.entries($k).filter(([,e])=>e.isGit)),rA=ln(),iA=un([rA],([e],t,n)=>{n(t=>{let n=e?$k[e]:void 0;return n&&n!==t&&n.init(),n})}),aA=ln(!0)})),sA,cA,lA,uA,dA,fA,pA,mA,hA,gA=o((()=>{Pp(),dF(),sA=`https://console.cloudinary.com/console/media_library`,cA=new URL(sA).origin,lA=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],uA=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],dA=e=>{let t=A(oF);if(e??=t,e?.media_libraries&&`cloudinary`in e.media_libraries)return e.media_libraries.cloudinary;if(!e?.media_library)return;let n=e.media_library.name===`cloudinary`,r=!e.media_library.name&&t?.media_library?.name===`cloudinary`;if(n||r)return e.media_library},fA=new Map,pA=e=>{let t=e?JSON.stringify(e):`global`,n=fA.get(t);if(n)return n;let r=dA()||{config:{}},i=dA(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return fA.set(t,a),a},mA=e=>{let t=dA(e)??dA(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},hA={serviceType:`cloud_storage`,serviceId:`cloudinary`,serviceLabel:`Cloudinary`,serviceURL:`https://cloudinary.com/`,showServiceLink:!0,hotlinking:!0,authType:`widget`,developerURL:`https://cloudinary.com/documentation/`,apiKeyURL:`https://console.cloudinary.com/settings/api-keys`,apiKeyPattern:/^[A-Za-z0-9_-]{15,}$/,isEnabled:mA}})),_A,vA,yA,bA,xA,SA,CA,wA,TA,EA,DA,OA=o((()=>{Tw(),Pp(),Qw(),dF(),_A=(e,t=A(oF))=>t?.media_libraries?.[e]??(t?.media_library?.name===e?t?.media_library:void 0),vA=async(e,t)=>{let n=new TextEncoder,r=await crypto.subtle.importKey(`raw`,typeof e==`string`?n.encode(e):e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n.encode(t));return new Uint8Array(i)},yA=async e=>{let t=typeof e==`string`?new TextEncoder().encode(e):e,n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},bA=async({method:e,url:t,headers:n,payloadHash:r,accessKeyId:i,secretAccessKey:a,region:o,service:s,date:c})=>{let l=new URL(t),u=c.toISOString().replace(/[:-]|\.\d{3}/g,``),d=u.slice(0,8),f=l.pathname,p=[...l.searchParams.entries()].sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`),m=Object.entries(n).map(([e,t])=>`${e.toLowerCase()}:${t.trim()}`).sort().join(`
|
|
642
642
|
`),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
|
|
643
643
|
`),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await yA(g)].join(`
|
|
644
|
-
`),b=await vA(await vA(await vA(await vA(await vA(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},xA=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await yA(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await bA({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},SA=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},CA=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,wA=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=CA({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:Zw(t)}})},TA=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await xA({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=SA(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await ww(50)}return wA(c?u.filter(e=>Zw(e.Key)===c):u,e)},EA=async(e,t,n)=>{let r=await TA(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},DA=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await xA({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await ww(50)}return wA(l,t)}})),kA,AA,jA,MA,NA,PA,FA,Eie=o((()=>{OA(),kA=e=>_A(`aws_s3`,e),AA=e=>{let t=kA(e)??kA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},jA=({fieldConfig:e})=>{let t=kA(e)??kA();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},MA=async e=>TA(jA(e),e),NA=async(e,t)=>EA(e,jA(t),t),PA=async(e,t)=>DA(e,jA(t),t),FA={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:AA,list:MA,search:NA,upload:PA}})),IA,LA,RA,zA,BA,VA,HA,UA,WA,Die=o((()=>{OA(),IA={default:``,eu:`eu.`,fedramp:`fedramp.`},LA=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${IA[t]??``}r2.cloudflarestorage.com`,RA=e=>_A(`cloudflare_r2`,e),zA=e=>{let t=RA(e)??RA();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},BA=({fieldConfig:e})=>{let t=RA(e)??RA();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:LA(t)}},VA=async e=>TA(BA(e),e),HA=async(e,t)=>EA(e,BA(t),t),UA=async(e,t)=>DA(e,BA(t),t),WA={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:zA,list:VA,search:HA,upload:UA}})),GA,KA,qA,JA,YA,XA,ZA,Oie=o((()=>{OA(),GA=e=>_A(`digitalocean_spaces`,e),KA=e=>{let t=GA(e)??GA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},qA=({fieldConfig:e})=>{let t=GA(e)??GA();if(!t)throw Error(`DigitalOcean Spaces configuration is not available`);return{...t,endpoint:`https://${t.region}.digitaloceanspaces.com`,public_url:t.public_url??`https://${t.bucket}.${t.region}.digitaloceanspaces.com`}},JA=async e=>TA(qA(e),e),YA=async(e,t)=>EA(e,qA(t),t),XA=async(e,t)=>DA(e,qA(t),t),ZA={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:KA,list:JA,search:YA,upload:XA}})),QA,$A,ej,tj,nj,rj,ij,kie=o((()=>{OA(),QA=e=>_A(`scaleway_object_storage`,e),$A=e=>{let t=QA(e)??QA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},ej=({fieldConfig:e})=>{let t=QA(e)??QA();if(!t)throw Error(`Scaleway Object Storage configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.scw.cloud`,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.scw.cloud`}},tj=async e=>TA(ej(e),e),nj=async(e,t)=>EA(e,ej(t),t),rj=async(e,t)=>DA(e,ej(t),t),ij={serviceType:`cloud_storage`,serviceId:`scaleway_object_storage`,serviceLabel:`Scaleway Object Storage`,serviceURL:`https://www.scaleway.com/en/object-storage/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.scaleway.com/en/docs/object-storage/`,apiKeyURL:`https://console.scaleway.com/iam/api-keys`,apiKeyPattern:/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,isEnabled:$A,list:tj,search:nj,upload:rj}})),aj,oj,sj,cj,lj,uj,dj,fj,pj,Aie=o((()=>{OA(),aj=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,oj=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,sj=e=>_A(`supabase_storage`,e),cj=e=>{let t=sj(e)??sj();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},lj=({fieldConfig:e})=>{let t=sj(e)??sj();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:aj(t),public_url:t.public_url??oj(t)}},uj=async e=>TA(lj(e),e),dj=async(e,t)=>EA(e,lj(t),t),fj=async(e,t)=>DA(e,lj(t),t),pj={serviceType:`cloud_storage`,serviceId:`supabase_storage`,serviceLabel:`Supabase Storage`,serviceURL:`https://supabase.com/storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://supabase.com/docs/guides/storage`,apiKeyURL:`https://supabase.com/dashboard/project/_/storage/settings`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:cj,list:uj,search:dj,upload:fj}})),mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,jie=o((()=>{Tw(),Pp(),dF(),_E(),mj=(e=A(oF))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),hj=e=>{let t=mj(e)??mj();return t?t.config?.publicKey:void 0},gj=e=>!!hj(e),_j=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(mj(t)??mj())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},vj=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=hj(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await ww(50)}return _j(l,{fieldConfig:i})},yj=async e=>vj(e),bj=async(e,t)=>{let n=e.toLowerCase();return vj(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},xj=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},Sj=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=hj(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await xj(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(fE(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return _j(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})},Cj={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:gj,list:yj,search:bj,upload:Sj}})),wj,Tj,Ej=o((()=>{gA(),Eie(),Die(),Oie(),kie(),Aie(),jie(),wj={aws_s3:FA,cloudflare_r2:WA,cloudinary:hA,digitalocean_spaces:ZA,scaleway_object_storage:ij,supabase_storage:pj,uploadcare:Cj},Tj=Object.keys(wj)})),Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Mie=o((()=>{Dj=`@sveltia/cms`,Oj=`0.166.2`,kj=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,Aj=[`svelte`,`cms`,`content-management-system`],jj=`https://sveltiacms.app/en/`,Mj={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},Nj={type:`github`,url:`https://github.com/sponsors/kyoshino`},Pj={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Fj=`module`,Ij={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},Lj={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.45.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.1`,"@sveltia/ui":`^0.40.5`,"@sveltia/utils":`^0.10.7`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.6`,"isomorphic-dompurify":`^3.16.0`,leaflet:`^1.9.4`,lexical:`^0.45.0`,marked:`^18.0.5`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.0.227`,qrcode:`^1.5.4`,react:`^19.2.7`,"react-dom":`^19.2.7`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,svgo:`^4.0.1`,"terra-draw":`^1.31.1`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Rj={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.9.2`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.17`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.8`,cspell:`^10.0.1`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^63.0.2`,"eslint-plugin-package-json":`^1.3.0`,"eslint-plugin-svelte":`^3.19.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.6.0`,oxlint:`^1.69.0`,"postcss-html":`^1.8.1`,prettier:`^3.8.4`,"prettier-plugin-svelte":`^4.1.0`,stylelint:`^17.13.0`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.3`,"svelte-check":`^4.6.0`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.0.16`,vitest:`^4.1.8`},zj={directory:`package`,access:`public`,provenance:!0},Bj={name:Dj,version:Oj,description:kj,keywords:Aj,homepage:jj,repository:Mj,funding:Nj,license:`MIT`,author:Pj,type:Fj,scripts:Ij,dependencies:Lj,devDependencies:Rj,publishConfig:zj}})),Vj,Hj,Uj=o((()=>{Mie(),{dependencies:Vj,version:Hj}=Bj})),Wj,Gj,Kj,qj,Jj=o((()=>{Wj=`modulepreload`,Gj=function(e){return`/`+e},Kj={},qj=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Gj(t,n),t in Kj)return;Kj[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Wj,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Yj,Xj,Zj=o((()=>{Uj(),Jj(),Yj=e=>{let t=`https://unpkg.com/${e}`,n=Vj[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Xj=async(e,t)=>qj(()=>import(`${Yj(e)}/${t}`),[])})),Qj,$j,eM,tM,nM,rM,iM,aM,oM=o((()=>{Qj=[`avif`,`gif`,`jpeg`,`png`,`webp`],$j=Qj.map(e=>`image/${e}`),eM=/\b(?:avif|gif|jpe?g|png|webp)$/i,tM=[`svg`],nM=[`image/svg+xml`],rM=/\b(?:svg)$/i,[...Qj,...tM],iM=[...$j,...nM],aM=[`webp`]})),sM,cM,lM,uM=o((()=>{Zj(),oM(),sM={},cM=async e=>{if(e in sM)return sM[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return sM[e]=r,r},lM=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await cM(t)&&aM.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Xj(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})),dM,fM,pM=o((()=>{dM=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},fM=(e,t,n)=>{let{scale:r,width:i,height:a}=dM(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),mM,hM,gM,_M,vM,yM=o((()=>{Zj(),uM(),pM(),mM=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise(e=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.src=t})},hM=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise(e=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=t,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n)})},gM=async e=>e.type.startsWith(`video/`)?hM({blob:e}):mM({blob:e}),_M=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await gM(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return fM(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),lM(l,{format:t,quality:n})},vM=async e=>{let t=await e.text();try{let{optimize:n}=await Xj(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),bM,xM,SM,CM,wM,TM,Nie=o((()=>{Zj(),uM(),pM(),Jj(),bM=Yj(`pdfjs-dist`),xM=`${bM}/build/pdf.min.mjs`,SM=`${bM}/build/pdf.worker.min.mjs`,CM={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${bM}/cmaps/`,iccUrl:`${bM}/iccs/`,standardFontDataUrl:`${bM}/standard_fonts/`,wasmUrl:`${bM}/wasm/`},TM=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!wM)try{wM=await qj(()=>import(xM),[]),wM.GlobalWorkerOptions.workerSrc=SM}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await wM.getDocument({...CM,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=fM(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return lM(s,{format:t,quality:n})}})),EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM=o((()=>{Mp(),Tw(),kw(),yp(),Rw(),Pp(),PF(),Yp(),oA(),dF(),Ej(),gA(),_E(),yM(),Nie(),EM=/{{(?<tag>.+?)}}/,DM=/{{(.+?)}}/g,OM=/^(?:https?|data|blob):/,kM=new Set,AM=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(kM.has(o)&&t<=25)return await ww(200),AM(e,t+1);kM.add(o);let n=await A(iA)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:Lw.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),kM.delete(o),s},jM=async e=>(e.blobURL||await AM(e),e.blobURL),MM=void 0,NM=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(MM===void 0){let{databaseName:e}=A(iA)?.repository??{};MM=e?new Ew(e,`asset-thumbnails`):null}let r=await MM?.get(e.sha);if(!r){if(t)return;let i=await AM(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await TM(i,a):await _M(i,a),await MM?.set(e.sha,r)}return URL.createObjectURL(r)},PM=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:qp(e.path).find(({collectionName:e})=>e!==void 0)??A(Hp);if(a){if(t){let t=wp(e.path).dirname,n=r?wp(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===pE([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(oF),l=o?e.path.replace(oE(e.folder.internalPath??``,e=>{let t=e.match(EM)?.groups?.tag;return t?`(?<${t}>[^/]+)`:pp(e)}),i?.replaceAll(DM,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=sE(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},FM=e=>{if(wj.cloudinary?.isEnabled?.()){let t=pA(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},IM=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(OM.test(e))return e;if(kF(e)){let t=FM(i);if(t)return`${t}/${e}`}let s=AF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await NM(s):await jM(s))??PM(s)}})),RM,zM,BM,VM,HM,UM,WM,GM,KM,qM=o((()=>{Dy(),RM=l(HS(),1),zM=l(US(),1),BM=l(WS(),1),VM=l(GS(),1),Pp(),oA(),IP(),dF(),OC(),gw(),yw(),pC(),RM.default.extend(zM.default),RM.default.extend(BM.default),RM.default.extend(VM.default),HM=/{{(?:year|month|day|hour|minute|second)}}/,UM=e=>DC(Object.values(e.locales)[0].path).map(({collectionName:e})=>pw(e)).filter(e=>!!e),WM=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,{picker_utc:o=!1}=a,s=cC(i,a);if(oC(s))return Ey({date:s,timeZone:o?`UTC`:void 0})},GM=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=A(oF)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=vw(n,e),h=(m?_w(n):void 0)?.fields??d,g;if(HM.test(l)&&(g=WM({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=FP(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},KM=(e,t)=>`${A(iA)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})),JM,YM,XM=o((()=>{JM=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,YM=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(JM)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})),ZM,QM,$M,eN,tN,nN,rN,iN=o((()=>{Pp(),LM(),dF(),OC(),gw(),yw(),IC(),qM(),DP(),XM(),ZM=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,QM=ln([]),$M=un(QM,e=>new Set(e.map(e=>e.id))),eN=e=>{let t=pw(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=YM(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>UM(t).some(({name:t})=>t===e)}else{let t=new Set(A(CC).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return A(wC).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=EP({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},tN=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=bP({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if([`image`,`file`].includes(p)){let n=d?await IM({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(ZM)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await IM({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},nN=async(e,{entries:t=A(wC),newURL:n=``}={})=>{let r=A(oF)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=UM(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:vw(a,e)},u=NC(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>tN({...r,collectionFile:e})))).includes(!0):await tN({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},rN=e=>{let t=_w(e);return t?!eN(e.name).some(({slug:e})=>e===t.name):!1}})),aN,oN,sN,cN,lN,Pie=o((()=>{aN=new WeakMap,oN=e=>{let t=aN.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),aN.set(e,n),n},sN=new WeakMap,cN=0,lN=e=>(sN.has(e)||(sN.set(e,cN),cN+=1),sN.get(e))})),uN,dN,fN=o((()=>{IP(),uN=e=>PP(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,dN=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})),pN,mN,hN,gN,_N=o((()=>{Vw(),Bp(),MP(),fN(),pN=(e,t,n)=>{let{slug:r,locale:i,getDisplayValue:a}=t,{content:o,locales:s,defaultLocale:c,identifierField:l}=n;if(e===`slug`)return r;if(e===`locale`)return i;let u=e.replace(/^fields\./,``);return a(u)||a(u,c)||AP(o,{identifierField:l})||AP(s[c]?.content||{},{identifierField:l})||r},mN=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=pN(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},hN=e=>[...e.matchAll(Ip)].map(e=>e[1]),gN=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=uN(n??`{{slug}}`),o=r.map(uN).join(` `),s=i.map(uN).join(` `),c=Bw([...hN(o),...hN(a),...hN(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})),vN,yN,bN,xN,SN,CN,wN,TN,EN,Fie=o((()=>{yp(),DP(),fN(),_N(),Ly(),vN=/\.(\d+)$/,yN=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=bP({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:dN(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},bN=new Map,xN=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=Iy(bN,e,()=>RegExp(`^${pp(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(vN);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index).map(({value:e})=>{let n={label:s,value:c,searchValue:l};t.forEach(([t])=>{n.label=n.label.replaceAll(`{{${t}}}`,e),n.value=n.value.replaceAll(`{{${t}}}`,e),n.searchValue=n.searchValue.replaceAll(`{{${t}}}`,e)});let{label:r,value:u,searchValue:d}=mN(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},SN=/^(.+)\.\*\.(.+)$/,CN=new Map,wN=e=>{let t=null;return e.some(([e])=>(t=e.match(SN),!!t)),t},TN=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=wN(e)??[];if(!o)return[];let c=Iy(CN,`${o}:${s}`,()=>{let e=pp(o),t=pp(s);return RegExp(`^${e}.([0-9]+).${t}$`)}),l=Object.entries(t).filter(([e])=>c.test(e)).map(([e,t])=>{let n=e.match(c);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index),{_displayField:u,_valueField:d,_searchField:f}=n;return l.map(({index:n})=>{let o={label:u,value:d,searchValue:f};e.forEach(([e])=>{let r=e.match(SN);if(r){let[,i,a]=r,s=t[`${i}.${n}.${a}`]||``;o.label=o.label.replaceAll(`{{${e}}}`,s),o.value=o.value.replaceAll(`{{${e}}}`,s),o.searchValue=o.searchValue.replaceAll(`{{${e}}}`,s)}});let{label:s,value:c,searchValue:l}=mN(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},EN=({baseFieldGroups:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let o=[],s=!1;return e.forEach((e,c)=>{if(e.length===0)return;let[,l]=e[0],u={groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a},d=l.isComplexListField?TN({...u}):xN({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})),DN,Iie=o((()=>{MP(),_N(),DN=({templates:e,allFieldNames:t,context:n,fallbackContext:r})=>{let{slug:i}=n,{_displayField:a,_valueField:o,_searchField:s}=e,{content:c,locales:l,defaultLocale:u,identifierField:d}=r,f=Object.fromEntries(t.map(e=>[e,pN(e,n,r)])),p=a,m=o,h=s;return Object.entries(f).forEach(([e,t])=>{p=p.replaceAll(`{{${e}}}`,t),m=m.replaceAll(`{{${e}}}`,t),h=h.replaceAll(`{{${e}}}`,t)}),(!p||p.trim()===``)&&(p=AP(c,{identifierField:d})||AP(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})),ON,Lie=o((()=>{yw(),DP(),Fie(),Iie(),_N(),ON=({refEntry:e,content:t,collection:n,templates:r,allFieldNames:i,hasListFields:a,collectionName:o,fileName:s,locale:c,identifierField:l,defaultLocale:u})=>{let{slug:d,locales:f}=e,p={collectionName:o,fileName:s,isIndexFile:vw(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>wP({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[DN({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let{results:g,hasProcessedListFields:_}=EN({baseFieldGroups:yN(i,p),content:t,templates:r,allFieldNames:i,context:m,fallbackContext:h});if(_)return g;let{_displayField:v,_valueField:y,_searchField:b}=r,{label:x,value:S,searchValue:C}=mN({label:v,value:y,searchValue:b},i.filter(e=>!e.includes(`*`)),m,h);return[{label:x||``,value:S||d,searchValue:C||x||``}]}})),kN,AN,jN,Rie=o((()=>{kN=/^{{fields\.(.+?)}}$/,AN=(e,t,n=void 0)=>e.map(({field:e,values:r,exclude:i})=>({field:e,exclude:i,values:r.flatMap(e=>{if(typeof e!=`string`)return[e];if(e===`{{slug}}`)return n?[n]:[];let r=e.match(kN);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),jN=(e,t,n=void 0,r=[])=>e.filter(e=>!n||n===e.slug).map(e=>{let{content:n}=e.locales[t]??e.locales._default??{};return{refEntry:e,hasContent:!!n&&Object.keys(n).length>0,content:n??{}}}).filter(({hasContent:e,content:t,refEntry:n})=>e&&r.every(({field:e,values:r,exclude:i=!1})=>{if(r.length===0)return!0;let a=e===`slug`,o=e.replace(/^fields\./,``),s=a?n.slug:t[o];return i?!r.includes(s):r.includes(s)}))})),MN,NN,PN,FN=o((()=>{yp(),gw(),iN(),Pie(),Lie(),Rie(),_N(),MN=new Map,NN=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=AN(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${lN(t)}|${lN(n)}`}|${l}`,d=MN.get(u);if(d)return d;let f=pw(a);if(!f)return MN.set(u,[]),[];let{_type:p,_i18n:{defaultLocale:m}}=f,{identifier_field:h=`title`}=p===`entry`?f:{},g=gN(t,h),{allFieldNames:_,hasListFields:v}=g,y=jN(n,e,o,c).flatMap(({refEntry:t,content:n})=>ON({refEntry:t,content:n,collection:f,templates:g,allFieldNames:_,hasListFields:v,collectionName:a,fileName:o,locale:e,identifierField:h,defaultLocale:m})).sort((e,t)=>vp(e.label,t.label));return MN.set(u,y),y},PN=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=oN(NN({locale:r,fieldConfig:e,refEntries:eN(a)})),s=e=>o.get(e)||e;return i?Object.entries(t).filter(([e])=>e.match(`^${pp(n)}\\.\\d+$`)).map(([,e])=>e).map(s):s(t[n])}})),IN,LN,RN,zN=o((()=>{uc(),IN=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),LN=e=>lc(Object.fromEntries(Object.entries(cc(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),RN=e=>e.replace(/"/g,`'`)})),BN,VN,HN,UN,WN=o((()=>{BN=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,VN=new RegExp(BN,`g`),HN=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,UN=RegExp(`${BN.source}|${HN.source}`)})),GN,KN,qN,JN=o((()=>{Qb(),GN=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),KN={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},qN=(e,t)=>Zb(e.replace(`<a>`,`<a href="${GN(t)}" target="_blank" rel="noopener noreferrer">`),KN)})),YN,XN,ZN,QN,$N=o((()=>{X(),zN(),WN(),JN(),YN=new Map,XN={id:`image`,label:`Image`,fields:[{name:`src`,label:`Source`,widget:`image`},{name:`alt`,label:`Alt Text`,required:!1},{name:`title`,label:`Title`,required:!1}],pattern:BN,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${GN(t)}" alt="${GN(n)}" title="${GN(r)}">`}},ZN={id:`linked-image`,label:`Image`,fields:[...XN.fields,{name:`link`,label:`Link`,required:!1}],pattern:UN,fromBlock:e=>{let{src:t,alt:n,title:r,src2:i,alt2:a,title2:o,link:s}=e.groups??{};return{src:(t||i||``).trim(),alt:(n||a||``).trim(),title:(r||o||``).trim(),link:(s||``).trim()}},toBlock:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=t?`}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${GN(t)}" alt="${GN(n)}" title="${GN(r)}">`;return i?`<a href="${GN(i)}">${a}</a>`:a}},QN=e=>{if(YN.has(e))return YN.get(e);let t={icon:`image`,label:Y(`editor_components.image`),fields:[{name:`src`,label:Y(`editor_components.src`),widget:`image`},{name:`alt`,label:Y(`editor_components.alt`),required:!1},{name:`title`,label:Y(`editor_components.title`),required:!1}]};return{image:{...XN,...t},"linked-image":{...ZN,...t,fields:[...t.fields,{name:`link`,label:Y(`editor_components.link`),required:!1}]}}[e]}})),eP,tP,nP,rP=o((()=>{eP=/^\d+$/,tP=e=>eP.test(e),nP=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),iP,aP,oP,sP,zie=o((()=>{Vw(),rP(),iP=new Map,aP=new WeakMap,oP=e=>{let t=aP.get(e);return t===void 0&&(t=JSON.stringify(e),aP.set(e,t)),t},sP=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=zw(i),o;if(r){let e=`${n}.`;o=Object.entries(t).filter(([t])=>t.startsWith(e)&&tP(t.slice(e.length))).map(([,e])=>e)}let s=oP(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=iP.get(c);if(l)return l;let u=e=>i.find(t=>t.value===e)?.label||e;if(r){let e=a?o.map(u):o;return iP.set(c,e),e}let d=t[n],f=a?u(d):d;return iP.set(c,f),f}})),cP,lP,uP,dP=o((()=>{Pp(),dF(),cP=e=>{if(!e)return;let t=Object.values(e);if(t.some(e=>e.config?.multiple===!0))return!0;if(t.some(e=>e.config?.multiple===!1))return!1},lP=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},uP=e=>{let t=A(oF);return e.multiple??cP(e.media_libraries)??lP(e.media_library)??cP(t?.media_libraries)??lP(t?.media_library)??!1}})),fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP=o((()=>{yp(),bC(),gw(),yw(),IC(),Cw(),pC(),FN(),$N(),zie(),$S(),dP(),Ly(),rP(),fP=/^(.*?)<([^>]+)>(.*)$/,pP=/(?:^|\.)(\d+)(?:\.|$)/,mP=/\.\d+$/,hP=new Map,gP=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},_P=e=>{let t=e.widget??`string`;return bw.includes(t)?uP(e):xw.includes(t)?!!e.multiple:!1},vP=e=>{let t=e.match(fP);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},yP=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=vP(t),{widget:c=`text`}=e,l=s??i,u=tP(o),d=o===`*`;if((u||d)&&xw.includes(c))return{field:_P(e)?e:void 0,explicitType:l};let{field:f}=e,{fields:p}=e,{types:m,typeKey:h=`type`}=e;if(f){let e=u||d?n[r+1]:void 0;return{field:!e||f.name===e||f.widget===`object`&&`fields`in f&&f.fields?.some(t=>t.name===e)?f:void 0,explicitType:l}}if(p&&(u||d))return{field:e,explicitType:l};if(p&&!u&&o!==``)return{field:p.find(({name:e})=>e===o),explicitType:l};if(m&&(u||d)){let e=l??a[[n.slice(0,r).join(`.`),o,h].join(`.`)];return{field:m.find(({name:t})=>t===e),explicitType:d?void 0:l}}if(m&&t!==h&&o!==h&&o!==``){let e=l??a[[n.slice(0,r).join(`.`),h].join(`.`)];return{field:m.find(({name:t})=>t===e)?.fields?.find(({name:e})=>e===o),explicitType:void 0}}return{field:void 0,explicitType:l}},bP=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=pP.test(a)?JSON.stringify(e):`${t}|${n??``}|${r??``}|${a}|${o?`1`:`0`}`;if(hP.has(s))return hP.get(s);let c=pw(t),l=c&&n?jC(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){hP.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?_w(c):void 0,f=r?QN(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=vP(e);m=f.find(({name:e})=>e===t),!m&&d?.fields&&(m=u.find(({name:e})=>e===t)),n&&(h=n)}else if(m){let n=yP({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return hP.set(s,m),m},xP=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,SP=new Map,CP=new Map,wP=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=bP({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:o}),c=n[r];if(c===void 0&&a?.length)return``;if(s?.widget===`datetime`&&(a?.some(e=>hC.test(e))||(c=fC({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=PN({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=sP({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;if(!(e||t)){let e=Iy(SP,r,()=>RegExp(`^${pp(r)}${String.raw`\.\d+$`}`));c=ZS(i).format(Object.entries(n).filter(([t,n])=>e.test(t)&&typeof n==`string`&&!!n).map(([,e])=>e))}}if(s?.widget===`number`){let{value_type:e=`int`}=s;if(e===`int`||e===`float`){let e=KS(i),t=CP.get(e);t||(t=Intl.NumberFormat(e),CP.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=ZS(i).format(c)),a?.length&&(c=yC({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},TP=({valueMap:e,locale:t,keyPath:n,keyPathRegex:r,getFieldArgs:i})=>{let a=[`${n}.title`,`${n}.name`,...Object.keys(e)].find(t=>{let n=e[t];if(!r.test(t)||!(typeof n==`string`&&n.trim()||typeof n==`number`&&!Number.isNaN(n)))return!1;let a=bP({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?wP({...i,keyPath:a,locale:t}):``},EP=({entry:e,locale:t,collectionName:n,key:r,resolveRef:i=!0})=>{let{slug:a,locales:o,commitAuthor:{name:s,login:c,email:l}={},commitDate:u}=e;if(r===`slug`)return a;if(r===`commit_author`)return s||c||l;if(r===`commit_date`)return u;let{content:d}=o[t]??{};if(d===void 0)return;let f=pw(n);if(f){if(i){let i=bP({collectionName:n,keyPath:r,isIndexFile:vw(f,e)});if(i?.widget===`relation`)return PN({fieldConfig:i,valueMap:d,keyPath:r,locale:t})}return d[r]}}})),OP,kP,AP,Bie,Vie,jP,MP=o((()=>{Dy(),yp(),Qb(),MS(),Qne(),Bp(),bC(),yw(),DP(),OP=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,kP=(e,{allowMarkdown:t=!1}={})=>(e=AS(e),t&&(e=BS(e)),e=Zb(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=BS(e)),e.trim()),AP=(e,{identifierField:t=`title`,useBody:n=!0}={})=>{let r=[t,`title`,`name`,`label`].find(t=>typeof e[t]==`string`&&!!e[t].trim());return r?e[r].trim():n&&typeof e.body==`string`?e.body.match(OP)?.groups?.header??``:``},Bie=(e,t)=>{let{slug:n,entryPath:r,basePath:i,locales:a,commitDate:o,commitAuthor:s}=t;if(e===`slug`)return n;if(e===`locales`)return a.sort((e,t)=>e.localeCompare(t)).join(`, `);if(e===`dirname`){let e=r.replace(/[^/]+$/,``);if(i){let t=i.endsWith(`/`)?i:`${i}/`;e.startsWith(t)?e=e.slice(t.length):e.startsWith(i)&&(e=e.slice(i.length))}return hp(e)}if(e===`filename`)return r.split(`/`).pop().split(`.`).shift();if(e===`extension`)return r.split(`/`).pop().split(`.`).pop();if(e===`commit_date`)return o??``;if(e===`commit_author`)return s?.name||s?.login||s?.email},Vie=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a}=t,[o,...s]=e.split(vC),c=o.replace(/^fields\./,``),l={collectionName:r,valueMap:n,keyPath:c},u=Bie(o,i);if(u===void 0&&(u=s.some(e=>hC.test(e)||_C.test(e))?n[c]:wP({...l,locale:a})),u===void 0)return``;if(u instanceof Date&&!s.length){let{year:e,month:t,day:n}=Ey({date:u});return`${e}-${t}-${n}`}return s.length&&(u=yC({fieldConfig:bP({...l}),value:u,transformations:s,locale:a})),String(u)},jP=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(vw(e,t))return _w(e)?.label;let{_type:a,name:o,_i18n:{defaultLocale:s}}=e,{_file:{basePath:c}={},identifier_field:l=`title`,summary:u}=a===`entry`?e:{},{locales:d,slug:f,commitDate:p,commitAuthor:m}=t,{content:h={},path:g=``}=d[n??s]??Object.values(d)[0]??{};if(!r||!u)return kP(AP(h,{identifierField:l})||f.replaceAll(`-`,` `),{allowMarkdown:i});let _={content:h,collectionName:o,replaceSubContext:{slug:f,entryPath:g,basePath:c,locales:Object.keys(d),commitDate:p,commitAuthor:m},defaultLocale:s};return kP(u.replace(Ip,(e,t)=>Vie(t,_)),{allowMarkdown:i})}})),Hie,Uie,Wie,Gie,Kie,qie=o((()=>{fp(),Bp(),MP(),Hie=(e,t)=>Rp.includes(e)?t[e]:void 0,Uie=e=>{switch(e){case`uuid`:return lp();case`uuid_short`:return lp(`short`);case`uuid_shorter`:return lp(`shorter`);default:return}},Wie=(e,t,n,r)=>{if(!(e!==`slug`||!t))return n===`preview_path`&&r?``:t},Gie=(e,t,n)=>{if(!t)return``;switch(e){case`dirname`:{let e=t.replace(n??``,``),r=e.lastIndexOf(`/`);return r>0?e.substring(0,r):``}case`filename`:return t.split(`/`).pop().split(`.`).shift();case`extension`:return t.split(`/`).pop().split(`.`).pop();default:return}},Kie=(e,t,n)=>e.startsWith(`fields.`)?t[e.replace(/^fields\./,``)]:e===`slug`?AP(t,{identifierField:n}):t[e]})),Jie,Yie=o((()=>{Bp(),bC(),Jie=(e,t,n)=>{let r=!1;return e.forEach((i,a)=>{let{defaultValue:o}=i.match(gC)?.groups??{};if(o!==void 0){r=!0;let{innerTag:i}=o.match(zp)?.groups??{};i!==void 0&&(e[a]=`default('${n(i,t)??``}')`)}}),{transformations:e,hasDefaultTransformation:r}}})),NP,Xie,Zie=o((()=>{fp(),Vy(),qie(),Yie(),bC(),DP(),NP=(e,t)=>{let{type:n,content:r,currentSlug:i,entryFilePath:a,locale:o,dateTimeParts:s,identifierField:c,basePath:l,isIndexFile:u=!1}=t,d=Hie(e,s);if(d!==void 0)return d;let f=Wie(e,i,n??``,u);if(f!==void 0)return f;let p=Uie(e);if(p!==void 0)return p;if(n===`preview_path`&&e===`locale`)return o;if(n===`preview_path`||n===`media_folder`){let t=Gie(e,a,l);if(t!==void 0)return t}return Kie(e,r,c)},Xie=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,[i,...a]=e.split(vC),o=NP(i,n),{transformations:s,hasDefaultTransformation:c}=Jie(a,n,NP);if(o===void 0&&!c)return lp(`short`);let{type:l,locale:u}=n;return s.length&&(o=yC({fieldConfig:bP({...r,keyPath:i}),value:o,transformations:s,locale:u})),l?String(o):By(String(o),{locale:u,maxLength:1/0})}})),PP,Qie,FP,IP=o((()=>{Dy(),yp(),Pp(),Bp(),Zie(),dF(),iN(),_E(),PP=e=>Fp.test(e),Qie=(e,t)=>eN(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),FP=(e,t)=>{let{collection:n,content:r,currentSlug:i,locale:a,dateTimeParts:o,isIndexFile:s=!1}=t,{_type:c,name:l}=n,{identifier_field:u=`title`,slug_length:d=void 0,_file:{basePath:f}={}}=c===`entry`?n:{},p=A(oF)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??Ey({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=e.replace(Ip,(e,t)=>Xie(t,g)).trim();return i?_:(typeof m==`number`&&(_=mp(_,m,{ellipsis:``}).replace(/-$/,``)),dE(_,Qie(l,a)))}})),LP,RP,zP,$ie,BP,VP,eae,tae,nae=o((()=>{Mp(),yp(),IP(),gw(),IC(),LP=[],RP=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),zP=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),$ie=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r=!1,mediaFolder:i,publicFolder:a,baseFolder:o,globalFolders:s})=>{if(RP(i)){if(!s)return;i=zP(i,s)}if(a===void 0)a=i;else if(RP(a)){if(!s)return;a=zP(a,s)}i=i.replace(/^\.(?:\/|$)/,``);let c=!i.startsWith(`/`);return{collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r,internalPath:hp(c?o??``:i),internalSubPath:c?hp(i):void 0,publicPath:/^($|[.@])/.test(a)?a:`/${hp(a)}`,entryRelative:c,hasTemplateTags:PP(i)}},BP=e=>{if(e.mediaFolder===void 0)return;let t=$ie(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||LP.push(t)},VP=({collectionName:e,files:t,globalFolders:n})=>{AC(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;BP({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:wp(i).dirname,globalFolders:n})})},eae=({fieldMediaFolders:e,validCollections:t,globalFolders:n})=>{e.forEach(({fieldConfig:e,context:r})=>{let i=r.collection;(i.name===`_singletons`||t.some(e=>e.name===i.name))&&BP({collectionName:i.name,fileName:r.collectionFile?.name,mediaFolder:e.media_folder,publicFolder:e.public_folder,baseFolder:`folder`in i?i.folder:void 0,typedKeyPath:r.typedKeyPath,isIndexFile:r.isIndexFile,globalFolders:n})})},tae=(e,t=[])=>{LP.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a}=e,o=n!==void 0,s=o?hp(n).replace(/^\.$/,``):``,c=o?r?`/${hp(r)}`.replace(/^\/@/,`@`):`/${s}`:``,l={collectionName:void 0,internalPath:void 0,internalSubPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1},u=o?{...l,internalPath:s,publicPath:c}:void 0,d=o?{globalMediaFolder:s,globalPublicFolder:c}:void 0,f=sw({collections:i});f.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:s}=e;BP({collectionName:t,mediaFolder:o&&a===void 0&&i!==void 0?``:a,publicFolder:s,baseFolder:r,entryPath:i,globalFolders:d}),n?.length&&VP({collectionName:t,files:n,globalFolders:d})}),a?.length&&VP({collectionName:`_singletons`,files:a,globalFolders:d}),eae({fieldMediaFolders:t,validCollections:f,globalFolders:d}),LP.sort((e,t)=>vp(e.internalPath,t.internalPath));let p=[];return u&&p.push(u),p.push(...LP),p.length&&p.unshift(l),p}})),rae,HP,UP,iae,aae,oae,sae,cae=o((()=>{yp(),gw(),IC(),$S(),ew(),rae=({collection:e,file:t})=>{let n=hp(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=$C(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,QS({_i18n:r,locale:e,path:n})]))},HP=(e,t)=>{if(kC(t))return{collectionName:e.name,fileName:t.name,filePathMap:rae({collection:e,file:t})}},UP=(e,t)=>vp(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),iae=({collections:e})=>sw({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=hp(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=$C(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>vp(e.folderPath,t.folderPath)),aae=({collections:e})=>sw({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>HP(e,t))).filter(e=>!!e).sort(UP),oae=({singletons:e})=>{let t=Array.isArray(e)?AC(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>HP(n,e)).filter(e=>!!e).sort(UP)},sae=e=>[...iae(e),...aae(e),...oae(e)]})),lae,uae,dae,fae,pae,WP,mae=o((()=>{X(),f(),lae=l(rte(),1),RT(),xD(),uae=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`],dae=async({href:e,type:t=`application/yaml`},{manualInit:n=!1}={})=>{let r;if(!uae.includes(t))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_unsupported_type`))});let i=n?`config.error.fetch_failed_with_manual_init`:`config.error.fetch_failed`;try{let t=new URL(e,window.location.href);t.searchParams.set(`_`,Date.now().toString()),r=await fetch(t)}catch(e){throw Error(Y(i),{cause:e})}let{ok:a,status:o}=r;if(!a)throw Error(Y(i),{cause:Error(Y(`config.error.fetch_failed_not_ok`,{values:{status:o}}))});let s;try{if(t===`application/json`)s=await r.json();else{let e=await r.text();s=t===`application/toml`?MT(e):NT(e,{merge:!0,maxAliasCount:-1})}}catch(e){throw Error(Y(`config.error.parse_failed`),{cause:e})}if(!u(s))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_invalid_object`))});return s},fae=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},pae=e=>{let{origin:t}=window.location;return e.every(({href:e})=>yD(e,t))},WP=async({manualInit:e=!1}={})=>{let t=[...document.querySelectorAll(`link[rel="cms-config-url"]`)].map(({href:e,type:t})=>({href:e,type:t}));if(t.length||t.push({href:fae(window.location.pathname)}),!pae(t))throw Error(Y(`config.error.insecure_urls`,{values:{count:t.length}}));let n=await Promise.all(t.map(t=>dae(t,{manualInit:e})));return n.length===1?n[0]:lae.default.all(n)}})),GP,KP,hae,gae,qP,JP=o((()=>{X(),$S(),GP=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,typedKeyPath:c}=i,{errors:l,warnings:u}=a,d=[];o&&d.push(Y(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&d.push(Y(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&d.push(Y(`config.error_locator.field`,{values:{field:c}}));let f=e===`error`?l:u,p=Mh.current,m=d.length?`${ZS(p).format(d)}: `:``,h=Y(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${Y(`config.${r}`)}`:``}`)},KP=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&GP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},hae=/^[^\s.*:<>]+$/,gae=e=>hae.test(e),qP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return GP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return gae(e)?n[e]===1?(GP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(GP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),_ae,vae,yae=o((()=>{X(),f(),oA(),zC(),JP(),_ae=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],vae=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!u(n)){r.add(Y(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(Y(`config.error.missing_backend_name`));return}if(!tA.includes(a)){let e=eA[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=Y(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${i} ${Y(`config.error.unsupported_backend_suggestion`)}`);return}if(a in nA){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(Y(`config.error.no_auth_methods`));let d=!c||c.includes(`token`);o===void 0&&r.add(Y(`config.error.missing_repository`)),(typeof o!=`string`||!/^[^/:]+(?:\/[^/:]+)+$/.test(o))&&r.add(Y(`config.error.invalid_repository`)),l===`implicit`&&r.add(Y(`config.error.oauth_implicit_flow`).replace(`BACKEND_NAME`,a)),a===`github`&&l===`pkce`&&r.add(Y(`config.error.github_pkce_unsupported`)),a===`gitlab`&&l===`pkce`&&!u&&r.add(Y(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(Y(`config.warning.oauth_no_app_id`)):r.add(Y(`config.error.oauth_no_app_id`))),s!==void 0&&RC(`automatic_deployments`),KP({UNSUPPORTED_OPTIONS:_ae,config:n,context:{cmsConfig:e},collectors:t})}}})),bae,YP,XP,xae=o((()=>{UC(),bae=[`code`,`markdown`,`richtext`,`text`],YP=[`yaml`,`toml`,`json`],XP=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&bae.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(BC.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return VC.includes(i)?!1:i!==e}return a===`frontmatter`?!Sre.includes(i):YP.includes(a)?YP.includes(i)&&i!==a:!1}})),Sae,Cae,wae=o((()=>{JP(),Sae=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Cae=e=>{KP({...e,UNSUPPORTED_OPTIONS:Sae})}})),Tae,ZP,Eae=o((()=>{JP(),Tae=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],ZP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),KP({...e,UNSUPPORTED_OPTIONS:Tae})}})),Dae,Oae,kae=o((()=>{tF(),JP(),Dae=(e,t,n)=>e===`object`?!0:(GP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Oae=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){GP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&$P({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&eF(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};qP({...c,name:e,index:a,context:o})&&Dae(t,o,r)&&i&&eF(i,o,r)})}})),Aae,jae,Mae=o((()=>{JP(),Aae=[{prop:`valueType`,newProp:`value_type`}],jae=e=>{KP({...e,UNSUPPORTED_OPTIONS:Aae})}})),Nae,Pae=o((()=>{tF(),JP(),Nae=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){GP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){GP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&eF(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};qP({...s,name:e,index:i,context:a})&&t&&eF(t,a,r)})}})),Fae,Iae,Lae=o((()=>{JP(),Fae=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Iae=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||GP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&GP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else GP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});KP({...e,UNSUPPORTED_OPTIONS:Fae}),r.relationFields.add({fieldConfig:i,context:n})}})),Rae,QP,zae=o((()=>{JP(),Rae=[{prop:`editorComponents`,newProp:`editor_components`}],QP=e=>{KP({...e,UNSUPPORTED_OPTIONS:Rae})}})),Bae,$P,eF,tF=o((()=>{wae(),Eae(),kae(),Mae(),Pae(),Lae(),zae(),JP(),Bae={datetime:Cae,file:ZP,image:ZP,list:Oae,markdown:QP,number:jae,object:Nae,relation:Iae,richtext:QP},$P=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};Bae[i]?.(o),i===`date`&&GP({...o,strKey:`date_field_type`})},eF=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;qP({...r,name:a,index:i})&&$P({config:e,context:t,collectors:n})})}})),Vae,nF,Hae=o((()=>{Mp(),xae(),tF(),JP(),Vae=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=wp(i);XP(c,a,o)&&GP({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||GP({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&GP({strKey:`collection_file_i18n_required`,context:e,collectors:t}),eF(o,e,t)},nF=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};qP({...a,name:o,index:i,context:s})&&Vae(s,t)})}})),Uae,Wae,Gae,Kae,qae=o((()=>{X(),zC(),Hae(),xae(),tF(),JP(),Uae=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Wae=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;XP(i,a)&&GP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&RC(`slug_length`),KP({UNSUPPORTED_OPTIONS:Uae,config:r,context:e,collectors:t}),o?.length||GP({strKey:`collection_no_fields`,context:e,collectors:t}),eF(o,e,t),s&&eF(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&GP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Gae=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){GP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){GP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?nF({cmsConfig:e,collection:t},n):a&&Wae({cmsConfig:e,collection:t},n)},Kae=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(Y(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};qP({...a,name:i,index:r,context:o})&&Gae(o,t)}),Array.isArray(r)&&nF({cmsConfig:e,collection:{name:`_singletons`,label:Y(`singletons`),label_singular:Y(`singleton`),files:r}},t)}})),Jae,Yae=o((()=>{X(),Ej(),Jae=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!Tj.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>Tj.includes(e))&&o.add(Y(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(Y(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(Y(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(Y(`config.error.public_folder_absolute_url`))):o.add(Y(`config.error.invalid_public_folder`)))}})),Xae,Zae,Qae=o((()=>{yae(),qae(),Yae(),JP(),Xae=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],Zae=(e,t)=>{vae(e,t),Jae(e,t),Kae(e,t),KP({UNSUPPORTED_OPTIONS:Xae,config:e,context:{cmsConfig:e},collectors:t})}})),$ae,rF,eoe,iF,aF,oF,sF,cF,lF,uF,toe,dF=o((()=>{X(),fp(),f(),yp(),$ae=l(rte(),1),Pp(),Ty(),Yp(),nae(),cae(),mae(),Qae(),OC(),AO(),{DEV:rF,VITE_SITE_URL:eoe}={DEV:!1},iF=rF?eoe||`http://localhost:5174`:void 0,aF={},oF=ln(),sF=ln(),cF=ln([]),lF=un([oF,cF],([e,t])=>!!e||!!t.length),uF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},toe=async e=>{oF.set(void 0),cF.set([]),Object.assign(uF,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(Y(`config.error.no_secure_context`));let t;if(e){if(!u(e))throw Error(Y(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,$ae.default)(await WP({manualInit:!0}),t))}else t=await WP();if(Object.assign(aF,t),Zae(t,uF),uF.errors.size)throw uF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);uF.warnings.size&&uF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(rF?iF:window.location.origin),n._baseURL=_p(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),oF.set(n),sF.set(await dp(Cy(n)))}catch(e){cF.set(uF.errors.size?[...uF.errors]:[e.name===`Error`?e.message:Y(`config.error.unexpected`)]),console.error(e,e.cause)}},oF.subscribe(e=>{if(kO.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,uF)),!e)return;let t=sae(e),n=tae(e,[...uF.mediaFields]);CC.set(t),Vp.set(n),kO.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),fF,pF=o((()=>{Pp(),dF(),fF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(oF),r=e==="default"?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n===!1?!1:i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t===!1?!1:i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})),mF,noe,hF=o((()=>{f(),pF(),oM(),yM(),mF=({fieldConfig:e}={})=>{let t=fF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:u(a)?a:void 0}}},noe=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(Qj.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&aM.includes(t)?t:`webp`,s=await _M(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0}),c=s.type===`image/${o}`?eM.test(e.name)?e.name.replace(eM,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await vM(e)],e.name,{type:e.type}):e}})),gF,_F=o((()=>{hF(),_E(),gF=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=fE(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await noe(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),roe,vF,yF,bF,xF,SF,ioe,CF,wF,TF,EF,DF,aoe,OF,ooe,soe,kF,AF,jF,coe,MF,NF,PF=o((()=>{Mp(),yp(),uc(),Pp(),Yp(),_F(),IP(),Bp(),gw(),yw(),IC(),qM(),hF(),_E(),roe=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,vF=ln([]),yF={source:void 0,map:new Map},bF=()=>{let e=A(vF);return e!==yF.source&&(yF.source=e,yF.map=new Map(e.map(e=>[e.path,e]))),yF.map},xF=e=>bF().get(e),SF=ln([]),ioe=un(SF,e=>new Set(e.map(e=>e.path))),CF=ln(),wF=ln(),TF=ln({folder:void 0,files:[]}),EF=ln(),DF=ln(),aoe=un([TF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=mF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>gF(e,i)));n(()=>({processing:!1,undersizedFiles:e.filter(({oversized:e})=>!e).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),OF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Gp({collectionName:n.name,fileName:r?.name,typedKeyPath:i}):void 0,c=s?.entryRelative?s.internalSubPath??``:(r??n).media_folder,{path:l,content:u}=a[o in a?o:Object.keys(a)[0]];if(!l||!u)return;let{entryFolder:d}=l.match(roe).groups,f=e.replace(/^\.\//,``),p=mE(pE([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return bF().get(p)},ooe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Gp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Gp({collectionName:n,fileName:r}):void 0,n?Gp({collectionName:n}):void 0,A(Hp)].filter(e=>!!e&&!e.hasTemplateTags),a;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=bF().get(pE([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??bF().get(e)}return UM(t).flatMap(n=>{let r=NC(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>OF({...a,file:e})):OF({...a})}).filter(Boolean)[0]??bF().get(e)},soe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=bF().get(hp(e));if(a)return a;let{dirname:o=``,basename:s}=wp(e),c;return[i?Gp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Gp({collectionName:n,fileName:r}),Gp({collectionName:n}),A(Hp),A(Vp).findLast(e=>{let t=e.publicPath??``,n=pp(t).replace(Lp,`.+?`);return o.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&Fp.test(i)){let e=r?pw(r):t?UM(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=FP(i,{type:`media_folder`,collection:e,content:cc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:vw(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=pE([i,s]),l=bF().get(a);return l&&(c=l),!!l}),c},kF=e=>!/^[/@]/.test(e),AF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=cE(e.split(`#`)[0]);return kF(a)?ooe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):soe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},jF=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,coe=e=>A(vF).filter(t=>jF(t,e)),MF=e=>A(vF).filter(t=>wp(t.path).dirname===e),Up.subscribe(()=>{CF.set(void 0)}),NF=(e,t)=>{if(!t.length||!e.length)return[];let n=new Set(t.map(({name:e})=>e.normalize().toLowerCase()));return e.filter(e=>n.has(e.name.normalize().toLowerCase()))}})),FF,IF,LF=o((()=>{Mp(),yp(),Pp(),PF(),Yp(),LM(),gw(),yw(),DP(),FF=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${pp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await IM({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},IF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=pw(t);if(!a)return[];let o=vw(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||kF(a))){let s=bP({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=AF({value:a,entry:e,collectionName:t,fileName:n});if(c&&qp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Gp({collectionName:t,fileName:n})?.entryRelative){let t=wp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(vF).forEach(n=>{let r=wp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),RF,loe,zF,uoe,BF,VF=o((()=>{f(),uc(),lee(),LF(),vD(),RF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],loe=[`preSave`,`prePublish`],zF=new Set,uoe=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>_d({data:lc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:lc(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),BF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=_D.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:d}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==d),{content:h,path:g}=p[d],_=IF({entry:n,collectionName:c,fileName:l});for(let t of zF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:uoe({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(loe.includes(e)&&Ql(n)){let e=n.toJS();u(e.data)&&u(e.i18n)?(p[d].content=cc(e.data),m.forEach(t=>{u(e.i18n[t]?.data)&&(p[t].content=cc(e.i18n[t].data))})):p[d].content=cc(e)}}}})),HF,UF,WF,GF,KF,qF,JF,YF,doe,XF=o((()=>{Pp(),HF=ln(!1),UF=ln(!1),WF=ln({show:!1,multiple:!1}),GF=ln({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),KF=ln(null),qF=ln(null),JF=ln(),YF=new Set,doe=new Map})),foe=o((()=>{})),Z=o((()=>{foe(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),poe,moe=o((()=>{poe=`{"ok":"OK","cancel":"Cancel","close":"Close","clear":"Clear","insert":"Insert","update":"Update","remove":"Remove","collapse":"Collapse","expand":"Expand","dismiss":"Dismiss","calendar":{"year":"Year","previous_decade":"Previous Decade","next_decade":"Next Decade","month":"Month","previous_month":"Previous Month","next_month":"Next Month","today":"Today"},"split_button":{"x_options":"{$name} Options","more_options":"More Options"},"combobox":{"select_an_option":"Select an option…","filter_options":"Filter Options","no_matching_options":"No matching options found"},"number_input":{"decrease":"Decrease","increase":"Increase"},"password_input":{"show_password":"Show Password","hide_password":"Hide Password"},"secret_input":{"show_secret":"Show Secret","hide_secret":"Hide Secret"},"select_tags":{"selected_options":"Selected options","remove_x":"Remove {$name}"},"text_editor":{"text_editor":"Text Editor","code_editor":"Code Editor","text_style_options":"Text Style Options","show_text_style_options":"Show Text Style Options","paragraph":"Paragraph","heading_1":"Heading 1","heading_2":"Heading 2","heading_3":"Heading 3","heading_4":"Heading 4","heading_5":"Heading 5","heading_6":"Heading 6","bulleted_list":"Bulleted List","numbered_list":"Numbered List","blockquote":"Block Quote","code_block":"Code Block","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","code":"Code","link":"Link","insert_link":"Insert Link","update_link":"Update Link","text":"Text","url":"URL","edit_in_markdown":"Edit in Markdown","converter_error":"There was an error while enabling rich text mode. Please use the plain text editor instead.","language":"Language","plain_text":"Plain Text"}}`})),hoe,goe=o((()=>{hoe=`{"ok":"OK","cancel":"キャンセル","close":"閉じる","clear":"クリア","insert":"挿入","update":"更新","remove":"削除","collapse":"折り畳む","expand":"広げる","dismiss":"閉じる","calendar":{"year":"年","previous_decade":"前の 10 年","next_decade":"次の 10 年","month":"月","previous_month":"前月","next_month":"翌月","today":"今日"},"split_button":{"x_options":"{$name} オプション","more_options":"その他のオプション"},"combobox":{"select_an_option":"オプションを選択…","filter_options":"オプションを絞り込み","no_matching_options":"一致するオプションは見つかりませんでした"},"number_input":{"decrease":"減らす","increase":"増やす"},"password_input":{"show_password":"パスワードを表示","hide_password":"パスワードを隠す"},"secret_input":{"show_secret":"シークレットを表示","hide_secret":"シークレットを隠す"},"select_tags":{"selected_options":"選択済みのオプション","remove_x":"{$name} を削除"},"text_editor":{"text_editor":"テキストエディター","code_editor":"コードエディター","text_style_options":"テキストスタイルオプション","show_text_style_options":"テキストスタイルオプションを表示","paragraph":"段落","heading_1":"見出し 1","heading_2":"見出し 2","heading_3":"見出し 3","heading_4":"見出し 4","heading_5":"見出し 5","heading_6":"見出し 6","bulleted_list":"番号なしリスト","numbered_list":"番号付きリスト","blockquote":"ブロック引用","code_block":"コードブロック","bold":"太字","italic":"斜体","strikethrough":"取り消し線","code":"コード","link":"リンク","insert_link":"リンクを挿入","update_link":"リンクを更新","text":"テキスト","url":"URL","edit_in_markdown":"マークダウンで編集","converter_error":"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。","language":"言語","plain_text":"プレーンテキスト"}}`})),_oe,voe=o((()=>{moe(),goe(),X(),Ty(),_oe=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":poe,"../locales/ja.yaml":hoe})).forEach(([e,t])=>{Oh(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:Sy(t)})}),Nh({fallbackLocale:e,initialLocale:t})}}));function ZF(e,t){G(e,xoe);let n=Js(t,yoe);var r=boe();vs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-1e54a1h`);var i=F(r,!0);D(r),R(()=>U(i,t.name)),H(e,r)}var yoe,boe,xoe,QF=o((()=>{Z(),J(),yoe=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),boe=B(`<span> </span>`),xoe={hash:`svelte-1e54a1h`,code:`.icon.small-arrow.svelte-1e54a1h {overflow:hidden;width:12px;text-indent:-6px;}`}}));function $F(e,t){G(e,woe);let n=Js(t,Soe);var r=Coe();vs(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-eost1`);var i=F(r),a=e=>{var n=V();wo(I(n),()=>t.icon),H(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);ZF(e,{get name(){return z(n)}})}};W(i,e=>{t.icon?e(a):e(o,-1)}),wo(L(i,2),()=>t.children??E),D(r),H(e,r)}var Soe,Coe,woe,eI=o((()=>{Z(),J(),QF(),Soe=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]),Coe=B(`<div><!> <!></div>`),woe={hash:`svelte-eost1`,code:`.alert.svelte-eost1 {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-eost1 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-eost1 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-eost1 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-eost1 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),Toe,tI,Eoe,Doe,Ooe,nI,rI,iI=o((()=>{tI=()=>(Toe??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Toe),Eoe=[`Ctrl`,`Meta`,`Alt`,`Shift`],Doe=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),Ooe=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:Doe.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),nI=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,tI()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Eoe.includes(e)).every(t=>Ooe(t,e))})},rI=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,tI()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!nI(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}}));function aI(e,t){G(e,Aoe);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=koe();wo(F(i),()=>r()??E),D(i),R(()=>ls(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var koe,Aoe,oI=o((()=>{Z(),J(),koe=B(`<span role="none" class="sui truncated-text svelte-1htz360"><!></span>`),Aoe={hash:`svelte-1htz360`,code:`.truncated-text.svelte-1htz360 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),sI,cI,lI,joe,Moe,Noe,uI,dI=o((()=>{fp(),lI=(e=`e`,t=7)=>[e,lp(t)].join(`-`),joe=()=>{if(`IntersectionObserver`in globalThis)return cI||(sI=new Map,cI=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=sI?.get(t);n&&(sI?.delete(t),cI?.unobserve(t),n())})}),cI)},Moe=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t<a&&n<o},Noe=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},uI=e=>{if(!e)return;let t=joe();if(t)return Moe(e)?Promise.resolve(void 0):new Promise(n=>{sI?.set(e,n),Noe(()=>{t.observe(e)})})}})),Poe,Foe,Ioe=o((()=>{J(),dI(),Tw(),mh(),Poe=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(xr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=lI(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),_a(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),_a(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),_a(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),_a(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),_a(this.popupElement,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)}),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement)}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement)}async hideImmediately(){this.popupElement.hidden=!0,this.open=!1,await ww(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Foe=(...e)=>new Poe(...e)}));function Loe(e,t){var n=V();wo(I(n),()=>t.children??E),H(e,n)}var Roe=o((()=>{Z(),J()}));function zoe(e,t){O(t,!0),G(e,Hoe);let n=e=>{var n=Voe(),d=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},f=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};vs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[xs]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-mxumua`);var g=F(n);wo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=V();wo(I(n),()=>t.children??E),H(e,n)};W(_,e=>{(z(h)||l())&&e(v)}),D(n),Hs(n,e=>i(e),()=>i()),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`dialog`,15),a=q(t,`role`,3,`dialog`),o=q(t,`showBackdrop`,3,!1),s=q(t,`lightDismiss`,3,!1),c=q(t,`escapeDismiss`,3,!0),l=q(t,`keepContent`,3,!1),u=Js(t,Boe),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=0,_=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),v=async()=>{if(!i()||i()?.open)return;g+=1;let e=g;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await ww(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return Qr(()=>{r()?v():y()}),rc(()=>{let e=Ia(Loe,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Ra(e)}}),k({focus:d,close:f})}var Boe,Voe,Hoe,fI=o((()=>{Z(),J(),Tw(),ac(),Roe(),Boe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Voe=B(`<dialog><!> <!></dialog>`),Hoe={hash:`svelte-mxumua`,code:`dialog.svelte-mxumua {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-mxumua::backdrop {background:transparent;}dialog.backdrop.svelte-mxumua {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-mxumua {transition-duration:50ms;opacity:1;}dialog.svelte-mxumua:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-mxumua {transition-duration:1ms !important;}dialog.svelte-mxumua:not(.active) {pointer-events:none !important;}dialog.svelte-mxumua:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function pI(e,t){O(t,!0),G(e,Goe);let n=e=>{var n=Woe();let o,s;wo(F(n),()=>t.children??E),D(n),Hs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=os(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-17p6hn1`,o,{touch:z(y)}),s=ls(n,``,s,{inset:z(g)?.style.inset,"z-index":z(g)?.style.zIndex,"min-width":z(g)?.style.minWidth,"max-width":z(g)?.style.maxWidth,"max-height":z(g)?.style.height,visibility:z(g)?.style.inset?void 0:`hidden`})}),va(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),va(`mouseleave`,n,()=>{i(!1),l()&&(_=window.setTimeout(()=>{r(!1)},200))}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`hovered`,15,!1),a=q(t,`content`,15,void 0),o=q(t,`showBackdrop`,3,void 0),s=q(t,`position`,3,`bottom-left`),c=q(t,`positionBaseElement`,3,void 0),l=q(t,`parentDialogElement`,3,void 0),u=q(t,`touchOptimized`,3,!1),d=Js(t,Uoe),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Foe(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};Qr(()=>{z(g)&&r(z(g).open)}),Qr(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),Qr(()=>{t.anchor&&z(p)&&!z(f)&&v()}),Qr(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));rc(()=>(P(m,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(g)?.destroy?.(),globalThis.clearTimeout(_)}));var b=V(),x=I(b),S=e=>{n(e)},C=e=>{{let i=M(()=>o()??z(y));zoe(e,Ys(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await ww(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(p)},set dialog(e){P(p,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};W(x,e=>{l()?e(S):e(C,-1)}),H(e,b),k()}var Uoe,Woe,Goe,mI=o((()=>{Z(),J(),Tw(),ac(),Ioe(),fI(),Uoe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Woe=B(`<div role="none"><!></div>`),Goe={hash:`svelte-17p6hn1`,code:`.content.svelte-17p6hn1 {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-17p6hn1 {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-17p6hn1 .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-17p6hn1 {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-17p6hn1 .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-17p6hn1 {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-17p6hn1 {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-17p6hn1 {transform:scale(90%);}.content.touch.combobox.svelte-17p6hn1 .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-17p6hn1 {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-17p6hn1 {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function hI(e,t){O(t,!0),G(e,Yoe);let n=q(t,`element`,15),r=q(t,`class`,3,``),i=q(t,`type`,3,`button`),a=q(t,`role`,3,`button`),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,19,()=>typeof s()),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`pressed`,3,void 0),p=q(t,`keyShortcuts`,3,void 0),m=q(t,`label`,3,``),h=q(t,`lines`,3,1),g=q(t,`variant`,3,void 0),_=q(t,`size`,3,`medium`),v=q(t,`iconic`,3,!1),y=q(t,`pill`,3,!1),b=q(t,`flex`,3,!1),x=q(t,`popupPosition`,3,`bottom-left`),S=q(t,`showPopupBackdrop`,3,!1),C=Js(t,Koe);var w=Joe(),T=I(w);vs(T,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[xs]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-747svn`);var ee=F(T);wo(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=V(),r=I(n),i=e=>{var t=gI();aI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)},a=e=>{var n=gI();wo(F(n),()=>t.children??E),D(n),H(e,n)};W(r,e=>{m()?e(i):e(a,-1)}),H(e,n)},re=e=>{var n=qoe(),r=I(n),i=e=>{var t=gI();aI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)};W(r,e=>{m()&&e(i)}),wo(L(r,2),()=>t.children??E),H(e,n)};W(te,e=>{g()===`link`?e(ne):e(re,-1)}),wo(L(te,2),()=>t.endIcon??E),D(T),Hs(T,e=>n(e),()=>n()),Jo(T,()=>rI(p()));var ie=L(T,2),ae=e=>{pI(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();wo(I(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ie,e=>{t.popup&&e(ae)}),H(e,w),k()}var Koe,gI,qoe,Joe,Yoe,_I=o((()=>{Z(),J(),iI(),oI(),mI(),Koe=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),gI=B(`<span role="none" class="label svelte-747svn"><!></span>`),qoe=B(`<!> <!>`,1),Joe=B(`<button><!> <!> <!></button> <!>`,1),Yoe={hash:`svelte-747svn`,code:`button.svelte-747svn {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-747svn {display:none !important;}button.svelte-747svn:not(:disabled):focus-visible {z-index:1;}button.svelte-747svn:is(.primary:where(.svelte-747svn), .secondary:where(.svelte-747svn), .tertiary:where(.svelte-747svn), .ghost:where(.svelte-747svn)) {justify-content:center;border-width:1px;}button.svelte-747svn:is(.primary:where(.svelte-747svn), .secondary:where(.svelte-747svn), .tertiary:where(.svelte-747svn), .ghost:where(.svelte-747svn)) .label:where(.svelte-747svn):only-child {padding:0 4px;}button.primary.svelte-747svn {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-747svn:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-747svn {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-747svn:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-747svn {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-747svn {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-747svn:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-747svn {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-747svn {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-747svn:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-747svn {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-747svn {outline:0;margin:0;border-radius:0 !important;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-747svn .label:where(.svelte-747svn) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-747svn .label:where(.svelte-747svn) {text-decoration:underline;}button.link.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus, :where(.svelte-747svn):active) .label:where(.svelte-747svn) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-747svn {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-747svn .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-747svn {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-747svn {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-747svn {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-747svn:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-747svn {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-747svn {background-color:var(--sui-error-background-color);}button.svelte-747svn .label:where(.svelte-747svn) {padding:0 4px;}button.svelte-747svn > * {pointer-events:none;}button.svelte-747svn :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function vI(e,t){O(t,!0),G(e,Qoe);let n=q(t,`show`,15,!0),r=q(t,`dismissible`,3,!0),i=q(t,`status`,3,`info`),a=q(t,`children`,3,void 0),o=q(t,`icon`,3,void 0);var s=V(),c=I(s),l=e=>{var t=Zoe(),s=F(t),c=F(s),l=e=>{var t=V();wo(I(t),o),H(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());ZF(e,{get name(){return z(t)}})}};W(c,e=>{o()?e(l):e(u,-1)}),wo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=Xoe(),r=F(t);{let e=M(()=>Y(`_sui.dismiss`));hI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{ZF(e,{name:`close`})},$$slots:{default:!0}})}D(t),H(e,t)};W(d,e=>{r()&&e(f)}),D(t),R(()=>os(t,1,`infobar ${i()??``}`,`svelte-2bt0oo`)),H(e,t)};W(c,e=>{n()&&e(l)}),H(e,s),k()}var Xoe,Zoe,Qoe,$oe=o((()=>{Z(),J(),X(),_I(),QF(),Xoe=B(`<div role="none"><!></div>`),Zoe=B(`<div role="none"><div role="alert" class="message svelte-2bt0oo"><!> <!></div> <!></div>`),Qoe={hash:`svelte-2bt0oo`,code:`.infobar.svelte-2bt0oo {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-2bt0oo {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-2bt0oo {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-2bt0oo {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-2bt0oo {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-2bt0oo {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-2bt0oo button {font-size:inherit !important;}.message.svelte-2bt0oo .icon {font-size:16px; /* !hardcoded */}`}}));function ese(e,t){G(e,rse);let n=Js(t,tse);var r=nse();vs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-76ww7t`),wo(F(r),()=>t.children??E),D(r),H(e,r)}var tse,nse,rse,ise=o((()=>{Z(),J(),tse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),nse=B(`<div><!></div>`),rse={hash:`svelte-76ww7t`,code:`.bottom-navigation.svelte-76ww7t {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-76ww7t:is([inert]:where(.svelte-76ww7t), [hidden]:where(.svelte-76ww7t)) {display:none;}.bottom-navigation.svelte-76ww7t .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function ase(e,t){G(e,cse);let n=Js(t,ose);var r=sse();vs(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1f2dbh`),wo(F(r),()=>t.children??E),D(r),H(e,r)}var ose,sse,cse,lse=o((()=>{Z(),J(),ose=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),sse=B(`<div><!></div>`),cse={hash:`svelte-1f2dbh`,code:`.button-group.svelte-1f2dbh {flex:none;display:inline-flex;align-items:center;}`}}));function yI(e,t){G(e,xI);let n=q(t,`children`,3,void 0);var r=bI();wo(F(r),()=>n()??E),D(r),H(e,r)}var bI,xI,use=o((()=>{Z(),J(),bI=B(`<div role="none" class="sui floating-action-button-wrapper svelte-1w9ejur"><!></div>`),xI={hash:`svelte-1w9ejur`,code:`.floating-action-button-wrapper.svelte-1w9ejur {display:contents;}
|
|
644
|
+
`),b=await vA(await vA(await vA(await vA(await vA(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},xA=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await yA(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await bA({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},SA=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},CA=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,wA=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=CA({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:Zw(t)}})},TA=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await xA({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=SA(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await ww(50)}return wA(c?u.filter(e=>Zw(e.Key)===c):u,e)},EA=async(e,t,n)=>{let r=await TA(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},DA=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await xA({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,...t.acl!==!1&&{"x-amz-acl":t.acl??`public-read`}}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await ww(50)}return wA(l,t)}})),kA,AA,jA,MA,NA,PA,FA,Eie=o((()=>{OA(),kA=e=>_A(`aws_s3`,e),AA=e=>{let t=kA(e)??kA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},jA=({fieldConfig:e})=>{let t=kA(e)??kA();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},MA=async e=>TA(jA(e),e),NA=async(e,t)=>EA(e,jA(t),t),PA=async(e,t)=>DA(e,jA(t),t),FA={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:AA,list:MA,search:NA,upload:PA}})),IA,LA,RA,zA,BA,VA,HA,UA,WA,Die=o((()=>{OA(),IA={default:``,eu:`eu.`,fedramp:`fedramp.`},LA=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${IA[t]??``}r2.cloudflarestorage.com`,RA=e=>_A(`cloudflare_r2`,e),zA=e=>{let t=RA(e)??RA();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},BA=({fieldConfig:e})=>{let t=RA(e)??RA();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:LA(t)}},VA=async e=>TA(BA(e),e),HA=async(e,t)=>EA(e,BA(t),t),UA=async(e,t)=>DA(e,BA(t),t),WA={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:zA,list:VA,search:HA,upload:UA}})),GA,KA,qA,JA,YA,XA,ZA,Oie=o((()=>{OA(),GA=e=>_A(`digitalocean_spaces`,e),KA=e=>{let t=GA(e)??GA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},qA=({fieldConfig:e})=>{let t=GA(e)??GA();if(!t)throw Error(`DigitalOcean Spaces configuration is not available`);return{...t,endpoint:`https://${t.region}.digitaloceanspaces.com`,public_url:t.public_url??`https://${t.bucket}.${t.region}.digitaloceanspaces.com`}},JA=async e=>TA(qA(e),e),YA=async(e,t)=>EA(e,qA(t),t),XA=async(e,t)=>DA(e,qA(t),t),ZA={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:KA,list:JA,search:YA,upload:XA}})),QA,$A,ej,tj,nj,rj,ij,kie=o((()=>{OA(),QA=e=>_A(`scaleway_object_storage`,e),$A=e=>{let t=QA(e)??QA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},ej=({fieldConfig:e})=>{let t=QA(e)??QA();if(!t)throw Error(`Scaleway Object Storage configuration is not available`);return{...t,endpoint:`https://s3.${t.region}.scw.cloud`,public_url:t.public_url??`https://${t.bucket}.s3.${t.region}.scw.cloud`}},tj=async e=>TA(ej(e),e),nj=async(e,t)=>EA(e,ej(t),t),rj=async(e,t)=>DA(e,ej(t),t),ij={serviceType:`cloud_storage`,serviceId:`scaleway_object_storage`,serviceLabel:`Scaleway Object Storage`,serviceURL:`https://www.scaleway.com/en/object-storage/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://www.scaleway.com/en/docs/object-storage/`,apiKeyURL:`https://console.scaleway.com/iam/api-keys`,apiKeyPattern:/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/,isEnabled:$A,list:tj,search:nj,upload:rj}})),aj,oj,sj,cj,lj,uj,dj,fj,pj,Aie=o((()=>{OA(),aj=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,oj=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,sj=e=>_A(`supabase_storage`,e),cj=e=>{let t=sj(e)??sj();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},lj=({fieldConfig:e})=>{let t=sj(e)??sj();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:aj(t),public_url:t.public_url??oj(t)}},uj=async e=>TA(lj(e),e),dj=async(e,t)=>EA(e,lj(t),t),fj=async(e,t)=>DA(e,lj(t),t),pj={serviceType:`cloud_storage`,serviceId:`supabase_storage`,serviceLabel:`Supabase Storage`,serviceURL:`https://supabase.com/storage`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://supabase.com/docs/guides/storage`,apiKeyURL:`https://supabase.com/dashboard/project/_/storage/settings`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:cj,list:uj,search:dj,upload:fj}})),mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,jie=o((()=>{Tw(),Pp(),dF(),_E(),mj=(e=A(oF))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),hj=e=>{let t=mj(e)??mj();return t?t.config?.publicKey:void 0},gj=e=>!!hj(e),_j=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(mj(t)??mj())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},vj=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=hj(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await ww(50)}return _j(l,{fieldConfig:i})},yj=async e=>vj(e),bj=async(e,t)=>{let n=e.toLowerCase();return vj(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},xj=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},Sj=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=hj(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await xj(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(fE(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return _j(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})},Cj={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:gj,list:yj,search:bj,upload:Sj}})),wj,Tj,Ej=o((()=>{gA(),Eie(),Die(),Oie(),kie(),Aie(),jie(),wj={aws_s3:FA,cloudflare_r2:WA,cloudinary:hA,digitalocean_spaces:ZA,scaleway_object_storage:ij,supabase_storage:pj,uploadcare:Cj},Tj=Object.keys(wj)})),Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Mie=o((()=>{Dj=`@sveltia/cms`,Oj=`0.166.3`,kj=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,Aj=[`svelte`,`cms`,`content-management-system`],jj=`https://sveltiacms.app/en/`,Mj={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},Nj={type:`github`,url:`https://github.com/sponsors/kyoshino`},Pj={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Fj=`module`,Ij={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},Lj={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.45.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.1`,"@sveltia/ui":`^0.40.5`,"@sveltia/utils":`^0.10.7`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.6`,"isomorphic-dompurify":`^3.16.0`,leaflet:`^1.9.4`,lexical:`^0.45.0`,marked:`^18.0.5`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^6.0.227`,qrcode:`^1.5.4`,react:`^19.2.7`,"react-dom":`^19.2.7`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,svgo:`^4.0.1`,"terra-draw":`^1.31.1`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Rj={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.9.2`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.17`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.8`,cspell:`^10.0.1`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^63.0.2`,"eslint-plugin-package-json":`^1.3.0`,"eslint-plugin-svelte":`^3.19.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.6.0`,oxlint:`^1.69.0`,"postcss-html":`^1.8.1`,prettier:`^3.8.4`,"prettier-plugin-svelte":`^4.1.0`,stylelint:`^17.13.0`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.56.3`,"svelte-check":`^4.6.0`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.0.16`,vitest:`^4.1.8`},zj={directory:`package`,access:`public`,provenance:!0},Bj={name:Dj,version:Oj,description:kj,keywords:Aj,homepage:jj,repository:Mj,funding:Nj,license:`MIT`,author:Pj,type:Fj,scripts:Ij,dependencies:Lj,devDependencies:Rj,publishConfig:zj}})),Vj,Hj,Uj=o((()=>{Mie(),{dependencies:Vj,version:Hj}=Bj})),Wj,Gj,Kj,qj,Jj=o((()=>{Wj=`modulepreload`,Gj=function(e){return`/`+e},Kj={},qj=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Gj(t,n),t in Kj)return;Kj[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Wj,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Yj,Xj,Zj=o((()=>{Uj(),Jj(),Yj=e=>{let t=`https://unpkg.com/${e}`,n=Vj[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Xj=async(e,t)=>qj(()=>import(`${Yj(e)}/${t}`),[])})),Qj,$j,eM,tM,nM,rM,iM,aM,oM=o((()=>{Qj=[`avif`,`gif`,`jpeg`,`png`,`webp`],$j=Qj.map(e=>`image/${e}`),eM=/\b(?:avif|gif|jpe?g|png|webp)$/i,tM=[`svg`],nM=[`image/svg+xml`],rM=/\b(?:svg)$/i,[...Qj,...tM],iM=[...$j,...nM],aM=[`webp`]})),sM,cM,lM,uM=o((()=>{Zj(),oM(),sM={},cM=async e=>{if(e in sM)return sM[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return sM[e]=r,r},lM=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await cM(t)&&aM.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Xj(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})),dM,fM,pM=o((()=>{dM=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},fM=(e,t,n)=>{let{scale:r,width:i,height:a}=dM(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),mM,hM,gM,_M,vM,yM=o((()=>{Zj(),uM(),pM(),mM=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise(e=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.src=t})},hM=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise(e=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=t,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n)})},gM=async e=>e.type.startsWith(`video/`)?hM({blob:e}):mM({blob:e}),_M=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await gM(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return fM(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),lM(l,{format:t,quality:n})},vM=async e=>{let t=await e.text();try{let{optimize:n}=await Xj(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),bM,xM,SM,CM,wM,TM,Nie=o((()=>{Zj(),uM(),pM(),Jj(),bM=Yj(`pdfjs-dist`),xM=`${bM}/build/pdf.min.mjs`,SM=`${bM}/build/pdf.worker.min.mjs`,CM={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${bM}/cmaps/`,iccUrl:`${bM}/iccs/`,standardFontDataUrl:`${bM}/standard_fonts/`,wasmUrl:`${bM}/wasm/`},TM=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!wM)try{wM=await qj(()=>import(xM),[]),wM.GlobalWorkerOptions.workerSrc=SM}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await wM.getDocument({...CM,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=fM(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return lM(s,{format:t,quality:n})}})),EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM=o((()=>{Mp(),Tw(),kw(),yp(),Rw(),Pp(),PF(),Yp(),oA(),dF(),Ej(),gA(),_E(),yM(),Nie(),EM=/{{(?<tag>.+?)}}/,DM=/{{(.+?)}}/g,OM=/^(?:https?|data|blob):/,kM=new Set,AM=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(kM.has(o)&&t<=25)return await ww(200),AM(e,t+1);kM.add(o);let n=await A(iA)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:Lw.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),kM.delete(o),s},jM=async e=>(e.blobURL||await AM(e),e.blobURL),MM=void 0,NM=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(MM===void 0){let{databaseName:e}=A(iA)?.repository??{};MM=e?new Ew(e,`asset-thumbnails`):null}let r=await MM?.get(e.sha);if(!r){if(t)return;let i=await AM(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await TM(i,a):await _M(i,a),await MM?.set(e.sha,r)}return URL.createObjectURL(r)},PM=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:qp(e.path).find(({collectionName:e})=>e!==void 0)??A(Hp);if(a){if(t){let t=wp(e.path).dirname,n=r?wp(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===pE([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(oF),l=o?e.path.replace(oE(e.folder.internalPath??``,e=>{let t=e.match(EM)?.groups?.tag;return t?`(?<${t}>[^/]+)`:pp(e)}),i?.replaceAll(DM,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=sE(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},FM=e=>{if(wj.cloudinary?.isEnabled?.()){let t=pA(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},IM=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(OM.test(e))return e;if(kF(e)){let t=FM(i);if(t)return`${t}/${e}`}let s=AF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await NM(s):await jM(s))??PM(s)}})),RM,zM,BM,VM,HM,UM,WM,GM,KM,qM=o((()=>{Dy(),RM=l(HS(),1),zM=l(US(),1),BM=l(WS(),1),VM=l(GS(),1),Pp(),oA(),IP(),dF(),OC(),gw(),yw(),pC(),RM.default.extend(zM.default),RM.default.extend(BM.default),RM.default.extend(VM.default),HM=/{{(?:year|month|day|hour|minute|second)}}/,UM=e=>DC(Object.values(e.locales)[0].path).map(({collectionName:e})=>pw(e)).filter(e=>!!e),WM=({dateFieldName:e,fields:t,content:n})=>{let r=e?t.find(({widget:t,name:n})=>t===`datetime`&&n===e):t.find(({widget:e})=>e===`datetime`),i=r?n[r.name]:void 0;if(!r||!i)return;let a=r,{picker_utc:o=!1}=a,s=cC(i,a);if(oC(s))return Ey({date:s,timeZone:o?`UTC`:void 0})},GM=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=A(oF)??{},{slug:o,path:s,content:c}=e.locales[t]??{},{preview_path:l,preview_path_date_field:u,fields:d=[],_i18n:{defaultLocale:f,omitDefaultLocaleFromPreviewPath:p}}=r??n;if(!i||!a||!s||!c||!l)return;let m=vw(n,e),h=(m?_w(n):void 0)?.fields??d,g;if(HM.test(l)&&(g=WM({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=FP(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},KM=(e,t)=>`${A(iA)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})),JM,YM,XM=o((()=>{JM=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,YM=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(JM)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})),ZM,QM,$M,eN,tN,nN,rN,iN=o((()=>{Pp(),LM(),dF(),OC(),gw(),yw(),IC(),qM(),DP(),XM(),ZM=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,QM=ln([]),$M=un(QM,e=>new Set(e.map(e=>e.id))),eN=e=>{let t=pw(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=YM(i?.pattern),s=i?.value===void 0?[]:Array.isArray(i.value)?i.value:[i.value],c;if(n===`entry`){let n=t._file?.fullPathRegEx;c=n?e=>n.test(Object.values(e.locales)[0]?.path??``):t=>UM(t).some(({name:t})=>t===e)}else{let t=new Set(A(CC).filter(({collectionName:t})=>t===e).flatMap(({filePathMap:e})=>e?Object.values(e):[]));c=e=>{let n=Object.values(e.locales)[0]?.path;return!!n&&t.has(n)}}return A(wC).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=EP({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},tN=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=bP({collectionName:n,fileName:l,valueMap:i,keyPath:a,isIndexFile:s});if(!u)return!1;let d=e.startsWith(`blob:`),f={entry:r,collectionName:n,fileName:l},{widget:p=`string`}=u;if([`image`,`file`].includes(p)){let n=d?await IM({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(ZM)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await IM({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},nN=async(e,{entries:t=A(wC),newURL:n=``}={})=>{let r=A(oF)?._baseURL,i=r&&!e.startsWith(`blob:`)?e.replace(r,``):e,a=i.startsWith(`blob:`),o=!!n,s=await Promise.all(t.map(async e=>{let{locales:t}=e,r=UM(e),s=!1;for(let{content:c}of Object.values(t)){for(let[t,l]of Object.entries(c))if(!(typeof l!=`string`||!l)&&!(!a&&!l.includes(i))){for(let a of r){let r={assetURL:i,newURL:n,collectionName:a.name,entry:e,content:c,keyPath:t,value:l,isIndexFile:vw(a,e)},u=NC(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>tN({...r,collectionFile:e})))).includes(!0):await tN({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},rN=e=>{let t=_w(e);return t?!eN(e.name).some(({slug:e})=>e===t.name):!1}})),aN,oN,sN,cN,lN,Pie=o((()=>{aN=new WeakMap,oN=e=>{let t=aN.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),aN.set(e,n),n},sN=new WeakMap,cN=0,lN=e=>(sN.has(e)||(sN.set(e,cN),cN+=1),sN.get(e))})),uN,dN,fN=o((()=>{IP(),uN=e=>PP(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,dN=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})),pN,mN,hN,gN,_N=o((()=>{Vw(),Bp(),MP(),fN(),pN=(e,t,n)=>{let{slug:r,locale:i,getDisplayValue:a}=t,{content:o,locales:s,defaultLocale:c,identifierField:l}=n;if(e===`slug`)return r;if(e===`locale`)return i;let u=e.replace(/^fields\./,``);return a(u)||a(u,c)||AP(o,{identifierField:l})||AP(s[c]?.content||{},{identifierField:l})||r},mN=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=pN(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},hN=e=>[...e.matchAll(Ip)].map(e=>e[1]),gN=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=uN(n??`{{slug}}`),o=r.map(uN).join(` `),s=i.map(uN).join(` `),c=Bw([...hN(o),...hN(a),...hN(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})),vN,yN,bN,xN,SN,CN,wN,TN,EN,Fie=o((()=>{yp(),DP(),fN(),_N(),Ly(),vN=/\.(\d+)$/,yN=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=bP({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:dN(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},bN=new Map,xN=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=Iy(bN,e,()=>RegExp(`^${pp(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(vN);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index).map(({value:e})=>{let n={label:s,value:c,searchValue:l};t.forEach(([t])=>{n.label=n.label.replaceAll(`{{${t}}}`,e),n.value=n.value.replaceAll(`{{${t}}}`,e),n.searchValue=n.searchValue.replaceAll(`{{${t}}}`,e)});let{label:r,value:u,searchValue:d}=mN(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},SN=/^(.+)\.\*\.(.+)$/,CN=new Map,wN=e=>{let t=null;return e.some(([e])=>(t=e.match(SN),!!t)),t},TN=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=wN(e)??[];if(!o)return[];let c=Iy(CN,`${o}:${s}`,()=>{let e=pp(o),t=pp(s);return RegExp(`^${e}.([0-9]+).${t}$`)}),l=Object.entries(t).filter(([e])=>c.test(e)).map(([e,t])=>{let n=e.match(c);return{index:parseInt(n[1],10),value:t}}).sort((e,t)=>e.index-t.index),{_displayField:u,_valueField:d,_searchField:f}=n;return l.map(({index:n})=>{let o={label:u,value:d,searchValue:f};e.forEach(([e])=>{let r=e.match(SN);if(r){let[,i,a]=r,s=t[`${i}.${n}.${a}`]||``;o.label=o.label.replaceAll(`{{${e}}}`,s),o.value=o.value.replaceAll(`{{${e}}}`,s),o.searchValue=o.searchValue.replaceAll(`{{${e}}}`,s)}});let{label:s,value:c,searchValue:l}=mN(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},EN=({baseFieldGroups:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let o=[],s=!1;return e.forEach((e,c)=>{if(e.length===0)return;let[,l]=e[0],u={groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a},d=l.isComplexListField?TN({...u}):xN({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})),DN,Iie=o((()=>{MP(),_N(),DN=({templates:e,allFieldNames:t,context:n,fallbackContext:r})=>{let{slug:i}=n,{_displayField:a,_valueField:o,_searchField:s}=e,{content:c,locales:l,defaultLocale:u,identifierField:d}=r,f=Object.fromEntries(t.map(e=>[e,pN(e,n,r)])),p=a,m=o,h=s;return Object.entries(f).forEach(([e,t])=>{p=p.replaceAll(`{{${e}}}`,t),m=m.replaceAll(`{{${e}}}`,t),h=h.replaceAll(`{{${e}}}`,t)}),(!p||p.trim()===``)&&(p=AP(c,{identifierField:d})||AP(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})),ON,Lie=o((()=>{yw(),DP(),Fie(),Iie(),_N(),ON=({refEntry:e,content:t,collection:n,templates:r,allFieldNames:i,hasListFields:a,collectionName:o,fileName:s,locale:c,identifierField:l,defaultLocale:u})=>{let{slug:d,locales:f}=e,p={collectionName:o,fileName:s,isIndexFile:vw(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>wP({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[DN({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let{results:g,hasProcessedListFields:_}=EN({baseFieldGroups:yN(i,p),content:t,templates:r,allFieldNames:i,context:m,fallbackContext:h});if(_)return g;let{_displayField:v,_valueField:y,_searchField:b}=r,{label:x,value:S,searchValue:C}=mN({label:v,value:y,searchValue:b},i.filter(e=>!e.includes(`*`)),m,h);return[{label:x||``,value:S||d,searchValue:C||x||``}]}})),kN,AN,jN,Rie=o((()=>{kN=/^{{fields\.(.+?)}}$/,AN=(e,t,n=void 0)=>e.map(({field:e,values:r,exclude:i})=>({field:e,exclude:i,values:r.flatMap(e=>{if(typeof e!=`string`)return[e];if(e===`{{slug}}`)return n?[n]:[];let r=e.match(kN);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),jN=(e,t,n=void 0,r=[])=>e.filter(e=>!n||n===e.slug).map(e=>{let{content:n}=e.locales[t]??e.locales._default??{};return{refEntry:e,hasContent:!!n&&Object.keys(n).length>0,content:n??{}}}).filter(({hasContent:e,content:t,refEntry:n})=>e&&r.every(({field:e,values:r,exclude:i=!1})=>{if(r.length===0)return!0;let a=e===`slug`,o=e.replace(/^fields\./,``),s=a?n.slug:t[o];return i?!r.includes(s):r.includes(s)}))})),MN,NN,PN,FN=o((()=>{yp(),gw(),iN(),Pie(),Lie(),Rie(),_N(),MN=new Map,NN=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=AN(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${lN(t)}|${lN(n)}`}|${l}`,d=MN.get(u);if(d)return d;let f=pw(a);if(!f)return MN.set(u,[]),[];let{_type:p,_i18n:{defaultLocale:m}}=f,{identifier_field:h=`title`}=p===`entry`?f:{},g=gN(t,h),{allFieldNames:_,hasListFields:v}=g,y=jN(n,e,o,c).flatMap(({refEntry:t,content:n})=>ON({refEntry:t,content:n,collection:f,templates:g,allFieldNames:_,hasListFields:v,collectionName:a,fileName:o,locale:e,identifierField:h,defaultLocale:m})).sort((e,t)=>vp(e.label,t.label));return MN.set(u,y),y},PN=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=oN(NN({locale:r,fieldConfig:e,refEntries:eN(a)})),s=e=>o.get(e)||e;return i?Object.entries(t).filter(([e])=>e.match(`^${pp(n)}\\.\\d+$`)).map(([,e])=>e).map(s):s(t[n])}})),IN,LN,RN,zN=o((()=>{uc(),IN=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),LN=e=>lc(Object.fromEntries(Object.entries(cc(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),RN=e=>e.replace(/"/g,`'`)})),BN,VN,HN,UN,WN=o((()=>{BN=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,VN=new RegExp(BN,`g`),HN=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,UN=RegExp(`${BN.source}|${HN.source}`)})),GN,KN,qN,JN=o((()=>{Qb(),GN=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),KN={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},qN=(e,t)=>Zb(e.replace(`<a>`,`<a href="${GN(t)}" target="_blank" rel="noopener noreferrer">`),KN)})),YN,XN,ZN,QN,$N=o((()=>{X(),zN(),WN(),JN(),YN=new Map,XN={id:`image`,label:`Image`,fields:[{name:`src`,label:`Source`,widget:`image`},{name:`alt`,label:`Alt Text`,required:!1},{name:`title`,label:`Title`,required:!1}],pattern:BN,toBlock:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return t?`}"`:``})`:``},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``}=e;return`<img src="${GN(t)}" alt="${GN(n)}" title="${GN(r)}">`}},ZN={id:`linked-image`,label:`Image`,fields:[...XN.fields,{name:`link`,label:`Link`,required:!1}],pattern:UN,fromBlock:e=>{let{src:t,alt:n,title:r,src2:i,alt2:a,title2:o,link:s}=e.groups??{};return{src:(t||i||``).trim(),alt:(n||a||``).trim(),title:(r||o||``).trim(),link:(s||``).trim()}},toBlock:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=t?`}"`:``})`:``;return a&&i?`[${a}](${i})`:a},toPreview:e=>{let{src:t=``,alt:n=``,title:r=``,link:i=``}=e,a=`<img src="${GN(t)}" alt="${GN(n)}" title="${GN(r)}">`;return i?`<a href="${GN(i)}">${a}</a>`:a}},QN=e=>{if(YN.has(e))return YN.get(e);let t={icon:`image`,label:Y(`editor_components.image`),fields:[{name:`src`,label:Y(`editor_components.src`),widget:`image`},{name:`alt`,label:Y(`editor_components.alt`),required:!1},{name:`title`,label:Y(`editor_components.title`),required:!1}]};return{image:{...XN,...t},"linked-image":{...ZN,...t,fields:[...t.fields,{name:`link`,label:Y(`editor_components.link`),required:!1}]}}[e]}})),eP,tP,nP,rP=o((()=>{eP=/^\d+$/,tP=e=>eP.test(e),nP=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),iP,aP,oP,sP,zie=o((()=>{Vw(),rP(),iP=new Map,aP=new WeakMap,oP=e=>{let t=aP.get(e);return t===void 0&&(t=JSON.stringify(e),aP.set(e,t)),t},sP=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=zw(i),o;if(r){let e=`${n}.`;o=Object.entries(t).filter(([t])=>t.startsWith(e)&&tP(t.slice(e.length))).map(([,e])=>e)}let s=oP(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=iP.get(c);if(l)return l;let u=e=>i.find(t=>t.value===e)?.label||e;if(r){let e=a?o.map(u):o;return iP.set(c,e),e}let d=t[n],f=a?u(d):d;return iP.set(c,f),f}})),cP,lP,uP,dP=o((()=>{Pp(),dF(),cP=e=>{if(!e)return;let t=Object.values(e);if(t.some(e=>e.config?.multiple===!0))return!0;if(t.some(e=>e.config?.multiple===!1))return!1},lP=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},uP=e=>{let t=A(oF);return e.multiple??cP(e.media_libraries)??lP(e.media_library)??cP(t?.media_libraries)??lP(t?.media_library)??!1}})),fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP,wP,TP,EP,DP=o((()=>{yp(),bC(),gw(),yw(),IC(),Cw(),pC(),FN(),$N(),zie(),$S(),dP(),Ly(),rP(),fP=/^(.*?)<([^>]+)>(.*)$/,pP=/(?:^|\.)(\d+)(?:\.|$)/,mP=/\.\d+$/,hP=new Map,gP=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},_P=e=>{let t=e.widget??`string`;return bw.includes(t)?uP(e):xw.includes(t)?!!e.multiple:!1},vP=e=>{let t=e.match(fP);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},yP=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=vP(t),{widget:c=`text`}=e,l=s??i,u=tP(o),d=o===`*`;if((u||d)&&xw.includes(c))return{field:_P(e)?e:void 0,explicitType:l};let{field:f}=e,{fields:p}=e,{types:m,typeKey:h=`type`}=e;if(f){let e=u||d?n[r+1]:void 0;return{field:!e||f.name===e||f.widget===`object`&&`fields`in f&&f.fields?.some(t=>t.name===e)?f:void 0,explicitType:l}}if(p&&(u||d))return{field:e,explicitType:l};if(p&&!u&&o!==``)return{field:p.find(({name:e})=>e===o),explicitType:l};if(m&&(u||d)){let e=l??a[[n.slice(0,r).join(`.`),o,h].join(`.`)];return{field:m.find(({name:t})=>t===e),explicitType:d?void 0:l}}if(m&&t!==h&&o!==h&&o!==``){let e=l??a[[n.slice(0,r).join(`.`),h].join(`.`)];return{field:m.find(({name:t})=>t===e)?.fields?.find(({name:e})=>e===o),explicitType:void 0}}return{field:void 0,explicitType:l}},bP=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=pP.test(a)?JSON.stringify(e):`${t}|${n??``}|${r??``}|${a}|${o?`1`:`0`}`;if(hP.has(s))return hP.get(s);let c=pw(t),l=c&&n?jC(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){hP.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?_w(c):void 0,f=r?QN(r)?.fields??[]:d?.fields??u,p=a.split(`.`),m,h;if(p.forEach((e,t)=>{if(t===0){let{cleanKey:t,typeName:n}=vP(e);m=f.find(({name:e})=>e===t),!m&&d?.fields&&(m=u.find(({name:e})=>e===t)),n&&(h=n)}else if(m){let n=yP({field:m,key:e,keyPathArray:p,segmentIndex:t,pendingExplicitType:h,valueMap:i});m=n.field,h=n.explicitType}}),h&&m&&`types`in m){let{types:e}=m;m=e.find(({name:e})=>e===h)}return hP.set(s,m),m},xP=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,SP=new Map,CP=new Map,wP=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=bP({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:o}),c=n[r];if(c===void 0&&a?.length)return``;if(s?.widget===`datetime`&&(a?.some(e=>hC.test(e))||(c=fC({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=PN({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=sP({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;if(!(e||t)){let e=Iy(SP,r,()=>RegExp(`^${pp(r)}${String.raw`\.\d+$`}`));c=ZS(i).format(Object.entries(n).filter(([t,n])=>e.test(t)&&typeof n==`string`&&!!n).map(([,e])=>e))}}if(s?.widget===`number`){let{value_type:e=`int`}=s;if(e===`int`||e===`float`){let e=KS(i),t=CP.get(e);t||(t=Intl.NumberFormat(e),CP.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=ZS(i).format(c)),a?.length&&(c=yC({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},TP=({valueMap:e,locale:t,keyPath:n,keyPathRegex:r,getFieldArgs:i})=>{let a=[`${n}.title`,`${n}.name`,...Object.keys(e)].find(t=>{let n=e[t];if(!r.test(t)||!(typeof n==`string`&&n.trim()||typeof n==`number`&&!Number.isNaN(n)))return!1;let a=bP({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?wP({...i,keyPath:a,locale:t}):``},EP=({entry:e,locale:t,collectionName:n,key:r,resolveRef:i=!0})=>{let{slug:a,locales:o,commitAuthor:{name:s,login:c,email:l}={},commitDate:u}=e;if(r===`slug`)return a;if(r===`commit_author`)return s||c||l;if(r===`commit_date`)return u;let{content:d}=o[t]??{};if(d===void 0)return;let f=pw(n);if(f){if(i){let i=bP({collectionName:n,keyPath:r,isIndexFile:vw(f,e)});if(i?.widget===`relation`)return PN({fieldConfig:i,valueMap:d,keyPath:r,locale:t})}return d[r]}}})),OP,kP,AP,Bie,Vie,jP,MP=o((()=>{Dy(),yp(),Qb(),MS(),Qne(),Bp(),bC(),yw(),DP(),OP=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,kP=(e,{allowMarkdown:t=!1}={})=>(e=AS(e),t&&(e=BS(e)),e=Zb(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=BS(e)),e.trim()),AP=(e,{identifierField:t=`title`,useBody:n=!0}={})=>{let r=[t,`title`,`name`,`label`].find(t=>typeof e[t]==`string`&&!!e[t].trim());return r?e[r].trim():n&&typeof e.body==`string`?e.body.match(OP)?.groups?.header??``:``},Bie=(e,t)=>{let{slug:n,entryPath:r,basePath:i,locales:a,commitDate:o,commitAuthor:s}=t;if(e===`slug`)return n;if(e===`locales`)return a.sort((e,t)=>e.localeCompare(t)).join(`, `);if(e===`dirname`){let e=r.replace(/[^/]+$/,``);if(i){let t=i.endsWith(`/`)?i:`${i}/`;e.startsWith(t)?e=e.slice(t.length):e.startsWith(i)&&(e=e.slice(i.length))}return hp(e)}if(e===`filename`)return r.split(`/`).pop().split(`.`).shift();if(e===`extension`)return r.split(`/`).pop().split(`.`).pop();if(e===`commit_date`)return o??``;if(e===`commit_author`)return s?.name||s?.login||s?.email},Vie=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a}=t,[o,...s]=e.split(vC),c=o.replace(/^fields\./,``),l={collectionName:r,valueMap:n,keyPath:c},u=Bie(o,i);if(u===void 0&&(u=s.some(e=>hC.test(e)||_C.test(e))?n[c]:wP({...l,locale:a})),u===void 0)return``;if(u instanceof Date&&!s.length){let{year:e,month:t,day:n}=Ey({date:u});return`${e}-${t}-${n}`}return s.length&&(u=yC({fieldConfig:bP({...l}),value:u,transformations:s,locale:a})),String(u)},jP=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(vw(e,t))return _w(e)?.label;let{_type:a,name:o,_i18n:{defaultLocale:s}}=e,{_file:{basePath:c}={},identifier_field:l=`title`,summary:u}=a===`entry`?e:{},{locales:d,slug:f,commitDate:p,commitAuthor:m}=t,{content:h={},path:g=``}=d[n??s]??Object.values(d)[0]??{};if(!r||!u)return kP(AP(h,{identifierField:l})||f.replaceAll(`-`,` `),{allowMarkdown:i});let _={content:h,collectionName:o,replaceSubContext:{slug:f,entryPath:g,basePath:c,locales:Object.keys(d),commitDate:p,commitAuthor:m},defaultLocale:s};return kP(u.replace(Ip,(e,t)=>Vie(t,_)),{allowMarkdown:i})}})),Hie,Uie,Wie,Gie,Kie,qie=o((()=>{fp(),Bp(),MP(),Hie=(e,t)=>Rp.includes(e)?t[e]:void 0,Uie=e=>{switch(e){case`uuid`:return lp();case`uuid_short`:return lp(`short`);case`uuid_shorter`:return lp(`shorter`);default:return}},Wie=(e,t,n,r)=>{if(!(e!==`slug`||!t))return n===`preview_path`&&r?``:t},Gie=(e,t,n)=>{if(!t)return``;switch(e){case`dirname`:{let e=t.replace(n??``,``),r=e.lastIndexOf(`/`);return r>0?e.substring(0,r):``}case`filename`:return t.split(`/`).pop().split(`.`).shift();case`extension`:return t.split(`/`).pop().split(`.`).pop();default:return}},Kie=(e,t,n)=>e.startsWith(`fields.`)?t[e.replace(/^fields\./,``)]:e===`slug`?AP(t,{identifierField:n}):t[e]})),Jie,Yie=o((()=>{Bp(),bC(),Jie=(e,t,n)=>{let r=!1;return e.forEach((i,a)=>{let{defaultValue:o}=i.match(gC)?.groups??{};if(o!==void 0){r=!0;let{innerTag:i}=o.match(zp)?.groups??{};i!==void 0&&(e[a]=`default('${n(i,t)??``}')`)}}),{transformations:e,hasDefaultTransformation:r}}})),NP,Xie,Zie=o((()=>{fp(),Vy(),qie(),Yie(),bC(),DP(),NP=(e,t)=>{let{type:n,content:r,currentSlug:i,entryFilePath:a,locale:o,dateTimeParts:s,identifierField:c,basePath:l,isIndexFile:u=!1}=t,d=Hie(e,s);if(d!==void 0)return d;let f=Wie(e,i,n??``,u);if(f!==void 0)return f;let p=Uie(e);if(p!==void 0)return p;if(n===`preview_path`&&e===`locale`)return o;if(n===`preview_path`||n===`media_folder`){let t=Gie(e,a,l);if(t!==void 0)return t}return Kie(e,r,c)},Xie=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,[i,...a]=e.split(vC),o=NP(i,n),{transformations:s,hasDefaultTransformation:c}=Jie(a,n,NP);if(o===void 0&&!c)return lp(`short`);let{type:l,locale:u}=n;return s.length&&(o=yC({fieldConfig:bP({...r,keyPath:i}),value:o,transformations:s,locale:u})),l?String(o):By(String(o),{locale:u,maxLength:1/0})}})),PP,Qie,FP,IP=o((()=>{Dy(),yp(),Pp(),Bp(),Zie(),dF(),iN(),_E(),PP=e=>Fp.test(e),Qie=(e,t)=>eN(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),FP=(e,t)=>{let{collection:n,content:r,currentSlug:i,locale:a,dateTimeParts:o,isIndexFile:s=!1}=t,{_type:c,name:l}=n,{identifier_field:u=`title`,slug_length:d=void 0,_file:{basePath:f}={}}=c===`entry`?n:{},p=A(oF)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??Ey({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=e.replace(Ip,(e,t)=>Xie(t,g)).trim();return i?_:(typeof m==`number`&&(_=mp(_,m,{ellipsis:``}).replace(/-$/,``)),dE(_,Qie(l,a)))}})),LP,RP,zP,$ie,BP,VP,eae,tae,nae=o((()=>{Mp(),yp(),IP(),gw(),IC(),LP=[],RP=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),zP=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),$ie=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r=!1,mediaFolder:i,publicFolder:a,baseFolder:o,globalFolders:s})=>{if(RP(i)){if(!s)return;i=zP(i,s)}if(a===void 0)a=i;else if(RP(a)){if(!s)return;a=zP(a,s)}i=i.replace(/^\.(?:\/|$)/,``);let c=!i.startsWith(`/`);return{collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r,internalPath:hp(c?o??``:i),internalSubPath:c?hp(i):void 0,publicPath:/^($|[.@])/.test(a)?a:`/${hp(a)}`,entryRelative:c,hasTemplateTags:PP(i)}},BP=e=>{if(e.mediaFolder===void 0)return;let t=$ie(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||LP.push(t)},VP=({collectionName:e,files:t,globalFolders:n})=>{AC(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;BP({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:wp(i).dirname,globalFolders:n})})},eae=({fieldMediaFolders:e,validCollections:t,globalFolders:n})=>{e.forEach(({fieldConfig:e,context:r})=>{let i=r.collection;(i.name===`_singletons`||t.some(e=>e.name===i.name))&&BP({collectionName:i.name,fileName:r.collectionFile?.name,mediaFolder:e.media_folder,publicFolder:e.public_folder,baseFolder:`folder`in i?i.folder:void 0,typedKeyPath:r.typedKeyPath,isIndexFile:r.isIndexFile,globalFolders:n})})},tae=(e,t=[])=>{LP.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a}=e,o=n!==void 0,s=o?hp(n).replace(/^\.$/,``):``,c=o?r?`/${hp(r)}`.replace(/^\/@/,`@`):`/${s}`:``,l={collectionName:void 0,internalPath:void 0,internalSubPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1},u=o?{...l,internalPath:s,publicPath:c}:void 0,d=o?{globalMediaFolder:s,globalPublicFolder:c}:void 0,f=sw({collections:i});f.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:s}=e;BP({collectionName:t,mediaFolder:o&&a===void 0&&i!==void 0?``:a,publicFolder:s,baseFolder:r,entryPath:i,globalFolders:d}),n?.length&&VP({collectionName:t,files:n,globalFolders:d})}),a?.length&&VP({collectionName:`_singletons`,files:a,globalFolders:d}),eae({fieldMediaFolders:t,validCollections:f,globalFolders:d}),LP.sort((e,t)=>vp(e.internalPath,t.internalPath));let p=[];return u&&p.push(u),p.push(...LP),p.length&&p.unshift(l),p}})),rae,HP,UP,iae,aae,oae,sae,cae=o((()=>{yp(),gw(),IC(),$S(),ew(),rae=({collection:e,file:t})=>{let n=hp(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=$C(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,QS({_i18n:r,locale:e,path:n})]))},HP=(e,t)=>{if(kC(t))return{collectionName:e.name,fileName:t.name,filePathMap:rae({collection:e,file:t})}},UP=(e,t)=>vp(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),iae=({collections:e})=>sw({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=hp(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=$C(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>vp(e.folderPath,t.folderPath)),aae=({collections:e})=>sw({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>HP(e,t))).filter(e=>!!e).sort(UP),oae=({singletons:e})=>{let t=Array.isArray(e)?AC(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>HP(n,e)).filter(e=>!!e).sort(UP)},sae=e=>[...iae(e),...aae(e),...oae(e)]})),lae,uae,dae,fae,pae,WP,mae=o((()=>{X(),f(),lae=l(rte(),1),RT(),xD(),uae=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`],dae=async({href:e,type:t=`application/yaml`},{manualInit:n=!1}={})=>{let r;if(!uae.includes(t))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_unsupported_type`))});let i=n?`config.error.fetch_failed_with_manual_init`:`config.error.fetch_failed`;try{let t=new URL(e,window.location.href);t.searchParams.set(`_`,Date.now().toString()),r=await fetch(t)}catch(e){throw Error(Y(i),{cause:e})}let{ok:a,status:o}=r;if(!a)throw Error(Y(i),{cause:Error(Y(`config.error.fetch_failed_not_ok`,{values:{status:o}}))});let s;try{if(t===`application/json`)s=await r.json();else{let e=await r.text();s=t===`application/toml`?MT(e):NT(e,{merge:!0,maxAliasCount:-1})}}catch(e){throw Error(Y(`config.error.parse_failed`),{cause:e})}if(!u(s))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_invalid_object`))});return s},fae=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},pae=e=>{let{origin:t}=window.location;return e.every(({href:e})=>yD(e,t))},WP=async({manualInit:e=!1}={})=>{let t=[...document.querySelectorAll(`link[rel="cms-config-url"]`)].map(({href:e,type:t})=>({href:e,type:t}));if(t.length||t.push({href:fae(window.location.pathname)}),!pae(t))throw Error(Y(`config.error.insecure_urls`,{values:{count:t.length}}));let n=await Promise.all(t.map(t=>dae(t,{manualInit:e})));return n.length===1?n[0]:lae.default.all(n)}})),GP,KP,hae,gae,qP,JP=o((()=>{X(),$S(),GP=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,typedKeyPath:c}=i,{errors:l,warnings:u}=a,d=[];o&&d.push(Y(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&d.push(Y(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&d.push(Y(`config.error_locator.field`,{values:{field:c}}));let f=e===`error`?l:u,p=Mh.current,m=d.length?`${ZS(p).format(d)}: `:``,h=Y(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${Y(`config.${r}`)}`:``}`)},KP=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&GP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},hae=/^[^\s.*:<>]+$/,gae=e=>hae.test(e),qP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return GP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return gae(e)?n[e]===1?(GP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(GP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),_ae,vae,yae=o((()=>{X(),f(),oA(),zC(),JP(),_ae=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],vae=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!u(n)){r.add(Y(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(Y(`config.error.missing_backend_name`));return}if(!tA.includes(a)){let e=eA[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=Y(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${i} ${Y(`config.error.unsupported_backend_suggestion`)}`);return}if(a in nA){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(Y(`config.error.no_auth_methods`));let d=!c||c.includes(`token`);o===void 0&&r.add(Y(`config.error.missing_repository`)),(typeof o!=`string`||!/^[^/:]+(?:\/[^/:]+)+$/.test(o))&&r.add(Y(`config.error.invalid_repository`)),l===`implicit`&&r.add(Y(`config.error.oauth_implicit_flow`).replace(`BACKEND_NAME`,a)),a===`github`&&l===`pkce`&&r.add(Y(`config.error.github_pkce_unsupported`)),a===`gitlab`&&l===`pkce`&&!u&&r.add(Y(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(Y(`config.warning.oauth_no_app_id`)):r.add(Y(`config.error.oauth_no_app_id`))),s!==void 0&&RC(`automatic_deployments`),KP({UNSUPPORTED_OPTIONS:_ae,config:n,context:{cmsConfig:e},collectors:t})}}})),bae,YP,XP,xae=o((()=>{UC(),bae=[`code`,`markdown`,`richtext`,`text`],YP=[`yaml`,`toml`,`json`],XP=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&bae.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(BC.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return VC.includes(i)?!1:i!==e}return a===`frontmatter`?!Sre.includes(i):YP.includes(a)?YP.includes(i)&&i!==a:!1}})),Sae,Cae,wae=o((()=>{JP(),Sae=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Cae=e=>{KP({...e,UNSUPPORTED_OPTIONS:Sae})}})),Tae,ZP,Eae=o((()=>{JP(),Tae=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],ZP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),KP({...e,UNSUPPORTED_OPTIONS:Tae})}})),Dae,Oae,kae=o((()=>{tF(),JP(),Dae=(e,t,n)=>e===`object`?!0:(GP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Oae=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){GP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&$P({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&eF(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};qP({...c,name:e,index:a,context:o})&&Dae(t,o,r)&&i&&eF(i,o,r)})}})),Aae,jae,Mae=o((()=>{JP(),Aae=[{prop:`valueType`,newProp:`value_type`}],jae=e=>{KP({...e,UNSUPPORTED_OPTIONS:Aae})}})),Nae,Pae=o((()=>{tF(),JP(),Nae=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){GP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){GP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&eF(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};qP({...s,name:e,index:i,context:a})&&t&&eF(t,a,r)})}})),Fae,Iae,Lae=o((()=>{JP(),Fae=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Iae=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||GP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&GP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else GP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});KP({...e,UNSUPPORTED_OPTIONS:Fae}),r.relationFields.add({fieldConfig:i,context:n})}})),Rae,QP,zae=o((()=>{JP(),Rae=[{prop:`editorComponents`,newProp:`editor_components`}],QP=e=>{KP({...e,UNSUPPORTED_OPTIONS:Rae})}})),Bae,$P,eF,tF=o((()=>{wae(),Eae(),kae(),Mae(),Pae(),Lae(),zae(),JP(),Bae={datetime:Cae,file:ZP,image:ZP,list:Oae,markdown:QP,number:jae,object:Nae,relation:Iae,richtext:QP},$P=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};Bae[i]?.(o),i===`date`&&GP({...o,strKey:`date_field_type`})},eF=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;qP({...r,name:a,index:i})&&$P({config:e,context:t,collectors:n})})}})),Vae,nF,Hae=o((()=>{Mp(),xae(),tF(),JP(),Vae=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=wp(i);XP(c,a,o)&&GP({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||GP({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&GP({strKey:`collection_file_i18n_required`,context:e,collectors:t}),eF(o,e,t)},nF=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};qP({...a,name:o,index:i,context:s})&&Vae(s,t)})}})),Uae,Wae,Gae,Kae,qae=o((()=>{X(),zC(),Hae(),xae(),tF(),JP(),Uae=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Wae=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;XP(i,a)&&GP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&RC(`slug_length`),KP({UNSUPPORTED_OPTIONS:Uae,config:r,context:e,collectors:t}),o?.length||GP({strKey:`collection_no_fields`,context:e,collectors:t}),eF(o,e,t),s&&eF(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&GP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Gae=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){GP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){GP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?nF({cmsConfig:e,collection:t},n):a&&Wae({cmsConfig:e,collection:t},n)},Kae=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(Y(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};qP({...a,name:i,index:r,context:o})&&Gae(o,t)}),Array.isArray(r)&&nF({cmsConfig:e,collection:{name:`_singletons`,label:Y(`singletons`),label_singular:Y(`singleton`),files:r}},t)}})),Jae,Yae=o((()=>{X(),Ej(),Jae=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!Tj.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>Tj.includes(e))&&o.add(Y(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(Y(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(Y(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(Y(`config.error.public_folder_absolute_url`))):o.add(Y(`config.error.invalid_public_folder`)))}})),Xae,Zae,Qae=o((()=>{yae(),qae(),Yae(),JP(),Xae=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],Zae=(e,t)=>{vae(e,t),Jae(e,t),Kae(e,t),KP({UNSUPPORTED_OPTIONS:Xae,config:e,context:{cmsConfig:e},collectors:t})}})),$ae,rF,eoe,iF,aF,oF,sF,cF,lF,uF,toe,dF=o((()=>{X(),fp(),f(),yp(),$ae=l(rte(),1),Pp(),Ty(),Yp(),nae(),cae(),mae(),Qae(),OC(),AO(),{DEV:rF,VITE_SITE_URL:eoe}={DEV:!1},iF=rF?eoe||`http://localhost:5174`:void 0,aF={},oF=ln(),sF=ln(),cF=ln([]),lF=un([oF,cF],([e,t])=>!!e||!!t.length),uF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},toe=async e=>{oF.set(void 0),cF.set([]),Object.assign(uF,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(Y(`config.error.no_secure_context`));let t;if(e){if(!u(e))throw Error(Y(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,$ae.default)(await WP({manualInit:!0}),t))}else t=await WP();if(Object.assign(aF,t),Zae(t,uF),uF.errors.size)throw uF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);uF.warnings.size&&uF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(rF?iF:window.location.origin),n._baseURL=_p(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),oF.set(n),sF.set(await dp(Cy(n)))}catch(e){cF.set(uF.errors.size?[...uF.errors]:[e.name===`Error`?e.message:Y(`config.error.unexpected`)]),console.error(e,e.cause)}},oF.subscribe(e=>{if(kO.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,uF)),!e)return;let t=sae(e),n=tae(e,[...uF.mediaFields]);CC.set(t),Vp.set(n),kO.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),fF,pF=o((()=>{Pp(),dF(),fF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(oF),r=e==="default"?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n===!1?!1:i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t===!1?!1:i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})),mF,noe,hF=o((()=>{f(),pF(),oM(),yM(),mF=({fieldConfig:e}={})=>{let t=fF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:u(a)?a:void 0}}},noe=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(Qj.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&aM.includes(t)?t:`webp`,s=await _M(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0}),c=s.type===`image/${o}`?eM.test(e.name)?e.name.replace(eM,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await vM(e)],e.name,{type:e.type}):e}})),gF,_F=o((()=>{hF(),_E(),gF=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=fE(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await noe(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),roe,vF,yF,bF,xF,SF,ioe,CF,wF,TF,EF,DF,aoe,OF,ooe,soe,kF,AF,jF,coe,MF,NF,PF=o((()=>{Mp(),yp(),uc(),Pp(),Yp(),_F(),IP(),Bp(),gw(),yw(),IC(),qM(),hF(),_E(),roe=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,vF=ln([]),yF={source:void 0,map:new Map},bF=()=>{let e=A(vF);return e!==yF.source&&(yF.source=e,yF.map=new Map(e.map(e=>[e.path,e]))),yF.map},xF=e=>bF().get(e),SF=ln([]),ioe=un(SF,e=>new Set(e.map(e=>e.path))),CF=ln(),wF=ln(),TF=ln({folder:void 0,files:[]}),EF=ln(),DF=ln(),aoe=un([TF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=mF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>gF(e,i)));n(()=>({processing:!1,undersizedFiles:e.filter(({oversized:e})=>!e).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),OF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Gp({collectionName:n.name,fileName:r?.name,typedKeyPath:i}):void 0,c=s?.entryRelative?s.internalSubPath??``:(r??n).media_folder,{path:l,content:u}=a[o in a?o:Object.keys(a)[0]];if(!l||!u)return;let{entryFolder:d}=l.match(roe).groups,f=e.replace(/^\.\//,``),p=mE(pE([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return bF().get(p)},ooe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Gp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Gp({collectionName:n,fileName:r}):void 0,n?Gp({collectionName:n}):void 0,A(Hp)].filter(e=>!!e&&!e.hasTemplateTags),a;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=bF().get(pE([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??bF().get(e)}return UM(t).flatMap(n=>{let r=NC(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>OF({...a,file:e})):OF({...a})}).filter(Boolean)[0]??bF().get(e)},soe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=bF().get(hp(e));if(a)return a;let{dirname:o=``,basename:s}=wp(e),c;return[i?Gp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Gp({collectionName:n,fileName:r}),Gp({collectionName:n}),A(Hp),A(Vp).findLast(e=>{let t=e.publicPath??``,n=pp(t).replace(Lp,`.+?`);return o.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&Fp.test(i)){let e=r?pw(r):t?UM(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=FP(i,{type:`media_folder`,collection:e,content:cc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:vw(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=pE([i,s]),l=bF().get(a);return l&&(c=l),!!l}),c},kF=e=>!/^[/@]/.test(e),AF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=cE(e.split(`#`)[0]);return kF(a)?ooe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):soe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},jF=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,coe=e=>A(vF).filter(t=>jF(t,e)),MF=e=>A(vF).filter(t=>wp(t.path).dirname===e),Up.subscribe(()=>{CF.set(void 0)}),NF=(e,t)=>{if(!t.length||!e.length)return[];let n=new Set(t.map(({name:e})=>e.normalize().toLowerCase()));return e.filter(e=>n.has(e.name.normalize().toLowerCase()))}})),FF,IF,LF=o((()=>{Mp(),yp(),Pp(),PF(),Yp(),LM(),gw(),yw(),DP(),FF=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${pp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await IM({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},IF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=pw(t);if(!a)return[];let o=vw(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||kF(a))){let s=bP({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=AF({value:a,entry:e,collectionName:t,fileName:n});if(c&&qp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Gp({collectionName:t,fileName:n})?.entryRelative){let t=wp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(vF).forEach(n=>{let r=wp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),RF,loe,zF,uoe,BF,VF=o((()=>{f(),uc(),lee(),LF(),vD(),RF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],loe=[`preSave`,`prePublish`],zF=new Set,uoe=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>_d({data:lc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:lc(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),BF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=_D.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:d}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==d),{content:h,path:g}=p[d],_=IF({entry:n,collectionName:c,fileName:l});for(let t of zF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:uoe({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(loe.includes(e)&&Ql(n)){let e=n.toJS();u(e.data)&&u(e.i18n)?(p[d].content=cc(e.data),m.forEach(t=>{u(e.i18n[t]?.data)&&(p[t].content=cc(e.i18n[t].data))})):p[d].content=cc(e)}}}})),HF,UF,WF,GF,KF,qF,JF,YF,doe,XF=o((()=>{Pp(),HF=ln(!1),UF=ln(!1),WF=ln({show:!1,multiple:!1}),GF=ln({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),KF=ln(null),qF=ln(null),JF=ln(),YF=new Set,doe=new Map})),foe=o((()=>{})),Z=o((()=>{foe(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),poe,moe=o((()=>{poe=`{"ok":"OK","cancel":"Cancel","close":"Close","clear":"Clear","insert":"Insert","update":"Update","remove":"Remove","collapse":"Collapse","expand":"Expand","dismiss":"Dismiss","calendar":{"year":"Year","previous_decade":"Previous Decade","next_decade":"Next Decade","month":"Month","previous_month":"Previous Month","next_month":"Next Month","today":"Today"},"split_button":{"x_options":"{$name} Options","more_options":"More Options"},"combobox":{"select_an_option":"Select an option…","filter_options":"Filter Options","no_matching_options":"No matching options found"},"number_input":{"decrease":"Decrease","increase":"Increase"},"password_input":{"show_password":"Show Password","hide_password":"Hide Password"},"secret_input":{"show_secret":"Show Secret","hide_secret":"Hide Secret"},"select_tags":{"selected_options":"Selected options","remove_x":"Remove {$name}"},"text_editor":{"text_editor":"Text Editor","code_editor":"Code Editor","text_style_options":"Text Style Options","show_text_style_options":"Show Text Style Options","paragraph":"Paragraph","heading_1":"Heading 1","heading_2":"Heading 2","heading_3":"Heading 3","heading_4":"Heading 4","heading_5":"Heading 5","heading_6":"Heading 6","bulleted_list":"Bulleted List","numbered_list":"Numbered List","blockquote":"Block Quote","code_block":"Code Block","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","code":"Code","link":"Link","insert_link":"Insert Link","update_link":"Update Link","text":"Text","url":"URL","edit_in_markdown":"Edit in Markdown","converter_error":"There was an error while enabling rich text mode. Please use the plain text editor instead.","language":"Language","plain_text":"Plain Text"}}`})),hoe,goe=o((()=>{hoe=`{"ok":"OK","cancel":"キャンセル","close":"閉じる","clear":"クリア","insert":"挿入","update":"更新","remove":"削除","collapse":"折り畳む","expand":"広げる","dismiss":"閉じる","calendar":{"year":"年","previous_decade":"前の 10 年","next_decade":"次の 10 年","month":"月","previous_month":"前月","next_month":"翌月","today":"今日"},"split_button":{"x_options":"{$name} オプション","more_options":"その他のオプション"},"combobox":{"select_an_option":"オプションを選択…","filter_options":"オプションを絞り込み","no_matching_options":"一致するオプションは見つかりませんでした"},"number_input":{"decrease":"減らす","increase":"増やす"},"password_input":{"show_password":"パスワードを表示","hide_password":"パスワードを隠す"},"secret_input":{"show_secret":"シークレットを表示","hide_secret":"シークレットを隠す"},"select_tags":{"selected_options":"選択済みのオプション","remove_x":"{$name} を削除"},"text_editor":{"text_editor":"テキストエディター","code_editor":"コードエディター","text_style_options":"テキストスタイルオプション","show_text_style_options":"テキストスタイルオプションを表示","paragraph":"段落","heading_1":"見出し 1","heading_2":"見出し 2","heading_3":"見出し 3","heading_4":"見出し 4","heading_5":"見出し 5","heading_6":"見出し 6","bulleted_list":"番号なしリスト","numbered_list":"番号付きリスト","blockquote":"ブロック引用","code_block":"コードブロック","bold":"太字","italic":"斜体","strikethrough":"取り消し線","code":"コード","link":"リンク","insert_link":"リンクを挿入","update_link":"リンクを更新","text":"テキスト","url":"URL","edit_in_markdown":"マークダウンで編集","converter_error":"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。","language":"言語","plain_text":"プレーンテキスト"}}`})),_oe,voe=o((()=>{moe(),goe(),X(),Ty(),_oe=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":poe,"../locales/ja.yaml":hoe})).forEach(([e,t])=>{Oh(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:Sy(t)})}),Nh({fallbackLocale:e,initialLocale:t})}}));function ZF(e,t){G(e,xoe);let n=Js(t,yoe);var r=boe();vs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-1e54a1h`);var i=F(r,!0);D(r),R(()=>U(i,t.name)),H(e,r)}var yoe,boe,xoe,QF=o((()=>{Z(),J(),yoe=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),boe=B(`<span> </span>`),xoe={hash:`svelte-1e54a1h`,code:`.icon.small-arrow.svelte-1e54a1h {overflow:hidden;width:12px;text-indent:-6px;}`}}));function $F(e,t){G(e,woe);let n=Js(t,Soe);var r=Coe();vs(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-eost1`);var i=F(r),a=e=>{var n=V();wo(I(n),()=>t.icon),H(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);ZF(e,{get name(){return z(n)}})}};W(i,e=>{t.icon?e(a):e(o,-1)}),wo(L(i,2),()=>t.children??E),D(r),H(e,r)}var Soe,Coe,woe,eI=o((()=>{Z(),J(),QF(),Soe=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]),Coe=B(`<div><!> <!></div>`),woe={hash:`svelte-eost1`,code:`.alert.svelte-eost1 {display:flex;align-items:center;gap:var(--gap, 8px);padding:var(--padding, 8px);border-width:var(--border-width, var(--sui-control-medium-border-width));border-style:var(--border-style, solid);border-radius:var(--border-radius, var(--sui-control-medium-border-radius));font-size:var(--font-size, var(--sui-font-size-default));}.alert.error.svelte-eost1 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-eost1 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-eost1 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-eost1 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),Toe,tI,Eoe,Doe,Ooe,nI,rI,iI=o((()=>{tI=()=>(Toe??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Toe),Eoe=[`Ctrl`,`Meta`,`Alt`,`Shift`],Doe=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),Ooe=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:Doe.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),nI=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,tI()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Eoe.includes(e)).every(t=>Ooe(t,e))})},rI=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,tI()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!nI(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}}));function aI(e,t){G(e,Aoe);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=koe();wo(F(i),()=>r()??E),D(i),R(()=>ls(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var koe,Aoe,oI=o((()=>{Z(),J(),koe=B(`<span role="none" class="sui truncated-text svelte-1htz360"><!></span>`),Aoe={hash:`svelte-1htz360`,code:`.truncated-text.svelte-1htz360 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),sI,cI,lI,joe,Moe,Noe,uI,dI=o((()=>{fp(),lI=(e=`e`,t=7)=>[e,lp(t)].join(`-`),joe=()=>{if(`IntersectionObserver`in globalThis)return cI||(sI=new Map,cI=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=sI?.get(t);n&&(sI?.delete(t),cI?.unobserve(t),n())})}),cI)},Moe=e=>{let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=globalThis;return r>0&&i>0&&t<a&&n<o},Noe=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},uI=e=>{if(!e)return;let t=joe();if(t)return Moe(e)?Promise.resolve(void 0):new Promise(n=>{sI?.set(e,n),Noe(()=>{t.observe(e)})})}})),Poe,Foe,Ioe=o((()=>{J(),dI(),Tw(),mh(),Poe=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(xr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=lI(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),_a(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),_a(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),_a(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),_a(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),_a(this.popupElement,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)}),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement)}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement)}async hideImmediately(){this.popupElement.hidden=!0,this.open=!1,await ww(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Foe=(...e)=>new Poe(...e)}));function Loe(e,t){var n=V();wo(I(n),()=>t.children??E),H(e,n)}var Roe=o((()=>{Z(),J()}));function zoe(e,t){O(t,!0),G(e,Hoe);let n=e=>{var n=Voe(),d=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},f=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};vs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[xs]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-mxumua`);var g=F(n);wo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=V();wo(I(n),()=>t.children??E),H(e,n)};W(_,e=>{(z(h)||l())&&e(v)}),D(n),Hs(n,e=>i(e),()=>i()),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`dialog`,15),a=q(t,`role`,3,`dialog`),o=q(t,`showBackdrop`,3,!1),s=q(t,`lightDismiss`,3,!1),c=q(t,`escapeDismiss`,3,!0),l=q(t,`keepContent`,3,!1),u=Js(t,Boe),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=0,_=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),v=async()=>{if(!i()||i()?.open)return;g+=1;let e=g;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await ww(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return Qr(()=>{r()?v():y()}),rc(()=>{let e=Ia(Loe,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Ra(e)}}),k({focus:d,close:f})}var Boe,Voe,Hoe,fI=o((()=>{Z(),J(),Tw(),ac(),Roe(),Boe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Voe=B(`<dialog><!> <!></dialog>`),Hoe={hash:`svelte-mxumua`,code:`dialog.svelte-mxumua {position:fixed;inset:0;z-index:9999999;display:flex;justify-content:center;align-items:center;overflow:hidden;outline:0;margin:0;border:0;padding:0;width:100dvw;max-width:100dvw;height:100dvh;max-height:100dvh;color:var(--sui-primary-foreground-color);background:transparent;-webkit-user-select:none;user-select:none;touch-action:none;pointer-events:all;cursor:default;}dialog.svelte-mxumua::backdrop {background:transparent;}dialog.backdrop.svelte-mxumua {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-mxumua {transition-duration:50ms;opacity:1;}dialog.svelte-mxumua:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-mxumua {transition-duration:1ms !important;}dialog.svelte-mxumua:not(.active) {pointer-events:none !important;}dialog.svelte-mxumua:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function pI(e,t){O(t,!0),G(e,Goe);let n=e=>{var n=Woe();let o,s;wo(F(n),()=>t.children??E),D(n),Hs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=os(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-17p6hn1`,o,{touch:z(y)}),s=ls(n,``,s,{inset:z(g)?.style.inset,"z-index":z(g)?.style.zIndex,"min-width":z(g)?.style.minWidth,"max-width":z(g)?.style.maxWidth,"max-height":z(g)?.style.height,visibility:z(g)?.style.inset?void 0:`hidden`})}),va(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),va(`mouseleave`,n,()=>{i(!1),l()&&(_=window.setTimeout(()=>{r(!1)},200))}),H(e,n)},r=q(t,`open`,15,!1),i=q(t,`hovered`,15,!1),a=q(t,`content`,15,void 0),o=q(t,`showBackdrop`,3,void 0),s=q(t,`position`,3,`bottom-left`),c=q(t,`positionBaseElement`,3,void 0),l=q(t,`parentDialogElement`,3,void 0),u=q(t,`touchOptimized`,3,!1),d=Js(t,Uoe),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Foe(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};Qr(()=>{z(g)&&r(z(g).open)}),Qr(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),Qr(()=>{t.anchor&&z(p)&&!z(f)&&v()}),Qr(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));rc(()=>(P(m,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(g)?.destroy?.(),globalThis.clearTimeout(_)}));var b=V(),x=I(b),S=e=>{n(e)},C=e=>{{let i=M(()=>o()??z(y));zoe(e,Ys(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await ww(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(p)},set dialog(e){P(p,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};W(x,e=>{l()?e(S):e(C,-1)}),H(e,b),k()}var Uoe,Woe,Goe,mI=o((()=>{Z(),J(),Tw(),ac(),Ioe(),fI(),Uoe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Woe=B(`<div role="none"><!></div>`),Goe={hash:`svelte-17p6hn1`,code:`.content.svelte-17p6hn1 {position:absolute;overflow-y:auto;outline-width:0 !important;width:auto;color:var(--sui-primary-foreground-color);background-color:var(--sui-secondary-background-color-translucent);box-shadow:0 8px 16px var(--sui-popup-shadow-color);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transition-property:opacity, transform;}.content.menu.svelte-17p6hn1 {border-width:var(--sui-menu-border-width, 1px);border-style:var(--sui-menu-border-style, solid);border-color:var(--sui-menu-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-menu-border-radius, 4px);padding:var(--sui-menu-padding, 4px);}.content.menu.svelte-17p6hn1 .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-17p6hn1 {border-width:var(--sui-listbox-border-width, 1px);border-style:var(--sui-listbox-border-style, solid);border-color:var(--sui-listbox-border-width, var(--sui-secondary-border-color));border-radius:var(--sui-listbox-border-radius, 4px);padding:var(--sui-listbox-padding, 4px);}.content.listbox.svelte-17p6hn1 .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-17p6hn1 {position:static;border-width:0 !important;border-radius:4px !important;padding:8px;min-width:320px !important;max-width:calc(100dvw - 32px) !important;max-height:calc(100dvh - 32px) !important;}dialog.open .content.touch.svelte-17p6hn1 {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-17p6hn1 {transform:scale(90%);}.content.touch.combobox.svelte-17p6hn1 .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-17p6hn1 {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-17p6hn1 {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function hI(e,t){O(t,!0),G(e,Yoe);let n=q(t,`element`,15),r=q(t,`class`,3,``),i=q(t,`type`,3,`button`),a=q(t,`role`,3,`button`),o=q(t,`name`,3,void 0),s=q(t,`value`,3,void 0),c=q(t,`valueType`,19,()=>typeof s()),l=q(t,`hidden`,3,!1),u=q(t,`disabled`,3,!1),d=q(t,`readonly`,3,!1),f=q(t,`pressed`,3,void 0),p=q(t,`keyShortcuts`,3,void 0),m=q(t,`label`,3,``),h=q(t,`lines`,3,1),g=q(t,`variant`,3,void 0),_=q(t,`size`,3,`medium`),v=q(t,`iconic`,3,!1),y=q(t,`pill`,3,!1),b=q(t,`flex`,3,!1),x=q(t,`popupPosition`,3,`bottom-left`),S=q(t,`showPopupBackdrop`,3,!1),C=Js(t,Koe);var w=Joe(),T=I(w);vs(T,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[xs]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-747svn`);var ee=F(T);wo(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=V(),r=I(n),i=e=>{var t=gI();aI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)},a=e=>{var n=gI();wo(F(n),()=>t.children??E),D(n),H(e,n)};W(r,e=>{m()?e(i):e(a,-1)}),H(e,n)},re=e=>{var n=qoe(),r=I(n),i=e=>{var t=gI();aI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)};W(r,e=>{m()&&e(i)}),wo(L(r,2),()=>t.children??E),H(e,n)};W(te,e=>{g()===`link`?e(ne):e(re,-1)}),wo(L(te,2),()=>t.endIcon??E),D(T),Hs(T,e=>n(e),()=>n()),Jo(T,()=>rI(p()));var ie=L(T,2),ae=e=>{pI(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();wo(I(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ie,e=>{t.popup&&e(ae)}),H(e,w),k()}var Koe,gI,qoe,Joe,Yoe,_I=o((()=>{Z(),J(),iI(),oI(),mI(),Koe=new Set(`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`)),gI=B(`<span role="none" class="label svelte-747svn"><!></span>`),qoe=B(`<!> <!>`,1),Joe=B(`<button><!> <!> <!></button> <!>`,1),Yoe={hash:`svelte-747svn`,code:`button.svelte-747svn {flex:none;display:inline-flex;align-items:center;gap:4px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color, inherit);background-color:transparent;box-shadow:none;font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);font-weight:var(--sui-font-weight-normal, normal);text-align:start;cursor:pointer;transition:all 200ms;}button[hidden].svelte-747svn {display:none !important;}button.svelte-747svn:not(:disabled):focus-visible {z-index:1;}button.svelte-747svn:is(.primary:where(.svelte-747svn), .secondary:where(.svelte-747svn), .tertiary:where(.svelte-747svn), .ghost:where(.svelte-747svn)) {justify-content:center;border-width:1px;}button.svelte-747svn:is(.primary:where(.svelte-747svn), .secondary:where(.svelte-747svn), .tertiary:where(.svelte-747svn), .ghost:where(.svelte-747svn)) .label:where(.svelte-747svn):only-child {padding:0 4px;}button.primary.svelte-747svn {border-width:var(--sui-button-primary-border-width, 1px);border-style:var(--sui-button-primary-border-style, solid);border-color:var(--sui-button-primary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted));background-color:var(--sui-button-primary-background-color, var(--sui-primary-accent-color));font-weight:var(--sui-button-primary-font-weight, var(--sui-font-weight-normal, normal));}button.primary.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-primary-foreground-color-focus, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-focus, var(--sui-primary-accent-color-light));}button.primary.svelte-747svn:active {color:var(--sui-button-primary-foreground-color-active, var(--sui-button-primary-foreground-color, var(--sui-primary-accent-color-inverted)));background-color:var(--sui-button-primary-background-color-active, var(--sui-primary-accent-color-dark));}button.secondary.svelte-747svn {border-width:var(--sui-button-secondary-border-width, 1px);border-style:var(--sui-button-secondary-border-style, solid);border-color:var(--sui-button-secondary-border-color, var(--sui-primary-accent-color));color:var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text));background-color:var(--sui-button-secondary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-secondary-font-weight, var(--sui-font-weight-normal, normal));}button.secondary.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-secondary-foreground-color-focus, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-focus, var(--sui-hover-background-color));}button.secondary.svelte-747svn:active {color:var(--sui-button-secondary-foreground-color-active, var(--sui-button-secondary-foreground-color, var(--sui-primary-accent-color-text)));background-color:var(--sui-button-secondary-background-color-active, var(--sui-active-background-color));}button.secondary[aria-pressed=true].svelte-747svn {color:var(--sui-button-secondary-foreground-color-pressed);background-color:var(--sui-button-secondary-background-color-pressed, var(--sui-primary-accent-color));}button.tertiary.svelte-747svn {border-width:var(--sui-button-tertiary-border-width, 1px);border-style:var(--sui-button-tertiary-border-style, solid);border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(--sui-button-tertiary-background-color, var(--sui-button-background-color));font-weight:var(--sui-button-tertiary-font-weight, var(--sui-font-weight-normal, normal));}button.tertiary.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-tertiary-foreground-color-focus, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}button.tertiary.svelte-747svn:active {color:var(--sui-button-tertiary-foreground-color-active, var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color)));background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}button.tertiary[aria-pressed=true].svelte-747svn {color:var(--sui-button-tertiary-foreground-color-pressed);background-color:var(--sui-button-tertiary-background-color-pressed, var(--sui-selected-background-color));}button.ghost.svelte-747svn {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus-visible, [aria-expanded=true]:where(.svelte-747svn)) {color:var(--sui-button-ghost-foreground-color-focus);background-color:var(--sui-button-ghost-background-color-focus, var(--sui-hover-background-color));}button.ghost.svelte-747svn:active {color:var(--sui-button-ghost-foreground-color-active);background-color:var(--sui-button-ghost-background-color-active, var(--sui-active-background-color));}button.ghost[aria-pressed=true].svelte-747svn {color:var(--sui-button-ghost-foreground-color-pressed);background-color:var(--sui-button-ghost-background-color-pressed, var(--sui-selected-background-color));}button.link.svelte-747svn {outline:0;margin:0;border-radius:0 !important;padding:0 !important;height:auto !important;color:var(--sui-button-link-foreground-color, var(--sui-primary-accent-color-text));}button.link.svelte-747svn .label:where(.svelte-747svn) {padding:0;line-height:var(--sui-line-height-compact);text-decoration:var(--sui-button-link-text-decoration, none);text-underline-offset:2px;white-space:normal;}:is(:root, :host)[data-underline-links='true'] button.link.svelte-747svn .label:where(.svelte-747svn) {text-decoration:underline;}button.link.svelte-747svn:is(:where(.svelte-747svn):hover, :where(.svelte-747svn):focus, :where(.svelte-747svn):active) .label:where(.svelte-747svn) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-747svn {border-radius:var(--sui-button-small-border-radius);padding:var(--sui-button-small-padding);height:var(--sui-button-small-height);font-size:var(--sui-button-small-font-size, var(--sui-font-size-small));}button.small.svelte-747svn .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-747svn {border-radius:var(--sui-button-medium-border-radius);padding:var(--sui-button-medium-padding);height:var(--sui-button-medium-height);font-size:var(--sui-button-medium-font-size, var(--sui-font-size-default));}button.large.svelte-747svn {border-radius:var(--sui-button-large-border-radius);padding:var(--sui-button-large-padding);height:var(--sui-button-large-height);font-size:var(--sui-button-large-font-size, var(--sui-font-size-large));}button.pill.svelte-747svn {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-747svn:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-747svn {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-747svn {background-color:var(--sui-error-background-color);}button.svelte-747svn .label:where(.svelte-747svn) {padding:0 4px;}button.svelte-747svn > * {pointer-events:none;}button.svelte-747svn :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function vI(e,t){O(t,!0),G(e,Qoe);let n=q(t,`show`,15,!0),r=q(t,`dismissible`,3,!0),i=q(t,`status`,3,`info`),a=q(t,`children`,3,void 0),o=q(t,`icon`,3,void 0);var s=V(),c=I(s),l=e=>{var t=Zoe(),s=F(t),c=F(s),l=e=>{var t=V();wo(I(t),o),H(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());ZF(e,{get name(){return z(t)}})}};W(c,e=>{o()?e(l):e(u,-1)}),wo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=Xoe(),r=F(t);{let e=M(()=>Y(`_sui.dismiss`));hI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{ZF(e,{name:`close`})},$$slots:{default:!0}})}D(t),H(e,t)};W(d,e=>{r()&&e(f)}),D(t),R(()=>os(t,1,`infobar ${i()??``}`,`svelte-2bt0oo`)),H(e,t)};W(c,e=>{n()&&e(l)}),H(e,s),k()}var Xoe,Zoe,Qoe,$oe=o((()=>{Z(),J(),X(),_I(),QF(),Xoe=B(`<div role="none"><!></div>`),Zoe=B(`<div role="none"><div role="alert" class="message svelte-2bt0oo"><!> <!></div> <!></div>`),Qoe={hash:`svelte-2bt0oo`,code:`.infobar.svelte-2bt0oo {flex:none;display:flex;align-items:center;gap:var(--sui-infobar-gap, 8px);border-width:var(--sui-infobar-border-width, 0 0 1px);border-style:var(--sui-infobar-border-style, solid);padding:var(--sui-infobar-padding, 0);min-height:var(--sui-infobar-min-height, 32px);font-size:var(--sui-infobar-font-size, var(--sui-font-size-small));}.infobar.info.svelte-2bt0oo {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-2bt0oo {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-2bt0oo {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-2bt0oo {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-2bt0oo {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-2bt0oo button {font-size:inherit !important;}.message.svelte-2bt0oo .icon {font-size:16px; /* !hardcoded */}`}}));function ese(e,t){G(e,rse);let n=Js(t,tse);var r=nse();vs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-76ww7t`),wo(F(r),()=>t.children??E),D(r),H(e,r)}var tse,nse,rse,ise=o((()=>{Z(),J(),tse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),nse=B(`<div><!></div>`),rse={hash:`svelte-76ww7t`,code:`.bottom-navigation.svelte-76ww7t {height:var(--sui-bottom-navigation-height, var(--sui-primary-toolbar-size));border-top-width:var(--sui-bottom-navigation-border-color, 1px);border-top-style:var(--sui-bottom-navigation-border-style, solid);border-top-color:var(--sui-bottom-navigation-border-color, var(--sui-secondary-border-color));}.bottom-navigation.svelte-76ww7t:is([inert]:where(.svelte-76ww7t), [hidden]:where(.svelte-76ww7t)) {display:none;}.bottom-navigation.svelte-76ww7t .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function ase(e,t){G(e,cse);let n=Js(t,ose);var r=sse();vs(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1f2dbh`),wo(F(r),()=>t.children??E),D(r),H(e,r)}var ose,sse,cse,lse=o((()=>{Z(),J(),ose=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),sse=B(`<div><!></div>`),cse={hash:`svelte-1f2dbh`,code:`.button-group.svelte-1f2dbh {flex:none;display:inline-flex;align-items:center;}`}}));function yI(e,t){G(e,xI);let n=q(t,`children`,3,void 0);var r=bI();wo(F(r),()=>n()??E),D(r),H(e,r)}var bI,xI,use=o((()=>{Z(),J(),bI=B(`<div role="none" class="sui floating-action-button-wrapper svelte-1w9ejur"><!></div>`),xI={hash:`svelte-1w9ejur`,code:`.floating-action-button-wrapper.svelte-1w9ejur {display:contents;}
|
|
645
645
|
@media (width < 768px) {.floating-action-button-wrapper.svelte-1w9ejur {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-1w9ejur button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-1w9ejur button .icon {font-size:32px;}
|
|
646
646
|
}`}})),SI,CI=o((()=>{J(),SI=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})),wI,TI,EI,DI,OI,kI=o((()=>{J(),X(),dI(),Tw(),CI(),wI=/\p{Diacritic}/gu,TI=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(wI,``).toLocaleLowerCase():``),EI={grid:{orientation:`vertical`,childRoles:[`row`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0},listbox:{orientation:`vertical`,childRoles:[`option`],childSelectedAttr:`aria-selected`,focusChild:!1,selectFirst:!1},menu:{orientation:`vertical`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},menubar:{orientation:`horizontal`,childRoles:[`menuitem`,`menuitemcheckbox`,`menuitemradio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},radiogroup:{orientation:`horizontal`,childRoles:[`radio`],childSelectedAttr:`aria-checked`,focusChild:!0,selectFirst:!1},tablist:{orientation:`horizontal`,childRoles:[`tab`],childSelectedAttr:`aria-selected`,focusChild:!0,selectFirst:!0}},DI=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=lI(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=EI[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.parent.tabIndex=a?-1:0,(async()=>{await ww(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=document.querySelector(`#${e.getAttribute(`aria-controls`)}`);e.id||=`${this.id}-item-${t+1}`,e.tabIndex=r?0:-1,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get selected(){return this.activeMembers.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `;this.activeMembers.forEach(o=>{let s=o.matches(`[role="menuitemcheckbox"]`),c=o.matches(`[role="menuitemradio"]`);if((s||c)&&(o.getAttribute(`role`)!==n||o.closest(this.parentGroupSelector)!==r))return;let l=s||this.multi,u=c||!l,d=o===t,f=o.matches(`[${this.childSelectedAttr}="true"]`),p=o.getAttribute(`aria-controls`),m=p?document.getElementById(p):null;l&&d&&(i||a)&&(o.setAttribute(this.childSelectedAttr,String(!f)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!f}})),f||o.dispatchEvent(new CustomEvent(`Select`))),u&&f!==d&&(!c||a||i)&&(o.setAttribute(this.childSelectedAttr,String(d)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:d}})),d&&(e.type===`keydown`&&o.matches(`[role="radio"]`)&&o.click(),o.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild?globalThis.requestAnimationFrame(()=>{o.tabIndex=d?0:-1,d&&(o.focus(),o.dispatchEvent(new CustomEvent(`Focus`)))}):(o.classList.toggle(`focused`,d),d&&o.dispatchEvent(new CustomEvent(`Focus`))),m&&(m.inert=!d,m.setAttribute(`aria-hidden`,String(!d)),d&&globalThis.setTimeout(()=>{try{m.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{m.scrollIntoView(!0)}},300)),d&&(this.parent.setAttribute(`aria-activedescendant`,o.id),globalThis.setTimeout(()=>{try{o.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{o.scrollIntoView(!0)}},300))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:SI(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;if(i||a||n||r)return;let o=e.target,{allMembers:s,activeMembers:c}=this,l=(()=>{if(!this.focusChild)return c.find(e=>e.matches(`.focused`));if(o.matches(this.selector))return o})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){l?.click();return}if(t===` `){l&&this.selectTarget(e,l);return}let u,d;if(this.grid){let e=Math.floor(this.parent.clientWidth/c[0].clientWidth),n=wh();u=l?s.indexOf(l):-1,t===`ArrowUp`&&u>0&&(d=s[u-e]),t===`ArrowDown`&&u<s.length-1&&(d=s[u+e]),t===`ArrowLeft`&&u>0&&(d=s[u+(n?1:-1)]),t===`ArrowRight`&&u<s.length-1&&(d=s[u+(n?-1:1)]),d?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(d=void 0)}else{u=l?c.indexOf(l):-1;let e=wh(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(u>0&&(d=c[u-1]),u<=0&&(d=c[c.length-1])),t===r&&(u<c.length-1&&(d=c[u+1]),u===c.length-1&&([d]=c))}d&&d!==l&&this.selectTarget(e,d)}destroy(){this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=TI(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=TI(e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent),r=!n.every(e=>t.includes(e));return e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}})),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},OI=e=>t=>{let n=typeof e==`function`,r=new DI(t,n?e():e);return n&&Qr(()=>{r.onUpdate(e())}),()=>{r.destroy()}}}));function AI(e,t){O(t,!0),G(e,NI);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`readonly`,3,!1),a=q(t,`required`,3,!1),o=q(t,`invalid`,3,!1),s=Js(t,jI);var c=MI();vs(c,()=>({...s,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o()}),void 0,void 0,void 0,`svelte-4yijem`);var l=F(c);wo(F(l),()=>t.children??E),D(l),D(c),Jo(c,OI),R(()=>l.inert=r()),H(e,c),k()}var jI,MI,NI,dse=o((()=>{Z(),J(),kI(),jI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),MI=B(`<div><div role="none" class="inner svelte-4yijem"><!></div></div>`),NI={hash:`svelte-4yijem`,code:`.select-button-group.svelte-4yijem {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-4yijem:focus-visible {outline-width:0 !important;}.select-button-group.svelte-4yijem button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-4yijem button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-4yijem button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-4yijem button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-4yijem button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-4yijem [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-4yijem [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-4yijem [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-4yijem {display:contents;}`}}));function PI(e,t){O(t,!0);let n=q(t,`selected`,15,!1),r=Js(t,FI);hI(e,Ys(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var FI,fse=o((()=>{Z(),J(),_I(),FI=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`])}));function II(e,t){O(t,!0);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`popupPosition`,3,`bottom-left`),a=q(t,`popupPositionBaseElement`,3,void 0),o=q(t,`showPopupBackdrop`,3,!1),s=q(t,`label`,3,``),c=q(t,`variant`,3,void 0),l=q(t,`size`,3,`medium`),u=q(t,`iconic`,3,!1),d=Js(t,LI),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=RI(),h=I(m);return hI(h,Ys(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=V();wo(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();wo(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var n=V(),r=I(n),i=e=>{var n=V();wo(I(n),()=>t.endIcon),H(e,n)},a=e=>{ZF(e,{name:`more_vert`})},o=e=>{ZF(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),H(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),pI(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=V();wo(I(r),()=>t.popup??E),H(e,r)},$$slots:{default:!0}}),H(e,m),k(p)}var LI,RI,zI=o((()=>{Z(),J(),_I(),QF(),mI(),LI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),RI=B(`<!> <!>`,1)}));function BI(e,t){O(t,!0),G(e,UI);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`label`,3,``),a=q(t,`variant`,3,void 0),o=q(t,`size`,3,`medium`),s=q(t,`popupPosition`,3,`bottom-left`),c=q(t,`showPopupBackdrop`,3,!1),l=Js(t,VI),u=N(void 0);var d=HI(),f=F(d);hI(f,Ys(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=L(f,2);{let e=e=>{var n=V(),r=I(n),i=e=>{var n=V();wo(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{ZF(e,{name:`arrow_drop_down`,class:`small-arrow`})};W(r,e=>{t.chevronIcon?e(i):e(a,-1)}),H(e,n)},i=e=>{var n=V();wo(I(n),()=>t.popup??E),H(e,n)},l=M(()=>Y(`_sui.split_button.more_options`));II(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),Hs(d,e=>P(u,e),()=>z(u)),R(e=>{K(d,`hidden`,n()),K(d,`aria-hidden`,n()),K(d,`aria-disabled`,r()),K(d,`aria-label`,e)},[()=>Y(`_sui.split_button.x_options`,{values:{name:i()}})]),H(e,d),k()}var VI,HI,UI,pse=o((()=>{Z(),J(),X(),QF(),zI(),_I(),VI=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),HI=B(`<div role="group" class="sui split-button svelte-nw6iqa"><!> <!></div>`),UI={hash:`svelte-nw6iqa`,code:`.split-button.svelte-nw6iqa {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-nw6iqa button {margin:0;}.split-button.svelte-nw6iqa button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-nw6iqa button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}}));function WI(e,t){G(e,qI);let n=q(t,`hidden`,3,!1),r=q(t,`orientation`,3,`horizontal`),i=Js(t,GI);var a=KI();vs(a,()=>({...i,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,void 0,`svelte-1ittn4d`),H(e,a)}var GI,KI,qI,JI=o((()=>{Z(),J(),GI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]),KI=B(`<div></div>`),qI={hash:`svelte-1ittn4d`,code:`.divider.svelte-1ittn4d {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-1ittn4d {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-1ittn4d {margin:0 8px;width:1px;height:100%;}`}}));function YI(e,t){G(e,QI);let n=q(t,`flex`,3,!1),r=Js(t,XI);var i=ZI();vs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[xs]:{flex:n()}}),void 0,void 0,void 0,`svelte-3j4esa`),H(e,i)}var XI,ZI,QI,$I=o((()=>{Z(),J(),XI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),ZI=B(`<div></div>`),QI={hash:`svelte-3j4esa`,code:`.spacer.flex.svelte-3j4esa:not([hidden]) {display:block;flex:auto;}.spacer.svelte-3j4esa:not(.flex) {width:8px;height:8px;}`}}));function mse(e,t){G(e,nL);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=Js(t,eL);var o=tL();vs(o,()=>({...a,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`}),void 0,void 0,void 0,`svelte-12ao3tb`);var s=F(o);wo(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),H(e,o)}var eL,tL,nL,hse=o((()=>{Z(),J(),eL=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`children`]),tL=B(`<div><div role="none" class="inner svelte-12ao3tb"><!></div></div>`),nL={hash:`svelte-12ao3tb`,code:`.checkbox-group.svelte-12ao3tb {display:inline-flex;}.checkbox-group.horizontal.svelte-12ao3tb {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-12ao3tb {gap:4px;flex-direction:column;}
|
|
647
647
|
@media (pointer: coarse) {.checkbox-group.vertical.svelte-12ao3tb {gap:8px;}
|
|
@@ -784,7 +784,7 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
|
|
|
784
784
|
}}h1:where(.svelte-7ua6x9) {font-size:48px;}.logo:where(.svelte-7ua6x9) ~ h1:where(.svelte-7ua6x9) {font-size:var(--sui-font-size-xxx-large);}.error:where(.svelte-7ua6x9) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);text-align:center;-webkit-user-select:text;user-select:text;cursor:text;}
|
|
785
785
|
/* \`<SignIn>\` also has \`.message\` */.message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}li {margin:12px;padding:0;}}}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}}));function Jde(e,t){O(t,!0);let n=()=>j(iA,`$backend`,i),r=()=>j(oF,`$cmsConfig`,i),[i,a]=mn(),o=0,s=N(!1),c=N(`none`),l=async()=>{n()?.checkStatus&&P(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),P(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};rc(()=>(P(s,!0),()=>{d()})),Qr(()=>{z(s),n(),r(),f()});var p=V(),m=I(p),h=e=>{var t=a4(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);oo(r,()=>({"--sui-infobar-message-justify-content":`center`})),vI(r.lastChild,{get status(){return z(e)},children:(e,t)=>{gt();var r=i4(),i=I(r),a=L(i);{let e=M(()=>Y(`details`));hI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{a2(n()?.statusDashboardURL)}})}R(e=>U(i,`${e??``} `),[()=>Y(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),H(e,r)},$$slots:{default:!0}}),D(r)}H(e,t)},g=M(()=>[`minor`,`major`].includes(z(c)));W(m,e=>{z(g)&&e(h)}),H(e,p),k(),a()}var i4,a4,Yde=o((()=>{Z(),J(),X(),$(),ac(),oA(),dF(),o2(),i4=B(` <!>`,1),a4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Xde(e,t){O(t,!0);let n=0,r=0,i=N(!1),a=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===Hj)return;document.querySelector(`script[src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"]`)?r=window.setTimeout(()=>{P(i,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};rc(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=V(),s=I(o),c=e=>{var t=s4(),n=I(t);oo(n,()=>({"--sui-infobar-message-justify-content":`center`})),vI(n.lastChild,{children:(e,t)=>{gt();var n=o4(),r=I(n),i=L(r);{let e=M(()=>Y(`update_now`));hI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>U(r,`${e??``} `),[()=>Y(`update_available`)]),H(e,n)},$$slots:{default:!0}}),D(n),H(e,t)};W(s,e=>{z(i)&&e(c)}),H(e,o),k()}var o4,s4,Zde=o((()=>{Z(),J(),X(),$(),ac(),Uj(),o4=B(` <!>`,1),s4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),c4,Qde=o((()=>{Zj(),LM(),rP(),c4=async(e,t)=>{let n=t===`image`?await AM(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await Xj(`exifr`,`dist/lite.esm.mjs`),{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=await r(n).catch(()=>{})??{};return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:nP(i,7),longitude:nP(a,7)}:void 0}}})),l4,u4,d4,f4,$de=o((()=>{Qde(),l4=e=>{let t=new Image;return new Promise(n=>{t.addEventListener(`load`,()=>{n({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})},{once:!0}),t.src=e})},u4=async(e,t)=>{let n=document.createElement(t);return new Promise(r=>{n.addEventListener(`loadedmetadata`,()=>{let{duration:e}=n;t===`audio`&&r({duration:e});let{videoWidth:i,videoHeight:a}=n;r({dimensions:{width:i,height:a},duration:e})},{once:!0}),n.src=e})},d4=async(e,t)=>t===`image`?l4(e):u4(e,t),f4=async(e,t,n)=>{let{dimensions:r,duration:i}=await d4(t,n),{createdDate:a,coordinates:o}=await c4(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),p4,m4,h4,g4=o((()=>{Pp(),LM(),oA(),iN(),$de(),p4={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},m4=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=A(iA)?.repository??{},i=await jM(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await f4(e,i,t)),{...a,publicURL:PM(e),repoBlobURL:r?`${r}/${n}`:void 0}},h4=async e=>{let t=PM(e,{allowSpecial:!0,pathOnly:!0})??await jM(e);return t?nN(t):[]}}));function _4(e,t){O(t,!0);let n=e=>{var t=v4(),n=I(t);{let e=M(()=>Y(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);hR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=L(n,2);{let e=M(()=>Y(`file_paths`,{values:{count:r().length}}));hR(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=L(i,2);{let e=M(()=>Y(`file_data`)),t=M(()=>!z(o));hR(a,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(p,`asset_data_copied`)}})}H(e,t)},r=q(t,`assets`,19,()=>[]),i=q(t,`useButton`,3,!0),a=N(xr([])),o=N(!1),s=xr({show:!1,text:``,status:`success`}),c=M(()=>z(a).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),l,u=async()=>{if(l=void 0,r().length!==1)return!1;let e=await AM(r()[0]),{type:t}=e;return l=e,Cp(t)?!0:iM.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
|
|
786
786
|
`))},f=async()=>{await navigator.clipboard.writeText(r().map(({path:e})=>`/${e}`).join(`
|
|
787
|
-
`))},p=async()=>{let e=l,{type:t}=e;if(Cp(t)){await navigator.clipboard.writeText(await e.text());return}if(!iM.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await _M(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=Y(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=Y(`clipboard_error`)}finally{s.show=!0}};Qr(()=>{(async()=>{P(a,await Promise.all(r().map(m4)),!0),P(o,await u(),!0)})()});var h=y4(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>Y(`copy_options`));uR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>Y(`copy`));II(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=M(()=>!r().length),a=M(()=>Y(`copy`));hR(e,{get disabled(){return z(i)},get label(){return z(a)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};W(g,e=>{i()?e(_):e(v,-1)}),Kz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{$F(e,{get status(){return s.status},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),k()}var v4,y4,b4=o((()=>{Z(),J(),X(),$(),Mp(),g4(),LM(),oM(),yM(),v4=B(`<!> <!> <!>`,1),y4=B(`<!> <!>`,1)})),x4,S4,C4=o((()=>{Pp(),x4={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},S4=ln({...x4})})),w4,T4=o((()=>{Pp(),C4(),w4=ln({...x4})})),E4,D4,O4,k4,A4=o((()=>{kw(),Pp(),PF(),oA(),OC(),vD(),AO(),_E(),E4=()=>{let e=_D.account;if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},D4=async({changes:e,commit:t})=>{let{databaseName:n}=A(iA)?.repository??{};if(!n)return;let r=new Ew(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:hE(c).size,text:c,meta:s};await r.set(a,l)}))},O4=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));wC.update(e=>[...e.filter(e=>!r.has(e.id)),...t]);let i=new Set(n.map(e=>e.path));e.forEach(e=>{e.action===`move`&&e.previousPath?i.add(e.previousPath):e.action===`delete`&&i.add(e.path)}),vF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},k4=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=A(iA),a={...await i(e,r),author:E4()};kO.devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await D4({changes:e,commit:a}),O4({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),j4,M4,efe=o((()=>{PF(),T4(),A4(),C4(),j4=({assets:e})=>{CF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),w4.set({...x4,deleted:!0,count:e.length})},M4=async e=>{await k4({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),j4({assets:e})}}));function N4(e,t){O(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`buttonDescription`,3,``),i=q(t,`dialogDescription`,3,``),a=q(t,`onDelete`,3,void 0),o=q(t,`useButton`,3,!0),s=N(!1),c=M(()=>o()?hI:hR);var l=P4(),u=I(l);{let e=M(()=>!n().length),t=M(()=>Y(`delete`));Eo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{P(s,!0)}})})}var d=L(u,2);{let e=M(()=>Y(`delete_assets`,{values:{count:n().length}})),t=M(()=>Y(`delete`));yL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{M4(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),k()}var P4,F4=o((()=>{Z(),J(),X(),$(),efe(),P4=B(`<!> <!>`,1)}));function I4(e,t){O(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?hI:hR),o=async()=>{for(let e of n())jp(await AM(e),e.name),await ww(300);P(i,!0)};var s=L4(),c=I(s);{let e=M(()=>!n().length),t=M(()=>Y(`download`));Eo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}Kz(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{$F(e,{status:`success`,children:(e,t)=>{gt();var r=Ma();R(e=>U(r,e),[()=>Y(`assets_downloaded`,{values:{count:n().length}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,s),k()}var L4,R4=o((()=>{Z(),J(),X(),$(),Mp(),Tw(),LM(),L4=B(`<!> <!>`,1)}));function z4(e,t){O(t,!0);let n=()=>j(iA,`$backend`,r),[r,i]=mn(),a=q(t,`extraItems`,3,void 0),o=N(xr({...p4})),s=M(()=>z(o).publicURL),c=M(()=>z(o).repoBlobURL),l=async()=>{P(o,t.asset?await m4(t.asset):{...p4},!0)};Qr(()=>{t.asset,l()});{let r=e=>{{let r=M(()=>Y(`edit_options`));uR(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=B4(),o=I(i);wo(o,()=>a()??E);var l=L(o,2);{let e=M(()=>Y(`edit`)),n=M(()=>Y(`edit_asset`)),r=M(()=>!t.asset||!Xw(t.asset));hR(l,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(EF,t.asset)}})}var u=L(l,2);{let e=M(()=>Y(`rename`)),n=M(()=>Y(`rename_asset`)),r=M(()=>!t.asset);hR(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(DF,t.asset)}})}var d=L(u,2);{let e=M(()=>Y(`replace`)),n=M(()=>Y(`replace_asset`)),r=M(()=>!t.asset);hR(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(TF,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),pn(Z0,!0)}})}var f=L(d,2);WI(f,{});var p=L(f,2);{let e=M(()=>Y(`view_on_live_site`)),t=M(()=>!z(s));hR(p,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{a2(z(s))}})}var m=L(p,2),h=e=>{{let t=M(()=>!n()?.repository||!z(c)),r=M(()=>Y(`view_on_x`,{values:{service:n()?.repository?.label},default:Y(`view_in_repository`)}));hR(e,{get disabled(){return z(t)},get label(){return z(r)},onclick:()=>{a2(`${z(c)}?plain=1`)}})}};W(m,e=>{kO.devModeEnabled&&e(h)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>Y(`show_edit_options`));II(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:r,$$slots:{popup:!0}})}k(),i()}var B4,V4=o((()=>{Z(),J(),X(),$(),PF(),g4(),Qw(),i2(),oA(),AO(),o2(),B4=B(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function H4(e,t){O(t,!0);let n=q(t,`useShortcut`,3,!1),r=q(t,`onclick`,3,void 0);{let i=e=>{{let t=M(()=>wh()?`arrow_forward`:`arrow_back`);ZF(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??Y(`back`)),o=M(()=>n()?`Escape`:void 0);hI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(a)},get keyShortcuts(){return z(o)},class:`back`,get onclick(){return r()},startIcon:i,$$slots:{startIcon:!0}})}k()}var U4=o((()=>{Z(),J(),X(),$()}));function tfe(e,t){O(t,!0);let n=()=>j(wF,`$overlaidAsset`,i),r=()=>j(Up,`$selectedAssetFolder`,i),[i,a]=mn(),o=e=>{var t=W4(),n=I(t);_4(n,{get assets(){return z(s)},get useButton(){return z(c)}});var i=L(n,2);I4(i,{get assets(){return z(s)},get useButton(){return z(c)}});var a=L(i,2);{let e=M(()=>Y(`delete_asset`)),t=M(()=>Y(`confirm_deleting_this_asset`));N4(a,{get assets(){return z(s)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{h2(`/assets/${r()?.internalPath??`-/all`}`)},get useButton(){return z(c)}})}H(e,t)},s=M(()=>n()?[n()]:[]),c=M(()=>!nE.isSmallScreen);{let t=M(()=>Y(`primary`));H1(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var i=G4(),a=I(i);{let e=M(()=>Y(`cancel_editing`));H4(a,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{h2(`/assets/${r()?.internalPath??`-/all`}`)}})}var s=L(a,2);aI(F(s),{children:(e,t)=>{gt();var r=Ma();R(()=>U(r,n()?.name)),H(e,r)},$$slots:{default:!0}}),D(s);var c=L(s,2),l=e=>{o(e)};W(c,e=>{nE.isSmallScreen||e(l)}),z4(L(c,2),{get asset(){return n()},extraItems:e=>{var t=V(),n=I(t),r=e=>{o(e)};W(n,e=>{nE.isSmallScreen&&e(r)}),H(e,t)},$$slots:{extraItems:!0}}),H(e,i)},$$slots:{default:!0}})}k(),a()}var W4,G4,nfe=o((()=>{Z(),J(),X(),$(),b4(),F4(),R4(),V4(),U4(),_2(),PF(),Yp(),iE(),W4=B(`<!> <!> <!>`,1),G4=B(`<!> <h2 role="none"><!></h2> <!> <!>`,1)}));function K4(e,t){O(t,!0),G(e,$4);let n=q(t,`loading`,3,`lazy`),r=q(t,`asset`,3,void 0),i=q(t,`src`,15,void 0),a=q(t,`variant`,3,void 0),o=q(t,`blurBackground`,3,!1),s=q(t,`cover`,3,!1),c=q(t,`checkerboard`,3,!1),l=q(t,`dissolve`,3,!0),u=q(t,`alt`,3,``),d=q(t,`controls`,3,!1),f=Js(t,q4),p=N(void 0),m=N(!1),h=N(!1),g=N(void 0),_=N(void 0),v=M(()=>!!r()&&!!a()&&!d()),y=M(()=>t.kind===`image`||r()?.name.endsWith(`.pdf`)||z(v)&&Uw.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await uI(z(p));try{i(z(v)?await NM(r()):await jM(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,Hn()}},S=async()=>{!z(p)||!z(_)||((z(y)?!z(p).complete:!z(p).readyState)&&await new Promise(e=>{z(p)?.addEventListener(z(y)?`load`:`loadedmetadata`,()=>{e(void 0)},{once:!0})}),l()&&await uI(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&URL.revokeObjectURL(i()))};Qr(()=>{r()&&!z(g)&&(async()=>{P(g,await NM(r(),{cacheOnly:!0}),!0)})()}),Qr(()=>{z(p)&&r()&&x()}),Qr(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await uI(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),Qr(()=>{z(p)&&z(_)&&S()});var C=Q4();let w;var T=F(C),ee=e=>{ZF(e,{name:`draft`})},te=e=>{var t=J4();vs(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Hs(t,e=>P(p,e),()=>z(p)),ha(t),H(e,t)},ne=e=>{var t=Y4();vs(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Hs(t,e=>P(p,e),()=>z(p)),H(e,t)},re=e=>{var t=V(),n=I(t),r=e=>{var t=X4();vs(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Hs(t,e=>P(p,e),()=>z(p)),H(e,t)},i=e=>{ZF(e,{name:`audio_file`})};W(n,e=>{d()?e(r):e(i,-1)}),H(e,t)},ie=e=>{ZF(e,{name:`draft`})};W(T,e=>{z(m)?e(ee):z(y)?e(te,1):t.kind===`video`?e(ne,2):t.kind===`audio`?e(re,3):e(ie,-1)});var ae=L(T,2),oe=e=>{var t=Z4(),n=F(t),r=F(n),i=e=>{var t=Ma();R(e=>U(t,e),[()=>Y(`loading`)]),H(e,t)};W(r,e=>{!z(v)&&!z(h)&&e(i)}),D(n);var a=L(n,2);let o;D(t),R(()=>{K(a,`src`,z(g)),o=os(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),H(e,t)};W(ae,e=>{o()&&e(oe)}),D(C),R(()=>w=os(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),H(e,C),k()}var q4,J4,Y4,X4,Z4,Q4,$4,e3=o((()=>{Z(),J(),X(),$(),dI(),ac(),LM(),Qw(),q4=new Set([`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),J4=B(`<img/>`),Y4=B(`<video></video>`,2),X4=B(`<audio></audio>`),Z4=B(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),Q4=B(`<div role="none"><!> <!></div>`),$4={hash:`svelte-1yaifwd`,code:`.preview.svelte-1yaifwd {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;&.tile {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);.sui.icon {font-size:48px;}}&.icon {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}&:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) {overflow:hidden;aspect-ratio:1 / 1;img:where(.svelte-1yaifwd) {
|
|
787
|
+
`))},p=async()=>{let e=l,{type:t}=e;if(Cp(t)){await navigator.clipboard.writeText(await e.text());return}if(!iM.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await _M(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=Y(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=Y(`clipboard_error`)}finally{s.show=!0}};Qr(()=>{(async()=>{P(a,await Promise.all(r().map(m4)),!0),P(o,await u(),!0)})()});var h=y4(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>Y(`copy_options`));uR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>Y(`copy`));II(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=M(()=>!r().length),a=M(()=>Y(`copy`));hR(e,{get disabled(){return z(i)},get label(){return z(a)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};W(g,e=>{i()?e(_):e(v,-1)}),Kz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{$F(e,{get status(){return s.status},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),k()}var v4,y4,b4=o((()=>{Z(),J(),X(),$(),Mp(),g4(),LM(),oM(),yM(),v4=B(`<!> <!> <!>`,1),y4=B(`<!> <!>`,1)})),x4,S4,C4=o((()=>{Pp(),x4={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},S4=ln({...x4})})),w4,T4=o((()=>{Pp(),C4(),w4=ln({...x4})})),E4,D4,O4,k4,A4=o((()=>{kw(),Pp(),PF(),oA(),OC(),vD(),AO(),_E(),E4=()=>{let e=_D.account;if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},D4=async({changes:e,commit:t})=>{let{databaseName:n}=A(iA)?.repository??{};if(!n)return;let r=new Ew(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:hE(c).size,text:c,meta:s};await r.set(a,l)}))},O4=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));wC.update(e=>[...e.filter(e=>!r.has(e.id)),...t]);let i=new Set(n.map(e=>e.path));e.forEach(e=>{e.action===`move`&&e.previousPath?i.add(e.previousPath):e.action===`delete`&&i.add(e.path)}),vF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},k4=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=A(iA),a={...await i(e,r),author:E4()};kO.devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await D4({changes:e,commit:a}),O4({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),j4,M4,efe=o((()=>{PF(),T4(),A4(),C4(),j4=({assets:e})=>{CF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),w4.set({...x4,deleted:!0,count:e.length})},M4=async e=>{await k4({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),j4({assets:e})}}));function N4(e,t){O(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`buttonDescription`,3,``),i=q(t,`dialogDescription`,3,``),a=q(t,`onDelete`,3,void 0),o=q(t,`useButton`,3,!0),s=N(!1),c=M(()=>o()?hI:hR);var l=P4(),u=I(l);{let e=M(()=>!n().length),t=M(()=>Y(`delete`));Eo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{P(s,!0)}})})}var d=L(u,2);{let e=M(()=>Y(`delete_assets`,{values:{count:n().length}})),t=M(()=>Y(`delete`));yL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{M4(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{gt();var n=Ma();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),k()}var P4,F4=o((()=>{Z(),J(),X(),$(),efe(),P4=B(`<!> <!>`,1)}));function I4(e,t){O(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?hI:hR),o=async()=>{for(let e of n())jp(await AM(e),e.name),await ww(300);P(i,!0)};var s=L4(),c=I(s);{let e=M(()=>!n().length),t=M(()=>Y(`download`));Eo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}Kz(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{$F(e,{status:`success`,children:(e,t)=>{gt();var r=Ma();R(e=>U(r,e),[()=>Y(`assets_downloaded`,{values:{count:n().length}})]),H(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,s),k()}var L4,R4=o((()=>{Z(),J(),X(),$(),Mp(),Tw(),LM(),L4=B(`<!> <!>`,1)}));function z4(e,t){O(t,!0);let n=()=>j(iA,`$backend`,r),[r,i]=mn(),a=q(t,`extraItems`,3,void 0),o=N(xr({...p4})),s=M(()=>z(o).publicURL),c=M(()=>z(o).repoBlobURL),l=async()=>{P(o,t.asset?await m4(t.asset):{...p4},!0)};Qr(()=>{t.asset,l()});{let r=e=>{{let r=M(()=>Y(`edit_options`));uR(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=B4(),o=I(i);wo(o,()=>a()??E);var l=L(o,2);{let e=M(()=>Y(`edit`)),n=M(()=>Y(`edit_asset`)),r=M(()=>!t.asset||!Xw(t.asset));hR(l,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(EF,t.asset)}})}var u=L(l,2);{let e=M(()=>Y(`rename`)),n=M(()=>Y(`rename_asset`)),r=M(()=>!t.asset);hR(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(DF,t.asset)}})}var d=L(u,2);{let e=M(()=>Y(`replace`)),n=M(()=>Y(`replace_asset`)),r=M(()=>!t.asset);hR(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(TF,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),pn(Z0,!0)}})}var f=L(d,2);WI(f,{});var p=L(f,2);{let e=M(()=>Y(`view_on_live_site`)),t=M(()=>!z(s));hR(p,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{a2(z(s))}})}var m=L(p,2),h=e=>{{let t=M(()=>!n()?.repository||!z(c)),r=M(()=>Y(`view_on_x`,{values:{service:n()?.repository?.label},default:Y(`view_in_repository`)}));hR(e,{get disabled(){return z(t)},get label(){return z(r)},onclick:()=>{a2(`${z(c)}?plain=1`)}})}};W(m,e=>{kO.devModeEnabled&&e(h)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>Y(`show_edit_options`));II(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:r,$$slots:{popup:!0}})}k(),i()}var B4,V4=o((()=>{Z(),J(),X(),$(),PF(),g4(),Qw(),i2(),oA(),AO(),o2(),B4=B(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function H4(e,t){O(t,!0);let n=q(t,`useShortcut`,3,!1),r=q(t,`onclick`,3,void 0);{let i=e=>{{let t=M(()=>wh()?`arrow_forward`:`arrow_back`);ZF(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??Y(`back`)),o=M(()=>n()?`Escape`:void 0);hI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(a)},get keyShortcuts(){return z(o)},class:`back`,get onclick(){return r()},startIcon:i,$$slots:{startIcon:!0}})}k()}var U4=o((()=>{Z(),J(),X(),$()}));function tfe(e,t){O(t,!0);let n=()=>j(wF,`$overlaidAsset`,i),r=()=>j(Up,`$selectedAssetFolder`,i),[i,a]=mn(),o=e=>{var t=W4(),n=I(t);_4(n,{get assets(){return z(s)},get useButton(){return z(c)}});var i=L(n,2);I4(i,{get assets(){return z(s)},get useButton(){return z(c)}});var a=L(i,2);{let e=M(()=>Y(`delete_asset`)),t=M(()=>Y(`confirm_deleting_this_asset`));N4(a,{get assets(){return z(s)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{h2(`/assets/${r()?.internalPath??`-/all`}`)},get useButton(){return z(c)}})}H(e,t)},s=M(()=>n()?[n()]:[]),c=M(()=>!nE.isSmallScreen);{let t=M(()=>Y(`primary`));H1(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var i=G4(),a=I(i);{let e=M(()=>Y(`cancel_editing`));H4(a,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{h2(`/assets/${r()?.internalPath??`-/all`}`)}})}var s=L(a,2);aI(F(s),{children:(e,t)=>{gt();var r=Ma();R(()=>U(r,n()?.name)),H(e,r)},$$slots:{default:!0}}),D(s);var c=L(s,2),l=e=>{o(e)};W(c,e=>{nE.isSmallScreen||e(l)}),z4(L(c,2),{get asset(){return n()},extraItems:e=>{var t=V(),n=I(t),r=e=>{o(e)};W(n,e=>{nE.isSmallScreen&&e(r)}),H(e,t)},$$slots:{extraItems:!0}}),H(e,i)},$$slots:{default:!0}})}k(),a()}var W4,G4,nfe=o((()=>{Z(),J(),X(),$(),b4(),F4(),R4(),V4(),U4(),_2(),PF(),Yp(),iE(),W4=B(`<!> <!> <!>`,1),G4=B(`<!> <h2 role="none"><!></h2> <!> <!>`,1)}));function K4(e,t){O(t,!0),G(e,$4);let n=q(t,`loading`,3,`lazy`),r=q(t,`asset`,3,void 0),i=q(t,`src`,15,void 0),a=q(t,`variant`,3,void 0),o=q(t,`blurBackground`,3,!1),s=q(t,`cover`,3,!1),c=q(t,`checkerboard`,3,!1),l=q(t,`dissolve`,3,!0),u=q(t,`alt`,3,``),d=q(t,`controls`,3,!1),f=Js(t,q4),p=N(void 0),m=N(!1),h=N(!1),g=N(void 0),_=N(void 0),v=M(()=>!!r()&&!!a()&&!d()),y=M(()=>t.kind===`image`||r()?.name.endsWith(`.pdf`)||z(v)&&Uw.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await uI(z(p));try{i(z(v)?await NM(r()):await jM(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,Hn()}},S=async()=>{!z(p)||!z(_)||((z(y)?!z(p).complete:!z(p).readyState)&&await new Promise(e=>{z(p)?.addEventListener(z(y)?`load`:`loadedmetadata`,()=>{e(void 0)},{once:!0})}),l()&&await uI(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&(await ww(500),URL.revokeObjectURL(i())))};Qr(()=>{r()&&!z(g)&&(async()=>{P(g,await NM(r(),{cacheOnly:!0}),!0)})()}),Qr(()=>{z(p)&&r()&&x()}),Qr(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await uI(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),Qr(()=>{z(p)&&z(_)&&S()});var C=Q4();let w;var T=F(C),ee=e=>{ZF(e,{name:`draft`})},te=e=>{var t=J4();vs(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Hs(t,e=>P(p,e),()=>z(p)),ha(t),H(e,t)},ne=e=>{var t=Y4();vs(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Hs(t,e=>P(p,e),()=>z(p)),H(e,t)},re=e=>{var t=V(),n=I(t),r=e=>{var t=X4();vs(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Hs(t,e=>P(p,e),()=>z(p)),H(e,t)},i=e=>{ZF(e,{name:`audio_file`})};W(n,e=>{d()?e(r):e(i,-1)}),H(e,t)},ie=e=>{ZF(e,{name:`draft`})};W(T,e=>{z(m)?e(ee):z(y)?e(te,1):t.kind===`video`?e(ne,2):t.kind===`audio`?e(re,3):e(ie,-1)});var ae=L(T,2),oe=e=>{var t=Z4(),n=F(t),r=F(n),i=e=>{var t=Ma();R(e=>U(t,e),[()=>Y(`loading`)]),H(e,t)};W(r,e=>{!z(v)&&!z(h)&&e(i)}),D(n);var a=L(n,2);let o;D(t),R(()=>{K(a,`src`,z(g)),o=os(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),H(e,t)};W(ae,e=>{o()&&e(oe)}),D(C),R(()=>w=os(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),H(e,C),k()}var q4,J4,Y4,X4,Z4,Q4,$4,e3=o((()=>{Z(),J(),X(),$(),dI(),Tw(),ac(),LM(),Qw(),q4=new Set([`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),J4=B(`<img/>`),Y4=B(`<video></video>`,2),X4=B(`<audio></audio>`),Z4=B(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),Q4=B(`<div role="none"><!> <!></div>`),$4={hash:`svelte-1yaifwd`,code:`.preview.svelte-1yaifwd {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;&.tile {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);.sui.icon {font-size:48px;}}&.icon {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}&:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) {overflow:hidden;aspect-ratio:1 / 1;img:where(.svelte-1yaifwd) {
|
|
788
788
|
/* Prevent the image from being dragged */pointer-events:none;}}.blur:where(.svelte-1yaifwd) {display:contents;& > :where(.svelte-1yaifwd) {position:absolute;inset:0;pointer-events:none;}.overlay:where(.svelte-1yaifwd) {display:flex;justify-content:center;align-items:center;z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}img:where(.svelte-1yaifwd) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);&.loaded {opacity:1;}}}&.cover {padding:0;& > :is(img, video) {flex:auto;}}& > :is(img, video) {flex:0;max-width:100%;max-height:100%;}&.dissolve {:is(img, video) {opacity:0;transition:opacity 250ms;}&.loaded {:is(img, video) {opacity:1;}}}}
|
|
789
789
|
|
|
790
790
|
/* prettier-ignore */.checkerboard.svelte-1yaifwd img:where(.svelte-1yaifwd) {
|