@sveltia/cms 0.107.0 → 0.107.2
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 +38 -38
- package/dist/sveltia-cms.js.map +1 -1
- package/dist/sveltia-cms.mjs +37 -37
- package/dist/sveltia-cms.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/sveltia-cms.json +28 -5
- package/types/public.d.ts +3 -2
package/dist/sveltia-cms.mjs
CHANGED
|
@@ -134,7 +134,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
134
134
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
135
135
|
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const r=!this.onKeyLine&&this.indent===e.indent,i=r&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind";let o=[];if(i&&n.sep&&!n.value){const s=[];for(let a=0;a<n.sep.length;++a){const c=n.sep[a];switch(c.type){case"newline":s.push(a);break;case"space":break;case"comment":c.indent>e.indent&&(s.length=0);break;default:s.length=0}}s.length>=2&&(o=n.sep.splice(s[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(o.push(this.sourceToken),e.items.push({start:o}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):i||n.value?(o.push(this.sourceToken),e.items.push({start:o,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(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ws(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});else if(N$(n.key)&&!ws(n.sep,"newline")){const s=Cl(n.start),a=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:a,sep:c}]})}else o.length>0?n.sep=n.sep.concat(o,this.sourceToken):n.sep.push(this.sourceToken);else if(ws(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const s=Cl(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?e.items.push({start:o,key:null,sep:[this.sourceToken]}):ws(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const s=this.flowScalar(this.type);i||n.value?(e.items.push({start:o,key:s,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(s):(Object.assign(n,{key:s,sep:[]}),this.onKeyLine=!0);return}default:{const s=this.startBlockValue(e);if(s){if(s.type==="block-seq"){if(!n.explicitKey&&n.sep&&!ws(n.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 r&&e.items.push({start:o});this.stack.push(s);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const r="end"in n.value?n.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,n.start),i.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||ws(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=mf(r),o=Cl(i);Ox(e);const s=e.end.splice(1,e.end.length);s.push(this.sourceToken);const a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:o,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
|
|
136
136
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
137
|
-
`,n)+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;const n=mf(e),r=Cl(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=mf(e),r=Cl(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.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;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function HR(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new qR||null,prettyErrors:e}}function KR(t,e={}){const{lineCounter:n,prettyErrors:r}=HR(e),i=new VR(n?.addNewLine),o=new FR(e);let s=null;for(const a of o.compose(i.parse(t),!0,t.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Eu(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Ax(t,n)),s.warnings.forEach(Ax(t,n))),s}function I$(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=KR(t,n);if(!i)return null;if(i.warnings.forEach(o=>o$(i.options.logLevel,o)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function g_(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return xd(t)&&!r?t.toString(n):new $d(t,r,n).toString(n)}const Ys=nt([]),ul=sn([Ys],([t],e)=>{e(t.find(({collectionName:n,internalPath:r})=>n===void 0&&r!==void 0))}),Hi=nt(),Sp=sn([Hi,ul],([t,e])=>t?.internalPath!==void 0?t:e),eo=({collectionName:t,fileName:e,keyPath:n})=>ae(Ys).find(r=>r.collectionName===t&&r.fileName===e&&r.keyPath===n),Ep=(t,{matchSubFolders:e=!0}={})=>{const{filename:n}=fn(t);return n.startsWith("+")?[]:ae(Ys).filter(({internalPath:r,entryRelative:i})=>r===void 0?!1:i?t.startsWith(`${r}/`):new RegExp(`^${r.replace(/{{.+?}}/g,".+?")}${r&&e?"\\b":"$"}`).test(fn(t).dirname??"")).sort((r,i)=>(i.internalPath??"").localeCompare(r.internalPath??"")??0)},m_=t=>!!t&&!t.entryRelative&&!t.hasTemplateTags;class Lo{#t;#n="";#r="";#a={};#l=[];constructor(e,n,{keyPath:r,autoIncrement:i,indexes:o=[]}={}){this.#t=void 0,this.#n=e,this.#r=n,this.#a={keyPath:r,autoIncrement:i},this.#l=o}async#o(e){return new Promise(n=>{const r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{const i=r.result,o=this.#r,s=i.objectStoreNames.contains(o)?i.transaction(o,"readwrite").objectStore(o):i.createObjectStore(o,this.#a);this.#l.forEach(({name:a,keyPath:c,options:u})=>{s.indexNames.contains(a)||s.createIndex(a,c,u)})},r.onsuccess=()=>{n(r.result)}})}async#s(){let e=!1,n=await this.#o();const{version:r,objectStoreNames:i}=n,o=this.#r;if(i.contains(o)){const s=n.transaction(o).objectStore(o);e=this.#l.some(({name:a})=>!s.indexNames.contains(a))}else e=!0;return e&&(n.close(),n=await this.#o(r+1)),n.onversionchange=()=>{n.close(),this.#t=void 0},n}async#e(e){this.#t??=await this.#s();const n=this.#t,r=this.#r,i=n.transaction(r,"readwrite"),o=e(i.objectStore(r));return o?new Promise(s=>{o.onsuccess=()=>{s(o.result)}}):new Promise(s=>{i.oncomplete=()=>{s(void 0)}})}async set(e,n){return this.#e(r=>r.put(n,e))}async put(e){return this.#e(n=>n.put(e))}async saveEntries(e){return this.#e(n=>{e.forEach(([r,i])=>{n.put(i,r)})})}async get(e){return this.#e(n=>n.get(e))}async keys(){return this.#e(e=>e.getAllKeys())}async values(){return this.#e(e=>e.getAll())}async entries(){const[e,n]=await Promise.all([this.keys(),this.values()]);return e.map((r,i)=>[r,n[i]])}async#i({callback:e=void 0,index:n=void 0,query:r=void 0,direction:i="next",multiple:o=!1}){return new Promise(s=>{this.#e(a=>{const c=(n?a.index(n):a).openCursor(r,i),u=[];c.onsuccess=()=>{const d=c.result;if(d){const{value:f}=d;typeof e!="function"||e(f)?o?(u.push(f),d.continue()):s(f):d.continue()}else s(o?u:void 0)}})})}async find(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r})}async findLast(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,direction:"prev"})}async filter(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,multiple:!0})}async delete(e){await this.#e(n=>n.delete(e))}async deleteEntries(e){await this.#e(n=>{e.forEach(r=>{n.delete(r)})})}async clear(){await this.#e(e=>e.clear())}}class li{static async set(e,n){globalThis.localStorage.setItem(e,JSON.stringify(n))}static async get(e){const n=globalThis.localStorage.getItem(e);return n?JSON.parse(n):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(e=>JSON.parse(e))}static async entries(){return Object.entries(globalThis.localStorage).map(([e,n])=>[e,JSON.parse(n)])}}const O$=t=>Array.isArray(t)&&t.every(e=>Yt(e)),Zu=t=>[...new Set(t)];var Bg,Rx;function GR(){return Rx||(Rx=1,Bg=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}),Bg}var WR=GR();const ln=hs(WR);function R$(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function D$(t){return t}function to(t,e){e=e||{};const n=e.delimiter||".",r=e.maxDepth,i=e.transformKey||D$,o={};function s(a,c,u){u=u||1,Object.keys(a).forEach(function(d){const f=a[d],h=e.safe&&Array.isArray(f),p=Object.prototype.toString.call(f),g=R$(f),m=p==="[object Object]"||p==="[object Array]",v=c?c+n+i(d):i(d);if(!h&&!g&&m&&Object.keys(f).length&&(!e.maxDepth||u<r))return s(f,v,u+1);o[v]=f})}return s(t),o}function ls(t,e){e=e||{};const n=e.delimiter||".",r=e.overwrite||!1,i=e.transformKey||D$,o={};if(R$(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function a(d){const f=Number(d);return isNaN(f)||d.indexOf(".")!==-1||e.object?d:f}function c(d,f,h){return Object.keys(h).reduce(function(p,g){return p[d+n+g]=h[g],p},f)}function u(d){const f=Object.prototype.toString.call(d),h=f==="[object Array]",p=f==="[object Object]";if(d){if(h)return!d.length;if(p)return!Object.keys(d).length}else return!0}return t=Object.keys(t).reduce(function(d,f){const h=Object.prototype.toString.call(t[f]);return!(h==="[object Object]"||h==="[object Array]")||u(t[f])?(d[f]=t[f],d):c(f,d,to(t[f],e))},{}),Object.keys(t).forEach(function(d){const f=d.split(n).map(i);let h=a(f.shift()),p=a(f[0]),g=o;for(;p!==void 0;){if(h==="__proto__")return;const m=Object.prototype.toString.call(g[h]),v=m==="[object Object]"||m==="[object Array]";if(!r&&!v&&typeof g[h]<"u")return;(r&&!v||!r&&g[h]==null)&&(g[h]=typeof p=="number"&&!e.object?[]:{}),g=g[h],f.length>0&&(h=a(f.shift()),p=a(f[0]))}g[h]=ls(t[d],e)}),o}const Ba=({date:t=new Date,timeZone:e=void 0}={})=>{const 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:e}).formatToParts(t).filter(({type:r})=>r in n).map(({type:r,value:i})=>[r,r==="hour"&&i==="24"?"00":i]))},YR=[["ß","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"],["−","-"],["⁓","-"]],Dx=[["æ","ae"],["Æ","Ae"],["ø","oe"],["Ø","Oe"],["å","aa"],["Å","Aa"]],Mx={sv:[["ä","a"],["Ä","A"],["ö","o"],["Ö","O"],["å","a"],["Å","A"]],da:Dx,nb:Dx,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"]]},JR=(t,e)=>{for(const[n,r]of e)t=t.replaceAll(n,r);return t},XR=t=>{if(!t)return[];const e=t.toLowerCase().replace(/^no(-|$)/,"nb$1");return Mx[e]||Mx[e.split("-")[0]]||[]};function ZR(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=XR(e.locale),r=new Map([...YR,...n,...e.customReplacements]);return t=t.normalize(),t=JR(t,r),t=t.normalize("NFD").replaceAll(/\p{Diacritic}/gu,"").normalize(),t=t.replaceAll(/\p{Dash_Punctuation}/gu,"-"),t}const M$=(t,{fallback:e=!0}={})=>{const{slug:{encoding:n="unicode",clean_accents:r=!1,sanitize_replacement:i="-",trim:o=!0}={}}=ae($t)??{};let s=t;if(r&&(s=ZR(s).normalize("NFD").replace(/\p{Diacritic}/gu,"")),n==="ascii"?s=s.replaceAll(/[^\w-~]/g," "):s=s.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu," "),s=s.toLocaleLowerCase().trim().replaceAll(/\s+/g,i),i){const a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=new RegExp(`${a}+`,"g");s=s.replace(c,i),o&&(s=s.replace(new RegExp(`^${a}+|${a}+$`,"g"),""))}return!s&&e?ai("short"):s};var Vf={exports:{}},QR=Vf.exports,Fx;function eD(){return Fx||(Fx=1,(function(t,e){(function(n,r){t.exports=r()})(QR,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",c="hour",u="day",d="week",f="month",h="quarter",p="year",g="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var D=["th","st","nd","rd"],B=N%100;return"["+N+(D[(B-20)%10]||D[B]||D[0])+"]"}},w=function(N,D,B){var H=String(N);return!H||H.length>=D?N:""+Array(D+1-H.length).join(B)+N},E={s:w,z:function(N){var D=-N.utcOffset(),B=Math.abs(D),H=Math.floor(B/60),W=B%60;return(D<=0?"+":"-")+w(H,2,"0")+":"+w(W,2,"0")},m:function N(D,B){if(D.date()<B.date())return-N(B,D);var H=12*(B.year()-D.year())+(B.month()-D.month()),W=D.clone().add(H,f),Y=B-W<0,O=D.clone().add(H+(Y?-1:1),f);return+(-(H+(B-W)/(Y?W-O:O-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:d,d:u,D:g,h:c,m:a,s,ms:o,Q:h}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},k="en",S={};S[k]=y;var C="$isDayjsObject",x=function(N){return N instanceof L||!(!N||!N[C])},T=function N(D,B,H){var W;if(!D)return k;if(typeof D=="string"){var Y=D.toLowerCase();S[Y]&&(W=Y),B&&(S[Y]=B,W=Y);var O=D.split("-");if(!W&&O.length>1)return N(O[0])}else{var F=D.name;S[F]=D,W=F}return!H&&W&&(k=W),W||!H&&k},A=function(N,D){if(x(N))return N.clone();var B=typeof D=="object"?D:{};return B.date=N,B.args=arguments,new L(B)},P=E;P.l=T,P.i=x,P.w=function(N,D){return A(N,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var L=(function(){function N(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[C]=!0}var D=N.prototype;return D.parse=function(B){this.$d=(function(H){var W=H.date,Y=H.utc;if(W===null)return new Date(NaN);if(P.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var O=W.match(v);if(O){var F=O[2]-1||0,K=(O[7]||"0").substring(0,3);return Y?new Date(Date.UTC(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)):new Date(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)}}return new Date(W)})(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return P},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(B,H){var W=A(B);return this.startOf(H)<=W&&W<=this.endOf(H)},D.isAfter=function(B,H){return A(B)<this.startOf(H)},D.isBefore=function(B,H){return this.endOf(H)<A(B)},D.$g=function(B,H,W){return P.u(B)?this[H]:this.set(W,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,H){var W=this,Y=!!P.u(H)||H,O=P.p(B),F=function(se,fe){var be=P.w(W.$u?Date.UTC(W.$y,fe,se):new Date(W.$y,fe,se),W);return Y?be:be.endOf(u)},K=function(se,fe){return P.w(W.toDate()[se].apply(W.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(fe)),W)},J=this.$W,Q=this.$M,oe=this.$D,re="set"+(this.$u?"UTC":"");switch(O){case p:return Y?F(1,0):F(31,11);case f:return Y?F(1,Q):F(0,Q+1);case d:var ee=this.$locale().weekStart||0,ne=(J<ee?J+7:J)-ee;return F(Y?oe-ne:oe+(6-ne),Q);case u:case g:return K(re+"Hours",0);case c:return K(re+"Minutes",1);case a:return K(re+"Seconds",2);case s:return K(re+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,H){var W,Y=P.p(B),O="set"+(this.$u?"UTC":""),F=(W={},W[u]=O+"Date",W[g]=O+"Date",W[f]=O+"Month",W[p]=O+"FullYear",W[c]=O+"Hours",W[a]=O+"Minutes",W[s]=O+"Seconds",W[o]=O+"Milliseconds",W)[Y],K=Y===u?this.$D+(H-this.$W):H;if(Y===f||Y===p){var J=this.clone().set(g,1);J.$d[F](K),J.init(),this.$d=J.set(g,Math.min(this.$D,J.daysInMonth())).$d}else F&&this.$d[F](K);return this.init(),this},D.set=function(B,H){return this.clone().$set(B,H)},D.get=function(B){return this[P.p(B)]()},D.add=function(B,H){var W,Y=this;B=Number(B);var O=P.p(H),F=function(Q){var oe=A(Y);return P.w(oe.date(oe.date()+Math.round(Q*B)),Y)};if(O===f)return this.set(f,this.$M+B);if(O===p)return this.set(p,this.$y+B);if(O===u)return F(1);if(O===d)return F(7);var K=(W={},W[a]=r,W[c]=i,W[s]=n,W)[O]||1,J=this.$d.getTime()+B*K;return P.w(J,this)},D.subtract=function(B,H){return this.add(-1*B,H)},D.format=function(B){var H=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var Y=B||"YYYY-MM-DDTHH:mm:ssZ",O=P.z(this),F=this.$H,K=this.$m,J=this.$M,Q=W.weekdays,oe=W.months,re=W.meridiem,ee=function(fe,be,pe,he){return fe&&(fe[be]||fe(H,Y))||pe[be].slice(0,he)},ne=function(fe){return P.s(F%12||12,fe,"0")},se=re||function(fe,be,pe){var he=fe<12?"AM":"PM";return pe?he.toLowerCase():he};return Y.replace(b,(function(fe,be){return be||(function(pe){switch(pe){case"YY":return String(H.$y).slice(-2);case"YYYY":return P.s(H.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return ee(W.monthsShort,J,oe,3);case"MMMM":return ee(oe,J);case"D":return H.$D;case"DD":return P.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return ee(W.weekdaysMin,H.$W,Q,2);case"ddd":return ee(W.weekdaysShort,H.$W,Q,3);case"dddd":return Q[H.$W];case"H":return String(F);case"HH":return P.s(F,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return se(F,K,!0);case"A":return se(F,K,!1);case"m":return String(K);case"mm":return P.s(K,2,"0");case"s":return String(H.$s);case"ss":return P.s(H.$s,2,"0");case"SSS":return P.s(H.$ms,3,"0");case"Z":return O}return null})(fe)||O.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,H,W){var Y,O=this,F=P.p(H),K=A(B),J=(K.utcOffset()-this.utcOffset())*r,Q=this-K,oe=function(){return P.m(O,K)};switch(F){case p:Y=oe()/12;break;case f:Y=oe();break;case h:Y=oe()/3;break;case d:Y=(Q-J)/6048e5;break;case u:Y=(Q-J)/864e5;break;case c:Y=Q/i;break;case a:Y=Q/r;break;case s:Y=Q/n;break;default:Y=Q}return W?Y:P.a(Y)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return S[this.$L]},D.locale=function(B,H){if(!B)return this.$L;var W=this.clone(),Y=T(B,H,!0);return Y&&(W.$L=Y),W},D.clone=function(){return P.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},N})(),I=L.prototype;return A.prototype=I,[["$ms",o],["$s",s],["$m",a],["$H",c],["$W",u],["$M",f],["$y",p],["$D",g]].forEach((function(N){I[N[1]]=function(D){return this.$g(D,N[0],N[1])}})),A.extend=function(N,D){return N.$i||(N(D,L,A),N.$i=!0),A},A.locale=T,A.isDayjs=x,A.unix=function(N){return A(1e3*N)},A.en=S[k],A.Ls=S,A.p={},A}))})(Vf)),Vf.exports}var tD=eD();const sr=hs(tD);var Hf={exports:{}},nD=Hf.exports,zx;function rD(){return zx||(zx=1,(function(t,e){(function(n,r){t.exports=r()})(nD,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),w=60*y[1]+(+y[2]||0);return w===0?0:y[0]==="+"?-w:w})(v)}],h=function(v){var b=c[v];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(v,b){var y,w=c.meridiem;if(w){for(var E=1;E<=24;E+=1)if(v.indexOf(w(E,0,b))>-1){y=E>12;break}}else y=v===(b?"pm":"PM");return y},g={A:[a,function(v){this.afternoon=p(v,!1)}],a:[a,function(v){this.afternoon=p(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[o,d("day")],Do:[a,function(v){var b=c.ordinal,y=v.match(/\d+/);if(this.day=y[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===v&&(this.day=w)}],w:[s,d("week")],ww:[o,d("week")],M:[s,d("month")],MM:[o,d("month")],MMM:[a,function(v){var b=h("months"),y=(h("monthsShort")||b.map((function(w){return w.slice(0,3)}))).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(v){var b=h("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(v){var b,y;b=v,y=c&&c.formats;for(var w=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,P,L){var I=L&&L.toUpperCase();return P||y[L]||n[L]||y[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,D,B){return D||B.slice(1)}))}))).match(r),E=w.length,k=0;k<E;k+=1){var S=w[k],C=g[S],x=C&&C[0],T=C&&C[1];w[k]=T?{regex:x,parser:T}:S.replace(/^\[|\]$/g,"")}return function(A){for(var P={},L=0,I=0;L<E;L+=1){var N=w[L];if(typeof N=="string")I+=N.length;else{var D=N.regex,B=N.parser,H=A.slice(I),W=D.exec(H)[0];B.call(P,W),A=A.replace(W,"")}}return(function(Y){var O=Y.afternoon;if(O!==void 0){var F=Y.hours;O?F<12&&(Y.hours+=12):F===12&&(Y.hours=0),delete Y.afternoon}})(P),P}}return function(v,b,y){y.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var w=b.prototype,E=w.parse;w.parse=function(k){var S=k.date,C=k.utc,x=k.args;this.$u=C;var T=x[1];if(typeof T=="string"){var A=x[2]===!0,P=x[3]===!0,L=A||P,I=x[2];P&&(I=x[2]),c=this.$locale(),!A&&I&&(c=y.Ls[I]),this.$d=(function(H,W,Y,O){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*H);var F=m(W)(H),K=F.year,J=F.month,Q=F.day,oe=F.hours,re=F.minutes,ee=F.seconds,ne=F.milliseconds,se=F.zone,fe=F.week,be=new Date,pe=Q||(K||J?1:be.getDate()),he=K||be.getFullYear(),ge=0;K&&!J||(ge=J>0?J-1:be.getMonth());var ve,_e=oe||0,$e=re||0,Ce=ee||0,Re=ne||0;return se?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re+60*se.offset*1e3)):Y?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re)):(ve=new Date(he,ge,pe,_e,$e,Ce,Re),fe&&(ve=O(ve).week(fe).toDate()),ve)}catch{return new Date("")}})(S,T,C,y),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),L&&S!=this.format(T)&&(this.$d=new Date("")),c={}}else if(T instanceof Array)for(var N=T.length,D=1;D<=N;D+=1){x[1]=T[D-1];var B=y.apply(this,x);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}D===N&&(this.$d=new Date(""))}else E.call(this,k)}}}))})(Hf)),Hf.exports}var iD=rD();const v_=hs(iD);var Kf={exports:{}},oD=Kf.exports,jx;function sD(){return jx||(jx=1,(function(t,e){(function(n,r){t.exports=r()})(oD,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,a=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,g,m){var v=m&&m.toUpperCase();return g||h[m]||n[m]||h[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,y,w){return y||w.slice(1)}))}))})(c,u===void 0?{}:u);return a.call(this,d)}}}))})(Kf)),Kf.exports}var aD=sD();const b_=hs(aD);var Gf={exports:{}},lD=Gf.exports,Bx;function cD(){return Bx||(Bx=1,(function(t,e){(function(n,r){t.exports=r()})(lD,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,a){var c=s.prototype;a.utc=function(m){var v={date:m,utc:!0,args:arguments};return new s(v)},c.utc=function(m){var v=a(this.toDate(),{locale:this.$L,utc:!0});return m?v.add(this.utcOffset(),n):v},c.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),u.call(this,m)};var d=c.init;c.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else d.call(this)};var f=c.utcOffset;c.utcOffset=function(m,v){var b=this.$utils().u;if(b(m))return this.$u?0:b(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=(function(k){k===void 0&&(k="");var S=k.match(r);if(!S)return null;var C=(""+S[0]).match(i)||["-",0,0],x=C[0],T=60*+C[1]+ +C[2];return T===0?0:x==="+"?T:-T})(m),m===null))return this;var y=Math.abs(m)<=16?60*m:m;if(y===0)return this.utc(v);var w=this.clone();if(v)return w.$offset=y,w.$u=!1,w;var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(y+E,n)).$offset=y,w.$x.$localOffset=E,w};var h=c.format;c.format=function(m){var v=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,v)},c.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var p=c.toDate;c.toDate=function(m){return m==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var g=c.diff;c.diff=function(m,v,b){if(m&&this.$u===m.$u)return g.call(this,m,v,b);var y=this.local(),w=a(m).local();return g.call(y,w,v,b)}}}))})(Gf)),Gf.exports}var uD=cD();const __=hs(uD),Tr=t=>{let e;if(t!=="_default")try{[e]=Intl.getCanonicalLocales(t)}catch{}return e},Fi=(t,{native:e=!1}={})=>{const n=Tr(t);if(!n)return t;const r=e?n:Tr(ae(Ut)??"en"),i=new Intl.DisplayNames(r,{type:"language"});try{return i.of(n)??t}catch(o){return console.error(o),t}},dc=(t,e={})=>new Intl.ListFormat(Tr(t),{style:"narrow",type:"conjunction",...e}),y_=({_i18n:t,locale:e,path:n})=>{const{defaultLocale:r,omitDefaultLocaleFromFileName:i}=t;return i&&e===r&&(n=n.replace(/\.{{locale}}\.(\w+)$/,".$1")),n.replaceAll("{{locale}}",e)},dD=/^(?:\d{4}-[01]\d-[0-3]\d)?(?:T?[0-2]\d:[0-5]\d)?(?::[0-5]\d)?(?:\.\d+)?(?:[+-][0-2]\d:[0-5]\d|Z)?$/,fD=/^\d{4}-[01]\d-[0-3]\d$/,hD=/T00:00(?::00)?(?:\.000)?Z$/,kv={year:"numeric",month:"short",day:"numeric"},Sv={hour:"numeric",minute:"numeric",hour12:!0},pD={...kv,...Sv};sr.extend(v_);sr.extend(b_);sr.extend(__);const Js=t=>{const{format:e,date_format:n=void 0,time_format:r=void 0,picker_utc:i=!1}=t;return{format:e||[typeof n=="string"?n:"",typeof r=="string"?r:""].join(" ").trim()||void 0,dateOnly:r===!1,timeOnly:n===!1,utc:i}},fc=(t,e)=>{const{format:n,timeOnly:r,utc:i}=Js(e);if(t)try{return n?(i?sr.utc:sr)(t,n).toDate():r?new Date(`${new Date().toJSON().split("T")[0]}T${t}`):new Date(t)}catch(o){console.error(o);return}},F$=t=>{const{dateOnly:e,timeOnly:n,utc:r}=Js(t),{year:i,month:o,day:s,hour:a,minute:c}=Ba({timeZone:r?"UTC":void 0}),u=`${i}-${o}-${s}`,d=`${a}:${c}`;return e?u:n?d:r?`${u}T${d}:00.000Z`:`${u}T${d}`},z$=(t,e,n)=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Js(n),a=i?"YYYY-MM-DD":o?"HH:mm":"YYYY-MM-DDTHH:mm",c=`:00${e?.endsWith(".000")?".000":""}`;if(t==="")return"";if(t)try{if(r){const u=(s?sr.utc:sr)(t,a).format(r);return r.includes("Z")&&u.endsWith("+00:00")?u.replace("+00:00","Z"):u}return i?t:s?`${t}:00.000Z`:`${t}${c}`}catch(u){console.error(u);return}},gD=(t,e)=>{const{dateOnly:n,timeOnly:r,utc:i}=Js(e);if(!t)return"";const o=n?t?.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?t?.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(o)return o;try{const s=t?fc(t,e):new Date;if(t&&!s||t&&s&&Number.isNaN(s.getTime()))return"";const{year:a,month:c,day:u,hour:d,minute:f}=Ba({date:s,timeZone:i?"UTC":void 0}),h=`${a}-${c}-${u}`,p=`${d}:${f}`;return n?h:r?p:`${h}T${p}`}catch(s){return console.error(s),""}},j$=({locale:t,fieldConfig:e,currentValue:n})=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Js(e);if(typeof n!="string"||!n.trim())return"";if(r)try{return(s?sr.utc:sr)(n,r).format(r)}catch{}const a=fc(n,e),c=Tr(t);return!a||Number.isNaN(a.getTime())?"":o?a.toLocaleTimeString(c,Sv):i?a.toLocaleDateString(c,{...kv,timeZone:s||fD.test(n)||hD.test(n)?"UTC":void 0}):a.toLocaleString(c,{...kv,...Sv,timeZone:s?"UTC":void 0,timeZoneName:s?void 0:"short"})};sr.extend(v_);sr.extend(b_);sr.extend(__);const w_=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,B$=/^default\('(?<defaultValue>.+?)'\)$/,U$=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,mD=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,vD=t=>String(t).toUpperCase(),bD=t=>String(t).toLowerCase(),_D=(t,{format:e,timeZone:n},r)=>{const i=String(t),{dateOnly:o,utc:s}=Js(r),c=(n==="utc"||s||o&&!!i.match(/^\d{4}-[01]\d-[0-3]\d$/)||o&&!!i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?sr.utc:sr)(i);return c.isValid()?c.format(e):""},yD=(t,{defaultValue:e})=>t?String(t):e,wD=(t,{truthyValue:e,falsyValue:n})=>t?e:n,xD=(t,{max:e,ellipsis:n="…"})=>SE(String(t),Number(e),{ellipsis:n}),kD=({fieldConfig:t,value:e,transformation:n})=>{if(n==="upper")return vD(e);if(n==="lower")return bD(e);const r=n.match(w_);if(r?.groups)return _D(e,r.groups,t??{});const i=n.match(B$);if(i?.groups)return yD(e,i.groups);const o=n.match(U$);if(o?.groups)return wD(e,o.groups);const s=n.match(mD);return s?.groups?xD(e,s.groups):String(e)},x_=({fieldConfig:t,value:e,transformations:n})=>(n.forEach(r=>{e=kD({fieldConfig:t,value:e,transformation:r})}),e),Lt=(t=0)=>new Promise(e=>{globalThis.setTimeout(()=>{e(void 0)},t)}),q$={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(q$);const V$={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(V$);var Ti=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Il,$u,ca;class SD{constructor(...e){Il.set(this,new Map),$u.set(this,new Map),ca.set(this,new Map);for(const n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Ti(this,ca,"f").has(r)||Ti(this,ca,"f").set(r,new Set);const o=Ti(this,ca,"f").get(r);let s=!0;for(let a of i){const c=a.startsWith("*");if(a=c?a.slice(1):a,o?.add(a),s&&Ti(this,$u,"f").set(r,a),s=!1,c)continue;const u=Ti(this,Il,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Ti(this,Il,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;const n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Ti(this,Il,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Ti(this,$u,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Ti(this,ca,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of Ti(this,ca,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Ti(this,Il,"f"),extensions:Ti(this,$u,"f")}}}Il=new WeakMap,$u=new WeakMap,ca=new WeakMap;const gs=new SD(V$,q$)._freeze();var Ug,Ux;function ED(){if(Ux)return Ug;Ux=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return Ug=function(r,i,o){if(typeof i!="string")throw new Error("Input must be string");for(var s=i.length,a=0,c,u,d=0;d<s;d+=1){if(c=i.charCodeAt(d),u=i[d],t(c)&&e(i.charCodeAt(d+1))&&(d+=1,u+=i[d]),a+=r(u),a===o)return i.slice(0,d+1);if(a>o)return i.slice(0,d-u.length+1)}return i},Ug}var qg,qx;function $D(){if(qx)return qg;qx=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return qg=function(r){if(typeof r!="string")throw new Error("Input must be string");for(var i=r.length,o=0,s=null,a=null,c=0;c<i;c++)s=r.charCodeAt(c),e(s)?a!=null&&t(a)?o+=1:o+=3:s<=127?o+=1:s>=128&&s<=2047?o+=2:s>=2048&&s<=65535&&(o+=3),a=s;return o},qg}var Vg,Vx;function TD(){if(Vx)return Vg;Vx=1;var t=ED(),e=$D();return Vg=t.bind(null,e),Vg}var Hg,Hx;function CD(){if(Hx)return Hg;Hx=1;var t=TD(),e=/[\/\?<>\\:\*\|"]/g,n=/[\x00-\x1f\x80-\x9f]/g,r=/^\.+$/,i=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,o=/[\. ]+$/;function s(a,c){if(typeof a!="string")throw new Error("Input must be string");var u=a.replace(e,c).replace(n,c).replace(r,c).replace(i,c).replace(o,c);return t(u,255)}return Hg=function(a,c){var u=c&&c.replacement||"",d=s(a,u);return u===""?d:s(d,"")},Hg}var AD=CD();const PD=hs(AD),H$=(t,e)=>new RegExp(`^${t.split("/").map(e).join("\\/")}\\b`),K$=t=>{const e=t.startsWith("@");return e&&(t=t.slice(1)),t=t.split("/").map(n=>encodeURIComponent(n).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)).join("/"),e?`@${t}`:t},LD=t=>decodeURIComponent(t),$p=t=>{const e=new Intl.NumberFormat(ae(Ut),{maximumFractionDigits:1}),n=1e3,r=n*1e3,i=r*1e3,o=i*1e3;return t<n?ae(ue)("file_size_units.b",{values:{size:e.format(t)}}):t<r?ae(ue)("file_size_units.kb",{values:{size:e.format(t/n)}}):t<i?ae(ue)("file_size_units.mb",{values:{size:e.format(t/r)}}):t<o?ae(ue)("file_size_units.gb",{values:{size:e.format(t/i)}}):ae(ue)("file_size_units.tb",{values:{size:e.format(t/o)}})},G$=(t,e)=>{if(!e.length)return t;const{filename:n,extension:r}=fn(t),i=new RegExp(`^${Vt(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:""}$`),o=e.sort((a,c)=>xi(a.split(".")[0],c.split(".")[0])).findLast(a=>i.test(a));if(!o)return t;const s=Number(o.match(i)?.groups?.num??0)+1;return`${n}-${s}${r?`.${r}`:""}`},W$=(t,{slugificationEnabled:e=!1,assetNamesInSameFolder:n=[]}={})=>{let r=PD(t.normalize());if(e){const{filename:i,extension:o}=fn(r);r=`${M$(i)}${o?`.${o}`:""}`}return G$(r,n)},hc=t=>t.filter(Boolean).join("/"),Ev=t=>{const e=t.split("/");let n=!1;return e.forEach((r,i)=>{if(r==="."||r===".."){if(n&&(e[i]=null,r==="..")){const o=e.findLastIndex((s,a)=>!!s&&a<i);o>-1&&(e[o]=null)}}else n=!0}),hc(e)},k_=t=>typeof t=="string"?new Blob([t],{type:"text/plain"}):t,Ua=async t=>{const n=await k_(t).arrayBuffer();return za(new Blob([`blob ${n.byteLength}\0`,n]))},ND="modulepreload",ID=function(t){return"/"+t},Kx={},Y$=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");i=c(n.map(u=>{if(u=ID(u),u in Kx)return;Kx[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":ND,d||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),d)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},$v="0.107.0",OD={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.35.0","@sindresorhus/transliterate":"^2.0.0","@sveltia/ui":"^0.28.3","@sveltia/utils":"^0.8.5","create-react-class":"^15.7.0",dayjs:"^1.11.18",deepmerge:"^4.3.1",exifr:"^7.1.3","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.28.0",leaflet:"^1.9.4",lexical:"^0.35.0",marked:"^16.3.0","marked-bidi":"^1.0.13",mime:"^4.1.0","parse-entities":"^4.0.2","pdfjs-dist":"^5.4.149",qrcode:"^1.5.4",react:"^19.1.1","react-dom":"^19.1.1","sanitize-filename":"^1.6.3","smol-toml":"^1.4.2","svelte-i18n":"^4.0.1",svgo:"^4.0.0","terra-draw":"^1.15.0","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.1",yaml:"^2.8.1"},S_=t=>{const e=`https://unpkg.com/${t}`,n=OD[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},Ea=async(t,e)=>Y$(()=>import(`${S_(t)}/${e}`),[]),fa=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},RD=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{parse:r}=await Ea("exifr","dist/lite.esm.mjs"),{latitude:i,longitude:o,DateTimeOriginal:s,CreateDate:a=s}=await r(t.file).catch(()=>{})??{};return{createdDate:a instanceof Date?a:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(o)?{latitude:fa(i,7),longitude:fa(o,7)}:void 0}},DD=t=>{const e=new Image;return new Promise(n=>{const r=()=>{n({dimensions:{width:e.naturalWidth,height:e.naturalHeight}})};e.addEventListener("load",r,{once:!0}),e.src=t})},MD=async(t,e)=>{const n=document.createElement(e);return new Promise(r=>{const i=()=>{const{duration:o}=n;e==="audio"&&r({duration:o});const{videoWidth:s,videoHeight:a}=n;r({dimensions:{width:s,height:a},duration:o})};n.addEventListener("loadedmetadata",i,{once:!0}),n.src=t})},FD=async(t,e)=>e==="image"?DD(t):MD(t,e),zD=async(t,e,n)=>{const{dimensions:r,duration:i}=await FD(e,n),{createdDate:o,coordinates:s}=await RD(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},J$=["avif","gif","jpeg","png","webp"],jD=J$.map(t=>`image/${t}`),Tv=/\b(?:avif|gif|jpe?g|png|webp)$/i,BD=["image/svg+xml"],UD=/\b(?:svg)$/i,xo=[...jD,...BD],X$=["webp"],Kg={},qD=async t=>{if(t in Kg)return Kg[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return Kg[t]=i,i},Z$=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await qD(e)&&X$.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await Ea(`@jsquash/${e}`,"encode.js?module")).default,a=await s(o,{quality:n});return new Blob([a],{type:r})}catch{}}return t.convertToBlob({type:r,quality:n/100})},VD=({width:t,height:e},{width:n=t,height:r=e,fit:i="scale-down"}={})=>{const o={scale:1,width:t,height:e};if(t===r&&e===r)return o;const s=t>e,a=t<r||e<r;let c=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(c=n/t,u=n):(c=r/t,u=r),d=e*c):(n>r?(c=r/e,d=r):(c=n/e,d=n),u=t*c)),{scale:c,width:u,height:d}},Q$=(t,e,n)=>{const{scale:r,width:i,height:o}=VD(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},HD=async({blob:t})=>{const e=URL.createObjectURL(t),n=new Image;return new Promise(r=>{n.addEventListener("load",()=>{r({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(e)},{once:!0}),n.src=e})},KD=async({blob:t})=>{const e=URL.createObjectURL(t),n=document.createElement("video");return new Promise(r=>{n.addEventListener("canplay",()=>{n.pause(),r({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(e)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=e,n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n)})},GD=async t=>t.type.startsWith("video/")?KD({blob:t}):HD({blob:t}),E_=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,c=0;try{s=await createImageBitmap(t),{width:a,height:c}=s}catch{({source:s,naturalWidth:a,naturalHeight:c}=await GD(t))}r??=a,i??=c;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return Q$(u,{width:a,height:c},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),Z$(u,{format:e,quality:n})},WD=async t=>{const e=await t.text();try{const{optimize:n}=await Ea("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},jl=S_("pdfjs-dist"),YD=`${jl}/build/pdf.min.mjs`,JD=`${jl}/build/pdf.worker.min.mjs`,XD={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${jl}/cmaps/`,iccUrl:`${jl}/iccs/`,standardFontDataUrl:`${jl}/standard_fonts/`,wasmUrl:`${jl}/wasm/`};let vf;const ZD=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!vf)try{vf=await import(YD),vf.GlobalWorkerOptions.workerSrc=JD}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),c=a.getContext("2d");try{const d=await(await vf.getDocument({...XD,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=Q$(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:c,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return Z$(a,{format:e,quality:n})},Gg=new Set,Xs=async(t,e=0)=>{const{file:n,blobURL:r,name:i,path:o}=t;if(r)return fetch(r).then(a=>a.blob());let s;if(n)s=n;else{if(Gg.has(o)&&e<=25)return await Lt(200),Xs(t,e+1);Gg.add(o);const a=await ae(wn)?.fetchBlob?.(t);if(!a)throw new Error("Failed to retrieve blob");s=new Blob([a],{type:gs.getType(i)??a.type})}return t.blobURL=URL.createObjectURL(s),Gg.delete(o),s},$_=async t=>(t.blobURL||await Xs(t),t.blobURL);let bf;const Cv=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(bf===void 0){const{databaseName:i}=ae(wn)?.repository??{};bf=i?new Lo(i,"asset-thumbnails"):null}let r=await bf?.get(t.sha);if(!r){if(e)return;const i=await Xs(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await ZD(i,o):await E_(i,o),await bf?.set(t.sha,r)}return URL.createObjectURL(r)},Qu=(t,{pathOnly:e=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{const{publicPath:i,entryRelative:o,hasTemplateTags:s}=t.folder.collectionName===void 0?t.folder:Ep(t.path).find(({collectionName:d})=>d!==void 0)??ae(ul);if(o)return e&&r&&fn(t.path).dirname===fn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:c=!1}={}}=ae($t);let u=s?t.path.replace(H$(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:Vt(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(c&&(u=K$(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},pc=async({value:t,entry:e,collectionName:n,fileName:r,thumbnail:i=!1})=>{if(!t)return;if(/^(?:https?|data|blob):/.test(t))return t;const o=V_({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await Cv(o):await $_(o))??Qu(o)},hh={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},Tp=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=ae(wn)?.repository??{},i=await $_(t),o=Qu(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await zD(t,i,e)),{...s,publicURL:Qu(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await Nv(o):[]}},Mc=nt(!1),$o=nt(),T_=nt([]),di=nt([]),C_=nt([]),eT=t=>ae(T_).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):Qr(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),QD=()=>{try{return ae(ue)("index_file")}catch{return"Index File"}},hi=t=>{if(!rd(t))return;const{index_file:e}=t;if(!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??QD(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},Fo=(t,e)=>{const n=hi(t);return n?e.slug===n.name:!1},eM=t=>{const e=hi(t);return e?!zo(t.name).some(({slug:n})=>n===e.name):!1};sr.extend(v_);sr.extend(b_);sr.extend(__);const tM=/{{(?:year|month|day|hour|minute|second)}}/,ms=t=>eT(Object.values(t.locales)[0].path).map(({collectionName:e})=>Qr(e)).filter(e=>!!e),nM=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:c})=>a==="datetime"&&c===t):e.find(({widget:a})=>a==="datetime"),i=r?n[r.name]:void 0;if(!r||!i)return;const{format:o,picker_utc:s=!1}=r;return Ba({date:(s?sr.utc:sr)(i,o).toDate(),timeZone:s?"UTC":void 0})},tT=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=ae($t)??{},{slug:s,path:a,content:c}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!c||!u)return;const h=Fo(n,t),g=(h?hi(n):void 0)?.fields??f;let m;if(!(tM.test(u)&&(m=nM({dateFieldName:d,fields:g,content:c}),!m)))try{const v=ko(u,{type:"preview_path",collection:n,content:c,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},rM=(t,e)=>`${ae(wn)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,Cp=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),Ap=t=>t.filter(e=>Cp(e)),Fc=(t,e)=>{const n=typeof t=="string"?Qr(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},Cd=t=>t.label||t.name,Zs=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],A_=(t,e)=>ae(di).find(n=>ms(n).some(r=>r.name===t&&Zs(r,n).some(i=>i.name===e))),Gx=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=ae($t);if(t==="_singletons")return Array.isArray(r)?Ap(r).findIndex(o=>o.name===e):-1;const i=Qs({collections:n}).find(({name:o})=>o===t);if(i&&"files"in i)return i.files.findIndex(({name:o})=>o===e)??-1}return-1},P_=["file","image"],Pp=[...P_,"relation","select"],nT=[...Pp,"list","number"],rT=({multiline:t,dotAll:e,source:n})=>t||e||n.includes("[\\s\\S]")||n.includes("[\\S\\s]"),iT=t=>ls(Object.fromEntries(Object.entries(to(t)).filter(([e])=>!e.split(".").pop()?.startsWith("__sc_")))),oT=t=>t.replace(/"/g,"'"),ma=t=>t.replace(/"/g,"""),L_=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,iM=new RegExp(L_,"g"),oM=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,sM=new RegExp(`${L_.source}|${oM.source}`),ph=new Map,sT={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:L_,toBlock:t=>{const{src:e="",alt:n="",title:r=""}=t;return e?`}"`:""})`:""},toPreview:t=>{const{src:e="",alt:n="",title:r=""}=t;return`<img src="${ma(e)}" alt="${ma(n)}" title="${ma(r)}">`}},aM={id:"linked-image",label:"Image",fields:[...sT.fields,{name:"link",label:"Link",required:!1}],pattern:sM,fromBlock:t=>{const{src:e,alt:n,title:r,src2:i,alt2:o,title2:s,link:a}=t.groups??{};return{src:(e||i||"").trim(),alt:(n||o||"").trim(),title:(r||s||"").trim(),link:(a||"").trim()}},toBlock:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=e?`}"`:""})`:"";return o&&i?`[${o}](${i})`:o},toPreview:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=`<img src="${ma(e)}" alt="${ma(n)}" title="${ma(r)}">`;return i?`<a href="${ma(i)}">${o}</a>`:o}},aT=t=>{if(ph.has(t))return ph.get(t);const e={icon:"image",label:ae(ue)("editor_components.image"),fields:[{name:"src",label:ae(ue)("editor_components.src"),widget:"image"},{name:"alt",label:ae(ue)("editor_components.alt"),required:!1},{name:"title",label:ae(ue)("editor_components.title"),required:!1}]};return{image:{...sT,...e},"linked-image":{...aM,...e,fields:[...e.fields,{name:"link",label:ae(ue)("editor_components.link"),required:!1}]}}[t]};var Wg,Wx;function Yx(){if(Wx)return Wg;Wx=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(Te){return Te}),s||(s=function(Te){return Te}),c||(c=function(Te,Fe){for(var Ie=arguments.length,Ae=new Array(Ie>2?Ie-2:0),we=2;we<Ie;we++)Ae[we-2]=arguments[we];return Te.apply(Fe,Ae)}),u||(u=function(Te){for(var Fe=arguments.length,Ie=new Array(Fe>1?Fe-1:0),Ae=1;Ae<Fe;Ae++)Ie[Ae-1]=arguments[Ae];return new Te(...Ie)});const d=x(Array.prototype.forEach),f=x(Array.prototype.lastIndexOf),h=x(Array.prototype.pop),p=x(Array.prototype.push),g=x(Array.prototype.splice),m=x(String.prototype.toLowerCase),v=x(String.prototype.toString),b=x(String.prototype.match),y=x(String.prototype.replace),w=x(String.prototype.indexOf),E=x(String.prototype.trim),k=x(Object.prototype.hasOwnProperty),S=x(RegExp.prototype.test),C=T(TypeError);function x(Ue){return function(Te){Te instanceof RegExp&&(Te.lastIndex=0);for(var Fe=arguments.length,Ie=new Array(Fe>1?Fe-1:0),Ae=1;Ae<Fe;Ae++)Ie[Ae-1]=arguments[Ae];return c(Ue,Te,Ie)}}function T(Ue){return function(){for(var Te=arguments.length,Fe=new Array(Te),Ie=0;Ie<Te;Ie++)Fe[Ie]=arguments[Ie];return u(Ue,Fe)}}function A(Ue,Te){let Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(Ue,null);let Ie=Te.length;for(;Ie--;){let Ae=Te[Ie];if(typeof Ae=="string"){const we=Fe(Ae);we!==Ae&&(n(Te)||(Te[Ie]=we),Ae=we)}Ue[Ae]=!0}return Ue}function P(Ue){for(let Te=0;Te<Ue.length;Te++)k(Ue,Te)||(Ue[Te]=null);return Ue}function L(Ue){const Te=a(null);for(const[Fe,Ie]of t(Ue))k(Ue,Fe)&&(Array.isArray(Ie)?Te[Fe]=P(Ie):Ie&&typeof Ie=="object"&&Ie.constructor===Object?Te[Fe]=L(Ie):Te[Fe]=Ie);return Te}function I(Ue,Te){for(;Ue!==null;){const Ie=i(Ue,Te);if(Ie){if(Ie.get)return x(Ie.get);if(typeof Ie.value=="function")return x(Ie.value)}Ue=r(Ue)}function Fe(){return null}return Fe}const N=o(["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"]),D=o(["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","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=o(["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"]),H=o(["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"]),W=o(["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"]),Y=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),F=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","slot"]),K=o(["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","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"]),J=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),Q=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oe=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),re=s(/<%[\w\W]*|[\w\W]*%>/gm),ee=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),se=s(/^aria-[\-\w]+$/),fe=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=s(/^(?:\w+script|data):/i),pe=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=s(/^html$/i),ge=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ve=Object.freeze({__proto__:null,ARIA_ATTR:se,ATTR_WHITESPACE:pe,CUSTOM_ELEMENT:ge,DATA_ATTR:ne,DOCTYPE_NAME:he,ERB_EXPR:re,IS_ALLOWED_URI:fe,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:oe,TMPLIT_EXPR:ee});const _e={element:1,text:3,progressingInstruction:7,comment:8,document:9},$e=function(){return typeof window>"u"?null:window},Ce=function(Te,Fe){if(typeof Te!="object"||typeof Te.createPolicy!="function")return null;let Ie=null;const Ae="data-tt-policy-suffix";Fe&&Fe.hasAttribute(Ae)&&(Ie=Fe.getAttribute(Ae));const we="dompurify"+(Ie?"#"+Ie:"");try{return Te.createPolicy(we,{createHTML(Pe){return Pe},createScriptURL(Pe){return Pe}})}catch{return console.warn("TrustedTypes policy "+we+" could not be created."),null}},Re=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function He(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e();const Te=ct=>He(ct);if(Te.version="3.2.7",Te.removed=[],!Ue||!Ue.document||Ue.document.nodeType!==_e.document||!Ue.Element)return Te.isSupported=!1,Te;let{document:Fe}=Ue;const Ie=Fe,Ae=Ie.currentScript,{DocumentFragment:we,HTMLTemplateElement:Pe,Node:ye,Element:it,NodeFilter:Qe,NamedNodeMap:Le=Ue.NamedNodeMap||Ue.MozNamedAttrMap,HTMLFormElement:ze,DOMParser:Xe,trustedTypes:st}=Ue,lt=it.prototype,xt=I(lt,"cloneNode"),Gt=I(lt,"remove"),bn=I(lt,"nextSibling"),Xt=I(lt,"childNodes"),Zt=I(lt,"parentNode");if(typeof Pe=="function"){const ct=Fe.createElement("template");ct.content&&ct.content.ownerDocument&&(Fe=ct.content.ownerDocument)}let pt,Ot="";const{implementation:an,createNodeIterator:xn,createDocumentFragment:pn,getElementsByTagName:Kt}=Fe,{importNode:Nt}=Ie;let kt=Re();Te.isSupported=typeof t=="function"&&typeof Zt=="function"&&an&&an.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:un,ERB_EXPR:br,TMPLIT_EXPR:ei,DATA_ATTR:dt,ARIA_ATTR:Qt,IS_SCRIPT_OR_DATA:Cn,ATTR_WHITESPACE:kn,CUSTOM_ELEMENT:Pr}=ve;let{IS_ALLOWED_URI:jn}=ve,Tt=null;const Bn=A({},[...N,...D,...B,...W,...O]);let Ft=null;const $i=A({},[...F,...K,...J,...Q]);let zt=Object.seal(a(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}})),gi=null,gn=null,zr=!0,Lr=!0,lo=!1,ti=!0,Wt=!1,ut=!0,vt=!1,An=!1,Pn=!1,lr=!1,ni=!1,On=!1,cr=!0,co=!1;const iu="user-content-";let ia=!0,nr=!1,ur={},ri=null;const Tw=A({},["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"]);let Cw=null;const Aw=A({},["audio","video","img","source","image","track"]);let dg=null;const Pw=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sf="http://www.w3.org/1998/Math/MathML",af="http://www.w3.org/2000/svg",Bo="http://www.w3.org/1999/xhtml";let xl=Bo,fg=!1,hg=null;const nL=A({},[sf,af,Bo],v);let lf=A({},["mi","mo","mn","ms","mtext"]),cf=A({},["annotation-xml"]);const rL=A({},["title","style","font","a","script"]);let ou=null;const iL=["application/xhtml+xml","text/html"],oL="text/html";let dr=null,kl=null;const sL=Fe.createElement("form"),Lw=function(de){return de instanceof RegExp||de instanceof Function},pg=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kl&&kl===de)){if((!de||typeof de!="object")&&(de={}),de=L(de),ou=iL.indexOf(de.PARSER_MEDIA_TYPE)===-1?oL:de.PARSER_MEDIA_TYPE,dr=ou==="application/xhtml+xml"?v:m,Tt=k(de,"ALLOWED_TAGS")?A({},de.ALLOWED_TAGS,dr):Bn,Ft=k(de,"ALLOWED_ATTR")?A({},de.ALLOWED_ATTR,dr):$i,hg=k(de,"ALLOWED_NAMESPACES")?A({},de.ALLOWED_NAMESPACES,v):nL,dg=k(de,"ADD_URI_SAFE_ATTR")?A(L(Pw),de.ADD_URI_SAFE_ATTR,dr):Pw,Cw=k(de,"ADD_DATA_URI_TAGS")?A(L(Aw),de.ADD_DATA_URI_TAGS,dr):Aw,ri=k(de,"FORBID_CONTENTS")?A({},de.FORBID_CONTENTS,dr):Tw,gi=k(de,"FORBID_TAGS")?A({},de.FORBID_TAGS,dr):L({}),gn=k(de,"FORBID_ATTR")?A({},de.FORBID_ATTR,dr):L({}),ur=k(de,"USE_PROFILES")?de.USE_PROFILES:!1,zr=de.ALLOW_ARIA_ATTR!==!1,Lr=de.ALLOW_DATA_ATTR!==!1,lo=de.ALLOW_UNKNOWN_PROTOCOLS||!1,ti=de.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Wt=de.SAFE_FOR_TEMPLATES||!1,ut=de.SAFE_FOR_XML!==!1,vt=de.WHOLE_DOCUMENT||!1,lr=de.RETURN_DOM||!1,ni=de.RETURN_DOM_FRAGMENT||!1,On=de.RETURN_TRUSTED_TYPE||!1,Pn=de.FORCE_BODY||!1,cr=de.SANITIZE_DOM!==!1,co=de.SANITIZE_NAMED_PROPS||!1,ia=de.KEEP_CONTENT!==!1,nr=de.IN_PLACE||!1,jn=de.ALLOWED_URI_REGEXP||fe,xl=de.NAMESPACE||Bo,lf=de.MATHML_TEXT_INTEGRATION_POINTS||lf,cf=de.HTML_INTEGRATION_POINTS||cf,zt=de.CUSTOM_ELEMENT_HANDLING||{},de.CUSTOM_ELEMENT_HANDLING&&Lw(de.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(zt.tagNameCheck=de.CUSTOM_ELEMENT_HANDLING.tagNameCheck),de.CUSTOM_ELEMENT_HANDLING&&Lw(de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(zt.attributeNameCheck=de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),de.CUSTOM_ELEMENT_HANDLING&&typeof de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(zt.allowCustomizedBuiltInElements=de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Wt&&(Lr=!1),ni&&(lr=!0),ur&&(Tt=A({},O),Ft=[],ur.html===!0&&(A(Tt,N),A(Ft,F)),ur.svg===!0&&(A(Tt,D),A(Ft,K),A(Ft,Q)),ur.svgFilters===!0&&(A(Tt,B),A(Ft,K),A(Ft,Q)),ur.mathMl===!0&&(A(Tt,W),A(Ft,J),A(Ft,Q))),de.ADD_TAGS&&(Tt===Bn&&(Tt=L(Tt)),A(Tt,de.ADD_TAGS,dr)),de.ADD_ATTR&&(Ft===$i&&(Ft=L(Ft)),A(Ft,de.ADD_ATTR,dr)),de.ADD_URI_SAFE_ATTR&&A(dg,de.ADD_URI_SAFE_ATTR,dr),de.FORBID_CONTENTS&&(ri===Tw&&(ri=L(ri)),A(ri,de.FORBID_CONTENTS,dr)),ia&&(Tt["#text"]=!0),vt&&A(Tt,["html","head","body"]),Tt.table&&(A(Tt,["tbody"]),delete gi.tbody),de.TRUSTED_TYPES_POLICY){if(typeof de.TRUSTED_TYPES_POLICY.createHTML!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof de.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pt=de.TRUSTED_TYPES_POLICY,Ot=pt.createHTML("")}else pt===void 0&&(pt=Ce(st,Ae)),pt!==null&&typeof Ot=="string"&&(Ot=pt.createHTML(""));o&&o(de),kl=de}},Nw=A({},[...D,...B,...H]),Iw=A({},[...W,...Y]),aL=function(de){let qe=Zt(de);(!qe||!qe.tagName)&&(qe={namespaceURI:xl,tagName:"template"});const at=m(de.tagName),Sn=m(qe.tagName);return hg[de.namespaceURI]?de.namespaceURI===af?qe.namespaceURI===Bo?at==="svg":qe.namespaceURI===sf?at==="svg"&&(Sn==="annotation-xml"||lf[Sn]):!!Nw[at]:de.namespaceURI===sf?qe.namespaceURI===Bo?at==="math":qe.namespaceURI===af?at==="math"&&cf[Sn]:!!Iw[at]:de.namespaceURI===Bo?qe.namespaceURI===af&&!cf[Sn]||qe.namespaceURI===sf&&!lf[Sn]?!1:!Iw[at]&&(rL[at]||!Nw[at]):!!(ou==="application/xhtml+xml"&&hg[de.namespaceURI]):!1},uo=function(de){p(Te.removed,{element:de});try{Zt(de).removeChild(de)}catch{Gt(de)}},oa=function(de,qe){try{p(Te.removed,{attribute:qe.getAttributeNode(de),from:qe})}catch{p(Te.removed,{attribute:null,from:qe})}if(qe.removeAttribute(de),de==="is")if(lr||ni)try{uo(qe)}catch{}else try{qe.setAttribute(de,"")}catch{}},Ow=function(de){let qe=null,at=null;if(Pn)de="<remove></remove>"+de;else{const Jn=b(de,/^[\r\n\t ]+/);at=Jn&&Jn[0]}ou==="application/xhtml+xml"&&xl===Bo&&(de='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+de+"</body></html>");const Sn=pt?pt.createHTML(de):de;if(xl===Bo)try{qe=new Xe().parseFromString(Sn,ou)}catch{}if(!qe||!qe.documentElement){qe=an.createDocument(xl,"template",null);try{qe.documentElement.innerHTML=fg?Ot:Sn}catch{}}const Nr=qe.body||qe.documentElement;return de&&at&&Nr.insertBefore(Fe.createTextNode(at),Nr.childNodes[0]||null),xl===Bo?Kt.call(qe,vt?"html":"body")[0]:vt?qe.documentElement:Nr},Rw=function(de){return xn.call(de.ownerDocument||de,de,Qe.SHOW_ELEMENT|Qe.SHOW_COMMENT|Qe.SHOW_TEXT|Qe.SHOW_PROCESSING_INSTRUCTION|Qe.SHOW_CDATA_SECTION,null)},gg=function(de){return de instanceof ze&&(typeof de.nodeName!="string"||typeof de.textContent!="string"||typeof de.removeChild!="function"||!(de.attributes instanceof Le)||typeof de.removeAttribute!="function"||typeof de.setAttribute!="function"||typeof de.namespaceURI!="string"||typeof de.insertBefore!="function"||typeof de.hasChildNodes!="function")},Dw=function(de){return typeof ye=="function"&&de instanceof ye};function Uo(ct,de,qe){d(ct,at=>{at.call(Te,de,qe,kl)})}const Mw=function(de){let qe=null;if(Uo(kt.beforeSanitizeElements,de,null),gg(de))return uo(de),!0;const at=dr(de.nodeName);if(Uo(kt.uponSanitizeElement,de,{tagName:at,allowedTags:Tt}),ut&&de.hasChildNodes()&&!Dw(de.firstElementChild)&&S(/<[/\w!]/g,de.innerHTML)&&S(/<[/\w!]/g,de.textContent)||de.nodeType===_e.progressingInstruction||ut&&de.nodeType===_e.comment&&S(/<[/\w]/g,de.data))return uo(de),!0;if(!Tt[at]||gi[at]){if(!gi[at]&&zw(at)&&(zt.tagNameCheck instanceof RegExp&&S(zt.tagNameCheck,at)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(at)))return!1;if(ia&&!ri[at]){const Sn=Zt(de)||de.parentNode,Nr=Xt(de)||de.childNodes;if(Nr&&Sn){const Jn=Nr.length;for(let ii=Jn-1;ii>=0;--ii){const qo=xt(Nr[ii],!0);qo.__removalCount=(de.__removalCount||0)+1,Sn.insertBefore(qo,bn(de))}}}return uo(de),!0}return de instanceof it&&!aL(de)||(at==="noscript"||at==="noembed"||at==="noframes")&&S(/<\/no(script|embed|frames)/i,de.innerHTML)?(uo(de),!0):(Wt&&de.nodeType===_e.text&&(qe=de.textContent,d([un,br,ei],Sn=>{qe=y(qe,Sn," ")}),de.textContent!==qe&&(p(Te.removed,{element:de.cloneNode()}),de.textContent=qe)),Uo(kt.afterSanitizeElements,de,null),!1)},Fw=function(de,qe,at){if(cr&&(qe==="id"||qe==="name")&&(at in Fe||at in sL))return!1;if(!(Lr&&!gn[qe]&&S(dt,qe))){if(!(zr&&S(Qt,qe))){if(!Ft[qe]||gn[qe]){if(!(zw(de)&&(zt.tagNameCheck instanceof RegExp&&S(zt.tagNameCheck,de)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(de))&&(zt.attributeNameCheck instanceof RegExp&&S(zt.attributeNameCheck,qe)||zt.attributeNameCheck instanceof Function&&zt.attributeNameCheck(qe,de))||qe==="is"&&zt.allowCustomizedBuiltInElements&&(zt.tagNameCheck instanceof RegExp&&S(zt.tagNameCheck,at)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(at))))return!1}else if(!dg[qe]){if(!S(jn,y(at,kn,""))){if(!((qe==="src"||qe==="xlink:href"||qe==="href")&&de!=="script"&&w(at,"data:")===0&&Cw[de])){if(!(lo&&!S(Cn,y(at,kn,"")))){if(at)return!1}}}}}}return!0},zw=function(de){return de!=="annotation-xml"&&b(de,Pr)},jw=function(de){Uo(kt.beforeSanitizeAttributes,de,null);const{attributes:qe}=de;if(!qe||gg(de))return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ft,forceKeepAttr:void 0};let Sn=qe.length;for(;Sn--;){const Nr=qe[Sn],{name:Jn,namespaceURI:ii,value:qo}=Nr,Sl=dr(Jn),mg=qo;let _r=Jn==="value"?mg:E(mg);if(at.attrName=Sl,at.attrValue=_r,at.keepAttr=!0,at.forceKeepAttr=void 0,Uo(kt.uponSanitizeAttribute,de,at),_r=at.attrValue,co&&(Sl==="id"||Sl==="name")&&(oa(Jn,de),_r=iu+_r),ut&&S(/((--!?|])>)|<\/(style|title|textarea)/i,_r)){oa(Jn,de);continue}if(Sl==="attributename"&&b(_r,"href")){oa(Jn,de);continue}if(at.forceKeepAttr)continue;if(!at.keepAttr){oa(Jn,de);continue}if(!ti&&S(/\/>/i,_r)){oa(Jn,de);continue}Wt&&d([un,br,ei],Uw=>{_r=y(_r,Uw," ")});const Bw=dr(de.nodeName);if(!Fw(Bw,Sl,_r)){oa(Jn,de);continue}if(pt&&typeof st=="object"&&typeof st.getAttributeType=="function"&&!ii)switch(st.getAttributeType(Bw,Sl)){case"TrustedHTML":{_r=pt.createHTML(_r);break}case"TrustedScriptURL":{_r=pt.createScriptURL(_r);break}}if(_r!==mg)try{ii?de.setAttributeNS(ii,Jn,_r):de.setAttribute(Jn,_r),gg(de)?uo(de):h(Te.removed)}catch{oa(Jn,de)}}Uo(kt.afterSanitizeAttributes,de,null)},lL=function ct(de){let qe=null;const at=Rw(de);for(Uo(kt.beforeSanitizeShadowDOM,de,null);qe=at.nextNode();)Uo(kt.uponSanitizeShadowNode,qe,null),Mw(qe),jw(qe),qe.content instanceof we&&ct(qe.content);Uo(kt.afterSanitizeShadowDOM,de,null)};return Te.sanitize=function(ct){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=null,at=null,Sn=null,Nr=null;if(fg=!ct,fg&&(ct="<!-->"),typeof ct!="string"&&!Dw(ct))if(typeof ct.toString=="function"){if(ct=ct.toString(),typeof ct!="string")throw C("dirty is not a string, aborting")}else throw C("toString is not a function");if(!Te.isSupported)return ct;if(An||pg(de),Te.removed=[],typeof ct=="string"&&(nr=!1),nr){if(ct.nodeName){const qo=dr(ct.nodeName);if(!Tt[qo]||gi[qo])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(ct instanceof ye)qe=Ow("<!---->"),at=qe.ownerDocument.importNode(ct,!0),at.nodeType===_e.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?qe=at:qe.appendChild(at);else{if(!lr&&!Wt&&!vt&&ct.indexOf("<")===-1)return pt&&On?pt.createHTML(ct):ct;if(qe=Ow(ct),!qe)return lr?null:On?Ot:""}qe&&Pn&&uo(qe.firstChild);const Jn=Rw(nr?ct:qe);for(;Sn=Jn.nextNode();)Mw(Sn),jw(Sn),Sn.content instanceof we&&lL(Sn.content);if(nr)return ct;if(lr){if(ni)for(Nr=pn.call(qe.ownerDocument);qe.firstChild;)Nr.appendChild(qe.firstChild);else Nr=qe;return(Ft.shadowroot||Ft.shadowrootmode)&&(Nr=Nt.call(Ie,Nr,!0)),Nr}let ii=vt?qe.outerHTML:qe.innerHTML;return vt&&Tt["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&S(he,qe.ownerDocument.doctype.name)&&(ii="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
|
|
137
|
+
`,n)+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;const n=mf(e),r=Cl(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const n=mf(e),r=Cl(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(r=>r.type==="newline"||r.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;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function HR(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new qR||null,prettyErrors:e}}function KR(t,e={}){const{lineCounter:n,prettyErrors:r}=HR(e),i=new VR(n?.addNewLine),o=new FR(e);let s=null;for(const a of o.compose(i.parse(t),!0,t.length))if(!s)s=a;else if(s.options.logLevel!=="silent"){s.errors.push(new Eu(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(s.errors.forEach(Ax(t,n)),s.warnings.forEach(Ax(t,n))),s}function I$(t,e,n){let r;typeof e=="function"?r=e:n===void 0&&e&&typeof e=="object"&&(n=e);const i=KR(t,n);if(!i)return null;if(i.warnings.forEach(o=>o$(i.options.logLevel,o)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function g_(t,e,n){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){const i=Math.round(n);n=i<1?void 0:i>8?{indent:8}:{indent:i}}if(t===void 0){const{keepUndefined:i}=n??e??{};if(!i)return}return xd(t)&&!r?t.toString(n):new $d(t,r,n).toString(n)}const Ys=nt([]),ul=sn([Ys],([t],e)=>{e(t.find(({collectionName:n,internalPath:r})=>n===void 0&&r!==void 0))}),Hi=nt(),Sp=sn([Hi,ul],([t,e])=>t?.internalPath!==void 0?t:e),eo=({collectionName:t,fileName:e,keyPath:n})=>ae(Ys).find(r=>r.collectionName===t&&r.fileName===e&&r.keyPath===n),Ep=(t,{matchSubFolders:e=!0}={})=>{const{filename:n}=fn(t);return n.startsWith("+")?[]:ae(Ys).filter(({internalPath:r,entryRelative:i})=>r===void 0?!1:i?t.startsWith(`${r}/`):new RegExp(`^${r.replace(/{{.+?}}/g,".+?")}${r&&e?"\\b":"$"}`).test(fn(t).dirname??"")).sort((r,i)=>(i.internalPath??"").localeCompare(r.internalPath??"")??0)},m_=t=>!!t&&!t.entryRelative&&!t.hasTemplateTags;class Lo{#t;#n="";#r="";#a={};#l=[];constructor(e,n,{keyPath:r,autoIncrement:i,indexes:o=[]}={}){this.#t=void 0,this.#n=e,this.#r=n,this.#a={keyPath:r,autoIncrement:i},this.#l=o}async#o(e){return new Promise(n=>{const r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{const i=r.result,o=this.#r,s=i.objectStoreNames.contains(o)?i.transaction(o,"readwrite").objectStore(o):i.createObjectStore(o,this.#a);this.#l.forEach(({name:a,keyPath:c,options:u})=>{s.indexNames.contains(a)||s.createIndex(a,c,u)})},r.onsuccess=()=>{n(r.result)}})}async#s(){let e=!1,n=await this.#o();const{version:r,objectStoreNames:i}=n,o=this.#r;if(i.contains(o)){const s=n.transaction(o).objectStore(o);e=this.#l.some(({name:a})=>!s.indexNames.contains(a))}else e=!0;return e&&(n.close(),n=await this.#o(r+1)),n.onversionchange=()=>{n.close(),this.#t=void 0},n}async#e(e){this.#t??=await this.#s();const n=this.#t,r=this.#r,i=n.transaction(r,"readwrite"),o=e(i.objectStore(r));return o?new Promise(s=>{o.onsuccess=()=>{s(o.result)}}):new Promise(s=>{i.oncomplete=()=>{s(void 0)}})}async set(e,n){return this.#e(r=>r.put(n,e))}async put(e){return this.#e(n=>n.put(e))}async saveEntries(e){return this.#e(n=>{e.forEach(([r,i])=>{n.put(i,r)})})}async get(e){return this.#e(n=>n.get(e))}async keys(){return this.#e(e=>e.getAllKeys())}async values(){return this.#e(e=>e.getAll())}async entries(){const[e,n]=await Promise.all([this.keys(),this.values()]);return e.map((r,i)=>[r,n[i]])}async#i({callback:e=void 0,index:n=void 0,query:r=void 0,direction:i="next",multiple:o=!1}){return new Promise(s=>{this.#e(a=>{const c=(n?a.index(n):a).openCursor(r,i),u=[];c.onsuccess=()=>{const d=c.result;if(d){const{value:f}=d;typeof e!="function"||e(f)?o?(u.push(f),d.continue()):s(f):d.continue()}else s(o?u:void 0)}})})}async find(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r})}async findLast(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,direction:"prev"})}async filter(e,{index:n,query:r}={}){return this.#i({callback:e,index:n,query:r,multiple:!0})}async delete(e){await this.#e(n=>n.delete(e))}async deleteEntries(e){await this.#e(n=>{e.forEach(r=>{n.delete(r)})})}async clear(){await this.#e(e=>e.clear())}}class li{static async set(e,n){globalThis.localStorage.setItem(e,JSON.stringify(n))}static async get(e){const n=globalThis.localStorage.getItem(e);return n?JSON.parse(n):null}static async delete(e){globalThis.localStorage.removeItem(e)}static async clear(){globalThis.localStorage.clear()}static async keys(){return Object.keys(globalThis.localStorage)}static async values(){return Object.values(globalThis.localStorage).map(e=>JSON.parse(e))}static async entries(){return Object.entries(globalThis.localStorage).map(([e,n])=>[e,JSON.parse(n)])}}const O$=t=>Array.isArray(t)&&t.every(e=>Yt(e)),Zu=t=>[...new Set(t)];var Bg,Rx;function GR(){return Rx||(Rx=1,Bg=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var s=o[i];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}),Bg}var WR=GR();const ln=hs(WR);function R$(t){return t&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function D$(t){return t}function to(t,e){e=e||{};const n=e.delimiter||".",r=e.maxDepth,i=e.transformKey||D$,o={};function s(a,c,u){u=u||1,Object.keys(a).forEach(function(d){const f=a[d],h=e.safe&&Array.isArray(f),p=Object.prototype.toString.call(f),g=R$(f),m=p==="[object Object]"||p==="[object Array]",v=c?c+n+i(d):i(d);if(!h&&!g&&m&&Object.keys(f).length&&(!e.maxDepth||u<r))return s(f,v,u+1);o[v]=f})}return s(t),o}function ls(t,e){e=e||{};const n=e.delimiter||".",r=e.overwrite||!1,i=e.transformKey||D$,o={};if(R$(t)||Object.prototype.toString.call(t)!=="[object Object]")return t;function a(d){const f=Number(d);return isNaN(f)||d.indexOf(".")!==-1||e.object?d:f}function c(d,f,h){return Object.keys(h).reduce(function(p,g){return p[d+n+g]=h[g],p},f)}function u(d){const f=Object.prototype.toString.call(d),h=f==="[object Array]",p=f==="[object Object]";if(d){if(h)return!d.length;if(p)return!Object.keys(d).length}else return!0}return t=Object.keys(t).reduce(function(d,f){const h=Object.prototype.toString.call(t[f]);return!(h==="[object Object]"||h==="[object Array]")||u(t[f])?(d[f]=t[f],d):c(f,d,to(t[f],e))},{}),Object.keys(t).forEach(function(d){const f=d.split(n).map(i);let h=a(f.shift()),p=a(f[0]),g=o;for(;p!==void 0;){if(h==="__proto__")return;const m=Object.prototype.toString.call(g[h]),v=m==="[object Object]"||m==="[object Array]";if(!r&&!v&&typeof g[h]<"u")return;(r&&!v||!r&&g[h]==null)&&(g[h]=typeof p=="number"&&!e.object?[]:{}),g=g[h],f.length>0&&(h=a(f.shift()),p=a(f[0]))}g[h]=ls(t[d],e)}),o}const Ba=({date:t=new Date,timeZone:e=void 0}={})=>{const 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:e}).formatToParts(t).filter(({type:r})=>r in n).map(({type:r,value:i})=>[r,r==="hour"&&i==="24"?"00":i]))},YR=[["ß","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"],["−","-"],["⁓","-"]],Dx=[["æ","ae"],["Æ","Ae"],["ø","oe"],["Ø","Oe"],["å","aa"],["Å","Aa"]],Mx={sv:[["ä","a"],["Ä","A"],["ö","o"],["Ö","O"],["å","a"],["Å","A"]],da:Dx,nb:Dx,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"]]},JR=(t,e)=>{for(const[n,r]of e)t=t.replaceAll(n,r);return t},XR=t=>{if(!t)return[];const e=t.toLowerCase().replace(/^no(-|$)/,"nb$1");return Mx[e]||Mx[e.split("-")[0]]||[]};function ZR(t,e){if(typeof t!="string")throw new TypeError(`Expected a string, got \`${typeof t}\``);e={customReplacements:[],...e};const n=XR(e.locale),r=new Map([...YR,...n,...e.customReplacements]);return t=t.normalize(),t=JR(t,r),t=t.normalize("NFD").replaceAll(/\p{Diacritic}/gu,"").normalize(),t=t.replaceAll(/\p{Dash_Punctuation}/gu,"-"),t}const M$=(t,{fallback:e=!0}={})=>{const{slug:{encoding:n="unicode",clean_accents:r=!1,sanitize_replacement:i="-",trim:o=!0}={}}=ae($t)??{};let s=t;if(r&&(s=ZR(s).normalize("NFD").replace(/\p{Diacritic}/gu,"")),n==="ascii"?s=s.replaceAll(/[^\w-~]/g," "):s=s.replaceAll(/[\p{Z}\p{C}!"#$&'()*+,/:;<=>?@[\]^`{|}]/gu," "),s=s.toLocaleLowerCase().trim().replaceAll(/\s+/g,i),i){const a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),c=new RegExp(`${a}+`,"g");s=s.replace(c,i),o&&(s=s.replace(new RegExp(`^${a}+|${a}+$`,"g"),""))}return!s&&e?ai("short"):s};var Vf={exports:{}},QR=Vf.exports,Fx;function eD(){return Fx||(Fx=1,(function(t,e){(function(n,r){t.exports=r()})(QR,(function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",c="hour",u="day",d="week",f="month",h="quarter",p="year",g="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var D=["th","st","nd","rd"],B=N%100;return"["+N+(D[(B-20)%10]||D[B]||D[0])+"]"}},w=function(N,D,B){var H=String(N);return!H||H.length>=D?N:""+Array(D+1-H.length).join(B)+N},E={s:w,z:function(N){var D=-N.utcOffset(),B=Math.abs(D),H=Math.floor(B/60),W=B%60;return(D<=0?"+":"-")+w(H,2,"0")+":"+w(W,2,"0")},m:function N(D,B){if(D.date()<B.date())return-N(B,D);var H=12*(B.year()-D.year())+(B.month()-D.month()),W=D.clone().add(H,f),Y=B-W<0,O=D.clone().add(H+(Y?-1:1),f);return+(-(H+(B-W)/(Y?W-O:O-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:p,w:d,d:u,D:g,h:c,m:a,s,ms:o,Q:h}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},k="en",S={};S[k]=y;var C="$isDayjsObject",x=function(N){return N instanceof L||!(!N||!N[C])},T=function N(D,B,H){var W;if(!D)return k;if(typeof D=="string"){var Y=D.toLowerCase();S[Y]&&(W=Y),B&&(S[Y]=B,W=Y);var O=D.split("-");if(!W&&O.length>1)return N(O[0])}else{var F=D.name;S[F]=D,W=F}return!H&&W&&(k=W),W||!H&&k},A=function(N,D){if(x(N))return N.clone();var B=typeof D=="object"?D:{};return B.date=N,B.args=arguments,new L(B)},P=E;P.l=T,P.i=x,P.w=function(N,D){return A(N,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var L=(function(){function N(B){this.$L=T(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[C]=!0}var D=N.prototype;return D.parse=function(B){this.$d=(function(H){var W=H.date,Y=H.utc;if(W===null)return new Date(NaN);if(P.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var O=W.match(v);if(O){var F=O[2]-1||0,K=(O[7]||"0").substring(0,3);return Y?new Date(Date.UTC(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)):new Date(O[1],F,O[3]||1,O[4]||0,O[5]||0,O[6]||0,K)}}return new Date(W)})(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return P},D.isValid=function(){return this.$d.toString()!==m},D.isSame=function(B,H){var W=A(B);return this.startOf(H)<=W&&W<=this.endOf(H)},D.isAfter=function(B,H){return A(B)<this.startOf(H)},D.isBefore=function(B,H){return this.endOf(H)<A(B)},D.$g=function(B,H,W){return P.u(B)?this[H]:this.set(W,B)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(B,H){var W=this,Y=!!P.u(H)||H,O=P.p(B),F=function(se,fe){var be=P.w(W.$u?Date.UTC(W.$y,fe,se):new Date(W.$y,fe,se),W);return Y?be:be.endOf(u)},K=function(se,fe){return P.w(W.toDate()[se].apply(W.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(fe)),W)},J=this.$W,Q=this.$M,oe=this.$D,re="set"+(this.$u?"UTC":"");switch(O){case p:return Y?F(1,0):F(31,11);case f:return Y?F(1,Q):F(0,Q+1);case d:var ee=this.$locale().weekStart||0,ne=(J<ee?J+7:J)-ee;return F(Y?oe-ne:oe+(6-ne),Q);case u:case g:return K(re+"Hours",0);case c:return K(re+"Minutes",1);case a:return K(re+"Seconds",2);case s:return K(re+"Milliseconds",3);default:return this.clone()}},D.endOf=function(B){return this.startOf(B,!1)},D.$set=function(B,H){var W,Y=P.p(B),O="set"+(this.$u?"UTC":""),F=(W={},W[u]=O+"Date",W[g]=O+"Date",W[f]=O+"Month",W[p]=O+"FullYear",W[c]=O+"Hours",W[a]=O+"Minutes",W[s]=O+"Seconds",W[o]=O+"Milliseconds",W)[Y],K=Y===u?this.$D+(H-this.$W):H;if(Y===f||Y===p){var J=this.clone().set(g,1);J.$d[F](K),J.init(),this.$d=J.set(g,Math.min(this.$D,J.daysInMonth())).$d}else F&&this.$d[F](K);return this.init(),this},D.set=function(B,H){return this.clone().$set(B,H)},D.get=function(B){return this[P.p(B)]()},D.add=function(B,H){var W,Y=this;B=Number(B);var O=P.p(H),F=function(Q){var oe=A(Y);return P.w(oe.date(oe.date()+Math.round(Q*B)),Y)};if(O===f)return this.set(f,this.$M+B);if(O===p)return this.set(p,this.$y+B);if(O===u)return F(1);if(O===d)return F(7);var K=(W={},W[a]=r,W[c]=i,W[s]=n,W)[O]||1,J=this.$d.getTime()+B*K;return P.w(J,this)},D.subtract=function(B,H){return this.add(-1*B,H)},D.format=function(B){var H=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var Y=B||"YYYY-MM-DDTHH:mm:ssZ",O=P.z(this),F=this.$H,K=this.$m,J=this.$M,Q=W.weekdays,oe=W.months,re=W.meridiem,ee=function(fe,be,pe,he){return fe&&(fe[be]||fe(H,Y))||pe[be].slice(0,he)},ne=function(fe){return P.s(F%12||12,fe,"0")},se=re||function(fe,be,pe){var he=fe<12?"AM":"PM";return pe?he.toLowerCase():he};return Y.replace(b,(function(fe,be){return be||(function(pe){switch(pe){case"YY":return String(H.$y).slice(-2);case"YYYY":return P.s(H.$y,4,"0");case"M":return J+1;case"MM":return P.s(J+1,2,"0");case"MMM":return ee(W.monthsShort,J,oe,3);case"MMMM":return ee(oe,J);case"D":return H.$D;case"DD":return P.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return ee(W.weekdaysMin,H.$W,Q,2);case"ddd":return ee(W.weekdaysShort,H.$W,Q,3);case"dddd":return Q[H.$W];case"H":return String(F);case"HH":return P.s(F,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return se(F,K,!0);case"A":return se(F,K,!1);case"m":return String(K);case"mm":return P.s(K,2,"0");case"s":return String(H.$s);case"ss":return P.s(H.$s,2,"0");case"SSS":return P.s(H.$ms,3,"0");case"Z":return O}return null})(fe)||O.replace(":","")}))},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(B,H,W){var Y,O=this,F=P.p(H),K=A(B),J=(K.utcOffset()-this.utcOffset())*r,Q=this-K,oe=function(){return P.m(O,K)};switch(F){case p:Y=oe()/12;break;case f:Y=oe();break;case h:Y=oe()/3;break;case d:Y=(Q-J)/6048e5;break;case u:Y=(Q-J)/864e5;break;case c:Y=Q/i;break;case a:Y=Q/r;break;case s:Y=Q/n;break;default:Y=Q}return W?Y:P.a(Y)},D.daysInMonth=function(){return this.endOf(f).$D},D.$locale=function(){return S[this.$L]},D.locale=function(B,H){if(!B)return this.$L;var W=this.clone(),Y=T(B,H,!0);return Y&&(W.$L=Y),W},D.clone=function(){return P.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},N})(),I=L.prototype;return A.prototype=I,[["$ms",o],["$s",s],["$m",a],["$H",c],["$W",u],["$M",f],["$y",p],["$D",g]].forEach((function(N){I[N[1]]=function(D){return this.$g(D,N[0],N[1])}})),A.extend=function(N,D){return N.$i||(N(D,L,A),N.$i=!0),A},A.locale=T,A.isDayjs=x,A.unix=function(N){return A(1e3*N)},A.en=S[k],A.Ls=S,A.p={},A}))})(Vf)),Vf.exports}var tD=eD();const sr=hs(tD);var Hf={exports:{}},nD=Hf.exports,zx;function rD(){return zx||(zx=1,(function(t,e){(function(n,r){t.exports=r()})(nD,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,c={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=(function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),w=60*y[1]+(+y[2]||0);return w===0?0:y[0]==="+"?-w:w})(v)}],h=function(v){var b=c[v];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(v,b){var y,w=c.meridiem;if(w){for(var E=1;E<=24;E+=1)if(v.indexOf(w(E,0,b))>-1){y=E>12;break}}else y=v===(b?"pm":"PM");return y},g={A:[a,function(v){this.afternoon=p(v,!1)}],a:[a,function(v){this.afternoon=p(v,!0)}],Q:[i,function(v){this.month=3*(v-1)+1}],S:[i,function(v){this.milliseconds=100*+v}],SS:[o,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[o,d("day")],Do:[a,function(v){var b=c.ordinal,y=v.match(/\d+/);if(this.day=y[0],b)for(var w=1;w<=31;w+=1)b(w).replace(/\[|\]/g,"")===v&&(this.day=w)}],w:[s,d("week")],ww:[o,d("week")],M:[s,d("month")],MM:[o,d("month")],MMM:[a,function(v){var b=h("months"),y=(h("monthsShort")||b.map((function(w){return w.slice(0,3)}))).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(v){var b=h("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(v){var b,y;b=v,y=c&&c.formats;for(var w=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(A,P,L){var I=L&&L.toUpperCase();return P||y[L]||n[L]||y[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(N,D,B){return D||B.slice(1)}))}))).match(r),E=w.length,k=0;k<E;k+=1){var S=w[k],C=g[S],x=C&&C[0],T=C&&C[1];w[k]=T?{regex:x,parser:T}:S.replace(/^\[|\]$/g,"")}return function(A){for(var P={},L=0,I=0;L<E;L+=1){var N=w[L];if(typeof N=="string")I+=N.length;else{var D=N.regex,B=N.parser,H=A.slice(I),W=D.exec(H)[0];B.call(P,W),A=A.replace(W,"")}}return(function(Y){var O=Y.afternoon;if(O!==void 0){var F=Y.hours;O?F<12&&(Y.hours+=12):F===12&&(Y.hours=0),delete Y.afternoon}})(P),P}}return function(v,b,y){y.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var w=b.prototype,E=w.parse;w.parse=function(k){var S=k.date,C=k.utc,x=k.args;this.$u=C;var T=x[1];if(typeof T=="string"){var A=x[2]===!0,P=x[3]===!0,L=A||P,I=x[2];P&&(I=x[2]),c=this.$locale(),!A&&I&&(c=y.Ls[I]),this.$d=(function(H,W,Y,O){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*H);var F=m(W)(H),K=F.year,J=F.month,Q=F.day,oe=F.hours,re=F.minutes,ee=F.seconds,ne=F.milliseconds,se=F.zone,fe=F.week,be=new Date,pe=Q||(K||J?1:be.getDate()),he=K||be.getFullYear(),ge=0;K&&!J||(ge=J>0?J-1:be.getMonth());var ve,_e=oe||0,$e=re||0,Ce=ee||0,Re=ne||0;return se?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re+60*se.offset*1e3)):Y?new Date(Date.UTC(he,ge,pe,_e,$e,Ce,Re)):(ve=new Date(he,ge,pe,_e,$e,Ce,Re),fe&&(ve=O(ve).week(fe).toDate()),ve)}catch{return new Date("")}})(S,T,C,y),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),L&&S!=this.format(T)&&(this.$d=new Date("")),c={}}else if(T instanceof Array)for(var N=T.length,D=1;D<=N;D+=1){x[1]=T[D-1];var B=y.apply(this,x);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}D===N&&(this.$d=new Date(""))}else E.call(this,k)}}}))})(Hf)),Hf.exports}var iD=rD();const v_=hs(iD);var Kf={exports:{}},oD=Kf.exports,jx;function sD(){return jx||(jx=1,(function(t,e){(function(n,r){t.exports=r()})(oD,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,a=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=(function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(p,g,m){var v=m&&m.toUpperCase();return g||h[m]||n[m]||h[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,y,w){return y||w.slice(1)}))}))})(c,u===void 0?{}:u);return a.call(this,d)}}}))})(Kf)),Kf.exports}var aD=sD();const b_=hs(aD);var Gf={exports:{}},lD=Gf.exports,Bx;function cD(){return Bx||(Bx=1,(function(t,e){(function(n,r){t.exports=r()})(lD,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,a){var c=s.prototype;a.utc=function(m){var v={date:m,utc:!0,args:arguments};return new s(v)},c.utc=function(m){var v=a(this.toDate(),{locale:this.$L,utc:!0});return m?v.add(this.utcOffset(),n):v},c.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(m){m.utc&&(this.$u=!0),this.$utils().u(m.$offset)||(this.$offset=m.$offset),u.call(this,m)};var d=c.init;c.init=function(){if(this.$u){var m=this.$d;this.$y=m.getUTCFullYear(),this.$M=m.getUTCMonth(),this.$D=m.getUTCDate(),this.$W=m.getUTCDay(),this.$H=m.getUTCHours(),this.$m=m.getUTCMinutes(),this.$s=m.getUTCSeconds(),this.$ms=m.getUTCMilliseconds()}else d.call(this)};var f=c.utcOffset;c.utcOffset=function(m,v){var b=this.$utils().u;if(b(m))return this.$u?0:b(this.$offset)?f.call(this):this.$offset;if(typeof m=="string"&&(m=(function(k){k===void 0&&(k="");var S=k.match(r);if(!S)return null;var C=(""+S[0]).match(i)||["-",0,0],x=C[0],T=60*+C[1]+ +C[2];return T===0?0:x==="+"?T:-T})(m),m===null))return this;var y=Math.abs(m)<=16?60*m:m;if(y===0)return this.utc(v);var w=this.clone();if(v)return w.$offset=y,w.$u=!1,w;var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(w=this.local().add(y+E,n)).$offset=y,w.$x.$localOffset=E,w};var h=c.format;c.format=function(m){var v=m||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,v)},c.valueOf=function(){var m=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*m},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var p=c.toDate;c.toDate=function(m){return m==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var g=c.diff;c.diff=function(m,v,b){if(m&&this.$u===m.$u)return g.call(this,m,v,b);var y=this.local(),w=a(m).local();return g.call(y,w,v,b)}}}))})(Gf)),Gf.exports}var uD=cD();const __=hs(uD),Tr=t=>{let e;if(t!=="_default")try{[e]=Intl.getCanonicalLocales(t)}catch{}return e},Fi=(t,{native:e=!1}={})=>{const n=Tr(t);if(!n)return t;const r=e?n:Tr(ae(Ut)??"en"),i=new Intl.DisplayNames(r,{type:"language"});try{return i.of(n)??t}catch(o){return console.error(o),t}},dc=(t,e={})=>new Intl.ListFormat(Tr(t),{style:"narrow",type:"conjunction",...e}),y_=({_i18n:t,locale:e,path:n})=>{const{defaultLocale:r,omitDefaultLocaleFromFileName:i}=t;return i&&e===r&&(n=n.replace(/\.{{locale}}\.(\w+)$/,".$1")),n.replaceAll("{{locale}}",e)},dD=/^(?:\d{4}-[01]\d-[0-3]\d)?(?:T?[0-2]\d:[0-5]\d)?(?::[0-5]\d)?(?:\.\d+)?(?:[+-][0-2]\d:[0-5]\d|Z)?$/,fD=/^\d{4}-[01]\d-[0-3]\d$/,hD=/T00:00(?::00)?(?:\.000)?Z$/,kv={year:"numeric",month:"short",day:"numeric"},Sv={hour:"numeric",minute:"numeric",hour12:!0},pD={...kv,...Sv};sr.extend(v_);sr.extend(b_);sr.extend(__);const Js=t=>{const{format:e,date_format:n=void 0,time_format:r=void 0,picker_utc:i=!1}=t;return{format:e||[typeof n=="string"?n:"",typeof r=="string"?r:""].join(" ").trim()||void 0,dateOnly:r===!1,timeOnly:n===!1,utc:i}},fc=(t,e)=>{const{format:n,timeOnly:r,utc:i}=Js(e);if(t)try{return n?(i?sr.utc:sr)(t,n).toDate():r?new Date(`${new Date().toJSON().split("T")[0]}T${t}`):new Date(t)}catch(o){console.error(o);return}},F$=t=>{const{dateOnly:e,timeOnly:n,utc:r}=Js(t),{year:i,month:o,day:s,hour:a,minute:c}=Ba({timeZone:r?"UTC":void 0}),u=`${i}-${o}-${s}`,d=`${a}:${c}`;return e?u:n?d:r?`${u}T${d}:00.000Z`:`${u}T${d}`},z$=(t,e,n)=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Js(n),a=i?"YYYY-MM-DD":o?"HH:mm":"YYYY-MM-DDTHH:mm",c=`:00${e?.endsWith(".000")?".000":""}`;if(t==="")return"";if(t)try{if(r){const u=(s?sr.utc:sr)(t,a).format(r);return r.includes("Z")&&u.endsWith("+00:00")?u.replace("+00:00","Z"):u}return i?t:s?`${t}:00.000Z`:`${t}${c}`}catch(u){console.error(u);return}},gD=(t,e)=>{const{dateOnly:n,timeOnly:r,utc:i}=Js(e);if(!t)return"";const o=n?t?.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?t?.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(o)return o;try{const s=t?fc(t,e):new Date;if(t&&!s||t&&s&&Number.isNaN(s.getTime()))return"";const{year:a,month:c,day:u,hour:d,minute:f}=Ba({date:s,timeZone:i?"UTC":void 0}),h=`${a}-${c}-${u}`,p=`${d}:${f}`;return n?h:r?p:`${h}T${p}`}catch(s){return console.error(s),""}},j$=({locale:t,fieldConfig:e,currentValue:n})=>{const{format:r,dateOnly:i,timeOnly:o,utc:s}=Js(e);if(typeof n!="string"||!n.trim())return"";if(r)try{return(s?sr.utc:sr)(n,r).format(r)}catch{}const a=fc(n,e),c=Tr(t);return!a||Number.isNaN(a.getTime())?"":o?a.toLocaleTimeString(c,Sv):i?a.toLocaleDateString(c,{...kv,timeZone:s||fD.test(n)||hD.test(n)?"UTC":void 0}):a.toLocaleString(c,{...kv,...Sv,timeZone:s?"UTC":void 0,timeZoneName:s?void 0:"short"})};sr.extend(v_);sr.extend(b_);sr.extend(__);const w_=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,B$=/^default\('(?<defaultValue>.+?)'\)$/,U$=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,mD=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,vD=t=>String(t).toUpperCase(),bD=t=>String(t).toLowerCase(),_D=(t,{format:e,timeZone:n},r)=>{const i=String(t),{dateOnly:o,utc:s}=Js(r),c=(n==="utc"||s||o&&!!i.match(/^\d{4}-[01]\d-[0-3]\d$/)||o&&!!i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?sr.utc:sr)(i);return c.isValid()?c.format(e):""},yD=(t,{defaultValue:e})=>t?String(t):e,wD=(t,{truthyValue:e,falsyValue:n})=>t?e:n,xD=(t,{max:e,ellipsis:n="…"})=>SE(String(t),Number(e),{ellipsis:n}),kD=({fieldConfig:t,value:e,transformation:n})=>{if(n==="upper")return vD(e);if(n==="lower")return bD(e);const r=n.match(w_);if(r?.groups)return _D(e,r.groups,t??{});const i=n.match(B$);if(i?.groups)return yD(e,i.groups);const o=n.match(U$);if(o?.groups)return wD(e,o.groups);const s=n.match(mD);return s?.groups?xD(e,s.groups):String(e)},x_=({fieldConfig:t,value:e,transformations:n})=>(n.forEach(r=>{e=kD({fieldConfig:t,value:e,transformation:r})}),e),Lt=(t=0)=>new Promise(e=>{globalThis.setTimeout(()=>{e(void 0)},t)}),q$={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(q$);const V$={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(V$);var Ti=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Il,$u,ca;class SD{constructor(...e){Il.set(this,new Map),$u.set(this,new Map),ca.set(this,new Map);for(const n of e)this.define(n)}define(e,n=!1){for(let[r,i]of Object.entries(e)){r=r.toLowerCase(),i=i.map(a=>a.toLowerCase()),Ti(this,ca,"f").has(r)||Ti(this,ca,"f").set(r,new Set);const o=Ti(this,ca,"f").get(r);let s=!0;for(let a of i){const c=a.startsWith("*");if(a=c?a.slice(1):a,o?.add(a),s&&Ti(this,$u,"f").set(r,a),s=!1,c)continue;const u=Ti(this,Il,"f").get(a);if(u&&u!=r&&!n)throw new Error(`"${r} -> ${a}" conflicts with "${u} -> ${a}". Pass \`force=true\` to override this definition.`);Ti(this,Il,"f").set(a,r)}}return this}getType(e){if(typeof e!="string")return null;const n=e.replace(/^.*[/\\]/s,"").toLowerCase(),r=n.replace(/^.*\./s,"").toLowerCase(),i=n.length<e.length;return!(r.length<n.length-1)&&i?null:Ti(this,Il,"f").get(r)??null}getExtension(e){return typeof e!="string"?null:(e=e?.split?.(";")[0],(e&&Ti(this,$u,"f").get(e.trim().toLowerCase()))??null)}getAllExtensions(e){return typeof e!="string"?null:Ti(this,ca,"f").get(e.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const e of Ti(this,ca,"f").values())Object.freeze(e);return this}_getTestState(){return{types:Ti(this,Il,"f"),extensions:Ti(this,$u,"f")}}}Il=new WeakMap,$u=new WeakMap,ca=new WeakMap;const gs=new SD(V$,q$)._freeze();var Ug,Ux;function ED(){if(Ux)return Ug;Ux=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return Ug=function(r,i,o){if(typeof i!="string")throw new Error("Input must be string");for(var s=i.length,a=0,c,u,d=0;d<s;d+=1){if(c=i.charCodeAt(d),u=i[d],t(c)&&e(i.charCodeAt(d+1))&&(d+=1,u+=i[d]),a+=r(u),a===o)return i.slice(0,d+1);if(a>o)return i.slice(0,d-u.length+1)}return i},Ug}var qg,qx;function $D(){if(qx)return qg;qx=1;function t(n){return n>=55296&&n<=56319}function e(n){return n>=56320&&n<=57343}return qg=function(r){if(typeof r!="string")throw new Error("Input must be string");for(var i=r.length,o=0,s=null,a=null,c=0;c<i;c++)s=r.charCodeAt(c),e(s)?a!=null&&t(a)?o+=1:o+=3:s<=127?o+=1:s>=128&&s<=2047?o+=2:s>=2048&&s<=65535&&(o+=3),a=s;return o},qg}var Vg,Vx;function TD(){if(Vx)return Vg;Vx=1;var t=ED(),e=$D();return Vg=t.bind(null,e),Vg}var Hg,Hx;function CD(){if(Hx)return Hg;Hx=1;var t=TD(),e=/[\/\?<>\\:\*\|"]/g,n=/[\x00-\x1f\x80-\x9f]/g,r=/^\.+$/,i=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i,o=/[\. ]+$/;function s(a,c){if(typeof a!="string")throw new Error("Input must be string");var u=a.replace(e,c).replace(n,c).replace(r,c).replace(i,c).replace(o,c);return t(u,255)}return Hg=function(a,c){var u=c&&c.replacement||"",d=s(a,u);return u===""?d:s(d,"")},Hg}var AD=CD();const PD=hs(AD),H$=(t,e)=>new RegExp(`^${t.split("/").map(e).join("\\/")}\\b`),K$=t=>{const e=t.startsWith("@");return e&&(t=t.slice(1)),t=t.split("/").map(n=>encodeURIComponent(n).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`)).join("/"),e?`@${t}`:t},LD=t=>decodeURIComponent(t),$p=t=>{const e=new Intl.NumberFormat(ae(Ut),{maximumFractionDigits:1}),n=1e3,r=n*1e3,i=r*1e3,o=i*1e3;return t<n?ae(ue)("file_size_units.b",{values:{size:e.format(t)}}):t<r?ae(ue)("file_size_units.kb",{values:{size:e.format(t/n)}}):t<i?ae(ue)("file_size_units.mb",{values:{size:e.format(t/r)}}):t<o?ae(ue)("file_size_units.gb",{values:{size:e.format(t/i)}}):ae(ue)("file_size_units.tb",{values:{size:e.format(t/o)}})},G$=(t,e)=>{if(!e.length)return t;const{filename:n,extension:r}=fn(t),i=new RegExp(`^${Vt(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:""}$`),o=e.sort((a,c)=>xi(a.split(".")[0],c.split(".")[0])).findLast(a=>i.test(a));if(!o)return t;const s=Number(o.match(i)?.groups?.num??0)+1;return`${n}-${s}${r?`.${r}`:""}`},W$=(t,{slugificationEnabled:e=!1,assetNamesInSameFolder:n=[]}={})=>{let r=PD(t.normalize());if(e){const{filename:i,extension:o}=fn(r);r=`${M$(i)}${o?`.${o}`:""}`}return G$(r,n)},hc=t=>t.filter(Boolean).join("/"),Ev=t=>{const e=t.split("/");let n=!1;return e.forEach((r,i)=>{if(r==="."||r===".."){if(n&&(e[i]=null,r==="..")){const o=e.findLastIndex((s,a)=>!!s&&a<i);o>-1&&(e[o]=null)}}else n=!0}),hc(e)},k_=t=>typeof t=="string"?new Blob([t],{type:"text/plain"}):t,Ua=async t=>{const n=await k_(t).arrayBuffer();return za(new Blob([`blob ${n.byteLength}\0`,n]))},ND="modulepreload",ID=function(t){return"/"+t},Kx={},Y$=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),a=s?.nonce||s?.getAttribute("nonce");i=c(n.map(u=>{if(u=ID(u),u in Kx)return;Kx[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":ND,d||(h.as="script"),h.crossOrigin="",h.href=u,a&&h.setAttribute("nonce",a),document.head.appendChild(h),d)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return i.then(s=>{for(const a of s||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})},$v="0.107.2",OD={"@jsquash/webp":"^1.5.0","@lexical/markdown":"^0.35.0","@sindresorhus/transliterate":"^2.0.0","@sveltia/ui":"^0.28.3","@sveltia/utils":"^0.8.5","create-react-class":"^15.7.0",dayjs:"^1.11.18",deepmerge:"^4.3.1",exifr:"^7.1.3","fast-deep-equal":"^3.1.3",flat:"^6.0.1","isomorphic-dompurify":"^2.28.0",leaflet:"^1.9.4",lexical:"^0.35.0",marked:"^16.3.0","marked-bidi":"^1.0.13",mime:"^4.1.0","parse-entities":"^4.0.2","pdfjs-dist":"^5.4.149",qrcode:"^1.5.4",react:"^19.1.1","react-dom":"^19.1.1","sanitize-filename":"^1.6.3","smol-toml":"^1.4.2","svelte-i18n":"^4.0.1",svgo:"^4.0.0","terra-draw":"^1.15.0","terra-draw-leaflet-adapter":"^1.0.3",turndown:"^7.2.1",yaml:"^2.8.1"},S_=t=>{const e=`https://unpkg.com/${t}`,n=OD[t]?.replace(/^\D/,"");return n?`${e}@${n}`:e},Ea=async(t,e)=>Y$(()=>import(`${S_(t)}/${e}`),[]),fa=(t,e)=>{if(typeof t!="number")return NaN;if(!Number.isFinite(t))return t;const n=10**e;return Math.round(t*n)/n},RD=async(t,e)=>{if(!(e==="image")||!t.file)return{createdDate:void 0,coordinates:void 0};const{parse:r}=await Ea("exifr","dist/lite.esm.mjs"),{latitude:i,longitude:o,DateTimeOriginal:s,CreateDate:a=s}=await r(t.file).catch(()=>{})??{};return{createdDate:a instanceof Date?a:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(o)?{latitude:fa(i,7),longitude:fa(o,7)}:void 0}},DD=t=>{const e=new Image;return new Promise(n=>{const r=()=>{n({dimensions:{width:e.naturalWidth,height:e.naturalHeight}})};e.addEventListener("load",r,{once:!0}),e.src=t})},MD=async(t,e)=>{const n=document.createElement(e);return new Promise(r=>{const i=()=>{const{duration:o}=n;e==="audio"&&r({duration:o});const{videoWidth:s,videoHeight:a}=n;r({dimensions:{width:s,height:a},duration:o})};n.addEventListener("loadedmetadata",i,{once:!0}),n.src=t})},FD=async(t,e)=>e==="image"?DD(t):MD(t,e),zD=async(t,e,n)=>{const{dimensions:r,duration:i}=await FD(e,n),{createdDate:o,coordinates:s}=await RD(t,n);return{dimensions:r,duration:i,createdDate:o,coordinates:s}},J$=["avif","gif","jpeg","png","webp"],jD=J$.map(t=>`image/${t}`),Tv=/\b(?:avif|gif|jpe?g|png|webp)$/i,BD=["image/svg+xml"],UD=/\b(?:svg)$/i,xo=[...jD,...BD],X$=["webp"],Kg={},qD=async t=>{if(t in Kg)return Kg[t];const e=`image/${t}`,n=new OffscreenCanvas(1,1);n.getContext("2d");const i=(await n.convertToBlob({type:e})).type===e;return Kg[t]=i,i},Z$=async(t,{format:e="webp",quality:n=85}={})=>{const r=`image/${e}`;if(!await qD(e)&&X$.includes(e)){const o=t.getContext("2d").getImageData(0,0,t.width,t.height);try{const s=(await Ea(`@jsquash/${e}`,"encode.js?module")).default,a=await s(o,{quality:n});return new Blob([a],{type:r})}catch{}}return t.convertToBlob({type:r,quality:n/100})},VD=({width:t,height:e},{width:n=t,height:r=e,fit:i="scale-down"}={})=>{const o={scale:1,width:t,height:e};if(t===r&&e===r)return o;const s=t>e,a=t<r||e<r;let c=1,u=0,d=0;if(i==="scale-down"){if(a)return o;i="contain"}return i==="contain"&&(s?(n>r?(c=n/t,u=n):(c=r/t,u=r),d=e*c):(n>r?(c=r/e,d=r):(c=n/e,d=n),u=t*c)),{scale:c,width:u,height:d}},Q$=(t,e,n)=>{const{scale:r,width:i,height:o}=VD(e,n);return t.width=i,t.height=o,{scale:r,width:i,height:o}},HD=async({blob:t})=>{const e=URL.createObjectURL(t),n=new Image;return new Promise(r=>{n.addEventListener("load",()=>{r({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(e)},{once:!0}),n.src=e})},KD=async({blob:t})=>{const e=URL.createObjectURL(t),n=document.createElement("video");return new Promise(r=>{n.addEventListener("canplay",()=>{n.pause(),r({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(e)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=e,n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n)})},GD=async t=>t.type.startsWith("video/")?KD({blob:t}):HD({blob:t}),E_=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{let s,a=0,c=0;try{s=await createImageBitmap(t),{width:a,height:c}=s}catch{({source:s,naturalWidth:a,naturalHeight:c}=await GD(t))}r??=a,i??=c;const u=new OffscreenCanvas(512,512),d=u.getContext("2d");return Q$(u,{width:a,height:c},{fit:o,width:r,height:i}),d.drawImage(s,0,0,u.width,u.height),s instanceof HTMLVideoElement&&document.body.removeChild(s),Z$(u,{format:e,quality:n})},WD=async t=>{const e=await t.text();try{const{optimize:n}=await Ea("svgo","dist/svgo.browser.js"),{data:r}=n(e);return new Blob([r],{type:t.type})}catch{}return t},jl=S_("pdfjs-dist"),YD=`${jl}/build/pdf.min.mjs`,JD=`${jl}/build/pdf.worker.min.mjs`,XD={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${jl}/cmaps/`,iccUrl:`${jl}/iccs/`,standardFontDataUrl:`${jl}/standard_fonts/`,wasmUrl:`${jl}/wasm/`};let vf;const ZD=async(t,{format:e="png",quality:n=85,width:r=void 0,height:i=void 0,fit:o="scale-down"}={})=>{if(!vf)try{vf=await import(YD),vf.GlobalWorkerOptions.workerSrc=JD}catch{throw new Error("Failed to load PDF.js library")}const s=URL.createObjectURL(t),a=new OffscreenCanvas(512,512),c=a.getContext("2d");try{const d=await(await vf.getDocument({...XD,url:s}).promise).getPage(1),f=d.getViewport({scale:1}),{scale:h}=Q$(a,{width:f.width,height:f.height},{width:r,height:i,fit:o});await d.render({canvasContext:c,viewport:h===1?f:d.getViewport({scale:h})}).promise,URL.revokeObjectURL(s)}catch{throw new Error("Failed to render PDF")}return Z$(a,{format:e,quality:n})},Gg=new Set,Xs=async(t,e=0)=>{const{file:n,blobURL:r,name:i,path:o}=t;if(r)return fetch(r).then(a=>a.blob());let s;if(n)s=n;else{if(Gg.has(o)&&e<=25)return await Lt(200),Xs(t,e+1);Gg.add(o);const a=await ae(wn)?.fetchBlob?.(t);if(!a)throw new Error("Failed to retrieve blob");s=new Blob([a],{type:gs.getType(i)??a.type})}return t.blobURL=URL.createObjectURL(s),Gg.delete(o),s},$_=async t=>(t.blobURL||await Xs(t),t.blobURL);let bf;const Cv=async(t,{cacheOnly:e=!1}={})=>{const n=t.name.endsWith(".pdf");if(!(["image","video"].includes(t.kind)||n))return;if(bf===void 0){const{databaseName:i}=ae(wn)?.repository??{};bf=i?new Lo(i,"asset-thumbnails"):null}let r=await bf?.get(t.sha);if(!r){if(e)return;const i=await Xs(t),o={format:"webp",quality:85,width:512,height:512,fit:"contain"};r=n?await ZD(i,o):await E_(i,o),await bf?.set(t.sha,r)}return URL.createObjectURL(r)},Qu=(t,{pathOnly:e=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{const{publicPath:i,entryRelative:o,hasTemplateTags:s}=t.folder.collectionName===void 0?t.folder:Ep(t.path).find(({collectionName:d})=>d!==void 0)??ae(ul);if(o)return e&&r&&fn(t.path).dirname===fn(Object.values(r.locales)[0].path).dirname?t.name:void 0;const{_baseURL:a="",output:{encode_file_path:c=!1}={}}=ae($t);let u=s?t.path.replace(H$(t.folder.internalPath??"",d=>{const f=d.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return f?`(?<${f}>[^/]+)`:Vt(d)}),i?.replaceAll(/{{(.+?)}}/g,"$<$1>")??""):t.path.replace(t.folder.internalPath??"",i==="/"?"":i??"");if(c&&(u=K$(u)),!(!u.startsWith("/")&&!n))return e?u:`${a}${u}`},pc=async({value:t,entry:e,collectionName:n,fileName:r,thumbnail:i=!1})=>{if(!t)return;if(/^(?:https?|data|blob):/.test(t))return t;const o=V_({value:t,entry:e,collectionName:n,fileName:r});if(o)return(i?await Cv(o):await $_(o))??Qu(o)},hh={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},Tp=async t=>{const{kind:e,path:n}=t,{blobBaseURL:r}=ae(wn)?.repository??{},i=await $_(t),o=Qu(t,{allowSpecial:!0,pathOnly:!0})??i;let s={};return["image","video","audio"].includes(e)&&i&&(s=await zD(t,i,e)),{...s,publicURL:Qu(t),repoBlobURL:r?`${r}/${n}`:void 0,usedEntries:o?await Nv(o):[]}},Mc=nt(!1),$o=nt(),T_=nt([]),di=nt([]),C_=nt([]),eT=t=>ae(T_).filter(({collectionName:e,filePathMap:n})=>n?Object.values(n).includes(t):Qr(e)?._file?.fullPathRegEx?.test(t)).sort((e,n)=>n.folderPath?.localeCompare(e.folderPath??"")??0),QD=()=>{try{return ae(ue)("index_file")}catch{return"Index File"}},hi=t=>{if(!rd(t))return;const{index_file:e}=t;if(!e)return;const n=e===!0?{}:e;return{name:n.name??"_index",label:n.label??QD(),icon:n.icon??"home",fields:n.fields,editor:n.editor}},Fo=(t,e)=>{const n=hi(t);return n?e.slug===n.name:!1},eM=t=>{const e=hi(t);return e?!zo(t.name).some(({slug:n})=>n===e.name):!1};sr.extend(v_);sr.extend(b_);sr.extend(__);const tM=/{{(?:year|month|day|hour|minute|second)}}/,ms=t=>eT(Object.values(t.locales)[0].path).map(({collectionName:e})=>Qr(e)).filter(e=>!!e),nM=({dateFieldName:t,fields:e,content:n})=>{const r=t?e.find(({widget:a,name:c})=>a==="datetime"&&c===t):e.find(({widget:a})=>a==="datetime"),i=r?n[r.name]:void 0;if(!r||!i)return;const{format:o,picker_utc:s=!1}=r;return Ba({date:(s?sr.utc:sr)(i,o).toDate(),timeZone:s?"UTC":void 0})},tT=(t,e,n,r)=>{const{show_preview_links:i=!0,_baseURL:o}=ae($t)??{},{slug:s,path:a,content:c}=t.locales[e]??{},{preview_path:u,preview_path_date_field:d,fields:f=[]}=r??n;if(!i||!o||!a||!c||!u)return;const h=Fo(n,t),g=(h?hi(n):void 0)?.fields??f;let m;if(!(tM.test(u)&&(m=nM({dateFieldName:d,fields:g,content:c}),!m)))try{const v=ko(u,{type:"preview_path",collection:n,content:c,locale:e,currentSlug:s,entryFilePath:a,dateTimeParts:m,isIndexFile:h});return`${o.replace(/\/$/,"")}/${v.replace(/^\//,"")}`}catch{return}},rM=(t,e)=>`${ae(wn)?.repository?.blobBaseURL}/${t.locales[e]?.path}?plain=1`,Cp=t=>!("divider"in t)&&typeof t.file=="string"&&Array.isArray(t.fields),Ap=t=>t.filter(e=>Cp(e)),Fc=(t,e)=>{const n=typeof t=="string"?Qr(t):t;if(!(!n||!("_fileMap"in n)))return n._fileMap[e]},Cd=t=>t.label||t.name,Zs=(t,e)=>"_fileMap"in t?Object.values(t._fileMap).filter(({_file:n,_i18n:r})=>n.fullPath===e.locales[r.defaultLocale]?.path):[],A_=(t,e)=>ae(di).find(n=>ms(n).some(r=>r.name===t&&Zs(r,n).some(i=>i.name===e))),Gx=(t,e)=>{if(t&&e){const{collections:n,singletons:r}=ae($t);if(t==="_singletons")return Array.isArray(r)?Ap(r).findIndex(o=>o.name===e):-1;const i=Qs({collections:n}).find(({name:o})=>o===t);if(i&&"files"in i)return i.files.findIndex(({name:o})=>o===e)??-1}return-1},P_=["file","image"],Pp=[...P_,"relation","select"],nT=[...Pp,"list","number"],rT=({multiline:t,dotAll:e,source:n})=>t||e||n.includes("[\\s\\S]")||n.includes("[\\S\\s]"),iT=t=>ls(Object.fromEntries(Object.entries(to(t)).filter(([e])=>!e.split(".").pop()?.startsWith("__sc_")))),oT=t=>t.replace(/"/g,"'"),ma=t=>t.replace(/"/g,"""),L_=/!\[(?<alt>(?:[^\]\\]|\\.)*)\]\((?<src>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title>(?:[^"\\]|\\.)*)")?\)/,iM=new RegExp(L_,"g"),oM=/\[!\[(?<alt2>(?:[^\]\\]|\\.)*)\]\((?<src2>(?:[^"()\\]|\\.|\([^)]*\)|"[^"]*")*?)(?:\s+"(?<title2>(?:[^"\\]|\\.)*)")?\)\](?:\((?<link>[^)]*\([^)]*\)[^)]*|[^)]*)\))/,sM=new RegExp(`${L_.source}|${oM.source}`),ph=new Map,sT={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:L_,toBlock:t=>{const{src:e="",alt:n="",title:r=""}=t;return e?`}"`:""})`:""},toPreview:t=>{const{src:e="",alt:n="",title:r=""}=t;return`<img src="${ma(e)}" alt="${ma(n)}" title="${ma(r)}">`}},aM={id:"linked-image",label:"Image",fields:[...sT.fields,{name:"link",label:"Link",required:!1}],pattern:sM,fromBlock:t=>{const{src:e,alt:n,title:r,src2:i,alt2:o,title2:s,link:a}=t.groups??{};return{src:(e||i||"").trim(),alt:(n||o||"").trim(),title:(r||s||"").trim(),link:(a||"").trim()}},toBlock:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=e?`}"`:""})`:"";return o&&i?`[${o}](${i})`:o},toPreview:t=>{const{src:e="",alt:n="",title:r="",link:i=""}=t,o=`<img src="${ma(e)}" alt="${ma(n)}" title="${ma(r)}">`;return i?`<a href="${ma(i)}">${o}</a>`:o}},aT=t=>{if(ph.has(t))return ph.get(t);const e={icon:"image",label:ae(ue)("editor_components.image"),fields:[{name:"src",label:ae(ue)("editor_components.src"),widget:"image"},{name:"alt",label:ae(ue)("editor_components.alt"),required:!1},{name:"title",label:ae(ue)("editor_components.title"),required:!1}]};return{image:{...sT,...e},"linked-image":{...aM,...e,fields:[...e.fields,{name:"link",label:ae(ue)("editor_components.link"),required:!1}]}}[t]};var Wg,Wx;function Yx(){if(Wx)return Wg;Wx=1;const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:o,seal:s,create:a}=Object,{apply:c,construct:u}=typeof Reflect<"u"&&Reflect;o||(o=function(Te){return Te}),s||(s=function(Te){return Te}),c||(c=function(Te,Fe){for(var Ie=arguments.length,Ae=new Array(Ie>2?Ie-2:0),we=2;we<Ie;we++)Ae[we-2]=arguments[we];return Te.apply(Fe,Ae)}),u||(u=function(Te){for(var Fe=arguments.length,Ie=new Array(Fe>1?Fe-1:0),Ae=1;Ae<Fe;Ae++)Ie[Ae-1]=arguments[Ae];return new Te(...Ie)});const d=x(Array.prototype.forEach),f=x(Array.prototype.lastIndexOf),h=x(Array.prototype.pop),p=x(Array.prototype.push),g=x(Array.prototype.splice),m=x(String.prototype.toLowerCase),v=x(String.prototype.toString),b=x(String.prototype.match),y=x(String.prototype.replace),w=x(String.prototype.indexOf),E=x(String.prototype.trim),k=x(Object.prototype.hasOwnProperty),S=x(RegExp.prototype.test),C=T(TypeError);function x(Ue){return function(Te){Te instanceof RegExp&&(Te.lastIndex=0);for(var Fe=arguments.length,Ie=new Array(Fe>1?Fe-1:0),Ae=1;Ae<Fe;Ae++)Ie[Ae-1]=arguments[Ae];return c(Ue,Te,Ie)}}function T(Ue){return function(){for(var Te=arguments.length,Fe=new Array(Te),Ie=0;Ie<Te;Ie++)Fe[Ie]=arguments[Ie];return u(Ue,Fe)}}function A(Ue,Te){let Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;e&&e(Ue,null);let Ie=Te.length;for(;Ie--;){let Ae=Te[Ie];if(typeof Ae=="string"){const we=Fe(Ae);we!==Ae&&(n(Te)||(Te[Ie]=we),Ae=we)}Ue[Ae]=!0}return Ue}function P(Ue){for(let Te=0;Te<Ue.length;Te++)k(Ue,Te)||(Ue[Te]=null);return Ue}function L(Ue){const Te=a(null);for(const[Fe,Ie]of t(Ue))k(Ue,Fe)&&(Array.isArray(Ie)?Te[Fe]=P(Ie):Ie&&typeof Ie=="object"&&Ie.constructor===Object?Te[Fe]=L(Ie):Te[Fe]=Ie);return Te}function I(Ue,Te){for(;Ue!==null;){const Ie=i(Ue,Te);if(Ie){if(Ie.get)return x(Ie.get);if(typeof Ie.value=="function")return x(Ie.value)}Ue=r(Ue)}function Fe(){return null}return Fe}const N=o(["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"]),D=o(["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","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),B=o(["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"]),H=o(["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"]),W=o(["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"]),Y=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),F=o(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","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","slot"]),K=o(["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","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"]),J=o(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),Q=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oe=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),re=s(/<%[\w\W]*|[\w\W]*%>/gm),ee=s(/\$\{[\w\W]*/gm),ne=s(/^data-[\-\w.\u00B7-\uFFFF]+$/),se=s(/^aria-[\-\w]+$/),fe=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),be=s(/^(?:\w+script|data):/i),pe=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=s(/^html$/i),ge=s(/^[a-z][.\w]*(-[.\w]+)+$/i);var ve=Object.freeze({__proto__:null,ARIA_ATTR:se,ATTR_WHITESPACE:pe,CUSTOM_ELEMENT:ge,DATA_ATTR:ne,DOCTYPE_NAME:he,ERB_EXPR:re,IS_ALLOWED_URI:fe,IS_SCRIPT_OR_DATA:be,MUSTACHE_EXPR:oe,TMPLIT_EXPR:ee});const _e={element:1,text:3,progressingInstruction:7,comment:8,document:9},$e=function(){return typeof window>"u"?null:window},Ce=function(Te,Fe){if(typeof Te!="object"||typeof Te.createPolicy!="function")return null;let Ie=null;const Ae="data-tt-policy-suffix";Fe&&Fe.hasAttribute(Ae)&&(Ie=Fe.getAttribute(Ae));const we="dompurify"+(Ie?"#"+Ie:"");try{return Te.createPolicy(we,{createHTML(Pe){return Pe},createScriptURL(Pe){return Pe}})}catch{return console.warn("TrustedTypes policy "+we+" could not be created."),null}},Re=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function He(){let Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e();const Te=ct=>He(ct);if(Te.version="3.2.7",Te.removed=[],!Ue||!Ue.document||Ue.document.nodeType!==_e.document||!Ue.Element)return Te.isSupported=!1,Te;let{document:Fe}=Ue;const Ie=Fe,Ae=Ie.currentScript,{DocumentFragment:we,HTMLTemplateElement:Pe,Node:ye,Element:it,NodeFilter:Qe,NamedNodeMap:Le=Ue.NamedNodeMap||Ue.MozNamedAttrMap,HTMLFormElement:ze,DOMParser:Xe,trustedTypes:st}=Ue,lt=it.prototype,xt=I(lt,"cloneNode"),Gt=I(lt,"remove"),bn=I(lt,"nextSibling"),Xt=I(lt,"childNodes"),Zt=I(lt,"parentNode");if(typeof Pe=="function"){const ct=Fe.createElement("template");ct.content&&ct.content.ownerDocument&&(Fe=ct.content.ownerDocument)}let pt,Ot="";const{implementation:an,createNodeIterator:xn,createDocumentFragment:pn,getElementsByTagName:Kt}=Fe,{importNode:Nt}=Ie;let kt=Re();Te.isSupported=typeof t=="function"&&typeof Zt=="function"&&an&&an.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:un,ERB_EXPR:br,TMPLIT_EXPR:ei,DATA_ATTR:dt,ARIA_ATTR:Qt,IS_SCRIPT_OR_DATA:Cn,ATTR_WHITESPACE:kn,CUSTOM_ELEMENT:Pr}=ve;let{IS_ALLOWED_URI:jn}=ve,Tt=null;const Bn=A({},[...N,...D,...B,...W,...O]);let Ft=null;const $i=A({},[...F,...K,...J,...Q]);let zt=Object.seal(a(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}})),gi=null,gn=null,zr=!0,Lr=!0,lo=!1,ti=!0,Wt=!1,ut=!0,vt=!1,An=!1,Pn=!1,lr=!1,ni=!1,On=!1,cr=!0,co=!1;const iu="user-content-";let ia=!0,nr=!1,ur={},ri=null;const Tw=A({},["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"]);let Cw=null;const Aw=A({},["audio","video","img","source","image","track"]);let dg=null;const Pw=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sf="http://www.w3.org/1998/Math/MathML",af="http://www.w3.org/2000/svg",Bo="http://www.w3.org/1999/xhtml";let xl=Bo,fg=!1,hg=null;const nL=A({},[sf,af,Bo],v);let lf=A({},["mi","mo","mn","ms","mtext"]),cf=A({},["annotation-xml"]);const rL=A({},["title","style","font","a","script"]);let ou=null;const iL=["application/xhtml+xml","text/html"],oL="text/html";let dr=null,kl=null;const sL=Fe.createElement("form"),Lw=function(de){return de instanceof RegExp||de instanceof Function},pg=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(kl&&kl===de)){if((!de||typeof de!="object")&&(de={}),de=L(de),ou=iL.indexOf(de.PARSER_MEDIA_TYPE)===-1?oL:de.PARSER_MEDIA_TYPE,dr=ou==="application/xhtml+xml"?v:m,Tt=k(de,"ALLOWED_TAGS")?A({},de.ALLOWED_TAGS,dr):Bn,Ft=k(de,"ALLOWED_ATTR")?A({},de.ALLOWED_ATTR,dr):$i,hg=k(de,"ALLOWED_NAMESPACES")?A({},de.ALLOWED_NAMESPACES,v):nL,dg=k(de,"ADD_URI_SAFE_ATTR")?A(L(Pw),de.ADD_URI_SAFE_ATTR,dr):Pw,Cw=k(de,"ADD_DATA_URI_TAGS")?A(L(Aw),de.ADD_DATA_URI_TAGS,dr):Aw,ri=k(de,"FORBID_CONTENTS")?A({},de.FORBID_CONTENTS,dr):Tw,gi=k(de,"FORBID_TAGS")?A({},de.FORBID_TAGS,dr):L({}),gn=k(de,"FORBID_ATTR")?A({},de.FORBID_ATTR,dr):L({}),ur=k(de,"USE_PROFILES")?de.USE_PROFILES:!1,zr=de.ALLOW_ARIA_ATTR!==!1,Lr=de.ALLOW_DATA_ATTR!==!1,lo=de.ALLOW_UNKNOWN_PROTOCOLS||!1,ti=de.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Wt=de.SAFE_FOR_TEMPLATES||!1,ut=de.SAFE_FOR_XML!==!1,vt=de.WHOLE_DOCUMENT||!1,lr=de.RETURN_DOM||!1,ni=de.RETURN_DOM_FRAGMENT||!1,On=de.RETURN_TRUSTED_TYPE||!1,Pn=de.FORCE_BODY||!1,cr=de.SANITIZE_DOM!==!1,co=de.SANITIZE_NAMED_PROPS||!1,ia=de.KEEP_CONTENT!==!1,nr=de.IN_PLACE||!1,jn=de.ALLOWED_URI_REGEXP||fe,xl=de.NAMESPACE||Bo,lf=de.MATHML_TEXT_INTEGRATION_POINTS||lf,cf=de.HTML_INTEGRATION_POINTS||cf,zt=de.CUSTOM_ELEMENT_HANDLING||{},de.CUSTOM_ELEMENT_HANDLING&&Lw(de.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(zt.tagNameCheck=de.CUSTOM_ELEMENT_HANDLING.tagNameCheck),de.CUSTOM_ELEMENT_HANDLING&&Lw(de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(zt.attributeNameCheck=de.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),de.CUSTOM_ELEMENT_HANDLING&&typeof de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(zt.allowCustomizedBuiltInElements=de.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Wt&&(Lr=!1),ni&&(lr=!0),ur&&(Tt=A({},O),Ft=[],ur.html===!0&&(A(Tt,N),A(Ft,F)),ur.svg===!0&&(A(Tt,D),A(Ft,K),A(Ft,Q)),ur.svgFilters===!0&&(A(Tt,B),A(Ft,K),A(Ft,Q)),ur.mathMl===!0&&(A(Tt,W),A(Ft,J),A(Ft,Q))),de.ADD_TAGS&&(Tt===Bn&&(Tt=L(Tt)),A(Tt,de.ADD_TAGS,dr)),de.ADD_ATTR&&(Ft===$i&&(Ft=L(Ft)),A(Ft,de.ADD_ATTR,dr)),de.ADD_URI_SAFE_ATTR&&A(dg,de.ADD_URI_SAFE_ATTR,dr),de.FORBID_CONTENTS&&(ri===Tw&&(ri=L(ri)),A(ri,de.FORBID_CONTENTS,dr)),ia&&(Tt["#text"]=!0),vt&&A(Tt,["html","head","body"]),Tt.table&&(A(Tt,["tbody"]),delete gi.tbody),de.TRUSTED_TYPES_POLICY){if(typeof de.TRUSTED_TYPES_POLICY.createHTML!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof de.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');pt=de.TRUSTED_TYPES_POLICY,Ot=pt.createHTML("")}else pt===void 0&&(pt=Ce(st,Ae)),pt!==null&&typeof Ot=="string"&&(Ot=pt.createHTML(""));o&&o(de),kl=de}},Nw=A({},[...D,...B,...H]),Iw=A({},[...W,...Y]),aL=function(de){let qe=Zt(de);(!qe||!qe.tagName)&&(qe={namespaceURI:xl,tagName:"template"});const at=m(de.tagName),Sn=m(qe.tagName);return hg[de.namespaceURI]?de.namespaceURI===af?qe.namespaceURI===Bo?at==="svg":qe.namespaceURI===sf?at==="svg"&&(Sn==="annotation-xml"||lf[Sn]):!!Nw[at]:de.namespaceURI===sf?qe.namespaceURI===Bo?at==="math":qe.namespaceURI===af?at==="math"&&cf[Sn]:!!Iw[at]:de.namespaceURI===Bo?qe.namespaceURI===af&&!cf[Sn]||qe.namespaceURI===sf&&!lf[Sn]?!1:!Iw[at]&&(rL[at]||!Nw[at]):!!(ou==="application/xhtml+xml"&&hg[de.namespaceURI]):!1},uo=function(de){p(Te.removed,{element:de});try{Zt(de).removeChild(de)}catch{Gt(de)}},oa=function(de,qe){try{p(Te.removed,{attribute:qe.getAttributeNode(de),from:qe})}catch{p(Te.removed,{attribute:null,from:qe})}if(qe.removeAttribute(de),de==="is")if(lr||ni)try{uo(qe)}catch{}else try{qe.setAttribute(de,"")}catch{}},Ow=function(de){let qe=null,at=null;if(Pn)de="<remove></remove>"+de;else{const Jn=b(de,/^[\r\n\t ]+/);at=Jn&&Jn[0]}ou==="application/xhtml+xml"&&xl===Bo&&(de='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+de+"</body></html>");const Sn=pt?pt.createHTML(de):de;if(xl===Bo)try{qe=new Xe().parseFromString(Sn,ou)}catch{}if(!qe||!qe.documentElement){qe=an.createDocument(xl,"template",null);try{qe.documentElement.innerHTML=fg?Ot:Sn}catch{}}const Nr=qe.body||qe.documentElement;return de&&at&&Nr.insertBefore(Fe.createTextNode(at),Nr.childNodes[0]||null),xl===Bo?Kt.call(qe,vt?"html":"body")[0]:vt?qe.documentElement:Nr},Rw=function(de){return xn.call(de.ownerDocument||de,de,Qe.SHOW_ELEMENT|Qe.SHOW_COMMENT|Qe.SHOW_TEXT|Qe.SHOW_PROCESSING_INSTRUCTION|Qe.SHOW_CDATA_SECTION,null)},gg=function(de){return de instanceof ze&&(typeof de.nodeName!="string"||typeof de.textContent!="string"||typeof de.removeChild!="function"||!(de.attributes instanceof Le)||typeof de.removeAttribute!="function"||typeof de.setAttribute!="function"||typeof de.namespaceURI!="string"||typeof de.insertBefore!="function"||typeof de.hasChildNodes!="function")},Dw=function(de){return typeof ye=="function"&&de instanceof ye};function Uo(ct,de,qe){d(ct,at=>{at.call(Te,de,qe,kl)})}const Mw=function(de){let qe=null;if(Uo(kt.beforeSanitizeElements,de,null),gg(de))return uo(de),!0;const at=dr(de.nodeName);if(Uo(kt.uponSanitizeElement,de,{tagName:at,allowedTags:Tt}),ut&&de.hasChildNodes()&&!Dw(de.firstElementChild)&&S(/<[/\w!]/g,de.innerHTML)&&S(/<[/\w!]/g,de.textContent)||de.nodeType===_e.progressingInstruction||ut&&de.nodeType===_e.comment&&S(/<[/\w]/g,de.data))return uo(de),!0;if(!Tt[at]||gi[at]){if(!gi[at]&&zw(at)&&(zt.tagNameCheck instanceof RegExp&&S(zt.tagNameCheck,at)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(at)))return!1;if(ia&&!ri[at]){const Sn=Zt(de)||de.parentNode,Nr=Xt(de)||de.childNodes;if(Nr&&Sn){const Jn=Nr.length;for(let ii=Jn-1;ii>=0;--ii){const qo=xt(Nr[ii],!0);qo.__removalCount=(de.__removalCount||0)+1,Sn.insertBefore(qo,bn(de))}}}return uo(de),!0}return de instanceof it&&!aL(de)||(at==="noscript"||at==="noembed"||at==="noframes")&&S(/<\/no(script|embed|frames)/i,de.innerHTML)?(uo(de),!0):(Wt&&de.nodeType===_e.text&&(qe=de.textContent,d([un,br,ei],Sn=>{qe=y(qe,Sn," ")}),de.textContent!==qe&&(p(Te.removed,{element:de.cloneNode()}),de.textContent=qe)),Uo(kt.afterSanitizeElements,de,null),!1)},Fw=function(de,qe,at){if(cr&&(qe==="id"||qe==="name")&&(at in Fe||at in sL))return!1;if(!(Lr&&!gn[qe]&&S(dt,qe))){if(!(zr&&S(Qt,qe))){if(!Ft[qe]||gn[qe]){if(!(zw(de)&&(zt.tagNameCheck instanceof RegExp&&S(zt.tagNameCheck,de)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(de))&&(zt.attributeNameCheck instanceof RegExp&&S(zt.attributeNameCheck,qe)||zt.attributeNameCheck instanceof Function&&zt.attributeNameCheck(qe,de))||qe==="is"&&zt.allowCustomizedBuiltInElements&&(zt.tagNameCheck instanceof RegExp&&S(zt.tagNameCheck,at)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(at))))return!1}else if(!dg[qe]){if(!S(jn,y(at,kn,""))){if(!((qe==="src"||qe==="xlink:href"||qe==="href")&&de!=="script"&&w(at,"data:")===0&&Cw[de])){if(!(lo&&!S(Cn,y(at,kn,"")))){if(at)return!1}}}}}}return!0},zw=function(de){return de!=="annotation-xml"&&b(de,Pr)},jw=function(de){Uo(kt.beforeSanitizeAttributes,de,null);const{attributes:qe}=de;if(!qe||gg(de))return;const at={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ft,forceKeepAttr:void 0};let Sn=qe.length;for(;Sn--;){const Nr=qe[Sn],{name:Jn,namespaceURI:ii,value:qo}=Nr,Sl=dr(Jn),mg=qo;let _r=Jn==="value"?mg:E(mg);if(at.attrName=Sl,at.attrValue=_r,at.keepAttr=!0,at.forceKeepAttr=void 0,Uo(kt.uponSanitizeAttribute,de,at),_r=at.attrValue,co&&(Sl==="id"||Sl==="name")&&(oa(Jn,de),_r=iu+_r),ut&&S(/((--!?|])>)|<\/(style|title|textarea)/i,_r)){oa(Jn,de);continue}if(Sl==="attributename"&&b(_r,"href")){oa(Jn,de);continue}if(at.forceKeepAttr)continue;if(!at.keepAttr){oa(Jn,de);continue}if(!ti&&S(/\/>/i,_r)){oa(Jn,de);continue}Wt&&d([un,br,ei],Uw=>{_r=y(_r,Uw," ")});const Bw=dr(de.nodeName);if(!Fw(Bw,Sl,_r)){oa(Jn,de);continue}if(pt&&typeof st=="object"&&typeof st.getAttributeType=="function"&&!ii)switch(st.getAttributeType(Bw,Sl)){case"TrustedHTML":{_r=pt.createHTML(_r);break}case"TrustedScriptURL":{_r=pt.createScriptURL(_r);break}}if(_r!==mg)try{ii?de.setAttributeNS(ii,Jn,_r):de.setAttribute(Jn,_r),gg(de)?uo(de):h(Te.removed)}catch{oa(Jn,de)}}Uo(kt.afterSanitizeAttributes,de,null)},lL=function ct(de){let qe=null;const at=Rw(de);for(Uo(kt.beforeSanitizeShadowDOM,de,null);qe=at.nextNode();)Uo(kt.uponSanitizeShadowNode,qe,null),Mw(qe),jw(qe),qe.content instanceof we&&ct(qe.content);Uo(kt.afterSanitizeShadowDOM,de,null)};return Te.sanitize=function(ct){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=null,at=null,Sn=null,Nr=null;if(fg=!ct,fg&&(ct="<!-->"),typeof ct!="string"&&!Dw(ct))if(typeof ct.toString=="function"){if(ct=ct.toString(),typeof ct!="string")throw C("dirty is not a string, aborting")}else throw C("toString is not a function");if(!Te.isSupported)return ct;if(An||pg(de),Te.removed=[],typeof ct=="string"&&(nr=!1),nr){if(ct.nodeName){const qo=dr(ct.nodeName);if(!Tt[qo]||gi[qo])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(ct instanceof ye)qe=Ow("<!---->"),at=qe.ownerDocument.importNode(ct,!0),at.nodeType===_e.element&&at.nodeName==="BODY"||at.nodeName==="HTML"?qe=at:qe.appendChild(at);else{if(!lr&&!Wt&&!vt&&ct.indexOf("<")===-1)return pt&&On?pt.createHTML(ct):ct;if(qe=Ow(ct),!qe)return lr?null:On?Ot:""}qe&&Pn&&uo(qe.firstChild);const Jn=Rw(nr?ct:qe);for(;Sn=Jn.nextNode();)Mw(Sn),jw(Sn),Sn.content instanceof we&&lL(Sn.content);if(nr)return ct;if(lr){if(ni)for(Nr=pn.call(qe.ownerDocument);qe.firstChild;)Nr.appendChild(qe.firstChild);else Nr=qe;return(Ft.shadowroot||Ft.shadowrootmode)&&(Nr=Nt.call(Ie,Nr,!0)),Nr}let ii=vt?qe.outerHTML:qe.innerHTML;return vt&&Tt["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&S(he,qe.ownerDocument.doctype.name)&&(ii="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
|
|
138
138
|
`+ii),Wt&&d([un,br,ei],qo=>{ii=y(ii,qo," ")}),pt&&On?pt.createHTML(ii):ii},Te.setConfig=function(){let ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pg(ct),An=!0},Te.clearConfig=function(){kl=null,An=!1},Te.isValidAttribute=function(ct,de,qe){kl||pg({});const at=dr(ct),Sn=dr(de);return Fw(at,Sn,qe)},Te.addHook=function(ct,de){typeof de=="function"&&p(kt[ct],de)},Te.removeHook=function(ct,de){if(de!==void 0){const qe=f(kt[ct],de);return qe===-1?void 0:g(kt[ct],qe,1)[0]}return h(kt[ct])},Te.removeHooks=function(ct){kt[ct]=[]},Te.removeAllHooks=function(){kt=Re()},Te}var Ye=He();return Wg=Ye,Wg}var Yg,Jx;function lM(){return Jx||(Jx=1,Yg=window.DOMPurify||(window.DOMPurify=Yx().default||Yx())),Yg}var Dr=lM();function N_(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var dl=N_();function lT(t){dl=t}var Mu={exec:()=>null};function Jt(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Kr.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var Kr={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},cM=/^(?:[ \t]*(?:\n|$))+/,uM=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,dM=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ad=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fM=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,I_=/(?:[*+-]|\d{1,9}[.)])/,cT=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,uT=Jt(cT).replace(/bull/g,I_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),hM=Jt(cT).replace(/bull/g,I_).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),O_=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,pM=/^[^\n]+/,R_=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,gM=Jt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",R_).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),mM=Jt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,I_).getRegex(),Lp="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",D_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vM=Jt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",D_).replace("tag",Lp).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dT=Jt(O_).replace("hr",Ad).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Lp).getRegex(),bM=Jt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",dT).getRegex(),M_={blockquote:bM,code:uM,def:gM,fences:dM,heading:fM,hr:Ad,html:vM,lheading:uT,list:mM,newline:cM,paragraph:dT,table:Mu,text:pM},Xx=Jt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ad).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Lp).getRegex(),_M={...M_,lheading:hM,table:Xx,paragraph:Jt(O_).replace("hr",Ad).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xx).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Lp).getRegex()},yM={...M_,html:Jt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",D_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Mu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Jt(O_).replace("hr",Ad).replace("heading",` *#{1,6} *[^
|
|
139
139
|
]`).replace("lheading",uT).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},wM=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,xM=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,fT=/^( {2,}|\\)\n(?!\s*$)/,kM=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Np=/[\p{P}\p{S}]/u,F_=/[\s\p{P}\p{S}]/u,hT=/[^\s\p{P}\p{S}]/u,SM=Jt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,F_).getRegex(),pT=/(?!~)[\p{P}\p{S}]/u,EM=/(?!~)[\s\p{P}\p{S}]/u,$M=/(?:[^\s\p{P}\p{S}]|~)/u,TM=/\[[^\[\]]*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,gT=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,CM=Jt(gT,"u").replace(/punct/g,Np).getRegex(),AM=Jt(gT,"u").replace(/punct/g,pT).getRegex(),mT="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",PM=Jt(mT,"gu").replace(/notPunctSpace/g,hT).replace(/punctSpace/g,F_).replace(/punct/g,Np).getRegex(),LM=Jt(mT,"gu").replace(/notPunctSpace/g,$M).replace(/punctSpace/g,EM).replace(/punct/g,pT).getRegex(),NM=Jt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,hT).replace(/punctSpace/g,F_).replace(/punct/g,Np).getRegex(),IM=Jt(/\\(punct)/,"gu").replace(/punct/g,Np).getRegex(),OM=Jt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),RM=Jt(D_).replace("(?:-->|$)","-->").getRegex(),DM=Jt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",RM).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gh=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`[^`]*`|[^\[\]\\`])*?/,MM=Jt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",gh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vT=Jt(/^!?\[(label)\]\[(ref)\]/).replace("label",gh).replace("ref",R_).getRegex(),bT=Jt(/^!?\[(ref)\](?:\[\])?/).replace("ref",R_).getRegex(),FM=Jt("reflink|nolink(?!\\()","g").replace("reflink",vT).replace("nolink",bT).getRegex(),z_={_backpedal:Mu,anyPunctuation:IM,autolink:OM,blockSkip:TM,br:fT,code:xM,del:Mu,emStrongLDelim:CM,emStrongRDelimAst:PM,emStrongRDelimUnd:NM,escape:wM,link:MM,nolink:bT,punctuation:SM,reflink:vT,reflinkSearch:FM,tag:DM,text:kM,url:Mu},zM={...z_,link:Jt(/^!?\[(label)\]\((.*?)\)/).replace("label",gh).getRegex(),reflink:Jt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gh).getRegex()},Av={...z_,emStrongRDelimAst:LM,emStrongLDelim:AM,url:Jt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},jM={...Av,br:Jt(fT).replace("{2,}","*").getRegex(),text:Jt(Av.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},_f={normal:M_,gfm:_M,pedantic:yM},du={normal:z_,gfm:Av,breaks:jM,pedantic:zM},BM={"&":"&","<":"<",">":">",'"':""","'":"'"},Zx=t=>BM[t];function po(t,e){if(e){if(Kr.escapeTest.test(t))return t.replace(Kr.escapeReplace,Zx)}else if(Kr.escapeTestNoEncode.test(t))return t.replace(Kr.escapeReplaceNoEncode,Zx);return t}function Qx(t){try{t=encodeURI(t).replace(Kr.percentDecode,"%")}catch{return null}return t}function e0(t,e){let n=t.replace(Kr.findPipe,(o,s,a)=>{let c=!1,u=s;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Kr.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Kr.slashPipe,"|");return r}function fu(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function UM(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function t0(t,e,n,r,i){let o=e.href,s=e.title||null,a=t[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,c}function qM(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
|
|
140
140
|
`).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[a]=s;return a.length>=i.length?o.slice(i.length):o}).join(`
|
|
@@ -366,7 +366,7 @@ ${o}`.trim()}function YF(t,{maxDepth:e=1e3,numbersAsFloat:n=!1}={}){if(Nd(t)!=="
|
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
`,o=await vs(i);if(n.push(...Object.values(o.project.repository).map(({lastCommit:s})=>s)),!e.length)break}return n},Xz=async(t,e,n)=>{const r=t.map(({path:i,sha:o},s)=>{const{size:a,rawTextBlob:c}=e[s],u=n[s],d={sha:o,size:Number(a),text:c,meta:{}};if(u){const{author:f,authorName:h,authorEmail:p,committedDate:g}=u,{id:m,username:v}=f??{},b=m?.match(/\d+/);d.meta={commitAuthor:{name:h,email:p,id:b?Number(b[0]):void 0,login:v},committedDate:new Date(g)}}return[i,d]});return Object.fromEntries(r)},Zz=async t=>{const e=t.map(({path:i})=>i),n=await Wz(e),r=e.length<100?await Jz(e):[];return Xz(t,n,r)},Qz=async()=>{await zz(),await ry({repository:Xi,fetchDefaultBranchName:Bz,fetchLastCommit:qz,fetchFileList:Kz,fetchFileContents:Zz})},ej=async t=>{const{owner:e,repo:n,branch:r=""}=Xi,{path:i}=t;return Qn(`/projects/${encodeURIComponent(`${e}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:"blob"})},tj="https://status.gitlab.com/",nj="https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7",rj=async()=>{try{const{result:{status_overall:{status_code:t}}}=await Od(nj);if(t===100)return"none";if([200,300,400].includes(t))return"minor";if([500,600].includes(t))return"major"}catch{}return"unknown"},ij=()=>{const{backend:t}=ae($t)??{};if(t?.name!==Ta)return;const{repo:e,branch:n,base_url:r=Iz,auth_endpoint:i=Oz,app_id:o="",api_root:s=v0,graphql_api_root:a=s.replace(/\/api\/.+$/,"/api/graphql")}=t,{owner:c,repo:u}=e.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},d=`${c}/${u}`,f=`${tn(r)}/${tn(i)}`,h=ty(s,d);return Object.assign(Xi,{service:Ta,label:aC,owner:c,repo:u,branch:n,repoURL:h,newPatURL:Dz(h),databaseName:`${Ta}:${d}`,isSelfHosted:s!==v0},lC(h,n)),Object.assign(fl,{clientId:o,authURL:f,tokenURL:f.replace("/authorize","/token"),authScheme:"Bearer",restBaseURL:tn(s),graphqlBaseURL:tn(a)}),Object.assign(Rd,{fullPath:d,branch:n}),ae(ft).devModeEnabled&&console.info("repositoryInfo",Xi),Xi},oj={isGit:!0,name:Ta,label:aC,repository:Xi,statusDashboardURL:tj,checkStatus:rj,init:ij,signIn:Mz,signOut:Fz,fetchFiles:Qz,fetchBlob:ej,commitChanges:Vz},Dd={github:Nz,gitlab:oj,gitea:az,local:S3,"test-repo":N3},sj=Object.keys(Dd).filter(t=>t!=="local"),aj=Object.fromEntries(Object.entries(Dd).filter(([,t])=>t.isGit)),Vc=nt(),wn=sn([Vc],([t],e,n)=>{n(r=>{const i=t?Dd[t]:void 0;return i&&i!==r&&i.init(),i})}),xh=nt(!0),Yf=[],b0=(t,{globalMediaFolder:e,globalPublicFolder:n})=>t.trim().replace("{{media_folder}}",`/${e}`).replace("{{public_folder}}",`/${n}`).replace("//","/"),lj=({collectionName:t,fileName:e,mediaFolder:n,publicFolder:r,baseFolder:i,globalFolders:o})=>{n=b0(n,o),r=r!==void 0?b0(r,o):n;const s=!n.startsWith("/");return{collectionName:t,fileName:e,internalPath:tn(s?i??"":n),publicPath:r===""||/^[.@]/.test(r)?r:`/${tn(r)}`,entryRelative:s,hasTemplateTags:/{{.+?}}/.test(n)}},cC=t=>{if(t.mediaFolder===void 0)return;const e=lj(t),{globalMediaFolder:n,globalPublicFolder:r}=t.globalFolders;!e.entryRelative&&e.internalPath===n&&e.publicPath===r||Yf.push(e)},_0=({collectionName:t,files:e,globalFolders:n})=>{Ap(e).forEach(r=>{const{name:i,file:o,media_folder:s,public_folder:a}=r;cC({collectionName:t,fileName:i,mediaFolder:s,publicFolder:a,baseFolder:fn(o).dirname,globalFolders:n})})},cj=t=>{Yf.length=0;const{media_folder:e,public_folder:n,collections:r,singletons:i}=t,o=tn(e).replace(/^\.$/,""),s=n?`/${tn(n)}`.replace(/^\/@/,"@"):`/${o}`,a={collectionName:void 0,internalPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1},c={collectionName:void 0,internalPath:o,publicPath:s,entryRelative:!1,hasTemplateTags:!1},u={globalMediaFolder:o,globalPublicFolder:s};return Qs({collections:r}).forEach(d=>{const{name:f,files:h,folder:p,path:g,media_folder:m,public_folder:v}=d;cC({collectionName:f,mediaFolder:m===void 0&&g!==void 0?"":m,publicFolder:v,baseFolder:p,globalFolders:u}),h?.length&&_0({collectionName:f,files:h,globalFolders:u})}),i?.length&&_0({collectionName:"_singletons",files:i,globalFolders:u}),Yf.sort((d,f)=>xi(d.internalPath??"",f.internalPath??"")),[a,c,...Yf]},As={SINGLE_FILE:"single_file",MULTIPLE_FILES:"multiple_files",MULTIPLE_FOLDERS:"multiple_folders",MULTIPLE_FOLDERS_I18N_ROOT:"multiple_folders_i18n_root"},Fu="_default",Bv={key:"translationKey",value:"{{slug}}"},so={i18nEnabled:!1,saveAllLocales:!0,allLocales:[Fu],initialLocales:[Fu],defaultLocale:Fu,structure:As.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nRootMultiFolder:!1},canonicalSlug:{...Bv},omitDefaultLocaleFromFileName:!1},uj=(t,e)=>{const n=ae($t);if(!Yt(n.i18n))return;const r=structuredClone(n.i18n);if(t.i18n||oy(t)){if(Yt(t.i18n)&&Object.assign(r,t.i18n),e)if(e.i18n)Yt(e.i18n)&&Object.assign(r,e.i18n);else return}else return;return r},dj=(t,e)=>e?e.file.includes("{{locale}}")?As.MULTIPLE_FILES:As.SINGLE_FILE:t,fj=(t,e)=>({i18nSingleFile:t&&e===As.SINGLE_FILE,i18nMultiFile:t&&e===As.MULTIPLE_FILES,i18nMultiFolder:t&&e===As.MULTIPLE_FOLDERS,i18nRootMultiFolder:t&&e===As.MULTIPLE_FOLDERS_I18N_ROOT}),hj=(t,e,n)=>t?n&&e.includes(n)?n:e[0]:Fu,pj=(t,e,n)=>t==="all"?e:t==="default"?[n]:e.filter(r=>r===n||(Array.isArray(t)?t.includes(r):!0)),Md=(t,e)=>{const n=uj(t,e),{structure:r=As.SINGLE_FILE,locales:i=[],default_locale:o,initial_locales:s,save_all_locales:a=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:u=!1}=n??{};n?.save_all_locales!==void 0&&fp("save_all_locales");const{key:d=Bv.key,value:f=Bv.value}=c,h=i.length>0,p=h?i:[Fu],g=hj(h,p,o),m=dj(r,e),v=fj(h,m),b=h?a===!0&&s===void 0:!0,y=pj(s,p,g),w=u&&(e?/\.{{locale}}\.[a-zA-Z0-9]+$/.test(e.file):v.i18nMultiFile);return{i18nEnabled:h,saveAllLocales:b,allLocales:p,defaultLocale:g,initialLocales:y,structure:m,structureMap:v,canonicalSlug:{key:d,value:f},omitDefaultLocaleFromFileName:w}},gj=({collection:t,file:e})=>{const n=tn(e.file);if(!n.includes("{{locale}}"))return{_default:n};const r=Md(t,e);return Object.fromEntries(r.allLocales.map(i=>[i,y_({_i18n:r,locale:i,path:n})]))},uC=(t,e)=>{if(Cp(e))return{collectionName:t.name,fileName:e.name,filePathMap:gj({collection:t,file:e})}},dC=(t,e)=>xi(Object.values(t.filePathMap??{})[0],Object.values(e.filePathMap??{})[0]),mj=({collections:t})=>Qs({collections:t,type:"entry",visible:!0}).map(e=>{const{name:n,folder:r}=e,i=tn(r),{allLocales:o,structureMap:{i18nRootMultiFolder:s}}=Md(e);return{collectionName:n,folderPath:i,folderPathMap:Object.fromEntries(o.map(a=>[a,s?`${a}/${i}`:i]))}}).sort((e,n)=>xi(e.folderPath??"",n.folderPath??"")),vj=({collections:t})=>Qs({collections:t,type:"file",visible:!0}).map(e=>(e.files??[]).map(n=>uC(e,n))).flat(1).filter(e=>!!e).sort(dC),bj=({singletons:t})=>{const e=Array.isArray(t)?Ap(t):[];if(!e.length)return[];const n={name:"_singletons",files:e};return e.map(r=>uC(n,r)).filter(r=>!!r).sort(dC)},_j=t=>[...mj(t),...vj(t),...bj(t)],yj=["text/yaml","application/yaml","application/json"],wj=async({href:t,type:e="application/yaml"})=>{let n;if(!yj.includes(e))throw new Error(ae(ue)("config.error.parse_failed"),{cause:new Error(ae(ue)("config.error.parse_failed_unsupported_type"))});try{n=await fetch(t)}catch(s){throw new Error(ae(ue)("config.error.fetch_failed"),{cause:s})}const{ok:r,status:i}=n;if(!r)throw new Error(ae(ue)("config.error.fetch_failed"),{cause:new Error(ae(ue)("config.error.fetch_failed_not_ok",{values:{status:i}}))});let o;try{e==="application/json"?o=n.json():o=I$(await n.text(),{merge:!0})}catch(s){throw new Error(ae(ue)("config.error.parse_failed"),{cause:s})}if(!Yt(o))throw new Error(ae(ue)("config.error.parse_failed"),{cause:new Error(ae(ue)("config.error.parse_failed_invalid_object"))});return o},xj=t=>{if(t.endsWith("/"))return`${t}config.yml`;const e=t.split("/");return e.pop()?.includes(".")?`${e.join("/")}/config.yml`:`${t}/config.yml`},y0=async()=>{const t=[...document.querySelectorAll('link[rel="cms-config-url"]')].map(({href:n,type:r})=>({href:n,type:r}));t.length||t.push({href:xj(window.location.pathname)});const e=await Promise.all(t.map(n=>wj(n)));return e.length===1?e[0]:Jb.all(e)},kj={DEV:!1},{DEV:Sj}=kj,Ej=void 0,fC={},$t=nt(),iy=nt(),Uv=nt(),$j=t=>{if(!Array.isArray(t.collections)&&!Array.isArray(t.singletons))throw new Error(ae(ue)("config.error.no_collection"));if(!t.backend)throw new Error(ae(ue)("config.error.missing_backend"));if(!t.backend.name)throw new Error(ae(ue)("config.error.missing_backend_name"));if(!sj.includes(t.backend.name))throw new Error(ae(ue)("config.error.unsupported_backend",{values:{name:t.backend.name}}));if(Object.keys(aj).includes(t.backend.name)){const{repo:e,automatic_deployments:n}=t.backend;if(e===void 0)throw new Error(ae(ue)("config.error.missing_repository"));if(typeof e!="string"||!/(.+)\/([^/]+)$/.test(e))throw new Error(ae(ue)("config.error.invalid_repository"));n!==void 0&&fp("automatic_deployments")}if(t.backend.name==="gitlab"){const{auth_type:e,app_id:n}=t.backend;if(e==="implicit")throw new Error(ae(ue)("config.error.oauth_implicit_flow"));if(e==="pkce"&&!n)throw new Error(ae(ue)("config.error.oauth_no_app_id"))}if(t.backend.name==="gitea"){const{app_id:e}=t.backend;if(!e)throw new Error(ae(ue)("config.error.oauth_no_app_id"))}if(t.media_folder===void 0)throw new Error(ae(ue)("config.error.missing_media_folder"));if(typeof t.media_folder!="string")throw new Error(ae(ue)("config.error.invalid_media_folder"));if(t.public_folder!==void 0){if(typeof t.public_folder!="string")throw new Error(ae(ue)("config.error.invalid_public_folder"));if(/^\.{1,2}\//.test(t.public_folder))throw new Error(ae(ue)("config.error.public_folder_relative_path"));if(/^https?:/.test(t.public_folder))throw new Error(ae(ue)("config.error.public_folder_absolute_url"))}},Tj=async t=>{$t.set(void 0),Uv.set(void 0);try{if(!window.isSecureContext)throw new Error(ae(ue)("config.error.no_secure_context"));let e;if(t){if(!Yt(t))throw new Error(ae(ue)("config.error.parse_failed"));e=t,e.load_config_file!==!1&&(e=Jb(await y0(),e))}else e=await y0();Object.assign(fC,e),$j(e);const n=structuredClone(e);n._siteURL=n.site_url?.trim()||(Sj?Ej:window.location.origin),n._baseURL=dp(n._siteURL)?new URL(n._siteURL).origin:"",n.collections?.forEach(r=>{"folder"in r&&(r.folder==="."||r.folder==="/")&&(r.folder="")}),$t.set(n),iy.set(await za(g_(n)))}catch(e){Uv.set({message:e.name==="Error"?e.message:ae(ue)("config.error.unexpected")}),console.error(e,e.cause)}};$t.subscribe(t=>{if(ae(ft).devModeEnabled&&console.info("siteConfig",t),!t)return;const e=_j(t),n=cj(t);T_.set(e),Ys.set(n),ae(ft).devModeEnabled&&(console.info("allEntryFolders",e),console.info("allAssetFolders",n))});const Vn=nt(),hu=new Map,rd=t=>typeof t.folder=="string"&&!Array.isArray(t.files),kh=t=>t.folder===void 0&&Array.isArray(t.files),oy=t=>kh(t)&&t.name==="_singletons",Cj=(t,{visible:e=void 0,type:n=void 0}={})=>"divider"in t||e&&t.hide?!1:n==="entry"?rd(t):n==="file"?kh(t):n==="singleton"?oy(t):rd(t)||kh(t),Qs=({collections:t=ae($t)?.collections??[],visible:e,type:n}={})=>t.filter(r=>Cj(r,{visible:e,type:n})),Aj=()=>Qs({visible:!0})[0],Pj=t=>{if(!("folder"in t))return[];const{fields:e,thumbnail:n}=t;return typeof n=="string"?[n]:Array.isArray(n)?n:e?.length?e.filter(({widget:r="string"})=>["image","file"].includes(r)).map(({name:r})=>r):[]},Lj=(t,e)=>({...t,_i18n:e,_type:"entry",_file:vC({rawCollection:t,_i18n:e}),_thumbnailFieldNames:Pj(t)}),hC=(t,e,n)=>({...t,_i18n:e,_type:oy(t)?"singleton":"file",_fileMap:Object.fromEntries(n.filter(Cp).map(r=>{const i=Md(t,r),o=vC({rawCollection:t,file:r,_i18n:i});return[r.name,{...r,_file:o,_i18n:i}]}))}),pC=()=>{const t=ae($t)?.singletons;if(!Array.isArray(t))return;const e=Ap(t).map(i=>({...i,file:tn(i.file)}));if(!e.length)return;const n={name:"_singletons",files:e},r=Md(n);return hC(n,r,e)},Qr=t=>{const e=hu.get(t);if(e)return e;if(t==="_singletons"){const a=pC();return hu.set(t,a),a}const n=Qs().find(a=>a.name===t);if(!n){hu.set(t,void 0);return}const r=rd(n)?n:void 0,i=kh(n)?n:void 0;if(!r&&!i){hu.set(t,void 0);return}r?r.folder=tn(r.folder):i?.files.forEach(a=>{a.file&&(a.file=tn(a.file))});const o=Md(n),s=r?Lj(r,o):i?hC(i,o,i.files):void 0;return hu.set(t,s),s},cs=(t,{useSingular:e=!1}={})=>{const{_type:n,name:r,label:i,label_singular:o}=t;return n==="singleton"?ae(ue)("files"):e&&o?o:i||r},w0=t=>t?t==="_singletons"?9999999:ae($t)?.collections?.findIndex(({name:e})=>e===t)??-1:-1,Dp=new Map,gC=({extension:t,format:e})=>{const n=e?Dp.get(e)?.extension:void 0;return n||t||(e==="yaml"||e==="yml"?"yml":e==="toml"?"toml":e==="json"?"json":"md")},Nj=({extension:t,format:e})=>e||(t==="yaml"||t==="yml"?"yaml":t==="toml"?"toml":t==="json"?"json":["md","mkd","mkdn","mdwn","mdown","markdown"].includes(t)?"frontmatter":"yaml-frontmatter"),Ij=({extension:t,format:e,basePath:n,subPath:r,indexFileName:i,_i18n:o})=>{const{allLocales:s,defaultLocale:a,omitDefaultLocaleFromFileName:c,structureMap:{i18nMultiFile:u,i18nMultiFolder:d,i18nRootMultiFolder:f}}=o,h=r?`(?<subPath>${r.replace(/\//g,"\\/").replace(/{{.+?}}/g,"[^/]+?")}${i?`|${i}`:""})`:"(?<subPath>[^/]+?)",p=`(?<locale>${s.join("|")})`,g=["^",f?`${p}\\/`:"",n?`${Vt(n)}\\/`:"",d?`${p}\\/`:"",h,u?c?`(?:\\.(?<locale>${s.filter(m=>m!==a).join("|")}))?`:`\\.${p}`:"","\\.",gC({format:e,extension:t}),"$"].join("");return new RegExp(g)},mC=({format:t,delimiter:e})=>{if(typeof e=="string"&&e.trim())return[e,e];if(Array.isArray(e)&&e.length===2)return e;if(t==="json-frontmatter")return["{","}"];if(t==="toml-frontmatter")return["+++","+++"];if(t==="yaml-frontmatter")return["---","---"]},vC=({rawCollection:t,file:e,_i18n:n})=>{const{folder:r,path:i,extension:o,format:s,frontmatter_delimiter:a,yaml_quote:c}=t,u=rd(t),d=e?.file?tn(e.file):void 0,f=d?fn(d).extension:o,h=e?.format??s,p=gC({format:h,extension:f}),g=Nj({format:h,extension:p}),m=e?.frontmatter_delimiter??a,v=u?tn(r):void 0,b=u?hi(t)?.name:void 0;return c!==void 0&&fp("yaml_quote"),{extension:p,format:g,basePath:v,subPath:u?i:void 0,fullPathRegEx:v!==void 0?Ij({extension:p,format:g,basePath:v,subPath:i,indexFileName:b,_i18n:n}):void 0,fullPath:d?y_({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:mC({format:g,delimiter:m}),yamlQuote:!!c}},Oj="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Oj);const Rj={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"},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",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"}},Dj=Object.freeze(Object.defineProperty({__proto__:null,strings:Rj},Symbol.toStringTag,{value:"Module"})),Mj={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:"パスワードを隠す"},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:"斜体",code:"コード",link:"リンク",insert_link:"リンクを挿入",update_link:"リンクを更新",text:"テキスト",url:"URL",edit_in_markdown:"マークダウンで編集",converter_error:"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。",language:"言語",plain_text:"プレーンテキスト"}},Fj=Object.freeze(Object.defineProperty({__proto__:null,strings:Mj},Symbol.toStringTag,{value:"Module"})),bC=({fallbackLocale:t="en",initialLocale:e="en"}={})=>{Object.entries(Object.assign({"../locales/en.js":Dj,"../locales/ja.js":Fj})).forEach(([r,{strings:i}])=>{const[,o]=r.match(/([a-zA-Z-]+)\.js/);Zb(o,{_sui:i})}),gO({fallbackLocale:t,initialLocale:e})},zj=["ar","fa","he","ur"],jj=t=>t&&zj.includes(t.split("-")[0])?"rtl":"ltr";Ut.subscribe(t=>{document.documentElement.dir=jj(t)});var Bj=U("<span> </span>");const Uj={hash:"svelte-1b3zdip",code:".icon.small-arrow.svelte-1b3zdip {overflow:hidden;width:12px;text-indent:-6px;}"};function Je(t,e){ke(t,Uj);let n=rt(e,["$$slots","$$events","$$legacy","class","name"]);var r=Bj();mt(r,()=>({...n,class:`sui icon material-symbols-outlined ${e.class??""}`,"aria-hidden":!("aria-label"in n)}),void 0,void 0,"svelte-1b3zdip");var i=z(r);Z(()=>te(i,e.name)),$(t,r)}var qj=U("<div><!> <!></div>");const Vj={hash:"svelte-lucmy9",code:".alert.svelte-lucmy9 {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-lucmy9 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-lucmy9 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-lucmy9 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-lucmy9 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}"};function Rn(t,e){ke(t,Vj);let n=rt(e,["$$slots","$$events","$$legacy","status","children","icon"]);var r=qj();mt(r,()=>({...n,role:"alert",class:`sui alert ${e.status??""}`}),void 0,void 0,"svelte-lucmy9");var i=z(r);{var o=c=>{var u=X(),d=M(u);Me(d,()=>e.icon),$(c,u)},s=c=>{{let u=_(()=>e.status==="success"?"check_circle":e.status);Je(c,{get name(){return l(u)}})}};q(i,c=>{e.icon?c(o):c(s,!1)})}var a=j(i,2);Me(a,()=>e.children??Be),$(t,r)}const _C=()=>navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"),qv=(t,e)=>{const{ctrlKey:n,metaKey:r,altKey:i,shiftKey:o,code:s}=t,a=s.replace(/^(?:Digit|Key)(.)$/,"$1");return e.split(/\s+/).some(c=>{const u=c.split("+");return u.includes("Ctrl")&&!n||u.includes("Meta")&&!r||u.includes("Alt")&&!i||u.includes("Shift")&&!o||!u.includes("Ctrl")&&n||!u.includes("Meta")&&r||!u.includes("Alt")&&i||!u.includes("Shift")&&o?!1:u.filter(d=>!["Ctrl","Meta","Alt","Shift"].includes(d)).every(d=>d.toUpperCase()===a.toUpperCase())})},yC=(t,e="")=>{let n;const r=s=>{const{disabled:a,offsetParent:c}=t,{top:u,left:d}=t.getBoundingClientRect();!qv(s,n)||!c||(a&&t.style.setProperty("pointer-events","auto"),document.elementsFromPoint(d+4,u+4).includes(t)&&(s.preventDefault(),a||(t.focus(),t.click())),a&&t.style.removeProperty("pointer-events"))},i=()=>{globalThis.removeEventListener("keydown",r,{capture:!0}),t.removeAttribute("aria-keyshortcuts")},o=()=>{n=e?e.replace(/\bAccel\b/g,_C()?"Meta":"Ctrl"):void 0,n&&(globalThis.addEventListener("keydown",r,{capture:!0}),t.setAttribute("aria-keyshortcuts",n))};return o(),{update(s){i(),o()},destroy(){i()}}};var Hj=U('<span role="none" class="sui truncated-text svelte-19c19au"><!></span>');const Kj={hash:"svelte-19c19au",code:".truncated-text.svelte-19c19au {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}"};function Cr(t,e){ke(t,Kj);let n=R(e,"lines",3,1),r=R(e,"children",3,void 0);var i=Hj(),o=z(i);Me(o,()=>r()??Be),Z(()=>Vi(i,`-webkit-line-clamp: ${n()??""}; line-clamp: ${n()??""};`)),$(t,i)}const sy=(t="e",e=7)=>[t,ai(e)].join("-"),vc=t=>{if(t)return new Promise(e=>{const n=new IntersectionObserver(([r])=>{r.isIntersecting&&(n.disconnect(),e(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(t)})})};let Gj=class{open=nt(!1);style=nt({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0});observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:n,rootBounds:r})=>{if(!n||!r)return;const i=this.popupElement.querySelector(".content"),{scrollHeight:o,scrollWidth:s}=i,a=n.top-8,c=r.height-n.bottom-8;let{position:u}=this,d;u.startsWith("bottom-")&&o>c&&(a>c?(u=u.replace("bottom-","top-"),d=a):d=c),u.endsWith("-left")&&n.left+s>r.width-8&&(u=u.replace("-left","-right"));const f=u.startsWith("bottom-")?`${Math.round(n.bottom)}px`:u.endsWith("-top")?`${Math.round(n.top)}px`:"auto",h=u.startsWith("left-")?`${Math.round(r.width-n.left)}px`:u.endsWith("-right")?`${Math.round(r.width-n.right)}px`:"auto",p=u.startsWith("top-")?`${Math.round(r.height-n.top)}px`:u.endsWith("-bottom")?`${Math.round(r.height-n.bottom)}px`:"auto",g=u.startsWith("right-")?`${Math.round(n.right)}px`:u.endsWith("-left")?`${Math.round(n.left)}px`:"auto",m={inset:[f,h,p,g].join(" "),zIndex:1e3,minWidth:`${Math.round(n.width)}px`,maxWidth:u.endsWith("-left")?`${Math.round(r.width-n.left-8)}px`:`${Math.round(n.right-8)}px`,height:d?`${Math.round(d)}px`:"auto"};JSON.stringify(m)!==JSON.stringify(ae(this.style))&&this.style.set(m)})});constructor(e,n,r,i){this.anchorElement=e,this.popupElement=n,this.position=r,this.positionBaseElement=i??e,this.id=sy("popup"),this.anchorElement.setAttribute("aria-controls",this.id),this.popupElement.setAttribute("id",this.id),au(e,"click",()=>{!this.isDisabled&&!this.isReadOnly&&this.open.set(!ae(this.open))}),au(e,"keydown",o=>{const{key:s,ctrlKey:a,metaKey:c,shiftKey:u,altKey:d}=o,f=u||d||a||c;!this.isDisabled&&!this.isReadOnly&&["Enter"," "].includes(s)&&!f&&(o.preventDefault(),o.stopPropagation(),this.open.set(!ae(this.open)))}),au(e,"transitionstart",()=>{this.anchorElement.closest(".hiding, .hidden, [hidden]")&&this.hideImmediately()}),new IntersectionObserver(([o])=>{!o.isIntersecting&&ae(this.open)&&this.hideImmediately()}).observe(this.anchorElement),au(this.popupElement,"click",o=>{o.stopPropagation();const s=o.target;ae(this.open)&&(s===this.popupElement||s.matches('[role^="menuitem"], [role="option"]'))&&this.open.set(!1)}),au(this.popupElement,"keydown",o=>{const{key:s,ctrlKey:a,metaKey:c,shiftKey:u,altKey:d}=o;s==="Escape"&&!(u||d||a||c)&&(o.preventDefault(),o.stopPropagation(),this.open.set(!1))}),this.open.subscribe(o=>{o?this.checkPosition():this.anchorElement.getAttribute("aria-expanded")==="true"&&(this.anchorElement.focus(),this.anchorElement.removeAttribute("aria-controls")),this.anchorElement.setAttribute("aria-expanded",String(o))}),new ResizeObserver(()=>{this.checkPosition()}).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.set(!1),await Lt(50),this.popupElement.hidden=!1}};const Wj=(...t)=>new Gj(...t);function Yj(t,e){var n=X(),r=M(n);Me(r,()=>e.children??Be),$(t,n)}var Jj=U("<dialog><!> <!></dialog>");const Xj={hash:"svelte-egerec",code:"dialog.svelte-egerec {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-egerec::backdrop {background:transparent;}dialog.backdrop.svelte-egerec {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-egerec {transition-duration:50ms;opacity:1;}dialog.svelte-egerec:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-egerec {transition-duration:1ms !important;}dialog.svelte-egerec:not(.active) {pointer-events:none !important;}dialog.svelte-egerec:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}"};function wC(t,e){le(e,!0),ke(t,Xj);const n=E=>{var k=Jj(),S=({target:P})=>{i()&&a()&&P?.matches("dialog")&&(i(i().returnValue="cancel",!0),r(!1))},C=P=>{P.preventDefault(),i()&&c()&&(i(i().returnValue="cancel",!0),r(!1))};mt(k,P=>({...d,inert:!l(p),role:o(),class:`sui modal ${e.class??""}`,onclick:S,oncancel:C,[xr]:P}),[()=>({backdrop:s(),open:l(p),active:l(g)})],void 0,"svelte-egerec");var x=z(k);Me(x,()=>e.extraContent??Be);var T=j(x,2);{var A=P=>{var L=X(),I=M(L);Me(I,()=>e.children??Be),$(P,L)};q(T,P=>{(l(m)||u())&&P(A)})}bt(k,P=>i(P),()=>i()),$(E,k)};let r=R(e,"open",15,!1),i=R(e,"dialog",15),o=R(e,"role",3,"dialog"),s=R(e,"showBackdrop",3,!1),a=R(e,"lightDismiss",3,!1),c=R(e,"escapeDismiss",3,!0),u=R(e,"keepContent",3,!1),d=rt(e,["$$slots","$$events","$$legacy","open","dialog","class","role","showBackdrop","lightDismiss","escapeDismiss","keepContent","children","extraContent","onOpening","onOpen","onClosing","onOk","onCancel","onClose"]);const f=()=>{i()?.focus()},h=E=>{i()&&(i(i().returnValue=E,!0),r(!1))};let p=ie(!1),g=ie(!1),m=ie(!1);const v=async()=>new Promise(E=>{const k=S=>{S.target===i()&&(i().removeEventListener("transitionend",k),E())};i()?.addEventListener("transitionend",k)}),b=async()=>{!i()||i()?.open||(e.onOpening?.(new CustomEvent("Opening")),G(m,!0),i().showModal(),e.onOpen?.(new CustomEvent("Open")),await Lt(0),G(p,!0),await v(),G(g,!0))},y=async()=>{if(!i()||!i().open)return;const{returnValue:E}=i();e.onClosing?.(new CustomEvent("Closing")),document.body.inert=!0,i().close(),document.body.inert=!1,G(g,!1),G(p,!1),await v(),G(m,!1),E==="ok"&&e.onOk?.(new CustomEvent("Ok")),E==="cancel"&&e.onCancel?.(new CustomEvent("Cancel")),e.onClose?.(new CustomEvent("Close",{detail:{returnValue:E}})),i(i().returnValue="",!0)};De(()=>{r()?b():y()}),jt(()=>{const E=cp(Yj,{target:document.querySelector(".sui.app-shell")??document.body,props:{children:n}});return()=>{i()?.close(),gE(E)}});var w={focus:f,close:h};return ce(w)}var Zj=U('<div role="none"><!></div>');const Qj={hash:"svelte-up54bt",code:".content.svelte-up54bt {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-up54bt {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-up54bt .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-up54bt {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-up54bt .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-up54bt {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-up54bt {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-up54bt {transform:scale(90%);}.content.touch.combobox.svelte-up54bt .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-up54bt {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-up54bt {transition-duration:300ms;opacity:0;transform:translateY(-8px);}"};function Mp(t,e){le(e,!0),ke(t,Qj);const n=()=>V(l(w),"$style",r),[r,i]=me(),o=L=>{var I=Zj();let N,D;var B=z(I);Me(B,()=>e.children??Be),bt(I,H=>c(H),()=>c()),Z((H,W)=>{Se(I,"hidden",!s()),N=rn(I,1,`content ${e.class??""} ${l(y)??""}`,"svelte-up54bt",N,H),D=Vi(I,"",D,W)},[()=>({touch:l(C)}),()=>({inset:n().inset,"z-index":n().zIndex,"min-width":n().minWidth,"max-width":n().maxWidth,"max-height":n().height,visibility:n().inset?void 0:"hidden"})]),Hr("mouseenter",I,()=>{a(!0),h()&&window.clearTimeout(k)}),Hr("mouseleave",I,()=>{a(!1),h()&&(k=window.setTimeout(()=>{s(!1)},200))}),$(L,I)};let s=R(e,"open",15,!1),a=R(e,"hovered",15,!1),c=R(e,"content",15,void 0),u=R(e,"showBackdrop",3,void 0),d=R(e,"position",3,"bottom-left"),f=R(e,"positionBaseElement",3,void 0),h=R(e,"parentDialogElement",3,void 0),p=R(e,"touchOptimized",3,!1),g=rt(e,["$$slots","$$events","$$legacy","open","hovered","content","class","showBackdrop","anchor","position","positionBaseElement","parentDialogElement","touchOptimized","children","onOpen"]),m=ie(!1),v=ie(void 0),b=ie(!1),y=ie(void 0),w=ie(St(nt({inset:void 0,zIndex:void 0,width:void 0,height:void 0}))),E,k=0;const S=()=>{E=Wj(e.anchor,l(v),d(),f()),UN(G(w,E.style,!0),"$style",r),E.open.subscribe(L=>{s(L)}),G(y,e.anchor?.getAttribute("aria-haspopup")??void 0,!0),G(m,!0)};De(()=>{h()&&!l(v)&&c()&&(G(v,h()),l(v).append(c()))}),De(()=>{e.anchor&&l(v)&&!l(m)&&S()}),De(()=>{h()&&s()&&E?.checkPosition()});const C=_(()=>p()&&l(b));jt(()=>{G(b,globalThis.matchMedia("(pointer: coarse)").matches,!0)});var x=X(),T=M(x);{var A=L=>{o(L)},P=L=>{{let I=_(()=>u()??l(C));wC(L,on(()=>g,{role:"none",class:"popup",get showBackdrop(){return l(I)},lightDismiss:!0,keepContent:!0,onOpen:async N=>{if(e.onOpen?.(N),await Lt(100),!c())return;const D=c().querySelector('[tabindex]:not([aria-disabled="true"])');D?D.focus():(c(c().tabIndex=-1,!0),c().focus())},get dialog(){return l(v)},set dialog(N){G(v,N,!0)},get open(){return s()},set open(N){s(N)},children:(N,D)=>{o(N)},$$slots:{default:!0}}))}};q(T,L=>{h()?L(A):L(P,!1)})}$(t,x),ce(),i()}var eB=U('<span role="none" class="label svelte-4n8wor"><!></span>'),tB=U('<span role="none" class="label svelte-4n8wor"><!></span>'),nB=U('<span role="none" class="label svelte-4n8wor"><!></span>'),rB=U("<!> <!>",1),iB=U("<button><!> <!> <!></button> <!>",1);const oB={hash:"svelte-4n8wor",code:'button.svelte-4n8wor {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-4n8wor {display:none !important;}button.svelte-4n8wor:not(:disabled):focus-visible {z-index:1;}button.svelte-4n8wor:is(.primary:where(.svelte-4n8wor), .secondary:where(.svelte-4n8wor), .tertiary:where(.svelte-4n8wor), .ghost:where(.svelte-4n8wor)) {justify-content:center;border-width:1px;}button.svelte-4n8wor:is(.primary:where(.svelte-4n8wor), .secondary:where(.svelte-4n8wor), .tertiary:where(.svelte-4n8wor), .ghost:where(.svelte-4n8wor)) .label:where(.svelte-4n8wor):only-child {padding:0 4px;}button.primary.svelte-4n8wor {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-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor {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-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor {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-4n8wor .label:where(.svelte-4n8wor) {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-4n8wor .label:where(.svelte-4n8wor) {text-decoration:underline;}button.link.svelte-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus, :where(.svelte-4n8wor):active) .label:where(.svelte-4n8wor) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-4n8wor {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-4n8wor .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-4n8wor {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-4n8wor {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-4n8wor {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-4n8wor {flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-4n8wor {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-4n8wor {background-color:var(--sui-error-background-color);}button.svelte-4n8wor .label:where(.svelte-4n8wor) {padding:0 4px;}button.svelte-4n8wor > * {pointer-events:none;}button.svelte-4n8wor :has([slot=start-icon] + [slot=end-icon]) {gap:0;}'};function Ze(t,e){le(e,!0),ke(t,oB);let n=R(e,"element",15),r=R(e,"class",3,""),i=R(e,"type",3,"button"),o=R(e,"role",3,"button"),s=R(e,"name",3,void 0),a=R(e,"value",3,void 0),c=R(e,"valueType",19,()=>typeof a()),u=R(e,"hidden",3,!1),d=R(e,"disabled",3,!1),f=R(e,"readonly",3,!1),h=R(e,"pressed",3,void 0),p=R(e,"keyShortcuts",3,void 0),g=R(e,"label",3,""),m=R(e,"lines",3,1),v=R(e,"variant",3,void 0),b=R(e,"size",3,"medium"),y=R(e,"iconic",3,!1),w=R(e,"pill",3,!1),E=R(e,"flex",3,!1),k=R(e,"popupPosition",3,"bottom-left"),S=R(e,"showPopupBackdrop",3,!1),C=rt(e,["$$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"]);var x=iB(),T=M(x);mt(T,H=>({...C,class:`sui button ${v()??""} ${b()??""} ${r()??""}`,type:i(),name:s(),value:a(),hidden:u(),disabled:d(),role:o(),"aria-hidden":u(),"aria-disabled":d(),"aria-readonly":f(),"aria-pressed":h(),"data-type":c(),"data-name":s(),"data-label":g(),"data-value":a(),[xr]:H}),[()=>({iconic:y(),pill:w(),flex:E()})],void 0,"svelte-4n8wor");var A=z(T);Me(A,()=>e.startIcon??Be);var P=j(A,2);{var L=H=>{var W=X(),Y=M(W);{var O=K=>{var J=eB(),Q=z(J);Cr(Q,{get lines(){return m()},children:(oe,re)=>{var ee=Oe();Z(()=>te(ee,g())),$(oe,ee)},$$slots:{default:!0}}),$(K,J)},F=K=>{var J=tB(),Q=z(J);Me(Q,()=>e.children??Be),$(K,J)};q(Y,K=>{g()?K(O):K(F,!1)})}$(H,W)},I=H=>{var W=rB(),Y=M(W);{var O=K=>{var J=nB(),Q=z(J);Cr(Q,{get lines(){return m()},children:(oe,re)=>{var ee=Oe();Z(()=>te(ee,g())),$(oe,ee)},$$slots:{default:!0}}),$(K,J)};q(Y,K=>{g()&&K(O)})}var F=j(Y,2);Me(F,()=>e.children??Be),$(H,W)};q(P,H=>{v()==="link"?H(L):H(I,!1)})}var N=j(P,2);Me(N,()=>e.endIcon??Be),bt(T,H=>n(H),()=>n()),Gs(T,(H,W)=>yC?.(H,W),p);var D=j(T,2);{var B=H=>{Mp(H,{get anchor(){return n()},get position(){return k()},get showBackdrop(){return S()},touchOptimized:!0,children:(W,Y)=>{var O=X(),F=M(O);Me(F,()=>e.popup),$(W,O)},$$slots:{default:!0}})};q(D,H=>{e.popup&&H(B)})}$(t,x),ce()}var sB=U('<div role="none"><!></div>'),aB=U('<div role="none"><div role="alert" class="message svelte-145subq"><!> <!></div> <!></div>');const lB={hash:"svelte-145subq",code:".infobar.svelte-145subq {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-145subq {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-145subq {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-145subq {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-145subq {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-145subq {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, left);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 0 8px);}.message.svelte-145subq button {font-size:inherit !important;}.message.svelte-145subq .icon {font-size:16px; /* !hardcoded */}"};function Fp(t,e){le(e,!0),ke(t,lB);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"show",15,!0),s=R(e,"dismissible",3,!0),a=R(e,"status",3,"info"),c=R(e,"children",3,void 0),u=R(e,"icon",3,void 0);var d=X(),f=M(d);{var h=p=>{var g=aB(),m=z(g),v=z(m);{var b=S=>{var C=X(),x=M(C);Me(x,u),$(S,C)},y=S=>{{let C=_(()=>a()==="success"?"check_circle":a());Je(S,{get name(){return l(C)}})}};q(v,S=>{u()?S(b):S(y,!1)})}var w=j(v,2);Me(w,()=>c()??Be);var E=j(m,2);{var k=S=>{var C=sB(),x=z(C);{let T=_(()=>n()("_sui.dismiss"));Ze(x,{iconic:!0,size:"small",variant:"ghost",get"aria-label"(){return l(T)},onclick:()=>{o(!1)},children:(A,P)=>{Je(A,{name:"close"})},$$slots:{default:!0}})}$(S,C)};q(E,S=>{s()&&S(k)})}Z(()=>rn(g,1,`infobar ${a()??""}`,"svelte-145subq")),$(p,g)};q(f,p=>{o()&&p(h)})}$(t,d),ce(),i()}var cB=U("<div><!></div>");const uB={hash:"svelte-k3bskt",code:".bottom-navigation.svelte-k3bskt {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-k3bskt:is([inert]:where(.svelte-k3bskt), [hidden]:where(.svelte-k3bskt)) {display:none;}.bottom-navigation.svelte-k3bskt .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}"};function dB(t,e){ke(t,uB);let n=rt(e,["$$slots","$$events","$$legacy","class","children"]);var r=cB();mt(r,()=>({role:"none",class:`sui bottom-navigation ${e.class??""}`,...n}),void 0,void 0,"svelte-k3bskt");var i=z(r);Me(i,()=>e.children??Be),$(t,r)}var fB=U("<div><!></div>");const hB={hash:"svelte-1fpgrih",code:".button-group.svelte-1fpgrih {flex:none;display:inline-flex;align-items:center;}"};function pB(t,e){ke(t,hB);let n=rt(e,["$$slots","$$events","$$legacy","class","children"]);var r=fB();mt(r,()=>({...n,role:"group",class:`sui button-group ${e.class??""}`}),void 0,void 0,"svelte-1fpgrih");var i=z(r);Me(i,()=>e.children??Be),$(t,r)}var gB=U('<div role="none" class="sui floating-action-button-wrapper svelte-22ja6j"><!></div>');const mB={hash:"svelte-22ja6j",code:`.floating-action-button-wrapper.svelte-22ja6j {display:contents;}
|
|
369
|
+
`,o=await vs(i);if(n.push(...Object.values(o.project.repository).map(({lastCommit:s})=>s)),!e.length)break}return n},Xz=async(t,e,n)=>{const r=t.map(({path:i,sha:o},s)=>{const{size:a,rawTextBlob:c}=e[s],u=n[s],d={sha:o,size:Number(a),text:c,meta:{}};if(u){const{author:f,authorName:h,authorEmail:p,committedDate:g}=u,{id:m,username:v}=f??{},b=m?.match(/\d+/);d.meta={commitAuthor:{name:h,email:p,id:b?Number(b[0]):void 0,login:v},committedDate:new Date(g)}}return[i,d]});return Object.fromEntries(r)},Zz=async t=>{const e=t.map(({path:i})=>i),n=await Wz(e),r=e.length<100?await Jz(e):[];return Xz(t,n,r)},Qz=async()=>{await zz(),await ry({repository:Xi,fetchDefaultBranchName:Bz,fetchLastCommit:qz,fetchFileList:Kz,fetchFileContents:Zz})},ej=async t=>{const{owner:e,repo:n,branch:r=""}=Xi,{path:i}=t;return Qn(`/projects/${encodeURIComponent(`${e}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:"blob"})},tj="https://status.gitlab.com/",nj="https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7",rj=async()=>{try{const{result:{status_overall:{status_code:t}}}=await Od(nj);if(t===100)return"none";if([200,300,400].includes(t))return"minor";if([500,600].includes(t))return"major"}catch{}return"unknown"},ij=()=>{const{backend:t}=ae($t)??{};if(t?.name!==Ta)return;const{repo:e,branch:n,base_url:r=Iz,auth_endpoint:i=Oz,app_id:o="",api_root:s=v0,graphql_api_root:a=s.replace(/\/api\/.+$/,"/api/graphql")}=t,{owner:c,repo:u}=e.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},d=`${c}/${u}`,f=`${tn(r)}/${tn(i)}`,h=ty(s,d);return Object.assign(Xi,{service:Ta,label:aC,owner:c,repo:u,branch:n,repoURL:h,newPatURL:Dz(h),databaseName:`${Ta}:${d}`,isSelfHosted:s!==v0},lC(h,n)),Object.assign(fl,{clientId:o,authURL:f,tokenURL:f.replace("/authorize","/token"),authScheme:"Bearer",restBaseURL:tn(s),graphqlBaseURL:tn(a)}),Object.assign(Rd,{fullPath:d,branch:n}),ae(ft).devModeEnabled&&console.info("repositoryInfo",Xi),Xi},oj={isGit:!0,name:Ta,label:aC,repository:Xi,statusDashboardURL:tj,checkStatus:rj,init:ij,signIn:Mz,signOut:Fz,fetchFiles:Qz,fetchBlob:ej,commitChanges:Vz},Dd={github:Nz,gitlab:oj,gitea:az,local:S3,"test-repo":N3},sj=Object.keys(Dd).filter(t=>t!=="local"),aj=Object.fromEntries(Object.entries(Dd).filter(([,t])=>t.isGit)),Vc=nt(),wn=sn([Vc],([t],e,n)=>{n(r=>{const i=t?Dd[t]:void 0;return i&&i!==r&&i.init(),i})}),xh=nt(!0),Yf=[],b0=(t,{globalMediaFolder:e,globalPublicFolder:n})=>t.trim().replace("{{media_folder}}",`/${e}`).replace("{{public_folder}}",`/${n}`).replace("//","/"),lj=({collectionName:t,fileName:e,mediaFolder:n,publicFolder:r,baseFolder:i,globalFolders:o})=>{n=b0(n,o),r=r!==void 0?b0(r,o):n;const s=!n.startsWith("/");return{collectionName:t,fileName:e,internalPath:tn(s?i??"":n),publicPath:r===""||/^[.@]/.test(r)?r:`/${tn(r)}`,entryRelative:s,hasTemplateTags:/{{.+?}}/.test(n)}},cC=t=>{if(t.mediaFolder===void 0)return;const e=lj(t),{globalMediaFolder:n,globalPublicFolder:r}=t.globalFolders;!e.entryRelative&&e.internalPath===n&&e.publicPath===r||Yf.push(e)},_0=({collectionName:t,files:e,globalFolders:n})=>{Ap(e).forEach(r=>{const{name:i,file:o,media_folder:s,public_folder:a}=r;cC({collectionName:t,fileName:i,mediaFolder:s,publicFolder:a,baseFolder:fn(o).dirname,globalFolders:n})})},cj=t=>{Yf.length=0;const{media_folder:e,public_folder:n,collections:r,singletons:i}=t,o=tn(e).replace(/^\.$/,""),s=n?`/${tn(n)}`.replace(/^\/@/,"@"):`/${o}`,a={collectionName:void 0,internalPath:void 0,publicPath:void 0,entryRelative:!1,hasTemplateTags:!1},c={collectionName:void 0,internalPath:o,publicPath:s,entryRelative:!1,hasTemplateTags:!1},u={globalMediaFolder:o,globalPublicFolder:s};return Qs({collections:r}).forEach(d=>{const{name:f,files:h,folder:p,path:g,media_folder:m,public_folder:v}=d;cC({collectionName:f,mediaFolder:m===void 0&&g!==void 0?"":m,publicFolder:v,baseFolder:p,globalFolders:u}),h?.length&&_0({collectionName:f,files:h,globalFolders:u})}),i?.length&&_0({collectionName:"_singletons",files:i,globalFolders:u}),Yf.sort((d,f)=>xi(d.internalPath??"",f.internalPath??"")),[a,c,...Yf]},As={SINGLE_FILE:"single_file",MULTIPLE_FILES:"multiple_files",MULTIPLE_FOLDERS:"multiple_folders",MULTIPLE_FOLDERS_I18N_ROOT:"multiple_folders_i18n_root"},Fu="_default",Bv={key:"translationKey",value:"{{slug}}"},so={i18nEnabled:!1,saveAllLocales:!0,allLocales:[Fu],initialLocales:[Fu],defaultLocale:Fu,structure:As.SINGLE_FILE,structureMap:{i18nSingleFile:!1,i18nMultiFile:!1,i18nMultiFolder:!1,i18nRootMultiFolder:!1},canonicalSlug:{...Bv},omitDefaultLocaleFromFileName:!1},uj=(t,e)=>{const n=ae($t);if(!Yt(n.i18n))return;const r=structuredClone(n.i18n);if(t.i18n||oy(t)){if(Yt(t.i18n)&&Object.assign(r,t.i18n),e)if(e.i18n)Yt(e.i18n)&&Object.assign(r,e.i18n);else return}else return;return r},dj=(t,e)=>e?e.file.includes("{{locale}}")?As.MULTIPLE_FILES:As.SINGLE_FILE:t,fj=(t,e)=>({i18nSingleFile:t&&e===As.SINGLE_FILE,i18nMultiFile:t&&e===As.MULTIPLE_FILES,i18nMultiFolder:t&&e===As.MULTIPLE_FOLDERS,i18nRootMultiFolder:t&&e===As.MULTIPLE_FOLDERS_I18N_ROOT}),hj=(t,e,n)=>t?n&&e.includes(n)?n:e[0]:Fu,pj=(t,e,n)=>t==="all"?e:t==="default"?[n]:e.filter(r=>r===n||(Array.isArray(t)?t.includes(r):!0)),Md=(t,e)=>{const n=uj(t,e),{structure:r=As.SINGLE_FILE,locales:i=[],default_locale:o,initial_locales:s,save_all_locales:a=!0,canonical_slug:c={key:void 0,value:void 0},omit_default_locale_from_filename:u=!1}=n??{};n?.save_all_locales!==void 0&&fp("save_all_locales");const{key:d=Bv.key,value:f=Bv.value}=c,h=i.length>0,p=h?i:[Fu],g=hj(h,p,o),m=dj(r,e),v=fj(h,m),b=h?a===!0&&s===void 0:!0,y=pj(s,p,g),w=u&&(e?/\.{{locale}}\.[a-zA-Z0-9]+$/.test(e.file):v.i18nMultiFile);return{i18nEnabled:h,saveAllLocales:b,allLocales:p,defaultLocale:g,initialLocales:y,structure:m,structureMap:v,canonicalSlug:{key:d,value:f},omitDefaultLocaleFromFileName:w}},gj=({collection:t,file:e})=>{const n=tn(e.file);if(!n.includes("{{locale}}"))return{_default:n};const r=Md(t,e);return Object.fromEntries(r.allLocales.map(i=>[i,y_({_i18n:r,locale:i,path:n})]))},uC=(t,e)=>{if(Cp(e))return{collectionName:t.name,fileName:e.name,filePathMap:gj({collection:t,file:e})}},dC=(t,e)=>xi(Object.values(t.filePathMap??{})[0],Object.values(e.filePathMap??{})[0]),mj=({collections:t})=>Qs({collections:t,type:"entry",visible:!0}).map(e=>{const{name:n,folder:r}=e,i=tn(r),{allLocales:o,structureMap:{i18nRootMultiFolder:s}}=Md(e);return{collectionName:n,folderPath:i,folderPathMap:Object.fromEntries(o.map(a=>[a,s?`${a}/${i}`:i]))}}).sort((e,n)=>xi(e.folderPath??"",n.folderPath??"")),vj=({collections:t})=>Qs({collections:t,type:"file",visible:!0}).map(e=>(e.files??[]).map(n=>uC(e,n))).flat(1).filter(e=>!!e).sort(dC),bj=({singletons:t})=>{const e=Array.isArray(t)?Ap(t):[];if(!e.length)return[];const n={name:"_singletons",files:e};return e.map(r=>uC(n,r)).filter(r=>!!r).sort(dC)},_j=t=>[...mj(t),...vj(t),...bj(t)],yj=["text/yaml","application/yaml","application/json"],wj=async({href:t,type:e="application/yaml"})=>{let n;if(!yj.includes(e))throw new Error(ae(ue)("config.error.parse_failed"),{cause:new Error(ae(ue)("config.error.parse_failed_unsupported_type"))});try{n=await fetch(t)}catch(s){throw new Error(ae(ue)("config.error.fetch_failed"),{cause:s})}const{ok:r,status:i}=n;if(!r)throw new Error(ae(ue)("config.error.fetch_failed"),{cause:new Error(ae(ue)("config.error.fetch_failed_not_ok",{values:{status:i}}))});let o;try{e==="application/json"?o=n.json():o=I$(await n.text(),{merge:!0,maxAliasCount:-1})}catch(s){throw new Error(ae(ue)("config.error.parse_failed"),{cause:s})}if(!Yt(o))throw new Error(ae(ue)("config.error.parse_failed"),{cause:new Error(ae(ue)("config.error.parse_failed_invalid_object"))});return o},xj=t=>{if(t.endsWith("/"))return`${t}config.yml`;const e=t.split("/");return e.pop()?.includes(".")?`${e.join("/")}/config.yml`:`${t}/config.yml`},y0=async()=>{const t=[...document.querySelectorAll('link[rel="cms-config-url"]')].map(({href:n,type:r})=>({href:n,type:r}));t.length||t.push({href:xj(window.location.pathname)});const e=await Promise.all(t.map(n=>wj(n)));return e.length===1?e[0]:Jb.all(e)},kj={DEV:!1},{DEV:Sj}=kj,Ej=void 0,fC={},$t=nt(),iy=nt(),Uv=nt(),$j=t=>{if(!Array.isArray(t.collections)&&!Array.isArray(t.singletons))throw new Error(ae(ue)("config.error.no_collection"));if(!t.backend)throw new Error(ae(ue)("config.error.missing_backend"));if(!t.backend.name)throw new Error(ae(ue)("config.error.missing_backend_name"));if(!sj.includes(t.backend.name))throw new Error(ae(ue)("config.error.unsupported_backend",{values:{name:t.backend.name}}));if(Object.keys(aj).includes(t.backend.name)){const{repo:e,automatic_deployments:n}=t.backend;if(e===void 0)throw new Error(ae(ue)("config.error.missing_repository"));if(typeof e!="string"||!/(.+)\/([^/]+)$/.test(e))throw new Error(ae(ue)("config.error.invalid_repository"));n!==void 0&&fp("automatic_deployments")}if(t.backend.name==="gitlab"){const{auth_type:e,app_id:n}=t.backend;if(e==="implicit")throw new Error(ae(ue)("config.error.oauth_implicit_flow"));if(e==="pkce"&&!n)throw new Error(ae(ue)("config.error.oauth_no_app_id"))}if(t.backend.name==="gitea"){const{app_id:e}=t.backend;if(!e)throw new Error(ae(ue)("config.error.oauth_no_app_id"))}if(t.media_folder===void 0)throw new Error(ae(ue)("config.error.missing_media_folder"));if(typeof t.media_folder!="string")throw new Error(ae(ue)("config.error.invalid_media_folder"));if(t.public_folder!==void 0){if(typeof t.public_folder!="string")throw new Error(ae(ue)("config.error.invalid_public_folder"));if(/^\.{1,2}\//.test(t.public_folder))throw new Error(ae(ue)("config.error.public_folder_relative_path"));if(/^https?:/.test(t.public_folder))throw new Error(ae(ue)("config.error.public_folder_absolute_url"))}},Tj=async t=>{$t.set(void 0),Uv.set(void 0);try{if(!window.isSecureContext)throw new Error(ae(ue)("config.error.no_secure_context"));let e;if(t){if(!Yt(t))throw new Error(ae(ue)("config.error.parse_failed"));e=t,e.load_config_file!==!1&&(e=Jb(await y0(),e))}else e=await y0();Object.assign(fC,e),$j(e);const n=structuredClone(e);n._siteURL=n.site_url?.trim()||(Sj?Ej:window.location.origin),n._baseURL=dp(n._siteURL)?new URL(n._siteURL).origin:"",n.collections?.forEach(r=>{"folder"in r&&(r.folder==="."||r.folder==="/")&&(r.folder="")}),$t.set(n),iy.set(await za(g_(n)))}catch(e){Uv.set({message:e.name==="Error"?e.message:ae(ue)("config.error.unexpected")}),console.error(e,e.cause)}};$t.subscribe(t=>{if(ae(ft).devModeEnabled&&console.info("siteConfig",t),!t)return;const e=_j(t),n=cj(t);T_.set(e),Ys.set(n),ae(ft).devModeEnabled&&(console.info("allEntryFolders",e),console.info("allAssetFolders",n))});const Vn=nt(),hu=new Map,rd=t=>typeof t.folder=="string"&&!Array.isArray(t.files),kh=t=>t.folder===void 0&&Array.isArray(t.files),oy=t=>kh(t)&&t.name==="_singletons",Cj=(t,{visible:e=void 0,type:n=void 0}={})=>"divider"in t||e&&t.hide?!1:n==="entry"?rd(t):n==="file"?kh(t):n==="singleton"?oy(t):rd(t)||kh(t),Qs=({collections:t=ae($t)?.collections??[],visible:e,type:n}={})=>t.filter(r=>Cj(r,{visible:e,type:n})),Aj=()=>Qs({visible:!0})[0],Pj=t=>{if(!("folder"in t))return[];const{fields:e,thumbnail:n}=t;return typeof n=="string"?[n]:Array.isArray(n)?n:e?.length?e.filter(({widget:r="string"})=>["image","file"].includes(r)).map(({name:r})=>r):[]},Lj=(t,e)=>({...t,_i18n:e,_type:"entry",_file:vC({rawCollection:t,_i18n:e}),_thumbnailFieldNames:Pj(t)}),hC=(t,e,n)=>({...t,_i18n:e,_type:oy(t)?"singleton":"file",_fileMap:Object.fromEntries(n.filter(Cp).map(r=>{const i=Md(t,r),o=vC({rawCollection:t,file:r,_i18n:i});return[r.name,{...r,_file:o,_i18n:i}]}))}),pC=()=>{const t=ae($t)?.singletons;if(!Array.isArray(t))return;const e=Ap(t).map(i=>({...i,file:tn(i.file)}));if(!e.length)return;const n={name:"_singletons",files:e},r=Md(n);return hC(n,r,e)},Qr=t=>{const e=hu.get(t);if(e)return e;if(t==="_singletons"){const a=pC();return hu.set(t,a),a}const n=Qs().find(a=>a.name===t);if(!n){hu.set(t,void 0);return}const r=rd(n)?n:void 0,i=kh(n)?n:void 0;if(!r&&!i){hu.set(t,void 0);return}r?r.folder=tn(r.folder):i?.files.forEach(a=>{a.file&&(a.file=tn(a.file))});const o=Md(n),s=r?Lj(r,o):i?hC(i,o,i.files):void 0;return hu.set(t,s),s},cs=(t,{useSingular:e=!1}={})=>{const{_type:n,name:r,label:i,label_singular:o}=t;return n==="singleton"?ae(ue)("files"):e&&o?o:i||r},w0=t=>t?t==="_singletons"?9999999:ae($t)?.collections?.findIndex(({name:e})=>e===t)??-1:-1,Dp=new Map,gC=({extension:t,format:e})=>{const n=e?Dp.get(e)?.extension:void 0;return n||t||(e==="yaml"||e==="yml"?"yml":e==="toml"?"toml":e==="json"?"json":"md")},Nj=({extension:t,format:e})=>e||(t==="yaml"||t==="yml"?"yaml":t==="toml"?"toml":t==="json"?"json":["md","mkd","mkdn","mdwn","mdown","markdown"].includes(t)?"frontmatter":"yaml-frontmatter"),Ij=({extension:t,format:e,basePath:n,subPath:r,indexFileName:i,_i18n:o})=>{const{allLocales:s,defaultLocale:a,omitDefaultLocaleFromFileName:c,structureMap:{i18nMultiFile:u,i18nMultiFolder:d,i18nRootMultiFolder:f}}=o,h=r?`(?<subPath>${r.replace(/\//g,"\\/").replace(/{{.+?}}/g,"[^/]+?")}${i?`|${i}`:""})`:"(?<subPath>[^/]+?)",p=`(?<locale>${s.join("|")})`,g=["^",f?`${p}\\/`:"",n?`${Vt(n)}\\/`:"",d?`${p}\\/`:"",h,u?c?`(?:\\.(?<locale>${s.filter(m=>m!==a).join("|")}))?`:`\\.${p}`:"","\\.",gC({format:e,extension:t}),"$"].join("");return new RegExp(g)},mC=({format:t,delimiter:e})=>{if(typeof e=="string"&&e.trim())return[e,e];if(Array.isArray(e)&&e.length===2)return e;if(t==="json-frontmatter")return["{","}"];if(t==="toml-frontmatter")return["+++","+++"];if(t==="yaml-frontmatter")return["---","---"]},vC=({rawCollection:t,file:e,_i18n:n})=>{const{folder:r,path:i,extension:o,format:s,frontmatter_delimiter:a,yaml_quote:c}=t,u=rd(t),d=e?.file?tn(e.file):void 0,f=d?fn(d).extension:o,h=e?.format??s,p=gC({format:h,extension:f}),g=Nj({format:h,extension:p}),m=e?.frontmatter_delimiter??a,v=u?tn(r):void 0,b=u?hi(t)?.name:void 0;return c!==void 0&&fp("yaml_quote"),{extension:p,format:g,basePath:v,subPath:u?i:void 0,fullPathRegEx:v!==void 0?Ij({extension:p,format:g,basePath:v,subPath:i,indexFileName:b,_i18n:n}):void 0,fullPath:d?y_({_i18n:n,locale:n.defaultLocale,path:d}):void 0,fmDelimiters:mC({format:g,delimiter:m}),yamlQuote:!!c}},Oj="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Oj);const Rj={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"},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",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"}},Dj=Object.freeze(Object.defineProperty({__proto__:null,strings:Rj},Symbol.toStringTag,{value:"Module"})),Mj={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:"パスワードを隠す"},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:"斜体",code:"コード",link:"リンク",insert_link:"リンクを挿入",update_link:"リンクを更新",text:"テキスト",url:"URL",edit_in_markdown:"マークダウンで編集",converter_error:"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。",language:"言語",plain_text:"プレーンテキスト"}},Fj=Object.freeze(Object.defineProperty({__proto__:null,strings:Mj},Symbol.toStringTag,{value:"Module"})),bC=({fallbackLocale:t="en",initialLocale:e="en"}={})=>{Object.entries(Object.assign({"../locales/en.js":Dj,"../locales/ja.js":Fj})).forEach(([r,{strings:i}])=>{const[,o]=r.match(/([a-zA-Z-]+)\.js/);Zb(o,{_sui:i})}),gO({fallbackLocale:t,initialLocale:e})},zj=["ar","fa","he","ur"],jj=t=>t&&zj.includes(t.split("-")[0])?"rtl":"ltr";Ut.subscribe(t=>{document.documentElement.dir=jj(t)});var Bj=U("<span> </span>");const Uj={hash:"svelte-1b3zdip",code:".icon.small-arrow.svelte-1b3zdip {overflow:hidden;width:12px;text-indent:-6px;}"};function Je(t,e){ke(t,Uj);let n=rt(e,["$$slots","$$events","$$legacy","class","name"]);var r=Bj();mt(r,()=>({...n,class:`sui icon material-symbols-outlined ${e.class??""}`,"aria-hidden":!("aria-label"in n)}),void 0,void 0,"svelte-1b3zdip");var i=z(r);Z(()=>te(i,e.name)),$(t,r)}var qj=U("<div><!> <!></div>");const Vj={hash:"svelte-lucmy9",code:".alert.svelte-lucmy9 {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-lucmy9 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-lucmy9 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-lucmy9 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-lucmy9 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}"};function Rn(t,e){ke(t,Vj);let n=rt(e,["$$slots","$$events","$$legacy","status","children","icon"]);var r=qj();mt(r,()=>({...n,role:"alert",class:`sui alert ${e.status??""}`}),void 0,void 0,"svelte-lucmy9");var i=z(r);{var o=c=>{var u=X(),d=M(u);Me(d,()=>e.icon),$(c,u)},s=c=>{{let u=_(()=>e.status==="success"?"check_circle":e.status);Je(c,{get name(){return l(u)}})}};q(i,c=>{e.icon?c(o):c(s,!1)})}var a=j(i,2);Me(a,()=>e.children??Be),$(t,r)}const _C=()=>navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"),qv=(t,e)=>{const{ctrlKey:n,metaKey:r,altKey:i,shiftKey:o,code:s}=t,a=s.replace(/^(?:Digit|Key)(.)$/,"$1");return e.split(/\s+/).some(c=>{const u=c.split("+");return u.includes("Ctrl")&&!n||u.includes("Meta")&&!r||u.includes("Alt")&&!i||u.includes("Shift")&&!o||!u.includes("Ctrl")&&n||!u.includes("Meta")&&r||!u.includes("Alt")&&i||!u.includes("Shift")&&o?!1:u.filter(d=>!["Ctrl","Meta","Alt","Shift"].includes(d)).every(d=>d.toUpperCase()===a.toUpperCase())})},yC=(t,e="")=>{let n;const r=s=>{const{disabled:a,offsetParent:c}=t,{top:u,left:d}=t.getBoundingClientRect();!qv(s,n)||!c||(a&&t.style.setProperty("pointer-events","auto"),document.elementsFromPoint(d+4,u+4).includes(t)&&(s.preventDefault(),a||(t.focus(),t.click())),a&&t.style.removeProperty("pointer-events"))},i=()=>{globalThis.removeEventListener("keydown",r,{capture:!0}),t.removeAttribute("aria-keyshortcuts")},o=()=>{n=e?e.replace(/\bAccel\b/g,_C()?"Meta":"Ctrl"):void 0,n&&(globalThis.addEventListener("keydown",r,{capture:!0}),t.setAttribute("aria-keyshortcuts",n))};return o(),{update(s){i(),o()},destroy(){i()}}};var Hj=U('<span role="none" class="sui truncated-text svelte-19c19au"><!></span>');const Kj={hash:"svelte-19c19au",code:".truncated-text.svelte-19c19au {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}"};function Cr(t,e){ke(t,Kj);let n=R(e,"lines",3,1),r=R(e,"children",3,void 0);var i=Hj(),o=z(i);Me(o,()=>r()??Be),Z(()=>Vi(i,`-webkit-line-clamp: ${n()??""}; line-clamp: ${n()??""};`)),$(t,i)}const sy=(t="e",e=7)=>[t,ai(e)].join("-"),vc=t=>{if(t)return new Promise(e=>{const n=new IntersectionObserver(([r])=>{r.isIntersecting&&(n.disconnect(),e(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(t)})})};let Gj=class{open=nt(!1);style=nt({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0});observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:n,rootBounds:r})=>{if(!n||!r)return;const i=this.popupElement.querySelector(".content"),{scrollHeight:o,scrollWidth:s}=i,a=n.top-8,c=r.height-n.bottom-8;let{position:u}=this,d;u.startsWith("bottom-")&&o>c&&(a>c?(u=u.replace("bottom-","top-"),d=a):d=c),u.endsWith("-left")&&n.left+s>r.width-8&&(u=u.replace("-left","-right"));const f=u.startsWith("bottom-")?`${Math.round(n.bottom)}px`:u.endsWith("-top")?`${Math.round(n.top)}px`:"auto",h=u.startsWith("left-")?`${Math.round(r.width-n.left)}px`:u.endsWith("-right")?`${Math.round(r.width-n.right)}px`:"auto",p=u.startsWith("top-")?`${Math.round(r.height-n.top)}px`:u.endsWith("-bottom")?`${Math.round(r.height-n.bottom)}px`:"auto",g=u.startsWith("right-")?`${Math.round(n.right)}px`:u.endsWith("-left")?`${Math.round(n.left)}px`:"auto",m={inset:[f,h,p,g].join(" "),zIndex:1e3,minWidth:`${Math.round(n.width)}px`,maxWidth:u.endsWith("-left")?`${Math.round(r.width-n.left-8)}px`:`${Math.round(n.right-8)}px`,height:d?`${Math.round(d)}px`:"auto"};JSON.stringify(m)!==JSON.stringify(ae(this.style))&&this.style.set(m)})});constructor(e,n,r,i){this.anchorElement=e,this.popupElement=n,this.position=r,this.positionBaseElement=i??e,this.id=sy("popup"),this.anchorElement.setAttribute("aria-controls",this.id),this.popupElement.setAttribute("id",this.id),au(e,"click",()=>{!this.isDisabled&&!this.isReadOnly&&this.open.set(!ae(this.open))}),au(e,"keydown",o=>{const{key:s,ctrlKey:a,metaKey:c,shiftKey:u,altKey:d}=o,f=u||d||a||c;!this.isDisabled&&!this.isReadOnly&&["Enter"," "].includes(s)&&!f&&(o.preventDefault(),o.stopPropagation(),this.open.set(!ae(this.open)))}),au(e,"transitionstart",()=>{this.anchorElement.closest(".hiding, .hidden, [hidden]")&&this.hideImmediately()}),new IntersectionObserver(([o])=>{!o.isIntersecting&&ae(this.open)&&this.hideImmediately()}).observe(this.anchorElement),au(this.popupElement,"click",o=>{o.stopPropagation();const s=o.target;ae(this.open)&&(s===this.popupElement||s.matches('[role^="menuitem"], [role="option"]'))&&this.open.set(!1)}),au(this.popupElement,"keydown",o=>{const{key:s,ctrlKey:a,metaKey:c,shiftKey:u,altKey:d}=o;s==="Escape"&&!(u||d||a||c)&&(o.preventDefault(),o.stopPropagation(),this.open.set(!1))}),this.open.subscribe(o=>{o?this.checkPosition():this.anchorElement.getAttribute("aria-expanded")==="true"&&(this.anchorElement.focus(),this.anchorElement.removeAttribute("aria-controls")),this.anchorElement.setAttribute("aria-expanded",String(o))}),new ResizeObserver(()=>{this.checkPosition()}).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.set(!1),await Lt(50),this.popupElement.hidden=!1}};const Wj=(...t)=>new Gj(...t);function Yj(t,e){var n=X(),r=M(n);Me(r,()=>e.children??Be),$(t,n)}var Jj=U("<dialog><!> <!></dialog>");const Xj={hash:"svelte-egerec",code:"dialog.svelte-egerec {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-egerec::backdrop {background:transparent;}dialog.backdrop.svelte-egerec {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-egerec {transition-duration:50ms;opacity:1;}dialog.svelte-egerec:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-egerec {transition-duration:1ms !important;}dialog.svelte-egerec:not(.active) {pointer-events:none !important;}dialog.svelte-egerec:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}"};function wC(t,e){le(e,!0),ke(t,Xj);const n=E=>{var k=Jj(),S=({target:P})=>{i()&&a()&&P?.matches("dialog")&&(i(i().returnValue="cancel",!0),r(!1))},C=P=>{P.preventDefault(),i()&&c()&&(i(i().returnValue="cancel",!0),r(!1))};mt(k,P=>({...d,inert:!l(p),role:o(),class:`sui modal ${e.class??""}`,onclick:S,oncancel:C,[xr]:P}),[()=>({backdrop:s(),open:l(p),active:l(g)})],void 0,"svelte-egerec");var x=z(k);Me(x,()=>e.extraContent??Be);var T=j(x,2);{var A=P=>{var L=X(),I=M(L);Me(I,()=>e.children??Be),$(P,L)};q(T,P=>{(l(m)||u())&&P(A)})}bt(k,P=>i(P),()=>i()),$(E,k)};let r=R(e,"open",15,!1),i=R(e,"dialog",15),o=R(e,"role",3,"dialog"),s=R(e,"showBackdrop",3,!1),a=R(e,"lightDismiss",3,!1),c=R(e,"escapeDismiss",3,!0),u=R(e,"keepContent",3,!1),d=rt(e,["$$slots","$$events","$$legacy","open","dialog","class","role","showBackdrop","lightDismiss","escapeDismiss","keepContent","children","extraContent","onOpening","onOpen","onClosing","onOk","onCancel","onClose"]);const f=()=>{i()?.focus()},h=E=>{i()&&(i(i().returnValue=E,!0),r(!1))};let p=ie(!1),g=ie(!1),m=ie(!1);const v=async()=>new Promise(E=>{const k=S=>{S.target===i()&&(i().removeEventListener("transitionend",k),E())};i()?.addEventListener("transitionend",k)}),b=async()=>{!i()||i()?.open||(e.onOpening?.(new CustomEvent("Opening")),G(m,!0),i().showModal(),e.onOpen?.(new CustomEvent("Open")),await Lt(0),G(p,!0),await v(),G(g,!0))},y=async()=>{if(!i()||!i().open)return;const{returnValue:E}=i();e.onClosing?.(new CustomEvent("Closing")),document.body.inert=!0,i().close(),document.body.inert=!1,G(g,!1),G(p,!1),await v(),G(m,!1),E==="ok"&&e.onOk?.(new CustomEvent("Ok")),E==="cancel"&&e.onCancel?.(new CustomEvent("Cancel")),e.onClose?.(new CustomEvent("Close",{detail:{returnValue:E}})),i(i().returnValue="",!0)};De(()=>{r()?b():y()}),jt(()=>{const E=cp(Yj,{target:document.querySelector(".sui.app-shell")??document.body,props:{children:n}});return()=>{i()?.close(),gE(E)}});var w={focus:f,close:h};return ce(w)}var Zj=U('<div role="none"><!></div>');const Qj={hash:"svelte-up54bt",code:".content.svelte-up54bt {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-up54bt {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-up54bt .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-up54bt {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-up54bt .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-up54bt {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-up54bt {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-up54bt {transform:scale(90%);}.content.touch.combobox.svelte-up54bt .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-up54bt {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-up54bt {transition-duration:300ms;opacity:0;transform:translateY(-8px);}"};function Mp(t,e){le(e,!0),ke(t,Qj);const n=()=>V(l(w),"$style",r),[r,i]=me(),o=L=>{var I=Zj();let N,D;var B=z(I);Me(B,()=>e.children??Be),bt(I,H=>c(H),()=>c()),Z((H,W)=>{Se(I,"hidden",!s()),N=rn(I,1,`content ${e.class??""} ${l(y)??""}`,"svelte-up54bt",N,H),D=Vi(I,"",D,W)},[()=>({touch:l(C)}),()=>({inset:n().inset,"z-index":n().zIndex,"min-width":n().minWidth,"max-width":n().maxWidth,"max-height":n().height,visibility:n().inset?void 0:"hidden"})]),Hr("mouseenter",I,()=>{a(!0),h()&&window.clearTimeout(k)}),Hr("mouseleave",I,()=>{a(!1),h()&&(k=window.setTimeout(()=>{s(!1)},200))}),$(L,I)};let s=R(e,"open",15,!1),a=R(e,"hovered",15,!1),c=R(e,"content",15,void 0),u=R(e,"showBackdrop",3,void 0),d=R(e,"position",3,"bottom-left"),f=R(e,"positionBaseElement",3,void 0),h=R(e,"parentDialogElement",3,void 0),p=R(e,"touchOptimized",3,!1),g=rt(e,["$$slots","$$events","$$legacy","open","hovered","content","class","showBackdrop","anchor","position","positionBaseElement","parentDialogElement","touchOptimized","children","onOpen"]),m=ie(!1),v=ie(void 0),b=ie(!1),y=ie(void 0),w=ie(St(nt({inset:void 0,zIndex:void 0,width:void 0,height:void 0}))),E,k=0;const S=()=>{E=Wj(e.anchor,l(v),d(),f()),UN(G(w,E.style,!0),"$style",r),E.open.subscribe(L=>{s(L)}),G(y,e.anchor?.getAttribute("aria-haspopup")??void 0,!0),G(m,!0)};De(()=>{h()&&!l(v)&&c()&&(G(v,h()),l(v).append(c()))}),De(()=>{e.anchor&&l(v)&&!l(m)&&S()}),De(()=>{h()&&s()&&E?.checkPosition()});const C=_(()=>p()&&l(b));jt(()=>{G(b,globalThis.matchMedia("(pointer: coarse)").matches,!0)});var x=X(),T=M(x);{var A=L=>{o(L)},P=L=>{{let I=_(()=>u()??l(C));wC(L,on(()=>g,{role:"none",class:"popup",get showBackdrop(){return l(I)},lightDismiss:!0,keepContent:!0,onOpen:async N=>{if(e.onOpen?.(N),await Lt(100),!c())return;const D=c().querySelector('[tabindex]:not([aria-disabled="true"])');D?D.focus():(c(c().tabIndex=-1,!0),c().focus())},get dialog(){return l(v)},set dialog(N){G(v,N,!0)},get open(){return s()},set open(N){s(N)},children:(N,D)=>{o(N)},$$slots:{default:!0}}))}};q(T,L=>{h()?L(A):L(P,!1)})}$(t,x),ce(),i()}var eB=U('<span role="none" class="label svelte-4n8wor"><!></span>'),tB=U('<span role="none" class="label svelte-4n8wor"><!></span>'),nB=U('<span role="none" class="label svelte-4n8wor"><!></span>'),rB=U("<!> <!>",1),iB=U("<button><!> <!> <!></button> <!>",1);const oB={hash:"svelte-4n8wor",code:'button.svelte-4n8wor {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-4n8wor {display:none !important;}button.svelte-4n8wor:not(:disabled):focus-visible {z-index:1;}button.svelte-4n8wor:is(.primary:where(.svelte-4n8wor), .secondary:where(.svelte-4n8wor), .tertiary:where(.svelte-4n8wor), .ghost:where(.svelte-4n8wor)) {justify-content:center;border-width:1px;}button.svelte-4n8wor:is(.primary:where(.svelte-4n8wor), .secondary:where(.svelte-4n8wor), .tertiary:where(.svelte-4n8wor), .ghost:where(.svelte-4n8wor)) .label:where(.svelte-4n8wor):only-child {padding:0 4px;}button.primary.svelte-4n8wor {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-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor {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-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus-visible, [aria-expanded=true]:where(.svelte-4n8wor)) {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-4n8wor: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-4n8wor {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-4n8wor {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-4n8wor .label:where(.svelte-4n8wor) {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-4n8wor .label:where(.svelte-4n8wor) {text-decoration:underline;}button.link.svelte-4n8wor:is(:where(.svelte-4n8wor):hover, :where(.svelte-4n8wor):focus, :where(.svelte-4n8wor):active) .label:where(.svelte-4n8wor) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-4n8wor {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-4n8wor .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-4n8wor {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-4n8wor {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-4n8wor {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-4n8wor {flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-4n8wor {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-4n8wor {background-color:var(--sui-error-background-color);}button.svelte-4n8wor .label:where(.svelte-4n8wor) {padding:0 4px;}button.svelte-4n8wor > * {pointer-events:none;}button.svelte-4n8wor :has([slot=start-icon] + [slot=end-icon]) {gap:0;}'};function Ze(t,e){le(e,!0),ke(t,oB);let n=R(e,"element",15),r=R(e,"class",3,""),i=R(e,"type",3,"button"),o=R(e,"role",3,"button"),s=R(e,"name",3,void 0),a=R(e,"value",3,void 0),c=R(e,"valueType",19,()=>typeof a()),u=R(e,"hidden",3,!1),d=R(e,"disabled",3,!1),f=R(e,"readonly",3,!1),h=R(e,"pressed",3,void 0),p=R(e,"keyShortcuts",3,void 0),g=R(e,"label",3,""),m=R(e,"lines",3,1),v=R(e,"variant",3,void 0),b=R(e,"size",3,"medium"),y=R(e,"iconic",3,!1),w=R(e,"pill",3,!1),E=R(e,"flex",3,!1),k=R(e,"popupPosition",3,"bottom-left"),S=R(e,"showPopupBackdrop",3,!1),C=rt(e,["$$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"]);var x=iB(),T=M(x);mt(T,H=>({...C,class:`sui button ${v()??""} ${b()??""} ${r()??""}`,type:i(),name:s(),value:a(),hidden:u(),disabled:d(),role:o(),"aria-hidden":u(),"aria-disabled":d(),"aria-readonly":f(),"aria-pressed":h(),"data-type":c(),"data-name":s(),"data-label":g(),"data-value":a(),[xr]:H}),[()=>({iconic:y(),pill:w(),flex:E()})],void 0,"svelte-4n8wor");var A=z(T);Me(A,()=>e.startIcon??Be);var P=j(A,2);{var L=H=>{var W=X(),Y=M(W);{var O=K=>{var J=eB(),Q=z(J);Cr(Q,{get lines(){return m()},children:(oe,re)=>{var ee=Oe();Z(()=>te(ee,g())),$(oe,ee)},$$slots:{default:!0}}),$(K,J)},F=K=>{var J=tB(),Q=z(J);Me(Q,()=>e.children??Be),$(K,J)};q(Y,K=>{g()?K(O):K(F,!1)})}$(H,W)},I=H=>{var W=rB(),Y=M(W);{var O=K=>{var J=nB(),Q=z(J);Cr(Q,{get lines(){return m()},children:(oe,re)=>{var ee=Oe();Z(()=>te(ee,g())),$(oe,ee)},$$slots:{default:!0}}),$(K,J)};q(Y,K=>{g()&&K(O)})}var F=j(Y,2);Me(F,()=>e.children??Be),$(H,W)};q(P,H=>{v()==="link"?H(L):H(I,!1)})}var N=j(P,2);Me(N,()=>e.endIcon??Be),bt(T,H=>n(H),()=>n()),Gs(T,(H,W)=>yC?.(H,W),p);var D=j(T,2);{var B=H=>{Mp(H,{get anchor(){return n()},get position(){return k()},get showBackdrop(){return S()},touchOptimized:!0,children:(W,Y)=>{var O=X(),F=M(O);Me(F,()=>e.popup),$(W,O)},$$slots:{default:!0}})};q(D,H=>{e.popup&&H(B)})}$(t,x),ce()}var sB=U('<div role="none"><!></div>'),aB=U('<div role="none"><div role="alert" class="message svelte-145subq"><!> <!></div> <!></div>');const lB={hash:"svelte-145subq",code:".infobar.svelte-145subq {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-145subq {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-145subq {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-145subq {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-145subq {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-145subq {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, left);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 0 8px);}.message.svelte-145subq button {font-size:inherit !important;}.message.svelte-145subq .icon {font-size:16px; /* !hardcoded */}"};function Fp(t,e){le(e,!0),ke(t,lB);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"show",15,!0),s=R(e,"dismissible",3,!0),a=R(e,"status",3,"info"),c=R(e,"children",3,void 0),u=R(e,"icon",3,void 0);var d=X(),f=M(d);{var h=p=>{var g=aB(),m=z(g),v=z(m);{var b=S=>{var C=X(),x=M(C);Me(x,u),$(S,C)},y=S=>{{let C=_(()=>a()==="success"?"check_circle":a());Je(S,{get name(){return l(C)}})}};q(v,S=>{u()?S(b):S(y,!1)})}var w=j(v,2);Me(w,()=>c()??Be);var E=j(m,2);{var k=S=>{var C=sB(),x=z(C);{let T=_(()=>n()("_sui.dismiss"));Ze(x,{iconic:!0,size:"small",variant:"ghost",get"aria-label"(){return l(T)},onclick:()=>{o(!1)},children:(A,P)=>{Je(A,{name:"close"})},$$slots:{default:!0}})}$(S,C)};q(E,S=>{s()&&S(k)})}Z(()=>rn(g,1,`infobar ${a()??""}`,"svelte-145subq")),$(p,g)};q(f,p=>{o()&&p(h)})}$(t,d),ce(),i()}var cB=U("<div><!></div>");const uB={hash:"svelte-k3bskt",code:".bottom-navigation.svelte-k3bskt {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-k3bskt:is([inert]:where(.svelte-k3bskt), [hidden]:where(.svelte-k3bskt)) {display:none;}.bottom-navigation.svelte-k3bskt .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}"};function dB(t,e){ke(t,uB);let n=rt(e,["$$slots","$$events","$$legacy","class","children"]);var r=cB();mt(r,()=>({role:"none",class:`sui bottom-navigation ${e.class??""}`,...n}),void 0,void 0,"svelte-k3bskt");var i=z(r);Me(i,()=>e.children??Be),$(t,r)}var fB=U("<div><!></div>");const hB={hash:"svelte-1fpgrih",code:".button-group.svelte-1fpgrih {flex:none;display:inline-flex;align-items:center;}"};function pB(t,e){ke(t,hB);let n=rt(e,["$$slots","$$events","$$legacy","class","children"]);var r=fB();mt(r,()=>({...n,role:"group",class:`sui button-group ${e.class??""}`}),void 0,void 0,"svelte-1fpgrih");var i=z(r);Me(i,()=>e.children??Be),$(t,r)}var gB=U('<div role="none" class="sui floating-action-button-wrapper svelte-22ja6j"><!></div>');const mB={hash:"svelte-22ja6j",code:`.floating-action-button-wrapper.svelte-22ja6j {display:contents;}
|
|
370
370
|
@media (width < 768px) {.floating-action-button-wrapper.svelte-22ja6j {display:block;position:fixed;inset:auto 16px 72px auto;z-index:100;}.floating-action-button-wrapper.svelte-22ja6j button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-22ja6j button .icon {font-size:32px;}
|
|
371
371
|
}`};function xC(t,e){ke(t,mB);let n=R(e,"children",3,void 0);var r=gB(),i=z(r);Me(i,()=>n()??Be),$(t,r)}const kC=t=>{const{type:e="string",name:n,label:r}=t.dataset;let{value:i}=t.dataset;return e==="number"?(i=Number(i),Number.isNaN(i)&&(i=null)):e==="boolean"?i=i==="true":e==="string"&&(i=i?String(i):""),{target:t,type:e,name:n,label:r,value:i}},x0=t=>(t=t.trim(),t?t.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase():""),vB={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}};let bB=class{constructor(e,{clickToSelect:n=!0}={}){e.dispatchEvent(new CustomEvent("Initializing")),this.parent=e,this.role=e.getAttribute("role"),this.multi=this.parent.getAttribute("aria-multiselectable")==="true",this.id=sy(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=n;const{orientation:r,childRoles:i,childSelectedAttr:o,focusChild:s,selectFirst:a}=vB[this.role];this.orientation=this.grid?"horizontal":this.parent.getAttribute("aria-orientation")??r,this.childRoles=i,this.childSelectedAttr=o,this.childSelectedProp=o.replace("aria-",""),this.focusChild=s,this.selectFirst=a,this.parent.tabIndex=s?-1:0,(async()=>(await Lt(100),this.activate()))()}activate(){const{parent:e,allMembers:n,selected:r}=this;n.forEach((i,o)=>{const s=i.getAttribute(this.childSelectedAttr)==="true"||(r?i===r:this.selectFirst&&o===0),a=document.querySelector(`#${i.getAttribute("aria-controls")}`);i.id||=`${this.id}-item-${o+1}`,i.tabIndex=s?0:-1,i.setAttribute(this.childSelectedAttr,String(s)),a&&(a.inert=!s,a.setAttribute("aria-labelledby",i.id),a.setAttribute("aria-hidden",String(!s)),s&&globalThis.setTimeout(()=>{try{a.scrollIntoView({block:"nearest",inline:"nearest",behavior:"auto"})}catch{a.scrollIntoView(!0)}},300))}),e.addEventListener("click",i=>{this.onClick(i)}),e.addEventListener("keydown",i=>{this.onKeyDown(i)}),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,n){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}const r=n.getAttribute("role"),i=n.closest(this.parentGroupSelector),o=e.type==="click",s=e.type==="keydown"&&e.key===" ";this.activeMembers.forEach(a=>{const c=a.matches('[role="menuitemcheckbox"]'),u=a.matches('[role="menuitemradio"]');if((c||u)&&(a.getAttribute("role")!==r||a.closest(this.parentGroupSelector)!==i))return;const d=c||this.multi,f=u||!d,h=a===n,p=a.matches(`[${this.childSelectedAttr}="true"]`),g=a.getAttribute("aria-controls"),m=g?document.getElementById(g):null;d&&h&&(o||s)&&(a.setAttribute(this.childSelectedAttr,String(!p)),a.dispatchEvent(new CustomEvent("Change",{detail:{[this.childSelectedProp]:!p}})),p||a.dispatchEvent(new CustomEvent("Select"))),f&&p!==h&&(!u||s||o)&&(a.setAttribute(this.childSelectedAttr,String(h)),a.dispatchEvent(new CustomEvent("Change",{detail:{[this.childSelectedProp]:h}})),h&&a.dispatchEvent(new CustomEvent("Select"))),this.focusChild?globalThis.requestAnimationFrame(()=>{a.tabIndex=h?0:-1,h&&(a.focus(),a.dispatchEvent(new CustomEvent("Focus")))}):(a.classList.toggle("focused",h),h&&a.dispatchEvent(new CustomEvent("Focus"))),m&&(m.inert=!h,m.setAttribute("aria-hidden",String(!h)),h&&globalThis.setTimeout(()=>{try{m.scrollIntoView({block:"nearest",inline:"nearest",behavior:"auto"})}catch{m.scrollIntoView(!0)}},300)),h&&(this.parent.setAttribute("aria-activedescendant",a.id),globalThis.setTimeout(()=>{try{a.scrollIntoView({block:"nearest",inline:"nearest",behavior:"auto"})}catch{a.scrollIntoView(!0)}},300))}),this.parent.dispatchEvent(new CustomEvent("Change",{detail:kC(n)}))}onClick(e){const n=e.target,r=n.matches(this.selector)?n:n.closest(this.selector);!r||e.button!==0||!this.clickToSelect||this.selectTarget(e,r)}onKeyDown(e){const{key:n,ctrlKey:r,metaKey:i,shiftKey:o,altKey:s}=e;if(o||s||r||i)return;const c=e.target,{allMembers:u,activeMembers:d}=this,f=(()=>{if(!this.focusChild)return d.find(g=>g.matches(".focused"));if(c.matches(this.selector))return c})();if(["Enter"," ","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(n)&&e.preventDefault(),n==="Enter"){f?.click();return}if(n===" "){f&&this.selectTarget(e,f);return}let h,p;if(this.grid){const g=Math.floor(this.parent.clientWidth/d[0].clientWidth);h=f?u.indexOf(f):-1,n==="ArrowUp"&&h>0&&(p=u[h-g]),n==="ArrowDown"&&h<u.length-1&&(p=u[h+g]),n==="ArrowLeft"&&h>0&&(p=u[h-1]),n==="ArrowRight"&&h<u.length-1&&(p=u[h+1]),p?.matches('[aria-disabled="true"], [aria-hidden="true"]')&&(p=void 0)}else h=f?d.indexOf(f):-1,n===(this.orientation==="horizontal"?"ArrowLeft":"ArrowUp")&&(h>0&&(p=d[h-1]),h===0&&(p=d[d.length-1])),n===(this.orientation==="horizontal"?"ArrowRight":"ArrowDown")&&(h<d.length-1&&(p=d[h+1]),h===d.length-1&&([p]=d));p&&p!==f&&this.selectTarget(e,p)}onUpdate({searchTerms:e}){const n=x0(e),r=n?n.split(/\s+/):[],i=this.allMembers.map(o=>{const s=x0(o.dataset.searchValue??o.dataset.label??o.querySelector(".label")?.textContent??o.textContent??""),a=!r.every(c=>s.includes(c));return o.dispatchEvent(new CustomEvent("Toggle",{detail:{hidden:a}})),a}).filter(o=>!o).length;this.parent.dispatchEvent(new CustomEvent("Filter",{detail:{matched:i,total:this.allMembers.length}}))}};const Hc=(t,e)=>{const n=new bB(t,e);return{update(r){n.onUpdate(r)}}};var _B=U('<div><div role="none" class="inner svelte-1v7rk8"><!></div></div>');const yB={hash:"svelte-1v7rk8",code:".select-button-group.svelte-1v7rk8 {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1v7rk8:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1v7rk8 button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1v7rk8 button:first-child {border-top-left-radius:4px !important;border-bottom-left-radius:4px !important;}.select-button-group.svelte-1v7rk8 button:not(:first-child) {border-left-width:0;}.select-button-group.svelte-1v7rk8 button:last-child {border-top-right-radius:4px !important;border-bottom-right-radius:4px !important;}.select-button-group.svelte-1v7rk8 button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1v7rk8 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1v7rk8 [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1v7rk8 [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1v7rk8 {display:contents;}"};function zp(t,e){ke(t,yB);let n=R(e,"hidden",3,!1),r=R(e,"disabled",3,!1),i=R(e,"readonly",3,!1),o=R(e,"required",3,!1),s=R(e,"invalid",3,!1),a=rt(e,["$$slots","$$events","$$legacy","class","hidden","disabled","readonly","required","invalid","children"]);var c=_B();mt(c,()=>({...a,role:"radiogroup",class:`sui select-button-group ${e.class??""}`,hidden:n(),tabindex:"-1","aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":o(),"aria-invalid":s()}),void 0,void 0,"svelte-1v7rk8");var u=z(c),d=z(u);Me(d,()=>e.children??Be),Gs(c,f=>Hc?.(f)),Z(()=>u.inert=r()),$(t,c)}function id(t,e){le(e,!0);let n=R(e,"selected",15,!1),r=rt(e,["$$slots","$$events","$$legacy","selected","class","onChange"]);Ze(t,on(()=>r,{role:"radio",get class(){return`sui select-button ${e.class??""}`},get"aria-checked"(){return n()},onChange:i=>{n(i.detail.selected),e.onChange?.(i)}})),ce()}var wB=U("<!> <!>",1);function Mr(t,e){le(e,!0);let n=R(e,"hidden",3,!1),r=R(e,"disabled",3,!1),i=R(e,"popupPosition",3,"bottom-left"),o=R(e,"popupPositionBaseElement",3,void 0),s=R(e,"showPopupBackdrop",3,!1),a=R(e,"label",3,""),c=R(e,"variant",3,void 0),u=R(e,"size",3,"medium"),d=R(e,"iconic",3,!1),f=rt(e,["$$slots","$$events","$$legacy","class","hidden","disabled","popupPosition","popupPositionBaseElement","showPopupBackdrop","label","variant","size","iconic","children","startIcon","endIcon","popup"]),h=ie(void 0);var g={focus:()=>{l(h)?.focus()}},m=wB(),v=M(m);Ze(v,on(()=>f,{get class(){return`sui menu-button ${e.class??""}`},get hidden(){return n()},get disabled(){return r()},get label(){return a()},get variant(){return c()},get size(){return u()},get iconic(){return d()},"aria-haspopup":"menu",get element(){return l(h)},set element(k){G(h,k,!0)},startIcon:k=>{var S=X(),C=M(S);Me(C,()=>e.startIcon??Be),$(k,S)},children:k=>{var S=X(),C=M(S);Me(C,()=>e.children??Be),$(k,S)},endIcon:k=>{var S=X(),C=M(S);{var x=A=>{var P=X(),L=M(P);Me(L,()=>e.endIcon),$(A,P)},T=A=>{var P=X(),L=M(P);{var I=D=>{Je(D,{name:"more_vert"})},N=D=>{Je(D,{name:"arrow_drop_down",class:"small-arrow"})};q(L,D=>{d()?D(I):D(N,!1)},!0)}$(A,P)};q(C,A=>{e.endIcon?A(x):A(T,!1)})}$(k,S)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}));var b=j(v,2);return Mp(b,{get anchor(){return l(h)},get position(){return i()},get positionBaseElement(){return o()},get showBackdrop(){return s()},children:(y,w)=>{var E=X(),k=M(E);Me(k,()=>e.popup??Be),$(y,E)},$$slots:{default:!0}}),$(t,m),ce(g)}var xB=U('<div role="group" class="sui split-button svelte-1q24rfo"><!> <!></div>');const kB={hash:"svelte-1q24rfo",code:".split-button.svelte-1q24rfo {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-1q24rfo button {margin:0;}.split-button.svelte-1q24rfo button.menu-button {border-left-width:0;border-top-left-radius:0;border-bottom-left-radius:0;aspect-ratio:3/4;}.split-button.svelte-1q24rfo button:not(.menu-button) {border-top-right-radius:0;border-bottom-right-radius:0;}"};function SC(t,e){le(e,!0),ke(t,kB);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"hidden",3,!1),s=R(e,"disabled",3,!1),a=R(e,"label",3,""),c=R(e,"variant",3,void 0),u=R(e,"size",3,"medium"),d=R(e,"popupPosition",3,"bottom-left"),f=R(e,"showPopupBackdrop",3,!1),h=rt(e,["$$slots","$$events","$$legacy","hidden","disabled","label","variant","size","popupPosition","showPopupBackdrop","chevronIcon","popup"]),p=ie(void 0);var g=xB(),m=z(g);Ze(m,on(()=>h,{get hidden(){return o()},get disabled(){return s()},get label(){return a()},get variant(){return c()},get size(){return u()}}));var v=j(m,2);{const b=E=>{var k=X(),S=M(k);{var C=T=>{var A=X(),P=M(A);Me(P,()=>e.chevronIcon),$(T,A)},x=T=>{Je(T,{name:"arrow_drop_down",class:"small-arrow"})};q(S,T=>{e.chevronIcon?T(C):T(x,!1)})}$(E,k)},y=E=>{var k=X(),S=M(k);Me(S,()=>e.popup??Be),$(E,k)};let w=_(()=>n()("_sui.split_button.more_options"));Mr(v,{iconic:!0,get hidden(){return o()},get disabled(){return s()},get variant(){return c()},get size(){return u()},get"aria-label"(){return l(w)},get popupPosition(){return d()},get popupPositionBaseElement(){return l(p)},get showPopupBackdrop(){return f()},endIcon:b,popup:y,$$slots:{endIcon:!0,popup:!0}})}bt(g,b=>G(p,b),()=>l(p)),Z(b=>{Se(g,"hidden",o()),Se(g,"aria-hidden",o()),Se(g,"aria-disabled",s()),Se(g,"aria-label",b)},[()=>n()("_sui.split_button.x_options",{values:{name:a()}})]),$(t,g),ce(),i()}var SB=U("<div></div>");const EB={hash:"svelte-16ugtl",code:".divider.svelte-16ugtl {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-16ugtl {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-16ugtl {margin:0 8px;width:1px;height:100%;}"};function Jr(t,e){ke(t,EB);let n=R(e,"hidden",3,!1),r=R(e,"orientation",3,"horizontal"),i=rt(e,["$$slots","$$events","$$legacy","class","hidden","orientation"]);var o=SB();mt(o,()=>({...i,role:"separator",class:`sui divider ${e.class??""}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,"svelte-16ugtl"),$(t,o)}var $B=U("<div></div>");const TB={hash:"svelte-rtj9n0",code:".spacer.flex.svelte-rtj9n0 {flex:auto;}.spacer.svelte-rtj9n0:not(.flex) {width:8px;height:8px;}"};function Xr(t,e){ke(t,TB);let n=R(e,"flex",3,!1),r=rt(e,["$$slots","$$events","$$legacy","class","flex"]);var i=$B();mt(i,o=>({...r,role:"none",class:`sui spacer ${e.class??""}`,[xr]:o}),[()=>({flex:n()})],void 0,"svelte-rtj9n0"),$(t,i)}al(["click"]);var CB=U('<div><div role="none" class="inner svelte-gyongv"><!></div></div>');const AB={hash:"svelte-gyongv",code:`.checkbox-group.svelte-gyongv {display:inline-flex;}.checkbox-group.horizontal.svelte-gyongv {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-gyongv {gap:4px;flex-direction:column;}
|
|
372
372
|
@media (pointer: coarse) {.checkbox-group.vertical.svelte-gyongv {gap:8px;}
|
|
@@ -499,7 +499,7 @@ ${m}`;v.inputValue=x}))}),De(()=>{v.initialized&&(v.inputValue,Ee(()=>{const{lan
|
|
|
499
499
|
}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) {flex:auto;overflow:hidden;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) iframe:where(.svelte-9guikv),
|
|
500
500
|
.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv),
|
|
501
501
|
.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) .markdown:where(.svelte-9guikv) {display:block;width:100%;height:100%;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv),
|
|
502
|
-
.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) .markdown:where(.svelte-9guikv) {margin:0;padding:16px;overflow:auto;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv) {white-space:pre-wrap;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .detail {background-color:var(--sui-primary-background-color);}`};function dV(t,e){le(e,!0),ke(t,uV);const n=()=>V(Bs,"$overlaidAsset",o),r=()=>V(na,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=ie(void 0),c=ie(!0),u=ie(void 0);const d=_(()=>n()?.kind),f=_(()=>n()?.blobURL),h=_(()=>n()?.name),p=async()=>{await Sa(),l(a)&&(l(a).tabIndex=0,l(a).focus())};De(()=>{n()&&(async()=>G(u,await Xs(n()),!0))()}),De(()=>{l(a)?.addEventListener("transitionend",()=>{r()||G(c,!0)})}),De(()=>{l(a)&&r()&&(G(c,!1),p())});var g=cV(),m=z(g);er(m,()=>n()?.sha,v=>{var b=lV(),y=M(b);N7(y,{});var w=j(y,2),E=z(w),k=z(E);{var S=A=>{{let P=_(()=>["image","video"].includes(l(d))),L=_(()=>l(d)==="image"),I=_(()=>l(d)==="image"?l(h):void 0),N=_(()=>["audio","video"].includes(l(d)));Ro(A,{get kind(){return l(d)},get asset(){return n()},get blurBackground(){return l(P)},get checkerboard(){return l(L)},get alt(){return l(I)},get controls(){return l(N)}})}},C=A=>{var P=X(),L=M(P);{var I=D=>{var B=rV();Z(()=>{Se(B,"src",l(f)),Se(B,"title",l(h))}),$(D,B)},N=D=>{var B=X(),H=M(B);{var W=O=>{var F=X(),K=M(F);nn(K,()=>n()?.text??l(u).text(),null,(J,Q)=>{var oe=X(),re=M(oe);{var ee=se=>{var fe=X(),be=M(fe);nn(be,()=>B_(l(Q),{breaks:!0,async:!0}),null,(pe,he)=>{var ge=iV(),ve=z(ge);gr(ve,()=>Dr.sanitize(l(he))),$(pe,ge)},pe=>{var he=oV(),ge=z(he);Z(()=>te(ge,l(Q))),$(pe,he)}),$(se,fe)},ne=se=>{var fe=sV(),be=z(fe);Z(()=>te(be,l(Q))),$(se,fe)};q(re,se=>{l(h)?.endsWith(".md")?se(ee):se(ne,!1)})}$(J,oe)}),$(O,F)},Y=O=>{pr(O,{children:(F,K)=>{var J=aV(),Q=z(J);Z(oe=>te(Q,oe),[()=>i()("preview_unavailable")]),$(F,J)},$$slots:{default:!0}})};q(H,O=>{l(u)?.type&&Wu(l(u).type)?O(W):O(Y,!1)},!0)}$(D,B)};q(L,D=>{l(u)?.type==="application/pdf"?D(I):D(N,!1)},!0)}$(A,P)};q(k,A=>{l(d)&&Rp(l(d))?A(S):A(C,!1)})}var x=j(E,2);{var T=A=>{D2(A,{get asset(){return n()}})};q(x,A=>{n()&&A(T)})}$(v,b)}),bt(g,v=>G(a,v),()=>l(a)),Z(v=>{Se(g,"hidden",l(c)),g.inert=!r(),Se(g,"aria-label",v)},[()=>i()("asset_editor")]),$(t,g),ce(),s()}const lw=sn([$t,wn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return typeof n=="boolean"||typeof r=="boolean"}),cw=sn([$t,wn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return n===!0||r===!1}),fV=t=>{const{files:e,folder:n,originalAsset:r}=t,{slugify_filename:i=!1}=Pd().config,o=n?.internalPath!==void 0?H_(n.internalPath).map(s=>s.name.normalize()):[];return e.map(s=>{const a=r?.name??W$(s.name,{slugificationEnabled:i,assetNamesInSameFolder:o});return o.includes(a)||o.push(a),{action:r?"update":"create",name:a,path:r?.path??[n?.internalPath,a].join("/"),file:s}})},hV=({count:t})=>{const e=ae(No),n=ae(Bs);e&&No.set(ae(Mn).find(r=>r.path===e.path)),n&&Bs.set(ae(Mn).find(r=>r.path===n.path)),Ss.set({...bl,saved:!0,published:!!ae(wn)?.isGit&&!ae(cw),count:t})},M2=async(t,e)=>{const{files:n,folder:r}=t,i=fV(t),o=i.map(({name:s,path:a,file:c})=>({name:s,path:a,size:c.size,kind:Ld(s),folder:r}));await Qd({changes:i.map(({action:s,path:a,file:c})=>({action:s,path:a,data:c})),savingAssets:o,options:e}),hV({count:n.length})};var pV=U('<div role="none"><!></div>');const gV={hash:"svelte-1lnkfih",code:".wrapper.svelte-1lnkfih {display:contents;}.wrapper.svelte-1lnkfih textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}.wrapper.svelte-1lnkfih .wrap textarea {text-wrap:wrap;}"};function mV(t,e){le(e,!0),ke(t,gV);const n=()=>V(Iv,"$editingAsset",o),r=()=>V(na,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(n);let c=ie(!1),u=ie(void 0),d=ie(void 0),f=ie(void 0),h=ie(!1);const p=async()=>{G(u,await Xs(l(a)),!0),G(d,await l(u).text(),!0),G(f,l(d),!0),G(c,!0)},g=()=>{Ge(Iv,void 0),G(u,void 0),G(d,void 0),G(f,void 0)},m=async()=>{l(a)&&l(u)&&typeof l(f)=="string"&&await M2({folder:l(a).folder,files:[new File([l(f)],l(a).name,{type:l(u).type})],originalAsset:l(a)},{commitType:"uploadMedia"})};De(()=>{l(a)&&l(u)===void 0&&p()}),De(()=>{r()||G(c,!1)});{const v=E=>{{let k=_(()=>i()("wrap_long_lines"));ly(E,{get label(){return l(k)},get checked(){return l(h)},set checked(S){G(h,S,!0)}})}};let b=_(()=>i()("edit_x",{values:{name:l(a)?.name}})),y=_(()=>i()("save")),w=_(()=>l(f)===l(d));ji(t,{size:"x-large",get title(){return l(b)},get okLabel(){return l(y)},get okDisabled(){return l(w)},okShortcuts:"Accel+S",onOk:()=>{m()},onClose:()=>{g()},get open(){return l(c)},set open(E){G(c,E,!0)},footerExtra:v,children:(E,k)=>{var S=pV();let C;var x=z(S);Xd(x,{flex:!0,get value(){return l(f)},set value(T){G(f,T,!0)}}),Z(T=>C=rn(S,1,"wrapper svelte-1lnkfih",null,C,T),[()=>({wrap:l(h)})]),$(E,S)},$$slots:{footerExtra:!0,default:!0}})}ce(),s()}const F2=({draft:t,locale:e,slug:n})=>{const{collection:r,collectionFile:i,originalEntry:o,currentValues:s,isIndexFile:a}=t,{_i18n:{defaultLocale:c,structure:u,omitDefaultLocaleFromFileName:d}}=i??r;if(i){const{_i18n:b,file:y}=i;return y_({_i18n:b,locale:e,path:tn(y)})}if(o?.locales[e]?.slug===n)return o.locales[e].path;const f=r,{_file:{basePath:h,subPath:p,extension:g}}=f,m=a?hi(f)?.name:p?ko(p,{collection:f,locale:e,content:s[c],currentSlug:n}):n,v={multiple_folders:`${h}/${e}/${m}.${g}`,multiple_folders_i18n_root:`${e}/${h}/${m}.${g}`,multiple_files:d&&e===c?`${h}/${m}.${g}`:`${h}/${m}.${e}.${g}`,single_file:`${h}/${m}.${g}`};return v[u]??v.single_file},z2=({draft:t})=>{const{collection:e,collectionFile:n,currentSlugs:r,currentValues:i,isIndexFile:o}=t,{_i18n:{defaultLocale:s}}=n??e;return{collection:e,content:{...i[s],_slug:r?.[s]??r?._},isIndexFile:o}},vV=({draft:t,locale:e,localizingKeyPaths:n})=>{const{isNew:r,collection:i,collectionFile:o,currentSlugs:s,currentValues:a,isIndexFile:c}=t,{_type:u}=i,{identifier_field:d="title",slug:f=`{{${d}}}`}=u==="entry"?i:{},{_i18n:{defaultLocale:h}}=o??i,p=s?.[e]??s?._;return r?ko(f,{collection:i,locale:e,content:{...a[h],...Object.fromEntries(n.map(g=>[g,a[e]?.[g]])),_slug:p},isIndexFile:c}):p},bV=({draft:t,defaultLocaleSlug:e})=>{const{collection:n,collectionFile:r,currentLocales:i}=t,{_type:o}=n,{identifier_field:s="title",slug:a=`{{${s}}}`}=o==="entry"?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:u}}}=r??n,d=[...a.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,f])=>!!f).map(([,f])=>f);if(!(u||!d.length))return Object.fromEntries(Object.entries(i).map(([f])=>{const h=f===c?e:vV({draft:t,locale:f,localizingKeyPaths:d});return[f,h]}))},_V=({draft:t,defaultLocaleSlug:e,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;const{collection:i,collectionFile:o}=t,{_i18n:{canonicalSlug:{value:s}}}=o??i;return s==="{{slug}}"?e:ko(s,{...r,currentSlug:e})},j2=({draft:t})=>{const{isNew:e,collection:n,collectionFile:r,fileName:i,currentSlugs:o,isIndexFile:s}=t,{_type:a}=n,{identifier_field:c="title",slug:u=`{{${c}}}`}=a==="entry"?n:{};if(s)return{defaultLocaleSlug:hi(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};const{_i18n:{defaultLocale:d}}=r??n,f=z2({draft:t}),h=i??(e?ko(u,f):o?.[d]??o?._),p=bV({draft:t,defaultLocaleSlug:h}),g=_V({draft:t,defaultLocaleSlug:h,localizedSlugs:p,fillSlugOptions:f});return{defaultLocaleSlug:h,localizedSlugs:p,canonicalSlug:g}},yV=({folder:t,fillSlugOptions:e})=>{const{entryRelative:n,internalPath:r,publicPath:i}=t;if(r===void 0||i===void 0)return{resolvedInternalPath:"",resolvedPublicPath:""};if(!n)return{resolvedInternalPath:ko(r,e),resolvedPublicPath:ko(i,e)};const{collection:o}=e,s=["multiple_folders","multiple_folders_i18n_root"].includes(o._i18n.structure),a=o._type==="entry"?o._file.subPath:void 0,c=a?.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??"",u=Ev(ko(hc([r,s||a?.includes("/")?c:void 0,o.media_folder]),e)),d=!s&&/^\.?$/.test(i)?i:Ev(ko(s?hc([...Array((a?.match(/\//g)??[]).length+1).fill(".."),i,c]):i,e));return{resolvedInternalPath:u,resolvedPublicPath:d}},wV=({draft:t,defaultLocaleSlug:e,folder:n})=>{const{collection:r,collectionName:i,collectionFile:o,isIndexFile:s}=t,{_i18n:{defaultLocale:a}}=o??r,c=yV({folder:n,fillSlugOptions:{...z2({draft:t}),type:"media_folder",currentSlug:e,entryFilePath:F2({draft:t,locale:a,slug:e}),isIndexFile:s}}),{resolvedInternalPath:u}=c;return{assetFolderPaths:c,assetNamesInSameFolder:H_(u).map(d=>d.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},xV=async({file:t,folder:e,blobURL:n,draft:r,defaultLocaleSlug:i,keyPath:o,content:s,changes:a,savingAssets:c,slugificationEnabled:u,encodingEnabled:d})=>{const f=await Ua(t),h=c.find(w=>w.sha===f),{savingAssetProps:p,assetNamesInSameFolder:g,assetFolderPaths:{resolvedInternalPath:m,resolvedPublicPath:v}}=wV({draft:r,defaultLocaleSlug:i,folder:e});let b="";if(h)b=h.name;else{b=W$(t.name,{slugificationEnabled:u,assetNamesInSameFolder:g});const w=m?`${m}/${b}`:b;g.push(b),a.push({action:"create",path:w,data:t}),c.push({...p,blobURL:n,name:b,path:w,sha:f,size:t.size,kind:Ld(b)})}let y=v?`${v==="/"?"":v}/${b}`:b;d&&(y=K$(y)),s[o]=s[o].replaceAll(n,y)},nh=({field:t,keyPath:e,keyPathList:n})=>{const{widget:r}=t,i=r==="list";if(n.push(e),i||r==="object"){const{fields:o,types:s,typeKey:a="type"}=t;if(o)o.forEach(c=>{nh({field:c,keyPath:i?`${e}.*.${c.name}`:`${e}.${c.name}`,keyPathList:n})});else if(s)n.push(i?`${e}.*.${a}`:`${e}.${a}`),s.forEach(c=>{c.fields?.forEach(u=>{nh({field:u,keyPath:i?`${e}.*.${u.name}`:`${e}.${u.name}`,keyPathList:n})})});else if(i){const{field:c}=t;c?nh({field:c,keyPath:`${e}.*`,keyPathList:n}):n.push(`${e}.*`)}}r&&Pp.includes(r)&&n.push(jc(t)?`${e}.*`:e)},kV=t=>{const e=[];return t.forEach(n=>{nh({field:n,keyPath:n.name,keyPathList:e})}),e},bu=({key:t,field:e,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:o,omitEmptyOptionalFields:s})=>{if(t.endsWith(".__sc_item_id")){delete r[t];return}let a=r[t];if(o&&typeof a=="string"&&dD.test(a)&&e?.widget==="datetime"&&!Js(e).format)try{a=new va(a)}catch{}s&&e&&!Bc({fieldConfig:e,locale:n})&&!Object.keys(r).some(c=>c.startsWith(`${t}.`))&&(!a||Array.isArray(a)&&!a.length||Yt(a)&&!Object.keys(a).length)||(i[t]=a),delete r[t]},SV=({collectionName:t,fileName:e,fields:n,locale:r,valueMap:i,canonicalSlugKey:o,isIndexFile:s=!1,isTomlOutput:a=!1})=>{const c=js(i),u={},{omit_empty_optional_fields:d=!1}=ae($t)?.output??{},f={collectionName:t,fileName:e,valueMap:i,isIndexFile:s},h={locale:r,unsortedMap:c,sortedMap:u,isTomlOutput:a,omitEmptyOptionalFields:d};return o&&o in c&&bu({...h,key:o}),kV(n).forEach(p=>{const g=hn({...f,keyPath:p});if(p in c)bu({...h,key:p,field:g});else if(g?.widget==="keyvalue")u[p]={},Object.entries(c).filter(([m])=>m.startsWith(`${p}.`)).forEach(([m])=>{bu({...h,key:m,field:g})});else{const m=new RegExp(`^${Vt(p.replaceAll("*","\\d+")).replaceAll("\\\\d\\+","\\d+")}$`);Object.keys(c).filter(v=>m.test(v)).sort(([v,b])=>xi(v,b)).forEach(v=>{bu({...h,key:v,field:g})})}}),Object.keys(c).sort(([p,g])=>xi(p,g)).forEach(p=>{bu({...h,key:p})}),ls(u)},Tb=({draft:t,locale:e,valueMap:n})=>{const{collection:r,collectionName:i,collectionFile:o,fields:s,isIndexFile:a}=t,{_file:c,_i18n:{canonicalSlug:{key:u}}}=o??r,d=SV({collectionName:i,fileName:o?.name,fields:s,locale:e,valueMap:n,canonicalSlugKey:u,isIndexFile:a,isTomlOutput:["toml","toml-frontmatter"].includes(c.format)});return MT(s)?d[s[0].name]??[]:d},B2=(t,e=ae($t)?.output?.json??{})=>{const{indent_style:n="space",indent_size:r=n==="tab"?1:2}=e;return JSON.stringify(t,null,n==="tab"?" ".repeat(r):r).trim()},U2=t=>YF(t).trim(),q2=(t,e=ae($t)?.output?.yaml??{},n={})=>{const{indent_size:r=2,quote:i="none"}=e,{quote:o=!1}=n;return g_(t,null,{indent:r,lineWidth:0,defaultKeyType:"PLAIN",defaultStringType:o||i==="double"?"QUOTE_DOUBLE":i==="single"?"QUOTE_SINGLE":"PLAIN",singleQuote:!(o||i==="double")}).trim()},EV=({content:t,_file:e})=>{const{format:n,fmDelimiters:r,yamlQuote:i=!1}=e,[o,s]=r??["---","---"],a=typeof t.body=="string"?t.body:"";if(delete t.body,!Object.keys(t).length)return`${a}
|
|
502
|
+
.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) .markdown:where(.svelte-9guikv) {margin:0;padding:16px;overflow:auto;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv) {white-space:pre-wrap;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .detail {background-color:var(--sui-primary-background-color);}`};function dV(t,e){le(e,!0),ke(t,uV);const n=()=>V(Bs,"$overlaidAsset",o),r=()=>V(na,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=ie(void 0),c=ie(!0),u=ie(void 0);const d=_(()=>n()?.kind),f=_(()=>n()?.blobURL),h=_(()=>n()?.name),p=async()=>{await Sa(),l(a)&&(l(a).tabIndex=0,l(a).focus())};De(()=>{n()&&(async()=>G(u,await Xs(n()),!0))()}),De(()=>{l(a)?.addEventListener("transitionend",()=>{r()||G(c,!0)})}),De(()=>{l(a)&&r()&&(G(c,!1),p())});var g=cV(),m=z(g);er(m,()=>n()?.sha,v=>{var b=lV(),y=M(b);N7(y,{});var w=j(y,2),E=z(w),k=z(E);{var S=A=>{{let P=_(()=>["image","video"].includes(l(d))),L=_(()=>l(d)==="image"),I=_(()=>l(d)==="image"?l(h):void 0),N=_(()=>["audio","video"].includes(l(d)));Ro(A,{get kind(){return l(d)},get asset(){return n()},get blurBackground(){return l(P)},get checkerboard(){return l(L)},get alt(){return l(I)},get controls(){return l(N)}})}},C=A=>{var P=X(),L=M(P);{var I=D=>{var B=rV();Z(()=>{Se(B,"src",l(f)),Se(B,"title",l(h))}),$(D,B)},N=D=>{var B=X(),H=M(B);{var W=O=>{var F=X(),K=M(F);nn(K,()=>n()?.text??l(u).text(),null,(J,Q)=>{var oe=X(),re=M(oe);{var ee=se=>{var fe=X(),be=M(fe);nn(be,()=>B_(l(Q),{breaks:!0,async:!0}),null,(pe,he)=>{var ge=iV(),ve=z(ge);gr(ve,()=>Dr.sanitize(l(he))),$(pe,ge)},pe=>{var he=oV(),ge=z(he);Z(()=>te(ge,l(Q))),$(pe,he)}),$(se,fe)},ne=se=>{var fe=sV(),be=z(fe);Z(()=>te(be,l(Q))),$(se,fe)};q(re,se=>{l(h)?.endsWith(".md")?se(ee):se(ne,!1)})}$(J,oe)}),$(O,F)},Y=O=>{pr(O,{children:(F,K)=>{var J=aV(),Q=z(J);Z(oe=>te(Q,oe),[()=>i()("preview_unavailable")]),$(F,J)},$$slots:{default:!0}})};q(H,O=>{l(u)?.type&&Wu(l(u).type)?O(W):O(Y,!1)},!0)}$(D,B)};q(L,D=>{l(u)?.type==="application/pdf"?D(I):D(N,!1)},!0)}$(A,P)};q(k,A=>{l(d)&&Rp(l(d))?A(S):A(C,!1)})}var x=j(E,2);{var T=A=>{D2(A,{get asset(){return n()}})};q(x,A=>{n()&&A(T)})}$(v,b)}),bt(g,v=>G(a,v),()=>l(a)),Z(v=>{Se(g,"hidden",l(c)),g.inert=!r(),Se(g,"aria-label",v)},[()=>i()("asset_editor")]),$(t,g),ce(),s()}const lw=sn([$t,wn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return typeof n=="boolean"||typeof r=="boolean"}),cw=sn([$t,wn],([t,e])=>{if(!t||!e?.isGit)return!1;const{skip_ci:n,automatic_deployments:r}=t.backend;return n===!0||r===!1}),fV=t=>{const{files:e,folder:n,originalAsset:r}=t,{slugify_filename:i=!1}=Pd().config,o=n?.internalPath!==void 0?H_(n.internalPath).map(s=>s.name.normalize()):[];return e.map(s=>{const a=r?.name??W$(s.name,{slugificationEnabled:i,assetNamesInSameFolder:o});return o.includes(a)||o.push(a),{action:r?"update":"create",name:a,path:r?.path??[n?.internalPath,a].join("/"),file:s}})},hV=({count:t})=>{const e=ae(No),n=ae(Bs);e&&No.set(ae(Mn).find(r=>r.path===e.path)),n&&Bs.set(ae(Mn).find(r=>r.path===n.path)),Ss.set({...bl,saved:!0,published:!!ae(wn)?.isGit&&!ae(cw),count:t})},M2=async(t,e)=>{const{files:n,folder:r}=t,i=fV(t),o=i.map(({name:s,path:a,file:c})=>({name:s,path:a,size:c.size,kind:Ld(s),folder:r}));await Qd({changes:i.map(({action:s,path:a,file:c})=>({action:s,path:a,data:c})),savingAssets:o,options:e}),hV({count:n.length})};var pV=U('<div role="none"><!></div>');const gV={hash:"svelte-1lnkfih",code:".wrapper.svelte-1lnkfih {display:contents;}.wrapper.svelte-1lnkfih textarea {min-height:40dvh;max-height:80dvh;font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);text-wrap:nowrap;resize:vertical;}.wrapper.svelte-1lnkfih .wrap textarea {text-wrap:wrap;}"};function mV(t,e){le(e,!0),ke(t,gV);const n=()=>V(Iv,"$editingAsset",o),r=()=>V(na,"$showAssetOverlay",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(n);let c=ie(!1),u=ie(void 0),d=ie(void 0),f=ie(void 0),h=ie(!1);const p=async()=>{G(u,await Xs(l(a)),!0),G(d,await l(u).text(),!0),G(f,l(d),!0),G(c,!0)},g=()=>{Ge(Iv,void 0),G(u,void 0),G(d,void 0),G(f,void 0)},m=async()=>{l(a)&&l(u)&&typeof l(f)=="string"&&await M2({folder:l(a).folder,files:[new File([l(f)],l(a).name,{type:l(u).type})],originalAsset:l(a)},{commitType:"uploadMedia"})};De(()=>{l(a)&&l(u)===void 0&&p()}),De(()=>{r()||G(c,!1)});{const v=E=>{{let k=_(()=>i()("wrap_long_lines"));ly(E,{get label(){return l(k)},get checked(){return l(h)},set checked(S){G(h,S,!0)}})}};let b=_(()=>i()("edit_x",{values:{name:l(a)?.name}})),y=_(()=>i()("save")),w=_(()=>l(f)===l(d));ji(t,{size:"x-large",get title(){return l(b)},get okLabel(){return l(y)},get okDisabled(){return l(w)},okShortcuts:"Accel+S",onOk:()=>{m()},onClose:()=>{g()},get open(){return l(c)},set open(E){G(c,E,!0)},footerExtra:v,children:(E,k)=>{var S=pV();let C;var x=z(S);Xd(x,{flex:!0,get value(){return l(f)},set value(T){G(f,T,!0)}}),Z(T=>C=rn(S,1,"wrapper svelte-1lnkfih",null,C,T),[()=>({wrap:l(h)})]),$(E,S)},$$slots:{footerExtra:!0,default:!0}})}ce(),s()}const F2=({draft:t,locale:e,slug:n})=>{const{collection:r,collectionFile:i,originalEntry:o,currentValues:s,isIndexFile:a}=t,{_i18n:{defaultLocale:c,structure:u,omitDefaultLocaleFromFileName:d}}=i??r;if(i){const{_i18n:b,file:y}=i;return y_({_i18n:b,locale:e,path:tn(y)})}if(o?.locales[e]?.slug===n)return o.locales[e].path;const f=r,{_file:{basePath:h,subPath:p,extension:g}}=f,m=a?hi(f)?.name:p?ko(p,{collection:f,locale:e,content:s[c],currentSlug:n}):n,v={multiple_folders:`${h}/${e}/${m}.${g}`,multiple_folders_i18n_root:`${e}/${h}/${m}.${g}`,multiple_files:d&&e===c?`${h}/${m}.${g}`:`${h}/${m}.${e}.${g}`,single_file:`${h}/${m}.${g}`};return v[u]??v.single_file},z2=({draft:t})=>{const{collection:e,collectionFile:n,currentSlugs:r,currentValues:i,isIndexFile:o}=t,{_i18n:{defaultLocale:s}}=n??e;return{collection:e,content:{...i[s],_slug:r?.[s]??r?._},isIndexFile:o}},vV=({draft:t,locale:e,localizingKeyPaths:n})=>{const{isNew:r,collection:i,collectionFile:o,currentSlugs:s,currentValues:a,isIndexFile:c}=t,{_type:u}=i,{identifier_field:d="title",slug:f=`{{${d}}}`}=u==="entry"?i:{},{_i18n:{defaultLocale:h}}=o??i,p=s?.[e]??s?._;return r?ko(f,{collection:i,locale:e,content:{...a[h],...Object.fromEntries(n.map(g=>[g,a[e]?.[g]])),_slug:p},isIndexFile:c}):p},bV=({draft:t,defaultLocaleSlug:e})=>{const{collection:n,collectionFile:r,currentLocales:i}=t,{_type:o}=n,{identifier_field:s="title",slug:a=`{{${s}}}`}=o==="entry"?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:u}}}=r??n,d=[...a.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,f])=>!!f).map(([,f])=>f);if(!(u||!d.length))return Object.fromEntries(Object.entries(i).map(([f])=>{const h=f===c?e:vV({draft:t,locale:f,localizingKeyPaths:d});return[f,h]}))},_V=({draft:t,defaultLocaleSlug:e,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;const{collection:i,collectionFile:o}=t,{_i18n:{canonicalSlug:{value:s}}}=o??i;return s==="{{slug}}"?e:ko(s,{...r,currentSlug:e})},j2=({draft:t})=>{const{isNew:e,collection:n,collectionFile:r,fileName:i,currentSlugs:o,isIndexFile:s}=t,{_type:a}=n,{identifier_field:c="title",slug:u=`{{${c}}}`}=a==="entry"?n:{};if(s)return{defaultLocaleSlug:hi(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};const{_i18n:{defaultLocale:d}}=r??n,f=z2({draft:t}),h=i??(e?ko(u,f):o?.[d]??o?._),p=bV({draft:t,defaultLocaleSlug:h}),g=_V({draft:t,defaultLocaleSlug:h,localizedSlugs:p,fillSlugOptions:f});return{defaultLocaleSlug:h,localizedSlugs:p,canonicalSlug:g}},yV=({folder:t,fillSlugOptions:e})=>{const{entryRelative:n,internalPath:r,publicPath:i}=t;if(r===void 0||i===void 0)return{resolvedInternalPath:"",resolvedPublicPath:""};if(!n)return{resolvedInternalPath:ko(r,e),resolvedPublicPath:ko(i,e)};const{collection:o}=e,s=["multiple_folders","multiple_folders_i18n_root"].includes(o._i18n.structure),a=o._type==="entry"?o._file.subPath:void 0,c=a?.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??"",u=Ev(ko(hc([r,s||a?.includes("/")?c:void 0,o.media_folder]),e)),d=!s&&/^\.?$/.test(i)?i:Ev(ko(s?hc([...Array((a?.match(/\//g)??[]).length+1).fill(".."),i,c]):i,e));return{resolvedInternalPath:u,resolvedPublicPath:d}},wV=({draft:t,defaultLocaleSlug:e,folder:n})=>{const{collection:r,collectionName:i,collectionFile:o,isIndexFile:s}=t,{_i18n:{defaultLocale:a}}=o??r,c=yV({folder:n,fillSlugOptions:{...z2({draft:t}),type:"media_folder",currentSlug:e,entryFilePath:F2({draft:t,locale:a,slug:e}),isIndexFile:s}}),{resolvedInternalPath:u}=c;return{assetFolderPaths:c,assetNamesInSameFolder:H_(u).map(d=>d.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},xV=async({file:t,folder:e,blobURL:n,draft:r,defaultLocaleSlug:i,keyPath:o,content:s,changes:a,savingAssets:c,slugificationEnabled:u,encodingEnabled:d})=>{const f=await Ua(t),h=c.find(w=>w.sha===f),{savingAssetProps:p,assetNamesInSameFolder:g,assetFolderPaths:{resolvedInternalPath:m,resolvedPublicPath:v}}=wV({draft:r,defaultLocaleSlug:i,folder:e});let b="";if(h)b=h.name;else{b=W$(t.name,{slugificationEnabled:u,assetNamesInSameFolder:g});const w=m?`${m}/${b}`:b;g.push(b),a.push({action:"create",path:w,data:t}),c.push({...p,blobURL:n,name:b,path:w,sha:f,size:t.size,kind:Ld(b)})}let y=v?`${v==="/"?"":v}/${b}`:b;d&&(y=K$(y)),s[o]=s[o].replaceAll(n,y)},nh=({field:t,keyPath:e,keyPathList:n})=>{const{widget:r}=t,i=r==="list";if(n.push(e),i||r==="object"){const{fields:o,types:s,typeKey:a="type"}=t;if(o)o.forEach(c=>{nh({field:c,keyPath:i?`${e}.*.${c.name}`:`${e}.${c.name}`,keyPathList:n})});else if(s)n.push(i?`${e}.*.${a}`:`${e}.${a}`),s.forEach(c=>{c.fields?.forEach(u=>{nh({field:u,keyPath:i?`${e}.*.${u.name}`:`${e}.${u.name}`,keyPathList:n})})});else if(i){const{field:c}=t;c?nh({field:c,keyPath:`${e}.*`,keyPathList:n}):n.push(`${e}.*`)}}r&&Pp.includes(r)&&n.push(jc(t)?`${e}.*`:e)},kV=t=>{const e=[];return t.forEach(n=>{nh({field:n,keyPath:n.name,keyPathList:e})}),e},SV=t=>t==null||t===""||Array.isArray(t)&&!t.length||Yt(t)&&!Object.keys(t).length,bu=({key:t,field:e,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:o,omitEmptyOptionalFields:s})=>{if(t.endsWith(".__sc_item_id")){delete r[t];return}let a=r[t];if(o&&typeof a=="string"&&dD.test(a)&&e?.widget==="datetime"&&!Js(e).format)try{a=new va(a)}catch{}s&&e&&!Bc({fieldConfig:e,locale:n})&&!Object.keys(r).some(c=>c.startsWith(`${t}.`))&&SV(a)||(i[t]=a),delete r[t]},EV=({collectionName:t,fileName:e,fields:n,locale:r,valueMap:i,canonicalSlugKey:o,isIndexFile:s=!1,isTomlOutput:a=!1})=>{const c=js(i),u={},{omit_empty_optional_fields:d=!1}=ae($t)?.output??{},f={collectionName:t,fileName:e,valueMap:i,isIndexFile:s},h={locale:r,unsortedMap:c,sortedMap:u,isTomlOutput:a,omitEmptyOptionalFields:d};return o&&o in c&&bu({...h,key:o}),kV(n).forEach(p=>{const g=hn({...f,keyPath:p});if(p in c)bu({...h,key:p,field:g});else if(g?.widget==="keyvalue")u[p]={},Object.entries(c).filter(([m])=>m.startsWith(`${p}.`)).forEach(([m])=>{bu({...h,key:m,field:g})});else{const m=new RegExp(`^${Vt(p.replaceAll("*","\\d+")).replaceAll("\\\\d\\+","\\d+")}$`);Object.keys(c).filter(v=>m.test(v)).sort(([v,b])=>xi(v,b)).forEach(v=>{bu({...h,key:v,field:g})})}}),Object.keys(c).sort(([p,g])=>xi(p,g)).forEach(p=>{bu({...h,key:p})}),ls(u)},Tb=({draft:t,locale:e,valueMap:n})=>{const{collection:r,collectionName:i,collectionFile:o,fields:s,isIndexFile:a}=t,{_file:c,_i18n:{canonicalSlug:{key:u}}}=o??r,d=EV({collectionName:i,fileName:o?.name,fields:s,locale:e,valueMap:n,canonicalSlugKey:u,isIndexFile:a,isTomlOutput:["toml","toml-frontmatter"].includes(c.format)});return MT(s)?d[s[0].name]??[]:d},B2=(t,e=ae($t)?.output?.json??{})=>{const{indent_style:n="space",indent_size:r=n==="tab"?1:2}=e;return JSON.stringify(t,null,n==="tab"?" ".repeat(r):r).trim()},U2=t=>YF(t).trim(),q2=(t,e=ae($t)?.output?.yaml??{},n={})=>{const{indent_size:r=2,quote:i="none"}=e,{quote:o=!1}=n;return g_(t,null,{indent:r,lineWidth:0,defaultKeyType:"PLAIN",defaultStringType:o||i==="double"?"QUOTE_DOUBLE":i==="single"?"QUOTE_SINGLE":"PLAIN",singleQuote:!(o||i==="double")}).trim()},$V=({content:t,_file:e})=>{const{format:n,fmDelimiters:r,yamlQuote:i=!1}=e,[o,s]=r??["---","---"],a=typeof t.body=="string"?t.body:"";if(delete t.body,!Object.keys(t).length)return`${a}
|
|
503
503
|
`;try{if(n==="frontmatter"||n==="yaml-frontmatter")return`${o}
|
|
504
504
|
${q2(t,void 0,{quote:i})}
|
|
505
505
|
${s}
|
|
@@ -516,7 +516,7 @@ ${a}
|
|
|
516
516
|
`;try{if(/^ya?ml$/.test(n))return`${q2(t,void 0,{quote:r})}
|
|
517
517
|
`;if(n==="toml")return`${U2(t)}
|
|
518
518
|
`;if(n==="json")return`${B2(t)}
|
|
519
|
-
`}catch(o){return console.error(o),""}return/^(?:(?:yaml|toml|json)-)?frontmatter$/.test(n)?EV({content:t,_file:e}):""},$V=async({draft:t,slugs:{defaultLocaleSlug:e,canonicalSlug:n,localizedSlugs:r}})=>{const i=ae(ul),{collection:o,collectionName:s,collectionFile:a,fileName:c,isIndexFile:u,currentLocales:d,currentValues:f,files:h}=t,{_i18n:{canonicalSlug:{key:p}}}=a??o,g=[],m=[],{slugify_filename:v=!1}=Pd().config,{encode_file_path:b=!1}=ae($t)?.output??{},y={collectionName:s,fileName:c,keyPath:"",valueMap:{},isIndexFile:u},w={draft:t,defaultLocaleSlug:e,changes:g,savingAssets:m,slugificationEnabled:v};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(f).map(async([k,S])=>{const x=r?.[k]??e,T=F2({draft:t,locale:k,slug:x});return d[k]?(S[p]=n,await Promise.all(Object.entries(S).map(async([A,P])=>{if(P===void 0){delete S[A];return}if(typeof P!="string")return;S[A]=P.trim();const L=[...P.matchAll(EE("g"))];if(!L.length)return;const I=hn({...y,valueMap:S,keyPath:A}),N={...w,keyPath:A,content:S,encodingEnabled:I?.widget==="markdown"?!0:b};await Promise.all(L.map(async([D])=>{const{file:B,folder:H=i}=h[D]??{};B&&await xV({...N,file:B,folder:H,blobURL:D})}))})),[k,{slug:x,path:T,content:js(S)}]):[k,{path:T}]}))),changes:g,savingAssets:m}},H2=async({previousPath:t,cacheDB:e})=>t?(await e?.get(t))?.sha:void 0,TV=async({draft:t,savingEntry:e,cacheDB:n})=>{const{collection:r,isNew:i,originalSlugs:o,originalEntry:s,collectionFile:a}=t,{_file:c,_i18n:{i18nEnabled:u,defaultLocale:d}}=a??r,{slug:f,path:h,content:p}=e.locales[d],g=!i&&(o?.[d]??o?._)!==f,m=s?.locales[d]?.path;return{action:i?"create":g?"move":"update",slug:f,path:h,previousPath:g?m:void 0,previousSha:await H2({cacheDB:n,previousPath:m}),data:await V2({content:u?Object.fromEntries(Object.entries(e.locales).filter(([,v])=>!!v.content).map(([v,b])=>[v,Tb({draft:t,locale:v,valueMap:b.content})])):Tb({draft:t,locale:"_default",valueMap:p}),_file:c})}},CV=async({draft:t,savingEntry:e,cacheDB:n,locale:r})=>{const{collection:i,isNew:o,originalLocales:s,currentLocales:a,originalSlugs:c,originalEntry:u,collectionFile:d}=t,{_file:f}=d??i,{slug:h,path:p,content:g}=e.locales[r]??{},m=u?.locales[r]?.path,v=await H2({cacheDB:n,previousPath:m});if(a[r]){const b=!o&&s[r]&&(c?.[r]??c?._)!==h;return{action:o||!s[r]?"create":b?"move":"update",slug:h,path:p,previousPath:b?m:void 0,previousSha:v,data:await V2({content:Tb({draft:t,locale:r,valueMap:g}),_file:f})}}if(!o&&s[r])return{action:"delete",slug:h,path:p,previousSha:v}},K2=async({draft:t,slugs:e})=>{const{collection:n,originalEntry:r,collectionFile:i}=t,{defaultLocaleSlug:o}=e,{_file:s,_i18n:{i18nEnabled:a,allLocales:c,defaultLocale:u,structureMap:{i18nSingleFile:d}}}=i??n,{localizedEntryMap:f,changes:h,savingAssets:p}=await $V({draft:t,slugs:e}),g={id:r?.id??ai(),slug:o,subPath:s.fullPathRegEx?f[u].path.match(s.fullPathRegEx)?.groups?.subPath??o:o,locales:Object.fromEntries(Object.entries(f))},m=ae(wn)?.repository?.databaseName,v=m?new Lo(m,"file-cache"):void 0,b={draft:t,savingEntry:g,cacheDB:v};return!a||d?h.push(await TV({...b})):await Promise.all(c.map(async y=>{const w=await CV({...b,locale:y});w&&h.push(w)})),{savingEntry:g,savingAssets:p,changes:h}},AV=({entry:t})=>{const{locales:e}=t,n=Object.fromEntries(Object.entries(e).map(([o])=>[o,!0])),r=Object.fromEntries(Object.entries(e).map(([o,{slug:s}])=>[o,s])),i=Object.fromEntries(Object.entries(e).map(([o,{content:s}])=>[o,s]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:t,originalLocales:n,currentLocales:structuredClone(n),originalSlugs:r,currentSlugs:structuredClone(r),originalValues:i,currentValues:structuredClone(i),files:{},validities:{},expanderStates:{}}},yk=async({draftProps:t,indexFile:e,savingEntries:n,changes:r})=>{const{collection:i,collectionFile:o}=t,{fields:s=[]}=o??i,a={...t,fields:e?.fields??s},{savingEntry:c,changes:u}=await K2({draft:a,slugs:j2({draft:a})});n.push(c),r.push(...u)},PV=async({entry:t,savingEntries:e,changes:n})=>{const r=AV({entry:t});await Promise.all(ms(t).map(async i=>{const o=i.name,s=Fo(i,t),a=s?hi(i):void 0,c=Zs(i,t),u={indexFile:a,savingEntries:e,changes:n},d={...r,collection:i,collectionName:o,isIndexFile:s};c.length?await Promise.all(c.map(f=>yk({...u,draftProps:{...d,collectionFile:f,fileName:f.name}}))):await yk({...u,draftProps:d})}))},LV=async({_globalAssetFolder:t,newPath:e,asset:n,savingEntries:r,changes:i})=>{const o=Qu(n)??n.blobURL,s=o?await Nv(o):[];if(!o||!s.length)return;const{publicPath:a}=Ep(n.path).find(({collectionName:u})=>u!==void 0)??t,c=await Nv(o,{entries:structuredClone(s),newURL:e.replace(n.folder.internalPath??"",a??"")});c.length&&await Promise.all(c.map(async u=>PV({entry:u,savingEntries:r,changes:i})))},NV=({action:t,movedAssets:e})=>{const n=ae(Mn),r=ae(No)?.path,i=e.find(a=>a.asset.path===r),o=ae(Bs)?.path,s=e.find(a=>a.asset.path===o);i&&No.set(n.find(a=>a.path===i.path)),s&&Bs.set(n.find(a=>a.path===s.path)),Ss.set({...bl,moved:t==="move",renamed:t==="rename",count:e.length})},IV=async(t,e)=>{const n=ae(ul),r=[],i=[],o=[];await Promise.all(e.map(async({asset:s,path:a})=>{const c=a,u=fn(c).basename;o.push({...s,path:c,name:u}),r.push({action:"move",path:c,previousPath:s.path,previousSha:s.sha,data:new File([s.file??await Xs(s)],u)}),await LV({_globalAssetFolder:n,newPath:c,asset:s,savingEntries:i,changes:r})})),await Qd({changes:r,savingEntries:i,savingAssets:o,options:{commitType:"uploadMedia"}}),NV({action:t,movedAssets:e})};var OV=U('<span role="none"> </span>'),RV=U('<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!> <!></div> <div role="none" class="error svelte-22gadf"><!></div>',1);const DV={hash:"svelte-22gadf",code:"p.svelte-22gadf {margin:0 0 8px;}div.svelte-22gadf {display:flex;align-items:center;gap:4px;}.error.svelte-22gadf {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function MV(t,e){const n=zn();le(e,!0),ke(t,DV);const r=()=>V(Wf,"$renamingAsset",s),i=()=>V(na,"$showAssetOverlay",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=ie(!1),u=ie(St({filename:""})),d=ie(""),f=ie(St([])),h=ie(St([]));const p=_(r),g=_(()=>l(u).dirname),m=_(()=>l(u).filename),v=_(()=>l(u).extension),b=_(()=>{if(!l(d).trim())return"empty";if(l(d).includes("/"))return"character";if(l(f).includes(`${l(d)}${l(v)?`.${l(v)}`:""}`))return"duplicate"}),y=_(()=>!!l(b)),w=async()=>{l(p)&&(G(u,fn(l(p).path),!0),G(d,l(m),!0),G(f,H_(l(g)).map(k=>k.name).filter(k=>k!==l(p).name),!0),await(async k=>{G(h,k.usedEntries,!0)})(await Tp(l(p))),G(c,!0))},E=async()=>{if(!l(p))return;const k=l(p).path,S=`${l(g)}/${l(d)}${l(v)?`.${l(v)}`:""}`;await IV("rename",[{asset:l(p),path:S}]),Oo().path===`/assets/${k}`&&await Ht(`/assets/${S}`,{replaceState:!0,notifyChange:!1})};De(()=>{l(p)&&w()}),De(()=>{i()||(G(c,!1),Ge(Wf,void 0))});{let k=_(()=>o()("rename_x",{values:{name:l(p)?.name}})),S=_(()=>o()("rename")),C=_(()=>l(d)===l(m)||l(y));ji(t,{get title(){return l(k)},get okLabel(){return l(S)},get okDisabled(){return l(C)},onOk:()=>{E()},onClose:()=>{Ge(Wf,void 0)},get open(){return l(c)},set open(x){G(c,x,!0)},children:(x,T)=>{var A=RV(),P=M(A),L=z(P),I=j(P,2),N=z(I);Nn(N,{flex:!0,get invalid(){return l(y)},get"aria-errormessage"(){return`${n}-error`},get value(){return l(d)},set value(O){G(d,O,!0)}});var D=j(N,2);{var B=O=>{var F=OV(),K=z(F);Z(()=>te(K,`.${l(v)??""}`)),$(O,F)};q(D,O=>{l(v)&&O(B)})}var H=j(I,2),W=z(H);{var Y=O=>{var F=Oe();Z(K=>te(F,K),[()=>o()(`enter_new_name_for_asset_error.${l(b)}`)]),$(O,F)};q(W,O=>{l(y)&&O(Y)})}Z(O=>{te(L,O),Se(H,"id",`${n}-error`)},[()=>o()(l(h).length===0?"enter_new_name_for_asset":l(h).length===1?"enter_new_name_for_asset_with_one_entry":"enter_new_name_for_asset_with_many_entries",{values:{count:l(h).length}})]),$(x,A)},$$slots:{default:!0}})}ce(),a()}var FV=U('<div role="none" class="label svelte-17zk54k"><!></div>'),zV=U("<!> <!> <!>",1);const jV={hash:"svelte-17zk54k",code:".label.svelte-17zk54k {word-break:break-all;}"};function BV(t,e){le(e,!0),ke(t,jV);const n=()=>V(vl,"$listedAssets",a),r=()=>V(No,"$focusedAsset",a),i=()=>V(cn,"$isSmallScreen",a),o=()=>V(jo,"$isMediumScreen",a),s=()=>V(td,"$selectedAssets",a),[a,c]=me(),u=_(()=>e.asset.name),d=_(()=>e.asset.kind),f=h=>{td.update(p=>{const g=p.indexOf(e.asset);return h&&g===-1&&p.push(e.asset),!h&&g>-1&&p.splice(g,1),p})};{let h=_(()=>n().indexOf(e.asset));zd(t,{get"aria-rowindex"(){return l(h)},onChange:p=>{f(p.detail.selected)},onfocus:()=>{Ge(No,e.asset)},onclick:()=>{(i()||o())&&r()&&Ov(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},ondblclick:()=>{r()&&Ov(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},children:(p,g)=>{var m=zV(),v=M(m);{var b=k=>{_i(k,{class:"checkbox",children:(S,C)=>{{let x=_(()=>s().includes(e.asset));Fd(S,{role:"none",tabindex:"-1",get checked(){return l(x)},onChange:({detail:{checked:T}})=>{f(T)}})}},$$slots:{default:!0}})};q(v,k=>{i()||o()||k(b)})}var y=j(v,2);_i(y,{class:"image",children:(k,S)=>{{let C=_(()=>e.viewType==="list"?"icon":"tile"),x=_(()=>l(d)==="image");Ro(k,{get kind(){return l(d)},get asset(){return e.asset},get variant(){return l(C)},get cover(){return i()},get checkerboard(){return l(x)}})}},$$slots:{default:!0}});var w=j(y,2);{var E=k=>{_i(k,{class:"title",children:(S,C)=>{var x=FV(),T=z(x);Cr(T,{lines:2,children:(A,P)=>{var L=Oe();Z(()=>te(L,l(u))),$(A,L)},$$slots:{default:!0}}),$(S,x)},$$slots:{default:!0}})};q(w,k=>{(!i()||e.viewType==="list")&&k(E)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}function uw(t,e){let n=R(e,"loading",3,"lazy"),r=R(e,"asset",3,void 0),i=R(e,"src",3,void 0),o=R(e,"variant",3,void 0),s=R(e,"blurBackground",3,!1),a=R(e,"cover",3,!1),c=R(e,"checkerboard",3,!1),u=R(e,"alt",3,""),d=rt(e,["$$slots","$$events","$$legacy","loading","asset","src","variant","blurBackground","cover","checkerboard","alt"]);Ro(t,on({kind:"image",get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return o()},get blurBackground(){return s()},get cover(){return a()},get checkerboard(){return c()},get alt(){return u()}},()=>d))}var UV=U('<span role="none" class="image svelte-lbhi1w"><!></span>'),qV=U('<div role="listitem" class="file svelte-lbhi1w"><!> <div role="none" class="info svelte-lbhi1w"><div role="none" class="name"><!></div> <div role="none" class="meta svelte-lbhi1w"><!> <!></div></div> <!></div>'),VV=U('<div role="list" class="files svelte-lbhi1w"></div>');const HV={hash:"svelte-lbhi1w",code:".files.svelte-lbhi1w {display:flex;flex-direction:column;gap:16px;margin:0 8px;}.file.svelte-lbhi1w {display:flex;align-items:center;gap:16px;overflow:hidden;}.file.svelte-lbhi1w .preview {flex:none;}.file.svelte-lbhi1w .image:where(.svelte-lbhi1w) {flex:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) .meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}"};function Cb(t,e){le(e,!0),ke(t,HV);const n=()=>V(Ut,"$appLocale",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"files",27,()=>St([])),a=R(e,"transformedFileMap",3,void 0),c=R(e,"removable",3,!0);var u=VV();ot(u,21,s,vr,(d,f,h)=>{var p=X(),g=M(p);nn(g,Lt,null,m=>{const v=_(()=>{const{name:N,type:D,size:B}=l(f);return{name:N,type:D,size:B}}),b=_(()=>a()?.get(l(f)));var y=qV(),w=z(y);{var E=N=>{{let D=_(()=>URL.createObjectURL(l(f)));uw(N,{get src(){return l(D)},variant:"icon",checkerboard:!0})}},k=N=>{var D=UV(),B=z(D);Je(B,{name:"draft"}),$(N,D)};q(w,N=>{xo.includes(l(v).type)?N(E):N(k,!1)})}var S=j(w,2),C=z(S),x=z(C);Cr(x,{children:(N,D)=>{var B=Oe();Z(H=>te(B,H),[()=>l(v).name.normalize()]),$(N,B)},$$slots:{default:!0}});var T=j(C,2),A=z(T);er(A,n,N=>{var D=Oe();Z(B=>te(D,B),[()=>r()("file_meta",{values:{type:r()(`file_type_labels.${l(f).type.split("/")[1]}`,{default:fn(l(v).name).extension?.toUpperCase()}),size:$p(l(v).size)}})]),$(N,D)});var P=j(A,2);{var L=N=>{var D=Oe();Z(B=>te(D,B),[()=>r()("file_meta_converted_from_x",{values:{type:r()(`file_type_labels.${l(b).type.split("/")[1]}`,{default:fn(l(b).name).extension?.toUpperCase()})}})]),$(N,D)};q(P,N=>{l(b)&&l(b).type!==l(f).type&&N(L)})}var I=j(S,2);{let N=_(()=>r()("remove")),D=_(()=>!c()||s().length===1);Ze(I,{variant:"ghost",iconic:!0,get"aria-label"(){return l(N)},get hidden(){return l(D)},onclick:B=>{B.stopPropagation(),s().splice(h,1)},children:(B,H)=>{Je(B,{name:"close"})},$$slots:{default:!0}})}$(m,y)}),$(d,p)}),$(t,u),ce(),o()}var KV=U('<div role="alert"><!></div>'),GV=U('<div role="none"><!></div> <div role="none"><!></div> <!>',1),WV=U('<div role="none" class="content svelte-1hhq62q"><!> <!></div>'),YV=U('<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>'),JV=U('<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>',1);const XV={hash:"svelte-1hhq62q",code:".drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;}.drop-target.svelte-1hhq62q > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}.drop-target.svelte-1hhq62q button:not(:disabled) {pointer-events:auto;}.drop-indicator.svelte-1hhq62q {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl)/80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.content.svelte-1hhq62q {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}"};function ef(t,e){le(e,!0),ke(t,XV);const n=()=>V(ue,"$_",o),r=()=>V(Ut,"$appLocale",o),i=()=>V(ru,"$hasMouse",o),[o,s]=me(),a=F=>{var K=X(),J=M(K);{var Q=re=>{var ee=Oe();Z(ne=>te(ee,ne),[()=>n()("dropped_image_type_mismatch")]),$(re,ee)},oe=re=>{var ee=Oe();Z(ne=>te(ee,ne),[()=>n()("dropped_file_type_mismatch",{values:{type:dc(r(),{type:"disjunction"}).format(c().split(/,\s*/))}})]),$(re,ee)};q(J,re=>{c()===xo.join(",")?re(Q):re(oe,!1)})}$(F,K)};let c=R(e,"accept",3,void 0),u=R(e,"disabled",3,!1),d=R(e,"multiple",3,!1),f=R(e,"showUploadButton",3,!1),h=R(e,"showFilePreview",3,!1),p=R(e,"onDrop",3,void 0),g=R(e,"children",3,void 0),m=ie(void 0),v=ie(!1),b=ie(!1),y=ie(!1),w=ie(void 0),E=ie(St([]));const k=_(()=>f()||h()&&l(E).length),S=()=>{l(w)?.open()},C=()=>{l(E).length&&(G(E,[],!0),p()?.({files:l(E)}))},x=F=>{G(E,d()?F:F.slice(0,1),!0),p()?.({files:l(E)})};jt(()=>{l(m)?.addEventListener("Select",F=>{p()?.({files:F.detail.files})})}),De(()=>{!l(k)&&l(b)&&G(y,!0)});var T={openFilePicker:S,reset:C},A=JV(),P=M(A),L=z(P);{var I=F=>{var K=WV(),J=z(K);{var Q=ee=>{var ne=GV(),se=M(ne),fe=z(se);{var be=$e=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>n()(d()?"drop_files_or_click_to_browse":"drop_file_or_click_to_browse")]),$($e,Ce)},pe=$e=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>n()("tap_to_browse")]),$($e,Ce)};q(fe,$e=>{i()?$e(be):$e(pe,!1)})}var he=j(se,2),ge=z(he);{const $e=Re=>{Je(Re,{name:"cloud_upload"})};let Ce=_(()=>n()(d()?"choose_files":"choose_file"));Ze(ge,{variant:"primary",get label(){return l(Ce)},get disabled(){return u()},onclick:()=>{S()},startIcon:$e,$$slots:{startIcon:!0}})}var ve=j(he,2);{var _e=$e=>{var Ce=KV(),Re=z(Ce);a(Re),$($e,Ce)};q(ve,$e=>{l(b)&&$e(_e)})}$(ee,ne)};q(J,ee=>{f()&&ee(Q)})}var oe=j(J,2);{var re=ee=>{Cb(ee,{get files(){return l(E)},set files(ne){G(E,ne,!0)}})};q(oe,ee=>{h()&&l(E).length&&ee(re)})}$(F,K)},N=F=>{var K=X(),J=M(K);Me(J,()=>g()??Be),$(F,K)};q(L,F=>{l(k)?F(I):F(N,!1)})}var D=j(L,2);{var B=F=>{var K=YV(),J=z(K),Q=z(J);Je(Q,{name:"download"});var oe=j(Q,2),re=z(oe);Z(ee=>te(re,ee),[()=>n()(d()?"drop_files_here":"drop_file_here")]),$(F,K)};q(D,F=>{l(v)&&F(B)})}bt(P,F=>G(m,F),()=>l(m));var H=j(P,2);bt(ay(H,{get accept(){return c()},get multiple(){return d()},onSelect:({files:F})=>{x(F)}}),F=>G(w,F,!0),()=>l(w));var W=j(H,2);{var Y=F=>{{let K=_(()=>n()("unsupported_file_type"));jp(F,{get title(){return l(K)},get open(){return l(y)},set open(J){G(y,J,!0)},children:(J,Q)=>{a(J)},$$slots:{default:!0}})}};q(W,F=>{l(k)||F(Y)})}Hr("dragover",P,F=>{F.preventDefault(),!(u()||!F.dataTransfer)&&(F.dataTransfer.dropEffect="copy",G(v,!0),G(b,!1))}),Hr("dragleave",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),Hr("dragend",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),Hr("drop",P,async F=>{if(F.preventDefault(),u()||!F.dataTransfer)return;G(v,!1);const K=await nI(F.dataTransfer,{accept:c()});K.length?x(K):G(b,!0)}),$(t,A);var O=ce(T);return s(),O}function G2(t,e){le(e,!0);const n=()=>V(Sp,"$targetAssetFolder",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"label",3,void 0);const a=_(()=>!m_(n()));{const c=f=>{Je(f,{name:"cloud_upload"})};let u=_(()=>!s()),d=_(()=>r()("upload_assets"));Ze(t,{variant:"primary",get iconic(){return l(u)},get disabled(){return l(a)},get label(){return s()},get"aria-label"(){return l(d)},onclick:()=>{Ge(xs,!0)},startIcon:c,$$slots:{startIcon:!0}})}ce(),o()}var ZV=U("<div><!></div>");const QV={hash:"svelte-1sdsl2g",code:".list-container.svelte-1sdsl2g {--icon-size: 36px;flex:auto;position:relative;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;}"};function dw(t,e){ke(t,QV);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=ZV();mt(i,()=>({role:"group",class:"list-container",...r}),void 0,void 0,"svelte-1sdsl2g");var o=z(i);Me(o,()=>n()??Be),$(t,i)}var eH=U('<div role="none"><!></div>');const tH={hash:"svelte-1sfbolp",code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}
|
|
519
|
+
`}catch(o){return console.error(o),""}return/^(?:(?:yaml|toml|json)-)?frontmatter$/.test(n)?$V({content:t,_file:e}):""},TV=async({draft:t,slugs:{defaultLocaleSlug:e,canonicalSlug:n,localizedSlugs:r}})=>{const i=ae(ul),{collection:o,collectionName:s,collectionFile:a,fileName:c,isIndexFile:u,currentLocales:d,currentValues:f,files:h}=t,{_i18n:{canonicalSlug:{key:p}}}=a??o,g=[],m=[],{slugify_filename:v=!1}=Pd().config,{encode_file_path:b=!1}=ae($t)?.output??{},y={collectionName:s,fileName:c,keyPath:"",valueMap:{},isIndexFile:u},w={draft:t,defaultLocaleSlug:e,changes:g,savingAssets:m,slugificationEnabled:v};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(f).map(async([k,S])=>{const x=r?.[k]??e,T=F2({draft:t,locale:k,slug:x});return d[k]?(S[p]=n,await Promise.all(Object.entries(S).map(async([A,P])=>{if(P===void 0){delete S[A];return}if(typeof P!="string")return;S[A]=P.trim();const L=[...P.matchAll(EE("g"))];if(!L.length)return;const I=hn({...y,valueMap:S,keyPath:A}),N={...w,keyPath:A,content:S,encodingEnabled:I?.widget==="markdown"?!0:b};await Promise.all(L.map(async([D])=>{const{file:B,folder:H=i}=h[D]??{};B&&await xV({...N,file:B,folder:H,blobURL:D})}))})),[k,{slug:x,path:T,content:js(S)}]):[k,{path:T}]}))),changes:g,savingAssets:m}},H2=async({previousPath:t,cacheDB:e})=>t?(await e?.get(t))?.sha:void 0,CV=async({draft:t,savingEntry:e,cacheDB:n})=>{const{collection:r,isNew:i,originalSlugs:o,originalEntry:s,collectionFile:a}=t,{_file:c,_i18n:{i18nEnabled:u,defaultLocale:d}}=a??r,{slug:f,path:h,content:p}=e.locales[d],g=!i&&(o?.[d]??o?._)!==f,m=s?.locales[d]?.path;return{action:i?"create":g?"move":"update",slug:f,path:h,previousPath:g?m:void 0,previousSha:await H2({cacheDB:n,previousPath:m}),data:await V2({content:u?Object.fromEntries(Object.entries(e.locales).filter(([,v])=>!!v.content).map(([v,b])=>[v,Tb({draft:t,locale:v,valueMap:b.content})])):Tb({draft:t,locale:"_default",valueMap:p}),_file:c})}},AV=async({draft:t,savingEntry:e,cacheDB:n,locale:r})=>{const{collection:i,isNew:o,originalLocales:s,currentLocales:a,originalSlugs:c,originalEntry:u,collectionFile:d}=t,{_file:f}=d??i,{slug:h,path:p,content:g}=e.locales[r]??{},m=u?.locales[r]?.path,v=await H2({cacheDB:n,previousPath:m});if(a[r]){const b=!o&&s[r]&&(c?.[r]??c?._)!==h;return{action:o||!s[r]?"create":b?"move":"update",slug:h,path:p,previousPath:b?m:void 0,previousSha:v,data:await V2({content:Tb({draft:t,locale:r,valueMap:g}),_file:f})}}if(!o&&s[r])return{action:"delete",slug:h,path:p,previousSha:v}},K2=async({draft:t,slugs:e})=>{const{collection:n,originalEntry:r,collectionFile:i}=t,{defaultLocaleSlug:o}=e,{_file:s,_i18n:{i18nEnabled:a,allLocales:c,defaultLocale:u,structureMap:{i18nSingleFile:d}}}=i??n,{localizedEntryMap:f,changes:h,savingAssets:p}=await TV({draft:t,slugs:e}),g={id:r?.id??ai(),slug:o,subPath:s.fullPathRegEx?f[u].path.match(s.fullPathRegEx)?.groups?.subPath??o:o,locales:Object.fromEntries(Object.entries(f))},m=ae(wn)?.repository?.databaseName,v=m?new Lo(m,"file-cache"):void 0,b={draft:t,savingEntry:g,cacheDB:v};return!a||d?h.push(await CV({...b})):await Promise.all(c.map(async y=>{const w=await AV({...b,locale:y});w&&h.push(w)})),{savingEntry:g,savingAssets:p,changes:h}},PV=({entry:t})=>{const{locales:e}=t,n=Object.fromEntries(Object.entries(e).map(([o])=>[o,!0])),r=Object.fromEntries(Object.entries(e).map(([o,{slug:s}])=>[o,s])),i=Object.fromEntries(Object.entries(e).map(([o,{content:s}])=>[o,s]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:t,originalLocales:n,currentLocales:structuredClone(n),originalSlugs:r,currentSlugs:structuredClone(r),originalValues:i,currentValues:structuredClone(i),files:{},validities:{},expanderStates:{}}},yk=async({draftProps:t,indexFile:e,savingEntries:n,changes:r})=>{const{collection:i,collectionFile:o}=t,{fields:s=[]}=o??i,a={...t,fields:e?.fields??s},{savingEntry:c,changes:u}=await K2({draft:a,slugs:j2({draft:a})});n.push(c),r.push(...u)},LV=async({entry:t,savingEntries:e,changes:n})=>{const r=PV({entry:t});await Promise.all(ms(t).map(async i=>{const o=i.name,s=Fo(i,t),a=s?hi(i):void 0,c=Zs(i,t),u={indexFile:a,savingEntries:e,changes:n},d={...r,collection:i,collectionName:o,isIndexFile:s};c.length?await Promise.all(c.map(f=>yk({...u,draftProps:{...d,collectionFile:f,fileName:f.name}}))):await yk({...u,draftProps:d})}))},NV=async({_globalAssetFolder:t,newPath:e,asset:n,savingEntries:r,changes:i})=>{const o=Qu(n)??n.blobURL,s=o?await Nv(o):[];if(!o||!s.length)return;const{publicPath:a}=Ep(n.path).find(({collectionName:u})=>u!==void 0)??t,c=await Nv(o,{entries:structuredClone(s),newURL:e.replace(n.folder.internalPath??"",a??"")});c.length&&await Promise.all(c.map(async u=>LV({entry:u,savingEntries:r,changes:i})))},IV=({action:t,movedAssets:e})=>{const n=ae(Mn),r=ae(No)?.path,i=e.find(a=>a.asset.path===r),o=ae(Bs)?.path,s=e.find(a=>a.asset.path===o);i&&No.set(n.find(a=>a.path===i.path)),s&&Bs.set(n.find(a=>a.path===s.path)),Ss.set({...bl,moved:t==="move",renamed:t==="rename",count:e.length})},OV=async(t,e)=>{const n=ae(ul),r=[],i=[],o=[];await Promise.all(e.map(async({asset:s,path:a})=>{const c=a,u=fn(c).basename;o.push({...s,path:c,name:u}),r.push({action:"move",path:c,previousPath:s.path,previousSha:s.sha,data:new File([s.file??await Xs(s)],u)}),await NV({_globalAssetFolder:n,newPath:c,asset:s,savingEntries:i,changes:r})})),await Qd({changes:r,savingEntries:i,savingAssets:o,options:{commitType:"uploadMedia"}}),IV({action:t,movedAssets:e})};var RV=U('<span role="none"> </span>'),DV=U('<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!> <!></div> <div role="none" class="error svelte-22gadf"><!></div>',1);const MV={hash:"svelte-22gadf",code:"p.svelte-22gadf {margin:0 0 8px;}div.svelte-22gadf {display:flex;align-items:center;gap:4px;}.error.svelte-22gadf {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function FV(t,e){const n=zn();le(e,!0),ke(t,MV);const r=()=>V(Wf,"$renamingAsset",s),i=()=>V(na,"$showAssetOverlay",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=ie(!1),u=ie(St({filename:""})),d=ie(""),f=ie(St([])),h=ie(St([]));const p=_(r),g=_(()=>l(u).dirname),m=_(()=>l(u).filename),v=_(()=>l(u).extension),b=_(()=>{if(!l(d).trim())return"empty";if(l(d).includes("/"))return"character";if(l(f).includes(`${l(d)}${l(v)?`.${l(v)}`:""}`))return"duplicate"}),y=_(()=>!!l(b)),w=async()=>{l(p)&&(G(u,fn(l(p).path),!0),G(d,l(m),!0),G(f,H_(l(g)).map(k=>k.name).filter(k=>k!==l(p).name),!0),await(async k=>{G(h,k.usedEntries,!0)})(await Tp(l(p))),G(c,!0))},E=async()=>{if(!l(p))return;const k=l(p).path,S=`${l(g)}/${l(d)}${l(v)?`.${l(v)}`:""}`;await OV("rename",[{asset:l(p),path:S}]),Oo().path===`/assets/${k}`&&await Ht(`/assets/${S}`,{replaceState:!0,notifyChange:!1})};De(()=>{l(p)&&w()}),De(()=>{i()||(G(c,!1),Ge(Wf,void 0))});{let k=_(()=>o()("rename_x",{values:{name:l(p)?.name}})),S=_(()=>o()("rename")),C=_(()=>l(d)===l(m)||l(y));ji(t,{get title(){return l(k)},get okLabel(){return l(S)},get okDisabled(){return l(C)},onOk:()=>{E()},onClose:()=>{Ge(Wf,void 0)},get open(){return l(c)},set open(x){G(c,x,!0)},children:(x,T)=>{var A=DV(),P=M(A),L=z(P),I=j(P,2),N=z(I);Nn(N,{flex:!0,get invalid(){return l(y)},get"aria-errormessage"(){return`${n}-error`},get value(){return l(d)},set value(O){G(d,O,!0)}});var D=j(N,2);{var B=O=>{var F=RV(),K=z(F);Z(()=>te(K,`.${l(v)??""}`)),$(O,F)};q(D,O=>{l(v)&&O(B)})}var H=j(I,2),W=z(H);{var Y=O=>{var F=Oe();Z(K=>te(F,K),[()=>o()(`enter_new_name_for_asset_error.${l(b)}`)]),$(O,F)};q(W,O=>{l(y)&&O(Y)})}Z(O=>{te(L,O),Se(H,"id",`${n}-error`)},[()=>o()(l(h).length===0?"enter_new_name_for_asset":l(h).length===1?"enter_new_name_for_asset_with_one_entry":"enter_new_name_for_asset_with_many_entries",{values:{count:l(h).length}})]),$(x,A)},$$slots:{default:!0}})}ce(),a()}var zV=U('<div role="none" class="label svelte-17zk54k"><!></div>'),jV=U("<!> <!> <!>",1);const BV={hash:"svelte-17zk54k",code:".label.svelte-17zk54k {word-break:break-all;}"};function UV(t,e){le(e,!0),ke(t,BV);const n=()=>V(vl,"$listedAssets",a),r=()=>V(No,"$focusedAsset",a),i=()=>V(cn,"$isSmallScreen",a),o=()=>V(jo,"$isMediumScreen",a),s=()=>V(td,"$selectedAssets",a),[a,c]=me(),u=_(()=>e.asset.name),d=_(()=>e.asset.kind),f=h=>{td.update(p=>{const g=p.indexOf(e.asset);return h&&g===-1&&p.push(e.asset),!h&&g>-1&&p.splice(g,1),p})};{let h=_(()=>n().indexOf(e.asset));zd(t,{get"aria-rowindex"(){return l(h)},onChange:p=>{f(p.detail.selected)},onfocus:()=>{Ge(No,e.asset)},onclick:()=>{(i()||o())&&r()&&Ov(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},ondblclick:()=>{r()&&Ov(r())&&Ht(`/assets/${r().path}`,{transitionType:"forwards"})},children:(p,g)=>{var m=jV(),v=M(m);{var b=k=>{_i(k,{class:"checkbox",children:(S,C)=>{{let x=_(()=>s().includes(e.asset));Fd(S,{role:"none",tabindex:"-1",get checked(){return l(x)},onChange:({detail:{checked:T}})=>{f(T)}})}},$$slots:{default:!0}})};q(v,k=>{i()||o()||k(b)})}var y=j(v,2);_i(y,{class:"image",children:(k,S)=>{{let C=_(()=>e.viewType==="list"?"icon":"tile"),x=_(()=>l(d)==="image");Ro(k,{get kind(){return l(d)},get asset(){return e.asset},get variant(){return l(C)},get cover(){return i()},get checkerboard(){return l(x)}})}},$$slots:{default:!0}});var w=j(y,2);{var E=k=>{_i(k,{class:"title",children:(S,C)=>{var x=zV(),T=z(x);Cr(T,{lines:2,children:(A,P)=>{var L=Oe();Z(()=>te(L,l(u))),$(A,L)},$$slots:{default:!0}}),$(S,x)},$$slots:{default:!0}})};q(w,k=>{(!i()||e.viewType==="list")&&k(E)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}function uw(t,e){let n=R(e,"loading",3,"lazy"),r=R(e,"asset",3,void 0),i=R(e,"src",3,void 0),o=R(e,"variant",3,void 0),s=R(e,"blurBackground",3,!1),a=R(e,"cover",3,!1),c=R(e,"checkerboard",3,!1),u=R(e,"alt",3,""),d=rt(e,["$$slots","$$events","$$legacy","loading","asset","src","variant","blurBackground","cover","checkerboard","alt"]);Ro(t,on({kind:"image",get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return o()},get blurBackground(){return s()},get cover(){return a()},get checkerboard(){return c()},get alt(){return u()}},()=>d))}var qV=U('<span role="none" class="image svelte-lbhi1w"><!></span>'),VV=U('<div role="listitem" class="file svelte-lbhi1w"><!> <div role="none" class="info svelte-lbhi1w"><div role="none" class="name"><!></div> <div role="none" class="meta svelte-lbhi1w"><!> <!></div></div> <!></div>'),HV=U('<div role="list" class="files svelte-lbhi1w"></div>');const KV={hash:"svelte-lbhi1w",code:".files.svelte-lbhi1w {display:flex;flex-direction:column;gap:16px;margin:0 8px;}.file.svelte-lbhi1w {display:flex;align-items:center;gap:16px;overflow:hidden;}.file.svelte-lbhi1w .preview {flex:none;}.file.svelte-lbhi1w .image:where(.svelte-lbhi1w) {flex:none;display:flex;justify-content:center;align-items:center;width:40px;height:40px;aspect-ratio:1/1;object-fit:cover;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-tertiary-background-color);}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;}.file.svelte-lbhi1w .info:where(.svelte-lbhi1w) .meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}"};function Cb(t,e){le(e,!0),ke(t,KV);const n=()=>V(Ut,"$appLocale",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"files",27,()=>St([])),a=R(e,"transformedFileMap",3,void 0),c=R(e,"removable",3,!0);var u=HV();ot(u,21,s,vr,(d,f,h)=>{var p=X(),g=M(p);nn(g,Lt,null,m=>{const v=_(()=>{const{name:N,type:D,size:B}=l(f);return{name:N,type:D,size:B}}),b=_(()=>a()?.get(l(f)));var y=VV(),w=z(y);{var E=N=>{{let D=_(()=>URL.createObjectURL(l(f)));uw(N,{get src(){return l(D)},variant:"icon",checkerboard:!0})}},k=N=>{var D=qV(),B=z(D);Je(B,{name:"draft"}),$(N,D)};q(w,N=>{xo.includes(l(v).type)?N(E):N(k,!1)})}var S=j(w,2),C=z(S),x=z(C);Cr(x,{children:(N,D)=>{var B=Oe();Z(H=>te(B,H),[()=>l(v).name.normalize()]),$(N,B)},$$slots:{default:!0}});var T=j(C,2),A=z(T);er(A,n,N=>{var D=Oe();Z(B=>te(D,B),[()=>r()("file_meta",{values:{type:r()(`file_type_labels.${l(f).type.split("/")[1]}`,{default:fn(l(v).name).extension?.toUpperCase()}),size:$p(l(v).size)}})]),$(N,D)});var P=j(A,2);{var L=N=>{var D=Oe();Z(B=>te(D,B),[()=>r()("file_meta_converted_from_x",{values:{type:r()(`file_type_labels.${l(b).type.split("/")[1]}`,{default:fn(l(b).name).extension?.toUpperCase()})}})]),$(N,D)};q(P,N=>{l(b)&&l(b).type!==l(f).type&&N(L)})}var I=j(S,2);{let N=_(()=>r()("remove")),D=_(()=>!c()||s().length===1);Ze(I,{variant:"ghost",iconic:!0,get"aria-label"(){return l(N)},get hidden(){return l(D)},onclick:B=>{B.stopPropagation(),s().splice(h,1)},children:(B,H)=>{Je(B,{name:"close"})},$$slots:{default:!0}})}$(m,y)}),$(d,p)}),$(t,u),ce(),o()}var GV=U('<div role="alert"><!></div>'),WV=U('<div role="none"><!></div> <div role="none"><!></div> <!>',1),YV=U('<div role="none" class="content svelte-1hhq62q"><!> <!></div>'),JV=U('<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>'),XV=U('<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>',1);const ZV={hash:"svelte-1hhq62q",code:".drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;}.drop-target.svelte-1hhq62q > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}.drop-target.svelte-1hhq62q button:not(:disabled) {pointer-events:auto;}.drop-indicator.svelte-1hhq62q {position:absolute;inset:0;z-index:10;border-radius:var(--sui-control-large-border-radius);background-color:hsl(var(--sui-background-color-4-hsl)/80%);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-align:center;pointer-events:none;}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) {position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;border:4px dashed var(--sui-primary-accent-color);border-radius:var(--sui-control-large-border-radius);font-size:var(--sui-font-size-x-large);}.drop-indicator.svelte-1hhq62q div:where(.svelte-1hhq62q) .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.content.svelte-1hhq62q {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:auto;height:100%;min-height:320px;text-align:center;}"};function ef(t,e){le(e,!0),ke(t,ZV);const n=()=>V(ue,"$_",o),r=()=>V(Ut,"$appLocale",o),i=()=>V(ru,"$hasMouse",o),[o,s]=me(),a=F=>{var K=X(),J=M(K);{var Q=re=>{var ee=Oe();Z(ne=>te(ee,ne),[()=>n()("dropped_image_type_mismatch")]),$(re,ee)},oe=re=>{var ee=Oe();Z(ne=>te(ee,ne),[()=>n()("dropped_file_type_mismatch",{values:{type:dc(r(),{type:"disjunction"}).format(c().split(/,\s*/))}})]),$(re,ee)};q(J,re=>{c()===xo.join(",")?re(Q):re(oe,!1)})}$(F,K)};let c=R(e,"accept",3,void 0),u=R(e,"disabled",3,!1),d=R(e,"multiple",3,!1),f=R(e,"showUploadButton",3,!1),h=R(e,"showFilePreview",3,!1),p=R(e,"onDrop",3,void 0),g=R(e,"children",3,void 0),m=ie(void 0),v=ie(!1),b=ie(!1),y=ie(!1),w=ie(void 0),E=ie(St([]));const k=_(()=>f()||h()&&l(E).length),S=()=>{l(w)?.open()},C=()=>{l(E).length&&(G(E,[],!0),p()?.({files:l(E)}))},x=F=>{G(E,d()?F:F.slice(0,1),!0),p()?.({files:l(E)})};jt(()=>{l(m)?.addEventListener("Select",F=>{p()?.({files:F.detail.files})})}),De(()=>{!l(k)&&l(b)&&G(y,!0)});var T={openFilePicker:S,reset:C},A=XV(),P=M(A),L=z(P);{var I=F=>{var K=YV(),J=z(K);{var Q=ee=>{var ne=WV(),se=M(ne),fe=z(se);{var be=$e=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>n()(d()?"drop_files_or_click_to_browse":"drop_file_or_click_to_browse")]),$($e,Ce)},pe=$e=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>n()("tap_to_browse")]),$($e,Ce)};q(fe,$e=>{i()?$e(be):$e(pe,!1)})}var he=j(se,2),ge=z(he);{const $e=Re=>{Je(Re,{name:"cloud_upload"})};let Ce=_(()=>n()(d()?"choose_files":"choose_file"));Ze(ge,{variant:"primary",get label(){return l(Ce)},get disabled(){return u()},onclick:()=>{S()},startIcon:$e,$$slots:{startIcon:!0}})}var ve=j(he,2);{var _e=$e=>{var Ce=GV(),Re=z(Ce);a(Re),$($e,Ce)};q(ve,$e=>{l(b)&&$e(_e)})}$(ee,ne)};q(J,ee=>{f()&&ee(Q)})}var oe=j(J,2);{var re=ee=>{Cb(ee,{get files(){return l(E)},set files(ne){G(E,ne,!0)}})};q(oe,ee=>{h()&&l(E).length&&ee(re)})}$(F,K)},N=F=>{var K=X(),J=M(K);Me(J,()=>g()??Be),$(F,K)};q(L,F=>{l(k)?F(I):F(N,!1)})}var D=j(L,2);{var B=F=>{var K=JV(),J=z(K),Q=z(J);Je(Q,{name:"download"});var oe=j(Q,2),re=z(oe);Z(ee=>te(re,ee),[()=>n()(d()?"drop_files_here":"drop_file_here")]),$(F,K)};q(D,F=>{l(v)&&F(B)})}bt(P,F=>G(m,F),()=>l(m));var H=j(P,2);bt(ay(H,{get accept(){return c()},get multiple(){return d()},onSelect:({files:F})=>{x(F)}}),F=>G(w,F,!0),()=>l(w));var W=j(H,2);{var Y=F=>{{let K=_(()=>n()("unsupported_file_type"));jp(F,{get title(){return l(K)},get open(){return l(y)},set open(J){G(y,J,!0)},children:(J,Q)=>{a(J)},$$slots:{default:!0}})}};q(W,F=>{l(k)||F(Y)})}Hr("dragover",P,F=>{F.preventDefault(),!(u()||!F.dataTransfer)&&(F.dataTransfer.dropEffect="copy",G(v,!0),G(b,!1))}),Hr("dragleave",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),Hr("dragend",P,F=>{F.preventDefault(),!u()&&G(v,!1)}),Hr("drop",P,async F=>{if(F.preventDefault(),u()||!F.dataTransfer)return;G(v,!1);const K=await nI(F.dataTransfer,{accept:c()});K.length?x(K):G(b,!0)}),$(t,A);var O=ce(T);return s(),O}function G2(t,e){le(e,!0);const n=()=>V(Sp,"$targetAssetFolder",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"label",3,void 0);const a=_(()=>!m_(n()));{const c=f=>{Je(f,{name:"cloud_upload"})};let u=_(()=>!s()),d=_(()=>r()("upload_assets"));Ze(t,{variant:"primary",get iconic(){return l(u)},get disabled(){return l(a)},get label(){return s()},get"aria-label"(){return l(d)},onclick:()=>{Ge(xs,!0)},startIcon:c,$$slots:{startIcon:!0}})}ce(),o()}var QV=U("<div><!></div>");const eH={hash:"svelte-1sdsl2g",code:".list-container.svelte-1sdsl2g {--icon-size: 36px;flex:auto;position:relative;height:100%;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;}"};function dw(t,e){ke(t,eH);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=QV();mt(i,()=>({role:"group",class:"list-container",...r}),void 0,void 0,"svelte-1sdsl2g");var o=z(i);Me(o,()=>n()??Be),$(t,i)}var tH=U('<div role="none"><!></div>');const nH={hash:"svelte-1sfbolp",code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}
|
|
520
520
|
|
|
521
521
|
@media (width < 768px) {.grid-view.svelte-1sfbolp {padding:4px;}
|
|
522
522
|
}.grid-view.svelte-1sfbolp .row-group-caption {display:block;grid-column:1/-1;}.grid-view.svelte-1sfbolp .row-group-caption th {display:block;}.grid-view.svelte-1sfbolp .row-group:not(:first-child) .row-group-caption {margin-top:16px;}.grid-view.svelte-1sfbolp .grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;}
|
|
@@ -530,14 +530,14 @@ ${a}
|
|
|
530
530
|
@media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell {border-width:0 !important;height:64px;}
|
|
531
531
|
}.list-view.svelte-1sfbolp [role=grid] .grid-cell.checkbox {padding-inline-start:8px !important;width:44px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}.list-view.svelte-1sfbolp [role=grid] .grid-cell:first-child {padding-inline-start:16px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell .label {overflow:hidden;}
|
|
532
532
|
@media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell .label {white-space:normal;line-height:var(--sui-line-height-compact);}
|
|
533
|
-
}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image {width:48px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:"";}`};function tf(t,e){le(e,!0),ke(t,tH);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","viewType","children"]);var i=eH(),o=z(i);nn(o,Lt,null,s=>{rU(s,on({multiple:!0,clickToSelect:!1},()=>r,{children:(a,c)=>{var u=X(),d=M(u);Me(d,()=>n()??Be),$(a,u)},$$slots:{default:!0}}))}),Z(()=>rn(i,1,`${e.viewType??""}-view`,"svelte-1sfbolp")),$(t,i),ce()}var nH=U('<span role="none"> </span> <!>',1);function rH(t,e){le(e,!0);const n=()=>V(ks,"$currentView",a),r=()=>V(Sp,"$targetAssetFolder",a),i=()=>V(ue,"$_",a),o=()=>V(iw,"$assetGroups",a),s=()=>V(vl,"$listedAssets",a),[a,c]=me(),u=_(()=>n().type),d=_(r),f=_(()=>!m_(l(d)));{let h=_(()=>i()("asset_list"));dw(t,{get"aria-label"(){return l(h)},children:(p,g)=>{ef(p,{get disabled(){return l(f)},multiple:!0,onDrop:({files:m})=>{Ge(Ki,{folder:l(d),files:m})},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{{let S=_(()=>i()("assets"));tf(k,{id:"asset-list",get viewType(){return l(u)},get"aria-label"(){return l(S)},get"aria-rowcount"(){return s().length},children:(C,x)=>{var T=X(),A=M(T);ot(A,1,()=>Object.entries(o()),([P,L])=>P,(P,L)=>{var I=_(()=>So(l(L),2));let N=()=>l(I)[0],D=()=>l(I)[1];var B=X(),H=M(B);nn(H,Lt,null,W=>{{let Y=_(()=>N()!=="*"?N():void 0);$C(W,{get label(){return l(Y)},children:(O,F)=>{hl(O,{get items(){return D()},itemKey:"path",renderItem:(J,Q=Be)=>{var oe=X(),re=M(oe);er(re,()=>Q().sha,ee=>{var ne=X(),se=M(ne);nn(se,Lt,null,fe=>{BV(fe,{get asset(){return Q()},get viewType(){return l(u)}})}),$(ee,ne)}),$(J,oe)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),$(P,B)}),$(C,T)},$$slots:{default:!0}})}},E=k=>{pr(k,{children:(S,C)=>{var x=nH(),T=M(x),A=z(T),P=j(T,2);{var L=I=>{{let N=_(()=>i()("upload_assets"));G2(I,{get label(){return l(N)}})}};q(P,I=>{l(f)||I(L)})}Z(I=>te(A,I),[()=>i()("no_files_found")]),$(S,x)},$$slots:{default:!0}})};q(y,k=>{Object.values(o()).flat(1).length?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}})}ce(),c()}const Ra=nt(null),ss=nt("");var iH=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),oH=U('<div role="none" class="wrapper svelte-lav5fn"><!></div>');const sH={hash:"svelte-lav5fn",code:".wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}"};function ag(t,e){le(e,!0),ke(t,sH);const n=()=>V(ss,"$searchTerms",o),r=()=>V(Ra,"$searchMode",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"onclick",3,void 0);const c=p=>{const g=!!n(),{path:m}=Oo(),v=m.startsWith("/search/");Ge(ss,p),p?Ht(`/search/${p}`,{replaceState:v}):g&&v&&Vs("/collections")};let u=ie(void 0);De(()=>{l(u)&&n()!==l(u)?.value&&(l(u).value=n())});var d=oH(),f=z(d);{var h=p=>{var g=iH(),m=M(g);{let v=_(()=>i()(`search_placeholder_${r()}`));Lc(m,()=>({"--sui-textbox-placeholder-text-align":"center"})),bt(Bp(m.lastChild,{keyShortcuts:"Accel+F",get placeholder(){return l(v)},get onclick(){return a()},oninput:({target:b})=>{c(b.value.trim())}}),b=>G(u,b,!0),()=>l(u))}$(p,g)};q(f,p=>{r()&&p(h)})}$(t,d),ce(),s()}var aH=U("<header><h2> </h2></header> <!>",1),lH=U('<span class="count"> </span>'),cH=U('<div role="none" class="primary-sidebar"><!> <!></div>');function uH(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",c),r=()=>V(Ys,"$allAssetFolders",c),i=()=>V(cn,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Hi,"$selectedAssetFolder",c),a=()=>V(Mn,"$allAssets",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>[...r().sort((v,b)=>Gx(v.collectionName,v.fileName)-Gx(b.collectionName,b.fileName)).sort((v,b)=>w0(v.collectionName)-w0(b.collectionName))]);var h=cH(),p=z(h);{var g=v=>{var b=aH(),y=M(b),w=z(y),E=z(w),k=j(y,2);ag(k,{onclick:S=>{S.preventDefault(),Ht("/search")}}),Z(S=>te(E,S),[()=>o()("assets")]),$(v,b)};q(p,v=>{i()&&v(g)})}var m=j(p,2);{let v=_(()=>o()("asset_folder_list"));Gc(m,{get"aria-label"(){return l(v)},"aria-controls":"assets-container",children:(b,y)=>{{let w=_(()=>o()("asset_location.repository"));Ca(b,{get label(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);ot(C,17,()=>l(f),x=>[x.collectionName,x.fileName,x.internalPath].join(":"),(x,T)=>{var A=X(),P=M(A);nn(P,Lt,null,L=>{const I=_(()=>{const{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}=l(T);return{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}}),N=_(()=>l(I).collectionName?Qr(l(I).collectionName):void 0),D=_(()=>l(N)&&l(I).fileName?Fc(l(N),l(I).fileName):void 0),B=_(()=>l(I).entryRelative||l(I).hasTemplateTags),H=_(()=>ln(s(),l(T)));{const W=K=>{{let J=_(()=>l(D)?.icon||l(N)?.icon||"folder");Je(K,{get name(){return l(J)}})}},Y=K=>{var J=X(),Q=M(J);er(Q,a,oe=>{var re=X(),ee=M(re);nn(ee,Lt,null,ne=>{const se=_(()=>(l(I).internalPath!==void 0?TF(l(T)):a()).length);var fe=lH(),be=z(fe);Z((pe,he)=>{Se(fe,"aria-label",`(${pe??""})`),te(be,he)},[()=>o()(l(se)>1?"many_assets":l(se)===1?"one_asset":"no_assets",{values:{count:l(se)}}),()=>l(d).format(l(se))]),$(ne,fe)}),$(oe,re)}),$(K,J)};let O=_(()=>i()?!1:l(H)),F=_(()=>n()?og(l(T)):"");Sr(L,{get selected(){return l(O)},get label(){return l(F)},onSelect:()=>{Ht(`/assets/${l(I).internalPath??"-/all"}`,{transitionType:"forwards",state:{folder:l(T)}})},ondragover:K=>{K.preventDefault(),!l(B)&&(l(I).internalPath===void 0||l(H)?K.dataTransfer.dropEffect="none":(K.dataTransfer.dropEffect="move",K.target.classList.add("dragover")))},ondragleave:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondragend:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondrop:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},startIcon:W,endIcon:Y,$$slots:{startIcon:!0,endIcon:!0}})}}),$(x,A)}),$(E,S)},$$slots:{default:!0}})}},$$slots:{default:!0}})}$(t,h),ce(),u()}function dH(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{let o=_(()=>!e.asset||!Ov(e.asset)),s=_(()=>n()("preview")),a=_(()=>n()("show_preview"));Ze(t,{variant:"ghost",get disabled(){return l(o)},get label(){return l(s)},get"aria-label"(){return l(a)},onclick:()=>{Ht(`/assets/${e.asset?.path}`,{transitionType:"forwards"})}})}ce(),i()}var fH=U('<span role="none"> </span>'),hH=U("<!> <!> <!> <!> <!>",1),pH=U('<!> <h2 role="none"><!> <!></h2> <!> <!>',1);function gH(t,e){le(e,!0);const n=()=>V(td,"$selectedAssets",f),r=()=>V(No,"$focusedAsset",f),i=()=>V(Sp,"$targetAssetFolder",f),o=()=>V(ue,"$_",f),s=()=>V(cn,"$isSmallScreen",f),a=()=>V(Ut,"$appLocale",f),c=()=>V(Hi,"$selectedAssetFolder",f),u=()=>V(jo,"$isMediumScreen",f),d=()=>V(vl,"$listedAssets",f),[f,h]=me(),p=_(()=>n().length?n():r()?[r()]:[]),g=_(()=>!m_(i()));{let m=_(()=>o()("folder"));Ei(t,{variant:"primary",get"aria-label"(){return l(m)},children:(v,b)=>{var y=pH(),w=M(y);{var E=L=>{{let I=_(()=>o()("back_to_asset_folder_list"));nl(L,{get"aria-label"(){return l(I)},onclick:()=>{Vs("/assets")}})}};q(w,L=>{s()&&L(E)})}var k=j(w,2),S=z(k);er(S,a,L=>{var I=Oe();Z(N=>te(I,N),[()=>c()?og(c()):""]),$(L,I)});var C=j(S,2);{var x=L=>{var I=fH(),N=z(I);Z(()=>te(N,`/${c().internalPath??""}`)),$(L,I)};q(C,L=>{!s()&&c()?.internalPath!==void 0&&L(x)})}var T=j(k,2);{var A=L=>{var I=hH(),N=M(I);dH(N,{get asset(){return r()}});var D=j(N,2);{let Y=_(()=>r()?[r()]:[]);N2(D,{get assets(){return l(Y)}})}var B=j(D,2);O2(B,{get assets(){return l(p)}});var H=j(B,2);{let Y=_(()=>o()(l(p).length===1?"delete_selected_asset":"delete_selected_assets")),O=_(()=>o()(l(p).length===1?"confirm_deleting_selected_asset":l(p).length===d().length?"confirm_deleting_all_assets":"confirm_deleting_selected_assets",{values:{count:l(p).length}}));I2(H,{get assets(){return l(p)},get buttonDescription(){return l(Y)},get dialogDescription(){return l(O)}})}var W=j(H,2);R2(W,{get asset(){return r()}}),$(L,I)};q(T,L=>{s()||u()||L(A)})}var P=j(T,2);xC(P,{children:(L,I)=>{var N=X(),D=M(N);{var B=H=>{{let W=_(()=>s()?void 0:o()("upload"));G2(H,{get label(){return l(W)}})}};q(D,H=>{(!s()||d().length&&!l(g))&&H(B)})}$(L,N)},$$slots:{default:!0}}),$(v,y)},$$slots:{default:!0}})}ce(),h()}var mH=U('<span role="none"> </span>');function vH(t,e){le(e,!0);const n=()=>V(Zd,"$isLargeScreen",s),r=()=>V(ks,"$currentView",s),i=()=>V(ue,"$_",s),o=()=>V(No,"$focusedAsset",s),[s,a]=me();var c=X(),u=M(c);{var d=f=>{{let h=_(()=>i()("asset_info"));Ao(f,{id:"asset-info",class:"secondary-sidebar",get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{D2(w,{get asset(){return o()},showPreview:!0})},y=w=>{pr(w,{children:(E,k)=>{var S=mH(),C=z(S);Z(x=>te(C,x),[()=>i()("select_asset_show_info")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{o()?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}};q(u,f=>{n()&&r().showInfo&&f(d)})}$(t,c),ce(),a()}var bH=U("<!> <!>",1);function W2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"multiple",3,!1),u=R(e,"noneLabel",3,""),d=R(e,"filters",19,()=>[]);{const f=p=>{{let g=_(()=>n()("filtering_options"));ar(p,{get"aria-label"(){return l(g)},get"aria-controls"(){return e["aria-controls"]},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{var S=X(),C=M(S);ot(C,17,d,vr,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).field,L=()=>l(T).pattern;const I=_(()=>(r().filters||[]).findIndex(N=>N.field===P()&&String(N.pattern)===String(L())));{let N=_(()=>l(I)>-1);Sh(x,{get label(){return A()},get checked(){return l(N)},onChange:()=>{e.currentView.update(D=>{const B=D.filters?[...D.filters]:[];return l(I)>-1?B.splice(l(I),1):B.push({field:P(),pattern:L()}),{...D,filters:B}})}})}}),$(k,S)},E=k=>{var S=bH(),C=M(S);{let T=_(()=>u()||n()("sort_keys.none")),A=_(()=>!r().filter);od(C,{get label(){return l(T)},get checked(){return l(A)},onSelect:()=>{e.currentView.update(P=>({...P,filter:void 0}))}})}var x=j(C,2);ot(x,17,d,vr,(T,A)=>{let P=()=>l(A).label,L=()=>l(A).field,I=()=>l(A).pattern;{let N=_(()=>r().filter?.field===L()&&String(r().filter.pattern)===String(I()));od(T,{get label(){return P()},get checked(){return l(N)},onSelect:()=>{e.currentView.update(D=>({...D,filter:{field:L(),pattern:I()}}))}})}}),$(k,S)};q(y,k=>{c()?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})}};let h=_(()=>s()||n()("filter"));Mr(t,{variant:"ghost",get label(){return l(h)},get disabled(){return a()},popupPosition:"bottom-right",popup:f,$$slots:{popup:!0}})}ce(),o()}var _H=U('<span role="none" class="svelte-1sd2xgz"> </span>'),yH=U('<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>');const wH={hash:"svelte-1sd2xgz",code:".wrapper.svelte-1sd2xgz {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1sd2xgz {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function Y2(t,e){le(e,!0),ke(t,wH);const n=()=>V(e.selectedItems,"$selectedItems",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>e.allItems.length),a=_(()=>n().length),c=_(()=>!!l(a)),u=_(()=>l(c)&&l(a)===l(s));var d=yH(),f=z(d);{let g=_(()=>!l(s)),m=_(()=>r()("select_all")),v=_(()=>l(c)&&!l(u)?"mixed":l(c));Fd(f,{get disabled(){return l(g)},get"aria-label"(){return l(m)},get checked(){return l(v)},onChange:()=>{e.selectedItems.set(l(u)?[]:[...e.allItems])}})}var h=j(f,2);{var p=g=>{var m=_H(),v=z(m);Z(b=>te(v,b),[()=>r()("x_of_x_selected",{values:{total:l(s),selected:l(a)}})]),$(g,m)};q(h,g=>{l(c)&&g(p)})}$(t,d),ce(),o()}function J2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"sortKeys",19,()=>[]),u=R(e,"collectionName",3,void 0);const d=["ascending","descending"],f=["date","commit_date"];{const h=g=>{{let m=_(()=>n()("sorting_options"));ar(g,{get"aria-label"(){return l(m)},get"aria-controls"(){return e["aria-controls"]},children:(v,b)=>{var y=X(),w=M(y);ot(w,17,c,({key:E,label:k})=>E,(E,k)=>{let S=()=>l(k).key,C=()=>l(k).label;var x=X(),T=M(x);ot(T,16,()=>d,A=>A,(A,P)=>{{let L=_(()=>n()(f.includes(S())||u()&&hn({collectionName:u(),keyPath:S()})?.widget==="datetime"?`${P}_date`:P,{values:{label:C()}})),I=_(()=>r().sort?.key===S()&&r().sort.order===P);od(A,{get label(){return l(L)},get checked(){return l(I)},onSelect:()=>{e.currentView.update(N=>({...N,sort:{key:S(),order:P}}))}})}}),$(E,x)}),$(v,y)},$$slots:{default:!0}})}};let p=_(()=>s()||n()("sort"));Mr(t,{variant:"ghost",get label(){return l(p)},get disabled(){return a()},popupPosition:"bottom-right",popup:h,$$slots:{popup:!0}})}ce(),o()}var xH=U("<!> <!>",1),kH=U('<div role="none" class="wrapper svelte-8v3idr"><!></div>');const SH={hash:"svelte-8v3idr",code:".wrapper.svelte-8v3idr {display:contents;}.wrapper.svelte-8v3idr .select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function fw(t,e){le(e,!0),ke(t,SH);const n=()=>V(e.currentView,"$currentView",o),r=()=>V(Zd,"$isLargeScreen",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"disabled",3,!1),c=rt(e,["$$slots","$$events","$$legacy","disabled","currentView"]);const u=_(()=>n().type==="grid");var d=kH(),f=z(d);{var h=g=>{{let m=_(()=>i()("switch_view"));zp(g,on({get disabled(){return a()},get"aria-label"(){return l(m)}},()=>c,{children:(v,b)=>{var y=xH(),w=M(y);{const k=x=>{Je(x,{name:"format_list_bulleted"})};let S=_(()=>!l(u)),C=_(()=>i()("list_view"));id(w,{get disabled(){return a()},get selected(){return l(S)},variant:"ghost",iconic:!0,get"aria-label"(){return l(C)},onSelect:()=>{e.currentView.update(x=>({...x,type:"list"}))},startIcon:k,$$slots:{startIcon:!0}})}var E=j(w,2);{const k=C=>{Je(C,{name:"grid_view"})};let S=_(()=>i()("grid_view"));id(E,{get disabled(){return a()},get selected(){return l(u)},variant:"ghost",iconic:!0,get"aria-label"(){return l(S)},onSelect:()=>{e.currentView.update(C=>({...C,type:"grid"}))},startIcon:k,$$slots:{startIcon:!0}})}$(v,y)},$$slots:{default:!0}}))}},p=g=>{{const m=b=>{{let y=_(()=>l(u)?"format_list_bulleted":"grid_view");Je(b,{get name(){return l(y)}})}};let v=_(()=>i()(l(u)?"switch_to_list_view":"switch_to_grid_view"));Ze(g,{get disabled(){return a()},variant:"ghost",iconic:!0,get"aria-label"(){return l(v)},onclick:()=>{e.currentView.update(b=>({...b,type:l(u)?"list":"grid"}))},startIcon:m,$$slots:{startIcon:!0}})}};q(f,g=>{r()?g(h):g(p,!1)})}$(t,d),ce(),s()}const EH=sn([Mn,Ut],([t],e)=>{const n=["name"];t.every(r=>!!r.commitAuthor)&&n.push("commit_author"),t.every(r=>!!r.commitDate)&&n.push("commit_date"),e(n.map(r=>({key:r,label:ae(ue)(`sort_keys.${r}`)})))});var $H=U("<!> <!>",1),TH=U("<!> <!> <!> <!> <!> <!>",1);function CH(t,e){le(e,!0);const n=()=>V(vl,"$listedAssets",u),r=()=>V(ue,"$_",u),i=()=>V(cn,"$isSmallScreen",u),o=()=>V(jo,"$isMediumScreen",u),s=()=>V(iw,"$assetGroups",u),a=()=>V(EH,"$sortKeys",u),c=()=>V(ks,"$currentView",u),[u,d]=me(),f=_(()=>!!n().length),h=_(()=>n().length>1);{let p=_(()=>r()("asset_list"));Ei(t,{variant:"secondary",get"aria-label"(){return l(p)},children:(g,m)=>{var v=TH(),b=M(v);{var y=T=>{{let A=_(()=>Object.values(s()).flat(1));Y2(T,{get allItems(){return l(A)},get selectedItems(){return td}})}};q(b,T=>{i()||o()||T(y)})}var w=j(b,2);Xr(w,{flex:!0});var E=j(w,2);{let T=_(()=>!l(h));J2(E,{get disabled(){return l(T)},get currentView(){return ks},get sortKeys(){return a()},"aria-controls":"asset-list"})}var k=j(E,2);{let T=_(()=>r()("type")),A=_(()=>!l(h)),P=_(()=>r()("all")),L=_(()=>CF.map(I=>({label:r()(I),field:"fileType",pattern:I})));W2(k,{get label(){return l(T)},get disabled(){return l(A)},get currentView(){return ks},get noneLabel(){return l(P)},get filters(){return l(L)},"aria-controls":"asset-list"})}var S=j(k,2);{let T=_(()=>!l(f));fw(S,{get disabled(){return l(T)},get currentView(){return ks},"aria-controls":"asset-list"})}var C=j(S,2);{var x=T=>{var A=$H(),P=M(A);Jr(P,{orientation:"vertical"});var L=j(P,2);{const I=W=>{Je(W,{name:"info"})};let N=_(()=>!l(f)),D=_(()=>!!c().showInfo),B=_(()=>!!c().showInfo),H=_(()=>r()(c().showInfo?"hide_info":"show_info"));Ze(L,{variant:"ghost",iconic:!0,get disabled(){return l(N)},get pressed(){return l(D)},"aria-controls":"asset-info",get"aria-expanded"(){return l(B)},get"aria-label"(){return l(H)},onclick:()=>{ks.update(W=>({...W,showInfo:!c().showInfo}))},startIcon:I,$$slots:{startIcon:!0}})}$(T,A)};q(C,T=>{i()||o()||T(x)})}$(g,v)},$$slots:{default:!0}})}ce(),d()}var AH=U('<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>');const PH={hash:"svelte-1x2ldab",code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}.wrapper.svelte-1x2ldab:not(:first-child) {border-start-start-radius:16px;}.wrapper.svelte-1x2ldab .sui.toolbar.primary {justify-content:center;}
|
|
533
|
+
}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image {width:48px;}.list-view.svelte-1sfbolp [role=grid] .grid-cell.image:empty::before {display:block;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);content:"";}`};function tf(t,e){le(e,!0),ke(t,nH);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","viewType","children"]);var i=tH(),o=z(i);nn(o,Lt,null,s=>{rU(s,on({multiple:!0,clickToSelect:!1},()=>r,{children:(a,c)=>{var u=X(),d=M(u);Me(d,()=>n()??Be),$(a,u)},$$slots:{default:!0}}))}),Z(()=>rn(i,1,`${e.viewType??""}-view`,"svelte-1sfbolp")),$(t,i),ce()}var rH=U('<span role="none"> </span> <!>',1);function iH(t,e){le(e,!0);const n=()=>V(ks,"$currentView",a),r=()=>V(Sp,"$targetAssetFolder",a),i=()=>V(ue,"$_",a),o=()=>V(iw,"$assetGroups",a),s=()=>V(vl,"$listedAssets",a),[a,c]=me(),u=_(()=>n().type),d=_(r),f=_(()=>!m_(l(d)));{let h=_(()=>i()("asset_list"));dw(t,{get"aria-label"(){return l(h)},children:(p,g)=>{ef(p,{get disabled(){return l(f)},multiple:!0,onDrop:({files:m})=>{Ge(Ki,{folder:l(d),files:m})},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{{let S=_(()=>i()("assets"));tf(k,{id:"asset-list",get viewType(){return l(u)},get"aria-label"(){return l(S)},get"aria-rowcount"(){return s().length},children:(C,x)=>{var T=X(),A=M(T);ot(A,1,()=>Object.entries(o()),([P,L])=>P,(P,L)=>{var I=_(()=>So(l(L),2));let N=()=>l(I)[0],D=()=>l(I)[1];var B=X(),H=M(B);nn(H,Lt,null,W=>{{let Y=_(()=>N()!=="*"?N():void 0);$C(W,{get label(){return l(Y)},children:(O,F)=>{hl(O,{get items(){return D()},itemKey:"path",renderItem:(J,Q=Be)=>{var oe=X(),re=M(oe);er(re,()=>Q().sha,ee=>{var ne=X(),se=M(ne);nn(se,Lt,null,fe=>{UV(fe,{get asset(){return Q()},get viewType(){return l(u)}})}),$(ee,ne)}),$(J,oe)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),$(P,B)}),$(C,T)},$$slots:{default:!0}})}},E=k=>{pr(k,{children:(S,C)=>{var x=rH(),T=M(x),A=z(T),P=j(T,2);{var L=I=>{{let N=_(()=>i()("upload_assets"));G2(I,{get label(){return l(N)}})}};q(P,I=>{l(f)||I(L)})}Z(I=>te(A,I),[()=>i()("no_files_found")]),$(S,x)},$$slots:{default:!0}})};q(y,k=>{Object.values(o()).flat(1).length?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}})}ce(),c()}const Ra=nt(null),ss=nt("");var oH=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),sH=U('<div role="none" class="wrapper svelte-lav5fn"><!></div>');const aH={hash:"svelte-lav5fn",code:".wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}"};function ag(t,e){le(e,!0),ke(t,aH);const n=()=>V(ss,"$searchTerms",o),r=()=>V(Ra,"$searchMode",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"onclick",3,void 0);const c=p=>{const g=!!n(),{path:m}=Oo(),v=m.startsWith("/search/");Ge(ss,p),p?Ht(`/search/${p}`,{replaceState:v}):g&&v&&Vs("/collections")};let u=ie(void 0);De(()=>{l(u)&&n()!==l(u)?.value&&(l(u).value=n())});var d=sH(),f=z(d);{var h=p=>{var g=oH(),m=M(g);{let v=_(()=>i()(`search_placeholder_${r()}`));Lc(m,()=>({"--sui-textbox-placeholder-text-align":"center"})),bt(Bp(m.lastChild,{keyShortcuts:"Accel+F",get placeholder(){return l(v)},get onclick(){return a()},oninput:({target:b})=>{c(b.value.trim())}}),b=>G(u,b,!0),()=>l(u))}$(p,g)};q(f,p=>{r()&&p(h)})}$(t,d),ce(),s()}var lH=U("<header><h2> </h2></header> <!>",1),cH=U('<span class="count"> </span>'),uH=U('<div role="none" class="primary-sidebar"><!> <!></div>');function dH(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",c),r=()=>V(Ys,"$allAssetFolders",c),i=()=>V(cn,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Hi,"$selectedAssetFolder",c),a=()=>V(Mn,"$allAssets",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>[...r().sort((v,b)=>Gx(v.collectionName,v.fileName)-Gx(b.collectionName,b.fileName)).sort((v,b)=>w0(v.collectionName)-w0(b.collectionName))]);var h=uH(),p=z(h);{var g=v=>{var b=lH(),y=M(b),w=z(y),E=z(w),k=j(y,2);ag(k,{onclick:S=>{S.preventDefault(),Ht("/search")}}),Z(S=>te(E,S),[()=>o()("assets")]),$(v,b)};q(p,v=>{i()&&v(g)})}var m=j(p,2);{let v=_(()=>o()("asset_folder_list"));Gc(m,{get"aria-label"(){return l(v)},"aria-controls":"assets-container",children:(b,y)=>{{let w=_(()=>o()("asset_location.repository"));Ca(b,{get label(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);ot(C,17,()=>l(f),x=>[x.collectionName,x.fileName,x.internalPath].join(":"),(x,T)=>{var A=X(),P=M(A);nn(P,Lt,null,L=>{const I=_(()=>{const{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}=l(T);return{collectionName:W,fileName:Y,internalPath:O,entryRelative:F,hasTemplateTags:K}}),N=_(()=>l(I).collectionName?Qr(l(I).collectionName):void 0),D=_(()=>l(N)&&l(I).fileName?Fc(l(N),l(I).fileName):void 0),B=_(()=>l(I).entryRelative||l(I).hasTemplateTags),H=_(()=>ln(s(),l(T)));{const W=K=>{{let J=_(()=>l(D)?.icon||l(N)?.icon||"folder");Je(K,{get name(){return l(J)}})}},Y=K=>{var J=X(),Q=M(J);er(Q,a,oe=>{var re=X(),ee=M(re);nn(ee,Lt,null,ne=>{const se=_(()=>(l(I).internalPath!==void 0?TF(l(T)):a()).length);var fe=cH(),be=z(fe);Z((pe,he)=>{Se(fe,"aria-label",`(${pe??""})`),te(be,he)},[()=>o()(l(se)>1?"many_assets":l(se)===1?"one_asset":"no_assets",{values:{count:l(se)}}),()=>l(d).format(l(se))]),$(ne,fe)}),$(oe,re)}),$(K,J)};let O=_(()=>i()?!1:l(H)),F=_(()=>n()?og(l(T)):"");Sr(L,{get selected(){return l(O)},get label(){return l(F)},onSelect:()=>{Ht(`/assets/${l(I).internalPath??"-/all"}`,{transitionType:"forwards",state:{folder:l(T)}})},ondragover:K=>{K.preventDefault(),!l(B)&&(l(I).internalPath===void 0||l(H)?K.dataTransfer.dropEffect="none":(K.dataTransfer.dropEffect="move",K.target.classList.add("dragover")))},ondragleave:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondragend:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},ondrop:K=>{K.preventDefault(),!l(B)&&K.target.classList.remove("dragover")},startIcon:W,endIcon:Y,$$slots:{startIcon:!0,endIcon:!0}})}}),$(x,A)}),$(E,S)},$$slots:{default:!0}})}},$$slots:{default:!0}})}$(t,h),ce(),u()}function fH(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{let o=_(()=>!e.asset||!Ov(e.asset)),s=_(()=>n()("preview")),a=_(()=>n()("show_preview"));Ze(t,{variant:"ghost",get disabled(){return l(o)},get label(){return l(s)},get"aria-label"(){return l(a)},onclick:()=>{Ht(`/assets/${e.asset?.path}`,{transitionType:"forwards"})}})}ce(),i()}var hH=U('<span role="none"> </span>'),pH=U("<!> <!> <!> <!> <!>",1),gH=U('<!> <h2 role="none"><!> <!></h2> <!> <!>',1);function mH(t,e){le(e,!0);const n=()=>V(td,"$selectedAssets",f),r=()=>V(No,"$focusedAsset",f),i=()=>V(Sp,"$targetAssetFolder",f),o=()=>V(ue,"$_",f),s=()=>V(cn,"$isSmallScreen",f),a=()=>V(Ut,"$appLocale",f),c=()=>V(Hi,"$selectedAssetFolder",f),u=()=>V(jo,"$isMediumScreen",f),d=()=>V(vl,"$listedAssets",f),[f,h]=me(),p=_(()=>n().length?n():r()?[r()]:[]),g=_(()=>!m_(i()));{let m=_(()=>o()("folder"));Ei(t,{variant:"primary",get"aria-label"(){return l(m)},children:(v,b)=>{var y=gH(),w=M(y);{var E=L=>{{let I=_(()=>o()("back_to_asset_folder_list"));nl(L,{get"aria-label"(){return l(I)},onclick:()=>{Vs("/assets")}})}};q(w,L=>{s()&&L(E)})}var k=j(w,2),S=z(k);er(S,a,L=>{var I=Oe();Z(N=>te(I,N),[()=>c()?og(c()):""]),$(L,I)});var C=j(S,2);{var x=L=>{var I=hH(),N=z(I);Z(()=>te(N,`/${c().internalPath??""}`)),$(L,I)};q(C,L=>{!s()&&c()?.internalPath!==void 0&&L(x)})}var T=j(k,2);{var A=L=>{var I=pH(),N=M(I);fH(N,{get asset(){return r()}});var D=j(N,2);{let Y=_(()=>r()?[r()]:[]);N2(D,{get assets(){return l(Y)}})}var B=j(D,2);O2(B,{get assets(){return l(p)}});var H=j(B,2);{let Y=_(()=>o()(l(p).length===1?"delete_selected_asset":"delete_selected_assets")),O=_(()=>o()(l(p).length===1?"confirm_deleting_selected_asset":l(p).length===d().length?"confirm_deleting_all_assets":"confirm_deleting_selected_assets",{values:{count:l(p).length}}));I2(H,{get assets(){return l(p)},get buttonDescription(){return l(Y)},get dialogDescription(){return l(O)}})}var W=j(H,2);R2(W,{get asset(){return r()}}),$(L,I)};q(T,L=>{s()||u()||L(A)})}var P=j(T,2);xC(P,{children:(L,I)=>{var N=X(),D=M(N);{var B=H=>{{let W=_(()=>s()?void 0:o()("upload"));G2(H,{get label(){return l(W)}})}};q(D,H=>{(!s()||d().length&&!l(g))&&H(B)})}$(L,N)},$$slots:{default:!0}}),$(v,y)},$$slots:{default:!0}})}ce(),h()}var vH=U('<span role="none"> </span>');function bH(t,e){le(e,!0);const n=()=>V(Zd,"$isLargeScreen",s),r=()=>V(ks,"$currentView",s),i=()=>V(ue,"$_",s),o=()=>V(No,"$focusedAsset",s),[s,a]=me();var c=X(),u=M(c);{var d=f=>{{let h=_(()=>i()("asset_info"));Ao(f,{id:"asset-info",class:"secondary-sidebar",get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{D2(w,{get asset(){return o()},showPreview:!0})},y=w=>{pr(w,{children:(E,k)=>{var S=vH(),C=z(S);Z(x=>te(C,x),[()=>i()("select_asset_show_info")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{o()?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}};q(u,f=>{n()&&r().showInfo&&f(d)})}$(t,c),ce(),a()}var _H=U("<!> <!>",1);function W2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"multiple",3,!1),u=R(e,"noneLabel",3,""),d=R(e,"filters",19,()=>[]);{const f=p=>{{let g=_(()=>n()("filtering_options"));ar(p,{get"aria-label"(){return l(g)},get"aria-controls"(){return e["aria-controls"]},children:(m,v)=>{var b=X(),y=M(b);{var w=k=>{var S=X(),C=M(S);ot(C,17,d,vr,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).field,L=()=>l(T).pattern;const I=_(()=>(r().filters||[]).findIndex(N=>N.field===P()&&String(N.pattern)===String(L())));{let N=_(()=>l(I)>-1);Sh(x,{get label(){return A()},get checked(){return l(N)},onChange:()=>{e.currentView.update(D=>{const B=D.filters?[...D.filters]:[];return l(I)>-1?B.splice(l(I),1):B.push({field:P(),pattern:L()}),{...D,filters:B}})}})}}),$(k,S)},E=k=>{var S=_H(),C=M(S);{let T=_(()=>u()||n()("sort_keys.none")),A=_(()=>!r().filter);od(C,{get label(){return l(T)},get checked(){return l(A)},onSelect:()=>{e.currentView.update(P=>({...P,filter:void 0}))}})}var x=j(C,2);ot(x,17,d,vr,(T,A)=>{let P=()=>l(A).label,L=()=>l(A).field,I=()=>l(A).pattern;{let N=_(()=>r().filter?.field===L()&&String(r().filter.pattern)===String(I()));od(T,{get label(){return P()},get checked(){return l(N)},onSelect:()=>{e.currentView.update(D=>({...D,filter:{field:L(),pattern:I()}}))}})}}),$(k,S)};q(y,k=>{c()?k(w):k(E,!1)})}$(m,b)},$$slots:{default:!0}})}};let h=_(()=>s()||n()("filter"));Mr(t,{variant:"ghost",get label(){return l(h)},get disabled(){return a()},popupPosition:"bottom-right",popup:f,$$slots:{popup:!0}})}ce(),o()}var yH=U('<span role="none" class="svelte-1sd2xgz"> </span>'),wH=U('<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>');const xH={hash:"svelte-1sd2xgz",code:".wrapper.svelte-1sd2xgz {display:flex;align-items:center;gap:4px;margin-inline:20px;}span.svelte-1sd2xgz {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function Y2(t,e){le(e,!0),ke(t,xH);const n=()=>V(e.selectedItems,"$selectedItems",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>e.allItems.length),a=_(()=>n().length),c=_(()=>!!l(a)),u=_(()=>l(c)&&l(a)===l(s));var d=wH(),f=z(d);{let g=_(()=>!l(s)),m=_(()=>r()("select_all")),v=_(()=>l(c)&&!l(u)?"mixed":l(c));Fd(f,{get disabled(){return l(g)},get"aria-label"(){return l(m)},get checked(){return l(v)},onChange:()=>{e.selectedItems.set(l(u)?[]:[...e.allItems])}})}var h=j(f,2);{var p=g=>{var m=yH(),v=z(m);Z(b=>te(v,b),[()=>r()("x_of_x_selected",{values:{total:l(s),selected:l(a)}})]),$(g,m)};q(h,g=>{l(c)&&g(p)})}$(t,d),ce(),o()}function J2(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"sortKeys",19,()=>[]),u=R(e,"collectionName",3,void 0);const d=["ascending","descending"],f=["date","commit_date"];{const h=g=>{{let m=_(()=>n()("sorting_options"));ar(g,{get"aria-label"(){return l(m)},get"aria-controls"(){return e["aria-controls"]},children:(v,b)=>{var y=X(),w=M(y);ot(w,17,c,({key:E,label:k})=>E,(E,k)=>{let S=()=>l(k).key,C=()=>l(k).label;var x=X(),T=M(x);ot(T,16,()=>d,A=>A,(A,P)=>{{let L=_(()=>n()(f.includes(S())||u()&&hn({collectionName:u(),keyPath:S()})?.widget==="datetime"?`${P}_date`:P,{values:{label:C()}})),I=_(()=>r().sort?.key===S()&&r().sort.order===P);od(A,{get label(){return l(L)},get checked(){return l(I)},onSelect:()=>{e.currentView.update(N=>({...N,sort:{key:S(),order:P}}))}})}}),$(E,x)}),$(v,y)},$$slots:{default:!0}})}};let p=_(()=>s()||n()("sort"));Mr(t,{variant:"ghost",get label(){return l(p)},get disabled(){return a()},popupPosition:"bottom-right",popup:h,$$slots:{popup:!0}})}ce(),o()}var kH=U("<!> <!>",1),SH=U('<div role="none" class="wrapper svelte-8v3idr"><!></div>');const EH={hash:"svelte-8v3idr",code:".wrapper.svelte-8v3idr {display:contents;}.wrapper.svelte-8v3idr .select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}"};function fw(t,e){le(e,!0),ke(t,EH);const n=()=>V(e.currentView,"$currentView",o),r=()=>V(Zd,"$isLargeScreen",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"disabled",3,!1),c=rt(e,["$$slots","$$events","$$legacy","disabled","currentView"]);const u=_(()=>n().type==="grid");var d=SH(),f=z(d);{var h=g=>{{let m=_(()=>i()("switch_view"));zp(g,on({get disabled(){return a()},get"aria-label"(){return l(m)}},()=>c,{children:(v,b)=>{var y=kH(),w=M(y);{const k=x=>{Je(x,{name:"format_list_bulleted"})};let S=_(()=>!l(u)),C=_(()=>i()("list_view"));id(w,{get disabled(){return a()},get selected(){return l(S)},variant:"ghost",iconic:!0,get"aria-label"(){return l(C)},onSelect:()=>{e.currentView.update(x=>({...x,type:"list"}))},startIcon:k,$$slots:{startIcon:!0}})}var E=j(w,2);{const k=C=>{Je(C,{name:"grid_view"})};let S=_(()=>i()("grid_view"));id(E,{get disabled(){return a()},get selected(){return l(u)},variant:"ghost",iconic:!0,get"aria-label"(){return l(S)},onSelect:()=>{e.currentView.update(C=>({...C,type:"grid"}))},startIcon:k,$$slots:{startIcon:!0}})}$(v,y)},$$slots:{default:!0}}))}},p=g=>{{const m=b=>{{let y=_(()=>l(u)?"format_list_bulleted":"grid_view");Je(b,{get name(){return l(y)}})}};let v=_(()=>i()(l(u)?"switch_to_list_view":"switch_to_grid_view"));Ze(g,{get disabled(){return a()},variant:"ghost",iconic:!0,get"aria-label"(){return l(v)},onclick:()=>{e.currentView.update(b=>({...b,type:l(u)?"list":"grid"}))},startIcon:m,$$slots:{startIcon:!0}})}};q(f,g=>{r()?g(h):g(p,!1)})}$(t,d),ce(),s()}const $H=sn([Mn,Ut],([t],e)=>{const n=["name"];t.every(r=>!!r.commitAuthor)&&n.push("commit_author"),t.every(r=>!!r.commitDate)&&n.push("commit_date"),e(n.map(r=>({key:r,label:ae(ue)(`sort_keys.${r}`)})))});var TH=U("<!> <!>",1),CH=U("<!> <!> <!> <!> <!> <!>",1);function AH(t,e){le(e,!0);const n=()=>V(vl,"$listedAssets",u),r=()=>V(ue,"$_",u),i=()=>V(cn,"$isSmallScreen",u),o=()=>V(jo,"$isMediumScreen",u),s=()=>V(iw,"$assetGroups",u),a=()=>V($H,"$sortKeys",u),c=()=>V(ks,"$currentView",u),[u,d]=me(),f=_(()=>!!n().length),h=_(()=>n().length>1);{let p=_(()=>r()("asset_list"));Ei(t,{variant:"secondary",get"aria-label"(){return l(p)},children:(g,m)=>{var v=CH(),b=M(v);{var y=T=>{{let A=_(()=>Object.values(s()).flat(1));Y2(T,{get allItems(){return l(A)},get selectedItems(){return td}})}};q(b,T=>{i()||o()||T(y)})}var w=j(b,2);Xr(w,{flex:!0});var E=j(w,2);{let T=_(()=>!l(h));J2(E,{get disabled(){return l(T)},get currentView(){return ks},get sortKeys(){return a()},"aria-controls":"asset-list"})}var k=j(E,2);{let T=_(()=>r()("type")),A=_(()=>!l(h)),P=_(()=>r()("all")),L=_(()=>CF.map(I=>({label:r()(I),field:"fileType",pattern:I})));W2(k,{get label(){return l(T)},get disabled(){return l(A)},get currentView(){return ks},get noneLabel(){return l(P)},get filters(){return l(L)},"aria-controls":"asset-list"})}var S=j(k,2);{let T=_(()=>!l(f));fw(S,{get disabled(){return l(T)},get currentView(){return ks},"aria-controls":"asset-list"})}var C=j(S,2);{var x=T=>{var A=TH(),P=M(A);Jr(P,{orientation:"vertical"});var L=j(P,2);{const I=W=>{Je(W,{name:"info"})};let N=_(()=>!l(f)),D=_(()=>!!c().showInfo),B=_(()=>!!c().showInfo),H=_(()=>r()(c().showInfo?"hide_info":"show_info"));Ze(L,{variant:"ghost",iconic:!0,get disabled(){return l(N)},get pressed(){return l(D)},"aria-controls":"asset-info",get"aria-expanded"(){return l(B)},get"aria-label"(){return l(H)},onclick:()=>{ks.update(W=>({...W,showInfo:!c().showInfo}))},startIcon:I,$$slots:{startIcon:!0}})}$(T,A)};q(C,T=>{i()||o()||T(x)})}$(g,v)},$$slots:{default:!0}})}ce(),d()}var PH=U('<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>');const LH={hash:"svelte-1x2ldab",code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}.wrapper.svelte-1x2ldab:not(:first-child) {border-start-start-radius:16px;}.wrapper.svelte-1x2ldab .sui.toolbar.primary {justify-content:center;}
|
|
534
534
|
@media (width < 768px) {.wrapper.svelte-1x2ldab .sui.toolbar.primary {background-color:var(--sui-secondary-background-color);}
|
|
535
535
|
}.main-inner.svelte-1x2ldab {flex:auto;display:flex;overflow:hidden;}.main-inner.svelte-1x2ldab .main-inner-main:where(.svelte-1x2ldab) {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.main-inner.svelte-1x2ldab .secondary-sidebar {flex:none;overflow:auto;box-sizing:content-box;width:320px;background-color:var(--sui-secondary-background-color);}
|
|
536
536
|
@media (768px <= width) {.main-inner.svelte-1x2ldab .secondary-sidebar {border-start-start-radius:16px;}
|
|
537
|
-
}.main-inner.svelte-1x2ldab .secondary-sidebar [role=listbox] {padding:12px;}`};function nf(t,e){ke(t,
|
|
537
|
+
}.main-inner.svelte-1x2ldab .secondary-sidebar [role=listbox] {padding:12px;}`};function nf(t,e){ke(t,LH);let n=R(e,"primaryToolbar",3,void 0),r=R(e,"secondaryToolbar",3,void 0),i=R(e,"mainContent",3,void 0),o=R(e,"secondarySidebar",3,void 0),s=rt(e,["$$slots","$$events","$$legacy","primaryToolbar","secondaryToolbar","mainContent","secondarySidebar"]);var a=PH();mt(a,()=>({role:"group",class:"wrapper",...s}),void 0,void 0,"svelte-1x2ldab");var c=z(a);Me(c,()=>n()??Be);var u=j(c,2),d=z(u),f=z(d);Me(f,()=>r()??Be);var h=j(f,2);Me(h,()=>i()??Be);var p=j(d,2);Me(p,()=>o()??Be),$(t,a)}var NH=U("<div><!> <!></div>");const IH={hash:"svelte-1kkfo1f",code:`.outer.svelte-1kkfo1f {flex:auto;display:flex;overflow:hidden;}.outer[inert].svelte-1kkfo1f {display:none;}.outer.svelte-1kkfo1f .primary-sidebar {display:flex;flex-direction:column;flex:none;width:240px;overflow-y:auto;}
|
|
538
538
|
@media (width < 768px) {.outer.svelte-1kkfo1f .primary-sidebar {flex:auto;width:auto;background-color:var(--sui-primary-background-color);}
|
|
539
|
-
}.outer.svelte-1kkfo1f .primary-sidebar header {display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:var(--sui-primary-toolbar-size);}.outer.svelte-1kkfo1f .primary-sidebar header h2 {padding:0 10px;font-size:var(--sui-font-size-x-large);}.outer.svelte-1kkfo1f .primary-sidebar .sui.search-bar {margin-inline:12px;--sui-textbox-background-color: var(--sui-tertiary-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=radiogroup] {width:100%;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] {margin:8px;border-width:0;background-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:start;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:first-child) {margin-top:4px;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:focus) {border-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button span {flex:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .label {flex:auto;overflow:hidden;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon {transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon.check {display:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] .count {color:var(--sui-highlighted-foreground-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}.outer.svelte-1kkfo1f .primary-sidebar .sui.divider {margin:8px 0;}`};function _l(t,e){ke(t,NH);const n=()=>V(ow,"$hasOverlay",r),[r,i]=me();let o=R(e,"class",3,""),s=R(e,"primarySidebar",3,void 0),a=R(e,"main",3,void 0),c=rt(e,["$$slots","$$events","$$legacy","class","primarySidebar","main"]);var u=LH();mt(u,()=>({role:"group",id:"page-container",class:`outer ${o()??""}`,inert:n(),...c}),void 0,void 0,"svelte-1kkfo1f");var d=z(u);Me(d,()=>s()??Be);var f=j(d,2);Me(f,()=>a()??Be),$(t,u),i()}var IH=U("<!> <!> <!> <!> <!> <!> <!> <!>",1);function OH(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",f),r=()=>V(Hi,"$selectedAssetFolder",f),i=()=>V(cn,"$isSmallScreen",f),o=()=>V(ue,"$_",f),s=()=>V(Ys,"$allAssetFolders",f),a=()=>V(vl,"$listedAssets",f),c=()=>V(Bs,"$overlaidAsset",f),u=()=>V(Mn,"$allAssets",f),d=()=>V(Ss,"$assetUpdatesToast",f),[f,h]=me(),p=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/;let g=ie(!1);const m=_(()=>n()&&r()?og(r()):""),v=async()=>{const{path:A}=Oo(),P=A.match(p);if(G(g,!1),!P?.groups)return;const{folderPath:L,fileName:I}=P.groups;if(!L){i()?(Ge(Hi,void 0),Ge(oi,o()("viewing_asset_folder_list")),G(g,!0)):Ht("/assets/-/all");return}const N=window.history.state?.folder??s().find(({internalPath:D,collectionName:B})=>L==="-/all"?D===void 0&&B===void 0:D===L);if(N?ln(r(),N)||Ge(Hi,N):Ge(Hi,void 0),!I){const D=a().length;await Lt(100),Ge(oi,o()(D>1?"viewing_x_asset_folder_many_assets":D===1?"viewing_x_asset_folder_one_asset":"viewing_x_asset_folder_no_assets",{values:{folder:l(m),count:D}}));return}Ge(Bs,I?u().find(D=>D.path===`${L}/${I}`):void 0),Ge(oi,c()?o()("viewing_x_asset_details",{values:{name:c().name}}):o()("file_not_found")),Ge(na,!0)};jt(()=>{v()});var b=IH();Hr("hashchange",Fa,A=>{aw(A,v,p)});var y=M(b);{const A=I=>{var N=X(),D=M(N);{var B=H=>{uH(H,{})};q(D,H=>{(!i()||l(g))&&H(B)})}$(I,N)},P=I=>{var N=X(),D=M(N);{var B=H=>{{const W=J=>{gH(J,{})},Y=J=>{var Q=X(),oe=M(Q);{var re=ee=>{CH(ee,{})};q(oe,ee=>{a().length&&ee(re)})}$(J,Q)},O=J=>{rH(J,{})},F=J=>{vH(J,{})};let K=_(()=>o()("x_asset_folder",{values:{folder:l(m)}}));nf(H,{id:"assets-container",get"aria-label"(){return l(K)},primaryToolbar:W,secondaryToolbar:Y,mainContent:O,secondarySidebar:F,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(D,H=>{(!i()||!l(g))&&H(B)})}$(I,N)};let L=_(()=>o()("asset_library"));_l(y,{get"aria-label"(){return l(L)},primarySidebar:A,main:P,$$slots:{primarySidebar:!0,main:!0}})}var w=j(y,2);dV(w,{});var E=j(w,2);mV(E,{});var k=j(E,2);MV(k,{});var S=j(k,2);Zn(S,{get show(){return d().saved},set show(A){yt(Ss,Ee(d).saved=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().published?d().count===1?"asset_saved_and_published":"assets_saved_and_published":d().count===1?"asset_saved":"assets_saved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=j(S,2);Zn(C,{get show(){return d().moved},set show(A){yt(Ss,Ee(d).moved=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_moved":"assets_moved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var x=j(C,2);Zn(x,{get show(){return d().renamed},set show(A){yt(Ss,Ee(d).renamed=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_renamed":"assets_renamed",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var T=j(x,2);Zn(T,{get show(){return d().deleted},set show(A){yt(Ss,Ee(d).deleted=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_deleted":"assets_deleted",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,b),ce(),h()}var RH=U('<div role="status"> </div>'),DH=U('<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>'),MH=U('<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>'),FH=U("<!> <!> <!>",1);const zH={hash:"svelte-96nj3d",code:".section.svelte-96nj3d {display:flex;flex-direction:column;gap:16px;}.section.svelte-96nj3d:not(:first-child) {margin-top:16px;}.section.svelte-96nj3d > * {flex:none;}.section.oversized.svelte-96nj3d .files {opacity:0.5;}"};function jH(t,e){le(e,!0),ke(t,zH);const n=()=>V(Ki,"$uploadingAssets",a),r=()=>V(SF,"$processedAssets",a),i=()=>V(na,"$showAssetOverlay",a),o=()=>V(q6,"$showUploadAssetsConfirmDialog",a),s=()=>V(ue,"$_",a),[a,c]=me();let u=ie(St([]));const d=_(()=>n().files),f=_(()=>n().folder),h=_(()=>n().originalAsset),p=_(()=>r().processing),g=_(()=>r().undersizedFiles),m=_(()=>r().oversizedFiles),v=_(()=>r().transformedFileMap),b=_(()=>Pd().config),y=_(()=>l(b).max_file_size);De(()=>{G(u,[...l(g)],!0)}),De(()=>{i()||Ge(Ki,{folder:void 0,files:[]})});{let w=_(()=>s()(l(h)?"replace_asset":"upload_assets")),E=_(()=>s()(l(h)?"replace":"upload")),k=_(()=>!l(u).length);Kc(t,{get open(){return o()},get title(){return l(w)},get okLabel(){return l(E)},get okDisabled(){return l(k)},onOk:async()=>{await M2({files:l(u),folder:l(f),originalAsset:l(h)},{commitType:"uploadMedia"}),Ge(Ki,{folder:void 0,files:[]})},onCancel:()=>{Ge(Ki,{folder:void 0,files:[]})},children:(S,C)=>{var x=FH(),T=M(x);{var A=D=>{var B=RH(),H=z(B);Z(W=>te(H,W),[()=>s()(l(d).length===1?"processing_file":"processing_files")]),$(D,B)};q(T,D=>{l(p)&&D(A)})}var P=j(T,2);{var L=D=>{var B=DH(),H=z(B),W=z(H);{var Y=K=>{var J=Oe();Z(Q=>te(J,Q),[()=>s()("confirm_replacing_file",{values:{name:l(h).name}})]),$(K,J)},O=K=>{var J=Oe();Z(Q=>te(J,Q),[()=>s()(l(u).length===1?"confirm_uploading_file":"confirm_uploading_files",{values:{count:l(u).length,folder:`/${l(f)?.internalPath}`}})]),$(K,J)};q(W,K=>{l(h)?K(Y):K(O,!1)})}var F=j(H,2);Cb(F,{get transformedFileMap(){return l(v)},get files(){return l(u)},set files(K){G(u,K,!0)}}),Z(K=>Se(B,"aria-label",K),[()=>s()("uploading_files")]),$(D,B)};q(P,D=>{l(u).length&&D(L)})}var I=j(P,2);{var N=D=>{var B=MH(),H=z(B);Rn(H,{status:"warning",children:(Y,O)=>{var F=Oe();Z(K=>te(F,K),[()=>s()(l(m).length===1?"warning_oversized_file":"warning_oversized_files",{values:{size:$p(l(y))}})]),$(Y,F)},$$slots:{default:!0}});var W=j(H,2);Cb(W,{get files(){return l(m)},get transformedFileMap(){return l(v)},removable:!1}),Z(Y=>Se(B,"aria-label",Y),[()=>s()("oversized_files")]),$(D,B)};q(I,D=>{l(m).length&&D(N)})}$(S,x)},$$slots:{default:!0}})}ce(),c()}function BH(t,e){le(e,!0);const n=()=>V(Ki,"$uploadingAssets",c),r=()=>V(Sp,"$targetAssetFolder",c),i=()=>V(xs,"$showUploadAssetsDialog",c),o=()=>V(ru,"$hasMouse",c),s=()=>V(na,"$showAssetOverlay",c),a=()=>V(ue,"$_",c),[c,u]=me();let d=ie(void 0);const f=_(()=>n().originalAsset),h=_(()=>!l(f)),p=_(()=>l(f)?gs.getType(l(f).name)??void 0:void 0),g=w=>{w.length&&(Ge(Ki,{folder:l(f)?l(f).folder:r(),files:w,originalAsset:l(f)}),Ge(xs,!1))};De(()=>{!o()&&i()&&l(d)?.open()}),De(()=>{s()||Ge(xs,!1)});var m=X(),v=M(m);{var b=w=>{{let E=_(()=>l(f)?a()("replace_x",{values:{name:l(f).name}}):a()("upload_assets"));ji(w,{get title(){return l(E)},showOk:!1,get open(){return Wb(),i()},set open(k){Ge(xs,k)},children:(k,S)=>{ef(k,{showUploadButton:!0,get accept(){return l(p)},get multiple(){return l(h)},onDrop:({files:C})=>{g(C)}})},$$slots:{default:!0}})}},y=w=>{bt(ay(w,{get accept(){return l(p)},get multiple(){return l(h)},onSelect:({files:E})=>{g(E)},onCancel:()=>{Ge(xs,!1)}}),E=>G(d,E,!0),()=>l(d))};q(v,w=>{o()?w(b):w(y,!1)})}$(t,m),ce(),u()}var UH=U('<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>');const qH={hash:"svelte-2picl5",code:"div.svelte-2picl5 {flex:auto;overflow:auto;}pre.svelte-2picl5 {margin:0;padding:16px;width:100%;min-width:fit-content;background-color:var(--sui-primary-background-color);}"};function VH(t,e){le(e,!0),ke(t,qH);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=UH(),u=z(c),d=z(u);Z((f,h)=>{Se(c,"aria-label",f),te(d,h)},[()=>n()("site_config"),()=>g_(fC)]),$(a,c)};let s=_(()=>n()("site_configuration_editor"));_l(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}const We=nt(),Yi=nt(!0),X2=sn([We],([t])=>{if(!t)return!1;const{originalLocales:e,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:o,currentValues:s}=t;return!ln(e,n)||!ln(r,i)||!ln(o,s)});We.subscribe(t=>{ae(ft).devModeEnabled&&console.info("entryDraft",t)});const HH=({getFieldArgs:t,fieldConfig:e,sourceLanguage:n,value:r})=>{const{keyPath:i}=t;Object.entries(ae(We).currentValues).forEach(([o,s])=>{if(i.includes(".")){const{path:a}=i.match(/(?<path>.+?)\.[^.]*$/)?.groups??{};if(!Object.keys(s).some(c=>c.startsWith(`${a}.`))&&!hn({...t,keyPath:a}))return}if(e.widget==="relation"){const{value_field:a="{{slug}}"}=e;a.startsWith("{{locale}}/")&&(r=r.replace(new RegExp(`^${n}/`),`${o}/`))}o!==n&&s[i]!==r&&(s[i]=r)})},hw=({draft:{collectionName:t,fileName:e,isIndexFile:n},locale:r,target:i={},getValueMap:o=void 0})=>{const s=Qr(t),a=s&&e?Fc(s,e):void 0;if(!s||e&&!a)return;const{defaultLocale:c,canonicalSlug:{key:u}}=(a??s)._i18n,d=h=>ae(Yi)&&h.i18n==="duplicate"&&r===c,f=(h,p)=>{const g=typeof o=="function"?o():h,m={collectionName:t,fileName:e,keyPath:p,valueMap:g,isIndexFile:n},v=hn({...m});return{valueMap:g,getFieldArgs:m,fieldConfig:v}};return new Proxy(i,{set:(h,p,g)=>{if(h[p]!==g&&(h[p]=g),[u].includes(p))return!0;const{fieldConfig:m,getFieldArgs:v}=f(h,p);if(!m)return!0;const b=ae(We)?.validities?.[r]?.[p];return b&&typeof g=="string"&&Bc({fieldConfig:m,locale:r})&&(b.valueMissing=!g),d(m)&&HH({getFieldArgs:v,fieldConfig:m,sourceLanguage:r,value:g}),!0},deleteProperty:(h,p)=>{delete h[p];const{fieldConfig:g}=f(h,p);return g&&d(g)&&Object.entries(ae(We).currentValues).forEach(([m,v])=>{m!==r&&p in v&&delete v[p]}),!0}})};let wk=0,Da;const Z2={saved:!1,restored:!1,deleted:!1},rh=nt({show:!1}),Ns=nt({...Z2}),lg=async(t,e="")=>{await Da?.delete([t,e])},pw=async(t,e="")=>{const n=await Da?.get([t,e]);return n?n.siteConfigVersion===ae(iy)?n:(await lg(t,e),null):null},KH=async t=>{if(!(ae(ft).useDraftBackup??!0))return;const{collectionName:e,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:o={},currentValues:s={},files:a}=t,c=n??r?.slug??"";if(ae(X2)){const u={timestamp:new Date,siteConfigVersion:ae(iy),collectionName:e,slug:c,currentLocales:i,currentSlugs:js(o),currentValues:js(s),files:a};await Da?.put(u)}else await pw(e,c)&&await lg(e,c)},GH=({backup:t,collectionName:e,fileName:n})=>{const{currentLocales:r,currentSlugs:i,currentValues:o,files:s}=t,a=new Map;Yi.set(!1),We.update(c=>(c&&(c.currentLocales=r,c.currentSlugs=i,Object.entries(o).forEach(([u,d])=>{Object.entries(d).forEach(([f,h])=>{typeof h=="string"&&([...h.matchAll(EE("g"))].forEach(([p])=>{let g=s[p];if(g instanceof File&&(g={file:g,folder:void 0}),!g)return;const{file:m}=g;let v="";a.has(m)?v=a.get(m):(v=URL.createObjectURL(m),c.files[v]=g,a.set(m,v)),h=h.replaceAll(p,v)}),d[f]=h)}),c.currentValues[u]?Object.assign(c.currentValues[u],d):c.currentValues[u]=hw({draft:{collectionName:e,fileName:n},locale:u,target:structuredClone(d)}),c.originalValues[u]||(c.originalValues[u]={})})),c)),Yi.set(!0)},WH=async({collectionName:t,fileName:e,slug:n=""})=>{if(!(ae(ft).useDraftBackup??!0))return;const r=await pw(t,n);if(!r)return;const{timestamp:i}=r,o=await new Promise(s=>{rh.set({show:!0,timestamp:i,resolve:s})});o!==void 0&&(o?GH({backup:r,collectionName:t,fileName:e}):await lg(t,n),Ns.set({restored:o,deleted:!o,saved:!1}))},YH=async()=>{if(!(ae(ft).useDraftBackup??!0))return;const t=ae(We);if(!t||ae(Ns).saved)return;const{collectionName:e,originalEntry:n}=t;await pw(e,n?.slug)&&Ns.set({restored:!1,deleted:!1,saved:!0})},JH=()=>{Ns.set({...Z2})};wn.subscribe(t=>{if(t&&!Da){const{databaseName:e}=t.repository??{};if(e){Da=new Lo(e,"draft-backups",{keyPath:["collectionName","slug"]});return}}Da=null});We.subscribe(t=>{globalThis.clearTimeout(wk),t&&Da&&(wk=globalThis.setTimeout(()=>{KH(t)},500))});var XH=U("<!> <!> <!> <!>",1);function ZH(t,e){le(e,!0);const n=()=>V(rh,"$restoreDialogState",a),r=()=>V(Ut,"$appLocale",a),i=()=>V(ll,"$showContentOverlay",a),o=()=>V(ue,"$_",a),s=()=>V(Ns,"$backupToastState",a),[a,c]=me(),u=_(()=>new Date),d=_(()=>n().resolve),f=_(()=>n().timestamp),h=_(()=>l(u).getUTCFullYear()===l(f)?.getUTCFullYear()),p=_(()=>l(h)&&l(u).getUTCMonth()===l(f)?.getUTCMonth()),g=_(()=>l(p)&&l(u).getUTCDate()===l(f)?.getUTCDate()),m=_(()=>l(f)?.toLocaleString(r()??void 0,{year:l(h)?void 0:"numeric",month:l(g)?void 0:"short",day:l(g)?void 0:"numeric",hour:"numeric",minute:"numeric"}));De(()=>{!i()&&n().show&&(yt(rh,Ee(n).show=!1,Ee(n)),l(d)?.())});var v=XH(),b=M(v);{let k=_(()=>o()("restore_backup_title")),S=_(()=>o()("restore")),C=_(()=>o()("discard"));Kc(b,{get title(){return l(k)},get okLabel(){return l(S)},get cancelLabel(){return l(C)},onOk:()=>{l(d)?.(!0)},onCancel:()=>{l(d)?.(!1)},get open(){return n().show},set open(x){yt(rh,Ee(n).show=x,Ee(n))},children:(x,T)=>{var A=Oe();Z(P=>te(A,P),[()=>o()("restore_backup_description",{values:{datetime:l(m)}})]),$(x,A)},$$slots:{default:!0}})}var y=j(b,2);Zn(y,{get show(){return s().saved},set show(k){yt(Ns,Ee(s).saved=k,Ee(s))},children:(k,S)=>{Rn(k,{status:"info",children:(C,x)=>{var T=Oe();Z(A=>te(T,A),[()=>o()("draft_backup_saved")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=j(y,2);Zn(w,{get show(){return s().restored},set show(k){yt(Ns,Ee(s).restored=k,Ee(s))},children:(k,S)=>{Rn(k,{status:"success",children:(C,x)=>{var T=Oe();Z(A=>te(T,A),[()=>o()("draft_backup_restored")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var E=j(w,2);Zn(E,{get show(){return s().deleted},set show(k){yt(Ns,Ee(s).deleted=k,Ee(s))},children:(k,S)=>{Rn(k,{status:"info",children:(C,x)=>{var T=Oe();Z(A=>te(T,A),[()=>o()("draft_backup_deleted")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,v),ce(),c()}var QH=U('<div class="placeholder svelte-ow4el9"></div>');const e9={hash:"svelte-ow4el9",code:".placeholder.svelte-ow4el9 {height:64px;}"};function ro(t,e){le(e,!0),ke(t,e9);let n=ie(null),r=ie(!1);De(()=>{l(n)&&(async()=>(await vc(l(n)),G(r,!0)))()});var i=X(),o=M(i);{var s=c=>{var u=X(),d=M(u);Me(d,()=>e.children),$(c,u)},a=c=>{var u=QH();bt(u,d=>G(n,d),()=>l(n)),$(c,u)};q(o,c=>{l(r)?c(s):c(a,!1)})}$(t,i),ce()}function t9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t}function Ab(t,e){return Array(e+1).join(t)}function n9(t){return t.replace(/^\n*/,"")}function r9(t){for(var e=t.length;e>0&&t[e-1]===`
|
|
540
|
-
`;)e--;return t.substring(0,e)}var
|
|
539
|
+
}.outer.svelte-1kkfo1f .primary-sidebar header {display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:var(--sui-primary-toolbar-size);}.outer.svelte-1kkfo1f .primary-sidebar header h2 {padding:0 10px;font-size:var(--sui-font-size-x-large);}.outer.svelte-1kkfo1f .primary-sidebar .sui.search-bar {margin-inline:12px;--sui-textbox-background-color: var(--sui-tertiary-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=radiogroup] {width:100%;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] {margin:8px;border-width:0;background-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:start;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:first-child) {margin-top:4px;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button:not(:focus) {border-color:transparent;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button span {flex:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .label {flex:auto;overflow:hidden;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon {transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .icon.check {display:none;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button .count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option][aria-selected=true] .count {color:var(--sui-highlighted-foreground-color);}.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] [role=option].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}.outer.svelte-1kkfo1f .primary-sidebar .sui.divider {margin:8px 0;}`};function _l(t,e){ke(t,IH);const n=()=>V(ow,"$hasOverlay",r),[r,i]=me();let o=R(e,"class",3,""),s=R(e,"primarySidebar",3,void 0),a=R(e,"main",3,void 0),c=rt(e,["$$slots","$$events","$$legacy","class","primarySidebar","main"]);var u=NH();mt(u,()=>({role:"group",id:"page-container",class:`outer ${o()??""}`,inert:n(),...c}),void 0,void 0,"svelte-1kkfo1f");var d=z(u);Me(d,()=>s()??Be);var f=j(d,2);Me(f,()=>a()??Be),$(t,u),i()}var OH=U("<!> <!> <!> <!> <!> <!> <!> <!>",1);function RH(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",f),r=()=>V(Hi,"$selectedAssetFolder",f),i=()=>V(cn,"$isSmallScreen",f),o=()=>V(ue,"$_",f),s=()=>V(Ys,"$allAssetFolders",f),a=()=>V(vl,"$listedAssets",f),c=()=>V(Bs,"$overlaidAsset",f),u=()=>V(Mn,"$allAssets",f),d=()=>V(Ss,"$assetUpdatesToast",f),[f,h]=me(),p=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/;let g=ie(!1);const m=_(()=>n()&&r()?og(r()):""),v=async()=>{const{path:A}=Oo(),P=A.match(p);if(G(g,!1),!P?.groups)return;const{folderPath:L,fileName:I}=P.groups;if(!L){i()?(Ge(Hi,void 0),Ge(oi,o()("viewing_asset_folder_list")),G(g,!0)):Ht("/assets/-/all");return}const N=window.history.state?.folder??s().find(({internalPath:D,collectionName:B})=>L==="-/all"?D===void 0&&B===void 0:D===L);if(N?ln(r(),N)||Ge(Hi,N):Ge(Hi,void 0),!I){const D=a().length;await Lt(100),Ge(oi,o()(D>1?"viewing_x_asset_folder_many_assets":D===1?"viewing_x_asset_folder_one_asset":"viewing_x_asset_folder_no_assets",{values:{folder:l(m),count:D}}));return}Ge(Bs,I?u().find(D=>D.path===`${L}/${I}`):void 0),Ge(oi,c()?o()("viewing_x_asset_details",{values:{name:c().name}}):o()("file_not_found")),Ge(na,!0)};jt(()=>{v()});var b=OH();Hr("hashchange",Fa,A=>{aw(A,v,p)});var y=M(b);{const A=I=>{var N=X(),D=M(N);{var B=H=>{dH(H,{})};q(D,H=>{(!i()||l(g))&&H(B)})}$(I,N)},P=I=>{var N=X(),D=M(N);{var B=H=>{{const W=J=>{mH(J,{})},Y=J=>{var Q=X(),oe=M(Q);{var re=ee=>{AH(ee,{})};q(oe,ee=>{a().length&&ee(re)})}$(J,Q)},O=J=>{iH(J,{})},F=J=>{bH(J,{})};let K=_(()=>o()("x_asset_folder",{values:{folder:l(m)}}));nf(H,{id:"assets-container",get"aria-label"(){return l(K)},primaryToolbar:W,secondaryToolbar:Y,mainContent:O,secondarySidebar:F,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(D,H=>{(!i()||!l(g))&&H(B)})}$(I,N)};let L=_(()=>o()("asset_library"));_l(y,{get"aria-label"(){return l(L)},primarySidebar:A,main:P,$$slots:{primarySidebar:!0,main:!0}})}var w=j(y,2);dV(w,{});var E=j(w,2);mV(E,{});var k=j(E,2);FV(k,{});var S=j(k,2);Zn(S,{get show(){return d().saved},set show(A){yt(Ss,Ee(d).saved=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().published?d().count===1?"asset_saved_and_published":"assets_saved_and_published":d().count===1?"asset_saved":"assets_saved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var C=j(S,2);Zn(C,{get show(){return d().moved},set show(A){yt(Ss,Ee(d).moved=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_moved":"assets_moved",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var x=j(C,2);Zn(x,{get show(){return d().renamed},set show(A){yt(Ss,Ee(d).renamed=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_renamed":"assets_renamed",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}});var T=j(x,2);Zn(T,{get show(){return d().deleted},set show(A){yt(Ss,Ee(d).deleted=A,Ee(d))},children:(A,P)=>{Rn(A,{status:"success",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>o()(d().count===1?"asset_deleted":"assets_deleted",{values:{count:d().count}})]),$(L,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,b),ce(),h()}var DH=U('<div role="status"> </div>'),MH=U('<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>'),FH=U('<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>'),zH=U("<!> <!> <!>",1);const jH={hash:"svelte-96nj3d",code:".section.svelte-96nj3d {display:flex;flex-direction:column;gap:16px;}.section.svelte-96nj3d:not(:first-child) {margin-top:16px;}.section.svelte-96nj3d > * {flex:none;}.section.oversized.svelte-96nj3d .files {opacity:0.5;}"};function BH(t,e){le(e,!0),ke(t,jH);const n=()=>V(Ki,"$uploadingAssets",a),r=()=>V(SF,"$processedAssets",a),i=()=>V(na,"$showAssetOverlay",a),o=()=>V(q6,"$showUploadAssetsConfirmDialog",a),s=()=>V(ue,"$_",a),[a,c]=me();let u=ie(St([]));const d=_(()=>n().files),f=_(()=>n().folder),h=_(()=>n().originalAsset),p=_(()=>r().processing),g=_(()=>r().undersizedFiles),m=_(()=>r().oversizedFiles),v=_(()=>r().transformedFileMap),b=_(()=>Pd().config),y=_(()=>l(b).max_file_size);De(()=>{G(u,[...l(g)],!0)}),De(()=>{i()||Ge(Ki,{folder:void 0,files:[]})});{let w=_(()=>s()(l(h)?"replace_asset":"upload_assets")),E=_(()=>s()(l(h)?"replace":"upload")),k=_(()=>!l(u).length);Kc(t,{get open(){return o()},get title(){return l(w)},get okLabel(){return l(E)},get okDisabled(){return l(k)},onOk:async()=>{await M2({files:l(u),folder:l(f),originalAsset:l(h)},{commitType:"uploadMedia"}),Ge(Ki,{folder:void 0,files:[]})},onCancel:()=>{Ge(Ki,{folder:void 0,files:[]})},children:(S,C)=>{var x=zH(),T=M(x);{var A=D=>{var B=DH(),H=z(B);Z(W=>te(H,W),[()=>s()(l(d).length===1?"processing_file":"processing_files")]),$(D,B)};q(T,D=>{l(p)&&D(A)})}var P=j(T,2);{var L=D=>{var B=MH(),H=z(B),W=z(H);{var Y=K=>{var J=Oe();Z(Q=>te(J,Q),[()=>s()("confirm_replacing_file",{values:{name:l(h).name}})]),$(K,J)},O=K=>{var J=Oe();Z(Q=>te(J,Q),[()=>s()(l(u).length===1?"confirm_uploading_file":"confirm_uploading_files",{values:{count:l(u).length,folder:`/${l(f)?.internalPath}`}})]),$(K,J)};q(W,K=>{l(h)?K(Y):K(O,!1)})}var F=j(H,2);Cb(F,{get transformedFileMap(){return l(v)},get files(){return l(u)},set files(K){G(u,K,!0)}}),Z(K=>Se(B,"aria-label",K),[()=>s()("uploading_files")]),$(D,B)};q(P,D=>{l(u).length&&D(L)})}var I=j(P,2);{var N=D=>{var B=FH(),H=z(B);Rn(H,{status:"warning",children:(Y,O)=>{var F=Oe();Z(K=>te(F,K),[()=>s()(l(m).length===1?"warning_oversized_file":"warning_oversized_files",{values:{size:$p(l(y))}})]),$(Y,F)},$$slots:{default:!0}});var W=j(H,2);Cb(W,{get files(){return l(m)},get transformedFileMap(){return l(v)},removable:!1}),Z(Y=>Se(B,"aria-label",Y),[()=>s()("oversized_files")]),$(D,B)};q(I,D=>{l(m).length&&D(N)})}$(S,x)},$$slots:{default:!0}})}ce(),c()}function UH(t,e){le(e,!0);const n=()=>V(Ki,"$uploadingAssets",c),r=()=>V(Sp,"$targetAssetFolder",c),i=()=>V(xs,"$showUploadAssetsDialog",c),o=()=>V(ru,"$hasMouse",c),s=()=>V(na,"$showAssetOverlay",c),a=()=>V(ue,"$_",c),[c,u]=me();let d=ie(void 0);const f=_(()=>n().originalAsset),h=_(()=>!l(f)),p=_(()=>l(f)?gs.getType(l(f).name)??void 0:void 0),g=w=>{w.length&&(Ge(Ki,{folder:l(f)?l(f).folder:r(),files:w,originalAsset:l(f)}),Ge(xs,!1))};De(()=>{!o()&&i()&&l(d)?.open()}),De(()=>{s()||Ge(xs,!1)});var m=X(),v=M(m);{var b=w=>{{let E=_(()=>l(f)?a()("replace_x",{values:{name:l(f).name}}):a()("upload_assets"));ji(w,{get title(){return l(E)},showOk:!1,get open(){return Wb(),i()},set open(k){Ge(xs,k)},children:(k,S)=>{ef(k,{showUploadButton:!0,get accept(){return l(p)},get multiple(){return l(h)},onDrop:({files:C})=>{g(C)}})},$$slots:{default:!0}})}},y=w=>{bt(ay(w,{get accept(){return l(p)},get multiple(){return l(h)},onSelect:({files:E})=>{g(E)},onCancel:()=>{Ge(xs,!1)}}),E=>G(d,E,!0),()=>l(d))};q(v,w=>{o()?w(b):w(y,!1)})}$(t,m),ce(),u()}var qH=U('<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>');const VH={hash:"svelte-2picl5",code:"div.svelte-2picl5 {flex:auto;overflow:auto;}pre.svelte-2picl5 {margin:0;padding:16px;width:100%;min-width:fit-content;background-color:var(--sui-primary-background-color);}"};function HH(t,e){le(e,!0),ke(t,VH);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=qH(),u=z(c),d=z(u);Z((f,h)=>{Se(c,"aria-label",f),te(d,h)},[()=>n()("site_config"),()=>g_(fC)]),$(a,c)};let s=_(()=>n()("site_configuration_editor"));_l(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}const We=nt(),Yi=nt(!0),X2=sn([We],([t])=>{if(!t)return!1;const{originalLocales:e,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:o,currentValues:s}=t;return!ln(e,n)||!ln(r,i)||!ln(o,s)});We.subscribe(t=>{ae(ft).devModeEnabled&&console.info("entryDraft",t)});const KH=({getFieldArgs:t,fieldConfig:e,sourceLanguage:n,value:r})=>{const{keyPath:i}=t;Object.entries(ae(We).currentValues).forEach(([o,s])=>{if(i.includes(".")){const{path:a}=i.match(/(?<path>.+?)\.[^.]*$/)?.groups??{};if(!Object.keys(s).some(c=>c.startsWith(`${a}.`))&&!hn({...t,keyPath:a}))return}if(e.widget==="relation"){const{value_field:a="{{slug}}"}=e;a.startsWith("{{locale}}/")&&(r=r.replace(new RegExp(`^${n}/`),`${o}/`))}o!==n&&s[i]!==r&&(s[i]=r)})},hw=({draft:{collectionName:t,fileName:e,isIndexFile:n},locale:r,target:i={},getValueMap:o=void 0})=>{const s=Qr(t),a=s&&e?Fc(s,e):void 0;if(!s||e&&!a)return;const{defaultLocale:c,canonicalSlug:{key:u}}=(a??s)._i18n,d=h=>ae(Yi)&&h.i18n==="duplicate"&&r===c,f=(h,p)=>{const g=typeof o=="function"?o():h,m={collectionName:t,fileName:e,keyPath:p,valueMap:g,isIndexFile:n},v=hn({...m});return{valueMap:g,getFieldArgs:m,fieldConfig:v}};return new Proxy(i,{set:(h,p,g)=>{if(h[p]!==g&&(h[p]=g),[u].includes(p))return!0;const{fieldConfig:m,getFieldArgs:v}=f(h,p);if(!m)return!0;const b=ae(We)?.validities?.[r]?.[p];return b&&typeof g=="string"&&Bc({fieldConfig:m,locale:r})&&(b.valueMissing=!g),d(m)&&KH({getFieldArgs:v,fieldConfig:m,sourceLanguage:r,value:g}),!0},deleteProperty:(h,p)=>{delete h[p];const{fieldConfig:g}=f(h,p);return g&&d(g)&&Object.entries(ae(We).currentValues).forEach(([m,v])=>{m!==r&&p in v&&delete v[p]}),!0}})};let wk=0,Da;const Z2={saved:!1,restored:!1,deleted:!1},rh=nt({show:!1}),Ns=nt({...Z2}),lg=async(t,e="")=>{await Da?.delete([t,e])},pw=async(t,e="")=>{const n=await Da?.get([t,e]);return n?n.siteConfigVersion===ae(iy)?n:(await lg(t,e),null):null},GH=async t=>{if(!(ae(ft).useDraftBackup??!0))return;const{collectionName:e,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:o={},currentValues:s={},files:a}=t,c=n??r?.slug??"";if(ae(X2)){const u={timestamp:new Date,siteConfigVersion:ae(iy),collectionName:e,slug:c,currentLocales:i,currentSlugs:js(o),currentValues:js(s),files:a};await Da?.put(u)}else await pw(e,c)&&await lg(e,c)},WH=({backup:t,collectionName:e,fileName:n})=>{const{currentLocales:r,currentSlugs:i,currentValues:o,files:s}=t,a=new Map;Yi.set(!1),We.update(c=>(c&&(c.currentLocales=r,c.currentSlugs=i,Object.entries(o).forEach(([u,d])=>{Object.entries(d).forEach(([f,h])=>{typeof h=="string"&&([...h.matchAll(EE("g"))].forEach(([p])=>{let g=s[p];if(g instanceof File&&(g={file:g,folder:void 0}),!g)return;const{file:m}=g;let v="";a.has(m)?v=a.get(m):(v=URL.createObjectURL(m),c.files[v]=g,a.set(m,v)),h=h.replaceAll(p,v)}),d[f]=h)}),c.currentValues[u]?Object.assign(c.currentValues[u],d):c.currentValues[u]=hw({draft:{collectionName:e,fileName:n},locale:u,target:structuredClone(d)}),c.originalValues[u]||(c.originalValues[u]={})})),c)),Yi.set(!0)},YH=async({collectionName:t,fileName:e,slug:n=""})=>{if(!(ae(ft).useDraftBackup??!0))return;const r=await pw(t,n);if(!r)return;const{timestamp:i}=r,o=await new Promise(s=>{rh.set({show:!0,timestamp:i,resolve:s})});o!==void 0&&(o?WH({backup:r,collectionName:t,fileName:e}):await lg(t,n),Ns.set({restored:o,deleted:!o,saved:!1}))},JH=async()=>{if(!(ae(ft).useDraftBackup??!0))return;const t=ae(We);if(!t||ae(Ns).saved)return;const{collectionName:e,originalEntry:n}=t;await pw(e,n?.slug)&&Ns.set({restored:!1,deleted:!1,saved:!0})},XH=()=>{Ns.set({...Z2})};wn.subscribe(t=>{if(t&&!Da){const{databaseName:e}=t.repository??{};if(e){Da=new Lo(e,"draft-backups",{keyPath:["collectionName","slug"]});return}}Da=null});We.subscribe(t=>{globalThis.clearTimeout(wk),t&&Da&&(wk=globalThis.setTimeout(()=>{GH(t)},500))});var ZH=U("<!> <!> <!> <!>",1);function QH(t,e){le(e,!0);const n=()=>V(rh,"$restoreDialogState",a),r=()=>V(Ut,"$appLocale",a),i=()=>V(ll,"$showContentOverlay",a),o=()=>V(ue,"$_",a),s=()=>V(Ns,"$backupToastState",a),[a,c]=me(),u=_(()=>new Date),d=_(()=>n().resolve),f=_(()=>n().timestamp),h=_(()=>l(u).getUTCFullYear()===l(f)?.getUTCFullYear()),p=_(()=>l(h)&&l(u).getUTCMonth()===l(f)?.getUTCMonth()),g=_(()=>l(p)&&l(u).getUTCDate()===l(f)?.getUTCDate()),m=_(()=>l(f)?.toLocaleString(r()??void 0,{year:l(h)?void 0:"numeric",month:l(g)?void 0:"short",day:l(g)?void 0:"numeric",hour:"numeric",minute:"numeric"}));De(()=>{!i()&&n().show&&(yt(rh,Ee(n).show=!1,Ee(n)),l(d)?.())});var v=ZH(),b=M(v);{let k=_(()=>o()("restore_backup_title")),S=_(()=>o()("restore")),C=_(()=>o()("discard"));Kc(b,{get title(){return l(k)},get okLabel(){return l(S)},get cancelLabel(){return l(C)},onOk:()=>{l(d)?.(!0)},onCancel:()=>{l(d)?.(!1)},get open(){return n().show},set open(x){yt(rh,Ee(n).show=x,Ee(n))},children:(x,T)=>{var A=Oe();Z(P=>te(A,P),[()=>o()("restore_backup_description",{values:{datetime:l(m)}})]),$(x,A)},$$slots:{default:!0}})}var y=j(b,2);Zn(y,{get show(){return s().saved},set show(k){yt(Ns,Ee(s).saved=k,Ee(s))},children:(k,S)=>{Rn(k,{status:"info",children:(C,x)=>{var T=Oe();Z(A=>te(T,A),[()=>o()("draft_backup_saved")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=j(y,2);Zn(w,{get show(){return s().restored},set show(k){yt(Ns,Ee(s).restored=k,Ee(s))},children:(k,S)=>{Rn(k,{status:"success",children:(C,x)=>{var T=Oe();Z(A=>te(T,A),[()=>o()("draft_backup_restored")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}});var E=j(w,2);Zn(E,{get show(){return s().deleted},set show(k){yt(Ns,Ee(s).deleted=k,Ee(s))},children:(k,S)=>{Rn(k,{status:"info",children:(C,x)=>{var T=Oe();Z(A=>te(T,A),[()=>o()("draft_backup_deleted")]),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,v),ce(),c()}var e9=U('<div class="placeholder svelte-ow4el9"></div>');const t9={hash:"svelte-ow4el9",code:".placeholder.svelte-ow4el9 {height:64px;}"};function ro(t,e){le(e,!0),ke(t,t9);let n=ie(null),r=ie(!1);De(()=>{l(n)&&(async()=>(await vc(l(n)),G(r,!0)))()});var i=X(),o=M(i);{var s=c=>{var u=X(),d=M(u);Me(d,()=>e.children),$(c,u)},a=c=>{var u=e9();bt(u,d=>G(n,d),()=>l(n)),$(c,u)};q(o,c=>{l(r)?c(s):c(a,!1)})}$(t,i),ce()}function n9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)n.hasOwnProperty(r)&&(t[r]=n[r])}return t}function Ab(t,e){return Array(e+1).join(t)}function r9(t){return t.replace(/^\n*/,"")}function i9(t){for(var e=t.length;e>0&&t[e-1]===`
|
|
540
|
+
`;)e--;return t.substring(0,e)}var o9=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function gw(t){return mw(t,o9)}var Q2=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function eP(t){return mw(t,Q2)}function s9(t){return nP(t,Q2)}var tP=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function a9(t){return mw(t,tP)}function l9(t){return nP(t,tP)}function mw(t,e){return e.indexOf(t.nodeName)>=0}function nP(t,e){return t.getElementsByTagName&&e.some(function(n){return t.getElementsByTagName(n).length})}var Fr={};Fr.paragraph={filter:"p",replacement:function(t){return`
|
|
541
541
|
|
|
542
542
|
`+t+`
|
|
543
543
|
|
|
@@ -584,7 +584,7 @@ ${a}
|
|
|
584
584
|
`)+`
|
|
585
585
|
|
|
586
586
|
`,this.references=[]),e}};Fr.emphasis={filter:["em","i"],replacement:function(t,e,n){return t.trim()?n.emDelimiter+t+n.emDelimiter:""}};Fr.strong={filter:["strong","b"],replacement:function(t,e,n){return t.trim()?n.strongDelimiter+t+n.strongDelimiter:""}};Fr.code={filter:function(t){var e=t.previousSibling||t.nextSibling,n=t.parentNode.nodeName==="PRE"&&!e;return t.nodeName==="CODE"&&!n},replacement:function(t){if(!t)return"";t=t.replace(/\r?\n|\r/g," ");for(var e=/^`|^ .*?[^ ].* $|`$/.test(t)?" ":"",n="`",r=t.match(/`+/gm)||[];r.indexOf(n)!==-1;)n=n+"`";return n+e+t+e+n}};Fr.image={filter:"img",replacement:function(t,e){var n=Kh(e.getAttribute("alt")),r=e.getAttribute("src")||"",i=Kh(e.getAttribute("title")),o=i?' "'+i+'"':"";return r?"":""}};function Kh(t){return t?t.replace(/(\n+\s*)+/g,`
|
|
587
|
-
`):""}function rP(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}rP.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=km(this.array,t,this.options))||(e=km(this._keep,t,this.options))||(e=km(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e<this.array.length;e++)t(this.array[e],e)}};function km(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(
|
|
587
|
+
`):""}function rP(t){this.options=t,this._keep=[],this._remove=[],this.blankRule={replacement:t.blankReplacement},this.keepReplacement=t.keepReplacement,this.defaultRule={replacement:t.defaultReplacement},this.array=[];for(var e in t.rules)this.array.push(t.rules[e])}rP.prototype={add:function(t,e){this.array.unshift(e)},keep:function(t){this._keep.unshift({filter:t,replacement:this.keepReplacement})},remove:function(t){this._remove.unshift({filter:t,replacement:function(){return""}})},forNode:function(t){if(t.isBlank)return this.blankRule;var e;return(e=km(this.array,t,this.options))||(e=km(this._keep,t,this.options))||(e=km(this._remove,t,this.options))?e:this.defaultRule},forEach:function(t){for(var e=0;e<this.array.length;e++)t(this.array[e],e)}};function km(t,e,n){for(var r=0;r<t.length;r++){var i=t[r];if(c9(i,e,n))return i}}function c9(t,e,n){var r=t.filter;if(typeof r=="string"){if(r===e.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(e.nodeName.toLowerCase())>-1)return!0}else if(typeof r=="function"){if(r.call(t,e,n))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function u9(t){var e=t.element,n=t.isBlock,r=t.isVoid,i=t.isPre||function(f){return f.nodeName==="PRE"};if(!(!e.firstChild||i(e))){for(var o=null,s=!1,a=null,c=xk(a,e,i);c!==e;){if(c.nodeType===3||c.nodeType===4){var u=c.data.replace(/[ \r\n\t]+/g," ");if((!o||/ $/.test(o.data))&&!s&&u[0]===" "&&(u=u.substr(1)),!u){c=Sm(c);continue}c.data=u,o=c}else if(c.nodeType===1)n(c)||c.nodeName==="BR"?(o&&(o.data=o.data.replace(/ $/,"")),o=null,s=!1):r(c)||i(c)?(o=null,s=!0):o&&(s=!1);else{c=Sm(c);continue}var d=xk(a,c,i);a=c,c=d}o&&(o.data=o.data.replace(/ $/,""),o.data||Sm(o))}}function Sm(t){var e=t.nextSibling||t.parentNode;return t.parentNode.removeChild(t),e}function xk(t,e,n){return t&&t.parentNode===e||n(e)?e.nextSibling||e.parentNode:e.firstChild||e.nextSibling||e.parentNode}var vw=typeof window<"u"?window:{};function d9(){var t=vw.DOMParser,e=!1;try{new t().parseFromString("","text/html")&&(e=!0)}catch{}return e}function f9(){var t=function(){};return h9()?t.prototype.parseFromString=function(e){var n=new window.ActiveXObject("htmlfile");return n.designMode="on",n.open(),n.write(e),n.close(),n}:t.prototype.parseFromString=function(e){var n=document.implementation.createHTMLDocument("");return n.open(),n.write(e),n.close(),n},t}function h9(){var t=!1;try{document.implementation.createHTMLDocument("").open()}catch{vw.ActiveXObject&&(t=!0)}return t}var p9=d9()?vw.DOMParser:f9();function g9(t,e){var n;if(typeof t=="string"){var r=m9().parseFromString('<x-turndown id="turndown-root">'+t+"</x-turndown>","text/html");n=r.getElementById("turndown-root")}else n=t.cloneNode(!0);return u9({element:n,isBlock:gw,isVoid:eP,isPre:e.preformattedCode?v9:null}),n}var Em;function m9(){return Em=Em||new p9,Em}function v9(t){return t.nodeName==="PRE"||t.nodeName==="CODE"}function b9(t,e){return t.isBlock=gw(t),t.isCode=t.nodeName==="CODE"||t.parentNode.isCode,t.isBlank=_9(t),t.flankingWhitespace=y9(t,e),t}function _9(t){return!eP(t)&&!a9(t)&&/^\s*$/i.test(t.textContent)&&!s9(t)&&!l9(t)}function y9(t,e){if(t.isBlock||e.preformattedCode&&t.isCode)return{leading:"",trailing:""};var n=w9(t.textContent);return n.leadingAscii&&kk("left",t,e)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&kk("right",t,e)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function w9(t){var e=t.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:e[1],leadingAscii:e[2],leadingNonAscii:e[3],trailing:e[4],trailingNonAscii:e[5],trailingAscii:e[6]}}function kk(t,e,n){var r,i,o;return t==="left"?(r=e.previousSibling,i=/ $/):(r=e.nextSibling,i=/^ /),r&&(r.nodeType===3?o=i.test(r.nodeValue):n.preformattedCode&&r.nodeName==="CODE"?o=!1:r.nodeType===1&&!gw(r)&&(o=i.test(r.textContent))),o}var x9=Array.prototype.reduce,k9=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Gh(t){if(!(this instanceof Gh))return new Gh(t);var e={rules:Fr,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(n,r){return r.isBlock?`
|
|
588
588
|
|
|
589
589
|
`:""},keepReplacement:function(n,r){return r.isBlock?`
|
|
590
590
|
|
|
@@ -594,9 +594,9 @@ ${a}
|
|
|
594
594
|
|
|
595
595
|
`+n+`
|
|
596
596
|
|
|
597
|
-
`:n}};this.options=
|
|
597
|
+
`:n}};this.options=n9({},e,t),this.rules=new rP(this.options)}Gh.prototype={turndown:function(t){if(!$9(t))throw new TypeError(t+" is not a string, or an element/document/fragment node.");if(t==="")return"";var e=iP.call(this,new g9(t,this.options));return S9.call(this,e)},use:function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.use(t[e]);else if(typeof t=="function")t(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(t,e){return this.rules.add(t,e),this},keep:function(t){return this.rules.keep(t),this},remove:function(t){return this.rules.remove(t),this},escape:function(t){return k9.reduce(function(e,n){return e.replace(n[0],n[1])},t)}};function iP(t){var e=this;return x9.call(t.childNodes,function(n,r){r=new b9(r,e.options);var i="";return r.nodeType===3?i=r.isCode?r.nodeValue:e.escape(r.nodeValue):r.nodeType===1&&(i=E9.call(e,r)),oP(n,i)},"")}function S9(t){var e=this;return this.rules.forEach(function(n){typeof n.append=="function"&&(t=oP(t,n.append(e.options)))}),t.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function E9(t){var e=this.rules.forNode(t),n=iP.call(this,t),r=t.flankingWhitespace;return(r.leading||r.trailing)&&(n=n.trim()),r.leading+e.replacement(n,t,this.options)+r.trailing}function oP(t,e){var n=i9(t),r=r9(e),i=Math.max(t.length-n.length,e.length-r.length),o=`
|
|
598
598
|
|
|
599
|
-
`.substring(0,i);return n+o+r}function
|
|
599
|
+
`.substring(0,i);return n+o+r}function $9(t){return t!=null&&(typeof t=="string"||t.nodeType&&(t.nodeType===1||t.nodeType===9||t.nodeType===11))}const sP=(t,e)=>{const n=Fi(t),r=Fi(e),i=['- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have translate="no"','- CRITICAL: Leave content EXACTLY unchanged within HTML elements that have class="notranslate"','- CRITICAL: Leave content EXACTLY unchanged between "notranslate" and "/notranslate" comments',"- Preserve all markdown formatting (headers, links, bold, italic, code blocks, lists, etc.)","- Preserve all HTML tags and attributes exactly as they are","- Maintain the original structure and formatting","- Do not translate code content within code blocks or inline code","- Do not translate URLs, email addresses, or technical identifiers",'- If you see translate="no", class="notranslate", or notranslate comments, copy that content verbatim without any changes'],o=["- Do not split translations into separate paragraphs or add extra line breaks","- Keep each translation as a single continuous text string in the array"],s=['- Return your response as a valid JSON object with a "translations" array','- The "translations" array should contain the translated texts in the same order as provided','- VALIDATION: Before responding, double-check that any translate="no", class="notranslate", or notranslate comment content remains EXACTLY the same'],a=[...i,...o,...s];return`You are a professional translator. Translate the given texts from ${n} to ${r}.
|
|
600
600
|
|
|
601
601
|
IMPORTANT INSTRUCTIONS:
|
|
602
602
|
${a.join(`
|
|
@@ -607,29 +607,29 @@ Return a JSON object with this exact structure:
|
|
|
607
607
|
{
|
|
608
608
|
"translations": ["translated text 1", "translated text 2", ...]
|
|
609
609
|
}`},aP=t=>`Translate these texts:
|
|
610
|
-
${JSON.stringify(t)}`,$9="anthropic",T9="Anthropic Claude",C9="Anthropic API",A9="https://docs.anthropic.com/en/api/overview",P9="https://console.anthropic.com/settings/keys",L9=/sk-ant-api03-[a-zA-Z0-9-_]{80,}/,N9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),Wh=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(N9.includes(e))return e},I9=async({sourceLanguage:t,targetLanguage:e})=>!!Wh(t)&&!!Wh(e),O9=async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Wh(e)??"",n=Wh(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.anthropic.com/v1/messages",o=sP(e,n),s=aP(t),a={model:"claude-3-5-haiku-latest",max_tokens:4e3,temperature:.3,system:o,messages:[{role:"user",content:s}]};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":r,"anthropic-version":"2023-06-01","anthropic-dangerous-direct-browser-access":"true"},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`Anthropic API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.content||!Array.isArray(u.content)||!u.content[0])throw new Error("Invalid response format from Anthropic API.");const d=u.content[0].text.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from Anthropic API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in Anthropic API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with Anthropic API.")}},R9={serviceId:$9,serviceLabel:T9,apiLabel:C9,developerURL:A9,apiKeyURL:P9,apiKeyPattern:L9,markdownSupported:!0,availability:I9,translate:O9},D9="google",M9="Google Cloud Translation",F9="Cloud Translation API",z9="https://console.cloud.google.com/apis/library/translate.googleapis.com",j9="https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials",B9=/AIza[0-9A-Za-z-_]{35}/,Sk=["ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az","ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua","ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy","da,de,din,doi,dov,dv,dz","ee,el,en,eo,es,et,eu","fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy","ga,gaa,gd,gl,gn,gom,gu","ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy","id,ig,ilo,is,it,iw","ja,jv,jw","ka,kk,km,kn,ko,kri,ktu,ku,ky","la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv","mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my","ne,new,nl,no,nr,nso,nus,ny","oc,om,or","pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT","qu","rn,ro,rom,ru,rw","sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl","ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt","ug,uk,ur,uz","vi","xh","yi,yo,yua,yue","zh,zh-CN,zh-TW,zu"].join(",").split(","),Yh=t=>{const e=t.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(r,i,o)=>`${i.toLowerCase()}-${o.toUpperCase()}`);if(Sk.includes(e))return e;const[n]=e.split("-");if(Sk.includes(n))return n},U9=async({sourceLanguage:t,targetLanguage:e})=>!!Yh(t)&&!!Yh(e),q9=async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Yh(e)??"",n=Yh(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://translation.googleapis.com/language/translate/v2",o={q:t,source:e,target:n,format:"html"};try{const s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","X-goog-api-key":r},body:JSON.stringify(o)});if(!s.ok){const c=await s.json().catch(()=>({}));throw new Error(`Google Translate API error: ${s.status} ${s.statusText}${c.error?.message?` - ${c.error.message}`:""}`)}const{data:a}=await s.json();return a.translations.map(c=>c.translatedText)}catch(s){throw s instanceof Error?s:new Error("Failed to translate text with Google Translate API.")}},lP={serviceId:D9,serviceLabel:M9,apiLabel:F9,developerURL:z9,apiKeyURL:j9,apiKeyPattern:B9,markdownSupported:!1,availability:U9,translate:q9},V9="openai",H9="OpenAI GPT",K9="OpenAI API",G9="https://platform.openai.com/docs/overview",W9="https://platform.openai.com/api-keys",Y9=/sk-[a-zA-Z0-9-_]{40,}/,J9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),Jh=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(J9.includes(e))return e},X9=async({sourceLanguage:t,targetLanguage:e})=>!!Jh(t)&&!!Jh(e),Z9=async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Jh(e)??"",n=Jh(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.openai.com/v1/chat/completions",o=sP(e,n),s=aP(t),a={model:"gpt-4o-mini",messages:[{role:"system",content:o},{role:"user",content:s}],temperature:.3,max_tokens:4e3,response_format:{type:"json_object"}};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`OpenAI API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.choices||!u.choices[0]||!u.choices[0].message)throw new Error("Invalid response format from OpenAI API.");const d=u.choices[0].message.content.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from OpenAI API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in OpenAI API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with OpenAI API.")}},Q9={serviceId:V9,serviceLabel:H9,apiLabel:K9,developerURL:G9,apiKeyURL:W9,apiKeyPattern:Y9,markdownSupported:!0,availability:X9,translate:Z9},bw={google:lP,anthropic:R9,openai:Q9},cg=sn([ft],([t])=>{const{defaultTranslationService:e="google"}=t;return bw[e]??lP}),cP=new Gh({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});cP.keep(["span","div"]);const eK=({draft:t,options:e})=>{const{collectionName:n,fileName:r,currentValues:i,isIndexFile:o}=t,{sourceLanguage:s,targetLanguage:a,keyPath:c="",translate:u=!1}=e,d=i[s],f={collectionName:n,fileName:r,valueMap:d,isIndexFile:o};return Object.fromEntries(Object.entries(d).map(([h,p])=>{const g=i[a][h],m=hn({...f,keyPath:h}),v=m?.widget??"string";return c&&!h.startsWith(c)||typeof p!="string"||!p||!["markdown","text","string","list"].includes(v)||v==="list"&&(m.field??m.fields)||!u&&p===g||!c&&u&&g?null:[h,{value:p,isMarkdown:v==="markdown"}]}).filter(h=>!!h))},Ku=(t,e,{count:n,sourceLanguage:r})=>{sv.set({id:Date.now(),show:!0,status:t,message:e,count:n,sourceLanguage:r})},tK=async({currentValues:t,options:e,copingFieldMap:n})=>{const{serviceId:r,markdownSupported:i,translate:o}=ae(cg),{sourceLanguage:s,targetLanguage:a}=e,c=Object.keys(n).length,u=c===1?"one":"many",d=ae(ft).apiKeys?.[r]||await new Promise(f=>{xu.set({show:!0,multiple:c>1,resolve:f})});if(d){Ku("info","translation.started",{count:c,sourceLanguage:s});try{const f=await o(Object.entries(n).map(([,{value:h,isMarkdown:p}])=>p&&!i?B_(h):h),{apiKey:d,sourceLanguage:s,targetLanguage:a});Object.entries(n).forEach(([h,{isMarkdown:p}],g)=>{const m=f[g];t[a][h]=p&&!i?cP.turndown(m):m}),Ku("success",`translation.complete.${u}`,{count:c,sourceLanguage:s})}catch(f){Ku("error","translation.error",{count:c,sourceLanguage:s}),console.error(f)}}},nK=({currentValues:t,options:e,copingFieldMap:n})=>{const{sourceLanguage:r,targetLanguage:i}=e,o=Object.keys(n).length,s=o===1?"one":"many";Object.entries(n).forEach(([a,{value:c}])=>{t[i][a]=c}),Ku("success",`copy.complete.${s}`,{count:o,sourceLanguage:r})},uP=async t=>{const{sourceLanguage:e,translate:n=!1}=t,r=ae(We),{currentValues:i}=r,o=eK({draft:r,options:t}),s=Object.keys(o).length;if(!s){Ku("info",`${n?"translation":"copy"}.none`,{count:s,sourceLanguage:e});return}n?await tK({currentValues:i,options:t,copingFieldMap:o}):nK({currentValues:i,options:t,copingFieldMap:o}),We.update(a=>({...a,currentValues:i}))};function _w(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(cg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"keyPath",3,""),c=R(e,"translate",3,!1);const u=async({sourceLanguage:h,targetLanguage:p})=>!n()?.currentLocales[p]||!n().currentLocales[h]||!!a()&&!Dn(n().currentValues[h])[a()]||!c()&&!!a()&&Dn(n().currentValues[h])[a()]===Dn(n().currentValues[p])[a()]||c()&&!await r()?.availability({sourceLanguage:h,targetLanguage:p});var d=X(),f=M(d);ot(f,17,()=>e.otherLocales,vr,(h,p)=>{const g=_(()=>({sourceLanguage:l(p),targetLanguage:e.locale}));var m=X(),v=M(m);nn(v,()=>u(l(g)),null,(b,y)=>{{let w=_(()=>i()(c()?"translate_from_x":"copy_from_x",{values:{locale:Fi(l(p))}}));gt(b,{get label(){return l(w)},get disabled(){return l(y)},onclick:()=>{uP({...l(g),keyPath:a(),translate:c()})}})}}),$(h,m)}),$(t,d),ce(),s()}var rK=U("<section><!></section>");const iK={hash:"svelte-wzztxu",code:"section.svelte-wzztxu {padding:var(--field-editor-padding);}section.svelte-wzztxu:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}section.svelte-wzztxu > * {margin-inline:auto !important;max-width:768px;}section.svelte-wzztxu > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);}section.svelte-wzztxu > header h4 {margin-inline:8px 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}section.svelte-wzztxu > header .required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}"};function dP(t,e){ke(t,iK);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=rK();mt(i,()=>({role:"group",class:"field",...r}),void 0,void 0,"svelte-wzztxu");var o=z(i);Me(o,()=>n()??Be),$(t,i)}function fP(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(cg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"size",3,"medium"),c=R(e,"keyPath",3,"");const u=_(()=>!n()?.currentLocales[e.locale]),d=async({sourceLanguage:m,targetLanguage:v})=>l(u)||!n()?.currentLocales[m]||!await r()?.availability({sourceLanguage:m,targetLanguage:v});var f=X(),h=M(f);{var p=m=>{const v=_(()=>{const[k]=e.otherLocales;return{otherLocale:k}}),b=_(()=>i()("translate_from_x",{values:{locale:Fi(l(v).otherLocale)}})),y=_(()=>({sourceLanguage:l(v).otherLocale,targetLanguage:e.locale}));var w=X(),E=M(w);nn(E,()=>d(l(y)),null,(k,S)=>{Ze(k,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(b)},get title(){return l(b)},get disabled(){return l(S)},onclick:()=>{uP({...l(y),keyPath:c(),translate:!0})},startIcon:x=>{Je(x,{name:"translate"})},$$slots:{startIcon:!0}})}),$(m,w)},g=m=>{{const v=w=>{Je(w,{name:"translate"})},b=w=>{{let E=_(()=>i()("translation_options"));ar(w,{get"aria-label"(){return l(E)},children:(k,S)=>{_w(k,{get locale(){return e.locale},get otherLocales(){return e.otherLocales},get keyPath(){return c()},translate:!0})},$$slots:{default:!0}})}};let y=_(()=>i()("translate"));Mr(m,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(y)},get disabled(){return l(u)},endIcon:v,popup:b,$$slots:{endIcon:!0,popup:!0}})}};q(h,m=>{e.otherLocales.length===1?m(p):m(g,!1)})}$(t,f),ce(),s()}var oK=U('<div role="alert" class="validation svelte-6wra4i" aria-live="polite"><div role="none" class="svelte-6wra4i"><!> <!></div></div>');const sK={hash:"svelte-6wra4i",code:".validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-6wra4i div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0;}.validation.svelte-6wra4i div:where(.svelte-6wra4i) .icon {flex:none;font-size:16px; /* !hardcoded */}"};function yw(t,e){ke(t,sK);var n=oK(),r=z(n),i=z(r);Je(i,{name:"error"});var o=j(i,2);Me(o,()=>e.children),Z(()=>Se(n,"id",e.id)),$(t,n)}function aK(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);ly(t,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get checked(){return n()},set checked(s){n(s)}}),ce()}var lK=U("<p> </p>");function cK(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",3,!1);var s=X(),a=M(s);{var c=u=>{var d=lK(),f=z(d);Z(h=>te(f,h),[()=>n()(`boolean.${o()}`)]),$(u,d)};q(a,u=>{typeof o()=="boolean"&&u(c)})}$(t,s),ce(),i()}function uK(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=tr("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie("");const h=_(()=>tt(e.fieldConfig.default_language,"")),p=_(()=>tt(e.fieldConfig.allow_language_selection,!0)),g=_(()=>tt(e.fieldConfig.output_code_only,!1)),m=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),v=_(()=>Dn(n()?.[o][e.locale])??{}),b=_(()=>`${e.keyPath}.${l(m).code}`),y=_(()=>`${e.keyPath}.${l(m).lang}`),w=()=>{if(l(g))typeof s()!="string"?G(d,""):l(d)!==s()&&G(d,s(),!0);else{const C=l(v)[l(b)],x=l(v)[l(y)]||l(h);typeof C!="string"?G(d,""):l(d)!==C&&G(d,C,!0),typeof x!="string"?G(f,""):l(f)!==x&&G(f,x,!0)}},E=()=>{l(g)?s()!==l(d)&&s(l(d)):n()&&(s({}),l(v)[l(b)]!==l(d)&&yt(We,Ee(n)[o][e.locale][l(b)]=l(d),Ee(n)),l(v)[l(y)]!==l(f)&&yt(We,Ee(n)[o][e.locale][l(y)]=l(f),Ee(n)))};De(()=>{l(v),Ee(()=>{w()})}),De(()=>{l(d),l(f),Ee(()=>{E()})});var k=X(),S=M(k);nn(S,Lt,null,C=>{var x=X(),T=M(x);er(T,()=>JSON.stringify(e.fieldConfig),A=>{i6(A,{get showLanguageSwitcher(){return l(p)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get code(){return l(d)},set code(P){G(d,P,!0)},get lang(){return l(f)},set lang(P){G(f,P,!0)}})}),$(C,x)}),$(t,k),ce(),i()}var dK=U("<pre> </pre>");function fK(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>tt(e.fieldConfig.default_language,"")),s=_(()=>tt(e.fieldConfig.output_code_only,!1)),a=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),c=_(()=>Dn(n()?.currentValues[e.locale])??{}),u=_(()=>`${e.keyPath}.${l(a).code}`),d=_(()=>`${e.keyPath}.${l(a).lang}`),f=_(()=>l(s)?e.currentValue:l(c)[l(u)]),h=_(()=>l(s)?l(o):l(c)[l(d)]);var p=X(),g=M(p);{var m=v=>{var b=dK(),y=z(b);Z(()=>{rn(b,1,_E(l(h)?`language-${l(h)}`:void 0)),te(y,l(f))}),$(v,b)};q(g,v=>{l(f)&&v(m)})}$(t,p),ce(),i()}var hK=U(" <!>",1),pK=U('<span role="none" class="value svelte-1usff15"><!> <!></span>'),gK=U('<div role="none" class="svelte-1usff15"><input type="color" class="svelte-1usff15"/> <!> <!></div>');const mK={hash:"svelte-1usff15",code:"div.svelte-1usff15 {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.text-input {width:80px;min-width:0;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-1usff15 {font-family:var(--sui-textbox-font-family);}"};function vK(t,e){const n=zn();le(e,!0),ke(t,mK);const r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie(255);const h=_(()=>tt(e.fieldConfig.allowInput,!1)),p=_(()=>tt(e.fieldConfig.enableAlpha,!1)),g=/^#[0-9a-f]{6}$/,m=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/,v=()=>{if(typeof s()!="string")return;const{rgb:x,a:T="ff"}=s().match(m)?.groups??{};if(x&&l(d)!==x&&G(d,x,!0),x&&l(p)){const A=Number.parseInt(`0x${T}`,16);l(f)!==A&&G(f,A,!0)}},b=()=>{let x=g.test(l(d))?l(d):"";x&&l(p)&&(x+=l(f).toString(16).padStart(2,"0")),s()!==x&&s(x)};De(()=>{s(),Ee(()=>{v()})}),De(()=>{l(d),l(f),Ee(()=>{b()})});var y=gK(),w=z(y),E=j(w,2);{var k=x=>{var T=pK(),A=z(T);{var P=N=>{Nn(N,{get id(){return`${n}-input`},get invalid(){return u()},get readonly(){return c()},get required(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(d)},set value(D){G(d,D,!0)}})};q(A,N=>{l(h)&&N(P)})}var L=j(A,2);{var I=N=>{var D=hK(),B=M(D),H=j(B);{let W=_(()=>!l(d)),Y=_(()=>r()("opacity"));XU(H,{min:0,max:255,get disabled(){return l(W)},get"aria-label"(){return l(Y)},get value(){return l(f)},set value(O){G(f,O,!0)}})}Z(W=>te(B,`${W??""} `),[()=>r()("opacity")]),$(N,D)};q(L,N=>{l(p)&&N(I)})}$(x,T)};q(E,x=>{(l(h)||l(p))&&x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>r()("clear")),A=_(()=>!l(d)),P=_(()=>`${n}-picker ${l(h)?`${n}-input`:""}`);Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},get"aria-controls"(){return l(P)},onclick:()=>{G(d,""),G(f,255)}})}};q(S,x=>{!c()&&!a()&&x(C)})}Z(()=>{Se(w,"id",`${n}-picker`),w.readOnly=c(),Se(w,"aria-invalid",u()),Se(w,"aria-readonly",c()),Se(w,"aria-required",a()),Se(w,"aria-labelledby",`${e.fieldId??""}-label`),Se(w,"aria-errormessage",`${e.fieldId??""}-error`)}),up(w,()=>l(d),x=>G(d,x)),$(t,y),ce(),o()}var bK=U('<p><span role="none" class="preview svelte-1pgn31g"><span role="none" class="color svelte-1pgn31g"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>');const _K={hash:"svelte-1pgn31g",code:".preview.svelte-1pgn31g {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-1pgn31g .color:where(.svelte-1pgn31g) {display:block;width:24px;height:24px;border-radius:24px;}"};function yK(t,e){le(e,!0),ke(t,_K);const n=_(()=>tt(e.fieldConfig.enableAlpha,!1)),r=u=>Number.parseInt(`0x${u}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/,o=_(()=>{const{r:u,g:d,b:f,a:h}=e.currentValue?.match(i)?.groups??{};return u?`rgb(${r(u)} ${r(d)} ${r(f)}${l(n)&&h?` / ${Math.round(r(h)/255*100)}%`:""})`:""});var s=X(),a=M(s);{var c=u=>{var d=bK(),f=z(d),h=z(f);let p;var g=j(h,2),m=z(g),v=j(g,2),b=z(v);Z(y=>{p=Vi(h,"",p,y),te(m,e.currentValue),te(b,l(o))},[()=>({"background-color":e.currentValue})]),$(u,d)};q(a,u=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&u(c)})}$(t,s),ce()}function wK(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=tr("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1);const d=_(()=>tt(e.fieldConfig.value,"")),f=_(()=>n()?.isIndexFile??!1),h=_(()=>n()?.collectionName??""),p=_(()=>n()?.fileName),g=_(()=>Dn(n()?.[o][e.locale])??{}),m=_(()=>dc(e.locale)),v=()=>{const[y]=e.keyPath.split(".").splice(-2,1);return y?.match(/^\d+$/)?Number(y):void 0},b=()=>{if(!Object.keys(l(g)).includes(e.keyPath))return;const y=l(d)==="{{index}}"?v()??"":l(d).replaceAll(/{{(.+?)}}/g,(w,E)=>{if(E==="index")return String(v()??"");if(!E.startsWith("fields."))return"";const k=Uc({collectionName:l(h),fileName:l(p),valueMap:l(g),keyPath:E.replace(/^fields\./,""),locale:e.locale,isIndexFile:l(f)});return Array.isArray(k)?l(m).format(k):String(k)});s()!==y&&s(y)};De(()=>{l(g),Ee(()=>{b()})});{let y=_(()=>String(s()));Nn(t,{get value(){return l(y)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`}})}ce(),i()}var xK=U('<p dir="auto"> </p>');function kK(t,e){le(e,!0);var n=xK(),r=z(n);Z(i=>{Se(n,"lang",i),te(r,e.currentValue),n.dir=n.dir},[()=>Tr(e.locale)]),$(t,n),ce()}var SK=U('<span role="none" class="utc svelte-boo8ot">UTC</span>'),EK=U('<div role="none" class="svelte-boo8ot"><input/> <!> <!> <!></div>');const $K={hash:"svelte-boo8ot",code:"div.svelte-boo8ot {display:flex;align-items:center;}.utc.svelte-boo8ot {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function TK(t,e){le(e,!0),ke(t,$K);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie("");const d=_(()=>Js(e.fieldConfig)),f=_(()=>l(d).dateOnly),h=_(()=>l(d).timeOnly),p=_(()=>l(d).utc),g=()=>{const x=gD(o(),e.fieldConfig);x!==void 0&&x!==l(u)&&G(u,x,!0)},m=()=>{const x=z$(l(u),o(),e.fieldConfig);x!==void 0&&x!==o()&&Number(fc(x,e.fieldConfig))!==Number(fc(o(),e.fieldConfig))&&o(x)};De(()=>{o(),Ee(()=>{g()})}),De(()=>{l(u),Ee(()=>{m()})});var v=EK(),b=z(v),y=j(b,2);{var w=x=>{var T=SK();$(x,T)};q(y,x=>{l(p)&&x(w)})}var E=j(y,2);{var k=x=>{{let T=_(()=>n()(l(f)?"today":"now"));Ze(x,{variant:"tertiary",get label(){return l(T)},onclick:()=>{const A=F$(e.fieldConfig);G(u,l(p)?A.replace(/:00\.000Z$/,""):A,!0)}})}};q(E,x=>{a()||x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>n()("clear")),A=_(()=>!o());Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},onclick:()=>{o("")}})}};q(S,x=>{!a()&&!s()&&x(C)})}Z(()=>{Se(b,"type",l(f)?"date":l(h)?"time":"datetime-local"),b.readOnly=a(),Se(b,"aria-readonly",a()),Se(b,"aria-required",s()),Se(b,"aria-invalid",c()),Se(b,"aria-labelledby",`${e.fieldId??""}-label`),Se(b,"aria-errormessage",`${e.fieldId??""}-error`)}),up(b,()=>l(u),x=>G(u,x)),$(t,v),ce(),i()}var CK=U('<p dir="auto"> <!></p>');function AK(t,e){le(e,!0);const n=_(()=>j$({locale:e.locale,fieldConfig:e.fieldConfig,currentValue:e.currentValue}));var r=X(),i=M(r);{var o=s=>{var a=CK(),c=z(a),u=j(c);{var d=f=>{var h=Oe("UTC");$(f,h)};q(u,f=>{e.fieldConfig.picker_utc&&f(d)})}Z(f=>{Se(a,"lang",f),te(c,`${l(n)??""} `),a.dir=a.dir},[()=>Tr(e.locale)]),$(s,a)};q(i,s=>{l(n)&&s(o)})}$(t,r),ce()}var PK=U('<span role="none" class="icon check-background"><!></span>'),LK=U('<div role="none"><!></div>');const NK={hash:"svelte-1fitgoo",code:".wrapper.svelte-1fitgoo {display:contents;}.wrapper.svelte-1fitgoo [role=option] {position:relative;}.wrapper.svelte-1fitgoo [role=option] > .icon.check {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background .icon {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=true] .check-background {border-color:var(--sui-primary-accent-color);color:var(--sui-primary-accent-color-inverted);background-color:var(--sui-primary-accent-color);}.wrapper.svelte-1fitgoo [role=option] .check-background {display:flex;justify-content:center;align-items:center;border-width:1px;border-radius:var(--sui-checkbox-border-radius);width:20px;height:20px;pointer-events:none;}.wrapper.svelte-1fitgoo [role=option] .check-background .icon {color:inherit !important;font-size:20px;}.wrapper.grid.svelte-1fitgoo .check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.wrapper.list.svelte-1fitgoo .check-background {margin-inline-start:16px;}"};function hP(t,e){ke(t,NK);let n=R(e,"viewType",3,"grid");var r=LK(),i=z(r);Sr(i,{label:"",get value(){return e.value},get selected(){return e.selected},get onChange(){return e.onChange},startIcon:s=>{var a=X(),c=M(a);{var u=d=>{var f=PK(),h=z(f);Je(h,{name:"check",class:"icon check"}),$(d,f)};q(c,d=>{e.multiple&&d(u)})}$(s,a)},children:(s,a)=>{var c=X(),u=M(c);Me(u,()=>e.children??Be),$(s,c)},$$slots:{startIcon:!0,default:!0}}),Z(()=>rn(r,1,`wrapper ${n()??""}`,"svelte-1fitgoo")),$(t,r)}var IK=U('<div role="none"><!></div>');const OK={hash:"svelte-umbokg",code:".wrapper.svelte-umbokg {display:contents;}.wrapper.svelte-umbokg .listbox {gap:4px;overflow-x:hidden;overflow-y:auto;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-umbokg .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-umbokg .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-umbokg .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-umbokg .listbox .name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-umbokg .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-umbokg .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-umbokg .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-umbokg .listbox.grid .option button .name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-umbokg .listbox.grid button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-umbokg :not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;left:-99999px;}.wrapper.svelte-umbokg .listbox.list .option button {gap:16px;}.wrapper.svelte-umbokg .listbox.list .option button .preview {width:64px;}.wrapper.svelte-umbokg .listbox.list .option button .name {flex:auto;padding-inline:0 8px;}.wrapper.svelte-umbokg .listbox.list .option button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}"};function pP(t,e){le(e,!0),ke(t,OK);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"viewType",3,"grid"),s=R(e,"gridId",3,void 0),a=R(e,"multiple",3,!1),c=R(e,"showTitle",3,!1),u=R(e,"onChange",3,void 0),d=R(e,"children",3,void 0);var f=IK();let h;var p=z(f);{let g=_(()=>n()("assets_dialog.available_images"));Gc(p,{get id(){return s()},get class(){return o()},get multiple(){return a()},get"aria-label"(){return l(g)},onChange:m=>{u()?.(m.detail)},children:(m,v)=>{var b=X(),y=M(b);Me(y,()=>d()??Be),$(m,b)},$$slots:{default:!0}})}Z(g=>h=rn(f,1,"wrapper svelte-umbokg",null,h,g),[()=>({"show-title":c()})]),$(t,f),ce(),i()}var RK=U('<span role="alert"> </span>'),DK=U('<span role="alert"> </span>'),MK=U('<span role="alert"> </span>'),FK=U('<span role="none" class="name"> </span>'),zK=U("<!> <!>",1),jK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div>'),BK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div>',1),UK=U('<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>',1),qK=U('<span role="alert"> </span>');const VK={hash:"svelte-mqll9n",code:"p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}"};function HK(t,e){le(e,!0),ke(t,VK);const n=()=>V(oc,"$selectAssetsView",s),r=()=>V(ft,"$prefs",s),i=()=>V(ue,"$_",s),o=()=>V(cn,"$isSmallScreen",s),[s,a]=me();let c=R(e,"kind",3,"image"),u=R(e,"multiple",3,!1),d=R(e,"searchTerms",3,""),f=R(e,"gridId",3,void 0),h=R(e,"selectedResources",31,()=>St([]));const p=_(()=>tt(e.serviceProps.serviceType,"stock_assets")),g=_(()=>tt(e.serviceProps.serviceId,"")),m=_(()=>tt(e.serviceProps.serviceLabel,"")),v=_(()=>tt(e.serviceProps.hotlinking,!1)),b=_(()=>tt(e.serviceProps.authType,"api_key")),y=_(()=>tt(e.serviceProps.developerURL,"")),w=_(()=>tt(e.serviceProps.apiKeyURL,"")),E=_(()=>e.serviceProps.apiKeyPattern),k=_(()=>e.serviceProps.init),S=_(()=>e.serviceProps.signIn),C=_(()=>e.serviceProps.list),x=_(()=>e.serviceProps.search),T=_(()=>n()?.type),A=St({userName:"",password:""});let P=ie(!0),L=ie(!1),I=ie(""),N=ie(""),D=ie(""),B=ie("initial"),H=ie(null),W=ie(void 0),Y=0;const O=async(ne="")=>{G(H,null),ne=ne.trim();const se={kind:c(),apiKey:l(I),userName:l(N),password:l(D)};try{G(H,await(ne?l(x)(ne,se):l(C)(se)),!0)}catch(fe){G(W,"search_fetch_failed"),console.error(fe)}},F=async ne=>{const{downloadURL:se,fileName:fe,credit:be}=ne;if(l(v))return{url:se,credit:be};try{const pe=await fetch(se),{ok:he,status:ge}=pe;if(!he)throw new Error(`The response returned with HTTP status ${ge}.`);const ve=await pe.blob(),_e=new File([ve],fe,{type:ve.type});return{url:se,credit:be,file:_e}}catch(pe){G(W,"image_fetch_failed"),console.error(pe)}},K=ne=>h().some(se=>se.url===ne.downloadURL),J=async(ne,se)=>{const fe=h().filter(be=>be.url!==ne.downloadURL);if(se){const be=await F(ne);be&&h([...fe,be])}else h(fe)};jt(()=>{(async()=>(typeof l(k)=="function"&&(G(P,!1),G(P,await l(k)(),!0)),l(P)&&(G(I,r().apiKeys?.[l(g)]??"",!0),(ne=>{var se=So(ne,2);G(N,se[0],!0),G(D,se[1],!0)})((r().logins?.[l(g)]??"").split(" ")),G(L,!!l(I)||!!l(D),!0),G(H,null),l(L)&&O())))()}),De(()=>{d(),window.clearTimeout(Y),Y=window.setTimeout(()=>{l(L)&&O(d())},1e3)});var Q=X(),oe=M(Q);{var re=ne=>{var se=X(),fe=M(se);{var be=he=>{pr(he,{children:(ge,ve)=>{var _e=RK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()(`assets_dialog.error.${l(W)}`)]),$(ge,_e)},$$slots:{default:!0}})},pe=he=>{var ge=X(),ve=M(ge);{var _e=Ce=>{pr(Ce,{children:(Re,He)=>{var Ye=DK(),Ue=z(Ye);Z(Te=>te(Ue,Te),[()=>i()("searching")]),$(Re,Ye)},$$slots:{default:!0}})},$e=Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{pr(Te,{children:(Fe,Ie)=>{var Ae=MK(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>i()("no_files_found")]),$(Fe,Ae)},$$slots:{default:!0}})},Ue=Te=>{pP(Te,{get viewType(){return l(T)},get gridId(){return f()},get multiple(){return u()},children:(Fe,Ie)=>{hl(Fe,{get items(){return l(H)},itemKey:"id",renderItem:(we,Pe=Be)=>{var ye=X(),it=M(ye);nn(it,Lt,null,Qe=>{const Le=_(()=>{const{id:ze,previewURL:Xe,description:st,kind:lt}=Pe();return{id:ze,previewURL:Xe,description:st,_kind:lt}});{let ze=_(()=>K(Pe()));hP(Qe,{get value(){return l(Le).id},get viewType(){return l(T)},get multiple(){return u()},get selected(){return l(ze)},onChange:({detail:{selected:Xe}})=>{J(Pe(),Xe)},children:(Xe,st)=>{var lt=zK(),xt=M(lt);Ro(xt,{get kind(){return l(Le)._kind},get src(){return l(Le).previewURL},variant:"tile",crossorigin:"anonymous"});var Gt=j(xt,2);{var bn=Xt=>{var Zt=FK(),pt=z(Zt);Z(()=>te(pt,l(Le).description)),$(Xt,Zt)};q(Gt,Xt=>{(!o()||l(T)==="list")&&Xt(bn)})}$(Xe,lt)},$$slots:{default:!0}})}}),$(we,ye)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})};q(He,Te=>{l(H).length?Te(Ue,!1):Te(Ye)},!0)}$(Ce,Re)};q(ve,Ce=>{l(H)?Ce($e,!1):Ce(_e)},!0)}$(he,ge)};q(fe,he=>{l(W)?he(be):he(pe,!1)})}$(ne,se)},ee=ne=>{var se=X(),fe=M(se);{var be=he=>{pr(he,{children:(ge,ve)=>{var _e=UK(),$e=M(_e),Ce=z($e);{var Re=Ae=>{var we=X(),Pe=M(we);gr(Pe,()=>Dr.sanitize(i()("prefs.media.stock_photos.description",{values:{service:l(m),homeHref:`href="${l(y)}"`,apiKeyHref:`href="${l(w)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(Ce,Ae=>{l(p)==="stock_assets"&&Ae(Re)})}var He=j(Ce,2);{var Ye=Ae=>{var we=X(),Pe=M(we);gr(Pe,()=>Dr.sanitize(i()(`cloud_storage.auth.${l(B)}`,{values:{service:l(m)}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(He,Ae=>{l(p)==="cloud_storage"&&Ae(Ye)})}var Ue=j($e,2);{var Te=Ae=>{var we=jK(),Pe=z(we);{let ye=_(()=>i()("prefs.media.stock_photos.field_label",{values:{service:l(m)}}));Nn(Pe,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(ye)},oninput:it=>{const Qe=it.target.value.trim();l(E)?.test(Qe)&&(G(I,Qe,!0),G(L,!0),yt(ft,Ee(r).apiKeys??={},Ee(r)),yt(ft,Ee(r).apiKeys[l(g)]=l(I),Ee(r)),O())}})}$(Ae,we)};q(Ue,Ae=>{l(b)==="api_key"&&Ae(Te)})}var Fe=j(Ue,2);{var Ie=Ae=>{var we=BK(),Pe=M(we),ye=z(Pe);{let Xe=_(()=>i()("user_name")),st=_(()=>l(B)==="requested");Nn(ye,{flex:!0,spellcheck:"false",get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.userName},set value(lt){A.userName=lt}})}var it=j(Pe,2),Qe=z(it);{let Xe=_(()=>i()("password")),st=_(()=>l(B)==="requested");P6(Qe,{get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.password},set value(lt){A.password=lt}})}var Le=j(it,2),ze=z(Le);{let Xe=_(()=>i()("sign_in")),st=_(()=>!A.userName||!A.password||l(B)==="requested");Ze(ze,{variant:"secondary",get label(){return l(Xe)},get disabled(){return l(st)},onclick:async()=>{G(B,"requested"),A.userName=A.userName.trim(),A.password=A.password.trim(),await l(S)?.(A.userName,A.password)?(G(B,"success"),G(N,A.userName,!0),G(D,A.password,!0),G(L,!0),yt(ft,Ee(r).logins??={},Ee(r)),yt(ft,Ee(r).logins[l(g)]=[l(N),l(D)].join(" "),Ee(r)),O()):G(B,"error")}})}$(Ae,we)};q(Fe,Ae=>{l(b)==="password"&&Ae(Ie)})}$(ge,_e)},$$slots:{default:!0}})},pe=he=>{pr(he,{children:(ge,ve)=>{var _e=qK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()("cloud_storage.invalid")]),$(ge,_e)},$$slots:{default:!0}})};q(fe,he=>{l(P)?he(be):he(pe,!1)},!0)}$(ne,se)};q(oe,ne=>{l(L)?ne(re):ne(ee,!1)})}$(t,Q),ce(),a()}const rf=t=>(t=t.trim(),t?t.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase():""),Dl=({value:t,terms:e})=>rf(t).includes(e),Ek=(t,e=Be)=>{var n=X(),r=M(n);gr(r,()=>Dr.sanitize(e().replace(/([-_.])/g,"$1<wbr>"),{ALLOWED_TAGS:["wbr"]})),$(t,n)};var KK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),GK=U('<strong class="svelte-1ong0f1"><!></strong>'),WK=U("<!>/",1),YK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),JK=U('<span role="none" class="name svelte-1ong0f1"><!> <!></span>'),XK=U("<!> <!> <!>",1),ZK=U('<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>'),QK=U('<span role="none"> </span>');const eG={hash:"svelte-1ong0f1",code:".grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;}.grid-wrapper.svelte-1ong0f1 [role=listbox] {background-color:transparent;}.grid-wrapper.svelte-1ong0f1 [role=listbox].grid .unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}.grid-wrapper.svelte-1ong0f1 [role=listbox].list .name {display:flex;gap:8px;align-items:center;justify-content:space-between;}.unsaved.svelte-1ong0f1 {display:flex;justify-content:center;align-items:center;border-color:var(--sui-info-border-color);border-radius:4px;padding:2px 6px;color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}.name.svelte-1ong0f1 {color:var(--sui-tertiary-foreground-color);}.name.svelte-1ong0f1 strong:where(.svelte-1ong0f1) {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}"};function gP(t,e){le(e,!0),ke(t,eG);const n=()=>V(ue,"$_",i),r=()=>V(cn,"$isSmallScreen",i),[i,o]=me();let s=R(e,"multiple",3,!1),a=R(e,"assets",19,()=>[]),c=R(e,"viewType",3,"grid"),u=R(e,"searchTerms",3,""),d=R(e,"basePath",3,void 0),f=R(e,"gridId",3,void 0),h=R(e,"checkerboard",3,!1),p=R(e,"selectedResources",31,()=>St([])),g=R(e,"onSelect",3,void 0);const m=_(()=>u()?a().filter(({name:S})=>rf(S).includes(u())):a()),v=S=>p().some(C=>ln(C.asset,S)),b=(S,C)=>{const x=p().filter(T=>!ln(T.asset,S));C?(p([...x,{asset:S}]),g()?.({asset:S})):p(x)};var y=X(),w=M(y);{var E=S=>{var C=ZK(),x=z(C);pP(x,{get multiple(){return s()},get gridId(){return f()},get viewType(){return c()},showTitle:!0,children:(T,A)=>{hl(T,{get items(){return l(m)},itemKey:"path",renderItem:(L,I=Be)=>{var N=X(),D=M(N);nn(D,Lt,null,B=>{const H=_(()=>{const{kind:O,name:F,path:K,unsaved:J,folder:Q}=I();return{kind:O,name:F,path:K,unsaved:J,folder:Q}}),W=_(()=>d()&&!l(H).folder.entryRelative?tn(l(H).path.replace(d(),"")):l(H).name),Y=_(()=>l(W).split("/"));{let O=_(()=>v(I()));hP(B,{get value(){return l(H).path},get viewType(){return c()},get multiple(){return s()},get selected(){return l(O)},onChange:({detail:{selected:F}})=>{b(I(),F)},children:(F,K)=>{var J=XK(),Q=M(J);{var oe=se=>{var fe=KK(),be=z(fe);Z(pe=>te(be,pe),[()=>n()("assets_dialog.unsaved")]),$(se,fe)};q(Q,se=>{c()==="grid"&&l(H).unsaved&&se(oe)})}var re=j(Q,2);Ro(re,{get kind(){return l(H).kind},get asset(){return I()},variant:"tile",get checkerboard(){return h()}});var ee=j(re,2);{var ne=se=>{var fe=JK(),be=z(fe);Cr(be,{lines:2,children:(ge,ve)=>{var _e=X(),$e=M(_e);ot($e,17,()=>l(Y),vr,(Ce,Re,He)=>{var Ye=X(),Ue=M(Ye);{var Te=Ie=>{var Ae=GK(),we=z(Ae);Ek(we,()=>l(Re)),$(Ie,Ae)},Fe=Ie=>{var Ae=WK(),we=M(Ae);Ek(we,()=>l(Re)),$(Ie,Ae)};q(Ue,Ie=>{He===l(Y).length-1?Ie(Te):Ie(Fe,!1)})}$(Ce,Ye)}),$(ge,_e)},$$slots:{default:!0}});var pe=j(be,2);{var he=ge=>{var ve=YK(),_e=z(ve);Z($e=>te(_e,$e),[()=>n()("assets_dialog.unsaved")]),$(ge,ve)};q(pe,ge=>{c()==="list"&&l(H).unsaved&&ge(he)})}$(se,fe)};q(ee,se=>{(!r()||c()==="list")&&se(ne)})}$(F,J)},$$slots:{default:!0}})}}),$(L,N)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),$(S,C)},k=S=>{pr(S,{children:(C,x)=>{var T=QK(),A=z(T);Z(P=>te(A,P),[()=>n()("no_files_found")]),$(C,T)},$$slots:{default:!0}})};q(w,S=>{l(m).length?S(E):S(k,!1)})}$(t,y),ce(),o()}function tG(t,e){le(e,!0);const n=()=>V(oc,"$selectAssetsView",r),[r,i]=me();let o=R(e,"multiple",3,!1),s=R(e,"accept",3,void 0),a=R(e,"assets",19,()=>[]),c=R(e,"searchTerms",3,""),u=R(e,"basePath",3,void 0),d=R(e,"selectedResources",31,()=>St([])),f=ie(void 0);De(()=>{d().length||Ee(()=>{l(f)?.reset()})}),bt(ef(t,{get multiple(){return o()},get accept(){return s()},get onDrop(){return e.onDrop},children:(h,p)=>{{let g=_(()=>n()?.type);gP(h,{get multiple(){return o()},get assets(){return a()},get viewType(){return l(g)},get searchTerms(){return c()},get basePath(){return u()},gridId:"select-assets-grid",checkerboard:!0,get selectedResources(){return d()},set selectedResources(m){d(m)}})}},$$slots:{default:!0}}),h=>G(f,h,!0),()=>l(f)),ce(),i()}const Of={},$k=["en-US,pt-BR,es-ES,ca-ES,de-DE,it-IT,fr-FR,sv-SE,id-ID,pl-PL,ja-JP,zh-TW,zh-CN,ko-KR,th-TH,nl-NL","hu-HU,vi-VN,cs-CZ,da-DK,fi-FI,uk-UA,el-GR,ro-RO,nb-NO,sk-SK,tr-TR,ru-RU"].join(",").split(","),mP="https://api.pexels.com/v1",vP={per_page:80},nG=()=>{const t=ae(Ut).toLowerCase(),[e]=t.split("-");return $k.find(n=>n.toLowerCase()===t)??$k.find(n=>n.split("-")[0]===e)??"en-US"},bP=t=>t.map(({id:e,url:n,alt:r,src:{large2x:i,medium:o},photographer:s})=>({id:String(e),description:n.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??r,previewURL:o,downloadURL:i,fileName:`pexels-${s.split(/\s+/).join("-").toLowerCase()}-${e}.jpg`,kind:"image",credit:`<a href="${n}">Photo by ${s} on Pexels</a>`})),rG=async({apiKey:t})=>{const e={Authorization:t},n=new URLSearchParams(vP),r=await fetch(`${mP}/curated?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=(await r.json()).photos;return bP(i)},iG=async(t,{apiKey:e})=>{const n={Authorization:e},r=new URLSearchParams({...vP,query:t,locale:nG()}),i=[];for(let o=1;o<=2;o+=1){r.set("page",String(o));const s=await fetch(`${mP}/search?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{photos:a,next_page:c}=await s.json();if(i.push(...a),!c)break;await Lt(50)}return bP(i)},oG={serviceType:"stock_assets",serviceId:"pexels",serviceLabel:"Pexels",serviceURL:"https://www.pexels.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://www.pexels.com/api/",apiKeyURL:"https://www.pexels.com/api/new/",apiKeyPattern:/^[a-zA-Z\d]{56}$/,list:rG,search:iG},sG="cs,da,de,en,es,fr,id,it,hu,nl,no,pl,pt,ro,sk,fi,sv,tr,vi,th,bg,ru,el,ja,ko,zh".split(","),_P="https://pixabay.com/api",yP={image_type:"photo",min_width:1280,safesearch:!0,per_page:150},wP=t=>t.map(({id:e,webformatURL:n,previewURL:r,largeImageURL:i,imageWidth:o,imageHeight:s,pageURL:a,tags:c,user:u})=>({id:String(e),description:c,previewURL:n.replace("_640.",o>s?"_180.":"_340."),downloadURL:i,fileName:r.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${a}">Photo by ${u} on Pixabay`})),xP=()=>{const[t]=ae(Ut).toLowerCase().split("-");return sG.includes(t)?t:"en"},aG=async({apiKey:t})=>{const e=new URLSearchParams({...yP,key:t,lang:xP(),editors_choice:String(!0)}),n=await fetch(`${_P}/?${e}`);if(!n.ok)return Promise.reject();const r=(await n.json()).hits;return wP(r)},lG=async(t,{apiKey:e})=>{const n=new URLSearchParams({...yP,key:e,lang:xP(),q:t}),r=await fetch(`${_P}/?${n}`);if(!r.ok)return Promise.reject();const i=(await r.json()).hits;return wP(i)},cG={serviceType:"stock_assets",serviceId:"pixabay",serviceLabel:"Pixabay",serviceURL:"https://pixabay.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://pixabay.com/service/about/api/",apiKeyURL:"https://pixabay.com/api/docs/#api_key",apiKeyPattern:/^\d+-[a-f\d]{25}$/,list:aG,search:lG},Tk=["af,sq,am,ar,hy,as,az,bn,ba,eu,bs,bg,yue,ca,lzh,zh-Hans,zh-Hant,hr,cs,da,prs,dv,nl,en,et,fo,fj","fil,fi,fr,fr-ca,gl,ka,de,el,gu,ht,he,hi,mww,hu,is,id,ikt,iu,iu-Latn,ga,it,ja,kn,kk,km,ko,ku,kmr","ky,lo,lv,lt,mk,mg,ms,ml,mt,mi,mr,mn-Cyrl,mn-Mong,my,ne,nb,or,ps,fa,pl,pt,pt-pt,pa,otq,ro,ru,sm","sr-Cyrl,sr-Latn,sk,sl,so,es,sw,sv,ty,ta,tt,te,th,bo,ti,to,tr,tk,uk,hsb,ur,ug,uz,vi,cy,yua,zu"].join(",").split(","),kP="https://api.unsplash.com",Ck="utm_source=sveltia-cms&utm_medium=referral",SP={per_page:30},uG=()=>{const t=ae(Ut).toLowerCase(),[e]=t.split("-");return Tk.find(n=>n.toLowerCase()===t)??Tk.find(n=>n.split("-")[0]===e)??"en"},EP=t=>t.map(({id:e,description:n,alt_description:r,urls:{regular:i,thumb:o},user:{username:s,name:a}})=>({id:String(e),description:[n,r].filter(Boolean).join(" — "),previewURL:o,downloadURL:i,fileName:`${a.split(/\s+/).join("-").toLowerCase()}-${e}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${s}?${Ck}">${a}</a> on <a href="https://unsplash.com/?${Ck}">Unsplash</a>`})),dG=async({apiKey:t})=>{const e={Authorization:`Client-ID ${t}`},n=new URLSearchParams(SP),r=await fetch(`${kP}/photos?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=await r.json();return EP(i)},fG=async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},r=new URLSearchParams({...SP,query:t,lang:uG()}),i=[];for(let o=1;o<=5;o+=1){r.set("page",String(o));const s=await fetch(`${kP}/search/photos?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{results:a,total_pages:c}=await s.json();if(i.push(...a),c===o)break;await Lt(50)}return EP(i)},hG={serviceType:"stock_assets",serviceId:"unsplash",serviceLabel:"Unsplash",serviceURL:"https://unsplash.com/",showServiceLink:!0,hotlinking:!0,authType:"api_key",developerURL:"https://unsplash.com/developers",apiKeyURL:"https://unsplash.com/oauth/applications",apiKeyPattern:/^[a-zA-Z\d-]{40,}$/,list:dG,search:fG},Xh={pexels:oG,pixabay:cG,unsplash:hG},$P=({fieldConfig:t}={})=>{const e=ET({libraryName:"stock_assets",fieldConfig:t}),n=Object.keys(Xh),{providers:r}=e;return{providers:Array.isArray(r)?r:n}};var pG=U("<!> <!>",1),gG=U("<!> <!>",1),mG=U("<a> </a>"),vG=U("<!> <!>",1),bG=U("<!> <!> <!>",1),_G=U('<div role="none" class="filter-tools svelte-5b1zbe"><!></div>'),yG=U('<div role="none"> </div> <!>',1),wG=U('<div role="none" class="wrapper svelte-5b1zbe"><div role="none" class="nav svelte-5b1zbe"><!> <!></div> <div role="none" class="content-pane svelte-5b1zbe"><!> <!> <!></div></div>'),xG=U("<!> <!>",1);const kG={hash:"svelte-5b1zbe",code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;}
|
|
610
|
+
${JSON.stringify(t)}`,T9="anthropic",C9="Anthropic Claude",A9="Anthropic API",P9="https://docs.anthropic.com/en/api/overview",L9="https://console.anthropic.com/settings/keys",N9=/sk-ant-api03-[a-zA-Z0-9-_]{80,}/,I9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),Wh=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(I9.includes(e))return e},O9=async({sourceLanguage:t,targetLanguage:e})=>!!Wh(t)&&!!Wh(e),R9=async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Wh(e)??"",n=Wh(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.anthropic.com/v1/messages",o=sP(e,n),s=aP(t),a={model:"claude-3-5-haiku-latest",max_tokens:4e3,temperature:.3,system:o,messages:[{role:"user",content:s}]};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","x-api-key":r,"anthropic-version":"2023-06-01","anthropic-dangerous-direct-browser-access":"true"},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`Anthropic API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.content||!Array.isArray(u.content)||!u.content[0])throw new Error("Invalid response format from Anthropic API.");const d=u.content[0].text.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from Anthropic API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in Anthropic API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with Anthropic API.")}},D9={serviceId:T9,serviceLabel:C9,apiLabel:A9,developerURL:P9,apiKeyURL:L9,apiKeyPattern:N9,markdownSupported:!0,availability:O9,translate:R9},M9="google",F9="Google Cloud Translation",z9="Cloud Translation API",j9="https://console.cloud.google.com/apis/library/translate.googleapis.com",B9="https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials",U9=/AIza[0-9A-Za-z-_]{35}/,Sk=["ab,ace,ach,af,ak,alz,am,ar,as,awa,ay,az","ba,ban,bbc,be,bem,bew,bg,bho,bik,bm,bn,br,bs,bts,btx,bua","ca,ceb,cgg,chm,ckb,cnh,co,crh,crs,cs,cv,cy","da,de,din,doi,dov,dv,dz","ee,el,en,eo,es,et,eu","fa,ff,fi,fil,fj,fr,fr-CA,fr-FR,fy","ga,gaa,gd,gl,gn,gom,gu","ha,haw,he,hi,hil,hmn,hr,hrx,ht,hu,hy","id,ig,ilo,is,it,iw","ja,jv,jw","ka,kk,km,kn,ko,kri,ktu,ku,ky","la,lb,lg,li,lij,lmo,ln,lo,lt,ltg,luo,lus,lv","mai,mak,mg,mi,min,mk,ml,mn,mni-Mtei,mr,ms,ms-Arab,mt,my","ne,new,nl,no,nr,nso,nus,ny","oc,om,or","pa,pa-Arab,pag,pam,pap,pl,ps,pt,pt-BR,pt-PT","qu","rn,ro,rom,ru,rw","sa,scn,sd,sg,shn,si,sk,sl,sm,sn,so,sq,sr,ss,st,su,sv,sw,szl","ta,te,tet,tg,th,ti,tk,tl,tn,tr,ts,tt","ug,uk,ur,uz","vi","xh","yi,yo,yua,yue","zh,zh-CN,zh-TW,zu"].join(",").split(","),Yh=t=>{const e=t.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(r,i,o)=>`${i.toLowerCase()}-${o.toUpperCase()}`);if(Sk.includes(e))return e;const[n]=e.split("-");if(Sk.includes(n))return n},q9=async({sourceLanguage:t,targetLanguage:e})=>!!Yh(t)&&!!Yh(e),V9=async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Yh(e)??"",n=Yh(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://translation.googleapis.com/language/translate/v2",o={q:t,source:e,target:n,format:"html"};try{const s=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json","X-goog-api-key":r},body:JSON.stringify(o)});if(!s.ok){const c=await s.json().catch(()=>({}));throw new Error(`Google Translate API error: ${s.status} ${s.statusText}${c.error?.message?` - ${c.error.message}`:""}`)}const{data:a}=await s.json();return a.translations.map(c=>c.translatedText)}catch(s){throw s instanceof Error?s:new Error("Failed to translate text with Google Translate API.")}},lP={serviceId:M9,serviceLabel:F9,apiLabel:z9,developerURL:j9,apiKeyURL:B9,apiKeyPattern:U9,markdownSupported:!1,availability:q9,translate:V9},H9="openai",K9="OpenAI GPT",G9="OpenAI API",W9="https://platform.openai.com/docs/overview",Y9="https://platform.openai.com/api-keys",J9=/sk-[a-zA-Z0-9-_]{40,}/,X9=["af,ar,be,bg,bn,bs,ca,cs,cy,da,de,el,en,eo,es,et,eu,fa,fi,fr,ga,gl,gu,he,hi,hr,hu,hy,id,is,it,ja","ka,kk,km,kn,ko,ky,la,lt,lv,mk,ml,mn,mr,ms,mt,my,ne,nl,no,pl,pt,ro,ru,si,sk,sl,sq,sr,sv,sw,ta,te","th,tl,tr,uk,ur,uz,vi,zh"].join(",").split(","),Jh=t=>{const[e]=t.toLowerCase().split(/[-_]/);if(X9.includes(e))return e},Z9=async({sourceLanguage:t,targetLanguage:e})=>!!Jh(t)&&!!Jh(e),Q9=async(t,{sourceLanguage:e,targetLanguage:n,apiKey:r})=>{if(e=Jh(e)??"",n=Jh(n)??"",!e)throw new Error("Source locale is not supported.");if(!n)throw new Error("Target locale is not supported.");const i="https://api.openai.com/v1/chat/completions",o=sP(e,n),s=aP(t),a={model:"gpt-4o-mini",messages:[{role:"system",content:o},{role:"user",content:s}],temperature:.3,max_tokens:4e3,response_format:{type:"json_object"}};try{const c=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(a)});if(!c.ok){const p=await c.json().catch(()=>({}));throw new Error(`OpenAI API error: ${c.status} ${c.statusText}${p.error?.message?` - ${p.error.message}`:""}`)}const u=await c.json();if(!u.choices||!u.choices[0]||!u.choices[0].message)throw new Error("Invalid response format from OpenAI API.");const d=u.choices[0].message.content.trim();let f;try{f=JSON.parse(d)}catch{throw new Error("Failed to parse JSON response from OpenAI API.")}if(!f||!Array.isArray(f.translations))throw new Error("Invalid JSON structure in OpenAI API response.");const{translations:h}=f;if(h.length!==t.length){const p=t.length,g=h.length;throw new Error(`Translation count mismatch: expected ${p}, got ${g}`)}return h}catch(c){throw c instanceof Error?c:new Error("Failed to translate text with OpenAI API.")}},eK={serviceId:H9,serviceLabel:K9,apiLabel:G9,developerURL:W9,apiKeyURL:Y9,apiKeyPattern:J9,markdownSupported:!0,availability:Z9,translate:Q9},bw={google:lP,anthropic:D9,openai:eK},cg=sn([ft],([t])=>{const{defaultTranslationService:e="google"}=t;return bw[e]??lP}),cP=new Gh({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});cP.keep(["span","div"]);const tK=({draft:t,options:e})=>{const{collectionName:n,fileName:r,currentValues:i,isIndexFile:o}=t,{sourceLanguage:s,targetLanguage:a,keyPath:c="",translate:u=!1}=e,d=i[s],f={collectionName:n,fileName:r,valueMap:d,isIndexFile:o};return Object.fromEntries(Object.entries(d).map(([h,p])=>{const g=i[a][h],m=hn({...f,keyPath:h}),v=m?.widget??"string";return c&&!h.startsWith(c)||typeof p!="string"||!p||!["markdown","text","string","list"].includes(v)||v==="list"&&(m.field??m.fields)||!u&&p===g||!c&&u&&g?null:[h,{value:p,isMarkdown:v==="markdown"}]}).filter(h=>!!h))},Ku=(t,e,{count:n,sourceLanguage:r})=>{sv.set({id:Date.now(),show:!0,status:t,message:e,count:n,sourceLanguage:r})},nK=async({currentValues:t,options:e,copingFieldMap:n})=>{const{serviceId:r,markdownSupported:i,translate:o}=ae(cg),{sourceLanguage:s,targetLanguage:a}=e,c=Object.keys(n).length,u=c===1?"one":"many",d=ae(ft).apiKeys?.[r]||await new Promise(f=>{xu.set({show:!0,multiple:c>1,resolve:f})});if(d){Ku("info","translation.started",{count:c,sourceLanguage:s});try{const f=await o(Object.entries(n).map(([,{value:h,isMarkdown:p}])=>p&&!i?B_(h):h),{apiKey:d,sourceLanguage:s,targetLanguage:a});Object.entries(n).forEach(([h,{isMarkdown:p}],g)=>{const m=f[g];t[a][h]=p&&!i?cP.turndown(m):m}),Ku("success",`translation.complete.${u}`,{count:c,sourceLanguage:s})}catch(f){Ku("error","translation.error",{count:c,sourceLanguage:s}),console.error(f)}}},rK=({currentValues:t,options:e,copingFieldMap:n})=>{const{sourceLanguage:r,targetLanguage:i}=e,o=Object.keys(n).length,s=o===1?"one":"many";Object.entries(n).forEach(([a,{value:c}])=>{t[i][a]=c}),Ku("success",`copy.complete.${s}`,{count:o,sourceLanguage:r})},uP=async t=>{const{sourceLanguage:e,translate:n=!1}=t,r=ae(We),{currentValues:i}=r,o=tK({draft:r,options:t}),s=Object.keys(o).length;if(!s){Ku("info",`${n?"translation":"copy"}.none`,{count:s,sourceLanguage:e});return}n?await nK({currentValues:i,options:t,copingFieldMap:o}):rK({currentValues:i,options:t,copingFieldMap:o}),We.update(a=>({...a,currentValues:i}))};function _w(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(cg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"keyPath",3,""),c=R(e,"translate",3,!1);const u=async({sourceLanguage:h,targetLanguage:p})=>!n()?.currentLocales[p]||!n().currentLocales[h]||!!a()&&!Dn(n().currentValues[h])[a()]||!c()&&!!a()&&Dn(n().currentValues[h])[a()]===Dn(n().currentValues[p])[a()]||c()&&!await r()?.availability({sourceLanguage:h,targetLanguage:p});var d=X(),f=M(d);ot(f,17,()=>e.otherLocales,vr,(h,p)=>{const g=_(()=>({sourceLanguage:l(p),targetLanguage:e.locale}));var m=X(),v=M(m);nn(v,()=>u(l(g)),null,(b,y)=>{{let w=_(()=>i()(c()?"translate_from_x":"copy_from_x",{values:{locale:Fi(l(p))}}));gt(b,{get label(){return l(w)},get disabled(){return l(y)},onclick:()=>{uP({...l(g),keyPath:a(),translate:c()})}})}}),$(h,m)}),$(t,d),ce(),s()}var iK=U("<section><!></section>");const oK={hash:"svelte-wzztxu",code:"section.svelte-wzztxu {padding:var(--field-editor-padding);}section.svelte-wzztxu:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}section.svelte-wzztxu > * {margin-inline:auto !important;max-width:768px;}section.svelte-wzztxu > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);}section.svelte-wzztxu > header h4 {margin-inline:8px 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}section.svelte-wzztxu > header .required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}"};function dP(t,e){ke(t,oK);let n=R(e,"children",3,void 0),r=rt(e,["$$slots","$$events","$$legacy","children"]);var i=iK();mt(i,()=>({role:"group",class:"field",...r}),void 0,void 0,"svelte-wzztxu");var o=z(i);Me(o,()=>n()??Be),$(t,i)}function fP(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",o),r=()=>V(cg,"$translator",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"size",3,"medium"),c=R(e,"keyPath",3,"");const u=_(()=>!n()?.currentLocales[e.locale]),d=async({sourceLanguage:m,targetLanguage:v})=>l(u)||!n()?.currentLocales[m]||!await r()?.availability({sourceLanguage:m,targetLanguage:v});var f=X(),h=M(f);{var p=m=>{const v=_(()=>{const[k]=e.otherLocales;return{otherLocale:k}}),b=_(()=>i()("translate_from_x",{values:{locale:Fi(l(v).otherLocale)}})),y=_(()=>({sourceLanguage:l(v).otherLocale,targetLanguage:e.locale}));var w=X(),E=M(w);nn(E,()=>d(l(y)),null,(k,S)=>{Ze(k,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(b)},get title(){return l(b)},get disabled(){return l(S)},onclick:()=>{uP({...l(y),keyPath:c(),translate:!0})},startIcon:x=>{Je(x,{name:"translate"})},$$slots:{startIcon:!0}})}),$(m,w)},g=m=>{{const v=w=>{Je(w,{name:"translate"})},b=w=>{{let E=_(()=>i()("translation_options"));ar(w,{get"aria-label"(){return l(E)},children:(k,S)=>{_w(k,{get locale(){return e.locale},get otherLocales(){return e.otherLocales},get keyPath(){return c()},translate:!0})},$$slots:{default:!0}})}};let y=_(()=>i()("translate"));Mr(m,{variant:"ghost",get size(){return a()},iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(y)},get disabled(){return l(u)},endIcon:v,popup:b,$$slots:{endIcon:!0,popup:!0}})}};q(h,m=>{e.otherLocales.length===1?m(p):m(g,!1)})}$(t,f),ce(),s()}var sK=U('<div role="alert" class="validation svelte-6wra4i" aria-live="polite"><div role="none" class="svelte-6wra4i"><!> <!></div></div>');const aK={hash:"svelte-6wra4i",code:".validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);}.validation.svelte-6wra4i div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0;}.validation.svelte-6wra4i div:where(.svelte-6wra4i) .icon {flex:none;font-size:16px; /* !hardcoded */}"};function yw(t,e){ke(t,aK);var n=sK(),r=z(n),i=z(r);Je(i,{name:"error"});var o=j(i,2);Me(o,()=>e.children),Z(()=>Se(n,"id",e.id)),$(t,n)}function lK(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);ly(t,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get checked(){return n()},set checked(s){n(s)}}),ce()}var cK=U("<p> </p>");function uK(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",3,!1);var s=X(),a=M(s);{var c=u=>{var d=cK(),f=z(d);Z(h=>te(f,h),[()=>n()(`boolean.${o()}`)]),$(u,d)};q(a,u=>{typeof o()=="boolean"&&u(c)})}$(t,s),ce(),i()}function dK(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=tr("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie("");const h=_(()=>tt(e.fieldConfig.default_language,"")),p=_(()=>tt(e.fieldConfig.allow_language_selection,!0)),g=_(()=>tt(e.fieldConfig.output_code_only,!1)),m=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),v=_(()=>Dn(n()?.[o][e.locale])??{}),b=_(()=>`${e.keyPath}.${l(m).code}`),y=_(()=>`${e.keyPath}.${l(m).lang}`),w=()=>{if(l(g))typeof s()!="string"?G(d,""):l(d)!==s()&&G(d,s(),!0);else{const C=l(v)[l(b)],x=l(v)[l(y)]||l(h);typeof C!="string"?G(d,""):l(d)!==C&&G(d,C,!0),typeof x!="string"?G(f,""):l(f)!==x&&G(f,x,!0)}},E=()=>{l(g)?s()!==l(d)&&s(l(d)):n()&&(s({}),l(v)[l(b)]!==l(d)&&yt(We,Ee(n)[o][e.locale][l(b)]=l(d),Ee(n)),l(v)[l(y)]!==l(f)&&yt(We,Ee(n)[o][e.locale][l(y)]=l(f),Ee(n)))};De(()=>{l(v),Ee(()=>{w()})}),De(()=>{l(d),l(f),Ee(()=>{E()})});var k=X(),S=M(k);nn(S,Lt,null,C=>{var x=X(),T=M(x);er(T,()=>JSON.stringify(e.fieldConfig),A=>{i6(A,{get showLanguageSwitcher(){return l(p)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get code(){return l(d)},set code(P){G(d,P,!0)},get lang(){return l(f)},set lang(P){G(f,P,!0)}})}),$(C,x)}),$(t,k),ce(),i()}var fK=U("<pre> </pre>");function hK(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>tt(e.fieldConfig.default_language,"")),s=_(()=>tt(e.fieldConfig.output_code_only,!1)),a=_(()=>tt(e.fieldConfig.keys,()=>({code:"code",lang:"lang"}),!0)),c=_(()=>Dn(n()?.currentValues[e.locale])??{}),u=_(()=>`${e.keyPath}.${l(a).code}`),d=_(()=>`${e.keyPath}.${l(a).lang}`),f=_(()=>l(s)?e.currentValue:l(c)[l(u)]),h=_(()=>l(s)?l(o):l(c)[l(d)]);var p=X(),g=M(p);{var m=v=>{var b=fK(),y=z(b);Z(()=>{rn(b,1,_E(l(h)?`language-${l(h)}`:void 0)),te(y,l(f))}),$(v,b)};q(g,v=>{l(f)&&v(m)})}$(t,p),ce(),i()}var pK=U(" <!>",1),gK=U('<span role="none" class="value svelte-1usff15"><!> <!></span>'),mK=U('<div role="none" class="svelte-1usff15"><input type="color" class="svelte-1usff15"/> <!> <!></div>');const vK={hash:"svelte-1usff15",code:"div.svelte-1usff15 {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) {display:flex;align-items:center;gap:8px;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.text-input {width:80px;min-width:0;}div.svelte-1usff15 .value:where(.svelte-1usff15) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-1usff15 {font-family:var(--sui-textbox-font-family);}"};function bK(t,e){const n=zn();le(e,!0),ke(t,vK);const r=()=>V(ue,"$_",i),[i,o]=me();let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1),d=ie(""),f=ie(255);const h=_(()=>tt(e.fieldConfig.allowInput,!1)),p=_(()=>tt(e.fieldConfig.enableAlpha,!1)),g=/^#[0-9a-f]{6}$/,m=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/,v=()=>{if(typeof s()!="string")return;const{rgb:x,a:T="ff"}=s().match(m)?.groups??{};if(x&&l(d)!==x&&G(d,x,!0),x&&l(p)){const A=Number.parseInt(`0x${T}`,16);l(f)!==A&&G(f,A,!0)}},b=()=>{let x=g.test(l(d))?l(d):"";x&&l(p)&&(x+=l(f).toString(16).padStart(2,"0")),s()!==x&&s(x)};De(()=>{s(),Ee(()=>{v()})}),De(()=>{l(d),l(f),Ee(()=>{b()})});var y=mK(),w=z(y),E=j(w,2);{var k=x=>{var T=gK(),A=z(T);{var P=N=>{Nn(N,{get id(){return`${n}-input`},get invalid(){return u()},get readonly(){return c()},get required(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(d)},set value(D){G(d,D,!0)}})};q(A,N=>{l(h)&&N(P)})}var L=j(A,2);{var I=N=>{var D=pK(),B=M(D),H=j(B);{let W=_(()=>!l(d)),Y=_(()=>r()("opacity"));XU(H,{min:0,max:255,get disabled(){return l(W)},get"aria-label"(){return l(Y)},get value(){return l(f)},set value(O){G(f,O,!0)}})}Z(W=>te(B,`${W??""} `),[()=>r()("opacity")]),$(N,D)};q(L,N=>{l(p)&&N(I)})}$(x,T)};q(E,x=>{(l(h)||l(p))&&x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>r()("clear")),A=_(()=>!l(d)),P=_(()=>`${n}-picker ${l(h)?`${n}-input`:""}`);Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},get"aria-controls"(){return l(P)},onclick:()=>{G(d,""),G(f,255)}})}};q(S,x=>{!c()&&!a()&&x(C)})}Z(()=>{Se(w,"id",`${n}-picker`),w.readOnly=c(),Se(w,"aria-invalid",u()),Se(w,"aria-readonly",c()),Se(w,"aria-required",a()),Se(w,"aria-labelledby",`${e.fieldId??""}-label`),Se(w,"aria-errormessage",`${e.fieldId??""}-error`)}),up(w,()=>l(d),x=>G(d,x)),$(t,y),ce(),o()}var _K=U('<p><span role="none" class="preview svelte-1pgn31g"><span role="none" class="color svelte-1pgn31g"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>');const yK={hash:"svelte-1pgn31g",code:".preview.svelte-1pgn31g {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-1pgn31g .color:where(.svelte-1pgn31g) {display:block;width:24px;height:24px;border-radius:24px;}"};function wK(t,e){le(e,!0),ke(t,yK);const n=_(()=>tt(e.fieldConfig.enableAlpha,!1)),r=u=>Number.parseInt(`0x${u}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/,o=_(()=>{const{r:u,g:d,b:f,a:h}=e.currentValue?.match(i)?.groups??{};return u?`rgb(${r(u)} ${r(d)} ${r(f)}${l(n)&&h?` / ${Math.round(r(h)/255*100)}%`:""})`:""});var s=X(),a=M(s);{var c=u=>{var d=_K(),f=z(d),h=z(f);let p;var g=j(h,2),m=z(g),v=j(g,2),b=z(v);Z(y=>{p=Vi(h,"",p,y),te(m,e.currentValue),te(b,l(o))},[()=>({"background-color":e.currentValue})]),$(u,d)};q(a,u=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&u(c)})}$(t,s),ce()}function xK(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=tr("field-editor")??{};let s=R(e,"currentValue",15),a=R(e,"required",3,!0),c=R(e,"readonly",3,!1),u=R(e,"invalid",3,!1);const d=_(()=>tt(e.fieldConfig.value,"")),f=_(()=>n()?.isIndexFile??!1),h=_(()=>n()?.collectionName??""),p=_(()=>n()?.fileName),g=_(()=>Dn(n()?.[o][e.locale])??{}),m=_(()=>dc(e.locale)),v=()=>{const[y]=e.keyPath.split(".").splice(-2,1);return y?.match(/^\d+$/)?Number(y):void 0},b=()=>{if(!Object.keys(l(g)).includes(e.keyPath))return;const y=l(d)==="{{index}}"?v()??"":l(d).replaceAll(/{{(.+?)}}/g,(w,E)=>{if(E==="index")return String(v()??"");if(!E.startsWith("fields."))return"";const k=Uc({collectionName:l(h),fileName:l(p),valueMap:l(g),keyPath:E.replace(/^fields\./,""),locale:e.locale,isIndexFile:l(f)});return Array.isArray(k)?l(m).format(k):String(k)});s()!==y&&s(y)};De(()=>{l(g),Ee(()=>{b()})});{let y=_(()=>String(s()));Nn(t,{get value(){return l(y)},flex:!0,get readonly(){return c()},get required(){return a()},get invalid(){return u()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`}})}ce(),i()}var kK=U('<p dir="auto"> </p>');function SK(t,e){le(e,!0);var n=kK(),r=z(n);Z(i=>{Se(n,"lang",i),te(r,e.currentValue),n.dir=n.dir},[()=>Tr(e.locale)]),$(t,n),ce()}var EK=U('<span role="none" class="utc svelte-boo8ot">UTC</span>'),$K=U('<div role="none" class="svelte-boo8ot"><input/> <!> <!> <!></div>');const TK={hash:"svelte-boo8ot",code:"div.svelte-boo8ot {display:flex;align-items:center;}.utc.svelte-boo8ot {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function CK(t,e){le(e,!0),ke(t,TK);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie("");const d=_(()=>Js(e.fieldConfig)),f=_(()=>l(d).dateOnly),h=_(()=>l(d).timeOnly),p=_(()=>l(d).utc),g=()=>{const x=gD(o(),e.fieldConfig);x!==void 0&&x!==l(u)&&G(u,x,!0)},m=()=>{const x=z$(l(u),o(),e.fieldConfig);x!==void 0&&x!==o()&&Number(fc(x,e.fieldConfig))!==Number(fc(o(),e.fieldConfig))&&o(x)};De(()=>{o(),Ee(()=>{g()})}),De(()=>{l(u),Ee(()=>{m()})});var v=$K(),b=z(v),y=j(b,2);{var w=x=>{var T=EK();$(x,T)};q(y,x=>{l(p)&&x(w)})}var E=j(y,2);{var k=x=>{{let T=_(()=>n()(l(f)?"today":"now"));Ze(x,{variant:"tertiary",get label(){return l(T)},onclick:()=>{const A=F$(e.fieldConfig);G(u,l(p)?A.replace(/:00\.000Z$/,""):A,!0)}})}};q(E,x=>{a()||x(k)})}var S=j(E,2);{var C=x=>{{let T=_(()=>n()("clear")),A=_(()=>!o());Ze(x,{variant:"tertiary",get label(){return l(T)},get disabled(){return l(A)},onclick:()=>{o("")}})}};q(S,x=>{!a()&&!s()&&x(C)})}Z(()=>{Se(b,"type",l(f)?"date":l(h)?"time":"datetime-local"),b.readOnly=a(),Se(b,"aria-readonly",a()),Se(b,"aria-required",s()),Se(b,"aria-invalid",c()),Se(b,"aria-labelledby",`${e.fieldId??""}-label`),Se(b,"aria-errormessage",`${e.fieldId??""}-error`)}),up(b,()=>l(u),x=>G(u,x)),$(t,v),ce(),i()}var AK=U('<p dir="auto"> <!></p>');function PK(t,e){le(e,!0);const n=_(()=>j$({locale:e.locale,fieldConfig:e.fieldConfig,currentValue:e.currentValue}));var r=X(),i=M(r);{var o=s=>{var a=AK(),c=z(a),u=j(c);{var d=f=>{var h=Oe("UTC");$(f,h)};q(u,f=>{e.fieldConfig.picker_utc&&f(d)})}Z(f=>{Se(a,"lang",f),te(c,`${l(n)??""} `),a.dir=a.dir},[()=>Tr(e.locale)]),$(s,a)};q(i,s=>{l(n)&&s(o)})}$(t,r),ce()}var LK=U('<span role="none" class="icon check-background"><!></span>'),NK=U('<div role="none"><!></div>');const IK={hash:"svelte-1fitgoo",code:".wrapper.svelte-1fitgoo {display:contents;}.wrapper.svelte-1fitgoo [role=option] {position:relative;}.wrapper.svelte-1fitgoo [role=option] > .icon.check {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);}.wrapper.svelte-1fitgoo [role=option][aria-selected=false] .check-background .icon {display:none;}.wrapper.svelte-1fitgoo [role=option][aria-selected=true] .check-background {border-color:var(--sui-primary-accent-color);color:var(--sui-primary-accent-color-inverted);background-color:var(--sui-primary-accent-color);}.wrapper.svelte-1fitgoo [role=option] .check-background {display:flex;justify-content:center;align-items:center;border-width:1px;border-radius:var(--sui-checkbox-border-radius);width:20px;height:20px;pointer-events:none;}.wrapper.svelte-1fitgoo [role=option] .check-background .icon {color:inherit !important;font-size:20px;}.wrapper.grid.svelte-1fitgoo .check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.wrapper.list.svelte-1fitgoo .check-background {margin-inline-start:16px;}"};function hP(t,e){ke(t,IK);let n=R(e,"viewType",3,"grid");var r=NK(),i=z(r);Sr(i,{label:"",get value(){return e.value},get selected(){return e.selected},get onChange(){return e.onChange},startIcon:s=>{var a=X(),c=M(a);{var u=d=>{var f=LK(),h=z(f);Je(h,{name:"check",class:"icon check"}),$(d,f)};q(c,d=>{e.multiple&&d(u)})}$(s,a)},children:(s,a)=>{var c=X(),u=M(c);Me(u,()=>e.children??Be),$(s,c)},$$slots:{startIcon:!0,default:!0}}),Z(()=>rn(r,1,`wrapper ${n()??""}`,"svelte-1fitgoo")),$(t,r)}var OK=U('<div role="none"><!></div>');const RK={hash:"svelte-umbokg",code:".wrapper.svelte-umbokg {display:contents;}.wrapper.svelte-umbokg .listbox {gap:4px;overflow-x:hidden;overflow-y:auto;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);}.wrapper.svelte-umbokg .listbox .option button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;}.wrapper.svelte-umbokg .listbox .option button:focus-visible {outline-color:transparent;}.wrapper.svelte-umbokg .listbox .option button .preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1/1;object-fit:contain;}.wrapper.svelte-umbokg .listbox .name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}.wrapper.svelte-umbokg .listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;}.wrapper.svelte-umbokg .listbox.grid .option button {flex-direction:column;justify-content:flex-start;}.wrapper.svelte-umbokg .listbox.grid .option button .preview {width:100%;height:auto;}.wrapper.svelte-umbokg .listbox.grid .option button .name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);}.wrapper.svelte-umbokg .listbox.grid button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}.wrapper.svelte-umbokg :not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;left:-99999px;}.wrapper.svelte-umbokg .listbox.list .option button {gap:16px;}.wrapper.svelte-umbokg .listbox.list .option button .preview {width:64px;}.wrapper.svelte-umbokg .listbox.list .option button .name {flex:auto;padding-inline:0 8px;}.wrapper.svelte-umbokg .listbox.list .option button[aria-selected=true] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}"};function pP(t,e){le(e,!0),ke(t,RK);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"viewType",3,"grid"),s=R(e,"gridId",3,void 0),a=R(e,"multiple",3,!1),c=R(e,"showTitle",3,!1),u=R(e,"onChange",3,void 0),d=R(e,"children",3,void 0);var f=OK();let h;var p=z(f);{let g=_(()=>n()("assets_dialog.available_images"));Gc(p,{get id(){return s()},get class(){return o()},get multiple(){return a()},get"aria-label"(){return l(g)},onChange:m=>{u()?.(m.detail)},children:(m,v)=>{var b=X(),y=M(b);Me(y,()=>d()??Be),$(m,b)},$$slots:{default:!0}})}Z(g=>h=rn(f,1,"wrapper svelte-umbokg",null,h,g),[()=>({"show-title":c()})]),$(t,f),ce(),i()}var DK=U('<span role="alert"> </span>'),MK=U('<span role="alert"> </span>'),FK=U('<span role="alert"> </span>'),zK=U('<span role="none" class="name"> </span>'),jK=U("<!> <!>",1),BK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div>'),UK=U('<div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div> <div role="none" class="input-outer svelte-mqll9n"><!></div>',1),qK=U('<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>',1),VK=U('<span role="alert"> </span>');const HK={hash:"svelte-mqll9n",code:"p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}"};function KK(t,e){le(e,!0),ke(t,HK);const n=()=>V(oc,"$selectAssetsView",s),r=()=>V(ft,"$prefs",s),i=()=>V(ue,"$_",s),o=()=>V(cn,"$isSmallScreen",s),[s,a]=me();let c=R(e,"kind",3,"image"),u=R(e,"multiple",3,!1),d=R(e,"searchTerms",3,""),f=R(e,"gridId",3,void 0),h=R(e,"selectedResources",31,()=>St([]));const p=_(()=>tt(e.serviceProps.serviceType,"stock_assets")),g=_(()=>tt(e.serviceProps.serviceId,"")),m=_(()=>tt(e.serviceProps.serviceLabel,"")),v=_(()=>tt(e.serviceProps.hotlinking,!1)),b=_(()=>tt(e.serviceProps.authType,"api_key")),y=_(()=>tt(e.serviceProps.developerURL,"")),w=_(()=>tt(e.serviceProps.apiKeyURL,"")),E=_(()=>e.serviceProps.apiKeyPattern),k=_(()=>e.serviceProps.init),S=_(()=>e.serviceProps.signIn),C=_(()=>e.serviceProps.list),x=_(()=>e.serviceProps.search),T=_(()=>n()?.type),A=St({userName:"",password:""});let P=ie(!0),L=ie(!1),I=ie(""),N=ie(""),D=ie(""),B=ie("initial"),H=ie(null),W=ie(void 0),Y=0;const O=async(ne="")=>{G(H,null),ne=ne.trim();const se={kind:c(),apiKey:l(I),userName:l(N),password:l(D)};try{G(H,await(ne?l(x)(ne,se):l(C)(se)),!0)}catch(fe){G(W,"search_fetch_failed"),console.error(fe)}},F=async ne=>{const{downloadURL:se,fileName:fe,credit:be}=ne;if(l(v))return{url:se,credit:be};try{const pe=await fetch(se),{ok:he,status:ge}=pe;if(!he)throw new Error(`The response returned with HTTP status ${ge}.`);const ve=await pe.blob(),_e=new File([ve],fe,{type:ve.type});return{url:se,credit:be,file:_e}}catch(pe){G(W,"image_fetch_failed"),console.error(pe)}},K=ne=>h().some(se=>se.url===ne.downloadURL),J=async(ne,se)=>{const fe=h().filter(be=>be.url!==ne.downloadURL);if(se){const be=await F(ne);be&&h([...fe,be])}else h(fe)};jt(()=>{(async()=>(typeof l(k)=="function"&&(G(P,!1),G(P,await l(k)(),!0)),l(P)&&(G(I,r().apiKeys?.[l(g)]??"",!0),(ne=>{var se=So(ne,2);G(N,se[0],!0),G(D,se[1],!0)})((r().logins?.[l(g)]??"").split(" ")),G(L,!!l(I)||!!l(D),!0),G(H,null),l(L)&&O())))()}),De(()=>{d(),window.clearTimeout(Y),Y=window.setTimeout(()=>{l(L)&&O(d())},1e3)});var Q=X(),oe=M(Q);{var re=ne=>{var se=X(),fe=M(se);{var be=he=>{pr(he,{children:(ge,ve)=>{var _e=DK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()(`assets_dialog.error.${l(W)}`)]),$(ge,_e)},$$slots:{default:!0}})},pe=he=>{var ge=X(),ve=M(ge);{var _e=Ce=>{pr(Ce,{children:(Re,He)=>{var Ye=MK(),Ue=z(Ye);Z(Te=>te(Ue,Te),[()=>i()("searching")]),$(Re,Ye)},$$slots:{default:!0}})},$e=Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{pr(Te,{children:(Fe,Ie)=>{var Ae=FK(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>i()("no_files_found")]),$(Fe,Ae)},$$slots:{default:!0}})},Ue=Te=>{pP(Te,{get viewType(){return l(T)},get gridId(){return f()},get multiple(){return u()},children:(Fe,Ie)=>{hl(Fe,{get items(){return l(H)},itemKey:"id",renderItem:(we,Pe=Be)=>{var ye=X(),it=M(ye);nn(it,Lt,null,Qe=>{const Le=_(()=>{const{id:ze,previewURL:Xe,description:st,kind:lt}=Pe();return{id:ze,previewURL:Xe,description:st,_kind:lt}});{let ze=_(()=>K(Pe()));hP(Qe,{get value(){return l(Le).id},get viewType(){return l(T)},get multiple(){return u()},get selected(){return l(ze)},onChange:({detail:{selected:Xe}})=>{J(Pe(),Xe)},children:(Xe,st)=>{var lt=jK(),xt=M(lt);Ro(xt,{get kind(){return l(Le)._kind},get src(){return l(Le).previewURL},variant:"tile",crossorigin:"anonymous"});var Gt=j(xt,2);{var bn=Xt=>{var Zt=zK(),pt=z(Zt);Z(()=>te(pt,l(Le).description)),$(Xt,Zt)};q(Gt,Xt=>{(!o()||l(T)==="list")&&Xt(bn)})}$(Xe,lt)},$$slots:{default:!0}})}}),$(we,ye)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})};q(He,Te=>{l(H).length?Te(Ue,!1):Te(Ye)},!0)}$(Ce,Re)};q(ve,Ce=>{l(H)?Ce($e,!1):Ce(_e)},!0)}$(he,ge)};q(fe,he=>{l(W)?he(be):he(pe,!1)})}$(ne,se)},ee=ne=>{var se=X(),fe=M(se);{var be=he=>{pr(he,{children:(ge,ve)=>{var _e=qK(),$e=M(_e),Ce=z($e);{var Re=Ae=>{var we=X(),Pe=M(we);gr(Pe,()=>Dr.sanitize(i()("prefs.media.stock_photos.description",{values:{service:l(m),homeHref:`href="${l(y)}"`,apiKeyHref:`href="${l(w)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(Ce,Ae=>{l(p)==="stock_assets"&&Ae(Re)})}var He=j(Ce,2);{var Ye=Ae=>{var we=X(),Pe=M(we);gr(Pe,()=>Dr.sanitize(i()(`cloud_storage.auth.${l(B)}`,{values:{service:l(m)}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(Ae,we)};q(He,Ae=>{l(p)==="cloud_storage"&&Ae(Ye)})}var Ue=j($e,2);{var Te=Ae=>{var we=BK(),Pe=z(we);{let ye=_(()=>i()("prefs.media.stock_photos.field_label",{values:{service:l(m)}}));Nn(Pe,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(ye)},oninput:it=>{const Qe=it.target.value.trim();l(E)?.test(Qe)&&(G(I,Qe,!0),G(L,!0),yt(ft,Ee(r).apiKeys??={},Ee(r)),yt(ft,Ee(r).apiKeys[l(g)]=l(I),Ee(r)),O())}})}$(Ae,we)};q(Ue,Ae=>{l(b)==="api_key"&&Ae(Te)})}var Fe=j(Ue,2);{var Ie=Ae=>{var we=UK(),Pe=M(we),ye=z(Pe);{let Xe=_(()=>i()("user_name")),st=_(()=>l(B)==="requested");Nn(ye,{flex:!0,spellcheck:"false",get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.userName},set value(lt){A.userName=lt}})}var it=j(Pe,2),Qe=z(it);{let Xe=_(()=>i()("password")),st=_(()=>l(B)==="requested");P6(Qe,{get"aria-label"(){return l(Xe)},get disabled(){return l(st)},get value(){return A.password},set value(lt){A.password=lt}})}var Le=j(it,2),ze=z(Le);{let Xe=_(()=>i()("sign_in")),st=_(()=>!A.userName||!A.password||l(B)==="requested");Ze(ze,{variant:"secondary",get label(){return l(Xe)},get disabled(){return l(st)},onclick:async()=>{G(B,"requested"),A.userName=A.userName.trim(),A.password=A.password.trim(),await l(S)?.(A.userName,A.password)?(G(B,"success"),G(N,A.userName,!0),G(D,A.password,!0),G(L,!0),yt(ft,Ee(r).logins??={},Ee(r)),yt(ft,Ee(r).logins[l(g)]=[l(N),l(D)].join(" "),Ee(r)),O()):G(B,"error")}})}$(Ae,we)};q(Fe,Ae=>{l(b)==="password"&&Ae(Ie)})}$(ge,_e)},$$slots:{default:!0}})},pe=he=>{pr(he,{children:(ge,ve)=>{var _e=VK(),$e=z(_e);Z(Ce=>te($e,Ce),[()=>i()("cloud_storage.invalid")]),$(ge,_e)},$$slots:{default:!0}})};q(fe,he=>{l(P)?he(be):he(pe,!1)},!0)}$(ne,se)};q(oe,ne=>{l(L)?ne(re):ne(ee,!1)})}$(t,Q),ce(),a()}const rf=t=>(t=t.trim(),t?t.normalize("NFD").replace(/\p{Diacritic}/gu,"").toLocaleLowerCase():""),Dl=({value:t,terms:e})=>rf(t).includes(e),Ek=(t,e=Be)=>{var n=X(),r=M(n);gr(r,()=>Dr.sanitize(e().replace(/([-_.])/g,"$1<wbr>"),{ALLOWED_TAGS:["wbr"]})),$(t,n)};var GK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),WK=U('<strong class="svelte-1ong0f1"><!></strong>'),YK=U("<!>/",1),JK=U('<div role="none" class="unsaved svelte-1ong0f1"> </div>'),XK=U('<span role="none" class="name svelte-1ong0f1"><!> <!></span>'),ZK=U("<!> <!> <!>",1),QK=U('<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>'),eG=U('<span role="none"> </span>');const tG={hash:"svelte-1ong0f1",code:".grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;}.grid-wrapper.svelte-1ong0f1 [role=listbox] {background-color:transparent;}.grid-wrapper.svelte-1ong0f1 [role=listbox].grid .unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}.grid-wrapper.svelte-1ong0f1 [role=listbox].list .name {display:flex;gap:8px;align-items:center;justify-content:space-between;}.unsaved.svelte-1ong0f1 {display:flex;justify-content:center;align-items:center;border-color:var(--sui-info-border-color);border-radius:4px;padding:2px 6px;color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);font-size:var(--sui-font-size-small);}.name.svelte-1ong0f1 {color:var(--sui-tertiary-foreground-color);}.name.svelte-1ong0f1 strong:where(.svelte-1ong0f1) {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}"};function gP(t,e){le(e,!0),ke(t,tG);const n=()=>V(ue,"$_",i),r=()=>V(cn,"$isSmallScreen",i),[i,o]=me();let s=R(e,"multiple",3,!1),a=R(e,"assets",19,()=>[]),c=R(e,"viewType",3,"grid"),u=R(e,"searchTerms",3,""),d=R(e,"basePath",3,void 0),f=R(e,"gridId",3,void 0),h=R(e,"checkerboard",3,!1),p=R(e,"selectedResources",31,()=>St([])),g=R(e,"onSelect",3,void 0);const m=_(()=>u()?a().filter(({name:S})=>rf(S).includes(u())):a()),v=S=>p().some(C=>ln(C.asset,S)),b=(S,C)=>{const x=p().filter(T=>!ln(T.asset,S));C?(p([...x,{asset:S}]),g()?.({asset:S})):p(x)};var y=X(),w=M(y);{var E=S=>{var C=QK(),x=z(C);pP(x,{get multiple(){return s()},get gridId(){return f()},get viewType(){return c()},showTitle:!0,children:(T,A)=>{hl(T,{get items(){return l(m)},itemKey:"path",renderItem:(L,I=Be)=>{var N=X(),D=M(N);nn(D,Lt,null,B=>{const H=_(()=>{const{kind:O,name:F,path:K,unsaved:J,folder:Q}=I();return{kind:O,name:F,path:K,unsaved:J,folder:Q}}),W=_(()=>d()&&!l(H).folder.entryRelative?tn(l(H).path.replace(d(),"")):l(H).name),Y=_(()=>l(W).split("/"));{let O=_(()=>v(I()));hP(B,{get value(){return l(H).path},get viewType(){return c()},get multiple(){return s()},get selected(){return l(O)},onChange:({detail:{selected:F}})=>{b(I(),F)},children:(F,K)=>{var J=ZK(),Q=M(J);{var oe=se=>{var fe=GK(),be=z(fe);Z(pe=>te(be,pe),[()=>n()("assets_dialog.unsaved")]),$(se,fe)};q(Q,se=>{c()==="grid"&&l(H).unsaved&&se(oe)})}var re=j(Q,2);Ro(re,{get kind(){return l(H).kind},get asset(){return I()},variant:"tile",get checkerboard(){return h()}});var ee=j(re,2);{var ne=se=>{var fe=XK(),be=z(fe);Cr(be,{lines:2,children:(ge,ve)=>{var _e=X(),$e=M(_e);ot($e,17,()=>l(Y),vr,(Ce,Re,He)=>{var Ye=X(),Ue=M(Ye);{var Te=Ie=>{var Ae=WK(),we=z(Ae);Ek(we,()=>l(Re)),$(Ie,Ae)},Fe=Ie=>{var Ae=YK(),we=M(Ae);Ek(we,()=>l(Re)),$(Ie,Ae)};q(Ue,Ie=>{He===l(Y).length-1?Ie(Te):Ie(Fe,!1)})}$(Ce,Ye)}),$(ge,_e)},$$slots:{default:!0}});var pe=j(be,2);{var he=ge=>{var ve=JK(),_e=z(ve);Z($e=>te(_e,$e),[()=>n()("assets_dialog.unsaved")]),$(ge,ve)};q(pe,ge=>{c()==="list"&&l(H).unsaved&&ge(he)})}$(se,fe)};q(ee,se=>{(!r()||c()==="list")&&se(ne)})}$(F,J)},$$slots:{default:!0}})}}),$(L,N)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),$(S,C)},k=S=>{pr(S,{children:(C,x)=>{var T=eG(),A=z(T);Z(P=>te(A,P),[()=>n()("no_files_found")]),$(C,T)},$$slots:{default:!0}})};q(w,S=>{l(m).length?S(E):S(k,!1)})}$(t,y),ce(),o()}function nG(t,e){le(e,!0);const n=()=>V(oc,"$selectAssetsView",r),[r,i]=me();let o=R(e,"multiple",3,!1),s=R(e,"accept",3,void 0),a=R(e,"assets",19,()=>[]),c=R(e,"searchTerms",3,""),u=R(e,"basePath",3,void 0),d=R(e,"selectedResources",31,()=>St([])),f=ie(void 0);De(()=>{d().length||Ee(()=>{l(f)?.reset()})}),bt(ef(t,{get multiple(){return o()},get accept(){return s()},get onDrop(){return e.onDrop},children:(h,p)=>{{let g=_(()=>n()?.type);gP(h,{get multiple(){return o()},get assets(){return a()},get viewType(){return l(g)},get searchTerms(){return c()},get basePath(){return u()},gridId:"select-assets-grid",checkerboard:!0,get selectedResources(){return d()},set selectedResources(m){d(m)}})}},$$slots:{default:!0}}),h=>G(f,h,!0),()=>l(f)),ce(),i()}const Of={},$k=["en-US,pt-BR,es-ES,ca-ES,de-DE,it-IT,fr-FR,sv-SE,id-ID,pl-PL,ja-JP,zh-TW,zh-CN,ko-KR,th-TH,nl-NL","hu-HU,vi-VN,cs-CZ,da-DK,fi-FI,uk-UA,el-GR,ro-RO,nb-NO,sk-SK,tr-TR,ru-RU"].join(",").split(","),mP="https://api.pexels.com/v1",vP={per_page:80},rG=()=>{const t=ae(Ut).toLowerCase(),[e]=t.split("-");return $k.find(n=>n.toLowerCase()===t)??$k.find(n=>n.split("-")[0]===e)??"en-US"},bP=t=>t.map(({id:e,url:n,alt:r,src:{large2x:i,medium:o},photographer:s})=>({id:String(e),description:n.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g," ")??r,previewURL:o,downloadURL:i,fileName:`pexels-${s.split(/\s+/).join("-").toLowerCase()}-${e}.jpg`,kind:"image",credit:`<a href="${n}">Photo by ${s} on Pexels</a>`})),iG=async({apiKey:t})=>{const e={Authorization:t},n=new URLSearchParams(vP),r=await fetch(`${mP}/curated?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=(await r.json()).photos;return bP(i)},oG=async(t,{apiKey:e})=>{const n={Authorization:e},r=new URLSearchParams({...vP,query:t,locale:rG()}),i=[];for(let o=1;o<=2;o+=1){r.set("page",String(o));const s=await fetch(`${mP}/search?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{photos:a,next_page:c}=await s.json();if(i.push(...a),!c)break;await Lt(50)}return bP(i)},sG={serviceType:"stock_assets",serviceId:"pexels",serviceLabel:"Pexels",serviceURL:"https://www.pexels.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://www.pexels.com/api/",apiKeyURL:"https://www.pexels.com/api/new/",apiKeyPattern:/^[a-zA-Z\d]{56}$/,list:iG,search:oG},aG="cs,da,de,en,es,fr,id,it,hu,nl,no,pl,pt,ro,sk,fi,sv,tr,vi,th,bg,ru,el,ja,ko,zh".split(","),_P="https://pixabay.com/api",yP={image_type:"photo",min_width:1280,safesearch:!0,per_page:150},wP=t=>t.map(({id:e,webformatURL:n,previewURL:r,largeImageURL:i,imageWidth:o,imageHeight:s,pageURL:a,tags:c,user:u})=>({id:String(e),description:c,previewURL:n.replace("_640.",o>s?"_180.":"_340."),downloadURL:i,fileName:r.split("/").pop().replace("_150.","_1280."),kind:"image",credit:`<a href="${a}">Photo by ${u} on Pixabay`})),xP=()=>{const[t]=ae(Ut).toLowerCase().split("-");return aG.includes(t)?t:"en"},lG=async({apiKey:t})=>{const e=new URLSearchParams({...yP,key:t,lang:xP(),editors_choice:String(!0)}),n=await fetch(`${_P}/?${e}`);if(!n.ok)return Promise.reject();const r=(await n.json()).hits;return wP(r)},cG=async(t,{apiKey:e})=>{const n=new URLSearchParams({...yP,key:e,lang:xP(),q:t}),r=await fetch(`${_P}/?${n}`);if(!r.ok)return Promise.reject();const i=(await r.json()).hits;return wP(i)},uG={serviceType:"stock_assets",serviceId:"pixabay",serviceLabel:"Pixabay",serviceURL:"https://pixabay.com/",showServiceLink:!0,hotlinking:!1,authType:"api_key",developerURL:"https://pixabay.com/service/about/api/",apiKeyURL:"https://pixabay.com/api/docs/#api_key",apiKeyPattern:/^\d+-[a-f\d]{25}$/,list:lG,search:cG},Tk=["af,sq,am,ar,hy,as,az,bn,ba,eu,bs,bg,yue,ca,lzh,zh-Hans,zh-Hant,hr,cs,da,prs,dv,nl,en,et,fo,fj","fil,fi,fr,fr-ca,gl,ka,de,el,gu,ht,he,hi,mww,hu,is,id,ikt,iu,iu-Latn,ga,it,ja,kn,kk,km,ko,ku,kmr","ky,lo,lv,lt,mk,mg,ms,ml,mt,mi,mr,mn-Cyrl,mn-Mong,my,ne,nb,or,ps,fa,pl,pt,pt-pt,pa,otq,ro,ru,sm","sr-Cyrl,sr-Latn,sk,sl,so,es,sw,sv,ty,ta,tt,te,th,bo,ti,to,tr,tk,uk,hsb,ur,ug,uz,vi,cy,yua,zu"].join(",").split(","),kP="https://api.unsplash.com",Ck="utm_source=sveltia-cms&utm_medium=referral",SP={per_page:30},dG=()=>{const t=ae(Ut).toLowerCase(),[e]=t.split("-");return Tk.find(n=>n.toLowerCase()===t)??Tk.find(n=>n.split("-")[0]===e)??"en"},EP=t=>t.map(({id:e,description:n,alt_description:r,urls:{regular:i,thumb:o},user:{username:s,name:a}})=>({id:String(e),description:[n,r].filter(Boolean).join(" — "),previewURL:o,downloadURL:i,fileName:`${a.split(/\s+/).join("-").toLowerCase()}-${e}-unsplash.jpg`,kind:"image",credit:`Photo by <a href="https://unsplash.com/@${s}?${Ck}">${a}</a> on <a href="https://unsplash.com/?${Ck}">Unsplash</a>`})),fG=async({apiKey:t})=>{const e={Authorization:`Client-ID ${t}`},n=new URLSearchParams(SP),r=await fetch(`${kP}/photos?${n}`,{headers:e});if(!r.ok)return Promise.reject();const i=await r.json();return EP(i)},hG=async(t,{apiKey:e})=>{const n={Authorization:`Client-ID ${e}`},r=new URLSearchParams({...SP,query:t,lang:dG()}),i=[];for(let o=1;o<=5;o+=1){r.set("page",String(o));const s=await fetch(`${kP}/search/photos?${r}`,{headers:n});if(!s.ok)return Promise.reject();const{results:a,total_pages:c}=await s.json();if(i.push(...a),c===o)break;await Lt(50)}return EP(i)},pG={serviceType:"stock_assets",serviceId:"unsplash",serviceLabel:"Unsplash",serviceURL:"https://unsplash.com/",showServiceLink:!0,hotlinking:!0,authType:"api_key",developerURL:"https://unsplash.com/developers",apiKeyURL:"https://unsplash.com/oauth/applications",apiKeyPattern:/^[a-zA-Z\d-]{40,}$/,list:fG,search:hG},Xh={pexels:sG,pixabay:uG,unsplash:pG},$P=({fieldConfig:t}={})=>{const e=ET({libraryName:"stock_assets",fieldConfig:t}),n=Object.keys(Xh),{providers:r}=e;return{providers:Array.isArray(r)?r:n}};var gG=U("<!> <!>",1),mG=U("<!> <!>",1),vG=U("<a> </a>"),bG=U("<!> <!>",1),_G=U("<!> <!> <!>",1),yG=U('<div role="none" class="filter-tools svelte-5b1zbe"><!></div>'),wG=U('<div role="none"> </div> <!>',1),xG=U('<div role="none" class="wrapper svelte-5b1zbe"><div role="none" class="nav svelte-5b1zbe"><!> <!></div> <div role="none" class="content-pane svelte-5b1zbe"><!> <!> <!></div></div>'),kG=U("<!> <!>",1);const SG={hash:"svelte-5b1zbe",code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;}
|
|
611
611
|
@media (width < 768px) {.wrapper.svelte-5b1zbe {flex-direction:column;overflow:hidden;height:72dvh;}
|
|
612
612
|
}.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {display:flex;gap:4px;}
|
|
613
613
|
@media (width < 768px) {.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {flex-direction:column;}
|
|
614
|
-
}.wrapper.svelte-5b1zbe .listbox {flex:none;background-color:transparent;}.wrapper.svelte-5b1zbe .content-pane:where(.svelte-5b1zbe) {overflow:auto;flex:auto;}.filter-tools.svelte-5b1zbe {display:flex;gap:8px;}`};function SG(t,e){const n=zn();le(e,!0),ke(t,kG);const r=()=>V(ue,"$_",f),i=()=>V(e.entryDraft,"$entryDraft",f),o=()=>V(ul,"$globalAssetFolder",f),s=()=>V(Mn,"$allAssets",f),a=()=>V(ft,"$prefs",f),c=()=>V(cn,"$isSmallScreen",f),u=()=>V(ll,"$showContentOverlay",f),d=()=>V(oc,"$selectAssetsView",f),[f,h]=me(),p=pe=>{var he=gG(),ge=M(he);{var ve=Ce=>{var Re=pG(),He=M(Re);{var Ye=Te=>{{let Fe=_(()=>oc);fw(Te,{get currentView(){return l(Fe)},"aria-controls":"select-assets-grid"})}};q(He,Te=>{d()&&Te(Ye)})}var Ue=j(He,2);{let Te=_(()=>l(T).some(Ie=>Ie.file)),Fe=_(()=>r()(`assets_dialog.search_for_${e.kind??"file"}`));Bp(Ue,{get flex(){return c()},get disabled(){return l(Te)},get"aria-label"(){return l(Fe)},get value(){return l(E)},set value(Ie){G(E,Ie,!0)}})}$(Ce,Re)};q(ge,Ce=>{(l(I)||l(Y))&&Ce(ve)})}var _e=j(ge,2);{var $e=Ce=>{{const Re=Ye=>{Je(Ye,{name:"cloud_upload"})};let He=_(()=>r()("upload"));Ze(Ce,{variant:"primary",get label(){return l(He)},onclick:()=>{l(x)?.open()},startIcon:Re,$$slots:{startIcon:!0}})}};q(_e,Ce=>{l(I)&&Ce($e)})}$(pe,he)};let g=R(e,"open",15,!1),m=R(e,"multiple",3,!1),v=R(e,"accept",19,()=>e.kind==="image"?xo.join(","):void 0),b=R(e,"canEnterURL",3,!0),y=R(e,"onSelect",3,void 0),w=ie(""),E=ie(""),k=ie("default-global"),S=ie(St([])),C=ie(St([])),x=ie(void 0),T=ie(St([]));const A=_(()=>e.kind==="image"?r()("assets_dialog.title.image"):r()("assets_dialog.title.file")),P=_(()=>rf(l(E))),L=_(()=>{const pe=i()?.collectionName??"",he=i()?.fileName,ge=he?eo({collectionName:pe,fileName:he}):void 0,ve=eo({collectionName:pe}),_e=ge??ve;return{entry:{folder:_e,enabled:!!_e&&(_e.entryRelative||_e.hasTemplateTags)},file:{folder:ge,enabled:!!ge&&!ge.entryRelative&&!ge.hasTemplateTags},collection:{folder:ve,enabled:!!ve&&!ve.entryRelative&&!ve.hasTemplateTags},global:{folder:o(),enabled:!0}}}),I=_(()=>l(k).startsWith("default-")),N=_(()=>l(I)?l(L)[l(k).replace("default-","")].folder:void 0),D=_(()=>i()?.originalEntry),B=_(()=>l(N)?.entryRelative&&l(D)?fn(Object.values(l(D).locales)[0].path).dirname:l(N)?.internalPath),H=_(()=>[...s(),...l(C)].filter(pe=>!e.kind||e.kind===pe.kind).sort((pe,he)=>pe.name.localeCompare(he.name)).sort((pe,he)=>+!!he.unsaved-+!!pe.unsaved)),W=_(()=>{const{providers:pe=[]}=$P({fieldConfig:e.fieldConfig});return Object.entries(Xh).filter(([he])=>pe.includes(he))}),Y=_(()=>l(W).map(([pe])=>pe).includes(l(k))&&a()?.apiKeys?.[l(k)]||Object.keys(Of).includes(l(k))&&a()?.logins?.[l(k)]),O=_(()=>Object.entries(Of)),F=_(()=>[...l(W),...l(O)]),K=_(()=>c()?pl:Gc),J=async({file:pe,blobURL:he,folder:ge})=>{const{name:ve,size:_e}=pe;return{unsaved:!0,file:pe,blobURL:he??URL.createObjectURL(pe),name:ve,path:`${l(B)}/${ve}`,sha:await Ua(pe),size:_e,kind:Ld(ve),folder:ge}},Q=async()=>Promise.all([...Object.entries(i()?.files??{}).map(async([pe,{file:he,folder:ge}])=>J({file:he,blobURL:pe,folder:ge})),...Object.values(l(S))]),oe=async({hash:pe,folder:he})=>(await Promise.all(l(C).map(async ve=>!!ve.file&&ln(ve.folder,he)&&await za(ve.file)===pe))).includes(!0),re=async pe=>{const he=await za(pe),ge=l(N);if(await oe({hash:he,folder:ge}))return;const ve=await J({file:pe,folder:ge});return l(S).push(ve),{asset:ve}},ee=async pe=>{G(T,(await Promise.all(pe.map(re))).filter(he=>!!he),!0)},ne=()=>{G(w,""),G(E,""),G(S,[],!0),G(C,[],!0),G(T,[],!0)};gN(()=>{const pe=Object.entries(l(L)).find(([,{enabled:he}])=>he)?.[0];G(k,`default-${pe}`)}),De(()=>{i()?.files,l(S),(async()=>G(C,await Q(),!0))()}),De(()=>{u()||g(!1)});var se=xG(),fe=M(se);{const pe=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{p(He)};q(Ce,He=>{c()||He(Re)})}$(_e,$e)},he=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{const Ye=_(()=>{const{showServiceLink:Ie,serviceLabel:Ae,serviceURL:we}=Xh[l(k)]??{};return{showServiceLink:Ie,serviceLabel:Ae,serviceURL:we}});var Ue=X(),Te=M(Ue);{var Fe=Ie=>{var Ae=mG(),we=z(Ae);Z(Pe=>{Se(Ae,"href",l(Ye).serviceURL),te(we,Pe)},[()=>r()("prefs.media.stock_photos.credit",{values:{service:l(Ye).serviceLabel}})]),$(Ie,Ae)};q(Te,Ie=>{l(Ye).showServiceLink&&Ie(Fe)})}$(He,Ue)};q(Ce,He=>{l(Y)&&He(Re)})}$(_e,$e)};let ge=_(()=>r()("insert")),ve=_(()=>!l(T).length);ji(fe,{get title(){return l(A)},size:"x-large",get okLabel(){return l(ge)},get okDisabled(){return l(ve)},focusInput:!1,onOk:()=>{if(!l(T).length)return;const _e=Dn(l(T)).map($e=>{const{unsaved:Ce,file:Re,folder:He}=$e.asset??{};return Ce?{file:Re,folder:He}:$e});y()?.(_e)},onClose:()=>{ne()},get open(){return g()},set open(_e){g(_e)},headerExtra:pe,footerExtra:he,children:(_e,$e)=>{var Ce=wG(),Re=z(Ce),He=z(Re);{let ye=_(()=>r()("assets_dialog.locations"));Hn(He,()=>l(K),(it,Qe)=>{Qe(it,{class:"tabs",get"aria-label"(){return l(ye)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:Le=>{G(k,Le.detail.name,!0),G(T,[],!0)},children:(Le,ze)=>{var Xe=bG(),st=M(Xe);{let Xt=_(()=>r()("asset_location.repository"));Ca(st,{get label(){return l(Xt)},children:(Zt,pt)=>{var Ot=X(),an=M(Ot);ot(an,17,()=>Object.entries(l(L)),([xn,{enabled:pn}])=>xn,(xn,pn)=>{var Kt=_(()=>So(l(pn),2));let Nt=()=>l(Kt)[0],kt=()=>l(Kt)[1].enabled;var un=X(),br=M(un);{var ei=dt=>{const Qt=_(()=>`default-${Nt()}`);{let Cn=_(()=>r()(`assets_dialog.folder.${Nt()}`)),kn=_(()=>l(k)===l(Qt));Sr(dt,{get name(){return l(Qt)},get label(){return l(Cn)},get selected(){return l(kn)}})}};q(br,dt=>{kt()&&dt(ei)})}$(xn,un)}),$(Zt,Ot)},$$slots:{default:!0}})}var lt=j(st,2);{var xt=Xt=>{{let Zt=_(()=>r()("asset_location.external"));Ca(Xt,{get label(){return l(Zt)},children:(pt,Ot)=>{var an=vG(),xn=M(an);{var pn=Nt=>{{let kt=_(()=>r()("assets_dialog.enter_url"));Sr(Nt,{name:"enter-url",get label(){return l(kt)}})}};q(xn,Nt=>{b()&&Nt(pn)})}var Kt=j(xn,2);ot(Kt,17,()=>Object.values(Of),Nt=>Nt.serviceId,(Nt,kt)=>{const un=_(()=>{const{serviceId:br,serviceLabel:ei}=l(kt);return{serviceId:br,serviceLabel:ei}});Sr(Nt,{get name(){return l(un).serviceId},get label(){return l(un).serviceLabel}})}),$(pt,an)},$$slots:{default:!0}})}};q(lt,Xt=>{(b()||Object.keys(Of).length)&&Xt(xt)})}var Gt=j(lt,2);{var bn=Xt=>{{let Zt=_(()=>r()("asset_location.stock_photos"));Ca(Xt,{get label(){return l(Zt)},children:(pt,Ot)=>{var an=X(),xn=M(an);ot(xn,17,()=>l(W),([pn,{serviceLabel:Kt}])=>pn,(pn,Kt)=>{var Nt=_(()=>So(l(Kt),2));let kt=()=>l(Nt)[0],un=()=>l(Nt)[1].serviceLabel;Sr(pn,{get name(){return kt()},get label(){return un()}})}),$(pt,an)},$$slots:{default:!0}})}};q(Gt,Xt=>{l(W).length&&Xt(bn)})}$(Le,Xe)},$$slots:{default:!0}})})}var Ye=j(He,2);{var Ue=ye=>{var it=_G(),Qe=z(it);p(Qe),$(ye,it)};q(Ye,ye=>{c()&&ye(Ue)})}var Te=j(Re,2),Fe=z(Te);{var Ie=ye=>{{let it=_(()=>l(H).filter(Qe=>ln(Qe.folder,l(N))&&(l(N).entryRelative?fn(Qe.path).dirname===l(B):!0)));tG(ye,{get accept(){return v()},get multiple(){return m()},get assets(){return l(it)},get searchTerms(){return l(P)},get basePath(){return l(N).internalPath},onDrop:({files:Qe})=>{ee(Qe)},get selectedResources(){return l(T)},set selectedResources(Qe){G(T,Qe,!0)}})}};q(Fe,ye=>{l(I)&&l(N)&&ye(Ie)})}var Ae=j(Fe,2);{var we=ye=>{pr(ye,{children:(it,Qe)=>{var Le=yG(),ze=M(Le),Xe=z(ze),st=j(ze,2);Nn(st,{flex:!0,oninput:()=>{const lt=l(w).trim();G(T,lt?[{url:lt}]:[],!0)},get value(){return l(w)},set value(lt){G(w,lt,!0)}}),Z(lt=>te(Xe,lt),[()=>e.kind==="image"?r()("assets_dialog.enter_image_url"):r()("assets_dialog.enter_file_url")]),$(it,Le)},$$slots:{default:!0}})};q(Ae,ye=>{b()&&l(k)==="enter-url"&&ye(we)})}var Pe=j(Ae,2);ot(Pe,17,()=>l(F),([ye,it])=>ye,(ye,it)=>{var Qe=_(()=>So(l(it),2));let Le=()=>l(Qe)[0],ze=()=>l(Qe)[1];var Xe=X(),st=M(Xe);{var lt=xt=>{HK(xt,{get kind(){return e.kind},get multiple(){return m()},get searchTerms(){return l(P)},get serviceProps(){return ze()},gridId:"select-assets-grid",get selectedResources(){return l(T)},set selectedResources(Gt){G(T,Gt,!0)}})};q(st,xt=>{l(k)===Le()&&xt(lt)})}$(ye,Xe)}),Z(()=>Se(Te,"id",`${n}-content-pane`)),$(_e,Ce)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}var be=j(fe,2);bt(ay(be,{get accept(){return v()},onSelect:({files:pe})=>{ee(pe)}}),pe=>G(x,pe,!0),()=>l(x)),$(t,se),ce(),h()}var EG=U('<div role="status"> </div>'),$G=U('<!> <div role="none"><!></div>',1),TG=U('<div role="none"><!></div>');const CG={hash:"svelte-qqvxpl",code:".empty.svelte-qqvxpl button {flex-direction:column;justify-content:center;height:120px;font-size:var(--sui-font-size-small);}.empty.svelte-qqvxpl button .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.empty.svelte-qqvxpl button:disabled {pointer-events:none !important;}.empty.svelte-qqvxpl button:disabled * {opacity:0.5;}.empty.invalid.svelte-qqvxpl button {border-color:var(--sui-error-border-color);}"};function AG(t,e){le(e,!0),ke(t,CG);const n=()=>V(ue,"$_",i),r=()=>V(ru,"$hasMouse",i),[i,o]=me();let s=R(e,"showSelectAssetsDialog",15,!1),a=R(e,"replaceMode",15,!1);var c=TG();let u;var d=z(c);{let f=_(()=>e.readonly||e.processing);Ze(d,{flex:!0,role:"button",variant:"tertiary",get disabled(){return l(f)},tabindex:"0",onclick:()=>{e.readonly||(a(!1),s(!0))},children:(h,p)=>{var g=$G(),m=M(g);Je(m,{name:"cloud_upload"});var v=j(m,2),b=z(v);{var y=E=>{var k=EG(),S=z(k);Z(C=>te(S,C),[()=>n()("processing_file")]),$(E,k)},w=E=>{var k=X(),S=M(k);{var C=T=>{var A=X(),P=M(A);{var L=N=>{var D=Oe();Z(B=>te(D,B),[()=>n()(`drop_image_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)},I=N=>{var D=Oe();Z(B=>te(D,B),[()=>n()(`drop_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)};q(P,N=>{e.isImageWidget?N(L):N(I,!1)})}$(T,A)},x=T=>{var A=Oe();Z(P=>te(A,P),[()=>n()("tap_to_browse")]),$(T,A)};q(S,T=>{r()?T(C):T(x,!1)},!0)}$(E,k)};q(b,E=>{e.processing?E(y):E(w,!1)})}$(h,g)},$$slots:{default:!0}})}Z(f=>u=rn(c,1,"empty svelte-qqvxpl",null,u,f),[()=>({invalid:e.invalid,processing:e.processing})]),$(t,c),ce(),o()}var PG=U('<div role="toolbar" class="reorder-controls svelte-1ncvwuf"><!> <!></div>'),LG=U('<span role="none" class="preview no-thumbnail"><!></span>'),NG=U('<div role="textbox" tabindex="0" class="filename svelte-1ncvwuf"> </div>'),IG=U('<div role="none" class="filled svelte-1ncvwuf"><!> <!> <div role="none" class="svelte-1ncvwuf"><!> <div role="none"><!> <!></div></div></div>');const OG={hash:"svelte-1ncvwuf",code:".filled.svelte-1ncvwuf {display:flex !important;align-items:center;gap:12px;margin:var(--sui-focus-ring-width);}.filled.svelte-1ncvwuf .preview {flex:none;width:120px !important;height:120px !important;border-color:var(--sui-control-border-color) !important;border-radius:var(--sui-control-medium-border-radius);padding:8px !important;}.filled.svelte-1ncvwuf .preview.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);}.filled.svelte-1ncvwuf .preview.no-thumbnail .icon {font-size:64px;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) {flex:auto;overflow:hidden;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf):empty {margin:0;padding:0;}.reorder-controls.svelte-1ncvwuf {flex:none !important;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:4px;border:1px solid var(--sui-control-border-color);border-radius:var(--sui-control-medium-border-radius);height:-moz-available;height:-webkit-fill-available;height:stretch;background-color:var(--sui-secondary-border-color);}.reorder-controls.svelte-1ncvwuf button {padding:0;height:16px;}"};function Ak(t,e){le(e,!0),ke(t,OG);const n=()=>V(We,"$entryDraft",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1),c=R(e,"required",3,!1),u=R(e,"collectionName",3,""),d=R(e,"fileName",3,void 0),f=R(e,"entry",3,void 0);let h=ie(void 0),p=ie(void 0),g=ie(void 0),m=ie(void 0);const v=_(()=>e.widgetName==="image"),b=_(()=>{if(!e.value)return"";if(l(p)){const{publicPath:H,entryRelative:W,hasTemplateTags:Y}=n()?.files[e.value].folder??{};return hc([W||Y?"":H||"",decodeURI(l(p).name.normalize())])}if(!e.value.startsWith("blob:")){const H=decodeURI(e.value);if(dp(H)){const W=new URL(H);if(W.search)return W.search="",`${W}…`}return H}return""}),y=async()=>{if(e.value?.startsWith("blob:")&&n()&&G(p,n().files[e.value]?.file,!0),e.value){const H={value:e.value,entry:f(),collectionName:u(),fileName:d()};e.value.startsWith("blob:")?(G(h,void 0),G(g,e.value?await CT(e.value):void 0,!0),G(m,e.value&&l(g)?await pc({...H,thumbnail:!0}):void 0,!0)):l(v)&&/^https?:/.test(e.value)?(G(h,void 0),G(g,"image"),G(m,e.value,!0)):(G(h,V_({...H}),!0),G(g,void 0),G(m,void 0))}else G(h,void 0),G(p,void 0),G(g,void 0),G(m,void 0)};De(()=>{e.value,Ee(()=>{y()})});var w=IG(),E=z(w);{var k=H=>{var W=PG(),Y=z(W);{const F=Q=>{Je(Q,{name:"arrow_upward"})};let K=_(()=>!e.onMoveUp),J=_(()=>r()("move_up"));Ze(Y,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveUp?.()},startIcon:F,$$slots:{startIcon:!0}})}var O=j(Y,2);{const F=Q=>{Je(Q,{name:"arrow_downward"})};let K=_(()=>!e.onMoveDown),J=_(()=>r()("move_down"));Ze(O,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveDown?.()},startIcon:F,$$slots:{startIcon:!0}})}$(H,W)};q(E,H=>{(e.onMoveUp||e.onMoveDown)&&!s()&&H(k)})}var S=j(E,2);{var C=H=>{Ro(H,{get kind(){return l(g)},get src(){return l(m)},variant:"tile",checkerboard:!0})},x=H=>{var W=X(),Y=M(W);{var O=K=>{Ro(K,{get kind(){return l(h).kind},get asset(){return l(h)},variant:"tile",checkerboard:!0})},F=K=>{var J=LG(),Q=z(J);Je(Q,{name:"draft"}),$(K,J)};q(Y,K=>{l(h)?K(O):K(F,!1)},!0)}$(H,W)};q(S,H=>{l(g)&&l(m)?H(C):H(x,!1)})}var T=j(S,2),A=z(T);{var P=H=>{var W=NG(),Y=z(W);Z(()=>{Se(W,"id",`${e.fieldId??""}-value`),Se(W,"aria-readonly",s()),Se(W,"aria-invalid",a()),Se(W,"aria-required",c()),Se(W,"aria-labelledby",`${e.fieldId??""}-label`),Se(W,"aria-errormessage",`${e.fieldId??""}-error`),te(Y,l(b))}),$(H,W)};q(A,H=>{typeof e.value=="string"&&H(P)})}var L=j(A,2),I=z(L);{var N=H=>{{let W=_(()=>r()("replace")),Y=_(()=>r()(`replace_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onReplace()}})}};q(I,H=>{e.onReplace&&H(N)})}var D=j(I,2);{var B=H=>{{let W=_(()=>r()("remove")),Y=_(()=>r()(`remove_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onRemove()}})}};q(D,H=>{e.onRemove&&H(B)})}$(t,w),ce(),o()}const Pk=async({draft:t,file:e})=>{const n=await za(e);let r;return await Promise.all(Object.entries(t.files??{}).map(async([i,o])=>{!r&&await za(o.file)===n&&(r=i)})),r},RG=async({draft:t,resource:e,libraryConfig:n})=>{const{transformations:r,max_file_size:i}=n??{},{url:o,credit:s}=e;let{asset:a,file:c}=e,u="",d;if(c){const f=await Pk({draft:t,file:c});if(f)u=f;else{r&&(c=await $T(c,r));const h=await Ua(c),{folder:p}=e,g=ae(Mn).find(m=>m.sha===h&&ln(m.folder,p));g?(a=g,c=void 0):c.size>i?(d=c.name,c=void 0):(u=URL.createObjectURL(c),t.files[u]={file:c,folder:p})}}return a&&(a.unsaved?a.file&&(u=await Pk({draft:t,file:a.file})):u=Qu(a,{pathOnly:!0,allowSpecial:!0,entry:t.originalEntry})),o&&!c&&!a&&(u=o),{value:u,credit:s?Dr.sanitize(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]}):"",oversizedFileName:d}};var DG=U('<div role="none" class="item-list svelte-1libnfj"></div> <!>',1),MG=U('<div role="none"> </div> <div role="none"><!></div>',1),FG=U("<!> <!> <!> <!>",1);const zG={hash:"svelte-1libnfj",code:".item-list.svelte-1libnfj {display:flex;flex-direction:column;gap:4px;}"};function Lk(t,e){le(e,!0),ke(t,zG);const n=()=>V(We,"$entryDraft",o),r=()=>V(ul,"$globalAssetFolder",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=ne=>{AG(ne,{get invalid(){return h()},get readonly(){return f()},get processing(){return l(E)},get isImageWidget(){return l(L)},get multiple(){return l(N)},get showSelectAssetsDialog(){return l(p)},set showSelectAssetsDialog(se){G(p,se,!0)},get replaceMode(){return l(g)},set replaceMode(se){G(g,se,!0)}})},{widgetContext:c=void 0}=tr("field-editor")??{};let u=R(e,"currentValue",15),d=R(e,"required",3,!0),f=R(e,"readonly",3,!1),h=R(e,"invalid",3,!1),p=ie(!1),g=ie(!1),m=ie(-1),v=ie(!1),b=ie(!1),y=ie(""),w=ie(void 0),E=ie(!1);const k=_(()=>e.fieldConfig.widget),S=_(()=>tt(e.fieldConfig.max,1/0)),C=_(()=>e.fieldConfig.accept),x=_(()=>tt(e.fieldConfig.choose_url,!0)),T=_(()=>n()?.originalEntry),A=_(()=>n()?.collectionName??""),P=_(()=>n()?.fileName),L=_(()=>l(k)==="image"),I=_(()=>Pd({fieldConfig:e.fieldConfig}).config),N=_(()=>Ip(e.fieldConfig)),D=_(()=>l(I).max_file_size),B=_(()=>!d()&&(!c||!["markdown-editor-component","single-field-list-widget"].includes(c))),H=_(()=>({widgetName:l(k),readonly:f(),invalid:h(),required:d(),showRemoveButton:l(B),collectionName:l(A),fileName:l(P),entry:l(T)})),W=()=>{l(w)?.reset(),l(N)||(u(""),Ac())},Y=async ne=>{if(!n())return;W(),G(E,!0);const se=await Promise.all(ne.map(he=>RG({draft:n(),resource:he,libraryConfig:l(I)}))),fe=[],be=[],pe=l(N)?Object.keys(n().currentValues[e.locale]).filter(he=>he.startsWith(`${e.keyPath}.`)).map(he=>Number(he.replace(`${e.keyPath}.`,""))).pop()??-1:-1;se.forEach(({value:he,credit:ge,oversizedFileName:ve},_e)=>{if(he)if(l(N)){const $e=l(g)?l(m):pe+1+_e;yt(We,Ee(n).currentValues[e.locale][`${e.keyPath}.${$e}`]=he,Ee(n))}else u(he);ge&&fe.push(ge),ve&&be.push(ve)}),fe.length?(G(y,fe.join(`
|
|
615
|
-
`),!0),G(b,!0)):G(y,""),be.length&&G(v,!0),G(E,!1)},O=({files:ne})=>{if(!ne.length)return;const se=eo({collectionName:l(A),fileName:l(P)})??eo({collectionName:l(A)})??r();Y(ne.map(fe=>({file:fe,folder:se})))},F=ne=>{if(!n())return;const se=Dn(n().currentValues[e.locale]),fe=[];for(let be=0;;be+=1){const pe=`${e.keyPath}.${be}`,he=`${e.keyPath}.${be+1}`;if(be<ne)fe.push(se[pe]);else if(he in se)fe.push(se[he]),yt(We,Ee(n).currentValues[e.locale][pe]=se[he],Ee(n));else{yt(We,Ee(n).currentValues[e.locale][pe]=null,Ee(n)),delete n().currentValues[e.locale][pe];break}}u(Object.values(fe))},K=ne=>{n()&&(se=>{var fe=So(se,2);yt(We,Ee(n).currentValues[e.locale][`${e.keyPath}.${ne}`]=fe[0],Ee(n)),yt(We,Ee(n).currentValues[e.locale][`${e.keyPath}.${ne+1}`]=fe[1],Ee(n))})([n().currentValues[e.locale][`${e.keyPath}.${ne+1}`],n().currentValues[e.locale][`${e.keyPath}.${ne}`]])};var J=
|
|
616
|
-
td.svelte-18v8t2h {border-width:0;}th.svelte-18v8t2h {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}th.key.svelte-18v8t2h, th.value.svelte-18v8t2h {width:50%;}td.svelte-18v8t2h {padding:0;vertical-align:middle;}`};function XG(t,e){le(e,!0),ke(t,JG);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),{valueStoreKey:s="currentValues"}=tr("field-editor")??{};let a=R(e,"readonly",3,!1);const c=_(()=>tt(e.fieldConfig.i18n,!1)),u=_(()=>e.fieldConfig.key_label),d=_(()=>e.fieldConfig.value_label),f=_(()=>tt(e.fieldConfig.max,1/0)),h=_(()=>l(u)||n()("key_value.key")),p=_(()=>l(d)||n()("key_value.value"));let g=ie(St([]));const m=St([]);let v=ie(St([])),b=ie(St([]));const y=()=>{if(!r())return;const N=ww({entryDraft:We,valueStoreKey:s,keyPath:e.keyPath,locale:e.locale});ln(l(g),N)||(G(g,[...N],!0),G(v,N.map(()=>!1),!0)),!l(g).length&&r()[s][e.locale][e.keyPath]!==null&&yt(We,Ee(r)[s][e.locale][e.keyPath]=null,Ee(r))},w=()=>{r()&&(Object.entries(r()[s]).forEach(([I,N])=>{(I===e.locale||l(c)==="duplicate")&&delete N[e.keyPath]}),l(g).push(["",""]),l(v).push(!1),window.requestAnimationFrame(()=>{m[l(g).length-1].querySelector("input").focus()}))},E=I=>{l(g).splice(I,1),l(v).splice(I,1)},k=()=>{if(G(b,UG({pairs:l(g),edited:l(v)}),!0),!r()||l(b).some(Boolean)||l(g).some(([N])=>!N.trim()))return;qG({entryDraft:We,fieldConfig:e.fieldConfig,keyPath:e.keyPath,locale:e.locale,pairs:l(g)})};De(()=>{Dn(r()?.[s][e.locale]),Ee(()=>{y()})}),De(()=>{Dn(l(g)),Ee(()=>{k()})});var S=YG(),C=M(S);{var x=I=>{var N=GG(),D=z(N),B=z(D),H=z(B),W=z(H),Y=j(H),O=z(Y),F=j(Y);{var K=Q=>{var oe=VG();Z(re=>Se(oe,"aria-label",re),[()=>n()("key_value.action")]),$(Q,oe)};q(F,Q=>{a()||Q(K)})}var J=j(D);ot(J,21,()=>l(g),vr,(Q,oe,re)=>{var ee=KG(),ne=z(ee),se=z(ne);{let ge=_(()=>!!l(b)[re]),ve=_(()=>l(b)[re]?`${e.fieldId}-kv-error`:void 0);Nn(se,{get readonly(){return a()},flex:!0,get invalid(){return l(ge)},get"aria-label"(){return l(h)},get"aria-errormessage"(){return l(ve)},oninput:()=>{l(v)[re]=!0},onkeydown:_e=>{_e.key==="Enter"&&!_e.isComposing&&m[re].querySelector("td.value input").focus()},get value(){return l(oe)[0]},set value(_e){l(oe)[0]=_e}})}var fe=j(ne),be=z(fe);Nn(be,{get readonly(){return a()},flex:!0,get"aria-label"(){return l(p)},onkeydown:ge=>{ge.key==="Enter"&&!ge.isComposing&&(re<l(g).length-1?m[re+1].querySelector("input").focus():l(g).length<l(f)&&w())},get value(){return l(oe)[1]},set value(ge){l(oe)[1]=ge}});var pe=j(fe);{var he=ge=>{var ve=HG(),_e=z(ve);{const $e=Re=>{Je(Re,{name:"close"})};let Ce=_(()=>n()("remove"));Ze(_e,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Ce)},onclick:()=>{E(re)},startIcon:$e,$$slots:{startIcon:!0}})}$(ge,ve)};q(pe,ge=>{a()||ge(he)})}bt(ee,(ge,ve)=>m[ve]=ge,ge=>m?.[ge],()=>[re]),$(Q,ee)}),Z(()=>{te(W,l(h)),te(O,l(p))}),$(I,N)};q(C,I=>{l(g).length&&I(x)})}var T=j(C,2);{var A=I=>{yw(I,{get id(){return`${e.fieldId??""}-kv-error`},children:(N,D)=>{var B=WG(),H=M(B);{var W=F=>{var K=Oe();Z(J=>te(K,J),[()=>n()("key_value.empty_key")]),$(F,K)};q(H,F=>{l(b).includes("empty")&&F(W)})}var Y=j(H,2);{var O=F=>{var K=Oe();Z(J=>te(K,J),[()=>n()("key_value.duplicate_key")]),$(F,K)};q(Y,F=>{l(b).includes("duplicate")&&F(O)})}$(N,B)}})};q(T,I=>{l(b).some(Boolean)&&I(A)})}var P=j(T,2),L=z(P);{let I=_(()=>n()("add")),N=_(()=>a()||l(g).length>=l(f));Ze(L,{get label(){return l(I)},variant:"tertiary",get disabled(){return l(N)},onclick:()=>{w()}})}$(t,S),ce(),o()}var ZG=U('<tr><td class="svelte-dq8vuc"> </td><td class="svelte-dq8vuc"> </td></tr>'),QG=U('<table class="svelte-dq8vuc"><thead><tr><th scope="col" class="svelte-dq8vuc"> </th><th scope="col" class="svelte-dq8vuc"> </th></tr></thead><tbody></tbody></table>');const eW={hash:"svelte-dq8vuc",code:'@charset "UTF-8";table.svelte-dq8vuc {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-dq8vuc {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}td.svelte-dq8vuc:empty::after {content:" ";}'};function tW(t,e){le(e,!0),ke(t,eW);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),s=_(()=>e.fieldConfig.key_label),a=_(()=>e.fieldConfig.value_label),c=_(()=>l(s)||n()("key_value.key")),u=_(()=>l(a)||n()("key_value.value"));let d=ie(St([]));const f=()=>{const v=ww({entryDraft:We,keyPath:e.keyPath,locale:e.locale});ln(l(d),v)||G(d,v,!0)};De(()=>{r()&&(Dn(r().currentValues[e.locale]),Ee(()=>{f()}))});var h=X(),p=M(h);{var g=m=>{var v=QG(),b=z(v),y=z(b),w=z(y),E=z(w),k=j(w),S=z(k),C=j(b);ot(C,21,()=>l(d),vr,(x,T)=>{var A=_(()=>So(l(T),2));let P=()=>l(A)[0],L=()=>l(A)[1];var I=ZG(),N=z(I),D=z(N),B=j(N),H=z(B);Z(()=>{te(D,P()),te(H,L())}),$(x,I)}),Z(()=>{te(E,l(c)),te(S,l(u))}),$(m,v)};q(p,m=>{l(d).length&&m(g)})}$(t,h),ce(),o()}function Pb(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"disabled",3,!1),s=R(e,"items",19,()=>[]),a=R(e,"addItem",3,()=>{});const c=_(()=>e.fieldConfig.widget),u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.types),h=_(()=>l(c)==="list"?e.fieldConfig:void 0),p=_(()=>l(h)?.label_singular??""),g=_(()=>l(h)?.max??void 0),m=_(()=>n()("add_x",{values:{name:l(p)||l(d)||l(u)}})),v=_(()=>o()||typeof l(g)=="number"&&s().length===l(g));var b=X(),y=M(b);{var w=k=>{Mr(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},startIcon:T=>{Je(T,{name:"add"})},endIcon:T=>{},popup:T=>{{let A=_(()=>n()("select_list_type"));ar(T,{get"aria-label"(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);ot(N,17,()=>l(f),({name:D,label:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).label;{let Y=_(()=>W()||H());gt(D,{get label(){return l(Y)},onclick:()=>a()({type:H()})})}}),$(P,I)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},E=k=>{Ze(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},onclick:()=>a()(),startIcon:C=>{Je(C,{name:"add"})},$$slots:{startIcon:!0}})};q(y,k=>{Array.isArray(l(f))?k(w):k(E,!1)})}$(t,b),ce(),i()}var nW=U('<span role="none" class="type svelte-12y2c75"> </span>'),rW=U('<div role="none" class="header svelte-12y2c75"><div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div></div>');const iW={hash:"svelte-12y2c75",code:".header.svelte-12y2c75 {display:flex;align-items:center;gap:8px;background-color:var(--sui-secondary-border-color);}.header.svelte-12y2c75 > div:where(.svelte-12y2c75) {display:flex;align-items:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):first-child {justify-content:flex-start;width:40%;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):nth-child(2) {width:20%;justify-content:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):last-child {width:40%;justify-content:flex-end;}.header.svelte-12y2c75 button {padding:0;height:16px;}.header.svelte-12y2c75 .type:where(.svelte-12y2c75) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function TP(t,e){le(e,!0),ke(t,iW);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"label",3,""),s=R(e,"centerContent",3,void 0),a=R(e,"endContent",3,void 0);var c=rW(),u=z(c),d=z(u);{const m=y=>{{let w=_(()=>e.expanded?"expand_more":"chevron_right");Je(y,{get name(){return l(w)}})}};let v=_(()=>!e.toggleExpanded),b=_(()=>e.expanded?n()("collapse"):n()("expand"));Ze(d,{size:"small",get disabled(){return l(v)},get"aria-label"(){return l(b)},get"aria-expanded"(){return e.expanded},get"aria-controls"(){return e.controlId},onclick:()=>{e.toggleExpanded?.()},startIcon:m,children:(y,w)=>{var E=X(),k=M(E);{var S=C=>{var x=nW(),T=z(x);Z(()=>te(T,o())),$(C,x)};q(k,C=>{o()&&C(S)})}$(y,E)},$$slots:{startIcon:!0,default:!0}})}var f=j(u,2),h=z(f);Me(h,()=>s()??Be);var p=j(f,2),g=z(p);Me(g,()=>a()??Be),$(t,c),ce(),i()}const oW=({fieldConfig:t,dynamicValue:e})=>{if(e!==void 0)return e==="true";const{default:n}=t;return typeof n=="boolean"?n:!1},sW=t=>({[t.keyPath]:oW(t)}),aW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,output_code_only:i=!1,keys:o={code:"code",lang:"lang"}}=t,s=n!==void 0?n:r;if(i)return{[e]:typeof s=="string"?s:""};const a=Yt(s)?s:void 0,c=a?.[o.code]??s,u=a?.[o.lang]??"";return{[e]:{},[`${e}.${o.code}`]:typeof c=="string"?c:"",[`${e}.${o.lang}`]:typeof u=="string"?u:""}},lW=({fieldConfig:t,dynamicValue:e})=>{const n=t,r=n.default,i=e??r;return typeof i!="string"?"":i==="{{now}}"?z$(F$(n),"",n):i},cW=t=>({[t.keyPath]:lW(t)}),Ok=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,i=r.default,o=Ip(r);let s="";n!==void 0?s=o?n.split(/,\s*/):n:o?s=Array.isArray(i)?i:[]:s=typeof i=="string"?i:"";const a={};return o&&Array.isArray(s)&&(s=s.map(c=>c.trim()).filter(c=>c!==""),s.length&&(a[e]=[],s.forEach((c,u)=>{a[`${e}.${u}`]=c}))),!o&&typeof s=="string"&&(s=s.trim(),s&&(a[e]=s)),a},uW=({fieldConfig:t,locale:e,dynamicValue:n})=>{const{default:r}=t,i=n??r;return typeof i!="string"?i:i.replaceAll(/{{(.+?)}}/g,(o,s)=>s==="locale"?e:s==="datetime"?new Date().toJSON().replace(/\d+\.\d+Z$/,"00.000Z"):s==="uuid"?ai():s==="uuid_short"?ai("short"):s==="uuid_shorter"?ai("shorter"):"")},CP=t=>({[t.keyPath]:uW(t)}),dW=({fieldConfig:t,locale:e})=>{const{default:n}=t,r=Bc({fieldConfig:t,locale:e});return Yt(n)?n:r?{"":""}:{}},fW=t=>{const{keyPath:e,dynamicValue:n}=t;let r;if(n!==void 0)try{const i=JSON.parse(n);Yt(i)&&(r=i)}catch{}return r??=dW(t),Object.fromEntries(Object.entries(r).filter(([,i])=>typeof i=="string").map(([i,o])=>[`${e}.${i}`,o]))},hW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,fields:i,types:o}=t;let s;if(n!==void 0?s=n.split(/,\s*/).map(u=>u.trim()).filter(u=>u!==""):s=Array.isArray(r)?r:[],!(Array.isArray(s)&&!!s.length))return{[e]:[]};const c={[e]:s};return i||o?s.forEach((u,d)=>{Yt(u)?Object.entries(to(u)).forEach(([f,h])=>{c[`${e}.${d}.${f}`]=h}):c[`${e}.${d}`]=u}):s.forEach((u,d)=>{Yt(u)||(c[`${e}.${d}`]=u)}),c},pW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r}=t;let i;if(n!==void 0)try{i=ZN(n)}catch{i=n.replace(/<[^>]*>/g,"")}else i=r||"";return{[e]:i}},gW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,value_type:i="int"}=t,o=n??r,s=typeof o=="string";if(o===void 0)return i==="int"||i==="float"?{[e]:null}:{[e]:""};if(i==="int"){const a=s?Number.parseInt(o,10):o;return Number.isInteger(a)?{[e]:a}:{}}if(i==="float"){const a=s?Number.parseFloat(o):o;return Number.isFinite(a)?{[e]:a}:{}}return s?{[e]:o}:{}},mW=({fieldConfig:t,keyPath:e,locale:n})=>{const{default:r,fields:i,types:o}=t,s=Bc({fieldConfig:t,locale:n}),a={};return Yt(r)?(Object.entries(to(r)).forEach(([c,u])=>{a[`${e}.${c}`]=u}),a):!s||Array.isArray(o)?(a[e]=null,a):(i&&i.length>0&&i.forEach(c=>{AP({content:a,keyPath:[e,c.name].join("."),fieldConfig:c,locale:n,dynamicValues:{}})}),a)},Rk=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,{default:i,multiple:o=!1}=r,s=n!==void 0?n.split(/,\s*/).map(c=>c.trim()):i,a=Array.isArray(s)&&!!s.length;if(!o){if(n!==void 0){const c=n.split(/,\s*/).map(u=>u.trim());return{[e]:c[0]||""}}return{[e]:s!==void 0?s:""}}return a?Object.fromEntries(s.map((c,u)=>[`${e}.${u}`,c])):{[e]:[]}},Dk={boolean:sW,code:aW,datetime:cW,file:Ok,hidden:CP,image:Ok,keyvalue:fW,list:hW,markdown:pW,number:gW,object:mW,relation:Rk,select:Rk},AP=({content:t,keyPath:e,fieldConfig:n,locale:r,dynamicValues:i})=>{const{widget:o="string",default:s}=n;if(o==="compute"){t[e]="";return}const a=e in i&&!/\.\d+(?:\.|$)/.test(e)&&i[e].trim()||void 0;if(o in Dk){Object.assign(t,Dk[o]({fieldConfig:n,keyPath:e,locale:r,dynamicValue:a}));return}t[e]=a||s||""},of=(t,e,n={})=>{const r={};return t.forEach(i=>{AP({content:r,keyPath:i.name,fieldConfig:i,locale:e,dynamicValues:n})}),r},Mk=(t,e)=>{Object.entries(e).forEach(([n,r])=>{t[n]!==r&&(t[n]=r)}),Object.keys(t).forEach(n=>{n in e||delete t[n]})},Fk=(t,e)=>{const n=new RegExp(`^${Vt(e)}\\b(?!#)`),r=Object.entries(t).filter(([i])=>n.test(i)).map(([i,o])=>[i.replace(n,"_"),o]).sort();return[ls(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(t).filter(([i])=>!n.test(i)))]},PP=({locale:t,valueStoreKey:e="currentValues",keyPath:n,manipulate:r})=>{const i=ae(We),{collection:o,collectionFile:s}=i,{defaultLocale:a}=(s??o)._i18n,[c,u]=Fk(i[e][t],n),[d,f]=t===a?Fk(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:d}),Yi.set(!1),We.update(h=>(Mk(h[e][t],{...to({[n]:c}),...u}),t===a&&Mk(h.expanderStates._,{...to({[n]:d}),...f}),h)),Yi.set(!0)},LP=({key:t,locale:e,collapsed:n=!1})=>{const r=ae(We),i=r?.expanderStates?._[t];if(i!==void 0)return i;if(n==="auto"){const o=r?.currentValues?.[e]??{},s=new RegExp(`^${Vt(t.replace(/#$/,""))}\\.[^\\.]+$`);return!Object.entries(o).some(([a,c])=>s.test(a)&&!!c)}return!n},yo=t=>{We.update(e=>(e&&Object.entries(t).forEach(([n,r])=>{e.expanderStates._[n]!==r&&(e.expanderStates._[n]=r)}),e))},NP=({collectionName:t,fileName:e,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{const o=new Set,s={collectionName:t,fileName:e,valueMap:n,isIndexFile:i};return r.split(".").forEach((a,c,u)=>{const d=u.slice(0,c+1).join("."),f=hn({...s,keyPath:d}),h=/\.\d+$/.test(d);if(f?.widget==="object")h&&o.add(d),o.add(`${d}#`);else if(f?.widget==="list")o.add(h?d:`${d}#`);else if(c>0){const p=u.slice(0,c).join("."),g=hn({...s,keyPath:p});g?.widget==="object"&&g.fields&&o.add(`${p}.${g.name}#`),g?.widget==="list"&&g.field&&o.add(d)}}),[...o]},vW=({collectionName:t,fileName:e,currentValues:n})=>{const{validities:r,isIndexFile:i}=ae(We),o={};Object.entries(r??{}).forEach(([s,a])=>{Object.entries(a).forEach(([c,{valid:u}])=>{u||NP({collectionName:t,fileName:e,valueMap:n[s],keyPath:c,isIndexFile:i}).forEach(d=>{o[d]=!0})})}),yo(o)};var bW=U("<!> <!>",1),_W=U('<div role="none" class="toolbar top add svelte-1eiee9e"><!></div>'),yW=U("<!> <!> <!>",1),wW=U("<!> <!>",1),xW=U("<!> <!>",1),kW=U("<!> <!>",1),SW=U("<!> <!>",1),EW=U('<div role="none" class="summary svelte-1eiee9e"><!></div>'),$W=U('<div role="none" class="item svelte-1eiee9e"><!> <div role="none" class="item-body"><!></div></div>'),TW=U('<div role="none" class="toolbar bottom add svelte-1eiee9e"><!> <!></div>'),CW=U('<div role="none" class="toolbar top svelte-1eiee9e"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>',1);const AW={hash:"svelte-1eiee9e",code:".toolbar.svelte-1eiee9e {display:flex;align-items:center;}.toolbar.top.add.svelte-1eiee9e {margin-block:8px 16px !important;}.toolbar.bottom.add.svelte-1eiee9e {margin-block:16px 0 !important;}.item-list.collapsed.svelte-1eiee9e {display:none;}.item.svelte-1eiee9e {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e) {padding:8px;}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e):empty {display:none;}"};function PW(t,e){const n=zn();le(e,!0),ke(t,AW);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(cn,"$isSmallScreen",s),[s,a]=me(),{valueStoreKey:c="currentValues"}=tr("field-editor")??{},u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.i18n),h=_(()=>tt(e.fieldConfig.allow_add,!0)),p=_(()=>tt(e.fieldConfig.allow_remove,!0)),g=_(()=>tt(e.fieldConfig.allow_reorder,!0)),m=_(()=>e.fieldConfig.collapsed),v=_(()=>e.fieldConfig.summary),b=_(()=>tt(e.fieldConfig.minimize_collapsed,!1)),y=_(()=>e.fieldConfig.label_singular),w=_(()=>e.fieldConfig.field),E=_(()=>e.fieldConfig.fields),k=_(()=>tt(e.fieldConfig.max,1/0)),S=_(()=>tt(e.fieldConfig.add_to_top,!1)),C=_(()=>e.fieldConfig.types),x=_(()=>tt(e.fieldConfig.typeKey,"type")),T=_(()=>Id(e.fieldConfig)),A=_(()=>l(T).hasSingleSubField),P=_(()=>l(T).hasVariableTypes),L=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.(\\d+)(.*)?`)),I=_(()=>r()?.isIndexFile??!1),N=_(()=>r()?.collection),D=_(()=>r()?.collectionName??""),B=_(()=>r()?.collectionFile),H=_(()=>r()?.fileName),W=_(()=>(l(B)??l(N))?._i18n??so),Y=_(()=>l(W).defaultLocale),O=_(()=>e.locale!==l(Y)&&l(f)==="duplicate"),F=_(()=>Dn(r()?.[c][e.locale])??{}),K=_(()=>`${e.keyPath}#`),J=_(()=>r()?.expanderStates?._[l(K)]??!0),Q=_(()=>ls(Object.fromEntries(Object.entries(l(F)).filter(([we])=>l(L).test(we)).map(([we,Pe])=>[we.replace(new RegExp(`^${Vt(e.keyPath)}`),l(u)),Pe])))[l(u)]??[]),oe=_(()=>l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,r()?.expanderStates?._[ye]??!0]})),re=_(()=>l(Q).length>=l(k)),ee=()=>{yo({[l(K)]:l(b)==="auto"?!l(Q).length:!l(b),...Object.fromEntries(l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,LP({key:ye,locale:e.locale,collapsed:l(m)})]}))})},ne=we=>{Object.keys(r()?.[c]??{}).forEach(Pe=>{l(f)!=="duplicate"&&Pe!==e.locale||PP({locale:Pe,valueStoreKey:c,keyPath:e.keyPath,manipulate:we})})},se=({index:we=l(S)?0:l(Q).length,dupIndex:Pe,type:ye}={})=>{ne(({valueList:it,expanderStateList:Qe})=>{const Le=ye?l(C)?.find(({name:Xe})=>Xe===ye)?.fields??[]:l(E)??(l(w)?[l(w)]:[]),ze=(()=>{if(typeof Pe=="number")return structuredClone(it[Pe]);const Xe=ls(of(Le,e.locale));return l(A)&&l(w)?Xe[l(w).name]:Xe})();ye&&(ze[l(x)]=ye),l(A)||(ze.__sc_item_id=crypto.randomUUID()),it.splice(we,0,ze),Qe.splice(we,0,!0)}),yo({[l(K)]:!0})},fe=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{Pe.splice(we,1),ye.splice(we,1)})},be=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{l(A)||(Pe[we].__sc_item_id??=crypto.randomUUID(),Pe[we+1].__sc_item_id??=crypto.randomUUID()),[Pe[we],Pe[we+1]]=[Pe[we+1],Pe[we]],[ye[we],ye[we+1]]=[ye[we+1],ye[we]]})},pe=(we,Pe)=>QF({collectionName:l(D),fileName:l(H),keyPath:e.keyPath,valueMap:l(F),locale:e.locale,summaryTemplate:Pe,hasSingleSubField:l(A),index:we,isIndexFile:l(I)});jt(()=>{ee()});var he=CW(),ge=M(he),ve=z(ge);{const we=it=>{{let Qe=_(()=>l(J)?"expand_more":"chevron_right");Je(it,{get name(){return l(Qe)}})}};let Pe=_(()=>!l(Q).length),ye=_(()=>l(J)?i()("collapse"):i()("expand"));Ze(ve,{iconic:!0,get disabled(){return l(Pe)},get"aria-label"(){return l(ye)},get"aria-expanded"(){return l(J)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{yo({[l(K)]:!l(J)})},startIcon:we,$$slots:{startIcon:!0}})}var _e=j(ve,2),$e=z(_e),Ce=j(_e,2);Xr(Ce,{flex:!0});var Re=j(Ce,2);{var He=we=>{var Pe=bW(),ye=M(Pe);{let Qe=_(()=>i()("expand_all")),Le=_(()=>l(oe).every(([,ze])=>ze));Ze(ye,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Le)},onclick:()=>{yo(Object.fromEntries(l(oe).map(([ze])=>[ze,!0])))}})}var it=j(ye,2);{let Qe=_(()=>i()("collapse_all")),Le=_(()=>l(oe).every(([,ze])=>!ze));Ze(it,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Le)},onclick:()=>{yo(Object.fromEntries(l(oe).map(([ze])=>[ze,!1])))}})}$(we,Pe)};q(Re,we=>{l(J)&&l(Q).length>1&&we(He)})}var Ye=j(ge,2);{var Ue=we=>{var Pe=_W(),ye=z(Pe);Pb(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:se}),$(we,Pe)};q(Ye,we=>{l(h)&&(l(S)||!l(Q).length)&&we(Ue)})}var Te=j(Ye,2);let Fe;ot(Te,23,()=>l(Q),(we,Pe)=>we.__sc_item_id??Pe,(we,Pe,ye)=>{ro(we,{children:(it,Qe)=>{const Le=_(()=>`${e.keyPath}.${l(ye)}`),ze=_(()=>r()?.expanderStates?._[l(Le)]??!0),Xe=_(()=>l(P)?l(C)?.find(({name:Ot})=>Ot===l(Pe)[l(x)]):void 0),st=_(()=>l(P)?l(Xe)?.fields??[]:l(E)??(l(w)?[l(w)]:[])),lt=_(()=>l(P)&&l(Xe)?.summary||l(v));var xt=$W(),Gt=z(xt);{const Ot=Kt=>{var Nt=X(),kt=M(Nt);{var un=br=>{var ei=yW(),dt=M(ei);{const kn=Tt=>{Je(Tt,{name:"arrow_upward"})};let Pr=_(()=>l(O)||l(ye)===0),jn=_(()=>i()("move_up"));Ze(dt,{size:"small",iconic:!0,get disabled(){return l(Pr)},get"aria-label"(){return l(jn)},onclick:()=>be(l(ye)-1),startIcon:kn,$$slots:{startIcon:!0}})}var Qt=j(dt,2);Xr(Qt,{});var Cn=j(Qt,2);{const kn=Tt=>{Je(Tt,{name:"arrow_downward"})};let Pr=_(()=>l(O)||l(ye)===l(Q).length-1),jn=_(()=>i()("move_down"));Ze(Cn,{iconic:!0,size:"small",get disabled(){return l(Pr)},get"aria-label"(){return l(jn)},onclick:()=>be(l(ye)),startIcon:kn,$$slots:{startIcon:!0}})}$(br,ei)};q(kt,br=>{l(g)&&br(un)})}$(Kt,Nt)},an=Kt=>{var Nt=SW(),kt=M(Nt);{var un=dt=>{{const Qt=kn=>{{let Pr=_(()=>i()("translation_options"));ar(kn,{get"aria-label"(){return l(Pr)},children:(jn,Tt)=>{var Bn=kW(),Ft=M(Bn);{let gn=_(()=>i()("duplicate"));gt(Ft,{get label(){return l(gn)},get disabled(){return l(re)},onclick:()=>se({index:l(ye)+1,dupIndex:l(ye)})})}var $i=j(Ft,2);{var zt=gn=>{var zr=wW(),Lr=M(zr);{const ti=ut=>{var vt=X(),An=M(vt);ot(An,17,()=>l(C)??[],({name:Pn,label:lr})=>Pn,(Pn,lr)=>{let ni=()=>l(lr).name,On=()=>l(lr).label;{let cr=_(()=>On()||ni());gt(Pn,{get label(){return l(cr)},onclick:()=>se({index:l(ye),type:ni()})})}}),$(ut,vt)};let Wt=_(()=>i()("add_item_above"));gt(Lr,{get label(){return l(Wt)},get disabled(){return l(re)},items:ti,$$slots:{items:!0}})}var lo=j(Lr,2);{const ti=ut=>{var vt=X(),An=M(vt);ot(An,17,()=>l(C)??[],({name:Pn,label:lr})=>Pn,(Pn,lr)=>{let ni=()=>l(lr).name,On=()=>l(lr).label;{let cr=_(()=>On()||ni());gt(Pn,{get label(){return l(cr)},onclick:()=>se({index:l(ye)+1,type:ni()})})}}),$(ut,vt)};let Wt=_(()=>i()("add_item_below"));gt(lo,{get label(){return l(Wt)},get disabled(){return l(re)},items:ti,$$slots:{items:!0}})}$(gn,zr)},gi=gn=>{var zr=xW(),Lr=M(zr);{let ti=_(()=>i()("add_item_above"));gt(Lr,{get label(){return l(ti)},get disabled(){return l(re)},onclick:()=>se({index:l(ye)})})}var lo=j(Lr,2);{let ti=_(()=>i()("add_item_below"));gt(lo,{get label(){return l(ti)},get disabled(){return l(re)},onclick:()=>se({index:l(ye)+1})})}$(gn,zr)};q($i,gn=>{l(P)?gn(zt):gn(gi,!1)})}$(jn,Bn)},$$slots:{default:!0}})}};let Cn=_(()=>i()("list_item_options"));Mr(dt,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Cn)},get disabled(){return l(O)},popup:Qt,$$slots:{popup:!0}})}};q(kt,dt=>{l(h)&&dt(un)})}var br=j(kt,2);{var ei=dt=>{{const Qt=kn=>{Je(kn,{name:"close"})};let Cn=_(()=>i()("remove"));Ze(dt,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Cn)},onclick:()=>fe(l(ye)),startIcon:Qt,$$slots:{startIcon:!0}})}};q(br,dt=>{l(p)&&dt(ei)})}$(Kt,Nt)};let xn=_(()=>l(P)?l(Xe)?.label||l(Xe)?.name:""),pn=_(()=>l(st).length?()=>yo({[l(Le)]:!l(ze)}):void 0);TP(Gt,{get label(){return l(xn)},get controlId(){return`list-${n}-item-${l(ye)??""}-body`},get expanded(){return l(ze)},get toggleExpanded(){return l(pn)},centerContent:Ot,endContent:an,$$slots:{centerContent:!0,endContent:!0}})}var bn=j(Gt,2),Xt=z(bn);{var Zt=Ot=>{var an=X(),xn=M(an);ot(xn,17,()=>l(st),pn=>pn.name,(pn,Kt)=>{ro(pn,{children:(Nt,kt)=>{{let un=_(()=>l(A)?`${e.keyPath}.${l(ye)}`:`${e.keyPath}.${l(ye)}.${l(Kt).name}`),br=_(()=>l(A)?"single-field-list-widget":void 0);ug(Nt,{get keyPath(){return l(un)},get locale(){return e.locale},get fieldConfig(){return l(Kt)},get context(){return l(br)}})}},$$slots:{default:!0}})}),$(Ot,an)},pt=Ot=>{var an=EW(),xn=z(an);{let pn=_(()=>o()?2:1);Cr(xn,{get lines(){return l(pn)},children:(Kt,Nt)=>{var kt=Oe();Z(un=>te(kt,un),[()=>pe(l(ye),l(lt))]),$(Kt,kt)},$$slots:{default:!0}})}$(Ot,an)};q(Xt,Ot=>{l(ze)?Ot(Zt):Ot(pt,!1)})}Z(()=>Se(bn,"id",`list-${n}-item-${l(ye)??""}-body`)),$(it,xt)},$$slots:{default:!0}})});var Ie=j(Te,2);{var Ae=we=>{var Pe=TW(),ye=z(Pe);Pb(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:se});var it=j(ye,2);Xr(it,{flex:!0}),$(we,Pe)};q(Ie,we=>{l(h)&&!l(S)&&l(Q).length&&we(Ae)})}Z(we=>{Se(_e,"id",`object-${n}-summary`),te($e,`${l(Q).length??""}
|
|
617
|
-
${((l(Q).length===1?l(y):void 0)||l(d)||l(u))??""}`),Se(Te,"id",`list-${n}-item-list`),Fe=rn(Te,1,"item-list svelte-1eiee9e",null,Fe,we)},[()=>({collapsed:!l(J)})]),$(t,he),ce(),a()}function
|
|
618
|
-
`)??"",!0)},p=()=>{const g=l(d).split(/\n/g);Object.keys(n()?.[o]??{}).forEach(m=>{l(f)!=="duplicate"&&m!==e.locale||(Object.keys(n()?.[o][m]??{}).forEach(v=>{v.match(`^${Vt(e.keyPath)}\\.\\d+$`)&&delete n()?.[o][m][v]}),g.forEach((v,b)=>{yt(We,Ee(n)[o][m][`${e.keyPath}.${b}`]=v,Ee(n))}))})};jt(()=>{G(u,!0)}),De(()=>{l(u)&&(e.currentValue,Ee(()=>{h()}))}),Xd(t,{autoResize:!0,flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-errormessage"(){return`${e.fieldId??""}-error`},oninput:()=>{p()},get value(){return l(d)},set value(g){G(d,g,!0)}}),ce(),i()}function NW(t,e){const n=zn();le(e,!0);let r=rt(e,["$$slots","$$events","$$legacy"]);const i=_(()=>Id(e.fieldConfig)),o=_(()=>l(i).hasSubFields),s=_(()=>l(o)?PW:LW);Ao(t,{get"aria-labelledby"(){return`list-${n}-summary`},children:(a,c)=>{var u=X(),d=M(u);Hn(d,()=>l(s),(f,h)=>{h(f,on(()=>r))}),$(a,u)},$$slots:{default:!0}}),ce()}var IW=(t,e)=>{t.key==="Enter"&&(t.stopPropagation(),e())},OW=(t,e)=>{t.stopPropagation(),e()},RW=U('<section role="group" tabindex="0" class="svelte-s650n2"><h4 class="svelte-s650n2"> </h4> <!></section>');const DW={hash:"svelte-s650n2",code:'[role="document"] section.svelte-s650n2 {overflow:hidden;margin:8px 0;padding:8px 0;}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2):not(:last-child) {margin-bottom:8px;}[role="document"] section.svelte-s650n2 > * {margin-inline:auto;max-width:768px;}[role="document"] section.svelte-s650n2 p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}[role="document"] section.svelte-s650n2 img {max-height:800px !important;}'};function xw(t,e){le(e,!0),ke(t,DW);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>tt(e.fieldConfig.label,"")),a=_(()=>tt(e.fieldConfig.widget,"string")),c=_(()=>tt(e.fieldConfig.preview,!0)),u=_(()=>tt(e.fieldConfig.i18n,!1)),d=_(()=>jc(e.fieldConfig)),f=_(()=>l(a)==="list"||l(d)),h=_(()=>n()?.isIndexFile??!1),p=_(()=>n()?.collection),g=_(()=>n()?.collectionName??""),m=_(()=>n()?.collectionFile),v=_(()=>n()?.fileName),b=_(()=>Dn(n()?.currentValues[e.locale]??{})),y=_(()=>NP({collectionName:l(g),fileName:l(v),valueMap:l(b),keyPath:e.keyPath,isIndexFile:l(h)})),w=_(()=>(l(m)??l(p))?._i18n??so),E=_(()=>l(w).i18nEnabled),k=_(()=>l(w).defaultLocale),S=_(()=>l(E)&&(l(u)===!0||l(u)==="translate")),C=_(()=>l(E)&&l(u)==="duplicate"),x=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.\\d+$`)),T=_(()=>l(f)?Object.entries(l(b)).filter(([N])=>l(x).test(N)).map(([,N])=>N).filter(N=>N!==void 0):l(b)[e.keyPath]),A=()=>{yo(Object.fromEntries(l(y).map(N=>[N,!0]))),window.requestAnimationFrame(()=>{const N=document.querySelector(`.content-editor .pane[data-mode="edit"] .field[data-key-path="${CSS.escape(e.keyPath)}"]`);if(N){typeof N.scrollIntoViewIfNeeded=="function"?N.scrollIntoViewIfNeeded():N.scrollIntoView();const D=N.querySelector(".widget-wrapper");(D?.querySelector('[contenteditable="true"], [tabindex="0"]')??D?.querySelector("input, textarea, button"))?.focus()}})};var P=X(),L=M(P);{var I=N=>{var D=RW();D.__keydown=[IW,A],D.__click=[OW,A];var B=z(D),H=z(B),W=j(B,2);{var Y=O=>{const F=_(()=>jk[l(a)]);var K=X(),J=M(K);Hn(J,()=>l(F),(Q,oe)=>{oe(Q,{get keyPath(){return e.keyPath},get locale(){return e.locale},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(T)}})}),$(O,K)};q(W,O=>{l(a)in jk&&O(Y)})}Z(()=>{Se(D,"data-widget",l(a)),Se(D,"data-key-path",e.keyPath),te(H,l(s)||l(o))}),$(N,D)};q(L,N=>{l(a)!=="hidden"&&l(c)&&(e.locale===l(k)||l(S)||l(C))&&N(I)})}$(t,P),ce(),i()}al(["keydown","click"]);var MW=U('<div role="none" class="header svelte-1fo9sk9"> </div>'),FW=U('<div role="group" class="subsection svelte-1fo9sk9"><!> <div role="none" class="items svelte-1fo9sk9"><!></div></div>');const zW={hash:"svelte-1fo9sk9",code:".subsection.svelte-1fo9sk9 {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-1fo9sk9 .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-1fo9sk9 {display:flex;align-items:center;height:24px;padding-inline:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-border-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);}.items.svelte-1fo9sk9 {padding:8px 16px;}.items.svelte-1fo9sk9:empty {display:none;}"};function IP(t,e){const n=zn();le(e,!0),ke(t,zW);const r=`${n}-header`;let i=ie(void 0);var o=FW(),s=z(o);{var a=d=>{var f=MW(),h=z(f);Z(()=>{Se(f,"id",r),te(h,e.label)}),$(d,f)};q(s,d=>{e.label&&d(a)})}var c=j(s,2),u=z(c);nn(u,()=>vc(l(i)),null,d=>{var f=X(),h=M(f);Me(h,()=>e.children??Be),$(d,f)}),bt(o,d=>G(i,d),()=>l(i)),Z(()=>Se(o,"aria-labelledby",e.label?r:void 0)),$(t,o),ce()}function jW(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>e.fieldConfig.field),a=_(()=>e.fieldConfig.fields),c=_(()=>e.fieldConfig.types),u=_(()=>tt(e.fieldConfig.typeKey,"type")),d=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.\\d+`)),f=_(()=>ls(Object.fromEntries(Object.entries(Dn(n()?.currentValues[e.locale])??{}).filter(([g])=>l(d).test(g)).map(([g,m])=>[g.replace(new RegExp(`^${Vt(e.keyPath)}`),l(o)),m])))[l(o)]??[]);var h=X(),p=M(h);ot(p,19,()=>l(f),(g,m)=>g.__sc_item_id??m,(g,m,v)=>{ro(g,{children:(b,y)=>{const w=_(()=>Array.isArray(l(c))?n()?.currentValues[e.locale][`${e.keyPath}.${l(v)}.${l(u)}`]:void 0),E=_(()=>l(c)?.find(({name:C})=>C===l(w))),k=_(()=>l(E)?l(E).label||l(E).name:void 0),S=_(()=>l(w)?l(E)?.fields??[]:l(a)??(l(s)?[l(s)]:[]));IP(b,{get label(){return l(k)},children:(C,x)=>{var T=X(),A=M(T);ot(A,17,()=>l(S),P=>P.name,(P,L)=>{ro(P,{children:(I,N)=>{{let D=_(()=>l(s)?`${e.keyPath}.${l(v)}`:`${e.keyPath}.${l(v)}.${l(L).name}`);xw(I,{get keyPath(){return l(D)},get locale(){return e.locale},get fieldConfig(){return l(L)}})}},$$slots:{default:!0}})}),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(t,h),ce(),i()}var BW=U("<li> </li>"),UW=U('<ul dir="auto"></ul>');function qW(t,e){le(e,!0);var n=X(),r=M(n);{var i=o=>{var s=UW();ot(s,21,()=>e.currentValue,vr,(a,c)=>{var u=BW(),d=z(u);Z(()=>te(d,l(c))),$(a,u)}),Z(a=>{Se(s,"lang",a),s.dir=s.dir},[()=>Tr(e.locale)]),$(o,s)};q(r,o=>{Array.isArray(e.currentValue)&&e.currentValue.length&&o(i)})}$(t,n),ce()}function VW(t,e){le(e,!0);let n=rt(e,["$$slots","$$events","$$legacy"]);const r=_(()=>Id(e.fieldConfig)),i=_(()=>l(r).hasSubFields),o=_(()=>l(i)?jW:qW);var s=X(),a=M(s);Hn(a,()=>l(o),(c,u)=>{u(c,on(()=>n))}),$(t,s),ce()}var HW=U('<div role="alert" class="search-result searching svelte-s9eab1"> </div>'),KW=U('<div role="alert" class="search-result no-result svelte-s9eab1"> </div>'),GW=U('<div role="none" class="toolbar svelte-s9eab1"><!> <!> <!></div> <!> <div role="application"></div>',1),WW=U("<!> <!>",1);const YW={hash:"svelte-s9eab1",code:`@import 'node_modules/leaflet/dist/leaflet.css';.toolbar.svelte-s9eab1 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-s9eab1 {padding:12px;color:var(--sui-secondary-foreground-color);}.map.svelte-s9eab1 {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;height:400px;background-clip:text;}.map.invalid.svelte-s9eab1 {border-color:var(--sui-error-border-color);}.leaflet-container {font-family:inherit !important;font-size:var(--sui-font-size-small) !important;}.leaflet-container a {color:var(--sui-primary-accent-color-text) !important;text-decoration:none !important;}.leaflet-bar a {border-color:var(--sui-button-border-color) !important;color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-button-background-color) !important;}.leaflet-control {color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-secondary-background-color-translucent) !important;}.leaflet-control-attribution {padding:4px 8px;}:root[data-theme="dark"] .leaflet-layer {filter:invert(100%) hue-rotate(180deg);}`};function JW(t,e){le(e,!0),ke(t,YW);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1);const c=_(()=>tt(e.fieldConfig.required,!0)),u=_(()=>tt(e.fieldConfig.decimals,7)),d=_(()=>tt(e.fieldConfig.type,"Point")),f=_(()=>l(d).toLowerCase());let h=ie(void 0),p=ie(void 0),g=ie(""),m=ie(""),v=ie(void 0),b=ie(!1),y=ie(!1),w=ie(""),E=0,k;const S=async()=>{if(!l(h))return;const O=await Ea("leaflet","dist/leaflet-src.esm.js"),{TerraDraw:F,TerraDrawLineStringMode:K,TerraDrawPointMode:J,TerraDrawPolygonMode:Q}=await Ea("terra-draw","dist/terra-draw.module.js"),{TerraDrawLeafletAdapter:oe}=await Ea("terra-draw-leaflet-adapter","dist/terra-draw-leaflet-adapter.module.js?module");k=O.map(l(h),{center:[0,0],zoom:2}),O.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(k),l(h).querySelectorAll('a[href^="https:"]').forEach(ee=>{ee.setAttribute("target","_blank"),ee.setAttribute("rel","noopener noreferrer")}),new ResizeObserver(()=>{k?.invalidateSize()}).observe(l(h));const re=new F({adapter:new oe({lib:O,map:k}),modes:[new J,new K,new Q]});re.start(),re.setMode(l(f)),re.on("change",(ee,ne)=>{C(ne)}),G(p,re,!0)},C=O=>{if(l(p)&&O==="create"){const F=l(p).getSnapshot(),K=F.findLast(oe=>oe.geometry.type===l(d));if(!K)return;const{type:J,coordinates:Q}=K.geometry;G(g,JSON.stringify({type:J,coordinates:Q.map(oe=>Array.isArray(oe)?oe.map(re=>Array.isArray(re)?re.map(ee=>fa(ee,l(u))):fa(re,l(u))):fa(oe,l(u)))}),!0),l(d)==="Point"&&l(p).removeFeatures(F.filter(oe=>oe.id!==K.id).map(oe=>oe.id))}},x=()=>{if(!l(p))return;let O=o()??"",F;try{if(O!==void 0&&(F=JSON.parse(O),!Yt(F)||F.type!==l(d)||!Array.isArray(F.coordinates)))throw new Error("Invalid object")}catch{O="",F=void 0}if(l(g)!==O&&(G(g,O,!0),l(p).clear(),F&&(l(p).addFeatures([{type:"Feature",geometry:F,properties:{mode:l(f)}}]),F.coordinates.every(K=>typeof K=="number")))){const[K,J]=F.coordinates;k?.setView([J,K],15)}},T=()=>{if(!l(p))return;const O=l(g);o()!==O&&o(O)},A=()=>{window.clearTimeout(E),E=window.setTimeout(async()=>{const O=l(m).trim();if(!O)return;G(b,!0);const K=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:O,format:"jsonv2"})}`;try{G(v,await Od(K),!0)}catch{G(v,[],!0)}G(b,!1)},500)},P=({latitude:O,longitude:F})=>{if(!l(p))return;O=fa(O,l(u)),F=fa(F,l(u));const K={type:"Point",coordinates:[F,O]};l(p).clear(),l(p).addFeatures([{type:"Feature",geometry:K,properties:{mode:"point"}}]),k?.setView([O,F],15),G(g,JSON.stringify(K),!0)},L=({lat:O,lon:F})=>{P({latitude:parseFloat(O),longitude:parseFloat(F)})},I=()=>{if(!navigator.geolocation){G(y,!0),G(w,n()("geolocation_unsupported"),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:O,longitude:F}})=>{P({latitude:O,longitude:F})},O=>{G(y,!0),G(w,n()("geolocation_error_body"),!0),console.error("Error getting current location:",O)})},N=()=>{o("")};jt(()=>{S()}),De(()=>{l(p),o(),Ee(()=>{x()})}),De(()=>{l(g),Ee(()=>{T()})}),De(()=>{l(m),Ee(()=>{A()})});var D=WW(),B=M(D);{var H=O=>{var F=GW(),K=M(F),J=z(K);{let pe=_(()=>n()("find_place"));Bp(J,{get readonly(){return s()},flex:!0,get placeholder(){return l(pe)},get value(){return l(m)},set value(he){G(m,he,!0)}})}var Q=j(J,2);{const pe=ve=>{Je(ve,{name:"near_me"})};let he=_(()=>n()("use_your_location")),ge=_(()=>n()("use_your_location"));Ze(Q,{variant:"tertiary",iconic:!0,get title(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return s()},onclick:()=>{I()},startIcon:pe,$$slots:{startIcon:!0}})}var oe=j(Q,2);{var re=pe=>{{let he=_(()=>n()("clear")),ge=_(()=>s()||!o());Ze(pe,{variant:"tertiary",get label(){return l(he)},get disabled(){return l(ge)},onclick:()=>{N()}})}};q(oe,pe=>{l(c)||pe(re)})}var ee=j(K,2);{var ne=pe=>{var he=HW(),ge=z(he);Z(ve=>te(ge,ve),[()=>n()("searching")]),$(pe,he)},se=pe=>{var he=X(),ge=M(he);{var ve=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{var Ye=X(),Ue=M(Ye);{var Te=Ie=>{{let Ae=_(()=>n()("search_results"));Gc(Ie,{get"aria-label"(){return l(Ae)},children:(we,Pe)=>{var ye=X(),it=M(ye);ot(it,17,()=>l(v),Qe=>Qe.place_id,(Qe,Le)=>{Sr(Qe,{get label(){return l(Le).display_name},onSelect:()=>{L(l(Le))}})}),$(we,ye)},$$slots:{default:!0}})}},Fe=Ie=>{var Ae=KW(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>n()("no_results")]),$(Ie,Ae)};q(Ue,Ie=>{l(v).length?Ie(Te):Ie(Fe,!1)})}$(He,Ye)};q(Ce,He=>{l(v)&&He(Re)})}$(_e,$e)};q(ge,_e=>{l(m)&&_e(ve)},!0)}$(pe,he)};q(ee,pe=>{l(b)?pe(ne):pe(se,!1)})}var fe=j(ee,2);let be;bt(fe,pe=>G(h,pe),()=>l(h)),Z(pe=>{be=rn(fe,1,"map svelte-s9eab1",null,be,pe),fe.inert=s()},[()=>({invalid:a()})]),$(O,F)},W=O=>{var F=Oe();Z(()=>te(F,`The ${l(d)??""} type is not yet supported.`)),$(O,F)};q(B,O=>{l(d)==="Point"?O(H):O(W,!1)})}var Y=j(B,2);{let O=_(()=>n()("geolocation_error_title"));jp(Y,{get title(){return l(O)},get open(){return l(y)},set open(F){G(y,F,!0)},children:(F,K)=>{var J=Oe();Z(()=>te(J,l(w))),$(F,J)},$$slots:{default:!0}})}$(t,D),ce(),i()}var XW=U('<pre class="svelte-ise554"> </pre>');const ZW={hash:"svelte-ise554",code:"pre.svelte-ise554 {white-space:pre-wrap;}"};function QW(t,e){ke(t,ZW);var n=X(),r=M(n);{var i=o=>{var s=XW(),a=z(s);Z(()=>te(a,e.currentValue)),$(o,s)};q(r,o=>{e.currentValue&&o(i)})}$(t,n)}const md=/^.+?:\w+:/,eY=["rich_text","raw"],tY={rich_text:"rich-text",raw:"plain-text"},nY=["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","bulleted-list","numbered-list","quote"],rY={bold:"bold",italic:"italic",code:"code",link:"link","heading-one":"heading-1","heading-two":"heading-2","heading-three":"heading-3","heading-four":"heading-4","heading-five":"heading-5","heading-six":"heading-6","bulleted-list":"bulleted-list","numbered-list":"numbered-list",quote:"blockquote","code-block":"code-block"},iY=["code-block","image"];var oY=(t,e,n)=>{!t.target.matches("button, input, textarea")&&t.key!=="Tab"&&t.preventDefault(),t.target===l(e)&&t.key==="Backspace"&&n()(new CustomEvent("remove"))},sY=U('<div role="group" class="wrapper svelte-ykjmq3" contenteditable="false" tabindex="0"><header role="none" class="svelte-ykjmq3"><h3 role="none" class="svelte-ykjmq3"> </h3> <!></header> <!></div>');const aY={hash:"svelte-ykjmq3",code:`.wrapper.svelte-ykjmq3 {display:inline-block;border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color);background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;}.wrapper.svelte-ykjmq3:focus {outline-color:var(--sui-primary-accent-color-translucent);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) {display:flex;align-items:center;justify-content:space-between;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) h3:where(.svelte-ykjmq3) {padding:0 8px;font-size:var(--sui-font-size-small);font-weight:600;}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) button {padding:0;height:16px;}
|
|
614
|
+
}.wrapper.svelte-5b1zbe .listbox {flex:none;background-color:transparent;}.wrapper.svelte-5b1zbe .content-pane:where(.svelte-5b1zbe) {overflow:auto;flex:auto;}.filter-tools.svelte-5b1zbe {display:flex;gap:8px;}`};function EG(t,e){const n=zn();le(e,!0),ke(t,SG);const r=()=>V(ue,"$_",f),i=()=>V(e.entryDraft,"$entryDraft",f),o=()=>V(ul,"$globalAssetFolder",f),s=()=>V(Mn,"$allAssets",f),a=()=>V(ft,"$prefs",f),c=()=>V(cn,"$isSmallScreen",f),u=()=>V(ll,"$showContentOverlay",f),d=()=>V(oc,"$selectAssetsView",f),[f,h]=me(),p=pe=>{var he=mG(),ge=M(he);{var ve=Ce=>{var Re=gG(),He=M(Re);{var Ye=Te=>{{let Fe=_(()=>oc);fw(Te,{get currentView(){return l(Fe)},"aria-controls":"select-assets-grid"})}};q(He,Te=>{d()&&Te(Ye)})}var Ue=j(He,2);{let Te=_(()=>l(T).some(Ie=>Ie.file)),Fe=_(()=>r()(`assets_dialog.search_for_${e.kind??"file"}`));Bp(Ue,{get flex(){return c()},get disabled(){return l(Te)},get"aria-label"(){return l(Fe)},get value(){return l(E)},set value(Ie){G(E,Ie,!0)}})}$(Ce,Re)};q(ge,Ce=>{(l(I)||l(Y))&&Ce(ve)})}var _e=j(ge,2);{var $e=Ce=>{{const Re=Ye=>{Je(Ye,{name:"cloud_upload"})};let He=_(()=>r()("upload"));Ze(Ce,{variant:"primary",get label(){return l(He)},onclick:()=>{l(x)?.open()},startIcon:Re,$$slots:{startIcon:!0}})}};q(_e,Ce=>{l(I)&&Ce($e)})}$(pe,he)};let g=R(e,"open",15,!1),m=R(e,"multiple",3,!1),v=R(e,"accept",19,()=>e.kind==="image"?xo.join(","):void 0),b=R(e,"canEnterURL",3,!0),y=R(e,"onSelect",3,void 0),w=ie(""),E=ie(""),k=ie("default-global"),S=ie(St([])),C=ie(St([])),x=ie(void 0),T=ie(St([]));const A=_(()=>e.kind==="image"?r()("assets_dialog.title.image"):r()("assets_dialog.title.file")),P=_(()=>rf(l(E))),L=_(()=>{const pe=i()?.collectionName??"",he=i()?.fileName,ge=he?eo({collectionName:pe,fileName:he}):void 0,ve=eo({collectionName:pe}),_e=ge??ve;return{entry:{folder:_e,enabled:!!_e&&(_e.entryRelative||_e.hasTemplateTags)},file:{folder:ge,enabled:!!ge&&!ge.entryRelative&&!ge.hasTemplateTags},collection:{folder:ve,enabled:!!ve&&!ve.entryRelative&&!ve.hasTemplateTags},global:{folder:o(),enabled:!0}}}),I=_(()=>l(k).startsWith("default-")),N=_(()=>l(I)?l(L)[l(k).replace("default-","")].folder:void 0),D=_(()=>i()?.originalEntry),B=_(()=>l(N)?.entryRelative&&l(D)?fn(Object.values(l(D).locales)[0].path).dirname:l(N)?.internalPath),H=_(()=>[...s(),...l(C)].filter(pe=>!e.kind||e.kind===pe.kind).sort((pe,he)=>pe.name.localeCompare(he.name)).sort((pe,he)=>+!!he.unsaved-+!!pe.unsaved)),W=_(()=>{const{providers:pe=[]}=$P({fieldConfig:e.fieldConfig});return Object.entries(Xh).filter(([he])=>pe.includes(he))}),Y=_(()=>l(W).map(([pe])=>pe).includes(l(k))&&a()?.apiKeys?.[l(k)]||Object.keys(Of).includes(l(k))&&a()?.logins?.[l(k)]),O=_(()=>Object.entries(Of)),F=_(()=>[...l(W),...l(O)]),K=_(()=>c()?pl:Gc),J=async({file:pe,blobURL:he,folder:ge})=>{const{name:ve,size:_e}=pe;return{unsaved:!0,file:pe,blobURL:he??URL.createObjectURL(pe),name:ve,path:`${l(B)}/${ve}`,sha:await Ua(pe),size:_e,kind:Ld(ve),folder:ge}},Q=async()=>Promise.all([...Object.entries(i()?.files??{}).map(async([pe,{file:he,folder:ge}])=>J({file:he,blobURL:pe,folder:ge})),...Object.values(l(S))]),oe=async({hash:pe,folder:he})=>(await Promise.all(l(C).map(async ve=>!!ve.file&&ln(ve.folder,he)&&await za(ve.file)===pe))).includes(!0),re=async pe=>{const he=await za(pe),ge=l(N);if(await oe({hash:he,folder:ge}))return;const ve=await J({file:pe,folder:ge});return l(S).push(ve),{asset:ve}},ee=async pe=>{G(T,(await Promise.all(pe.map(re))).filter(he=>!!he),!0)},ne=()=>{G(w,""),G(E,""),G(S,[],!0),G(C,[],!0),G(T,[],!0)};gN(()=>{const pe=Object.entries(l(L)).find(([,{enabled:he}])=>he)?.[0];G(k,`default-${pe}`)}),De(()=>{i()?.files,l(S),(async()=>G(C,await Q(),!0))()}),De(()=>{u()||g(!1)});var se=kG(),fe=M(se);{const pe=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{p(He)};q(Ce,He=>{c()||He(Re)})}$(_e,$e)},he=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{const Ye=_(()=>{const{showServiceLink:Ie,serviceLabel:Ae,serviceURL:we}=Xh[l(k)]??{};return{showServiceLink:Ie,serviceLabel:Ae,serviceURL:we}});var Ue=X(),Te=M(Ue);{var Fe=Ie=>{var Ae=vG(),we=z(Ae);Z(Pe=>{Se(Ae,"href",l(Ye).serviceURL),te(we,Pe)},[()=>r()("prefs.media.stock_photos.credit",{values:{service:l(Ye).serviceLabel}})]),$(Ie,Ae)};q(Te,Ie=>{l(Ye).showServiceLink&&Ie(Fe)})}$(He,Ue)};q(Ce,He=>{l(Y)&&He(Re)})}$(_e,$e)};let ge=_(()=>r()("insert")),ve=_(()=>!l(T).length);ji(fe,{get title(){return l(A)},size:"x-large",get okLabel(){return l(ge)},get okDisabled(){return l(ve)},focusInput:!1,onOk:()=>{if(!l(T).length)return;const _e=Dn(l(T)).map($e=>{const{unsaved:Ce,file:Re,folder:He}=$e.asset??{};return Ce?{file:Re,folder:He}:$e});y()?.(_e)},onClose:()=>{ne()},get open(){return g()},set open(_e){g(_e)},headerExtra:pe,footerExtra:he,children:(_e,$e)=>{var Ce=xG(),Re=z(Ce),He=z(Re);{let ye=_(()=>r()("assets_dialog.locations"));Hn(He,()=>l(K),(it,Qe)=>{Qe(it,{class:"tabs",get"aria-label"(){return l(ye)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:Le=>{G(k,Le.detail.name,!0),G(T,[],!0)},children:(Le,ze)=>{var Xe=_G(),st=M(Xe);{let Xt=_(()=>r()("asset_location.repository"));Ca(st,{get label(){return l(Xt)},children:(Zt,pt)=>{var Ot=X(),an=M(Ot);ot(an,17,()=>Object.entries(l(L)),([xn,{enabled:pn}])=>xn,(xn,pn)=>{var Kt=_(()=>So(l(pn),2));let Nt=()=>l(Kt)[0],kt=()=>l(Kt)[1].enabled;var un=X(),br=M(un);{var ei=dt=>{const Qt=_(()=>`default-${Nt()}`);{let Cn=_(()=>r()(`assets_dialog.folder.${Nt()}`)),kn=_(()=>l(k)===l(Qt));Sr(dt,{get name(){return l(Qt)},get label(){return l(Cn)},get selected(){return l(kn)}})}};q(br,dt=>{kt()&&dt(ei)})}$(xn,un)}),$(Zt,Ot)},$$slots:{default:!0}})}var lt=j(st,2);{var xt=Xt=>{{let Zt=_(()=>r()("asset_location.external"));Ca(Xt,{get label(){return l(Zt)},children:(pt,Ot)=>{var an=bG(),xn=M(an);{var pn=Nt=>{{let kt=_(()=>r()("assets_dialog.enter_url"));Sr(Nt,{name:"enter-url",get label(){return l(kt)}})}};q(xn,Nt=>{b()&&Nt(pn)})}var Kt=j(xn,2);ot(Kt,17,()=>Object.values(Of),Nt=>Nt.serviceId,(Nt,kt)=>{const un=_(()=>{const{serviceId:br,serviceLabel:ei}=l(kt);return{serviceId:br,serviceLabel:ei}});Sr(Nt,{get name(){return l(un).serviceId},get label(){return l(un).serviceLabel}})}),$(pt,an)},$$slots:{default:!0}})}};q(lt,Xt=>{(b()||Object.keys(Of).length)&&Xt(xt)})}var Gt=j(lt,2);{var bn=Xt=>{{let Zt=_(()=>r()("asset_location.stock_photos"));Ca(Xt,{get label(){return l(Zt)},children:(pt,Ot)=>{var an=X(),xn=M(an);ot(xn,17,()=>l(W),([pn,{serviceLabel:Kt}])=>pn,(pn,Kt)=>{var Nt=_(()=>So(l(Kt),2));let kt=()=>l(Nt)[0],un=()=>l(Nt)[1].serviceLabel;Sr(pn,{get name(){return kt()},get label(){return un()}})}),$(pt,an)},$$slots:{default:!0}})}};q(Gt,Xt=>{l(W).length&&Xt(bn)})}$(Le,Xe)},$$slots:{default:!0}})})}var Ye=j(He,2);{var Ue=ye=>{var it=yG(),Qe=z(it);p(Qe),$(ye,it)};q(Ye,ye=>{c()&&ye(Ue)})}var Te=j(Re,2),Fe=z(Te);{var Ie=ye=>{{let it=_(()=>l(H).filter(Qe=>ln(Qe.folder,l(N))&&(l(N).entryRelative?fn(Qe.path).dirname===l(B):!0)));nG(ye,{get accept(){return v()},get multiple(){return m()},get assets(){return l(it)},get searchTerms(){return l(P)},get basePath(){return l(N).internalPath},onDrop:({files:Qe})=>{ee(Qe)},get selectedResources(){return l(T)},set selectedResources(Qe){G(T,Qe,!0)}})}};q(Fe,ye=>{l(I)&&l(N)&&ye(Ie)})}var Ae=j(Fe,2);{var we=ye=>{pr(ye,{children:(it,Qe)=>{var Le=wG(),ze=M(Le),Xe=z(ze),st=j(ze,2);Nn(st,{flex:!0,oninput:()=>{const lt=l(w).trim();G(T,lt?[{url:lt}]:[],!0)},get value(){return l(w)},set value(lt){G(w,lt,!0)}}),Z(lt=>te(Xe,lt),[()=>e.kind==="image"?r()("assets_dialog.enter_image_url"):r()("assets_dialog.enter_file_url")]),$(it,Le)},$$slots:{default:!0}})};q(Ae,ye=>{b()&&l(k)==="enter-url"&&ye(we)})}var Pe=j(Ae,2);ot(Pe,17,()=>l(F),([ye,it])=>ye,(ye,it)=>{var Qe=_(()=>So(l(it),2));let Le=()=>l(Qe)[0],ze=()=>l(Qe)[1];var Xe=X(),st=M(Xe);{var lt=xt=>{KK(xt,{get kind(){return e.kind},get multiple(){return m()},get searchTerms(){return l(P)},get serviceProps(){return ze()},gridId:"select-assets-grid",get selectedResources(){return l(T)},set selectedResources(Gt){G(T,Gt,!0)}})};q(st,xt=>{l(k)===Le()&&xt(lt)})}$(ye,Xe)}),Z(()=>Se(Te,"id",`${n}-content-pane`)),$(_e,Ce)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}var be=j(fe,2);bt(ay(be,{get accept(){return v()},onSelect:({files:pe})=>{ee(pe)}}),pe=>G(x,pe,!0),()=>l(x)),$(t,se),ce(),h()}var $G=U('<div role="status"> </div>'),TG=U('<!> <div role="none"><!></div>',1),CG=U('<div role="none"><!></div>');const AG={hash:"svelte-qqvxpl",code:".empty.svelte-qqvxpl button {flex-direction:column;justify-content:center;height:120px;font-size:var(--sui-font-size-small);}.empty.svelte-qqvxpl button .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.empty.svelte-qqvxpl button:disabled {pointer-events:none !important;}.empty.svelte-qqvxpl button:disabled * {opacity:0.5;}.empty.invalid.svelte-qqvxpl button {border-color:var(--sui-error-border-color);}"};function PG(t,e){le(e,!0),ke(t,AG);const n=()=>V(ue,"$_",i),r=()=>V(ru,"$hasMouse",i),[i,o]=me();let s=R(e,"showSelectAssetsDialog",15,!1),a=R(e,"replaceMode",15,!1);var c=CG();let u;var d=z(c);{let f=_(()=>e.readonly||e.processing);Ze(d,{flex:!0,role:"button",variant:"tertiary",get disabled(){return l(f)},tabindex:"0",onclick:()=>{e.readonly||(a(!1),s(!0))},children:(h,p)=>{var g=TG(),m=M(g);Je(m,{name:"cloud_upload"});var v=j(m,2),b=z(v);{var y=E=>{var k=$G(),S=z(k);Z(C=>te(S,C),[()=>n()("processing_file")]),$(E,k)},w=E=>{var k=X(),S=M(k);{var C=T=>{var A=X(),P=M(A);{var L=N=>{var D=Oe();Z(B=>te(D,B),[()=>n()(`drop_image_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)},I=N=>{var D=Oe();Z(B=>te(D,B),[()=>n()(`drop_${e.multiple?"files":"file"}_or_click_to_browse`)]),$(N,D)};q(P,N=>{e.isImageWidget?N(L):N(I,!1)})}$(T,A)},x=T=>{var A=Oe();Z(P=>te(A,P),[()=>n()("tap_to_browse")]),$(T,A)};q(S,T=>{r()?T(C):T(x,!1)},!0)}$(E,k)};q(b,E=>{e.processing?E(y):E(w,!1)})}$(h,g)},$$slots:{default:!0}})}Z(f=>u=rn(c,1,"empty svelte-qqvxpl",null,u,f),[()=>({invalid:e.invalid,processing:e.processing})]),$(t,c),ce(),o()}var LG=U('<div role="toolbar" class="reorder-controls svelte-1ncvwuf"><!> <!></div>'),NG=U('<span role="none" class="preview no-thumbnail"><!></span>'),IG=U('<div role="textbox" tabindex="0" class="filename svelte-1ncvwuf"> </div>'),OG=U('<div role="none" class="filled svelte-1ncvwuf"><!> <!> <div role="none" class="svelte-1ncvwuf"><!> <div role="none"><!> <!></div></div></div>');const RG={hash:"svelte-1ncvwuf",code:".filled.svelte-1ncvwuf {display:flex !important;align-items:center;gap:12px;margin:var(--sui-focus-ring-width);}.filled.svelte-1ncvwuf .preview {flex:none;width:120px !important;height:120px !important;border-color:var(--sui-control-border-color) !important;border-radius:var(--sui-control-medium-border-radius);padding:8px !important;}.filled.svelte-1ncvwuf .preview.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);}.filled.svelte-1ncvwuf .preview.no-thumbnail .icon {font-size:64px;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) {flex:auto;overflow:hidden;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;}.filled.svelte-1ncvwuf > div:where(.svelte-1ncvwuf) .filename:where(.svelte-1ncvwuf):empty {margin:0;padding:0;}.reorder-controls.svelte-1ncvwuf {flex:none !important;display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:4px;border:1px solid var(--sui-control-border-color);border-radius:var(--sui-control-medium-border-radius);height:-moz-available;height:-webkit-fill-available;height:stretch;background-color:var(--sui-secondary-border-color);}.reorder-controls.svelte-1ncvwuf button {padding:0;height:16px;}"};function Ak(t,e){le(e,!0),ke(t,RG);const n=()=>V(We,"$entryDraft",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1),c=R(e,"required",3,!1),u=R(e,"collectionName",3,""),d=R(e,"fileName",3,void 0),f=R(e,"entry",3,void 0);let h=ie(void 0),p=ie(void 0),g=ie(void 0),m=ie(void 0);const v=_(()=>e.widgetName==="image"),b=_(()=>{if(!e.value)return"";if(l(p)){const{publicPath:H,entryRelative:W,hasTemplateTags:Y}=n()?.files[e.value].folder??{};return hc([W||Y?"":H||"",decodeURI(l(p).name.normalize())])}if(!e.value.startsWith("blob:")){const H=decodeURI(e.value);if(dp(H)){const W=new URL(H);if(W.search)return W.search="",`${W}…`}return H}return""}),y=async()=>{if(e.value?.startsWith("blob:")&&n()&&G(p,n().files[e.value]?.file,!0),e.value){const H={value:e.value,entry:f(),collectionName:u(),fileName:d()};e.value.startsWith("blob:")?(G(h,void 0),G(g,e.value?await CT(e.value):void 0,!0),G(m,e.value&&l(g)?await pc({...H,thumbnail:!0}):void 0,!0)):l(v)&&/^https?:/.test(e.value)?(G(h,void 0),G(g,"image"),G(m,e.value,!0)):(G(h,V_({...H}),!0),G(g,void 0),G(m,void 0))}else G(h,void 0),G(p,void 0),G(g,void 0),G(m,void 0)};De(()=>{e.value,Ee(()=>{y()})});var w=OG(),E=z(w);{var k=H=>{var W=LG(),Y=z(W);{const F=Q=>{Je(Q,{name:"arrow_upward"})};let K=_(()=>!e.onMoveUp),J=_(()=>r()("move_up"));Ze(Y,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveUp?.()},startIcon:F,$$slots:{startIcon:!0}})}var O=j(Y,2);{const F=Q=>{Je(Q,{name:"arrow_downward"})};let K=_(()=>!e.onMoveDown),J=_(()=>r()("move_down"));Ze(O,{size:"small",iconic:!0,get disabled(){return l(K)},get"aria-label"(){return l(J)},onclick:()=>{e.onMoveDown?.()},startIcon:F,$$slots:{startIcon:!0}})}$(H,W)};q(E,H=>{(e.onMoveUp||e.onMoveDown)&&!s()&&H(k)})}var S=j(E,2);{var C=H=>{Ro(H,{get kind(){return l(g)},get src(){return l(m)},variant:"tile",checkerboard:!0})},x=H=>{var W=X(),Y=M(W);{var O=K=>{Ro(K,{get kind(){return l(h).kind},get asset(){return l(h)},variant:"tile",checkerboard:!0})},F=K=>{var J=NG(),Q=z(J);Je(Q,{name:"draft"}),$(K,J)};q(Y,K=>{l(h)?K(O):K(F,!1)},!0)}$(H,W)};q(S,H=>{l(g)&&l(m)?H(C):H(x,!1)})}var T=j(S,2),A=z(T);{var P=H=>{var W=IG(),Y=z(W);Z(()=>{Se(W,"id",`${e.fieldId??""}-value`),Se(W,"aria-readonly",s()),Se(W,"aria-invalid",a()),Se(W,"aria-required",c()),Se(W,"aria-labelledby",`${e.fieldId??""}-label`),Se(W,"aria-errormessage",`${e.fieldId??""}-error`),te(Y,l(b))}),$(H,W)};q(A,H=>{typeof e.value=="string"&&H(P)})}var L=j(A,2),I=z(L);{var N=H=>{{let W=_(()=>r()("replace")),Y=_(()=>r()(`replace_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onReplace()}})}};q(I,H=>{e.onReplace&&H(N)})}var D=j(I,2);{var B=H=>{{let W=_(()=>r()("remove")),Y=_(()=>r()(`remove_${e.widgetName}`));Ze(H,{get disabled(){return s()},variant:"tertiary",size:"small",get label(){return l(W)},get"aria-label"(){return l(Y)},get"aria-controls"(){return`${e.fieldId??""}-value`},onclick:()=>{e.onRemove()}})}};q(D,H=>{e.onRemove&&H(B)})}$(t,w),ce(),o()}const Pk=async({draft:t,file:e})=>{const n=await za(e);let r;return await Promise.all(Object.entries(t.files??{}).map(async([i,o])=>{!r&&await za(o.file)===n&&(r=i)})),r},DG=async({draft:t,resource:e,libraryConfig:n})=>{const{transformations:r,max_file_size:i}=n??{},{url:o,credit:s}=e;let{asset:a,file:c}=e,u="",d;if(c){const f=await Pk({draft:t,file:c});if(f)u=f;else{r&&(c=await $T(c,r));const h=await Ua(c),{folder:p}=e,g=ae(Mn).find(m=>m.sha===h&&ln(m.folder,p));g?(a=g,c=void 0):c.size>i?(d=c.name,c=void 0):(u=URL.createObjectURL(c),t.files[u]={file:c,folder:p})}}return a&&(a.unsaved?a.file&&(u=await Pk({draft:t,file:a.file})):u=Qu(a,{pathOnly:!0,allowSpecial:!0,entry:t.originalEntry})),o&&!c&&!a&&(u=o),{value:u,credit:s?Dr.sanitize(s,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]}):"",oversizedFileName:d}};var MG=U('<div role="none" class="item-list svelte-1libnfj"></div> <!>',1),FG=U('<div role="none"> </div> <div role="none"><!></div>',1),zG=U("<!> <!> <!> <!>",1);const jG={hash:"svelte-1libnfj",code:".item-list.svelte-1libnfj {display:flex;flex-direction:column;gap:4px;}"};function Lk(t,e){le(e,!0),ke(t,jG);const n=()=>V(We,"$entryDraft",o),r=()=>V(ul,"$globalAssetFolder",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=ne=>{PG(ne,{get invalid(){return h()},get readonly(){return f()},get processing(){return l(E)},get isImageWidget(){return l(L)},get multiple(){return l(N)},get showSelectAssetsDialog(){return l(p)},set showSelectAssetsDialog(se){G(p,se,!0)},get replaceMode(){return l(g)},set replaceMode(se){G(g,se,!0)}})},{widgetContext:c=void 0}=tr("field-editor")??{};let u=R(e,"currentValue",15),d=R(e,"required",3,!0),f=R(e,"readonly",3,!1),h=R(e,"invalid",3,!1),p=ie(!1),g=ie(!1),m=ie(-1),v=ie(!1),b=ie(!1),y=ie(""),w=ie(void 0),E=ie(!1);const k=_(()=>e.fieldConfig.widget),S=_(()=>tt(e.fieldConfig.max,1/0)),C=_(()=>e.fieldConfig.accept),x=_(()=>tt(e.fieldConfig.choose_url,!0)),T=_(()=>n()?.originalEntry),A=_(()=>n()?.collectionName??""),P=_(()=>n()?.fileName),L=_(()=>l(k)==="image"),I=_(()=>Pd({fieldConfig:e.fieldConfig}).config),N=_(()=>Ip(e.fieldConfig)),D=_(()=>l(I).max_file_size),B=_(()=>!d()&&(!c||!["markdown-editor-component","single-field-list-widget"].includes(c))),H=_(()=>({widgetName:l(k),readonly:f(),invalid:h(),required:d(),showRemoveButton:l(B),collectionName:l(A),fileName:l(P),entry:l(T)})),W=()=>{l(w)?.reset(),l(N)||(u(""),Ac())},Y=async ne=>{if(!n())return;W(),G(E,!0);const se=await Promise.all(ne.map(he=>DG({draft:n(),resource:he,libraryConfig:l(I)}))),fe=[],be=[],pe=l(N)?Object.keys(n().currentValues[e.locale]).filter(he=>he.startsWith(`${e.keyPath}.`)).map(he=>Number(he.replace(`${e.keyPath}.`,""))).pop()??-1:-1;se.forEach(({value:he,credit:ge,oversizedFileName:ve},_e)=>{if(he)if(l(N)){const $e=l(g)?l(m):pe+1+_e;yt(We,Ee(n).currentValues[e.locale][`${e.keyPath}.${$e}`]=he,Ee(n))}else u(he);ge&&fe.push(ge),ve&&be.push(ve)}),fe.length?(G(y,fe.join(`
|
|
615
|
+
`),!0),G(b,!0)):G(y,""),be.length&&G(v,!0),G(E,!1)},O=({files:ne})=>{if(!ne.length)return;const se=eo({collectionName:l(A),fileName:l(P)})??eo({collectionName:l(A)})??r();Y(ne.map(fe=>({file:fe,folder:se})))},F=ne=>{if(!n())return;const se=Dn(n().currentValues[e.locale]),fe=[];for(let be=0;;be+=1){const pe=`${e.keyPath}.${be}`,he=`${e.keyPath}.${be+1}`;if(be<ne)fe.push(se[pe]);else if(he in se)fe.push(se[he]),yt(We,Ee(n).currentValues[e.locale][pe]=se[he],Ee(n));else{yt(We,Ee(n).currentValues[e.locale][pe]=null,Ee(n)),delete n().currentValues[e.locale][pe];break}}u(Object.values(fe))},K=ne=>{n()&&(se=>{var fe=So(se,2);yt(We,Ee(n).currentValues[e.locale][`${e.keyPath}.${ne}`]=fe[0],Ee(n)),yt(We,Ee(n).currentValues[e.locale][`${e.keyPath}.${ne+1}`]=fe[1],Ee(n))})([n().currentValues[e.locale][`${e.keyPath}.${ne+1}`],n().currentValues[e.locale][`${e.keyPath}.${ne}`]])};var J=zG(),Q=M(J);{let ne=_(()=>l(C)??(l(L)?xo.join(","):void 0));bt(ef(Q,{get multiple(){return l(N)},get disabled(){return f()},get accept(){return l(ne)},onDrop:O,children:(se,fe)=>{var be=X(),pe=M(be);{var he=ve=>{var _e=X(),$e=M(_e);{var Ce=He=>{var Ye=X(),Ue=M(Ye);{var Te=Fe=>{var Ie=MG(),Ae=M(Ie);ot(Ae,23,u,(ye,it)=>`${ye}|${it}`,(ye,it,Qe)=>{{let Le=_(()=>l(Qe)>0?()=>K(l(Qe)-1):void 0),ze=_(()=>l(Qe)<u().length-1?()=>K(l(Qe)):void 0);Ak(ye,on(()=>l(H),{get value(){return l(it)},get fieldId(){return`${e.fieldId??""}-${l(Qe)??""}`},onReplace:()=>{G(g,!0),G(m,l(Qe),!0),G(p,!0)},onRemove:()=>F(l(Qe)),get onMoveUp(){return l(Le)},get onMoveDown(){return l(ze)}}))}});var we=j(Ae,2);{var Pe=ye=>{a(ye)};q(we,ye=>{u().length<l(S)&&ye(Pe)})}$(Fe,Ie)};q(Ue,Fe=>{Array.isArray(u())&&Fe(Te)})}$(He,Ye)},Re=He=>{var Ye=X(),Ue=M(Ye);{var Te=Fe=>{Ak(Fe,on(()=>l(H),{get value(){return u()},get fieldId(){return e.fieldId},onReplace:()=>{G(g,!0),G(p,!0)},onRemove:W}))};q(Ue,Fe=>{typeof u()=="string"&&u()&&Fe(Te)},!0)}$(He,Ye)};q($e,He=>{l(N)?He(Ce):He(Re,!1)})}$(ve,_e)},ge=ve=>{a(ve)};q(pe,ve=>{u()?.length&&!l(E)?ve(he):ve(ge,!1)})}$(se,be)},$$slots:{default:!0}}),se=>G(w,se,!0),()=>l(w))}var oe=j(Q,2);{let ne=_(()=>l(L)?"image":void 0),se=_(()=>l(g)?!1:l(N));EG(oe,{get kind(){return l(ne)},get multiple(){return l(se)},get accept(){return l(C)},get canEnterURL(){return l(x)},get entryDraft(){return We},get fieldConfig(){return e.fieldConfig},onSelect:Y,get open(){return l(p)},set open(fe){G(p,fe,!0)}})}var re=j(oe,2);{let ne=_(()=>i()("assets_dialog.large_file.title"));jp(re,{get title(){return l(ne)},get open(){return l(v)},set open(se){G(v,se,!0)},children:(se,fe)=>{var be=Oe();Z(pe=>te(be,pe),[()=>i()("warning_oversized_file",{values:{size:$p(l(D))}})]),$(se,be)},$$slots:{default:!0}})}var ee=j(re,2);{let ne=_(()=>i()("assets_dialog.photo_credit.title")),se=_(()=>i()("copy"));Kc(ee,{get title(){return l(ne)},get okLabel(){return l(se)},onOk:()=>{navigator.clipboard.writeText(l(y))},get open(){return l(b)},set open(fe){G(b,fe,!0)},children:(fe,be)=>{var pe=FG(),he=M(pe),ge=z(he),ve=j(he,2),_e=z(ve);Xd(_e,{flex:!0,readonly:!0,get value(){return l(y)},onclick:$e=>{$e.target.focus(),$e.target.select()}}),Z($e=>te(ge,$e),[()=>i()("assets_dialog.photo_credit.description")]),$(fe,pe)},$$slots:{default:!0}})}$(t,J),ce(),s()}var BG=U("<p><!></p>"),UG=U("<p> </p>");function Nk(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=ie(void 0),s=ie(void 0);const a=_(()=>n()?.originalEntry),c=_(()=>n()?.collectionName??""),u=_(()=>n()?.fileName);De(()=>{e.value,Ee(async()=>{G(o,e.value?await CT(e.value):void 0,!0),G(s,l(o)?await pc({value:e.value,entry:l(a),collectionName:l(c),fileName:l(u)}):void 0,!0)})});var d=X(),f=M(d);{var h=g=>{var m=BG(),v=z(m);{let b=_(()=>["audio","video"].includes(l(o)));Ro(v,{get kind(){return l(o)},get src(){return l(s)},get controls(){return l(b)}})}$(g,m)},p=g=>{var m=X(),v=M(m);{var b=y=>{var w=UG(),E=z(w);Z(()=>te(E,e.value)),$(y,w)};q(v,y=>{e.value.trim()&&!e.value.startsWith("blob:")&&y(b)},!0)}$(g,m)};q(f,g=>{l(o)&&l(s)?g(h):g(p,!1)})}$(t,d),ce(),i()}function Ik(t,e){le(e,!0);var n=X(),r=M(n);{var i=s=>{var a=X(),c=M(a);{var u=d=>{var f=X(),h=M(f);ot(h,17,()=>e.currentValue,vr,(p,g)=>{Nk(p,{get value(){return l(g)}})}),$(d,f)};q(c,d=>{Array.isArray(e.currentValue)&&d(u)})}$(s,a)},o=s=>{var a=X(),c=M(a);{var u=d=>{Nk(d,{get value(){return e.currentValue}})};q(c,d=>{typeof e.currentValue=="string"&&e.currentValue&&d(u)},!0)}$(s,a)};q(r,s=>{Ip(e.fieldConfig)?s(i):s(o,!1)})}$(t,n),ce()}const ww=({entryDraft:t,valueStoreKey:e="currentValues",keyPath:n,locale:r})=>Object.entries(ae(t)[e][r]??{}).filter(([i])=>i.startsWith(`${n}.`)).map(([i,o])=>[i.replace(`${n}.`,""),o]),qG=({pairs:t,edited:e})=>t.map(([n],r,i)=>{if(!n.trim()&&e[r])return"empty";if(n.trim()&&i.findIndex(o=>o[0]===n)!==r)return"duplicate"}),VG=({entryDraft:t,keyPath:e,locale:n,fieldConfig:r,pairs:i})=>{const{i18n:o}=r;Yi.set(!1),t.update(s=>(s&&Object.entries(s.currentValues).forEach(([a,c])=>{(a===n||o==="duplicate")&&(Object.entries(c).forEach(([u])=>{u.startsWith(`${e}.`)&&delete c[u]}),i.forEach(([u,d])=>{c[`${e}.${u}`]=d}))}),s)),Yi.set(!0)};var HG=U('<th scope="col" class="action svelte-18v8t2h"></th>'),KG=U('<td class="action svelte-18v8t2h"><!></td>'),GG=U('<tr><td class="key svelte-18v8t2h"><!></td><td class="value svelte-18v8t2h"><!></td><!></tr>'),WG=U('<table class="svelte-18v8t2h"><thead><tr><th scope="col" class="key svelte-18v8t2h"> </th><th scope="col" class="value svelte-18v8t2h"> </th><!></tr></thead><tbody></tbody></table>'),YG=U("<!> <!>",1),JG=U('<!> <!> <div role="none"><!></div>',1);const XG={hash:"svelte-18v8t2h",code:`table.svelte-18v8t2h {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-18v8t2h,
|
|
616
|
+
td.svelte-18v8t2h {border-width:0;}th.svelte-18v8t2h {padding-block:4px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}th.key.svelte-18v8t2h, th.value.svelte-18v8t2h {width:50%;}td.svelte-18v8t2h {padding:0;vertical-align:middle;}`};function ZG(t,e){le(e,!0),ke(t,XG);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),{valueStoreKey:s="currentValues"}=tr("field-editor")??{};let a=R(e,"readonly",3,!1);const c=_(()=>tt(e.fieldConfig.i18n,!1)),u=_(()=>e.fieldConfig.key_label),d=_(()=>e.fieldConfig.value_label),f=_(()=>tt(e.fieldConfig.max,1/0)),h=_(()=>l(u)||n()("key_value.key")),p=_(()=>l(d)||n()("key_value.value"));let g=ie(St([]));const m=St([]);let v=ie(St([])),b=ie(St([]));const y=()=>{if(!r())return;const N=ww({entryDraft:We,valueStoreKey:s,keyPath:e.keyPath,locale:e.locale});ln(l(g),N)||(G(g,[...N],!0),G(v,N.map(()=>!1),!0)),!l(g).length&&r()[s][e.locale][e.keyPath]!==null&&yt(We,Ee(r)[s][e.locale][e.keyPath]=null,Ee(r))},w=()=>{r()&&(Object.entries(r()[s]).forEach(([I,N])=>{(I===e.locale||l(c)==="duplicate")&&delete N[e.keyPath]}),l(g).push(["",""]),l(v).push(!1),window.requestAnimationFrame(()=>{m[l(g).length-1].querySelector("input").focus()}))},E=I=>{l(g).splice(I,1),l(v).splice(I,1)},k=()=>{if(G(b,qG({pairs:l(g),edited:l(v)}),!0),!r()||l(b).some(Boolean)||l(g).some(([N])=>!N.trim()))return;VG({entryDraft:We,fieldConfig:e.fieldConfig,keyPath:e.keyPath,locale:e.locale,pairs:l(g)})};De(()=>{Dn(r()?.[s][e.locale]),Ee(()=>{y()})}),De(()=>{Dn(l(g)),Ee(()=>{k()})});var S=JG(),C=M(S);{var x=I=>{var N=WG(),D=z(N),B=z(D),H=z(B),W=z(H),Y=j(H),O=z(Y),F=j(Y);{var K=Q=>{var oe=HG();Z(re=>Se(oe,"aria-label",re),[()=>n()("key_value.action")]),$(Q,oe)};q(F,Q=>{a()||Q(K)})}var J=j(D);ot(J,21,()=>l(g),vr,(Q,oe,re)=>{var ee=GG(),ne=z(ee),se=z(ne);{let ge=_(()=>!!l(b)[re]),ve=_(()=>l(b)[re]?`${e.fieldId}-kv-error`:void 0);Nn(se,{get readonly(){return a()},flex:!0,get invalid(){return l(ge)},get"aria-label"(){return l(h)},get"aria-errormessage"(){return l(ve)},oninput:()=>{l(v)[re]=!0},onkeydown:_e=>{_e.key==="Enter"&&!_e.isComposing&&m[re].querySelector("td.value input").focus()},get value(){return l(oe)[0]},set value(_e){l(oe)[0]=_e}})}var fe=j(ne),be=z(fe);Nn(be,{get readonly(){return a()},flex:!0,get"aria-label"(){return l(p)},onkeydown:ge=>{ge.key==="Enter"&&!ge.isComposing&&(re<l(g).length-1?m[re+1].querySelector("input").focus():l(g).length<l(f)&&w())},get value(){return l(oe)[1]},set value(ge){l(oe)[1]=ge}});var pe=j(fe);{var he=ge=>{var ve=KG(),_e=z(ve);{const $e=Re=>{Je(Re,{name:"close"})};let Ce=_(()=>n()("remove"));Ze(_e,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Ce)},onclick:()=>{E(re)},startIcon:$e,$$slots:{startIcon:!0}})}$(ge,ve)};q(pe,ge=>{a()||ge(he)})}bt(ee,(ge,ve)=>m[ve]=ge,ge=>m?.[ge],()=>[re]),$(Q,ee)}),Z(()=>{te(W,l(h)),te(O,l(p))}),$(I,N)};q(C,I=>{l(g).length&&I(x)})}var T=j(C,2);{var A=I=>{yw(I,{get id(){return`${e.fieldId??""}-kv-error`},children:(N,D)=>{var B=YG(),H=M(B);{var W=F=>{var K=Oe();Z(J=>te(K,J),[()=>n()("key_value.empty_key")]),$(F,K)};q(H,F=>{l(b).includes("empty")&&F(W)})}var Y=j(H,2);{var O=F=>{var K=Oe();Z(J=>te(K,J),[()=>n()("key_value.duplicate_key")]),$(F,K)};q(Y,F=>{l(b).includes("duplicate")&&F(O)})}$(N,B)}})};q(T,I=>{l(b).some(Boolean)&&I(A)})}var P=j(T,2),L=z(P);{let I=_(()=>n()("add")),N=_(()=>a()||l(g).length>=l(f));Ze(L,{get label(){return l(I)},variant:"tertiary",get disabled(){return l(N)},onclick:()=>{w()}})}$(t,S),ce(),o()}var QG=U('<tr><td class="svelte-dq8vuc"> </td><td class="svelte-dq8vuc"> </td></tr>'),eW=U('<table class="svelte-dq8vuc"><thead><tr><th scope="col" class="svelte-dq8vuc"> </th><th scope="col" class="svelte-dq8vuc"> </th></tr></thead><tbody></tbody></table>');const tW={hash:"svelte-dq8vuc",code:'@charset "UTF-8";table.svelte-dq8vuc {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-dq8vuc {padding-block:4px;width:50%;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal);text-align:start;}td.svelte-dq8vuc:empty::after {content:" ";}'};function nW(t,e){le(e,!0),ke(t,tW);const n=()=>V(ue,"$_",i),r=()=>V(We,"$entryDraft",i),[i,o]=me(),s=_(()=>e.fieldConfig.key_label),a=_(()=>e.fieldConfig.value_label),c=_(()=>l(s)||n()("key_value.key")),u=_(()=>l(a)||n()("key_value.value"));let d=ie(St([]));const f=()=>{const v=ww({entryDraft:We,keyPath:e.keyPath,locale:e.locale});ln(l(d),v)||G(d,v,!0)};De(()=>{r()&&(Dn(r().currentValues[e.locale]),Ee(()=>{f()}))});var h=X(),p=M(h);{var g=m=>{var v=eW(),b=z(v),y=z(b),w=z(y),E=z(w),k=j(w),S=z(k),C=j(b);ot(C,21,()=>l(d),vr,(x,T)=>{var A=_(()=>So(l(T),2));let P=()=>l(A)[0],L=()=>l(A)[1];var I=QG(),N=z(I),D=z(N),B=j(N),H=z(B);Z(()=>{te(D,P()),te(H,L())}),$(x,I)}),Z(()=>{te(E,l(c)),te(S,l(u))}),$(m,v)};q(p,m=>{l(d).length&&m(g)})}$(t,h),ce(),o()}function Pb(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"disabled",3,!1),s=R(e,"items",19,()=>[]),a=R(e,"addItem",3,()=>{});const c=_(()=>e.fieldConfig.widget),u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.types),h=_(()=>l(c)==="list"?e.fieldConfig:void 0),p=_(()=>l(h)?.label_singular??""),g=_(()=>l(h)?.max??void 0),m=_(()=>n()("add_x",{values:{name:l(p)||l(d)||l(u)}})),v=_(()=>o()||typeof l(g)=="number"&&s().length===l(g));var b=X(),y=M(b);{var w=k=>{Mr(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},startIcon:T=>{Je(T,{name:"add"})},endIcon:T=>{},popup:T=>{{let A=_(()=>n()("select_list_type"));ar(T,{get"aria-label"(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);ot(N,17,()=>l(f),({name:D,label:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).label;{let Y=_(()=>W()||H());gt(D,{get label(){return l(Y)},onclick:()=>a()({type:H()})})}}),$(P,I)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},E=k=>{Ze(k,{variant:"tertiary",get label(){return l(m)},get disabled(){return l(v)},onclick:()=>a()(),startIcon:C=>{Je(C,{name:"add"})},$$slots:{startIcon:!0}})};q(y,k=>{Array.isArray(l(f))?k(w):k(E,!1)})}$(t,b),ce(),i()}var rW=U('<span role="none" class="type svelte-12y2c75"> </span>'),iW=U('<div role="none" class="header svelte-12y2c75"><div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div> <div role="none" class="svelte-12y2c75"><!></div></div>');const oW={hash:"svelte-12y2c75",code:".header.svelte-12y2c75 {display:flex;align-items:center;gap:8px;background-color:var(--sui-secondary-border-color);}.header.svelte-12y2c75 > div:where(.svelte-12y2c75) {display:flex;align-items:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):first-child {justify-content:flex-start;width:40%;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):nth-child(2) {width:20%;justify-content:center;}.header.svelte-12y2c75 > div:where(.svelte-12y2c75):last-child {width:40%;justify-content:flex-end;}.header.svelte-12y2c75 button {padding:0;height:16px;}.header.svelte-12y2c75 .type:where(.svelte-12y2c75) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}"};function TP(t,e){le(e,!0),ke(t,oW);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"label",3,""),s=R(e,"centerContent",3,void 0),a=R(e,"endContent",3,void 0);var c=iW(),u=z(c),d=z(u);{const m=y=>{{let w=_(()=>e.expanded?"expand_more":"chevron_right");Je(y,{get name(){return l(w)}})}};let v=_(()=>!e.toggleExpanded),b=_(()=>e.expanded?n()("collapse"):n()("expand"));Ze(d,{size:"small",get disabled(){return l(v)},get"aria-label"(){return l(b)},get"aria-expanded"(){return e.expanded},get"aria-controls"(){return e.controlId},onclick:()=>{e.toggleExpanded?.()},startIcon:m,children:(y,w)=>{var E=X(),k=M(E);{var S=C=>{var x=rW(),T=z(x);Z(()=>te(T,o())),$(C,x)};q(k,C=>{o()&&C(S)})}$(y,E)},$$slots:{startIcon:!0,default:!0}})}var f=j(u,2),h=z(f);Me(h,()=>s()??Be);var p=j(f,2),g=z(p);Me(g,()=>a()??Be),$(t,c),ce(),i()}const sW=({fieldConfig:t,dynamicValue:e})=>{if(e!==void 0)return e==="true";const{default:n}=t;return typeof n=="boolean"?n:!1},aW=t=>({[t.keyPath]:sW(t)}),lW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,output_code_only:i=!1,keys:o={code:"code",lang:"lang"}}=t,s=n!==void 0?n:r;if(i)return{[e]:typeof s=="string"?s:""};const a=Yt(s)?s:void 0,c=a?.[o.code]??s,u=a?.[o.lang]??"";return{[e]:{},[`${e}.${o.code}`]:typeof c=="string"?c:"",[`${e}.${o.lang}`]:typeof u=="string"?u:""}},cW=({fieldConfig:t,dynamicValue:e})=>{const n=t,r=n.default,i=e??r;return typeof i!="string"?"":i==="{{now}}"?z$(F$(n),"",n):i},uW=t=>({[t.keyPath]:cW(t)}),Ok=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,i=r.default,o=Ip(r);let s="";n!==void 0?s=o?n.split(/,\s*/):n:o?s=Array.isArray(i)?i:[]:s=typeof i=="string"?i:"";const a={};return o&&Array.isArray(s)&&(s=s.map(c=>c.trim()).filter(c=>c!==""),s.length&&(a[e]=[],s.forEach((c,u)=>{a[`${e}.${u}`]=c}))),!o&&typeof s=="string"&&(s=s.trim(),s&&(a[e]=s)),a},dW=({fieldConfig:t,locale:e,dynamicValue:n})=>{const{default:r}=t,i=n??r;return typeof i!="string"?i:i.replaceAll(/{{(.+?)}}/g,(o,s)=>s==="locale"?e:s==="datetime"?new Date().toJSON().replace(/\d+\.\d+Z$/,"00.000Z"):s==="uuid"?ai():s==="uuid_short"?ai("short"):s==="uuid_shorter"?ai("shorter"):"")},CP=t=>({[t.keyPath]:dW(t)}),fW=({fieldConfig:t,locale:e})=>{const{default:n}=t,r=Bc({fieldConfig:t,locale:e});return Yt(n)?n:r?{"":""}:{}},hW=t=>{const{keyPath:e,dynamicValue:n}=t;let r;if(n!==void 0)try{const i=JSON.parse(n);Yt(i)&&(r=i)}catch{}return r??=fW(t),Object.fromEntries(Object.entries(r).filter(([,i])=>typeof i=="string").map(([i,o])=>[`${e}.${i}`,o]))},pW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,fields:i,types:o}=t;let s;if(n!==void 0?s=n.split(/,\s*/).map(u=>u.trim()).filter(u=>u!==""):s=Array.isArray(r)?r:[],!(Array.isArray(s)&&!!s.length))return{[e]:[]};const c={[e]:s};return i||o?s.forEach((u,d)=>{Yt(u)?Object.entries(to(u)).forEach(([f,h])=>{c[`${e}.${d}.${f}`]=h}):c[`${e}.${d}`]=u}):s.forEach((u,d)=>{Yt(u)||(c[`${e}.${d}`]=u)}),c},gW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r}=t;let i;if(n!==void 0)try{i=ZN(n)}catch{i=n.replace(/<[^>]*>/g,"")}else i=r||"";return{[e]:i}},mW=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const{default:r,value_type:i="int"}=t,o=n??r,s=typeof o=="string";if(o===void 0)return i==="int"||i==="float"?{[e]:null}:{[e]:""};if(i==="int"){const a=s?Number.parseInt(o,10):o;return Number.isInteger(a)?{[e]:a}:{}}if(i==="float"){const a=s?Number.parseFloat(o):o;return Number.isFinite(a)?{[e]:a}:{}}return s?{[e]:o}:{}},vW=({fieldConfig:t,keyPath:e,locale:n})=>{const{default:r,fields:i,types:o}=t,s=Bc({fieldConfig:t,locale:n}),a={};return Yt(r)?(Object.entries(to(r)).forEach(([c,u])=>{a[`${e}.${c}`]=u}),a):!s||Array.isArray(o)?(a[e]=null,a):(i&&i.length>0&&i.forEach(c=>{AP({content:a,keyPath:[e,c.name].join("."),fieldConfig:c,locale:n,dynamicValues:{}})}),a)},Rk=({fieldConfig:t,keyPath:e,dynamicValue:n})=>{const r=t,{default:i,multiple:o=!1}=r,s=n!==void 0?n.split(/,\s*/).map(c=>c.trim()):i,a=Array.isArray(s)&&!!s.length;if(!o){if(n!==void 0){const c=n.split(/,\s*/).map(u=>u.trim());return{[e]:c[0]||""}}return{[e]:s!==void 0?s:""}}return a?Object.fromEntries(s.map((c,u)=>[`${e}.${u}`,c])):{[e]:[]}},Dk={boolean:aW,code:lW,datetime:uW,file:Ok,hidden:CP,image:Ok,keyvalue:hW,list:pW,markdown:gW,number:mW,object:vW,relation:Rk,select:Rk},AP=({content:t,keyPath:e,fieldConfig:n,locale:r,dynamicValues:i})=>{const{widget:o="string",default:s}=n;if(o==="compute"){t[e]="";return}const a=e in i&&!/\.\d+(?:\.|$)/.test(e)&&i[e].trim()||void 0;if(o in Dk){Object.assign(t,Dk[o]({fieldConfig:n,keyPath:e,locale:r,dynamicValue:a}));return}t[e]=a||s||""},of=(t,e,n={})=>{const r={};return t.forEach(i=>{AP({content:r,keyPath:i.name,fieldConfig:i,locale:e,dynamicValues:n})}),r},Mk=(t,e)=>{Object.entries(e).forEach(([n,r])=>{t[n]!==r&&(t[n]=r)}),Object.keys(t).forEach(n=>{n in e||delete t[n]})},Fk=(t,e)=>{const n=new RegExp(`^${Vt(e)}\\b(?!#)`),r=Object.entries(t).filter(([i])=>n.test(i)).map(([i,o])=>[i.replace(n,"_"),o]).sort();return[ls(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(t).filter(([i])=>!n.test(i)))]},PP=({locale:t,valueStoreKey:e="currentValues",keyPath:n,manipulate:r})=>{const i=ae(We),{collection:o,collectionFile:s}=i,{defaultLocale:a}=(s??o)._i18n,[c,u]=Fk(i[e][t],n),[d,f]=t===a?Fk(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:d}),Yi.set(!1),We.update(h=>(Mk(h[e][t],{...to({[n]:c}),...u}),t===a&&Mk(h.expanderStates._,{...to({[n]:d}),...f}),h)),Yi.set(!0)},LP=({key:t,locale:e,collapsed:n=!1})=>{const r=ae(We),i=r?.expanderStates?._[t];if(i!==void 0)return i;if(n==="auto"){const o=r?.currentValues?.[e]??{},s=new RegExp(`^${Vt(t.replace(/#$/,""))}\\.[^\\.]+$`);return!Object.entries(o).some(([a,c])=>s.test(a)&&!!c)}return!n},yo=t=>{We.update(e=>(e&&Object.entries(t).forEach(([n,r])=>{e.expanderStates._[n]!==r&&(e.expanderStates._[n]=r)}),e))},NP=({collectionName:t,fileName:e,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{const o=new Set,s={collectionName:t,fileName:e,valueMap:n,isIndexFile:i};return r.split(".").forEach((a,c,u)=>{const d=u.slice(0,c+1).join("."),f=hn({...s,keyPath:d}),h=/\.\d+$/.test(d);if(f?.widget==="object")h&&o.add(d),o.add(`${d}#`);else if(f?.widget==="list")o.add(h?d:`${d}#`);else if(c>0){const p=u.slice(0,c).join("."),g=hn({...s,keyPath:p});g?.widget==="object"&&g.fields&&o.add(`${p}.${g.name}#`),g?.widget==="list"&&g.field&&o.add(d)}}),[...o]},bW=({collectionName:t,fileName:e,currentValues:n})=>{const{validities:r,isIndexFile:i}=ae(We),o={};Object.entries(r??{}).forEach(([s,a])=>{Object.entries(a).forEach(([c,{valid:u}])=>{u||NP({collectionName:t,fileName:e,valueMap:n[s],keyPath:c,isIndexFile:i}).forEach(d=>{o[d]=!0})})}),yo(o)};var _W=U("<!> <!>",1),yW=U('<div role="none" class="toolbar top add svelte-1eiee9e"><!></div>'),wW=U("<!> <!> <!>",1),xW=U("<!> <!>",1),kW=U("<!> <!>",1),SW=U("<!> <!>",1),EW=U("<!> <!>",1),$W=U('<div role="none" class="summary svelte-1eiee9e"><!></div>'),TW=U('<div role="none" class="item svelte-1eiee9e"><!> <div role="none" class="item-body"><!></div></div>'),CW=U('<div role="none" class="toolbar bottom add svelte-1eiee9e"><!> <!></div>'),AW=U('<div role="none" class="toolbar top svelte-1eiee9e"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>',1);const PW={hash:"svelte-1eiee9e",code:".toolbar.svelte-1eiee9e {display:flex;align-items:center;}.toolbar.top.add.svelte-1eiee9e {margin-block:8px 16px !important;}.toolbar.bottom.add.svelte-1eiee9e {margin-block:16px 0 !important;}.item-list.collapsed.svelte-1eiee9e {display:none;}.item.svelte-1eiee9e {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e) {padding:8px;}.item.svelte-1eiee9e .summary:where(.svelte-1eiee9e):empty {display:none;}"};function LW(t,e){const n=zn();le(e,!0),ke(t,PW);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(cn,"$isSmallScreen",s),[s,a]=me(),{valueStoreKey:c="currentValues"}=tr("field-editor")??{},u=_(()=>e.fieldConfig.name),d=_(()=>e.fieldConfig.label),f=_(()=>e.fieldConfig.i18n),h=_(()=>tt(e.fieldConfig.allow_add,!0)),p=_(()=>tt(e.fieldConfig.allow_remove,!0)),g=_(()=>tt(e.fieldConfig.allow_reorder,!0)),m=_(()=>e.fieldConfig.collapsed),v=_(()=>e.fieldConfig.summary),b=_(()=>tt(e.fieldConfig.minimize_collapsed,!1)),y=_(()=>e.fieldConfig.label_singular),w=_(()=>e.fieldConfig.field),E=_(()=>e.fieldConfig.fields),k=_(()=>tt(e.fieldConfig.max,1/0)),S=_(()=>tt(e.fieldConfig.add_to_top,!1)),C=_(()=>e.fieldConfig.types),x=_(()=>tt(e.fieldConfig.typeKey,"type")),T=_(()=>Id(e.fieldConfig)),A=_(()=>l(T).hasSingleSubField),P=_(()=>l(T).hasVariableTypes),L=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.(\\d+)(.*)?`)),I=_(()=>r()?.isIndexFile??!1),N=_(()=>r()?.collection),D=_(()=>r()?.collectionName??""),B=_(()=>r()?.collectionFile),H=_(()=>r()?.fileName),W=_(()=>(l(B)??l(N))?._i18n??so),Y=_(()=>l(W).defaultLocale),O=_(()=>e.locale!==l(Y)&&l(f)==="duplicate"),F=_(()=>Dn(r()?.[c][e.locale])??{}),K=_(()=>`${e.keyPath}#`),J=_(()=>r()?.expanderStates?._[l(K)]??!0),Q=_(()=>ls(Object.fromEntries(Object.entries(l(F)).filter(([we])=>l(L).test(we)).map(([we,Pe])=>[we.replace(new RegExp(`^${Vt(e.keyPath)}`),l(u)),Pe])))[l(u)]??[]),oe=_(()=>l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,r()?.expanderStates?._[ye]??!0]})),re=_(()=>l(Q).length>=l(k)),ee=()=>{yo({[l(K)]:l(b)==="auto"?!l(Q).length:!l(b),...Object.fromEntries(l(Q).map((we,Pe)=>{const ye=`${e.keyPath}.${Pe}`;return[ye,LP({key:ye,locale:e.locale,collapsed:l(m)})]}))})},ne=we=>{Object.keys(r()?.[c]??{}).forEach(Pe=>{l(f)!=="duplicate"&&Pe!==e.locale||PP({locale:Pe,valueStoreKey:c,keyPath:e.keyPath,manipulate:we})})},se=({index:we=l(S)?0:l(Q).length,dupIndex:Pe,type:ye}={})=>{ne(({valueList:it,expanderStateList:Qe})=>{const Le=ye?l(C)?.find(({name:Xe})=>Xe===ye)?.fields??[]:l(E)??(l(w)?[l(w)]:[]),ze=(()=>{if(typeof Pe=="number")return structuredClone(it[Pe]);const Xe=ls(of(Le,e.locale));return l(A)&&l(w)?Xe[l(w).name]:Xe})();ye&&(ze[l(x)]=ye),l(A)||(ze.__sc_item_id=crypto.randomUUID()),it.splice(we,0,ze),Qe.splice(we,0,!0)}),yo({[l(K)]:!0})},fe=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{Pe.splice(we,1),ye.splice(we,1)})},be=we=>{ne(({valueList:Pe,expanderStateList:ye})=>{l(A)||(Pe[we].__sc_item_id??=crypto.randomUUID(),Pe[we+1].__sc_item_id??=crypto.randomUUID()),[Pe[we],Pe[we+1]]=[Pe[we+1],Pe[we]],[ye[we],ye[we+1]]=[ye[we+1],ye[we]]})},pe=(we,Pe)=>QF({collectionName:l(D),fileName:l(H),keyPath:e.keyPath,valueMap:l(F),locale:e.locale,summaryTemplate:Pe,hasSingleSubField:l(A),index:we,isIndexFile:l(I)});jt(()=>{ee()});var he=AW(),ge=M(he),ve=z(ge);{const we=it=>{{let Qe=_(()=>l(J)?"expand_more":"chevron_right");Je(it,{get name(){return l(Qe)}})}};let Pe=_(()=>!l(Q).length),ye=_(()=>l(J)?i()("collapse"):i()("expand"));Ze(ve,{iconic:!0,get disabled(){return l(Pe)},get"aria-label"(){return l(ye)},get"aria-expanded"(){return l(J)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{yo({[l(K)]:!l(J)})},startIcon:we,$$slots:{startIcon:!0}})}var _e=j(ve,2),$e=z(_e),Ce=j(_e,2);Xr(Ce,{flex:!0});var Re=j(Ce,2);{var He=we=>{var Pe=_W(),ye=M(Pe);{let Qe=_(()=>i()("expand_all")),Le=_(()=>l(oe).every(([,ze])=>ze));Ze(ye,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Le)},onclick:()=>{yo(Object.fromEntries(l(oe).map(([ze])=>[ze,!0])))}})}var it=j(ye,2);{let Qe=_(()=>i()("collapse_all")),Le=_(()=>l(oe).every(([,ze])=>!ze));Ze(it,{variant:"tertiary",size:"small",get label(){return l(Qe)},get disabled(){return l(Le)},onclick:()=>{yo(Object.fromEntries(l(oe).map(([ze])=>[ze,!1])))}})}$(we,Pe)};q(Re,we=>{l(J)&&l(Q).length>1&&we(He)})}var Ye=j(ge,2);{var Ue=we=>{var Pe=yW(),ye=z(Pe);Pb(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:se}),$(we,Pe)};q(Ye,we=>{l(h)&&(l(S)||!l(Q).length)&&we(Ue)})}var Te=j(Ye,2);let Fe;ot(Te,23,()=>l(Q),(we,Pe)=>we.__sc_item_id??Pe,(we,Pe,ye)=>{ro(we,{children:(it,Qe)=>{const Le=_(()=>`${e.keyPath}.${l(ye)}`),ze=_(()=>r()?.expanderStates?._[l(Le)]??!0),Xe=_(()=>l(P)?l(C)?.find(({name:Ot})=>Ot===l(Pe)[l(x)]):void 0),st=_(()=>l(P)?l(Xe)?.fields??[]:l(E)??(l(w)?[l(w)]:[])),lt=_(()=>l(P)&&l(Xe)?.summary||l(v));var xt=TW(),Gt=z(xt);{const Ot=Kt=>{var Nt=X(),kt=M(Nt);{var un=br=>{var ei=wW(),dt=M(ei);{const kn=Tt=>{Je(Tt,{name:"arrow_upward"})};let Pr=_(()=>l(O)||l(ye)===0),jn=_(()=>i()("move_up"));Ze(dt,{size:"small",iconic:!0,get disabled(){return l(Pr)},get"aria-label"(){return l(jn)},onclick:()=>be(l(ye)-1),startIcon:kn,$$slots:{startIcon:!0}})}var Qt=j(dt,2);Xr(Qt,{});var Cn=j(Qt,2);{const kn=Tt=>{Je(Tt,{name:"arrow_downward"})};let Pr=_(()=>l(O)||l(ye)===l(Q).length-1),jn=_(()=>i()("move_down"));Ze(Cn,{iconic:!0,size:"small",get disabled(){return l(Pr)},get"aria-label"(){return l(jn)},onclick:()=>be(l(ye)),startIcon:kn,$$slots:{startIcon:!0}})}$(br,ei)};q(kt,br=>{l(g)&&br(un)})}$(Kt,Nt)},an=Kt=>{var Nt=EW(),kt=M(Nt);{var un=dt=>{{const Qt=kn=>{{let Pr=_(()=>i()("translation_options"));ar(kn,{get"aria-label"(){return l(Pr)},children:(jn,Tt)=>{var Bn=SW(),Ft=M(Bn);{let gn=_(()=>i()("duplicate"));gt(Ft,{get label(){return l(gn)},get disabled(){return l(re)},onclick:()=>se({index:l(ye)+1,dupIndex:l(ye)})})}var $i=j(Ft,2);{var zt=gn=>{var zr=xW(),Lr=M(zr);{const ti=ut=>{var vt=X(),An=M(vt);ot(An,17,()=>l(C)??[],({name:Pn,label:lr})=>Pn,(Pn,lr)=>{let ni=()=>l(lr).name,On=()=>l(lr).label;{let cr=_(()=>On()||ni());gt(Pn,{get label(){return l(cr)},onclick:()=>se({index:l(ye),type:ni()})})}}),$(ut,vt)};let Wt=_(()=>i()("add_item_above"));gt(Lr,{get label(){return l(Wt)},get disabled(){return l(re)},items:ti,$$slots:{items:!0}})}var lo=j(Lr,2);{const ti=ut=>{var vt=X(),An=M(vt);ot(An,17,()=>l(C)??[],({name:Pn,label:lr})=>Pn,(Pn,lr)=>{let ni=()=>l(lr).name,On=()=>l(lr).label;{let cr=_(()=>On()||ni());gt(Pn,{get label(){return l(cr)},onclick:()=>se({index:l(ye)+1,type:ni()})})}}),$(ut,vt)};let Wt=_(()=>i()("add_item_below"));gt(lo,{get label(){return l(Wt)},get disabled(){return l(re)},items:ti,$$slots:{items:!0}})}$(gn,zr)},gi=gn=>{var zr=kW(),Lr=M(zr);{let ti=_(()=>i()("add_item_above"));gt(Lr,{get label(){return l(ti)},get disabled(){return l(re)},onclick:()=>se({index:l(ye)})})}var lo=j(Lr,2);{let ti=_(()=>i()("add_item_below"));gt(lo,{get label(){return l(ti)},get disabled(){return l(re)},onclick:()=>se({index:l(ye)+1})})}$(gn,zr)};q($i,gn=>{l(P)?gn(zt):gn(gi,!1)})}$(jn,Bn)},$$slots:{default:!0}})}};let Cn=_(()=>i()("list_item_options"));Mr(dt,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Cn)},get disabled(){return l(O)},popup:Qt,$$slots:{popup:!0}})}};q(kt,dt=>{l(h)&&dt(un)})}var br=j(kt,2);{var ei=dt=>{{const Qt=kn=>{Je(kn,{name:"close"})};let Cn=_(()=>i()("remove"));Ze(dt,{variant:"ghost",size:"small",iconic:!0,get"aria-label"(){return l(Cn)},onclick:()=>fe(l(ye)),startIcon:Qt,$$slots:{startIcon:!0}})}};q(br,dt=>{l(p)&&dt(ei)})}$(Kt,Nt)};let xn=_(()=>l(P)?l(Xe)?.label||l(Xe)?.name:""),pn=_(()=>l(st).length?()=>yo({[l(Le)]:!l(ze)}):void 0);TP(Gt,{get label(){return l(xn)},get controlId(){return`list-${n}-item-${l(ye)??""}-body`},get expanded(){return l(ze)},get toggleExpanded(){return l(pn)},centerContent:Ot,endContent:an,$$slots:{centerContent:!0,endContent:!0}})}var bn=j(Gt,2),Xt=z(bn);{var Zt=Ot=>{var an=X(),xn=M(an);ot(xn,17,()=>l(st),pn=>pn.name,(pn,Kt)=>{ro(pn,{children:(Nt,kt)=>{{let un=_(()=>l(A)?`${e.keyPath}.${l(ye)}`:`${e.keyPath}.${l(ye)}.${l(Kt).name}`),br=_(()=>l(A)?"single-field-list-widget":void 0);ug(Nt,{get keyPath(){return l(un)},get locale(){return e.locale},get fieldConfig(){return l(Kt)},get context(){return l(br)}})}},$$slots:{default:!0}})}),$(Ot,an)},pt=Ot=>{var an=$W(),xn=z(an);{let pn=_(()=>o()?2:1);Cr(xn,{get lines(){return l(pn)},children:(Kt,Nt)=>{var kt=Oe();Z(un=>te(kt,un),[()=>pe(l(ye),l(lt))]),$(Kt,kt)},$$slots:{default:!0}})}$(Ot,an)};q(Xt,Ot=>{l(ze)?Ot(Zt):Ot(pt,!1)})}Z(()=>Se(bn,"id",`list-${n}-item-${l(ye)??""}-body`)),$(it,xt)},$$slots:{default:!0}})});var Ie=j(Te,2);{var Ae=we=>{var Pe=CW(),ye=z(Pe);Pb(ye,{get disabled(){return l(O)},get fieldConfig(){return e.fieldConfig},get items(){return l(Q)},addItem:se});var it=j(ye,2);Xr(it,{flex:!0}),$(we,Pe)};q(Ie,we=>{l(h)&&!l(S)&&l(Q).length&&we(Ae)})}Z(we=>{Se(_e,"id",`object-${n}-summary`),te($e,`${l(Q).length??""}
|
|
617
|
+
${((l(Q).length===1?l(y):void 0)||l(d)||l(u))??""}`),Se(Te,"id",`list-${n}-item-list`),Fe=rn(Te,1,"item-list svelte-1eiee9e",null,Fe,we)},[()=>({collapsed:!l(J)})]),$(t,he),ce(),a()}function NW(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=tr("field-editor")??{};let s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie(!1),d=ie("");const f=_(()=>e.fieldConfig.i18n),h=()=>{G(d,e.currentValue?.join(`
|
|
618
|
+
`)??"",!0)},p=()=>{const g=l(d).split(/\n/g);Object.keys(n()?.[o]??{}).forEach(m=>{l(f)!=="duplicate"&&m!==e.locale||(Object.keys(n()?.[o][m]??{}).forEach(v=>{v.match(`^${Vt(e.keyPath)}\\.\\d+$`)&&delete n()?.[o][m][v]}),g.forEach((v,b)=>{yt(We,Ee(n)[o][m][`${e.keyPath}.${b}`]=v,Ee(n))}))})};jt(()=>{G(u,!0)}),De(()=>{l(u)&&(e.currentValue,Ee(()=>{h()}))}),Xd(t,{autoResize:!0,flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-errormessage"(){return`${e.fieldId??""}-error`},oninput:()=>{p()},get value(){return l(d)},set value(g){G(d,g,!0)}}),ce(),i()}function IW(t,e){const n=zn();le(e,!0);let r=rt(e,["$$slots","$$events","$$legacy"]);const i=_(()=>Id(e.fieldConfig)),o=_(()=>l(i).hasSubFields),s=_(()=>l(o)?LW:NW);Ao(t,{get"aria-labelledby"(){return`list-${n}-summary`},children:(a,c)=>{var u=X(),d=M(u);Hn(d,()=>l(s),(f,h)=>{h(f,on(()=>r))}),$(a,u)},$$slots:{default:!0}}),ce()}var OW=(t,e)=>{t.key==="Enter"&&(t.stopPropagation(),e())},RW=(t,e)=>{t.stopPropagation(),e()},DW=U('<section role="group" tabindex="0" class="svelte-s650n2"><h4 class="svelte-s650n2"> </h4> <!></section>');const MW={hash:"svelte-s650n2",code:'[role="document"] section.svelte-s650n2 {overflow:hidden;margin:8px 0;padding:8px 0;}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}[role="document"] section.svelte-s650n2 h4:where(.svelte-s650n2):not(:last-child) {margin-bottom:8px;}[role="document"] section.svelte-s650n2 > * {margin-inline:auto;max-width:768px;}[role="document"] section.svelte-s650n2 p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}[role="document"] section.svelte-s650n2 img {max-height:800px !important;}'};function xw(t,e){le(e,!0),ke(t,MW);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>tt(e.fieldConfig.label,"")),a=_(()=>tt(e.fieldConfig.widget,"string")),c=_(()=>tt(e.fieldConfig.preview,!0)),u=_(()=>tt(e.fieldConfig.i18n,!1)),d=_(()=>jc(e.fieldConfig)),f=_(()=>l(a)==="list"||l(d)),h=_(()=>n()?.isIndexFile??!1),p=_(()=>n()?.collection),g=_(()=>n()?.collectionName??""),m=_(()=>n()?.collectionFile),v=_(()=>n()?.fileName),b=_(()=>Dn(n()?.currentValues[e.locale]??{})),y=_(()=>NP({collectionName:l(g),fileName:l(v),valueMap:l(b),keyPath:e.keyPath,isIndexFile:l(h)})),w=_(()=>(l(m)??l(p))?._i18n??so),E=_(()=>l(w).i18nEnabled),k=_(()=>l(w).defaultLocale),S=_(()=>l(E)&&(l(u)===!0||l(u)==="translate")),C=_(()=>l(E)&&l(u)==="duplicate"),x=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.\\d+$`)),T=_(()=>l(f)?Object.entries(l(b)).filter(([N])=>l(x).test(N)).map(([,N])=>N).filter(N=>N!==void 0):l(b)[e.keyPath]),A=()=>{yo(Object.fromEntries(l(y).map(N=>[N,!0]))),window.requestAnimationFrame(()=>{const N=document.querySelector(`.content-editor .pane[data-mode="edit"] .field[data-key-path="${CSS.escape(e.keyPath)}"]`);if(N){typeof N.scrollIntoViewIfNeeded=="function"?N.scrollIntoViewIfNeeded():N.scrollIntoView();const D=N.querySelector(".widget-wrapper");(D?.querySelector('[contenteditable="true"], [tabindex="0"]')??D?.querySelector("input, textarea, button"))?.focus()}})};var P=X(),L=M(P);{var I=N=>{var D=DW();D.__keydown=[OW,A],D.__click=[RW,A];var B=z(D),H=z(B),W=j(B,2);{var Y=O=>{const F=_(()=>jk[l(a)]);var K=X(),J=M(K);Hn(J,()=>l(F),(Q,oe)=>{oe(Q,{get keyPath(){return e.keyPath},get locale(){return e.locale},get fieldConfig(){return e.fieldConfig},get currentValue(){return l(T)}})}),$(O,K)};q(W,O=>{l(a)in jk&&O(Y)})}Z(()=>{Se(D,"data-widget",l(a)),Se(D,"data-key-path",e.keyPath),te(H,l(s)||l(o))}),$(N,D)};q(L,N=>{l(a)!=="hidden"&&l(c)&&(e.locale===l(k)||l(S)||l(C))&&N(I)})}$(t,P),ce(),i()}al(["keydown","click"]);var FW=U('<div role="none" class="header svelte-1fo9sk9"> </div>'),zW=U('<div role="group" class="subsection svelte-1fo9sk9"><!> <div role="none" class="items svelte-1fo9sk9"><!></div></div>');const jW={hash:"svelte-1fo9sk9",code:".subsection.svelte-1fo9sk9 {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-1fo9sk9 .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-1fo9sk9 {display:flex;align-items:center;height:24px;padding-inline:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-border-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);}.items.svelte-1fo9sk9 {padding:8px 16px;}.items.svelte-1fo9sk9:empty {display:none;}"};function IP(t,e){const n=zn();le(e,!0),ke(t,jW);const r=`${n}-header`;let i=ie(void 0);var o=zW(),s=z(o);{var a=d=>{var f=FW(),h=z(f);Z(()=>{Se(f,"id",r),te(h,e.label)}),$(d,f)};q(s,d=>{e.label&&d(a)})}var c=j(s,2),u=z(c);nn(u,()=>vc(l(i)),null,d=>{var f=X(),h=M(f);Me(h,()=>e.children??Be),$(d,f)}),bt(o,d=>G(i,d),()=>l(i)),Z(()=>Se(o,"aria-labelledby",e.label?r:void 0)),$(t,o),ce()}function BW(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.name),s=_(()=>e.fieldConfig.field),a=_(()=>e.fieldConfig.fields),c=_(()=>e.fieldConfig.types),u=_(()=>tt(e.fieldConfig.typeKey,"type")),d=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.\\d+`)),f=_(()=>ls(Object.fromEntries(Object.entries(Dn(n()?.currentValues[e.locale])??{}).filter(([g])=>l(d).test(g)).map(([g,m])=>[g.replace(new RegExp(`^${Vt(e.keyPath)}`),l(o)),m])))[l(o)]??[]);var h=X(),p=M(h);ot(p,19,()=>l(f),(g,m)=>g.__sc_item_id??m,(g,m,v)=>{ro(g,{children:(b,y)=>{const w=_(()=>Array.isArray(l(c))?n()?.currentValues[e.locale][`${e.keyPath}.${l(v)}.${l(u)}`]:void 0),E=_(()=>l(c)?.find(({name:C})=>C===l(w))),k=_(()=>l(E)?l(E).label||l(E).name:void 0),S=_(()=>l(w)?l(E)?.fields??[]:l(a)??(l(s)?[l(s)]:[]));IP(b,{get label(){return l(k)},children:(C,x)=>{var T=X(),A=M(T);ot(A,17,()=>l(S),P=>P.name,(P,L)=>{ro(P,{children:(I,N)=>{{let D=_(()=>l(s)?`${e.keyPath}.${l(v)}`:`${e.keyPath}.${l(v)}.${l(L).name}`);xw(I,{get keyPath(){return l(D)},get locale(){return e.locale},get fieldConfig(){return l(L)}})}},$$slots:{default:!0}})}),$(C,T)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(t,h),ce(),i()}var UW=U("<li> </li>"),qW=U('<ul dir="auto"></ul>');function VW(t,e){le(e,!0);var n=X(),r=M(n);{var i=o=>{var s=qW();ot(s,21,()=>e.currentValue,vr,(a,c)=>{var u=UW(),d=z(u);Z(()=>te(d,l(c))),$(a,u)}),Z(a=>{Se(s,"lang",a),s.dir=s.dir},[()=>Tr(e.locale)]),$(o,s)};q(r,o=>{Array.isArray(e.currentValue)&&e.currentValue.length&&o(i)})}$(t,n),ce()}function HW(t,e){le(e,!0);let n=rt(e,["$$slots","$$events","$$legacy"]);const r=_(()=>Id(e.fieldConfig)),i=_(()=>l(r).hasSubFields),o=_(()=>l(i)?BW:VW);var s=X(),a=M(s);Hn(a,()=>l(o),(c,u)=>{u(c,on(()=>n))}),$(t,s),ce()}var KW=U('<div role="alert" class="search-result searching svelte-s9eab1"> </div>'),GW=U('<div role="alert" class="search-result no-result svelte-s9eab1"> </div>'),WW=U('<div role="none" class="toolbar svelte-s9eab1"><!> <!> <!></div> <!> <div role="application"></div>',1),YW=U("<!> <!>",1);const JW={hash:"svelte-s9eab1",code:`@import 'node_modules/leaflet/dist/leaflet.css';.toolbar.svelte-s9eab1 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-s9eab1 {padding:12px;color:var(--sui-secondary-foreground-color);}.map.svelte-s9eab1 {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;height:400px;background-clip:text;}.map.invalid.svelte-s9eab1 {border-color:var(--sui-error-border-color);}.leaflet-container {font-family:inherit !important;font-size:var(--sui-font-size-small) !important;}.leaflet-container a {color:var(--sui-primary-accent-color-text) !important;text-decoration:none !important;}.leaflet-bar a {border-color:var(--sui-button-border-color) !important;color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-button-background-color) !important;}.leaflet-control {color:var(--sui-secondary-foreground-color) !important;background-color:var(--sui-secondary-background-color-translucent) !important;}.leaflet-control-attribution {padding:4px 8px;}:root[data-theme="dark"] .leaflet-layer {filter:invert(100%) hue-rotate(180deg);}`};function XW(t,e){le(e,!0),ke(t,JW);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1);const c=_(()=>tt(e.fieldConfig.required,!0)),u=_(()=>tt(e.fieldConfig.decimals,7)),d=_(()=>tt(e.fieldConfig.type,"Point")),f=_(()=>l(d).toLowerCase());let h=ie(void 0),p=ie(void 0),g=ie(""),m=ie(""),v=ie(void 0),b=ie(!1),y=ie(!1),w=ie(""),E=0,k;const S=async()=>{if(!l(h))return;const O=await Ea("leaflet","dist/leaflet-src.esm.js"),{TerraDraw:F,TerraDrawLineStringMode:K,TerraDrawPointMode:J,TerraDrawPolygonMode:Q}=await Ea("terra-draw","dist/terra-draw.module.js"),{TerraDrawLeafletAdapter:oe}=await Ea("terra-draw-leaflet-adapter","dist/terra-draw-leaflet-adapter.module.js?module");k=O.map(l(h),{center:[0,0],zoom:2}),O.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(k),l(h).querySelectorAll('a[href^="https:"]').forEach(ee=>{ee.setAttribute("target","_blank"),ee.setAttribute("rel","noopener noreferrer")}),new ResizeObserver(()=>{k?.invalidateSize()}).observe(l(h));const re=new F({adapter:new oe({lib:O,map:k}),modes:[new J,new K,new Q]});re.start(),re.setMode(l(f)),re.on("change",(ee,ne)=>{C(ne)}),G(p,re,!0)},C=O=>{if(l(p)&&O==="create"){const F=l(p).getSnapshot(),K=F.findLast(oe=>oe.geometry.type===l(d));if(!K)return;const{type:J,coordinates:Q}=K.geometry;G(g,JSON.stringify({type:J,coordinates:Q.map(oe=>Array.isArray(oe)?oe.map(re=>Array.isArray(re)?re.map(ee=>fa(ee,l(u))):fa(re,l(u))):fa(oe,l(u)))}),!0),l(d)==="Point"&&l(p).removeFeatures(F.filter(oe=>oe.id!==K.id).map(oe=>oe.id))}},x=()=>{if(!l(p))return;let O=o()??"",F;try{if(O!==void 0&&(F=JSON.parse(O),!Yt(F)||F.type!==l(d)||!Array.isArray(F.coordinates)))throw new Error("Invalid object")}catch{O="",F=void 0}if(l(g)!==O&&(G(g,O,!0),l(p).clear(),F&&(l(p).addFeatures([{type:"Feature",geometry:F,properties:{mode:l(f)}}]),F.coordinates.every(K=>typeof K=="number")))){const[K,J]=F.coordinates;k?.setView([J,K],15)}},T=()=>{if(!l(p))return;const O=l(g);o()!==O&&o(O)},A=()=>{window.clearTimeout(E),E=window.setTimeout(async()=>{const O=l(m).trim();if(!O)return;G(b,!0);const K=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:O,format:"jsonv2"})}`;try{G(v,await Od(K),!0)}catch{G(v,[],!0)}G(b,!1)},500)},P=({latitude:O,longitude:F})=>{if(!l(p))return;O=fa(O,l(u)),F=fa(F,l(u));const K={type:"Point",coordinates:[F,O]};l(p).clear(),l(p).addFeatures([{type:"Feature",geometry:K,properties:{mode:"point"}}]),k?.setView([O,F],15),G(g,JSON.stringify(K),!0)},L=({lat:O,lon:F})=>{P({latitude:parseFloat(O),longitude:parseFloat(F)})},I=()=>{if(!navigator.geolocation){G(y,!0),G(w,n()("geolocation_unsupported"),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:O,longitude:F}})=>{P({latitude:O,longitude:F})},O=>{G(y,!0),G(w,n()("geolocation_error_body"),!0),console.error("Error getting current location:",O)})},N=()=>{o("")};jt(()=>{S()}),De(()=>{l(p),o(),Ee(()=>{x()})}),De(()=>{l(g),Ee(()=>{T()})}),De(()=>{l(m),Ee(()=>{A()})});var D=YW(),B=M(D);{var H=O=>{var F=WW(),K=M(F),J=z(K);{let pe=_(()=>n()("find_place"));Bp(J,{get readonly(){return s()},flex:!0,get placeholder(){return l(pe)},get value(){return l(m)},set value(he){G(m,he,!0)}})}var Q=j(J,2);{const pe=ve=>{Je(ve,{name:"near_me"})};let he=_(()=>n()("use_your_location")),ge=_(()=>n()("use_your_location"));Ze(Q,{variant:"tertiary",iconic:!0,get title(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return s()},onclick:()=>{I()},startIcon:pe,$$slots:{startIcon:!0}})}var oe=j(Q,2);{var re=pe=>{{let he=_(()=>n()("clear")),ge=_(()=>s()||!o());Ze(pe,{variant:"tertiary",get label(){return l(he)},get disabled(){return l(ge)},onclick:()=>{N()}})}};q(oe,pe=>{l(c)||pe(re)})}var ee=j(K,2);{var ne=pe=>{var he=KW(),ge=z(he);Z(ve=>te(ge,ve),[()=>n()("searching")]),$(pe,he)},se=pe=>{var he=X(),ge=M(he);{var ve=_e=>{var $e=X(),Ce=M($e);{var Re=He=>{var Ye=X(),Ue=M(Ye);{var Te=Ie=>{{let Ae=_(()=>n()("search_results"));Gc(Ie,{get"aria-label"(){return l(Ae)},children:(we,Pe)=>{var ye=X(),it=M(ye);ot(it,17,()=>l(v),Qe=>Qe.place_id,(Qe,Le)=>{Sr(Qe,{get label(){return l(Le).display_name},onSelect:()=>{L(l(Le))}})}),$(we,ye)},$$slots:{default:!0}})}},Fe=Ie=>{var Ae=GW(),we=z(Ae);Z(Pe=>te(we,Pe),[()=>n()("no_results")]),$(Ie,Ae)};q(Ue,Ie=>{l(v).length?Ie(Te):Ie(Fe,!1)})}$(He,Ye)};q(Ce,He=>{l(v)&&He(Re)})}$(_e,$e)};q(ge,_e=>{l(m)&&_e(ve)},!0)}$(pe,he)};q(ee,pe=>{l(b)?pe(ne):pe(se,!1)})}var fe=j(ee,2);let be;bt(fe,pe=>G(h,pe),()=>l(h)),Z(pe=>{be=rn(fe,1,"map svelte-s9eab1",null,be,pe),fe.inert=s()},[()=>({invalid:a()})]),$(O,F)},W=O=>{var F=Oe();Z(()=>te(F,`The ${l(d)??""} type is not yet supported.`)),$(O,F)};q(B,O=>{l(d)==="Point"?O(H):O(W,!1)})}var Y=j(B,2);{let O=_(()=>n()("geolocation_error_title"));jp(Y,{get title(){return l(O)},get open(){return l(y)},set open(F){G(y,F,!0)},children:(F,K)=>{var J=Oe();Z(()=>te(J,l(w))),$(F,J)},$$slots:{default:!0}})}$(t,D),ce(),i()}var ZW=U('<pre class="svelte-ise554"> </pre>');const QW={hash:"svelte-ise554",code:"pre.svelte-ise554 {white-space:pre-wrap;}"};function eY(t,e){ke(t,QW);var n=X(),r=M(n);{var i=o=>{var s=ZW(),a=z(s);Z(()=>te(a,e.currentValue)),$(o,s)};q(r,o=>{e.currentValue&&o(i)})}$(t,n)}const md=/^.+?:\w+:/,tY=["rich_text","raw"],nY={rich_text:"rich-text",raw:"plain-text"},rY=["bold","italic","code","link","heading-one","heading-two","heading-three","heading-four","heading-five","heading-six","bulleted-list","numbered-list","quote"],iY={bold:"bold",italic:"italic",code:"code",link:"link","heading-one":"heading-1","heading-two":"heading-2","heading-three":"heading-3","heading-four":"heading-4","heading-five":"heading-5","heading-six":"heading-6","bulleted-list":"bulleted-list","numbered-list":"numbered-list",quote:"blockquote","code-block":"code-block"},oY=["code-block","image"];var sY=(t,e,n)=>{!t.target.matches("button, input, textarea")&&t.key!=="Tab"&&t.preventDefault(),t.target===l(e)&&t.key==="Backspace"&&n()(new CustomEvent("remove"))},aY=U('<div role="group" class="wrapper svelte-ykjmq3" contenteditable="false" tabindex="0"><header role="none" class="svelte-ykjmq3"><h3 role="none" class="svelte-ykjmq3"> </h3> <!></header> <!></div>');const lY={hash:"svelte-ykjmq3",code:`.wrapper.svelte-ykjmq3 {display:inline-block;border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color);background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;}.wrapper.svelte-ykjmq3:focus {outline-color:var(--sui-primary-accent-color-translucent);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) {display:flex;align-items:center;justify-content:space-between;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) h3:where(.svelte-ykjmq3) {padding:0 8px;font-size:var(--sui-font-size-small);font-weight:600;}.wrapper.svelte-ykjmq3 > header:where(.svelte-ykjmq3) button {padding:0;height:16px;}
|
|
619
619
|
@media (768px <= width) {.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget] {border-width:0;}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget=string] {display:flex;align-items:center;gap:8px;padding-block:0 16px;}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget=string] h4 {margin-bottom:0 !important;}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) [data-widget=string] .widget-wrapper {flex:auto;}
|
|
620
|
-
}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) button {margin:var(--sui-focus-ring-width);}.wrapper.svelte-ykjmq3 + .wrapper {margin-top:16px;}`};function
|
|
620
|
+
}.wrapper.svelte-ykjmq3:is([data-component-name=image]:where(.svelte-ykjmq3), [data-component-name=linked-image]:where(.svelte-ykjmq3)) button {margin:var(--sui-focus-ring-width);}.wrapper.svelte-ykjmq3 + .wrapper {margin-top:16px;}`};function cY(t,e){const n=zn();le(e,!0),ke(t,lY);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"values",7),c=R(e,"onChange",3,()=>{}),u=ie(void 0),d=ie(""),f=ie("");const h=_(()=>l(f)?`${l(f)}:${n}:`:""),p=()=>l(u),g="extraValues";let m;const v=_(()=>{if(r()&&l(d)&&l(f))return ls(Object.fromEntries(Object.entries(Dn(r()[g][l(d)]??{})).filter(([A])=>A.startsWith(l(h))).map(([A,P])=>[A.replace(l(h),""),P])))});jt(()=>(window.requestAnimationFrame(()=>{G(d,l(u)?.closest("[data-locale]")?.dataset.locale,!0),G(f,l(u)?.closest("[data-key-path]")?.dataset.keyPath,!0)}),()=>{r()&&g==="extraValues"&&Object.keys(r()[g][l(d)]??{}).forEach(A=>{A.startsWith(l(h))&&delete r()[g][l(d)][A]})})),De(()=>{a(),l(d),l(f),Ee(()=>{r()&&l(d)&&l(f)&&(a(a()??ls(of(e.fields,l(d)))??{}),a().__sc_component_name=e.componentName,ln(a(),l(v))||Object.assign(r()[g][l(d)],Object.fromEntries(Object.entries(to(a())).map(([A,P])=>[`${l(h)}${A}`,P]))))})}),De(()=>{l(v),Ee(()=>{ln(m,l(v))||(c()(new CustomEvent("update",{detail:l(v)})),m=l(v))})});var b={getElement:p},y=aY();y.__keydown=[sY,u,c];var w=z(y),E=z(w),k=z(E),S=j(E,2);{const A=L=>{Je(L,{name:"close"})};let P=_(()=>i()("remove"));Ze(S,{size:"small",iconic:!0,get"aria-label"(){return l(P)},onclick:()=>{c()(new CustomEvent("remove"))},startIcon:A,$$slots:{startIcon:!0}})}var C=j(w,2);{var x=A=>{var P=X(),L=M(P);ot(L,17,()=>e.fields,I=>I.name,(I,N)=>{ro(I,{children:(D,B)=>{ug(D,{get locale(){return l(d)},get keyPath(){return`${l(h)??""}${l(N).name??""}`},get fieldConfig(){return l(N)},context:"markdown-editor-component",valueStoreKey:g})},$$slots:{default:!0}})}),$(A,P)};q(C,A=>{l(d)&&l(f)&&A(x)})}bt(y,A=>G(u,A),()=>l(u)),Z(()=>{Se(y,"aria-label",e.label),Se(y,"data-key-path-prefix",l(h)),Se(y,"data-component-name",e.componentName),te(k,e.label)}),Hr("keydown",y,A=>{A.stopPropagation()},!0),$(t,y);var T=ce(b);return s(),T}al(["keydown"]);const uY=t=>{const{id:e,label:n,fields:r,pattern:i,toBlock:o,toPreview:s}=t,a=rT(i),c=s({}),u=o({}),d=typeof c=="string"?c.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName??(typeof u=="string"?u.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName:void 0):void 0;class f extends Ey{__props;constructor(p,g){super(g),this.__props=p}static getType(){return e}isInline(){return!a}static clone(p){return new f(p.__props,p.__key)}static importJSON(p){return new f().updateFromJSON(p)}exportJSON(){return{...iT(this.__props??{}),type:e,version:1}}createDOM(){let p,g=null,m;const v=async({type:b,detail:y})=>{await Sa(),g??=Jp(p),g?.update(()=>{if(b==="update")try{this.getWritable().__props=y}catch{}b==="remove"&&(gE(m),this.remove())})};return m=cp(cY,{target:document.createElement("div"),props:{componentName:e,label:n,fields:r,values:this.__props,onChange:v}}),Ac(),p=m.getElement(),window.requestAnimationFrame(()=>{p.focus()}),p}exportDOM(){return{element:this.createDOM()}}static importDOM(){const p={};return d&&(p[d]=()=>({conversion:g=>({node:new f(Object.fromEntries(r.map(({name:m})=>[m,g[m]??""])))}),priority:3})),e==="linked-image"&&Object.assign(p,{a:g=>{if(g.firstChild?.nodeName.toLowerCase()==="img"){const{href:m}=g,{src:v,alt:b,title:y}=g.firstChild;return{conversion:()=>({node:new f({src:v,alt:b,title:y,link:m}),after:()=>[]}),priority:4}}return null}}),p}updateDOM(){return!1}decorate(){return null}}return f},dY=({componentDef:t,CustomNode:e})=>{const{id:n,pattern:r,fromBlock:i,toBlock:o}=t,s=new RegExp(r.source,r.flags.replace("g","")),a=d=>i?.(d)??d.groups??{},c=d=>d instanceof e&&d.getType()===n,u=d=>c(d)?o(iT(d.__props??{})):null;return rT(r)?{type:"multiline-element",dependencies:[e],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:d,rootNode:f,startLineIndex:h})=>{const p=d.slice(h).join(`
|
|
621
621
|
`),[g]=p.match(s)??[];if(!g||!p.startsWith(g))return null;const m=g.match(s),v=h+g.split(`
|
|
622
|
-
`).length-1;return m?(f.append(new e(a(m))),[!0,v]):[!1,v]},replace:()=>{},export:u}:{type:"text-match",dependencies:[e],importRegExp:s,regExp:s,replace:(d,f)=>{d.replace(new e(a(f)))},export:u}},zk=new Map,
|
|
622
|
+
`).length-1;return m?(f.append(new e(a(m))),[!0,v]):[!1,v]},replace:()=>{},export:u}:{type:"text-match",dependencies:[e],importRegExp:s,regExp:s,replace:(d,f)=>{d.replace(new e(a(f)))},export:u}},zk=new Map,fY=t=>{const e=uY(t);return{node:e,createNode:n=>new e(n),transformer:dY({componentDef:t,CustomNode:e})}};class hY{constructor(e){const{id:n}=e,r=zk.get(n),i=r??fY(e);r||zk.set(n,i),Object.assign(this,{...e,...i})}}var pY=U('<div role="none"><!></div>');const gY={hash:"svelte-eev3hl",code:`.wrapper.svelte-eev3hl {display:contents;}.wrapper.minimal.svelte-eev3hl :is([role=textbox], textarea) {overflow:auto;max-height:240px;}
|
|
623
623
|
@media (width < 768px) {.wrapper.svelte-eev3hl .sui.text-editor {margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}.wrapper.svelte-eev3hl :is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
|
|
624
|
-
}`};function gY(t,e){le(e,!0),ke(t,pY);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{widgetContext:o=void 0}=tr("field-editor")??{},s=o==="markdown-editor-component";let a=R(e,"currentValue",15),c=R(e,"required",3,!0),u=R(e,"readonly",3,!1),d=R(e,"invalid",3,!1),f=ie(void 0),h=ie(""),p=0;const g=_(()=>tt(e.fieldConfig.modes,()=>[...eY],!0)),m=_(()=>tt(e.fieldConfig.buttons,()=>[...nY],!0)),v=_(()=>tt(e.fieldConfig.editor_components,()=>[...iY,...ph.keys()],!0)),b=_(()=>tt(e.fieldConfig.linked_images,!0)),y=_(()=>tt(e.fieldConfig.minimal,!1)),w=_(()=>l(g).map(D=>tY[D]).filter(Boolean)),E=_(()=>[...l(m),...l(v).includes("code-block")?["code-block"]:[]].map(D=>rY[D]).filter(Boolean)),k=_(()=>s?[]:l(v).map(D=>aT(D==="image"&&l(b)?"linked-image":D)).filter(D=>!!D).map(D=>new fY(D))),S=_(()=>l(k).find(({id:D})=>D==="image"||D==="linked-image")),C=({target:D,images:B})=>{const H=D?.closest("div"),W=Jp(H);!l(S)||!H?.matches(".lexical-root")||!W||B.forEach(({file:Y,src:O,alt:F=""})=>{Y&&(O=URL.createObjectURL(Y)),W.update(()=>{Yc([l(S).createNode({src:O,alt:F}),_n()])},{onUpdate:async()=>{if(!Y)return;await Lt(250),H.querySelector(`img[src="${O}"]`)?.closest(".drop-target")?.dispatchEvent(new CustomEvent("Select",{detail:{files:[Y]}}))}})})},x=async D=>{const{target:B,clipboardData:H}=D,W=H?.items;if(!W)return;let Y=[];const O=[...W].findIndex(({kind:K,type:J})=>K==="file"&&xo.includes(J)),F=[...W].findIndex(({kind:K,type:J})=>K==="string"&&J==="text/html");if(O>-1&&F>-1){const K=O>-1?W[O].getAsFile():void 0;if(!K)return;W.clear(),D.stopPropagation();let J="",Q=K.name;const oe=await new Promise(re=>{W[F].getAsString(ee=>{re(new DOMParser().parseFromString(ee,"text/html").querySelector("img"))})});if(oe&&(J=oe.alt,/^https?:/.test(oe.src))){const re=new URL(oe.src).pathname.split("/").pop()??"";(Tv.test(re)||UD.test(re))&&(Q=re)}Y=[{file:new File([K],Q,{type:K.type}),alt:J}]}else Y=[...H.files].filter(({type:K})=>xo.includes(K)).map(K=>({file:K}));Y.length&&(Y=Y.map(({file:K,alt:J},Q)=>{if(K?.name==="image.png"){const{year:oe,month:re,day:ee,hour:ne,minute:se,second:fe}=Ba(),be=Y.length>1?`-${Q+1}`:"",pe=`${oe}${re}${ee}-${ne}${se}${fe}${be}.png`;K=new File([K],pe,{type:K.type})}return{file:K,alt:J}}),C({target:B,images:Y}))},T=async D=>{const{target:B,dataTransfer:H}=D,W=H?.files;let Y=[];if(W?.length)Y=[...W].filter(({type:O})=>xo.includes(O)).map(O=>({file:O}));else{const O=D.dataTransfer?.getData("text/html");if(O){const F=new DOMParser().parseFromString(O,"text/html").querySelector("img");if(F){const{src:K,alt:J}=F,Q=K.match(/^data:(?<type>image\/.+?);base64,.+/);let oe;if(Q){const re=Q.groups?.type??"";if(xo.includes(re))try{const ee=await(await fetch(K)).blob(),{year:ne,month:se,day:fe,hour:be,minute:pe,second:he}=Ba(),ge=re.split("/")[1],ve=`${ne}${se}${fe}-${be}${pe}${he}.${ge}`;oe=new File([ee],ve,{type:re})}catch{return}}Y=[{file:oe,src:K,alt:J}]}}}Y.length&&C({target:B,images:Y})},A=()=>{const D=typeof a()=="string"?a():"";l(h)!==D&&G(h,D,!0),!(!n()||s)&&(window.clearTimeout(p),p=window.setTimeout(()=>{Object.keys(n()?.extraValues[e.locale]??{}).forEach(B=>{const[H]=B.match(md)??[];H?.startsWith(`${e.keyPath}:`)&&!l(f)?.querySelector(`[data-key-path-prefix="${H}"]`)&&delete n().extraValues[e.locale][B]})},500))},P=()=>{const D=l(h);a()!==D&&a(D)};De(()=>{a(),Ee(()=>{A()})}),De(()=>{l(h),Ee(()=>{P()})});var L=hY();let I;var N=z(L);nn(N,Lt,null,D=>{var B=X(),H=M(B);er(H,()=>JSON.stringify(e.fieldConfig),W=>{{let Y=_(()=>Tr(e.locale));S6(W,{get lang(){return l(Y)},get modes(){return l(w)},get buttons(){return l(E)},get components(){return l(k)},flex:!0,get readonly(){return u()},get required(){return c()},get invalid(){return d()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,onpastecapture:O=>{x(O)},ondrop:O=>{T(O)},get value(){return l(h)},set value(O){G(h,O,!0)}})}}),$(D,B)}),bt(L,D=>G(f,D),()=>l(f)),Z(D=>I=rn(L,1,"wrapper svelte-eev3hl",null,I,D),[()=>({minimal:l(y)})]),$(t,L),ce(),i()}function mY(){return{useNewRenderer:!0,renderer:{heading(...t){return Mt.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return Mt.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return Mt.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}const vY=(...t)=>{const{alt:e,src:n,title:r}=t.at(-1),i=n.replaceAll(" ","%20");return r?``:``};var bY=U('<div role="none" class="svelte-lijj98"><!></div>');const _Y={hash:"svelte-lijj98",code:'[role="document"] div.svelte-lijj98 :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}[role="document"] div.svelte-lijj98 :is(video, img) {max-width:100%;max-height:100%;}[role="document"] div.svelte-lijj98 :is(a:has(img)) {display:inline-block;}[role="document"] div.svelte-lijj98 :is(a:has(img)) img {pointer-events:none;}'};function yY(t,e){le(e,!0),ke(t,_Y);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=ie("");const s=_(()=>n()?.originalEntry),a=_(()=>n()?.collectionName??""),c=_(()=>n()?.fileName),u=_(()=>tt(e.fieldConfig.sanitize_preview,!0)),d=_(()=>(e.currentValue??"").replace(iM,vY)),f={breaks:!0,async:!0,walkTokens:async v=>{if(v.type==="image"){const b=await pc({value:v.href,entry:l(s),collectionName:l(a),fileName:l(c)});b&&(v.href=b)}}},h={ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|blob):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i};HM(mY()),De(()=>{(async()=>G(o,await B_(l(d),f),!0))()});var p=bY(),g=z(p);{var m=v=>{var b=X(),y=M(b);gr(y,()=>l(u)?Dr.sanitize(l(o),h):l(o)),$(v,b)};q(g,v=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&v(m)})}$(t,p),ce(),i()}function wY(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=ie(void 0),a=ie("");const c=_(()=>tt(e.fieldConfig.value_type,"int")),u=_(()=>e.fieldConfig.min),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.step,1)),h=_(()=>l(c)==="int"||l(c)==="float"),p=()=>{if(n()!==void 0){if(l(h)&&l(s)!==n())if(typeof n()=="number")G(s,n(),!0);else if(typeof n()=="string"){const w=n().trim()?Number(n()):NaN;G(s,Number.isNaN(w)?void 0:w,!0)}else G(s,void 0);!l(h)&&l(a)!==n()&&G(a,String(n()),!0)}},g=()=>{let w;l(h)?l(s)===void 0?w=NaN:l(c)==="int"?w=Number.parseInt(l(h)?String(l(s)):l(a),10):w=Number.parseFloat(l(h)?String(l(s)):l(a)):w=l(a),l(h)&&Number.isNaN(w)&&(w=null),n()!==w&&n(w)};De(()=>{n(),Ee(()=>{p()})}),De(()=>{l(a),Ee(()=>{g()})}),De(()=>{l(s),Ee(()=>{g()})});var m=X(),v=M(m);{var b=w=>{T6(w,{get min(){return l(u)},get max(){return l(d)},get step(){return l(f)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(s)},set value(E){G(s,E,!0)}})},y=w=>{Nn(w,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(a)},set value(E){G(a,E,!0)}})};q(v,w=>{l(h)?w(b):w(y,!1)})}$(t,m),ce()}var xY=U('<p dir="auto"><!></p>');function kY(t,e){le(e,!0);const n=_(()=>tt(e.fieldConfig.value_type,"int")),r=_(()=>Tr(e.locale)),i=_(()=>Intl.NumberFormat(l(r)));var o=X(),s=M(o);{var a=c=>{var u=xY(),d=z(u);{var f=p=>{var g=Oe();Z(m=>te(g,m),[()=>l(i).format(Number(e.currentValue))]),$(p,g)},h=p=>{var g=Oe();Z(()=>te(g,e.currentValue)),$(p,g)};q(d,p=>{l(n)==="int"||l(n)==="float"?p(f):p(h,!1)})}Z(()=>{Se(u,"lang",l(r)),u.dir=u.dir}),$(c,u)};q(s,c=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&c(a)})}$(t,o),ce()}const OP=t=>{const{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,isIndexFile:s}=ae(We),{defaultLocale:a}=(i??r)._i18n,c={...js(t),...js(o[a])},u={collectionName:e,fileName:n,valueMap:c,isIndexFile:s},d=[];return Object.keys(c).forEach(f=>{const h=hn({...u,keyPath:f});if(!h)return;const{widget:p="text",i18n:g=!1}=h;["text","string","markdown"].includes(p)&&[!0,"translate"].includes(g)&&(c[f]=t[f]??""),([!1,"none"].includes(g)||d.some(m=>new RegExp(`^${Vt(m)}\\b`).test(f)))&&(delete c[f],d.push(f))}),c},RP=t=>{We.update(e=>{const{fields:n,currentLocales:r,currentValues:i,validities:o}=e,s=!r[t];if(s&&!i[t]){const{collectionName:a,fileName:c,originalValues:u}=e,d=of(n,t);return{...e,currentLocales:{...r,[t]:s},originalValues:{...u,[t]:d},currentValues:{...i,[t]:hw({draft:{collectionName:a,fileName:c},locale:t,target:OP(d)})}}}return{...e,currentLocales:{...r,[t]:s},validities:{...o,[t]:{}}}})},SY=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s})=>{const a={collectionName:t,fileName:e,keyPath:"",valueMap:r,isIndexFile:i};return s?s.replaceAll(/{{(.+?)}}/g,(c,u)=>{const[d,...f]=u.split(/\s*\|\s*/);return Uc({...a,keyPath:`${n}.${d.replace(/^fields\./,"")}`,locale:o,transformations:f})}):kT({valueMap:r,locale:o,keyPath:n,keyPathRegex:new RegExp(`^${Vt(n)}\\.`),getFieldArgs:a})};var EY=U('<div role="none" class="summary svelte-ztn6n1"><!></div>'),$Y=U('<div role="group" class="wrapper svelte-ztn6n1"><!> <div role="none" class="item-list"><!></div></div>'),TY=U("<!> <!> <!>",1);const CY={hash:"svelte-ztn6n1",code:".wrapper.svelte-ztn6n1 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-ztn6n1 > .group {margin-top:8px;}.summary.svelte-ztn6n1 {padding:8px;}"};function AY(t,e){const n=zn();le(e,!0),ke(t,CY);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(cn,"$isSmallScreen",s),[s,a]=me(),{widgetContext:c,valueStoreKey:u="currentValues"}=tr("field-editor")??{};let d=R(e,"required",3,!0),f=ie(void 0);const h=_(()=>e.fieldConfig.name),p=_(()=>tt(e.fieldConfig.i18n,!1)),g=_(()=>e.fieldConfig.collapsed),m=_(()=>e.fieldConfig.summary),v=_(()=>e.fieldConfig.fields),b=_(()=>e.fieldConfig.types),y=_(()=>tt(e.fieldConfig.typeKey,"type")),w=_(()=>r()?.isIndexFile??!1),E=_(()=>r()?.collection),k=_(()=>r()?.collectionName??""),S=_(()=>r()?.collectionFile),C=_(()=>r()?.fileName),x=_(()=>(l(S)??l(E))?._i18n??so),T=_(()=>l(x).defaultLocale),A=_(()=>Dn(r()?.[u][e.locale])??{}),P=_(()=>({collectionName:l(k),fileName:l(C),valueMap:l(A),isIndexFile:l(w)})),L=_(()=>Object.entries(l(A)).some(([he,ge])=>!!he.startsWith(`${e.keyPath}.`)&&(ge!==null||hn({...l(P),keyPath:he})?.widget==="object"))),I=_(()=>c==="markdown-editor-component"||e.locale===l(T)||l(p)!==!1),N=_(()=>`${e.keyPath}#`),D=_(()=>r()?.expanderStates?._[l(N)]??!0),B=_(()=>Array.isArray(l(b))),H=_(()=>`${e.keyPath}.${l(y)}`),W=_(()=>l(B)?l(b)?.find(({name:he})=>he===l(A)[l(H)]):void 0),Y=_(()=>(l(B)?l(W)?.fields:l(v))??[]),O=_(()=>l(B)&&l(W)?.summary||l(m)),F=_(()=>e.locale!==l(T)&&l(p)==="duplicate"),K=()=>{const he=l(N);yo({[he]:LP({key:he,locale:e.locale,collapsed:l(g)})})},J=async({type:he}={})=>{Ge(Yi,!1),he&&(Object.keys(r()?.[u]??{}).forEach(_e=>{(_e===e.locale||l(p)==="duplicate")&&yt(We,Ee(r)[u][_e][l(H)]=he,Ee(r))}),await Sa());const ge=Object.fromEntries(Object.entries(of(l(Y),e.locale)).map(([_e,$e])=>[`${e.keyPath}.${_e}`,$e])),ve=e.locale===l(T)?ge:OP(ge);Object.entries(r()?.[u]??{}).forEach(([_e,$e])=>{(_e===e.locale||l(p)==="duplicate")&&(yt(We,Ee(r)[u][_e]=Object.assign($e,js({...ve,...$e})),Ee(r)),delete r()[u][_e][e.keyPath])}),Ge(Yi,!0)},Q=()=>{Ge(Yi,!1),Object.entries(r()?.[u]??{}).forEach(([he,ge])=>{(he===e.locale||l(p)==="duplicate")&&(Object.keys(ge).forEach(ve=>{ve.startsWith(`${e.keyPath}.`)&&(yt(We,Ee(r)[u][he][ve]=null,Ee(r)),delete r()?.[u][he][ve])}),yt(We,Ee(r)[u][he][e.keyPath]=null,Ee(r)))}),Ge(Yi,!0)},oe=()=>SY({...l(P),keyPath:e.keyPath,locale:e.locale,summaryTemplate:l(O)});jt(()=>{K()});var re=TY(),ee=M(re);{var ne=he=>{{let ge=_(()=>i()("add_x",{values:{name:e.fieldLabel||l(h)}}));Fd(he,{get label(){return l(ge)},get checked(){return l(L)},get disabled(){return l(F)},onChange:({detail:{checked:ve}})=>{ve?J():Q()}})}};q(ee,he=>{!l(B)&&!d()&&he(ne)})}var se=j(ee,2);{var fe=he=>{Pb(he,{get disabled(){return l(F)},get fieldConfig(){return e.fieldConfig},addItem:J})};q(se,he=>{l(B)&&!l(L)&&he(fe)})}var be=j(se,2);{var pe=he=>{var ge=$Y(),ve=z(ge);{const Ce=Ye=>{var Ue=X(),Te=M(Ue);{var Fe=Ie=>{{const Ae=Pe=>{Je(Pe,{name:"close"})};let we=_(()=>i()("remove"));Ze(Ie,{size:"small",iconic:!0,get disabled(){return l(F)},get"aria-label"(){return l(we)},onclick:()=>{Q()},startIcon:Ae,$$slots:{startIcon:!0}})}};q(Te,Ie=>{l(B)&&Ie(Fe)})}$(Ye,Ue)};let Re=_(()=>l(B)?l(W)?.label||l(W)?.name:""),He=_(()=>l(Y).length?()=>yo({[l(N)]:!l(D)}):void 0);TP(ve,{get label(){return l(Re)},get controlId(){return`object-${n}-item-list`},get expanded(){return l(D)},get toggleExpanded(){return l(He)},endContent:Ce,$$slots:{endContent:!0}})}var _e=j(ve,2),$e=z(_e);nn($e,()=>vc(l(f)),null,Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{var Fe=X(),Ie=M(Fe);ot(Ie,17,()=>l(Y),Ae=>Ae.name,(Ae,we)=>{ro(Ae,{children:(Pe,ye)=>{{let it=_(()=>[e.keyPath,l(we).name].join("."));ug(Pe,{get keyPath(){return l(it)},get locale(){return e.locale},get fieldConfig(){return l(we)}})}},$$slots:{default:!0}})}),$(Te,Fe)},Ue=Te=>{const Fe=_(oe);var Ie=X(),Ae=M(Ie);{var we=Pe=>{var ye=EY(),it=z(ye);{let Qe=_(()=>o()?2:1);Cr(it,{get lines(){return l(Qe)},children:(Le,ze)=>{var Xe=Oe();Z(()=>te(Xe,l(Fe))),$(Le,Xe)},$$slots:{default:!0}})}Z(()=>Se(ye,"id",`object-${n}-summary`)),$(Pe,ye)};q(Ae,Pe=>{l(Fe)&&Pe(we)})}$(Te,Ie)};q(He,Te=>{l(D)?Te(Ye):Te(Ue,!1)})}$(Ce,Re)}),bt(_e,Ce=>G(f,Ce),()=>l(f)),Z(()=>{Se(ge,"aria-labelledby",l(D)?void 0:`object-${n}-summary`),Se(_e,"id",`object-${n}-item-list`)}),$(he,ge)};q(be,he=>{(!(!d()||l(B))||l(L))&&l(I)&&he(pe)})}$(t,re),ce(),a()}function PY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.fields),s=_(()=>e.fieldConfig.types),a=_(()=>tt(e.fieldConfig.typeKey,"type")),c=_(()=>Dn(n()?.currentValues[e.locale])??{}),u=_(()=>Object.entries(l(c)).some(([y,w])=>!!y.startsWith(`${e.keyPath}.`)&&!!w)),d=_(()=>Array.isArray(l(s))),f=_(()=>`${e.keyPath}.${l(a)}`),h=_(()=>l(d)?l(s)?.find(({name:y})=>y===l(c)[l(f)]):void 0),p=_(()=>l(h)?l(h).label||l(h).name:void 0),g=_(()=>(l(d)?l(h)?.fields:l(o))??[]);var m=X(),v=M(m);{var b=y=>{IP(y,{get label(){return l(p)},children:(w,E)=>{var k=X(),S=M(k);ot(S,17,()=>l(g),C=>C.name,(C,x)=>{ro(C,{children:(T,A)=>{{let P=_(()=>[e.keyPath,l(x).name].join("."));xw(T,{get keyPath(){return l(P)},get locale(){return e.locale},get fieldConfig(){return l(x)}})}},$$slots:{default:!0}})}),$(w,k)},$$slots:{default:!0}})};q(v,y=>{l(u)&&y(b)})}$(t,m),ce(),i()}function LY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=tr("field-editor")??{};let s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1);const u=_(()=>e.fieldConfig.i18n),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.dropdown_threshold,5)),h=w=>{n()&&Object.keys(Dn(n()[o])??{}).forEach(E=>{l(u)!=="duplicate"&&E!==e.locale||PP({locale:E,valueStoreKey:o,keyPath:e.keyPath,manipulate:w})})},p=w=>{h(({valueList:E})=>{E.push(w)})},g=w=>{h(({valueList:E})=>{E.splice(E.indexOf(w),1)})};var m=X(),v=M(m);{var b=w=>{BU(w,{get disabled(){return a()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get options(){return e.options},get values(){return e.currentValue},get max(){return l(d)},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onAddValue:({detail:{value:E}})=>{p(E)},onRemoveValue:({detail:{value:E}})=>{g(E)}})},y=w=>{PB(w,{get"aria-labelledby"(){return`${e.fieldId??""}-label`},children:(E,k)=>{var S=X(),C=M(S);ot(C,17,()=>e.options,({label:x,value:T})=>T,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).value;{let L=_(()=>e.currentValue.includes(P()));Fd(x,{get label(){return A()},get value(){return P()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get checked(){return l(L)},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{checked:I}})=>{I?p(P()):g(P())}})}}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.options.length>l(f)?w(b):w(y,!1)})}$(t,m),ce(),i()}function NY(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=R(e,"options",7);const d=_(()=>tt(e.fieldConfig.dropdown_threshold,5));let f=ie(void 0);De(()=>{l(f)||G(f,u()[0]?.value!==void 0?typeof u()[0]?.value:"string",!0)}),De(()=>{!s()&&!u().some(({value:v})=>!v)&&u([{label:n()("unselected_option"),value:l(f)==="number"?null:"",searchValue:""},...u()])});var h=X(),p=M(h);{var g=v=>{pl(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(b){o(b)},children:(b,y)=>{var w=X(),E=M(w);ot(E,17,u,({label:k,value:S,searchValue:C})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value,T=()=>l(S).searchValue;{let A=_(()=>x()===o());Sr(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get searchValue(){return T()},get selected(){return l(A)},wrap:!0})}}),$(b,w)},$$slots:{default:!0}})},m=v=>{xU(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{value:b}})=>{o(b)},children:(b,y)=>{var w=X(),E=M(w);ot(E,17,u,({label:k,value:S})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value;{let T=_(()=>x()===o());$U(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get checked(){return l(T)}})}}),$(b,w)},$$slots:{default:!0}})};q(p,v=>{u().length>l(d)?v(g):v(m,!1)})}$(t,h),ce(),i()}function DP(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=R(e,"sortOptions",3,!1);const a=_(()=>e.fieldConfig.options),c=_(()=>e.fieldConfig.multiple),u=_(()=>l(c)?LY:NY),d=_(()=>{const p=l(a).map(g=>Yt(g)?g:{label:g,value:g});return s()&&p.sort((g,m)=>xi(g.label,m.label)),p});var f=X(),h=M(f);er(h,()=>JSON.stringify(l(d)),p=>{var g=X(),m=M(g);Hn(m,()=>l(u),(v,b)=>{b(v,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldConfig(){return e.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get options(){return l(d)},get currentValue(){return n()},set currentValue(y){n(y)}})}),$(p,g)}),$(t,f),ce()}var IY=U('<div role="none" class="wrapper"><!></div>');function OY(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);const s=_(()=>e.fieldConfig.collection),a=_(()=>e.fieldConfig.file),c=_(()=>l(a)?[A_(l(s),l(a))].filter(h=>!!h):zo(l(s))),u=_(()=>({...e.fieldConfig,widget:"select",options:q_(e.locale,e.fieldConfig,l(c))}));var d=IY(),f=z(d);DP(f,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldLabel(){return e.fieldLabel},get fieldConfig(){return l(u)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},sortOptions:!0,get currentValue(){return n()},set currentValue(h){n(h)}}),$(t,d),ce()}var RY=U('<p dir="auto"> </p>');function DY(t,e){le(e,!0);const n=_(()=>e.fieldConfig.collection),r=_(()=>e.fieldConfig.file),i=_(()=>tt(e.fieldConfig.multiple,!1)),o=_(()=>tt(e.fieldConfig.value_field,"{{slug}}")),s=_(()=>dc(e.locale)),a=_(()=>l(r)?[A_(l(n),l(r))].filter(p=>!!p):zo(l(n))),c=_(()=>q_(e.locale,e.fieldConfig,l(a))),u=_(()=>(l(i)?e.currentValue:[e.currentValue]).filter(p=>p!==void 0).map(p=>{const g=l(c).find(m=>m.value===p)?.label;return g&&g!==p?["slug","{{slug}}","{{fields.slug}}"].includes(l(o))?g:`${g} (${p})`:p}));var d=X(),f=M(d);{var h=p=>{var g=RY(),m=z(g);Z((v,b)=>{Se(g,"lang",v),te(m,b),g.dir=g.dir},[()=>Tr(e.locale),()=>l(s).format(l(u))]),$(p,g)};q(f,p=>{l(u).length&&p(h)})}$(t,d),ce()}var MY=U('<p dir="auto"> </p>'),FY=U('<p dir="auto"> </p>');function zY(t,e){le(e,!0);const n=_(()=>e.fieldConfig.options),r=_(()=>e.fieldConfig.multiple),i=_(()=>O$(l(n))),o=_(()=>dc(e.locale)),s=f=>l(i)&&l(n).find(h=>h.value===f)?.label||String(f);var a=X(),c=M(a);{var u=f=>{var h=MY(),p=z(h);Z((g,m)=>{Se(h,"lang",g),te(p,m),h.dir=h.dir},[()=>Tr(e.locale),()=>l(o).format(e.currentValue.map(s).sort())]),$(f,h)},d=f=>{var h=X(),p=M(h);{var g=m=>{var v=FY(),b=z(v);Z((y,w)=>{Se(v,"lang",y),te(b,w),v.dir=v.dir},[()=>Tr(e.locale),()=>s(e.currentValue)]),$(m,v)};q(p,m=>{e.currentValue!==void 0&&m(g)},!0)}$(f,h)};q(c,f=>{l(r)&&Array.isArray(e.currentValue)&&e.currentValue.length?f(u):f(d,!1)})}$(t,a),ce()}const MP=({fieldConfig:t,value:e})=>{const{minlength:n,maxlength:r}=t,i=Number.isInteger(n)&&n<=(r??1/0),o=Number.isInteger(r)&&(n??0)<=r,s=e?[...e.trim()].length:0,a=i&&s<n,c=o&&s>r;return{count:s,hasMin:i,hasMax:o,tooShort:a,tooLong:c,invalid:a||c}};var jY=U('<div class="wrapper svelte-18cyzaa"><!> <span role="none"> </span> <!></div>');const BY={hash:"svelte-18cyzaa",code:".wrapper.svelte-18cyzaa {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:end;}.count.invalid.svelte-18cyzaa {color:var(--sui-error-foreground-color);}.count.svelte-18cyzaa:not(.invalid) {color:var(--sui-success-foreground-color);}"};function FP(t,e){le(e,!0),ke(t,BY);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.fieldConfig.minlength),s=_(()=>e.fieldConfig.maxlength),a=_(()=>MP({fieldConfig:e.fieldConfig,value:e.currentValue})),c=_(()=>l(a).count),u=_(()=>l(a).hasMin),d=_(()=>l(a).hasMax),f=_(()=>l(a).invalid);var h=X(),p=M(h);{var g=m=>{var v=jY(),b=z(v);{var y=x=>{var T=Oe();Z(()=>te(T,`${l(o)??""}
|
|
624
|
+
}`};function mY(t,e){le(e,!0),ke(t,gY);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{widgetContext:o=void 0}=tr("field-editor")??{},s=o==="markdown-editor-component";let a=R(e,"currentValue",15),c=R(e,"required",3,!0),u=R(e,"readonly",3,!1),d=R(e,"invalid",3,!1),f=ie(void 0),h=ie(""),p=0;const g=_(()=>tt(e.fieldConfig.modes,()=>[...tY],!0)),m=_(()=>tt(e.fieldConfig.buttons,()=>[...rY],!0)),v=_(()=>tt(e.fieldConfig.editor_components,()=>[...oY,...ph.keys()],!0)),b=_(()=>tt(e.fieldConfig.linked_images,!0)),y=_(()=>tt(e.fieldConfig.minimal,!1)),w=_(()=>l(g).map(D=>nY[D]).filter(Boolean)),E=_(()=>[...l(m),...l(v).includes("code-block")?["code-block"]:[]].map(D=>iY[D]).filter(Boolean)),k=_(()=>s?[]:l(v).map(D=>aT(D==="image"&&l(b)?"linked-image":D)).filter(D=>!!D).map(D=>new hY(D))),S=_(()=>l(k).find(({id:D})=>D==="image"||D==="linked-image")),C=({target:D,images:B})=>{const H=D?.closest("div"),W=Jp(H);!l(S)||!H?.matches(".lexical-root")||!W||B.forEach(({file:Y,src:O,alt:F=""})=>{Y&&(O=URL.createObjectURL(Y)),W.update(()=>{Yc([l(S).createNode({src:O,alt:F}),_n()])},{onUpdate:async()=>{if(!Y)return;await Lt(250),H.querySelector(`img[src="${O}"]`)?.closest(".drop-target")?.dispatchEvent(new CustomEvent("Select",{detail:{files:[Y]}}))}})})},x=async D=>{const{target:B,clipboardData:H}=D,W=H?.items;if(!W)return;let Y=[];const O=[...W].findIndex(({kind:K,type:J})=>K==="file"&&xo.includes(J)),F=[...W].findIndex(({kind:K,type:J})=>K==="string"&&J==="text/html");if(O>-1&&F>-1){const K=O>-1?W[O].getAsFile():void 0;if(!K)return;W.clear(),D.stopPropagation();let J="",Q=K.name;const oe=await new Promise(re=>{W[F].getAsString(ee=>{re(new DOMParser().parseFromString(ee,"text/html").querySelector("img"))})});if(oe&&(J=oe.alt,/^https?:/.test(oe.src))){const re=new URL(oe.src).pathname.split("/").pop()??"";(Tv.test(re)||UD.test(re))&&(Q=re)}Y=[{file:new File([K],Q,{type:K.type}),alt:J}]}else Y=[...H.files].filter(({type:K})=>xo.includes(K)).map(K=>({file:K}));Y.length&&(Y=Y.map(({file:K,alt:J},Q)=>{if(K?.name==="image.png"){const{year:oe,month:re,day:ee,hour:ne,minute:se,second:fe}=Ba(),be=Y.length>1?`-${Q+1}`:"",pe=`${oe}${re}${ee}-${ne}${se}${fe}${be}.png`;K=new File([K],pe,{type:K.type})}return{file:K,alt:J}}),C({target:B,images:Y}))},T=async D=>{const{target:B,dataTransfer:H}=D,W=H?.files;let Y=[];if(W?.length)Y=[...W].filter(({type:O})=>xo.includes(O)).map(O=>({file:O}));else{const O=D.dataTransfer?.getData("text/html");if(O){const F=new DOMParser().parseFromString(O,"text/html").querySelector("img");if(F){const{src:K,alt:J}=F,Q=K.match(/^data:(?<type>image\/.+?);base64,.+/);let oe;if(Q){const re=Q.groups?.type??"";if(xo.includes(re))try{const ee=await(await fetch(K)).blob(),{year:ne,month:se,day:fe,hour:be,minute:pe,second:he}=Ba(),ge=re.split("/")[1],ve=`${ne}${se}${fe}-${be}${pe}${he}.${ge}`;oe=new File([ee],ve,{type:re})}catch{return}}Y=[{file:oe,src:K,alt:J}]}}}Y.length&&C({target:B,images:Y})},A=()=>{const D=typeof a()=="string"?a():"";l(h)!==D&&G(h,D,!0),!(!n()||s)&&(window.clearTimeout(p),p=window.setTimeout(()=>{Object.keys(n()?.extraValues[e.locale]??{}).forEach(B=>{const[H]=B.match(md)??[];H?.startsWith(`${e.keyPath}:`)&&!l(f)?.querySelector(`[data-key-path-prefix="${H}"]`)&&delete n().extraValues[e.locale][B]})},500))},P=()=>{const D=l(h);a()!==D&&a(D)};De(()=>{a(),Ee(()=>{A()})}),De(()=>{l(h),Ee(()=>{P()})});var L=pY();let I;var N=z(L);nn(N,Lt,null,D=>{var B=X(),H=M(B);er(H,()=>JSON.stringify(e.fieldConfig),W=>{{let Y=_(()=>Tr(e.locale));S6(W,{get lang(){return l(Y)},get modes(){return l(w)},get buttons(){return l(E)},get components(){return l(k)},flex:!0,get readonly(){return u()},get required(){return c()},get invalid(){return d()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,onpastecapture:O=>{x(O)},ondrop:O=>{T(O)},get value(){return l(h)},set value(O){G(h,O,!0)}})}}),$(D,B)}),bt(L,D=>G(f,D),()=>l(f)),Z(D=>I=rn(L,1,"wrapper svelte-eev3hl",null,I,D),[()=>({minimal:l(y)})]),$(t,L),ce(),i()}function vY(){return{useNewRenderer:!0,renderer:{heading(...t){return Mt.Renderer.prototype.heading.call(this,...t).replace(/^<(h\d)/,'<$1 dir="auto"')},list(...t){return Mt.Renderer.prototype.list.call(this,...t).replace(/^<(ol|ul)/,'<$1 dir="auto"')},paragraph(...t){return Mt.Renderer.prototype.paragraph.call(this,...t).replace(/^<p/,'<p dir="auto"')}}}}const bY=(...t)=>{const{alt:e,src:n,title:r}=t.at(-1),i=n.replaceAll(" ","%20");return r?``:``};var _Y=U('<div role="none" class="svelte-lijj98"><!></div>');const yY={hash:"svelte-lijj98",code:'[role="document"] div.svelte-lijj98 :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}[role="document"] div.svelte-lijj98 :is(video, img) {max-width:100%;max-height:100%;}[role="document"] div.svelte-lijj98 :is(a:has(img)) {display:inline-block;}[role="document"] div.svelte-lijj98 :is(a:has(img)) img {pointer-events:none;}'};function wY(t,e){le(e,!0),ke(t,yY);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=ie("");const s=_(()=>n()?.originalEntry),a=_(()=>n()?.collectionName??""),c=_(()=>n()?.fileName),u=_(()=>tt(e.fieldConfig.sanitize_preview,!0)),d=_(()=>(e.currentValue??"").replace(iM,bY)),f={breaks:!0,async:!0,walkTokens:async v=>{if(v.type==="image"){const b=await pc({value:v.href,entry:l(s),collectionName:l(a),fileName:l(c)});b&&(v.href=b)}}},h={ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|blob):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i};HM(vY()),De(()=>{(async()=>G(o,await B_(l(d),f),!0))()});var p=_Y(),g=z(p);{var m=v=>{var b=X(),y=M(b);gr(y,()=>l(u)?Dr.sanitize(l(o),h):l(o)),$(v,b)};q(g,v=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&v(m)})}$(t,p),ce(),i()}function xY(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=ie(void 0),a=ie("");const c=_(()=>tt(e.fieldConfig.value_type,"int")),u=_(()=>e.fieldConfig.min),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.step,1)),h=_(()=>l(c)==="int"||l(c)==="float"),p=()=>{if(n()!==void 0){if(l(h)&&l(s)!==n())if(typeof n()=="number")G(s,n(),!0);else if(typeof n()=="string"){const w=n().trim()?Number(n()):NaN;G(s,Number.isNaN(w)?void 0:w,!0)}else G(s,void 0);!l(h)&&l(a)!==n()&&G(a,String(n()),!0)}},g=()=>{let w;l(h)?l(s)===void 0?w=NaN:l(c)==="int"?w=Number.parseInt(l(h)?String(l(s)):l(a),10):w=Number.parseFloat(l(h)?String(l(s)):l(a)):w=l(a),l(h)&&Number.isNaN(w)&&(w=null),n()!==w&&n(w)};De(()=>{n(),Ee(()=>{p()})}),De(()=>{l(a),Ee(()=>{g()})}),De(()=>{l(s),Ee(()=>{g()})});var m=X(),v=M(m);{var b=w=>{T6(w,{get min(){return l(u)},get max(){return l(d)},get step(){return l(f)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(s)},set value(E){G(s,E,!0)}})},y=w=>{Nn(w,{get readonly(){return i()},get required(){return r()},get invalid(){return o()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(a)},set value(E){G(a,E,!0)}})};q(v,w=>{l(h)?w(b):w(y,!1)})}$(t,m),ce()}var kY=U('<p dir="auto"><!></p>');function SY(t,e){le(e,!0);const n=_(()=>tt(e.fieldConfig.value_type,"int")),r=_(()=>Tr(e.locale)),i=_(()=>Intl.NumberFormat(l(r)));var o=X(),s=M(o);{var a=c=>{var u=kY(),d=z(u);{var f=p=>{var g=Oe();Z(m=>te(g,m),[()=>l(i).format(Number(e.currentValue))]),$(p,g)},h=p=>{var g=Oe();Z(()=>te(g,e.currentValue)),$(p,g)};q(d,p=>{l(n)==="int"||l(n)==="float"?p(f):p(h,!1)})}Z(()=>{Se(u,"lang",l(r)),u.dir=u.dir}),$(c,u)};q(s,c=>{e.currentValue!==void 0&&e.currentValue!==null&&e.currentValue!==""&&c(a)})}$(t,o),ce()}const OP=t=>{const{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,isIndexFile:s}=ae(We),{defaultLocale:a}=(i??r)._i18n,c={...js(t),...js(o[a])},u={collectionName:e,fileName:n,valueMap:c,isIndexFile:s},d=[];return Object.keys(c).forEach(f=>{const h=hn({...u,keyPath:f});if(!h)return;const{widget:p="text",i18n:g=!1}=h;["text","string","markdown"].includes(p)&&[!0,"translate"].includes(g)&&(c[f]=t[f]??""),([!1,"none"].includes(g)||d.some(m=>new RegExp(`^${Vt(m)}\\b`).test(f)))&&(delete c[f],d.push(f))}),c},RP=t=>{We.update(e=>{const{fields:n,currentLocales:r,currentValues:i,validities:o}=e,s=!r[t];if(s&&!i[t]){const{collectionName:a,fileName:c,originalValues:u}=e,d=of(n,t);return{...e,currentLocales:{...r,[t]:s},originalValues:{...u,[t]:d},currentValues:{...i,[t]:hw({draft:{collectionName:a,fileName:c},locale:t,target:OP(d)})}}}return{...e,currentLocales:{...r,[t]:s},validities:{...o,[t]:{}}}})},EY=({collectionName:t,fileName:e,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:o,summaryTemplate:s})=>{const a={collectionName:t,fileName:e,keyPath:"",valueMap:r,isIndexFile:i};return s?s.replaceAll(/{{(.+?)}}/g,(c,u)=>{const[d,...f]=u.split(/\s*\|\s*/);return Uc({...a,keyPath:`${n}.${d.replace(/^fields\./,"")}`,locale:o,transformations:f})}):kT({valueMap:r,locale:o,keyPath:n,keyPathRegex:new RegExp(`^${Vt(n)}\\.`),getFieldArgs:a})};var $Y=U('<div role="none" class="summary svelte-ztn6n1"><!></div>'),TY=U('<div role="group" class="wrapper svelte-ztn6n1"><!> <div role="none" class="item-list"><!></div></div>'),CY=U("<!> <!> <!>",1);const AY={hash:"svelte-ztn6n1",code:".wrapper.svelte-ztn6n1 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-ztn6n1 > .group {margin-top:8px;}.summary.svelte-ztn6n1 {padding:8px;}"};function PY(t,e){const n=zn();le(e,!0),ke(t,AY);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(cn,"$isSmallScreen",s),[s,a]=me(),{widgetContext:c,valueStoreKey:u="currentValues"}=tr("field-editor")??{};let d=R(e,"required",3,!0),f=ie(void 0);const h=_(()=>e.fieldConfig.name),p=_(()=>tt(e.fieldConfig.i18n,!1)),g=_(()=>e.fieldConfig.collapsed),m=_(()=>e.fieldConfig.summary),v=_(()=>e.fieldConfig.fields),b=_(()=>e.fieldConfig.types),y=_(()=>tt(e.fieldConfig.typeKey,"type")),w=_(()=>r()?.isIndexFile??!1),E=_(()=>r()?.collection),k=_(()=>r()?.collectionName??""),S=_(()=>r()?.collectionFile),C=_(()=>r()?.fileName),x=_(()=>(l(S)??l(E))?._i18n??so),T=_(()=>l(x).defaultLocale),A=_(()=>Dn(r()?.[u][e.locale])??{}),P=_(()=>({collectionName:l(k),fileName:l(C),valueMap:l(A),isIndexFile:l(w)})),L=_(()=>Object.entries(l(A)).some(([he,ge])=>!!he.startsWith(`${e.keyPath}.`)&&(ge!==null||hn({...l(P),keyPath:he})?.widget==="object"))),I=_(()=>c==="markdown-editor-component"||e.locale===l(T)||l(p)!==!1),N=_(()=>`${e.keyPath}#`),D=_(()=>r()?.expanderStates?._[l(N)]??!0),B=_(()=>Array.isArray(l(b))),H=_(()=>`${e.keyPath}.${l(y)}`),W=_(()=>l(B)?l(b)?.find(({name:he})=>he===l(A)[l(H)]):void 0),Y=_(()=>(l(B)?l(W)?.fields:l(v))??[]),O=_(()=>l(B)&&l(W)?.summary||l(m)),F=_(()=>e.locale!==l(T)&&l(p)==="duplicate"),K=()=>{const he=l(N);yo({[he]:LP({key:he,locale:e.locale,collapsed:l(g)})})},J=async({type:he}={})=>{Ge(Yi,!1),he&&(Object.keys(r()?.[u]??{}).forEach(_e=>{(_e===e.locale||l(p)==="duplicate")&&yt(We,Ee(r)[u][_e][l(H)]=he,Ee(r))}),await Sa());const ge=Object.fromEntries(Object.entries(of(l(Y),e.locale)).map(([_e,$e])=>[`${e.keyPath}.${_e}`,$e])),ve=e.locale===l(T)?ge:OP(ge);Object.entries(r()?.[u]??{}).forEach(([_e,$e])=>{(_e===e.locale||l(p)==="duplicate")&&(yt(We,Ee(r)[u][_e]=Object.assign($e,js({...ve,...$e})),Ee(r)),delete r()[u][_e][e.keyPath])}),Ge(Yi,!0)},Q=()=>{Ge(Yi,!1),Object.entries(r()?.[u]??{}).forEach(([he,ge])=>{(he===e.locale||l(p)==="duplicate")&&(Object.keys(ge).forEach(ve=>{ve.startsWith(`${e.keyPath}.`)&&(yt(We,Ee(r)[u][he][ve]=null,Ee(r)),delete r()?.[u][he][ve])}),yt(We,Ee(r)[u][he][e.keyPath]=null,Ee(r)))}),Ge(Yi,!0)},oe=()=>EY({...l(P),keyPath:e.keyPath,locale:e.locale,summaryTemplate:l(O)});jt(()=>{K()});var re=CY(),ee=M(re);{var ne=he=>{{let ge=_(()=>i()("add_x",{values:{name:e.fieldLabel||l(h)}}));Fd(he,{get label(){return l(ge)},get checked(){return l(L)},get disabled(){return l(F)},onChange:({detail:{checked:ve}})=>{ve?J():Q()}})}};q(ee,he=>{!l(B)&&!d()&&he(ne)})}var se=j(ee,2);{var fe=he=>{Pb(he,{get disabled(){return l(F)},get fieldConfig(){return e.fieldConfig},addItem:J})};q(se,he=>{l(B)&&!l(L)&&he(fe)})}var be=j(se,2);{var pe=he=>{var ge=TY(),ve=z(ge);{const Ce=Ye=>{var Ue=X(),Te=M(Ue);{var Fe=Ie=>{{const Ae=Pe=>{Je(Pe,{name:"close"})};let we=_(()=>i()("remove"));Ze(Ie,{size:"small",iconic:!0,get disabled(){return l(F)},get"aria-label"(){return l(we)},onclick:()=>{Q()},startIcon:Ae,$$slots:{startIcon:!0}})}};q(Te,Ie=>{l(B)&&Ie(Fe)})}$(Ye,Ue)};let Re=_(()=>l(B)?l(W)?.label||l(W)?.name:""),He=_(()=>l(Y).length?()=>yo({[l(N)]:!l(D)}):void 0);TP(ve,{get label(){return l(Re)},get controlId(){return`object-${n}-item-list`},get expanded(){return l(D)},get toggleExpanded(){return l(He)},endContent:Ce,$$slots:{endContent:!0}})}var _e=j(ve,2),$e=z(_e);nn($e,()=>vc(l(f)),null,Ce=>{var Re=X(),He=M(Re);{var Ye=Te=>{var Fe=X(),Ie=M(Fe);ot(Ie,17,()=>l(Y),Ae=>Ae.name,(Ae,we)=>{ro(Ae,{children:(Pe,ye)=>{{let it=_(()=>[e.keyPath,l(we).name].join("."));ug(Pe,{get keyPath(){return l(it)},get locale(){return e.locale},get fieldConfig(){return l(we)}})}},$$slots:{default:!0}})}),$(Te,Fe)},Ue=Te=>{const Fe=_(oe);var Ie=X(),Ae=M(Ie);{var we=Pe=>{var ye=$Y(),it=z(ye);{let Qe=_(()=>o()?2:1);Cr(it,{get lines(){return l(Qe)},children:(Le,ze)=>{var Xe=Oe();Z(()=>te(Xe,l(Fe))),$(Le,Xe)},$$slots:{default:!0}})}Z(()=>Se(ye,"id",`object-${n}-summary`)),$(Pe,ye)};q(Ae,Pe=>{l(Fe)&&Pe(we)})}$(Te,Ie)};q(He,Te=>{l(D)?Te(Ye):Te(Ue,!1)})}$(Ce,Re)}),bt(_e,Ce=>G(f,Ce),()=>l(f)),Z(()=>{Se(ge,"aria-labelledby",l(D)?void 0:`object-${n}-summary`),Se(_e,"id",`object-${n}-item-list`)}),$(he,ge)};q(be,he=>{(!(!d()||l(B))||l(L))&&l(I)&&he(pe)})}$(t,re),ce(),a()}function LY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>e.fieldConfig.fields),s=_(()=>e.fieldConfig.types),a=_(()=>tt(e.fieldConfig.typeKey,"type")),c=_(()=>Dn(n()?.currentValues[e.locale])??{}),u=_(()=>Object.entries(l(c)).some(([y,w])=>!!y.startsWith(`${e.keyPath}.`)&&!!w)),d=_(()=>Array.isArray(l(s))),f=_(()=>`${e.keyPath}.${l(a)}`),h=_(()=>l(d)?l(s)?.find(({name:y})=>y===l(c)[l(f)]):void 0),p=_(()=>l(h)?l(h).label||l(h).name:void 0),g=_(()=>(l(d)?l(h)?.fields:l(o))??[]);var m=X(),v=M(m);{var b=y=>{IP(y,{get label(){return l(p)},children:(w,E)=>{var k=X(),S=M(k);ot(S,17,()=>l(g),C=>C.name,(C,x)=>{ro(C,{children:(T,A)=>{{let P=_(()=>[e.keyPath,l(x).name].join("."));xw(T,{get keyPath(){return l(P)},get locale(){return e.locale},get fieldConfig(){return l(x)}})}},$$slots:{default:!0}})}),$(w,k)},$$slots:{default:!0}})};q(v,y=>{l(u)&&y(b)})}$(t,m),ce(),i()}function NY(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),{valueStoreKey:o="currentValues"}=tr("field-editor")??{};let s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1);const u=_(()=>e.fieldConfig.i18n),d=_(()=>e.fieldConfig.max),f=_(()=>tt(e.fieldConfig.dropdown_threshold,5)),h=w=>{n()&&Object.keys(Dn(n()[o])??{}).forEach(E=>{l(u)!=="duplicate"&&E!==e.locale||PP({locale:E,valueStoreKey:o,keyPath:e.keyPath,manipulate:w})})},p=w=>{h(({valueList:E})=>{E.push(w)})},g=w=>{h(({valueList:E})=>{E.splice(E.indexOf(w),1)})};var m=X(),v=M(m);{var b=w=>{BU(w,{get disabled(){return a()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get options(){return e.options},get values(){return e.currentValue},get max(){return l(d)},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onAddValue:({detail:{value:E}})=>{p(E)},onRemoveValue:({detail:{value:E}})=>{g(E)}})},y=w=>{PB(w,{get"aria-labelledby"(){return`${e.fieldId??""}-label`},children:(E,k)=>{var S=X(),C=M(S);ot(C,17,()=>e.options,({label:x,value:T})=>T,(x,T)=>{let A=()=>l(T).label,P=()=>l(T).value;{let L=_(()=>e.currentValue.includes(P()));Fd(x,{get label(){return A()},get value(){return P()},get readonly(){return a()},get required(){return s()},get invalid(){return c()},get checked(){return l(L)},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{checked:I}})=>{I?p(P()):g(P())}})}}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.options.length>l(f)?w(b):w(y,!1)})}$(t,m),ce(),i()}function IY(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=R(e,"options",7);const d=_(()=>tt(e.fieldConfig.dropdown_threshold,5));let f=ie(void 0);De(()=>{l(f)||G(f,u()[0]?.value!==void 0?typeof u()[0]?.value:"string",!0)}),De(()=>{!s()&&!u().some(({value:v})=>!v)&&u([{label:n()("unselected_option"),value:l(f)==="number"?null:"",searchValue:""},...u()])});var h=X(),p=M(h);{var g=v=>{pl(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(b){o(b)},children:(b,y)=>{var w=X(),E=M(w);ot(E,17,u,({label:k,value:S,searchValue:C})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value,T=()=>l(S).searchValue;{let A=_(()=>x()===o());Sr(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get searchValue(){return T()},get selected(){return l(A)},wrap:!0})}}),$(b,w)},$$slots:{default:!0}})},m=v=>{xU(v,{get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},onChange:({detail:{value:b}})=>{o(b)},children:(b,y)=>{var w=X(),E=M(w);ot(E,17,u,({label:k,value:S})=>S,(k,S)=>{let C=()=>l(S).label,x=()=>l(S).value;{let T=_(()=>x()===o());$U(k,{get label(){return C()},get value(){return x()},get valueType(){return l(f)},get checked(){return l(T)}})}}),$(b,w)},$$slots:{default:!0}})};q(p,v=>{u().length>l(d)?v(g):v(m,!1)})}$(t,h),ce(),i()}function DP(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1),s=R(e,"sortOptions",3,!1);const a=_(()=>e.fieldConfig.options),c=_(()=>e.fieldConfig.multiple),u=_(()=>l(c)?NY:IY),d=_(()=>{const p=l(a).map(g=>Yt(g)?g:{label:g,value:g});return s()&&p.sort((g,m)=>xi(g.label,m.label)),p});var f=X(),h=M(f);er(h,()=>JSON.stringify(l(d)),p=>{var g=X(),m=M(g);Hn(m,()=>l(u),(v,b)=>{b(v,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldConfig(){return e.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return o()},get options(){return l(d)},get currentValue(){return n()},set currentValue(y){n(y)}})}),$(p,g)}),$(t,f),ce()}var OY=U('<div role="none" class="wrapper"><!></div>');function RY(t,e){le(e,!0);let n=R(e,"currentValue",15),r=R(e,"required",3,!0),i=R(e,"readonly",3,!1),o=R(e,"invalid",3,!1);const s=_(()=>e.fieldConfig.collection),a=_(()=>e.fieldConfig.file),c=_(()=>l(a)?[A_(l(s),l(a))].filter(h=>!!h):zo(l(s))),u=_(()=>({...e.fieldConfig,widget:"select",options:q_(e.locale,e.fieldConfig,l(c))}));var d=OY(),f=z(d);DP(f,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return e.fieldId},get fieldLabel(){return e.fieldLabel},get fieldConfig(){return l(u)},get readonly(){return i()},get required(){return r()},get invalid(){return o()},sortOptions:!0,get currentValue(){return n()},set currentValue(h){n(h)}}),$(t,d),ce()}var DY=U('<p dir="auto"> </p>');function MY(t,e){le(e,!0);const n=_(()=>e.fieldConfig.collection),r=_(()=>e.fieldConfig.file),i=_(()=>tt(e.fieldConfig.multiple,!1)),o=_(()=>tt(e.fieldConfig.value_field,"{{slug}}")),s=_(()=>dc(e.locale)),a=_(()=>l(r)?[A_(l(n),l(r))].filter(p=>!!p):zo(l(n))),c=_(()=>q_(e.locale,e.fieldConfig,l(a))),u=_(()=>(l(i)?e.currentValue:[e.currentValue]).filter(p=>p!==void 0).map(p=>{const g=l(c).find(m=>m.value===p)?.label;return g&&g!==p?["slug","{{slug}}","{{fields.slug}}"].includes(l(o))?g:`${g} (${p})`:p}));var d=X(),f=M(d);{var h=p=>{var g=DY(),m=z(g);Z((v,b)=>{Se(g,"lang",v),te(m,b),g.dir=g.dir},[()=>Tr(e.locale),()=>l(s).format(l(u))]),$(p,g)};q(f,p=>{l(u).length&&p(h)})}$(t,d),ce()}var FY=U('<p dir="auto"> </p>'),zY=U('<p dir="auto"> </p>');function jY(t,e){le(e,!0);const n=_(()=>e.fieldConfig.options),r=_(()=>e.fieldConfig.multiple),i=_(()=>O$(l(n))),o=_(()=>dc(e.locale)),s=f=>l(i)&&l(n).find(h=>h.value===f)?.label||String(f);var a=X(),c=M(a);{var u=f=>{var h=FY(),p=z(h);Z((g,m)=>{Se(h,"lang",g),te(p,m),h.dir=h.dir},[()=>Tr(e.locale),()=>l(o).format(e.currentValue.map(s).sort())]),$(f,h)},d=f=>{var h=X(),p=M(h);{var g=m=>{var v=zY(),b=z(v);Z((y,w)=>{Se(v,"lang",y),te(b,w),v.dir=v.dir},[()=>Tr(e.locale),()=>s(e.currentValue)]),$(m,v)};q(p,m=>{e.currentValue!==void 0&&m(g)},!0)}$(f,h)};q(c,f=>{l(r)&&Array.isArray(e.currentValue)&&e.currentValue.length?f(u):f(d,!1)})}$(t,a),ce()}const MP=({fieldConfig:t,value:e})=>{const{minlength:n,maxlength:r}=t,i=Number.isInteger(n)&&n<=(r??1/0),o=Number.isInteger(r)&&(n??0)<=r,s=e?[...e.trim()].length:0,a=i&&s<n,c=o&&s>r;return{count:s,hasMin:i,hasMax:o,tooShort:a,tooLong:c,invalid:a||c}};var BY=U('<div class="wrapper svelte-18cyzaa"><!> <span role="none"> </span> <!></div>');const UY={hash:"svelte-18cyzaa",code:".wrapper.svelte-18cyzaa {flex:none;color:var(--sui-tertiary-foreground-color) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);text-align:end;}.count.invalid.svelte-18cyzaa {color:var(--sui-error-foreground-color);}.count.svelte-18cyzaa:not(.invalid) {color:var(--sui-success-foreground-color);}"};function FP(t,e){le(e,!0),ke(t,UY);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.fieldConfig.minlength),s=_(()=>e.fieldConfig.maxlength),a=_(()=>MP({fieldConfig:e.fieldConfig,value:e.currentValue})),c=_(()=>l(a).count),u=_(()=>l(a).hasMin),d=_(()=>l(a).hasMax),f=_(()=>l(a).invalid);var h=X(),p=M(h);{var g=m=>{var v=BY(),b=z(v);{var y=x=>{var T=Oe();Z(()=>te(T,`${l(o)??""}
|
|
625
625
|
/ `)),$(x,T)};q(b,x=>{l(u)&&x(y)})}var w=j(b,2);let E;var k=z(w),S=j(w,2);{var C=x=>{var T=Oe();Z(()=>te(T,` /
|
|
626
|
-
${l(s)??""}`)),$(x,T)};q(S,x=>{l(d)&&x(C)})}Z((x,T)=>{Se(v,"aria-label",x),E=rn(w,1,"count svelte-18cyzaa",null,E,T),te(k,l(c))},[()=>n()(l(u)&&l(d)?l(c)===1?"character_counter.min_max.one":"character_counter.min_max.many":l(u)?l(c)===1?"character_counter.min.one":"character_counter.min.many":l(c)===1?"character_counter.max.one":"character_counter.max.many",{values:{count:l(c),min:l(o),max:l(s)}}),()=>({invalid:l(f)})]),$(m,v)};q(p,m=>{(l(u)||l(d))&&m(g)})}$(t,h),ce(),i()}function
|
|
626
|
+
${l(s)??""}`)),$(x,T)};q(S,x=>{l(d)&&x(C)})}Z((x,T)=>{Se(v,"aria-label",x),E=rn(w,1,"count svelte-18cyzaa",null,E,T),te(k,l(c))},[()=>n()(l(u)&&l(d)?l(c)===1?"character_counter.min_max.one":"character_counter.min_max.many":l(u)?l(c)===1?"character_counter.min.one":"character_counter.min.many":l(c)===1?"character_counter.max.one":"character_counter.max.many",{values:{count:l(c),min:l(o),max:l(s)}}),()=>({invalid:l(f)})]),$(m,v)};q(p,m=>{(l(u)||l(d))&&m(g)})}$(t,h),ce(),i()}function qY(t,e){le(e,!0);const[n,r]=me();let i=R(e,"currentValue",15),o=R(e,"required",3,!0),s=R(e,"readonly",3,!1),a=R(e,"invalid",3,!1);const{extraHint:c}=tr("field-editor")??{};let u=ie("");const d=_(()=>tt(e.fieldConfig.type,"text")),f=_(()=>tt(e.fieldConfig.prefix,"")),h=_(()=>tt(e.fieldConfig.suffix,"")),p=()=>{let m=typeof i()=="string"?i():"";l(f)&&m.startsWith(l(f))&&(m=m.slice(l(f).length)),l(h)&&m.endsWith(l(h))&&(m=m.slice(0,-l(h).length)),l(u)!==m&&G(u,m,!0)},g=()=>{let m=l(u);m.trim()&&(l(f)||l(h))&&(m=`${l(f)}${m}${l(h)}`),i()!==m&&i(m)};De(()=>{i(),Ee(()=>{p()})}),De(()=>{l(u),Ee(()=>{g()})}),De(()=>{c&&Ge(c,FP)});{let m=_(()=>Tr(e.locale));Nn(t,{get lang(){return l(m)},get type(){return l(d)},get inputmode(){return l(d)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return a()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return l(u)},set value(v){G(u,v,!0)}})}ce(),r()}const VY=t=>{if(!dp(t))return!1;const{origin:e,pathname:n,searchParams:r}=new URL(t);return!!((e==="https://www.youtube.com"||e==="https://www.youtube-nocookie.com")&&(n==="/watch"&&r.has("v")||n==="/playlist"&&r.has("list")||n.startsWith("/embed/"))||e==="https://youtu.be"&&n)},HY=t=>{const e="https://www.youtube-nocookie.com",{pathname:n,search:r,searchParams:i}=new URL(t);if(n==="/watch"){const o=new URLSearchParams(i);let s=`${e}/embed/${o.get("v")}`;return o.get("list")&&(o.delete("v"),o.set("listType","playlist"),s+=`?${o}`),s}return n==="/playlist"?`${e}/embed/videoseries${r}`:n.startsWith("/embed/")?`${e}${n}${r}`:`${e}/embed${n}${r}`};var KY=U('<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1l0g75t"></iframe>'),GY=U("<a> </a>"),WY=U('<div role="none"><!></div>');const YY={hash:"svelte-1l0g75t",code:"iframe.svelte-1l0g75t {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16/9;}"};function JY(t,e){le(e,!0),ke(t,YY);const n=()=>V(ue,"$_",r),[r,i]=me();let o=ie(void 0),s=ie(!0);const a=_(()=>HY(e.url));jt(()=>{window.addEventListener("securitypolicyviolation",({blockedURI:h,violatedDirective:p})=>{h===new URL(l(a)).origin&&p==="frame-src"&&G(s,!1)})});var c=WY(),u=z(c);{var d=h=>{var p=X(),g=M(p);nn(g,()=>vc(l(o)),null,m=>{var v=KY();Z((b,y)=>{Se(v,"src",b),Se(v,"title",y)},[()=>encodeURI(l(a)),()=>n()("youtube_video_player")]),$(m,v)}),$(h,p)},f=h=>{var p=GY(),g=z(p);Z(m=>{Se(p,"href",m),te(g,e.url)},[()=>encodeURI(e.url)]),$(h,p)};q(u,h=>{l(s)?h(d):h(f,!1)})}bt(c,h=>G(o,h),()=>l(o)),$(t,c),ce(),i()}var XY=U("<a> </a>"),ZY=U("<a> </a>"),QY=U('<p dir="auto"><!></p>');const eJ={hash:"svelte-uv5j28",code:".title.svelte-uv5j28 {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}"};function tJ(t,e){le(e,!0),ke(t,eJ);const n=_(()=>e.fieldConfig.name),r=_(()=>tt(e.fieldConfig.type,"text"));var i=X(),o=M(i);{var s=a=>{var c=QY();let u;var d=z(c);{var f=p=>{var g=X(),m=M(g);{var v=y=>{JY(y,{get url(){return e.currentValue}})},b=y=>{var w=XY(),E=z(w);Z(k=>{Se(w,"href",k),te(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),$(y,w)};q(m,y=>{VY(e.currentValue)?y(v):y(b,!1)})}$(p,g)},h=p=>{var g=X(),m=M(g);{var v=y=>{var w=ZY(),E=z(w);Z(k=>{Se(w,"href",`mailto:${k??""}`),te(E,e.currentValue)},[()=>encodeURI(e.currentValue)]),$(y,w)},b=y=>{var w=Oe();Z(()=>te(w,e.currentValue)),$(y,w)};q(m,y=>{l(r)==="email"?y(v):y(b,!1)},!0)}$(p,g)};q(d,p=>{l(r)==="url"||dp(e.currentValue)?p(f):p(h,!1)})}Z((p,g)=>{Se(c,"lang",p),u=rn(c,1,"svelte-uv5j28",null,u,g),c.dir=c.dir},[()=>Tr(e.locale),()=>({title:l(n)==="title"})]),$(a,c)};q(o,a=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&a(s)})}$(t,i),ce()}function nJ(t,e){le(e,!0);const[n,r]=me(),{extraHint:i}=tr("field-editor")??{};let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!1),c=R(e,"invalid",3,!1),u=ie("");const d=()=>{const h=typeof o()=="string"?o():"";l(u)!==h&&G(u,h,!0)},f=()=>{const h=l(u);o()!==h&&o(h)};De(()=>{o(),Ee(()=>{d()})}),De(()=>{l(u),Ee(()=>{f()})}),De(()=>{i&&Ge(i,FP)});{let h=_(()=>Tr(e.locale));Xd(t,{get lang(){return l(h)},flex:!0,get readonly(){return a()},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},autoResize:!0,get value(){return l(u)},set value(p){G(u,p,!0)}})}ce(),r()}var rJ=U('<p dir="auto" class="svelte-4kf06s"> </p>');const iJ={hash:"svelte-4kf06s",code:"p.svelte-4kf06s {white-space:pre-wrap;}"};function oJ(t,e){le(e,!0),ke(t,iJ);var n=X(),r=M(n);{var i=o=>{var s=rJ(),a=z(s);Z(c=>{Se(s,"lang",c),te(a,e.currentValue),s.dir=s.dir},[()=>Tr(e.locale)]),$(o,s)};q(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}$(t,n),ce()}const zP=t=>{const{prefix:e,use_b32_encoding:n}=t,r=n?lv():ai();return e?`${e}${r}`:r};function sJ(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me();let o=R(e,"currentValue",15),s=R(e,"required",3,!0),a=R(e,"readonly",3,!0),c=R(e,"invalid",3,!1);const u=_(()=>n()?.collection),d=_(()=>n()?.collectionFile),f=_(()=>(l(d)??l(u))?._i18n??so),h=_(()=>l(f).defaultLocale);jt(()=>{o()||(e.locale===l(h)||[!0,"translate"].includes(e.fieldConfig?.i18n??!1))&&o(zP(e.fieldConfig)),"read_only"in e.fieldConfig&&fp("uuid_read_only")});{let p=_(()=>a()&&e.fieldConfig.read_only!==!1);Nn(t,{flex:!0,get readonly(){return l(p)},get required(){return s()},get invalid(){return c()},get"aria-labelledby"(){return`${e.fieldId??""}-label`},get"aria-errormessage"(){return`${e.fieldId??""}-error`},get value(){return o()},set value(g){o(g)}})}ce(),i()}var aJ=U('<p class="svelte-12jrvw4"> </p>');const lJ={hash:"svelte-12jrvw4",code:"p.svelte-12jrvw4 {font-family:var(--sui-font-family-monospace);}"};function cJ(t,e){le(e,!0),ke(t,lJ);var n=X(),r=M(n);{var i=o=>{var s=aJ(),a=z(s);Z(()=>te(a,e.currentValue)),$(o,s)};q(r,o=>{typeof e.currentValue=="string"&&e.currentValue.trim()&&o(i)})}$(t,n),ce()}const $m={boolean:lK,code:dK,color:bK,compute:xK,datetime:CK,file:Lk,image:Lk,keyvalue:ZG,list:IW,map:XW,markdown:mY,number:xY,object:PY,relation:RY,select:DP,string:qY,text:nJ,uuid:sJ},jk={boolean:uK,code:hK,color:wK,compute:SK,datetime:PK,file:Ik,image:Ik,keyvalue:nW,list:HW,map:eY,markdown:wY,number:SY,object:LY,relation:MY,select:jY,string:tJ,text:oJ,uuid:cJ},Bk=({locale:t,isDefaultLocale:e,keyPath:n,getFieldArgs:r,currentValues:i,reset:o=!1})=>{const{valueMap:s={}}=r;Object.entries(s).forEach(([a,c])=>{if(!n||a.startsWith(n)){const u=hn({...r,keyPath:a});(e||[!0,"translate"].includes(u?.i18n??!1))&&(o?delete i[t][a]:i[t][a]=c)}})},uJ=({draft:t,keyPath:e,locale:n})=>{const{collection:r,collectionName:i,collectionFile:o,fileName:s,currentValues:a,originalValues:c,isIndexFile:u}=t,{defaultLocale:d}=(o??r)._i18n,h={keyPath:e,locale:n,isDefaultLocale:n===d,currentValues:a},p={collectionName:i,fileName:s,keyPath:"",isIndexFile:u};Bk({...h,getFieldArgs:{...p,valueMap:a[n]},reset:!0}),Bk({...h,getFieldArgs:{...p,valueMap:c[n]}})},kw=({locale:t="",keyPath:e=""}={})=>{const n=ae(We),{collection:r,collectionFile:i,currentValues:o}=n,{allLocales:s}=(i??r)._i18n;(t?[t]:s).forEach(c=>{uJ({draft:n,keyPath:e,locale:c})}),We.update(()=>({...n,currentValues:o}))};var dJ=U('<div class="required">*</div>'),fJ=U("<!> <!>",1),hJ=U('<p class="comment svelte-dkfcyc"><!></p>'),pJ=U("<!> <!> <!> <!> <!> <!> <!>",1),gJ=U('<div role="none"> </div>'),mJ=U('<div role="none" class="before-input svelte-dkfcyc"><!></div>'),vJ=U('<div role="none" class="prefix svelte-dkfcyc"> </div>'),bJ=U('<div role="none" class="suffix svelte-dkfcyc"> </div>'),_J=U('<div role="none" class="after-input svelte-dkfcyc"><!></div>'),yJ=U("<!> <!> <!> <!> <!>",1),wJ=U('<p class="hint svelte-dkfcyc"><!></p>'),xJ=U('<div role="none" class="footer svelte-dkfcyc"><!> <!></div>'),kJ=U('<header role="none"><h4 role="none"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!>',1);const SJ={hash:"svelte-dkfcyc",code:`.widget-wrapper.has-extra-labels.svelte-dkfcyc {display:flex;align-items:center;justify-content:flex-start;gap:4px;}.widget-wrapper.svelte-dkfcyc :is(input[type=text], textarea) {width:100%;}.widget-wrapper.svelte-dkfcyc input:is([type=color], [type=number]) {outline:0;border-width:1px;border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);height:var(--sui-button-medium-height);color:inherit;background-color:var(--sui-textbox-background-color);}.widget-wrapper.svelte-dkfcyc input:is([type=file], [type=checkbox]) {color:inherit;}.widget-wrapper.svelte-dkfcyc > div {color:inherit;}.widget-wrapper.svelte-dkfcyc input:is([type=date], [type=datetime-local], [type=time]) {outline:0;margin:var(--sui-focus-ring-width);border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-primary-border-color);border-radius:var(--sui-control-medium-border-radius);padding:var(--sui-textbox-singleline-padding);width:auto;height:var(--sui-textbox-height);color:var(--sui-textbox-foreground-color);background-color:var(--sui-textbox-background-color);font-family:var(--sui-textbox-font-family);font-size:var(--sui-textbox-font-size);text-transform:uppercase;}.widget-wrapper.svelte-dkfcyc input:is([type=date], [type=datetime-local], [type=time]):disabled {opacity:0.4;}.widget-wrapper.svelte-dkfcyc input[aria-invalid=true]:is([type=color],
|
|
627
627
|
[type=date],
|
|
628
628
|
[type=datetime-local],
|
|
629
629
|
[type=time]) {border-color:var(--sui-error-border-color);}.widget-wrapper.svelte-dkfcyc input:read-only {-webkit-user-select:text;user-select:text;pointer-events:auto;}.before-input.svelte-dkfcyc,
|
|
630
630
|
.after-input.svelte-dkfcyc,
|
|
631
631
|
.prefix.svelte-dkfcyc,
|
|
632
|
-
.suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc {margin-block:4px;line-height:var(--sui-line-height-compact);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}.hint.svelte-dkfcyc {flex:auto;margin:0;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);opacity:0.75;}`};function ug(t,e){const n=zn();le(e,!0),ke(t,kJ);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(h,"$extraHint",s),[s,a]=me(),c=tr("field-editor")??{};let u=R(e,"context",19,()=>c.widgetContext??void 0),d=R(e,"valueStoreKey",19,()=>c.valueStoreKey??"currentValues");const f=Ae=>Dr.sanitize(_T(Ae.replaceAll("\\n","<br>")),{ALLOWED_TAGS:["strong","em","del","code","a","br"],ALLOWED_ATTR:["href"]}),h=nt();jb("field-editor",{widgetContext:u(),extraHint:h,valueStoreKey:d()});const p=_(()=>u()==="markdown-editor-component"),g=_(()=>e.fieldConfig.name),m=_(()=>tt(e.fieldConfig.label,"")),v=_(()=>tt(e.fieldConfig.comment,"")),b=_(()=>tt(e.fieldConfig.hint,"")),y=_(()=>tt(e.fieldConfig.widget,"string")),w=_(()=>tt(e.fieldConfig.i18n,!1)),E=_(()=>tt(e.fieldConfig.pattern,()=>[],!0)),k=_(()=>tt(e.fieldConfig.readonly,!1)),S=_(()=>Bc({fieldConfig:e.fieldConfig,locale:e.locale})),C=_(()=>l(y)==="list"?Id(e.fieldConfig):{hasSubFields:!1}),x=_(()=>l(C).hasSubFields),T=_(()=>jc(e.fieldConfig)),A=_(()=>nT.includes(l(y))?e.fieldConfig:{}),P=_(()=>tt(l(A).min,0)),L=_(()=>tt(l(A).max,1/0)),I=_(()=>l(y)==="string"?e.fieldConfig.type??"text":l(y)==="number"?"number":void 0),N=_(()=>["string"].includes(l(y))),D=_(()=>l(N)?e.fieldConfig.prefix:void 0),B=_(()=>l(N)?e.fieldConfig.suffix:void 0),H=_(()=>["boolean","number","string"].includes(l(y))),W=_(()=>l(H)?e.fieldConfig.before_input:void 0),Y=_(()=>l(H)?e.fieldConfig.after_input:void 0),O=_(()=>!!(l(D)||l(B)||l(W)||l(Y))),F=_(()=>l(y)==="list"&&l(x)||l(T)||l(y)==="keyvalue"),K=_(()=>l(y)==="list"||l(T)),J=_(()=>r()?.collection),Q=_(()=>r()?.collectionFile),oe=_(()=>r()?.originalValues),re=_(()=>(l(Q)??l(J))?._i18n??so),ee=_(()=>l(re).i18nEnabled),ne=_(()=>l(re).allLocales),se=_(()=>l(re).defaultLocale),fe=_(()=>l(ee)?l(ne).filter(Ae=>Ae!==e.locale):[]),be=_(()=>l(ee)&&(l(w)===!0||l(w)==="translate")),pe=_(()=>l(ee)&&l(w)==="duplicate"),he=_(()=>l(p)||e.locale===l(se)||l(be)||l(pe)),ge=_(()=>!l(p)&&l(be)&&l(fe).length),ve=_(()=>!l(p)&&!(l(pe)&&e.locale!==l(se))),_e=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.\\d+$`)),$e=_(()=>{const Ae=Dn(r()?.[d()][e.locale]??{}),we=Ae[e.keyPath];if(!l(K))return we;const Pe=Object.entries(Ae).filter(([ye])=>l(_e).test(ye));return Pe.length?Pe.map(([,ye])=>ye).filter(ye=>ye!==void 0):l(T)&&we!==void 0&&typeof we!="object"?[we]:[]}),Ce=_(()=>l(K)?Object.entries(l(oe)?.[e.locale]??{}).filter(([Ae])=>l(_e).test(Ae)).map(([,Ae])=>Ae).filter(Ae=>Ae!==void 0):l(oe)?.[e.locale]?.[e.keyPath]),Re=_(()=>r()?.validities[e.locale][e.keyPath]),He=_(()=>l(m)||l(g)),Ye=_(()=>l(k)||l(w)==="duplicate"&&e.locale!==l(se)||l(y)==="compute"||l(y)==="uuid"),Ue=_(()=>l(Re)?.valid===!1);De(()=>{if(r()&&l(T)&&Array.isArray(l($e))){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`],[we]=l($e);Ae===void 0&&we!==void 0&&(yt(We,Ee(r)[d()][e.locale][`${e.keyPath}.0`]=we,Ee(r)),delete r()[d()][e.locale][e.keyPath])}}),De(()=>{if(r()&&!l(T)&&l($e)===void 0){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`];Ae!==void 0&&(yt(We,Ee(r)[d()][e.locale][e.keyPath]=Ae,Ee(r)),Object.keys(r()[d()][e.locale]).forEach(we=>{l(_e).test(we)&&delete r()[d()][e.locale][we]}))}});var Te=X(),Fe=M(Te);{var Ie=Ae=>{{let we=_(()=>i()("x_field",{values:{field:l(He)}})),Pe=_(()=>l(y)==="compute");dP(Ae,{get"aria-label"(){return l(we)},get"data-widget"(){return l(y)},get"data-key-path"(){return e.keyPath},get hidden(){return l(Pe)},children:(ye,it)=>{var Qe=xJ(),Le=M(Qe),ze=z(Le),Xe=z(ze),st=j(ze,2);{var lt=dt=>{var Qt=uJ();Z(Cn=>Se(Qt,"aria-label",Cn),[()=>i()("required")]),$(dt,Qt)};q(st,dt=>{!l(Ye)&&l(S)&&dt(lt)})}var xt=j(st,2);Xr(xt,{flex:!0});var Gt=j(xt,2);{var bn=dt=>{fP(dt,{size:"small",get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Gt,dt=>{l(ge)&&["markdown","string","text","list","object"].includes(l(y))&&dt(bn)})}var Xt=j(Gt,2);{var Zt=dt=>{{const Qt=kn=>{{let Pr=_(()=>i()("field_options"));ar(kn,{get"aria-label"(){return l(Pr)},children:(jn,Tt)=>{var Bn=dJ(),Ft=M(Bn);{var $i=gn=>{_w(gn,{get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Ft,gn=>{l(ge)&&gn($i)})}var zt=j(Ft,2);{var gi=gn=>{{let zr=_(()=>i()("revert_changes")),Lr=_(()=>ln(l($e),l(Ce))||/\.\d+\./.test(e.keyPath));gt(gn,{get label(){return l(zr)},get disabled(){return l(Lr)},onclick:()=>{kw({locale:e.locale,keyPath:e.keyPath})}})}};q(zt,gn=>{l(ve)&&gn(gi)})}$(jn,Bn)},$$slots:{default:!0}})}};let Cn=_(()=>i()("show_field_options"));Mr(dt,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Cn)},popup:Qt,$$slots:{popup:!0}})}};q(Xt,dt=>{(l(ge)||l(ve))&&dt(Zt)})}var pt=j(Le,2);{var Ot=dt=>{var Qt=fJ(),Cn=z(Qt);gr(Cn,()=>f(l(v))),$(dt,Qt)};q(pt,dt=>{!l(Ye)&&l(v)&&dt(Ot)})}var an=j(pt,2);{var xn=dt=>{yw(dt,{get id(){return`${n}-error`},children:(Qt,Cn)=>{var kn=hJ(),Pr=M(kn);{var jn=ut=>{var vt=Oe();Z(An=>te(vt,An),[()=>i()("validation.value_missing")]),$(ut,vt)};q(Pr,ut=>{l(Re).valueMissing&&ut(jn)})}var Tt=j(Pr,2);{var Bn=ut=>{const vt=_(()=>{const{minlength:Pn}=e.fieldConfig;return{minlength:Pn}});var An=Oe();Z(Pn=>te(An,Pn),[()=>i()(l(vt).minlength===1?"validation.too_short.one":"validation.too_short.many",{values:{min:l(vt).minlength}})]),$(ut,An)};q(Tt,ut=>{l(Re).tooShort&&ut(Bn)})}var Ft=j(Tt,2);{var $i=ut=>{const vt=_(()=>{const{maxlength:Pn}=e.fieldConfig;return{maxlength:Pn}});var An=Oe();Z(Pn=>te(An,Pn),[()=>i()(l(vt).maxlength===1?"validation.too_long.one":"validation.too_long.many",{values:{max:l(vt).maxlength}})]),$(ut,An)};q(Ft,ut=>{l(Re).tooLong&&ut($i)})}var zt=j(Ft,2);{var gi=ut=>{const vt=_(()=>l(P)===1?"one":"many");var An=X(),Pn=M(An);{var lr=On=>{var cr=Oe();Z(co=>te(cr,co),[()=>i()("validation.range_underflow.number",{values:{min:l(P)}})]),$(On,cr)},ni=On=>{var cr=X(),co=M(cr);{var iu=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_underflow.add_${l(vt)}`,{values:{min:l(P)}})]),$(nr,ur)},ia=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_underflow.select_${l(vt)}`,{values:{min:l(P)}})]),$(nr,ur)};q(co,nr=>{l(F)?nr(iu):nr(ia,!1)},!0)}$(On,cr)};q(Pn,On=>{l(y)==="number"?On(lr):On(ni,!1)})}$(ut,An)};q(zt,ut=>{l(Re).rangeUnderflow&&ut(gi)})}var gn=j(zt,2);{var zr=ut=>{const vt=_(()=>l(L)===1?"one":"many");var An=X(),Pn=M(An);{var lr=On=>{var cr=Oe();Z(co=>te(cr,co),[()=>i()("validation.range_overflow.number",{values:{max:l(L)}})]),$(On,cr)},ni=On=>{var cr=X(),co=M(cr);{var iu=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_overflow.add_${l(vt)}`,{values:{max:l(L)}})]),$(nr,ur)},ia=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_overflow.select_${l(vt)}`,{values:{max:l(L)}})]),$(nr,ur)};q(co,nr=>{l(F)?nr(iu):nr(ia,!1)},!0)}$(On,cr)};q(Pn,On=>{l(y)==="number"?On(lr):On(ni,!1)})}$(ut,An)};q(gn,ut=>{l(Re).rangeOverflow&&ut(zr)})}var Lr=j(gn,2);{var lo=ut=>{var vt=Oe();Z(()=>te(vt,l(E)[1])),$(ut,vt)};q(Lr,ut=>{l(Re).patternMismatch&&ut(lo)})}var ti=j(Lr,2);{var Wt=ut=>{var vt=Oe();Z(An=>te(vt,An),[()=>i()(`validation.type_mismatch.${l(I)}`)]),$(ut,vt)};q(ti,ut=>{l(Re).typeMismatch&&ut(Wt)})}$(Qt,kn)}})};q(an,dt=>{l(Re)?.valid===!1&&dt(xn)})}var pn=j(an,2);let Kt;var Nt=z(pn);{var kt=dt=>{var Qt=pJ(),Cn=z(Qt);Z(kn=>te(Cn,kn),[()=>i()("unsupported_widget_x",{values:{name:l(y)}})]),$(dt,Qt)},un=dt=>{var Qt=X(),Cn=M(Qt);{var kn=jn=>{const Tt=_(()=>$m[l(y)]);var Bn=X(),Ft=M(Bn);Hn(Ft,()=>l(Tt),($i,zt)=>{zt($i,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)}})}),$(jn,Bn)},Pr=jn=>{const Tt=_(()=>$m[l(y)]);var Bn=_J(),Ft=M(Bn);{var $i=Wt=>{var ut=gJ(),vt=z(ut);gr(vt,()=>f(l(W))),$(Wt,ut)};q(Ft,Wt=>{l(W)&&Wt($i)})}var zt=j(Ft,2);{var gi=Wt=>{var ut=mJ(),vt=z(ut);Z(()=>te(vt,l(D))),$(Wt,ut)};q(zt,Wt=>{l(D)&&Wt(gi)})}var gn=j(zt,2);Hn(gn,()=>l(Tt),(Wt,ut)=>{ut(Wt,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)},get currentValue(){return r()[d()][e.locale][e.keyPath]},set currentValue(vt){yt(We,Ee(r)[d()][e.locale][e.keyPath]=vt,Ee(r))}})});var zr=j(gn,2);{var Lr=Wt=>{var ut=vJ(),vt=z(ut);Z(()=>te(vt,l(B))),$(Wt,ut)};q(zr,Wt=>{l(B)&&Wt(Lr)})}var lo=j(zr,2);{var ti=Wt=>{var ut=bJ(),vt=z(ut);gr(vt,()=>f(l(Y))),$(Wt,ut)};q(lo,Wt=>{l(Y)&&Wt(ti)})}$(jn,Bn)};q(Cn,jn=>{l(K)?jn(kn):jn(Pr,!1)},!0)}$(dt,Qt)};q(Nt,dt=>{l(y)in $m?dt(un,!1):dt(kt)})}var br=j(pn,2);{var ei=dt=>{const Qt=_(o);var Cn=wJ(),kn=z(Cn);{var Pr=Tt=>{var Bn=yJ(),Ft=z(Bn);gr(Ft,()=>f(l(b))),$(Tt,Bn)};q(kn,Tt=>{l(b)&&Tt(Pr)})}var jn=j(kn,2);Hn(jn,()=>l(Qt),(Tt,Bn)=>{Bn(Tt,{get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)}})}),$(dt,Cn)};q(br,dt=>{!l(Ye)&&(l(b)||o())&&dt(ei)})}Z(dt=>{Se(ze,"id",`${n}-label`),te(Xe,l(He)),Kt=rn(pn,1,"widget-wrapper svelte-dkfcyc",null,Kt,dt)},[()=>({"has-extra-labels":l(O)})]),$(ye,Qe)},$$slots:{default:!0}})}};q(Fe,Ae=>{r()&&l(he)&&l(y)!=="hidden"&&Ae(Ie)})}$(t,Te),ce(),a()}var SJ=U('<div class="required">*</div>'),EJ=U('<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="widget-wrapper"><!></div>',1);function $J(t,e){const n=zn();le(e,!0);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(()=>r()?.collection),c=_(()=>r()?.collectionFile),u=_(()=>(l(c)??l(a))?._i18n??so),d=_(()=>l(u).defaultLocale),f=_(()=>r()?.slugEditor[e.locale]),h=_(()=>l(f)===!0),p=_(()=>l(f)==="readonly"),g=_(()=>r()?.validities[e.locale]._slug),m=_(()=>!l(p)&&l(g)?.valid===!1);let v=ie("");De(()=>{l(v),Ee(()=>{r()&&Object.entries(r().slugEditor).forEach(([E,k])=>{(e.locale===E||e.locale===l(d)&&k==="readonly")&&yt(We,Ee(r).currentSlugs[E]=l(v),Ee(r))})})}),De(()=>{l(p)&&G(v,r()?.currentSlugs[e.locale]??"",!0)});var b=X(),y=M(b);{var w=E=>{dP(E,{children:(k,S)=>{var C=EJ(),x=M(C),T=z(x),A=z(T),P=j(T,2);{var L=H=>{var W=SJ();Z(Y=>Se(W,"aria-label",Y),[()=>i()("required")]),$(H,W)};q(P,H=>{l(h)&&H(L)})}var I=j(x,2);{var N=H=>{yw(H,{get id(){return`${n}-error`},children:(W,Y)=>{var O=X(),F=M(O);{var K=J=>{var Q=Oe();Z(oe=>te(Q,oe),[()=>i()("validation.value_missing")]),$(J,Q)};q(F,J=>{l(g)?.valueMissing&&J(K)})}$(W,O)}})};q(I,H=>{l(m)&&H(N)})}var D=j(I,2),B=z(D);Nn(B,{flex:!0,get readonly(){return l(p)},get required(){return l(h)},get invalid(){return l(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return l(v)},set value(H){G(v,H,!0)}}),Z(H=>{Se(T,"id",`${n}-label`),te(A,H)},[()=>i()("slug")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{r()&&E(w)})}$(t,b),ce(),s()}var TJ=U("<!> <!>",1);function CJ(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>n()?.fields??[]);ro(t,{children:(s,a)=>{var c=TJ(),u=M(c);{var d=h=>{$J(h,{get locale(){return e.locale}})};q(u,h=>{n()?.slugEditor[e.locale]&&h(d)})}var f=j(u,2);ot(f,17,()=>l(o),h=>h.name,(h,p)=>{ro(h,{children:(g,m)=>{ug(g,{get keyPath(){return l(p).name},get locale(){return e.locale},get fieldConfig(){return l(p)}})},$$slots:{default:!0}})}),$(s,c)},$$slots:{default:!0}}),ce(),i()}function AJ(t,e){let n=R(e,"children",3,void 0);var r=X(),i=M(r);Me(i,()=>n()??Be),$(t,r)}var PJ=U('<iframe class="preview svelte-1k58u5t"></iframe>');const LJ={hash:"svelte-1k58u5t",code:"iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}"};function NJ(t,e){le(e,!0),ke(t,LJ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=ie(void 0);const s=()=>`
|
|
632
|
+
.suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc {margin-block:4px;line-height:var(--sui-line-height-compact);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}.hint.svelte-dkfcyc {flex:auto;margin:0;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);opacity:0.75;}`};function ug(t,e){const n=zn();le(e,!0),ke(t,SJ);const r=()=>V(We,"$entryDraft",s),i=()=>V(ue,"$_",s),o=()=>V(h,"$extraHint",s),[s,a]=me(),c=tr("field-editor")??{};let u=R(e,"context",19,()=>c.widgetContext??void 0),d=R(e,"valueStoreKey",19,()=>c.valueStoreKey??"currentValues");const f=Ae=>Dr.sanitize(_T(Ae.replaceAll("\\n","<br>")),{ALLOWED_TAGS:["strong","em","del","code","a","br"],ALLOWED_ATTR:["href"]}),h=nt();jb("field-editor",{widgetContext:u(),extraHint:h,valueStoreKey:d()});const p=_(()=>u()==="markdown-editor-component"),g=_(()=>e.fieldConfig.name),m=_(()=>tt(e.fieldConfig.label,"")),v=_(()=>tt(e.fieldConfig.comment,"")),b=_(()=>tt(e.fieldConfig.hint,"")),y=_(()=>tt(e.fieldConfig.widget,"string")),w=_(()=>tt(e.fieldConfig.i18n,!1)),E=_(()=>tt(e.fieldConfig.pattern,()=>[],!0)),k=_(()=>tt(e.fieldConfig.readonly,!1)),S=_(()=>Bc({fieldConfig:e.fieldConfig,locale:e.locale})),C=_(()=>l(y)==="list"?Id(e.fieldConfig):{hasSubFields:!1}),x=_(()=>l(C).hasSubFields),T=_(()=>jc(e.fieldConfig)),A=_(()=>nT.includes(l(y))?e.fieldConfig:{}),P=_(()=>tt(l(A).min,0)),L=_(()=>tt(l(A).max,1/0)),I=_(()=>l(y)==="string"?e.fieldConfig.type??"text":l(y)==="number"?"number":void 0),N=_(()=>["string"].includes(l(y))),D=_(()=>l(N)?e.fieldConfig.prefix:void 0),B=_(()=>l(N)?e.fieldConfig.suffix:void 0),H=_(()=>["boolean","number","string"].includes(l(y))),W=_(()=>l(H)?e.fieldConfig.before_input:void 0),Y=_(()=>l(H)?e.fieldConfig.after_input:void 0),O=_(()=>!!(l(D)||l(B)||l(W)||l(Y))),F=_(()=>l(y)==="list"&&l(x)||l(T)||l(y)==="keyvalue"),K=_(()=>l(y)==="list"||l(T)),J=_(()=>r()?.collection),Q=_(()=>r()?.collectionFile),oe=_(()=>r()?.originalValues),re=_(()=>(l(Q)??l(J))?._i18n??so),ee=_(()=>l(re).i18nEnabled),ne=_(()=>l(re).allLocales),se=_(()=>l(re).defaultLocale),fe=_(()=>l(ee)?l(ne).filter(Ae=>Ae!==e.locale):[]),be=_(()=>l(ee)&&(l(w)===!0||l(w)==="translate")),pe=_(()=>l(ee)&&l(w)==="duplicate"),he=_(()=>l(p)||e.locale===l(se)||l(be)||l(pe)),ge=_(()=>!l(p)&&l(be)&&l(fe).length),ve=_(()=>!l(p)&&!(l(pe)&&e.locale!==l(se))),_e=_(()=>new RegExp(`^${Vt(e.keyPath)}\\.\\d+$`)),$e=_(()=>{const Ae=Dn(r()?.[d()][e.locale]??{}),we=Ae[e.keyPath];if(!l(K))return we;const Pe=Object.entries(Ae).filter(([ye])=>l(_e).test(ye));return Pe.length?Pe.map(([,ye])=>ye).filter(ye=>ye!==void 0):l(T)&&we!==void 0&&typeof we!="object"?[we]:[]}),Ce=_(()=>l(K)?Object.entries(l(oe)?.[e.locale]??{}).filter(([Ae])=>l(_e).test(Ae)).map(([,Ae])=>Ae).filter(Ae=>Ae!==void 0):l(oe)?.[e.locale]?.[e.keyPath]),Re=_(()=>r()?.validities[e.locale][e.keyPath]),He=_(()=>l(m)||l(g)),Ye=_(()=>l(k)||l(w)==="duplicate"&&e.locale!==l(se)||l(y)==="compute"||l(y)==="uuid"),Ue=_(()=>l(Re)?.valid===!1);De(()=>{if(r()&&l(T)&&Array.isArray(l($e))){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`],[we]=l($e);Ae===void 0&&we!==void 0&&(yt(We,Ee(r)[d()][e.locale][`${e.keyPath}.0`]=we,Ee(r)),delete r()[d()][e.locale][e.keyPath])}}),De(()=>{if(r()&&!l(T)&&l($e)===void 0){const Ae=r()[d()][e.locale]?.[`${e.keyPath}.0`];Ae!==void 0&&(yt(We,Ee(r)[d()][e.locale][e.keyPath]=Ae,Ee(r)),Object.keys(r()[d()][e.locale]).forEach(we=>{l(_e).test(we)&&delete r()[d()][e.locale][we]}))}});var Te=X(),Fe=M(Te);{var Ie=Ae=>{{let we=_(()=>i()("x_field",{values:{field:l(He)}})),Pe=_(()=>l(y)==="compute");dP(Ae,{get"aria-label"(){return l(we)},get"data-widget"(){return l(y)},get"data-key-path"(){return e.keyPath},get hidden(){return l(Pe)},children:(ye,it)=>{var Qe=kJ(),Le=M(Qe),ze=z(Le),Xe=z(ze),st=j(ze,2);{var lt=dt=>{var Qt=dJ();Z(Cn=>Se(Qt,"aria-label",Cn),[()=>i()("required")]),$(dt,Qt)};q(st,dt=>{!l(Ye)&&l(S)&&dt(lt)})}var xt=j(st,2);Xr(xt,{flex:!0});var Gt=j(xt,2);{var bn=dt=>{fP(dt,{size:"small",get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Gt,dt=>{l(ge)&&["markdown","string","text","list","object"].includes(l(y))&&dt(bn)})}var Xt=j(Gt,2);{var Zt=dt=>{{const Qt=kn=>{{let Pr=_(()=>i()("field_options"));ar(kn,{get"aria-label"(){return l(Pr)},children:(jn,Tt)=>{var Bn=fJ(),Ft=M(Bn);{var $i=gn=>{_w(gn,{get locale(){return e.locale},get otherLocales(){return l(fe)},get keyPath(){return e.keyPath}})};q(Ft,gn=>{l(ge)&&gn($i)})}var zt=j(Ft,2);{var gi=gn=>{{let zr=_(()=>i()("revert_changes")),Lr=_(()=>ln(l($e),l(Ce))||/\.\d+\./.test(e.keyPath));gt(gn,{get label(){return l(zr)},get disabled(){return l(Lr)},onclick:()=>{kw({locale:e.locale,keyPath:e.keyPath})}})}};q(zt,gn=>{l(ve)&&gn(gi)})}$(jn,Bn)},$$slots:{default:!0}})}};let Cn=_(()=>i()("show_field_options"));Mr(dt,{variant:"ghost",size:"small",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(Cn)},popup:Qt,$$slots:{popup:!0}})}};q(Xt,dt=>{(l(ge)||l(ve))&&dt(Zt)})}var pt=j(Le,2);{var Ot=dt=>{var Qt=hJ(),Cn=z(Qt);gr(Cn,()=>f(l(v))),$(dt,Qt)};q(pt,dt=>{!l(Ye)&&l(v)&&dt(Ot)})}var an=j(pt,2);{var xn=dt=>{yw(dt,{get id(){return`${n}-error`},children:(Qt,Cn)=>{var kn=pJ(),Pr=M(kn);{var jn=ut=>{var vt=Oe();Z(An=>te(vt,An),[()=>i()("validation.value_missing")]),$(ut,vt)};q(Pr,ut=>{l(Re).valueMissing&&ut(jn)})}var Tt=j(Pr,2);{var Bn=ut=>{const vt=_(()=>{const{minlength:Pn}=e.fieldConfig;return{minlength:Pn}});var An=Oe();Z(Pn=>te(An,Pn),[()=>i()(l(vt).minlength===1?"validation.too_short.one":"validation.too_short.many",{values:{min:l(vt).minlength}})]),$(ut,An)};q(Tt,ut=>{l(Re).tooShort&&ut(Bn)})}var Ft=j(Tt,2);{var $i=ut=>{const vt=_(()=>{const{maxlength:Pn}=e.fieldConfig;return{maxlength:Pn}});var An=Oe();Z(Pn=>te(An,Pn),[()=>i()(l(vt).maxlength===1?"validation.too_long.one":"validation.too_long.many",{values:{max:l(vt).maxlength}})]),$(ut,An)};q(Ft,ut=>{l(Re).tooLong&&ut($i)})}var zt=j(Ft,2);{var gi=ut=>{const vt=_(()=>l(P)===1?"one":"many");var An=X(),Pn=M(An);{var lr=On=>{var cr=Oe();Z(co=>te(cr,co),[()=>i()("validation.range_underflow.number",{values:{min:l(P)}})]),$(On,cr)},ni=On=>{var cr=X(),co=M(cr);{var iu=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_underflow.add_${l(vt)}`,{values:{min:l(P)}})]),$(nr,ur)},ia=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_underflow.select_${l(vt)}`,{values:{min:l(P)}})]),$(nr,ur)};q(co,nr=>{l(F)?nr(iu):nr(ia,!1)},!0)}$(On,cr)};q(Pn,On=>{l(y)==="number"?On(lr):On(ni,!1)})}$(ut,An)};q(zt,ut=>{l(Re).rangeUnderflow&&ut(gi)})}var gn=j(zt,2);{var zr=ut=>{const vt=_(()=>l(L)===1?"one":"many");var An=X(),Pn=M(An);{var lr=On=>{var cr=Oe();Z(co=>te(cr,co),[()=>i()("validation.range_overflow.number",{values:{max:l(L)}})]),$(On,cr)},ni=On=>{var cr=X(),co=M(cr);{var iu=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_overflow.add_${l(vt)}`,{values:{max:l(L)}})]),$(nr,ur)},ia=nr=>{var ur=Oe();Z(ri=>te(ur,ri),[()=>i()(`validation.range_overflow.select_${l(vt)}`,{values:{max:l(L)}})]),$(nr,ur)};q(co,nr=>{l(F)?nr(iu):nr(ia,!1)},!0)}$(On,cr)};q(Pn,On=>{l(y)==="number"?On(lr):On(ni,!1)})}$(ut,An)};q(gn,ut=>{l(Re).rangeOverflow&&ut(zr)})}var Lr=j(gn,2);{var lo=ut=>{var vt=Oe();Z(()=>te(vt,l(E)[1])),$(ut,vt)};q(Lr,ut=>{l(Re).patternMismatch&&ut(lo)})}var ti=j(Lr,2);{var Wt=ut=>{var vt=Oe();Z(An=>te(vt,An),[()=>i()(`validation.type_mismatch.${l(I)}`)]),$(ut,vt)};q(ti,ut=>{l(Re).typeMismatch&&ut(Wt)})}$(Qt,kn)}})};q(an,dt=>{l(Re)?.valid===!1&&dt(xn)})}var pn=j(an,2);let Kt;var Nt=z(pn);{var kt=dt=>{var Qt=gJ(),Cn=z(Qt);Z(kn=>te(Cn,kn),[()=>i()("unsupported_widget_x",{values:{name:l(y)}})]),$(dt,Qt)},un=dt=>{var Qt=X(),Cn=M(Qt);{var kn=jn=>{const Tt=_(()=>$m[l(y)]);var Bn=X(),Ft=M(Bn);Hn(Ft,()=>l(Tt),($i,zt)=>{zt($i,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)}})}),$(jn,Bn)},Pr=jn=>{const Tt=_(()=>$m[l(y)]);var Bn=yJ(),Ft=M(Bn);{var $i=Wt=>{var ut=mJ(),vt=z(ut);gr(vt,()=>f(l(W))),$(Wt,ut)};q(Ft,Wt=>{l(W)&&Wt($i)})}var zt=j(Ft,2);{var gi=Wt=>{var ut=vJ(),vt=z(ut);Z(()=>te(vt,l(D))),$(Wt,ut)};q(zt,Wt=>{l(D)&&Wt(gi)})}var gn=j(zt,2);Hn(gn,()=>l(Tt),(Wt,ut)=>{ut(Wt,{get locale(){return e.locale},get keyPath(){return e.keyPath},get fieldId(){return n},get fieldLabel(){return l(He)},get fieldConfig(){return e.fieldConfig},get readonly(){return l(Ye)},get required(){return l(S)},get invalid(){return l(Ue)},get currentValue(){return r()[d()][e.locale][e.keyPath]},set currentValue(vt){yt(We,Ee(r)[d()][e.locale][e.keyPath]=vt,Ee(r))}})});var zr=j(gn,2);{var Lr=Wt=>{var ut=bJ(),vt=z(ut);Z(()=>te(vt,l(B))),$(Wt,ut)};q(zr,Wt=>{l(B)&&Wt(Lr)})}var lo=j(zr,2);{var ti=Wt=>{var ut=_J(),vt=z(ut);gr(vt,()=>f(l(Y))),$(Wt,ut)};q(lo,Wt=>{l(Y)&&Wt(ti)})}$(jn,Bn)};q(Cn,jn=>{l(K)?jn(kn):jn(Pr,!1)},!0)}$(dt,Qt)};q(Nt,dt=>{l(y)in $m?dt(un,!1):dt(kt)})}var br=j(pn,2);{var ei=dt=>{const Qt=_(o);var Cn=xJ(),kn=z(Cn);{var Pr=Tt=>{var Bn=wJ(),Ft=z(Bn);gr(Ft,()=>f(l(b))),$(Tt,Bn)};q(kn,Tt=>{l(b)&&Tt(Pr)})}var jn=j(kn,2);Hn(jn,()=>l(Qt),(Tt,Bn)=>{Bn(Tt,{get fieldConfig(){return e.fieldConfig},get currentValue(){return l($e)}})}),$(dt,Cn)};q(br,dt=>{!l(Ye)&&(l(b)||o())&&dt(ei)})}Z(dt=>{Se(ze,"id",`${n}-label`),te(Xe,l(He)),Kt=rn(pn,1,"widget-wrapper svelte-dkfcyc",null,Kt,dt)},[()=>({"has-extra-labels":l(O)})]),$(ye,Qe)},$$slots:{default:!0}})}};q(Fe,Ae=>{r()&&l(he)&&l(y)!=="hidden"&&Ae(Ie)})}$(t,Te),ce(),a()}var EJ=U('<div class="required">*</div>'),$J=U('<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="widget-wrapper"><!></div>',1);function TJ(t,e){const n=zn();le(e,!0);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me(),a=_(()=>r()?.collection),c=_(()=>r()?.collectionFile),u=_(()=>(l(c)??l(a))?._i18n??so),d=_(()=>l(u).defaultLocale),f=_(()=>r()?.slugEditor[e.locale]),h=_(()=>l(f)===!0),p=_(()=>l(f)==="readonly"),g=_(()=>r()?.validities[e.locale]._slug),m=_(()=>!l(p)&&l(g)?.valid===!1);let v=ie("");De(()=>{l(v),Ee(()=>{r()&&Object.entries(r().slugEditor).forEach(([E,k])=>{(e.locale===E||e.locale===l(d)&&k==="readonly")&&yt(We,Ee(r).currentSlugs[E]=l(v),Ee(r))})})}),De(()=>{l(p)&&G(v,r()?.currentSlugs[e.locale]??"",!0)});var b=X(),y=M(b);{var w=E=>{dP(E,{children:(k,S)=>{var C=$J(),x=M(C),T=z(x),A=z(T),P=j(T,2);{var L=H=>{var W=EJ();Z(Y=>Se(W,"aria-label",Y),[()=>i()("required")]),$(H,W)};q(P,H=>{l(h)&&H(L)})}var I=j(x,2);{var N=H=>{yw(H,{get id(){return`${n}-error`},children:(W,Y)=>{var O=X(),F=M(O);{var K=J=>{var Q=Oe();Z(oe=>te(Q,oe),[()=>i()("validation.value_missing")]),$(J,Q)};q(F,J=>{l(g)?.valueMissing&&J(K)})}$(W,O)}})};q(I,H=>{l(m)&&H(N)})}var D=j(I,2),B=z(D);Nn(B,{flex:!0,get readonly(){return l(p)},get required(){return l(h)},get invalid(){return l(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return l(v)},set value(H){G(v,H,!0)}}),Z(H=>{Se(T,"id",`${n}-label`),te(A,H)},[()=>i()("slug")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{r()&&E(w)})}$(t,b),ce(),s()}var CJ=U("<!> <!>",1);function AJ(t,e){le(e,!0);const n=()=>V(We,"$entryDraft",r),[r,i]=me(),o=_(()=>n()?.fields??[]);ro(t,{children:(s,a)=>{var c=CJ(),u=M(c);{var d=h=>{TJ(h,{get locale(){return e.locale}})};q(u,h=>{n()?.slugEditor[e.locale]&&h(d)})}var f=j(u,2);ot(f,17,()=>l(o),h=>h.name,(h,p)=>{ro(h,{children:(g,m)=>{ug(g,{get keyPath(){return l(p).name},get locale(){return e.locale},get fieldConfig(){return l(p)}})},$$slots:{default:!0}})}),$(s,c)},$$slots:{default:!0}}),ce(),i()}function PJ(t,e){let n=R(e,"children",3,void 0);var r=X(),i=M(r);Me(i,()=>n()??Be),$(t,r)}var LJ=U('<iframe class="preview svelte-1k58u5t"></iframe>');const NJ={hash:"svelte-1k58u5t",code:"iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}"};function IJ(t,e){le(e,!0),ke(t,NJ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=ie(void 0);const s=()=>`
|
|
633
633
|
<!DOCTYPE html>
|
|
634
634
|
<html lang="${Dr.sanitize(e.locale)}">
|
|
635
635
|
<head>
|
|
@@ -639,34 +639,34 @@ td.svelte-18v8t2h {border-width:0;}th.svelte-18v8t2h {padding-block:4px;color:va
|
|
|
639
639
|
</head>
|
|
640
640
|
<body></body>
|
|
641
641
|
</html>
|
|
642
|
-
`,a=()=>{const d=l(o)?.contentDocument?.body;d&&cp(
|
|
642
|
+
`,a=()=>{const d=l(o)?.contentDocument?.body;d&&cp(PJ,{target:d,props:{children:e.children}})},c=()=>{l(o)&&(l(o).addEventListener("load",a,{once:!0}),l(o).src=URL.createObjectURL(new Blob([s()],{type:"text/html"})))};De(()=>{l(o)&&c()});var u=LJ();bt(u,d=>G(o,d),()=>l(o)),Z(d=>Se(u,"title",d),[()=>n()("content_preview")]),$(t,u),ce(),i()}var OJ=U('<div role="document" class="svelte-17akd4q"><!></div>');const RJ={hash:"svelte-17akd4q",code:"div.svelte-17akd4q {padding:8px 16px;}"};function DJ(t,e){le(e,!0),ke(t,RJ);const n=()=>V(We,"$entryDraft",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=c=>{var u=X(),d=M(u);ot(d,17,()=>l(a),f=>f.name,(f,h)=>{ro(f,{children:(p,g)=>{xw(p,{get keyPath(){return l(h).name},get locale(){return e.locale},get fieldConfig(){return l(h)}})},$$slots:{default:!0}})}),$(c,u)},a=_(()=>n()?.fields??[]);ro(t,{children:(c,u)=>{var d=X(),f=M(d);{var h=g=>{{let m=_(()=>[...av]);IJ(g,{get locale(){return e.locale},get styleURLs(){return l(m)},get children(){return s}})}},p=g=>{var m=OJ(),v=z(m);s(v),Z(b=>Se(m,"aria-label",b),[()=>r()("content_preview")]),$(g,m)};q(f,g=>{av.size?g(h):g(p,!1)})}$(c,d)},$$slots:{default:!0}}),ce(),o()}const Li=nt(),MJ=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Lo(e,"ui-settings"):null,r="entry-view",i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:"grid"},...await n?.get(r)};Li.set(i),oc.set(i.selectAssetsView),Li.subscribe(o=>{(async()=>{try{ln(o,await n?.get(r))||await n?.set(r,o)}catch{}})()}),oc.subscribe(o=>{if(!o||!Object.keys(o).length)return;const s=ae(Li)?.selectAssetsView??{};ln(o,s)||Li.update(a=>({...a,selectAssetsView:o}))})};wn.subscribe(t=>{t&&!ae(Li)&&MJ(t)});var FJ=U('<div role="none" class="content svelte-1vy4qxn"><!></div>'),zJ=U('<span role="alert"> </span> <!>',1),jJ=U('<div role="none" class="wrapper svelte-1vy4qxn"><!></div>');const BJ={hash:"svelte-1vy4qxn",code:`@charset "UTF-8";.wrapper.svelte-1vy4qxn {display:contents;}.content.svelte-1vy4qxn {--field-editor-padding: 16px;flex:auto;overflow-y:auto;scroll-behavior:auto; /* Don’t use smooth scroll for syncing */overscroll-behavior-y:contain;}
|
|
643
643
|
@media (width < 768px) {.content.svelte-1vy4qxn {--field-editor-padding: 12px;}
|
|
644
|
-
}`};function Uk(t,e){le(e,!0),ke(t,
|
|
644
|
+
}`};function Uk(t,e){le(e,!0),ke(t,BJ);const n=()=>V(Li,"$entryEditorSettings",s),r=()=>V(e.thisPane,"$thisPane",s),i=()=>V(We,"$entryDraft",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=R(e,"thisPaneContentArea",15),u=R(e,"thatPaneContentArea",15);const d=_(()=>n()??{}),f=_(()=>l(d).syncScrolling),h=_(()=>r()?.locale),p=_(()=>r()?.mode),g=_(()=>!!l(h)&&!!Dn(i()?.currentValues[l(h)])),m=_(()=>({values:{locale:l(h)?Fi(l(h)):""}})),v=_(()=>l(p)==="preview"?DJ:AJ);let b=ie(void 0);const y=()=>{window.requestAnimationFrame(()=>{if(!l(f)||!l(b)||!c()||!u())return;const T=c()!==l(b),{x:A,y:P}=T?{x:0,y:0}:c().getBoundingClientRect(),{ownerDocument:L,scrollTop:I,scrollHeight:N,clientHeight:D}=c(),B=N-D,H=I/B,W=L.elementsFromPoint(A+80,P).find(Q=>Q.matches("[data-key-path]"));if(!W){u(u().scrollTop=u().scrollHeight*H,!0);return}const{keyPath:Y}=W.dataset,{top:O,height:F}=W.getBoundingClientRect(),K=(P-O)/F,J=u().querySelector(`[data-key-path="${CSS.escape(Y??"")}"]`);K<0||K>1||!J||u(u().scrollTop=J.offsetTop-P+J.clientHeight*K,!0)})},w={capture:!0,passive:!0},E=async()=>{if(!l(b))return;c()&&(c().removeEventListener("wheel",y,w),c().removeEventListener("touchmove",y,w));const T=l(b).querySelector("iframe.preview");T?(await Lt(250),c(T?.contentDocument?.firstElementChild)):c(l(b)),c()&&(c(c().scrollTop=0,!0),c().addEventListener("wheel",y,w),c().addEventListener("touchmove",y,w))};De(()=>{r()?.mode,l(b),E()});var k=jJ(),S=z(k);{var C=T=>{var A=FJ(),P=z(A);Hn(P,()=>l(v),(L,I)=>{I(L,{get locale(){return l(h)}})}),bt(A,L=>G(b,L),()=>l(b)),$(T,A)},x=T=>{var A=X(),P=M(A);{var L=I=>{pr(I,{children:(N,D)=>{var B=zJ(),H=M(B),W=z(H),Y=j(H,2);{let O=_(()=>o()(l(g)?"reenable_x_locale":"enable_x_locale",l(m)));Ze(Y,{variant:"tertiary",get label(){return l(O)},onclick:()=>{l(h)&&RP(l(h))}})}Z(O=>te(W,O),[()=>o()(l(g)?"locale_x_now_disabled":"locale_x_has_been_disabled",l(m))]),$(N,B)},$$slots:{default:!0}})};q(P,I=>{l(p)==="edit"&&I(L)},!0)}$(T,A)};q(S,T=>{l(h)&&i()?.currentLocales[l(h)]?T(C):T(x,!1)})}Z(()=>Se(k,"id",e.id)),$(t,k),ce(),a()}var UJ=U('<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>'),qJ=U('<div role="none" class="wrapper svelte-1ibgz0y"><!></div>');const VJ={hash:"svelte-1ibgz0y",code:`.wrapper.svelte-1ibgz0y {display:contents;}
|
|
645
645
|
@media (width < 1024px) {.wrapper.svelte-1ibgz0y .combobox {min-width:128px;--sui-textbox-height: 32px;--sui-button-medium-height: 32px;}
|
|
646
|
-
}.wrapper.svelte-1ibgz0y .combobox.error [role=combobox] {border-color:var(--sui-error-border-color);}.inner.svelte-1ibgz0y {display:contents;}.inner.svelte-1ibgz0y :is(.error, .error button[data-mode=edit]) {color:var(--sui-error-foreground-color) !important;}`};function
|
|
646
|
+
}.wrapper.svelte-1ibgz0y .combobox.error [role=combobox] {border-color:var(--sui-error-border-color);}.inner.svelte-1ibgz0y {display:contents;}.inner.svelte-1ibgz0y :is(.error, .error button[data-mode=edit]) {color:var(--sui-error-foreground-color) !important;}`};function HJ(t,e){le(e,!0),ke(t,VJ);const n=()=>V(We,"$entryDraft",u),r=()=>V(cn,"$isSmallScreen",u),i=()=>V(jo,"$isMediumScreen",u),o=()=>V(f(),"$thatPane",u),s=()=>V(ue,"$_",u),a=()=>V(e.thisPane,"$thisPane",u),c=()=>V(Li,"$entryEditorSettings",u),[u,d]=me();let f=R(e,"thatPane",19,()=>nt(null));const h=_(()=>n()?.collection),p=_(()=>n()?.collectionFile),g=_(()=>(l(p)??l(h))?._i18n??so),m=_(()=>l(g).allLocales),v=_(()=>r()||i()?[...l(m)]:l(m).filter(A=>!(o()?.mode==="edit"&&o().locale===A))),b=_(()=>Object.entries(n()?.validities??{}).some(([A,P])=>l(v).includes(A)&&Object.values(P??{}).some(({valid:L})=>!L))),y=_(()=>n()?.canPreview??!0),w=_(()=>r()||i()||l(m).length>=5),E=_(()=>l(w)?pl:zp),k=_(()=>l(w)?Sr:id),S=_(()=>l(w)?void 0:"tertiary"),C=_(()=>l(w)?void 0:"small");var x=qJ(),T=z(x);{let A=_(()=>l(b)&&l(w)?"error":void 0),P=_(()=>s()("switch_locale")),L=_(()=>e.id.replace("-header","-body"));Hn(T,()=>l(E),(I,N)=>{N(I,{get class(){return l(A)},get"aria-label"(){return l(P)},get"aria-controls"(){return l(L)},children:(D,B)=>{var H=UJ(),W=z(H);ot(W,17,()=>l(v),vr,(F,K)=>{const J=_(()=>Fi(l(K))),Q=_(()=>!n()?.currentLocales[l(K)]),oe=_(()=>Object.values(n()?.validities[l(K)]??{}).some(({valid:ne})=>!ne));var re=X(),ee=M(re);{const ne=he=>{var ge=X(),ve=M(ge);{var _e=Ce=>{Je(Ce,{name:"edit_off"})},$e=Ce=>{var Re=X(),He=M(Re);{var Ye=Ue=>{Je(Ue,{name:"error"})};q(He,Ue=>{l(oe)&&Ue(Ye)},!0)}$(Ce,Re)};q(ve,Ce=>{l(Q)?Ce(_e):Ce($e,!1)})}$(he,ge)};let se=_(()=>l(J)),fe=_(()=>l(Q)?s()("locale_content_disabled_short"):l(oe)?s()("locale_content_error_short"):""),be=_(()=>a()?.mode==="edit"&&a().locale===l(K)),pe=_(()=>l(oe)?"error":"");Hn(ee,()=>l(k),(he,ge)=>{ge(he,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(J)},get"aria-label"(){return`${l(se)??""} ${l(fe)??""}`},get selected(){return l(be)},get class(){return l(pe)},"data-mode":"edit",onSelect:()=>{Ge(e.thisPane,{mode:"edit",locale:l(K)}),o()?.mode==="preview"&&Ge(f(),{mode:"preview",locale:l(K)})},startIcon:ne,$$slots:{startIcon:!0}})})}$(F,re)});var Y=j(W,2);{var O=F=>{var K=X(),J=M(K);{let Q=_(()=>s()("preview")),oe=_(()=>a()?.mode==="preview");Hn(J,()=>l(k),(re,ee)=>{ee(re,{get variant(){return l(S)},get size(){return l(C)},get label(){return l(Q)},get selected(){return l(oe)},"data-mode":"preview",onSelect:()=>{Ge(e.thisPane,{mode:"preview",locale:o()?.locale??""})}})})}$(F,K)};q(Y,F=>{o()?.mode==="edit"&&l(y)&&c()?.showPreview&&F(O)})}$(D,H)},$$slots:{default:!0}})})}$(t,x),ce(),d()}function qk(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.thisPane,"$thisPane",i),[i,o]=me();{const s=u=>{Je(u,{name:"visibility"})};let a=_(()=>n()("preview")),c=_(()=>r()?.mode==="preview");Ze(t,{variant:"ghost",iconic:!0,get"aria-label"(){return l(a)},get pressed(){return l(c)},onclick:()=>{Ge(e.thisPane,{mode:r()?.mode==="preview"?"edit":"preview",locale:r()?.locale??""})},startIcon:s,$$slots:{startIcon:!0}})}ce(),o()}var KJ=U("<!> <!>",1),GJ=U('<h3 role="none"> </h3>'),WJ=U("<!> <!>",1),YJ=U("<!> <!> <!>",1),JJ=U("<!> <!> <!> <!>",1),XJ=U("<!> <!>",1),ZJ=U("<!> <!> <!>",1),QJ=U('<div role="none" class="header svelte-uj56is"><!></div>');const eX={hash:"svelte-uj56is",code:`.header.svelte-uj56is {flex:none !important;}.header.svelte-uj56is > .sui.toolbar {margin-inline:auto;max-width:800px;}
|
|
647
647
|
@media (width < 768px) {.header.svelte-uj56is > .sui.toolbar {padding:0;}
|
|
648
|
-
}.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`};function Vk(t,e){le(e,!0),ke(t,QJ);const n=()=>V(We,"$entryDraft",u),r=()=>V(e.thisPane,"$thisPane",u),i=()=>V(ue,"$_",u),o=()=>V(cn,"$isSmallScreen",u),s=()=>V(jo,"$isMediumScreen",u),a=()=>V(ft,"$prefs",u),c=()=>V(wn,"$backend",u),[u,d]=me();let f=R(e,"thatPane",19,()=>nt(null));const h=_(()=>n()?.collection),p=_(()=>n()?.collectionFile),g=_(()=>n()?.originalEntry),m=_(()=>n()?.originalValues??{}),v=_(()=>(l(p)??l(h))?._i18n??so),b=_(()=>l(v).i18nEnabled),y=_(()=>l(v).saveAllLocales),w=_(()=>l(v).allLocales),E=_(()=>l(v).defaultLocale),k=_(()=>n()?.currentLocales[r()?.locale??""]),S=_(()=>Object.values(n()?.currentLocales??{}).filter(N=>N).length===1),C=_(()=>l(b)?l(w).filter(N=>N!==r()?.locale):[]),x=_(()=>!!l(C).length),T=_(()=>r()?.locale&&!ln(Dn(n()?.currentValues[r().locale]),l(m)[r().locale])),A=_(()=>n()?.canPreview??!0),P=_(()=>l(h)&&l(g)&&r()?.locale?tT(l(g),r().locale,l(h),l(p)):void 0);var L=ZJ(),I=z(L);{let N=_(()=>i()("secondary"));Ei(I,{variant:"secondary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=XJ(),W=M(H);{var Y=Q=>{var oe=HJ(),re=M(oe);VJ(re,{get id(){return e.id},get thisPane(){return e.thisPane},get thatPane(){return f()}});var ee=j(re,2);{var ne=se=>{qk(se,{get thisPane(){return e.thisPane}})};q(ee,se=>{(o()||s())&&l(A)&&se(ne)})}$(Q,oe)},O=Q=>{var oe=X(),re=M(oe);{var ee=se=>{var fe=KJ(),be=z(fe);Z(pe=>te(be,pe),[()=>r()?.mode==="preview"?i()("preview"):i()("edit")]),$(se,fe)},ne=se=>{var fe=X(),be=M(fe);{var pe=he=>{qk(he,{get thisPane(){return e.thisPane}})};q(be,he=>{l(A)&&he(pe)},!0)}$(se,fe)};q(re,se=>{o()||s()?se(ne,!1):se(ee)},!0)}$(Q,oe)};q(W,Q=>{l(b)&&l(w).length>1?Q(Y):Q(O,!1)})}var F=j(W,2);Xr(F,{flex:!0});var K=j(F,2);{var J=Q=>{const oe=_(()=>Fi(r().locale));var re=JJ(),ee=M(re);{var ne=fe=>{fP(fe,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q(ee,fe=>{l(x)&&fe(ne)})}var se=j(ee,2);{const fe=pe=>{{let he=_(()=>i()("content_options_x_locale",{values:{locale:l(oe)}}));ar(pe,{get"aria-label"(){return l(he)},children:(ge,ve)=>{var _e=YJ(),$e=M(_e);{var Ce=Fe=>{_w(Fe,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q($e,Fe=>{l(x)&&r()?.locale&&Fe(Ce)})}var Re=j($e,2);{let Fe=_(()=>i()("revert_changes")),Ie=_(()=>!l(T));gt(Re,{get label(){return l(Fe)},get disabled(){return l(Ie)},onclick:()=>{kw({locale:r()?.locale})}})}var He=j(Re,2);{var Ye=Fe=>{var Ie=GJ(),Ae=M(Ie);Jr(Ae,{});var we=j(Ae,2);{let Pe=_(()=>i()(l(k)?"disable_x_locale":Dn(n()?.currentValues[r().locale])?"reenable_x_locale":"enable_x_locale",{values:{locale:l(oe)}})),ye=_(()=>r().locale===l(E)||l(k)&&l(S));gt(we,{get label(){return l(Pe)},get disabled(){return l(ye)},onclick:()=>{RP(r()?.locale??"")}})}$(Fe,Ie)};q(He,Fe=>{!l(y)&&r()?.locale&&Fe(Ye)})}var Ue=j(He,2);{var Te=Fe=>{var Ie=WJ(),Ae=M(Ie);Jr(Ae,{});var we=j(Ae,2);{var Pe=Qe=>{{let Le=_(()=>i()("view_on_live_site"));gt(Qe,{get label(){return l(Le)},onclick:()=>{window.open(l(P))}})}};q(we,Qe=>{l(P)&&Qe(Pe)})}var ye=j(we,2);{var it=Qe=>{{let Le=_(()=>!c()?.repository?.blobBaseURL),ze=_(()=>i()("view_on_x",{values:{service:c()?.repository?.label},default:i()("view_in_repository")}));gt(Qe,{get disabled(){return l(Le)},get label(){return l(ze)},onclick:()=>{l(g)&&r()&&window.open(rM(l(g),r().locale))}})}};q(ye,Qe=>{a().devModeEnabled&&Qe(it)})}$(Fe,Ie)};q(Ue,Fe=>{l(g)&&(l(P)||a().devModeEnabled)&&Fe(Te)})}$(ge,_e)},$$slots:{default:!0}})}};let be=_(()=>i()("show_content_options_x_locale",{values:{locale:l(oe)}}));Mr(se,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(be)},popup:fe,$$slots:{popup:!0}})}$(Q,re)};q(K,Q=>{r()?.mode==="edit"&&Q(J)})}$(D,H)},$$slots:{default:!0}})}Z(()=>Se(L,"id",e.id)),$(t,L),ce(),d()}var eX=U('<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>'),tX=U('<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>'),nX=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>',1);const rX={hash:"svelte-wdavy7",code:"p.svelte-wdavy7:not(:empty) {margin-top:0;}.locales.svelte-wdavy7 {display:table;margin:16px 0 0;width:100%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) {display:table-row;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7) {display:table-cell;vertical-align:middle;white-space:nowrap;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7):last-child {width:90%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) h3:where(.svelte-wdavy7) {margin-inline-end:8px;font-size:inherit;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) p.error:where(.svelte-wdavy7) {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function iX(t,e){const n=zn();le(e,!0),ke(t,rX);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"open",15,!1);const c=_(()=>r()?.collectionName??""),u=_(()=>r()?.currentSlugs??{});let d=ie(St([]));const f=St({}),h=St({}),p=()=>{G(d,zo(l(c)).map(g=>Object.values(g.locales).map(({slug:m})=>m)).flat(1).filter(g=>!Object.values(l(u)).includes(g)),!0),Object.assign(f,l(u)),Object.assign(h,Object.fromEntries(Object.keys(l(u)).map(g=>[g,!1])))};De(()=>{a()&&p()});{let g=_(()=>i()("edit_slug")),m=_(()=>i()("update")),v=_(()=>ln(l(u),f)||Object.values(h).some(b=>b!==!1));ji(t,{get title(){return l(g)},get okLabel(){return l(m)},get okDisabled(){return l(v)},onOk:()=>{yt(We,Ee(r).currentSlugs=f,Ee(r))},get open(){return a()},set open(b){a(b)},children:(b,y)=>{var w=nX(),E=M(w);Lc(E,()=>({"--font-size":"var(--sui-font-size-small)"})),Rn(E.lastChild,{status:"warning",children:(S,C)=>{var x=Oe();Z(T=>te(x,T),[()=>i()("edit_slug_warning")]),$(S,x)},$$slots:{default:!0}});var k=j(E,2);ot(k,21,()=>Object.keys(f),vr,(S,C)=>{var x=tX(),T=z(x);{var A=W=>{var Y=eX(),O=z(Y),F=z(O);Z(K=>te(F,K),[()=>Fi(l(C))]),$(W,Y)};q(T,W=>{["_","_default"].includes(l(C))||W(A)})}var P=j(T,2),L=z(P);{let W=_(()=>h[l(C)]!==!1);Nn(L,{flex:!0,oninput:()=>{h[l(C)]=f[l(C)].trim()?l(d).includes(f[l(C)])?"duplicate":!1:"empty"},get invalid(){return l(W)},get"aria-errormessage"(){return`${n}-${l(C)??""}-error`},get value(){return f[l(C)]},set value(Y){f[l(C)]=Y}})}var I=j(L,2),N=z(I);{var D=W=>{var Y=Oe();Z(O=>te(Y,O),[()=>i()("edit_slug_error.empty")]),$(W,Y)};q(N,W=>{h[l(C)]==="empty"&&W(D)})}var B=j(N,2);{var H=W=>{var Y=Oe();Z(O=>te(Y,O),[()=>i()("edit_slug_error.duplicate")]),$(W,Y)};q(B,W=>{h[l(C)]==="duplicate"&&W(H)})}Z(()=>Se(I,"id",`${n}-${l(C)??""}-error`)),$(S,x)}),$(b,w)},$$slots:{default:!0}})}ce(),s()}const oX=({ids:t,assetPaths:e})=>{const n=ae(di);di.set(n.filter(r=>!t.includes(r.id))),Hu.set({...bl,deleted:!0,count:t.length}),e.length&&Mn.update(r=>r.filter(i=>!e.includes(i.path)))},jP=async(t,e=[])=>{const n=ae(di),r=t.map(i=>{const{locales:o,slug:s}=n.find(a=>a.id===i)??{};if(o)return Object.values(o).map(({path:a})=>({action:"delete",slug:s,path:a}))}).flat(1).filter((i,o,s)=>i&&s.findIndex(a=>a?.path===i.path)===o);e.length&&r.push(...e.map(i=>({action:"delete",path:i}))),await Qd({changes:r,options:{commitType:"delete",collection:ae(Vn)}}),oX({ids:t,assetPaths:e})},sX="{{fields._slug}}",aX="{{fields._slug | localize}}",lX=({collection:t,collectionFile:e,originalEntry:n})=>{const{_type:r}=t,{identifier_field:i="title",slug:o=`{{${i}}}`}=r==="entry"?t:{},{id:s}=n,a=s===void 0,{_i18n:c}=e??t,{allLocales:u,defaultLocale:d}=c,f=r==="entry"&&a,h=f&&o.includes(aX),p=f&&(o.includes(sX)||h);return Object.fromEntries(u.map(g=>[g,p?g===d||h?!0:"readonly":!1]))},Nu=({collection:t,collectionFile:e,originalEntry:n={},dynamicValues:r,expanderStates:i,isIndexFile:o=Fo(t,n)})=>{const s=t.name,a=e?.name,{id:c,slug:u,locales:d}=n,f=c===void 0,{fields:h=[],_i18n:p}=e??t,g=o?hi(t):void 0,m=g?.fields??h,v=g?.editor?.preview??e?.editor?.preview??t.editor?.preview??ae($t)?.editor?.preview??!0,{allLocales:b,initialLocales:y,defaultLocale:w,canonicalSlug:{key:E="translationKey"}}=p,k=f?y:b.filter(T=>!!d?.[T]?.content),S=Object.fromEntries(b.map(T=>[T,k.includes(T)])),C=f?{}:E in(d?.[w]?.content??{})?Object.fromEntries(b.map(T=>[T,d?.[T]?.slug])):{_:d?.[w].slug},x=Object.fromEntries(k.map(T=>f?[T,of(m,T,r)]:[T,structuredClone(d?.[T]?.content)]));We.set({createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:v,collectionName:s,collection:t,fileName:a,collectionFile:e,fields:m,originalEntry:f?void 0:n,originalLocales:S,currentLocales:structuredClone(S),originalSlugs:C,currentSlugs:structuredClone(C),originalValues:x,currentValues:Object.fromEntries(k.map(T=>[T,hw({draft:{collectionName:s,fileName:a,isIndexFile:o},locale:T,target:structuredClone(x[T])})])),files:{},extraValues:Object.fromEntries(b.map(T=>[T,{}])),validities:Object.fromEntries(b.map(T=>[T,{}])),expanderStates:i??{_:{}},slugEditor:lX({collection:t,collectionFile:e,originalEntry:n})}),WH({collectionName:s,fileName:a,slug:u})},cX=()=>{const t=ae(We),{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,validities:s,isIndexFile:a}=t,{defaultLocale:c,canonicalSlug:{key:u}}=(i??r)._i18n;Object.entries(o).forEach(([d,f])=>{delete f[u];const h={collectionName:e,fileName:n,valueMap:f,isIndexFile:a};Object.keys(f).forEach(p=>{const g=hn({...h,keyPath:p});if(g?.widget==="uuid"&&(d===c||[!0,"translate"].includes(g?.i18n??!1))&&(f[p]=zP(g)),g?.widget==="hidden"){if(Array.isArray(g.default)&&p.match(/\.\d+$/)&&(delete f[p],p=p.replace(/\.\d+$/,""),p in f))return;(d===c||[!0,"translate"].includes(g?.i18n??!1))&&Object.assign(f,CP({fieldConfig:g,keyPath:p,locale:d}))}})}),Object.keys(s).forEach(d=>{s[d]={}}),We.set({...t,isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{}}),ov.set(!0)},Hk=/\.\d+$/,uX={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},dX={get:(t,e)=>e==="valid"?!Object.values(t).some(Boolean):t[e]},fX=t=>{const{draft:e,locale:n,valueMap:r,componentName:i,validities:o}=t,{collection:s,collectionName:a,fileName:c,collectionFile:u,files:d,isIndexFile:f}=e;let{keyPath:h,value:p}=t;const g={collectionName:a,fileName:c,componentName:i,valueMap:r,keyPath:h.replace(md,""),isIndexFile:f},m=hn({...g});if(!m)return;const{widget:v="string",i18n:b=!1,pattern:y}=m,w=jc(m),{min:E=0,max:k=1/0}=nT.includes(v)?m:{},{i18nEnabled:S,defaultLocale:C}=(u??s)._i18n;if(!i&&n!==C&&(!S||b===!1||b==="none"||b==="duplicate"))return;const x=Object.entries(r),T=Bc({fieldConfig:m,locale:n}),A={...uX};if(v==="list"||w){if(h in o[n])return;const P=new RegExp(`^${Vt(h)}\\.\\d+`),L=Array.isArray(p)&&p.length?p.length:new Set(x.map(([I])=>I.match(P)?.[0]).filter(Boolean)).size;T&&!L?A.valueMissing=!0:typeof E=="number"&&L<E?A.rangeUnderflow=!0:typeof k=="number"&&L>k&&(A.rangeOverflow=!0)}if(v==="object"&&T&&!p&&(A.valueMissing=!0),v==="keyvalue"){const P=h.match(/(.+?)(?:\.[^.]*)?$/)?.[1],L=hn({...g,keyPath:P.replace(md,"")});if(P in o[n]||L?.widget!=="keyvalue")return;h=P;const N=ww({entryDraft:We,keyPath:P,locale:n});T&&!N.length?A.valueMissing=!0:typeof E=="number"&&N.length<E?A.rangeUnderflow=!0:typeof k=="number"&&N.length>k&&(A.rangeOverflow=!0)}if(v==="code"){const{output_code_only:P=!1,keys:L={code:"code",lang:"lang"}}=m,I=h.match(`(.+)\\.(?:${L.code}|${L.lang})$`)?.[1]??"";if(I&&(h=I),h in o[n])return;P||(p=r[`${h}.${L.code}`])}if(P_.includes(v)&&typeof p=="string"&&p.startsWith("blob:")&&(p=d[p]?.file?.name),!(["object","list","hidden","compute","keyvalue"].includes(v)||w)&&(typeof p=="string"&&(p=p.trim()),T&&(p==null||p===""||w&&!p.length)&&(A.valueMissing=!0),Array.isArray(y))){const P=qc(y[0]);P&&!P.test(String(p))&&(A.patternMismatch=!0)}if(["string","text"].includes(v)){const P=MP({fieldConfig:m,value:p});A.tooShort=P.tooShort,A.tooLong=P.tooLong}if(v==="string"&&p){const{type:P="text"}=m;if(P!=="text"){const L=Object.assign(document.createElement("input"),{type:P,value:p});A.typeMismatch=L.validity.typeMismatch}P==="email"&&!A.typeMismatch&&!p.split("@")[1]?.includes(".")&&(A.typeMismatch=!0)}if(v==="number"){const{value_type:P="int"}=m;typeof E=="number"&&p!==null&&Number(p)<E?A.rangeUnderflow=!0:typeof k=="number"&&p!==null&&Number(p)>k&&(A.rangeOverflow=!0),(P==="int"||P==="float")&&T&&p===null&&(A.typeMismatch=!0)}return new Proxy(A,dX)},BP=t=>{const{validities:e,locale:n,keyPath:r}=t,i=fX(t);let o=!0;return i&&(e[n][r]=i,i.valid||(o=!1)),o},hX=({fieldConfig:t,validateArgs:e})=>{const{validities:n,locale:r,keyPath:i}=e,o=n[r][i]?.valid??BP(e),{widget:s="string"}=t;return s==="list"&&!Id(t).hasSubFields?{valid:o,validateItems:!1}:jc(t)?{valid:o,validateItems:!1}:{valid:o,validateItems:!0}},Kk=t=>{const e=ae(We),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:o}=e,s={},a={collectionName:n,fileName:r,isIndexFile:i,keyPath:"",valueMap:{}};let c=!0;return Object.entries(e[t]).forEach(([u,d])=>{const f=Object.entries(d);if(!o[u]){s[u]=Object.fromEntries(f.map(([p])=>[p,{valid:!0}]));return}const h={draft:e,locale:u,valueMap:d,validities:s};s[u]={},f.forEach(([p,g])=>{const[m]=p.match(md)??[],v=m?d[`${m}__sc_component_name`]:void 0,b=hn({...a,keyPath:p.replace(md,""),valueMap:d,componentName:v});if(b){if(Hk.test(p)){const{valid:y,validateItems:w}=hX({fieldConfig:b,validateArgs:{...h,keyPath:p.replace(Hk,""),value:"",componentName:v}});if(y||(c=!1),!w)return}BP({...h,keyPath:p,value:g,componentName:v})||(c=!1)}})}),{valid:c,validities:s}},pX=()=>{const{currentSlugs:t,slugEditor:e}=ae(We),n={};let r=!0;return Object.entries(t).forEach(([i,o])=>{const s=!!e[i]&&!o?.trim();s&&(r=!1),n[i]={_slug:{valueMissing:s,valid:!s}}}),{valid:r,validities:n}},gX=()=>{const{valid:t,validities:e}=Kk("currentValues"),{valid:n,validities:r}=Kk("extraValues"),{valid:i,validities:o}=pX();return We.update(s=>({...s,validities:Object.fromEntries(Object.keys(e).map(a=>[a,{...e[a],...r[a],...o[a]}]))})),t&&n&&i},mX=({skipCI:t})=>{const e=!!ae(wn)?.isGit&&!(t??ae(cw));Hu.set({...bl,saved:!0,published:e,count:1}),xh.set(e)},vX=async({skipCI:t=void 0}={})=>{const e=ae(We),{collection:n,isNew:r,collectionName:i,fileName:o,currentValues:s}=e;if(!gX())throw vW({collectionName:i,fileName:o,currentValues:s}),new Error("validation_failed");const a=j2({draft:e}),{defaultLocaleSlug:c}=a,{savingEntry:u,changes:d,savingAssets:f}=await K2({draft:e,slugs:a});let h;try{h=await Qd({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:r?"create":"update",collection:n,skipCI:t}})}catch(p){throw console.error(p.cause??p),new Error("saving_failed",{cause:p.cause??p})}return mX({skipCI:t}),lg(i,r?"":c),h.savedEntries[0]},UP=async(t,e)=>{const{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=t,{locales:o}=e,{content:s}=o[r]??Object.values(o)[0]??{};if(!s)return;const a=i.map(c=>{if(c.includes("*")){const u=new RegExp(`^${Vt(c).replace("\\*",".+")}$`);return Object.keys(s).filter(d=>u.test(d))}return c}).flat(1);for(const c of a){const u=s[c]?await pc({value:s[c],entry:e,collectionName:n,thumbnail:!0}):void 0;if(u)return u}},qP=({entry:t,collectionName:e,fileName:n,relative:r=!1})=>{const{locales:i}=t,o=Qr(e);if(!o)return[];const s=Fo(o,t),a=Object.values(i).map(({content:c})=>Object.entries(c).map(([u,d])=>{if(typeof d=="string"&&(!r||!/^[/@]/.test(d))&&["image","file"].includes(hn({collectionName:e,keyPath:u,isIndexFile:s})?.widget??"string")){const f=V_({value:d,entry:t,collectionName:e,fileName:n});if(f&&Ep(f.path).some(h=>h.collectionName===e&&h.fileName===n&&(r?h.entryRelative:!0)))return f}})).flat(1).filter((c,u,d)=>!!c&&d.indexOf(c)===u);if(r&&eo({collectionName:e,fileName:n})?.entryRelative){const c=fn(Object.values(t.locales)[0].path).dirname;ae(Mn).forEach(u=>{fn(u.path).dirname===c&&!a.find(({path:d})=>d===u.path)&&a.push(u)})}return a};var bX=U("<!> <!>",1),_X=U("<!> <!> <!>",1),yX=U("<!> <!> <!> <!>",1),wX=U('<!> <h2 role="none"><!></h2> <!> <!> <!> <!>',1),xX=U('<div role="none" class="error svelte-zjrq31"> </div>'),kX=U(" <!>",1),SX=U("<!> <!> <!> <!> <!> <!>",1);const EX={hash:"svelte-zjrq31",code:".error.svelte-zjrq31 {margin-top:8px;border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);line-height:1.5;}"};function $X(t,e){le(e,!0),ke(t,EX);const n=()=>V(We,"$entryDraft",p),r=()=>V(Ut,"$appLocale",p),i=()=>V(X2,"$entryDraftModified",p),o=()=>V(ft,"$prefs",p),s=()=>V(ue,"$_",p),a=()=>V(cn,"$isSmallScreen",p),c=()=>V(jo,"$isMediumScreen",p),u=()=>V(Li,"$entryEditorSettings",p),d=()=>V(lw,"$skipCIConfigured",p),f=()=>V(cw,"$skipCIEnabled",p),h=()=>V(sv,"$copyFromLocaleToast",p),[p,g]=me(),m=ge=>{const ve=_(()=>a()?gt:Ze);var _e=bX(),$e=M(_e);{let Re=_(()=>s()("duplicate")),He=_(()=>s()("duplicate_entry")),Ye=_(()=>l(T)||l(P)?.create===!1||!Op(l(A)));Hn($e,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{Ht(`/collections/${l(B)}/new`,{replaceState:!0,notifyChange:!1,transitionType:"forwards"}),cX()}})})}var Ce=j($e,2);{let Re=_(()=>s()("delete")),He=_(()=>s()("delete_entry")),Ye=_(()=>l(P)?.delete===!1);Hn(Ce,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{G(w,!0)}})})}$(ge,_e)};let v=R(e,"disabled",3,!1),b=ie(!1),y=ie(!1),w=ie(!1),E=ie(!1),k=ie(""),S=ie(!1),C=ie(void 0);const x=_(()=>n()?.isNew??!0),T=_(()=>n()?.isIndexFile??!1),A=_(()=>n()?.collection),P=_(()=>l(A)?._type==="entry"?l(A):void 0),L=_(()=>n()?.collectionFile),I=_(()=>n()?.originalEntry),N=_(()=>(l(L)??l(A))?._i18n??so),D=_(()=>l(N).defaultLocale),B=_(()=>l(A)?.name),H=_(()=>l(L)?.name),W=_(()=>r()&&l(A)?cs(l(A)):""),Y=_(()=>r()&&l(A)?cs(l(A),{useSingular:!0}):""),O=_(()=>n()?.canPreview??!0),F=_(()=>l(x)||i()),K=_(()=>Object.values(n()?.validities??{}).map(ge=>Object.values(ge).map(({valid:ve})=>!ve)).flat(1).filter(Boolean).length),J=_(()=>l(B)&&l(I)&&eo({collectionName:l(B),fileName:l(H)})?.entryRelative?qP({entry:l(I),collectionName:l(B),fileName:l(H),relative:!0}):[]),Q=_(()=>l(A)&&l(I)?tT(l(I),l(D),l(A),l(L)):void 0),oe=()=>{Vs(l(B)==="_singletons"?"/collections":`/collections/${l(B)}`)},re=async({skipCI:ge=void 0}={})=>{if(G(S,!0),!!l(A))try{const ve=await vX({skipCI:ge});o()?.closeOnSave??!0?(oe(),Ge(We,null)):(l(x)&&Ht(`/collections/${l(B)}/entries/${ve.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:"backwards"}),Nu({collection:l(A),collectionFile:l(L),originalEntry:ve,expanderStates:n()?.expanderStates}))}catch(ve){ve.message==="validation_failed"?G(b,!0):ve.message==="saving_failed"?(G(E,!0),G(k,ve.cause?.message??ve.message??s()("unexpected_error"),!0)):(G(E,!0),G(k,""),console.error(ve))}finally{G(S,!1)}};var ee=SX(),ne=M(ee);{let ge=_(()=>s()("primary"));Ei(ne,{variant:"primary",get"aria-label"(){return l(ge)},children:(ve,_e)=>{var $e=wX(),Ce=M($e);{let ye=_(()=>s()("cancel_editing"));nl(Ce,{get"aria-label"(){return l(ye)},get useShortcut(){return o().closeWithEscape},onclick:()=>{oe()}})}var Re=j(Ce,2),He=z(Re);Cr(He,{children:(ye,it)=>{var Qe=X(),Le=M(Qe);{var ze=st=>{var lt=Oe();Z(xt=>te(lt,xt),[()=>s()("create_entry_title",{values:{name:l(Y)}})]),$(st,lt)},Xe=st=>{const lt=_(()=>l(L)?Cd(l(L)):l(A)&&l(I)&&r()?zc(l(A),l(I)):"");var xt=X(),Gt=M(xt);{var bn=Zt=>{var pt=Oe();Z(()=>te(pt,l(lt))),$(Zt,pt)},Xt=Zt=>{var pt=Oe();Z(Ot=>te(pt,Ot),[()=>s()("edit_entry_title",{values:{collection:l(W),entry:l(lt)}})]),$(Zt,pt)};q(Gt,Zt=>{a()?Zt(bn):Zt(Xt,!1)})}$(st,xt)};q(Le,st=>{l(x)?st(ze):st(Xe,!1)})}$(ye,Qe)},$$slots:{default:!0}});var Ye=j(Re,2);{var Ue=ye=>{{let it=_(()=>s()("view_on_live_site"));Ze(ye,{variant:"tertiary",get label(){return l(it)},onclick:()=>{window.open(l(Q))}})}};q(Ye,ye=>{!v()&&l(Q)&&ye(Ue)})}var Te=j(Ye,2);{var Fe=ye=>{m(ye)};q(Te,ye=>{!a()&&!v()&&!l(L)&&!l(x)&&ye(Fe)})}var Ie=j(Te,2);{const ye=Qe=>{{let Le=_(()=>s()("editor_options"));ar(Qe,{get"aria-label"(){return l(Le)},children:(ze,Xe)=>{var st=yX(),lt=M(st);{var xt=pt=>{m(pt)};q(lt,pt=>{a()&&!v()&&!l(L)&&!l(x)&&pt(xt)})}var Gt=j(lt,2);{let pt=_(()=>s()("edit_slug")),Ot=_(()=>!!l(L)||l(x)||l(T)||l(P)?.delete===!1);gt(Gt,{get label(){return l(pt)},get disabled(){return l(Ot)},onclick:()=>{G(y,!0)}})}var bn=j(Gt,2);{let pt=_(()=>s()("revert_all_changes")),Ot=_(()=>!l(F));gt(bn,{get label(){return l(pt)},get disabled(){return l(Ot)},onclick:()=>{kw()}})}var Xt=j(bn,2);{var Zt=pt=>{var Ot=_X(),an=M(Ot);Jr(an,{});var xn=j(an,2);{let Kt=_(()=>s()("show_preview")),Nt=_(()=>u()?.showPreview),kt=_(()=>!l(O));Sh(xn,{get label(){return l(Kt)},get checked(){return l(Nt)},get disabled(){return l(kt)},onChange:()=>{Li.update((un={})=>({...un,showPreview:!un.showPreview}))}})}var pn=j(xn,2);{let Kt=_(()=>s()("sync_scrolling")),Nt=_(()=>u()?.syncScrolling),kt=_(()=>!l(O)&&Object.keys(n()?.currentValues??{}).length===1);Sh(pn,{get label(){return l(Kt)},get checked(){return l(Nt)},get disabled(){return l(kt)},onChange:()=>{Li.update((un={})=>({...un,syncScrolling:!un.syncScrolling}))}})}$(pt,Ot)};q(Xt,pt=>{a()||c()||pt(Zt)})}$(ze,st)},$$slots:{default:!0}})}};let it=_(()=>s()("show_editor_options"));bt(Mr(Ie,{get disabled(){return v()},variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(it)},popup:ye,$$slots:{popup:!0}}),Qe=>G(C,Qe,!0),()=>l(C))}var Ae=j(Ie,2);{var we=ye=>{{const it=ze=>{ar(ze,{children:(Xe,st)=>{{let lt=_(()=>s()(f()?"save_and_publish":"save_without_publishing"));gt(Xe,{get label(){return l(lt)},onclick:()=>{re({skipCI:!f()})}})}},$$slots:{default:!0}})};let Qe=_(()=>s()(l(S)?"saving":"save")),Le=_(()=>v()||!l(F)||l(S));SC(ye,{variant:"primary",get label(){return l(Qe)},get disabled(){return l(Le)},keyShortcuts:"Accel+S",onclick:()=>{re()},popup:it,$$slots:{popup:!0}})}},Pe=ye=>{{let it=_(()=>s()(l(S)?"saving":"save")),Qe=_(()=>v()||!l(F)||l(S));Ze(ye,{variant:"primary",get label(){return l(it)},get disabled(){return l(Qe)},keyShortcuts:"Accel+S",onclick:()=>{re()}})}};q(Ae,ye=>{d()?ye(we):ye(Pe,!1)})}$(ve,$e)},$$slots:{default:!0}})}var se=j(ne,2);Zn(se,{get show(){return l(b)},set show(ge){G(b,ge,!0)},children:(ge,ve)=>{Rn(ge,{status:"error",children:(_e,$e)=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>s()(l(K)===1?"entry_validation_error":"entry_validation_errors",{values:{count:l(K)}})]),$(_e,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=j(se,2);Zn(fe,{get id(){return h().id},get show(){return h().show},set show(ge){yt(sv,Ee(h).show=ge,Ee(h))},children:(ge,ve)=>{const _e=_(()=>{const{status:$e,message:Ce,count:Re,sourceLanguage:He}=h();return{status:$e,message:Ce,count:Re,sourceLanguage:He}});Rn(ge,{get status(){return l(_e).status},children:($e,Ce)=>{var Re=Oe();Z(He=>te(Re,He),[()=>s()(`editor.${l(_e).message}`,{values:{count:l(_e).count,source:l(_e).sourceLanguage?Fi(l(_e).sourceLanguage):""}})]),$($e,Re)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=j(fe,2);iX(be,{get open(){return l(y)},set open(ge){G(y,ge,!0)}});var pe=j(be,2);{let ge=_(()=>s()("delete_entry")),ve=_(()=>s()("delete"));Kc(pe,{get title(){return l(ge)},get okLabel(){return l(ve)},onOk:async()=>{l(I)&&await jP([l(I).id],l(J).map(({path:_e})=>_e)),oe()},onClose:()=>{l(C)?.focus()},get open(){return l(w)},set open(_e){G(w,_e,!0)},children:(_e,$e)=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>s()(l(J).length?"confirm_deleting_this_entry_with_assets":"confirm_deleting_this_entry")]),$(_e,Ce)},$$slots:{default:!0}})}var he=j(pe,2);{let ge=_(()=>s()("saving_entry.error.title"));jp(he,{get title(){return l(ge)},onClose:()=>{l(C)?.focus()},get open(){return l(E)},set open(ve){G(E,ve,!0)},children:(ve,_e)=>{var $e=kX(),Ce=M($e),Re=j(Ce);{var He=Ye=>{var Ue=xX(),Te=z(Ue);Z(()=>te(Te,l(k))),$(Ye,Ue)};q(Re,Ye=>{l(k)&&Ye(He)})}Z(Ye=>te(Ce,`${Ye??""} `),[()=>s()("saving_entry.error.description")]),$(ve,$e)},$$slots:{default:!0}})}$(t,ee),ce(),g()}var TX=U('<div role="none"><!></div> <div role="none"><!></div>',1),CX=U("<!> <!>",1),AX=U("<!> <!>",1),PX=U("<!> <!>",1),LX=U('<div role="none" class="cols svelte-jrunrx"><!></div>'),NX=U("<!> <!>",1),IX=U('<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>',1);const OX={hash:"svelte-jrunrx",code:`.wrapper.svelte-jrunrx {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);transition:filter 250ms;}.wrapper[hidden].svelte-jrunrx {display:none;}.wrapper[inert].svelte-jrunrx {filter:opacity(0);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) {flex:auto;overflow:hidden;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div {display:flex;flex-direction:column;min-width:480px;background-color:var(--sui-primary-background-color);transition:all 500ms;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=edit] {flex:1 1;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=preview] {flex:2 1;}
|
|
648
|
+
}.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`};function Vk(t,e){le(e,!0),ke(t,eX);const n=()=>V(We,"$entryDraft",u),r=()=>V(e.thisPane,"$thisPane",u),i=()=>V(ue,"$_",u),o=()=>V(cn,"$isSmallScreen",u),s=()=>V(jo,"$isMediumScreen",u),a=()=>V(ft,"$prefs",u),c=()=>V(wn,"$backend",u),[u,d]=me();let f=R(e,"thatPane",19,()=>nt(null));const h=_(()=>n()?.collection),p=_(()=>n()?.collectionFile),g=_(()=>n()?.originalEntry),m=_(()=>n()?.originalValues??{}),v=_(()=>(l(p)??l(h))?._i18n??so),b=_(()=>l(v).i18nEnabled),y=_(()=>l(v).saveAllLocales),w=_(()=>l(v).allLocales),E=_(()=>l(v).defaultLocale),k=_(()=>n()?.currentLocales[r()?.locale??""]),S=_(()=>Object.values(n()?.currentLocales??{}).filter(N=>N).length===1),C=_(()=>l(b)?l(w).filter(N=>N!==r()?.locale):[]),x=_(()=>!!l(C).length),T=_(()=>r()?.locale&&!ln(Dn(n()?.currentValues[r().locale]),l(m)[r().locale])),A=_(()=>n()?.canPreview??!0),P=_(()=>l(h)&&l(g)&&r()?.locale?tT(l(g),r().locale,l(h),l(p)):void 0);var L=QJ(),I=z(L);{let N=_(()=>i()("secondary"));Ei(I,{variant:"secondary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=ZJ(),W=M(H);{var Y=Q=>{var oe=KJ(),re=M(oe);HJ(re,{get id(){return e.id},get thisPane(){return e.thisPane},get thatPane(){return f()}});var ee=j(re,2);{var ne=se=>{qk(se,{get thisPane(){return e.thisPane}})};q(ee,se=>{(o()||s())&&l(A)&&se(ne)})}$(Q,oe)},O=Q=>{var oe=X(),re=M(oe);{var ee=se=>{var fe=GJ(),be=z(fe);Z(pe=>te(be,pe),[()=>r()?.mode==="preview"?i()("preview"):i()("edit")]),$(se,fe)},ne=se=>{var fe=X(),be=M(fe);{var pe=he=>{qk(he,{get thisPane(){return e.thisPane}})};q(be,he=>{l(A)&&he(pe)},!0)}$(se,fe)};q(re,se=>{o()||s()?se(ne,!1):se(ee)},!0)}$(Q,oe)};q(W,Q=>{l(b)&&l(w).length>1?Q(Y):Q(O,!1)})}var F=j(W,2);Xr(F,{flex:!0});var K=j(F,2);{var J=Q=>{const oe=_(()=>Fi(r().locale));var re=XJ(),ee=M(re);{var ne=fe=>{fP(fe,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q(ee,fe=>{l(x)&&fe(ne)})}var se=j(ee,2);{const fe=pe=>{{let he=_(()=>i()("content_options_x_locale",{values:{locale:l(oe)}}));ar(pe,{get"aria-label"(){return l(he)},children:(ge,ve)=>{var _e=JJ(),$e=M(_e);{var Ce=Fe=>{_w(Fe,{get locale(){return r().locale},get otherLocales(){return l(C)}})};q($e,Fe=>{l(x)&&r()?.locale&&Fe(Ce)})}var Re=j($e,2);{let Fe=_(()=>i()("revert_changes")),Ie=_(()=>!l(T));gt(Re,{get label(){return l(Fe)},get disabled(){return l(Ie)},onclick:()=>{kw({locale:r()?.locale})}})}var He=j(Re,2);{var Ye=Fe=>{var Ie=WJ(),Ae=M(Ie);Jr(Ae,{});var we=j(Ae,2);{let Pe=_(()=>i()(l(k)?"disable_x_locale":Dn(n()?.currentValues[r().locale])?"reenable_x_locale":"enable_x_locale",{values:{locale:l(oe)}})),ye=_(()=>r().locale===l(E)||l(k)&&l(S));gt(we,{get label(){return l(Pe)},get disabled(){return l(ye)},onclick:()=>{RP(r()?.locale??"")}})}$(Fe,Ie)};q(He,Fe=>{!l(y)&&r()?.locale&&Fe(Ye)})}var Ue=j(He,2);{var Te=Fe=>{var Ie=YJ(),Ae=M(Ie);Jr(Ae,{});var we=j(Ae,2);{var Pe=Qe=>{{let Le=_(()=>i()("view_on_live_site"));gt(Qe,{get label(){return l(Le)},onclick:()=>{window.open(l(P))}})}};q(we,Qe=>{l(P)&&Qe(Pe)})}var ye=j(we,2);{var it=Qe=>{{let Le=_(()=>!c()?.repository?.blobBaseURL),ze=_(()=>i()("view_on_x",{values:{service:c()?.repository?.label},default:i()("view_in_repository")}));gt(Qe,{get disabled(){return l(Le)},get label(){return l(ze)},onclick:()=>{l(g)&&r()&&window.open(rM(l(g),r().locale))}})}};q(ye,Qe=>{a().devModeEnabled&&Qe(it)})}$(Fe,Ie)};q(Ue,Fe=>{l(g)&&(l(P)||a().devModeEnabled)&&Fe(Te)})}$(ge,_e)},$$slots:{default:!0}})}};let be=_(()=>i()("show_content_options_x_locale",{values:{locale:l(oe)}}));Mr(se,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(be)},popup:fe,$$slots:{popup:!0}})}$(Q,re)};q(K,Q=>{r()?.mode==="edit"&&Q(J)})}$(D,H)},$$slots:{default:!0}})}Z(()=>Se(L,"id",e.id)),$(t,L),ce(),d()}var tX=U('<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>'),nX=U('<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>'),rX=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>',1);const iX={hash:"svelte-wdavy7",code:"p.svelte-wdavy7:not(:empty) {margin-top:0;}.locales.svelte-wdavy7 {display:table;margin:16px 0 0;width:100%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) {display:table-row;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7) {display:table-cell;vertical-align:middle;white-space:nowrap;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) div:where(.svelte-wdavy7):last-child {width:90%;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) h3:where(.svelte-wdavy7) {margin-inline-end:8px;font-size:inherit;}.locales.svelte-wdavy7 section:where(.svelte-wdavy7) p.error:where(.svelte-wdavy7) {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}"};function oX(t,e){const n=zn();le(e,!0),ke(t,iX);const r=()=>V(We,"$entryDraft",o),i=()=>V(ue,"$_",o),[o,s]=me();let a=R(e,"open",15,!1);const c=_(()=>r()?.collectionName??""),u=_(()=>r()?.currentSlugs??{});let d=ie(St([]));const f=St({}),h=St({}),p=()=>{G(d,zo(l(c)).map(g=>Object.values(g.locales).map(({slug:m})=>m)).flat(1).filter(g=>!Object.values(l(u)).includes(g)),!0),Object.assign(f,l(u)),Object.assign(h,Object.fromEntries(Object.keys(l(u)).map(g=>[g,!1])))};De(()=>{a()&&p()});{let g=_(()=>i()("edit_slug")),m=_(()=>i()("update")),v=_(()=>ln(l(u),f)||Object.values(h).some(b=>b!==!1));ji(t,{get title(){return l(g)},get okLabel(){return l(m)},get okDisabled(){return l(v)},onOk:()=>{yt(We,Ee(r).currentSlugs=f,Ee(r))},get open(){return a()},set open(b){a(b)},children:(b,y)=>{var w=rX(),E=M(w);Lc(E,()=>({"--font-size":"var(--sui-font-size-small)"})),Rn(E.lastChild,{status:"warning",children:(S,C)=>{var x=Oe();Z(T=>te(x,T),[()=>i()("edit_slug_warning")]),$(S,x)},$$slots:{default:!0}});var k=j(E,2);ot(k,21,()=>Object.keys(f),vr,(S,C)=>{var x=nX(),T=z(x);{var A=W=>{var Y=tX(),O=z(Y),F=z(O);Z(K=>te(F,K),[()=>Fi(l(C))]),$(W,Y)};q(T,W=>{["_","_default"].includes(l(C))||W(A)})}var P=j(T,2),L=z(P);{let W=_(()=>h[l(C)]!==!1);Nn(L,{flex:!0,oninput:()=>{h[l(C)]=f[l(C)].trim()?l(d).includes(f[l(C)])?"duplicate":!1:"empty"},get invalid(){return l(W)},get"aria-errormessage"(){return`${n}-${l(C)??""}-error`},get value(){return f[l(C)]},set value(Y){f[l(C)]=Y}})}var I=j(L,2),N=z(I);{var D=W=>{var Y=Oe();Z(O=>te(Y,O),[()=>i()("edit_slug_error.empty")]),$(W,Y)};q(N,W=>{h[l(C)]==="empty"&&W(D)})}var B=j(N,2);{var H=W=>{var Y=Oe();Z(O=>te(Y,O),[()=>i()("edit_slug_error.duplicate")]),$(W,Y)};q(B,W=>{h[l(C)]==="duplicate"&&W(H)})}Z(()=>Se(I,"id",`${n}-${l(C)??""}-error`)),$(S,x)}),$(b,w)},$$slots:{default:!0}})}ce(),s()}const sX=({ids:t,assetPaths:e})=>{const n=ae(di);di.set(n.filter(r=>!t.includes(r.id))),Hu.set({...bl,deleted:!0,count:t.length}),e.length&&Mn.update(r=>r.filter(i=>!e.includes(i.path)))},jP=async(t,e=[])=>{const n=ae(di),r=t.map(i=>{const{locales:o,slug:s}=n.find(a=>a.id===i)??{};if(o)return Object.values(o).map(({path:a})=>({action:"delete",slug:s,path:a}))}).flat(1).filter((i,o,s)=>i&&s.findIndex(a=>a?.path===i.path)===o);e.length&&r.push(...e.map(i=>({action:"delete",path:i}))),await Qd({changes:r,options:{commitType:"delete",collection:ae(Vn)}}),sX({ids:t,assetPaths:e})},aX="{{fields._slug}}",lX="{{fields._slug | localize}}",cX=({collection:t,collectionFile:e,originalEntry:n})=>{const{_type:r}=t,{identifier_field:i="title",slug:o=`{{${i}}}`}=r==="entry"?t:{},{id:s}=n,a=s===void 0,{_i18n:c}=e??t,{allLocales:u,defaultLocale:d}=c,f=r==="entry"&&a,h=f&&o.includes(lX),p=f&&(o.includes(aX)||h);return Object.fromEntries(u.map(g=>[g,p?g===d||h?!0:"readonly":!1]))},Nu=({collection:t,collectionFile:e,originalEntry:n={},dynamicValues:r,expanderStates:i,isIndexFile:o=Fo(t,n)})=>{const s=t.name,a=e?.name,{id:c,slug:u,locales:d}=n,f=c===void 0,{fields:h=[],_i18n:p}=e??t,g=o?hi(t):void 0,m=g?.fields??h,v=g?.editor?.preview??e?.editor?.preview??t.editor?.preview??ae($t)?.editor?.preview??!0,{allLocales:b,initialLocales:y,defaultLocale:w,canonicalSlug:{key:E="translationKey"}}=p,k=f?y:b.filter(T=>!!d?.[T]?.content),S=Object.fromEntries(b.map(T=>[T,k.includes(T)])),C=f?{}:E in(d?.[w]?.content??{})?Object.fromEntries(b.map(T=>[T,d?.[T]?.slug])):{_:d?.[w].slug},x=Object.fromEntries(k.map(T=>f?[T,of(m,T,r)]:[T,structuredClone(d?.[T]?.content)]));We.set({createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:v,collectionName:s,collection:t,fileName:a,collectionFile:e,fields:m,originalEntry:f?void 0:n,originalLocales:S,currentLocales:structuredClone(S),originalSlugs:C,currentSlugs:structuredClone(C),originalValues:x,currentValues:Object.fromEntries(k.map(T=>[T,hw({draft:{collectionName:s,fileName:a,isIndexFile:o},locale:T,target:structuredClone(x[T])})])),files:{},extraValues:Object.fromEntries(b.map(T=>[T,{}])),validities:Object.fromEntries(b.map(T=>[T,{}])),expanderStates:i??{_:{}},slugEditor:cX({collection:t,collectionFile:e,originalEntry:n})}),YH({collectionName:s,fileName:a,slug:u})},uX=()=>{const t=ae(We),{collectionName:e,fileName:n,collection:r,collectionFile:i,currentValues:o,validities:s,isIndexFile:a}=t,{defaultLocale:c,canonicalSlug:{key:u}}=(i??r)._i18n;Object.entries(o).forEach(([d,f])=>{delete f[u];const h={collectionName:e,fileName:n,valueMap:f,isIndexFile:a};Object.keys(f).forEach(p=>{const g=hn({...h,keyPath:p});if(g?.widget==="uuid"&&(d===c||[!0,"translate"].includes(g?.i18n??!1))&&(f[p]=zP(g)),g?.widget==="hidden"){if(Array.isArray(g.default)&&p.match(/\.\d+$/)&&(delete f[p],p=p.replace(/\.\d+$/,""),p in f))return;(d===c||[!0,"translate"].includes(g?.i18n??!1))&&Object.assign(f,CP({fieldConfig:g,keyPath:p,locale:d}))}})}),Object.keys(s).forEach(d=>{s[d]={}}),We.set({...t,isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{}}),ov.set(!0)},Hk=/\.\d+$/,dX={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},fX={get:(t,e)=>e==="valid"?!Object.values(t).some(Boolean):t[e]},hX=t=>{const{draft:e,locale:n,valueMap:r,componentName:i,validities:o}=t,{collection:s,collectionName:a,fileName:c,collectionFile:u,files:d,isIndexFile:f}=e;let{keyPath:h,value:p}=t;const g={collectionName:a,fileName:c,componentName:i,valueMap:r,keyPath:h.replace(md,""),isIndexFile:f},m=hn({...g});if(!m)return;const{widget:v="string",i18n:b=!1,pattern:y}=m,w=jc(m),{min:E=0,max:k=1/0}=nT.includes(v)?m:{},{i18nEnabled:S,defaultLocale:C}=(u??s)._i18n;if(!i&&n!==C&&(!S||b===!1||b==="none"||b==="duplicate"))return;const x=Object.entries(r),T=Bc({fieldConfig:m,locale:n}),A={...dX};if(v==="list"||w){if(h in o[n])return;const P=new RegExp(`^${Vt(h)}\\.\\d+`),L=Array.isArray(p)&&p.length?p.length:new Set(x.map(([I])=>I.match(P)?.[0]).filter(Boolean)).size;T&&!L?A.valueMissing=!0:typeof E=="number"&&L<E?A.rangeUnderflow=!0:typeof k=="number"&&L>k&&(A.rangeOverflow=!0)}if(v==="object"&&T&&!p&&(A.valueMissing=!0),v==="keyvalue"){const P=h.match(/(.+?)(?:\.[^.]*)?$/)?.[1],L=hn({...g,keyPath:P.replace(md,"")});if(P in o[n]||L?.widget!=="keyvalue")return;h=P;const N=ww({entryDraft:We,keyPath:P,locale:n});T&&!N.length?A.valueMissing=!0:typeof E=="number"&&N.length<E?A.rangeUnderflow=!0:typeof k=="number"&&N.length>k&&(A.rangeOverflow=!0)}if(v==="code"){const{output_code_only:P=!1,keys:L={code:"code",lang:"lang"}}=m,I=h.match(`(.+)\\.(?:${L.code}|${L.lang})$`)?.[1]??"";if(I&&(h=I),h in o[n])return;P||(p=r[`${h}.${L.code}`])}if(P_.includes(v)&&typeof p=="string"&&p.startsWith("blob:")&&(p=d[p]?.file?.name),!(["object","list","hidden","compute","keyvalue"].includes(v)||w)&&(typeof p=="string"&&(p=p.trim()),T&&(p==null||p===""||w&&!p.length)&&(A.valueMissing=!0),Array.isArray(y))){const P=qc(y[0]);P&&!P.test(String(p))&&(A.patternMismatch=!0)}if(["string","text"].includes(v)){const P=MP({fieldConfig:m,value:p});A.tooShort=P.tooShort,A.tooLong=P.tooLong}if(v==="string"&&p){const{type:P="text"}=m;if(P!=="text"){const L=Object.assign(document.createElement("input"),{type:P,value:p});A.typeMismatch=L.validity.typeMismatch}P==="email"&&!A.typeMismatch&&!p.split("@")[1]?.includes(".")&&(A.typeMismatch=!0)}if(v==="number"){const{value_type:P="int"}=m;typeof E=="number"&&p!==null&&Number(p)<E?A.rangeUnderflow=!0:typeof k=="number"&&p!==null&&Number(p)>k&&(A.rangeOverflow=!0),(P==="int"||P==="float")&&T&&p===null&&(A.typeMismatch=!0)}return new Proxy(A,fX)},BP=t=>{const{validities:e,locale:n,keyPath:r}=t,i=hX(t);let o=!0;return i&&(e[n][r]=i,i.valid||(o=!1)),o},pX=({fieldConfig:t,validateArgs:e})=>{const{validities:n,locale:r,keyPath:i}=e,o=n[r][i]?.valid??BP(e),{widget:s="string"}=t;return s==="list"&&!Id(t).hasSubFields?{valid:o,validateItems:!1}:jc(t)?{valid:o,validateItems:!1}:{valid:o,validateItems:!0}},Kk=t=>{const e=ae(We),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:o}=e,s={},a={collectionName:n,fileName:r,isIndexFile:i,keyPath:"",valueMap:{}};let c=!0;return Object.entries(e[t]).forEach(([u,d])=>{const f=Object.entries(d);if(!o[u]){s[u]=Object.fromEntries(f.map(([p])=>[p,{valid:!0}]));return}const h={draft:e,locale:u,valueMap:d,validities:s};s[u]={},f.forEach(([p,g])=>{const[m]=p.match(md)??[],v=m?d[`${m}__sc_component_name`]:void 0,b=hn({...a,keyPath:p.replace(md,""),valueMap:d,componentName:v});if(b){if(Hk.test(p)){const{valid:y,validateItems:w}=pX({fieldConfig:b,validateArgs:{...h,keyPath:p.replace(Hk,""),value:"",componentName:v}});if(y||(c=!1),!w)return}BP({...h,keyPath:p,value:g,componentName:v})||(c=!1)}})}),{valid:c,validities:s}},gX=()=>{const{currentSlugs:t,slugEditor:e}=ae(We),n={};let r=!0;return Object.entries(t).forEach(([i,o])=>{const s=!!e[i]&&!o?.trim();s&&(r=!1),n[i]={_slug:{valueMissing:s,valid:!s}}}),{valid:r,validities:n}},mX=()=>{const{valid:t,validities:e}=Kk("currentValues"),{valid:n,validities:r}=Kk("extraValues"),{valid:i,validities:o}=gX();return We.update(s=>({...s,validities:Object.fromEntries(Object.keys(e).map(a=>[a,{...e[a],...r[a],...o[a]}]))})),t&&n&&i},vX=({skipCI:t})=>{const e=!!ae(wn)?.isGit&&!(t??ae(cw));Hu.set({...bl,saved:!0,published:e,count:1}),xh.set(e)},bX=async({skipCI:t=void 0}={})=>{const e=ae(We),{collection:n,isNew:r,collectionName:i,fileName:o,currentValues:s}=e;if(!mX())throw bW({collectionName:i,fileName:o,currentValues:s}),new Error("validation_failed");const a=j2({draft:e}),{defaultLocaleSlug:c}=a,{savingEntry:u,changes:d,savingAssets:f}=await K2({draft:e,slugs:a});let h;try{h=await Qd({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:r?"create":"update",collection:n,skipCI:t}})}catch(p){throw console.error(p.cause??p),new Error("saving_failed",{cause:p.cause??p})}return vX({skipCI:t}),lg(i,r?"":c),h.savedEntries[0]},UP=async(t,e)=>{const{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=t,{locales:o}=e,{content:s}=o[r]??Object.values(o)[0]??{};if(!s)return;const a=i.map(c=>{if(c.includes("*")){const u=new RegExp(`^${Vt(c).replace("\\*",".+")}$`);return Object.keys(s).filter(d=>u.test(d))}return c}).flat(1);for(const c of a){const u=s[c]?await pc({value:s[c],entry:e,collectionName:n,thumbnail:!0}):void 0;if(u)return u}},qP=({entry:t,collectionName:e,fileName:n,relative:r=!1})=>{const{locales:i}=t,o=Qr(e);if(!o)return[];const s=Fo(o,t),a=Object.values(i).map(({content:c})=>Object.entries(c).map(([u,d])=>{if(typeof d=="string"&&(!r||!/^[/@]/.test(d))&&["image","file"].includes(hn({collectionName:e,keyPath:u,isIndexFile:s})?.widget??"string")){const f=V_({value:d,entry:t,collectionName:e,fileName:n});if(f&&Ep(f.path).some(h=>h.collectionName===e&&h.fileName===n&&(r?h.entryRelative:!0)))return f}})).flat(1).filter((c,u,d)=>!!c&&d.indexOf(c)===u);if(r&&eo({collectionName:e,fileName:n})?.entryRelative){const c=fn(Object.values(t.locales)[0].path).dirname;ae(Mn).forEach(u=>{fn(u.path).dirname===c&&!a.find(({path:d})=>d===u.path)&&a.push(u)})}return a};var _X=U("<!> <!>",1),yX=U("<!> <!> <!>",1),wX=U("<!> <!> <!> <!>",1),xX=U('<!> <h2 role="none"><!></h2> <!> <!> <!> <!>',1),kX=U('<div role="none" class="error svelte-zjrq31"> </div>'),SX=U(" <!>",1),EX=U("<!> <!> <!> <!> <!> <!>",1);const $X={hash:"svelte-zjrq31",code:".error.svelte-zjrq31 {margin-top:8px;border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);line-height:1.5;}"};function TX(t,e){le(e,!0),ke(t,$X);const n=()=>V(We,"$entryDraft",p),r=()=>V(Ut,"$appLocale",p),i=()=>V(X2,"$entryDraftModified",p),o=()=>V(ft,"$prefs",p),s=()=>V(ue,"$_",p),a=()=>V(cn,"$isSmallScreen",p),c=()=>V(jo,"$isMediumScreen",p),u=()=>V(Li,"$entryEditorSettings",p),d=()=>V(lw,"$skipCIConfigured",p),f=()=>V(cw,"$skipCIEnabled",p),h=()=>V(sv,"$copyFromLocaleToast",p),[p,g]=me(),m=ge=>{const ve=_(()=>a()?gt:Ze);var _e=_X(),$e=M(_e);{let Re=_(()=>s()("duplicate")),He=_(()=>s()("duplicate_entry")),Ye=_(()=>l(T)||l(P)?.create===!1||!Op(l(A)));Hn($e,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{Ht(`/collections/${l(B)}/new`,{replaceState:!0,notifyChange:!1,transitionType:"forwards"}),uX()}})})}var Ce=j($e,2);{let Re=_(()=>s()("delete")),He=_(()=>s()("delete_entry")),Ye=_(()=>l(P)?.delete===!1);Hn(Ce,()=>l(ve),(Ue,Te)=>{Te(Ue,{variant:"ghost",get label(){return l(Re)},get"aria-label"(){return l(He)},get disabled(){return l(Ye)},onclick:()=>{G(w,!0)}})})}$(ge,_e)};let v=R(e,"disabled",3,!1),b=ie(!1),y=ie(!1),w=ie(!1),E=ie(!1),k=ie(""),S=ie(!1),C=ie(void 0);const x=_(()=>n()?.isNew??!0),T=_(()=>n()?.isIndexFile??!1),A=_(()=>n()?.collection),P=_(()=>l(A)?._type==="entry"?l(A):void 0),L=_(()=>n()?.collectionFile),I=_(()=>n()?.originalEntry),N=_(()=>(l(L)??l(A))?._i18n??so),D=_(()=>l(N).defaultLocale),B=_(()=>l(A)?.name),H=_(()=>l(L)?.name),W=_(()=>r()&&l(A)?cs(l(A)):""),Y=_(()=>r()&&l(A)?cs(l(A),{useSingular:!0}):""),O=_(()=>n()?.canPreview??!0),F=_(()=>l(x)||i()),K=_(()=>Object.values(n()?.validities??{}).map(ge=>Object.values(ge).map(({valid:ve})=>!ve)).flat(1).filter(Boolean).length),J=_(()=>l(B)&&l(I)&&eo({collectionName:l(B),fileName:l(H)})?.entryRelative?qP({entry:l(I),collectionName:l(B),fileName:l(H),relative:!0}):[]),Q=_(()=>l(A)&&l(I)?tT(l(I),l(D),l(A),l(L)):void 0),oe=()=>{Vs(l(B)==="_singletons"?"/collections":`/collections/${l(B)}`)},re=async({skipCI:ge=void 0}={})=>{if(G(S,!0),!!l(A))try{const ve=await bX({skipCI:ge});o()?.closeOnSave??!0?(oe(),Ge(We,null)):(l(x)&&Ht(`/collections/${l(B)}/entries/${ve.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:"backwards"}),Nu({collection:l(A),collectionFile:l(L),originalEntry:ve,expanderStates:n()?.expanderStates}))}catch(ve){ve.message==="validation_failed"?G(b,!0):ve.message==="saving_failed"?(G(E,!0),G(k,ve.cause?.message??ve.message??s()("unexpected_error"),!0)):(G(E,!0),G(k,""),console.error(ve))}finally{G(S,!1)}};var ee=EX(),ne=M(ee);{let ge=_(()=>s()("primary"));Ei(ne,{variant:"primary",get"aria-label"(){return l(ge)},children:(ve,_e)=>{var $e=xX(),Ce=M($e);{let ye=_(()=>s()("cancel_editing"));nl(Ce,{get"aria-label"(){return l(ye)},get useShortcut(){return o().closeWithEscape},onclick:()=>{oe()}})}var Re=j(Ce,2),He=z(Re);Cr(He,{children:(ye,it)=>{var Qe=X(),Le=M(Qe);{var ze=st=>{var lt=Oe();Z(xt=>te(lt,xt),[()=>s()("create_entry_title",{values:{name:l(Y)}})]),$(st,lt)},Xe=st=>{const lt=_(()=>l(L)?Cd(l(L)):l(A)&&l(I)&&r()?zc(l(A),l(I)):"");var xt=X(),Gt=M(xt);{var bn=Zt=>{var pt=Oe();Z(()=>te(pt,l(lt))),$(Zt,pt)},Xt=Zt=>{var pt=Oe();Z(Ot=>te(pt,Ot),[()=>s()("edit_entry_title",{values:{collection:l(W),entry:l(lt)}})]),$(Zt,pt)};q(Gt,Zt=>{a()?Zt(bn):Zt(Xt,!1)})}$(st,xt)};q(Le,st=>{l(x)?st(ze):st(Xe,!1)})}$(ye,Qe)},$$slots:{default:!0}});var Ye=j(Re,2);{var Ue=ye=>{{let it=_(()=>s()("view_on_live_site"));Ze(ye,{variant:"tertiary",get label(){return l(it)},onclick:()=>{window.open(l(Q))}})}};q(Ye,ye=>{!v()&&l(Q)&&ye(Ue)})}var Te=j(Ye,2);{var Fe=ye=>{m(ye)};q(Te,ye=>{!a()&&!v()&&!l(L)&&!l(x)&&ye(Fe)})}var Ie=j(Te,2);{const ye=Qe=>{{let Le=_(()=>s()("editor_options"));ar(Qe,{get"aria-label"(){return l(Le)},children:(ze,Xe)=>{var st=wX(),lt=M(st);{var xt=pt=>{m(pt)};q(lt,pt=>{a()&&!v()&&!l(L)&&!l(x)&&pt(xt)})}var Gt=j(lt,2);{let pt=_(()=>s()("edit_slug")),Ot=_(()=>!!l(L)||l(x)||l(T)||l(P)?.delete===!1);gt(Gt,{get label(){return l(pt)},get disabled(){return l(Ot)},onclick:()=>{G(y,!0)}})}var bn=j(Gt,2);{let pt=_(()=>s()("revert_all_changes")),Ot=_(()=>!l(F));gt(bn,{get label(){return l(pt)},get disabled(){return l(Ot)},onclick:()=>{kw()}})}var Xt=j(bn,2);{var Zt=pt=>{var Ot=yX(),an=M(Ot);Jr(an,{});var xn=j(an,2);{let Kt=_(()=>s()("show_preview")),Nt=_(()=>u()?.showPreview),kt=_(()=>!l(O));Sh(xn,{get label(){return l(Kt)},get checked(){return l(Nt)},get disabled(){return l(kt)},onChange:()=>{Li.update((un={})=>({...un,showPreview:!un.showPreview}))}})}var pn=j(xn,2);{let Kt=_(()=>s()("sync_scrolling")),Nt=_(()=>u()?.syncScrolling),kt=_(()=>!l(O)&&Object.keys(n()?.currentValues??{}).length===1);Sh(pn,{get label(){return l(Kt)},get checked(){return l(Nt)},get disabled(){return l(kt)},onChange:()=>{Li.update((un={})=>({...un,syncScrolling:!un.syncScrolling}))}})}$(pt,Ot)};q(Xt,pt=>{a()||c()||pt(Zt)})}$(ze,st)},$$slots:{default:!0}})}};let it=_(()=>s()("show_editor_options"));bt(Mr(Ie,{get disabled(){return v()},variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(it)},popup:ye,$$slots:{popup:!0}}),Qe=>G(C,Qe,!0),()=>l(C))}var Ae=j(Ie,2);{var we=ye=>{{const it=ze=>{ar(ze,{children:(Xe,st)=>{{let lt=_(()=>s()(f()?"save_and_publish":"save_without_publishing"));gt(Xe,{get label(){return l(lt)},onclick:()=>{re({skipCI:!f()})}})}},$$slots:{default:!0}})};let Qe=_(()=>s()(l(S)?"saving":"save")),Le=_(()=>v()||!l(F)||l(S));SC(ye,{variant:"primary",get label(){return l(Qe)},get disabled(){return l(Le)},keyShortcuts:"Accel+S",onclick:()=>{re()},popup:it,$$slots:{popup:!0}})}},Pe=ye=>{{let it=_(()=>s()(l(S)?"saving":"save")),Qe=_(()=>v()||!l(F)||l(S));Ze(ye,{variant:"primary",get label(){return l(it)},get disabled(){return l(Qe)},keyShortcuts:"Accel+S",onclick:()=>{re()}})}};q(Ae,ye=>{d()?ye(we):ye(Pe,!1)})}$(ve,$e)},$$slots:{default:!0}})}var se=j(ne,2);Zn(se,{get show(){return l(b)},set show(ge){G(b,ge,!0)},children:(ge,ve)=>{Rn(ge,{status:"error",children:(_e,$e)=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>s()(l(K)===1?"entry_validation_error":"entry_validation_errors",{values:{count:l(K)}})]),$(_e,Ce)},$$slots:{default:!0}})},$$slots:{default:!0}});var fe=j(se,2);Zn(fe,{get id(){return h().id},get show(){return h().show},set show(ge){yt(sv,Ee(h).show=ge,Ee(h))},children:(ge,ve)=>{const _e=_(()=>{const{status:$e,message:Ce,count:Re,sourceLanguage:He}=h();return{status:$e,message:Ce,count:Re,sourceLanguage:He}});Rn(ge,{get status(){return l(_e).status},children:($e,Ce)=>{var Re=Oe();Z(He=>te(Re,He),[()=>s()(`editor.${l(_e).message}`,{values:{count:l(_e).count,source:l(_e).sourceLanguage?Fi(l(_e).sourceLanguage):""}})]),$($e,Re)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=j(fe,2);oX(be,{get open(){return l(y)},set open(ge){G(y,ge,!0)}});var pe=j(be,2);{let ge=_(()=>s()("delete_entry")),ve=_(()=>s()("delete"));Kc(pe,{get title(){return l(ge)},get okLabel(){return l(ve)},onOk:async()=>{l(I)&&await jP([l(I).id],l(J).map(({path:_e})=>_e)),oe()},onClose:()=>{l(C)?.focus()},get open(){return l(w)},set open(_e){G(w,_e,!0)},children:(_e,$e)=>{var Ce=Oe();Z(Re=>te(Ce,Re),[()=>s()(l(J).length?"confirm_deleting_this_entry_with_assets":"confirm_deleting_this_entry")]),$(_e,Ce)},$$slots:{default:!0}})}var he=j(pe,2);{let ge=_(()=>s()("saving_entry.error.title"));jp(he,{get title(){return l(ge)},onClose:()=>{l(C)?.focus()},get open(){return l(E)},set open(ve){G(E,ve,!0)},children:(ve,_e)=>{var $e=SX(),Ce=M($e),Re=j(Ce);{var He=Ye=>{var Ue=kX(),Te=z(Ue);Z(()=>te(Te,l(k))),$(Ye,Ue)};q(Re,Ye=>{l(k)&&Ye(He)})}Z(Ye=>te(Ce,`${Ye??""} `),[()=>s()("saving_entry.error.description")]),$(ve,$e)},$$slots:{default:!0}})}$(t,ee),ce(),g()}var CX=U('<div role="none"><!></div> <div role="none"><!></div>',1),AX=U("<!> <!>",1),PX=U("<!> <!>",1),LX=U("<!> <!>",1),NX=U('<div role="none" class="cols svelte-jrunrx"><!></div>'),IX=U("<!> <!>",1),OX=U('<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>',1);const RX={hash:"svelte-jrunrx",code:`.wrapper.svelte-jrunrx {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);transition:filter 250ms;}.wrapper[hidden].svelte-jrunrx {display:none;}.wrapper[inert].svelte-jrunrx {filter:opacity(0);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) {flex:auto;overflow:hidden;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div {display:flex;flex-direction:column;min-width:480px;background-color:var(--sui-primary-background-color);transition:all 500ms;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=edit] {flex:1 1;}.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div[data-mode=preview] {flex:2 1;}
|
|
649
649
|
@media (width < 768px) {.wrapper.svelte-jrunrx .cols:where(.svelte-jrunrx) > div {min-width:auto;}
|
|
650
|
-
}`};function RX(t,e){le(e,!0),ke(t,OX);const n=()=>V(We,"$entryDraft",f),r=()=>V(Li,"$entryEditorSettings",f),i=()=>V(sa,"$editorLeftPane",f),o=()=>V(fo,"$editorRightPane",f),s=()=>V(cn,"$isSmallScreen",f),a=()=>V(jo,"$isMediumScreen",f),c=()=>V(ll,"$showContentOverlay",f),u=()=>V(ue,"$_",f),d=()=>V(ov,"$showDuplicateToast",f),[f,h]=me();let p=!1,g=ie(!0),m=ie(void 0),v=ie(void 0),b=ie(void 0);const y=_(()=>n()?.isNew??!0),w=_(()=>n()?.collection),E=_(()=>l(w)?._type==="entry"?l(w):void 0),k=_(()=>n()?.collectionFile),S=_(()=>r()??{}),C=_(()=>l(S).showPreview),x=_(()=>(l(k)??l(w))?._i18n??so),T=_(()=>l(x).i18nEnabled),A=_(()=>l(x).allLocales),P=_(()=>l(x).defaultLocale),L=_(()=>n()?.canPreview??!0),I=_(()=>l(k)?.name?[l(w)?.name,l(k).name].join("|"):l(w)?.name),N=_(()=>l(E)?.create??!1),D=_(()=>l(E)?.limit??1/0),B=_(()=>!Op(l(w))),H=async()=>{const[re,ee]=r()?.paneStates?.[l(I)??""]??[];return p||!re||!ee||re.locale&&!l(A).includes(re.locale)||ee.locale&&!l(A).includes(ee.locale)||(!l(C)||!l(L))&&(re.mode==="preview"||ee.mode==="preview")?!1:(p=!0,await Sa(),Ge(sa,re),Ge(fo,ee),await Sa(),p=!1,(s()||a())&&Ge(fo,null),!0)},W=async()=>{if(n()&&!await H())if(Ge(sa,{mode:"edit",locale:i()?.locale??l(P)}),s()||a())Ge(fo,null);else if(!l(C)||!l(L)){const re=l(T)?l(A).filter(ee=>ee!==i()?.locale):[];Ge(fo,re.length?{mode:"edit",locale:re[0]}:null)}else Ge(fo,{mode:"preview",locale:i().locale})},Y=()=>{!l(w)||p||!i()||!o()||!l(I)||Li.update((re={})=>({...re,paneStates:{...re.paneStates,[l(I)]:[i(),o()]}}))},O=async()=>{await Sa(),l(m)&&(l(m).tabIndex=0,l(m).focus())};jt(()=>{l(m)?.addEventListener("transitionend",()=>{c()||(G(g,!0),Ge(We,null))})}),De(()=>{l(I)&&(Ge(sa,null),Ge(fo,null))}),De(()=>{l(C),l(L),s(),a(),Ee(()=>{W()})}),De(()=>{i(),o(),Y()}),De(()=>{l(m)&&(c()?l(g)&&(G(g,!1),W(),O(),JH()):YH())});var F=IX(),K=M(F),J=z(K);er(J,()=>n()?.createdAt,re=>{var ee=NX(),ne=M(ee);{let pe=_(()=>l(y)&&l(B));$X(ne,{get disabled(){return l(pe)}})}var se=j(ne,2);{var fe=pe=>{},be=pe=>{var he=X(),ge=M(he);{var ve=$e=>{pr($e,{children:(Ce,Re)=>{var He=TX(),Ye=M(He),Ue=z(Ye);{var Te=we=>{var Pe=Oe();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_admin")]),$(we,Pe)},Fe=we=>{var Pe=Oe();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_limit",{values:{limit:l(D)}})]),$(we,Pe)};q(Ue,we=>{l(N)?we(Fe,!1):we(Te)})}var Ie=j(Ye,2),Ae=z(Ie);Ze(Ae,{variant:"primary",onclick:()=>{Ht(`/collection/${l(w)?.name}`,{replaceState:!0,transitionType:"backwards"})},children:(we,Pe)=>{var ye=Oe();Z(it=>te(ye,it),[()=>u()("back_to_collection")]),$(we,ye)},$$slots:{default:!0}}),$(Ce,He)},$$slots:{default:!0}})},_e=$e=>{var Ce=LX(),Re=z(Ce);{var He=Ye=>{var Ue=PX(),Te=M(Ue);{var Fe=we=>{const Pe=_(()=>{const{locale:ye,mode:it}=i()??{};return{locale:ye,mode:it}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Fi(l(Pe).locale)}}));Ao(we,{class:"pane",get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(it,Qe)=>{var Le=CX(),ze=M(Le);Vk(ze,{id:"left-pane-header",get thisPane(){return sa},get thatPane(){return fo}});var Xe=j(ze,2);Uk(Xe,{id:"left-pane-body",get thisPane(){return sa},get thisPaneContentArea(){return l(v)},set thisPaneContentArea(st){G(v,st,!0)},get thatPaneContentArea(){return l(b)},set thatPaneContentArea(st){G(b,st,!0)}}),$(it,Le)},$$slots:{default:!0}})}};q(Te,we=>{i()&&we(Fe)})}var Ie=j(Te,2);{var Ae=we=>{const Pe=_(()=>{const{locale:ye,mode:it}=o()??{};return{locale:ye,mode:it}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Fi(l(Pe).locale)}}));Ao(we,{get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(it,Qe)=>{var Le=AX(),ze=M(Le);Vk(ze,{id:"right-pane-header",get thisPane(){return fo},get thatPane(){return sa}});var Xe=j(ze,2);Uk(Xe,{id:"right-pane-body",get thisPane(){return fo},get thisPaneContentArea(){return l(b)},set thisPaneContentArea(st){G(b,st,!0)},get thatPaneContentArea(){return l(v)},set thatPaneContentArea(st){G(v,st,!0)}}),$(it,Le)},$$slots:{default:!0}})}};q(Ie,we=>{o()&&we(Ae)})}$(Ye,Ue)};q(Re,Ye=>{l(w)&&Ye(He)})}$($e,Ce)};q(ge,$e=>{l(y)&&l(B)?$e(ve):$e(_e,!1)},!0)}$(pe,he)};q(se,pe=>{n()?pe(be,!1):pe(fe)})}$(re,ee)}),bt(K,re=>G(m,re),()=>l(m));var Q=j(K,2);ZH(Q,{});var oe=j(Q,2);Zn(oe,{get show(){return Wb(),d()},set show(re){Ge(ov,re)},children:(re,ee)=>{Rn(re,{status:"success",children:(ne,se)=>{var fe=Oe();Z(be=>te(fe,be),[()=>u()("entry_duplicated")]),$(ne,fe)},$$slots:{default:!0}})},$$slots:{default:!0}}),Z(re=>{Se(K,"hidden",l(g)),K.inert=!c(),Se(K,"aria-label",re)},[()=>u()("content_editor")]),$(t,F),ce(),h()}const VP=t=>{if(Array.isArray(t))return{options:t};if(Yt(t)){const{filters:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},DX=(t,e,n)=>{const{name:r,view_filters:i=[],_i18n:{defaultLocale:o}}=e,{options:s}=VP(i),a=n.filter(({field:c,pattern:u})=>c!==void 0&&u!==void 0&&s.some(d=>d.field===c&&String(d.pattern)===String(u)));return t.filter(c=>a.every(({field:u,pattern:d})=>{const f={entry:c,locale:o,collectionName:r,key:u},h=ed({...f,resolveRef:!1}),p=ed({...f}),g=qc(d);return h===void 0||p===void 0?!1:g?g.test(String(h))||g.test(String(p)):h===d||p===d}))},MX=sn([Vn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=VP(t.view_filters);e(n),Vr.update(i=>({...i,filters:i.filters??(r?[r]:void 0)}))}),FX=t=>{if(Array.isArray(t))return{options:t};if(Yt(t)){const{groups:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},zX=(t,e,n)=>{const{field:r,pattern:i}=n??{field:"",pattern:void 0};if(!r)return t.length?[{name:"*",entries:t}]:[];const{name:o,_i18n:{defaultLocale:s}}=e,a=ae(Vr).sort,c=qc(i),u={},d=ae(ue)("other");t.forEach(h=>{const p=ed({entry:h,locale:s,collectionName:o,key:r}),g=p===void 0?d:c?String(p).match(c)?.[0]??d:String(p);g in u||(u[g]=[]),u[g].push(h)});const f=Object.entries(u).map(([h,p])=>({name:h,entries:p})).sort(({name:h},{name:p})=>xi(h,p));return a?.key===r&&a.order==="descending"&&f.reverse(),f},jX=sn([Vn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=FX(t.view_groups);e(n),Vr.update(i=>({...i,group:i.group===void 0?r:i.group}))}),Ul=nt(),BX=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Lo(e,"ui-settings"):null,r="contents-view";Ul.set(await n?.get(r)??{}),Ul.subscribe(i=>{(async()=>{try{ln(i,await n?.get(r))||await n?.set(r,i)}catch{}})()}),Vr.subscribe(i=>{const{name:o}=ae(Vn)??{},s=ae(Ul)?.[o??""]??{};o&&!ln(i,s)&&Ul.update(a=>({...a,[o]:i}))})};wn.subscribe(t=>{t&&!ae(Ul)&&BX(t)});const Gk=["title","name","date","author","description"],Lb={slug:String,commit_author:String,commit_date:Date},HP=Object.keys(Lb),Wk=t=>Array.isArray(t)&&t.every(e=>typeof e=="string"),UX=t=>{if(Wk(t))return{keys:t};if(Yt(t)){const{fields:e,default:n}=t;return Wk(e)?Yt(n)?{keys:e,defaultKey:n.field,defaultOrder:["descending","Descending"].includes(n.direction??"")?"descending":"ascending"}:{keys:e}:{keys:[]}}return{keys:[]}},qX=t=>{if(t){const e=Gk.filter(n=>n!==t);return{keys:[t,...e],defaultKey:t}}return{keys:[...Gk]}},VX=({collection:t,isCommitAuthorAvailable:e,isCommitDateAvailable:n})=>{const{name:r,identifier_field:i,sortable_fields:o}=t;let{keys:s,defaultKey:a,defaultOrder:c}=o?UX(o):qX(i);const u=s.includes("commit_author"),d=s.includes("commit_date");return e?!s.includes("author")&&!u&&s.push("commit_author"):u&&(s=s.filter(f=>f!=="commit_author")),n?!s.includes("date")&&!d&&s.push("commit_date"):d&&(s=s.filter(f=>f!=="commit_date")),s=Zu(s).filter(f=>!!f&&(HP.includes(f)||!!hn({collectionName:r,keyPath:f}))),a=a&&s.includes(a)?a:s[0],c??=a?"ascending":void 0,{keys:s,default:{key:a,order:c}}},HX=({key:t,fieldConfig:e})=>{if(t in Lb)return Lb[t];if(e?.widget==="boolean")return Boolean;if(e?.widget==="number"){const{value_type:n="int"}=e;if(n==="int"||n==="float")return Number}return String},KX=({collection:t,key:e})=>[...HP,"name"].includes(e)?ae(ue)(`sort_keys.${e}`):e.includes(".")?e.split(".").map((n,r,i)=>{if(/^\d+$/.test(n))return;const o=i.slice(0,r+1).join(".");return hn({collectionName:t.name,keyPath:o})?.label||n}).filter(Boolean).join(" – "):t.fields?.find(({name:n})=>n===e)?.label||e,GX=sn([Vn,di,Ut],([t,e],n)=>{if(!t||!("folder"in t)){n([]);return}const r=ae(Ul)?.[t.name]??{type:"list"},{keys:i,default:o}=VX({collection:t,isCommitAuthorAvailable:e.some(s=>!!s.commitAuthor),isCommitDateAvailable:e.some(s=>!!s.commitDate)});r.sort??=o,n(i.map(s=>({key:s,label:KX({collection:t,key:s})}))),ln(r,ae(Vr))||Vr.set(r)}),Yk=t=>{let e=t,n=!0;for(;n;){const r=e;e=e.replaceAll(/([_*`~])([^_*`~]+)\1/g,"$2"),e=e.replaceAll(/([_*`~]{2,})(.+?)\1/g,"$2"),n=e!==r}return e},WX=["title","summary","description"],YX=(t,e,{key:n,order:r}={})=>{const i=[...t];if(n===void 0)return i;const{name:o,_i18n:{defaultLocale:s}}=e,a=hn({collectionName:o,keyPath:n}),c=HX({key:n,fieldConfig:a}),u=Object.fromEntries(i.map(p=>[p.slug,ed({entry:p,locale:s,collectionName:o,key:n})])),d=a?.widget==="datetime"?a:void 0,f=a?.widget==="markdown"||WX.includes(n);i.sort((p,g)=>{const m=u[p.slug],v=u[g.slug];if(d){const b=m?fc(m,d):void 0,y=v?fc(v,d):void 0;return Number(b??0)-Number(y??0)}if(c===String){const b=m?String(m):"",y=v?String(v):"";return f?xi(Yk(b),Yk(y)):xi(b,y)}return Number(m??0)-Number(v??0)}),r==="descending"&&i.reverse();const h=hi(e)?.name;if(h){const p=i.findIndex(g=>g.slug===h);p>-1&&i.unshift(i.splice(p,1)[0])}return i},Vr=nt({type:"list"}),ra=sn([di,Vn],([t,e],n)=>{n(t&&e?zo(e.name):[])});let Jk="";const Sw=sn([ra,Vr,Ut],([t,e],n)=>{const r=JSON.stringify({_listedEntries:t,_currentView:e});if(r===Jk)return;Jk=r,n([]);const i=ae(Vn);let o=[...t];if(!o.length||Zs(i,o[0]).length)return;e.sort&&(o=YX(o,i,e.sort)),e.filters&&(o=DX(o,i,e.filters));const s=zX(o,i,e.group);ln(ae(Sw),s)||n(s)});ra.subscribe(t=>{mc.set([]),ae(ft).devModeEnabled&&console.info("listedEntries",t)});Vn.subscribe(t=>{t&&ae(ft).devModeEnabled&&console.info("selectedCollection",t)});var JX=U("<!> <!>",1),XX=U('<div role="none" class="label svelte-cy8v6x"><!></div>'),ZX=U("<!> <!> <!>",1);const QX={hash:"svelte-cy8v6x",code:".label.svelte-cy8v6x .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}"};function eZ(t,e){le(e,!0),ke(t,QX);const n=()=>V(ra,"$listedEntries",a),r=()=>V(cn,"$isSmallScreen",a),i=()=>V(jo,"$isMediumScreen",a),o=()=>V(mc,"$selectedEntries",a),s=()=>V(Ut,"$appLocale",a),[a,c]=me(),u=d=>{mc.update(f=>{const h=f.indexOf(e.entry);return d&&h===-1&&f.push(e.entry),!d&&h>-1&&f.splice(h,1),f})};{let d=_(()=>n().indexOf(e.entry));zd(t,{get"aria-rowindex"(){return l(d)},onChange:f=>{u(f.detail.selected)},onclick:()=>{Ht(`/collections/${e.collection.name}/entries/${e.entry.subPath}`,{transitionType:"forwards"})},children:(f,h)=>{var p=ZX(),g=M(p);{var m=w=>{_i(w,{class:"checkbox",children:(E,k)=>{{let S=_(()=>o().includes(e.entry));Fd(E,{role:"none",tabindex:"-1",get checked(){return l(S)},onChange:({detail:{checked:C}})=>{u(C)}})}},$$slots:{default:!0}})};q(g,w=>{r()||i()||w(m)})}var v=j(g,2);{var b=w=>{_i(w,{class:"image",children:(E,k)=>{var S=X(),C=M(S);nn(C,()=>UP(e.collection,e.entry),null,(x,T)=>{var A=X(),P=M(A);{var L=I=>{{let N=_(()=>e.viewType==="list"?"icon":"tile");uw(I,{get src(){return l(T)},get variant(){return l(N)},cover:!0})}};q(P,I=>{l(T)&&I(L)})}$(x,A)}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.collection._thumbnailFieldNames.length&&w(b)})}var y=j(v,2);_i(y,{class:"title",children:(w,E)=>{var k=XX(),S=z(k);Cr(S,{lines:2,children:(C,x)=>{var T=JX(),A=M(T);er(A,s,I=>{var N=X(),D=M(N);gr(D,()=>zc(e.collection,e.entry,{useTemplate:!0,allowMarkdown:!0})),$(I,N)});var P=j(A,2);{var L=I=>{{let N=_(()=>hi(e.collection)?.icon);Je(I,{get name(){return l(N)},class:"home"})}};q(P,I=>{Fo(e.collection,e.entry)&&I(L)})}$(C,T)},$$slots:{default:!0}}),$(w,k)},$$slots:{default:!0}}),$(f,p)},$$slots:{default:!0}})}ce(),c()}var tZ=U("<!> <!>",1);function KP(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",s),r=()=>V(di,"$allEntries",s),i=()=>V(Ut,"$appLocale",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=R(e,"label",3,void 0),u=R(e,"keyShortcuts",3,void 0);const d=_(()=>!Op(n())),f=_(()=>r()&&n()?eM(n()):!1),h=_(()=>i()&&n()?hi(n())?.label:""),p=_(()=>l(f)?SC:Ze),g=(b=!1)=>{Ht(`/collections/${e.collectionName}/new`,{state:{index:b},transitionType:"forwards"})};var m=X(),v=M(m);{const b=k=>{Je(k,{name:"edit"})},y=k=>{var S=X(),C=M(S);{var x=T=>{ar(T,{children:(A,P)=>{var L=tZ(),I=M(L);{let D=_(()=>o()("entry"));gt(I,{get label(){return l(D)},onclick:()=>g()})}var N=j(I,2);gt(N,{get label(){return l(h)},onclick:()=>g(!0)}),$(A,L)},$$slots:{default:!0}})};q(C,T=>{l(f)&&T(x)})}$(k,S)};let w=_(()=>!c()),E=_(()=>o()("create_new_entry"));Hn(v,()=>l(p),(k,S)=>{S(k,{variant:"primary",get iconic(){return l(w)},get disabled(){return l(d)},get label(){return c()},get"aria-label"(){return l(E)},get keyShortcuts(){return u()},onclick:()=>g(),startIcon:b,popup:y,$$slots:{startIcon:!0,popup:!0}})})}$(t,m),ce(),a()}var nZ=U('<span role="none"> </span>'),rZ=U('<span role="none"> </span> <!>',1),iZ=U('<span role="none"> </span>');function oZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",a),r=()=>V(Vr,"$currentView",a),i=()=>V(Sw,"$entryGroups",a),o=()=>V(ue,"$_",a),s=()=>V(ra,"$listedEntries",a),[a,c]=me(),u=_(n),d=_(()=>r().type),f=_(()=>i().map(({entries:h})=>h).flat(1));{let h=_(()=>o()("entry_list"));dw(t,{get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{var E=X(),k=M(E);{var S=x=>{const T=_(()=>{const{defaultLocale:A}=l(u)._i18n;return{defaultLocale:A}});{let A=_(()=>o()("entries"));tf(x,{get viewType(){return l(d)},id:"entry-list",get"aria-label"(){return l(A)},get"aria-rowcount"(){return s().length},children:(P,L)=>{var I=X(),N=M(I);ot(N,1,i,({name:D,entries:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).entries;var Y=X(),O=M(Y);nn(O,Lt,null,F=>{{let K=_(()=>H()!=="*"?H():void 0);$C(F,{get label(){return l(K)},children:(J,Q)=>{{const oe=(ee,ne=Be)=>{var se=X(),fe=M(se);nn(fe,Lt,null,be=>{eZ(be,{get collection(){return l(u)},get entry(){return ne()},get viewType(){return l(d)}})}),$(ee,se)};let re=_(()=>W().filter(({locales:ee})=>!!(ee[l(T).defaultLocale]??Object.values(ee)[0])?.content));hl(J,{get items(){return l(re)},itemKey:"id",renderItem:oe,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),$(D,Y)}),$(P,I)},$$slots:{default:!0}})}},C=x=>{var T=X(),A=M(T);{var P=I=>{pr(I,{children:(N,D)=>{var B=nZ(),H=z(B);Z(W=>te(H,W),[()=>o()("no_entries_found")]),$(N,B)},$$slots:{default:!0}})},L=I=>{pr(I,{children:(N,D)=>{var B=rZ(),H=M(B),W=z(H),Y=j(H,2);{let O=_(()=>o()("create_new_entry"));KP(Y,{get collectionName(){return l(u).name},get label(){return l(O)}})}Z(O=>te(W,O),[()=>o()("no_entries_created")]),$(N,B)},$$slots:{default:!0}})};q(A,I=>{s().length?I(P):I(L,!1)},!0)}$(x,T)};q(k,x=>{l(f).length?x(S):x(C,!1)})}$(w,E)},y=w=>{pr(w,{children:(E,k)=>{var S=iZ(),C=z(S);Z(x=>te(C,x),[()=>o()("collection_not_found")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{l(u)?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}var sZ=U('<div role="none" class="label svelte-1nfjp1"><!> <!></div>'),aZ=U('<span role="none"> </span>');const lZ={hash:"svelte-1nfjp1",code:".label.svelte-1nfjp1 {display:flex;align-items:center;gap:16px;}.label.svelte-1nfjp1 .icon {display:flex;align-items:center;justify-content:center;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);}"};function cZ(t,e){le(e,!0),ke(t,lZ);const n=()=>V(Vn,"$selectedCollection",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>n()?.files.filter(Cp)??[]);{let a=_(()=>r()("file_list"));dw(t,{get"aria-label"(){return l(a)},children:(c,u)=>{var d=X(),f=M(d);{var h=g=>{{let m=_(()=>r()("files"));tf(g,{viewType:"list",get"aria-label"(){return l(m)},get"aria-rowcount"(){return l(s).length},children:(v,b)=>{hl(v,{get items(){return l(s)},itemKey:"name",renderItem:(w,E)=>{let k=()=>E?.().name,S=()=>E?.().label,C=()=>E?.().icon;var x=X(),T=M(x);nn(T,Lt,null,A=>{zd(A,{onclick:()=>{Ht(`/collections/${n()?.name}/entries/${k()}`,{transitionType:"forwards"})},children:(P,L)=>{_i(P,{class:"title",children:(I,N)=>{var D=sZ(),B=z(D);{var H=Y=>{Je(Y,{get name(){return C()}})};q(B,Y=>{C()&&Y(H)})}var W=j(B,2);Cr(W,{lines:2,children:(Y,O)=>{var F=Oe();Z(()=>te(F,S()||k())),$(Y,F)},$$slots:{default:!0}}),$(I,D)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(w,x)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},p=g=>{pr(g,{children:(m,v)=>{var b=aZ(),y=z(b);Z(w=>te(y,w),[()=>r()("no_files_in_collection")]),$(m,b)},$$slots:{default:!0}})};q(f,g=>{l(s)?.length?g(h):g(p,!1)})}$(c,d)},$$slots:{default:!0}})}ce(),o()}var uZ=U('<div class="wrapper svelte-w0jevb"><!></div>');const dZ={hash:"svelte-w0jevb",code:".wrapper.svelte-w0jevb {display:contents;}"};function fZ(t,e){le(e,!0),ke(t,dZ);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.file.name),s=_(()=>e.file.label),a=_(()=>e.file.icon);let c=ie(!1),u=ie(void 0);var d=uZ(),f=z(d);{const h=g=>{{let m=_(()=>l(a)||"edit_document");Je(g,{get name(){return l(m)}})}};let p=_(()=>l(s)||l(o));Sr(f,{get label(){return l(p)},onSelect:()=>{Ge(oi,n()("singleton_selected_announcement",{values:{file:l(s)||l(o)}}))},onclick:()=>{Ht(`/collections/_singletons/entries/${l(o)}`,{transitionType:"forwards"}),G(c,!1),l(u)?.querySelector('[role="option"]')?.classList.remove("focused")},get selected(){return l(c)},set selected(g){G(c,g,!0)},startIcon:h,$$slots:{startIcon:!0}})}bt(d,h=>G(u,h),()=>l(u)),$(t,d),ce(),i()}var hZ=U("<!> <!>",1);function GP(t,e){le(e,!0);const n=()=>V(ft,"$prefs",c),r=()=>V(wn,"$backend",c),i=()=>V(xh,"$isLastCommitPublished",c),o=()=>V(lw,"$skipCIConfigured",c),s=()=>V(cn,"$isSmallScreen",c),a=()=>V(ue,"$_",c),[c,u]=me(),d=_(()=>n().deployHookURL),f=_(()=>r()?.triggerDeployment),h=_(()=>(!!l(d)||typeof l(f)=="function")&&!i());let p=ie("info"),g=ie(!1);const m=async()=>{G(p,"info"),G(g,!0);try{const{ok:w,status:E}=l(d)?await fetch(l(d),{method:"POST",mode:"no-cors"}):await l(f)?.()??{};if(!w&&E!==0)throw new Error(`Webhook returned ${E} error`);Ge(xh,!0)}catch(w){G(p,"error"),G(g,!0),console.error(w)}};var v=X(),b=M(v);{var y=w=>{var E=hZ(),k=M(E);{let C=_(()=>s()?"small":"medium"),x=_(()=>a()("publish_changes")),T=_(()=>!l(h));Ze(k,{variant:"secondary",get size(){return l(C)},get label(){return l(x)},get disabled(){return l(T)},onclick:()=>m()})}var S=j(k,2);Zn(S,{get show(){return l(g)},set show(C){G(g,C,!0)},children:(C,x)=>{Rn(C,{get status(){return l(p)},children:(T,A)=>{var P=Oe();Z(L=>te(P,L),[()=>a()(l(p)==="error"?"publishing_changes_failed":"publishing_changes")]),$(T,P)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(w,E)};q(b,w=>{o()&&w(y)})}$(t,v),ce(),u()}var pZ=U("<header><h2> </h2> <!></header> <!>",1),gZ=U('<span class="count"> </span>'),mZ=U('<span class="count"> </span>'),vZ=U("<!> <!>",1),bZ=U('<div role="none" class="primary-sidebar"><!> <!></div>');function _Z(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",c),r=()=>V($t,"$siteConfig",c),i=()=>V(cn,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Vn,"$selectedCollection",c),a=()=>V(di,"$allEntries",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>r()?.collections?.filter(({hide:b})=>!b)??[]),h=_(()=>r()?.singletons??[]);var p=bZ(),g=z(p);{var m=b=>{var y=pZ(),w=M(y),E=z(w),k=z(E),S=j(E,2);GP(S,{});var C=j(w,2);ag(C,{onclick:x=>{x.preventDefault(),Ht("/search")}}),Z(x=>te(k,x),[()=>o()("contents")]),$(b,y)};q(g,b=>{i()&&b(m)})}var v=j(g,2);{let b=_(()=>o()("collection_list"));Gc(v,{get"aria-label"(){return l(b)},"aria-controls":"collection-container",children:(y,w)=>{var E=vZ(),k=M(E);{var S=T=>{{let A=_(()=>o()("collections"));Ca(T,{get label(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);ot(N,19,()=>l(f),(D,B)=>D.name??B,(D,B)=>{var H=X(),W=M(H);nn(W,Lt,null,Y=>{var O=X(),F=M(O);{var K=Q=>{const oe=_(()=>{const{name:re,label:ee,icon:ne}=l(B);return{name:re,label:ee,icon:ne}});{const re=fe=>{{let be=_(()=>l(oe).icon||"bookmark_manager");Je(fe,{get name(){return l(be)}})}},ee=fe=>{var be=X(),pe=M(be);er(pe,a,he=>{const ge=_(()=>("files"in l(B)?l(B).files:zo(l(oe).name)).length);var ve=gZ(),_e=z(ve);Z(($e,Ce)=>{Se(ve,"aria-label",`(${$e??""})`),te(_e,Ce)},[()=>o()(l(ge)>1?"many_entries":l(ge)===1?"one_entry":"no_entries",{values:{count:l(ge)}}),()=>l(d).format(l(ge))]),$(he,ve)}),$(fe,be)};let ne=_(()=>l(oe).label||l(oe).name),se=_(()=>i()?!1:s()?.name===l(oe).name);Sr(Q,{get label(){return l(ne)},get selected(){return l(se)},onSelect:()=>{Ht(`/collections/${l(oe).name}`,{transitionType:"forwards"})},startIcon:re,endIcon:ee,$$slots:{startIcon:!0,endIcon:!0}})}},J=Q=>{var oe=X(),re=M(oe);{var ee=ne=>{Jr(ne,{})};q(re,ne=>{l(B).divider&&ne(ee)},!0)}$(Q,oe)};q(F,Q=>{"divider"in l(B)?Q(J,!1):Q(K)})}$(Y,O)}),$(D,H)}),$(P,I)},$$slots:{default:!0}})}};q(k,T=>{l(f).length&&T(S)})}var C=j(k,2);{var x=T=>{var A=X(),P=M(A);{var L=N=>{{let D=_(()=>o()("files"));Ca(N,{get label(){return l(D)},children:(B,H)=>{var W=X(),Y=M(W);ot(Y,19,()=>l(h),(O,F)=>O.name??F,(O,F)=>{var K=X(),J=M(K);nn(J,Lt,null,Q=>{var oe=X(),re=M(oe);{var ee=se=>{fZ(se,{get file(){return l(F)}})},ne=se=>{var fe=X(),be=M(fe);{var pe=he=>{Jr(he,{})};q(be,he=>{l(F).divider&&he(pe)},!0)}$(se,fe)};q(re,se=>{"divider"in l(F)?se(ne,!1):se(ee)})}$(Q,oe)}),$(O,K)}),$(B,W)},$$slots:{default:!0}})}},I=N=>{const D=_(()=>l(h).length);{let B=_(()=>o()("collections"));Ca(N,{get label(){return l(B)},children:(H,W)=>{{const Y=J=>{Je(J,{name:"bookmark_manager"})},O=J=>{var Q=mZ(),oe=z(Q);Z((re,ee)=>{Se(Q,"aria-label",`(${re??""})`),te(oe,ee)},[()=>o()(l(D)>1?"many_entries":l(D)===1?"one_entry":"no_entries",{values:{count:l(D)}}),()=>l(d).format(l(D))]),$(J,Q)};let F=_(()=>o()("files")),K=_(()=>s()?.name==="_singletons");Sr(H,{get label(){return l(F)},get selected(){return l(K)},onSelect:()=>{Ht("/collections/_singletons",{transitionType:"forwards"})},startIcon:Y,endIcon:O,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};q(P,N=>{i()||l(f).length?N(L):N(I,!1)})}$(T,A)};q(C,T=>{l(h).length&&T(x)})}$(y,E)},$$slots:{default:!0}})}$(t,p),ce(),u()}function yZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",s),r=()=>V(mc,"$selectedEntries",s),i=()=>V(ue,"$_",s),o=()=>V(ra,"$listedEntries",s),[s,a]=me();let c=R(e,"open",15,!1);const u=_(()=>{const d=n()?.name;return r().length&&d&&eo({collectionName:d})?.entryRelative?r().map(f=>qP({entry:f,collectionName:d,relative:!0})).flat(1):[]});{let d=_(()=>r().length===1?i()("delete_entry"):i()("delete_entries")),f=_(()=>i()("delete"));Kc(t,{get title(){return l(d)},get okLabel(){return l(f)},onOk:()=>{jP(r().map(({id:h})=>h),l(u).map(({path:h})=>h))},get open(){return c()},set open(h){c(h)},children:(h,p)=>{var g=X(),m=M(g);{var v=y=>{var w=Oe();Z(E=>te(w,E),[()=>i()(l(u).length?"confirm_deleting_selected_entry_with_assets":"confirm_deleting_selected_entry")]),$(y,w)},b=y=>{var w=X(),E=M(w);{var k=C=>{var x=Oe();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_all_entries_with_assets":"confirm_deleting_all_entries")]),$(C,x)},S=C=>{var x=Oe();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_selected_entries_with_assets":"confirm_deleting_selected_entries",{values:{count:r().length}})]),$(C,x)};q(E,C=>{r().length===o().length?C(k):C(S,!1)},!0)}$(y,w)};q(m,y=>{r().length===1?y(v):y(b,!1)})}$(h,g)},$$slots:{default:!0}})}ce(),a()}var wZ=U('<div role="none" class="description svelte-83jnuc"><!></div>'),xZ=U("<!> <!>",1),kZ=U('<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>',1),SZ=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),EZ=U("<!> <!>",1),$Z=U("<!> <!>",1);const TZ={hash:"svelte-83jnuc",code:"h2.svelte-83jnuc {flex:none !important;}.description.svelte-83jnuc {flex:auto;font-size:var(--sui-font-size-small);opacity:0.8;}"};function CZ(t,e){le(e,!0),ke(t,TZ);const n=()=>V(Vn,"$selectedCollection",c),r=()=>V(Ut,"$appLocale",c),i=()=>V(ue,"$_",c),o=()=>V(cn,"$isSmallScreen",c),s=()=>V(mc,"$selectedEntries",c),a=()=>V(ra,"$listedEntries",c),[c,u]=me();let d=ie(!1);const f=T=>Dr.sanitize(Mt.parseInline(T),{ALLOWED_TAGS:["strong","em","del","code","a"],ALLOWED_ATTR:["href"]}),h=_(()=>n()?.name??""),p=_(()=>n()?.description),g=_(()=>!Op(n())),m=_(()=>r()&&n()?cs(n()):l(h)),v=_(()=>{const T=n();return T?._type==="entry"?{isEntryCollection:!0,canCreate:T.create??!1,canDelete:T.delete??!0,limit:T.limit??1/0}:{isEntryCollection:!1,canCreate:!1,canDelete:!1,limit:1/0}}),b=_(()=>l(v).isEntryCollection),y=_(()=>l(v).canCreate),w=_(()=>l(v).canDelete),E=_(()=>l(v).limit);var k=$Z(),S=M(k);{var C=T=>{var A=EZ(),P=M(A);{let N=_(()=>i()("collection"));Ei(P,{variant:"primary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=kZ(),W=M(H);{var Y=ee=>{{let ne=_(()=>i()("back_to_collection_list"));nl(ee,{get"aria-label"(){return l(ne)},onclick:()=>{Vs("/collections")}})}};q(W,ee=>{o()&&ee(Y)})}var O=j(W,2),F=z(O),K=j(O,2);{var J=ee=>{Xr(ee,{flex:!0})},Q=ee=>{var ne=wZ(),se=z(ne);Cr(se,{children:(fe,be)=>{var pe=X(),he=M(pe);gr(he,()=>f(l(p)||"")),$(fe,pe)},$$slots:{default:!0}}),$(ee,ne)};q(K,ee=>{o()?ee(J):ee(Q,!1)})}var oe=j(K,2);{var re=ee=>{var ne=xZ(),se=M(ne);{var fe=pe=>{{let he=_(()=>i()("delete")),ge=_(()=>s().length===1?i()("delete_selected_entry"):i()("delete_selected_entries")),ve=_(()=>!s().length||!l(w));Ze(pe,{variant:"ghost",get label(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return l(ve)},onclick:()=>{G(d,!0)}})}};q(se,pe=>{o()||pe(fe)})}var be=j(se,2);xC(be,{children:(pe,he)=>{var ge=X(),ve=M(ge);{var _e=$e=>{{let Ce=_(()=>o()?void 0:i()("create"));KP($e,{get collectionName(){return l(h)},get label(){return l(Ce)},keyShortcuts:"Accel+E"})}};q(ve,$e=>{(!o()||a().length&&!l(g))&&$e(_e)})}$(pe,ge)},$$slots:{default:!0}}),$(ee,ne)};q(oe,ee=>{l(b)&&ee(re)})}Z(()=>te(F,l(m))),$(D,H)},$$slots:{default:!0}})}var L=j(P,2);{var I=N=>{var D=SZ(),B=M(D);Lc(B,()=>({"--sui-infobar-border-width":"1px 0","--sui-infobar-message-justify-content":"center"})),Fp(B.lastChild,{dismissible:!1,children:(H,W)=>{var Y=X(),O=M(Y);{var F=J=>{var Q=Oe();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_admin")]),$(J,Q)},K=J=>{var Q=Oe();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_limit",{values:{limit:l(E)}})]),$(J,Q)};q(O,J=>{l(y)?J(K,!1):J(F)})}$(H,Y)},$$slots:{default:!0}}),$(N,D)};q(L,N=>{l(b)&&l(g)&&N(I)})}$(T,A)};q(S,T=>{n()&&T(C)})}var x=j(S,2);yZ(x,{get open(){return l(d)},set open(T){G(d,T,!0)}}),$(t,k),ce(),u()}function AZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",a),r=()=>V(Zd,"$isLargeScreen",a),i=()=>V(Vr,"$currentView",a),o=()=>V(ue,"$_",a),s=()=>V(Mn,"$allAssets",a),[a,c]=me(),u=_(()=>eo({collectionName:n()?.name})),d=_(()=>l(u)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),f=_(()=>l(d).internalPath),h=_(()=>l(d).entryRelative),p=_(()=>l(d).hasTemplateTags),g=_(()=>l(h)||l(p));var m=X(),v=M(m);{var b=y=>{{let w=_(()=>o()("collection_assets"));Ao(y,{id:"collection-assets",class:"secondary-sidebar",get"aria-label"(){return l(w)},children:(E,k)=>{ef(E,{get disabled(){return l(g)},multiple:!0,onDrop:({files:S})=>{Ge(Ki,{folder:l(u),files:S})},children:(S,C)=>{{let x=_(()=>s().filter(T=>ln(T.folder,l(u))));gP(S,{get assets(){return l(x)},onSelect:({asset:T})=>{Ht(`/assets/${T.path}`,{transitionType:"forwards"})}})}},$$slots:{default:!0}})},$$slots:{default:!0}})}};q(v,y=>{l(f)!==void 0&&r()&&i().showMedia&&y(b)})}$(t,m),ce(),c()}var PZ=U("<!> <!>",1);function LZ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"noneLabel",3,""),u=R(e,"groups",19,()=>[]);{const d=h=>{{let p=_(()=>n()("grouping_options"));ar(h,{get"aria-label"(){return l(p)},get"aria-controls"(){return e["aria-controls"]},children:(g,m)=>{var v=PZ(),b=M(v);{let w=_(()=>c()||n()("sort_keys.none")),E=_(()=>!r().group);od(b,{get label(){return l(w)},get checked(){return l(E)},onSelect:()=>{e.currentView.update(k=>({...k,group:null}))}})}var y=j(b,2);ot(y,17,u,vr,(w,E)=>{let k=()=>l(E).label,S=()=>l(E).field,C=()=>l(E).pattern;{let x=_(()=>r().group?.field===S()&&String(r().group.pattern)===String(C()));od(w,{get label(){return k()},get checked(){return l(x)},onSelect:()=>{e.currentView.update(T=>({...T,group:{field:S(),pattern:C()}}))}})}}),$(g,v)},$$slots:{default:!0}})}};let f=_(()=>s()||n()("group"));Mr(t,{variant:"ghost",get label(){return l(f)},get disabled(){return a()},popupPosition:"bottom-right",popup:d,$$slots:{popup:!0}})}ce(),o()}var NZ=U("<!> <!>",1),IZ=U("<!> <!> <!> <!> <!> <!> <!>",1);function OZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",h),r=()=>V(ra,"$listedEntries",h),i=()=>V(ue,"$_",h),o=()=>V(cn,"$isSmallScreen",h),s=()=>V(jo,"$isMediumScreen",h),a=()=>V(Sw,"$entryGroups",h),c=()=>V(GX,"$sortKeys",h),u=()=>V(MX,"$viewFilters",h),d=()=>V(jX,"$viewGroups",h),f=()=>V(Vr,"$currentView",h),[h,p]=me(),g=_(()=>n()?._type==="entry"?n():void 0),m=_(()=>l(g)?.name),v=_(()=>l(g)?._thumbnailFieldNames??[]),b=_(()=>!!r().length),y=_(()=>r().length>1);var w=X(),E=M(w);{var k=S=>{{let C=_(()=>i()("entry_list"));Ei(S,{variant:"secondary",get"aria-label"(){return l(C)},children:(x,T)=>{var A=IZ(),P=M(A);{var L=J=>{{let Q=_(()=>a().map(({entries:oe})=>oe).flat(1));Y2(J,{get allItems(){return l(Q)},get selectedItems(){return mc}})}};q(P,J=>{o()||s()||J(L)})}var I=j(P,2);Xr(I,{flex:!0});var N=j(I,2);{let J=_(()=>!l(y)||!c().length);J2(N,{get disabled(){return l(J)},get currentView(){return Vr},get sortKeys(){return c()},get collectionName(){return l(m)},"aria-controls":"entry-list"})}var D=j(N,2);{var B=J=>{{let Q=_(()=>!l(y));W2(J,{get disabled(){return l(Q)},get currentView(){return Vr},get filters(){return u()},multiple:!0,"aria-controls":"entry-list"})}};q(D,J=>{u()?.length&&J(B)})}var H=j(D,2);{var W=J=>{{let Q=_(()=>!l(y));LZ(J,{get disabled(){return l(Q)},get currentView(){return Vr},get groups(){return d()},"aria-controls":"entry-list"})}};q(H,J=>{d()?.length&&J(W)})}var Y=j(H,2);{var O=J=>{{let Q=_(()=>!l(b));fw(J,{get disabled(){return l(Q)},get currentView(){return Vr},"aria-controls":"entry-list"})}};q(Y,J=>{l(v).length&&J(O)})}var F=j(Y,2);{var K=J=>{var Q=NZ(),oe=M(Q);Jr(oe,{orientation:"vertical"});var re=j(oe,2);{const ee=be=>{Je(be,{name:"photo_library"})};let ne=_(()=>!l(b)||!eo({collectionName:l(m)})),se=_(()=>!!f().showMedia),fe=_(()=>i()(f().showMedia?"hide_assets":"show_assets"));Ze(re,{variant:"ghost",iconic:!0,get disabled(){return l(ne)},get pressed(){return l(se)},"aria-controls":"collection-assets",get"aria-expanded"(){return f().showMedia},get"aria-label"(){return l(fe)},onclick:()=>{Vr.update(be=>({...be,showMedia:!f().showMedia}))},startIcon:ee,$$slots:{startIcon:!0}})}$(J,Q)};q(F,J=>{o()||s()||J(K)})}$(x,A)},$$slots:{default:!0}})}};q(E,S=>{l(g)&&S(k)})}$(t,w),ce(),p()}var RZ=U("<!> <!> <!> <!>",1);function DZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",c),r=()=>V(cn,"$isSmallScreen",c),i=()=>V(ue,"$_",c),o=()=>V(ra,"$listedEntries",c),s=()=>V(Ut,"$appLocale",c),a=()=>V(Hu,"$contentUpdatesToast",c),[c,u]=me(),d=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/;let f=ie(!1);const h=_(()=>"files"in(n()??{})?cZ:oZ),p=()=>{const{path:w,params:E}=Oo(),k=w.match(d);if(G(f,!1),n()?.name==="_singletons"&&Qs().length&&Ge(Vn,void 0),!k?.groups)return;const{_collectionName:S,routeType:C,subPath:x}=k.groups;if(!S){if(r())Ge(Vn,void 0),Ge(oi,i()("viewing_collection_list")),G(f,!0);else{const I=n()||Aj()||pC();Ht(`/collections/${I?.name}`,{replaceState:!0})}return}const T=Qr(S);if(!T||T.hide?Ge(Vn,void 0):n()?.name!==T.name&&Ge(Vn,T),!T||!n()){Ge(oi,i()("collection_not_found"));return}const{name:A}=n(),P=cs(n()),L="_fileMap"in n()?n()._fileMap:void 0;if(!C){const I=o().length;Ge(oi,i()(I>1?"viewing_x_collection_many_entries":I===1?"viewing_x_collection_one_entry":"viewing_x_collection_no_entries",{values:{collection:P,count:I}}));return}if(Ge(ll,!0),L){if(C==="entries"&&x){const I=A_(A,x),N=L[x];Nu(I?{collection:T,collectionFile:N,originalEntry:I}:{collection:T,collectionFile:N,originalEntry:{slug:N.name,locales:Object.fromEntries(N._i18n.initialLocales.map(D=>[D,{}]))}}),Ge(oi,i()(`edit_${T._type}_announcement`,{values:{collection:P,file:Cd(N)}}))}}else if(C==="new"&&!x&&(Nu({collection:T,dynamicValues:E,isIndexFile:!!window.history.state?.index}),Ge(oi,i()("create_entry_announcement",{values:{collection:P}}))),C==="entries"&&x){const I=o().find(N=>N.subPath===x);I&&s()&&(Nu({collection:T,originalEntry:I}),Ge(oi,i()("edit_entry_announcement",{values:{collection:P,entry:zc(n(),I)}})))}};jt(()=>{p()});var g=RZ();Hr("hashchange",Fa,w=>{aw(w,p,d)});var m=M(g);{const w=S=>{var C=X(),x=M(C);{var T=A=>{_Z(A,{})};q(x,A=>{(!r()||l(f))&&A(T)})}$(S,C)},E=S=>{var C=X(),x=M(C);{var T=A=>{{const P=H=>{CZ(H,{})},L=H=>{var W=X(),Y=M(W);{var O=F=>{OZ(F,{})};q(Y,F=>{n()?._type==="entry"&&o().length&&F(O)})}$(H,W)},I=H=>{var W=X(),Y=M(W);Hn(Y,()=>l(h),(O,F)=>{F(O,{})}),$(H,W)},N=H=>{AZ(H,{})};let D=_(()=>i()("x_collection",{values:{collection:s()&&n()?cs(n()):""}})),B=_(()=>n()?.description);nf(A,{get"aria-label"(){return l(D)},get"aria-description"(){return l(B)},primaryToolbar:P,secondaryToolbar:L,mainContent:I,secondarySidebar:N,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(x,A=>{(!r()||!l(f))&&A(T)})}$(S,C)};let k=_(()=>i()("content_library"));_l(m,{get"aria-label"(){return l(k)},primarySidebar:w,main:E,$$slots:{primarySidebar:!0,main:!0}})}var v=j(m,2);RX(v,{});var b=j(v,2);Zn(b,{get show(){return a().saved},set show(w){yt(Hu,Ee(a).saved=w,Ee(a))},children:(w,E)=>{Rn(w,{status:"success",children:(k,S)=>{var C=Oe();Z(x=>te(C,x),[()=>i()(a().published?"entry_saved_and_published":"entry_saved")]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}});var y=j(b,2);Zn(y,{get show(){return a().deleted},set show(w){yt(Hu,Ee(a).deleted=w,Ee(a))},children:(w,E)=>{Rn(w,{status:"success",children:(k,S)=>{var C=Oe();Z(x=>te(C,x),[()=>i()(a().count===1?"entry_deleted":"entries_deleted",{values:{count:a().count}})]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,g),ce(),u()}function WP(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();{let s=_(()=>n()("prefs.i18n.default_translator.select_service"));pl(t,{get"aria-label"(){return l(s)},get value(){return r().defaultTranslationService},onChange:a=>{Ge(ft,{...r(),defaultTranslationService:a.detail.value})},children:(a,c)=>{var u=X(),d=M(u);ot(d,17,()=>Object.entries(bw),([f,{serviceLabel:h}])=>f,(f,h)=>{var p=_(()=>So(l(h),2));let g=()=>l(p)[0],m=()=>l(p)[1].serviceLabel;{let v=_(()=>g()===r().defaultTranslationService);Sr(f,{get label(){return m()},get value(){return g()},get selected(){return l(v)}})}}),$(a,u)},$$slots:{default:!0}})}ce(),o()}var MZ=U("<!> <!> <!>",1);function FZ(t,e){le(e,!0);const n=()=>V(cg,"$translator",a),r=()=>V(ll,"$showContentOverlay",a),i=()=>V(xu,"$translatorApiKeyDialogState",a),o=()=>V(ue,"$_",a),s=()=>V(ft,"$prefs",a),[a,c]=me(),u=_(()=>n().serviceId),d=_(()=>n().apiLabel),f=_(()=>n().developerURL),h=_(()=>n().apiKeyURL),p=_(()=>n().apiKeyPattern);De(()=>{!r()&&i().show&&(yt(xu,Ee(i).show=!1,Ee(i)),i().resolve?.())});{let g=_(()=>o()(i().multiple?"translate_fields":"translate_field")),m=_(()=>({spellcheck:!1,monospace:!0,"aria-label":o()("api_key")}));EC(t,{get title(){return l(g)},showOk:!1,get textboxAttrs(){return l(m)},oninput:v=>{const b=v.target.value.trim();l(p)?.test(b)&&(yt(ft,Ee(s).apiKeys??={},Ee(s)),yt(ft,Ee(s).apiKeys[l(u)]=b,Ee(s)),yt(xu,Ee(i).show=!1,Ee(i)),i().resolve?.(b))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(v){yt(xu,Ee(i).show=v,Ee(i))},children:(v,b)=>{var y=MZ(),w=M(y);WP(w,{});var E=j(w,2);Xr(E,{});var k=j(E,2);gr(k,()=>Dr.sanitize(o()("prefs.i18n.translator.description",{values:{service:l(d),homeHref:`href="${l(f)}"`,apiKeyHref:`href="${l(h)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(v,y)},$$slots:{default:!0}})}ce(),c()}function zZ(t,e){le(e,!0);const n=()=>V(C_,"$entryParseErrors",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!!n().length);Zn(t,{get show(){return l(s)},set show(a){G(s,a,!0)},children:(a,c)=>{Rn(a,{status:"error",children:(u,d)=>{var f=Oe();Z(h=>te(f,h),[()=>r()(n().length===1?"entry_parse_error":"entry_parse_errors")]),$(u,f)},$$slots:{default:!0}})},$$slots:{default:!0}}),ce(),o()}const YP=sn([Zd,ru,wn,Gn],([t,e,n,r])=>t&&e&&!!n?.isGit&&!!r?.token),Zh=nt(!1);var jZ=U(" <!> <!>",1),BZ=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1);function UZ(t,e){le(e,!0);const n=()=>V(wn,"$backend",i),r=()=>V(ue,"$_",i),[i,o]=me();let s,a=ie(!1);De(()=>{const{databaseName:d}=n()?.repository??{};d&&(s=new Lo(d,"ui-settings"),(async()=>{const f=await s.get("onboarding")??{};f.mobileCta||G(a,!0),await s.set("onboarding",{...f,mobileCta:!0})})())});var c=BZ(),u=M(c);Lc(u,()=>({"--sui-infobar-message-justify-content":"center"})),Fp(u.lastChild,{get show(){return l(a)},dismissible:!1,children:(d,f)=>{var h=jZ(),p=M(h),g=j(p);{let v=_(()=>r()("mobile_promo_button"));Ze(g,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1),Ge(Zh,!0)}})}var m=j(g,2);{let v=_(()=>r()("later"));Ze(m,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1)}})}Z(v=>te(p,`${v??""} `),[()=>r()("mobile_promo_title")]),$(d,h)},$$slots:{default:!0}}),$(t,c),ce(),o()}var qZ=U('<div role="none" class="wrapper svelte-t2r4ty"><!></div>');const VZ={hash:"svelte-t2r4ty",code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
|
|
650
|
+
}`};function DX(t,e){le(e,!0),ke(t,RX);const n=()=>V(We,"$entryDraft",f),r=()=>V(Li,"$entryEditorSettings",f),i=()=>V(sa,"$editorLeftPane",f),o=()=>V(fo,"$editorRightPane",f),s=()=>V(cn,"$isSmallScreen",f),a=()=>V(jo,"$isMediumScreen",f),c=()=>V(ll,"$showContentOverlay",f),u=()=>V(ue,"$_",f),d=()=>V(ov,"$showDuplicateToast",f),[f,h]=me();let p=!1,g=ie(!0),m=ie(void 0),v=ie(void 0),b=ie(void 0);const y=_(()=>n()?.isNew??!0),w=_(()=>n()?.collection),E=_(()=>l(w)?._type==="entry"?l(w):void 0),k=_(()=>n()?.collectionFile),S=_(()=>r()??{}),C=_(()=>l(S).showPreview),x=_(()=>(l(k)??l(w))?._i18n??so),T=_(()=>l(x).i18nEnabled),A=_(()=>l(x).allLocales),P=_(()=>l(x).defaultLocale),L=_(()=>n()?.canPreview??!0),I=_(()=>l(k)?.name?[l(w)?.name,l(k).name].join("|"):l(w)?.name),N=_(()=>l(E)?.create??!1),D=_(()=>l(E)?.limit??1/0),B=_(()=>!Op(l(w))),H=async()=>{const[re,ee]=r()?.paneStates?.[l(I)??""]??[];return p||!re||!ee||re.locale&&!l(A).includes(re.locale)||ee.locale&&!l(A).includes(ee.locale)||(!l(C)||!l(L))&&(re.mode==="preview"||ee.mode==="preview")?!1:(p=!0,await Sa(),Ge(sa,re),Ge(fo,ee),await Sa(),p=!1,(s()||a())&&Ge(fo,null),!0)},W=async()=>{if(n()&&!await H())if(Ge(sa,{mode:"edit",locale:i()?.locale??l(P)}),s()||a())Ge(fo,null);else if(!l(C)||!l(L)){const re=l(T)?l(A).filter(ee=>ee!==i()?.locale):[];Ge(fo,re.length?{mode:"edit",locale:re[0]}:null)}else Ge(fo,{mode:"preview",locale:i().locale})},Y=()=>{!l(w)||p||!i()||!o()||!l(I)||Li.update((re={})=>({...re,paneStates:{...re.paneStates,[l(I)]:[i(),o()]}}))},O=async()=>{await Sa(),l(m)&&(l(m).tabIndex=0,l(m).focus())};jt(()=>{l(m)?.addEventListener("transitionend",()=>{c()||(G(g,!0),Ge(We,null))})}),De(()=>{l(I)&&(Ge(sa,null),Ge(fo,null))}),De(()=>{l(C),l(L),s(),a(),Ee(()=>{W()})}),De(()=>{i(),o(),Y()}),De(()=>{l(m)&&(c()?l(g)&&(G(g,!1),W(),O(),XH()):JH())});var F=OX(),K=M(F),J=z(K);er(J,()=>n()?.createdAt,re=>{var ee=IX(),ne=M(ee);{let pe=_(()=>l(y)&&l(B));TX(ne,{get disabled(){return l(pe)}})}var se=j(ne,2);{var fe=pe=>{},be=pe=>{var he=X(),ge=M(he);{var ve=$e=>{pr($e,{children:(Ce,Re)=>{var He=CX(),Ye=M(He),Ue=z(Ye);{var Te=we=>{var Pe=Oe();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_admin")]),$(we,Pe)},Fe=we=>{var Pe=Oe();Z(ye=>te(Pe,ye),[()=>u()("creating_entries_disabled_by_limit",{values:{limit:l(D)}})]),$(we,Pe)};q(Ue,we=>{l(N)?we(Fe,!1):we(Te)})}var Ie=j(Ye,2),Ae=z(Ie);Ze(Ae,{variant:"primary",onclick:()=>{Ht(`/collection/${l(w)?.name}`,{replaceState:!0,transitionType:"backwards"})},children:(we,Pe)=>{var ye=Oe();Z(it=>te(ye,it),[()=>u()("back_to_collection")]),$(we,ye)},$$slots:{default:!0}}),$(Ce,He)},$$slots:{default:!0}})},_e=$e=>{var Ce=NX(),Re=z(Ce);{var He=Ye=>{var Ue=LX(),Te=M(Ue);{var Fe=we=>{const Pe=_(()=>{const{locale:ye,mode:it}=i()??{};return{locale:ye,mode:it}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Fi(l(Pe).locale)}}));Ao(we,{class:"pane",get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(it,Qe)=>{var Le=AX(),ze=M(Le);Vk(ze,{id:"left-pane-header",get thisPane(){return sa},get thatPane(){return fo}});var Xe=j(ze,2);Uk(Xe,{id:"left-pane-body",get thisPane(){return sa},get thisPaneContentArea(){return l(v)},set thisPaneContentArea(st){G(v,st,!0)},get thatPaneContentArea(){return l(b)},set thatPaneContentArea(st){G(b,st,!0)}}),$(it,Le)},$$slots:{default:!0}})}};q(Te,we=>{i()&&we(Fe)})}var Ie=j(Te,2);{var Ae=we=>{const Pe=_(()=>{const{locale:ye,mode:it}=o()??{};return{locale:ye,mode:it}});{let ye=_(()=>u()(l(Pe).mode==="edit"?"edit_x_locale":"preview_x_locale",{values:{locale:Fi(l(Pe).locale)}}));Ao(we,{get"aria-label"(){return l(ye)},get"data-locale"(){return l(Pe).locale},get"data-mode"(){return l(Pe).mode},children:(it,Qe)=>{var Le=PX(),ze=M(Le);Vk(ze,{id:"right-pane-header",get thisPane(){return fo},get thatPane(){return sa}});var Xe=j(ze,2);Uk(Xe,{id:"right-pane-body",get thisPane(){return fo},get thisPaneContentArea(){return l(b)},set thisPaneContentArea(st){G(b,st,!0)},get thatPaneContentArea(){return l(v)},set thatPaneContentArea(st){G(v,st,!0)}}),$(it,Le)},$$slots:{default:!0}})}};q(Ie,we=>{o()&&we(Ae)})}$(Ye,Ue)};q(Re,Ye=>{l(w)&&Ye(He)})}$($e,Ce)};q(ge,$e=>{l(y)&&l(B)?$e(ve):$e(_e,!1)},!0)}$(pe,he)};q(se,pe=>{n()?pe(be,!1):pe(fe)})}$(re,ee)}),bt(K,re=>G(m,re),()=>l(m));var Q=j(K,2);QH(Q,{});var oe=j(Q,2);Zn(oe,{get show(){return Wb(),d()},set show(re){Ge(ov,re)},children:(re,ee)=>{Rn(re,{status:"success",children:(ne,se)=>{var fe=Oe();Z(be=>te(fe,be),[()=>u()("entry_duplicated")]),$(ne,fe)},$$slots:{default:!0}})},$$slots:{default:!0}}),Z(re=>{Se(K,"hidden",l(g)),K.inert=!c(),Se(K,"aria-label",re)},[()=>u()("content_editor")]),$(t,F),ce(),h()}const VP=t=>{if(Array.isArray(t))return{options:t};if(Yt(t)){const{filters:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},MX=(t,e,n)=>{const{name:r,view_filters:i=[],_i18n:{defaultLocale:o}}=e,{options:s}=VP(i),a=n.filter(({field:c,pattern:u})=>c!==void 0&&u!==void 0&&s.some(d=>d.field===c&&String(d.pattern)===String(u)));return t.filter(c=>a.every(({field:u,pattern:d})=>{const f={entry:c,locale:o,collectionName:r,key:u},h=ed({...f,resolveRef:!1}),p=ed({...f}),g=qc(d);return h===void 0||p===void 0?!1:g?g.test(String(h))||g.test(String(p)):h===d||p===d}))},FX=sn([Vn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=VP(t.view_filters);e(n),Vr.update(i=>({...i,filters:i.filters??(r?[r]:void 0)}))}),zX=t=>{if(Array.isArray(t))return{options:t};if(Yt(t)){const{groups:e,default:n}=t;if(Array.isArray(e)){const r=n?e.find(({name:i})=>i===n):void 0;return{options:e,default:r?{field:r.field,pattern:r.pattern}:void 0}}}return{options:[]}},jX=(t,e,n)=>{const{field:r,pattern:i}=n??{field:"",pattern:void 0};if(!r)return t.length?[{name:"*",entries:t}]:[];const{name:o,_i18n:{defaultLocale:s}}=e,a=ae(Vr).sort,c=qc(i),u={},d=ae(ue)("other");t.forEach(h=>{const p=ed({entry:h,locale:s,collectionName:o,key:r}),g=p===void 0?d:c?String(p).match(c)?.[0]??d:String(p);g in u||(u[g]=[]),u[g].push(h)});const f=Object.entries(u).map(([h,p])=>({name:h,entries:p})).sort(({name:h},{name:p})=>xi(h,p));return a?.key===r&&a.order==="descending"&&f.reverse(),f},BX=sn([Vn],([t],e)=>{if(!t||!("folder"in t)){e([]);return}const{options:n,default:r}=zX(t.view_groups);e(n),Vr.update(i=>({...i,group:i.group===void 0?r:i.group}))}),Ul=nt(),UX=async({repository:t})=>{const{databaseName:e}=t??{},n=e?new Lo(e,"ui-settings"):null,r="contents-view";Ul.set(await n?.get(r)??{}),Ul.subscribe(i=>{(async()=>{try{ln(i,await n?.get(r))||await n?.set(r,i)}catch{}})()}),Vr.subscribe(i=>{const{name:o}=ae(Vn)??{},s=ae(Ul)?.[o??""]??{};o&&!ln(i,s)&&Ul.update(a=>({...a,[o]:i}))})};wn.subscribe(t=>{t&&!ae(Ul)&&UX(t)});const Gk=["title","name","date","author","description"],Lb={slug:String,commit_author:String,commit_date:Date},HP=Object.keys(Lb),Wk=t=>Array.isArray(t)&&t.every(e=>typeof e=="string"),qX=t=>{if(Wk(t))return{keys:t};if(Yt(t)){const{fields:e,default:n}=t;return Wk(e)?Yt(n)?{keys:e,defaultKey:n.field,defaultOrder:["descending","Descending"].includes(n.direction??"")?"descending":"ascending"}:{keys:e}:{keys:[]}}return{keys:[]}},VX=t=>{if(t){const e=Gk.filter(n=>n!==t);return{keys:[t,...e],defaultKey:t}}return{keys:[...Gk]}},HX=({collection:t,isCommitAuthorAvailable:e,isCommitDateAvailable:n})=>{const{name:r,identifier_field:i,sortable_fields:o}=t;let{keys:s,defaultKey:a,defaultOrder:c}=o?qX(o):VX(i);const u=s.includes("commit_author"),d=s.includes("commit_date");return e?!s.includes("author")&&!u&&s.push("commit_author"):u&&(s=s.filter(f=>f!=="commit_author")),n?!s.includes("date")&&!d&&s.push("commit_date"):d&&(s=s.filter(f=>f!=="commit_date")),s=Zu(s).filter(f=>!!f&&(HP.includes(f)||!!hn({collectionName:r,keyPath:f}))),a=a&&s.includes(a)?a:s[0],c??=a?"ascending":void 0,{keys:s,default:{key:a,order:c}}},KX=({key:t,fieldConfig:e})=>{if(t in Lb)return Lb[t];if(e?.widget==="boolean")return Boolean;if(e?.widget==="number"){const{value_type:n="int"}=e;if(n==="int"||n==="float")return Number}return String},GX=({collection:t,key:e})=>[...HP,"name"].includes(e)?ae(ue)(`sort_keys.${e}`):e.includes(".")?e.split(".").map((n,r,i)=>{if(/^\d+$/.test(n))return;const o=i.slice(0,r+1).join(".");return hn({collectionName:t.name,keyPath:o})?.label||n}).filter(Boolean).join(" – "):t.fields?.find(({name:n})=>n===e)?.label||e,WX=sn([Vn,di,Ut],([t,e],n)=>{if(!t||!("folder"in t)){n([]);return}const r=ae(Ul)?.[t.name]??{type:"list"},{keys:i,default:o}=HX({collection:t,isCommitAuthorAvailable:e.some(s=>!!s.commitAuthor),isCommitDateAvailable:e.some(s=>!!s.commitDate)});r.sort??=o,n(i.map(s=>({key:s,label:GX({collection:t,key:s})}))),ln(r,ae(Vr))||Vr.set(r)}),Yk=t=>{let e=t,n=!0;for(;n;){const r=e;e=e.replaceAll(/([_*`~])([^_*`~]+)\1/g,"$2"),e=e.replaceAll(/([_*`~]{2,})(.+?)\1/g,"$2"),n=e!==r}return e},YX=["title","summary","description"],JX=(t,e,{key:n,order:r}={})=>{const i=[...t];if(n===void 0)return i;const{name:o,_i18n:{defaultLocale:s}}=e,a=hn({collectionName:o,keyPath:n}),c=KX({key:n,fieldConfig:a}),u=Object.fromEntries(i.map(p=>[p.slug,ed({entry:p,locale:s,collectionName:o,key:n})])),d=a?.widget==="datetime"?a:void 0,f=a?.widget==="markdown"||YX.includes(n);i.sort((p,g)=>{const m=u[p.slug],v=u[g.slug];if(d){const b=m?fc(m,d):void 0,y=v?fc(v,d):void 0;return Number(b??0)-Number(y??0)}if(c===String){const b=m?String(m):"",y=v?String(v):"";return f?xi(Yk(b),Yk(y)):xi(b,y)}return Number(m??0)-Number(v??0)}),r==="descending"&&i.reverse();const h=hi(e)?.name;if(h){const p=i.findIndex(g=>g.slug===h);p>-1&&i.unshift(i.splice(p,1)[0])}return i},Vr=nt({type:"list"}),ra=sn([di,Vn],([t,e],n)=>{n(t&&e?zo(e.name):[])});let Jk="";const Sw=sn([ra,Vr,Ut],([t,e],n)=>{const r=JSON.stringify({_listedEntries:t,_currentView:e});if(r===Jk)return;Jk=r,n([]);const i=ae(Vn);let o=[...t];if(!o.length||Zs(i,o[0]).length)return;e.sort&&(o=JX(o,i,e.sort)),e.filters&&(o=MX(o,i,e.filters));const s=jX(o,i,e.group);ln(ae(Sw),s)||n(s)});ra.subscribe(t=>{mc.set([]),ae(ft).devModeEnabled&&console.info("listedEntries",t)});Vn.subscribe(t=>{t&&ae(ft).devModeEnabled&&console.info("selectedCollection",t)});var XX=U("<!> <!>",1),ZX=U('<div role="none" class="label svelte-cy8v6x"><!></div>'),QX=U("<!> <!> <!>",1);const eZ={hash:"svelte-cy8v6x",code:".label.svelte-cy8v6x .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}"};function tZ(t,e){le(e,!0),ke(t,eZ);const n=()=>V(ra,"$listedEntries",a),r=()=>V(cn,"$isSmallScreen",a),i=()=>V(jo,"$isMediumScreen",a),o=()=>V(mc,"$selectedEntries",a),s=()=>V(Ut,"$appLocale",a),[a,c]=me(),u=d=>{mc.update(f=>{const h=f.indexOf(e.entry);return d&&h===-1&&f.push(e.entry),!d&&h>-1&&f.splice(h,1),f})};{let d=_(()=>n().indexOf(e.entry));zd(t,{get"aria-rowindex"(){return l(d)},onChange:f=>{u(f.detail.selected)},onclick:()=>{Ht(`/collections/${e.collection.name}/entries/${e.entry.subPath}`,{transitionType:"forwards"})},children:(f,h)=>{var p=QX(),g=M(p);{var m=w=>{_i(w,{class:"checkbox",children:(E,k)=>{{let S=_(()=>o().includes(e.entry));Fd(E,{role:"none",tabindex:"-1",get checked(){return l(S)},onChange:({detail:{checked:C}})=>{u(C)}})}},$$slots:{default:!0}})};q(g,w=>{r()||i()||w(m)})}var v=j(g,2);{var b=w=>{_i(w,{class:"image",children:(E,k)=>{var S=X(),C=M(S);nn(C,()=>UP(e.collection,e.entry),null,(x,T)=>{var A=X(),P=M(A);{var L=I=>{{let N=_(()=>e.viewType==="list"?"icon":"tile");uw(I,{get src(){return l(T)},get variant(){return l(N)},cover:!0})}};q(P,I=>{l(T)&&I(L)})}$(x,A)}),$(E,S)},$$slots:{default:!0}})};q(v,w=>{e.collection._thumbnailFieldNames.length&&w(b)})}var y=j(v,2);_i(y,{class:"title",children:(w,E)=>{var k=ZX(),S=z(k);Cr(S,{lines:2,children:(C,x)=>{var T=XX(),A=M(T);er(A,s,I=>{var N=X(),D=M(N);gr(D,()=>zc(e.collection,e.entry,{useTemplate:!0,allowMarkdown:!0})),$(I,N)});var P=j(A,2);{var L=I=>{{let N=_(()=>hi(e.collection)?.icon);Je(I,{get name(){return l(N)},class:"home"})}};q(P,I=>{Fo(e.collection,e.entry)&&I(L)})}$(C,T)},$$slots:{default:!0}}),$(w,k)},$$slots:{default:!0}}),$(f,p)},$$slots:{default:!0}})}ce(),c()}var nZ=U("<!> <!>",1);function KP(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",s),r=()=>V(di,"$allEntries",s),i=()=>V(Ut,"$appLocale",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=R(e,"label",3,void 0),u=R(e,"keyShortcuts",3,void 0);const d=_(()=>!Op(n())),f=_(()=>r()&&n()?eM(n()):!1),h=_(()=>i()&&n()?hi(n())?.label:""),p=_(()=>l(f)?SC:Ze),g=(b=!1)=>{Ht(`/collections/${e.collectionName}/new`,{state:{index:b},transitionType:"forwards"})};var m=X(),v=M(m);{const b=k=>{Je(k,{name:"edit"})},y=k=>{var S=X(),C=M(S);{var x=T=>{ar(T,{children:(A,P)=>{var L=nZ(),I=M(L);{let D=_(()=>o()("entry"));gt(I,{get label(){return l(D)},onclick:()=>g()})}var N=j(I,2);gt(N,{get label(){return l(h)},onclick:()=>g(!0)}),$(A,L)},$$slots:{default:!0}})};q(C,T=>{l(f)&&T(x)})}$(k,S)};let w=_(()=>!c()),E=_(()=>o()("create_new_entry"));Hn(v,()=>l(p),(k,S)=>{S(k,{variant:"primary",get iconic(){return l(w)},get disabled(){return l(d)},get label(){return c()},get"aria-label"(){return l(E)},get keyShortcuts(){return u()},onclick:()=>g(),startIcon:b,popup:y,$$slots:{startIcon:!0,popup:!0}})})}$(t,m),ce(),a()}var rZ=U('<span role="none"> </span>'),iZ=U('<span role="none"> </span> <!>',1),oZ=U('<span role="none"> </span>');function sZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",a),r=()=>V(Vr,"$currentView",a),i=()=>V(Sw,"$entryGroups",a),o=()=>V(ue,"$_",a),s=()=>V(ra,"$listedEntries",a),[a,c]=me(),u=_(n),d=_(()=>r().type),f=_(()=>i().map(({entries:h})=>h).flat(1));{let h=_(()=>o()("entry_list"));dw(t,{get"aria-label"(){return l(h)},children:(p,g)=>{var m=X(),v=M(m);{var b=w=>{var E=X(),k=M(E);{var S=x=>{const T=_(()=>{const{defaultLocale:A}=l(u)._i18n;return{defaultLocale:A}});{let A=_(()=>o()("entries"));tf(x,{get viewType(){return l(d)},id:"entry-list",get"aria-label"(){return l(A)},get"aria-rowcount"(){return s().length},children:(P,L)=>{var I=X(),N=M(I);ot(N,1,i,({name:D,entries:B})=>D,(D,B)=>{let H=()=>l(B).name,W=()=>l(B).entries;var Y=X(),O=M(Y);nn(O,Lt,null,F=>{{let K=_(()=>H()!=="*"?H():void 0);$C(F,{get label(){return l(K)},children:(J,Q)=>{{const oe=(ee,ne=Be)=>{var se=X(),fe=M(se);nn(fe,Lt,null,be=>{tZ(be,{get collection(){return l(u)},get entry(){return ne()},get viewType(){return l(d)}})}),$(ee,se)};let re=_(()=>W().filter(({locales:ee})=>!!(ee[l(T).defaultLocale]??Object.values(ee)[0])?.content));hl(J,{get items(){return l(re)},itemKey:"id",renderItem:oe,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),$(D,Y)}),$(P,I)},$$slots:{default:!0}})}},C=x=>{var T=X(),A=M(T);{var P=I=>{pr(I,{children:(N,D)=>{var B=rZ(),H=z(B);Z(W=>te(H,W),[()=>o()("no_entries_found")]),$(N,B)},$$slots:{default:!0}})},L=I=>{pr(I,{children:(N,D)=>{var B=iZ(),H=M(B),W=z(H),Y=j(H,2);{let O=_(()=>o()("create_new_entry"));KP(Y,{get collectionName(){return l(u).name},get label(){return l(O)}})}Z(O=>te(W,O),[()=>o()("no_entries_created")]),$(N,B)},$$slots:{default:!0}})};q(A,I=>{s().length?I(P):I(L,!1)},!0)}$(x,T)};q(k,x=>{l(f).length?x(S):x(C,!1)})}$(w,E)},y=w=>{pr(w,{children:(E,k)=>{var S=oZ(),C=z(S);Z(x=>te(C,x),[()=>o()("collection_not_found")]),$(E,S)},$$slots:{default:!0}})};q(v,w=>{l(u)?w(b):w(y,!1)})}$(p,m)},$$slots:{default:!0}})}ce(),c()}var aZ=U('<div role="none" class="label svelte-1nfjp1"><!> <!></div>'),lZ=U('<span role="none"> </span>');const cZ={hash:"svelte-1nfjp1",code:".label.svelte-1nfjp1 {display:flex;align-items:center;gap:16px;}.label.svelte-1nfjp1 .icon {display:flex;align-items:center;justify-content:center;border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size);height:var(--icon-size);background-color:var(--sui-secondary-background-color);}"};function uZ(t,e){le(e,!0),ke(t,cZ);const n=()=>V(Vn,"$selectedCollection",i),r=()=>V(ue,"$_",i),[i,o]=me(),s=_(()=>n()?.files.filter(Cp)??[]);{let a=_(()=>r()("file_list"));dw(t,{get"aria-label"(){return l(a)},children:(c,u)=>{var d=X(),f=M(d);{var h=g=>{{let m=_(()=>r()("files"));tf(g,{viewType:"list",get"aria-label"(){return l(m)},get"aria-rowcount"(){return l(s).length},children:(v,b)=>{hl(v,{get items(){return l(s)},itemKey:"name",renderItem:(w,E)=>{let k=()=>E?.().name,S=()=>E?.().label,C=()=>E?.().icon;var x=X(),T=M(x);nn(T,Lt,null,A=>{zd(A,{onclick:()=>{Ht(`/collections/${n()?.name}/entries/${k()}`,{transitionType:"forwards"})},children:(P,L)=>{_i(P,{class:"title",children:(I,N)=>{var D=aZ(),B=z(D);{var H=Y=>{Je(Y,{get name(){return C()}})};q(B,Y=>{C()&&Y(H)})}var W=j(B,2);Cr(W,{lines:2,children:(Y,O)=>{var F=Oe();Z(()=>te(F,S()||k())),$(Y,F)},$$slots:{default:!0}}),$(I,D)},$$slots:{default:!0}})},$$slots:{default:!0}})}),$(w,x)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},p=g=>{pr(g,{children:(m,v)=>{var b=lZ(),y=z(b);Z(w=>te(y,w),[()=>r()("no_files_in_collection")]),$(m,b)},$$slots:{default:!0}})};q(f,g=>{l(s)?.length?g(h):g(p,!1)})}$(c,d)},$$slots:{default:!0}})}ce(),o()}var dZ=U('<div class="wrapper svelte-w0jevb"><!></div>');const fZ={hash:"svelte-w0jevb",code:".wrapper.svelte-w0jevb {display:contents;}"};function hZ(t,e){le(e,!0),ke(t,fZ);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>e.file.name),s=_(()=>e.file.label),a=_(()=>e.file.icon);let c=ie(!1),u=ie(void 0);var d=dZ(),f=z(d);{const h=g=>{{let m=_(()=>l(a)||"edit_document");Je(g,{get name(){return l(m)}})}};let p=_(()=>l(s)||l(o));Sr(f,{get label(){return l(p)},onSelect:()=>{Ge(oi,n()("singleton_selected_announcement",{values:{file:l(s)||l(o)}}))},onclick:()=>{Ht(`/collections/_singletons/entries/${l(o)}`,{transitionType:"forwards"}),G(c,!1),l(u)?.querySelector('[role="option"]')?.classList.remove("focused")},get selected(){return l(c)},set selected(g){G(c,g,!0)},startIcon:h,$$slots:{startIcon:!0}})}bt(d,h=>G(u,h),()=>l(u)),$(t,d),ce(),i()}var pZ=U("<!> <!>",1);function GP(t,e){le(e,!0);const n=()=>V(ft,"$prefs",c),r=()=>V(wn,"$backend",c),i=()=>V(xh,"$isLastCommitPublished",c),o=()=>V(lw,"$skipCIConfigured",c),s=()=>V(cn,"$isSmallScreen",c),a=()=>V(ue,"$_",c),[c,u]=me(),d=_(()=>n().deployHookURL),f=_(()=>r()?.triggerDeployment),h=_(()=>(!!l(d)||typeof l(f)=="function")&&!i());let p=ie("info"),g=ie(!1);const m=async()=>{G(p,"info"),G(g,!0);try{const{ok:w,status:E}=l(d)?await fetch(l(d),{method:"POST",mode:"no-cors"}):await l(f)?.()??{};if(!w&&E!==0)throw new Error(`Webhook returned ${E} error`);Ge(xh,!0)}catch(w){G(p,"error"),G(g,!0),console.error(w)}};var v=X(),b=M(v);{var y=w=>{var E=pZ(),k=M(E);{let C=_(()=>s()?"small":"medium"),x=_(()=>a()("publish_changes")),T=_(()=>!l(h));Ze(k,{variant:"secondary",get size(){return l(C)},get label(){return l(x)},get disabled(){return l(T)},onclick:()=>m()})}var S=j(k,2);Zn(S,{get show(){return l(g)},set show(C){G(g,C,!0)},children:(C,x)=>{Rn(C,{get status(){return l(p)},children:(T,A)=>{var P=Oe();Z(L=>te(P,L),[()=>a()(l(p)==="error"?"publishing_changes_failed":"publishing_changes")]),$(T,P)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(w,E)};q(b,w=>{o()&&w(y)})}$(t,v),ce(),u()}var gZ=U("<header><h2> </h2> <!></header> <!>",1),mZ=U('<span class="count"> </span>'),vZ=U('<span class="count"> </span>'),bZ=U("<!> <!>",1),_Z=U('<div role="none" class="primary-sidebar"><!> <!></div>');function yZ(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",c),r=()=>V($t,"$siteConfig",c),i=()=>V(cn,"$isSmallScreen",c),o=()=>V(ue,"$_",c),s=()=>V(Vn,"$selectedCollection",c),a=()=>V(di,"$allEntries",c),[c,u]=me(),d=_(()=>Intl.NumberFormat(n()??void 0)),f=_(()=>r()?.collections?.filter(({hide:b})=>!b)??[]),h=_(()=>r()?.singletons??[]);var p=_Z(),g=z(p);{var m=b=>{var y=gZ(),w=M(y),E=z(w),k=z(E),S=j(E,2);GP(S,{});var C=j(w,2);ag(C,{onclick:x=>{x.preventDefault(),Ht("/search")}}),Z(x=>te(k,x),[()=>o()("contents")]),$(b,y)};q(g,b=>{i()&&b(m)})}var v=j(g,2);{let b=_(()=>o()("collection_list"));Gc(v,{get"aria-label"(){return l(b)},"aria-controls":"collection-container",children:(y,w)=>{var E=bZ(),k=M(E);{var S=T=>{{let A=_(()=>o()("collections"));Ca(T,{get label(){return l(A)},children:(P,L)=>{var I=X(),N=M(I);ot(N,19,()=>l(f),(D,B)=>D.name??B,(D,B)=>{var H=X(),W=M(H);nn(W,Lt,null,Y=>{var O=X(),F=M(O);{var K=Q=>{const oe=_(()=>{const{name:re,label:ee,icon:ne}=l(B);return{name:re,label:ee,icon:ne}});{const re=fe=>{{let be=_(()=>l(oe).icon||"bookmark_manager");Je(fe,{get name(){return l(be)}})}},ee=fe=>{var be=X(),pe=M(be);er(pe,a,he=>{const ge=_(()=>("files"in l(B)?l(B).files:zo(l(oe).name)).length);var ve=mZ(),_e=z(ve);Z(($e,Ce)=>{Se(ve,"aria-label",`(${$e??""})`),te(_e,Ce)},[()=>o()(l(ge)>1?"many_entries":l(ge)===1?"one_entry":"no_entries",{values:{count:l(ge)}}),()=>l(d).format(l(ge))]),$(he,ve)}),$(fe,be)};let ne=_(()=>l(oe).label||l(oe).name),se=_(()=>i()?!1:s()?.name===l(oe).name);Sr(Q,{get label(){return l(ne)},get selected(){return l(se)},onSelect:()=>{Ht(`/collections/${l(oe).name}`,{transitionType:"forwards"})},startIcon:re,endIcon:ee,$$slots:{startIcon:!0,endIcon:!0}})}},J=Q=>{var oe=X(),re=M(oe);{var ee=ne=>{Jr(ne,{})};q(re,ne=>{l(B).divider&&ne(ee)},!0)}$(Q,oe)};q(F,Q=>{"divider"in l(B)?Q(J,!1):Q(K)})}$(Y,O)}),$(D,H)}),$(P,I)},$$slots:{default:!0}})}};q(k,T=>{l(f).length&&T(S)})}var C=j(k,2);{var x=T=>{var A=X(),P=M(A);{var L=N=>{{let D=_(()=>o()("files"));Ca(N,{get label(){return l(D)},children:(B,H)=>{var W=X(),Y=M(W);ot(Y,19,()=>l(h),(O,F)=>O.name??F,(O,F)=>{var K=X(),J=M(K);nn(J,Lt,null,Q=>{var oe=X(),re=M(oe);{var ee=se=>{hZ(se,{get file(){return l(F)}})},ne=se=>{var fe=X(),be=M(fe);{var pe=he=>{Jr(he,{})};q(be,he=>{l(F).divider&&he(pe)},!0)}$(se,fe)};q(re,se=>{"divider"in l(F)?se(ne,!1):se(ee)})}$(Q,oe)}),$(O,K)}),$(B,W)},$$slots:{default:!0}})}},I=N=>{const D=_(()=>l(h).length);{let B=_(()=>o()("collections"));Ca(N,{get label(){return l(B)},children:(H,W)=>{{const Y=J=>{Je(J,{name:"bookmark_manager"})},O=J=>{var Q=vZ(),oe=z(Q);Z((re,ee)=>{Se(Q,"aria-label",`(${re??""})`),te(oe,ee)},[()=>o()(l(D)>1?"many_entries":l(D)===1?"one_entry":"no_entries",{values:{count:l(D)}}),()=>l(d).format(l(D))]),$(J,Q)};let F=_(()=>o()("files")),K=_(()=>s()?.name==="_singletons");Sr(H,{get label(){return l(F)},get selected(){return l(K)},onSelect:()=>{Ht("/collections/_singletons",{transitionType:"forwards"})},startIcon:Y,endIcon:O,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};q(P,N=>{i()||l(f).length?N(L):N(I,!1)})}$(T,A)};q(C,T=>{l(h).length&&T(x)})}$(y,E)},$$slots:{default:!0}})}$(t,p),ce(),u()}function wZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",s),r=()=>V(mc,"$selectedEntries",s),i=()=>V(ue,"$_",s),o=()=>V(ra,"$listedEntries",s),[s,a]=me();let c=R(e,"open",15,!1);const u=_(()=>{const d=n()?.name;return r().length&&d&&eo({collectionName:d})?.entryRelative?r().map(f=>qP({entry:f,collectionName:d,relative:!0})).flat(1):[]});{let d=_(()=>r().length===1?i()("delete_entry"):i()("delete_entries")),f=_(()=>i()("delete"));Kc(t,{get title(){return l(d)},get okLabel(){return l(f)},onOk:()=>{jP(r().map(({id:h})=>h),l(u).map(({path:h})=>h))},get open(){return c()},set open(h){c(h)},children:(h,p)=>{var g=X(),m=M(g);{var v=y=>{var w=Oe();Z(E=>te(w,E),[()=>i()(l(u).length?"confirm_deleting_selected_entry_with_assets":"confirm_deleting_selected_entry")]),$(y,w)},b=y=>{var w=X(),E=M(w);{var k=C=>{var x=Oe();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_all_entries_with_assets":"confirm_deleting_all_entries")]),$(C,x)},S=C=>{var x=Oe();Z(T=>te(x,T),[()=>i()(l(u).length?"confirm_deleting_selected_entries_with_assets":"confirm_deleting_selected_entries",{values:{count:r().length}})]),$(C,x)};q(E,C=>{r().length===o().length?C(k):C(S,!1)},!0)}$(y,w)};q(m,y=>{r().length===1?y(v):y(b,!1)})}$(h,g)},$$slots:{default:!0}})}ce(),a()}var xZ=U('<div role="none" class="description svelte-83jnuc"><!></div>'),kZ=U("<!> <!>",1),SZ=U('<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>',1),EZ=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),$Z=U("<!> <!>",1),TZ=U("<!> <!>",1);const CZ={hash:"svelte-83jnuc",code:"h2.svelte-83jnuc {flex:none !important;}.description.svelte-83jnuc {flex:auto;font-size:var(--sui-font-size-small);opacity:0.8;}"};function AZ(t,e){le(e,!0),ke(t,CZ);const n=()=>V(Vn,"$selectedCollection",c),r=()=>V(Ut,"$appLocale",c),i=()=>V(ue,"$_",c),o=()=>V(cn,"$isSmallScreen",c),s=()=>V(mc,"$selectedEntries",c),a=()=>V(ra,"$listedEntries",c),[c,u]=me();let d=ie(!1);const f=T=>Dr.sanitize(Mt.parseInline(T),{ALLOWED_TAGS:["strong","em","del","code","a"],ALLOWED_ATTR:["href"]}),h=_(()=>n()?.name??""),p=_(()=>n()?.description),g=_(()=>!Op(n())),m=_(()=>r()&&n()?cs(n()):l(h)),v=_(()=>{const T=n();return T?._type==="entry"?{isEntryCollection:!0,canCreate:T.create??!1,canDelete:T.delete??!0,limit:T.limit??1/0}:{isEntryCollection:!1,canCreate:!1,canDelete:!1,limit:1/0}}),b=_(()=>l(v).isEntryCollection),y=_(()=>l(v).canCreate),w=_(()=>l(v).canDelete),E=_(()=>l(v).limit);var k=TZ(),S=M(k);{var C=T=>{var A=$Z(),P=M(A);{let N=_(()=>i()("collection"));Ei(P,{variant:"primary",get"aria-label"(){return l(N)},children:(D,B)=>{var H=SZ(),W=M(H);{var Y=ee=>{{let ne=_(()=>i()("back_to_collection_list"));nl(ee,{get"aria-label"(){return l(ne)},onclick:()=>{Vs("/collections")}})}};q(W,ee=>{o()&&ee(Y)})}var O=j(W,2),F=z(O),K=j(O,2);{var J=ee=>{Xr(ee,{flex:!0})},Q=ee=>{var ne=xZ(),se=z(ne);Cr(se,{children:(fe,be)=>{var pe=X(),he=M(pe);gr(he,()=>f(l(p)||"")),$(fe,pe)},$$slots:{default:!0}}),$(ee,ne)};q(K,ee=>{o()?ee(J):ee(Q,!1)})}var oe=j(K,2);{var re=ee=>{var ne=kZ(),se=M(ne);{var fe=pe=>{{let he=_(()=>i()("delete")),ge=_(()=>s().length===1?i()("delete_selected_entry"):i()("delete_selected_entries")),ve=_(()=>!s().length||!l(w));Ze(pe,{variant:"ghost",get label(){return l(he)},get"aria-label"(){return l(ge)},get disabled(){return l(ve)},onclick:()=>{G(d,!0)}})}};q(se,pe=>{o()||pe(fe)})}var be=j(se,2);xC(be,{children:(pe,he)=>{var ge=X(),ve=M(ge);{var _e=$e=>{{let Ce=_(()=>o()?void 0:i()("create"));KP($e,{get collectionName(){return l(h)},get label(){return l(Ce)},keyShortcuts:"Accel+E"})}};q(ve,$e=>{(!o()||a().length&&!l(g))&&$e(_e)})}$(pe,ge)},$$slots:{default:!0}}),$(ee,ne)};q(oe,ee=>{l(b)&&ee(re)})}Z(()=>te(F,l(m))),$(D,H)},$$slots:{default:!0}})}var L=j(P,2);{var I=N=>{var D=EZ(),B=M(D);Lc(B,()=>({"--sui-infobar-border-width":"1px 0","--sui-infobar-message-justify-content":"center"})),Fp(B.lastChild,{dismissible:!1,children:(H,W)=>{var Y=X(),O=M(Y);{var F=J=>{var Q=Oe();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_admin")]),$(J,Q)},K=J=>{var Q=Oe();Z(oe=>te(Q,oe),[()=>i()("creating_entries_disabled_by_limit",{values:{limit:l(E)}})]),$(J,Q)};q(O,J=>{l(y)?J(K,!1):J(F)})}$(H,Y)},$$slots:{default:!0}}),$(N,D)};q(L,N=>{l(b)&&l(g)&&N(I)})}$(T,A)};q(S,T=>{n()&&T(C)})}var x=j(S,2);wZ(x,{get open(){return l(d)},set open(T){G(d,T,!0)}}),$(t,k),ce(),u()}function PZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",a),r=()=>V(Zd,"$isLargeScreen",a),i=()=>V(Vr,"$currentView",a),o=()=>V(ue,"$_",a),s=()=>V(Mn,"$allAssets",a),[a,c]=me(),u=_(()=>eo({collectionName:n()?.name})),d=_(()=>l(u)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),f=_(()=>l(d).internalPath),h=_(()=>l(d).entryRelative),p=_(()=>l(d).hasTemplateTags),g=_(()=>l(h)||l(p));var m=X(),v=M(m);{var b=y=>{{let w=_(()=>o()("collection_assets"));Ao(y,{id:"collection-assets",class:"secondary-sidebar",get"aria-label"(){return l(w)},children:(E,k)=>{ef(E,{get disabled(){return l(g)},multiple:!0,onDrop:({files:S})=>{Ge(Ki,{folder:l(u),files:S})},children:(S,C)=>{{let x=_(()=>s().filter(T=>ln(T.folder,l(u))));gP(S,{get assets(){return l(x)},onSelect:({asset:T})=>{Ht(`/assets/${T.path}`,{transitionType:"forwards"})}})}},$$slots:{default:!0}})},$$slots:{default:!0}})}};q(v,y=>{l(f)!==void 0&&r()&&i().showMedia&&y(b)})}$(t,m),ce(),c()}var LZ=U("<!> <!>",1);function NZ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(e.currentView,"$currentView",i),[i,o]=me();let s=R(e,"label",3,""),a=R(e,"disabled",3,!1),c=R(e,"noneLabel",3,""),u=R(e,"groups",19,()=>[]);{const d=h=>{{let p=_(()=>n()("grouping_options"));ar(h,{get"aria-label"(){return l(p)},get"aria-controls"(){return e["aria-controls"]},children:(g,m)=>{var v=LZ(),b=M(v);{let w=_(()=>c()||n()("sort_keys.none")),E=_(()=>!r().group);od(b,{get label(){return l(w)},get checked(){return l(E)},onSelect:()=>{e.currentView.update(k=>({...k,group:null}))}})}var y=j(b,2);ot(y,17,u,vr,(w,E)=>{let k=()=>l(E).label,S=()=>l(E).field,C=()=>l(E).pattern;{let x=_(()=>r().group?.field===S()&&String(r().group.pattern)===String(C()));od(w,{get label(){return k()},get checked(){return l(x)},onSelect:()=>{e.currentView.update(T=>({...T,group:{field:S(),pattern:C()}}))}})}}),$(g,v)},$$slots:{default:!0}})}};let f=_(()=>s()||n()("group"));Mr(t,{variant:"ghost",get label(){return l(f)},get disabled(){return a()},popupPosition:"bottom-right",popup:d,$$slots:{popup:!0}})}ce(),o()}var IZ=U("<!> <!>",1),OZ=U("<!> <!> <!> <!> <!> <!> <!>",1);function RZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",h),r=()=>V(ra,"$listedEntries",h),i=()=>V(ue,"$_",h),o=()=>V(cn,"$isSmallScreen",h),s=()=>V(jo,"$isMediumScreen",h),a=()=>V(Sw,"$entryGroups",h),c=()=>V(WX,"$sortKeys",h),u=()=>V(FX,"$viewFilters",h),d=()=>V(BX,"$viewGroups",h),f=()=>V(Vr,"$currentView",h),[h,p]=me(),g=_(()=>n()?._type==="entry"?n():void 0),m=_(()=>l(g)?.name),v=_(()=>l(g)?._thumbnailFieldNames??[]),b=_(()=>!!r().length),y=_(()=>r().length>1);var w=X(),E=M(w);{var k=S=>{{let C=_(()=>i()("entry_list"));Ei(S,{variant:"secondary",get"aria-label"(){return l(C)},children:(x,T)=>{var A=OZ(),P=M(A);{var L=J=>{{let Q=_(()=>a().map(({entries:oe})=>oe).flat(1));Y2(J,{get allItems(){return l(Q)},get selectedItems(){return mc}})}};q(P,J=>{o()||s()||J(L)})}var I=j(P,2);Xr(I,{flex:!0});var N=j(I,2);{let J=_(()=>!l(y)||!c().length);J2(N,{get disabled(){return l(J)},get currentView(){return Vr},get sortKeys(){return c()},get collectionName(){return l(m)},"aria-controls":"entry-list"})}var D=j(N,2);{var B=J=>{{let Q=_(()=>!l(y));W2(J,{get disabled(){return l(Q)},get currentView(){return Vr},get filters(){return u()},multiple:!0,"aria-controls":"entry-list"})}};q(D,J=>{u()?.length&&J(B)})}var H=j(D,2);{var W=J=>{{let Q=_(()=>!l(y));NZ(J,{get disabled(){return l(Q)},get currentView(){return Vr},get groups(){return d()},"aria-controls":"entry-list"})}};q(H,J=>{d()?.length&&J(W)})}var Y=j(H,2);{var O=J=>{{let Q=_(()=>!l(b));fw(J,{get disabled(){return l(Q)},get currentView(){return Vr},"aria-controls":"entry-list"})}};q(Y,J=>{l(v).length&&J(O)})}var F=j(Y,2);{var K=J=>{var Q=IZ(),oe=M(Q);Jr(oe,{orientation:"vertical"});var re=j(oe,2);{const ee=be=>{Je(be,{name:"photo_library"})};let ne=_(()=>!l(b)||!eo({collectionName:l(m)})),se=_(()=>!!f().showMedia),fe=_(()=>i()(f().showMedia?"hide_assets":"show_assets"));Ze(re,{variant:"ghost",iconic:!0,get disabled(){return l(ne)},get pressed(){return l(se)},"aria-controls":"collection-assets",get"aria-expanded"(){return f().showMedia},get"aria-label"(){return l(fe)},onclick:()=>{Vr.update(be=>({...be,showMedia:!f().showMedia}))},startIcon:ee,$$slots:{startIcon:!0}})}$(J,Q)};q(F,J=>{o()||s()||J(K)})}$(x,A)},$$slots:{default:!0}})}};q(E,S=>{l(g)&&S(k)})}$(t,w),ce(),p()}var DZ=U("<!> <!> <!> <!>",1);function MZ(t,e){le(e,!0);const n=()=>V(Vn,"$selectedCollection",c),r=()=>V(cn,"$isSmallScreen",c),i=()=>V(ue,"$_",c),o=()=>V(ra,"$listedEntries",c),s=()=>V(Ut,"$appLocale",c),a=()=>V(Hu,"$contentUpdatesToast",c),[c,u]=me(),d=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/;let f=ie(!1);const h=_(()=>"files"in(n()??{})?uZ:sZ),p=()=>{const{path:w,params:E}=Oo(),k=w.match(d);if(G(f,!1),n()?.name==="_singletons"&&Qs().length&&Ge(Vn,void 0),!k?.groups)return;const{_collectionName:S,routeType:C,subPath:x}=k.groups;if(!S){if(r())Ge(Vn,void 0),Ge(oi,i()("viewing_collection_list")),G(f,!0);else{const I=n()||Aj()||pC();Ht(`/collections/${I?.name}`,{replaceState:!0})}return}const T=Qr(S);if(!T||T.hide?Ge(Vn,void 0):n()?.name!==T.name&&Ge(Vn,T),!T||!n()){Ge(oi,i()("collection_not_found"));return}const{name:A}=n(),P=cs(n()),L="_fileMap"in n()?n()._fileMap:void 0;if(!C){const I=o().length;Ge(oi,i()(I>1?"viewing_x_collection_many_entries":I===1?"viewing_x_collection_one_entry":"viewing_x_collection_no_entries",{values:{collection:P,count:I}}));return}if(Ge(ll,!0),L){if(C==="entries"&&x){const I=A_(A,x),N=L[x];Nu(I?{collection:T,collectionFile:N,originalEntry:I}:{collection:T,collectionFile:N,originalEntry:{slug:N.name,locales:Object.fromEntries(N._i18n.initialLocales.map(D=>[D,{}]))}}),Ge(oi,i()(`edit_${T._type}_announcement`,{values:{collection:P,file:Cd(N)}}))}}else if(C==="new"&&!x&&(Nu({collection:T,dynamicValues:E,isIndexFile:!!window.history.state?.index}),Ge(oi,i()("create_entry_announcement",{values:{collection:P}}))),C==="entries"&&x){const I=o().find(N=>N.subPath===x);I&&s()&&(Nu({collection:T,originalEntry:I}),Ge(oi,i()("edit_entry_announcement",{values:{collection:P,entry:zc(n(),I)}})))}};jt(()=>{p()});var g=DZ();Hr("hashchange",Fa,w=>{aw(w,p,d)});var m=M(g);{const w=S=>{var C=X(),x=M(C);{var T=A=>{yZ(A,{})};q(x,A=>{(!r()||l(f))&&A(T)})}$(S,C)},E=S=>{var C=X(),x=M(C);{var T=A=>{{const P=H=>{AZ(H,{})},L=H=>{var W=X(),Y=M(W);{var O=F=>{RZ(F,{})};q(Y,F=>{n()?._type==="entry"&&o().length&&F(O)})}$(H,W)},I=H=>{var W=X(),Y=M(W);Hn(Y,()=>l(h),(O,F)=>{F(O,{})}),$(H,W)},N=H=>{PZ(H,{})};let D=_(()=>i()("x_collection",{values:{collection:s()&&n()?cs(n()):""}})),B=_(()=>n()?.description);nf(A,{get"aria-label"(){return l(D)},get"aria-description"(){return l(B)},primaryToolbar:P,secondaryToolbar:L,mainContent:I,secondarySidebar:N,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};q(x,A=>{(!r()||!l(f))&&A(T)})}$(S,C)};let k=_(()=>i()("content_library"));_l(m,{get"aria-label"(){return l(k)},primarySidebar:w,main:E,$$slots:{primarySidebar:!0,main:!0}})}var v=j(m,2);DX(v,{});var b=j(v,2);Zn(b,{get show(){return a().saved},set show(w){yt(Hu,Ee(a).saved=w,Ee(a))},children:(w,E)=>{Rn(w,{status:"success",children:(k,S)=>{var C=Oe();Z(x=>te(C,x),[()=>i()(a().published?"entry_saved_and_published":"entry_saved")]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}});var y=j(b,2);Zn(y,{get show(){return a().deleted},set show(w){yt(Hu,Ee(a).deleted=w,Ee(a))},children:(w,E)=>{Rn(w,{status:"success",children:(k,S)=>{var C=Oe();Z(x=>te(C,x),[()=>i()(a().count===1?"entry_deleted":"entries_deleted",{values:{count:a().count}})]),$(k,C)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,g),ce(),u()}function WP(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();{let s=_(()=>n()("prefs.i18n.default_translator.select_service"));pl(t,{get"aria-label"(){return l(s)},get value(){return r().defaultTranslationService},onChange:a=>{Ge(ft,{...r(),defaultTranslationService:a.detail.value})},children:(a,c)=>{var u=X(),d=M(u);ot(d,17,()=>Object.entries(bw),([f,{serviceLabel:h}])=>f,(f,h)=>{var p=_(()=>So(l(h),2));let g=()=>l(p)[0],m=()=>l(p)[1].serviceLabel;{let v=_(()=>g()===r().defaultTranslationService);Sr(f,{get label(){return m()},get value(){return g()},get selected(){return l(v)}})}}),$(a,u)},$$slots:{default:!0}})}ce(),o()}var FZ=U("<!> <!> <!>",1);function zZ(t,e){le(e,!0);const n=()=>V(cg,"$translator",a),r=()=>V(ll,"$showContentOverlay",a),i=()=>V(xu,"$translatorApiKeyDialogState",a),o=()=>V(ue,"$_",a),s=()=>V(ft,"$prefs",a),[a,c]=me(),u=_(()=>n().serviceId),d=_(()=>n().apiLabel),f=_(()=>n().developerURL),h=_(()=>n().apiKeyURL),p=_(()=>n().apiKeyPattern);De(()=>{!r()&&i().show&&(yt(xu,Ee(i).show=!1,Ee(i)),i().resolve?.())});{let g=_(()=>o()(i().multiple?"translate_fields":"translate_field")),m=_(()=>({spellcheck:!1,monospace:!0,"aria-label":o()("api_key")}));EC(t,{get title(){return l(g)},showOk:!1,get textboxAttrs(){return l(m)},oninput:v=>{const b=v.target.value.trim();l(p)?.test(b)&&(yt(ft,Ee(s).apiKeys??={},Ee(s)),yt(ft,Ee(s).apiKeys[l(u)]=b,Ee(s)),yt(xu,Ee(i).show=!1,Ee(i)),i().resolve?.(b))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(v){yt(xu,Ee(i).show=v,Ee(i))},children:(v,b)=>{var y=FZ(),w=M(y);WP(w,{});var E=j(w,2);Xr(E,{});var k=j(E,2);gr(k,()=>Dr.sanitize(o()("prefs.i18n.translator.description",{values:{service:l(d),homeHref:`href="${l(f)}"`,apiKeyHref:`href="${l(h)}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]})),$(v,y)},$$slots:{default:!0}})}ce(),c()}function jZ(t,e){le(e,!0);const n=()=>V(C_,"$entryParseErrors",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!!n().length);Zn(t,{get show(){return l(s)},set show(a){G(s,a,!0)},children:(a,c)=>{Rn(a,{status:"error",children:(u,d)=>{var f=Oe();Z(h=>te(f,h),[()=>r()(n().length===1?"entry_parse_error":"entry_parse_errors")]),$(u,f)},$$slots:{default:!0}})},$$slots:{default:!0}}),ce(),o()}const YP=sn([Zd,ru,wn,Gn],([t,e,n,r])=>t&&e&&!!n?.isGit&&!!r?.token),Zh=nt(!1);var BZ=U(" <!> <!>",1),UZ=U('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1);function qZ(t,e){le(e,!0);const n=()=>V(wn,"$backend",i),r=()=>V(ue,"$_",i),[i,o]=me();let s,a=ie(!1);De(()=>{const{databaseName:d}=n()?.repository??{};d&&(s=new Lo(d,"ui-settings"),(async()=>{const f=await s.get("onboarding")??{};f.mobileCta||G(a,!0),await s.set("onboarding",{...f,mobileCta:!0})})())});var c=UZ(),u=M(c);Lc(u,()=>({"--sui-infobar-message-justify-content":"center"})),Fp(u.lastChild,{get show(){return l(a)},dismissible:!1,children:(d,f)=>{var h=BZ(),p=M(h),g=j(p);{let v=_(()=>r()("mobile_promo_button"));Ze(g,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1),Ge(Zh,!0)}})}var m=j(g,2);{let v=_(()=>r()("later"));Ze(m,{variant:"link",get label(){return l(v)},onclick:()=>{G(a,!1)}})}Z(v=>te(p,`${v??""} `),[()=>r()("mobile_promo_title")]),$(d,h)},$$slots:{default:!0}}),$(t,c),ce(),o()}var VZ=U('<div role="none" class="wrapper svelte-t2r4ty"><!></div>');const HZ={hash:"svelte-t2r4ty",code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
|
|
651
651
|
@media (width < 768px) {.wrapper.svelte-t2r4ty .sui.select-button-group {justify-content:space-evenly;width:100%;}
|
|
652
|
-
}.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`};function JP(t,e){le(e,!0),ke(t,VZ);const n=()=>V(ue,"$_",s),r=()=>V(cn,"$isSmallScreen",s),i=()=>V(Hi,"$selectedAssetFolder",s),o=()=>V($b,"$selectedPageName",s),[s,a]=me(),c=_(()=>[{key:"collections",label:n()("contents"),icon:"library_books",link:"/collections"},{key:"assets",label:n()("assets"),icon:"photo_library",link:r()?"/assets":`/assets/${i()?.internalPath??"-/all"}`},...r()?[{key:"menu",label:n()("menu"),icon:"menu",link:"/menu"}]:[]]);var u=qZ(),d=z(u);{let f=_(()=>n()("switch_page"));zp(d,{get"aria-label"(){return l(f)},"aria-controls":"page-container",children:(h,p)=>{var g=X(),m=M(g);ot(m,19,()=>l(c),({key:v,label:b,icon:y,link:w})=>v,(v,b,y)=>{let w=()=>l(b).key,E=()=>l(b).label,k=()=>l(b).icon,S=()=>l(b).link;{const C=A=>{Je(A,{get name(){return k()}})};let x=_(()=>o()===w()),T=_(()=>l(y)+1);id(v,{variant:"ghost",iconic:!0,get selected(){return l(x)},get"aria-label"(){return E()},get keyShortcuts(){return`Alt+${l(T)??""}`},onclick:()=>{Ht(S())},startIcon:C,$$slots:{startIcon:!0}})}}),$(h,g)},$$slots:{default:!0}})}$(t,u),ce(),a()}var HZ=U('<div role="none" class="buttons"><!></div>');function KZ(t,e){le(e,!0);const n=()=>V(ow,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();dB(t,{get inert(){return n()},children:(s,a)=>{{let c=_(()=>r()("global"));Ei(s,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=HZ(),h=z(f);JP(h,{}),$(u,f)},$$slots:{default:!0}})}},$$slots:{default:!0}}),ce(),o()}var GZ=U('<span class="version svelte-wmw2gz"> </span>');const WZ={hash:"svelte-wmw2gz",code:".version.svelte-wmw2gz {border-radius:4px;padding:0 6px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);font-size:var(--sui-font-size-small);}"};function YZ(t,e){le(e,!0),ke(t,WZ);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();{const s=c=>{var u=X(),d=M(u);{var f=h=>{var p=GZ(),g=z(p);Z(m=>{Se(p,"aria-label",`(${m??""})`),te(g,`v${$v}`)},[()=>n()("version_x",{values:{version:$v}})]),$(h,p)};q(d,h=>{r().devModeEnabled&&h(f)})}$(c,u)};let a=_(()=>n()("release_notes"));gt(t,{get label(){return l(a)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/releases","_blank")},endIcon:s,$$slots:{endIcon:!0}})}ce(),o()}var JZ=U('<kbd class="svelte-13q15u"> </kbd>'),XZ=U("<!> <!>",1),ZZ=U('<div role="none" class="wrapper svelte-13q15u"><!></div>');const QZ={hash:"svelte-13q15u",code:".wrapper.svelte-13q15u {display:contents;}.wrapper.svelte-13q15u .table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row .feature {flex:auto;}.wrapper.svelte-13q15u .table-row .keys {display:flex;gap:8px;}kbd.svelte-13q15u {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-color:var(--sui-primary-accent-color);border-radius:4px;padding:0 8px;height:32px;min-width:32px;background-color:var(--sui-tertiary-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}"};function eQ(t,e){le(e,!0),ke(t,QZ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0);const a=[{feature:"view_content_library",keys:"Alt+1"},{feature:"view_asset_library",keys:"Alt+2"},{feature:"search",keys:"Accel+F"},{feature:"create_entry",keys:"Accel+E"},{feature:"save_entry",keys:"Accel+S"},{feature:"cancel_editing",keys:"Escape"}];let c=ie("Ctrl");jt(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&G(c,"⌘")});{let u=_(()=>n()("keyboard_shortcuts"));ji(t,{get title(){return l(u)},size:"small",showOk:!1,showCancel:!1,showClose:!0,style:"--sui-dialog-small-content-max-height:auto",onClose:()=>{s()?.()},get open(){return o()},set open(d){o(d)},children:(d,f)=>{var h=ZZ(),p=z(h);{let g=_(()=>n()("keyboard_shortcuts"));a4(p,{get"aria-label"(){return l(g)},children:(m,v)=>{var b=X(),y=M(b);ot(y,17,()=>a,({feature:w,keys:E})=>E,(w,E)=>{let k=()=>l(E).feature,S=()=>l(E).keys;i4(w,{children:(C,x)=>{var T=XZ(),A=M(T);k0(A,{class:"feature",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>n()(`keyboard_shortcuts_.${k()}`)]),$(L,N)},$$slots:{default:!0}});var P=j(A,2);k0(P,{class:"keys",children:(L,I)=>{var N=X(),D=M(N);ot(D,17,()=>S().split("+"),vr,(B,H)=>{var W=JZ(),Y=z(W);Z(O=>te(Y,O),[()=>l(H).replace("Accel",l(c))]),$(B,W)}),$(L,N)},$$slots:{default:!0}}),$(C,T)},$$slots:{default:!0}})}),$(m,b)},$$slots:{default:!0}})}$(d,h)},$$slots:{default:!0}})}ce(),i()}var tQ=U("<!> <!>",1);function nQ(t,e){le(e,!0);const n=()=>V(ru,"$hasMouse",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!1);var a=tQ(),c=M(a);{var u=f=>{{let h=_(()=>r()("keyboard_shortcuts"));gt(f,{get label(){return l(h)},onclick:()=>{G(s,!0)}})}};q(c,f=>{n()&&f(u)})}var d=j(c,2);eQ(d,{onClose:()=>{e.menuButton?.focus()},get open(){return l(s)},set open(f){G(s,f,!0)}}),$(t,a),ce(),o()}function ec(t,e){le(e,!0);const n=()=>V(ft,"$prefs",r),[r,i]=me();let o=R(e,"defaultValue",3,!0),s=ie(!0);De(()=>{G(s,!!(n()[e.key]??o()),!0)}),De(()=>{n()[e.key]!==l(s)&&yt(ft,Ee(n)[e.key]=l(s),Ee(n))}),ly(t,{get label(){return e.label},get checked(){return l(s)},set checked(a){G(s,a,!0)}}),ce(),i()}var rQ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function iQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=rQ(),s=z(o),a=z(s),c=j(s,2),u=z(c),d=j(c,2),f=z(d);{let h=_(()=>n()("prefs.accessibility.underline_links.switch_label"));ec(f,{key:"underlineLinks",get label(){return l(h)}})}Z((h,p)=>{te(a,h),te(u,p)},[()=>n()("prefs.accessibility.underline_links.title"),()=>n()("prefs.accessibility.underline_links.description")]),$(t,o),ce(),i()}var oQ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),sQ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section> <section><h4> </h4> <p> </p> <div role="none"><!></div></section> <!>',1);function aQ(t,e){le(e,!0);const n=()=>V(ue,"$_",o),r=()=>V(lw,"$skipCIConfigured",o),i=()=>V(ft,"$prefs",o),[o,s]=me();let a=R(e,"onChange",3,void 0);var c=sQ(),u=M(c),d=z(u),f=z(d),h=j(d,2),p=z(h),g=j(h,2),m=z(g);{let T=_(()=>n()("prefs.advanced.beta.switch_label"));ec(m,{key:"beta",get label(){return l(T)},defaultValue:!1})}var v=j(u,2),b=z(v),y=z(b),w=j(b,2),E=z(w),k=j(w,2),S=z(k);{let T=_(()=>n()("prefs.advanced.developer_mode.switch_label"));ec(S,{key:"devModeEnabled",get label(){return l(T)},defaultValue:!1})}var C=j(v,2);{var x=T=>{var A=oQ(),P=z(A),L=z(P),I=j(P,2),N=z(I),D=j(I,2),B=z(D);{let H=_(()=>n()("prefs.advanced.deploy_hook.field_label"));Nn(B,{flex:!0,get label(){return l(H)},onchange:()=>{a()?.({message:n()(i().deployHookURL?"prefs.advanced.deploy_hook.url_saved":"prefs.advanced.deploy_hook.url_removed")})},get value(){return i().deployHookURL},set value(W){yt(ft,Ee(i).deployHookURL=W,Ee(i))}})}Z((H,W)=>{te(L,H),te(N,W)},[()=>n()("prefs.advanced.deploy_hook.title"),()=>n()("prefs.advanced.deploy_hook.description")]),$(T,A)};q(C,T=>{r()&&T(x)})}Z((T,A,P,L)=>{te(f,T),te(p,A),te(y,P),te(E,L)},[()=>n()("prefs.advanced.beta.title"),()=>n()("prefs.advanced.beta.description"),()=>n()("prefs.advanced.developer_mode.title"),()=>n()("prefs.advanced.developer_mode.description")]),$(t,c),ce(),s()}var lQ=U('<section><h4> </h4> <div role="none"><!></div></section>');function cQ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();R(e,"onChange",3,void 0);var s=lQ(),a=z(s),c=z(a),u=j(a,2),d=z(u);{let f=_(()=>n()("prefs.appearance.select_theme"));zp(d,{get"aria-label"(){return l(f)},onChange:h=>{Ge(ft,{...r(),theme:h.detail.value})},children:(h,p)=>{var g=X(),m=M(g);ot(m,16,()=>["auto","dark","light"],vr,(v,b)=>{{let y=_(()=>n()(`prefs.theme.${b}`)),w=_(()=>!r().theme&&b==="auto"||r().theme===b);id(v,{variant:"tertiary",get label(){return l(y)},get value(){return b},get selected(){return l(w)}})}}),$(h,g)},$$slots:{default:!0}})}Z(f=>te(c,f),[()=>n()("prefs.appearance.theme")]),$(t,s),ce(),o()}var uQ=U('<section><h4> </h4> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>');function dQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=uQ(),s=z(o),a=z(s),c=j(s,2),u=z(c);{let g=_(()=>n()("prefs.contents.editor.use_draft_backup.switch_label"));ec(u,{key:"useDraftBackup",get label(){return l(g)}})}var d=j(c,2),f=z(d);{let g=_(()=>n()("prefs.contents.editor.close_on_save.switch_label"));ec(f,{key:"closeOnSave",get label(){return l(g)}})}var h=j(d,2),p=z(h);{let g=_(()=>n()("prefs.contents.editor.close_with_escape.switch_label"));ec(p,{key:"closeWithEscape",get label(){return l(g)}})}Z(g=>te(a,g),[()=>n()("prefs.contents.editor.title")]),$(t,o),ce(),i()}var fQ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>'),hQ=U('<section><h4> </h4> <div role="none"><!></div></section> <!>',1);function pQ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);var a=hQ(),c=M(a),u=z(c),d=z(u),f=j(u,2),h=z(f);WP(h,{});var p=j(c,2);ot(p,17,()=>Object.entries(bw),([g,m])=>g,(g,m)=>{var v=_(()=>So(l(m),2));let b=()=>l(v)[0],y=()=>l(v)[1];const w=_(()=>{const{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}=y();return{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}});var E=fQ(),k=z(E),S=z(k),C=j(k,2),x=z(C);gr(x,()=>Dr.sanitize(n()("prefs.i18n.translator.description",{values:{service:l(w).apiLabel,homeHref:`href="${l(w).developerURL}"`,apiKeyHref:`href="${l(w).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var T=j(C,2),A=z(T);{var P=L=>{{let I=_(()=>n()("prefs.i18n.translator.field_label",{values:{service:l(w).serviceLabel}}));Nn(L,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(I)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[b()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[b()]},set value(N){yt(ft,Ee(r).apiKeys[b()]=N,Ee(r))}})}};q(A,L=>{r().apiKeys&&L(P)})}Z(()=>te(S,l(w).serviceLabel)),$(g,E)}),Z(g=>te(d,g),[()=>n()("prefs.i18n.default_translator.title")]),$(t,a),ce(),o()}var gQ=U('<section><h4> </h4> <div role="none"><!></div></section>');function mQ(t,e){le(e,!0);const n=()=>V(ue,"$_",s),r=()=>V(Ut,"$appLocale",s),i=()=>V(ft,"$prefs",s),o=()=>V(HE,"$appLocales",s),[s,a]=me();R(e,"onChange",3,void 0);var c=gQ(),u=z(c),d=z(u),f=j(u,2),h=z(f);er(h,r,p=>{{let g=_(()=>n()("prefs.language.ui_language.select_language")),m=_(()=>r()??void 0);pl(p,{get"aria-label"(){return l(g)},get value(){return l(m)},onChange:v=>{Ge(ft,{...i(),locale:v.detail.value})},children:(v,b)=>{var y=X(),w=M(y);ot(w,1,o,vr,(E,k)=>{{let S=_(()=>Fi(l(k),{native:!0})),C=_(()=>l(k)===r());Sr(E,{get label(){return l(S)},get value(){return l(k)},get selected(){return l(C)},dir:"auto"})}}),$(v,y)},$$slots:{default:!0}})}}),Z(p=>te(d,p),[()=>n()("prefs.language.ui_language.title")]),$(t,c),ce(),a()}var vQ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>');function bQ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);const a=_(()=>{const{providers:d=[]}=$P();return Object.entries(Xh).filter(([f])=>d.includes(f))});var c=X(),u=M(c);ot(u,17,()=>l(a),([d,f])=>d,(d,f)=>{var h=_(()=>So(l(f),2));let p=()=>l(h)[0],g=()=>l(h)[1];const m=_(()=>{const{serviceLabel:x,developerURL:T,apiKeyURL:A}=g();return{serviceLabel:x,developerURL:T,apiKeyURL:A}});var v=vQ(),b=z(v),y=z(b),w=j(b,2),E=z(w);gr(E,()=>Dr.sanitize(n()("prefs.media.stock_photos.description",{values:{service:l(m).serviceLabel,homeHref:`href="${l(m).developerURL}"`,apiKeyHref:`href="${l(m).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var k=j(w,2),S=z(k);{var C=x=>{{let T=_(()=>n()("prefs.media.stock_photos.field_label",{values:{service:l(m).serviceLabel}}));Nn(x,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(T)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[p()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[p()]},set value(A){yt(ft,Ee(r).apiKeys[p()]=A,Ee(r))}})}};q(S,x=>{r().apiKeys&&x(C)})}Z(x=>te(y,x),[()=>n()("prefs.media.stock_photos.title",{values:{service:l(m).serviceLabel}})]),$(d,v)},d=>{var f=Oe();Z(h=>te(f,h),[()=>n()("prefs.media.stock_photos.providers_disabled")]),$(d,f)}),$(t,c),ce(),o()}const Qh=sn([$t],([t])=>[{key:"appearance",icon:"palette",component:cQ},{key:"language",icon:"language",component:mQ},{key:"contents",icon:"library_books",component:dQ},{key:"i18n",icon:"translate",component:pQ,enabled:(t?.i18n?.locales?.length??0)>1},{key:"media",icon:"photo_library",component:bQ},{key:"accessibility",icon:"accessibility_new",component:iQ},{key:"advanced",icon:"build",component:aQ}]);var _Q=U('<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>'),yQ=U("<!> <!>",1);const wQ={hash:"svelte-pwxwga",code:".wrapper.svelte-pwxwga {display:flex;}.wrapper.svelte-pwxwga .sui.tab-list {flex:none;}.wrapper.svelte-pwxwga .sui.tab-panel {flex:auto;border-width:0;}.wrapper.svelte-pwxwga .sui.tab-panel section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel p {margin-top:0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 {font-size:inherit;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ div {margin:8px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function xQ(t,e){le(e,!0),ke(t,wQ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0),a=ie("appearance"),c=ie(""),u=ie(!1);var d=yQ(),f=M(d);{let p=_(()=>n()("settings"));ji(f,{get title(){return l(p)},size:"large",showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{s()?.()},get open(){return o()},set open(g){o(g)},children:(g,m)=>{var v=_Q(),b=z(v);{let w=_(()=>n()("categories"));u4(b,{orientation:"vertical",get"aria-label"(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);ot(C,17,()=>ae(Qh),({key:x,icon:T,enabled:A=!0})=>x,(x,T)=>{let A=()=>l(T).key,P=()=>l(T).icon,L=Bb(()=>tt(l(T).enabled,!0));var I=X(),N=M(I);{var D=B=>{{const H=O=>{Je(O,{get name(){return P()}})};let W=_(()=>n()(`prefs.${A()}.title`)),Y=_(()=>A()===l(a));p4(B,{get label(){return l(W)},get selected(){return l(Y)},get"aria-controls"(){return`prefs-tab-${A()??""}`},onSelect:()=>{G(a,A(),!0)},startIcon:H,$$slots:{startIcon:!0}})}};q(N,B=>{l(L)&&B(D)})}$(x,I)}),$(E,S)},$$slots:{default:!0}})}var y=j(b,2);ot(y,17,()=>ae(Qh),({key:w,component:E})=>w,(w,E)=>{let k=()=>l(E).key,S=()=>l(E).component;h4(w,{get id(){return`prefs-tab-${k()??""}`},children:(C,x)=>{var T=X(),A=M(T);Hn(A,S,(P,L)=>{L(P,{onChange:({message:I})=>{G(c,I,!0),G(u,!0)}})}),$(C,T)},$$slots:{default:!0}})}),$(g,v)},$$slots:{default:!0}})}var h=j(f,2);Zn(h,{get show(){return l(u)},set show(p){G(u,p,!0)},children:(p,g)=>{Rn(p,{status:"success",children:(m,v)=>{var b=Oe();Z(()=>te(b,l(c))),$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,d),ce(),i()}var kQ=U("<!> <!>",1),SQ=U("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),EQ=U("<!> <!>",1);function XP(t,e){le(e,!0);const n=()=>V(Vc,"$backendName",u),r=()=>V(ue,"$_",u),i=()=>V(Gn,"$user",u),o=()=>V(ft,"$prefs",u),s=()=>V(wn,"$backend",u),a=()=>V(cn,"$isSmallScreen",u),c=()=>V(YP,"$canShowMobileSignInDialog",u),[u,d]=me();let f=ie(!1);const h=_(()=>n()==="local"),p=_(()=>n()==="test-repo");var g=EQ(),m=M(g);{let b=_(()=>r()("account"));ar(m,{get"aria-label"(){return l(b)},children:(y,w)=>{var E=SQ(),k=M(E);{let Y=_(()=>l(h)?r()("working_with_local_repo"):l(p)?r()("working_with_test_repo"):r()("signed_in_as_x",{values:{name:i()?.login}})),O=_(()=>l(h)||l(p));gt(k,{get label(){return l(Y)},get disabled(){return l(O)},onclick:()=>{window.open(i()?.profileURL,"_blank")}})}var S=j(k,2);Jr(S,{});var C=j(S,2);{let Y=_(()=>r()("live_site"));gt(C,{get label(){return l(Y)},onclick:()=>{P2()}})}var x=j(C,2);{var T=Y=>{var O=kQ(),F=M(O);{let J=_(()=>r()("git_repository")),Q=_(()=>!s()?.repository?.treeBaseURL);gt(F,{get label(){return l(J)},get disabled(){return l(Q)},onclick:()=>{window.open(s()?.repository?.treeBaseURL)}})}var K=j(F,2);{let J=_(()=>r()("site_config"));gt(K,{get label(){return l(J)},onclick:()=>{Ht("/config",{transitionType:"forwards"})}})}$(Y,O)};q(x,Y=>{o().devModeEnabled&&Y(T)})}var A=j(x,2);Jr(A,{});var P=j(A,2);{let Y=_(()=>r()("settings"));gt(P,{get label(){return l(Y)},onclick:()=>{a()?Ht("/settings",{transitionType:"forwards"}):G(f,!0)}})}var L=j(P,2);nQ(L,{get menuButton(){return e.menuButton}});var I=j(L,2);{var N=Y=>{YZ(Y,{})};q(I,Y=>{o().devModeEnabled&&Y(N)})}var D=j(I,2);{var B=Y=>{{let O=_(()=>r()("sign_in_with_mobile"));gt(Y,{get label(){return l(O)},onclick:()=>{Ge(Zh,!0)}})}};q(D,Y=>{c()&&Y(B)})}var H=j(D,2);Jr(H,{});var W=j(H,2);{let Y=_(()=>r()("sign_out"));gt(W,{get label(){return l(Y)},onclick:async()=>{window.requestAnimationFrame(()=>{K6()})}})}$(y,E)},$$slots:{default:!0}})}var v=j(m,2);xQ(v,{onClose:()=>{e.menuButton?.focus()},get open(){return l(f)},set open(b){G(f,b,!0)}}),$(t,g),ce(),d()}var $Q=U('<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>'),TQ=U('<div role="none" class="wrapper svelte-q0ng4j"><!></div>');const CQ={hash:"svelte-q0ng4j",code:".wrapper.svelte-q0ng4j {display:contents;}.wrapper.svelte-q0ng4j button.avatar {border-width:0;background-color:transparent;}.avatar.svelte-q0ng4j {width:32px;height:32px;border-radius:32px;object-fit:cover;}"};function AQ(t,e){le(e,!0),ke(t,CQ);const n=()=>V(Gn,"$user",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(void 0);const a=_(()=>!!n()?.avatarURL);var c=TQ(),u=z(c);{const d=g=>{var m=X(),v=M(m);{var b=w=>{var E=$Q();Z(()=>Se(E,"src",n()?.avatarURL)),$(w,E)},y=w=>{Je(w,{name:"account_circle"})};q(v,w=>{l(a)?w(b):w(y,!1)})}$(g,m)},f=g=>{XP(g,{get menuButton(){return l(s)}})};let h=_(()=>l(a)?"avatar":""),p=_(()=>r()("show_account_menu"));bt(Mr(u,{variant:"ghost",iconic:!0,get class(){return l(h)},popupPosition:"bottom-right",get"aria-label"(){return l(p)},endIcon:d,popup:f,$$slots:{endIcon:!0,popup:!0}}),g=>G(s,g,!0),()=>l(s))}$(t,c),ce(),o()}var PQ=U("<!> <!>",1),LQ=U("<!> <!>",1);function NQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>Qs({visible:!0,type:"entry"}));{const s=u=>{Je(u,{name:"add"})},a=u=>{{let d=_(()=>n()("create_entry_or_assets"));ar(u,{get"aria-label"(){return l(d)},children:(f,h)=>{var p=LQ(),g=M(p);{var m=b=>{var y=PQ(),w=M(y);ot(w,17,()=>l(o),k=>k.name,(k,S)=>{const C=_(()=>{const{name:x,label:T,label_singular:A,create:P=!1,limit:L=1/0}=l(S);return{name:x,label:T,labelSingular:A,create:P,limit:L}});{let x=_(()=>l(C).labelSingular||l(C).label||l(C).name),T=_(()=>!l(C).create||zo(l(C).name).length>=l(C).limit);gt(k,{get label(){return l(x)},get disabled(){return l(T)},onclick:()=>{Ht(`/collections/${l(C).name}/new`,{transitionType:"forwards"})}})}});var E=j(w,2);Jr(E,{}),$(b,y)};q(g,b=>{l(o).length&&b(m)})}var v=j(g,2);{let b=_(()=>n()("assets"));gt(v,{get label(){return l(b)},onclick:async()=>{Ht("/assets",{transitionType:"forwards"}),await Lt(100),Ge(xs,!0)}})}$(f,p)},$$slots:{default:!0}})}};let c=_(()=>n()("create_entry_or_assets"));Mr(t,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(c)},endIcon:s,popup:a,$$slots:{endIcon:!0,popup:!0}})}ce(),i()}function IQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{Je(a,{name:"notifications"})};let s=_(()=>n()("show_notifications"));Ze(t,{variant:"ghost",iconic:!0,hidden:!0,get"aria-label"(){return l(s)},onclick:()=>{},startIcon:o,$$slots:{startIcon:!0}})}ce(),i()}var OQ=U('<img loading="lazy" alt="" class="logo svelte-15c9hhi"/>');const RQ={hash:"svelte-15c9hhi",code:"img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}"};function DQ(t,e){le(e,!0),ke(t,RQ);const n=()=>V($t,"$siteConfig",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=X(),a=M(s);{var c=u=>{{let d=_(()=>r()("visit_live_site"));Ze(u,{variant:"ghost",iconic:!0,get"aria-label"(){return l(d)},onclick:()=>{P2()},children:(f,h)=>{var p=OQ();Z(()=>Se(p,"src",n().logo_url)),$(f,p)},$$slots:{default:!0}})}};q(a,u=>{n()?.logo_url&&u(c)})}$(t,s),ce(),o()}var MQ=U('<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>',1),FQ=U('<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>');const zQ={hash:"svelte-1kz79fh",code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh {display:none;}
|
|
652
|
+
}.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`};function JP(t,e){le(e,!0),ke(t,HZ);const n=()=>V(ue,"$_",s),r=()=>V(cn,"$isSmallScreen",s),i=()=>V(Hi,"$selectedAssetFolder",s),o=()=>V($b,"$selectedPageName",s),[s,a]=me(),c=_(()=>[{key:"collections",label:n()("contents"),icon:"library_books",link:"/collections"},{key:"assets",label:n()("assets"),icon:"photo_library",link:r()?"/assets":`/assets/${i()?.internalPath??"-/all"}`},...r()?[{key:"menu",label:n()("menu"),icon:"menu",link:"/menu"}]:[]]);var u=VZ(),d=z(u);{let f=_(()=>n()("switch_page"));zp(d,{get"aria-label"(){return l(f)},"aria-controls":"page-container",children:(h,p)=>{var g=X(),m=M(g);ot(m,19,()=>l(c),({key:v,label:b,icon:y,link:w})=>v,(v,b,y)=>{let w=()=>l(b).key,E=()=>l(b).label,k=()=>l(b).icon,S=()=>l(b).link;{const C=A=>{Je(A,{get name(){return k()}})};let x=_(()=>o()===w()),T=_(()=>l(y)+1);id(v,{variant:"ghost",iconic:!0,get selected(){return l(x)},get"aria-label"(){return E()},get keyShortcuts(){return`Alt+${l(T)??""}`},onclick:()=>{Ht(S())},startIcon:C,$$slots:{startIcon:!0}})}}),$(h,g)},$$slots:{default:!0}})}$(t,u),ce(),a()}var KZ=U('<div role="none" class="buttons"><!></div>');function GZ(t,e){le(e,!0);const n=()=>V(ow,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();dB(t,{get inert(){return n()},children:(s,a)=>{{let c=_(()=>r()("global"));Ei(s,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=KZ(),h=z(f);JP(h,{}),$(u,f)},$$slots:{default:!0}})}},$$slots:{default:!0}}),ce(),o()}var WZ=U('<span class="version svelte-wmw2gz"> </span>');const YZ={hash:"svelte-wmw2gz",code:".version.svelte-wmw2gz {border-radius:4px;padding:0 6px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-selected-background-color);font-size:var(--sui-font-size-small);}"};function JZ(t,e){le(e,!0),ke(t,YZ);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();{const s=c=>{var u=X(),d=M(u);{var f=h=>{var p=WZ(),g=z(p);Z(m=>{Se(p,"aria-label",`(${m??""})`),te(g,`v${$v}`)},[()=>n()("version_x",{values:{version:$v}})]),$(h,p)};q(d,h=>{r().devModeEnabled&&h(f)})}$(c,u)};let a=_(()=>n()("release_notes"));gt(t,{get label(){return l(a)},onclick:()=>{window.open("https://github.com/sveltia/sveltia-cms/releases","_blank")},endIcon:s,$$slots:{endIcon:!0}})}ce(),o()}var XZ=U('<kbd class="svelte-13q15u"> </kbd>'),ZZ=U("<!> <!>",1),QZ=U('<div role="none" class="wrapper svelte-13q15u"><!></div>');const eQ={hash:"svelte-13q15u",code:".wrapper.svelte-13q15u {display:contents;}.wrapper.svelte-13q15u .table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.wrapper.svelte-13q15u .table-row .feature {flex:auto;}.wrapper.svelte-13q15u .table-row .keys {display:flex;gap:8px;}kbd.svelte-13q15u {display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border-color:var(--sui-primary-accent-color);border-radius:4px;padding:0 8px;height:32px;min-width:32px;background-color:var(--sui-tertiary-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}"};function tQ(t,e){le(e,!0),ke(t,eQ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0);const a=[{feature:"view_content_library",keys:"Alt+1"},{feature:"view_asset_library",keys:"Alt+2"},{feature:"search",keys:"Accel+F"},{feature:"create_entry",keys:"Accel+E"},{feature:"save_entry",keys:"Accel+S"},{feature:"cancel_editing",keys:"Escape"}];let c=ie("Ctrl");jt(()=>{(navigator.userAgentData?.platform==="macOS"||navigator.platform.startsWith("Mac"))&&G(c,"⌘")});{let u=_(()=>n()("keyboard_shortcuts"));ji(t,{get title(){return l(u)},size:"small",showOk:!1,showCancel:!1,showClose:!0,style:"--sui-dialog-small-content-max-height:auto",onClose:()=>{s()?.()},get open(){return o()},set open(d){o(d)},children:(d,f)=>{var h=QZ(),p=z(h);{let g=_(()=>n()("keyboard_shortcuts"));a4(p,{get"aria-label"(){return l(g)},children:(m,v)=>{var b=X(),y=M(b);ot(y,17,()=>a,({feature:w,keys:E})=>E,(w,E)=>{let k=()=>l(E).feature,S=()=>l(E).keys;i4(w,{children:(C,x)=>{var T=ZZ(),A=M(T);k0(A,{class:"feature",children:(L,I)=>{var N=Oe();Z(D=>te(N,D),[()=>n()(`keyboard_shortcuts_.${k()}`)]),$(L,N)},$$slots:{default:!0}});var P=j(A,2);k0(P,{class:"keys",children:(L,I)=>{var N=X(),D=M(N);ot(D,17,()=>S().split("+"),vr,(B,H)=>{var W=XZ(),Y=z(W);Z(O=>te(Y,O),[()=>l(H).replace("Accel",l(c))]),$(B,W)}),$(L,N)},$$slots:{default:!0}}),$(C,T)},$$slots:{default:!0}})}),$(m,b)},$$slots:{default:!0}})}$(d,h)},$$slots:{default:!0}})}ce(),i()}var nQ=U("<!> <!>",1);function rQ(t,e){le(e,!0);const n=()=>V(ru,"$hasMouse",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(!1);var a=nQ(),c=M(a);{var u=f=>{{let h=_(()=>r()("keyboard_shortcuts"));gt(f,{get label(){return l(h)},onclick:()=>{G(s,!0)}})}};q(c,f=>{n()&&f(u)})}var d=j(c,2);tQ(d,{onClose:()=>{e.menuButton?.focus()},get open(){return l(s)},set open(f){G(s,f,!0)}}),$(t,a),ce(),o()}function ec(t,e){le(e,!0);const n=()=>V(ft,"$prefs",r),[r,i]=me();let o=R(e,"defaultValue",3,!0),s=ie(!0);De(()=>{G(s,!!(n()[e.key]??o()),!0)}),De(()=>{n()[e.key]!==l(s)&&yt(ft,Ee(n)[e.key]=l(s),Ee(n))}),ly(t,{get label(){return e.label},get checked(){return l(s)},set checked(a){G(s,a,!0)}}),ce(),i()}var iQ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>');function oQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=iQ(),s=z(o),a=z(s),c=j(s,2),u=z(c),d=j(c,2),f=z(d);{let h=_(()=>n()("prefs.accessibility.underline_links.switch_label"));ec(f,{key:"underlineLinks",get label(){return l(h)}})}Z((h,p)=>{te(a,h),te(u,p)},[()=>n()("prefs.accessibility.underline_links.title"),()=>n()("prefs.accessibility.underline_links.description")]),$(t,o),ce(),i()}var sQ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section>'),aQ=U('<section><h4> </h4> <p> </p> <div role="none"><!></div></section> <section><h4> </h4> <p> </p> <div role="none"><!></div></section> <!>',1);function lQ(t,e){le(e,!0);const n=()=>V(ue,"$_",o),r=()=>V(lw,"$skipCIConfigured",o),i=()=>V(ft,"$prefs",o),[o,s]=me();let a=R(e,"onChange",3,void 0);var c=aQ(),u=M(c),d=z(u),f=z(d),h=j(d,2),p=z(h),g=j(h,2),m=z(g);{let T=_(()=>n()("prefs.advanced.beta.switch_label"));ec(m,{key:"beta",get label(){return l(T)},defaultValue:!1})}var v=j(u,2),b=z(v),y=z(b),w=j(b,2),E=z(w),k=j(w,2),S=z(k);{let T=_(()=>n()("prefs.advanced.developer_mode.switch_label"));ec(S,{key:"devModeEnabled",get label(){return l(T)},defaultValue:!1})}var C=j(v,2);{var x=T=>{var A=sQ(),P=z(A),L=z(P),I=j(P,2),N=z(I),D=j(I,2),B=z(D);{let H=_(()=>n()("prefs.advanced.deploy_hook.field_label"));Nn(B,{flex:!0,get label(){return l(H)},onchange:()=>{a()?.({message:n()(i().deployHookURL?"prefs.advanced.deploy_hook.url_saved":"prefs.advanced.deploy_hook.url_removed")})},get value(){return i().deployHookURL},set value(W){yt(ft,Ee(i).deployHookURL=W,Ee(i))}})}Z((H,W)=>{te(L,H),te(N,W)},[()=>n()("prefs.advanced.deploy_hook.title"),()=>n()("prefs.advanced.deploy_hook.description")]),$(T,A)};q(C,T=>{r()&&T(x)})}Z((T,A,P,L)=>{te(f,T),te(p,A),te(y,P),te(E,L)},[()=>n()("prefs.advanced.beta.title"),()=>n()("prefs.advanced.beta.description"),()=>n()("prefs.advanced.developer_mode.title"),()=>n()("prefs.advanced.developer_mode.description")]),$(t,c),ce(),s()}var cQ=U('<section><h4> </h4> <div role="none"><!></div></section>');function uQ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();R(e,"onChange",3,void 0);var s=cQ(),a=z(s),c=z(a),u=j(a,2),d=z(u);{let f=_(()=>n()("prefs.appearance.select_theme"));zp(d,{get"aria-label"(){return l(f)},onChange:h=>{Ge(ft,{...r(),theme:h.detail.value})},children:(h,p)=>{var g=X(),m=M(g);ot(m,16,()=>["auto","dark","light"],vr,(v,b)=>{{let y=_(()=>n()(`prefs.theme.${b}`)),w=_(()=>!r().theme&&b==="auto"||r().theme===b);id(v,{variant:"tertiary",get label(){return l(y)},get value(){return b},get selected(){return l(w)}})}}),$(h,g)},$$slots:{default:!0}})}Z(f=>te(c,f),[()=>n()("prefs.appearance.theme")]),$(t,s),ce(),o()}var dQ=U('<section><h4> </h4> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>');function fQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();R(e,"onChange",3,void 0);var o=dQ(),s=z(o),a=z(s),c=j(s,2),u=z(c);{let g=_(()=>n()("prefs.contents.editor.use_draft_backup.switch_label"));ec(u,{key:"useDraftBackup",get label(){return l(g)}})}var d=j(c,2),f=z(d);{let g=_(()=>n()("prefs.contents.editor.close_on_save.switch_label"));ec(f,{key:"closeOnSave",get label(){return l(g)}})}var h=j(d,2),p=z(h);{let g=_(()=>n()("prefs.contents.editor.close_with_escape.switch_label"));ec(p,{key:"closeWithEscape",get label(){return l(g)}})}Z(g=>te(a,g),[()=>n()("prefs.contents.editor.title")]),$(t,o),ce(),i()}var hQ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>'),pQ=U('<section><h4> </h4> <div role="none"><!></div></section> <!>',1);function gQ(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);var a=pQ(),c=M(a),u=z(c),d=z(u),f=j(u,2),h=z(f);WP(h,{});var p=j(c,2);ot(p,17,()=>Object.entries(bw),([g,m])=>g,(g,m)=>{var v=_(()=>So(l(m),2));let b=()=>l(v)[0],y=()=>l(v)[1];const w=_(()=>{const{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}=y();return{serviceLabel:L,apiLabel:I,developerURL:N,apiKeyURL:D}});var E=hQ(),k=z(E),S=z(k),C=j(k,2),x=z(C);gr(x,()=>Dr.sanitize(n()("prefs.i18n.translator.description",{values:{service:l(w).apiLabel,homeHref:`href="${l(w).developerURL}"`,apiKeyHref:`href="${l(w).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var T=j(C,2),A=z(T);{var P=L=>{{let I=_(()=>n()("prefs.i18n.translator.field_label",{values:{service:l(w).serviceLabel}}));Nn(L,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(I)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[b()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[b()]},set value(N){yt(ft,Ee(r).apiKeys[b()]=N,Ee(r))}})}};q(A,L=>{r().apiKeys&&L(P)})}Z(()=>te(S,l(w).serviceLabel)),$(g,E)}),Z(g=>te(d,g),[()=>n()("prefs.i18n.default_translator.title")]),$(t,a),ce(),o()}var mQ=U('<section><h4> </h4> <div role="none"><!></div></section>');function vQ(t,e){le(e,!0);const n=()=>V(ue,"$_",s),r=()=>V(Ut,"$appLocale",s),i=()=>V(ft,"$prefs",s),o=()=>V(HE,"$appLocales",s),[s,a]=me();R(e,"onChange",3,void 0);var c=mQ(),u=z(c),d=z(u),f=j(u,2),h=z(f);er(h,r,p=>{{let g=_(()=>n()("prefs.language.ui_language.select_language")),m=_(()=>r()??void 0);pl(p,{get"aria-label"(){return l(g)},get value(){return l(m)},onChange:v=>{Ge(ft,{...i(),locale:v.detail.value})},children:(v,b)=>{var y=X(),w=M(y);ot(w,1,o,vr,(E,k)=>{{let S=_(()=>Fi(l(k),{native:!0})),C=_(()=>l(k)===r());Sr(E,{get label(){return l(S)},get value(){return l(k)},get selected(){return l(C)},dir:"auto"})}}),$(v,y)},$$slots:{default:!0}})}}),Z(p=>te(d,p),[()=>n()("prefs.language.ui_language.title")]),$(t,c),ce(),a()}var bQ=U('<section><h4> </h4> <p><!></p> <div role="none"><!></div></section>');function _Q(t,e){le(e,!0);const n=()=>V(ue,"$_",i),r=()=>V(ft,"$prefs",i),[i,o]=me();let s=R(e,"onChange",3,void 0);const a=_(()=>{const{providers:d=[]}=$P();return Object.entries(Xh).filter(([f])=>d.includes(f))});var c=X(),u=M(c);ot(u,17,()=>l(a),([d,f])=>d,(d,f)=>{var h=_(()=>So(l(f),2));let p=()=>l(h)[0],g=()=>l(h)[1];const m=_(()=>{const{serviceLabel:x,developerURL:T,apiKeyURL:A}=g();return{serviceLabel:x,developerURL:T,apiKeyURL:A}});var v=bQ(),b=z(v),y=z(b),w=j(b,2),E=z(w);gr(E,()=>Dr.sanitize(n()("prefs.media.stock_photos.description",{values:{service:l(m).serviceLabel,homeHref:`href="${l(m).developerURL}"`,apiKeyHref:`href="${l(m).apiKeyURL}"`}}),{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","target","rel"]}));var k=j(w,2),S=z(k);{var C=x=>{{let T=_(()=>n()("prefs.media.stock_photos.field_label",{values:{service:l(m).serviceLabel}}));Nn(x,{flex:!0,monospace:!0,spellcheck:"false",get"aria-label"(){return l(T)},onchange:()=>{s()?.({message:n()(r().apiKeys?.[p()]?"prefs.changes.api_key_saved":"prefs.changes.api_key_removed")})},get value(){return r().apiKeys[p()]},set value(A){yt(ft,Ee(r).apiKeys[p()]=A,Ee(r))}})}};q(S,x=>{r().apiKeys&&x(C)})}Z(x=>te(y,x),[()=>n()("prefs.media.stock_photos.title",{values:{service:l(m).serviceLabel}})]),$(d,v)},d=>{var f=Oe();Z(h=>te(f,h),[()=>n()("prefs.media.stock_photos.providers_disabled")]),$(d,f)}),$(t,c),ce(),o()}const Qh=sn([$t],([t])=>[{key:"appearance",icon:"palette",component:uQ},{key:"language",icon:"language",component:vQ},{key:"contents",icon:"library_books",component:fQ},{key:"i18n",icon:"translate",component:gQ,enabled:(t?.i18n?.locales?.length??0)>1},{key:"media",icon:"photo_library",component:_Q},{key:"accessibility",icon:"accessibility_new",component:oQ},{key:"advanced",icon:"build",component:lQ}]);var yQ=U('<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>'),wQ=U("<!> <!>",1);const xQ={hash:"svelte-pwxwga",code:".wrapper.svelte-pwxwga {display:flex;}.wrapper.svelte-pwxwga .sui.tab-list {flex:none;}.wrapper.svelte-pwxwga .sui.tab-panel {flex:auto;border-width:0;}.wrapper.svelte-pwxwga .sui.tab-panel section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel p {margin-top:0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 {font-size:inherit;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ div {margin:8px 0 0;}.wrapper.svelte-pwxwga .sui.tab-panel h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function kQ(t,e){le(e,!0),ke(t,xQ);const n=()=>V(ue,"$_",r),[r,i]=me();let o=R(e,"open",15,!1),s=R(e,"onClose",3,void 0),a=ie("appearance"),c=ie(""),u=ie(!1);var d=wQ(),f=M(d);{let p=_(()=>n()("settings"));ji(f,{get title(){return l(p)},size:"large",showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{s()?.()},get open(){return o()},set open(g){o(g)},children:(g,m)=>{var v=yQ(),b=z(v);{let w=_(()=>n()("categories"));u4(b,{orientation:"vertical",get"aria-label"(){return l(w)},children:(E,k)=>{var S=X(),C=M(S);ot(C,17,()=>ae(Qh),({key:x,icon:T,enabled:A=!0})=>x,(x,T)=>{let A=()=>l(T).key,P=()=>l(T).icon,L=Bb(()=>tt(l(T).enabled,!0));var I=X(),N=M(I);{var D=B=>{{const H=O=>{Je(O,{get name(){return P()}})};let W=_(()=>n()(`prefs.${A()}.title`)),Y=_(()=>A()===l(a));p4(B,{get label(){return l(W)},get selected(){return l(Y)},get"aria-controls"(){return`prefs-tab-${A()??""}`},onSelect:()=>{G(a,A(),!0)},startIcon:H,$$slots:{startIcon:!0}})}};q(N,B=>{l(L)&&B(D)})}$(x,I)}),$(E,S)},$$slots:{default:!0}})}var y=j(b,2);ot(y,17,()=>ae(Qh),({key:w,component:E})=>w,(w,E)=>{let k=()=>l(E).key,S=()=>l(E).component;h4(w,{get id(){return`prefs-tab-${k()??""}`},children:(C,x)=>{var T=X(),A=M(T);Hn(A,S,(P,L)=>{L(P,{onChange:({message:I})=>{G(c,I,!0),G(u,!0)}})}),$(C,T)},$$slots:{default:!0}})}),$(g,v)},$$slots:{default:!0}})}var h=j(f,2);Zn(h,{get show(){return l(u)},set show(p){G(u,p,!0)},children:(p,g)=>{Rn(p,{status:"success",children:(m,v)=>{var b=Oe();Z(()=>te(b,l(c))),$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,d),ce(),i()}var SQ=U("<!> <!>",1),EQ=U("<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>",1),$Q=U("<!> <!>",1);function XP(t,e){le(e,!0);const n=()=>V(Vc,"$backendName",u),r=()=>V(ue,"$_",u),i=()=>V(Gn,"$user",u),o=()=>V(ft,"$prefs",u),s=()=>V(wn,"$backend",u),a=()=>V(cn,"$isSmallScreen",u),c=()=>V(YP,"$canShowMobileSignInDialog",u),[u,d]=me();let f=ie(!1);const h=_(()=>n()==="local"),p=_(()=>n()==="test-repo");var g=$Q(),m=M(g);{let b=_(()=>r()("account"));ar(m,{get"aria-label"(){return l(b)},children:(y,w)=>{var E=EQ(),k=M(E);{let Y=_(()=>l(h)?r()("working_with_local_repo"):l(p)?r()("working_with_test_repo"):r()("signed_in_as_x",{values:{name:i()?.login}})),O=_(()=>l(h)||l(p));gt(k,{get label(){return l(Y)},get disabled(){return l(O)},onclick:()=>{window.open(i()?.profileURL,"_blank")}})}var S=j(k,2);Jr(S,{});var C=j(S,2);{let Y=_(()=>r()("live_site"));gt(C,{get label(){return l(Y)},onclick:()=>{P2()}})}var x=j(C,2);{var T=Y=>{var O=SQ(),F=M(O);{let J=_(()=>r()("git_repository")),Q=_(()=>!s()?.repository?.treeBaseURL);gt(F,{get label(){return l(J)},get disabled(){return l(Q)},onclick:()=>{window.open(s()?.repository?.treeBaseURL)}})}var K=j(F,2);{let J=_(()=>r()("site_config"));gt(K,{get label(){return l(J)},onclick:()=>{Ht("/config",{transitionType:"forwards"})}})}$(Y,O)};q(x,Y=>{o().devModeEnabled&&Y(T)})}var A=j(x,2);Jr(A,{});var P=j(A,2);{let Y=_(()=>r()("settings"));gt(P,{get label(){return l(Y)},onclick:()=>{a()?Ht("/settings",{transitionType:"forwards"}):G(f,!0)}})}var L=j(P,2);rQ(L,{get menuButton(){return e.menuButton}});var I=j(L,2);{var N=Y=>{JZ(Y,{})};q(I,Y=>{o().devModeEnabled&&Y(N)})}var D=j(I,2);{var B=Y=>{{let O=_(()=>r()("sign_in_with_mobile"));gt(Y,{get label(){return l(O)},onclick:()=>{Ge(Zh,!0)}})}};q(D,Y=>{c()&&Y(B)})}var H=j(D,2);Jr(H,{});var W=j(H,2);{let Y=_(()=>r()("sign_out"));gt(W,{get label(){return l(Y)},onclick:async()=>{window.requestAnimationFrame(()=>{K6()})}})}$(y,E)},$$slots:{default:!0}})}var v=j(m,2);kQ(v,{onClose:()=>{e.menuButton?.focus()},get open(){return l(f)},set open(b){G(f,b,!0)}}),$(t,g),ce(),d()}var TQ=U('<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>'),CQ=U('<div role="none" class="wrapper svelte-q0ng4j"><!></div>');const AQ={hash:"svelte-q0ng4j",code:".wrapper.svelte-q0ng4j {display:contents;}.wrapper.svelte-q0ng4j button.avatar {border-width:0;background-color:transparent;}.avatar.svelte-q0ng4j {width:32px;height:32px;border-radius:32px;object-fit:cover;}"};function PQ(t,e){le(e,!0),ke(t,AQ);const n=()=>V(Gn,"$user",i),r=()=>V(ue,"$_",i),[i,o]=me();let s=ie(void 0);const a=_(()=>!!n()?.avatarURL);var c=CQ(),u=z(c);{const d=g=>{var m=X(),v=M(m);{var b=w=>{var E=TQ();Z(()=>Se(E,"src",n()?.avatarURL)),$(w,E)},y=w=>{Je(w,{name:"account_circle"})};q(v,w=>{l(a)?w(b):w(y,!1)})}$(g,m)},f=g=>{XP(g,{get menuButton(){return l(s)}})};let h=_(()=>l(a)?"avatar":""),p=_(()=>r()("show_account_menu"));bt(Mr(u,{variant:"ghost",iconic:!0,get class(){return l(h)},popupPosition:"bottom-right",get"aria-label"(){return l(p)},endIcon:d,popup:f,$$slots:{endIcon:!0,popup:!0}}),g=>G(s,g,!0),()=>l(s))}$(t,c),ce(),o()}var LQ=U("<!> <!>",1),NQ=U("<!> <!>",1);function IQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me(),o=_(()=>Qs({visible:!0,type:"entry"}));{const s=u=>{Je(u,{name:"add"})},a=u=>{{let d=_(()=>n()("create_entry_or_assets"));ar(u,{get"aria-label"(){return l(d)},children:(f,h)=>{var p=NQ(),g=M(p);{var m=b=>{var y=LQ(),w=M(y);ot(w,17,()=>l(o),k=>k.name,(k,S)=>{const C=_(()=>{const{name:x,label:T,label_singular:A,create:P=!1,limit:L=1/0}=l(S);return{name:x,label:T,labelSingular:A,create:P,limit:L}});{let x=_(()=>l(C).labelSingular||l(C).label||l(C).name),T=_(()=>!l(C).create||zo(l(C).name).length>=l(C).limit);gt(k,{get label(){return l(x)},get disabled(){return l(T)},onclick:()=>{Ht(`/collections/${l(C).name}/new`,{transitionType:"forwards"})}})}});var E=j(w,2);Jr(E,{}),$(b,y)};q(g,b=>{l(o).length&&b(m)})}var v=j(g,2);{let b=_(()=>n()("assets"));gt(v,{get label(){return l(b)},onclick:async()=>{Ht("/assets",{transitionType:"forwards"}),await Lt(100),Ge(xs,!0)}})}$(f,p)},$$slots:{default:!0}})}};let c=_(()=>n()("create_entry_or_assets"));Mr(t,{variant:"ghost",iconic:!0,popupPosition:"bottom-right",get"aria-label"(){return l(c)},endIcon:s,popup:a,$$slots:{endIcon:!0,popup:!0}})}ce(),i()}function OQ(t,e){le(e,!0);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{Je(a,{name:"notifications"})};let s=_(()=>n()("show_notifications"));Ze(t,{variant:"ghost",iconic:!0,hidden:!0,get"aria-label"(){return l(s)},onclick:()=>{},startIcon:o,$$slots:{startIcon:!0}})}ce(),i()}var RQ=U('<img loading="lazy" alt="" class="logo svelte-15c9hhi"/>');const DQ={hash:"svelte-15c9hhi",code:"img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}"};function MQ(t,e){le(e,!0),ke(t,DQ);const n=()=>V($t,"$siteConfig",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=X(),a=M(s);{var c=u=>{{let d=_(()=>r()("visit_live_site"));Ze(u,{variant:"ghost",iconic:!0,get"aria-label"(){return l(d)},onclick:()=>{P2()},children:(f,h)=>{var p=RQ();Z(()=>Se(p,"src",n().logo_url)),$(f,p)},$$slots:{default:!0}})}};q(a,u=>{n()?.logo_url&&u(c)})}$(t,s),ce(),o()}var FQ=U('<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>',1),zQ=U('<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>');const jQ={hash:"svelte-1kz79fh",code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh {display:none;}
|
|
653
653
|
@media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar {padding:0 4px;}
|
|
654
654
|
}.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .buttons {flex:auto;display:flex;align-items:center;width:50%;}.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .buttons:last-child {justify-content:flex-end;}.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .sui.search-bar {flex:none;width:640px;max-width:50%;}
|
|
655
655
|
@media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar .sui.search-bar {flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;max-width:none;}
|
|
656
|
-
}`};function jQ(t,e){le(e,!0),ke(t,zQ);const n=()=>V(ow,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=FQ(),a=z(s);{let c=_(()=>r()("global"));Ei(a,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=MQ(),h=M(f),p=z(h);DQ(p,{});var g=j(p,2);JP(g,{});var m=j(h,2);ag(m,{});var v=j(m,2),b=z(v);GP(b,{});var y=j(b,2);NQ(y,{});var w=j(y,2);IQ(w,{});var E=j(w,2);q(E,S=>{});var k=j(E,2);AQ(k,{}),$(u,f)},$$slots:{default:!0}})}Z(()=>s.inert=n()),$(t,s),ce(),o()}var BQ=U('<h2 role="none"> </h2> <!>',1),UQ=U('<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>');const qQ={hash:"svelte-16cq5v7",code:".wrapper.svelte-16cq5v7 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;}h3.svelte-16cq5v7 {padding:8px 16px;background-color:var(--sui-tertiary-background-color);color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-normal);}"};function VQ(t,e){le(e,!0),ke(t,qQ);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{nf(a,{primaryToolbar:d=>{Ei(d,{variant:"primary",children:(f,h)=>{var p=BQ(),g=M(p),m=z(g),v=j(g,2);Xr(v,{flex:!0}),Z(b=>te(m,b),[()=>n()("menu")]),$(f,p)},$$slots:{default:!0}})},mainContent:d=>{var f=UQ(),h=z(f),p=z(h),g=z(p),m=j(p,2);XP(m,{});var v=j(h,2);q(v,b=>{}),Z(b=>te(g,b),[()=>n()("account")]),$(d,f)},$$slots:{primaryToolbar:!0,mainContent:!0}})};let s=_(()=>n()("menu"));_l(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var Nl={},Tm,Xk;function HQ(){return Xk||(Xk=1,Tm=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Tm}var Cm={},ys={},Zk;function yl(){if(Zk)return ys;Zk=1;let t;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return ys.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},ys.getSymbolTotalCodewords=function(r){return e[r]},ys.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},ys.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},ys.isKanjiModeEnabled=function(){return typeof t<"u"},ys.toSJIS=function(r){return t(r)},ys}var Am={},Qk;function Ew(){return Qk||(Qk=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(Am)),Am}var Pm,eS;function KQ(){if(eS)return Pm;eS=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Pm=t,Pm}var Lm,tS;function GQ(){if(tS)return Lm;tS=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,r,i){const o=e*this.size+n;this.data[o]=r,i&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},Lm=t,Lm}var Nm={},nS;function WQ(){return nS||(nS=1,(function(t){const e=yl().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let c=1;c<i-1;c++)a[c]=a[c-1]-s;return a.push(6),a.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let c=0;c<s;c++)a===0&&c===0||a===0&&c===s-1||a===s-1&&c===0||i.push([o[a],o[c]]);return i}})(Nm)),Nm}var Im={},rS;function YQ(){if(rS)return Im;rS=1;const t=yl().getSymbolSize,e=7;return Im.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},Im}var Om={},iS;function JQ(){return iS||(iS=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let s=0,a=0,c=0,u=null,d=null;for(let f=0;f<o;f++){a=c=0,u=d=null;for(let h=0;h<o;h++){let p=i.get(f,h);p===u?a++:(a>=5&&(s+=e.N1+(a-5)),u=p,a=1),p=i.get(h,f),p===d?c++:(c>=5&&(s+=e.N1+(c-5)),d=p,c=1)}a>=5&&(s+=e.N1+(a-5)),c>=5&&(s+=e.N1+(c-5))}return s},t.getPenaltyN2=function(i){const o=i.size;let s=0;for(let a=0;a<o-1;a++)for(let c=0;c<o-1;c++){const u=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(u===4||u===0)&&s++}return s*e.N2},t.getPenaltyN3=function(i){const o=i.size;let s=0,a=0,c=0;for(let u=0;u<o;u++){a=c=0;for(let d=0;d<o;d++)a=a<<1&2047|i.get(u,d),d>=10&&(a===1488||a===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*e.N3},t.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let c=0;c<s;c++)o+=i.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const s=o.size;for(let a=0;a<s;a++)for(let c=0;c<s;c++)o.isReserved(c,a)||o.xor(c,a,n(i,c,a))},t.getBestMask=function(i,o){const s=Object.keys(t.Patterns).length;let a=0,c=1/0;for(let u=0;u<s;u++){o(u),t.applyMask(u,i);const d=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(u,i),d<c&&(c=d,a=u)}return a}})(Om)),Om}var Rf={},oS;function ZP(){if(oS)return Rf;oS=1;const t=Ew(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Rf.getBlocksCount=function(i,o){switch(o){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},Rf.getTotalCodewordsCount=function(i,o){switch(o){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},Rf}var Rm={},_u={},sS;function XQ(){if(sS)return _u;sS=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),_u.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},_u.exp=function(r){return t[r]},_u.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},_u}var aS;function ZQ(){return aS||(aS=1,(function(t){const e=XQ();t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<i.length;a++)o[s+a]^=e.mul(r[s],i[a]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let c=0;c<i.length;c++)o[c]^=e.mul(i[c],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}})(Rm)),Rm}var Dm,lS;function QQ(){if(lS)return Dm;lS=1;const t=ZQ();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const o=t.mod(i,this.genPoly),s=this.degree-o.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(o,s),a}return o},Dm=e,Dm}var Mm={},Fm={},zm={},cS;function QP(){return cS||(cS=1,zm.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),zm}var ho={},uS;function eL(){if(uS)return ho;uS=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
657
|
-
]))+`;ho.KANJI=new RegExp(n,"g"),ho.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),ho.BYTE=new RegExp(r,"g"),ho.NUMERIC=new RegExp(t,"g"),ho.ALPHANUMERIC=new RegExp(e,"g");const i=new RegExp("^"+n+"$"),o=new RegExp("^"+t+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return ho.testKanji=function(c){return i.test(c)},ho.testNumeric=function(c){return o.test(c)},ho.testAlphanumeric=function(c){return s.test(c)},ho}var dS;function wl(){return dS||(dS=1,(function(t){const e=QP(),n=eL();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+i)}}t.from=function(o,s){if(t.isValid(o))return o;try{return r(o)}catch{return s}}})(Fm)),Fm}var fS;function
|
|
658
|
-
Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),r.put(o,13)}},Hm=n,Hm}var Km={exports:{}},bS;function
|
|
659
|
-
Suggested mode is: `+e.toString(E));switch(w===e.KANJI&&!a.isKanjiModeEnabled()&&(w=e.BYTE),w){case e.NUMERIC:return new n(b);case e.ALPHANUMERIC:return new r(b);case e.KANJI:return new o(b);case e.BYTE:return new i(b)}}t.fromArray=function(y){return y.reduce(function(w,E){return typeof E=="string"?w.push(v(E,null)):E.data&&w.push(v(E.data,E.mode)),w},[])},t.fromString=function(y,w){const E=f(y,a.isKanjiModeEnabled()),k=g(E),S=m(k,w),C=c.find_path(S.map,"start","end"),x=[];for(let T=1;T<C.length-1;T++)x.push(S.table[C[T]].node);return t.fromArray(p(x))},t.rawSplit=function(y){return t.fromArray(f(y,a.isKanjiModeEnabled()))}})(Bm)),Bm}var yS;function
|
|
656
|
+
}`};function BQ(t,e){le(e,!0),ke(t,jQ);const n=()=>V(ow,"$hasOverlay",i),r=()=>V(ue,"$_",i),[i,o]=me();var s=zQ(),a=z(s);{let c=_(()=>r()("global"));Ei(a,{variant:"primary",get"aria-label"(){return l(c)},children:(u,d)=>{var f=FQ(),h=M(f),p=z(h);MQ(p,{});var g=j(p,2);JP(g,{});var m=j(h,2);ag(m,{});var v=j(m,2),b=z(v);GP(b,{});var y=j(b,2);IQ(y,{});var w=j(y,2);OQ(w,{});var E=j(w,2);q(E,S=>{});var k=j(E,2);PQ(k,{}),$(u,f)},$$slots:{default:!0}})}Z(()=>s.inert=n()),$(t,s),ce(),o()}var UQ=U('<h2 role="none"> </h2> <!>',1),qQ=U('<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>');const VQ={hash:"svelte-16cq5v7",code:".wrapper.svelte-16cq5v7 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;}h3.svelte-16cq5v7 {padding:8px 16px;background-color:var(--sui-tertiary-background-color);color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-normal);}"};function HQ(t,e){le(e,!0),ke(t,VQ);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{nf(a,{primaryToolbar:d=>{Ei(d,{variant:"primary",children:(f,h)=>{var p=UQ(),g=M(p),m=z(g),v=j(g,2);Xr(v,{flex:!0}),Z(b=>te(m,b),[()=>n()("menu")]),$(f,p)},$$slots:{default:!0}})},mainContent:d=>{var f=qQ(),h=z(f),p=z(h),g=z(p),m=j(p,2);XP(m,{});var v=j(h,2);q(v,b=>{}),Z(b=>te(g,b),[()=>n()("account")]),$(d,f)},$$slots:{primaryToolbar:!0,mainContent:!0}})};let s=_(()=>n()("menu"));_l(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var Nl={},Tm,Xk;function KQ(){return Xk||(Xk=1,Tm=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Tm}var Cm={},ys={},Zk;function yl(){if(Zk)return ys;Zk=1;let t;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return ys.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},ys.getSymbolTotalCodewords=function(r){return e[r]},ys.getBCHDigit=function(n){let r=0;for(;n!==0;)r++,n>>>=1;return r},ys.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');t=r},ys.isKanjiModeEnabled=function(){return typeof t<"u"},ys.toSJIS=function(r){return t(r)},ys}var Am={},Qk;function Ew(){return Qk||(Qk=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+n)}}t.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},t.from=function(r,i){if(t.isValid(r))return r;try{return e(r)}catch{return i}}})(Am)),Am}var Pm,eS;function GQ(){if(eS)return Pm;eS=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(e){const n=Math.floor(e/8);return(this.buffer[n]>>>7-e%8&1)===1},put:function(e,n){for(let r=0;r<n;r++)this.putBit((e>>>n-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),e&&(this.buffer[n]|=128>>>this.length%8),this.length++}},Pm=t,Pm}var Lm,tS;function WQ(){if(tS)return Lm;tS=1;function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}return t.prototype.set=function(e,n,r,i){const o=e*this.size+n;this.data[o]=r,i&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,n){return this.data[e*this.size+n]},t.prototype.xor=function(e,n,r){this.data[e*this.size+n]^=r},t.prototype.isReserved=function(e,n){return this.reservedBit[e*this.size+n]},Lm=t,Lm}var Nm={},nS;function YQ(){return nS||(nS=1,(function(t){const e=yl().getSymbolSize;t.getRowColCoords=function(r){if(r===1)return[];const i=Math.floor(r/7)+2,o=e(r),s=o===145?26:Math.ceil((o-13)/(2*i-2))*2,a=[o-7];for(let c=1;c<i-1;c++)a[c]=a[c-1]-s;return a.push(6),a.reverse()},t.getPositions=function(r){const i=[],o=t.getRowColCoords(r),s=o.length;for(let a=0;a<s;a++)for(let c=0;c<s;c++)a===0&&c===0||a===0&&c===s-1||a===s-1&&c===0||i.push([o[a],o[c]]);return i}})(Nm)),Nm}var Im={},rS;function JQ(){if(rS)return Im;rS=1;const t=yl().getSymbolSize,e=7;return Im.getPositions=function(r){const i=t(r);return[[0,0],[i-e,0],[0,i-e]]},Im}var Om={},iS;function XQ(){return iS||(iS=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},t.from=function(i){return t.isValid(i)?parseInt(i,10):void 0},t.getPenaltyN1=function(i){const o=i.size;let s=0,a=0,c=0,u=null,d=null;for(let f=0;f<o;f++){a=c=0,u=d=null;for(let h=0;h<o;h++){let p=i.get(f,h);p===u?a++:(a>=5&&(s+=e.N1+(a-5)),u=p,a=1),p=i.get(h,f),p===d?c++:(c>=5&&(s+=e.N1+(c-5)),d=p,c=1)}a>=5&&(s+=e.N1+(a-5)),c>=5&&(s+=e.N1+(c-5))}return s},t.getPenaltyN2=function(i){const o=i.size;let s=0;for(let a=0;a<o-1;a++)for(let c=0;c<o-1;c++){const u=i.get(a,c)+i.get(a,c+1)+i.get(a+1,c)+i.get(a+1,c+1);(u===4||u===0)&&s++}return s*e.N2},t.getPenaltyN3=function(i){const o=i.size;let s=0,a=0,c=0;for(let u=0;u<o;u++){a=c=0;for(let d=0;d<o;d++)a=a<<1&2047|i.get(u,d),d>=10&&(a===1488||a===93)&&s++,c=c<<1&2047|i.get(d,u),d>=10&&(c===1488||c===93)&&s++}return s*e.N3},t.getPenaltyN4=function(i){let o=0;const s=i.data.length;for(let c=0;c<s;c++)o+=i.data[c];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function n(r,i,o){switch(r){case t.Patterns.PATTERN000:return(i+o)%2===0;case t.Patterns.PATTERN001:return i%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(i+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return i*o%2+i*o%3===0;case t.Patterns.PATTERN110:return(i*o%2+i*o%3)%2===0;case t.Patterns.PATTERN111:return(i*o%3+(i+o)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}t.applyMask=function(i,o){const s=o.size;for(let a=0;a<s;a++)for(let c=0;c<s;c++)o.isReserved(c,a)||o.xor(c,a,n(i,c,a))},t.getBestMask=function(i,o){const s=Object.keys(t.Patterns).length;let a=0,c=1/0;for(let u=0;u<s;u++){o(u),t.applyMask(u,i);const d=t.getPenaltyN1(i)+t.getPenaltyN2(i)+t.getPenaltyN3(i)+t.getPenaltyN4(i);t.applyMask(u,i),d<c&&(c=d,a=u)}return a}})(Om)),Om}var Rf={},oS;function ZP(){if(oS)return Rf;oS=1;const t=Ew(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Rf.getBlocksCount=function(i,o){switch(o){case t.L:return e[(i-1)*4+0];case t.M:return e[(i-1)*4+1];case t.Q:return e[(i-1)*4+2];case t.H:return e[(i-1)*4+3];default:return}},Rf.getTotalCodewordsCount=function(i,o){switch(o){case t.L:return n[(i-1)*4+0];case t.M:return n[(i-1)*4+1];case t.Q:return n[(i-1)*4+2];case t.H:return n[(i-1)*4+3];default:return}},Rf}var Rm={},_u={},sS;function ZQ(){if(sS)return _u;sS=1;const t=new Uint8Array(512),e=new Uint8Array(256);return(function(){let r=1;for(let i=0;i<255;i++)t[i]=r,e[r]=i,r<<=1,r&256&&(r^=285);for(let i=255;i<512;i++)t[i]=t[i-255]})(),_u.log=function(r){if(r<1)throw new Error("log("+r+")");return e[r]},_u.exp=function(r){return t[r]},_u.mul=function(r,i){return r===0||i===0?0:t[e[r]+e[i]]},_u}var aS;function QQ(){return aS||(aS=1,(function(t){const e=ZQ();t.mul=function(r,i){const o=new Uint8Array(r.length+i.length-1);for(let s=0;s<r.length;s++)for(let a=0;a<i.length;a++)o[s+a]^=e.mul(r[s],i[a]);return o},t.mod=function(r,i){let o=new Uint8Array(r);for(;o.length-i.length>=0;){const s=o[0];for(let c=0;c<i.length;c++)o[c]^=e.mul(i[c],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},t.generateECPolynomial=function(r){let i=new Uint8Array([1]);for(let o=0;o<r;o++)i=t.mul(i,new Uint8Array([1,e.exp(o)]));return i}})(Rm)),Rm}var Dm,lS;function eee(){if(lS)return Dm;lS=1;const t=QQ();function e(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(r){this.degree=r,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(r.length+this.degree);i.set(r);const o=t.mod(i,this.genPoly),s=this.degree-o.length;if(s>0){const a=new Uint8Array(this.degree);return a.set(o,s),a}return o},Dm=e,Dm}var Mm={},Fm={},zm={},cS;function QP(){return cS||(cS=1,zm.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}),zm}var ho={},uS;function eL(){if(uS)return ho;uS=1;const t="[0-9]+",e="[A-Z $%*+\\-./:]+";let n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";n=n.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+n+`)(?:.|[\r
|
|
657
|
+
]))+`;ho.KANJI=new RegExp(n,"g"),ho.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),ho.BYTE=new RegExp(r,"g"),ho.NUMERIC=new RegExp(t,"g"),ho.ALPHANUMERIC=new RegExp(e,"g");const i=new RegExp("^"+n+"$"),o=new RegExp("^"+t+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return ho.testKanji=function(c){return i.test(c)},ho.testNumeric=function(c){return o.test(c)},ho.testAlphanumeric=function(c){return s.test(c)},ho}var dS;function wl(){return dS||(dS=1,(function(t){const e=QP(),n=eL();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return n.testNumeric(o)?t.NUMERIC:n.testAlphanumeric(o)?t.ALPHANUMERIC:n.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function r(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+i)}}t.from=function(o,s){if(t.isValid(o))return o;try{return r(o)}catch{return s}}})(Fm)),Fm}var fS;function tee(){return fS||(fS=1,(function(t){const e=yl(),n=ZP(),r=Ew(),i=wl(),o=QP(),s=7973,a=e.getBCHDigit(s);function c(h,p,g){for(let m=1;m<=40;m++)if(p<=t.getCapacity(m,g,h))return m}function u(h,p){return i.getCharCountIndicator(h,p)+4}function d(h,p){let g=0;return h.forEach(function(m){const v=u(m.mode,p);g+=v+m.getBitsLength()}),g}function f(h,p){for(let g=1;g<=40;g++)if(d(h,g)<=t.getCapacity(g,p,i.MIXED))return g}t.from=function(p,g){return o.isValid(p)?parseInt(p,10):g},t.getCapacity=function(p,g,m){if(!o.isValid(p))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=i.BYTE);const v=e.getSymbolTotalCodewords(p),b=n.getTotalCodewordsCount(p,g),y=(v-b)*8;if(m===i.MIXED)return y;const w=y-u(m,p);switch(m){case i.NUMERIC:return Math.floor(w/10*3);case i.ALPHANUMERIC:return Math.floor(w/11*2);case i.KANJI:return Math.floor(w/13);case i.BYTE:default:return Math.floor(w/8)}},t.getBestVersionForData=function(p,g){let m;const v=r.from(g,r.M);if(Array.isArray(p)){if(p.length>1)return f(p,v);if(p.length===0)return 1;m=p[0]}else m=p;return c(m.mode,m.getLength(),v)},t.getEncodedBits=function(p){if(!o.isValid(p)||p<7)throw new Error("Invalid QR Code version");let g=p<<12;for(;e.getBCHDigit(g)-a>=0;)g^=s<<e.getBCHDigit(g)-a;return p<<12|g}})(Mm)),Mm}var jm={},hS;function nee(){if(hS)return jm;hS=1;const t=yl(),e=1335,n=21522,r=t.getBCHDigit(e);return jm.getEncodedBits=function(o,s){const a=o.bit<<3|s;let c=a<<10;for(;t.getBCHDigit(c)-r>=0;)c^=e<<t.getBCHDigit(c)-r;return(a<<10|c)^n},jm}var Bm={},Um,pS;function ree(){if(pS)return Um;pS=1;const t=wl();function e(n){this.mode=t.NUMERIC,this.data=n.toString()}return e.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(r){let i,o,s;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),s=parseInt(o,10),r.put(s,10);const a=this.data.length-i;a>0&&(o=this.data.substr(i),s=parseInt(o,10),r.put(s,a*3+1))},Um=e,Um}var qm,gS;function iee(){if(gS)return qm;gS=1;const t=wl(),e=["0","1","2","3","4","5","6","7","8","9","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"," ","$","%","*","+","-",".","/",":"];function n(r){this.mode=t.ALPHANUMERIC,this.data=r}return n.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(i){let o;for(o=0;o+2<=this.data.length;o+=2){let s=e.indexOf(this.data[o])*45;s+=e.indexOf(this.data[o+1]),i.put(s,11)}this.data.length%2&&i.put(e.indexOf(this.data[o]),6)},qm=n,qm}var Vm,mS;function oee(){if(mS)return Vm;mS=1;const t=wl();function e(n){this.mode=t.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}return e.getBitsLength=function(r){return r*8},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(n){for(let r=0,i=this.data.length;r<i;r++)n.put(this.data[r],8)},Vm=e,Vm}var Hm,vS;function see(){if(vS)return Hm;vS=1;const t=wl(),e=yl();function n(r){this.mode=t.KANJI,this.data=r}return n.getBitsLength=function(i){return i*13},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(r){let i;for(i=0;i<this.data.length;i++){let o=e.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
|
|
658
|
+
Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),r.put(o,13)}},Hm=n,Hm}var Km={exports:{}},bS;function aee(){return bS||(bS=1,(function(t){var e={single_source_shortest_paths:function(n,r,i){var o={},s={};s[r]=0;var a=e.PriorityQueue.make();a.push(r,0);for(var c,u,d,f,h,p,g,m,v;!a.empty();){c=a.pop(),u=c.value,f=c.cost,h=n[u]||{};for(d in h)h.hasOwnProperty(d)&&(p=h[d],g=f+p,m=s[d],v=typeof s[d]>"u",(v||m>g)&&(s[d]=g,a.push(d,g),o[d]=u))}if(typeof i<"u"&&typeof s[i]>"u"){var b=["Could not find a path from ",r," to ",i,"."].join("");throw new Error(b)}return o},extract_shortest_path_from_predecessor_list:function(n,r){for(var i=[],o=r;o;)i.push(o),n[o],o=n[o];return i.reverse(),i},find_path:function(n,r,i){var o=e.single_source_shortest_paths(n,r,i);return e.extract_shortest_path_from_predecessor_list(o,i)},PriorityQueue:{make:function(n){var r=e.PriorityQueue,i={},o;n=n||{};for(o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);return i.queue=[],i.sorter=n.sorter||r.default_sorter,i},default_sorter:function(n,r){return n.cost-r.cost},push:function(n,r){var i={value:n,cost:r};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(Km)),Km.exports}var _S;function lee(){return _S||(_S=1,(function(t){const e=wl(),n=ree(),r=iee(),i=oee(),o=see(),s=eL(),a=yl(),c=aee();function u(b){return unescape(encodeURIComponent(b)).length}function d(b,y,w){const E=[];let k;for(;(k=b.exec(w))!==null;)E.push({data:k[0],index:k.index,mode:y,length:k[0].length});return E}function f(b){const y=d(s.NUMERIC,e.NUMERIC,b),w=d(s.ALPHANUMERIC,e.ALPHANUMERIC,b);let E,k;return a.isKanjiModeEnabled()?(E=d(s.BYTE,e.BYTE,b),k=d(s.KANJI,e.KANJI,b)):(E=d(s.BYTE_KANJI,e.BYTE,b),k=[]),y.concat(w,E,k).sort(function(C,x){return C.index-x.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function h(b,y){switch(y){case e.NUMERIC:return n.getBitsLength(b);case e.ALPHANUMERIC:return r.getBitsLength(b);case e.KANJI:return o.getBitsLength(b);case e.BYTE:return i.getBitsLength(b)}}function p(b){return b.reduce(function(y,w){const E=y.length-1>=0?y[y.length-1]:null;return E&&E.mode===w.mode?(y[y.length-1].data+=w.data,y):(y.push(w),y)},[])}function g(b){const y=[];for(let w=0;w<b.length;w++){const E=b[w];switch(E.mode){case e.NUMERIC:y.push([E,{data:E.data,mode:e.ALPHANUMERIC,length:E.length},{data:E.data,mode:e.BYTE,length:E.length}]);break;case e.ALPHANUMERIC:y.push([E,{data:E.data,mode:e.BYTE,length:E.length}]);break;case e.KANJI:y.push([E,{data:E.data,mode:e.BYTE,length:u(E.data)}]);break;case e.BYTE:y.push([{data:E.data,mode:e.BYTE,length:u(E.data)}])}}return y}function m(b,y){const w={},E={start:{}};let k=["start"];for(let S=0;S<b.length;S++){const C=b[S],x=[];for(let T=0;T<C.length;T++){const A=C[T],P=""+S+T;x.push(P),w[P]={node:A,lastCount:0},E[P]={};for(let L=0;L<k.length;L++){const I=k[L];w[I]&&w[I].node.mode===A.mode?(E[I][P]=h(w[I].lastCount+A.length,A.mode)-h(w[I].lastCount,A.mode),w[I].lastCount+=A.length):(w[I]&&(w[I].lastCount=A.length),E[I][P]=h(A.length,A.mode)+4+e.getCharCountIndicator(A.mode,y))}}k=x}for(let S=0;S<k.length;S++)E[k[S]].end=0;return{map:E,table:w}}function v(b,y){let w;const E=e.getBestModeForData(b);if(w=e.from(y,E),w!==e.BYTE&&w.bit<E.bit)throw new Error('"'+b+'" cannot be encoded with mode '+e.toString(w)+`.
|
|
659
|
+
Suggested mode is: `+e.toString(E));switch(w===e.KANJI&&!a.isKanjiModeEnabled()&&(w=e.BYTE),w){case e.NUMERIC:return new n(b);case e.ALPHANUMERIC:return new r(b);case e.KANJI:return new o(b);case e.BYTE:return new i(b)}}t.fromArray=function(y){return y.reduce(function(w,E){return typeof E=="string"?w.push(v(E,null)):E.data&&w.push(v(E.data,E.mode)),w},[])},t.fromString=function(y,w){const E=f(y,a.isKanjiModeEnabled()),k=g(E),S=m(k,w),C=c.find_path(S.map,"start","end"),x=[];for(let T=1;T<C.length-1;T++)x.push(S.table[C[T]].node);return t.fromArray(p(x))},t.rawSplit=function(y){return t.fromArray(f(y,a.isKanjiModeEnabled()))}})(Bm)),Bm}var yS;function cee(){if(yS)return Cm;yS=1;const t=yl(),e=Ew(),n=GQ(),r=WQ(),i=YQ(),o=JQ(),s=XQ(),a=ZP(),c=eee(),u=tee(),d=nee(),f=wl(),h=lee();function p(S,C){const x=S.size,T=o.getPositions(C);for(let A=0;A<T.length;A++){const P=T[A][0],L=T[A][1];for(let I=-1;I<=7;I++)if(!(P+I<=-1||x<=P+I))for(let N=-1;N<=7;N++)L+N<=-1||x<=L+N||(I>=0&&I<=6&&(N===0||N===6)||N>=0&&N<=6&&(I===0||I===6)||I>=2&&I<=4&&N>=2&&N<=4?S.set(P+I,L+N,!0,!0):S.set(P+I,L+N,!1,!0))}}function g(S){const C=S.size;for(let x=8;x<C-8;x++){const T=x%2===0;S.set(x,6,T,!0),S.set(6,x,T,!0)}}function m(S,C){const x=i.getPositions(C);for(let T=0;T<x.length;T++){const A=x[T][0],P=x[T][1];for(let L=-2;L<=2;L++)for(let I=-2;I<=2;I++)L===-2||L===2||I===-2||I===2||L===0&&I===0?S.set(A+L,P+I,!0,!0):S.set(A+L,P+I,!1,!0)}}function v(S,C){const x=S.size,T=u.getEncodedBits(C);let A,P,L;for(let I=0;I<18;I++)A=Math.floor(I/3),P=I%3+x-8-3,L=(T>>I&1)===1,S.set(A,P,L,!0),S.set(P,A,L,!0)}function b(S,C,x){const T=S.size,A=d.getEncodedBits(C,x);let P,L;for(P=0;P<15;P++)L=(A>>P&1)===1,P<6?S.set(P,8,L,!0):P<8?S.set(P+1,8,L,!0):S.set(T-15+P,8,L,!0),P<8?S.set(8,T-P-1,L,!0):P<9?S.set(8,15-P-1+1,L,!0):S.set(8,15-P-1,L,!0);S.set(T-8,8,1,!0)}function y(S,C){const x=S.size;let T=-1,A=x-1,P=7,L=0;for(let I=x-1;I>0;I-=2)for(I===6&&I--;;){for(let N=0;N<2;N++)if(!S.isReserved(A,I-N)){let D=!1;L<C.length&&(D=(C[L]>>>P&1)===1),S.set(A,I-N,D),P--,P===-1&&(L++,P=7)}if(A+=T,A<0||x<=A){A-=T,T=-T;break}}}function w(S,C,x){const T=new n;x.forEach(function(N){T.put(N.mode.bit,4),T.put(N.getLength(),f.getCharCountIndicator(N.mode,S)),N.write(T)});const A=t.getSymbolTotalCodewords(S),P=a.getTotalCodewordsCount(S,C),L=(A-P)*8;for(T.getLengthInBits()+4<=L&&T.put(0,4);T.getLengthInBits()%8!==0;)T.putBit(0);const I=(L-T.getLengthInBits())/8;for(let N=0;N<I;N++)T.put(N%2?17:236,8);return E(T,S,C)}function E(S,C,x){const T=t.getSymbolTotalCodewords(C),A=a.getTotalCodewordsCount(C,x),P=T-A,L=a.getBlocksCount(C,x),I=T%L,N=L-I,D=Math.floor(T/L),B=Math.floor(P/L),H=B+1,W=D-B,Y=new c(W);let O=0;const F=new Array(L),K=new Array(L);let J=0;const Q=new Uint8Array(S.buffer);for(let se=0;se<L;se++){const fe=se<N?B:H;F[se]=Q.slice(O,O+fe),K[se]=Y.encode(F[se]),O+=fe,J=Math.max(J,fe)}const oe=new Uint8Array(T);let re=0,ee,ne;for(ee=0;ee<J;ee++)for(ne=0;ne<L;ne++)ee<F[ne].length&&(oe[re++]=F[ne][ee]);for(ee=0;ee<W;ee++)for(ne=0;ne<L;ne++)oe[re++]=K[ne][ee];return oe}function k(S,C,x,T){let A;if(Array.isArray(S))A=h.fromArray(S);else if(typeof S=="string"){let D=C;if(!D){const B=h.rawSplit(S);D=u.getBestVersionForData(B,x)}A=h.fromString(S,D||40)}else throw new Error("Invalid data");const P=u.getBestVersionForData(A,x);if(!P)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=P;else if(C<P)throw new Error(`
|
|
660
660
|
The chosen QR Code version cannot contain this amount of data.
|
|
661
661
|
Minimum version required to store current data is: `+P+`.
|
|
662
|
-
`);const L=w(C,x,A),I=t.getSymbolSize(C),N=new r(I);return p(N,C),g(N),m(N,C),b(N,x,0),C>=7&&v(N,C),y(N,L),isNaN(T)&&(T=s.getBestMask(N,b.bind(null,N,x))),s.applyMask(T,N),b(N,x,T),{modules:N,version:C,errorCorrectionLevel:x,maskPattern:T,segments:A}}return Cm.create=function(C,x){if(typeof C>"u"||C==="")throw new Error("No input text");let T=e.M,A,P;return typeof x<"u"&&(T=e.from(x.errorCorrectionLevel,e.M),A=u.from(x.version),P=s.from(x.maskPattern),x.toSJISFunc&&t.setToSJISFunction(x.toSJISFunc)),k(C,A,T,P)},Cm}var Gm={},Wm={},wS;function tL(){return wS||(wS=1,(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},t.getImageWidth=function(r,i){const o=t.getScale(r,i);return Math.floor((r+i.margin*2)*o)},t.qrToImageData=function(r,i,o){const s=i.modules.size,a=i.modules.data,c=t.getScale(s,o),u=Math.floor((s+o.margin*2)*c),d=o.margin*c,f=[o.color.light,o.color.dark];for(let h=0;h<u;h++)for(let p=0;p<u;p++){let g=(h*u+p)*4,m=o.color.light;if(h>=d&&p>=d&&h<u-d&&p<u-d){const v=Math.floor((h-d)/c),b=Math.floor((p-d)/c);m=f[a[v*s+b]?1:0]}r[g++]=m.r,r[g++]=m.g,r[g++]=m.b,r[g]=m.a}}})(Wm)),Wm}var xS;function
|
|
663
|
-
`;return typeof a=="function"&&a(null,v),v},Ym}var SS;function
|
|
662
|
+
`);const L=w(C,x,A),I=t.getSymbolSize(C),N=new r(I);return p(N,C),g(N),m(N,C),b(N,x,0),C>=7&&v(N,C),y(N,L),isNaN(T)&&(T=s.getBestMask(N,b.bind(null,N,x))),s.applyMask(T,N),b(N,x,T),{modules:N,version:C,errorCorrectionLevel:x,maskPattern:T,segments:A}}return Cm.create=function(C,x){if(typeof C>"u"||C==="")throw new Error("No input text");let T=e.M,A,P;return typeof x<"u"&&(T=e.from(x.errorCorrectionLevel,e.M),A=u.from(x.version),P=s.from(x.maskPattern),x.toSJISFunc&&t.setToSJISFunction(x.toSJISFunc)),k(C,A,T,P)},Cm}var Gm={},Wm={},wS;function tL(){return wS||(wS=1,(function(t){function e(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let r=n.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+n);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(o){return[o,o]}))),r.length===6&&r.push("F","F");const i=parseInt(r.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+r.slice(0,6).join("")}}t.getOptions=function(r){r||(r={}),r.color||(r.color={});const i=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,o=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:o,scale:o?4:s,margin:i,color:{dark:e(r.color.dark||"#000000ff"),light:e(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},t.getScale=function(r,i){return i.width&&i.width>=r+i.margin*2?i.width/(r+i.margin*2):i.scale},t.getImageWidth=function(r,i){const o=t.getScale(r,i);return Math.floor((r+i.margin*2)*o)},t.qrToImageData=function(r,i,o){const s=i.modules.size,a=i.modules.data,c=t.getScale(s,o),u=Math.floor((s+o.margin*2)*c),d=o.margin*c,f=[o.color.light,o.color.dark];for(let h=0;h<u;h++)for(let p=0;p<u;p++){let g=(h*u+p)*4,m=o.color.light;if(h>=d&&p>=d&&h<u-d&&p<u-d){const v=Math.floor((h-d)/c),b=Math.floor((p-d)/c);m=f[a[v*s+b]?1:0]}r[g++]=m.r,r[g++]=m.g,r[g++]=m.b,r[g]=m.a}}})(Wm)),Wm}var xS;function uee(){return xS||(xS=1,(function(t){const e=tL();function n(i,o,s){i.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(o,s,a){let c=a,u=s;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),s||(u=r()),c=e.getOptions(c);const d=e.getImageWidth(o.modules.size,c),f=u.getContext("2d"),h=f.createImageData(d,d);return e.qrToImageData(h.data,o,c),n(f,u,d),f.putImageData(h,0,0),u},t.renderToDataURL=function(o,s,a){let c=a;typeof c>"u"&&(!s||!s.getContext)&&(c=s,s=void 0),c||(c={});const u=t.render(o,s,c),d=c.type||"image/png",f=c.rendererOpts||{};return u.toDataURL(d,f.quality)}})(Gm)),Gm}var Ym={},kS;function dee(){if(kS)return Ym;kS=1;const t=tL();function e(i,o){const s=i.a/255,a=o+'="'+i.hex+'"';return s<1?a+" "+o+'-opacity="'+s.toFixed(2).slice(1)+'"':a}function n(i,o,s){let a=i+o;return typeof s<"u"&&(a+=" "+s),a}function r(i,o,s){let a="",c=0,u=!1,d=0;for(let f=0;f<i.length;f++){const h=Math.floor(f%o),p=Math.floor(f/o);!h&&!u&&(u=!0),i[f]?(d++,f>0&&h>0&&i[f-1]||(a+=u?n("M",h+s,.5+p+s):n("m",c,0),c=0,u=!1),h+1<o&&i[f+1]||(a+=n("h",d),d=0)):c++}return a}return Ym.render=function(o,s,a){const c=t.getOptions(s),u=o.modules.size,d=o.modules.data,f=u+c.margin*2,h=c.color.light.a?"<path "+e(c.color.light,"fill")+' d="M0 0h'+f+"v"+f+'H0z"/>':"",p="<path "+e(c.color.dark,"stroke")+' d="'+r(d,u,c.margin)+'"/>',g='viewBox="0 0 '+f+" "+f+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(c.width?'width="'+c.width+'" height="'+c.width+'" ':"")+g+' shape-rendering="crispEdges">'+h+p+`</svg>
|
|
663
|
+
`;return typeof a=="function"&&a(null,v),v},Ym}var SS;function fee(){if(SS)return Nl;SS=1;const t=KQ(),e=cee(),n=uee(),r=dee();function i(o,s,a,c,u){const d=[].slice.call(arguments,1),f=d.length,h=typeof d[f-1]=="function";if(!h&&!t())throw new Error("Callback required as last argument");if(h){if(f<2)throw new Error("Too few arguments provided");f===2?(u=a,a=s,s=c=void 0):f===3&&(s.getContext&&typeof u>"u"?(u=c,c=void 0):(u=c,c=a,a=s,s=void 0))}else{if(f<1)throw new Error("Too few arguments provided");return f===1?(a=s,s=c=void 0):f===2&&!s.getContext&&(c=a,a=s,s=void 0),new Promise(function(p,g){try{const m=e.create(a,c);p(o(m,s,c))}catch(m){g(m)}})}try{const p=e.create(a,c);u(null,o(p,s,c))}catch(p){u(p)}}return Nl.create=e.create,Nl.toCanvas=i.bind(null,n.render),Nl.toDataURL=i.bind(null,n.renderToDataURL),Nl.toString=i.bind(null,function(o,s,a){return r.render(o,a)}),Nl}var hee=fee(),pee=U('<div> </div> <canvas class="svelte-1eeac91"></canvas>',1);const gee={hash:"svelte-1eeac91",code:"canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}"};function mee(t,e){le(e,!0),ke(t,gee);const n=()=>V(Zh,"$showMobileSignInDialog",s),r=()=>V(Gn,"$user",s),i=()=>V(ft,"$prefs",s),o=()=>V(ue,"$_",s),[s,a]=me();let c=ie(void 0);De(()=>{if(l(c)&&n()){const{origin:u,pathname:d}=window.location,f=btoa(JSON.stringify({token:r()?.token,prefs:i()}));hee.toCanvas(l(c),`${u}${d}#/signin/${f}`)}});{let u=_(()=>o()("sign_in_with_mobile"));ji(t,{get title(){return l(u)},size:"small",showOk:!1,showCancel:!1,showClose:!0,style:"--sui-dialog-small-content-max-height:auto",get open(){return Wb(),n()},set open(d){Ge(Zh,d)},children:(d,f)=>{var h=pee(),p=M(h),g=z(p),m=j(p,2);bt(m,v=>G(c,v),()=>l(c)),Z(v=>te(g,v),[()=>o()("sign_in_with_mobile_instruction")]),$(d,h)},$$slots:{default:!0}})}ce(),a()}var vee=U('<div role="none" class="label"><!></div>'),bee=U("<!> <!> <!>",1);function _ee(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",r),[r,i]=me(),o=_(()=>e.asset.path),s=_(()=>e.asset.name),a=_(()=>e.asset.folder),c=_(()=>e.asset.kind);zd(t,{onclick:()=>{Ht(`/assets/${l(o)}`,{transitionType:"forwards"})},children:(u,d)=>{var f=bee(),h=M(f);_i(h,{class:"image",children:(m,v)=>{Ro(m,{get kind(){return l(c)},get asset(){return e.asset},variant:"icon",cover:!0})},$$slots:{default:!0}});var p=j(h,2);_i(p,{class:"collection",children:(m,v)=>{var b=X(),y=M(b);er(y,n,w=>{var E=Oe();Z(k=>te(E,k),[()=>og(l(a))]),$(w,E)}),$(m,b)},$$slots:{default:!0}});var g=j(p,2);_i(g,{class:"title",children:(m,v)=>{var b=vee(),y=z(b);Cr(y,{lines:2,children:(w,E)=>{var k=Oe();Z(()=>te(k,l(s))),$(w,k)},$$slots:{default:!0}}),$(m,b)},$$slots:{default:!0}}),$(u,f)},$$slots:{default:!0}}),ce(),i()}const yee=({assets:t,terms:e})=>(e=rf(e),!t.length||!e?[]:t.filter(n=>Dl({value:n.name,terms:e}))),wee=sn([Mn,ss],([t,e])=>yee({assets:t,terms:e}));var xee=U('<span role="none"> </span>'),kee=U('<h3 role="none" id="search-results-assets"> </h3> <div role="none"><!></div>',1);function See(t,e){le(e,!0);const n=()=>V(wee,"$assetSearchResults",o),r=()=>V(ue,"$_",o),i=()=>V(ss,"$searchTerms",o),[o,s]=me();De(()=>{const a=n().length;Ge(oi,r()("viewing_asset_search_results",{values:{terms:i(),assets:a>1?r()("many_assets",{values:{count:a}}):a===1?r()("one_asset"):r()("no_assets")}}))}),Ao(t,{"aria-labelledby":"search-results-assets",children:(a,c)=>{var u=kee(),d=M(u),f=z(d),h=j(d,2),p=z(h);{var g=v=>{{let b=_(()=>r()("assets"));tf(v,{viewType:"list",get"aria-label"(){return l(b)},get"aria-rowcount"(){return n().length},children:(y,w)=>{var E=X(),k=M(E);er(k,i,S=>{hl(S,{get items(){return n()},itemKey:"path",renderItem:(x,T=Be)=>{var A=X(),P=M(A);nn(P,Lt,null,L=>{_ee(L,{get asset(){return T()}})}),$(x,A)},$$slots:{renderItem:!0}})}),$(y,E)},$$slots:{default:!0}})}},m=v=>{var b=X(),y=M(b);{var w=E=>{pr(E,{children:(k,S)=>{var C=xee(),x=z(C);Z(T=>te(x,T),[()=>r()("no_files_found")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{i()&&E(w)},!0)}$(v,b)};q(p,v=>{n().length?v(g):v(m,!1)})}Z(v=>te(f,v),[()=>r()("assets")]),$(a,u)},$$slots:{default:!0}}),ce(),s()}var Eee=U('<div role="none" class="label"><!></div>'),$ee=U("<!> <!> <!>",1);function Tee(t,e){le(e,!0);const n=()=>V(Ut,"$appLocale",r),[r,i]=me(),o=(d,f)=>{let h=()=>f?.().collection,p=()=>f?.().collectionFile;const g=_(()=>{const{defaultLocale:w}=(p()??h())._i18n??so;return{defaultLocale:w}}),m=_(()=>{const{content:w}=l(s)[l(g).defaultLocale]??Object.values(l(s))[0]??{};return{content:w}});var v=X(),b=M(v);{var y=w=>{zd(w,{onclick:()=>{Ht(`/collections/${h().name}/entries/${p()?.name||l(a)}`,{transitionType:"forwards"})},children:(E,k)=>{var S=$ee(),C=M(S);_i(C,{class:"image",children:(A,P)=>{var L=X(),I=M(L);{var N=D=>{var B=X(),H=M(B);nn(H,()=>UP(h(),e.entry),null,(W,Y)=>{var O=X(),F=M(O);{var K=J=>{uw(J,{get src(){return l(Y)},variant:"icon",cover:!0})};q(F,J=>{l(Y)&&J(K)})}$(W,O)}),$(D,B)};q(I,D=>{h()._type==="entry"&&D(N)})}$(A,L)},$$slots:{default:!0}});var x=j(C,2);_i(x,{class:"collection",children:(A,P)=>{var L=X(),I=M(L);er(I,n,N=>{var D=Oe();Z(B=>te(D,B),[()=>cs(h())]),$(N,D)}),$(A,L)},$$slots:{default:!0}});var T=j(x,2);_i(T,{class:"title",children:(A,P)=>{var L=Eee(),I=z(L);Cr(I,{lines:2,children:(N,D)=>{var B=X(),H=M(B);{var W=O=>{var F=Oe();Z(K=>te(F,K),[()=>Cd(p())]),$(O,F)},Y=O=>{var F=X(),K=M(F);er(K,n,J=>{var Q=X(),oe=M(Q);gr(oe,()=>zc(h(),e.entry,{useTemplate:!0,allowMarkdown:!0})),$(J,Q)}),$(O,F)};q(H,O=>{p()?O(W):O(Y,!1)})}$(N,B)},$$slots:{default:!0}}),$(A,L)},$$slots:{default:!0}}),$(E,S)},$$slots:{default:!0}})};q(b,w=>{l(m).content&&w(y)})}$(d,v)},s=_(()=>e.entry.locales),a=_(()=>e.entry.subPath);var c=X(),u=M(c);ot(u,17,()=>ms(e.entry),d=>d.name,(d,f)=>{var h=X(),p=M(h);nn(p,Lt,null,g=>{var m=X(),v=M(m);ot(v,17,()=>Zs(l(f),e.entry),b=>b.name,(b,y)=>{var w=X(),E=M(w);nn(E,Lt,null,k=>{o(k,()=>({collection:l(f),collectionFile:l(y)}))}),$(b,w)},b=>{o(b,()=>({collection:l(f)}))}),$(g,m)}),$(d,h)}),$(t,c),ce(),i()}const Cee=({entry:t,terms:e})=>{let n=0;const r=ms(t);if(r.length){r.forEach(s=>{Dl({value:s.label||s.name,terms:e})&&(n+=10),n+=Zs(s,t).filter(a=>Dl({value:a.label||a.name,terms:e})).length});const[i]=r,o=zc(i,t,{useTemplate:!0,allowMarkdown:!0});Dl({value:o,terms:e})&&(n+=10)}return Object.values(t.locales).forEach(({content:i})=>{n+=Object.values(i).filter(o=>typeof o=="string"&&!!o&&Dl({value:o,terms:e})||typeof o=="number"&&Dl({value:String(o),terms:e})).length}),n},Aee=({entries:t,terms:e})=>(e=rf(e),!t.length||!e?[]:t.map(n=>({entry:n,points:Cee({entry:n,terms:e})})).filter(({points:n})=>n>0).sort((n,r)=>r.points-n.points).map(({entry:n})=>n)),Pee=sn([di,ss,Ut],([t,e])=>Aee({entries:t,terms:e}));var Lee=U('<span role="none"> </span>'),Nee=U('<h3 role="none" id="search-results-entries"> </h3> <div role="none"><!></div>',1);function Iee(t,e){le(e,!0);const n=()=>V(Pee,"$entrySearchResults",o),r=()=>V(ue,"$_",o),i=()=>V(ss,"$searchTerms",o),[o,s]=me();De(()=>{const a=n().length;Ge(oi,r()("viewing_entry_search_results",{values:{terms:i(),entries:a>1?r()("many_entries",{values:{count:a}}):a===1?r()("one_entry"):r()("no_entries")}}))}),Ao(t,{"aria-labelledby":"search-results-entries",children:(a,c)=>{var u=Nee(),d=M(u),f=z(d),h=j(d,2),p=z(h);{var g=v=>{{let b=_(()=>r()("entries"));tf(v,{viewType:"list",get"aria-label"(){return l(b)},get"aria-rowcount"(){return n().length},children:(y,w)=>{var E=X(),k=M(E);er(k,i,S=>{hl(S,{get items(){return n()},itemKey:"id",renderItem:(x,T=Be)=>{var A=X(),P=M(A);nn(P,Lt,null,L=>{Tee(L,{get entry(){return T()}})}),$(x,A)},$$slots:{renderItem:!0}})}),$(y,E)},$$slots:{default:!0}})}},m=v=>{var b=X(),y=M(b);{var w=E=>{pr(E,{children:(k,S)=>{var C=Lee(),x=z(C);Z(T=>te(x,T),[()=>r()("no_entries_found")]),$(k,C)},$$slots:{default:!0}})};q(y,E=>{i()&&E(w)},!0)}$(v,b)};q(p,v=>{n().length?v(g):v(m,!1)})}Z(v=>te(f,v),[()=>r()("entries")]),$(a,u)},$$slots:{default:!0}}),ce(),s()}var Oee=U('<header role="none" class="svelte-1p7vfqa"><h2 role="none" class="svelte-1p7vfqa"> </h2></header>'),Ree=U('<div role="none" class="wrapper svelte-1p7vfqa"><!> <div role="none" class="results svelte-1p7vfqa"><!> <!></div></div>');const Dee={hash:"svelte-1p7vfqa",code:`.wrapper.svelte-1p7vfqa {display:flex;flex-direction:column;overflow:hidden;width:100%;background-color:var(--sui-primary-background-color);}header.svelte-1p7vfqa {flex:none;display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}header.svelte-1p7vfqa h2:where(.svelte-1p7vfqa) {font-size:var(--sui-font-size-x-large);}.results.svelte-1p7vfqa {flex:auto;display:flex;gap:16px;overflow:hidden;height:100%;}.results.svelte-1p7vfqa > .sui.group {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:50%;height:100%;}.results.svelte-1p7vfqa h3 {flex:none;margin:16px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-large);}.results.svelte-1p7vfqa h3 + div {overflow:auto;flex:auto;}
|
|
664
664
|
@media (width < 768px) {.results.svelte-1p7vfqa h3 {display:none;}
|
|
665
|
-
}`};function
|
|
665
|
+
}`};function Mee(t,e){le(e,!0),ke(t,Dee);const n=()=>V(cn,"$isSmallScreen",o),r=()=>V(ue,"$_",o),i=()=>V(Ra,"$searchMode",o),[o,s]=me();var a=Ree(),c=z(a);{var u=m=>{var v=Oee(),b=z(v),y=z(b);Z(w=>te(y,w),[()=>r()("search_results")]),$(m,v)};q(c,m=>{n()||m(u)})}var d=j(c,2),f=z(d);{var h=m=>{Iee(m,{})};q(f,m=>{i()==="entries"&&m(h)})}var p=j(f,2);{var g=m=>{See(m,{})};q(p,m=>{i()==="assets"&&m(g)})}$(t,a),ce(),s()}var Fee=U('<!> <div role="search" class="svelte-u038t"><!></div>',1);const zee={hash:"svelte-u038t",code:"[role=search].svelte-u038t {display:contents;}[role=search].svelte-u038t .sui.search-bar {flex:auto;}"};function jee(t,e){le(e,!0),ke(t,zee);const n=()=>V(ss,"$searchTerms",s),r=()=>V(Ra,"$searchMode",s),i=()=>V(ue,"$_",s),o=()=>V(cn,"$isSmallScreen",s),[s,a]=me(),c=/^\/search\/(?<terms>.+)$/,u=()=>{const{path:d}=Oo(),{terms:f}=d.match(c)?.groups??{};f&&f!==n()&&Ge(ss,f),Ge(Ra,r()??"entries")};jt(()=>{u(),document.querySelector(".sui.search-bar input")?.focus()}),Hr("hashchange",Fa,()=>{u()});{const d=h=>{nf(h,{primaryToolbar:m=>{var v=X(),b=M(v);{var y=w=>{Ei(w,{variant:"primary",children:(E,k)=>{var S=Fee(),C=M(S);{let A=_(()=>i()(r()==="assets"?"back_to_asset_folder_list":"back_to_collection_list"));nl(C,{get"aria-label"(){return l(A)},onclick:()=>{Ge(ss,""),Ht(r()==="assets"?"/assets":"/collections",{transitionType:"backwards"})}})}var x=j(C,2),T=z(x);ag(T,{}),$(E,S)},$$slots:{default:!0}})};q(b,w=>{o()&&w(y)})}$(m,v)},mainContent:m=>{Mee(m,{})},$$slots:{primaryToolbar:!0,mainContent:!0}})};let f=_(()=>i()("search_results_for_x",{values:{terms:n()}}));_l(t,{get"aria-label"(){return l(f)},main:d,$$slots:{main:!0}})}ce(),a()}var Bee=U('<!> <h2 role="none"> </h2>',1),Uee=U('<!> <h2 role="none"> </h2>',1),qee=U("<!> <!>",1),Vee=U('<div role="none" class="inner svelte-116bna3"><!></div>'),Hee=U('<div role="none" class="wrapper svelte-116bna3"><!></div>'),Kee=U("<!> <!>",1);const Gee={hash:"svelte-116bna3",code:".wrapper.svelte-116bna3 {overflow-y:auto;height:100%;--sui-menu-border-width: 0;--sui-menu-border-radius: 0;--sui-menu-padding: 8px 0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) {padding:16px;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) section:not(:first-child) {margin:16px 0 0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) p {margin-top:0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 {font-size:inherit;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 ~ div {margin:8px 0 0;}.wrapper.svelte-116bna3 .inner:where(.svelte-116bna3) h4 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}"};function Wee(t,e){le(e,!0),ke(t,Gee);const n=()=>V(ue,"$_",r),[r,i]=me(),o=/^\/settings(?:\/(?<panelKey>.+))?$/;let s=ie(void 0),a=ie(""),c=ie(!1);const u=()=>{const{path:p}=Oo(),g=p.match(o);if(!g?.groups)return;const{panelKey:m}=g.groups;G(s,m?ae(Qh).find(v=>v.key===m):void 0,!0)};jt(()=>{u()});var d=Kee();Hr("hashchange",Fa,p=>{aw(p,u,o)});var f=M(d);{const p=m=>{nf(m,{primaryToolbar:y=>{Ei(y,{variant:"primary",children:(w,E)=>{var k=qee(),S=M(k);{var C=A=>{var P=Bee(),L=M(P);nl(L,{onclick:()=>Vs("/settings")});var I=j(L,2),N=z(I);Z(D=>te(N,D),[()=>n()(`prefs.${l(s).key}.title`)]),$(A,P)},x=A=>{var P=Uee(),L=M(P);nl(L,{onclick:()=>Vs("/menu")});var I=j(L,2),N=z(I);Z(D=>te(N,D),[()=>n()("settings")]),$(A,P)};q(S,A=>{l(s)?A(C):A(x,!1)})}var T=j(S,2);Xr(T,{flex:!0}),$(w,k)},$$slots:{default:!0}})},mainContent:y=>{var w=Hee(),E=z(w);{var k=C=>{const x=_(()=>l(s).component);var T=Vee(),A=z(T);Hn(A,()=>l(x),(P,L)=>{L(P,{onChange:({message:I})=>{G(a,I,!0),G(c,!0)}})}),$(C,T)},S=C=>{{let x=_(()=>n()("settings"));ar(C,{get"aria-label"(){return l(x)},children:(T,A)=>{var P=X(),L=M(P);ot(L,17,()=>ae(Qh),({key:I,icon:N})=>I,(I,N)=>{let D=()=>l(N).key,B=()=>l(N).icon;{const H=Y=>{Je(Y,{get name(){return B()}})};let W=_(()=>n()(`prefs.${D()}.title`));gt(I,{get label(){return l(W)},onclick:()=>Ht(`/settings/${D()}`,{transitionType:"forwards"}),startIcon:H,$$slots:{startIcon:!0}})}}),$(T,P)},$$slots:{default:!0}})}};q(E,C=>{l(s)?C(k):C(S,!1)})}$(y,w)},$$slots:{primaryToolbar:!0,mainContent:!0}})};let g=_(()=>n()("settings"));_l(f,{get"aria-label"(){return l(g)},main:p,$$slots:{main:!0}})}var h=j(f,2);Zn(h,{get show(){return l(c)},set show(p){G(c,p,!0)},children:(p,g)=>{Rn(p,{status:"success",children:(m,v)=>{var b=Oe();Z(()=>te(b,l(a))),$(m,b)},$$slots:{default:!0}})},$$slots:{default:!0}}),$(t,d),ce(),i()}var Yee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>'),Jee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>'),Xee=U('<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>'),Zee=U('<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>');const Qee={hash:"svelte-ljqw9n",code:`.columns.svelte-ljqw9n {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}
|
|
666
666
|
@media (width < 768px) {.columns.svelte-ljqw9n {flex-direction:column;gap:0;}
|
|
667
667
|
}.columns.svelte-ljqw9n .column {flex:auto;width:33.3333333333%;background-color:var(--sui-primary-background-color);}
|
|
668
668
|
@media (width < 768px) {.columns.svelte-ljqw9n .column {width:100%;height:33.3333333333%;}
|
|
669
|
-
}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) h3:where(.svelte-ljqw9n) {font-size:var(--sui-font-size-x-large);}`};function Qee(t,e){le(e,!0),ke(t,Zee);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=Xee(),u=z(c);Ao(u,{class:"column","aria-labelledby":"draft-column-title",children:(h,p)=>{var g=Wee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.drafts")]),$(h,g)},$$slots:{default:!0}});var d=j(u,2);Ao(d,{class:"column","aria-labelledby":"review-column-title",children:(h,p)=>{var g=Yee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.in_review")]),$(h,g)},$$slots:{default:!0}});var f=j(d,2);Ao(f,{class:"column","aria-labelledby":"ready-column-title",children:(h,p)=>{var g=Jee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.ready")]),$(h,g)},$$slots:{default:!0}}),$(a,c)};let s=_(()=>n()("editorial_workflow"));_l(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var ete=U("<!> <!>",1),tte=U('<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>',1);const nte={hash:"svelte-1a6c577",code:".page-root.svelte-1a6c577 {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}"};function rte(t,e){le(e,!0),ke(t,nte);const n=()=>V($b,"$selectedPageName",o),r=()=>V(YP,"$canShowMobileSignInDialog",o),i=()=>V(cn,"$isSmallScreen",o),[o,s]=me(),a={collections:DZ,assets:OH,search:zee,workflow:Qee,config:VH,menu:VQ,settings:Gee},c=_(()=>a[n()]),u=()=>{Ge(ll,!1),Ge(na,!1);const{path:T}=Oo(),{pageName:A}=T.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};A?n()!==A&&Ge($b,A):window.location.replace("#/collections"),A==="collections"?Ge(Ra,"entries"):A==="assets"?Ge(Ra,"assets"):A!=="search"&&Ge(Ra,null)};jt(()=>{u()});var d={pages:a,selectPage:u},f=tte();Hr("hashchange",Fa,()=>{u()});var h=M(f);{var p=T=>{var A=ete(),P=M(A);UZ(P,{});var L=j(P,2);gee(L,{}),$(T,A)};q(h,T=>{r()&&T(p)})}var g=j(h,2);{var m=T=>{jQ(T,{})};q(g,T=>{i()||T(m)})}var v=j(g,2),b=z(v);Hn(b,()=>l(c),(T,A)=>{A(T,{})});var y=j(v,2);{var w=T=>{KZ(T,{})};q(y,T=>{i()&&T(w)})}var E=j(y,2);BH(E,{});var k=j(E,2);jH(k,{});var S=j(k,2);FZ(S,{});var C=j(S,2);zZ(C,{}),$(t,f);var x=ce(d);return s(),x}const ite={collections:"Collections",contents:"Contents",entries:"Entries",files:"Files",assets:"Assets",media:"Media",workflow:"Workflow",editorial_workflow:"Editorial Workflow",menu:"Menu",user_name:"User Name",password:"Password",sign_in:"Sign In",sign_in_with_mobile:"Sign In with Mobile",sign_in_with_mobile_instruction:"Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.",signed_in_as_x:"Signed In as {name}",working_with_local_repo:"Working with Local Repository",working_with_test_repo:"Working with Test Repository",sign_out:"Sign Out",create:"New",select:"Select",select_all:"Select All",upload:"Upload",copy:"Copy",download:"Download",duplicate:"Duplicate",delete:"Delete",save:"Save",saving:"Saving…",rename:"Rename",update:"Update",replace:"Replace",add:"Add",remove:"Remove",remove_x:"Remove {name}",clear:"Clear",expand:"Expand",expand_all:"Expand All",collapse:"Collapse",collapse_all:"Collapse All",insert:"Insert",restore:"Restore",discard:"Discard",searching:"Searching…",no_results:"No results found.",global:"Global",primary:"Primary",secondary:"Secondary",collection:"Collection",folder:"Folder",api_key:"API Key",details:"Details",back:"Back",loading:"Loading…",later:"Later",slug:"Slug",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site Configuration…",loading_site_data:"Loading Site Data…",loading_site_data_error:"There was an error while loading site data.",sign_in_with_x:"Sign In with {service}",sign_in_with_x_using_pat:"Sign In with {service} Using PAT",sign_in_using_pat_title:"Sign In Using Personal Access Token",sign_in_using_pat_description:"Enter your token below. It must have read/write access to the repository content.",sign_in_using_pat_link:"You can generate a token on the <a>{service} user settings page</a>.",personal_access_token:"Personal Access Token",authorizing:"Authorizing…",signing_in:"Signing in…",work_with_local_repo:"Work with Local Repository",work_with_local_repo_description:"Once prompted, select the root directory of the “{repo}” repository.",work_with_local_repo_description_no_repo:"Once prompted, select the root directory of your Git repository.",work_with_test_repo:"Work with Test Repository",sign_in_error:{not_project_root:"The folder you have selected is not a repository root directory. Please try again.",picker_dismissed:"A repository root directory could not be selected. Please try again.",authentication_aborted:"Authentication aborted. Please try again.",invalid_token:"The provided token is invalid. Please check and try again.",UNSUPPORTED_BACKEND:"Your Git backend is not supported by the authenticator.",UNSUPPORTED_DOMAIN:"Your domain is not allowed to use the authenticator.",MISCONFIGURED_CLIENT:"OAuth app client ID or secret is not configured.",AUTH_CODE_REQUEST_FAILED:"Failed to receive an authorization code. Please try again later.",CSRF_DETECTED:"Potential CSRF attack detected. Authentication flow aborted.",TOKEN_REQUEST_FAILED:"Failed to request an access token. Please try again later.",TOKEN_REFRESH_FAILED:"Failed to refresh the access token. Please try again later.",MALFORMED_RESPONSE:"Server responded with malformed data. Please try again later."},backend_unsupported_version:"The {name} backend requires {name} {version} or later.",repository_no_access:"You don’t have access to the “{repo}” repository.",repository_not_found:"The “{repo}” repository doesn’t exist.",repository_empty:"The “{repo}” repository has no branches.",branch_not_found:"The “{repo}” repository doesn’t have the “{branch}” branch.",unexpected_error:"Unexpected Error",entry_parse_error:"There was an error while parsing an entry file. Check the browser console for details.",entry_parse_errors:"There were errors while parsing entry files. Check the browser console for details.",mobile_promo_title:"Sveltia CMS is now available on mobile!",mobile_promo_button:"Give it a try",visit_live_site:"Visit Live Site",switch_page:"Switch Page",search_placeholder_entries:"Search for entries…",search_placeholder_assets:"Search for assets…",search_placeholder_all:"Search for entries and assets…",create_entry_or_assets:"Create Entry or Assets",publish_changes:"Publish Changes",publishing_changes:"Publishing Changes…",publishing_changes_failed:"Changes could not be published. Please try again later.",show_notifications:"Show Notifications",notifications:"Notifications",show_account_menu:"Show Account Menu",account:"Account",live_site:"Live Site",git_repository:"Git Repository",settings:"Settings",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",update_available:"The latest version of Sveltia CMS is available.",update_now:"Update Now",backend_status:{minor_incident:"{service} is experiencing a minor incident. Your workflow may be potentially affected.",major_incident:"{service} is experiencing a major incident. You may want to wait until the situation has improved."},content_library:"Content Library",asset_library:"Asset Library",asset_location:{repository:"Your Site",external:"External Locations",stock_photos:"Stock Photos"},collection_assets:"Collection Assets",entry_list:"Entry List",file_list:"File List",asset_list:"Asset List",x_collection:"“{collection}” Collection",x_asset_folder:"“{folder}” Asset Folder",viewing_collection_list:"You’re now viewing the collection list.",viewing_asset_folder_list:"You’re now viewing the asset folder list.",viewing_x_collection_many_entries:"You’re now viewing the “{collection}” collection, which has {count} entries.",viewing_x_collection_one_entry:"You’re now viewing the “{collection}” collection, which has one entry.",viewing_x_collection_no_entries:"You’re now viewing the “{collection}” collection, which has no entries yet.",viewing_x_asset_folder_many_assets:"You’re now viewing the “{folder}” asset folder, which has {count} assets.",viewing_x_asset_folder_one_asset:"You’re now viewing the “{folder}” asset folder, which has one asset.",viewing_x_asset_folder_no_assets:"You’re now viewing the “{folder}” asset folder, which has no assets yet.",singleton_selected_announcement:"Press Enter to edit the “{file}” file.",collection_not_found:"Collection not found",file_not_found:"File not found.",x_of_x_selected:"{selected} of {total} selected",switch_view:"Switch View",list_view:"List View",grid_view:"Grid View",switch_to_list_view:"Switch to List View",switch_to_grid_view:"Switch to Grid View",sort:"Sort",sorting_options:"Sorting Options",sort_keys:{none:"None",name:"Name",slug:"Slug",commit_author:"Updated by",commit_date:"Updated on"},ascending:"{label}, A to Z",ascending_date:"{label}, old to new",descending:"{label}, Z to A",descending_date:"{label}, new to old",filter:"Filter",filtering_options:"Filtering Options",group:"Group",grouping_options:"Grouping Options",type:"Type",all:"All",image:"Image",video:"Video",audio:"Audio",document:"Document",other:"Other",show_assets:"Show Assets",hide_assets:"Hide Assets",show_info:"Show Info",hide_info:"Hide Info",all_assets:"All Assets",global_assets:"Global Assets",creating_entries_disabled_by_admin:"Creating new entries in this collection is disabled by the administrator.",creating_entries_disabled_by_limit:"You cannot add new entries to this collection because it has reached its limit of {limit} entries.",back_to_collection:"Back to Collection",collection_list:"Collection List",back_to_collection_list:"Back to Collection List",asset_folder_list:"Asset Folder List",back_to_asset_folder_list:"Back to Asset Folder List",search_results:"Search Results",search_results_for_x:"Search Results for “{terms}”",viewing_entry_search_results:"You’re now viewing search results for “{terms}”. We’ve found {entries}.",viewing_asset_search_results:"You’re now viewing search results for “{terms}”. We’ve found {assets}.",many_entries:"{count} entries",one_entry:"one entry",no_entries:"no entries",many_assets:"{count} assets",one_asset:"one asset",no_assets:"no assets",no_files_found:"No files found.",no_entries_found:"No entries found.",upload_assets:"Upload New Assets",edit_options:"Edit Options",show_edit_options:"Show Edit Options",edit_asset:"Edit Asset",edit_x:"Edit {name}",wrap_long_lines:"Wrap Long Lines",rename_asset:"Rename Asset",rename_x:"Rename {name}",enter_new_name_for_asset:"Enter a new name below.",enter_new_name_for_asset_with_one_entry:"Enter a new name below. An entry using the asset will also be updated.",enter_new_name_for_asset_with_many_entries:"Enter a new name below. {count} entries using the asset will also be updated.",enter_new_name_for_asset_error:{empty:"File name cannot be empty.",character:"File name cannot contain special characters.",duplicate:"This file name is used for another asset."},replace_asset:"Replace Asset",replace_x:"Replace {name}",tap_to_browse:"Tap to browse…",drop_file_or_click_to_browse:"Drop a file here or click to browse…",drop_files_or_click_to_browse:"Drop files here or click to browse…",drop_image_file_or_click_to_browse:"Drop an image file here or click to browse…",drop_image_files_or_click_to_browse:"Drop image files here or click to browse…",drop_file_here:"Drop a file here",drop_files_here:"Drop files here",unsupported_file_type:"Unsupported File Type",dropped_file_type_mismatch:"The dropped file is not the {type} type. Please try again.",dropped_image_type_mismatch:"The dropped file is not supported. Only an AVIF, GIF, JPEG, PNG, WebP or SVG image is accepted. Please try again.",choose_file:"Choose File",choose_files:"Choose Files",delete_asset:"Delete Asset",delete_assets:"Delete Assets",delete_selected_asset:"Delete Selected Asset",delete_selected_assets:"Delete Selected Assets",confirm_deleting_this_asset:"Are you sure to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure to delete all the assets?",delete_entry:"Delete Entry",delete_entries:"Delete Entries",delete_selected_entry:"Delete Selected Entry",delete_selected_entries:"Delete Selected Entries",confirm_deleting_this_entry:"Are you sure to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure to delete all the entries and associated assets?",processing_file:"Processing a file. This may take a while.",processing_files:"Processing files. This may take a while.",uploading_files:"Uploading Files",confirm_replacing_file:"Are you sure to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure to save the following {count} files to the “{folder}” folder?",oversized_files:"Oversized Files",warning_oversized_file:"This file cannot be uploaded because it exceeds the maximum size of {size}. Please reduce the size or select a different file.",warning_oversized_files:"These files cannot be uploaded because they exceed the maximum size of {size}. Please reduce the sizes or select different files.",file_meta:"{type} · {size}",file_meta_converted_from_x:"(converted from {type})",no_entries_created:"This collection has no entries yet.",create_new_entry:"Create New Entry",entry:"Entry",index_file:"Index File",no_files_in_collection:"No files available in this collection.",asset_info:"Asset Info",select_asset_show_info:"Select an asset to show the info.",duplicate_entry:"Duplicate Entry",entry_duplicated:"Entry has been duplicated. It’s now a new draft.",entry_validation_error:"One field has an error. Please correct it to save the entry.",entry_validation_errors:"{count} fields have an error. Please correct them to save the entry.",entry_saved:"Entry has been saved.",entry_saved_and_published:"Entry has been saved and published.",entry_deleted:"Entry has been deleted.",entries_deleted:"{count} entries have been deleted.",asset_saved:"Asset has been saved.",asset_saved_and_published:"Asset has been saved and published.",assets_saved:"{count} assets have been saved.",assets_saved_and_published:"{count} assets have been saved and published.",asset_url_copied:"Asset URL has been copied to clipboard.",asset_urls_copied:"Asset URLs have been copied to clipboard.",asset_path_copied:"Asset file path has been copied to clipboard.",asset_paths_copied:"Asset file paths have been copied to clipboard.",asset_data_copied:"Asset file has been copied to clipboard.",asset_downloaded:"Asset file has been downloaded.",assets_downloaded:"Asset files have been downloaded.",asset_moved:"Asset has been moved.",assets_moved:"{count} assets have been moved.",asset_renamed:"Asset has been renamed.",assets_renamed:"{count} assets have been renamed.",asset_deleted:"Asset has been deleted.",assets_deleted:"{count} assets have been deleted.",content_editor:"Content Editor",restore_backup_title:"Restore Draft",restore_backup_description:"This entry has a backup from {datetime}. Do you want to restore the edited draft?",draft_backup_saved:"Draft backup has been saved.",draft_backup_restored:"Draft backup has been restored.",draft_backup_deleted:"Draft backup has been deleted.",cancel_editing:"Cancel Editing",create_entry_title:"Creating {name}",create_entry_announcement:"You’re now creating a new entry in the “{collection}” collection.",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"You’re now editing the “{entry}” entry in the “{collection}” collection.",edit_file_announcement:"You’re now editing the “{file}” file in the “{collection}” collection.",edit_singleton_announcement:"You’re now editing the “{file}” file.",save_and_publish:"Save and Publish",save_without_publishing:"Save without Publishing",show_editor_options:"Show Editor Options",editor_options:"Editor Options",show_preview:"Show Preview",sync_scrolling:"Sync Scrolling",switch_locale:"Switch Locale",locale_content_disabled_short:"(disabled)",locale_content_error_short:"(error)",edit:"Edit",preview:"Preview",edit_x_locale:"Edit {locale} Content",preview_x_locale:"Preview {locale} Content",content_preview:"Content Preview",show_content_options_x_locale:"Show {locale} Content Options",content_options_x_locale:"{locale} Content Options",x_field:"“{field}” Field",show_field_options:"Show Field Options",field_options:"Field Options",unsupported_widget_x:"Unsupported widget: {name}",enable_x_locale:"Enable {locale}",reenable_x_locale:"Reenable {locale}",disable_x_locale:"Disable {locale}",locale_x_has_been_disabled:"The {locale} content has been disabled.",locale_x_now_disabled:"The {locale} content is now disabled. It will be deleted when you save the entry.",view_in_repository:"View in Repository",view_on_x:"View on {service}",view_on_live_site:"View on Live Site",copy_from:"Copy from…",copy_from_x:"Copy from {locale}",translation_options:"Translation Options",translate:"Translate",translate_field:"Translate Field",translate_fields:"Translate Fields",translate_from:"Translate from…",translate_from_x:"Translate from {locale}",revert_changes:"Revert Changes",revert_all_changes:"Revert All Changes",edit_slug:"Edit Slug",edit_slug_warning:"Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with the Relation widget, so you’ll need to manually update such references along with other links.",edit_slug_error:{empty:"The slug cannot be empty.",duplicate:"This slug is used for another entry."},required:"Required",editor:{translation:{none:"Nothing has been translated.",started:"Translating…",error:"There was an error while translating.",complete:{one:"Translated the field from {source}.",many:"Translated {count} fields from {source}."}},copy:{none:"Nothing has been copied.",complete:{one:"Copied the field from {source}.",many:"Copied {count} fields from {source}."}}},validation:{value_missing:"This field is required.",range_underflow:{number:"Value must be greater than or equal to {min}.",select_many:"You have to select at least {min} items.",select_one:"You have to select at least {min} item.",add_many:"You have to add at least {min} items.",add_one:"You have to add at least {min} item."},range_overflow:{number:"Value must be less than or equal to {max}.",select_many:"You cannot select more than {max} items.",select_one:"You cannot select more than {max} item.",add_many:"You cannot add more than {max} items.",add_one:"You cannot add more than {max} item."},too_short:{one:"You must enter at least {min} character.",many:"You must enter at least {min} characters."},too_long:{one:"You cannot enter more than {max} character.",many:"You cannot enter more than {max} characters."},type_mismatch:{number:"Please enter a number.",email:"Please enter a valid email.",url:"Please enter a valid URL."}},saving_entry:{error:{title:"Error",description:"There was an error while saving the entry. Please try again later."}},viewing_x_asset_details:"You’re viewing the details of the “{name}” asset.",asset_editor:"Asset Editor",preview_unavailable:"Preview Unavailable.",public_url:"Public URL",public_urls:"Public URLs",file_path:"File Path",file_paths:"File Paths",file_data:"File Data",kind:"Kind",size:"Size",dimensions:"Dimensions",duration:"Duration",used_in:"Used in",created_date:"Created Date",location:"Location",map_lat_lng:"Map showing latitude {latitude}, longitude {longitude}",select_file:"Select File",select_image:"Select Image",replace_file:"Replace File",replace_image:"Replace Image",remove_file:"Remove File",remove_image:"Remove Image",remove_this_item:"Remove This Item",move_up:"Move Up",move_down:"Move Down",add_x:"Add {name}",add_item_above:"Add Item Above",add_item_below:"Add Item Below",select_list_type:"Select List Type",opacity:"Opacity",unselected_option:"(None)",assets_dialog:{title:{file:"Select File",image:"Select Image"},search_for_file:"Search for Files",search_for_image:"Search for Images",locations:"Locations",folder:{field:"Field Assets",entry:"Entry Assets",file:"File Assets",collection:"Collection Assets",global:"Global Assets"},error:{invalid_key:"Your API Key is invalid or expired. Please double check and try again.",search_fetch_failed:"There was an error while searching assets. Please try again later.",image_fetch_failed:"There was an error while downloading the selected asset. Please try again later."},available_images:"Available Images",enter_url:"Enter URL",enter_file_url:"Enter URL of the file:",enter_image_url:"Enter URL of the image:",large_file:{title:"Large File"},photo_credit:{title:"Photo Credit",description:"Use the following credit if possible:"},unsaved:"Unsaved"},character_counter:{min_max:{one:"{count} character entered. Minimum: {min}. Maximum: {max}.",many:"{count} characters entered. Minimum: {min}. Maximum: {max}."},min:{one:"{count} character entered. Minimum: {min}.",many:"{count} characters entered. Minimum: {min}."},max:{one:"{count} character entered. Maximum: {max}.",many:"{count} characters entered. Maximum: {max}."}},youtube_video_player:"YouTube video player",today:"Today",now:"Now",editor_components:{image:"Image",src:"Source",alt:"Alt Text",title:"Title",link:"Link"},key_value:{key:"Key",value:"Value",action:"Action",empty_key:"Key is required.",duplicate_key:"Key must be unique."},find_place:"Find a Place",use_your_location:"Use Your Location",geolocation_error_title:"Geolocation Error",geolocation_error_body:"There was an error while retrieving your location.",geolocation_unsupported:"Geolocation API is not supported by this browser.",boolean:{true:"Yes",false:"No"},cloud_storage:{invalid:"The service is not configured properly.",auth:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",parse_failed:"The configuration file could not be parsed.",parse_failed_invalid_object:"The configuration file is not a valid JavaScript object.",parse_failed_unsupported_type:"The configuration file is not a valid file type. Only YAML and JSON are supported.",no_collection:"Collections are not defined in the configuration file.",missing_backend:"The backend is not defined in the configuration file.",missing_backend_name:"The backend name is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",missing_repository:"The repository is not defined in the configuration file.",invalid_repository:"The configured repository is invalid. It must be in “owner/repo” format.",oauth_implicit_flow:"The configured authentication method (implicit flow) is not supported.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",missing_media_folder:"The media folder is not defined in the configuration file.",invalid_media_folder:"The configured media folder is invalid. It must be a string.",invalid_public_folder:"The configured public folder is invalid. It must be a string.",public_folder_relative_path:"The configured public folder is invalid. It must be an absolute path starting with “/”.",public_folder_absolute_url:"An absolute URL for the public folder option is not supported.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development is disabled in your browser. <a>Here’s how to enable it</a>."},status:{drafts:"Drafts",in_review:"In Review",ready:"Ready"},categories:"Categories",prefs:{changes:{api_key_saved:"API key has been saved.",api_key_removed:"API key has been removed."},error:{permission_denied:"Browser storage (Cookie) access has been denied. Please check the permission and try again."},appearance:{title:"Appearance",theme:"Theme",select_theme:"Select Theme"},theme:{auto:"Auto",dark:"Dark",light:"Light"},language:{title:"Language",ui_language:{title:"User Interface Language",select_language:"Select Language"}},contents:{title:"Contents",editor:{title:"Editor",use_draft_backup:{switch_label:"Automatically back up entry drafts"},close_on_save:{switch_label:"Close the editor after saving a draft"},close_with_escape:{switch_label:"Close the editor with the Escape key"}}},i18n:{title:"Internationalization",default_translator:{title:"Default Translation Service",select_service:"Select Service"},translator:{field_label:"{service} Key",description:"Sign up for <a {homeHref}>{service}</a> and enter <a {apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields."}},media:{title:"Media",stock_photos:{title:"{service} Free Images",field_label:"{service} API Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.",credit:"Photos provided by {service}",providers_disabled:"Stock asset providers are disabled by the administrator."}},accessibility:{title:"Accessibility",underline_links:{title:"Underline Links",description:"Show underline for links in the entry preview and user interface labels.",switch_label:"Always Underline Links"}},advanced:{title:"Advanced",beta:{title:"Beta Features",description:"Enable some beta features that may be unstable or unlocalized.",switch_label:"Join Beta Program"},developer_mode:{title:"Developer Mode",description:"Enable some developer-oriented features, including detailed console logs and native context menus.",switch_label:"Enable Developer Mode"},deploy_hook:{title:"Deploy Hook",description:"Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL has been removed."}}},keyboard_shortcuts_:{view_content_library:"View Content Library",view_asset_library:"View Asset Library",search:"Search for entries and assets",create_entry:"Create a new entry",save_entry:"Save an entry",cancel_editing:"Cancel entry editing"},file_type_labels:{avif:"AVIF image",bmp:"Bitmap image",gif:"GIF image",ico:"Icon",jpeg:"JPEG image",jpg:"JPEG image",png:"PNG image",svg:"SVG image",tif:"TIFF image",tiff:"TIFF image",webp:"WebP image",avi:"AVI video",m4v:"MP4 video",mov:"QuickTime video",mp4:"MP4 video",mpeg:"MPEG video",mpg:"MPEG video",ogg:"Ogg video",ogv:"Ogg video",ts:"MPEG video",webm:"WebM video","3gp":"3GPP video","3g2":"3GPP2 video",aac:"AAC audio",mid:"MIDI",midi:"MIDI",m4a:"MP4 audio",mp3:"MP3 audio",oga:"Ogg audio",opus:"OPUS audio",wav:"WAV audio",weba:"WebM audio",csv:"CSV spreadsheet",doc:"Word document",docx:"Word document",odp:"OpenDocument presentation",ods:"OpenDocument spreadsheet",odt:"OpenDocument text",pdf:"PDF document",ppt:"PowerPoint presentation",pptx:"PowerPoint presentation",rtf:"Rich text document",xls:"Excel spreadsheet",xlsx:"Excel spreadsheet",html:"HTML text",js:"JavaScript",json:"JSON text",md:"Markdown text",toml:"TOML text",yaml:"YAML text",yml:"YAML text"},file_size_units:{b:"{size} bytes",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},ote=Object.freeze(Object.defineProperty({__proto__:null,strings:ite},Symbol.toStringTag,{value:"Module"})),ste={collections:"コレクション",contents:"コンテンツ",entries:"エントリー",files:"ファイル",assets:"アセット",media:"メディア",workflow:"ワークフロー",editorial_workflow:"編集ワークフロー",menu:"メニュー",user_name:"ユーザー名",password:"パスワード",sign_in:"ログイン",sign_in_with_mobile:"モバイルでログイン",sign_in_with_mobile_instruction:"以下の QR コードを携帯電話かタブレットでスキャンすると、パスワードなしでログインできます。ユーザー設定は自動的にコピーされます。",signed_in_as_x:"{name} としてログイン中",working_with_local_repo:"ローカルレポジトリで作業中",working_with_test_repo:"テストレポジトリで作業中",sign_out:"ログアウト",create:"新規作成",select:"選択",select_all:"すべて選択",upload:"アップロード",copy:"コピー",download:"ダウンロード",duplicate:"複製",delete:"削除",save:"保存",saving:"保存中…",rename:"名前を変更",update:"更新",replace:"差し替え",add:"追加",remove:"削除",remove_x:"{name} を削除",clear:"クリア",expand:"広げる",expand_all:"すべて広げる",collapse:"折り畳む",collapse_all:"すべて折り畳む",insert:"挿入",restore:"復元",discard:"破棄",searching:"検索中…",no_results:"結果が見つかりませんでした。",global:"グローバル",primary:"プライマリー",secondary:"セカンダリー",collection:"コレクション",folder:"フォルダー",api_key:"API キー",details:"詳細",back:"戻る",loading:"読み込み中…",later:"後で",slug:"スラッグ",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",sign_in_with_x_using_pat:"{service} で PAT を使用してログイン",sign_in_using_pat_title:"個人用アクセストークンでログイン",sign_in_using_pat_description:"以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。",sign_in_using_pat_link:"<a>{service} ユーザー設定ページ</a> でトークンを生成できます。",personal_access_token:"個人用アクセストークン",authorizing:"認証中…",signing_in:"ログイン中…",work_with_local_repo:"ローカルレポジトリで作業",work_with_local_repo_description:"ダイアログが表示されたら、「{repo}」レポジトリのルートディレクトリを選択してください。",work_with_local_repo_description_no_repo:"ダイアログが表示されたら、Git レポジトリのルートディレクトリを選択してください。",work_with_test_repo:"テストレポジトリで作業",sign_in_error:{not_project_root:"選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。",picker_dismissed:"レポジトリのルートディレクトリを選択できませんでした。再度お試しください。",authentication_aborted:"認証が中断されました。再度お試しください。",invalid_token:"入力されたトークンが無効です。確認して再度お試しください。",UNSUPPORTED_BACKEND:"この認証アプリはお使いの Git バックエンドに対応していません。",UNSUPPORTED_DOMAIN:"この認証アプリではお使いのドメインの使用は許可されていません。",MISCONFIGURED_CLIENT:"OAuth アプリのクライアント ID またはシークレットが設定されていません。",AUTH_CODE_REQUEST_FAILED:"認証コードを取得できませんでした。後で再度お試しください。",CSRF_DETECTED:"CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。",TOKEN_REQUEST_FAILED:"アクセストークンを要求できませんでした。後で再度お試しください。",TOKEN_REFRESH_FAILED:"アクセストークンの更新に失敗しました。後で再度お試しください。",MALFORMED_RESPONSE:"サーバーから不正なデータが返されました。後で再度お試しください。"},backend_unsupported_version:"{name} バックエンドには {name} {version} 以降のバージョンが必要です。",repository_no_access:"あなたには「{repo}」レポジトリへのアクセス権がありません。",repository_not_found:"「{repo}」レポジトリは存在しません。",repository_empty:"「{repo}」レポジトリにはブランチがありません。",branch_not_found:"「{repo}」レポジトリに「{branch}」ブランチは存在しません。",unexpected_error:"予期せぬエラー",entry_parse_error:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",entry_parse_errors:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",visit_live_site:"管理対象サイトを開く",switch_page:"ページを切り替え",search_placeholder_entries:"エントリーを検索…",search_placeholder_assets:"アセットを検索…",search_placeholder_all:"エントリーとアセットを検索…",create_entry_or_assets:"エントリーまたはアセットを作成",publish_changes:"変更を公開",publishing_changes:"変更を公開しています…",publishing_changes_failed:"変更を公開できませんでした。後で再度お試しください。",show_notifications:"通知を表示",notifications:"通知",show_account_menu:"アカウントメニューを表示",account:"アカウント",live_site:"管理対象サイト",git_repository:"Git レポジトリ",settings:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",mobile_promo_title:"Sveltia CMS がモバイルに対応しました!",mobile_promo_button:"試してみる",update_available:"Sveltia CMS の最新版が利用可能です。",update_now:"今すぐ更新",backend_status:{minor_incident:"{service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。",major_incident:"{service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。"},content_library:"コンテンツライブラリ",asset_library:"アセットライブラリ",asset_location:{repository:"あなたのサイト",external:"外部の場所",stock_photos:"ストックフォト"},collection_assets:"コレクションアセット",entry_list:"エントリーリスト",file_list:"ファイルリスト",asset_list:"アセットリスト",x_collection:"「{collection}」コレクション",x_asset_folder:"「{folder}」アセットフォルダー",viewing_collection_list:"コレクションリストを表示しています。",viewing_asset_folder_list:"アセットフォルダーリストを表示しています。",viewing_x_collection_many_entries:"「{collection}」コレクションを表示しています。ここには {count} 個のエントリーがあります。",viewing_x_collection_one_entry:"「{collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。",viewing_x_collection_no_entries:"「{collection}」コレクションを表示しています。ここにはまだエントリーがありません。",viewing_x_asset_folder_many_assets:"「{folder}」アセットフォルダーを表示しています。ここには {count} 個のアセットがあります。",viewing_x_asset_folder_one_asset:"「{folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。",viewing_x_asset_folder_no_assets:"「{folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。",singleton_selected_announcement:"「{file}」ファイルを編集するには Enter キーを押してください。",collection_not_found:"コレクションが見つかりませんでした",file_not_found:"ファイルが見つかりませんでした",x_of_x_selected:"{total} 個のうち {selected} 個を選択中",switch_view:"ビューを切り替え",list_view:"リストビュー",grid_view:"グリッドビュー",switch_to_list_view:"リストビューに切り替え",switch_to_grid_view:"グリッドビューに切り替え",sort:"並び替え",sorting_options:"並べ替えオプション",sort_keys:{none:"なし",name:"名前",slug:"スラッグ",commit_author:"更新者",commit_date:"更新日時"},ascending:"{label} (A–Z)",ascending_date:"{label} (古い順)",descending:"{label} (Z–A)",descending_date:"{label} (新しい順)",filter:"絞り込み",filtering_options:"絞り込みオプション",group:"グループ化",grouping_options:"グループ化オプション",type:"種類",all:"すべて",image:"画像",video:"動画",audio:"音声",document:"書類",other:"その他",show_assets:"アセットを表示",hide_assets:"アセットを隠す",show_info:"情報を表示",hide_info:"情報を隠す",all_assets:"すべてのアセット",global_assets:"グローバルアセット",creating_entries_disabled_by_admin:"このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。",creating_entries_disabled_by_limit:"このコレクションは最大の {limit} エントリーに達したため、新しいエントリーを作成することはできません。",back_to_collection:"コレクションへ戻る",collection_list:"コレクションリスト",back_to_collection_list:"コレクションリストへ戻る",asset_folder_list:"アセットフォルダーリスト",back_to_asset_folder_list:"アセットフォルダーリストへ戻る",search_results:"検索結果",search_results_for_x:"「{terms}」の検索結果",viewing_entry_search_results:"「{terms}」の検索結果を表示しています。{entries} が見つかりました。",viewing_asset_search_results:"「{terms}」の検索結果を表示しています。{assets} が見つかりました。",many_entries:"{count} 個のエントリー",one_entry:"1 個のエントリー",no_entries:"0 個のエントリー",many_assets:"{count} 個のアセット",one_asset:"1 個のアセット",no_assets:"0 個のアセット",no_files_found:"ファイルは見つかりませんでした。",no_entries_found:"エントリーは見つかりませんでした。",upload_assets:"新しいアセットをアップロード",edit_options:"編集オプション",show_edit_options:"編集オプションを表示",edit_asset:"アセットを編集",edit_x:"{name} を編集",wrap_long_lines:"長い行を折り返す",rename_asset:"アセットの名前を変更",rename_x:"{name} の名前を変更",enter_new_name_for_asset:"新しい名前を以下に入力してください。",enter_new_name_for_asset_with_one_entry:"新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。",enter_new_name_for_asset_with_many_entries:"新しい名前を以下に入力してください。このアセットを使用している {count} 個のエントリーも更新されます。",enter_new_name_for_asset_error:{empty:"ファイル名を空白にすることはできません。",character:"ファイル名に特別な文字を含めることはできません。",duplicate:"このファイル名は他のアセットに使われています。"},replace_asset:"アセットを差し替え",replace_x:"{name} を差し替え",tap_to_browse:"タップして参照…",drop_file_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_files_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_image_file_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_image_files_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_file_here:"ここにファイルをドロップ",drop_files_here:"ここにファイルをドロップ",unsupported_file_type:"非対応ファイル形式",dropped_file_type_mismatch:"ドロップされたファイルは {type} 形式ではありません。再度お試しください。",dropped_image_type_mismatch:"ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。",choose_file:"ファイルを選択",choose_files:"ファイルを選択",delete_asset:"アセットを削除",delete_assets:"アセットを削除",delete_selected_asset:"選択されたアセットを削除",delete_selected_assets:"選択されたアセットを削除",confirm_deleting_this_asset:"このアセットを削除してもよろしいですか?",confirm_deleting_selected_asset:"選択されたファイルを削除してもよろしいですか?",confirm_deleting_selected_assets:"選択された {count} 個のファイルを削除してもよろしいですか?",confirm_deleting_all_assets:"すべてのアセットを削除してもよろしいですか?",delete_entry:"エントリーを削除",delete_entries:"エントリーを削除",delete_selected_entry:"選択されたエントリーを削除",delete_selected_entries:"選択されたエントリーを削除",confirm_deleting_this_entry:"このエントリーを削除してもよろしいですか?",confirm_deleting_this_entry_with_assets:"このエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entry:"選択されたエントリーを削除してもよろしいですか?",confirm_deleting_selected_entry_with_assets:"選択されたエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entries:"選択された {count} 個のエントリーを削除してもよろしいですか?",confirm_deleting_selected_entries_with_assets:"選択された {count} 個のエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_all_entries:"すべてのエントリーを削除してもよろしいですか?",confirm_deleting_all_entries_with_assets:"すべてのエントリーと関連アセットを削除してもよろしいですか?",processing_file:"ファイルを処理しています。これには時間がかかる場合があります。",processing_files:"ファイルを処理しています。これには時間がかかる場合があります。",uploading_files:"アップロード対象ファイル",confirm_replacing_file:"「{name}」を以下のファイルと差し替えてもよろしいですか?",confirm_uploading_file:"以下のファイルを「{folder}」フォルダーに保存してもよろしいですか?",confirm_uploading_files:"以下の {count} 個のファイルを「{folder}」フォルダーに保存してもよろしいですか?",oversized_files:"サイズ超過ファイル",warning_oversized_file:"このファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。",warning_oversized_files:"これらのファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください",file_meta:"{type} · {size}",file_meta_converted_from_x:"({type} から変換)",no_entries_created:"このコレクションにはまだエントリーがありません。",create_new_entry:"新しいエントリーを作成",entry:"エントリー",index_file:"インデックスファイル",no_files_in_collection:"このコレクションにはファイルがありません。",asset_info:"アセット情報",select_asset_show_info:"アセットを選択すると情報が表示されます。",duplicate_entry:"エントリーを複製",entry_duplicated:"エントリーが複製され、新しい下書きとなりました。",entry_validation_error:"ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_validation_errors:"{count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_saved:"エントリーが保存されました。",entry_saved_and_published:"エントリーが保存、公開されました。",entry_deleted:"エントリーが削除されました。",entries_deleted:"{count} 個のエントリーが削除されました。",asset_saved:"アセットが保存されました。",asset_saved_and_published:"アセットが保存、公開されました。",assets_saved:"{count} 個のアセットが保存されました。",assets_saved_and_published:"{count} 個のアセットが保存、公開されました。",asset_url_copied:"アセット URL がクリップボードにコピーされました。",asset_urls_copied:"アセット URL がクリップボードにコピーされました。",asset_path_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_paths_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_data_copied:"アセットファイルがクリップボードにコピーされました。",asset_downloaded:"アセットファイルがダウンロードされました。",assets_downloaded:"アセットファイルがダウンロードされました。",asset_moved:"アセットが移動されました。",assets_moved:"{count} 個のアセットが移動されました。",asset_renamed:"アセットの名前が変更されました。",assets_renamed:"{count} 個のアセットの名前が変更されました。",asset_deleted:"アセットが削除されました。",assets_deleted:"{count} 個のアセットが削除されました。",content_editor:"コンテンツエディター",restore_backup_title:"下書きを復元",restore_backup_description:"このエントリーには {datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?",draft_backup_saved:"下書きのバックアップが保存されました。",draft_backup_restored:"下書きのバックアップが復元されました。",draft_backup_deleted:"下書きのバックアップが削除されました。",cancel_editing:"編集をキャンセル",create_entry_title:"{name} を作成",create_entry_announcement:"「{collection}」コレクションの新しいエントリーを作成しています。",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"「{collection}」コレクションの「{entry}」エントリーを編集しています。",edit_file_announcement:"「{collection}」コレクションの「{file}」ファイルを編集しています。",edit_singleton_announcement:"「{file}」ファイルを編集しています。",save_and_publish:"保存して公開",save_without_publishing:"公開せずに保存",show_editor_options:"エディターオプションを表示",editor_options:"エディターオプション",show_preview:"プレビューを表示",sync_scrolling:"スクロールを同期",switch_locale:"ロケールを切り替え",locale_content_disabled_short:"(無効)",locale_content_error_short:"(エラー)",edit:"編集",preview:"プレビュー",edit_x_locale:"{locale} コンテンツを編集",preview_x_locale:"{locale} コンテンツをプレビュー",content_preview:"コンテンツプレビュー",show_content_options_x_locale:"{locale} コンテンツのオプションを表示",content_options_x_locale:"{locale} コンテンツのオプション",x_field:"「{field}」フィールド",show_field_options:"フィールドオプションを表示",field_options:"フィールドオプション",unsupported_widget_x:"非対応ウィジェット: {name}",enable_x_locale:"{locale} を有効化",reenable_x_locale:"{locale} を再度有効化",disable_x_locale:"{locale} を無効化",locale_x_has_been_disabled:"{locale} コンテンツは無効化されています。",locale_x_now_disabled:"{locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。",view_in_repository:"レポジトリ内で見る",view_on_x:"{service} で見る",view_on_live_site:"管理対象サイトで見る",copy_from:"他の言語からコピー…",copy_from_x:"{locale} からコピー",translation_options:"翻訳オプション",translate:"翻訳",translate_field:"フィールドを翻訳",translate_fields:"フィールドを翻訳",translate_from:"他の言語から翻訳…",translate_from_x:"{locale} から翻訳",revert_changes:"変更を取り消す",revert_all_changes:"すべての変更を取り消す",edit_slug:"スラッグを編集",edit_slug_warning:"スラッグを変更すると、エントリーへの内部・外部リンクが壊れる可能性があります。現在のところ、Sveltia CMS は Relation ウィジェットで作成された参照を更新しないため、そのような参照は他のリンクとともに手動で更新する必要があります。",edit_slug_error:{empty:"スラッグは空白にはできません。",duplicate:"このスラッグは他のエントリーに使われています。"},required:"必須",editor:{translation:{none:"翻訳されたフィールドはありません。",started:"翻訳中…",error:"翻訳中に問題が発生しました。",complete:{one:"{source} からフィールドを翻訳しました。",many:"{source} から {count} 個のフィールドを翻訳しました。"}},copy:{none:"コピーされたフィールドはありません。",complete:{one:"{source} からフィールドをコピーしました。",many:"{source} から {count} 個のフィールドをコピーしました。"}}},validation:{value_missing:"この項目は必須です。",range_underflow:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{select_many:"選択できるのは最大で {max} 項目です。",select_one:"選択できるのは最大で {max} 項目です。",add_many:"追加できるのは最大で {max} 項目です。",add_one:"追加できるのは最大で {max} 項目です。"},too_short:{one:"少なくとも {min} 文字は入力してください。",many:"少なくとも {min} 文字は入力してください。"},too_long:{one:"{max} 文字を超える入力はできません。",many:"{max} 文字を超える入力はできません。"},type_mismatch:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},saving_entry:{error:{title:"エラー",description:"エントリーを保存中に問題が発生しました。後で再度お試しください。"}},find_place:"場所を検索",use_your_location:"現在地を使用",geolocation_error_title:"位置情報エラー",geolocation_error_body:"あなたの現在地を取得できませんでした。",geolocation_unsupported:"お使いのブラウザーは位置情報 API をサポートしていません。",viewing_x_asset_details:"「{name}」アセットの詳細を表示しています。",asset_editor:"アセットエディター",preview_unavailable:"プレビューは表示できません",public_url:"公開 URL",public_urls:"公開 URL",file_path:"ファイルパス",file_paths:"ファイルパス",file_data:"ファイルデータ",kind:"種類",size:"サイズ",dimensions:"大きさ",duration:"再生時間",used_in:"使われているエントリー",created_date:"作成日時",location:"場所",map_lat_lng:"緯度 {latitude}、経度 {longitude} の地図",select_file:"ファイルを選択",select_image:"画像を選択",replace_file:"ファイルを差し替え",replace_image:"画像を差し替え",remove_file:"ファイルを削除",remove_image:"画像を削除",remove_this_item:"このアイテムを削除",move_up:"上へ移動",move_down:"下へ移動",add_x:"{name} を追加",add_item_above:"上にアイテムを追加",add_item_below:"下にアイテムを追加",select_list_type:"リストタイプを選択",opacity:"透明度",unselected_option:"(なし)",assets_dialog:{title:{file:"ファイルを選択",image:"画像を選択"},search_for_file:"ファイルを検索",search_for_image:"画像を検索",locations:"場所",folder:{field:"フィールドアセット",entry:"エントリーアセット",file:"ファイルアセット",collection:"コレクションアセット",global:"グローバルアセット"},error:{invalid_key:"あなたの API キーは正しくないか期限切れです。確認の上、再度お試しください。",search_fetch_failed:"アセットを検索中に問題が発生しました。後で再度お試しください。",image_fetch_failed:"選択されたアセットをダウンロード中に問題が発生しました。後で再度お試しください。"},available_images:"利用可能な画像",enter_url:"URL を入力",enter_file_url:"ファイルの URL を入力:",enter_image_url:"画像の URL を入力:",large_file:{title:"大きなファイル"},photo_credit:{title:"写真クレジット",description:"可能であれば以下のクレジットを使ってください:"},unsaved:"未保存"},character_counter:{min_max:{one:"{count} 文字入力されています。最小: {min}。最大 {max}。",many:"{count} 文字入力されています。最小: {min}。最大 {max}。"},min:{one:"{count} 文字入力されています。最小: {min}。",many:"{count} 文字入力されています。最小: {min}。"},max:{one:"{count} 文字入力されています。最大: {max}。",many:"{count} 文字入力されています。最大: {max}。"}},youtube_video_player:"YouTube 動画プレーヤー",today:"今日",now:"現在時刻",editor_components:{image:"画像",src:"ソース",alt:"代替テキスト",title:"タイトル",link:"リンク"},key_value:{key:"キー",value:"値",action:"アクション",empty_key:"キーは必須です。",duplicate_key:"キーが重複しています。"},boolean:{true:"はい",false:"いいえ"},cloud_storage:{invalid:"このサービスは正しく設定されていません。",auth:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",parse_failed_unsupported_type:"設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML と JSON のみです。",no_collection:"設定ファイル内でコレクションが定義されていません。",missing_backend:"設定ファイル内でバックエンドが定義されていません。",missing_backend_name:"設定ファイル内でバックエンド名が定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",missing_repository:"設定ファイル内でレポジトリが定義されていません。",invalid_repository:"設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",missing_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",invalid_media_folder:"設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。",invalid_public_folder:"設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。",public_folder_relative_path:"設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。",public_folder_absolute_url:"パブリックフォルダーオプションの絶対 URL は非対応です。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"API キーが削除されました。"},error:{permission_denied:"ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。"},appearance:{title:"アピアランス",theme:"テーマ",select_theme:"テーマを選択"},theme:{auto:"自動",dark:"ダーク",light:"ライト"},language:{title:"言語",ui_language:{title:"ユーザーインターフェース言語",select_language:"言語を選択"}},contents:{title:"コンテンツ",editor:{title:"エディター",use_draft_backup:{switch_label:"エントリーの下書きを自動的にバックアップする"},close_on_save:{switch_label:"下書き保存後にエディターを閉じる"},close_with_escape:{switch_label:"Escape キーでエディターを閉じる"}}},i18n:{title:"国際化",default_translator:{title:"デフォルト翻訳サービス",select_service:"サービスを選択"},translator:{field_label:"{service} キー",description:"<a {homeHref}>{service}</a> にユーザー登録して、<a {apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}",providers_disabled:"ストックアセットプロバイダーは管理者によって無効化されています。"}},accessibility:{title:"アクセシビリティ",underline_links:{title:"リンクに下線を付ける",description:"エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。",switch_label:"常に下線を付ける"}},advanced:{title:"詳細",beta:{title:"ベータ機能",description:"不安定あるいは未ローカライズの可能性がある、いくつかのベータ機能を有効化します。",switch_label:"ベータプログラムに参加する"},developer_mode:{title:"開発者モード",description:"詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの開発者向け機能を有効化します。",switch_label:"開発者モードを有効にする"},deploy_hook:{title:"デプロイフック",description:"「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"}}},keyboard_shortcuts_:{view_content_library:"コンテンツライブラリを表示",view_asset_library:"アセットライブラリを表示",search:"エントリーとアセットを検索",create_entry:"新しいエントリーを作成",save_entry:"エントリーを保存",cancel_editing:"エントリーの編集をキャンセル"},file_type_labels:{avif:"AVIF 画像",bmp:"Bitmap 画像",gif:"GIF 画像",ico:"アイコン",jpeg:"JPEG 画像",jpg:"JPEG 画像",png:"PNG 画像",svg:"SVG 画像",tif:"TIFF 画像",tiff:"TIFF 画像",webp:"WebP 画像",avi:"AVI 動画",m4v:"MP4 動画",mov:"QuickTime 動画",mp4:"MP4 動画",mpeg:"MPEG 動画",mpg:"MPEG 動画",ogg:"Ogg 動画",ogv:"Ogg 動画",ts:"MPEG 動画",webm:"WebM 動画","3gp":"3GPP 動画","3g2":"3GPP2 動画",aac:"AAC 音声",mid:"MIDI",midi:"MIDI",m4a:"MP4 音声",mp3:"MP3 音声",oga:"Ogg 音声",opus:"OPUS 音声",wav:"WAV 音声",weba:"WebM 音声",csv:"CSV スプレッドシート",doc:"Word ドキュメント",docx:"Word ドキュメント",odp:"OpenDocument プレゼンテーション",ods:"OpenDocument スプレッドシート",odt:"OpenDocument テキスト",pdf:"PDF ドキュメント",ppt:"PowerPoint プレゼンテーション",pptx:"PowerPoint プレゼンテーション",rtf:"リッチテキストドキュメント",xls:"Excel スプレッドシート",xlsx:"Excel スプレッドシート",html:"HTML テキスト",js:"JavaScript",json:"JSON テキスト",md:"Markdown テキスト",toml:"TOML テキスト",yaml:"YAML テキスト",yml:"YAML テキスト"},file_size_units:{b:"{size} バイト",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},ate=Object.freeze(Object.defineProperty({__proto__:null,strings:ste},Symbol.toStringTag,{value:"Module"})),lte=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":ote,"/src/lib/locales/ja.js":ate})).forEach(([e,{strings:n}])=>{const r=fn(e).filename;Zb(r,n)}),bC({fallbackLocale:"en",initialLocale:ae(ft).locale||(SO()??"").split("-")[0]||"en"})};var cte=U('<link rel="icon"/>'),ute=U('<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>',1),dte=U('<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!> <!></div></div>'),fte=U('<!> <div role="status" class="svelte-7y4msj"> </div>',1);const hte={hash:"svelte-7y4msj",code:`@view-transition {navigation:auto;
|
|
669
|
+
}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);}.columns.svelte-ljqw9n header:where(.svelte-ljqw9n) h3:where(.svelte-ljqw9n) {font-size:var(--sui-font-size-x-large);}`};function ete(t,e){le(e,!0),ke(t,Qee);const n=()=>V(ue,"$_",r),[r,i]=me();{const o=a=>{var c=Zee(),u=z(c);Ao(u,{class:"column","aria-labelledby":"draft-column-title",children:(h,p)=>{var g=Yee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.drafts")]),$(h,g)},$$slots:{default:!0}});var d=j(u,2);Ao(d,{class:"column","aria-labelledby":"review-column-title",children:(h,p)=>{var g=Jee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.in_review")]),$(h,g)},$$slots:{default:!0}});var f=j(d,2);Ao(f,{class:"column","aria-labelledby":"ready-column-title",children:(h,p)=>{var g=Xee(),m=z(g),v=z(m);Z(b=>te(v,b),[()=>n()("status.ready")]),$(h,g)},$$slots:{default:!0}}),$(a,c)};let s=_(()=>n()("editorial_workflow"));_l(t,{get"aria-label"(){return l(s)},main:o,$$slots:{main:!0}})}ce(),i()}var tte=U("<!> <!>",1),nte=U('<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>',1);const rte={hash:"svelte-1a6c577",code:".page-root.svelte-1a6c577 {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;view-transition-name:page-root;}"};function ite(t,e){le(e,!0),ke(t,rte);const n=()=>V($b,"$selectedPageName",o),r=()=>V(YP,"$canShowMobileSignInDialog",o),i=()=>V(cn,"$isSmallScreen",o),[o,s]=me(),a={collections:MZ,assets:RH,search:jee,workflow:ete,config:HH,menu:HQ,settings:Wee},c=_(()=>a[n()]),u=()=>{Ge(ll,!1),Ge(na,!1);const{path:T}=Oo(),{pageName:A}=T.match(`^\\/(?<pageName>${Object.keys(a).join("|")})\\b`)?.groups??{};A?n()!==A&&Ge($b,A):window.location.replace("#/collections"),A==="collections"?Ge(Ra,"entries"):A==="assets"?Ge(Ra,"assets"):A!=="search"&&Ge(Ra,null)};jt(()=>{u()});var d={pages:a,selectPage:u},f=nte();Hr("hashchange",Fa,()=>{u()});var h=M(f);{var p=T=>{var A=tte(),P=M(A);qZ(P,{});var L=j(P,2);mee(L,{}),$(T,A)};q(h,T=>{r()&&T(p)})}var g=j(h,2);{var m=T=>{BQ(T,{})};q(g,T=>{i()||T(m)})}var v=j(g,2),b=z(v);Hn(b,()=>l(c),(T,A)=>{A(T,{})});var y=j(v,2);{var w=T=>{GZ(T,{})};q(y,T=>{i()&&T(w)})}var E=j(y,2);UH(E,{});var k=j(E,2);BH(k,{});var S=j(k,2);zZ(S,{});var C=j(S,2);jZ(C,{}),$(t,f);var x=ce(d);return s(),x}const ote={collections:"Collections",contents:"Contents",entries:"Entries",files:"Files",assets:"Assets",media:"Media",workflow:"Workflow",editorial_workflow:"Editorial Workflow",menu:"Menu",user_name:"User Name",password:"Password",sign_in:"Sign In",sign_in_with_mobile:"Sign In with Mobile",sign_in_with_mobile_instruction:"Scan the QR code below with your phone or tablet for passwordless sign-in. Your settings will be automatically copied.",signed_in_as_x:"Signed In as {name}",working_with_local_repo:"Working with Local Repository",working_with_test_repo:"Working with Test Repository",sign_out:"Sign Out",create:"New",select:"Select",select_all:"Select All",upload:"Upload",copy:"Copy",download:"Download",duplicate:"Duplicate",delete:"Delete",save:"Save",saving:"Saving…",rename:"Rename",update:"Update",replace:"Replace",add:"Add",remove:"Remove",remove_x:"Remove {name}",clear:"Clear",expand:"Expand",expand_all:"Expand All",collapse:"Collapse",collapse_all:"Collapse All",insert:"Insert",restore:"Restore",discard:"Discard",searching:"Searching…",no_results:"No results found.",global:"Global",primary:"Primary",secondary:"Secondary",collection:"Collection",folder:"Folder",api_key:"API Key",details:"Details",back:"Back",loading:"Loading…",later:"Later",slug:"Slug",clipboard_error:"There was an error while copying data.",welcome_to_sveltia_cms:"Welcome to Sveltia CMS",loading_site_config:"Loading Site Configuration…",loading_site_data:"Loading Site Data…",loading_site_data_error:"There was an error while loading site data.",sign_in_with_x:"Sign In with {service}",sign_in_with_x_using_pat:"Sign In with {service} Using PAT",sign_in_using_pat_title:"Sign In Using Personal Access Token",sign_in_using_pat_description:"Enter your token below. It must have read/write access to the repository content.",sign_in_using_pat_link:"You can generate a token on the <a>{service} user settings page</a>.",personal_access_token:"Personal Access Token",authorizing:"Authorizing…",signing_in:"Signing in…",work_with_local_repo:"Work with Local Repository",work_with_local_repo_description:"Once prompted, select the root directory of the “{repo}” repository.",work_with_local_repo_description_no_repo:"Once prompted, select the root directory of your Git repository.",work_with_test_repo:"Work with Test Repository",sign_in_error:{not_project_root:"The folder you have selected is not a repository root directory. Please try again.",picker_dismissed:"A repository root directory could not be selected. Please try again.",authentication_aborted:"Authentication aborted. Please try again.",invalid_token:"The provided token is invalid. Please check and try again.",UNSUPPORTED_BACKEND:"Your Git backend is not supported by the authenticator.",UNSUPPORTED_DOMAIN:"Your domain is not allowed to use the authenticator.",MISCONFIGURED_CLIENT:"OAuth app client ID or secret is not configured.",AUTH_CODE_REQUEST_FAILED:"Failed to receive an authorization code. Please try again later.",CSRF_DETECTED:"Potential CSRF attack detected. Authentication flow aborted.",TOKEN_REQUEST_FAILED:"Failed to request an access token. Please try again later.",TOKEN_REFRESH_FAILED:"Failed to refresh the access token. Please try again later.",MALFORMED_RESPONSE:"Server responded with malformed data. Please try again later."},backend_unsupported_version:"The {name} backend requires {name} {version} or later.",repository_no_access:"You don’t have access to the “{repo}” repository.",repository_not_found:"The “{repo}” repository doesn’t exist.",repository_empty:"The “{repo}” repository has no branches.",branch_not_found:"The “{repo}” repository doesn’t have the “{branch}” branch.",unexpected_error:"Unexpected Error",entry_parse_error:"There was an error while parsing an entry file. Check the browser console for details.",entry_parse_errors:"There were errors while parsing entry files. Check the browser console for details.",mobile_promo_title:"Sveltia CMS is now available on mobile!",mobile_promo_button:"Give it a try",visit_live_site:"Visit Live Site",switch_page:"Switch Page",search_placeholder_entries:"Search for entries…",search_placeholder_assets:"Search for assets…",search_placeholder_all:"Search for entries and assets…",create_entry_or_assets:"Create Entry or Assets",publish_changes:"Publish Changes",publishing_changes:"Publishing Changes…",publishing_changes_failed:"Changes could not be published. Please try again later.",show_notifications:"Show Notifications",notifications:"Notifications",show_account_menu:"Show Account Menu",account:"Account",live_site:"Live Site",git_repository:"Git Repository",settings:"Settings",site_config:"Site Configuration",show_help_menu:"Show Help Menu",help:"Help",keyboard_shortcuts:"Keyboard Shortcuts",documentation:"Documentation",release_notes:"Release Notes",version_x:"Version {version}",report_issue:"Report Issue",share_feedback:"Share Feedback",get_help:"Get Help",join_discord:"Join Us on Discord",update_available:"The latest version of Sveltia CMS is available.",update_now:"Update Now",backend_status:{minor_incident:"{service} is experiencing a minor incident. Your workflow may be potentially affected.",major_incident:"{service} is experiencing a major incident. You may want to wait until the situation has improved."},content_library:"Content Library",asset_library:"Asset Library",asset_location:{repository:"Your Site",external:"External Locations",stock_photos:"Stock Photos"},collection_assets:"Collection Assets",entry_list:"Entry List",file_list:"File List",asset_list:"Asset List",x_collection:"“{collection}” Collection",x_asset_folder:"“{folder}” Asset Folder",viewing_collection_list:"You’re now viewing the collection list.",viewing_asset_folder_list:"You’re now viewing the asset folder list.",viewing_x_collection_many_entries:"You’re now viewing the “{collection}” collection, which has {count} entries.",viewing_x_collection_one_entry:"You’re now viewing the “{collection}” collection, which has one entry.",viewing_x_collection_no_entries:"You’re now viewing the “{collection}” collection, which has no entries yet.",viewing_x_asset_folder_many_assets:"You’re now viewing the “{folder}” asset folder, which has {count} assets.",viewing_x_asset_folder_one_asset:"You’re now viewing the “{folder}” asset folder, which has one asset.",viewing_x_asset_folder_no_assets:"You’re now viewing the “{folder}” asset folder, which has no assets yet.",singleton_selected_announcement:"Press Enter to edit the “{file}” file.",collection_not_found:"Collection not found",file_not_found:"File not found.",x_of_x_selected:"{selected} of {total} selected",switch_view:"Switch View",list_view:"List View",grid_view:"Grid View",switch_to_list_view:"Switch to List View",switch_to_grid_view:"Switch to Grid View",sort:"Sort",sorting_options:"Sorting Options",sort_keys:{none:"None",name:"Name",slug:"Slug",commit_author:"Updated by",commit_date:"Updated on"},ascending:"{label}, A to Z",ascending_date:"{label}, old to new",descending:"{label}, Z to A",descending_date:"{label}, new to old",filter:"Filter",filtering_options:"Filtering Options",group:"Group",grouping_options:"Grouping Options",type:"Type",all:"All",image:"Image",video:"Video",audio:"Audio",document:"Document",other:"Other",show_assets:"Show Assets",hide_assets:"Hide Assets",show_info:"Show Info",hide_info:"Hide Info",all_assets:"All Assets",global_assets:"Global Assets",creating_entries_disabled_by_admin:"Creating new entries in this collection is disabled by the administrator.",creating_entries_disabled_by_limit:"You cannot add new entries to this collection because it has reached its limit of {limit} entries.",back_to_collection:"Back to Collection",collection_list:"Collection List",back_to_collection_list:"Back to Collection List",asset_folder_list:"Asset Folder List",back_to_asset_folder_list:"Back to Asset Folder List",search_results:"Search Results",search_results_for_x:"Search Results for “{terms}”",viewing_entry_search_results:"You’re now viewing search results for “{terms}”. We’ve found {entries}.",viewing_asset_search_results:"You’re now viewing search results for “{terms}”. We’ve found {assets}.",many_entries:"{count} entries",one_entry:"one entry",no_entries:"no entries",many_assets:"{count} assets",one_asset:"one asset",no_assets:"no assets",no_files_found:"No files found.",no_entries_found:"No entries found.",upload_assets:"Upload New Assets",edit_options:"Edit Options",show_edit_options:"Show Edit Options",edit_asset:"Edit Asset",edit_x:"Edit {name}",wrap_long_lines:"Wrap Long Lines",rename_asset:"Rename Asset",rename_x:"Rename {name}",enter_new_name_for_asset:"Enter a new name below.",enter_new_name_for_asset_with_one_entry:"Enter a new name below. An entry using the asset will also be updated.",enter_new_name_for_asset_with_many_entries:"Enter a new name below. {count} entries using the asset will also be updated.",enter_new_name_for_asset_error:{empty:"File name cannot be empty.",character:"File name cannot contain special characters.",duplicate:"This file name is used for another asset."},replace_asset:"Replace Asset",replace_x:"Replace {name}",tap_to_browse:"Tap to browse…",drop_file_or_click_to_browse:"Drop a file here or click to browse…",drop_files_or_click_to_browse:"Drop files here or click to browse…",drop_image_file_or_click_to_browse:"Drop an image file here or click to browse…",drop_image_files_or_click_to_browse:"Drop image files here or click to browse…",drop_file_here:"Drop a file here",drop_files_here:"Drop files here",unsupported_file_type:"Unsupported File Type",dropped_file_type_mismatch:"The dropped file is not the {type} type. Please try again.",dropped_image_type_mismatch:"The dropped file is not supported. Only an AVIF, GIF, JPEG, PNG, WebP or SVG image is accepted. Please try again.",choose_file:"Choose File",choose_files:"Choose Files",delete_asset:"Delete Asset",delete_assets:"Delete Assets",delete_selected_asset:"Delete Selected Asset",delete_selected_assets:"Delete Selected Assets",confirm_deleting_this_asset:"Are you sure to delete this asset?",confirm_deleting_selected_asset:"Are you sure to delete the selected asset?",confirm_deleting_selected_assets:"Are you sure to delete the selected {count} assets?",confirm_deleting_all_assets:"Are you sure to delete all the assets?",delete_entry:"Delete Entry",delete_entries:"Delete Entries",delete_selected_entry:"Delete Selected Entry",delete_selected_entries:"Delete Selected Entries",confirm_deleting_this_entry:"Are you sure to delete this entry?",confirm_deleting_this_entry_with_assets:"Are you sure to delete this entry and associated assets?",confirm_deleting_selected_entry:"Are you sure to delete the selected entry?",confirm_deleting_selected_entry_with_assets:"Are you sure to delete the selected entry and associated assets?",confirm_deleting_selected_entries:"Are you sure to delete the selected {count} entries?",confirm_deleting_selected_entries_with_assets:"Are you sure to delete the selected {count} entries and associated assets?",confirm_deleting_all_entries:"Are you sure to delete all the entries?",confirm_deleting_all_entries_with_assets:"Are you sure to delete all the entries and associated assets?",processing_file:"Processing a file. This may take a while.",processing_files:"Processing files. This may take a while.",uploading_files:"Uploading Files",confirm_replacing_file:"Are you sure to replace “{name}” with the following file?",confirm_uploading_file:"Are you sure to save the following file to the “{folder}” folder?",confirm_uploading_files:"Are you sure to save the following {count} files to the “{folder}” folder?",oversized_files:"Oversized Files",warning_oversized_file:"This file cannot be uploaded because it exceeds the maximum size of {size}. Please reduce the size or select a different file.",warning_oversized_files:"These files cannot be uploaded because they exceed the maximum size of {size}. Please reduce the sizes or select different files.",file_meta:"{type} · {size}",file_meta_converted_from_x:"(converted from {type})",no_entries_created:"This collection has no entries yet.",create_new_entry:"Create New Entry",entry:"Entry",index_file:"Index File",no_files_in_collection:"No files available in this collection.",asset_info:"Asset Info",select_asset_show_info:"Select an asset to show the info.",duplicate_entry:"Duplicate Entry",entry_duplicated:"Entry has been duplicated. It’s now a new draft.",entry_validation_error:"One field has an error. Please correct it to save the entry.",entry_validation_errors:"{count} fields have an error. Please correct them to save the entry.",entry_saved:"Entry has been saved.",entry_saved_and_published:"Entry has been saved and published.",entry_deleted:"Entry has been deleted.",entries_deleted:"{count} entries have been deleted.",asset_saved:"Asset has been saved.",asset_saved_and_published:"Asset has been saved and published.",assets_saved:"{count} assets have been saved.",assets_saved_and_published:"{count} assets have been saved and published.",asset_url_copied:"Asset URL has been copied to clipboard.",asset_urls_copied:"Asset URLs have been copied to clipboard.",asset_path_copied:"Asset file path has been copied to clipboard.",asset_paths_copied:"Asset file paths have been copied to clipboard.",asset_data_copied:"Asset file has been copied to clipboard.",asset_downloaded:"Asset file has been downloaded.",assets_downloaded:"Asset files have been downloaded.",asset_moved:"Asset has been moved.",assets_moved:"{count} assets have been moved.",asset_renamed:"Asset has been renamed.",assets_renamed:"{count} assets have been renamed.",asset_deleted:"Asset has been deleted.",assets_deleted:"{count} assets have been deleted.",content_editor:"Content Editor",restore_backup_title:"Restore Draft",restore_backup_description:"This entry has a backup from {datetime}. Do you want to restore the edited draft?",draft_backup_saved:"Draft backup has been saved.",draft_backup_restored:"Draft backup has been restored.",draft_backup_deleted:"Draft backup has been deleted.",cancel_editing:"Cancel Editing",create_entry_title:"Creating {name}",create_entry_announcement:"You’re now creating a new entry in the “{collection}” collection.",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"You’re now editing the “{entry}” entry in the “{collection}” collection.",edit_file_announcement:"You’re now editing the “{file}” file in the “{collection}” collection.",edit_singleton_announcement:"You’re now editing the “{file}” file.",save_and_publish:"Save and Publish",save_without_publishing:"Save without Publishing",show_editor_options:"Show Editor Options",editor_options:"Editor Options",show_preview:"Show Preview",sync_scrolling:"Sync Scrolling",switch_locale:"Switch Locale",locale_content_disabled_short:"(disabled)",locale_content_error_short:"(error)",edit:"Edit",preview:"Preview",edit_x_locale:"Edit {locale} Content",preview_x_locale:"Preview {locale} Content",content_preview:"Content Preview",show_content_options_x_locale:"Show {locale} Content Options",content_options_x_locale:"{locale} Content Options",x_field:"“{field}” Field",show_field_options:"Show Field Options",field_options:"Field Options",unsupported_widget_x:"Unsupported widget: {name}",enable_x_locale:"Enable {locale}",reenable_x_locale:"Reenable {locale}",disable_x_locale:"Disable {locale}",locale_x_has_been_disabled:"The {locale} content has been disabled.",locale_x_now_disabled:"The {locale} content is now disabled. It will be deleted when you save the entry.",view_in_repository:"View in Repository",view_on_x:"View on {service}",view_on_live_site:"View on Live Site",copy_from:"Copy from…",copy_from_x:"Copy from {locale}",translation_options:"Translation Options",translate:"Translate",translate_field:"Translate Field",translate_fields:"Translate Fields",translate_from:"Translate from…",translate_from_x:"Translate from {locale}",revert_changes:"Revert Changes",revert_all_changes:"Revert All Changes",edit_slug:"Edit Slug",edit_slug_warning:"Changing the slug may break internal and external links to the entry. Currently, Sveltia CMS does not update references created with the Relation widget, so you’ll need to manually update such references along with other links.",edit_slug_error:{empty:"The slug cannot be empty.",duplicate:"This slug is used for another entry."},required:"Required",editor:{translation:{none:"Nothing has been translated.",started:"Translating…",error:"There was an error while translating.",complete:{one:"Translated the field from {source}.",many:"Translated {count} fields from {source}."}},copy:{none:"Nothing has been copied.",complete:{one:"Copied the field from {source}.",many:"Copied {count} fields from {source}."}}},validation:{value_missing:"This field is required.",range_underflow:{number:"Value must be greater than or equal to {min}.",select_many:"You have to select at least {min} items.",select_one:"You have to select at least {min} item.",add_many:"You have to add at least {min} items.",add_one:"You have to add at least {min} item."},range_overflow:{number:"Value must be less than or equal to {max}.",select_many:"You cannot select more than {max} items.",select_one:"You cannot select more than {max} item.",add_many:"You cannot add more than {max} items.",add_one:"You cannot add more than {max} item."},too_short:{one:"You must enter at least {min} character.",many:"You must enter at least {min} characters."},too_long:{one:"You cannot enter more than {max} character.",many:"You cannot enter more than {max} characters."},type_mismatch:{number:"Please enter a number.",email:"Please enter a valid email.",url:"Please enter a valid URL."}},saving_entry:{error:{title:"Error",description:"There was an error while saving the entry. Please try again later."}},viewing_x_asset_details:"You’re viewing the details of the “{name}” asset.",asset_editor:"Asset Editor",preview_unavailable:"Preview Unavailable.",public_url:"Public URL",public_urls:"Public URLs",file_path:"File Path",file_paths:"File Paths",file_data:"File Data",kind:"Kind",size:"Size",dimensions:"Dimensions",duration:"Duration",used_in:"Used in",created_date:"Created Date",location:"Location",map_lat_lng:"Map showing latitude {latitude}, longitude {longitude}",select_file:"Select File",select_image:"Select Image",replace_file:"Replace File",replace_image:"Replace Image",remove_file:"Remove File",remove_image:"Remove Image",remove_this_item:"Remove This Item",move_up:"Move Up",move_down:"Move Down",add_x:"Add {name}",add_item_above:"Add Item Above",add_item_below:"Add Item Below",select_list_type:"Select List Type",opacity:"Opacity",unselected_option:"(None)",assets_dialog:{title:{file:"Select File",image:"Select Image"},search_for_file:"Search for Files",search_for_image:"Search for Images",locations:"Locations",folder:{field:"Field Assets",entry:"Entry Assets",file:"File Assets",collection:"Collection Assets",global:"Global Assets"},error:{invalid_key:"Your API Key is invalid or expired. Please double check and try again.",search_fetch_failed:"There was an error while searching assets. Please try again later.",image_fetch_failed:"There was an error while downloading the selected asset. Please try again later."},available_images:"Available Images",enter_url:"Enter URL",enter_file_url:"Enter URL of the file:",enter_image_url:"Enter URL of the image:",large_file:{title:"Large File"},photo_credit:{title:"Photo Credit",description:"Use the following credit if possible:"},unsaved:"Unsaved"},character_counter:{min_max:{one:"{count} character entered. Minimum: {min}. Maximum: {max}.",many:"{count} characters entered. Minimum: {min}. Maximum: {max}."},min:{one:"{count} character entered. Minimum: {min}.",many:"{count} characters entered. Minimum: {min}."},max:{one:"{count} character entered. Maximum: {max}.",many:"{count} characters entered. Maximum: {max}."}},youtube_video_player:"YouTube video player",today:"Today",now:"Now",editor_components:{image:"Image",src:"Source",alt:"Alt Text",title:"Title",link:"Link"},key_value:{key:"Key",value:"Value",action:"Action",empty_key:"Key is required.",duplicate_key:"Key must be unique."},find_place:"Find a Place",use_your_location:"Use Your Location",geolocation_error_title:"Geolocation Error",geolocation_error_body:"There was an error while retrieving your location.",geolocation_unsupported:"Geolocation API is not supported by this browser.",boolean:{true:"Yes",false:"No"},cloud_storage:{invalid:"The service is not configured properly.",auth:{initial:"Sign into {service} to insert media on the storage to entry fields.",requested:"Signing in…",error:"User name or password is incorrect. Please double check and try again."}},config:{error:{no_secure_context:"Sveltia CMS only works with HTTPS or localhost URLs.",fetch_failed:"The configuration file could not be retrieved.",fetch_failed_not_ok:"HTTP response returned with status {status}.",parse_failed:"The configuration file could not be parsed.",parse_failed_invalid_object:"The configuration file is not a valid JavaScript object.",parse_failed_unsupported_type:"The configuration file is not a valid file type. Only YAML and JSON are supported.",no_collection:"Collections are not defined in the configuration file.",missing_backend:"The backend is not defined in the configuration file.",missing_backend_name:"The backend name is not defined in the configuration file.",unsupported_backend:"The configured “{name}” backend is not supported.",missing_repository:"The repository is not defined in the configuration file.",invalid_repository:"The configured repository is invalid. It must be in “owner/repo” format.",oauth_implicit_flow:"The configured authentication method (implicit flow) is not supported.",oauth_no_app_id:"OAuth application ID is not defined in the configuration file.",missing_media_folder:"The media folder is not defined in the configuration file.",invalid_media_folder:"The configured media folder is invalid. It must be a string.",invalid_public_folder:"The configured public folder is invalid. It must be a string.",public_folder_relative_path:"The configured public folder is invalid. It must be an absolute path starting with “/”.",public_folder_absolute_url:"An absolute URL for the public folder option is not supported.",unexpected:"There was an unexpected error while validating the configuration file.",try_again:"Please solve the issue and try again."}},local_backend:{unsupported_browser:"Local development is not supported in your browser. Please use Chrome or Edge instead.",disabled:"Local development is disabled in your browser. <a>Here’s how to enable it</a>."},status:{drafts:"Drafts",in_review:"In Review",ready:"Ready"},categories:"Categories",prefs:{changes:{api_key_saved:"API key has been saved.",api_key_removed:"API key has been removed."},error:{permission_denied:"Browser storage (Cookie) access has been denied. Please check the permission and try again."},appearance:{title:"Appearance",theme:"Theme",select_theme:"Select Theme"},theme:{auto:"Auto",dark:"Dark",light:"Light"},language:{title:"Language",ui_language:{title:"User Interface Language",select_language:"Select Language"}},contents:{title:"Contents",editor:{title:"Editor",use_draft_backup:{switch_label:"Automatically back up entry drafts"},close_on_save:{switch_label:"Close the editor after saving a draft"},close_with_escape:{switch_label:"Close the editor with the Escape key"}}},i18n:{title:"Internationalization",default_translator:{title:"Default Translation Service",select_service:"Select Service"},translator:{field_label:"{service} Key",description:"Sign up for <a {homeHref}>{service}</a> and enter <a {apiKeyHref}>your API Key</a> here to enable quick translation of text entry fields."}},media:{title:"Media",stock_photos:{title:"{service} Free Images",field_label:"{service} API Key",description:"Sign up for <a {homeHref}>{service} API</a> and enter <a {apiKeyHref}>your API Key</a> here to insert free stock photos to image entry fields.",credit:"Photos provided by {service}",providers_disabled:"Stock asset providers are disabled by the administrator."}},accessibility:{title:"Accessibility",underline_links:{title:"Underline Links",description:"Show underline for links in the entry preview and user interface labels.",switch_label:"Always Underline Links"}},advanced:{title:"Advanced",beta:{title:"Beta Features",description:"Enable some beta features that may be unstable or unlocalized.",switch_label:"Join Beta Program"},developer_mode:{title:"Developer Mode",description:"Enable some developer-oriented features, including detailed console logs and native context menus.",switch_label:"Enable Developer Mode"},deploy_hook:{title:"Deploy Hook",description:"Enter a webhook URL to be called when you manually trigger a deployment by selecting Publish Changes. This can be left blank if you’re using GitHub Actions.",field_label:"Deploy Hook URL",url_saved:"Webhook URL has been saved.",url_removed:"Webhook URL has been removed."}}},keyboard_shortcuts_:{view_content_library:"View Content Library",view_asset_library:"View Asset Library",search:"Search for entries and assets",create_entry:"Create a new entry",save_entry:"Save an entry",cancel_editing:"Cancel entry editing"},file_type_labels:{avif:"AVIF image",bmp:"Bitmap image",gif:"GIF image",ico:"Icon",jpeg:"JPEG image",jpg:"JPEG image",png:"PNG image",svg:"SVG image",tif:"TIFF image",tiff:"TIFF image",webp:"WebP image",avi:"AVI video",m4v:"MP4 video",mov:"QuickTime video",mp4:"MP4 video",mpeg:"MPEG video",mpg:"MPEG video",ogg:"Ogg video",ogv:"Ogg video",ts:"MPEG video",webm:"WebM video","3gp":"3GPP video","3g2":"3GPP2 video",aac:"AAC audio",mid:"MIDI",midi:"MIDI",m4a:"MP4 audio",mp3:"MP3 audio",oga:"Ogg audio",opus:"OPUS audio",wav:"WAV audio",weba:"WebM audio",csv:"CSV spreadsheet",doc:"Word document",docx:"Word document",odp:"OpenDocument presentation",ods:"OpenDocument spreadsheet",odt:"OpenDocument text",pdf:"PDF document",ppt:"PowerPoint presentation",pptx:"PowerPoint presentation",rtf:"Rich text document",xls:"Excel spreadsheet",xlsx:"Excel spreadsheet",html:"HTML text",js:"JavaScript",json:"JSON text",md:"Markdown text",toml:"TOML text",yaml:"YAML text",yml:"YAML text"},file_size_units:{b:"{size} bytes",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},ste=Object.freeze(Object.defineProperty({__proto__:null,strings:ote},Symbol.toStringTag,{value:"Module"})),ate={collections:"コレクション",contents:"コンテンツ",entries:"エントリー",files:"ファイル",assets:"アセット",media:"メディア",workflow:"ワークフロー",editorial_workflow:"編集ワークフロー",menu:"メニュー",user_name:"ユーザー名",password:"パスワード",sign_in:"ログイン",sign_in_with_mobile:"モバイルでログイン",sign_in_with_mobile_instruction:"以下の QR コードを携帯電話かタブレットでスキャンすると、パスワードなしでログインできます。ユーザー設定は自動的にコピーされます。",signed_in_as_x:"{name} としてログイン中",working_with_local_repo:"ローカルレポジトリで作業中",working_with_test_repo:"テストレポジトリで作業中",sign_out:"ログアウト",create:"新規作成",select:"選択",select_all:"すべて選択",upload:"アップロード",copy:"コピー",download:"ダウンロード",duplicate:"複製",delete:"削除",save:"保存",saving:"保存中…",rename:"名前を変更",update:"更新",replace:"差し替え",add:"追加",remove:"削除",remove_x:"{name} を削除",clear:"クリア",expand:"広げる",expand_all:"すべて広げる",collapse:"折り畳む",collapse_all:"すべて折り畳む",insert:"挿入",restore:"復元",discard:"破棄",searching:"検索中…",no_results:"結果が見つかりませんでした。",global:"グローバル",primary:"プライマリー",secondary:"セカンダリー",collection:"コレクション",folder:"フォルダー",api_key:"API キー",details:"詳細",back:"戻る",loading:"読み込み中…",later:"後で",slug:"スラッグ",clipboard_error:"データのコピー中に問題が発生しました。",welcome_to_sveltia_cms:"Sveltia CMS へようこそ",loading_site_config:"サイト設定を読み込んでいます…",loading_site_data:"サイトデータを読み込んでいます…",loading_site_data_error:"サイトデータの読み込み中にエラーが発生しました。",sign_in_with_x:"{service} でログイン",sign_in_with_x_using_pat:"{service} で PAT を使用してログイン",sign_in_using_pat_title:"個人用アクセストークンでログイン",sign_in_using_pat_description:"以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。",sign_in_using_pat_link:"<a>{service} ユーザー設定ページ</a> でトークンを生成できます。",personal_access_token:"個人用アクセストークン",authorizing:"認証中…",signing_in:"ログイン中…",work_with_local_repo:"ローカルレポジトリで作業",work_with_local_repo_description:"ダイアログが表示されたら、「{repo}」レポジトリのルートディレクトリを選択してください。",work_with_local_repo_description_no_repo:"ダイアログが表示されたら、Git レポジトリのルートディレクトリを選択してください。",work_with_test_repo:"テストレポジトリで作業",sign_in_error:{not_project_root:"選択されたフォルダーはレポジトリのルートディレクトリではありません。再度お試しください。",picker_dismissed:"レポジトリのルートディレクトリを選択できませんでした。再度お試しください。",authentication_aborted:"認証が中断されました。再度お試しください。",invalid_token:"入力されたトークンが無効です。確認して再度お試しください。",UNSUPPORTED_BACKEND:"この認証アプリはお使いの Git バックエンドに対応していません。",UNSUPPORTED_DOMAIN:"この認証アプリではお使いのドメインの使用は許可されていません。",MISCONFIGURED_CLIENT:"OAuth アプリのクライアント ID またはシークレットが設定されていません。",AUTH_CODE_REQUEST_FAILED:"認証コードを取得できませんでした。後で再度お試しください。",CSRF_DETECTED:"CSRF 攻撃の可能性が検出されたため、認証フローは中断されました。",TOKEN_REQUEST_FAILED:"アクセストークンを要求できませんでした。後で再度お試しください。",TOKEN_REFRESH_FAILED:"アクセストークンの更新に失敗しました。後で再度お試しください。",MALFORMED_RESPONSE:"サーバーから不正なデータが返されました。後で再度お試しください。"},backend_unsupported_version:"{name} バックエンドには {name} {version} 以降のバージョンが必要です。",repository_no_access:"あなたには「{repo}」レポジトリへのアクセス権がありません。",repository_not_found:"「{repo}」レポジトリは存在しません。",repository_empty:"「{repo}」レポジトリにはブランチがありません。",branch_not_found:"「{repo}」レポジトリに「{branch}」ブランチは存在しません。",unexpected_error:"予期せぬエラー",entry_parse_error:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",entry_parse_errors:"エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。",visit_live_site:"管理対象サイトを開く",switch_page:"ページを切り替え",search_placeholder_entries:"エントリーを検索…",search_placeholder_assets:"アセットを検索…",search_placeholder_all:"エントリーとアセットを検索…",create_entry_or_assets:"エントリーまたはアセットを作成",publish_changes:"変更を公開",publishing_changes:"変更を公開しています…",publishing_changes_failed:"変更を公開できませんでした。後で再度お試しください。",show_notifications:"通知を表示",notifications:"通知",show_account_menu:"アカウントメニューを表示",account:"アカウント",live_site:"管理対象サイト",git_repository:"Git レポジトリ",settings:"設定",site_config:"サイト設定",show_help_menu:"ヘルプメニューを表示",help:"ヘルプ",keyboard_shortcuts:"キーボードショートカット",documentation:"ドキュメンテーション",release_notes:"リリースノート",version_x:"バージョン {version}",report_issue:"問題を報告",share_feedback:"フィードバックを共有",get_help:"サポート",join_discord:"Discord チャンネルに参加",mobile_promo_title:"Sveltia CMS がモバイルに対応しました!",mobile_promo_button:"試してみる",update_available:"Sveltia CMS の最新版が利用可能です。",update_now:"今すぐ更新",backend_status:{minor_incident:"{service} で軽微な障害が発生しています。ワークフローに潜在的な影響が及ぶ可能性があります。",major_incident:"{service} で重大な障害が発生しています。状況が改善されるまで待った方が良いかもしれません。"},content_library:"コンテンツライブラリ",asset_library:"アセットライブラリ",asset_location:{repository:"あなたのサイト",external:"外部の場所",stock_photos:"ストックフォト"},collection_assets:"コレクションアセット",entry_list:"エントリーリスト",file_list:"ファイルリスト",asset_list:"アセットリスト",x_collection:"「{collection}」コレクション",x_asset_folder:"「{folder}」アセットフォルダー",viewing_collection_list:"コレクションリストを表示しています。",viewing_asset_folder_list:"アセットフォルダーリストを表示しています。",viewing_x_collection_many_entries:"「{collection}」コレクションを表示しています。ここには {count} 個のエントリーがあります。",viewing_x_collection_one_entry:"「{collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。",viewing_x_collection_no_entries:"「{collection}」コレクションを表示しています。ここにはまだエントリーがありません。",viewing_x_asset_folder_many_assets:"「{folder}」アセットフォルダーを表示しています。ここには {count} 個のアセットがあります。",viewing_x_asset_folder_one_asset:"「{folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。",viewing_x_asset_folder_no_assets:"「{folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。",singleton_selected_announcement:"「{file}」ファイルを編集するには Enter キーを押してください。",collection_not_found:"コレクションが見つかりませんでした",file_not_found:"ファイルが見つかりませんでした",x_of_x_selected:"{total} 個のうち {selected} 個を選択中",switch_view:"ビューを切り替え",list_view:"リストビュー",grid_view:"グリッドビュー",switch_to_list_view:"リストビューに切り替え",switch_to_grid_view:"グリッドビューに切り替え",sort:"並び替え",sorting_options:"並べ替えオプション",sort_keys:{none:"なし",name:"名前",slug:"スラッグ",commit_author:"更新者",commit_date:"更新日時"},ascending:"{label} (A–Z)",ascending_date:"{label} (古い順)",descending:"{label} (Z–A)",descending_date:"{label} (新しい順)",filter:"絞り込み",filtering_options:"絞り込みオプション",group:"グループ化",grouping_options:"グループ化オプション",type:"種類",all:"すべて",image:"画像",video:"動画",audio:"音声",document:"書類",other:"その他",show_assets:"アセットを表示",hide_assets:"アセットを隠す",show_info:"情報を表示",hide_info:"情報を隠す",all_assets:"すべてのアセット",global_assets:"グローバルアセット",creating_entries_disabled_by_admin:"このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。",creating_entries_disabled_by_limit:"このコレクションは最大の {limit} エントリーに達したため、新しいエントリーを作成することはできません。",back_to_collection:"コレクションへ戻る",collection_list:"コレクションリスト",back_to_collection_list:"コレクションリストへ戻る",asset_folder_list:"アセットフォルダーリスト",back_to_asset_folder_list:"アセットフォルダーリストへ戻る",search_results:"検索結果",search_results_for_x:"「{terms}」の検索結果",viewing_entry_search_results:"「{terms}」の検索結果を表示しています。{entries} が見つかりました。",viewing_asset_search_results:"「{terms}」の検索結果を表示しています。{assets} が見つかりました。",many_entries:"{count} 個のエントリー",one_entry:"1 個のエントリー",no_entries:"0 個のエントリー",many_assets:"{count} 個のアセット",one_asset:"1 個のアセット",no_assets:"0 個のアセット",no_files_found:"ファイルは見つかりませんでした。",no_entries_found:"エントリーは見つかりませんでした。",upload_assets:"新しいアセットをアップロード",edit_options:"編集オプション",show_edit_options:"編集オプションを表示",edit_asset:"アセットを編集",edit_x:"{name} を編集",wrap_long_lines:"長い行を折り返す",rename_asset:"アセットの名前を変更",rename_x:"{name} の名前を変更",enter_new_name_for_asset:"新しい名前を以下に入力してください。",enter_new_name_for_asset_with_one_entry:"新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。",enter_new_name_for_asset_with_many_entries:"新しい名前を以下に入力してください。このアセットを使用している {count} 個のエントリーも更新されます。",enter_new_name_for_asset_error:{empty:"ファイル名を空白にすることはできません。",character:"ファイル名に特別な文字を含めることはできません。",duplicate:"このファイル名は他のアセットに使われています。"},replace_asset:"アセットを差し替え",replace_x:"{name} を差し替え",tap_to_browse:"タップして参照…",drop_file_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_files_or_click_to_browse:"ここにファイルをドロップするかクリックして参照…",drop_image_file_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_image_files_or_click_to_browse:"ここに画像ファイルをドロップするかクリックして参照…",drop_file_here:"ここにファイルをドロップ",drop_files_here:"ここにファイルをドロップ",unsupported_file_type:"非対応ファイル形式",dropped_file_type_mismatch:"ドロップされたファイルは {type} 形式ではありません。再度お試しください。",dropped_image_type_mismatch:"ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。",choose_file:"ファイルを選択",choose_files:"ファイルを選択",delete_asset:"アセットを削除",delete_assets:"アセットを削除",delete_selected_asset:"選択されたアセットを削除",delete_selected_assets:"選択されたアセットを削除",confirm_deleting_this_asset:"このアセットを削除してもよろしいですか?",confirm_deleting_selected_asset:"選択されたファイルを削除してもよろしいですか?",confirm_deleting_selected_assets:"選択された {count} 個のファイルを削除してもよろしいですか?",confirm_deleting_all_assets:"すべてのアセットを削除してもよろしいですか?",delete_entry:"エントリーを削除",delete_entries:"エントリーを削除",delete_selected_entry:"選択されたエントリーを削除",delete_selected_entries:"選択されたエントリーを削除",confirm_deleting_this_entry:"このエントリーを削除してもよろしいですか?",confirm_deleting_this_entry_with_assets:"このエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entry:"選択されたエントリーを削除してもよろしいですか?",confirm_deleting_selected_entry_with_assets:"選択されたエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_selected_entries:"選択された {count} 個のエントリーを削除してもよろしいですか?",confirm_deleting_selected_entries_with_assets:"選択された {count} 個のエントリーと関連アセットを削除してもよろしいですか?",confirm_deleting_all_entries:"すべてのエントリーを削除してもよろしいですか?",confirm_deleting_all_entries_with_assets:"すべてのエントリーと関連アセットを削除してもよろしいですか?",processing_file:"ファイルを処理しています。これには時間がかかる場合があります。",processing_files:"ファイルを処理しています。これには時間がかかる場合があります。",uploading_files:"アップロード対象ファイル",confirm_replacing_file:"「{name}」を以下のファイルと差し替えてもよろしいですか?",confirm_uploading_file:"以下のファイルを「{folder}」フォルダーに保存してもよろしいですか?",confirm_uploading_files:"以下の {count} 個のファイルを「{folder}」フォルダーに保存してもよろしいですか?",oversized_files:"サイズ超過ファイル",warning_oversized_file:"このファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。",warning_oversized_files:"これらのファイルは最大サイズ {size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください",file_meta:"{type} · {size}",file_meta_converted_from_x:"({type} から変換)",no_entries_created:"このコレクションにはまだエントリーがありません。",create_new_entry:"新しいエントリーを作成",entry:"エントリー",index_file:"インデックスファイル",no_files_in_collection:"このコレクションにはファイルがありません。",asset_info:"アセット情報",select_asset_show_info:"アセットを選択すると情報が表示されます。",duplicate_entry:"エントリーを複製",entry_duplicated:"エントリーが複製され、新しい下書きとなりました。",entry_validation_error:"ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_validation_errors:"{count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。",entry_saved:"エントリーが保存されました。",entry_saved_and_published:"エントリーが保存、公開されました。",entry_deleted:"エントリーが削除されました。",entries_deleted:"{count} 個のエントリーが削除されました。",asset_saved:"アセットが保存されました。",asset_saved_and_published:"アセットが保存、公開されました。",assets_saved:"{count} 個のアセットが保存されました。",assets_saved_and_published:"{count} 個のアセットが保存、公開されました。",asset_url_copied:"アセット URL がクリップボードにコピーされました。",asset_urls_copied:"アセット URL がクリップボードにコピーされました。",asset_path_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_paths_copied:"アセットファイルパスがクリップボードにコピーされました。",asset_data_copied:"アセットファイルがクリップボードにコピーされました。",asset_downloaded:"アセットファイルがダウンロードされました。",assets_downloaded:"アセットファイルがダウンロードされました。",asset_moved:"アセットが移動されました。",assets_moved:"{count} 個のアセットが移動されました。",asset_renamed:"アセットの名前が変更されました。",assets_renamed:"{count} 個のアセットの名前が変更されました。",asset_deleted:"アセットが削除されました。",assets_deleted:"{count} 個のアセットが削除されました。",content_editor:"コンテンツエディター",restore_backup_title:"下書きを復元",restore_backup_description:"このエントリーには {datetime} に保存されたバックアップがあります。その編集済みの下書きを復元しますか?",draft_backup_saved:"下書きのバックアップが保存されました。",draft_backup_restored:"下書きのバックアップが復元されました。",draft_backup_deleted:"下書きのバックアップが削除されました。",cancel_editing:"編集をキャンセル",create_entry_title:"{name} を作成",create_entry_announcement:"「{collection}」コレクションの新しいエントリーを作成しています。",edit_entry_title:"{collection} › {entry}",edit_entry_announcement:"「{collection}」コレクションの「{entry}」エントリーを編集しています。",edit_file_announcement:"「{collection}」コレクションの「{file}」ファイルを編集しています。",edit_singleton_announcement:"「{file}」ファイルを編集しています。",save_and_publish:"保存して公開",save_without_publishing:"公開せずに保存",show_editor_options:"エディターオプションを表示",editor_options:"エディターオプション",show_preview:"プレビューを表示",sync_scrolling:"スクロールを同期",switch_locale:"ロケールを切り替え",locale_content_disabled_short:"(無効)",locale_content_error_short:"(エラー)",edit:"編集",preview:"プレビュー",edit_x_locale:"{locale} コンテンツを編集",preview_x_locale:"{locale} コンテンツをプレビュー",content_preview:"コンテンツプレビュー",show_content_options_x_locale:"{locale} コンテンツのオプションを表示",content_options_x_locale:"{locale} コンテンツのオプション",x_field:"「{field}」フィールド",show_field_options:"フィールドオプションを表示",field_options:"フィールドオプション",unsupported_widget_x:"非対応ウィジェット: {name}",enable_x_locale:"{locale} を有効化",reenable_x_locale:"{locale} を再度有効化",disable_x_locale:"{locale} を無効化",locale_x_has_been_disabled:"{locale} コンテンツは無効化されています。",locale_x_now_disabled:"{locale} コンテンツは無効化されました。エントリーを保存する際に削除されます。",view_in_repository:"レポジトリ内で見る",view_on_x:"{service} で見る",view_on_live_site:"管理対象サイトで見る",copy_from:"他の言語からコピー…",copy_from_x:"{locale} からコピー",translation_options:"翻訳オプション",translate:"翻訳",translate_field:"フィールドを翻訳",translate_fields:"フィールドを翻訳",translate_from:"他の言語から翻訳…",translate_from_x:"{locale} から翻訳",revert_changes:"変更を取り消す",revert_all_changes:"すべての変更を取り消す",edit_slug:"スラッグを編集",edit_slug_warning:"スラッグを変更すると、エントリーへの内部・外部リンクが壊れる可能性があります。現在のところ、Sveltia CMS は Relation ウィジェットで作成された参照を更新しないため、そのような参照は他のリンクとともに手動で更新する必要があります。",edit_slug_error:{empty:"スラッグは空白にはできません。",duplicate:"このスラッグは他のエントリーに使われています。"},required:"必須",editor:{translation:{none:"翻訳されたフィールドはありません。",started:"翻訳中…",error:"翻訳中に問題が発生しました。",complete:{one:"{source} からフィールドを翻訳しました。",many:"{source} から {count} 個のフィールドを翻訳しました。"}},copy:{none:"コピーされたフィールドはありません。",complete:{one:"{source} からフィールドをコピーしました。",many:"{source} から {count} 個のフィールドをコピーしました。"}}},validation:{value_missing:"この項目は必須です。",range_underflow:{select_many:"少なくとも {min} 個の項目を選択してください。",select_one:"少なくとも {min} 個の項目を選択してください。",add_many:"少なくとも {min} 個の項目を追加してください。",add_one:"少なくとも {min} 個の項目を追加してください。"},range_overflow:{select_many:"選択できるのは最大で {max} 項目です。",select_one:"選択できるのは最大で {max} 項目です。",add_many:"追加できるのは最大で {max} 項目です。",add_one:"追加できるのは最大で {max} 項目です。"},too_short:{one:"少なくとも {min} 文字は入力してください。",many:"少なくとも {min} 文字は入力してください。"},too_long:{one:"{max} 文字を超える入力はできません。",many:"{max} 文字を超える入力はできません。"},type_mismatch:{email:"正しいメールアドレスを入力してください。",url:"正しい URL を入力してください。"}},saving_entry:{error:{title:"エラー",description:"エントリーを保存中に問題が発生しました。後で再度お試しください。"}},find_place:"場所を検索",use_your_location:"現在地を使用",geolocation_error_title:"位置情報エラー",geolocation_error_body:"あなたの現在地を取得できませんでした。",geolocation_unsupported:"お使いのブラウザーは位置情報 API をサポートしていません。",viewing_x_asset_details:"「{name}」アセットの詳細を表示しています。",asset_editor:"アセットエディター",preview_unavailable:"プレビューは表示できません",public_url:"公開 URL",public_urls:"公開 URL",file_path:"ファイルパス",file_paths:"ファイルパス",file_data:"ファイルデータ",kind:"種類",size:"サイズ",dimensions:"大きさ",duration:"再生時間",used_in:"使われているエントリー",created_date:"作成日時",location:"場所",map_lat_lng:"緯度 {latitude}、経度 {longitude} の地図",select_file:"ファイルを選択",select_image:"画像を選択",replace_file:"ファイルを差し替え",replace_image:"画像を差し替え",remove_file:"ファイルを削除",remove_image:"画像を削除",remove_this_item:"このアイテムを削除",move_up:"上へ移動",move_down:"下へ移動",add_x:"{name} を追加",add_item_above:"上にアイテムを追加",add_item_below:"下にアイテムを追加",select_list_type:"リストタイプを選択",opacity:"透明度",unselected_option:"(なし)",assets_dialog:{title:{file:"ファイルを選択",image:"画像を選択"},search_for_file:"ファイルを検索",search_for_image:"画像を検索",locations:"場所",folder:{field:"フィールドアセット",entry:"エントリーアセット",file:"ファイルアセット",collection:"コレクションアセット",global:"グローバルアセット"},error:{invalid_key:"あなたの API キーは正しくないか期限切れです。確認の上、再度お試しください。",search_fetch_failed:"アセットを検索中に問題が発生しました。後で再度お試しください。",image_fetch_failed:"選択されたアセットをダウンロード中に問題が発生しました。後で再度お試しください。"},available_images:"利用可能な画像",enter_url:"URL を入力",enter_file_url:"ファイルの URL を入力:",enter_image_url:"画像の URL を入力:",large_file:{title:"大きなファイル"},photo_credit:{title:"写真クレジット",description:"可能であれば以下のクレジットを使ってください:"},unsaved:"未保存"},character_counter:{min_max:{one:"{count} 文字入力されています。最小: {min}。最大 {max}。",many:"{count} 文字入力されています。最小: {min}。最大 {max}。"},min:{one:"{count} 文字入力されています。最小: {min}。",many:"{count} 文字入力されています。最小: {min}。"},max:{one:"{count} 文字入力されています。最大: {max}。",many:"{count} 文字入力されています。最大: {max}。"}},youtube_video_player:"YouTube 動画プレーヤー",today:"今日",now:"現在時刻",editor_components:{image:"画像",src:"ソース",alt:"代替テキスト",title:"タイトル",link:"リンク"},key_value:{key:"キー",value:"値",action:"アクション",empty_key:"キーは必須です。",duplicate_key:"キーが重複しています。"},boolean:{true:"はい",false:"いいえ"},cloud_storage:{invalid:"このサービスは正しく設定されていません。",auth:{initial:"{service} へログインすると、ストレージ上のメディアをエントリー項目へ挿入できます。",requested:"ログイン中…",error:"ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。"}},config:{error:{no_secure_context:"Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。",fetch_failed:"設定ファイルを読み込めませんでした。",fetch_failed_not_ok:"HTTP レスポンスがステータス {status} で返されました。",parse_failed:"設定ファイルを解析できませんでした。",parse_failed_invalid_object:"設定ファイルが有効な JavaScript オブジェクトではありません。",parse_failed_unsupported_type:"設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML と JSON のみです。",no_collection:"設定ファイル内でコレクションが定義されていません。",missing_backend:"設定ファイル内でバックエンドが定義されていません。",missing_backend_name:"設定ファイル内でバックエンド名が定義されていません。",unsupported_backend:"設定されている「{name}」バックエンドは非対応です。",missing_repository:"設定ファイル内でレポジトリが定義されていません。",invalid_repository:"設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。",oauth_implicit_flow:"設定されている認証方式 (暗黙的フロー) は非対応です。",oauth_no_app_id:"設定ファイル内で OAuth アプリケーション ID が定義されていません。",missing_media_folder:"設定ファイル内でメディアフォルダーが定義されていません。",invalid_media_folder:"設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。",invalid_public_folder:"設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。",public_folder_relative_path:"設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。",public_folder_absolute_url:"パブリックフォルダーオプションの絶対 URL は非対応です。",unexpected:"設定ファイルを検証中に予期せぬ問題が発生しました。",try_again:"問題を解決してから再度お試しください。"}},local_backend:{unsupported_browser:"お使いのブラウザーはローカル開発に対応していません。代わりに Chrome か Edge を使ってください。",disabled:"お使いのブラウザーではローカル開発が無効化されています。<a>有効化する方法はこちら</a>。"},status:{drafts:"下書き",in_review:"レビュー中",ready:"公開可"},categories:"カテゴリ",prefs:{changes:{api_key_saved:"API キーが保存されました。",api_key_removed:"API キーが削除されました。"},error:{permission_denied:"ブラウザーストレージ (Cookie) アクセスが拒否されました。許可設定を確認の上、再度お試しください。"},appearance:{title:"アピアランス",theme:"テーマ",select_theme:"テーマを選択"},theme:{auto:"自動",dark:"ダーク",light:"ライト"},language:{title:"言語",ui_language:{title:"ユーザーインターフェース言語",select_language:"言語を選択"}},contents:{title:"コンテンツ",editor:{title:"エディター",use_draft_backup:{switch_label:"エントリーの下書きを自動的にバックアップする"},close_on_save:{switch_label:"下書き保存後にエディターを閉じる"},close_with_escape:{switch_label:"Escape キーでエディターを閉じる"}}},i18n:{title:"国際化",default_translator:{title:"デフォルト翻訳サービス",select_service:"サービスを選択"},translator:{field_label:"{service} キー",description:"<a {homeHref}>{service}</a> にユーザー登録して、<a {apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。"}},media:{title:"メディア",stock_photos:{title:"{service} 無料画像素材",field_label:"{service} API キー",description:"<a {homeHref}>{service} API</a> にユーザー登録して、<a {apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。",credit:"写真提供: {service}",providers_disabled:"ストックアセットプロバイダーは管理者によって無効化されています。"}},accessibility:{title:"アクセシビリティ",underline_links:{title:"リンクに下線を付ける",description:"エントリープレビューやユーザーインターフェイスラベル内のリンクに下線を表示します。",switch_label:"常に下線を付ける"}},advanced:{title:"詳細",beta:{title:"ベータ機能",description:"不安定あるいは未ローカライズの可能性がある、いくつかのベータ機能を有効化します。",switch_label:"ベータプログラムに参加する"},developer_mode:{title:"開発者モード",description:"詳細なコンソールログやネイティブコンテキストメニューなど、いくつかの開発者向け機能を有効化します。",switch_label:"開発者モードを有効にする"},deploy_hook:{title:"デプロイフック",description:"「変更を公開」を選択して手動でデプロイを実行する際に呼び出すウェブフック URL を入力してください。GitHub Actions を使用する場合は空欄のままで構いません。",field_label:"デプロイフック URL",url_saved:"ウェブフック URL が保存されました。",url_removed:"ウェブフック URL が削除されました。"}}},keyboard_shortcuts_:{view_content_library:"コンテンツライブラリを表示",view_asset_library:"アセットライブラリを表示",search:"エントリーとアセットを検索",create_entry:"新しいエントリーを作成",save_entry:"エントリーを保存",cancel_editing:"エントリーの編集をキャンセル"},file_type_labels:{avif:"AVIF 画像",bmp:"Bitmap 画像",gif:"GIF 画像",ico:"アイコン",jpeg:"JPEG 画像",jpg:"JPEG 画像",png:"PNG 画像",svg:"SVG 画像",tif:"TIFF 画像",tiff:"TIFF 画像",webp:"WebP 画像",avi:"AVI 動画",m4v:"MP4 動画",mov:"QuickTime 動画",mp4:"MP4 動画",mpeg:"MPEG 動画",mpg:"MPEG 動画",ogg:"Ogg 動画",ogv:"Ogg 動画",ts:"MPEG 動画",webm:"WebM 動画","3gp":"3GPP 動画","3g2":"3GPP2 動画",aac:"AAC 音声",mid:"MIDI",midi:"MIDI",m4a:"MP4 音声",mp3:"MP3 音声",oga:"Ogg 音声",opus:"OPUS 音声",wav:"WAV 音声",weba:"WebM 音声",csv:"CSV スプレッドシート",doc:"Word ドキュメント",docx:"Word ドキュメント",odp:"OpenDocument プレゼンテーション",ods:"OpenDocument スプレッドシート",odt:"OpenDocument テキスト",pdf:"PDF ドキュメント",ppt:"PowerPoint プレゼンテーション",pptx:"PowerPoint プレゼンテーション",rtf:"リッチテキストドキュメント",xls:"Excel スプレッドシート",xlsx:"Excel スプレッドシート",html:"HTML テキスト",js:"JavaScript",json:"JSON テキスト",md:"Markdown テキスト",toml:"TOML テキスト",yaml:"YAML テキスト",yml:"YAML テキスト"},file_size_units:{b:"{size} バイト",kb:"{size} KB",mb:"{size} MB",gb:"{size} GB",tb:"{size} TB"}},lte=Object.freeze(Object.defineProperty({__proto__:null,strings:ate},Symbol.toStringTag,{value:"Module"})),cte=()=>{Object.entries(Object.assign({"/src/lib/locales/en.js":ste,"/src/lib/locales/ja.js":lte})).forEach(([e,{strings:n}])=>{const r=fn(e).filename;Zb(r,n)}),bC({fallbackLocale:"en",initialLocale:ae(ft).locale||(SO()??"").split("-")[0]||"en"})};var ute=U('<link rel="icon"/>'),dte=U('<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>',1),fte=U('<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!> <!></div></div>'),hte=U('<!> <div role="status" class="svelte-7y4msj"> </div>',1);const pte={hash:"svelte-7y4msj",code:`@view-transition {navigation:auto;
|
|
670
670
|
}
|
|
671
671
|
@keyframes svelte-7y4msj-slide-out-to-left {
|
|
672
672
|
from {
|
|
@@ -721,7 +721,7 @@ Minimum version required to store current data is: `+P+`.
|
|
|
721
721
|
animation: none;}
|
|
722
722
|
}html:active-view-transition-type(unknown)::view-transition-old(page-root) {
|
|
723
723
|
animation: none;}html:active-view-transition-type(unknown)::view-transition-new(page-root) {
|
|
724
|
-
animation: none;}body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-7y4msj {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-7y4msj {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role=status].svelte-7y4msj {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}`};function
|
|
724
|
+
animation: none;}body:not(:has(#nc-root)) {overflow:hidden;}#nc-root > .sui.app-shell {position:absolute;}.outer.svelte-7y4msj {display:flex;flex-direction:column;position:absolute;inset:0;overflow:hidden;}.main.svelte-7y4msj {position:relative;flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-secondary-background-color);}[role=status].svelte-7y4msj {position:absolute;z-index:-1;opacity:0;pointer-events:none;-webkit-user-select:none;user-select:none;}`};function gte(t,e){le(e,!0),ke(t,pte);const n=()=>V($t,"$siteConfig",c),r=()=>V(jf,"$isLoading",c),i=()=>V(wn,"$backend",c),o=()=>V(Gn,"$user",c),s=()=>V(Mc,"$dataLoaded",c),a=()=>V(oi,"$announcedPageStatus",c),[c,u]=me();jt(()=>{cte()}),jt(()=>{Tj(e.config)}),jt(()=>{V6()}),jt(()=>{const d=document.querySelector("#nc-root");d&&window.getComputedStyle(d).position==="static"&&window.requestAnimationFrame(()=>{const{top:f,height:h}=d.getBoundingClientRect();h?d.style.position="relative":(d.style.position="fixed",d.style.inset=`${f}px 0 0 0`)})}),hE(d=>{var f=dte(),h=j(M(f),4);{var p=m=>{const v=_(()=>n().logo_url);var b=ute();Z((y,w)=>{Se(b,"href",y),Se(b,"type",w)},[()=>l(v)||`data:image/svg+xml;base64,${btoa(A2)}`,()=>l(v)?gs.getType(l(v))??void 0:"image/svg+xml"]),$(m,b)};q(h,m=>{n()&&m(p)})}var g=j(h,2);q(g,m=>{}),$(d,f)}),Hr("mousedown",qb.body,d=>{if(d.target?.matches("a")){const f=d.target,{origin:h,pathname:p}=f;(h!==window.location.origin||p!==window.location.pathname)&&(f.target="_blank")}}),R6(t,{children:(d,f)=>{var h=hte(),p=M(h);{var g=b=>{var y=fte(),w=z(y);_7(w,{});var E=j(w,2);{var k=A=>{m7(A,{})};q(E,A=>{i()&&A(k)})}var S=j(E,2),C=z(S);h7(C,{});var x=j(C,2);{var T=A=>{ite(A,{})};q(x,A=>{o()&&s()&&A(T)})}$(b,y)};q(p,b=>{r()||b(g)})}var m=j(p,2),v=z(m);Z(()=>te(v,a())),$(d,h)},$$slots:{default:!0}}),ce(),u()}const mte=["getBackend","getCustomFormats","getCustomFormatsExtensions","getCustomFormatsFormatters","getEditorComponents","getEventListeners","getLocale","getMediaLibrary","getPreviewStyles","getPreviewTemplate","getRemarkPlugins","getWidget","getWidgetValueSerializer","getWidgets","invokeEvent","moment","registerBackend","registerLocale","registerMediaLibrary","registerRemarkPlugin","registerWidgetValueSerializer","removeEventListener","resolveWidget"],vte="https://github.com/sveltia/sveltia-cms#compatibility";let ES=!1;const $w=async({config:t}={})=>{ES||(ES=!0,document.readyState==="loading"&&!document.querySelector("#nc-root")&&await new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>e(void 0),{once:!0})}),cp(gte,{target:document.querySelector("#nc-root")??document.body,props:{config:t}}))},bte=(t,e,{fromFile:n,toFile:r})=>{Dp.set(t,{extension:e,parser:n,formatter:r})},_te=t=>{ph.set(t.id,t)},yte=t=>{console.error("Event hooks are not yet supported in Sveltia CMS.")},wte=(t,{raw:e=!1}={})=>{if(typeof t!="string")throw new TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a string");if(typeof e!="boolean")throw new TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");const n=e?URL.createObjectURL(new Blob([t],{type:"text/css"})):t;av.add(n)},xte=(t,e)=>{console.error("Custom preview templates are not yet supported in Sveltia CMS.")},kte=(t,e,n,r)=>{console.error("Custom widgets are not yet supported in Sveltia CMS.")},Ste=new Proxy({init:$w,registerCustomFormat:bte,registerEditorComponent:_te,registerEventListener:yte,registerPreviewStyle:wte,registerPreviewTemplate:xte,registerWidget:kte},{get:(t,e)=>{if(e in t)return t[e];let n="";if(mte.includes(e)&&(n="CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it."),n)return console.error(`${n} See %s for compatibility information.`,e,vte),()=>{}}});window.CMS=Ste;window.initCMS=$w;window.createClass=pL;window.createElement=TS.createElement;window.h=TS.createElement;!window.CMS_MANUAL_INIT&&(document.currentScript||document.querySelector('script[src$="/sveltia-cms.js"]'))&&$w();export{Ste as default,$w as init};
|
|
725
725
|
/**
|
|
726
726
|
* @license React
|
|
727
727
|
* react.production.js
|