@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.js
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)){py(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(cy(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=fy(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(cy(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(uy(t.key)&&!cy(t.sep,`newline`)){let e=fy(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]}):cy(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&&!cy(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)){py(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||cy(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=fy(dy(t));my(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=fy(dy(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=fy(dy(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 Dne(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new oy||null,prettyErrors:t}}function One(e,t={}){let{lineCounter:n,prettyErrors:r}=Dne(t),i=new hy(n?.addNewLine),a=new Wv(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 bv(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(xv(e,n)),o.warnings.forEach(xv(e,n))),o}function _y(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=One(e,n);if(!i)return null;if(i.warnings.forEach(e=>Xg(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 vy(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 Rh(e)&&!r?e.toString(n):new _v(e,r,n).toString(n)}var kne=s((()=>{Gv(),vv(),Sv(),Zg(),Wh(),sy(),gy()})),yy=s((()=>{Gv(),vv(),Gte(),Sv(),vg(),Wh(),l_(),xg(),h_(),b_(),Zv(),ay(),sy(),gy(),kne(),tg()})),by=s((()=>{yy(),yy()})),xy,Sy=s((()=>{xy=({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]))}})),Cy,Ane=s((()=>{Cy=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`],[`−`,`-`],[`⁓`,`-`]])})),wy,Ty,jne=s((()=>{wy=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],Ty={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:wy,nb:wy,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(Ty))Ty[e]=new Map(Ty[e])}));function Mne(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=Ay(t.locale),r=[...t.customReplacements],i=Cy,a=Oy;if(n&&({replacements:i,pattern:a}=ky.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 Ey,Dy,Oy,ky,Ay,Nne=s((()=>{Ane(),jne(),Ey=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),Dy=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>Ey(e)).join(`|`),`gu`)},Oy=Dy(Cy),ky=new Map;for(let[e,t]of Object.entries(Ty)){let n=new Map(Cy);for(let[e,r]of t)n.set(e,r);ky.set(e,{replacements:n,pattern:Dy(n)})}Ay=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(Ty,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(Ty,n))return n}})),jy,My=s((()=>{jy=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})),Ny,Py,Fy,Iy=s((()=>{Nne(),up(),_p(),Mp(),sF(),My(),Ny=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],Py=new Map,Fy=(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(nF)??{},u=r??s,d=e;if(a&&(d=Mne(d.normalize(`NFD`),{locale:n&&Ny.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=jy(Py,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=sp(`short`)),typeof u==`number`&&d.length>u&&(d=fp(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 Ly(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 Pne(e){if(Array.isArray(e))return e}function Fne(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 Ine(){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 Lne(e,t){return Pne(e)||Fne(e,t)||Rne(e,t)||Ine()}function Rne(e,t){if(e){if(typeof e==`string`)return Ly(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)?Ly(e,t):void 0}}function Ry(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Qy(e,t,r)}}function zne(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return $y(e,n)}}function zy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ob;if(Wy&&Wy(e,null),!ab(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Gy(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Bne(e){for(let t=0;t<e.length;t++)gb(e,t)||(e[t]=null);return e}function By(e){let t=Xy(null);for(let r of Uy(e)){var n=Lne(r,2);let i=n[0],a=n[1];gb(e,i)&&(ab(a)?t[i]=Bne(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=By(a):t[i]=a)}return t}function Vne(e){switch(typeof e){case`string`:return e;case`number`:return fb(e);case`boolean`:return pb(e);case`bigint`:return mb?mb(e):`0`;case`symbol`:return hb?hb(e):`Symbol()`;case`undefined`:return _b(e);case`function`:case`object`:{if(e===null)return _b(e);let t=e,n=Vy(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:_b(e)}return _b(e)}default:return _b(e)}}function Vy(e,t){for(;e!==null;){let n=qy(e,t);if(n){if(n.get)return Ry(n.get);if(typeof n.value==`function`)return Ry(n.value)}e=Ky(e)}function n(){return null}return n}function Hne(e){try{return vb(e,``),!0}catch{return!1}}function Hy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hb(),t=e=>Hy(e);if(t.version=`3.4.8`,t.removed=[],!e||!e.document||e.document.nodeType!==Vb.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=Vy(d,`cloneNode`),p=Vy(d,`remove`),m=Vy(d,`nextSibling`),h=Vy(d,`childNodes`),g=Vy(d,`parentNode`),_=Vy(d,`shadowRoot`),v=Vy(d,`attributes`),y=o&&o.prototype?Vy(o.prototype,`nodeType`):null,b=o&&o.prototype?Vy(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 yb(`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--}},ee=n,T=ee.implementation,te=ee.createNodeIterator,ne=ee.createDocumentFragment,re=ee.getElementsByTagName,ie=r.importNode,ae=Wb();t.isSupported=typeof Uy==`function`&&typeof g==`function`&&T&&T.createHTMLDocument!==void 0;let oe=jb,se=Mb,ce=Nb,le=Pb,ue=Fb,de=Lb,fe=Rb,E=Bb,pe=Ib,me=null,he=zy({},[...bb,...xb,...Sb,...wb,...Eb]),ge=null,_e=zy({},[...Db,...Ob,...kb,...Ab]),ve=Object.seal(Xy(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(Xy(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=zy({},[`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=zy({},[`audio`,`video`,`img`,`source`,`image`,`track`]),We=null,Ge=zy({},[`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=zy({},[Ke,qe,Je],sb),$e=zy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),et=zy({},[`annotation-xml`]),tt=zy({},[`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=By(e),nt=rt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,it=nt===`application/xhtml+xml`?sb:ob,me=gb(e,`ALLOWED_TAGS`)&&ab(e.ALLOWED_TAGS)?zy({},e.ALLOWED_TAGS,it):he,ge=gb(e,`ALLOWED_ATTR`)&&ab(e.ALLOWED_ATTR)?zy({},e.ALLOWED_ATTR,it):_e,Ze=gb(e,`ALLOWED_NAMESPACES`)&&ab(e.ALLOWED_NAMESPACES)?zy({},e.ALLOWED_NAMESPACES,sb):Qe,We=gb(e,`ADD_URI_SAFE_ATTR`)&&ab(e.ADD_URI_SAFE_ATTR)?zy(By(Ge),e.ADD_URI_SAFE_ATTR,it):Ge,He=gb(e,`ADD_DATA_URI_TAGS`)&&ab(e.ADD_DATA_URI_TAGS)?zy(By(Ue),e.ADD_DATA_URI_TAGS,it):Ue,Be=gb(e,`FORBID_CONTENTS`)&&ab(e.FORBID_CONTENTS)?zy({},e.FORBID_CONTENTS,it):Ve,ye=gb(e,`FORBID_TAGS`)&&ab(e.FORBID_TAGS)?zy({},e.FORBID_TAGS,it):By({}),be=gb(e,`FORBID_ATTR`)&&ab(e.FORBID_ATTR)?zy({},e.FORBID_ATTR,it):By({}),ze=gb(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?By(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=Hne(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ib,Ye=typeof e.NAMESPACE==`string`?e.NAMESPACE:Je,$e=gb(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?By(e.MATHML_TEXT_INTEGRATION_POINTS):zy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),et=gb(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?By(e.HTML_INTEGRATION_POINTS):zy({},[`annotation-xml`]);let t=gb(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?By(e.CUSTOM_ELEMENT_HANDLING):Xy(null);if(ve=Xy(null),gb(t,`tagNameCheck`)&&st(t.tagNameCheck)&&(ve.tagNameCheck=t.tagNameCheck),gb(t,`attributeNameCheck`)&&st(t.attributeNameCheck)&&(ve.attributeNameCheck=t.attributeNameCheck),gb(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ve.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Ee&&(Ce=!1),Me&&(je=!0),ze&&(me=zy({},Eb),ge=Xy(null),ze.html===!0&&(zy(me,bb),zy(ge,Db)),ze.svg===!0&&(zy(me,xb),zy(ge,Ob),zy(ge,Ab)),ze.svgFilters===!0&&(zy(me,Sb),zy(ge,Ob),zy(ge,Ab)),ze.mathMl===!0&&(zy(me,wb),zy(ge,kb),zy(ge,Ab))),xe.tagCheck=null,xe.attributeCheck=null,gb(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?xe.tagCheck=e.ADD_TAGS:ab(e.ADD_TAGS)&&(me===he&&(me=By(me)),zy(me,e.ADD_TAGS,it))),gb(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?xe.attributeCheck=e.ADD_ATTR:ab(e.ADD_ATTR)&&(ge===_e&&(ge=By(ge)),zy(ge,e.ADD_ATTR,it))),gb(e,`ADD_URI_SAFE_ATTR`)&&ab(e.ADD_URI_SAFE_ATTR)&&zy(We,e.ADD_URI_SAFE_ATTR,it),gb(e,`FORBID_CONTENTS`)&&ab(e.FORBID_CONTENTS)&&(Be===Ve&&(Be=By(Be)),zy(Be,e.FORBID_CONTENTS,it)),gb(e,`ADD_FORBID_CONTENTS`)&&ab(e.ADD_FORBID_CONTENTS)&&(Be===Ve&&(Be=By(Be)),zy(Be,e.ADD_FORBID_CONTENTS,it)),Le&&(me[`#text`]=!0),Oe&&zy(me,[`html`,`head`,`body`]),me.table&&(zy(me,[`tbody`]),delete ye.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw yb(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw yb(`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=Ub(u,i)),x&&typeof S==`string`&&(S=w(``));(ae.uponSanitizeElement.length>0||ae.uponSanitizeAttribute.length>0)&&me===he&&(me=By(me)),ae.uponSanitizeAttribute.length>0&&ge===_e&&(ge=By(ge)),Jy&&Jy(e),at=e},lt=zy({},[...xb,...Sb,...Cb]),ut=zy({},[...wb,...Tb]),dt=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:Ye,tagName:`template`});let n=ob(e.tagName),r=ob(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){rb(t.removed,{element:e});try{g(e).removeChild(e)}catch{p(e)}},pt=function(e,n){try{rb(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{rb(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=cb(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=T.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)},gt=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;eb([oe,se,ce],t=>{e=lb(e,t,` `)}),n.data=e,n=t.nextNode()}let r=e.querySelectorAll?.call(e,`template`)??[];eb(Array.from(r),e=>{_t(e.content)&>(e.content)})},D=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)===Vb.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){eb(e,e=>{e.call(t,n,r,at)})}let bt=function(e){let n=null;if(yt(ae.beforeSanitizeElements,e,null),D(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)&&vb(/<[/\w!]/g,e.innerHTML)&&vb(/<[/\w!]/g,e.textContent)||De&&e.namespaceURI===Je&&r===`style`&&vt(e.firstElementChild)||e.nodeType===Vb.progressingInstruction||De&&e.nodeType===Vb.comment&&vb(/<[/\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&&vb(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)===Vb.element&&!dt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&vb(/<\/no(script|embed|frames)/i,e.innerHTML)?(ft(e),!0):(Ee&&e.nodeType===Vb.text&&(n=e.textContent,eb([oe,se,ce],e=>{n=lb(n,e,` `)}),e.textContent!==n&&(rb(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]&&vb(le,t))&&!(Se&&vb(ue,t))){if(!i||be[t]){if(!(Ct(e)&&(ve.tagNameCheck instanceof RegExp&&vb(ve.tagNameCheck,e)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(e))&&(ve.attributeNameCheck instanceof RegExp&&vb(ve.attributeNameCheck,t)||ve.attributeNameCheck instanceof Function&&ve.attributeNameCheck(t,e))||t===`is`&&ve.allowCustomizedBuiltInElements&&(ve.tagNameCheck instanceof RegExp&&vb(ve.tagNameCheck,r)||ve.tagNameCheck instanceof Function&&ve.tagNameCheck(r))))return!1}else if(!We[t]&&!vb(pe,lb(r,fe,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ub(r,`data:`)===0&&He[e])&&!(we&&!vb(de,lb(r,fe,``)))&&r)return!1}return!0},St=zy({},[`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[ob(e)]&&vb(E,e)},wt=function(e){yt(ae.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||D(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:db(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`)&&ub(f,Ie)!==0&&(pt(o,e),f=Ie+f),De&&vb(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){pt(o,e);continue}if(l===`attributename`&&cb(f,`href`)){pt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){pt(o,e);continue}if(!Te&&vb(/\/>/i,f)){pt(o,e);continue}Ee&&eb([oe,se,ce],e=>{f=lb(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),D(e)?ft(e):nb(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)===Vb.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===Vb.element){let t=_?_(e):e.shadowRoot;_t(t)&&(Et(t),Tt(t))}let n=h?h(e):e.childNodes;if(!n)return;let r=[];eb(n,e=>{rb(r,e)});for(let e of r)Et(e);if(t===Vb.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=Vne(e),typeof e!=`string`))throw yb(`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 yb(`root node is forbidden and cannot be sanitized in-place`)}if(D(e))throw yb(`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===Vb.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&>(e),e;if(je){if(Ee&>(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&&vb(zb,i.ownerDocument.doctype.name)&&(l=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
155
|
-
`+l),Ee&&eb([oe,se,ce],e=>{l=lb(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`&&rb(ae[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=tb(ae[e],t);return n===-1?void 0:ib(ae[e],n,1)[0]}return nb(ae[e])},t.removeHooks=function(e){ae[e]=[]},t.removeAllHooks=function(){ae=Wb()},t}var Uy,Wy,Gy,Ky,qy,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,Une=s((()=>{Uy=Object.entries,Wy=Object.setPrototypeOf,Gy=Object.isFrozen,Ky=Object.getPrototypeOf,qy=Object.getOwnPropertyDescriptor,Jy=Object.freeze,Yy=Object.seal,Xy=Object.create,Zy=typeof Reflect<`u`&&Reflect,Qy=Zy.apply,$y=Zy.construct,Jy||=function(e){return e},Yy||=function(e){return e},Qy||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},$y||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},eb=Ry(Array.prototype.forEach),tb=Ry(Array.prototype.lastIndexOf),nb=Ry(Array.prototype.pop),rb=Ry(Array.prototype.push),ib=Ry(Array.prototype.splice),ab=Array.isArray,ob=Ry(String.prototype.toLowerCase),sb=Ry(String.prototype.toString),cb=Ry(String.prototype.match),lb=Ry(String.prototype.replace),ub=Ry(String.prototype.indexOf),db=Ry(String.prototype.trim),fb=Ry(Number.prototype.toString),pb=Ry(Boolean.prototype.toString),mb=typeof BigInt>`u`?null:Ry(BigInt.prototype.toString),hb=typeof Symbol>`u`?null:Ry(Symbol.prototype.toString),gb=Ry(Object.prototype.hasOwnProperty),_b=Ry(Object.prototype.toString),vb=Ry(RegExp.prototype.test),yb=zne(TypeError),bb=Jy(`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(`.`)),xb=Jy(`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(`.`)),Sb=Jy([`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`]),Cb=Jy([`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`]),wb=Jy(`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(`.`)),Tb=Jy([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Eb=Jy([`#text`]),Db=Jy(`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(`.`)),Ob=Jy(`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(`.`)),kb=Jy(`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(`.`)),Ab=Jy([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),jb=Yy(/{{[\w\W]*|^[\w\W]*}}/g),Mb=Yy(/<%[\w\W]*|^[\w\W]*%>/g),Nb=Yy(/\${[\w\W]*/g),Pb=Yy(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fb=Yy(/^aria-[\-\w]+$/),Ib=Yy(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lb=Yy(/^(?:\w+script|data):/i),Rb=Yy(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zb=Yy(/^html$/i),Bb=Yy(/^[a-z][.\w]*(-[.\w]+)+$/i),Vb={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Hb=function(){return typeof window>`u`?null:window},Ub=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}},Wb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Gb=Hy()})),Kb,qb=s((()=>{Une(),Kb=Gb.sanitize.bind(Gb),Gb.isSupported,Gb.addHook.bind(Gb),Gb.removeHook.bind(Gb),Gb.removeHooks.bind(Gb),Gb.removeAllHooks.bind(Gb),Gb.setConfig.bind(Gb),Gb.clearConfig.bind(Gb),Gb.isValidAttribute.bind(Gb),Gb.version,Gb.removed}));function Jb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Yb(e){ax=e}function Xb(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 Zb(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(cx.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Qb(e,t){if(t){if(cx.escapeTest.test(e))return e.replace(cx.escapeReplace,hS)}else if(cx.escapeTestNoEncode.test(e))return e.replace(cx.escapeReplaceNoEncode,hS);return e}function $b(e){try{e=encodeURI(e).replace(cx.percentDecode,`%`)}catch{return null}return e}function ex(e,t){let n=e.replace(cx.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(cx.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(cx.slashPipe,`|`);return n}function tx(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 nx(e){let t=e.split(`
|
|
154
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lne(e,t){return Pne(e)||Fne(e,t)||Rne(e,t)||Ine()}function Rne(e,t){if(e){if(typeof e==`string`)return Ly(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)?Ly(e,t):void 0}}function Ry(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Qy(e,t,r)}}function zne(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return $y(e,n)}}function zy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ob;if(Wy&&Wy(e,null),!ab(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Gy(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Bne(e){for(let t=0;t<e.length;t++)gb(e,t)||(e[t]=null);return e}function By(e){let t=Xy(null);for(let r of Uy(e)){var n=Lne(r,2);let i=n[0],a=n[1];gb(e,i)&&(ab(a)?t[i]=Bne(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=By(a):t[i]=a)}return t}function Vne(e){switch(typeof e){case`string`:return e;case`number`:return fb(e);case`boolean`:return pb(e);case`bigint`:return mb?mb(e):`0`;case`symbol`:return hb?hb(e):`Symbol()`;case`undefined`:return _b(e);case`function`:case`object`:{if(e===null)return _b(e);let t=e,n=Vy(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:_b(e)}return _b(e)}default:return _b(e)}}function Vy(e,t){for(;e!==null;){let n=qy(e,t);if(n){if(n.get)return Ry(n.get);if(typeof n.value==`function`)return Ry(n.value)}e=Ky(e)}function n(){return null}return n}function Hne(e){try{return vb(e,``),!0}catch{return!1}}function Hy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hb(),t=e=>Hy(e);if(t.version=`3.4.9`,t.removed=[],!e||!e.document||e.document.nodeType!==Vb.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=Vy(d,`cloneNode`),p=Vy(d,`remove`),m=Vy(d,`nextSibling`),h=Vy(d,`childNodes`),g=Vy(d,`parentNode`),_=Vy(d,`shadowRoot`),v=Vy(d,`attributes`),y=o&&o.prototype?Vy(o.prototype,`nodeType`):null,b=o&&o.prototype?Vy(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,ee=0,T=function(){if(ee>0)throw yb(`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){T(),ee++;try{return x.createHTML(e)}finally{ee--}},ne=function(e){T(),ee++;try{return x.createScriptURL(e)}finally{ee--}},re=function(){return w||=(C=Ub(u,i),!0),C},ie=n,ae=ie.implementation,oe=ie.createNodeIterator,se=ie.createDocumentFragment,ce=ie.getElementsByTagName,le=r.importNode,ue=Wb();t.isSupported=typeof Uy==`function`&&typeof g==`function`&&ae&&ae.createHTMLDocument!==void 0;let de=jb,fe=Mb,E=Nb,pe=Pb,me=Fb,he=Lb,ge=Rb,_e=Bb,ve=Ib,ye=null,be=zy({},[...bb,...xb,...Sb,...wb,...Eb]),xe=null,Se=zy({},[...Db,...Ob,...kb,...Ab]),Ce=Object.seal(Xy(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(Xy(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=zy({},`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=zy({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ye=null,Xe=zy({},[`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=zy({},[Ze,Qe,$e],sb),it=zy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),at=zy({},[`annotation-xml`]),ot=zy({},[`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=By(e),st=ct.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,lt=st===`application/xhtml+xml`?sb:ob,ye=gb(e,`ALLOWED_TAGS`)&&ab(e.ALLOWED_TAGS)?zy({},e.ALLOWED_TAGS,lt):be,xe=gb(e,`ALLOWED_ATTR`)&&ab(e.ALLOWED_ATTR)?zy({},e.ALLOWED_ATTR,lt):Se,nt=gb(e,`ALLOWED_NAMESPACES`)&&ab(e.ALLOWED_NAMESPACES)?zy({},e.ALLOWED_NAMESPACES,sb):rt,Ye=gb(e,`ADD_URI_SAFE_ATTR`)&&ab(e.ADD_URI_SAFE_ATTR)?zy(By(Xe),e.ADD_URI_SAFE_ATTR,lt):Xe,qe=gb(e,`ADD_DATA_URI_TAGS`)&&ab(e.ADD_DATA_URI_TAGS)?zy(By(Je),e.ADD_DATA_URI_TAGS,lt):Je,Ge=gb(e,`FORBID_CONTENTS`)&&ab(e.FORBID_CONTENTS)?zy({},e.FORBID_CONTENTS,lt):Ke,we=gb(e,`FORBID_TAGS`)&&ab(e.FORBID_TAGS)?zy({},e.FORBID_TAGS,lt):By({}),Te=gb(e,`FORBID_ATTR`)&&ab(e.FORBID_ATTR)?zy({},e.FORBID_ATTR,lt):By({}),We=gb(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?By(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=Hne(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ib,et=typeof e.NAMESPACE==`string`?e.NAMESPACE:$e,it=gb(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?By(e.MATHML_TEXT_INTEGRATION_POINTS):zy({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),at=gb(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?By(e.HTML_INTEGRATION_POINTS):zy({},[`annotation-xml`]);let t=gb(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?By(e.CUSTOM_ELEMENT_HANDLING):Xy(null);if(Ce=Xy(null),gb(t,`tagNameCheck`)&&ft(t.tagNameCheck)&&(Ce.tagNameCheck=t.tagNameCheck),gb(t,`attributeNameCheck`)&&ft(t.attributeNameCheck)&&(Ce.attributeNameCheck=t.attributeNameCheck),gb(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Ce.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),je&&(Oe=!1),Le&&(Ie=!0),We&&(ye=zy({},Eb),xe=Xy(null),We.html===!0&&(zy(ye,bb),zy(xe,Db)),We.svg===!0&&(zy(ye,xb),zy(xe,Ob),zy(xe,Ab)),We.svgFilters===!0&&(zy(ye,Sb),zy(xe,Ob),zy(xe,Ab)),We.mathMl===!0&&(zy(ye,wb),zy(xe,kb),zy(xe,Ab))),Ee.tagCheck=null,Ee.attributeCheck=null,gb(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Ee.tagCheck=e.ADD_TAGS:ab(e.ADD_TAGS)&&(ye===be&&(ye=By(ye)),zy(ye,e.ADD_TAGS,lt))),gb(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Ee.attributeCheck=e.ADD_ATTR:ab(e.ADD_ATTR)&&(xe===Se&&(xe=By(xe)),zy(xe,e.ADD_ATTR,lt))),gb(e,`ADD_URI_SAFE_ATTR`)&&ab(e.ADD_URI_SAFE_ATTR)&&zy(Ye,e.ADD_URI_SAFE_ATTR,lt),gb(e,`FORBID_CONTENTS`)&&ab(e.FORBID_CONTENTS)&&(Ge===Ke&&(Ge=By(Ge)),zy(Ge,e.FORBID_CONTENTS,lt)),gb(e,`ADD_FORBID_CONTENTS`)&&ab(e.ADD_FORBID_CONTENTS)&&(Ge===Ke&&(Ge=By(Ge)),zy(Ge,e.ADD_FORBID_CONTENTS,lt)),He&&(ye[`#text`]=!0),Ne&&zy(ye,[`html`,`head`,`body`]),ye.table&&(zy(ye,[`tbody`]),delete we.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw yb(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw yb(`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=By(ye)),ue.uponSanitizeAttribute.length>0&&xe===Se&&(xe=By(xe)),Jy&&Jy(e),ut=e},mt=zy({},[...xb,...Sb,...Cb]),ht=zy({},[...wb,...Tb]),gt=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:et,tagName:`template`});let n=ob(e.tagName),r=ob(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},D=function(e){rb(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw yb(`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=[];eb(t,t=>{rb(e,t)}),eb(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{rb(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{rb(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ie||Le)try{D(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)===Vb.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=cb(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;eb([de,fe,E],t=>{e=lb(e,t,` `)}),n.data=e,n=t.nextNode()}let r=e.querySelectorAll?.call(e,`template`)??[];eb(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)===Vb.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){eb(e,e=>{e.call(t,n,r,ut)})}let Ot=function(e){let n=null;if(Dt(ue.beforeSanitizeElements,e,null),wt(e))return D(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)&&vb(/<[/\w!]/g,e.innerHTML)&&vb(/<[/\w!]/g,e.textContent)||Me&&e.namespaceURI===$e&&r===`style`&&Et(e.firstElementChild)||e.nodeType===Vb.progressingInstruction||Me&&e.nodeType===Vb.comment&&vb(/<[/\w]/g,e.data))return D(e),!0;if(we[r]||!(Ee.tagCheck instanceof Function&&Ee.tagCheck(r))&&!ye[r]){if(!we[r]&&jt(r)&&(Ce.tagNameCheck instanceof RegExp&&vb(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 D(e),!0}return(y?y(e):e.nodeType)===Vb.element&&!gt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&vb(/<\/no(script|embed|frames)/i,e.innerHTML)?(D(e),!0):(je&&e.nodeType===Vb.text&&(n=e.textContent,eb([de,fe,E],e=>{n=lb(n,e,` `)}),e.textContent!==n&&(rb(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]&&vb(pe,t))&&!(De&&vb(me,t))){if(!i||Te[t]){if(!(jt(e)&&(Ce.tagNameCheck instanceof RegExp&&vb(Ce.tagNameCheck,e)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(e))&&(Ce.attributeNameCheck instanceof RegExp&&vb(Ce.attributeNameCheck,t)||Ce.attributeNameCheck instanceof Function&&Ce.attributeNameCheck(t,e))||t===`is`&&Ce.allowCustomizedBuiltInElements&&(Ce.tagNameCheck instanceof RegExp&&vb(Ce.tagNameCheck,r)||Ce.tagNameCheck instanceof Function&&Ce.tagNameCheck(r))))return!1}else if(!Ye[t]&&!vb(ve,lb(r,ge,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ub(r,`data:`)===0&&qe[e])&&!(ke&&!vb(he,lb(r,ge,``)))&&r)return!1}return!0},At=zy({},[`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[ob(e)]&&vb(_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:db(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`)&&ub(f,Ve)!==0&&(vt(o,e),f=Ve+f),Me&&vb(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){vt(o,e);continue}if(l===`attributename`&&cb(f,`href`)){vt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){vt(o,e);continue}if(!Ae&&vb(/\/>/i,f)){vt(o,e);continue}je&&eb([de,fe,E],e=>{f=lb(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)?D(e):nb(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)===Vb.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)===Vb.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=Vne(e),typeof e!=`string`))throw yb(`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 yb(`root node is forbidden and cannot be sanitized in-place`)}if(wt(e))throw yb(`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===Vb.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&&D(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 eb(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&&vb(zb,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
155
|
+
`+u),je&&eb([de,fe,E],e=>{u=lb(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`&&rb(ue[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=tb(ue[e],t);return n===-1?void 0:ib(ue[e],n,1)[0]}return nb(ue[e])},t.removeHooks=function(e){ue[e]=[]},t.removeAllHooks=function(){ue=Wb()},t}var Uy,Wy,Gy,Ky,qy,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,Une=s((()=>{Uy=Object.entries,Wy=Object.setPrototypeOf,Gy=Object.isFrozen,Ky=Object.getPrototypeOf,qy=Object.getOwnPropertyDescriptor,Jy=Object.freeze,Yy=Object.seal,Xy=Object.create,Zy=typeof Reflect<`u`&&Reflect,Qy=Zy.apply,$y=Zy.construct,Jy||=function(e){return e},Yy||=function(e){return e},Qy||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},$y||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},eb=Ry(Array.prototype.forEach),tb=Ry(Array.prototype.lastIndexOf),nb=Ry(Array.prototype.pop),rb=Ry(Array.prototype.push),ib=Ry(Array.prototype.splice),ab=Array.isArray,ob=Ry(String.prototype.toLowerCase),sb=Ry(String.prototype.toString),cb=Ry(String.prototype.match),lb=Ry(String.prototype.replace),ub=Ry(String.prototype.indexOf),db=Ry(String.prototype.trim),fb=Ry(Number.prototype.toString),pb=Ry(Boolean.prototype.toString),mb=typeof BigInt>`u`?null:Ry(BigInt.prototype.toString),hb=typeof Symbol>`u`?null:Ry(Symbol.prototype.toString),gb=Ry(Object.prototype.hasOwnProperty),_b=Ry(Object.prototype.toString),vb=Ry(RegExp.prototype.test),yb=zne(TypeError),bb=Jy(`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(`.`)),xb=Jy(`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(`.`)),Sb=Jy([`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`]),Cb=Jy([`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`]),wb=Jy(`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(`.`)),Tb=Jy([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Eb=Jy([`#text`]),Db=Jy(`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(`.`)),Ob=Jy(`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(`.`)),kb=Jy(`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(`.`)),Ab=Jy([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),jb=Yy(/{{[\w\W]*|^[\w\W]*}}/g),Mb=Yy(/<%[\w\W]*|^[\w\W]*%>/g),Nb=Yy(/\${[\w\W]*/g),Pb=Yy(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fb=Yy(/^aria-[\-\w]+$/),Ib=Yy(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lb=Yy(/^(?:\w+script|data):/i),Rb=Yy(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zb=Yy(/^html$/i),Bb=Yy(/^[a-z][.\w]*(-[.\w]+)+$/i),Vb={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Hb=function(){return typeof window>`u`?null:window},Ub=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}},Wb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Gb=Hy()})),Kb,qb=s((()=>{Une(),Kb=Gb.sanitize.bind(Gb),Gb.isSupported,Gb.addHook.bind(Gb),Gb.removeHook.bind(Gb),Gb.removeHooks.bind(Gb),Gb.removeAllHooks.bind(Gb),Gb.setConfig.bind(Gb),Gb.clearConfig.bind(Gb),Gb.isValidAttribute.bind(Gb),Gb.version,Gb.removed}));function Jb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Yb(e){ax=e}function Xb(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 Zb(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(cx.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function Qb(e,t){if(t){if(cx.escapeTest.test(e))return e.replace(cx.escapeReplace,hS)}else if(cx.escapeTestNoEncode.test(e))return e.replace(cx.escapeReplaceNoEncode,hS);return e}function $b(e){try{e=encodeURI(e).replace(cx.percentDecode,`%`)}catch{return null}return e}function ex(e,t){let n=e.replace(cx.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(cx.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(cx.slashPipe,`|`);return n}function tx(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 nx(e){let t=e.split(`
|
|
156
156
|
`),n=t.length-1;for(;n>=0&&cx.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
157
157
|
`)}function Wne(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 Gne(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 rx(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 Kne(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 @@ p(),_p(),OT(),by(),mw(),jC(),RC(),UC(),My(),kT=e=>JSON.parse(e),AT=e=>f(Qre(e)),
|
|
|
641
641
|
`,Bk=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=Tk,r=n?20:100,i=[...e],a=[];for(;;){let e=await TD(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]]))},Vk=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)},Hk=async e=>{_C.set(0);let t=window.setInterval(()=>{_C.update((e=0)=>e+1)},e.length/10),n=await Bk(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),zk);return window.clearInterval(t),_C.set(void 0),Vk({fetchingFiles:e,blobs:n})},Uk=async()=>{await Dk(),await gO({repository:Tk,fetchDefaultBranchName:kk,fetchLastCommit:Mk,fetchFileList:Rk,fetchFileContents:Hk})},Wk=async e=>{let{owner:t,repo:n,branch:r=``}=Tk,{path:i}=e;return wD(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),Gk,Kk,qk,Die=s((()=>{yD(),Gk=`https://status.gitlab.com/`,Kk=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,qk=async()=>{try{let{result:{status_overall:{status_code:e}}}=await vD(Kk);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),Jk,Yk,Xk,Oie=s((()=>{_p(),Mp(),Tie(),Ik(),bk(),Eie(),Ak(),Die(),ED(),qD(),sF(),OO(),Jk=/(?<owner>.+)\/(?<repo>[^/]+)$/,Yk=()=>{let{backend:e}=A(nF)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=vk,auth_endpoint:i=yk,app_id:a=``,api_root:o=_k,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(Jk)?.groups??{},d=`${l}/${u}`,f=`${pp(r)}/${pp(i)}`,p=KD(o,d);return Object.assign(Tk,{service:hk,label:gk,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:Sk(p),databaseName:`${hk}:${d}`,isSelfHosted:o!==_k},Ek(p,n)),Object.assign(xD,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:pp(o),graphqlBaseURL:pp(s),includeCredentials:c}),Object.assign(SD,{fullPath:d,branch:n}),DO.devModeEnabled&&console.info(`repositoryInfo`,Tk),Tk},Xk={isGit:!0,name:hk,label:gk,repository:Tk,statusDashboardURL:Gk,checkStatus:qk,init:Yk,signIn:Ck,signOut:wk,fetchFiles:Uk,fetchBlob:Wk,commitChanges:Nk,fetchFileCommits:Fk}})),Zk,Qk,$k,eA,tA,nA,rA,iA=s((()=>{Mp(),uie(),die(),gie(),Cie(),Oie(),Zk={github:mk,gitlab:Xk,gitea:AO,local:ZE,"test-repo":sD},Qk={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},$k=Object.keys(Zk).filter(e=>e!==`local`),eA=Object.fromEntries(Object.entries(Zk).filter(([,e])=>e.isGit)),tA=un(),nA=dn([tA],([e],t,n)=>{n(t=>{let n=e?Zk[e]:void 0;return n&&n!==t&&n.init(),n})}),rA=un(!0)})),aA,oA,sA,cA,lA,uA,dA,fA,pA,mA=s((()=>{Mp(),sF(),aA=`https://console.cloudinary.com/console/media_library`,oA=new URL(aA).origin,sA=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],cA=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],lA=e=>{let t=A(nF);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},uA=new Map,dA=e=>{let t=e?JSON.stringify(e):`global`,n=uA.get(t);if(n)return n;let r=lA()||{config:{}},i=lA(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return uA.set(t,a),a},fA=e=>{let t=lA(e)??lA(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},pA={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:fA}})),hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,EA=s((()=>{Cw(),Mp(),Xw(),sF(),hA=(e,t=A(nF))=>t?.media_libraries?.[e]??(t?.media_library?.name===e?t?.media_library:void 0),gA=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)},_A=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(``)},vA=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 _A(g)].join(`
|
|
644
|
-
`),b=await gA(await gA(await gA(await gA(await gA(`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(` `)},yA=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 _A(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await vA({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}})},bA=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)},xA=({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}`,SA=(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=xA({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:Yw(t)}})},CA=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 yA({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=bA(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 Sw(50)}return SA(c?u.filter(e=>Yw(e.Key)===c):u,e)},wA=async(e,t,n)=>{let r=await CA(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},TA=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 yA({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 Sw(50)}return SA(l,t)}})),DA,OA,kA,AA,jA,MA,NA,kie=s((()=>{EA(),DA=e=>hA(`aws_s3`,e),OA=e=>{let t=DA(e)??DA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},kA=({fieldConfig:e})=>{let t=DA(e)??DA();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},AA=async e=>CA(kA(e),e),jA=async(e,t)=>wA(e,kA(t),t),MA=async(e,t)=>TA(e,kA(t),t),NA={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:OA,list:AA,search:jA,upload:MA}})),PA,FA,IA,LA,RA,zA,BA,VA,HA,Aie=s((()=>{EA(),PA={default:``,eu:`eu.`,fedramp:`fedramp.`},FA=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${PA[t]??``}r2.cloudflarestorage.com`,IA=e=>hA(`cloudflare_r2`,e),LA=e=>{let t=IA(e)??IA();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},RA=({fieldConfig:e})=>{let t=IA(e)??IA();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:FA(t)}},zA=async e=>CA(RA(e),e),BA=async(e,t)=>wA(e,RA(t),t),VA=async(e,t)=>TA(e,RA(t),t),HA={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:LA,list:zA,search:BA,upload:VA}})),UA,WA,GA,KA,qA,JA,YA,jie=s((()=>{EA(),UA=e=>hA(`digitalocean_spaces`,e),WA=e=>{let t=UA(e)??UA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},GA=({fieldConfig:e})=>{let t=UA(e)??UA();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`}},KA=async e=>CA(GA(e),e),qA=async(e,t)=>wA(e,GA(t),t),JA=async(e,t)=>TA(e,GA(t),t),YA={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:WA,list:KA,search:qA,upload:JA}})),XA,ZA,QA,$A,ej,tj,nj,Mie=s((()=>{EA(),XA=e=>hA(`scaleway_object_storage`,e),ZA=e=>{let t=XA(e)??XA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},QA=({fieldConfig:e})=>{let t=XA(e)??XA();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`}},$A=async e=>CA(QA(e),e),ej=async(e,t)=>wA(e,QA(t),t),tj=async(e,t)=>TA(e,QA(t),t),nj={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:ZA,list:$A,search:ej,upload:tj}})),rj,ij,aj,oj,sj,cj,lj,uj,dj,Nie=s((()=>{EA(),rj=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,ij=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,aj=e=>hA(`supabase_storage`,e),oj=e=>{let t=aj(e)??aj();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},sj=({fieldConfig:e})=>{let t=aj(e)??aj();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:rj(t),public_url:t.public_url??ij(t)}},cj=async e=>CA(sj(e),e),lj=async(e,t)=>wA(e,sj(t),t),uj=async(e,t)=>TA(e,sj(t),t),dj={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:oj,list:cj,search:lj,upload:uj}})),fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Pie=s((()=>{Cw(),Mp(),sF(),hE(),fj=(e=A(nF))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),pj=e=>{let t=fj(e)??fj();return t?t.config?.publicKey:void 0},mj=e=>!!pj(e),hj=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(fj(t)??fj())||{};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`}})},gj=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=pj(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 Sw(50)}return hj(l,{fieldConfig:i})},_j=async e=>gj(e),vj=async(e,t)=>{let n=e.toLowerCase();return gj(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},yj=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(``)},bj=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=pj(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 yj(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(uE(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 hj(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})},xj={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:mj,list:_j,search:vj,upload:bj}})),Sj,Cj,wj=s((()=>{mA(),kie(),Aie(),jie(),Mie(),Nie(),Pie(),Sj={aws_s3:NA,cloudflare_r2:HA,cloudinary:pA,digitalocean_spaces:YA,scaleway_object_storage:nj,supabase_storage:dj,uploadcare:xj},Cj=Object.keys(Sj)})),Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,Fie=s((()=>{Tj=`@sveltia/cms`,Ej=`0.166.2`,Dj=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,Oj=[`svelte`,`cms`,`content-management-system`],kj=`https://sveltiacms.app/en/`,Aj={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},jj={type:`github`,url:`https://github.com/sponsors/kyoshino`},Mj={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Nj=`module`,Pj={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`},Fj={"@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`},Ij={"@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`},Lj={directory:`package`,access:`public`,provenance:!0},Rj={name:Tj,version:Ej,description:Dj,keywords:Oj,homepage:kj,repository:Aj,funding:jj,license:`MIT`,author:Mj,type:Nj,scripts:Pj,dependencies:Fj,devDependencies:Ij,publishConfig:Lj}})),zj,Bj,Vj=s((()=>{Fie(),{dependencies:zj,version:Bj}=Rj})),Hj,Uj=s((()=>{Hj=function(e,t,n){let r=Promise.resolve();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)})}})),Wj,Gj,Kj=s((()=>{Vj(),Uj(),Wj=e=>{let t=`https://unpkg.com/${e}`,n=zj[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Gj=async(e,t)=>Hj(()=>import(`${Wj(e)}/${t}`),void 0)})),qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM=s((()=>{qj=[`avif`,`gif`,`jpeg`,`png`,`webp`],Jj=qj.map(e=>`image/${e}`),Yj=/\b(?:avif|gif|jpe?g|png|webp)$/i,Xj=[`svg`],Zj=[`image/svg+xml`],Qj=/\b(?:svg)$/i,[...qj,...Xj],$j=[...Jj,...Zj],eM=[`webp`]})),nM,rM,iM,aM=s((()=>{Kj(),tM(),nM={},rM=async e=>{if(e in nM)return nM[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return nM[e]=r,r},iM=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await rM(t)&&eM.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Gj(`@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})}})),oM,sM,cM=s((()=>{oM=({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}},sM=(e,t,n)=>{let{scale:r,width:i,height:a}=oM(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),lM,uM,dM,fM,pM,mM=s((()=>{Kj(),aM(),cM(),lM=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})},uM=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)})},dM=async e=>e.type.startsWith(`video/`)?uM({blob:e}):lM({blob:e}),fM=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 dM(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return sM(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),iM(l,{format:t,quality:n})},pM=async e=>{let t=await e.text();try{let{optimize:n}=await Gj(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),hM,gM,_M,vM,yM,bM,Iie=s((()=>{Kj(),aM(),cM(),Uj(),hM=Wj(`pdfjs-dist`),gM=`${hM}/build/pdf.min.mjs`,_M=`${hM}/build/pdf.worker.min.mjs`,vM={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${hM}/cmaps/`,iccUrl:`${hM}/iccs/`,standardFontDataUrl:`${hM}/standard_fonts/`,wasmUrl:`${hM}/wasm/`},bM=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!yM)try{yM=await Hj(()=>import(gM),void 0),yM.GlobalWorkerOptions.workerSrc=_M}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 yM.getDocument({...vM,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=sM(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 iM(s,{format:t,quality:n})}})),xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM=s((()=>{Ap(),Cw(),Dw(),_p(),Iw(),Mp(),AF(),Gp(),iA(),sF(),wj(),mA(),hE(),mM(),Iie(),xM=/{{(?<tag>.+?)}}/,SM=/{{(.+?)}}/g,CM=/^(?:https?|data|blob):/,wM=new Set,TM=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(wM.has(o)&&t<=25)return await Sw(200),TM(e,t+1);wM.add(o);let n=await A(nA)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:Fw.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),wM.delete(o),s},EM=async e=>(e.blobURL||await TM(e),e.blobURL),DM=void 0,OM=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(DM===void 0){let{databaseName:e}=A(nA)?.repository??{};DM=e?new ww(e,`asset-thumbnails`):null}let r=await DM?.get(e.sha);if(!r){if(t)return;let i=await TM(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await bM(i,a):await fM(i,a),await DM?.set(e.sha,r)}return URL.createObjectURL(r)},kM=(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:Up(e.path).find(({collectionName:e})=>e!==void 0)??A(Rp);if(a){if(t){let t=Sp(e.path).dirname,n=r?Sp(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===dE([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(nF),l=o?e.path.replace(iE(e.folder.internalPath??``,e=>{let t=e.match(xM)?.groups?.tag;return t?`(?<${t}>[^/]+)`:dp(e)}),i?.replaceAll(SM,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=aE(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},AM=e=>{if(Sj.cloudinary?.isEnabled?.()){let t=dA(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},jM=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(CM.test(e))return e;if(TF(e)){let t=AM(i);if(t)return`${t}/${e}`}let s=EF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await OM(s):await EM(s))??kM(s)}})),NM,PM,FM,IM,LM,RM,zM,BM,VM,HM=s((()=>{Sy(),NM=u(LS(),1),PM=u(RS(),1),FM=u(zS(),1),IM=u(BS(),1),Mp(),iA(),MP(),sF(),CC(),mw(),_w(),cC(),NM.default.extend(PM.default),NM.default.extend(FM.default),NM.default.extend(IM.default),LM=/{{(?:year|month|day|hour|minute|second)}}/,RM=e=>SC(Object.values(e.locales)[0].path).map(({collectionName:e})=>dw(e)).filter(e=>!!e),zM=({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=rC(i,a);if(tC(s))return xy({date:s,timeZone:o?`UTC`:void 0})},BM=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=A(nF)??{},{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=gw(n,e),h=(m?hw(n):void 0)?.fields??d,g;if(LM.test(l)&&(g=zM({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=jP(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},VM=(e,t)=>`${A(nA)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})),UM,WM,GM=s((()=>{UM=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,WM=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(UM)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})),KM,qM,JM,YM,XM,ZM,QM,$M=s((()=>{Mp(),MM(),sF(),CC(),mw(),_w(),jC(),HM(),SP(),GM(),KM=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,qM=un([]),JM=dn(qM,e=>new Set(e.map(e=>e.id))),YM=e=>{let t=dw(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=WM(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=>RM(t).some(({name:t})=>t===e)}else{let t=new Set(A(vC).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(yC).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=xP({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},XM=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=hP({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 jM({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(KM)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await jM({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},ZM=async(e,{entries:t=A(yC),newURL:n=``}={})=>{let r=A(nF)?._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=RM(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:gw(a,e)},u=OC(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>XM({...r,collectionFile:e})))).includes(!0):await XM({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},QM=e=>{let t=hw(e);return t?!YM(e.name).some(({slug:e})=>e===t.name):!1}})),eN,tN,nN,rN,iN,Lie=s((()=>{eN=new WeakMap,tN=e=>{let t=eN.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),eN.set(e,n),n},nN=new WeakMap,rN=0,iN=e=>(nN.has(e)||(nN.set(e,rN),rN+=1),nN.get(e))})),aN,oN,sN=s((()=>{MP(),aN=e=>AP(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,oN=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})),cN,lN,uN,dN,fN=s((()=>{zw(),Ip(),OP(),sN(),cN=(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)||TP(o,{identifierField:l})||TP(s[c]?.content||{},{identifierField:l})||r},lN=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=cN(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},uN=e=>[...e.matchAll(Pp)].map(e=>e[1]),dN=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=aN(n??`{{slug}}`),o=r.map(aN).join(` `),s=i.map(aN).join(` `),c=Rw([...uN(o),...uN(a),...uN(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})),pN,mN,hN,gN,_N,vN,yN,bN,xN,Rie=s((()=>{_p(),SP(),sN(),fN(),My(),pN=/\.(\d+)$/,mN=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=hP({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:oN(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},hN=new Map,gN=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=jy(hN,e,()=>RegExp(`^${dp(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(pN);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}=lN(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},_N=/^(.+)\.\*\.(.+)$/,vN=new Map,yN=e=>{let t=null;return e.some(([e])=>(t=e.match(_N),!!t)),t},bN=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=yN(e)??[];if(!o)return[];let c=jy(vN,`${o}:${s}`,()=>{let e=dp(o),t=dp(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(_N);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}=lN(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},xN=({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?bN({...u}):gN({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})),SN,zie=s((()=>{OP(),fN(),SN=({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,cN(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=TP(c,{identifierField:d})||TP(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})),CN,Bie=s((()=>{_w(),SP(),Rie(),zie(),fN(),CN=({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:gw(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>yP({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[SN({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let{results:g,hasProcessedListFields:_}=xN({baseFieldGroups:mN(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}=lN({label:v,value:y,searchValue:b},i.filter(e=>!e.includes(`*`)),m,h);return[{label:x||``,value:S||d,searchValue:C||x||``}]}})),wN,TN,EN,Vie=s((()=>{wN=/^{{fields\.(.+?)}}$/,TN=(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(wN);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),EN=(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)}))})),DN,ON,kN,AN=s((()=>{_p(),mw(),$M(),Lie(),Bie(),Vie(),fN(),DN=new Map,ON=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=TN(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${iN(t)}|${iN(n)}`}|${l}`,d=DN.get(u);if(d)return d;let f=dw(a);if(!f)return DN.set(u,[]),[];let{_type:p,_i18n:{defaultLocale:m}}=f,{identifier_field:h=`title`}=p===`entry`?f:{},g=dN(t,h),{allFieldNames:_,hasListFields:v}=g,y=EN(n,e,o,c).flatMap(({refEntry:t,content:n})=>CN({refEntry:t,content:n,collection:f,templates:g,allFieldNames:_,hasListFields:v,collectionName:a,fileName:o,locale:e,identifierField:h,defaultLocale:m})).sort((e,t)=>gp(e.label,t.label));return DN.set(u,y),y},kN=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=tN(ON({locale:r,fieldConfig:e,refEntries:YM(a)})),s=e=>o.get(e)||e;return i?Object.entries(t).filter(([e])=>e.match(`^${dp(n)}\\.\\d+$`)).map(([,e])=>e).map(s):s(t[n])}})),jN,MN,NN,PN=s((()=>{dc(),jN=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),MN=e=>uc(Object.fromEntries(Object.entries(lc(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),NN=e=>e.replace(/"/g,`'`)})),FN,IN,LN,RN,zN=s((()=>{FN=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,IN=new RegExp(FN,`g`),LN=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,RN=RegExp(`${FN.source}|${LN.source}`)})),BN,VN,HN,UN=s((()=>{qb(),BN=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),VN={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},HN=(e,t)=>Kb(e.replace(`<a>`,`<a href="${BN(t)}" target="_blank" rel="noopener noreferrer">`),VN)})),WN,GN,KN,qN,JN=s((()=>{X(),PN(),zN(),UN(),WN=new Map,GN={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:FN,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="${BN(t)}" alt="${BN(n)}" title="${BN(r)}">`}},KN={id:`linked-image`,label:`Image`,fields:[...GN.fields,{name:`link`,label:`Link`,required:!1}],pattern:RN,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="${BN(t)}" alt="${BN(n)}" title="${BN(r)}">`;return i?`<a href="${BN(i)}">${a}</a>`:a}},qN=e=>{if(WN.has(e))return WN.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:{...GN,...t},"linked-image":{...KN,...t,fields:[...t.fields,{name:`link`,label:Y(`editor_components.link`),required:!1}]}}[e]}})),YN,XN,ZN,QN=s((()=>{YN=/^\d+$/,XN=e=>YN.test(e),ZN=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),$N,eP,tP,nP,Hie=s((()=>{zw(),QN(),$N=new Map,eP=new WeakMap,tP=e=>{let t=eP.get(e);return t===void 0&&(t=JSON.stringify(e),eP.set(e,t)),t},nP=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=Lw(i),o;if(r){let e=`${n}.`;o=Object.entries(t).filter(([t])=>t.startsWith(e)&&XN(t.slice(e.length))).map(([,e])=>e)}let s=tP(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=$N.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 $N.set(c,e),e}let d=t[n],f=a?u(d):d;return $N.set(c,f),f}})),rP,iP,aP,oP=s((()=>{Mp(),sF(),rP=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},iP=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},aP=e=>{let t=A(nF);return e.multiple??rP(e.media_libraries)??iP(e.media_library)??rP(t?.media_libraries)??iP(t?.media_library)??!1}})),sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP=s((()=>{_p(),hC(),mw(),_w(),jC(),xw(),cC(),AN(),JN(),Hie(),JS(),oP(),My(),QN(),sP=/^(.*?)<([^>]+)>(.*)$/,cP=/(?:^|\.)(\d+)(?:\.|$)/,lP=/\.\d+$/,uP=new Map,dP=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},fP=e=>{let t=e.widget??`string`;return vw.includes(t)?aP(e):yw.includes(t)?!!e.multiple:!1},pP=e=>{let t=e.match(sP);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},mP=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=pP(t),{widget:c=`text`}=e,l=s??i,u=XN(o),d=o===`*`;if((u||d)&&yw.includes(c))return{field:fP(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}},hP=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=cP.test(a)?JSON.stringify(e):`${t}|${n??``}|${r??``}|${a}|${o?`1`:`0`}`;if(uP.has(s))return uP.get(s);let c=dw(t),l=c&&n?EC(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){uP.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?hw(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}=pP(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=mP({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 uP.set(s,m),m},gP=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,_P=new Map,vP=new Map,yP=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=hP({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=>uC.test(e))||(c=sC({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=kN({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=nP({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;if(!(e||t)){let e=jy(_P,r,()=>RegExp(`^${dp(r)}${String.raw`\.\d+$`}`));c=KS(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=VS(i),t=vP.get(e);t||(t=Intl.NumberFormat(e),vP.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=KS(i).format(c)),a?.length&&(c=mC({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},bP=({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=hP({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?yP({...i,keyPath:a,locale:t}):``},xP=({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=dw(n);if(f){if(i){let i=hP({collectionName:n,keyPath:r,isIndexFile:gw(f,e)});if(i?.widget===`relation`)return kN({fieldConfig:i,valueMap:d,keyPath:r,locale:t})}return d[r]}}})),CP,wP,TP,EP,Uie,DP,OP=s((()=>{Sy(),_p(),qb(),DS(),ire(),Ip(),hC(),_w(),SP(),CP=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,wP=(e,{allowMarkdown:t=!1}={})=>(e=TS(e),t&&(e=FS(e)),e=Kb(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=FS(e)),e.trim()),TP=(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(CP)?.groups?.header??``:``},EP=(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 pp(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},Uie=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a}=t,[o,...s]=e.split(pC),c=o.replace(/^fields\./,``),l={collectionName:r,valueMap:n,keyPath:c},u=EP(o,i);if(u===void 0&&(u=s.some(e=>uC.test(e)||fC.test(e))?n[c]:yP({...l,locale:a})),u===void 0)return``;if(u instanceof Date&&!s.length){let{year:e,month:t,day:n}=xy({date:u});return`${e}-${t}-${n}`}return s.length&&(u=mC({fieldConfig:hP({...l}),value:u,transformations:s,locale:a})),String(u)},DP=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(gw(e,t))return hw(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 wP(TP(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 wP(u.replace(Pp,(e,t)=>Uie(t,_)),{allowMarkdown:i})}})),Wie,Gie,Kie,qie,Jie,Yie=s((()=>{up(),Ip(),OP(),Wie=(e,t)=>mee.includes(e)?t[e]:void 0,Gie=e=>{switch(e){case`uuid`:return sp();case`uuid_short`:return sp(`short`);case`uuid_shorter`:return sp(`shorter`);default:return}},Kie=(e,t,n,r)=>{if(!(e!==`slug`||!t))return n===`preview_path`&&r?``:t},qie=(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}},Jie=(e,t,n)=>e.startsWith(`fields.`)?t[e.replace(/^fields\./,``)]:e===`slug`?TP(t,{identifierField:n}):t[e]})),Xie,Zie=s((()=>{Ip(),hC(),Xie=(e,t,n)=>{let r=!1;return e.forEach((i,a)=>{let{defaultValue:o}=i.match(dC)?.groups??{};if(o!==void 0){r=!0;let{innerTag:i}=o.match(hee)?.groups??{};i!==void 0&&(e[a]=`default('${n(i,t)??``}')`)}}),{transformations:e,hasDefaultTransformation:r}}})),kP,Qie,$ie=s((()=>{up(),Iy(),Yie(),Zie(),hC(),SP(),kP=(e,t)=>{let{type:n,content:r,currentSlug:i,entryFilePath:a,locale:o,dateTimeParts:s,identifierField:c,basePath:l,isIndexFile:u=!1}=t,d=Wie(e,s);if(d!==void 0)return d;let f=Kie(e,i,n??``,u);if(f!==void 0)return f;let p=Gie(e);if(p!==void 0)return p;if(n===`preview_path`&&e===`locale`)return o;if(n===`preview_path`||n===`media_folder`){let t=qie(e,a,l);if(t!==void 0)return t}return Jie(e,r,c)},Qie=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,[i,...a]=e.split(pC),o=kP(i,n),{transformations:s,hasDefaultTransformation:c}=Xie(a,n,kP);if(o===void 0&&!c)return sp(`short`);let{type:l,locale:u}=n;return s.length&&(o=mC({fieldConfig:hP({...r,keyPath:i}),value:o,transformations:s,locale:u})),l?String(o):Fy(String(o),{locale:u,maxLength:1/0})}})),AP,eae,jP,MP=s((()=>{Sy(),_p(),Mp(),Ip(),$ie(),sF(),$M(),hE(),AP=e=>Np.test(e),eae=(e,t)=>YM(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),jP=(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(nF)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??xy({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=e.replace(Pp,(e,t)=>Qie(t,g)).trim();return i?_:(typeof m==`number`&&(_=fp(_,m,{ellipsis:``}).replace(/-$/,``)),lE(_,eae(l,a)))}})),NP,PP,FP,tae,IP,LP,nae,rae,iae=s((()=>{Ap(),_p(),MP(),mw(),jC(),NP=[],PP=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),FP=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),tae=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r=!1,mediaFolder:i,publicFolder:a,baseFolder:o,globalFolders:s})=>{if(PP(i)){if(!s)return;i=FP(i,s)}if(a===void 0)a=i;else if(PP(a)){if(!s)return;a=FP(a,s)}i=i.replace(/^\.(?:\/|$)/,``);let c=!i.startsWith(`/`);return{collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r,internalPath:pp(c?o??``:i),internalSubPath:c?pp(i):void 0,publicPath:/^($|[.@])/.test(a)?a:`/${pp(a)}`,entryRelative:c,hasTemplateTags:AP(i)}},IP=e=>{if(e.mediaFolder===void 0)return;let t=tae(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||NP.push(t)},LP=({collectionName:e,files:t,globalFolders:n})=>{TC(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;IP({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:Sp(i).dirname,globalFolders:n})})},nae=({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))&&IP({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})})},rae=(e,t=[])=>{NP.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a}=e,o=n!==void 0,s=o?pp(n).replace(/^\.$/,``):``,c=o?r?`/${pp(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=aw({collections:i});f.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:s}=e;IP({collectionName:t,mediaFolder:o&&a===void 0&&i!==void 0?``:a,publicFolder:s,baseFolder:r,entryPath:i,globalFolders:d}),n?.length&&LP({collectionName:t,files:n,globalFolders:d})}),a?.length&&LP({collectionName:`_singletons`,files:a,globalFolders:d}),nae({fieldMediaFolders:t,validCollections:f,globalFolders:d}),NP.sort((e,t)=>gp(e.internalPath,t.internalPath));let p=[];return u&&p.push(u),p.push(...NP),p.length&&p.unshift(l),p}})),aae,RP,zP,oae,sae,cae,lae,uae=s((()=>{_p(),mw(),jC(),JS(),QC(),aae=({collection:e,file:t})=>{let n=pp(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=ZC(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,qS({_i18n:r,locale:e,path:n})]))},RP=(e,t)=>{if(wC(t))return{collectionName:e.name,fileName:t.name,filePathMap:aae({collection:e,file:t})}},zP=(e,t)=>gp(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),oae=({collections:e})=>aw({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=pp(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=ZC(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>gp(e.folderPath,t.folderPath)),sae=({collections:e})=>aw({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>RP(e,t))).filter(e=>!!e).sort(zP),cae=({singletons:e})=>{let t=Array.isArray(e)?TC(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>RP(n,e)).filter(e=>!!e).sort(zP)},lae=e=>[...oae(e),...sae(e),...cae(e)]})),dae,fae,pae,mae,hae,BP,gae=s((()=>{X(),p(),dae=u(ute(),1),IT(),yD(),fae=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`],pae=async({href:e,type:t=`application/yaml`},{manualInit:n=!1}={})=>{let r;if(!fae.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`?AT(e):jT(e,{merge:!0,maxAliasCount:-1})}}catch(e){throw Error(Y(`config.error.parse_failed`),{cause:e})}if(!d(s))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_invalid_object`))});return s},mae=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},hae=e=>{let{origin:t}=window.location;return e.every(({href:e})=>_D(e,t))},BP=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:mae(window.location.pathname)}),!hae(t))throw Error(Y(`config.error.insecure_urls`,{values:{count:t.length}}));let n=await Promise.all(t.map(t=>pae(t,{manualInit:e})));return n.length===1?n[0]:dae.default.all(n)}})),VP,HP,_ae,vae,UP,WP=s((()=>{X(),JS(),VP=({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=Eh.current,m=d.length?`${KS(p).format(d)}: `:``,h=Y(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${Y(`config.${r}`)}`:``}`)},HP=({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)&&VP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},_ae=/^[^\s.*:<>]+$/,vae=e=>_ae.test(e),UP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return VP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return vae(e)?n[e]===1?(VP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(VP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),yae,bae,xae=s((()=>{X(),p(),iA(),PC(),WP(),yae=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],bae=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!d(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(!$k.includes(a)){let e=Qk[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 eA){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&&NC(`automatic_deployments`),HP({UNSUPPORTED_OPTIONS:yae,config:n,context:{cmsConfig:e},collectors:t})}}})),Sae,GP,KP,Cae=s((()=>{RC(),Sae=[`code`,`markdown`,`richtext`,`text`],GP=[`yaml`,`toml`,`json`],KP=(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`&&Sae.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(FC.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return IC.includes(i)?!1:i!==e}return a===`frontmatter`?!Ore.includes(i):GP.includes(a)?GP.includes(i)&&i!==a:!1}})),wae,Tae,Eae=s((()=>{WP(),wae=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Tae=e=>{HP({...e,UNSUPPORTED_OPTIONS:wae})}})),Dae,qP,Oae=s((()=>{WP(),Dae=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],qP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),HP({...e,UNSUPPORTED_OPTIONS:Dae})}})),kae,Aae,jae=s((()=>{ZP(),WP(),kae=(e,t,n)=>e===`object`?!0:(VP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Aae=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){VP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&YP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&XP(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};UP({...c,name:e,index:a,context:o})&&kae(t,o,r)&&i&&XP(i,o,r)})}})),Mae,Nae,Pae=s((()=>{WP(),Mae=[{prop:`valueType`,newProp:`value_type`}],Nae=e=>{HP({...e,UNSUPPORTED_OPTIONS:Mae})}})),Fae,Iae=s((()=>{ZP(),WP(),Fae=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){VP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){VP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&XP(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};UP({...s,name:e,index:i,context:a})&&t&&XP(t,a,r)})}})),Lae,Rae,zae=s((()=>{WP(),Lae=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Rae=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||VP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&VP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else VP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});HP({...e,UNSUPPORTED_OPTIONS:Lae}),r.relationFields.add({fieldConfig:i,context:n})}})),Bae,JP,Vae=s((()=>{WP(),Bae=[{prop:`editorComponents`,newProp:`editor_components`}],JP=e=>{HP({...e,UNSUPPORTED_OPTIONS:Bae})}})),Hae,YP,XP,ZP=s((()=>{Eae(),Oae(),jae(),Pae(),Iae(),zae(),Vae(),WP(),Hae={datetime:Tae,file:qP,image:qP,list:Aae,markdown:JP,number:Nae,object:Fae,relation:Rae,richtext:JP},YP=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}};Hae[i]?.(o),i===`date`&&VP({...o,strKey:`date_field_type`})},XP=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;UP({...r,name:a,index:i})&&YP({config:e,context:t,collectors:n})})}})),Uae,QP,Wae=s((()=>{Ap(),Cae(),ZP(),WP(),Uae=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=Sp(i);KP(c,a,o)&&VP({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||VP({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&VP({strKey:`collection_file_i18n_required`,context:e,collectors:t}),XP(o,e,t)},QP=(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};UP({...a,name:o,index:i,context:s})&&Uae(s,t)})}})),Gae,Kae,qae,Jae,Yae=s((()=>{X(),PC(),Wae(),Cae(),ZP(),WP(),Gae=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Kae=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;KP(i,a)&&VP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&NC(`slug_length`),HP({UNSUPPORTED_OPTIONS:Gae,config:r,context:e,collectors:t}),o?.length||VP({strKey:`collection_no_fields`,context:e,collectors:t}),XP(o,e,t),s&&XP(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&VP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},qae=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){VP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){VP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?QP({cmsConfig:e,collection:t},n):a&&Kae({cmsConfig:e,collection:t},n)},Jae=(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};UP({...a,name:i,index:r,context:o})&&qae(o,t)}),Array.isArray(r)&&QP({cmsConfig:e,collection:{name:`_singletons`,label:Y(`singletons`),label_singular:Y(`singleton`),files:r}},t)}})),Xae,Zae=s((()=>{X(),wj(),Xae=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!Cj.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>Cj.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`)))}})),Qae,$ae,eoe=s((()=>{xae(),Yae(),Zae(),WP(),Qae=[{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`}],$ae=(e,t)=>{bae(e,t),Xae(e,t),Jae(e,t),HP({UNSUPPORTED_OPTIONS:Qae,config:e,context:{cmsConfig:e},collectors:t})}})),toe,$P,noe,eF,tF,nF,rF,iF,aF,oF,roe,sF=s((()=>{X(),up(),p(),_p(),toe=u(ute(),1),Mp(),by(),Gp(),iae(),uae(),gae(),eoe(),CC(),OO(),{DEV:$P,VITE_SITE_URL:noe}={DEV:!1},eF=$P?noe||`http://localhost:5174`:void 0,tF={},nF=un(),rF=un(),iF=un([]),aF=dn([nF,iF],([e,t])=>!!e||!!t.length),oF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},roe=async e=>{nF.set(void 0),iF.set([]),Object.assign(oF,{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(!d(e))throw Error(Y(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,toe.default)(await BP({manualInit:!0}),t))}else t=await BP();if(Object.assign(tF,t),$ae(t,oF),oF.errors.size)throw oF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);oF.warnings.size&&oF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||($P?eF:window.location.origin),n._baseURL=hp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),nF.set(n),rF.set(await lp(vy(n)))}catch(e){iF.set(oF.errors.size?[...oF.errors]:[e.name===`Error`?e.message:Y(`config.error.unexpected`)]),console.error(e,e.cause)}},nF.subscribe(e=>{if(DO.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,oF)),!e)return;let t=lae(e),n=rae(e,[...oF.mediaFields]);vC.set(t),Lp.set(n),DO.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),cF,lF=s((()=>{Mp(),sF(),cF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(nF),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)}})),uF,ioe,dF=s((()=>{p(),lF(),tM(),mM(),uF=({fieldConfig:e}={})=>{let t=cF({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:d(a)?a:void 0}}},ioe=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&&eM.includes(t)?t:`webp`,s=await fM(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}`?Yj.test(e.name)?e.name.replace(Yj,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 pM(e)],e.name,{type:e.type}):e}})),fF,pF=s((()=>{dF(),hE(),fF=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=uE(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await ioe(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),aoe,mF,hF,gF,_F,vF,ooe,yF,bF,xF,SF,CF,soe,wF,coe,loe,TF,EF,DF,uoe,OF,kF,AF=s((()=>{Ap(),_p(),dc(),Mp(),Gp(),pF(),MP(),Ip(),mw(),_w(),jC(),HM(),dF(),hE(),aoe=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,mF=un([]),hF={source:void 0,map:new Map},gF=()=>{let e=A(mF);return e!==hF.source&&(hF.source=e,hF.map=new Map(e.map(e=>[e.path,e]))),hF.map},_F=e=>gF().get(e),vF=un([]),ooe=dn(vF,e=>new Set(e.map(e=>e.path))),yF=un(),bF=un(),xF=un({folder:void 0,files:[]}),SF=un(),CF=un(),soe=dn([xF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=uF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>fF(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]))}))})()}),wF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Vp({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(aoe).groups,f=e.replace(/^\.\//,``),p=fE(dE([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return gF().get(p)},coe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Vp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Vp({collectionName:n,fileName:r}):void 0,n?Vp({collectionName:n}):void 0,A(Rp)].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=gF().get(dE([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??gF().get(e)}return RM(t).flatMap(n=>{let r=OC(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>wF({...a,file:e})):wF({...a})}).filter(Boolean)[0]??gF().get(e)},loe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=gF().get(pp(e));if(a)return a;let{dirname:o=``,basename:s}=Sp(e),c;return[i?Vp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Vp({collectionName:n,fileName:r}),Vp({collectionName:n}),A(Rp),A(Lp).findLast(e=>{let t=e.publicPath??``,n=dp(t).replace(Fp,`.+?`);return o.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&Np.test(i)){let e=r?dw(r):t?RM(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=jP(i,{type:`media_folder`,collection:e,content:lc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:gw(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=dE([i,s]),l=gF().get(a);return l&&(c=l),!!l}),c},TF=e=>!/^[/@]/.test(e),EF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=oE(e.split(`#`)[0]);return TF(a)?coe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):loe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},DF=({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,uoe=e=>A(mF).filter(t=>DF(t,e)),OF=e=>A(mF).filter(t=>Sp(t.path).dirname===e),zp.subscribe(()=>{yF.set(void 0)}),kF=(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()))}})),jF,MF,NF=s((()=>{Ap(),_p(),Mp(),AF(),Gp(),MM(),mw(),_w(),SP(),jF=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(`^${dp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await jM({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},MF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=dw(t);if(!a)return[];let o=gw(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||TF(a))){let s=hP({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=EF({value:a,entry:e,collectionName:t,fileName:n});if(c&&Up(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&&Vp({collectionName:t,fileName:n})?.entryRelative){let t=Sp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(mF).forEach(n=>{let r=Sp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),PF,doe,FF,foe,IF,LF=s((()=>{p(),dc(),pee(),NF(),gD(),PF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],doe=[`preSave`,`prePublish`],FF=new Set,foe=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>vd({data:uc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:uc(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:``}),IF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=hD.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==u),{content:h,path:g}=p[u],_=MF({entry:n,collectionName:c,fileName:l});for(let t of FF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:foe({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(doe.includes(e)&&$l(n)){let e=n.toJS();d(e.data)&&d(e.i18n)?(p[u].content=lc(e.data),m.forEach(t=>{d(e.i18n[t]?.data)&&(p[t].content=lc(e.i18n[t].data))})):p[u].content=lc(e)}}}})),RF,zF,BF,VF,HF,UF,WF,GF,poe,KF=s((()=>{Mp(),RF=un(!1),zF=un(!1),BF=un({show:!1,multiple:!1}),VF=un({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),HF=un(null),UF=un(null),WF=un(),GF=new Set,poe=new Map})),moe=s((()=>{})),Z=s((()=>{moe(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),hoe,goe=s((()=>{hoe=`{"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"}}`})),_oe,voe=s((()=>{_oe=`{"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":"プレーンテキスト"}}`})),yoe,boe=s((()=>{goe(),voe(),X(),by(),yoe=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":hoe,"../locales/ja.yaml":_oe})).forEach(([e,t])=>{wh(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:_y(t)})}),Dh({fallbackLocale:e,initialLocale:t})}}));function qF(e,t){G(e,Coe);let n=Js(t,xoe);var r=Soe();ys(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 xoe,Soe,Coe,JF=s((()=>{Z(),J(),xoe=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),Soe=B(`<span> </span>`),Coe={hash:`svelte-1e54a1h`,code:`.icon.small-arrow.svelte-1e54a1h {overflow:hidden;width:12px;text-indent:-6px;}`}}));function YF(e,t){G(e,Eoe);let n=Js(t,woe);var r=Toe();ys(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();Eo(I(n),()=>t.icon),H(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);qF(e,{get name(){return z(n)}})}};W(i,e=>{t.icon?e(a):e(o,-1)}),Eo(L(i,2),()=>t.children??E),D(r),H(e,r)}var woe,Toe,Eoe,XF=s((()=>{Z(),J(),JF(),woe=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]),Toe=B(`<div><!> <!></div>`),Eoe={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);}`}})),Doe,ZF,Ooe,koe,Aoe,QF,$F,eI=s((()=>{ZF=()=>(Doe??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Doe),Ooe=[`Ctrl`,`Meta`,`Alt`,`Shift`],koe=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}`)]),Aoe=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:koe.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),QF=(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,ZF()?`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=>!Ooe.includes(e)).every(t=>Aoe(t,e))})},$F=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,ZF()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!QF(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 tI(e,t){G(e,Moe);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=joe();Eo(F(i),()=>r()??E),D(i),R(()=>us(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var joe,Moe,nI=s((()=>{Z(),J(),joe=B(`<span role="none" class="sui truncated-text svelte-1htz360"><!></span>`),Moe={hash:`svelte-1htz360`,code:`.truncated-text.svelte-1htz360 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),rI,iI,aI,Noe,Poe,Foe,oI,sI=s((()=>{up(),aI=(e=`e`,t=7)=>[e,sp(t)].join(`-`),Noe=()=>{if(`IntersectionObserver`in globalThis)return iI||(rI=new Map,iI=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=rI?.get(t);n&&(rI?.delete(t),iI?.unobserve(t),n())})}),iI)},Poe=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},Foe=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},oI=e=>{if(!e)return;let t=Noe();if(t)return Poe(e)?Promise.resolve(void 0):new Promise(n=>{rI?.set(e,n),Foe(()=>{t.observe(e)})})}})),Ioe,Loe,Roe=s((()=>{J(),sI(),Cw(),dh(),Ioe=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(Cr({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=aI(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ba(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ba(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)}),ba(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),ba(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ba(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 Sw(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Loe=(...e)=>new Ioe(...e)}));function zoe(e,t){var n=V();Eo(I(n),()=>t.children??E),H(e,n)}var Boe=s((()=>{Z(),J()}));function Voe(e,t){O(t,!0),G(e,Woe);let n=e=>{var n=Uoe(),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))};ys(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Ss]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-mxumua`);var g=F(n);Eo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=V();Eo(I(n),()=>t.children??E),H(e,n)};W(_,e=>{(z(h)||l())&&e(v)}),D(n),Vs(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,Hoe),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 Sw(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 ei(()=>{r()?v():y()}),ic(()=>{let e=za(zoe,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Va(e)}}),k({focus:d,close:f})}var Hoe,Uoe,Woe,cI=s((()=>{Z(),J(),Cw(),oc(),Boe(),Hoe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Uoe=B(`<dialog><!> <!></dialog>`),Woe={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 lI(e,t){O(t,!0),G(e,qoe);let n=e=>{var n=Koe();let o,s;Eo(F(n),()=>t.children??E),D(n),Vs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=ss(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-17p6hn1`,o,{touch:z(y)}),s=us(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`})}),xa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),xa(`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,Goe),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Loe(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ei(()=>{z(g)&&r(z(g).open)}),ei(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ei(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ei(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ic(()=>(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));Voe(e,Ys(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Sw(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 Goe,Koe,qoe,uI=s((()=>{Z(),J(),Cw(),oc(),Roe(),cI(),Goe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Koe=B(`<div role="none"><!></div>`),qoe={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 dI(e,t){O(t,!0),G(e,Zoe);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,Joe);var w=Xoe(),ee=I(w);ys(ee,()=>({...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(),[Ss]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-747svn`);var T=F(ee);Eo(T,()=>t.startIcon??E);var te=L(T,2),ne=e=>{var n=V(),r=I(n),i=e=>{var t=fI();tI(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)},a=e=>{var n=fI();Eo(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=Yoe(),r=I(n),i=e=>{var t=fI();tI(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)};W(r,e=>{m()&&e(i)}),Eo(L(r,2),()=>t.children??E),H(e,n)};W(te,e=>{g()===`link`?e(ne):e(re,-1)}),Eo(L(te,2),()=>t.endIcon??E),D(ee),Vs(ee,e=>n(e),()=>n()),Yo(ee,()=>$F(p()));var ie=L(ee,2),ae=e=>{lI(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();Eo(I(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ie,e=>{t.popup&&e(ae)}),H(e,w),k()}var Joe,fI,Yoe,Xoe,Zoe,pI=s((()=>{Z(),J(),eI(),nI(),uI(),Joe=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(`.`)),fI=B(`<span role="none" class="label svelte-747svn"><!></span>`),Yoe=B(`<!> <!>`,1),Xoe=B(`<button><!> <!> <!></button> <!>`,1),Zoe={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 mI(e,t){O(t,!0),G(e,ese);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=$oe(),s=F(t),c=F(s),l=e=>{var t=V();Eo(I(t),o),H(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());qF(e,{get name(){return z(t)}})}};W(c,e=>{o()?e(l):e(u,-1)}),Eo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=Qoe(),r=F(t);{let e=M(()=>Y(`_sui.dismiss`));dI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{qF(e,{name:`close`})},$$slots:{default:!0}})}D(t),H(e,t)};W(d,e=>{r()&&e(f)}),D(t),R(()=>ss(t,1,`infobar ${i()??``}`,`svelte-2bt0oo`)),H(e,t)};W(c,e=>{n()&&e(l)}),H(e,s),k()}var Qoe,$oe,ese,tse=s((()=>{Z(),J(),X(),pI(),JF(),Qoe=B(`<div role="none"><!></div>`),$oe=B(`<div role="none"><div role="alert" class="message svelte-2bt0oo"><!> <!></div> <!></div>`),ese={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 nse(e,t){G(e,ase);let n=Js(t,rse);var r=ise();ys(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-76ww7t`),Eo(F(r),()=>t.children??E),D(r),H(e,r)}var rse,ise,ase,ose=s((()=>{Z(),J(),rse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),ise=B(`<div><!></div>`),ase={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 sse(e,t){G(e,use);let n=Js(t,cse);var r=lse();ys(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1f2dbh`),Eo(F(r),()=>t.children??E),D(r),H(e,r)}var cse,lse,use,dse=s((()=>{Z(),J(),cse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),lse=B(`<div><!></div>`),use={hash:`svelte-1f2dbh`,code:`.button-group.svelte-1f2dbh {flex:none;display:inline-flex;align-items:center;}`}}));function hI(e,t){G(e,_I);let n=q(t,`children`,3,void 0);var r=gI();Eo(F(r),()=>n()??E),D(r),H(e,r)}var gI,_I,fse=s((()=>{Z(),J(),gI=B(`<div role="none" class="sui floating-action-button-wrapper svelte-1w9ejur"><!></div>`),_I={hash:`svelte-1w9ejur`,code:`.floating-action-button-wrapper.svelte-1w9ejur {display:contents;}
|
|
644
|
+
`),b=await gA(await gA(await gA(await gA(await gA(`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(` `)},yA=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 _A(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await vA({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}})},bA=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)},xA=({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}`,SA=(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=xA({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:Yw(t)}})},CA=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 yA({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=bA(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 Sw(50)}return SA(c?u.filter(e=>Yw(e.Key)===c):u,e)},wA=async(e,t,n)=>{let r=await CA(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},TA=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 yA({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 Sw(50)}return SA(l,t)}})),DA,OA,kA,AA,jA,MA,NA,kie=s((()=>{EA(),DA=e=>hA(`aws_s3`,e),OA=e=>{let t=DA(e)??DA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},kA=({fieldConfig:e})=>{let t=DA(e)??DA();if(!t)throw Error(`Amazon S3 configuration is not available`);return t},AA=async e=>CA(kA(e),e),jA=async(e,t)=>wA(e,kA(t),t),MA=async(e,t)=>TA(e,kA(t),t),NA={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:OA,list:AA,search:jA,upload:MA}})),PA,FA,IA,LA,RA,zA,BA,VA,HA,Aie=s((()=>{EA(),PA={default:``,eu:`eu.`,fedramp:`fedramp.`},FA=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${PA[t]??``}r2.cloudflarestorage.com`,IA=e=>hA(`cloudflare_r2`,e),LA=e=>{let t=IA(e)??IA();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},RA=({fieldConfig:e})=>{let t=IA(e)??IA();if(!t)throw Error(`Cloudflare R2 configuration is not available`);return{...t,region:`auto`,endpoint:FA(t)}},zA=async e=>CA(RA(e),e),BA=async(e,t)=>wA(e,RA(t),t),VA=async(e,t)=>TA(e,RA(t),t),HA={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:LA,list:zA,search:BA,upload:VA}})),UA,WA,GA,KA,qA,JA,YA,jie=s((()=>{EA(),UA=e=>hA(`digitalocean_spaces`,e),WA=e=>{let t=UA(e)??UA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},GA=({fieldConfig:e})=>{let t=UA(e)??UA();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`}},KA=async e=>CA(GA(e),e),qA=async(e,t)=>wA(e,GA(t),t),JA=async(e,t)=>TA(e,GA(t),t),YA={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:WA,list:KA,search:qA,upload:JA}})),XA,ZA,QA,$A,ej,tj,nj,Mie=s((()=>{EA(),XA=e=>hA(`scaleway_object_storage`,e),ZA=e=>{let t=XA(e)??XA();return!!(t&&t.access_key_id&&t.bucket&&t.region)},QA=({fieldConfig:e})=>{let t=XA(e)??XA();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`}},$A=async e=>CA(QA(e),e),ej=async(e,t)=>wA(e,QA(t),t),tj=async(e,t)=>TA(e,QA(t),t),nj={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:ZA,list:$A,search:ej,upload:tj}})),rj,ij,aj,oj,sj,cj,lj,uj,dj,Nie=s((()=>{EA(),rj=({project_id:e})=>`https://${e}.storage.supabase.co/storage/v1/s3`,ij=({project_id:e,bucket:t})=>`https://${e}.supabase.co/storage/v1/object/public/${t}`,aj=e=>hA(`supabase_storage`,e),oj=e=>{let t=aj(e)??aj();return!!(t&&t.access_key_id&&t.bucket&&t.project_id)},sj=({fieldConfig:e})=>{let t=aj(e)??aj();if(!t)throw Error(`Supabase Storage configuration is not available`);return{...t,endpoint:rj(t),public_url:t.public_url??ij(t)}},cj=async e=>CA(sj(e),e),lj=async(e,t)=>wA(e,sj(t),t),uj=async(e,t)=>TA(e,sj(t),t),dj={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:oj,list:cj,search:lj,upload:uj}})),fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Pie=s((()=>{Cw(),Mp(),sF(),hE(),fj=(e=A(nF))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),pj=e=>{let t=fj(e)??fj();return t?t.config?.publicKey:void 0},mj=e=>!!pj(e),hj=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(fj(t)??fj())||{};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`}})},gj=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=pj(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 Sw(50)}return hj(l,{fieldConfig:i})},_j=async e=>gj(e),vj=async(e,t)=>{let n=e.toLowerCase();return gj(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},yj=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(``)},bj=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=pj(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 yj(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(uE(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 hj(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})},xj={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:mj,list:_j,search:vj,upload:bj}})),Sj,Cj,wj=s((()=>{mA(),kie(),Aie(),jie(),Mie(),Nie(),Pie(),Sj={aws_s3:NA,cloudflare_r2:HA,cloudinary:pA,digitalocean_spaces:YA,scaleway_object_storage:nj,supabase_storage:dj,uploadcare:xj},Cj=Object.keys(Sj)})),Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,Fie=s((()=>{Tj=`@sveltia/cms`,Ej=`0.166.3`,Dj=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,Oj=[`svelte`,`cms`,`content-management-system`],kj=`https://sveltiacms.app/en/`,Aj={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},jj={type:`github`,url:`https://github.com/sponsors/kyoshino`},Mj={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Nj=`module`,Pj={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`},Fj={"@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`},Ij={"@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`},Lj={directory:`package`,access:`public`,provenance:!0},Rj={name:Tj,version:Ej,description:Dj,keywords:Oj,homepage:kj,repository:Aj,funding:jj,license:`MIT`,author:Mj,type:Nj,scripts:Pj,dependencies:Fj,devDependencies:Ij,publishConfig:Lj}})),zj,Bj,Vj=s((()=>{Fie(),{dependencies:zj,version:Bj}=Rj})),Hj,Uj=s((()=>{Hj=function(e,t,n){let r=Promise.resolve();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)})}})),Wj,Gj,Kj=s((()=>{Vj(),Uj(),Wj=e=>{let t=`https://unpkg.com/${e}`,n=zj[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Gj=async(e,t)=>Hj(()=>import(`${Wj(e)}/${t}`),void 0)})),qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM=s((()=>{qj=[`avif`,`gif`,`jpeg`,`png`,`webp`],Jj=qj.map(e=>`image/${e}`),Yj=/\b(?:avif|gif|jpe?g|png|webp)$/i,Xj=[`svg`],Zj=[`image/svg+xml`],Qj=/\b(?:svg)$/i,[...qj,...Xj],$j=[...Jj,...Zj],eM=[`webp`]})),nM,rM,iM,aM=s((()=>{Kj(),tM(),nM={},rM=async e=>{if(e in nM)return nM[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return nM[e]=r,r},iM=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await rM(t)&&eM.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Gj(`@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})}})),oM,sM,cM=s((()=>{oM=({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}},sM=(e,t,n)=>{let{scale:r,width:i,height:a}=oM(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),lM,uM,dM,fM,pM,mM=s((()=>{Kj(),aM(),cM(),lM=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})},uM=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)})},dM=async e=>e.type.startsWith(`video/`)?uM({blob:e}):lM({blob:e}),fM=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 dM(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return sM(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),iM(l,{format:t,quality:n})},pM=async e=>{let t=await e.text();try{let{optimize:n}=await Gj(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),hM,gM,_M,vM,yM,bM,Iie=s((()=>{Kj(),aM(),cM(),Uj(),hM=Wj(`pdfjs-dist`),gM=`${hM}/build/pdf.min.mjs`,_M=`${hM}/build/pdf.worker.min.mjs`,vM={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${hM}/cmaps/`,iccUrl:`${hM}/iccs/`,standardFontDataUrl:`${hM}/standard_fonts/`,wasmUrl:`${hM}/wasm/`},bM=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!yM)try{yM=await Hj(()=>import(gM),void 0),yM.GlobalWorkerOptions.workerSrc=_M}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 yM.getDocument({...vM,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=sM(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 iM(s,{format:t,quality:n})}})),xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM=s((()=>{Ap(),Cw(),Dw(),_p(),Iw(),Mp(),AF(),Gp(),iA(),sF(),wj(),mA(),hE(),mM(),Iie(),xM=/{{(?<tag>.+?)}}/,SM=/{{(.+?)}}/g,CM=/^(?:https?|data|blob):/,wM=new Set,TM=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(wM.has(o)&&t<=25)return await Sw(200),TM(e,t+1);wM.add(o);let n=await A(nA)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:Fw.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),wM.delete(o),s},EM=async e=>(e.blobURL||await TM(e),e.blobURL),DM=void 0,OM=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(DM===void 0){let{databaseName:e}=A(nA)?.repository??{};DM=e?new ww(e,`asset-thumbnails`):null}let r=await DM?.get(e.sha);if(!r){if(t)return;let i=await TM(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await bM(i,a):await fM(i,a),await DM?.set(e.sha,r)}return URL.createObjectURL(r)},kM=(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:Up(e.path).find(({collectionName:e})=>e!==void 0)??A(Rp);if(a){if(t){let t=Sp(e.path).dirname,n=r?Sp(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===dE([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(nF),l=o?e.path.replace(iE(e.folder.internalPath??``,e=>{let t=e.match(xM)?.groups?.tag;return t?`(?<${t}>[^/]+)`:dp(e)}),i?.replaceAll(SM,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=aE(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},AM=e=>{if(Sj.cloudinary?.isEnabled?.()){let t=dA(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},jM=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(CM.test(e))return e;if(TF(e)){let t=AM(i);if(t)return`${t}/${e}`}let s=EF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await OM(s):await EM(s))??kM(s)}})),NM,PM,FM,IM,LM,RM,zM,BM,VM,HM=s((()=>{Sy(),NM=u(LS(),1),PM=u(RS(),1),FM=u(zS(),1),IM=u(BS(),1),Mp(),iA(),MP(),sF(),CC(),mw(),_w(),cC(),NM.default.extend(PM.default),NM.default.extend(FM.default),NM.default.extend(IM.default),LM=/{{(?:year|month|day|hour|minute|second)}}/,RM=e=>SC(Object.values(e.locales)[0].path).map(({collectionName:e})=>dw(e)).filter(e=>!!e),zM=({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=rC(i,a);if(tC(s))return xy({date:s,timeZone:o?`UTC`:void 0})},BM=(e,t,n,r)=>{let{show_preview_links:i=!0,_baseURL:a}=A(nF)??{},{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=gw(n,e),h=(m?hw(n):void 0)?.fields??d,g;if(LM.test(l)&&(g=zM({dateFieldName:u,fields:h,content:c}),!g))return;let _=l;t===f&&p&&(_=_.replace(/{{locale}}[./]/,``));try{let e=jP(_,{type:`preview_path`,collection:n,content:c,locale:t,currentSlug:o,entryFilePath:s,dateTimeParts:g,isIndexFile:m});return`${a.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}catch{return}},VM=(e,t)=>`${A(nA)?.repository?.blobBaseURL}/${e.locales[t]?.path}?plain=1`})),UM,WM,GM=s((()=>{UM=/^\/?(?<pattern>.+?)(?:\/(?<flags>[dgimsuy]*))?$/,WM=e=>{if(e instanceof RegExp)return e;if(typeof e==`string`){let{pattern:t,flags:n}=e.match(UM)?.groups??{};if(t)try{return new RegExp(t,n)}catch{}}}})),KM,qM,JM,YM,XM,ZM,QM,$M=s((()=>{Mp(),MM(),sF(),CC(),mw(),_w(),jC(),HM(),SP(),GM(),KM=/!\[.*?\]\((.+?)(?:\s+".*?")?\)/g,qM=un([]),JM=dn(qM,e=>new Set(e.map(e=>e.id))),YM=e=>{let t=dw(e);if(!t)return[];let{_type:n,_i18n:{defaultLocale:r}}=t,{filter:i}=n===`entry`?t:{},a=i?.field,o=WM(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=>RM(t).some(({name:t})=>t===e)}else{let t=new Set(A(vC).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(yC).filter(t=>{if(!c(t))return!1;if(!a)return!0;let n=xP({entry:t,locale:r,collectionName:e,key:a})??null;return o?o.test(n):s.includes(n)})},XM=async({assetURL:e,newURL:t,collectionName:n,entry:r,content:i,keyPath:a,value:o,isIndexFile:s,collectionFile:c})=>{let l=c?.name,u=hP({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 jM({...f,value:o})===e:o===e;return n&&t&&(i[a]=t),n}if([`richtext`,`markdown`].includes(p)){let n=[...o.matchAll(KM)];if(n.length)return(await Promise.all(n.map(async([,n])=>{let r=(d?await jM({...f,value:n}):n)===e;return r&&t&&(i[a]=i[a].replace(n,t)),r}))).some(Boolean)}return!1},ZM=async(e,{entries:t=A(yC),newURL:n=``}={})=>{let r=A(nF)?._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=RM(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:gw(a,e)},u=OC(a,e),d;if(d=u.length?(await Promise.all(u.map(e=>XM({...r,collectionFile:e})))).includes(!0):await XM({...r}),d&&(s=!0,!o))break}if(s&&!o)break}if(s&&!o)break}return s}));return t.filter((e,t)=>s[t])},QM=e=>{let t=hw(e);return t?!YM(e.name).some(({slug:e})=>e===t.name):!1}})),eN,tN,nN,rN,iN,Lie=s((()=>{eN=new WeakMap,tN=e=>{let t=eN.get(e);if(t)return t;let n=new Map;return e.forEach(({value:e,label:t})=>{n.has(e)||n.set(e,t)}),eN.set(e,n),n},nN=new WeakMap,rN=0,iN=e=>(nN.has(e)||(nN.set(e,rN),rN+=1),nN.get(e))})),aN,oN,sN=s((()=>{MP(),aN=e=>AP(e)?e:e===`slug`?`{{fields.slug}}`:`{{${e}}}`,oN=e=>{if(!e||e.widget!==`list`)return!1;let t=`fields`in e,n=`types`in e;return t||n}})),cN,lN,uN,dN,fN=s((()=>{zw(),Ip(),OP(),sN(),cN=(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)||TP(o,{identifierField:l})||TP(s[c]?.content||{},{identifierField:l})||r},lN=(e,t,n,r)=>{let{label:i,value:a,searchValue:o}=e;return t.forEach(e=>{let t=cN(e,n,r);i=i.replaceAll(`{{${e}}}`,t),a=a.replaceAll(`{{${e}}}`,t),o=o?.replaceAll(`{{${e}}}`,t)??``}),{label:i,value:a,searchValue:o}},uN=e=>[...e.matchAll(Pp)].map(e=>e[1]),dN=(e,t)=>{let n=e.value_field,r=e.display_fields??[n??`{{${t}}}`],i=e.search_fields??r,a=aN(n??`{{slug}}`),o=r.map(aN).join(` `),s=i.map(aN).join(` `),c=Rw([...uN(o),...uN(a),...uN(s)]);return{_valueField:a,_displayField:o,_searchField:s,allFieldNames:c,hasListFields:c.some(e=>e.includes(`*`))}}})),pN,mN,hN,gN,_N,vN,yN,bN,xN,Rie=s((()=>{_p(),SP(),sN(),fN(),My(),pN=/\.(\d+)$/,mN=(e,t)=>{let n=new Map,r=new Map;return e.filter(e=>e.includes(`*`)).forEach(e=>{let r=e.replace(/\.\*.*$/,``),i=hP({...t,keyPath:r});n.set(e,{baseFieldName:r,fieldConfig:i,isComplexListField:oN(i)})}),[...n.entries()].forEach(([e,t])=>{let{baseFieldName:n}=t;r.has(n)||r.set(n,[]),r.get(n).push([e,t])}),r},hN=new Map,gN=({baseFieldName:e,groupEntries:t,content:n,templates:r,allFieldNames:i,context:a,fallbackContext:o})=>{let{_displayField:s,_valueField:c,_searchField:l}=r,u=jy(hN,e,()=>RegExp(`^${dp(e)}.\\d+$`));return Object.entries(n).filter(([e])=>u.test(e)).map(([e,t])=>{let n=e.match(pN);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}=lN(n,i.filter(e=>!e.includes(`*`)),a,o);return{label:r||``,value:u||a.slug,searchValue:d||r||``}})},_N=/^(.+)\.\*\.(.+)$/,vN=new Map,yN=e=>{let t=null;return e.some(([e])=>(t=e.match(_N),!!t)),t},bN=({groupEntries:e,content:t,templates:n,allFieldNames:r,context:i,fallbackContext:a})=>{let[,o,s]=yN(e)??[];if(!o)return[];let c=jy(vN,`${o}:${s}`,()=>{let e=dp(o),t=dp(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(_N);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}=lN(o,r.filter(e=>!e.includes(`*`)),i,a);return{label:s||``,value:c||i.slug,searchValue:l||s||``}})},xN=({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?bN({...u}):gN({...u,baseFieldName:c});o.push(...d),s=!0}),{results:o,hasProcessedListFields:s}}})),SN,zie=s((()=>{OP(),fN(),SN=({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,cN(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=TP(c,{identifierField:d})||TP(l[u]?.content||{},{identifierField:d})||i),{label:p||``,value:m||i,searchValue:h||p||``}}})),CN,Bie=s((()=>{_w(),SP(),Rie(),zie(),fN(),CN=({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:gw(n,e),keyPath:``},m={slug:d,locale:c,getDisplayValue:(e,n)=>yP({...p,keyPath:e,valueMap:n?f[n].content:t,locale:n??c})},h={content:t,locales:f,defaultLocale:u,identifierField:l};if(!a)return[SN({templates:r,allFieldNames:i,context:m,fallbackContext:h})];let{results:g,hasProcessedListFields:_}=xN({baseFieldGroups:mN(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}=lN({label:v,value:y,searchValue:b},i.filter(e=>!e.includes(`*`)),m,h);return[{label:x||``,value:S||d,searchValue:C||x||``}]}})),wN,TN,EN,Vie=s((()=>{wN=/^{{fields\.(.+?)}}$/,TN=(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(wN);if(!r)return[e];let i=t?.[r[1]];return i===void 0?[]:[i]})})),EN=(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)}))})),DN,ON,kN,AN=s((()=>{_p(),mw(),$M(),Lie(),Bie(),Vie(),fN(),DN=new Map,ON=({locale:e,fieldConfig:t,refEntries:n,currentLocaleValues:r=void 0,currentSlug:i=void 0})=>{let{collection:a,file:o,filters:s}=t,c=TN(s??[],r,i),l=c.flatMap(({values:e})=>e).join(`\0`),u=`${e}|${`${iN(t)}|${iN(n)}`}|${l}`,d=DN.get(u);if(d)return d;let f=dw(a);if(!f)return DN.set(u,[]),[];let{_type:p,_i18n:{defaultLocale:m}}=f,{identifier_field:h=`title`}=p===`entry`?f:{},g=dN(t,h),{allFieldNames:_,hasListFields:v}=g,y=EN(n,e,o,c).flatMap(({refEntry:t,content:n})=>CN({refEntry:t,content:n,collection:f,templates:g,allFieldNames:_,hasListFields:v,collectionName:a,fileName:o,locale:e,identifierField:h,defaultLocale:m})).sort((e,t)=>gp(e.label,t.label));return DN.set(u,y),y},kN=({fieldConfig:e,valueMap:t,keyPath:n,locale:r})=>{let{multiple:i,collection:a}=e,o=tN(ON({locale:r,fieldConfig:e,refEntries:YM(a)})),s=e=>o.get(e)||e;return i?Object.entries(t).filter(([e])=>e.match(`^${dp(n)}\\.\\d+$`)).map(([,e])=>e).map(s):s(t[n])}})),jN,MN,NN,PN=s((()=>{dc(),jN=({multiline:e,dotAll:t,source:n})=>e||t||n.includes(`[\\s\\S]`)||n.includes(`[\\S\\s]`),MN=e=>uc(Object.fromEntries(Object.entries(lc(e)).filter(([e])=>!e.split(`.`).pop()?.startsWith(`__sc_`)))),NN=e=>e.replace(/"/g,`'`)})),FN,IN,LN,RN,zN=s((()=>{FN=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,IN=new RegExp(FN,`g`),LN=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,RN=RegExp(`${FN.source}|${LN.source}`)})),BN,VN,HN,UN=s((()=>{qb(),BN=e=>e.replace(/&(?![a-zA-Z0-9#]+;)/g,`&`).replaceAll(`"`,`"`),VN={ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]},HN=(e,t)=>Kb(e.replace(`<a>`,`<a href="${BN(t)}" target="_blank" rel="noopener noreferrer">`),VN)})),WN,GN,KN,qN,JN=s((()=>{X(),PN(),zN(),UN(),WN=new Map,GN={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:FN,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="${BN(t)}" alt="${BN(n)}" title="${BN(r)}">`}},KN={id:`linked-image`,label:`Image`,fields:[...GN.fields,{name:`link`,label:`Link`,required:!1}],pattern:RN,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="${BN(t)}" alt="${BN(n)}" title="${BN(r)}">`;return i?`<a href="${BN(i)}">${a}</a>`:a}},qN=e=>{if(WN.has(e))return WN.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:{...GN,...t},"linked-image":{...KN,...t,fields:[...t.fields,{name:`link`,label:Y(`editor_components.link`),required:!1}]}}[e]}})),YN,XN,ZN,QN=s((()=>{YN=/^\d+$/,XN=e=>YN.test(e),ZN=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),$N,eP,tP,nP,Hie=s((()=>{zw(),QN(),$N=new Map,eP=new WeakMap,tP=e=>{let t=eP.get(e);return t===void 0&&(t=JSON.stringify(e),eP.set(e,t)),t},nP=({fieldConfig:e,valueMap:t,keyPath:n})=>{let{multiple:r,options:i}=e,a=Lw(i),o;if(r){let e=`${n}.`;o=Object.entries(t).filter(([t])=>t.startsWith(e)&&XN(t.slice(e.length))).map(([,e])=>e)}let s=tP(i),c=r?`${n}|${s}|${JSON.stringify(o)}`:`${n}|${s}|${String(t[n])}`,l=$N.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 $N.set(c,e),e}let d=t[n],f=a?u(d):d;return $N.set(c,f),f}})),rP,iP,aP,oP=s((()=>{Mp(),sF(),rP=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},iP=e=>{if(!e?.config)return;let{multiple:t}=e.config;if(typeof t==`boolean`)return t},aP=e=>{let t=A(nF);return e.multiple??rP(e.media_libraries)??iP(e.media_library)??rP(t?.media_libraries)??iP(t?.media_library)??!1}})),sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP=s((()=>{_p(),hC(),mw(),_w(),jC(),xw(),cC(),AN(),JN(),Hie(),JS(),oP(),My(),QN(),sP=/^(.*?)<([^>]+)>(.*)$/,cP=/(?:^|\.)(\d+)(?:\.|$)/,lP=/\.\d+$/,uP=new Map,dP=(e,t)=>{if(e.length!==1)return!1;let[n]=e;return n.widget===t&&`root`in n&&n.root===!0},fP=e=>{let t=e.widget??`string`;return vw.includes(t)?aP(e):yw.includes(t)?!!e.multiple:!1},pP=e=>{let t=e.match(sP);if(!t)return{cleanKey:e};let[,n,r,i]=t;return i?{cleanKey:e}:{cleanKey:n||``,typeName:r}},mP=({field:e,key:t,keyPathArray:n,segmentIndex:r,pendingExplicitType:i,valueMap:a})=>{let{cleanKey:o,typeName:s}=pP(t),{widget:c=`text`}=e,l=s??i,u=XN(o),d=o===`*`;if((u||d)&&yw.includes(c))return{field:fP(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}},hP=e=>{let{collectionName:t,fileName:n=void 0,componentName:r=void 0,valueMap:i={},keyPath:a,isIndexFile:o=!1}=e,s=cP.test(a)?JSON.stringify(e):`${t}|${n??``}|${r??``}|${a}|${o?`1`:`0`}`;if(uP.has(s))return uP.get(s);let c=dw(t),l=c&&n?EC(c,n):void 0;if(!c||n&&c?._type!==`entry`&&!l){uP.set(s,void 0);return}let{fields:u=[]}=l??c,d=o?hw(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}=pP(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=mP({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 uP.set(s,m),m},gP=({fieldConfig:{required:e=!0},locale:t})=>Array.isArray(e)?e.includes(t):!!e,_P=new Map,vP=new Map,yP=({collectionName:e,fileName:t,valueMap:n={},keyPath:r,locale:i,transformations:a,isIndexFile:o=!1})=>{let s=hP({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=>uC.test(e))||(c=sC({locale:i,fieldConfig:s,currentValue:c}))),s?.widget===`relation`&&(c=kN({fieldConfig:s,valueMap:n,keyPath:r,locale:i})),s?.widget===`select`&&(c=nP({fieldConfig:s,valueMap:n,keyPath:r})),s?.widget===`list`){let{fields:e}=s,{types:t}=s;if(!(e||t)){let e=jy(_P,r,()=>RegExp(`^${dp(r)}${String.raw`\.\d+$`}`));c=KS(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=VS(i),t=vP.get(e);t||(t=Intl.NumberFormat(e),vP.set(e,t)),c=t.format(Number(c))}}return Array.isArray(c)&&(c=KS(i).format(c)),a?.length&&(c=mC({fieldConfig:s,value:c,transformations:a,locale:i})),String(c??``)},bP=({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=hP({...i,keyPath:t});return!!a&&a.widget!==`hidden`});return a?yP({...i,keyPath:a,locale:t}):``},xP=({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=dw(n);if(f){if(i){let i=hP({collectionName:n,keyPath:r,isIndexFile:gw(f,e)});if(i?.widget===`relation`)return kN({fieldConfig:i,valueMap:d,keyPath:r,locale:t})}return d[r]}}})),CP,wP,TP,EP,Uie,DP,OP=s((()=>{Sy(),_p(),qb(),DS(),ire(),Ip(),hC(),_w(),SP(),CP=/^#+\s+(?<header>.+?)(?:\s+\{#.+?\})?\s*$/m,wP=(e,{allowMarkdown:t=!1}={})=>(e=TS(e),t&&(e=FS(e)),e=Kb(e,{ALLOWED_TAGS:t?[`strong`,`em`,`code`]:[]}),t||(e=FS(e)),e.trim()),TP=(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(CP)?.groups?.header??``:``},EP=(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 pp(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},Uie=(e,t)=>{let{content:n,collectionName:r,replaceSubContext:i,defaultLocale:a}=t,[o,...s]=e.split(pC),c=o.replace(/^fields\./,``),l={collectionName:r,valueMap:n,keyPath:c},u=EP(o,i);if(u===void 0&&(u=s.some(e=>uC.test(e)||fC.test(e))?n[c]:yP({...l,locale:a})),u===void 0)return``;if(u instanceof Date&&!s.length){let{year:e,month:t,day:n}=xy({date:u});return`${e}-${t}-${n}`}return s.length&&(u=mC({fieldConfig:hP({...l}),value:u,transformations:s,locale:a})),String(u)},DP=(e,t,{locale:n,useTemplate:r=!1,allowMarkdown:i=!1}={})=>{if(gw(e,t))return hw(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 wP(TP(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 wP(u.replace(Pp,(e,t)=>Uie(t,_)),{allowMarkdown:i})}})),Wie,Gie,Kie,qie,Jie,Yie=s((()=>{up(),Ip(),OP(),Wie=(e,t)=>mee.includes(e)?t[e]:void 0,Gie=e=>{switch(e){case`uuid`:return sp();case`uuid_short`:return sp(`short`);case`uuid_shorter`:return sp(`shorter`);default:return}},Kie=(e,t,n,r)=>{if(!(e!==`slug`||!t))return n===`preview_path`&&r?``:t},qie=(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}},Jie=(e,t,n)=>e.startsWith(`fields.`)?t[e.replace(/^fields\./,``)]:e===`slug`?TP(t,{identifierField:n}):t[e]})),Xie,Zie=s((()=>{Ip(),hC(),Xie=(e,t,n)=>{let r=!1;return e.forEach((i,a)=>{let{defaultValue:o}=i.match(dC)?.groups??{};if(o!==void 0){r=!0;let{innerTag:i}=o.match(hee)?.groups??{};i!==void 0&&(e[a]=`default('${n(i,t)??``}')`)}}),{transformations:e,hasDefaultTransformation:r}}})),kP,Qie,$ie=s((()=>{up(),Iy(),Yie(),Zie(),hC(),SP(),kP=(e,t)=>{let{type:n,content:r,currentSlug:i,entryFilePath:a,locale:o,dateTimeParts:s,identifierField:c,basePath:l,isIndexFile:u=!1}=t,d=Wie(e,s);if(d!==void 0)return d;let f=Kie(e,i,n??``,u);if(f!==void 0)return f;let p=Gie(e);if(p!==void 0)return p;if(n===`preview_path`&&e===`locale`)return o;if(n===`preview_path`||n===`media_folder`){let t=qie(e,a,l);if(t!==void 0)return t}return Jie(e,r,c)},Qie=(e,t)=>{let{replaceSubContext:n,getFieldArgs:r}=t,[i,...a]=e.split(pC),o=kP(i,n),{transformations:s,hasDefaultTransformation:c}=Xie(a,n,kP);if(o===void 0&&!c)return sp(`short`);let{type:l,locale:u}=n;return s.length&&(o=mC({fieldConfig:hP({...r,keyPath:i}),value:o,transformations:s,locale:u})),l?String(o):Fy(String(o),{locale:u,maxLength:1/0})}})),AP,eae,jP,MP=s((()=>{Sy(),_p(),Mp(),Ip(),$ie(),sF(),$M(),hE(),AP=e=>Np.test(e),eae=(e,t)=>YM(e).map(e=>t?e.locales[t]?.slug:e.slug).filter(Boolean),jP=(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(nF)?.slug,m=d??p?.maxlength,h=p?.timezone===`local`?void 0:`UTC`,g={replaceSubContext:{...t,dateTimeParts:o??xy({timeZone:h}),identifierField:u,basePath:f},getFieldArgs:{collectionName:l,keyPath:``,valueMap:r,isIndexFile:s}},_=e.replace(Pp,(e,t)=>Qie(t,g)).trim();return i?_:(typeof m==`number`&&(_=fp(_,m,{ellipsis:``}).replace(/-$/,``)),lE(_,eae(l,a)))}})),NP,PP,FP,tae,IP,LP,nae,rae,iae=s((()=>{Ap(),_p(),MP(),mw(),jC(),NP=[],PP=e=>e.includes(`{{media_folder}}`)||e.includes(`{{public_folder}}`),FP=(e,{globalMediaFolder:t,globalPublicFolder:n})=>e.trim().replace(`{{media_folder}}`,`/${t}`).replace(`{{public_folder}}`,`/${n}`).replace(`//`,`/`),tae=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r=!1,mediaFolder:i,publicFolder:a,baseFolder:o,globalFolders:s})=>{if(PP(i)){if(!s)return;i=FP(i,s)}if(a===void 0)a=i;else if(PP(a)){if(!s)return;a=FP(a,s)}i=i.replace(/^\.(?:\/|$)/,``);let c=!i.startsWith(`/`);return{collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r,internalPath:pp(c?o??``:i),internalSubPath:c?pp(i):void 0,publicPath:/^($|[.@])/.test(a)?a:`/${pp(a)}`,entryRelative:c,hasTemplateTags:AP(i)}},IP=e=>{if(e.mediaFolder===void 0)return;let t=tae(e);if(!t)return;let{globalMediaFolder:n,globalPublicFolder:r}=e.globalFolders??{};!t.entryRelative&&t.internalPath===n&&t.publicPath===r||NP.push(t)},LP=({collectionName:e,files:t,globalFolders:n})=>{TC(t).forEach(t=>{let{name:r,file:i,media_folder:a,public_folder:o}=t;IP({collectionName:e,fileName:r,mediaFolder:a,publicFolder:o,baseFolder:Sp(i).dirname,globalFolders:n})})},nae=({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))&&IP({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})})},rae=(e,t=[])=>{NP.length=0;let{media_folder:n,public_folder:r,collections:i,singletons:a}=e,o=n!==void 0,s=o?pp(n).replace(/^\.$/,``):``,c=o?r?`/${pp(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=aw({collections:i});f.forEach(e=>{let{name:t,files:n,folder:r,path:i,media_folder:a,public_folder:s}=e;IP({collectionName:t,mediaFolder:o&&a===void 0&&i!==void 0?``:a,publicFolder:s,baseFolder:r,entryPath:i,globalFolders:d}),n?.length&&LP({collectionName:t,files:n,globalFolders:d})}),a?.length&&LP({collectionName:`_singletons`,files:a,globalFolders:d}),nae({fieldMediaFolders:t,validCollections:f,globalFolders:d}),NP.sort((e,t)=>gp(e.internalPath,t.internalPath));let p=[];return u&&p.push(u),p.push(...NP),p.length&&p.unshift(l),p}})),aae,RP,zP,oae,sae,cae,lae,uae=s((()=>{_p(),mw(),jC(),JS(),QC(),aae=({collection:e,file:t})=>{let n=pp(t.file);if(!n.includes(`{{locale}}`))return{_default:n};let r=ZC(e,t);return Object.fromEntries(r.allLocales.map(e=>[e,qS({_i18n:r,locale:e,path:n})]))},RP=(e,t)=>{if(wC(t))return{collectionName:e.name,fileName:t.name,filePathMap:aae({collection:e,file:t})}},zP=(e,t)=>gp(Object.values(e.filePathMap??{})[0],Object.values(t.filePathMap??{})[0]),oae=({collections:e})=>aw({collections:e,type:`entry`}).map(e=>{let{name:t,folder:n}=e,r=pp(n),{allLocales:i,defaultLocale:a,omitDefaultLocaleFromFilePath:o,structureMap:{i18nMultiRootFolder:s}}=ZC(e);return{collectionName:t,folderPath:r,folderPathMap:Object.fromEntries(i.map(e=>[e,s?o&&e===a?r:`${e}/${r}`:r]))}}).sort((e,t)=>gp(e.folderPath,t.folderPath)),sae=({collections:e})=>aw({collections:e,type:`file`}).flatMap(e=>(e.files??[]).map(t=>RP(e,t))).filter(e=>!!e).sort(zP),cae=({singletons:e})=>{let t=Array.isArray(e)?TC(e):[];if(!t.length)return[];let n={name:`_singletons`,files:t};return t.map(e=>RP(n,e)).filter(e=>!!e).sort(zP)},lae=e=>[...oae(e),...sae(e),...cae(e)]})),dae,fae,pae,mae,hae,BP,gae=s((()=>{X(),p(),dae=u(ute(),1),IT(),yD(),fae=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`],pae=async({href:e,type:t=`application/yaml`},{manualInit:n=!1}={})=>{let r;if(!fae.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`?AT(e):jT(e,{merge:!0,maxAliasCount:-1})}}catch(e){throw Error(Y(`config.error.parse_failed`),{cause:e})}if(!d(s))throw Error(Y(`config.error.parse_failed`),{cause:Error(Y(`config.error.parse_failed_invalid_object`))});return s},mae=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},hae=e=>{let{origin:t}=window.location;return e.every(({href:e})=>_D(e,t))},BP=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:mae(window.location.pathname)}),!hae(t))throw Error(Y(`config.error.insecure_urls`,{values:{count:t.length}}));let n=await Promise.all(t.map(t=>pae(t,{manualInit:e})));return n.length===1?n[0]:dae.default.all(n)}})),VP,HP,_ae,vae,UP,WP=s((()=>{X(),JS(),VP=({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=Eh.current,m=d.length?`${KS(p).format(d)}: `:``,h=Y(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${Y(`config.${r}`)}`:``}`)},HP=({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)&&VP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},_ae=/^[^\s.*:<>]+$/,vae=e=>_ae.test(e),UP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return VP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return vae(e)?n[e]===1?(VP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(VP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),yae,bae,xae=s((()=>{X(),p(),iA(),PC(),WP(),yae=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],bae=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!d(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(!$k.includes(a)){let e=Qk[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 eA){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&&NC(`automatic_deployments`),HP({UNSUPPORTED_OPTIONS:yae,config:n,context:{cmsConfig:e},collectors:t})}}})),Sae,GP,KP,Cae=s((()=>{RC(),Sae=[`code`,`markdown`,`richtext`,`text`],GP=[`yaml`,`toml`,`json`],KP=(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`&&Sae.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(FC.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return IC.includes(i)?!1:i!==e}return a===`frontmatter`?!Ore.includes(i):GP.includes(a)?GP.includes(i)&&i!==a:!1}})),wae,Tae,Eae=s((()=>{WP(),wae=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Tae=e=>{HP({...e,UNSUPPORTED_OPTIONS:wae})}})),Dae,qP,Oae=s((()=>{WP(),Dae=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],qP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),HP({...e,UNSUPPORTED_OPTIONS:Dae})}})),kae,Aae,jae=s((()=>{ZP(),WP(),kae=(e,t,n)=>e===`object`?!0:(VP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Aae=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){VP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&YP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&XP(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};UP({...c,name:e,index:a,context:o})&&kae(t,o,r)&&i&&XP(i,o,r)})}})),Mae,Nae,Pae=s((()=>{WP(),Mae=[{prop:`valueType`,newProp:`value_type`}],Nae=e=>{HP({...e,UNSUPPORTED_OPTIONS:Mae})}})),Fae,Iae=s((()=>{ZP(),WP(),Fae=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){VP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){VP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&XP(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};UP({...s,name:e,index:i,context:a})&&t&&XP(t,a,r)})}})),Lae,Rae,zae=s((()=>{WP(),Lae=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Rae=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||VP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&VP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else VP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});HP({...e,UNSUPPORTED_OPTIONS:Lae}),r.relationFields.add({fieldConfig:i,context:n})}})),Bae,JP,Vae=s((()=>{WP(),Bae=[{prop:`editorComponents`,newProp:`editor_components`}],JP=e=>{HP({...e,UNSUPPORTED_OPTIONS:Bae})}})),Hae,YP,XP,ZP=s((()=>{Eae(),Oae(),jae(),Pae(),Iae(),zae(),Vae(),WP(),Hae={datetime:Tae,file:qP,image:qP,list:Aae,markdown:JP,number:Nae,object:Fae,relation:Rae,richtext:JP},YP=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}};Hae[i]?.(o),i===`date`&&VP({...o,strKey:`date_field_type`})},XP=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;UP({...r,name:a,index:i})&&YP({config:e,context:t,collectors:n})})}})),Uae,QP,Wae=s((()=>{Ap(),Cae(),ZP(),WP(),Uae=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=Sp(i);KP(c,a,o)&&VP({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||VP({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&VP({strKey:`collection_file_i18n_required`,context:e,collectors:t}),XP(o,e,t)},QP=(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};UP({...a,name:o,index:i,context:s})&&Uae(s,t)})}})),Gae,Kae,qae,Jae,Yae=s((()=>{X(),PC(),Wae(),Cae(),ZP(),WP(),Gae=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Kae=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;KP(i,a)&&VP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&NC(`slug_length`),HP({UNSUPPORTED_OPTIONS:Gae,config:r,context:e,collectors:t}),o?.length||VP({strKey:`collection_no_fields`,context:e,collectors:t}),XP(o,e,t),s&&XP(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&VP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},qae=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){VP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){VP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?QP({cmsConfig:e,collection:t},n):a&&Kae({cmsConfig:e,collection:t},n)},Jae=(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};UP({...a,name:i,index:r,context:o})&&qae(o,t)}),Array.isArray(r)&&QP({cmsConfig:e,collection:{name:`_singletons`,label:Y(`singletons`),label_singular:Y(`singleton`),files:r}},t)}})),Xae,Zae=s((()=>{X(),wj(),Xae=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!Cj.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>Cj.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`)))}})),Qae,$ae,eoe=s((()=>{xae(),Yae(),Zae(),WP(),Qae=[{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`}],$ae=(e,t)=>{bae(e,t),Xae(e,t),Jae(e,t),HP({UNSUPPORTED_OPTIONS:Qae,config:e,context:{cmsConfig:e},collectors:t})}})),toe,$P,noe,eF,tF,nF,rF,iF,aF,oF,roe,sF=s((()=>{X(),up(),p(),_p(),toe=u(ute(),1),Mp(),by(),Gp(),iae(),uae(),gae(),eoe(),CC(),OO(),{DEV:$P,VITE_SITE_URL:noe}={DEV:!1},eF=$P?noe||`http://localhost:5174`:void 0,tF={},nF=un(),rF=un(),iF=un([]),aF=dn([nF,iF],([e,t])=>!!e||!!t.length),oF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},roe=async e=>{nF.set(void 0),iF.set([]),Object.assign(oF,{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(!d(e))throw Error(Y(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,toe.default)(await BP({manualInit:!0}),t))}else t=await BP();if(Object.assign(tF,t),$ae(t,oF),oF.errors.size)throw oF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);oF.warnings.size&&oF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||($P?eF:window.location.origin),n._baseURL=hp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),nF.set(n),rF.set(await lp(vy(n)))}catch(e){iF.set(oF.errors.size?[...oF.errors]:[e.name===`Error`?e.message:Y(`config.error.unexpected`)]),console.error(e,e.cause)}},nF.subscribe(e=>{if(DO.devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,oF)),!e)return;let t=lae(e),n=rae(e,[...oF.mediaFields]);vC.set(t),Lp.set(n),DO.devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),cF,lF=s((()=>{Mp(),sF(),cF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(nF),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)}})),uF,ioe,dF=s((()=>{p(),lF(),tM(),mM(),uF=({fieldConfig:e}={})=>{let t=cF({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:d(a)?a:void 0}}},ioe=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&&eM.includes(t)?t:`webp`,s=await fM(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}`?Yj.test(e.name)?e.name.replace(Yj,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 pM(e)],e.name,{type:e.type}):e}})),fF,pF=s((()=>{dF(),hE(),fF=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=uE(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await ioe(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),aoe,mF,hF,gF,_F,vF,ooe,yF,bF,xF,SF,CF,soe,wF,coe,loe,TF,EF,DF,uoe,OF,kF,AF=s((()=>{Ap(),_p(),dc(),Mp(),Gp(),pF(),MP(),Ip(),mw(),_w(),jC(),HM(),dF(),hE(),aoe=/^(?<entryFolder>.+?)(?:\/[^/]+)?$/,mF=un([]),hF={source:void 0,map:new Map},gF=()=>{let e=A(mF);return e!==hF.source&&(hF.source=e,hF.map=new Map(e.map(e=>[e.path,e]))),hF.map},_F=e=>gF().get(e),vF=un([]),ooe=dn(vF,e=>new Set(e.map(e=>e.path))),yF=un(),bF=un(),xF=un({folder:void 0,files:[]}),SF=un(),CF=un(),soe=dn([xF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=uF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>fF(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]))}))})()}),wF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Vp({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(aoe).groups,f=e.replace(/^\.\//,``),p=fE(dE([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return gF().get(p)},coe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Vp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Vp({collectionName:n,fileName:r}):void 0,n?Vp({collectionName:n}):void 0,A(Rp)].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=gF().get(dE([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??gF().get(e)}return RM(t).flatMap(n=>{let r=OC(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>wF({...a,file:e})):wF({...a})}).filter(Boolean)[0]??gF().get(e)},loe=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=gF().get(pp(e));if(a)return a;let{dirname:o=``,basename:s}=Sp(e),c;return[i?Vp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Vp({collectionName:n,fileName:r}),Vp({collectionName:n}),A(Rp),A(Lp).findLast(e=>{let t=e.publicPath??``,n=dp(t).replace(Fp,`.+?`);return o.match(`^${n}${t?`(?=\\/|$)`:`$`}`)})].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&Np.test(i)){let e=r?dw(r):t?RM(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=jP(i,{type:`media_folder`,collection:e,content:lc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:gw(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=dE([i,s]),l=gF().get(a);return l&&(c=l),!!l}),c},TF=e=>!/^[/@]/.test(e),EF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=oE(e.split(`#`)[0]);return TF(a)?coe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):loe({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},DF=({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,uoe=e=>A(mF).filter(t=>DF(t,e)),OF=e=>A(mF).filter(t=>Sp(t.path).dirname===e),zp.subscribe(()=>{yF.set(void 0)}),kF=(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()))}})),jF,MF,NF=s((()=>{Ap(),_p(),Mp(),AF(),Gp(),MM(),mw(),_w(),SP(),jF=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(`^${dp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await jM({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},MF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=dw(t);if(!a)return[];let o=gw(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||TF(a))){let s=hP({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=EF({value:a,entry:e,collectionName:t,fileName:n});if(c&&Up(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&&Vp({collectionName:t,fileName:n})?.entryRelative){let t=Sp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(mF).forEach(n=>{let r=Sp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),PF,doe,FF,foe,IF,LF=s((()=>{p(),dc(),pee(),NF(),gD(),PF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],doe=[`preSave`,`prePublish`],FF=new Set,foe=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>vd({data:uc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:uc(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:``}),IF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=hD.account,{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==u),{content:h,path:g}=p[u],_=MF({entry:n,collectionName:c,fileName:l});for(let t of FF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:foe({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(doe.includes(e)&&$l(n)){let e=n.toJS();d(e.data)&&d(e.i18n)?(p[u].content=lc(e.data),m.forEach(t=>{d(e.i18n[t]?.data)&&(p[t].content=lc(e.i18n[t].data))})):p[u].content=lc(e)}}}})),RF,zF,BF,VF,HF,UF,WF,GF,poe,KF=s((()=>{Mp(),RF=un(!1),zF=un(!1),BF=un({show:!1,multiple:!1}),VF=un({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),HF=un(null),UF=un(null),WF=un(),GF=new Set,poe=new Map})),moe=s((()=>{})),Z=s((()=>{moe(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),hoe,goe=s((()=>{hoe=`{"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"}}`})),_oe,voe=s((()=>{_oe=`{"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":"プレーンテキスト"}}`})),yoe,boe=s((()=>{goe(),voe(),X(),by(),yoe=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":hoe,"../locales/ja.yaml":_oe})).forEach(([e,t])=>{wh(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:_y(t)})}),Dh({fallbackLocale:e,initialLocale:t})}}));function qF(e,t){G(e,Coe);let n=Js(t,xoe);var r=Soe();ys(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 xoe,Soe,Coe,JF=s((()=>{Z(),J(),xoe=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`name`]),Soe=B(`<span> </span>`),Coe={hash:`svelte-1e54a1h`,code:`.icon.small-arrow.svelte-1e54a1h {overflow:hidden;width:12px;text-indent:-6px;}`}}));function YF(e,t){G(e,Eoe);let n=Js(t,woe);var r=Toe();ys(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();Eo(I(n),()=>t.icon),H(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);qF(e,{get name(){return z(n)}})}};W(i,e=>{t.icon?e(a):e(o,-1)}),Eo(L(i,2),()=>t.children??E),D(r),H(e,r)}var woe,Toe,Eoe,XF=s((()=>{Z(),J(),JF(),woe=new Set([`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]),Toe=B(`<div><!> <!></div>`),Eoe={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);}`}})),Doe,ZF,Ooe,koe,Aoe,QF,$F,eI=s((()=>{ZF=()=>(Doe??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),Doe),Ooe=[`Ctrl`,`Meta`,`Alt`,`Shift`],koe=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}`)]),Aoe=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:koe.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),QF=(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,ZF()?`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=>!Ooe.includes(e)).every(t=>Aoe(t,e))})},$F=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,ZF()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!QF(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 tI(e,t){G(e,Moe);let n=q(t,`lines`,3,1),r=q(t,`children`,3,void 0);var i=joe();Eo(F(i),()=>r()??E),D(i),R(()=>us(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),H(e,i)}var joe,Moe,nI=s((()=>{Z(),J(),joe=B(`<span role="none" class="sui truncated-text svelte-1htz360"><!></span>`),Moe={hash:`svelte-1htz360`,code:`.truncated-text.svelte-1htz360 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),rI,iI,aI,Noe,Poe,Foe,oI,sI=s((()=>{up(),aI=(e=`e`,t=7)=>[e,sp(t)].join(`-`),Noe=()=>{if(`IntersectionObserver`in globalThis)return iI||(rI=new Map,iI=new IntersectionObserver(e=>{e.forEach(({isIntersecting:e,target:t})=>{if(!e||!(t instanceof HTMLElement))return;let n=rI?.get(t);n&&(rI?.delete(t),iI?.unobserve(t),n())})}),iI)},Poe=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},Foe=e=>{if(`requestAnimationFrame`in globalThis){globalThis.requestAnimationFrame(e);return}globalThis.setTimeout(e,16)},oI=e=>{if(!e)return;let t=Noe();if(t)return Poe(e)?Promise.resolve(void 0):new Promise(n=>{rI?.set(e,n),Foe(()=>{t.observe(e)})})}})),Ioe,Loe,Roe=s((()=>{J(),sI(),Cw(),dh(),Ioe=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(Cr({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=aI(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ba(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ba(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)}),ba(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),ba(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ba(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 Sw(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Loe=(...e)=>new Ioe(...e)}));function zoe(e,t){var n=V();Eo(I(n),()=>t.children??E),H(e,n)}var Boe=s((()=>{Z(),J()}));function Voe(e,t){O(t,!0),G(e,Woe);let n=e=>{var n=Uoe(),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))};ys(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Ss]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-mxumua`);var g=F(n);Eo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=V();Eo(I(n),()=>t.children??E),H(e,n)};W(_,e=>{(z(h)||l())&&e(v)}),D(n),Vs(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,Hoe),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 Sw(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 ei(()=>{r()?v():y()}),ic(()=>{let e=za(zoe,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Va(e)}}),k({focus:d,close:f})}var Hoe,Uoe,Woe,cI=s((()=>{Z(),J(),Cw(),oc(),Boe(),Hoe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),Uoe=B(`<dialog><!> <!></dialog>`),Woe={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 lI(e,t){O(t,!0),G(e,qoe);let n=e=>{var n=Koe();let o,s;Eo(F(n),()=>t.children??E),D(n),Vs(n,e=>a(e),()=>a()),R(()=>{K(n,`hidden`,!r()),o=ss(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-17p6hn1`,o,{touch:z(y)}),s=us(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`})}),xa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),xa(`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,Goe),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Loe(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ei(()=>{z(g)&&r(z(g).open)}),ei(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ei(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ei(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ic(()=>(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));Voe(e,Ys(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Sw(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 Goe,Koe,qoe,uI=s((()=>{Z(),J(),Cw(),oc(),Roe(),cI(),Goe=new Set([`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),Koe=B(`<div role="none"><!></div>`),qoe={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 dI(e,t){O(t,!0),G(e,Zoe);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,Joe);var w=Xoe(),ee=I(w);ys(ee,()=>({...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(),[Ss]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-747svn`);var T=F(ee);Eo(T,()=>t.startIcon??E);var te=L(T,2),ne=e=>{var n=V(),r=I(n),i=e=>{var t=fI();tI(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)},a=e=>{var n=fI();Eo(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=Yoe(),r=I(n),i=e=>{var t=fI();tI(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,m())),H(e,n)},$$slots:{default:!0}}),D(t),H(e,t)};W(r,e=>{m()&&e(i)}),Eo(L(r,2),()=>t.children??E),H(e,n)};W(te,e=>{g()===`link`?e(ne):e(re,-1)}),Eo(L(te,2),()=>t.endIcon??E),D(ee),Vs(ee,e=>n(e),()=>n()),Yo(ee,()=>$F(p()));var ie=L(ee,2),ae=e=>{lI(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=V();Eo(I(r),()=>t.popup),H(e,r)},$$slots:{default:!0}})};W(ie,e=>{t.popup&&e(ae)}),H(e,w),k()}var Joe,fI,Yoe,Xoe,Zoe,pI=s((()=>{Z(),J(),eI(),nI(),uI(),Joe=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(`.`)),fI=B(`<span role="none" class="label svelte-747svn"><!></span>`),Yoe=B(`<!> <!>`,1),Xoe=B(`<button><!> <!> <!></button> <!>`,1),Zoe={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 mI(e,t){O(t,!0),G(e,ese);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=$oe(),s=F(t),c=F(s),l=e=>{var t=V();Eo(I(t),o),H(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());qF(e,{get name(){return z(t)}})}};W(c,e=>{o()?e(l):e(u,-1)}),Eo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=Qoe(),r=F(t);{let e=M(()=>Y(`_sui.dismiss`));dI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{qF(e,{name:`close`})},$$slots:{default:!0}})}D(t),H(e,t)};W(d,e=>{r()&&e(f)}),D(t),R(()=>ss(t,1,`infobar ${i()??``}`,`svelte-2bt0oo`)),H(e,t)};W(c,e=>{n()&&e(l)}),H(e,s),k()}var Qoe,$oe,ese,tse=s((()=>{Z(),J(),X(),pI(),JF(),Qoe=B(`<div role="none"><!></div>`),$oe=B(`<div role="none"><div role="alert" class="message svelte-2bt0oo"><!> <!></div> <!></div>`),ese={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 nse(e,t){G(e,ase);let n=Js(t,rse);var r=ise();ys(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-76ww7t`),Eo(F(r),()=>t.children??E),D(r),H(e,r)}var rse,ise,ase,ose=s((()=>{Z(),J(),rse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),ise=B(`<div><!></div>`),ase={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 sse(e,t){G(e,use);let n=Js(t,cse);var r=lse();ys(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1f2dbh`),Eo(F(r),()=>t.children??E),D(r),H(e,r)}var cse,lse,use,dse=s((()=>{Z(),J(),cse=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`children`]),lse=B(`<div><!></div>`),use={hash:`svelte-1f2dbh`,code:`.button-group.svelte-1f2dbh {flex:none;display:inline-flex;align-items:center;}`}}));function hI(e,t){G(e,_I);let n=q(t,`children`,3,void 0);var r=gI();Eo(F(r),()=>n()??E),D(r),H(e,r)}var gI,_I,fse=s((()=>{Z(),J(),gI=B(`<div role="none" class="sui floating-action-button-wrapper svelte-1w9ejur"><!></div>`),_I={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
|
}`}})),vI,yI=s((()=>{J(),vI=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}}})),bI,xI,SI,CI,wI,TI=s((()=>{J(),X(),sI(),Cw(),yI(),bI=/\p{Diacritic}/gu,xI=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(bI,``).toLocaleLowerCase():``),SI={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}},CI=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=aI(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}=SI[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 Sw(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:vI(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=xh();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=xh(),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=xI(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=xI(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}}))}},wI=e=>t=>{let n=typeof e==`function`,r=new CI(t,n?e():e);return n&&ei(()=>{r.onUpdate(e())}),()=>{r.destroy()}}}));function EI(e,t){O(t,!0),G(e,kI);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,DI);var c=OI();ys(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);Eo(F(l),()=>t.children??E),D(l),D(c),Yo(c,wI),R(()=>l.inert=r()),H(e,c),k()}var DI,OI,kI,pse=s((()=>{Z(),J(),TI(),DI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),OI=B(`<div><div role="none" class="inner svelte-4yijem"><!></div></div>`),kI={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 AI(e,t){O(t,!0);let n=q(t,`selected`,15,!1),r=Js(t,jI);dI(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 jI,mse=s((()=>{Z(),J(),pI(),jI=new Set([`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`])}));function MI(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,NI),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=PI(),h=I(m);return dI(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();Eo(I(n),()=>t.startIcon??E),H(e,n)},children:e=>{var n=V();Eo(I(n),()=>t.children??E),H(e,n)},endIcon:e=>{var n=V(),r=I(n),i=e=>{var n=V();Eo(I(n),()=>t.endIcon),H(e,n)},a=e=>{qF(e,{name:`more_vert`})},o=e=>{qF(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}})),lI(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();Eo(I(r),()=>t.popup??E),H(e,r)},$$slots:{default:!0}}),H(e,m),k(p)}var NI,PI,FI=s((()=>{Z(),J(),pI(),JF(),uI(),NI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),PI=B(`<!> <!>`,1)}));function II(e,t){O(t,!0),G(e,zI);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,LI),u=N(void 0);var d=RI(),f=F(d);dI(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();Eo(I(n),()=>t.chevronIcon),H(e,n)},a=e=>{qF(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();Eo(I(n),()=>t.popup??E),H(e,n)},l=M(()=>Y(`_sui.split_button.more_options`));MI(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),Vs(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 LI,RI,zI,hse=s((()=>{Z(),J(),X(),JF(),FI(),pI(),LI=new Set([`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),RI=B(`<div role="group" class="sui split-button svelte-nw6iqa"><!> <!></div>`),zI={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 BI(e,t){G(e,UI);let n=q(t,`hidden`,3,!1),r=q(t,`orientation`,3,`horizontal`),i=Js(t,VI);var a=HI();ys(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 VI,HI,UI,WI=s((()=>{Z(),J(),VI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]),HI=B(`<div></div>`),UI={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 GI(e,t){G(e,JI);let n=q(t,`flex`,3,!1),r=Js(t,KI);var i=qI();ys(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Ss]:{flex:n()}}),void 0,void 0,void 0,`svelte-3j4esa`),H(e,i)}var KI,qI,JI,YI=s((()=>{Z(),J(),KI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]),qI=B(`<div></div>`),JI={hash:`svelte-3j4esa`,code:`.spacer.flex.svelte-3j4esa:not([hidden]) {display:block;flex:auto;}.spacer.svelte-3j4esa:not(.flex) {width:8px;height:8px;}`}}));function gse(e,t){G(e,QI);let n=q(t,`hidden`,3,!1),r=q(t,`disabled`,3,!1),i=q(t,`orientation`,3,`horizontal`),a=Js(t,XI);var o=ZI();ys(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);Eo(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),H(e,o)}var XI,ZI,QI,_se=s((()=>{Z(),J(),XI=new Set([`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`children`]),ZI=B(`<div><div role="none" class="inner svelte-12ao3tb"><!></div></div>`),QI={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 Xde(e,t){O(t,!0);let n=()=>j(nA,`$backend`,i),r=()=>j(nF,`$cmsConfig`,i),[i,a]=hn(),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())};ic(()=>(P(s,!0),()=>{d()})),ei(()=>{z(s),n(),r(),f()});var p=V(),m=I(p),h=e=>{var t=t4(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);lo(r,()=>({"--sui-infobar-message-justify-content":`center`})),mI(r.lastChild,{get status(){return z(e)},children:(e,t)=>{_t();var r=e4(),i=I(r),a=L(i);{let e=M(()=>Y(`details`));dI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{t2(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 e4,t4,Zde=s((()=>{Z(),J(),X(),$(),oc(),iA(),sF(),n2(),e4=B(` <!>`,1),t4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Qde(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===Bj)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{}};ic(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=V(),s=I(o),c=e=>{var t=r4(),n=I(t);lo(n,()=>({"--sui-infobar-message-justify-content":`center`})),mI(n.lastChild,{children:(e,t)=>{_t();var n=n4(),r=I(n),i=L(r);{let e=M(()=>Y(`update_now`));dI(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 n4,r4,$de=s((()=>{Z(),J(),X(),$(),oc(),Vj(),n4=B(` <!>`,1),r4=B(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),i4,efe=s((()=>{Kj(),MM(),QN(),i4=async(e,t)=>{let n=t===`image`?await TM(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await Gj(`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:ZN(i,7),longitude:ZN(a,7)}:void 0}}})),a4,o4,s4,c4,tfe=s((()=>{efe(),a4=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})},o4=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})},s4=async(e,t)=>t===`image`?a4(e):o4(e,t),c4=async(e,t,n)=>{let{dimensions:r,duration:i}=await s4(t,n),{createdDate:a,coordinates:o}=await i4(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),l4,u4,d4,f4=s((()=>{Mp(),MM(),iA(),$M(),tfe(),l4={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},u4=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=A(nA)?.repository??{},i=await EM(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await c4(e,i,t)),{...a,publicURL:kM(e),repoBlobURL:r?`${r}/${n}`:void 0}},d4=async e=>{let t=kM(e,{allowSpecial:!0,pathOnly:!0})??await EM(e);return t?ZM(t):[]}}));function p4(e,t){O(t,!0);let n=e=>{var t=m4(),n=I(t);{let e=M(()=>Y(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);dR(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}}));dR(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));dR(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(Cr([])),o=N(!1),s=Cr({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 TM(r()[0]),{type:t}=e;return l=e,xp(t)?!0:$j.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(xp(t)){await navigator.clipboard.writeText(await e.text());return}if(!$j.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await fM(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}};ei(()=>{(async()=>{P(a,await Promise.all(r().map(u4)),!0),P(o,await u(),!0)})()});var h=h4(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>Y(`copy_options`));oR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>Y(`copy`));MI(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`));dR(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)}),Hz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{YF(e,{get status(){return s.status},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),k()}var m4,h4,g4=s((()=>{Z(),J(),X(),$(),Ap(),f4(),MM(),tM(),mM(),m4=B(`<!> <!> <!>`,1),h4=B(`<!> <!>`,1)})),_4,v4,y4=s((()=>{Mp(),_4={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},v4=un({..._4})})),b4,x4=s((()=>{Mp(),y4(),b4=un({..._4})})),S4,C4,w4,T4,E4=s((()=>{Dw(),Mp(),AF(),iA(),CC(),gD(),OO(),hE(),S4=()=>{let e=hD.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}},C4=async({changes:e,commit:t})=>{let{databaseName:n}=A(nA)?.repository??{};if(!n)return;let r=new ww(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:pE(c).size,text:c,meta:s};await r.set(a,l)}))},w4=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));yC.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)}),mF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},T4=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=A(nA),a={...await i(e,r),author:S4()};DO.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 C4({changes:e,commit:a}),w4({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),D4,O4,nfe=s((()=>{AF(),x4(),E4(),y4(),D4=({assets:e})=>{yF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),b4.set({..._4,deleted:!0,count:e.length})},O4=async e=>{await T4({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),D4({assets:e})}}));function k4(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()?dI:dR);var l=A4(),u=I(l);{let e=M(()=>!n().length),t=M(()=>Y(`delete`));Oo(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`));hL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{O4(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),k()}var A4,j4=s((()=>{Z(),J(),X(),$(),nfe(),A4=B(`<!> <!>`,1)}));function M4(e,t){O(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?dI:dR),o=async()=>{for(let e of n())kp(await TM(e),e.name),await Sw(300);P(i,!0)};var s=N4(),c=I(s);{let e=M(()=>!n().length),t=M(()=>Y(`download`));Oo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}Hz(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{YF(e,{status:`success`,children:(e,t)=>{_t();var r=Fa();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 N4,P4=s((()=>{Z(),J(),X(),$(),Ap(),Cw(),MM(),N4=B(`<!> <!>`,1)}));function F4(e,t){O(t,!0);let n=()=>j(nA,`$backend`,r),[r,i]=hn(),a=q(t,`extraItems`,3,void 0),o=N(Cr({...l4})),s=M(()=>z(o).publicURL),c=M(()=>z(o).repoBlobURL),l=async()=>{P(o,t.asset?await u4(t.asset):{...l4},!0)};ei(()=>{t.asset,l()});{let r=e=>{{let r=M(()=>Y(`edit_options`));oR(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=I4(),o=I(i);Eo(o,()=>a()??E);var l=L(o,2);{let e=M(()=>Y(`edit`)),n=M(()=>Y(`edit_asset`)),r=M(()=>!t.asset||!Jw(t.asset));dR(l,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(SF,t.asset)}})}var u=L(l,2);{let e=M(()=>Y(`rename`)),n=M(()=>Y(`rename_asset`)),r=M(()=>!t.asset);dR(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(CF,t.asset)}})}var d=L(u,2);{let e=M(()=>Y(`replace`)),n=M(()=>Y(`replace_asset`)),r=M(()=>!t.asset);dR(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(xF,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),mn(q0,!0)}})}var f=L(d,2);BI(f,{});var p=L(f,2);{let e=M(()=>Y(`view_on_live_site`)),t=M(()=>!z(s));dR(p,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t2(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`)}));dR(e,{get disabled(){return z(t)},get label(){return z(r)},onclick:()=>{t2(`${z(c)}?plain=1`)}})}};W(m,e=>{DO.devModeEnabled&&e(h)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>Y(`show_edit_options`));MI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:r,$$slots:{popup:!0}})}k(),i()}var I4,L4=s((()=>{Z(),J(),X(),$(),AF(),f4(),Xw(),e2(),iA(),OO(),n2(),I4=B(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function R4(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(()=>xh()?`arrow_forward`:`arrow_back`);qF(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??Y(`back`)),o=M(()=>n()?`Escape`:void 0);dI(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 z4=s((()=>{Z(),J(),X(),$()}));function rfe(e,t){O(t,!0);let n=()=>j(bF,`$overlaidAsset`,i),r=()=>j(zp,`$selectedAssetFolder`,i),[i,a]=hn(),o=e=>{var t=B4(),n=I(t);p4(n,{get assets(){return z(s)},get useButton(){return z(c)}});var i=L(n,2);M4(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`));k4(a,{get assets(){return z(s)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{d2(`/assets/${r()?.internalPath??`-/all`}`)},get useButton(){return z(c)}})}H(e,t)},s=M(()=>n()?[n()]:[]),c=M(()=>!eE.isSmallScreen);{let t=M(()=>Y(`primary`));R1(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var i=V4(),a=I(i);{let e=M(()=>Y(`cancel_editing`));R4(a,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{d2(`/assets/${r()?.internalPath??`-/all`}`)}})}var s=L(a,2);tI(F(s),{children:(e,t)=>{_t();var r=Fa();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=>{eE.isSmallScreen||e(l)}),F4(L(c,2),{get asset(){return n()},extraItems:e=>{var t=V(),n=I(t),r=e=>{o(e)};W(n,e=>{eE.isSmallScreen&&e(r)}),H(e,t)},$$slots:{extraItems:!0}}),H(e,i)},$$slots:{default:!0}})}k(),a()}var B4,V4,ife=s((()=>{Z(),J(),X(),$(),g4(),j4(),P4(),L4(),z4(),p2(),AF(),Gp(),nE(),B4=B(`<!> <!> <!>`,1),V4=B(`<!> <h2 role="none"><!></h2> <!> <!>`,1)}));function H4(e,t){O(t,!0),G(e,Y4);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,U4),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)&&Vw.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await oI(z(p));try{i(z(v)?await OM(r()):await EM(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,Wn()}},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 oI(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&URL.revokeObjectURL(i()))};ei(()=>{r()&&!z(g)&&(async()=>{P(g,await OM(r(),{cacheOnly:!0}),!0)})()}),ei(()=>{z(p)&&r()&&x()}),ei(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await oI(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),ei(()=>{z(p)&&z(_)&&S()});var C=J4();let w;var ee=F(C),T=e=>{qF(e,{name:`draft`})},te=e=>{var t=W4();ys(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Vs(t,e=>P(p,e),()=>z(p)),va(t),H(e,t)},ne=e=>{var t=G4();ys(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Vs(t,e=>P(p,e),()=>z(p)),H(e,t)},re=e=>{var t=V(),n=I(t),r=e=>{var t=K4();ys(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Vs(t,e=>P(p,e),()=>z(p)),H(e,t)},i=e=>{qF(e,{name:`audio_file`})};W(n,e=>{d()?e(r):e(i,-1)}),H(e,t)},ie=e=>{qF(e,{name:`draft`})};W(ee,e=>{z(m)?e(T):z(y)?e(te,1):t.kind===`video`?e(ne,2):t.kind===`audio`?e(re,3):e(ie,-1)});var ae=L(ee,2),oe=e=>{var t=q4(),n=F(t),r=F(n),i=e=>{var t=Fa();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=ss(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),H(e,t)};W(ae,e=>{o()&&e(oe)}),D(C),R(()=>w=ss(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),H(e,C),k()}var U4,W4,G4,K4,q4,J4,Y4,X4=s((()=>{Z(),J(),X(),$(),sI(),oc(),MM(),Xw(),U4=new Set([`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),W4=B(`<img/>`),G4=B(`<video></video>`,2),K4=B(`<audio></audio>`),q4=B(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),J4=B(`<div role="none"><!> <!></div>`),Y4={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(xp(t)){await navigator.clipboard.writeText(await e.text());return}if(!$j.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await fM(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}};ei(()=>{(async()=>{P(a,await Promise.all(r().map(u4)),!0),P(o,await u(),!0)})()});var h=h4(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>Y(`copy_options`));oR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>Y(`copy`));MI(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`));dR(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)}),Hz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{YF(e,{get status(){return s.status},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,s.text)),H(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),H(e,h),k()}var m4,h4,g4=s((()=>{Z(),J(),X(),$(),Ap(),f4(),MM(),tM(),mM(),m4=B(`<!> <!> <!>`,1),h4=B(`<!> <!>`,1)})),_4,v4,y4=s((()=>{Mp(),_4={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},v4=un({..._4})})),b4,x4=s((()=>{Mp(),y4(),b4=un({..._4})})),S4,C4,w4,T4,E4=s((()=>{Dw(),Mp(),AF(),iA(),CC(),gD(),OO(),hE(),S4=()=>{let e=hD.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}},C4=async({changes:e,commit:t})=>{let{databaseName:n}=A(nA)?.repository??{};if(!n)return;let r=new ww(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:pE(c).size,text:c,meta:s};await r.set(a,l)}))},w4=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));yC.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)}),mF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},T4=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=A(nA),a={...await i(e,r),author:S4()};DO.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 C4({changes:e,commit:a}),w4({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),D4,O4,nfe=s((()=>{AF(),x4(),E4(),y4(),D4=({assets:e})=>{yF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),b4.set({..._4,deleted:!0,count:e.length})},O4=async e=>{await T4({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),D4({assets:e})}}));function k4(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()?dI:dR);var l=A4(),u=I(l);{let e=M(()=>!n().length),t=M(()=>Y(`delete`));Oo(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`));hL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{O4(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>U(n,i())),H(e,n)},$$slots:{default:!0}})}H(e,l),k()}var A4,j4=s((()=>{Z(),J(),X(),$(),nfe(),A4=B(`<!> <!>`,1)}));function M4(e,t){O(t,!0);let n=q(t,`assets`,19,()=>[]),r=q(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?dI:dR),o=async()=>{for(let e of n())kp(await TM(e),e.name),await Sw(300);P(i,!0)};var s=N4(),c=I(s);{let e=M(()=>!n().length),t=M(()=>Y(`download`));Oo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}Hz(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{YF(e,{status:`success`,children:(e,t)=>{_t();var r=Fa();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 N4,P4=s((()=>{Z(),J(),X(),$(),Ap(),Cw(),MM(),N4=B(`<!> <!>`,1)}));function F4(e,t){O(t,!0);let n=()=>j(nA,`$backend`,r),[r,i]=hn(),a=q(t,`extraItems`,3,void 0),o=N(Cr({...l4})),s=M(()=>z(o).publicURL),c=M(()=>z(o).repoBlobURL),l=async()=>{P(o,t.asset?await u4(t.asset):{...l4},!0)};ei(()=>{t.asset,l()});{let r=e=>{{let r=M(()=>Y(`edit_options`));oR(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=I4(),o=I(i);Eo(o,()=>a()??E);var l=L(o,2);{let e=M(()=>Y(`edit`)),n=M(()=>Y(`edit_asset`)),r=M(()=>!t.asset||!Jw(t.asset));dR(l,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(SF,t.asset)}})}var u=L(l,2);{let e=M(()=>Y(`rename`)),n=M(()=>Y(`rename_asset`)),r=M(()=>!t.asset);dR(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(CF,t.asset)}})}var d=L(u,2);{let e=M(()=>Y(`replace`)),n=M(()=>Y(`replace_asset`)),r=M(()=>!t.asset);dR(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(xF,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),mn(q0,!0)}})}var f=L(d,2);BI(f,{});var p=L(f,2);{let e=M(()=>Y(`view_on_live_site`)),t=M(()=>!z(s));dR(p,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t2(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`)}));dR(e,{get disabled(){return z(t)},get label(){return z(r)},onclick:()=>{t2(`${z(c)}?plain=1`)}})}};W(m,e=>{DO.devModeEnabled&&e(h)}),H(e,i)},$$slots:{default:!0}})}},i=M(()=>Y(`show_edit_options`));MI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:r,$$slots:{popup:!0}})}k(),i()}var I4,L4=s((()=>{Z(),J(),X(),$(),AF(),f4(),Xw(),e2(),iA(),OO(),n2(),I4=B(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function R4(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(()=>xh()?`arrow_forward`:`arrow_back`);qF(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??Y(`back`)),o=M(()=>n()?`Escape`:void 0);dI(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 z4=s((()=>{Z(),J(),X(),$()}));function rfe(e,t){O(t,!0);let n=()=>j(bF,`$overlaidAsset`,i),r=()=>j(zp,`$selectedAssetFolder`,i),[i,a]=hn(),o=e=>{var t=B4(),n=I(t);p4(n,{get assets(){return z(s)},get useButton(){return z(c)}});var i=L(n,2);M4(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`));k4(a,{get assets(){return z(s)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{d2(`/assets/${r()?.internalPath??`-/all`}`)},get useButton(){return z(c)}})}H(e,t)},s=M(()=>n()?[n()]:[]),c=M(()=>!eE.isSmallScreen);{let t=M(()=>Y(`primary`));R1(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var i=V4(),a=I(i);{let e=M(()=>Y(`cancel_editing`));R4(a,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{d2(`/assets/${r()?.internalPath??`-/all`}`)}})}var s=L(a,2);tI(F(s),{children:(e,t)=>{_t();var r=Fa();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=>{eE.isSmallScreen||e(l)}),F4(L(c,2),{get asset(){return n()},extraItems:e=>{var t=V(),n=I(t),r=e=>{o(e)};W(n,e=>{eE.isSmallScreen&&e(r)}),H(e,t)},$$slots:{extraItems:!0}}),H(e,i)},$$slots:{default:!0}})}k(),a()}var B4,V4,ife=s((()=>{Z(),J(),X(),$(),g4(),j4(),P4(),L4(),z4(),p2(),AF(),Gp(),nE(),B4=B(`<!> <!> <!>`,1),V4=B(`<!> <h2 role="none"><!></h2> <!> <!>`,1)}));function H4(e,t){O(t,!0),G(e,Y4);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,U4),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)&&Vw.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await oI(z(p));try{i(z(v)?await OM(r()):await EM(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,Wn()}},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 oI(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&(await Sw(500),URL.revokeObjectURL(i())))};ei(()=>{r()&&!z(g)&&(async()=>{P(g,await OM(r(),{cacheOnly:!0}),!0)})()}),ei(()=>{z(p)&&r()&&x()}),ei(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await oI(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),ei(()=>{z(p)&&z(_)&&S()});var C=J4();let w;var ee=F(C),T=e=>{qF(e,{name:`draft`})},te=e=>{var t=W4();ys(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Vs(t,e=>P(p,e),()=>z(p)),va(t),H(e,t)},ne=e=>{var t=G4();ys(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Vs(t,e=>P(p,e),()=>z(p)),H(e,t)},re=e=>{var t=V(),n=I(t),r=e=>{var t=K4();ys(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Vs(t,e=>P(p,e),()=>z(p)),H(e,t)},i=e=>{qF(e,{name:`audio_file`})};W(n,e=>{d()?e(r):e(i,-1)}),H(e,t)},ie=e=>{qF(e,{name:`draft`})};W(ee,e=>{z(m)?e(T):z(y)?e(te,1):t.kind===`video`?e(ne,2):t.kind===`audio`?e(re,3):e(ie,-1)});var ae=L(ee,2),oe=e=>{var t=q4(),n=F(t),r=F(n),i=e=>{var t=Fa();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=ss(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),H(e,t)};W(ae,e=>{o()&&e(oe)}),D(C),R(()=>w=ss(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),H(e,C),k()}var U4,W4,G4,K4,q4,J4,Y4,X4=s((()=>{Z(),J(),X(),$(),sI(),Cw(),oc(),MM(),Xw(),U4=new Set([`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),W4=B(`<img/>`),G4=B(`<video></video>`,2),K4=B(`<audio></audio>`),q4=B(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),J4=B(`<div role="none"><!> <!></div>`),Y4={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) {
|