@sveltia/cms 0.164.1 → 0.164.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.
@@ -428,14 +428,14 @@ function Mx(e){let t=typeof e;if(t===`object`){if(Array.isArray(e))return`array`
428
428
  Rx=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})),Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx=s((()=>{p(),Sp(),Lx(),My(),qb(),Yy(),yb(),zx(),Bx=e=>JSON.parse(e),Vx=e=>f(xne(e)),Hx=(e,t)=>ky(e,t),Ux=e=>e.startsWith(`+++`)?`toml-frontmatter`:e.startsWith(`{`)?`json-frontmatter`:`yaml-frontmatter`,Wx=new Map,Gx=({collection:e,collectionFile:t,format:n,text:r})=>{let{_file:{format:i,fmDelimiters:a}}=t??e,[o,s]=(i===`frontmatter`?_b({format:n,delimiter:a}):a)??[`---`,`---`],c=gp(o),l=gp(s),u=Rx(Wx,`${c}|${l}`,()=>RegExp(`^${c}\\n(?:(?<head>.*?)\\n)?${l}$(?:\\n(?<body>.+))?`,`ms`)),{head:d,body:f}=r.match(u)?.groups??{};if(!d&&!f)return{body:r};let p={};return n===`yaml-frontmatter`&&(p=Hx(d)),n===`toml-frontmatter`&&(p=Vx(d)),n===`json-frontmatter`&&(p=Bx(`{${d}}`)),{...p,body:f}},Kx=async({text:e=``,path:t,folder:{collectionName:n,fileName:r}})=>{let i=Wb(n),a=i&&r?Wy(i,r):void 0;if(!i)throw Error(`Collection not found`);if(r&&!a)throw Error(`Collection file not found`);e=e.trim().replace(/\r\n?/g,`
429
429
  `);let{_file:{format:o}}=a??i,s=fb.get(o)?.parser;if(s)return s(e);if(o===`raw`)return{body:e};try{if(o===`yaml`||o===`yml`)return Hx(e);if(o===`toml`)return Vx(e);if(o===`json`)return Bx(e);if(o===`frontmatter`&&(o=Ux(e)),/^(?:yaml|toml|json)-frontmatter$/.test(o))return Gx({collection:i,collectionFile:a,format:o,text:e})}catch(e){throw Error(`${t} could not be parsed due to ${e.name}: ${e.message}`)}throw Error(`${t} could not be parsed due to an unknown format: ${o}`)}})),Jx,Yx=s((()=>{Jx=(e=0)=>new Promise(t=>{globalThis.setTimeout(()=>{t(void 0)},e)})})),Xx,Zx,Qx=s((()=>{Yx(),p(),Xx=(e,t=globalThis.window?.location?.origin??globalThis.location?.origin??`https://localhost`)=>{try{let{hostname:n,protocol:r}=new URL(e,t);return r===`https:`||[`localhost`,`127.0.0.1`,`[::1]`].includes(n)}catch{return!1}},Zx=async(e,t={},{responseType:n=`json`,refreshAccessToken:r=void 0,retries:i=1}={})=>{let a;if(t.cache=`no-cache`,t.headers=new Headers(t.headers),t.headers.has(`Authorization`)&&!Xx(e))throw Error(`Refusing to send credentials over an insecure connection`);n===`json`&&t.headers.set(`Accept`,`application/json`),t.method===`POST`&&d(t.body)&&(t.headers.set(`Content-Type`,`application/json`),t.body=JSON.stringify(t.body));try{a=await fetch(e,t)}catch(e){throw Error(`Failed to send the request`,{cause:e})}if(n===`raw`)return a;let{ok:o,status:s}=a,c;try{if(o&&n===`blob`)return a.blob();if(o&&n===`text`)return a.text();c=await a.json()}catch(e){throw Error(`Failed to parse the response`,{cause:e})}if(o&&!(e.endsWith(`/graphql`)&&d(c)&&c.errors))return c;if(s===502&&i>0)return await Jx(1e3),Zx(e,t,{responseType:n,refreshAccessToken:r,retries:i-1});if(s===401&&r){let[i]=t.headers.get(`Authorization`)?.split(` `)??[`token`],{token:a}=await r();return t.headers.set(`Authorization`,`${i} ${a}`),Zx(e,t,{responseType:n})}if(!d(c))throw Error(`Server responded with an error`,{cause:{status:s}});let l=``;throw typeof c.error==`string`&&(l=c.error),typeof c.message==`string`&&(l=c.message),Array.isArray(c.errors)&&(typeof c.errors[0]==`string`&&(l=c.errors.join(`, `)),d(c.errors[0])&&typeof c.errors[0].message==`string`&&(l=c.errors.map(e=>e.message).join(`, `))),Error(`Server responded with an error`,{cause:{status:s,message:l}})}})),$x,eS,tS,nS,rS,iS,kne=s((()=>{Z(),p(),$x=u(ete(),1),qx(),Qx(),eS=[`text/yaml`,`application/yaml`,`application/toml`,`application/json`],tS=async({href:e,type:t=`application/yaml`},{manualInit:n=!1}={})=>{let r;if(!eS.includes(t))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_unsupported_type`))});let i=n?`config.error.fetch_failed_with_manual_init`:`config.error.fetch_failed`;try{let t=new URL(e,window.location.href);t.searchParams.set(`_`,Date.now().toString()),r=await fetch(t)}catch(e){throw Error(X(i),{cause:e})}let{ok:a,status:o}=r;if(!a)throw Error(X(i),{cause:Error(X(`config.error.fetch_failed_not_ok`,{values:{status:o}}))});let s;try{if(t===`application/json`)s=await r.json();else{let e=await r.text();s=t===`application/toml`?Vx(e):Hx(e,{merge:!0,maxAliasCount:-1})}}catch(e){throw Error(X(`config.error.parse_failed`),{cause:e})}if(!d(s))throw Error(X(`config.error.parse_failed`),{cause:Error(X(`config.error.parse_failed_invalid_object`))});return s},nS=e=>{if(e.endsWith(`/`))return`${e}config.yml`;let t=e.split(`/`);return t.pop()?.includes(`.`)?`${t.join(`/`)}/config.yml`:`${e}/config.yml`},rS=e=>{let{origin:t}=window.location;return e.every(({href:e})=>Xx(e,t))},iS=async({manualInit:e=!1}={})=>{let t=[...document.querySelectorAll(`link[rel="cms-config-url"]`)].map(({href:e,type:t})=>({href:e,type:t}));if(t.length||t.push({href:nS(window.location.pathname)}),!rS(t))throw Error(X(`config.error.insecure_urls`,{values:{count:t.length}}));let n=await Promise.all(t.map(t=>tS(t,{manualInit:e})));return n.length===1?n[0]:$x.default.all(n)}})),aS,Ane=s((()=>{aS=class{#e;#t;#n=``;#r=``;#i={};#a=[];constructor(e,t,{keyPath:n,autoIncrement:r,indexes:i=[]}={}){this.#e=void 0,this.#n=e,this.#r=t,this.#i={keyPath:n,autoIncrement:r},this.#a=i}async#o(e){return new Promise((t,n)=>{let r=globalThis.indexedDB.open(this.#n,e);r.onupgradeneeded=()=>{let e=r.result,t=this.#r,n=e.objectStoreNames.contains(t)?r.transaction.objectStore(t):e.createObjectStore(t,this.#i);this.#a.forEach(({name:e,keyPath:t,options:r})=>{n.indexNames.contains(e)||n.createIndex(e,t,r)})},r.onsuccess=()=>{t(r.result)},r.onerror=()=>{n(r.error)}})}async#s(){let e=!1,t=await this.#o(),{version:n,objectStoreNames:r}=t,i=this.#r;if(r.contains(i)){let n=t.transaction(i).objectStore(i);e=this.#a.some(({name:e})=>!n.indexNames.contains(e))}else e=!0;return e&&(t.close(),t=await this.#o(n+1)),t.onversionchange=()=>{t.close(),this.#e=void 0},t}async#c(e,{mode:t=`readonly`}={}){this.#e||(this.#t??=this.#s(),this.#e=await this.#t,this.#t=void 0);let n=this.#e,r=this.#r,i=n.transaction(r,t),a=e(i.objectStore(r));return new Promise((e,n)=>{if(i.onerror=()=>{n(i.error)},i.onabort=()=>{n(i.error)},t===`readwrite`){let t;a&&(a.onsuccess=()=>{t=a.result}),i.oncomplete=()=>{e(t)}}else a?a.onsuccess=()=>{e(a.result)}:i.oncomplete=()=>{e(void 0)}})}async set(e,t){return this.#c(n=>n.put(t,e),{mode:`readwrite`})}async put(e){return this.#c(t=>t.put(e),{mode:`readwrite`})}async saveEntries(e){return this.#c(t=>{e.forEach(([e,n])=>{t.put(n,e)})},{mode:`readwrite`})}async get(e){return this.#c(t=>t.get(e))}async keys(){return this.#c(e=>e.getAllKeys())}async values(){return this.#c(e=>e.getAll())}async entries(){return new Promise((e,t)=>{this.#c(t=>{let n=t.openCursor(),r=[];n.onsuccess=()=>{let t=n.result;t?(r.push([t.key,t.value]),t.continue()):e(r)}}).catch(t)})}async#l({callback:e=void 0,index:t=void 0,query:n=void 0,direction:r=`next`,multiple:i=!1}){return new Promise((a,o)=>{this.#c(o=>{let s=(t?o.index(t):o).openCursor(n,r),c=[];s.onsuccess=()=>{let t=s.result;if(t){let{value:n}=t;typeof e!=`function`||e(n)?i?(c.push(n),t.continue()):a(n):t.continue()}else a(i?c:void 0)}}).catch(o)})}async find(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n})}async findLast(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,direction:`prev`})}async filter(e,{index:t,query:n}={}){return this.#l({callback:e,index:t,query:n,multiple:!0})}async delete(e){await this.#c(t=>t.delete(e),{mode:`readwrite`})}async deleteEntries(e){await this.#c(t=>{e.forEach(e=>{t.delete(e)})},{mode:`readwrite`})}async clear(){await this.#c(e=>e.clear(),{mode:`readwrite`})}}})),oS,sS,jne=s((()=>{oS=e=>{try{return JSON.parse(e)}catch{return null}},sS=class{static async set(e,t){if(t===void 0){globalThis.localStorage.removeItem(e);return}globalThis.localStorage.setItem(e,JSON.stringify(t))}static async get(e){let t=globalThis.localStorage.getItem(e);return t?oS(t):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(oS)}static async entries(){return Object.entries(globalThis.localStorage).map(([e,t])=>[e,oS(t)])}}})),cS=s((()=>{Ane(),jne()})),lS,uS,dS=s((()=>{p(),lS=e=>Array.isArray(e)&&e.every(e=>d(e)),uS=e=>[...new Set(e)]})),fS,Mne=s((()=>{fS={"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(fS)})),pS,Nne=s((()=>{pS={"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(pS)})),mS,hS,gS,_S,vS,Pne=s((()=>{mS=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},vS=class{constructor(...e){hS.set(this,new Map),gS.set(this,new Map),_S.set(this,new Map);for(let t of e)this.define(t)}define(e,t=!1){for(let[n,r]of Object.entries(e)){n=n.toLowerCase(),r=r.map(e=>e.toLowerCase()),mS(this,_S,`f`).has(n)||mS(this,_S,`f`).set(n,new Set);let e=mS(this,_S,`f`).get(n),i=!0;for(let a of r){let r=a.startsWith(`*`);if(a=r?a.slice(1):a,e?.add(a),i&&mS(this,gS,`f`).set(n,a),i=!1,r)continue;let o=mS(this,hS,`f`).get(a);if(o&&o!=n&&!t)throw Error(`"${n} -> ${a}" conflicts with "${o} -> ${a}". Pass \`force=true\` to override this definition.`);mS(this,hS,`f`).set(a,n)}}return this}getType(e){if(typeof e!=`string`)return null;let t=e.replace(/^.*[/\\]/s,``).toLowerCase(),n=t.replace(/^.*\./s,``).toLowerCase(),r=t.length<e.length;return!(n.length<t.length-1)&&r?null:mS(this,hS,`f`).get(n)??null}getExtension(e){return typeof e==`string`?(e=e?.split?.(`;`)[0],(e&&mS(this,gS,`f`).get(e.trim().toLowerCase()))??null):null}getAllExtensions(e){return typeof e==`string`?mS(this,_S,`f`).get(e.toLowerCase())??null:null}_freeze(){this.define=()=>{throw 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(let e of mS(this,_S,`f`).values())Object.freeze(e);return this}_getTestState(){return{types:mS(this,hS,`f`),extensions:mS(this,gS,`f`)}}},hS=new WeakMap,gS=new WeakMap,_S=new WeakMap})),yS,bS=s((()=>{Mne(),Nne(),Pne(),yS=new vS(pS,fS)._freeze()})),xS,SS,CS,wS,TS,ES,DS,OS,kS,AS=s((()=>{Np(),Sp(),bS(),xS=[`image`,`video`,`audio`],SS=[`image`,`video`],CS=[...xS,`document`,`other`],wS=/\.(?:csv|docx?|odp|ods|odt|pdf|pptx?|rtf|xlsx?)$/i,TS=e=>xS.includes(e),ES=e=>{let t=yS.getType(e.path);return TS(e.kind)||t===`application/pdf`||!!t&&Ep(t)},DS=async e=>{let t=``;if(typeof e==`string`)if(e.startsWith(`blob:`))try{t=(await(await fetch(e)).blob()).type}catch{}else{if(bp(e)){let{hostname:t,pathname:n}=new URL(e);if(t.startsWith(`images.`))return`image`;e=n}t=yS.getType(e)??``}else e instanceof Blob&&(t=e.type);if(!t)return;let[n,r]=t.split(`/`);if(TS(n)&&!r.startsWith(`x-`))return n},OS=e=>{let t=yS.getType(e.path);return!!t&&Ep(t)},kS=e=>yS.getType(e)?.match(/^(?<type>image|audio|video)\//)?.groups?.type??(wS.test(e)?`document`:`other`)})),jS,MS,NS=s((()=>{rp(),jS=/^(?:.+\/)?(\.git(?:attributes|ignore|keep))$/,MS=un([]),dn(MS,e=>e.find(({path:e})=>e===`.gitattributes`)?.text?.replace(/\r\n?/g,`
430
430
  `).split(`
431
- `).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[])})),PS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof T||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},ee=v;ee.l=C,ee.i=S,ee.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(ee.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return ee},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return ee.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!ee.u(t)||t,u=ee.p(e),p=function(e,t){var i=ee.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return ee.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=ee.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[ee.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=ee.p(u),h=function(e){var t=w(p);return ee.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return ee.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=ee.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return ee.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return ee.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return ee.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return ee.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return ee.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return ee.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return ee.s(t.$s,2,`0`);case`SSS`:return ee.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=ee.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return ee.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:ee.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return ee.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=T.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,T,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),FS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),IS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={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(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),LS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),RS,Fne=s((()=>{RS=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ‎`,`a`],[`ُ`,`u`],[`ِ‎`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]])})),zS,BS,Ine=s((()=>{zS=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],BS={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:zS,nb:zS,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(BS))BS[e]=new Map(BS[e])}));function Lne(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=GS(t.locale),r=[...t.customReplacements],i=RS,a=US;if(n&&({replacements:i,pattern:a}=WS.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var VS,HS,US,WS,GS,Rne=s((()=>{Fne(),Ine(),VS=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),HS=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>VS(e)).join(`|`),`gu`)},US=HS(RS),WS=new Map;for(let[e,t]of Object.entries(BS)){let n=new Map(RS);for(let[e,r]of t)n.set(e,r);WS.set(e,{replacements:n,pattern:HS(n)})}GS=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(BS,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(BS,n))return n}})),KS,qS,JS,YS=s((()=>{Rne(),hp(),Sp(),rp(),$P(),zx(),KS=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],qS=new Map,JS=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A(JP)??{},u=r??s,d=e;if(a&&(d=Lne(d.normalize(`NFD`),{locale:n&&KS.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=Rx(qS,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=fp(`short`)),typeof u==`number`&&d.length>u&&(d=_p(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}})),XS,ZS=s((()=>{XS=({date:e=new Date,timeZone:t=void 0}={})=>{let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`};return Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{...n,hour12:!1,timeZone:t}).formatToParts(e).filter(({type:e})=>e in n).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))}})),QS,$S,eC,tC,nC,rC,iC=s((()=>{QS=/^\d{4}-[01]\d-[0-3]\d$/,$S=/T00:00(?::00)?(?:\.000)?Z$/,eC={year:`numeric`,month:`short`,day:`numeric`},tC={hour:`numeric`,minute:`numeric`,hour12:!0},nC={...eC,...tC},rC=(e,t)=>e.toLocaleString(t??void 0,nC)})),aC,zne,Bne,Vne,oC,sC,cC,lC,uC,dC,fC,pC,mC=s((()=>{ZS(),aC=u(PS(),1),zne=u(FS(),1),Bne=u(IS(),1),Vne=u(LS(),1),ub(),iC(),aC.default.extend(zne.default),aC.default.extend(Bne.default),aC.default.extend(Vne.default),oC=e=>{let{type:t=`datetime-local`,min:n=void 0,max:r=void 0,step:i=void 0,format:a,date_format:o=void 0,time_format:s=void 0,picker_utc:c=!1}=e,l=typeof o==`string`?o:``,u=typeof s==`string`?s:``,d=t===`date`||s===!1,f=t===`time`||o===!1;return{type:d?`date`:f?`time`:`datetime-local`,min:typeof n==`string`&&n?n:void 0,max:typeof r==`string`&&r?r:d?`9999-12-31`:f?void 0:`9999-12-31T23:59`,step:typeof i==`number`&&Number.isInteger(i)&&i>0||i===`any`?i:void 0,format:a||[l,u].join(` `).trim()||void 0,dateOnly:d,timeOnly:f,utc:c}},sC=e=>e instanceof Date&&!Number.isNaN(e.getTime()),cC=e=>e?aC.default.utc:aC.default,lC=(e,t)=>{let{format:n,timeOnly:r,utc:i}=oC(t);if(!e)return;let a;if(n){let t=cC(i),r=t(e,n);if(!r.isValid()&&(r=t(e),!r.isValid())){console.error(`Invalid Date`,e);return}return r.toDate()}if(a=r?new Date(`${new Date().toJSON().split(`T`)[0]}T${e}`):new Date(e),sC(a))return a;console.error(`Invalid Date`,e)},uC=e=>{let{dateOnly:t,timeOnly:n,utc:r}=oC(e),{year:i,month:a,day:o,hour:s,minute:c}=XS({timeZone:r?`UTC`:void 0}),l=`${i}-${a}-${o}`,u=`${s}:${c}`;return t?l:n?u:r?`${l}T${u}:00.000Z`:`${l}T${u}`},dC=(e,t,n)=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=oC(n),s=i?`YYYY-MM-DD`:a?`HH:mm`:`YYYY-MM-DDTHH:mm`,c=`:00${t?.endsWith(`.000`)?`.000`:``}`;if(e===``)return``;if(e){if(r){let t=cC(o),n=t(e,s);return!n.isValid()&&(n=t(e),!n.isValid())?(console.info(`Invalid date`,e),``):n.format(r)}return i?e:o?`${e}:00.000Z`:`${e}${c}`}},fC=(e,t)=>{let{dateOnly:n,timeOnly:r,utc:i}=oC(t);if(!e)return``;let a=n?e.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?e.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(a)return a;let o=lC(e,t);if(!o)return``;let{year:s,month:c,day:l,hour:u,minute:d}=XS({date:o,timeZone:i?`UTC`:void 0}),f=`${s}-${c}-${l}`,p=`${u}:${d}`;return n?f:r?p:`${f}T${p}`},pC=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=oC(t);if(typeof n!=`string`||!n.trim())return``;if(r){let e=cC(o),t=e(n,r);return!t.isValid()&&(t=e(n),!t.isValid())?(console.error(`Invalid Date`,n),``):t.format(r)}let s=lC(n,t),c=rb(e);return sC(s)?a?s.toLocaleTimeString(c,tC):i?s.toLocaleDateString(c,{...eC,timeZone:o||QS.test(n)||$S.test(n)?`UTC`:void 0}):s.toLocaleString(c,{...eC,...tC,timeZone:o?`UTC`:void 0,timeZoneName:o?void 0:`short`}):``}})),hC,Hne,Une,Wne,gC,_C,vC,Gne,Kne,qne,Jne,Yne,Xne,Zne,Qne,yC,bC=s((()=>{Sp(),hC=u(PS(),1),Hne=u(FS(),1),Une=u(IS(),1),Wne=u(LS(),1),YS(),mC(),hC.default.extend(Hne.default),hC.default.extend(Une.default),hC.default.extend(Wne.default),gC=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,_C=/^default\('(?<defaultValue>.+?)'\)$/,vC=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,Gne=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,Kne=e=>String(e).toUpperCase(),qne=e=>String(e).toLowerCase(),Jne=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=oC(r),s=(n===`utc`||o||a&&i.match(/^\d{4}-[01]\d-[0-3]\d$/)||a&&i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?hC.default.utc:hC.default)(i);return s.isValid()?s.format(t):``},Yne=(e,{defaultValue:t})=>e?String(e):t,Xne=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Zne=(e,{max:t,ellipsis:n=`…`})=>_p(String(e),Number(t),{ellipsis:n}),Qne=({fieldConfig:e,value:t,transformation:n,locale:r})=>{if(n===`upper`)return Kne(t);if(n===`lower`)return qne(t);if(n===`slugify`)return JS(String(t),{locale:r});let i=n.match(gC);if(i?.groups)return Jne(t,i.groups,e??{});let a=n.match(_C);if(a?.groups)return Yne(t,a.groups);let o=n.match(vC);if(o?.groups)return Xne(t,o.groups);let s=n.match(Gne);return s?.groups?Zne(t,s.groups):String(t)},yC=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=Qne({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})),xC,SC,$ne,CC=s((()=>{xC=[`file`,`image`],SC=[...xC,`relation`,`select`],$ne=[...SC,`datetime`,`keyvalue`,`list`,`number`]})),ere,tre,nre,wC,TC,EC,rre,ire,DC=s((()=>{rp(),$P(),ere=`https://console.cloudinary.com`,tre=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],nre=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],wC=e=>{let t=A(JP);if(e??=t,e?.media_libraries&&`cloudinary`in e.media_libraries)return e.media_libraries.cloudinary;if(!e?.media_library)return;let n=e.media_library.name===`cloudinary`,r=!e.media_library.name&&t?.media_library?.name===`cloudinary`;if(n||r)return e.media_library},TC=new Map,EC=e=>{let t=e?JSON.stringify(e):`global`,n=TC.get(t);if(n)return n;let r=wC()||{config:{}},i=wC(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return TC.set(t,a),a},rre=e=>{let t=wC(e)??wC(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},ire={serviceType:`cloud_storage`,serviceId:`cloudinary`,serviceLabel:`Cloudinary`,serviceURL:`https://cloudinary.com/`,showServiceLink:!0,hotlinking:!0,authType:`widget`,developerURL:`https://cloudinary.com/documentation/`,apiKeyURL:`https://console.cloudinary.com/settings/api-keys`,apiKeyPattern:/^[A-Za-z0-9_-]{15,}$/,isEnabled:rre}})),OC,kC,are,AC,ore,sre,jC,MC,NC,PC,FC=s((()=>{Yx(),AS(),OC=async(e,t)=>{let n=new TextEncoder,r=await crypto.subtle.importKey(`raw`,typeof e==`string`?n.encode(e):e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n.encode(t));return new Uint8Array(i)},kC=async e=>{let t=typeof e==`string`?new TextEncoder().encode(e):e,n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},are=async({method:e,url:t,headers:n,payloadHash:r,accessKeyId:i,secretAccessKey:a,region:o,service:s,date:c})=>{let l=new URL(t),u=c.toISOString().replace(/[:-]|\.\d{3}/g,``),d=u.slice(0,8),f=l.pathname,p=[...l.searchParams.entries()].sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`),m=Object.entries(n).map(([e,t])=>`${e.toLowerCase()}:${t.trim()}`).sort().join(`
431
+ `).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[])})),PS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|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,g={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(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof T||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new T(n)},ee=v;ee.l=C,ee.i=S,ee.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(ee.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return ee},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return ee.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!ee.u(t)||t,u=ee.p(e),p=function(e,t){var i=ee.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return ee.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=ee.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[ee.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=ee.p(u),h=function(e){var t=w(p);return ee.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return ee.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=ee.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return ee.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return ee.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return ee.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return ee.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return ee.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return ee.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return ee.s(t.$s,2,`0`);case`SSS`:return ee.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=ee.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return ee.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:ee.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return ee.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),te=T.prototype;return w.prototype=te,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){te[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,T,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),FS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var e={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`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),IS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var e={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(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))})),LS=c(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),RS,Fne=s((()=>{RS=new Map([[`ß`,`ss`],[`ẞ`,`Ss`],[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`À`,`A`],[`Á`,`A`],[`Â`,`A`],[`Ã`,`A`],[`Ä`,`Ae`],[`Å`,`A`],[`Æ`,`AE`],[`Ç`,`C`],[`È`,`E`],[`É`,`E`],[`Ê`,`E`],[`Ë`,`E`],[`Ə`,`A`],[`Ì`,`I`],[`Í`,`I`],[`Î`,`I`],[`Ï`,`I`],[`Ð`,`D`],[`Ñ`,`N`],[`Ò`,`O`],[`Ó`,`O`],[`Ô`,`O`],[`Õ`,`O`],[`Ö`,`Oe`],[`Ō`,`O`],[`Ő`,`O`],[`Ø`,`O`],[`Œ`,`OE`],[`Ù`,`U`],[`Ú`,`U`],[`Û`,`U`],[`Ü`,`Ue`],[`Ű`,`U`],[`Ý`,`Y`],[`Þ`,`TH`],[`ß`,`ss`],[`à`,`a`],[`á`,`a`],[`â`,`a`],[`ã`,`a`],[`ä`,`ae`],[`å`,`a`],[`æ`,`ae`],[`ç`,`c`],[`è`,`e`],[`é`,`e`],[`ê`,`e`],[`ë`,`e`],[`ə`,`a`],[`ì`,`i`],[`í`,`i`],[`î`,`i`],[`ï`,`i`],[`ð`,`d`],[`ñ`,`n`],[`ò`,`o`],[`ó`,`o`],[`ô`,`o`],[`õ`,`o`],[`ö`,`oe`],[`ō`,`o`],[`ő`,`o`],[`ø`,`o`],[`œ`,`oe`],[`ù`,`u`],[`ú`,`u`],[`û`,`u`],[`ü`,`ue`],[`ű`,`u`],[`ý`,`y`],[`þ`,`th`],[`ÿ`,`y`],[`à`,`a`],[`À`,`A`],[`á`,`a`],[`Á`,`A`],[`â`,`a`],[`Â`,`A`],[`ã`,`a`],[`Ã`,`A`],[`è`,`e`],[`È`,`E`],[`é`,`e`],[`É`,`E`],[`ê`,`e`],[`Ê`,`E`],[`ì`,`i`],[`Ì`,`I`],[`í`,`i`],[`Í`,`I`],[`ò`,`o`],[`Ò`,`O`],[`ó`,`o`],[`Ó`,`O`],[`ô`,`o`],[`Ô`,`O`],[`õ`,`o`],[`Õ`,`O`],[`ù`,`u`],[`Ù`,`U`],[`ú`,`u`],[`Ú`,`U`],[`ý`,`y`],[`Ý`,`Y`],[`ă`,`a`],[`Ă`,`A`],[`Đ`,`D`],[`đ`,`d`],[`ĩ`,`i`],[`Ĩ`,`I`],[`ũ`,`u`],[`Ũ`,`U`],[`ơ`,`o`],[`Ơ`,`O`],[`ư`,`u`],[`Ư`,`U`],[`ạ`,`a`],[`Ạ`,`A`],[`ả`,`a`],[`Ả`,`A`],[`ấ`,`a`],[`Ấ`,`A`],[`ầ`,`a`],[`Ầ`,`A`],[`ẩ`,`a`],[`Ẩ`,`A`],[`ẫ`,`a`],[`Ẫ`,`A`],[`ậ`,`a`],[`Ậ`,`A`],[`ắ`,`a`],[`Ắ`,`A`],[`ằ`,`a`],[`Ằ`,`A`],[`ẳ`,`a`],[`Ẳ`,`A`],[`ẵ`,`a`],[`Ẵ`,`A`],[`ặ`,`a`],[`Ặ`,`A`],[`ẹ`,`e`],[`Ẹ`,`E`],[`ẻ`,`e`],[`Ẻ`,`E`],[`ẽ`,`e`],[`Ẽ`,`E`],[`ế`,`e`],[`Ế`,`E`],[`ề`,`e`],[`Ề`,`E`],[`ể`,`e`],[`Ể`,`E`],[`ễ`,`e`],[`Ễ`,`E`],[`ệ`,`e`],[`Ệ`,`E`],[`ỉ`,`i`],[`Ỉ`,`I`],[`ị`,`i`],[`Ị`,`I`],[`ọ`,`o`],[`Ọ`,`O`],[`ỏ`,`o`],[`Ỏ`,`O`],[`ố`,`o`],[`Ố`,`O`],[`ồ`,`o`],[`Ồ`,`O`],[`ổ`,`o`],[`Ổ`,`O`],[`ỗ`,`o`],[`Ỗ`,`O`],[`ộ`,`o`],[`Ộ`,`O`],[`ớ`,`o`],[`Ớ`,`O`],[`ờ`,`o`],[`Ờ`,`O`],[`ở`,`o`],[`Ở`,`O`],[`ỡ`,`o`],[`Ỡ`,`O`],[`ợ`,`o`],[`Ợ`,`O`],[`ụ`,`u`],[`Ụ`,`U`],[`ủ`,`u`],[`Ủ`,`U`],[`ứ`,`u`],[`Ứ`,`U`],[`ừ`,`u`],[`Ừ`,`U`],[`ử`,`u`],[`Ử`,`U`],[`ữ`,`u`],[`Ữ`,`U`],[`ự`,`u`],[`Ự`,`U`],[`ỳ`,`y`],[`Ỳ`,`Y`],[`ỵ`,`y`],[`Ỵ`,`Y`],[`ỷ`,`y`],[`Ỷ`,`Y`],[`ỹ`,`y`],[`Ỹ`,`Y`],[`ء`,`e`],[`آ`,`a`],[`أ`,`a`],[`ؤ`,`w`],[`إ`,`a`],[`ئ`,`y`],[`ا`,`a`],[`ب`,`b`],[`ة`,`t`],[`ت`,`t`],[`ث`,`th`],[`ج`,`j`],[`ح`,`h`],[`خ`,`kh`],[`د`,`d`],[`ذ`,`dh`],[`ر`,`r`],[`ز`,`z`],[`س`,`s`],[`ش`,`sh`],[`ص`,`s`],[`ض`,`d`],[`ط`,`t`],[`ظ`,`z`],[`ع`,`e`],[`غ`,`gh`],[`ـ`,`_`],[`ف`,`f`],[`ق`,`q`],[`ك`,`k`],[`ل`,`l`],[`م`,`m`],[`ن`,`n`],[`ه`,`h`],[`و`,`w`],[`ى`,`a`],[`ي`,`y`],[`َ‎`,`a`],[`ُ`,`u`],[`ِ‎`,`i`],[`٠`,`0`],[`١`,`1`],[`٢`,`2`],[`٣`,`3`],[`٤`,`4`],[`٥`,`5`],[`٦`,`6`],[`٧`,`7`],[`٨`,`8`],[`٩`,`9`],[`چ`,`ch`],[`ک`,`k`],[`گ`,`g`],[`پ`,`p`],[`ژ`,`zh`],[`ی`,`y`],[`۰`,`0`],[`۱`,`1`],[`۲`,`2`],[`۳`,`3`],[`۴`,`4`],[`۵`,`5`],[`۶`,`6`],[`۷`,`7`],[`۸`,`8`],[`۹`,`9`],[`ټ`,`p`],[`ځ`,`z`],[`څ`,`c`],[`ډ`,`d`],[`ﺫ`,`d`],[`ﺭ`,`r`],[`ړ`,`r`],[`ﺯ`,`z`],[`ږ`,`g`],[`ښ`,`x`],[`ګ`,`g`],[`ڼ`,`n`],[`ۀ`,`e`],[`ې`,`e`],[`ۍ`,`ai`],[`ٹ`,`t`],[`ڈ`,`d`],[`ڑ`,`r`],[`ں`,`n`],[`ہ`,`h`],[`ھ`,`h`],[`ے`,`e`],[`А`,`A`],[`а`,`a`],[`Б`,`B`],[`б`,`b`],[`В`,`V`],[`в`,`v`],[`Г`,`G`],[`г`,`g`],[`Д`,`D`],[`д`,`d`],[`ъе`,`ye`],[`Ъе`,`Ye`],[`ъЕ`,`yE`],[`ЪЕ`,`YE`],[`Е`,`E`],[`е`,`e`],[`Ё`,`Yo`],[`ё`,`yo`],[`Ж`,`Zh`],[`ж`,`zh`],[`З`,`Z`],[`з`,`z`],[`И`,`I`],[`и`,`i`],[`ый`,`iy`],[`Ый`,`Iy`],[`ЫЙ`,`IY`],[`ыЙ`,`iY`],[`Й`,`Y`],[`й`,`y`],[`К`,`K`],[`к`,`k`],[`Л`,`L`],[`л`,`l`],[`М`,`M`],[`м`,`m`],[`Н`,`N`],[`н`,`n`],[`О`,`O`],[`о`,`o`],[`П`,`P`],[`п`,`p`],[`Р`,`R`],[`р`,`r`],[`С`,`S`],[`с`,`s`],[`Т`,`T`],[`т`,`t`],[`У`,`U`],[`у`,`u`],[`Ф`,`F`],[`ф`,`f`],[`Х`,`Kh`],[`х`,`kh`],[`Ц`,`Ts`],[`ц`,`ts`],[`Ч`,`Ch`],[`ч`,`ch`],[`Ш`,`Sh`],[`ш`,`sh`],[`Щ`,`Sch`],[`щ`,`sch`],[`Ъ`,``],[`ъ`,``],[`Ы`,`Y`],[`ы`,`y`],[`Ь`,``],[`ь`,``],[`Э`,`E`],[`э`,`e`],[`Ю`,`Yu`],[`ю`,`yu`],[`Я`,`Ya`],[`я`,`ya`],[`ă`,`a`],[`Ă`,`A`],[`ș`,`s`],[`Ș`,`S`],[`ț`,`t`],[`Ț`,`T`],[`ţ`,`t`],[`Ţ`,`T`],[`ş`,`s`],[`Ş`,`S`],[`ç`,`c`],[`Ç`,`C`],[`ğ`,`g`],[`Ğ`,`G`],[`ı`,`i`],[`İ`,`I`],[`ա`,`a`],[`Ա`,`A`],[`բ`,`b`],[`Բ`,`B`],[`գ`,`g`],[`Գ`,`G`],[`դ`,`d`],[`Դ`,`D`],[`ե`,`ye`],[`Ե`,`Ye`],[`զ`,`z`],[`Զ`,`Z`],[`է`,`e`],[`Է`,`E`],[`ը`,`y`],[`Ը`,`Y`],[`թ`,`t`],[`Թ`,`T`],[`ժ`,`zh`],[`Ժ`,`Zh`],[`ի`,`i`],[`Ի`,`I`],[`լ`,`l`],[`Լ`,`L`],[`խ`,`kh`],[`Խ`,`Kh`],[`ծ`,`ts`],[`Ծ`,`Ts`],[`կ`,`k`],[`Կ`,`K`],[`հ`,`h`],[`Հ`,`H`],[`ձ`,`dz`],[`Ձ`,`Dz`],[`ղ`,`gh`],[`Ղ`,`Gh`],[`ճ`,`tch`],[`Ճ`,`Tch`],[`մ`,`m`],[`Մ`,`M`],[`յ`,`y`],[`Յ`,`Y`],[`ն`,`n`],[`Ն`,`N`],[`շ`,`sh`],[`Շ`,`Sh`],[`ու`,`u`],[`ՈՒ`,`U`],[`Ու`,`U`],[`ո`,`vo`],[`Ո`,`Vo`],[`չ`,`ch`],[`Չ`,`Ch`],[`պ`,`p`],[`Պ`,`P`],[`ջ`,`j`],[`Ջ`,`J`],[`ռ`,`r`],[`Ռ`,`R`],[`ս`,`s`],[`Ս`,`S`],[`վ`,`v`],[`Վ`,`V`],[`տ`,`t`],[`Տ`,`T`],[`ր`,`r`],[`Ր`,`R`],[`ց`,`c`],[`Ց`,`C`],[`փ`,`p`],[`Փ`,`P`],[`ք`,`q`],[`Ք`,`Q`],[`օ`,`o`],[`Օ`,`O`],[`ֆ`,`f`],[`Ֆ`,`F`],[`և`,`yev`],[`ა`,`a`],[`ბ`,`b`],[`გ`,`g`],[`დ`,`d`],[`ე`,`e`],[`ვ`,`v`],[`ზ`,`z`],[`თ`,`t`],[`ი`,`i`],[`კ`,`k`],[`ლ`,`l`],[`მ`,`m`],[`ნ`,`n`],[`ო`,`o`],[`პ`,`p`],[`ჟ`,`zh`],[`რ`,`r`],[`ს`,`s`],[`ტ`,`t`],[`უ`,`u`],[`ფ`,`ph`],[`ქ`,`q`],[`ღ`,`gh`],[`ყ`,`k`],[`შ`,`sh`],[`ჩ`,`ch`],[`ც`,`ts`],[`ძ`,`dz`],[`წ`,`ts`],[`ჭ`,`tch`],[`ხ`,`kh`],[`ჯ`,`j`],[`ჰ`,`h`],[`č`,`c`],[`ď`,`d`],[`ě`,`e`],[`ň`,`n`],[`ř`,`r`],[`š`,`s`],[`ť`,`t`],[`ů`,`u`],[`ž`,`z`],[`Č`,`C`],[`Ď`,`D`],[`Ě`,`E`],[`Ň`,`N`],[`Ř`,`R`],[`Š`,`S`],[`Ť`,`T`],[`Ů`,`U`],[`Ž`,`Z`],[`ހ`,`h`],[`ށ`,`sh`],[`ނ`,`n`],[`ރ`,`r`],[`ބ`,`b`],[`ޅ`,`lh`],[`ކ`,`k`],[`އ`,`a`],[`ވ`,`v`],[`މ`,`m`],[`ފ`,`f`],[`ދ`,`dh`],[`ތ`,`th`],[`ލ`,`l`],[`ގ`,`g`],[`ޏ`,`gn`],[`ސ`,`s`],[`ޑ`,`d`],[`ޒ`,`z`],[`ޓ`,`t`],[`ޔ`,`y`],[`ޕ`,`p`],[`ޖ`,`j`],[`ޗ`,`ch`],[`ޘ`,`tt`],[`ޙ`,`hh`],[`ޚ`,`kh`],[`ޛ`,`th`],[`ޜ`,`z`],[`ޝ`,`sh`],[`ޞ`,`s`],[`ޟ`,`d`],[`ޠ`,`t`],[`ޡ`,`z`],[`ޢ`,`a`],[`ޣ`,`gh`],[`ޤ`,`q`],[`ޥ`,`w`],[`ަ`,`a`],[`ާ`,`aa`],[`ި`,`i`],[`ީ`,`ee`],[`ު`,`u`],[`ޫ`,`oo`],[`ެ`,`e`],[`ޭ`,`ey`],[`ޮ`,`o`],[`ޯ`,`oa`],[`ް`,``],[`α`,`a`],[`β`,`v`],[`γ`,`g`],[`δ`,`d`],[`ε`,`e`],[`ζ`,`z`],[`η`,`i`],[`θ`,`th`],[`ι`,`i`],[`κ`,`k`],[`λ`,`l`],[`μ`,`m`],[`ν`,`n`],[`ξ`,`ks`],[`ο`,`o`],[`π`,`p`],[`ρ`,`r`],[`σ`,`s`],[`τ`,`t`],[`υ`,`y`],[`φ`,`f`],[`χ`,`x`],[`ψ`,`ps`],[`ω`,`o`],[`ά`,`a`],[`έ`,`e`],[`ί`,`i`],[`ό`,`o`],[`ύ`,`y`],[`ή`,`i`],[`ώ`,`o`],[`ς`,`s`],[`ϊ`,`i`],[`ΰ`,`y`],[`ϋ`,`y`],[`ΐ`,`i`],[`Α`,`A`],[`Β`,`B`],[`Γ`,`G`],[`Δ`,`D`],[`Ε`,`E`],[`Ζ`,`Z`],[`Η`,`I`],[`Θ`,`TH`],[`Ι`,`I`],[`Κ`,`K`],[`Λ`,`L`],[`Μ`,`M`],[`Ν`,`N`],[`Ξ`,`KS`],[`Ο`,`O`],[`Π`,`P`],[`Ρ`,`R`],[`Σ`,`S`],[`Τ`,`T`],[`Υ`,`Y`],[`Φ`,`F`],[`Χ`,`X`],[`Ψ`,`PS`],[`Ω`,`O`],[`Ά`,`A`],[`Έ`,`E`],[`Ί`,`I`],[`Ό`,`O`],[`Ύ`,`Y`],[`Ή`,`I`],[`Ώ`,`O`],[`Ϊ`,`I`],[`Ϋ`,`Y`],[`ā`,`a`],[`ē`,`e`],[`ģ`,`g`],[`ī`,`i`],[`ķ`,`k`],[`ļ`,`l`],[`ņ`,`n`],[`ū`,`u`],[`Ā`,`A`],[`Ē`,`E`],[`Ģ`,`G`],[`Ī`,`I`],[`Ķ`,`K`],[`Ļ`,`L`],[`Ņ`,`N`],[`Ū`,`U`],[`č`,`c`],[`š`,`s`],[`ž`,`z`],[`Č`,`C`],[`Š`,`S`],[`Ž`,`Z`],[`ą`,`a`],[`č`,`c`],[`ę`,`e`],[`ė`,`e`],[`į`,`i`],[`š`,`s`],[`ų`,`u`],[`ū`,`u`],[`ž`,`z`],[`Ą`,`A`],[`Č`,`C`],[`Ę`,`E`],[`Ė`,`E`],[`Į`,`I`],[`Š`,`S`],[`Ų`,`U`],[`Ū`,`U`],[`Ќ`,`Kj`],[`ќ`,`kj`],[`Љ`,`Lj`],[`љ`,`lj`],[`Њ`,`Nj`],[`њ`,`nj`],[`Тс`,`Ts`],[`тс`,`ts`],[`ą`,`a`],[`ć`,`c`],[`ę`,`e`],[`ł`,`l`],[`ń`,`n`],[`ś`,`s`],[`ź`,`z`],[`ż`,`z`],[`Ą`,`A`],[`Ć`,`C`],[`Ę`,`E`],[`Ł`,`L`],[`Ń`,`N`],[`Ś`,`S`],[`Ź`,`Z`],[`Ż`,`Z`],[`Є`,`Ye`],[`І`,`I`],[`Ї`,`Yi`],[`Ґ`,`G`],[`є`,`ye`],[`і`,`i`],[`ї`,`yi`],[`ґ`,`g`],[`IJ`,`IJ`],[`ij`,`ij`],[`¢`,`c`],[`¥`,`Y`],[`߿`,`b`],[`৳`,`t`],[`૱`,`Bo`],[`฿`,`B`],[`₠`,`CE`],[`₡`,`C`],[`₢`,`Cr`],[`₣`,`F`],[`₥`,`m`],[`₦`,`N`],[`₧`,`Pt`],[`₨`,`Rs`],[`₩`,`W`],[`₫`,`s`],[`€`,`E`],[`₭`,`K`],[`₮`,`T`],[`₯`,`Dp`],[`₰`,`S`],[`₱`,`P`],[`₲`,`G`],[`₳`,`A`],[`₴`,`S`],[`₵`,`C`],[`₶`,`tt`],[`₷`,`S`],[`₸`,`T`],[`₹`,`R`],[`₺`,`L`],[`₽`,`P`],[`₿`,`B`],[`﹩`,`$`],[`¢`,`c`],[`¥`,`Y`],[`₩`,`W`],[`𝐀`,`A`],[`𝐁`,`B`],[`𝐂`,`C`],[`𝐃`,`D`],[`𝐄`,`E`],[`𝐅`,`F`],[`𝐆`,`G`],[`𝐇`,`H`],[`𝐈`,`I`],[`𝐉`,`J`],[`𝐊`,`K`],[`𝐋`,`L`],[`𝐌`,`M`],[`𝐍`,`N`],[`𝐎`,`O`],[`𝐏`,`P`],[`𝐐`,`Q`],[`𝐑`,`R`],[`𝐒`,`S`],[`𝐓`,`T`],[`𝐔`,`U`],[`𝐕`,`V`],[`𝐖`,`W`],[`𝐗`,`X`],[`𝐘`,`Y`],[`𝐙`,`Z`],[`𝐚`,`a`],[`𝐛`,`b`],[`𝐜`,`c`],[`𝐝`,`d`],[`𝐞`,`e`],[`𝐟`,`f`],[`𝐠`,`g`],[`𝐡`,`h`],[`𝐢`,`i`],[`𝐣`,`j`],[`𝐤`,`k`],[`𝐥`,`l`],[`𝐦`,`m`],[`𝐧`,`n`],[`𝐨`,`o`],[`𝐩`,`p`],[`𝐪`,`q`],[`𝐫`,`r`],[`𝐬`,`s`],[`𝐭`,`t`],[`𝐮`,`u`],[`𝐯`,`v`],[`𝐰`,`w`],[`𝐱`,`x`],[`𝐲`,`y`],[`𝐳`,`z`],[`𝐴`,`A`],[`𝐵`,`B`],[`𝐶`,`C`],[`𝐷`,`D`],[`𝐸`,`E`],[`𝐹`,`F`],[`𝐺`,`G`],[`𝐻`,`H`],[`𝐼`,`I`],[`𝐽`,`J`],[`𝐾`,`K`],[`𝐿`,`L`],[`𝑀`,`M`],[`𝑁`,`N`],[`𝑂`,`O`],[`𝑃`,`P`],[`𝑄`,`Q`],[`𝑅`,`R`],[`𝑆`,`S`],[`𝑇`,`T`],[`𝑈`,`U`],[`𝑉`,`V`],[`𝑊`,`W`],[`𝑋`,`X`],[`𝑌`,`Y`],[`𝑍`,`Z`],[`𝑎`,`a`],[`𝑏`,`b`],[`𝑐`,`c`],[`𝑑`,`d`],[`𝑒`,`e`],[`𝑓`,`f`],[`𝑔`,`g`],[`𝑖`,`i`],[`𝑗`,`j`],[`𝑘`,`k`],[`𝑙`,`l`],[`𝑚`,`m`],[`𝑛`,`n`],[`𝑜`,`o`],[`𝑝`,`p`],[`𝑞`,`q`],[`𝑟`,`r`],[`𝑠`,`s`],[`𝑡`,`t`],[`𝑢`,`u`],[`𝑣`,`v`],[`𝑤`,`w`],[`𝑥`,`x`],[`𝑦`,`y`],[`𝑧`,`z`],[`𝑨`,`A`],[`𝑩`,`B`],[`𝑪`,`C`],[`𝑫`,`D`],[`𝑬`,`E`],[`𝑭`,`F`],[`𝑮`,`G`],[`𝑯`,`H`],[`𝑰`,`I`],[`𝑱`,`J`],[`𝑲`,`K`],[`𝑳`,`L`],[`𝑴`,`M`],[`𝑵`,`N`],[`𝑶`,`O`],[`𝑷`,`P`],[`𝑸`,`Q`],[`𝑹`,`R`],[`𝑺`,`S`],[`𝑻`,`T`],[`𝑼`,`U`],[`𝑽`,`V`],[`𝑾`,`W`],[`𝑿`,`X`],[`𝒀`,`Y`],[`𝒁`,`Z`],[`𝒂`,`a`],[`𝒃`,`b`],[`𝒄`,`c`],[`𝒅`,`d`],[`𝒆`,`e`],[`𝒇`,`f`],[`𝒈`,`g`],[`𝒉`,`h`],[`𝒊`,`i`],[`𝒋`,`j`],[`𝒌`,`k`],[`𝒍`,`l`],[`𝒎`,`m`],[`𝒏`,`n`],[`𝒐`,`o`],[`𝒑`,`p`],[`𝒒`,`q`],[`𝒓`,`r`],[`𝒔`,`s`],[`𝒕`,`t`],[`𝒖`,`u`],[`𝒗`,`v`],[`𝒘`,`w`],[`𝒙`,`x`],[`𝒚`,`y`],[`𝒛`,`z`],[`𝒜`,`A`],[`𝒞`,`C`],[`𝒟`,`D`],[`𝒢`,`g`],[`𝒥`,`J`],[`𝒦`,`K`],[`𝒩`,`N`],[`𝒪`,`O`],[`𝒫`,`P`],[`𝒬`,`Q`],[`𝒮`,`S`],[`𝒯`,`T`],[`𝒰`,`U`],[`𝒱`,`V`],[`𝒲`,`W`],[`𝒳`,`X`],[`𝒴`,`Y`],[`𝒵`,`Z`],[`𝒶`,`a`],[`𝒷`,`b`],[`𝒸`,`c`],[`𝒹`,`d`],[`𝒻`,`f`],[`𝒽`,`h`],[`𝒾`,`i`],[`𝒿`,`j`],[`𝓀`,`k`],[`𝓁`,`l`],[`𝓂`,`m`],[`𝓃`,`n`],[`𝓅`,`p`],[`𝓆`,`q`],[`𝓇`,`r`],[`𝓈`,`s`],[`𝓉`,`t`],[`𝓊`,`u`],[`𝓋`,`v`],[`𝓌`,`w`],[`𝓍`,`x`],[`𝓎`,`y`],[`𝓏`,`z`],[`𝓐`,`A`],[`𝓑`,`B`],[`𝓒`,`C`],[`𝓓`,`D`],[`𝓔`,`E`],[`𝓕`,`F`],[`𝓖`,`G`],[`𝓗`,`H`],[`𝓘`,`I`],[`𝓙`,`J`],[`𝓚`,`K`],[`𝓛`,`L`],[`𝓜`,`M`],[`𝓝`,`N`],[`𝓞`,`O`],[`𝓟`,`P`],[`𝓠`,`Q`],[`𝓡`,`R`],[`𝓢`,`S`],[`𝓣`,`T`],[`𝓤`,`U`],[`𝓥`,`V`],[`𝓦`,`W`],[`𝓧`,`X`],[`𝓨`,`Y`],[`𝓩`,`Z`],[`𝓪`,`a`],[`𝓫`,`b`],[`𝓬`,`c`],[`𝓭`,`d`],[`𝓮`,`e`],[`𝓯`,`f`],[`𝓰`,`g`],[`𝓱`,`h`],[`𝓲`,`i`],[`𝓳`,`j`],[`𝓴`,`k`],[`𝓵`,`l`],[`𝓶`,`m`],[`𝓷`,`n`],[`𝓸`,`o`],[`𝓹`,`p`],[`𝓺`,`q`],[`𝓻`,`r`],[`𝓼`,`s`],[`𝓽`,`t`],[`𝓾`,`u`],[`𝓿`,`v`],[`𝔀`,`w`],[`𝔁`,`x`],[`𝔂`,`y`],[`𝔃`,`z`],[`𝔄`,`A`],[`𝔅`,`B`],[`𝔇`,`D`],[`𝔈`,`E`],[`𝔉`,`F`],[`𝔊`,`G`],[`𝔍`,`J`],[`𝔎`,`K`],[`𝔏`,`L`],[`𝔐`,`M`],[`𝔑`,`N`],[`𝔒`,`O`],[`𝔓`,`P`],[`𝔔`,`Q`],[`𝔖`,`S`],[`𝔗`,`T`],[`𝔘`,`U`],[`𝔙`,`V`],[`𝔚`,`W`],[`𝔛`,`X`],[`𝔜`,`Y`],[`𝔞`,`a`],[`𝔟`,`b`],[`𝔠`,`c`],[`𝔡`,`d`],[`𝔢`,`e`],[`𝔣`,`f`],[`𝔤`,`g`],[`𝔥`,`h`],[`𝔦`,`i`],[`𝔧`,`j`],[`𝔨`,`k`],[`𝔩`,`l`],[`𝔪`,`m`],[`𝔫`,`n`],[`𝔬`,`o`],[`𝔭`,`p`],[`𝔮`,`q`],[`𝔯`,`r`],[`𝔰`,`s`],[`𝔱`,`t`],[`𝔲`,`u`],[`𝔳`,`v`],[`𝔴`,`w`],[`𝔵`,`x`],[`𝔶`,`y`],[`𝔷`,`z`],[`𝔸`,`A`],[`𝔹`,`B`],[`𝔻`,`D`],[`𝔼`,`E`],[`𝔽`,`F`],[`𝔾`,`G`],[`𝕀`,`I`],[`𝕁`,`J`],[`𝕂`,`K`],[`𝕃`,`L`],[`𝕄`,`M`],[`𝕆`,`O`],[`𝕊`,`S`],[`𝕋`,`T`],[`𝕌`,`U`],[`𝕍`,`V`],[`𝕎`,`W`],[`𝕏`,`X`],[`𝕐`,`Y`],[`𝕒`,`a`],[`𝕓`,`b`],[`𝕔`,`c`],[`𝕕`,`d`],[`𝕖`,`e`],[`𝕗`,`f`],[`𝕘`,`g`],[`𝕙`,`h`],[`𝕚`,`i`],[`𝕛`,`j`],[`𝕜`,`k`],[`𝕝`,`l`],[`𝕞`,`m`],[`𝕟`,`n`],[`𝕠`,`o`],[`𝕡`,`p`],[`𝕢`,`q`],[`𝕣`,`r`],[`𝕤`,`s`],[`𝕥`,`t`],[`𝕦`,`u`],[`𝕧`,`v`],[`𝕨`,`w`],[`𝕩`,`x`],[`𝕪`,`y`],[`𝕫`,`z`],[`𝕬`,`A`],[`𝕭`,`B`],[`𝕮`,`C`],[`𝕯`,`D`],[`𝕰`,`E`],[`𝕱`,`F`],[`𝕲`,`G`],[`𝕳`,`H`],[`𝕴`,`I`],[`𝕵`,`J`],[`𝕶`,`K`],[`𝕷`,`L`],[`𝕸`,`M`],[`𝕹`,`N`],[`𝕺`,`O`],[`𝕻`,`P`],[`𝕼`,`Q`],[`𝕽`,`R`],[`𝕾`,`S`],[`𝕿`,`T`],[`𝖀`,`U`],[`𝖁`,`V`],[`𝖂`,`W`],[`𝖃`,`X`],[`𝖄`,`Y`],[`𝖅`,`Z`],[`𝖆`,`a`],[`𝖇`,`b`],[`𝖈`,`c`],[`𝖉`,`d`],[`𝖊`,`e`],[`𝖋`,`f`],[`𝖌`,`g`],[`𝖍`,`h`],[`𝖎`,`i`],[`𝖏`,`j`],[`𝖐`,`k`],[`𝖑`,`l`],[`𝖒`,`m`],[`𝖓`,`n`],[`𝖔`,`o`],[`𝖕`,`p`],[`𝖖`,`q`],[`𝖗`,`r`],[`𝖘`,`s`],[`𝖙`,`t`],[`𝖚`,`u`],[`𝖛`,`v`],[`𝖜`,`w`],[`𝖝`,`x`],[`𝖞`,`y`],[`𝖟`,`z`],[`𝖠`,`A`],[`𝖡`,`B`],[`𝖢`,`C`],[`𝖣`,`D`],[`𝖤`,`E`],[`𝖥`,`F`],[`𝖦`,`G`],[`𝖧`,`H`],[`𝖨`,`I`],[`𝖩`,`J`],[`𝖪`,`K`],[`𝖫`,`L`],[`𝖬`,`M`],[`𝖭`,`N`],[`𝖮`,`O`],[`𝖯`,`P`],[`𝖰`,`Q`],[`𝖱`,`R`],[`𝖲`,`S`],[`𝖳`,`T`],[`𝖴`,`U`],[`𝖵`,`V`],[`𝖶`,`W`],[`𝖷`,`X`],[`𝖸`,`Y`],[`𝖹`,`Z`],[`𝖺`,`a`],[`𝖻`,`b`],[`𝖼`,`c`],[`𝖽`,`d`],[`𝖾`,`e`],[`𝖿`,`f`],[`𝗀`,`g`],[`𝗁`,`h`],[`𝗂`,`i`],[`𝗃`,`j`],[`𝗄`,`k`],[`𝗅`,`l`],[`𝗆`,`m`],[`𝗇`,`n`],[`𝗈`,`o`],[`𝗉`,`p`],[`𝗊`,`q`],[`𝗋`,`r`],[`𝗌`,`s`],[`𝗍`,`t`],[`𝗎`,`u`],[`𝗏`,`v`],[`𝗐`,`w`],[`𝗑`,`x`],[`𝗒`,`y`],[`𝗓`,`z`],[`𝗔`,`A`],[`𝗕`,`B`],[`𝗖`,`C`],[`𝗗`,`D`],[`𝗘`,`E`],[`𝗙`,`F`],[`𝗚`,`G`],[`𝗛`,`H`],[`𝗜`,`I`],[`𝗝`,`J`],[`𝗞`,`K`],[`𝗟`,`L`],[`𝗠`,`M`],[`𝗡`,`N`],[`𝗢`,`O`],[`𝗣`,`P`],[`𝗤`,`Q`],[`𝗥`,`R`],[`𝗦`,`S`],[`𝗧`,`T`],[`𝗨`,`U`],[`𝗩`,`V`],[`𝗪`,`W`],[`𝗫`,`X`],[`𝗬`,`Y`],[`𝗭`,`Z`],[`𝗮`,`a`],[`𝗯`,`b`],[`𝗰`,`c`],[`𝗱`,`d`],[`𝗲`,`e`],[`𝗳`,`f`],[`𝗴`,`g`],[`𝗵`,`h`],[`𝗶`,`i`],[`𝗷`,`j`],[`𝗸`,`k`],[`𝗹`,`l`],[`𝗺`,`m`],[`𝗻`,`n`],[`𝗼`,`o`],[`𝗽`,`p`],[`𝗾`,`q`],[`𝗿`,`r`],[`𝘀`,`s`],[`𝘁`,`t`],[`𝘂`,`u`],[`𝘃`,`v`],[`𝘄`,`w`],[`𝘅`,`x`],[`𝘆`,`y`],[`𝘇`,`z`],[`𝘈`,`A`],[`𝘉`,`B`],[`𝘊`,`C`],[`𝘋`,`D`],[`𝘌`,`E`],[`𝘍`,`F`],[`𝘎`,`G`],[`𝘏`,`H`],[`𝘐`,`I`],[`𝘑`,`J`],[`𝘒`,`K`],[`𝘓`,`L`],[`𝘔`,`M`],[`𝘕`,`N`],[`𝘖`,`O`],[`𝘗`,`P`],[`𝘘`,`Q`],[`𝘙`,`R`],[`𝘚`,`S`],[`𝘛`,`T`],[`𝘜`,`U`],[`𝘝`,`V`],[`𝘞`,`W`],[`𝘟`,`X`],[`𝘠`,`Y`],[`𝘡`,`Z`],[`𝘢`,`a`],[`𝘣`,`b`],[`𝘤`,`c`],[`𝘥`,`d`],[`𝘦`,`e`],[`𝘧`,`f`],[`𝘨`,`g`],[`𝘩`,`h`],[`𝘪`,`i`],[`𝘫`,`j`],[`𝘬`,`k`],[`𝘭`,`l`],[`𝘮`,`m`],[`𝘯`,`n`],[`𝘰`,`o`],[`𝘱`,`p`],[`𝘲`,`q`],[`𝘳`,`r`],[`𝘴`,`s`],[`𝘵`,`t`],[`𝘶`,`u`],[`𝘷`,`v`],[`𝘸`,`w`],[`𝘹`,`x`],[`𝘺`,`y`],[`𝘻`,`z`],[`𝘼`,`A`],[`𝘽`,`B`],[`𝘾`,`C`],[`𝘿`,`D`],[`𝙀`,`E`],[`𝙁`,`F`],[`𝙂`,`G`],[`𝙃`,`H`],[`𝙄`,`I`],[`𝙅`,`J`],[`𝙆`,`K`],[`𝙇`,`L`],[`𝙈`,`M`],[`𝙉`,`N`],[`𝙊`,`O`],[`𝙋`,`P`],[`𝙌`,`Q`],[`𝙍`,`R`],[`𝙎`,`S`],[`𝙏`,`T`],[`𝙐`,`U`],[`𝙑`,`V`],[`𝙒`,`W`],[`𝙓`,`X`],[`𝙔`,`Y`],[`𝙕`,`Z`],[`𝙖`,`a`],[`𝙗`,`b`],[`𝙘`,`c`],[`𝙙`,`d`],[`𝙚`,`e`],[`𝙛`,`f`],[`𝙜`,`g`],[`𝙝`,`h`],[`𝙞`,`i`],[`𝙟`,`j`],[`𝙠`,`k`],[`𝙡`,`l`],[`𝙢`,`m`],[`𝙣`,`n`],[`𝙤`,`o`],[`𝙥`,`p`],[`𝙦`,`q`],[`𝙧`,`r`],[`𝙨`,`s`],[`𝙩`,`t`],[`𝙪`,`u`],[`𝙫`,`v`],[`𝙬`,`w`],[`𝙭`,`x`],[`𝙮`,`y`],[`𝙯`,`z`],[`𝙰`,`A`],[`𝙱`,`B`],[`𝙲`,`C`],[`𝙳`,`D`],[`𝙴`,`E`],[`𝙵`,`F`],[`𝙶`,`G`],[`𝙷`,`H`],[`𝙸`,`I`],[`𝙹`,`J`],[`𝙺`,`K`],[`𝙻`,`L`],[`𝙼`,`M`],[`𝙽`,`N`],[`𝙾`,`O`],[`𝙿`,`P`],[`𝚀`,`Q`],[`𝚁`,`R`],[`𝚂`,`S`],[`𝚃`,`T`],[`𝚄`,`U`],[`𝚅`,`V`],[`𝚆`,`W`],[`𝚇`,`X`],[`𝚈`,`Y`],[`𝚉`,`Z`],[`𝚊`,`a`],[`𝚋`,`b`],[`𝚌`,`c`],[`𝚍`,`d`],[`𝚎`,`e`],[`𝚏`,`f`],[`𝚐`,`g`],[`𝚑`,`h`],[`𝚒`,`i`],[`𝚓`,`j`],[`𝚔`,`k`],[`𝚕`,`l`],[`𝚖`,`m`],[`𝚗`,`n`],[`𝚘`,`o`],[`𝚙`,`p`],[`𝚚`,`q`],[`𝚛`,`r`],[`𝚜`,`s`],[`𝚝`,`t`],[`𝚞`,`u`],[`𝚟`,`v`],[`𝚠`,`w`],[`𝚡`,`x`],[`𝚢`,`y`],[`𝚣`,`z`],[`𝚤`,`l`],[`𝚥`,`j`],[`𝛢`,`A`],[`𝛣`,`B`],[`𝛤`,`G`],[`𝛥`,`D`],[`𝛦`,`E`],[`𝛧`,`Z`],[`𝛨`,`I`],[`𝛩`,`TH`],[`𝛪`,`I`],[`𝛫`,`K`],[`𝛬`,`L`],[`𝛭`,`M`],[`𝛮`,`N`],[`𝛯`,`KS`],[`𝛰`,`O`],[`𝛱`,`P`],[`𝛲`,`R`],[`𝛳`,`TH`],[`𝛴`,`S`],[`𝛵`,`T`],[`𝛶`,`Y`],[`𝛷`,`F`],[`𝛸`,`x`],[`𝛹`,`PS`],[`𝛺`,`O`],[`𝛻`,`D`],[`𝛼`,`a`],[`𝛽`,`b`],[`𝛾`,`g`],[`𝛿`,`d`],[`𝜀`,`e`],[`𝜁`,`z`],[`𝜂`,`i`],[`𝜃`,`th`],[`𝜄`,`i`],[`𝜅`,`k`],[`𝜆`,`l`],[`𝜇`,`m`],[`𝜈`,`n`],[`𝜉`,`ks`],[`𝜊`,`o`],[`𝜋`,`p`],[`𝜌`,`r`],[`𝜍`,`s`],[`𝜎`,`s`],[`𝜏`,`t`],[`𝜐`,`y`],[`𝜑`,`f`],[`𝜒`,`x`],[`𝜓`,`ps`],[`𝜔`,`o`],[`𝜕`,`d`],[`𝜖`,`E`],[`𝜗`,`TH`],[`𝜘`,`K`],[`𝜙`,`f`],[`𝜚`,`r`],[`𝜛`,`p`],[`𝜜`,`A`],[`𝜝`,`V`],[`𝜞`,`G`],[`𝜟`,`D`],[`𝜠`,`E`],[`𝜡`,`Z`],[`𝜢`,`I`],[`𝜣`,`TH`],[`𝜤`,`I`],[`𝜥`,`K`],[`𝜦`,`L`],[`𝜧`,`M`],[`𝜨`,`N`],[`𝜩`,`KS`],[`𝜪`,`O`],[`𝜫`,`P`],[`𝜬`,`S`],[`𝜭`,`TH`],[`𝜮`,`S`],[`𝜯`,`T`],[`𝜰`,`Y`],[`𝜱`,`F`],[`𝜲`,`X`],[`𝜳`,`PS`],[`𝜴`,`O`],[`𝜵`,`D`],[`𝜶`,`a`],[`𝜷`,`v`],[`𝜸`,`g`],[`𝜹`,`d`],[`𝜺`,`e`],[`𝜻`,`z`],[`𝜼`,`i`],[`𝜽`,`th`],[`𝜾`,`i`],[`𝜿`,`k`],[`𝝀`,`l`],[`𝝁`,`m`],[`𝝂`,`n`],[`𝝃`,`ks`],[`𝝄`,`o`],[`𝝅`,`p`],[`𝝆`,`r`],[`𝝇`,`s`],[`𝝈`,`s`],[`𝝉`,`t`],[`𝝊`,`y`],[`𝝋`,`f`],[`𝝌`,`x`],[`𝝍`,`ps`],[`𝝎`,`o`],[`𝝏`,`a`],[`𝝐`,`e`],[`𝝑`,`i`],[`𝝒`,`k`],[`𝝓`,`f`],[`𝝔`,`r`],[`𝝕`,`p`],[`𝝖`,`A`],[`𝝗`,`B`],[`𝝘`,`G`],[`𝝙`,`D`],[`𝝚`,`E`],[`𝝛`,`Z`],[`𝝜`,`I`],[`𝝝`,`TH`],[`𝝞`,`I`],[`𝝟`,`K`],[`𝝠`,`L`],[`𝝡`,`M`],[`𝝢`,`N`],[`𝝣`,`KS`],[`𝝤`,`O`],[`𝝥`,`P`],[`𝝦`,`R`],[`𝝧`,`TH`],[`𝝨`,`S`],[`𝝩`,`T`],[`𝝪`,`Y`],[`𝝫`,`F`],[`𝝬`,`X`],[`𝝭`,`PS`],[`𝝮`,`O`],[`𝝯`,`D`],[`𝝰`,`a`],[`𝝱`,`v`],[`𝝲`,`g`],[`𝝳`,`d`],[`𝝴`,`e`],[`𝝵`,`z`],[`𝝶`,`i`],[`𝝷`,`th`],[`𝝸`,`i`],[`𝝹`,`k`],[`𝝺`,`l`],[`𝝻`,`m`],[`𝝼`,`n`],[`𝝽`,`ks`],[`𝝾`,`o`],[`𝝿`,`p`],[`𝞀`,`r`],[`𝞁`,`s`],[`𝞂`,`s`],[`𝞃`,`t`],[`𝞄`,`y`],[`𝞅`,`f`],[`𝞆`,`x`],[`𝞇`,`ps`],[`𝞈`,`o`],[`𝞉`,`a`],[`𝞊`,`e`],[`𝞋`,`i`],[`𝞌`,`k`],[`𝞍`,`f`],[`𝞎`,`r`],[`𝞏`,`p`],[`𝞐`,`A`],[`𝞑`,`V`],[`𝞒`,`G`],[`𝞓`,`D`],[`𝞔`,`E`],[`𝞕`,`Z`],[`𝞖`,`I`],[`𝞗`,`TH`],[`𝞘`,`I`],[`𝞙`,`K`],[`𝞚`,`L`],[`𝞛`,`M`],[`𝞜`,`N`],[`𝞝`,`KS`],[`𝞞`,`O`],[`𝞟`,`P`],[`𝞠`,`S`],[`𝞡`,`TH`],[`𝞢`,`S`],[`𝞣`,`T`],[`𝞤`,`Y`],[`𝞥`,`F`],[`𝞦`,`X`],[`𝞧`,`PS`],[`𝞨`,`O`],[`𝞩`,`D`],[`𝞪`,`av`],[`𝞫`,`g`],[`𝞬`,`d`],[`𝞭`,`e`],[`𝞮`,`z`],[`𝞯`,`i`],[`𝞰`,`i`],[`𝞱`,`th`],[`𝞲`,`i`],[`𝞳`,`k`],[`𝞴`,`l`],[`𝞵`,`m`],[`𝞶`,`n`],[`𝞷`,`ks`],[`𝞸`,`o`],[`𝞹`,`p`],[`𝞺`,`r`],[`𝞻`,`s`],[`𝞼`,`s`],[`𝞽`,`t`],[`𝞾`,`y`],[`𝞿`,`f`],[`𝟀`,`x`],[`𝟁`,`ps`],[`𝟂`,`o`],[`𝟃`,`a`],[`𝟄`,`e`],[`𝟅`,`i`],[`𝟆`,`k`],[`𝟇`,`f`],[`𝟈`,`r`],[`𝟉`,`p`],[`𝟊`,`F`],[`𝟋`,`f`],[`⒜`,`(a)`],[`⒝`,`(b)`],[`⒞`,`(c)`],[`⒟`,`(d)`],[`⒠`,`(e)`],[`⒡`,`(f)`],[`⒢`,`(g)`],[`⒣`,`(h)`],[`⒤`,`(i)`],[`⒥`,`(j)`],[`⒦`,`(k)`],[`⒧`,`(l)`],[`⒨`,`(m)`],[`⒩`,`(n)`],[`⒪`,`(o)`],[`⒫`,`(p)`],[`⒬`,`(q)`],[`⒭`,`(r)`],[`⒮`,`(s)`],[`⒯`,`(t)`],[`⒰`,`(u)`],[`⒱`,`(v)`],[`⒲`,`(w)`],[`⒳`,`(x)`],[`⒴`,`(y)`],[`⒵`,`(z)`],[`Ⓐ`,`(A)`],[`Ⓑ`,`(B)`],[`Ⓒ`,`(C)`],[`Ⓓ`,`(D)`],[`Ⓔ`,`(E)`],[`Ⓕ`,`(F)`],[`Ⓖ`,`(G)`],[`Ⓗ`,`(H)`],[`Ⓘ`,`(I)`],[`Ⓙ`,`(J)`],[`Ⓚ`,`(K)`],[`Ⓛ`,`(L)`],[`Ⓝ`,`(N)`],[`Ⓞ`,`(O)`],[`Ⓟ`,`(P)`],[`Ⓠ`,`(Q)`],[`Ⓡ`,`(R)`],[`Ⓢ`,`(S)`],[`Ⓣ`,`(T)`],[`Ⓤ`,`(U)`],[`Ⓥ`,`(V)`],[`Ⓦ`,`(W)`],[`Ⓧ`,`(X)`],[`Ⓨ`,`(Y)`],[`Ⓩ`,`(Z)`],[`ⓐ`,`(a)`],[`ⓑ`,`(b)`],[`ⓒ`,`(c)`],[`ⓓ`,`(d)`],[`ⓔ`,`(e)`],[`ⓕ`,`(f)`],[`ⓖ`,`(g)`],[`ⓗ`,`(h)`],[`ⓘ`,`(i)`],[`ⓙ`,`(j)`],[`ⓚ`,`(k)`],[`ⓛ`,`(l)`],[`ⓜ`,`(m)`],[`ⓝ`,`(n)`],[`ⓞ`,`(o)`],[`ⓟ`,`(p)`],[`ⓠ`,`(q)`],[`ⓡ`,`(r)`],[`ⓢ`,`(s)`],[`ⓣ`,`(t)`],[`ⓤ`,`(u)`],[`ⓥ`,`(v)`],[`ⓦ`,`(w)`],[`ⓧ`,`(x)`],[`ⓨ`,`(y)`],[`ⓩ`,`(z)`],[`Ċ`,`C`],[`ċ`,`c`],[`Ġ`,`G`],[`ġ`,`g`],[`Ħ`,`H`],[`ħ`,`h`],[`Ż`,`Z`],[`ż`,`z`],[`𝟎`,`0`],[`𝟏`,`1`],[`𝟐`,`2`],[`𝟑`,`3`],[`𝟒`,`4`],[`𝟓`,`5`],[`𝟔`,`6`],[`𝟕`,`7`],[`𝟖`,`8`],[`𝟗`,`9`],[`𝟘`,`0`],[`𝟙`,`1`],[`𝟚`,`2`],[`𝟛`,`3`],[`𝟜`,`4`],[`𝟝`,`5`],[`𝟞`,`6`],[`𝟟`,`7`],[`𝟠`,`8`],[`𝟡`,`9`],[`𝟢`,`0`],[`𝟣`,`1`],[`𝟤`,`2`],[`𝟥`,`3`],[`𝟦`,`4`],[`𝟧`,`5`],[`𝟨`,`6`],[`𝟩`,`7`],[`𝟪`,`8`],[`𝟫`,`9`],[`𝟬`,`0`],[`𝟭`,`1`],[`𝟮`,`2`],[`𝟯`,`3`],[`𝟰`,`4`],[`𝟱`,`5`],[`𝟲`,`6`],[`𝟳`,`7`],[`𝟴`,`8`],[`𝟵`,`9`],[`𝟶`,`0`],[`𝟷`,`1`],[`𝟸`,`2`],[`𝟹`,`3`],[`𝟺`,`4`],[`𝟻`,`5`],[`𝟼`,`6`],[`𝟽`,`7`],[`𝟾`,`8`],[`𝟿`,`9`],[`①`,`1`],[`②`,`2`],[`③`,`3`],[`④`,`4`],[`⑤`,`5`],[`⑥`,`6`],[`⑦`,`7`],[`⑧`,`8`],[`⑨`,`9`],[`⑩`,`10`],[`⑪`,`11`],[`⑫`,`12`],[`⑬`,`13`],[`⑭`,`14`],[`⑮`,`15`],[`⑯`,`16`],[`⑰`,`17`],[`⑱`,`18`],[`⑲`,`19`],[`⑳`,`20`],[`⑴`,`1`],[`⑵`,`2`],[`⑶`,`3`],[`⑷`,`4`],[`⑸`,`5`],[`⑹`,`6`],[`⑺`,`7`],[`⑻`,`8`],[`⑼`,`9`],[`⑽`,`10`],[`⑾`,`11`],[`⑿`,`12`],[`⒀`,`13`],[`⒁`,`14`],[`⒂`,`15`],[`⒃`,`16`],[`⒄`,`17`],[`⒅`,`18`],[`⒆`,`19`],[`⒇`,`20`],[`⒈`,`1.`],[`⒉`,`2.`],[`⒊`,`3.`],[`⒋`,`4.`],[`⒌`,`5.`],[`⒍`,`6.`],[`⒎`,`7.`],[`⒏`,`8.`],[`⒐`,`9.`],[`⒑`,`10.`],[`⒒`,`11.`],[`⒓`,`12.`],[`⒔`,`13.`],[`⒕`,`14.`],[`⒖`,`15.`],[`⒗`,`16.`],[`⒘`,`17.`],[`⒙`,`18.`],[`⒚`,`19.`],[`⒛`,`20.`],[`⓪`,`0`],[`⓫`,`11`],[`⓬`,`12`],[`⓭`,`13`],[`⓮`,`14`],[`⓯`,`15`],[`⓰`,`16`],[`⓱`,`17`],[`⓲`,`18`],[`⓳`,`19`],[`⓴`,`20`],[`⓵`,`1`],[`⓶`,`2`],[`⓷`,`3`],[`⓸`,`4`],[`⓹`,`5`],[`⓺`,`6`],[`⓻`,`7`],[`⓼`,`8`],[`⓽`,`9`],[`⓾`,`10`],[`⓿`,`0`],[`🙰`,`&`],[`🙱`,`&`],[`🙲`,`&`],[`🙳`,`&`],[`🙴`,`&`],[`🙵`,`&`],[`🙶`,`"`],[`🙷`,`"`],[`🙸`,`"`],[`‽`,`?!`],[`🙹`,`?!`],[`🙺`,`?!`],[`🙻`,`?!`],[`🙼`,`/`],[`🙽`,`\\`],[`🜇`,`AR`],[`🜈`,`V`],[`🜉`,`V`],[`🜆`,`VR`],[`🜅`,`VF`],[`🜩`,`2`],[`🜪`,`5`],[`🝡`,`f`],[`🝢`,`W`],[`🝣`,`U`],[`🝧`,`V`],[`🝨`,`T`],[`🝪`,`V`],[`🝫`,`MB`],[`🝬`,`VB`],[`🝲`,`3B`],[`🝳`,`3B`],[`💯`,`100`],[`🔙`,`BACK`],[`🔚`,`END`],[`🔛`,`ON!`],[`🔜`,`SOON`],[`🔝`,`TOP`],[`🔞`,`18`],[`🔤`,`abc`],[`🔠`,`ABCD`],[`🔡`,`abcd`],[`🔢`,`1234`],[`🔣`,`T&@%`],[`#️⃣`,`#`],[`*️⃣`,`*`],[`0️⃣`,`0`],[`1️⃣`,`1`],[`2️⃣`,`2`],[`3️⃣`,`3`],[`4️⃣`,`4`],[`5️⃣`,`5`],[`6️⃣`,`6`],[`7️⃣`,`7`],[`8️⃣`,`8`],[`9️⃣`,`9`],[`🔟`,`10`],[`🅰️`,`A`],[`🅱️`,`B`],[`🆎`,`AB`],[`🆑`,`CL`],[`🅾️`,`O`],[`🅿`,`P`],[`🆘`,`SOS`],[`🅲`,`C`],[`🅳`,`D`],[`🅴`,`E`],[`🅵`,`F`],[`🅶`,`G`],[`🅷`,`H`],[`🅸`,`I`],[`🅹`,`J`],[`🅺`,`K`],[`🅻`,`L`],[`🅼`,`M`],[`🅽`,`N`],[`🆀`,`Q`],[`🆁`,`R`],[`🆂`,`S`],[`🆃`,`T`],[`🆄`,`U`],[`🆅`,`V`],[`🆆`,`W`],[`🆇`,`X`],[`🆈`,`Y`],[`🆉`,`Z`],[`−`,`-`],[`⁓`,`-`]])})),zS,BS,Ine=s((()=>{zS=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],BS={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:zS,nb:zS,de:[[`ä`,`ae`],[`Ä`,`Ae`],[`ö`,`oe`],[`Ö`,`Oe`],[`ü`,`ue`],[`Ü`,`Ue`],[`ß`,`ss`],[`ẞ`,`Ss`]],tr:[[`â`,`a`],[`Â`,`A`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`]],hu:[[`ű`,`u`],[`Ű`,`U`],[`ö`,`o`],[`Ö`,`O`],[`ü`,`u`],[`Ü`,`U`],[`á`,`a`],[`Á`,`A`],[`é`,`e`],[`É`,`E`],[`í`,`i`],[`Í`,`I`],[`ó`,`o`],[`Ó`,`O`],[`ú`,`u`],[`Ú`,`U`]],sr:[[`ђ`,`dj`],[`Ђ`,`Dj`],[`џ`,`dz`],[`Џ`,`Dz`],[`љ`,`lj`],[`Љ`,`Lj`],[`њ`,`nj`],[`Њ`,`Nj`],[`ћ`,`c`],[`Ћ`,`C`],[`ч`,`ch`],[`Ч`,`Ch`],[`ш`,`sh`],[`Ш`,`Sh`],[`ж`,`zh`],[`Ж`,`Zh`]]};for(let e of Object.keys(BS))BS[e]=new Map(BS[e])}));function Lne(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=GS(t.locale),r=[...t.customReplacements],i=RS,a=US;if(n&&({replacements:i,pattern:a}=WS.get(n)),e=e.normalize(),r.length>0){r.sort((e,t)=>t[0].length-e[0].length);for(let[t,n]of r)e=e.replaceAll(t,n)}return e=e.replace(a,e=>i.get(e)??e),e=e.normalize(`NFD`).replaceAll(/\p{Diacritic}/gu,``).normalize(),e=e.replaceAll(/\p{Dash_Punctuation}/gu,`-`),e}var VS,HS,US,WS,GS,Rne=s((()=>{Fne(),Ine(),VS=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),HS=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>VS(e)).join(`|`),`gu`)},US=HS(RS),WS=new Map;for(let[e,t]of Object.entries(BS)){let n=new Map(RS);for(let[e,r]of t)n.set(e,r);WS.set(e,{replacements:n,pattern:HS(n)})}GS=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(BS,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(BS,n))return n}})),KS,qS,JS,YS=s((()=>{Rne(),hp(),Sp(),rp(),$P(),zx(),KS=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],qS=new Map,JS=(e,{fallback:t=!0,locale:n=void 0,maxLength:r=void 0}={})=>{let{slug:{encoding:i=`unicode`,clean_accents:a=!1,sanitize_replacement:o=`-`,maxlength:s=void 0,trim:c=!0,lowercase:l=!0}={}}=A(JP)??{},u=r??s,d=e;if(a&&(d=Lne(d.normalize(`NFD`),{locale:n&&KS.includes(n)?n:void 0})),d=i===`ascii`?d.replaceAll(/[^\w-~]/g,` `):d.replaceAll(/[\p{Z}\p{C}!"#$%&'()*+,/:;<=>?@[\\\]^`{|}]/gu,` `),d=d.trim().replaceAll(/\s+/g,o),o){let e=o.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),t=Rx(qS,e,()=>({consecutivePattern:RegExp(`${e}+`,`g`),trimPattern:RegExp(`^${e}+|${e}+$`,`g`)}));d=d.replace(t.consecutivePattern,o),c&&(d=d.replace(t.trimPattern,``))}return!d&&t&&(d=fp(`short`)),typeof u==`number`&&d.length>u&&(d=_p(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}})),XS,ZS=s((()=>{XS=({date:e=new Date,timeZone:t=void 0}={})=>{let n={year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,timeZoneName:`longOffset`};return Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{...n,hour12:!1,timeZone:t}).formatToParts(e).filter(({type:e})=>e in n).map(({type:e,value:t})=>[e,e===`hour`&&t===`24`?`00`:t]))}})),QS,$S,eC,tC,nC,rC,iC=s((()=>{QS=/^\d{4}-[01]\d-[0-3]\d$/,$S=/T00:00(?::00)?(?:\.000)?Z$/,eC={year:`numeric`,month:`short`,day:`numeric`},tC={hour:`numeric`,minute:`numeric`,hour12:!0},nC={...eC,...tC},rC=(e,t)=>e.toLocaleString(t??void 0,nC)})),aC,zne,Bne,Vne,oC,sC,cC,lC,uC,dC,fC,pC,mC=s((()=>{ZS(),aC=u(PS(),1),zne=u(FS(),1),Bne=u(IS(),1),Vne=u(LS(),1),ub(),iC(),aC.default.extend(zne.default),aC.default.extend(Bne.default),aC.default.extend(Vne.default),oC=e=>{let{type:t=`datetime-local`,min:n=void 0,max:r=void 0,step:i=void 0,format:a,date_format:o=void 0,time_format:s=void 0,picker_utc:c=!1}=e,l=typeof o==`string`?o:``,u=typeof s==`string`?s:``,d=t===`date`||s===!1,f=t===`time`||o===!1;return{type:d?`date`:f?`time`:`datetime-local`,min:typeof n==`string`&&n?n:void 0,max:typeof r==`string`&&r?r:d?`9999-12-31`:f?void 0:`9999-12-31T23:59`,step:typeof i==`number`&&Number.isInteger(i)&&i>0||i===`any`?i:void 0,format:a||[l,u].join(` `).trim()||void 0,dateOnly:d,timeOnly:f,utc:c}},sC=e=>e instanceof Date&&!Number.isNaN(e.getTime()),cC=e=>e?aC.default.utc:aC.default,lC=(e,t)=>{let{format:n,timeOnly:r,utc:i}=oC(t);if(!e)return;let a;if(n){let t=cC(i),r=t(e,n);if(!r.isValid()&&(r=t(e),!r.isValid())){console.error(`Invalid Date`,e);return}return r.toDate()}if(a=r?new Date(`${new Date().toJSON().split(`T`)[0]}T${e}`):new Date(e),sC(a))return a;console.error(`Invalid Date`,e)},uC=e=>{let{dateOnly:t,timeOnly:n,utc:r}=oC(e),{year:i,month:a,day:o,hour:s,minute:c}=XS({timeZone:r?`UTC`:void 0}),l=`${i}-${a}-${o}`,u=`${s}:${c}`;return t?l:n?u:r?`${l}T${u}:00.000Z`:`${l}T${u}`},dC=(e,t,n)=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=oC(n),s=i?`YYYY-MM-DD`:a?`HH:mm`:`YYYY-MM-DDTHH:mm`,c=`:00${t?.endsWith(`.000`)?`.000`:``}`;if(e===``)return``;if(e){if(r){let t=cC(o),n=t(e,s);return!n.isValid()&&(n=t(e),!n.isValid())?(console.info(`Invalid date`,e),``):n.format(r)}return i?e:o?`${e}:00.000Z`:`${e}${c}`}},fC=(e,t)=>{let{dateOnly:n,timeOnly:r,utc:i}=oC(t);if(!e)return``;let a=n?e.match(/^(?<date>\d{4}-[01]\d-[0-3]\d)\b/)?.groups?.date:r?e.match(/(?:^|T)(?<time>[0-2]\d:[0-5]\d)\b/)?.groups?.time:void 0;if(a)return a;let o=lC(e,t);if(!o)return``;let{year:s,month:c,day:l,hour:u,minute:d}=XS({date:o,timeZone:i?`UTC`:void 0}),f=`${s}-${c}-${l}`,p=`${u}:${d}`;return n?f:r?p:`${f}T${p}`},pC=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=oC(t);if(typeof n!=`string`||!n.trim())return``;if(r){let e=cC(o),t=e(n,r);return!t.isValid()&&(t=e(n),!t.isValid())?(console.error(`Invalid Date`,n),``):t.format(r)}let s=lC(n,t),c=rb(e);return sC(s)?a?s.toLocaleTimeString(c,tC):i?s.toLocaleDateString(c,{...eC,timeZone:o||QS.test(n)||$S.test(n)?`UTC`:void 0}):s.toLocaleString(c,{...eC,...tC,timeZone:o?`UTC`:void 0,timeZoneName:o?void 0:`short`}):``}})),hC,Hne,Une,Wne,gC,_C,vC,Gne,Kne,qne,Jne,Yne,Xne,Zne,Qne,yC,bC=s((()=>{Sp(),hC=u(PS(),1),Hne=u(FS(),1),Une=u(IS(),1),Wne=u(LS(),1),YS(),mC(),hC.default.extend(Hne.default),hC.default.extend(Une.default),hC.default.extend(Wne.default),gC=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,_C=/^default\('(?<defaultValue>.+?)'\)$/,vC=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,Gne=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,Kne=e=>String(e).toUpperCase(),qne=e=>String(e).toLowerCase(),Jne=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=oC(r),s=(n===`utc`||o||a&&i.match(/^\d{4}-[01]\d-[0-3]\d$/)||a&&i.match(/T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?Z$/)?hC.default.utc:hC.default)(i);return s.isValid()?s.format(t):``},Yne=(e,{defaultValue:t})=>e?String(e):t,Xne=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Zne=(e,{max:t,ellipsis:n=`…`})=>_p(String(e),Number(t),{ellipsis:n}),Qne=({fieldConfig:e,value:t,transformation:n,locale:r})=>{if(n===`upper`)return Kne(t);if(n===`lower`)return qne(t);if(n===`slugify`)return JS(String(t),{locale:r});let i=n.match(gC);if(i?.groups)return Jne(t,i.groups,e??{});let a=n.match(_C);if(a?.groups)return Yne(t,a.groups);let o=n.match(vC);if(o?.groups)return Xne(t,o.groups);let s=n.match(Gne);return s?.groups?Zne(t,s.groups):String(t)},yC=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=Qne({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})),xC,SC,$ne,CC=s((()=>{xC=[`file`,`image`],SC=[...xC,`relation`,`select`],$ne=[...SC,`datetime`,`keyvalue`,`list`,`number`]})),ere,tre,nre,wC,TC,EC,rre,ire,DC=s((()=>{rp(),$P(),ere=`https://console.cloudinary.com`,tre=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],nre=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],wC=e=>{let t=A(JP);if(e??=t,e?.media_libraries&&`cloudinary`in e.media_libraries)return e.media_libraries.cloudinary;if(!e?.media_library)return;let n=e.media_library.name===`cloudinary`,r=!e.media_library.name&&t?.media_library?.name===`cloudinary`;if(n||r)return e.media_library},TC=new Map,EC=e=>{let t=e?JSON.stringify(e):`global`,n=TC.get(t);if(n)return n;let r=wC()||{config:{}},i=wC(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return TC.set(t,a),a},rre=e=>{let t=wC(e)??wC(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},ire={serviceType:`cloud_storage`,serviceId:`cloudinary`,serviceLabel:`Cloudinary`,serviceURL:`https://cloudinary.com/`,showServiceLink:!0,hotlinking:!0,authType:`widget`,developerURL:`https://cloudinary.com/documentation/`,apiKeyURL:`https://console.cloudinary.com/settings/api-keys`,apiKeyPattern:/^[A-Za-z0-9_-]{15,}$/,isEnabled:rre}})),OC,kC,are,AC,ore,sre,jC,MC,NC,PC,FC=s((()=>{Yx(),AS(),OC=async(e,t)=>{let n=new TextEncoder,r=await crypto.subtle.importKey(`raw`,typeof e==`string`?n.encode(e):e,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),i=await crypto.subtle.sign(`HMAC`,r,n.encode(t));return new Uint8Array(i)},kC=async e=>{let t=typeof e==`string`?new TextEncoder().encode(e):e,n=await crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},are=async({method:e,url:t,headers:n,payloadHash:r,accessKeyId:i,secretAccessKey:a,region:o,service:s,date:c})=>{let l=new URL(t),u=c.toISOString().replace(/[:-]|\.\d{3}/g,``),d=u.slice(0,8),f=l.pathname,p=[...l.searchParams.entries()].sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join(`&`),m=Object.entries(n).map(([e,t])=>`${e.toLowerCase()}:${t.trim()}`).sort().join(`
432
432
  `),h=Object.keys(n).map(e=>e.toLowerCase()).sort().join(`;`),g=[e,f,p,`${m}\n`,h,r].join(`
433
433
  `),_=`AWS4-HMAC-SHA256`,v=`${d}/${o}/${s}/aws4_request`,y=[_,u,v,await kC(g)].join(`
434
- `),b=await OC(await OC(await OC(await OC(await OC(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},AC=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await kC(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await are({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},ore=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},sre=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,jC=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=sre({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:kS(t)}})},MC=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await AC({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=ore(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await Jx(50)}return jC(c?u.filter(e=>kS(e.Key)===c):u,e)},NC=async(e,t,n)=>{let r=await MC(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},PC=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await AC({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,"x-amz-acl":`public-read`}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await Jx(50)}return jC(l,t)}})),IC,cre,lre,ure,dre,fre,pre=s((()=>{rp(),$P(),FC(),IC=(e=A(JP))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),cre=e=>{let t=IC(e)??IC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},lre=async e=>{let{fieldConfig:t}=e,n=IC(t)??IC();return n?MC(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},ure=async(e,t)=>{let{fieldConfig:n}=t,r=IC(n)??IC();return r?NC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},dre=async(e,t)=>{let{fieldConfig:n}=t,r=IC(n)??IC();return r?PC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},fre={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:cre,list:lre,search:ure,upload:dre}})),mre,LC,RC,hre,gre,_re,vre,yre,bre=s((()=>{rp(),$P(),FC(),mre={default:``,eu:`eu.`,fedramp:`fedramp.`},LC=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${mre[t]??``}r2.cloudflarestorage.com`,RC=(e=A(JP))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),hre=e=>{let t=RC(e)??RC();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},gre=async e=>{let{fieldConfig:t}=e,n=RC(t)??RC();return n?MC({...n,region:`auto`,endpoint:LC(n)},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},_re=async(e,t)=>{let{fieldConfig:n}=t,r=RC(n)??RC();return r?NC(e,{...r,region:`auto`,endpoint:LC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},vre=async(e,t)=>{let{fieldConfig:n}=t,r=RC(n)??RC();return r?PC(e,{...r,region:`auto`,endpoint:LC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},yre={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:hre,list:gre,search:_re,upload:vre}})),zC,xre,Sre,Cre,BC,VC,wre=s((()=>{rp(),$P(),FC(),zC=(e=A(JP))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),xre=e=>{let t=zC(e)??zC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Sre=async e=>{let{fieldConfig:t}=e,n=zC(t)??zC();return n?MC({...n,endpoint:`https://${n.region}.digitaloceanspaces.com`,public_url:n.public_url??`https://${n.bucket}.${n.region}.digitaloceanspaces.com`},e):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},Cre=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?NC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},BC=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?PC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},VC={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:xre,list:Sre,search:Cre,upload:BC}})),Tre=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),Ere=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),Dre=c(((e,t)=>{var n=Tre(),r=Ere();t.exports=n.bind(null,r)})),Ore=c(((e,t)=>{var n=Dre(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}})),HC,UC,WC,GC,KC,qC,JC,YC,XC,ZC,QC,$C,ew=s((()=>{Z(),hp(),Np(),Sp(),HC=u(Ore(),1),YS(),UC=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),WC=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},GC=e=>decodeURIComponent(e),KC=new Map,qC=e=>{let t=Oh.current,n=KC.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),KC.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?X(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?X(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?X(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?X(`file_size_units.gb`,{values:{size:n.format(e/a)}}):X(`file_size_units.tb`,{values:{size:n.format(e/o)}})},JC=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=Dp(e),i=RegExp(`^${gp(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>xp(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},YC=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,HC.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=Dp(r);r=`${JS(e)}${t?`.${t.toLowerCase()}`:``}`}return JC(r,n)},XC=e=>e.filter(Boolean).join(`/`),ZC=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),XC(t)},QC=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,$C=async e=>{let t=await QC(e).arrayBuffer();return mp(new Blob([`blob ${t.byteLength}\0`,t]))}})),tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,kre=s((()=>{Yx(),rp(),$P(),ew(),tw=(e=A(JP))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),nw=e=>{let t=tw(e)??tw();return t?t.config?.publicKey:void 0},rw=e=>!!nw(e),iw=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(tw(t)??tw())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},aw=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=nw(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await Jx(50)}return iw(l,{fieldConfig:i})},ow=async e=>aw(e),sw=async(e,t)=>{let n=e.toLowerCase();return aw(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},cw=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},lw=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=nw(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await cw(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(YC(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return iw(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})},uw={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:rw,list:ow,search:sw,upload:lw}})),dw,fw,pw=s((()=>{DC(),pre(),bre(),wre(),kre(),dw={aws_s3:fre,cloudflare_r2:yre,cloudinary:ire,digitalocean_spaces:VC,uploadcare:uw},fw=Object.keys(dw)})),mw,hw,gw,_w,vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Are=s((()=>{mw=`@sveltia/cms`,hw=`0.164.1`,gw=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,_w=[`svelte`,`cms`,`content-management-system`],vw=`https://sveltiacms.app/en/`,yw={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},bw={type:`github`,url:`https://github.com/sponsors/kyoshino`},xw={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Sw=`module`,Cw={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},ww={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.44.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.1`,"@sveltia/ui":`^0.40.1`,"@sveltia/utils":`^0.10.6`,"create-react-class":`^15.7.0`,dayjs:`^1.11.20`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.5`,"isomorphic-dompurify":`^3.14.0`,leaflet:`^1.9.4`,lexical:`^0.44.0`,marked:`^18.0.4`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^5.7.284`,qrcode:`^1.5.4`,react:`^19.2.6`,"react-dom":`^19.2.6`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,svgo:`^4.0.1`,"terra-draw":`^1.30.1`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Tw={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.9.1`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.15`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.7`,cspell:`^10.0.0`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^63.0.0`,"eslint-plugin-package-json":`^1.1.0`,"eslint-plugin-svelte":`^3.17.1`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.6.0`,oxlint:`^1.66.0`,postcss:`^8.5.15`,"postcss-html":`^1.8.1`,prettier:`^3.8.3`,"prettier-plugin-svelte":`^4.0.1`,sass:`^1.100.0`,stylelint:`^17.12.0`,"stylelint-config-recommended-scss":`^17.0.1`,"stylelint-scss":`^7.1.1`,svelte:`^5.55.9`,"svelte-check":`^4.4.8`,"svelte-preprocess":`^6.0.5`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.0.14`,vitest:`^4.1.7`},Ew={directory:`package`,access:`public`,provenance:!0},Dw={name:mw,version:hw,description:gw,keywords:_w,homepage:vw,repository:yw,funding:bw,license:`MIT`,author:xw,type:Sw,scripts:Cw,dependencies:ww,devDependencies:Tw,publishConfig:Ew}})),Ow,kw,Aw=s((()=>{Are(),{dependencies:Ow,version:kw}=Dw})),jw,Mw=s((()=>{jw=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Nw,Pw,Fw=s((()=>{Aw(),Mw(),Nw=e=>{let t=`https://unpkg.com/${e}`,n=Ow[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Pw=async(e,t)=>jw(()=>import(`${Nw(e)}/${t}`),void 0)})),Iw,Lw,Rw,zw,Bw,Vw,Hw,Uw,Ww=s((()=>{Iw=[`avif`,`gif`,`jpeg`,`png`,`webp`],Lw=Iw.map(e=>`image/${e}`),Rw=/\b(?:avif|gif|jpe?g|png|webp)$/i,zw=[`svg`],Bw=[`image/svg+xml`],Vw=/\b(?:svg)$/i,[...Iw,...zw],Hw=[...Lw,...Bw],Uw=[`webp`]})),Gw,Kw,qw,Jw=s((()=>{Fw(),Ww(),Gw={},Kw=async e=>{if(e in Gw)return Gw[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return Gw[e]=r,r},qw=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await Kw(t)&&Uw.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Pw(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})),Yw,Xw,Zw=s((()=>{Yw=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},Xw=(e,t,n)=>{let{scale:r,width:i,height:a}=Yw(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),Qw,$w,eT,tT,nT,rT=s((()=>{Fw(),Jw(),Zw(),Qw=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise(e=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.src=t})},$w=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise(e=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=t,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n)})},eT=async e=>e.type.startsWith(`video/`)?$w({blob:e}):Qw({blob:e}),tT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await eT(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return Xw(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),qw(l,{format:t,quality:n})},nT=async e=>{let t=await e.text();try{let{optimize:n}=await Pw(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),iT,aT,oT,sT,cT,lT,jre=s((()=>{Fw(),Jw(),Zw(),Mw(),iT=Nw(`pdfjs-dist`),aT=`${iT}/build/pdf.min.mjs`,oT=`${iT}/build/pdf.worker.min.mjs`,sT={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${iT}/cmaps/`,iccUrl:`${iT}/iccs/`,standardFontDataUrl:`${iT}/standard_fonts/`,wasmUrl:`${iT}/wasm/`},lT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!cT)try{cT=await jw(()=>import(aT),void 0),cT.GlobalWorkerOptions.workerSrc=oT}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await cT.getDocument({...sT,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=Xw(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return qw(s,{format:t,quality:n})}})),uT,dT,fT,pT,mT,hT,gT,_T,vT=s((()=>{Np(),Yx(),cS(),Sp(),bS(),rp(),SF(),Hp(),kP(),$P(),pw(),DC(),ew(),rT(),jre(),uT=new Set,dT=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(uT.has(o)&&t<=25)return await Jx(200),dT(e,t+1);uT.add(o);let n=await A(DP)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:yS.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),uT.delete(o),s},fT=async e=>(e.blobURL||await dT(e),e.blobURL),pT=void 0,mT=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(pT===void 0){let{databaseName:e}=A(DP)?.repository??{};pT=e?new aS(e,`asset-thumbnails`):null}let r=await pT?.get(e.sha);if(!r){if(t)return;let i=await dT(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await lT(i,a):await tT(i,a),await pT?.set(e.sha,r)}return URL.createObjectURL(r)},hT=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:Bp(e.path).find(({collectionName:e})=>e!==void 0)??A(Fp);if(a){if(t){let t=Dp(e.path).dirname,n=r?Dp(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===XC([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(JP),l=o?e.path.replace(UC(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:gp(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=WC(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},gT=e=>{if(dw.cloudinary?.isEnabled?.()){let t=EC(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},_T=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(/^(?:https?|data|blob):/.test(e))return e;if(_F(e)){let t=gT(i);if(t)return`${t}/${e}`}let s=vF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await mT(s):await fT(s))??hT(s)}}));
435
- /*! @license DOMPurify 3.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.5/LICENSE */
434
+ `),b=await OC(await OC(await OC(await OC(await OC(`AWS4${a}`,d),o),s),`aws4_request`),y),x=Array.from(b).map(e=>e.toString(16).padStart(2,`0`)).join(``);return[`${_} Credential=${i}/${v},`,`SignedHeaders=${h}, Signature=${x}`].join(` `)},AC=async({method:e,url:t,config:n,secretAccessKey:r,body:i=``,extraHeaders:a={}})=>{let{access_key_id:o,region:s=`us-east-1`}=n,c=new Date,l=new URL(t),u=await kC(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await are({method:e,url:t,headers:d,payloadHash:u,accessKeyId:o,secretAccessKey:r,region:s,service:`s3`,date:c});return fetch(t,{method:e,headers:{...d,Authorization:f},...i&&{body:i}})},ore=e=>{let t=new DOMParser().parseFromString(e,`text/xml`),n=e=>{if(e.children.length===0)return e.textContent;let t={};return Array.from(e.children).forEach(e=>{let r=e.tagName,i=n(e);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t};return n(t.documentElement)},sre=({bucket:e,key:t,endpoint:n,region:r,forcePathStyle:i,publicUrl:a})=>a?`${a}/${t}`:n?`${n}/${e}/${t}`:i?`https://s3.${r}.amazonaws.com/${e}/${t}`:`https://${e}.s3.${r}.amazonaws.com/${t}`,jC=(e,t)=>{let{bucket:n,region:r,endpoint:i,force_path_style:a,prefix:o=``,public_url:s}=t;return e.map(e=>{let t=e.Key,c=t.split(`/`).pop()||t,l=o&&t.startsWith(o)?t.slice(o.length):t,u=sre({bucket:n,key:t,endpoint:i,region:r,forcePathStyle:a,publicUrl:s});return{id:t,description:l,previewURL:u,downloadURL:u,fileName:c,lastModified:new Date(e.LastModified),size:Number(e.Size),kind:kS(t)}})},MC=async(e,t,{maxPages:n=10}={})=>{let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=e,{kind:c,apiKey:l}=t;if(!l)return Promise.reject(Error(`S3 secret access key is required`));let u=[],d;for(let t=0;t<n;t+=1){let t=new URLSearchParams({"list-type":`2`,"max-keys":`1000`,...s&&{prefix:s},...d&&{"continuation-token":d}}),n=await AC({method:`GET`,url:a?`${a}/${r}?${t}`:o?`https://s3.${i}.amazonaws.com/${r}?${t}`:`https://${r}.s3.${i}.amazonaws.com/?${t}`,config:e,secretAccessKey:l});if(!n.ok){let e=await n.text();return Promise.reject(Error(`Failed to list objects: ${e}`))}let c=ore(await n.text()),f=(c.Contents?Array.isArray(c.Contents)?c.Contents:[c.Contents]:[]).filter(e=>!e.Key.endsWith(`/`));if(u.push(...f),d=c.NextContinuationToken,c.IsTruncated!==`true`||!d)break;await Jx(50)}return jC(c?u.filter(e=>kS(e.Key)===c):u,e)},NC=async(e,t,n)=>{let r=await MC(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},PC=async(e,t,n)=>{if(e.length===0)return[];let{bucket:r,region:i,endpoint:a,force_path_style:o,prefix:s=``}=t,{apiKey:c}=n;if(!c)return Promise.reject(Error(`S3 secret access key is required`));let l=[];for(let n of e){let u=n.name.split(/[/\\]/).filter(Boolean).at(-1)??n.name,d=s?`${s}${u}`:u,f=await AC({method:`PUT`,url:a?`${a}/${r}/${d}`:o?`https://s3.${i}.amazonaws.com/${r}/${d}`:`https://${r}.s3.${i}.amazonaws.com/${d}`,config:t,secretAccessKey:c,body:await n.arrayBuffer(),extraHeaders:{"Content-Type":n.type||`application/octet-stream`,"x-amz-acl":`public-read`}});if(!f.ok){let e=await f.text();throw Error(`Failed to upload file ${n.name}: ${e}`)}l.push({Key:d,LastModified:new Date().toISOString(),ETag:``,Size:n.size,ContentType:n.type}),e.length>1&&await Jx(50)}return jC(l,t)}})),IC,cre,lre,ure,dre,fre,pre=s((()=>{rp(),$P(),FC(),IC=(e=A(JP))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),cre=e=>{let t=IC(e)??IC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},lre=async e=>{let{fieldConfig:t}=e,n=IC(t)??IC();return n?MC(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},ure=async(e,t)=>{let{fieldConfig:n}=t,r=IC(n)??IC();return r?NC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},dre=async(e,t)=>{let{fieldConfig:n}=t,r=IC(n)??IC();return r?PC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},fre={serviceType:`cloud_storage`,serviceId:`aws_s3`,serviceLabel:`Amazon S3`,serviceURL:`https://aws.amazon.com/s3/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.aws.amazon.com/s3/`,apiKeyURL:`https://console.aws.amazon.com/iam/home#/security_credentials`,apiKeyPattern:/^[A-Za-z0-9/+=]{40}$/,isEnabled:cre,list:lre,search:ure,upload:dre}})),mre,LC,RC,hre,gre,_re,vre,yre,bre=s((()=>{rp(),$P(),FC(),mre={default:``,eu:`eu.`,fedramp:`fedramp.`},LC=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${mre[t]??``}r2.cloudflarestorage.com`,RC=(e=A(JP))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),hre=e=>{let t=RC(e)??RC();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},gre=async e=>{let{fieldConfig:t}=e,n=RC(t)??RC();return n?MC({...n,region:`auto`,endpoint:LC(n)},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},_re=async(e,t)=>{let{fieldConfig:n}=t,r=RC(n)??RC();return r?NC(e,{...r,region:`auto`,endpoint:LC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},vre=async(e,t)=>{let{fieldConfig:n}=t,r=RC(n)??RC();return r?PC(e,{...r,region:`auto`,endpoint:LC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},yre={serviceType:`cloud_storage`,serviceId:`cloudflare_r2`,serviceLabel:`Cloudflare R2`,serviceURL:`https://www.cloudflare.com/developer-platform/r2/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://developers.cloudflare.com/r2/`,apiKeyURL:`https://dash.cloudflare.com/?to=/:account/r2/api-tokens`,apiKeyPattern:/^[A-Za-z0-9/+=]{40,}$/,isEnabled:hre,list:gre,search:_re,upload:vre}})),zC,xre,Sre,Cre,BC,VC,wre=s((()=>{rp(),$P(),FC(),zC=(e=A(JP))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),xre=e=>{let t=zC(e)??zC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Sre=async e=>{let{fieldConfig:t}=e,n=zC(t)??zC();return n?MC({...n,endpoint:`https://${n.region}.digitaloceanspaces.com`,public_url:n.public_url??`https://${n.bucket}.${n.region}.digitaloceanspaces.com`},e):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},Cre=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?NC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},BC=async(e,t)=>{let{fieldConfig:n}=t,r=zC(n)??zC();return r?PC(e,{...r,endpoint:`https://${r.region}.digitaloceanspaces.com`,public_url:r.public_url??`https://${r.bucket}.${r.region}.digitaloceanspaces.com`},t):Promise.reject(Error(`DigitalOcean Spaces configuration is not available`))},VC={serviceType:`cloud_storage`,serviceId:`digitalocean_spaces`,serviceLabel:`DigitalOcean Spaces`,serviceURL:`https://www.digitalocean.com/products/spaces`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://docs.digitalocean.com/products/spaces/`,apiKeyURL:`https://cloud.digitalocean.com/account/api/spaces`,apiKeyPattern:/^[A-Za-z0-9/+=]{43}$/,isEnabled:xre,list:Sre,search:Cre,upload:BC}})),Tre=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e,t,i){if(typeof t!=`string`)throw Error(`Input must be string`);for(var a=t.length,o=0,s,c,l=0;l<a;l+=1){if(s=t.charCodeAt(l),c=t[l],n(s)&&r(t.charCodeAt(l+1))&&(l+=1,c+=t[l]),o+=e(c),o===i)return t.slice(0,l+1);if(o>i)return t.slice(0,l-c.length+1)}return t}})),Ere=c(((e,t)=>{function n(e){return e>=55296&&e<=56319}function r(e){return e>=56320&&e<=57343}t.exports=function(e){if(typeof e!=`string`)throw Error(`Input must be string`);for(var t=e.length,i=0,a=null,o=null,s=0;s<t;s++)a=e.charCodeAt(s),r(a)?o!=null&&n(o)?i+=1:i+=3:a<=127?i+=1:a>=128&&a<=2047?i+=2:a>=2048&&a<=65535&&(i+=3),o=a;return i}})),Dre=c(((e,t)=>{var n=Tre(),r=Ere();t.exports=n.bind(null,r)})),Ore=c(((e,t)=>{var n=Dre(),r=/[\/\?<>\\:\*\|"]/g,i=/[\x00-\x1f\x80-\x9f]/g,a=/^\.+$/,o=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function s(e,t){for(var n=e.length;n>0&&(e[n-1]===`.`||e[n-1]===` `);)n--;return n<e.length?e.slice(0,n)+t:e}function c(e,t){if(typeof e!=`string`)throw Error(`Input must be string`);var c=e.replace(r,t).replace(i,t).replace(a,t).replace(o,t);return c=s(c,t),n(c,255)}t.exports=function(e,t){var n=t&&t.replacement||``,r=c(e,n);return n===``?r:c(r,``)}})),HC,UC,WC,GC,KC,qC,JC,YC,XC,ZC,QC,$C,ew=s((()=>{Z(),hp(),Np(),Sp(),HC=u(Ore(),1),YS(),UC=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),WC=e=>{let t=e.startsWith(`@`);return t&&(e=e.slice(1)),e=e.split(`/`).map(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)).join(`/`),t?`@${e}`:e},GC=e=>decodeURIComponent(e),KC=new Map,qC=e=>{let t=Oh.current,n=KC.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),KC.set(t,n));let r=1e3,i=r*1e3,a=i*1e3,o=a*1e3;return e<r?X(`file_size_units.b`,{values:{size:n.format(e)}}):e<i?X(`file_size_units.kb`,{values:{size:n.format(e/r)}}):e<a?X(`file_size_units.mb`,{values:{size:n.format(e/i)}}):e<o?X(`file_size_units.gb`,{values:{size:n.format(e/a)}}):X(`file_size_units.tb`,{values:{size:n.format(e/o)}})},JC=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=Dp(e),i=RegExp(`^${gp(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>xp(e.split(`.`)[0],t.split(`.`)[0])).findLast(e=>i.test(e));return a?`${n}-${Number(a.match(i)?.groups?.num??0)+1}${r?`.${r}`:``}`:e},YC=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,HC.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=Dp(r);r=`${JS(e)}${t?`.${t.toLowerCase()}`:``}`}return JC(r,n)},XC=e=>e.filter(Boolean).join(`/`),ZC=e=>{let t=e.split(`/`),n=!1;return t.forEach((e,r)=>{if(e===`.`||e===`..`){if(n&&(t[r]=null,e===`..`)){let e=t.findLastIndex((e,t)=>!!e&&t<r);e>-1&&(t[e]=null)}}else n=!0}),XC(t)},QC=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,$C=async e=>{let t=await QC(e).arrayBuffer();return mp(new Blob([`blob ${t.byteLength}\0`,t]))}})),tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,kre=s((()=>{Yx(),rp(),$P(),ew(),tw=(e=A(JP))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),nw=e=>{let t=tw(e)??tw();return t?t.config?.publicKey:void 0},rw=e=>!!nw(e),iw=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(tw(t)??tw())||{};return e.map(e=>{let{uuid:t,original_filename:a,original_file_url:o,mime_type:s,datetime_uploaded:c,size:l}=e,u=`${new URL(i??o).origin}/${t}/`,d=s.startsWith(`image/`),f=s.startsWith(`video/`);return{id:t,description:a,previewURL:`${u}${d?`-/preview/400x400/`:``}`,downloadURL:`${u}${d&&r?`-${r}`:``}${n?a:``}`,fileName:a,lastModified:new Date(c),size:l,kind:d?`image`:f?`video`:`other`}})},aw=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=nw(i);if(!o)return Promise.reject(Error(`Uploadcare public key is not configured`));let s={Accept:`application/vnd.uploadcare-v0.7+json`,Authorization:`Uploadcare.Simple ${o}:${a}`},c=new URLSearchParams({limit:`100`,ordering:`-datetime_uploaded`,stored:`true`}),l=[],u=`https://api.uploadcare.com/files/?${c}`;for(let e=0;e<t&&u;e+=1){let e=await fetch(u,{headers:s});if(!e.ok)return Promise.reject(Error(`Failed to fetch files: ${e.statusText}`));let t=await e.json(),{results:i}=t;if(r===`image`&&(i=i.filter(e=>e.is_image)),n&&(i=i.filter(n)),l.push(...i),u=t.next,!u)break;await Jx(50)}return iw(l,{fieldConfig:i})},ow=async e=>aw(e),sw=async(e,t)=>{let n=e.toLowerCase();return aw(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},cw=async(e,t)=>{let n=new TextEncoder,r=n.encode(String(t)),i=n.encode(e),a=await crypto.subtle.importKey(`raw`,i,{name:`HMAC`,hash:`SHA-256`},!1,[`sign`]),o=await crypto.subtle.sign(`HMAC`,a,r);return Array.from(new Uint8Array(o)).map(e=>e.toString(16).padStart(2,`0`)).join(``)},lw=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=nw(n);if(!i)return Promise.reject(Error(`Uploadcare public key is not configured`));if(!r)return Promise.reject(Error(`Uploadcare secret key is not provided`));let a=Math.floor(Date.now()/1e3)+1800,o=await cw(r,a),s=new FormData;s.append(`UPLOADCARE_PUB_KEY`,i),s.append(`UPLOADCARE_STORE`,`1`),s.append(`signature`,o),s.append(`expire`,String(a)),e.forEach(e=>{s.append(YC(e.name),e)});let c=await fetch(`https://upload.uploadcare.com/base/`,{method:`POST`,body:s});if(!c.ok)throw Error(`Failed to upload files: ${c.statusText}`);let l=await c.json();return iw(Object.entries(l).filter(([e])=>!e.startsWith(`UPLOADCARE_`)).map(([t,n])=>{let r=e.find(e=>e.name===t),i=r?.type||`application/octet-stream`,a=i.startsWith(`image/`);return{uuid:n,original_filename:t,original_file_url:`https://ucarecdn.com/${n}/${t}`,size:r?.size||0,mime_type:i,is_image:a,is_ready:!0,content_info:null,datetime_uploaded:new Date().toISOString(),datetime_stored:new Date().toISOString(),datetime_removed:null}}),{fieldConfig:n})},uw={serviceType:`cloud_storage`,serviceId:`uploadcare`,serviceLabel:`Uploadcare`,serviceURL:`https://uploadcare.com/`,showServiceLink:!0,hotlinking:!0,authType:`api_key`,developerURL:`https://uploadcare.com/docs/`,apiKeyURL:`https://app.uploadcare.com/projects/-/api-keys/`,apiKeyPattern:/^[a-f0-9]{20}$/,isEnabled:rw,list:ow,search:sw,upload:lw}})),dw,fw,pw=s((()=>{DC(),pre(),bre(),wre(),kre(),dw={aws_s3:fre,cloudflare_r2:yre,cloudinary:ire,digitalocean_spaces:VC,uploadcare:uw},fw=Object.keys(dw)})),mw,hw,gw,_w,vw,yw,bw,xw,Sw,Cw,ww,Tw,Ew,Dw,Are=s((()=>{mw=`@sveltia/cms`,hw=`0.164.2`,gw=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,_w=[`svelte`,`cms`,`content-management-system`],vw=`https://sveltiacms.app/en/`,yw={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},bw={type:`github`,url:`https://github.com/sponsors/kyoshino`},xw={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Sw=`module`,Cw={build:`vite build`,"build:watch":`vite build --watch`,check:`pnpm run '/^check:.*/'`,"check:audit":`pnpm audit --ignore-registry-errors`,"check:cspell":`cspell --no-progress`,"check:eslint":`eslint .`,"check:imports":`node scripts/find-unused-imports.js`,"check:oxlint":`oxlint .`,"check:prettier":`prettier --check .`,"check:stylelint":`stylelint '**/*.{css,scss,svelte}'`,"check:svelte":`svelte-check`,dev:`vite`,format:`prettier --write .`,prepublishOnly:`vite build`,preview:`vite preview`,test:`NODE_OPTIONS=--no-experimental-webstorage vitest run`,"test:coverage":`NODE_OPTIONS=--no-experimental-webstorage vitest run --coverage`,"test:watch":`NODE_OPTIONS=--no-experimental-webstorage vitest`},ww={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.44.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.1`,"@sveltia/ui":`^0.40.1`,"@sveltia/utils":`^0.10.6`,"create-react-class":`^15.7.0`,dayjs:`^1.11.21`,deepmerge:`^4.3.1`,exifr:`^7.1.3`,"fast-deep-equal":`^3.1.3`,flat:`^6.0.1`,immutable:`^5.1.5`,"isomorphic-dompurify":`^3.14.0`,leaflet:`^1.9.4`,lexical:`^0.44.0`,marked:`^18.0.4`,"marked-bidi":`^1.0.15`,mime:`^4.1.0`,"parse-entities":`^4.0.2`,"pdfjs-dist":`^5.7.284`,qrcode:`^1.5.4`,react:`^19.2.6`,"react-dom":`^19.2.6`,"sanitize-filename":`^1.6.4`,"smol-toml":`^1.6.1`,svgo:`^4.0.1`,"terra-draw":`^1.30.1`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Tw={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.9.1`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.15`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.7`,cspell:`^10.0.0`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^63.0.0`,"eslint-plugin-package-json":`^1.1.0`,"eslint-plugin-svelte":`^3.18.0`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.6.0`,oxlint:`^1.67.0`,"postcss-html":`^1.8.1`,prettier:`^3.8.3`,"prettier-plugin-svelte":`^4.0.1`,stylelint:`^17.12.0`,"stylelint-config-recommended":`^18.0.0`,svelte:`^5.55.9`,"svelte-check":`^4.4.8`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.3`,vite:`^8.0.14`,vitest:`^4.1.7`},Ew={directory:`package`,access:`public`,provenance:!0},Dw={name:mw,version:hw,description:gw,keywords:_w,homepage:vw,repository:yw,funding:bw,license:`MIT`,author:xw,type:Sw,scripts:Cw,dependencies:ww,devDependencies:Tw,publishConfig:Ew}})),Ow,kw,Aw=s((()=>{Are(),{dependencies:Ow,version:kw}=Dw})),jw,Mw=s((()=>{jw=function(e,t,n){let r=Promise.resolve();function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Nw,Pw,Fw=s((()=>{Aw(),Mw(),Nw=e=>{let t=`https://unpkg.com/${e}`,n=Ow[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Pw=async(e,t)=>jw(()=>import(`${Nw(e)}/${t}`),void 0)})),Iw,Lw,Rw,zw,Bw,Vw,Hw,Uw,Ww=s((()=>{Iw=[`avif`,`gif`,`jpeg`,`png`,`webp`],Lw=Iw.map(e=>`image/${e}`),Rw=/\b(?:avif|gif|jpe?g|png|webp)$/i,zw=[`svg`],Bw=[`image/svg+xml`],Vw=/\b(?:svg)$/i,[...Iw,...zw],Hw=[...Lw,...Bw],Uw=[`webp`]})),Gw,Kw,qw,Jw=s((()=>{Fw(),Ww(),Gw={},Kw=async e=>{if(e in Gw)return Gw[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return Gw[e]=r,r},qw=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await Kw(t)&&Uw.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Pw(`@jsquash/${t}`,`encode.js?module`)).default,a=await e(i,{quality:n});return new Blob([a],{type:r})}catch{}}return e.convertToBlob({type:r,quality:n/100})}})),Yw,Xw,Zw=s((()=>{Yw=({width:e,height:t},{width:n=e,height:r=t,fit:i=`scale-down`}={})=>{let a={scale:1,width:e,height:t};if(e===n&&t===r)return a;let o=e<=n&&t<=r,s=1,c=0,l=0;if(i===`scale-down`){if(o)return a;i=`contain`}return i===`contain`&&(s=Math.min(n/e,r/t),c=e*s,l=t*s),{scale:s,width:c,height:l}},Xw=(e,t,n)=>{let{scale:r,width:i,height:a}=Yw(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),Qw,$w,eT,tT,nT,rT=s((()=>{Fw(),Jw(),Zw(),Qw=async({blob:e})=>{let t=URL.createObjectURL(e),n=new Image;return new Promise(e=>{n.addEventListener(`load`,()=>{e({source:n,naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}),URL.revokeObjectURL(t)},{once:!0}),n.src=t})},$w=async({blob:e})=>{let t=URL.createObjectURL(e),n=document.createElement(`video`);return new Promise(e=>{n.addEventListener(`canplay`,()=>{n.pause(),e({source:n,naturalWidth:n.videoWidth,naturalHeight:n.videoHeight}),URL.revokeObjectURL(t)},{once:!0}),n.muted=!0,n.autoplay=!0,n.playsInline=!0,n.src=t,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n)})},eT=async e=>e.type.startsWith(`video/`)?$w({blob:e}):Qw({blob:e}),tT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{let o,s=0,c=0;try{o=await createImageBitmap(e),{width:s,height:c}=o}catch{({source:o,naturalWidth:s,naturalHeight:c}=await eT(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return Xw(l,{width:s,height:c},{fit:a,width:r,height:i}),u.drawImage(o,0,0,l.width,l.height),o instanceof HTMLVideoElement&&document.body.removeChild(o),qw(l,{format:t,quality:n})},nT=async e=>{let t=await e.text();try{let{optimize:n}=await Pw(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),iT,aT,oT,sT,cT,lT,jre=s((()=>{Fw(),Jw(),Zw(),Mw(),iT=Nw(`pdfjs-dist`),aT=`${iT}/build/pdf.min.mjs`,oT=`${iT}/build/pdf.worker.min.mjs`,sT={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${iT}/cmaps/`,iccUrl:`${iT}/iccs/`,standardFontDataUrl:`${iT}/standard_fonts/`,wasmUrl:`${iT}/wasm/`},lT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!cT)try{cT=await jw(()=>import(aT),void 0),cT.GlobalWorkerOptions.workerSrc=oT}catch{throw Error(`Failed to load PDF.js library`)}let o=URL.createObjectURL(e),s=new OffscreenCanvas(512,512),c=s.getContext(`2d`);try{let e=await(await cT.getDocument({...sT,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=Xw(s,{width:t.width,height:t.height},{width:r,height:i,fit:a});await e.render({canvasContext:c,viewport:n===1?t:e.getViewport({scale:n})}).promise,URL.revokeObjectURL(o)}catch{throw Error(`Failed to render PDF`)}return qw(s,{format:t,quality:n})}})),uT,dT,fT,pT,mT,hT,gT,_T,vT=s((()=>{Np(),Yx(),cS(),Sp(),bS(),rp(),SF(),Hp(),kP(),$P(),pw(),DC(),ew(),rT(),jre(),uT=new Set,dT=async(e,t=0)=>{let{file:n,handle:r,blobURL:i,name:a,path:o}=e;if(i)return fetch(i).then(e=>e.blob());let s;if(n)s=n;else if(r)try{s=await r.getFile()}catch{throw Error(`Failed to retrieve blob from file handle`)}else{if(uT.has(o)&&t<=25)return await Jx(200),dT(e,t+1);uT.add(o);let n=await A(DP)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:yS.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),uT.delete(o),s},fT=async e=>(e.blobURL||await dT(e),e.blobURL),pT=void 0,mT=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(pT===void 0){let{databaseName:e}=A(DP)?.repository??{};pT=e?new aS(e,`asset-thumbnails`):null}let r=await pT?.get(e.sha);if(!r){if(t)return;let i=await dT(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await lT(i,a):await tT(i,a),await pT?.set(e.sha,r)}return URL.createObjectURL(r)},hT=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:Bp(e.path).find(({collectionName:e})=>e!==void 0)??A(Fp);if(a){if(t){let t=Dp(e.path).dirname,n=r?Dp(Object.values(r.locales)[0].path).dirname:void 0;if(t!==void 0&&n!==void 0){if(t===n)return e.name;let r=`${n}/`;return e.path.startsWith(r)?e.path.slice(r.length):void 0}let{internalPath:i,internalSubPath:a}=e.folder;if(e.path===XC([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(JP),l=o?e.path.replace(UC(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:gp(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=WC(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},gT=e=>{if(dw.cloudinary?.isEnabled?.()){let t=EC(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},_T=async({value:e,entry:t,collectionName:n,fileName:r,fieldConfig:i,typedKeyPath:a,thumbnail:o=!1})=>{if(!e)return;if(/^(?:https?|data|blob):/.test(e))return e;if(_F(e)){let t=gT(i);if(t)return`${t}/${e}`}let s=vF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await mT(s):await fT(s))??hT(s)}}));
435
+ /*! @license DOMPurify 3.4.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.7/LICENSE */
436
436
  function yT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Mre(e){if(Array.isArray(e))return e}function Nre(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Pre(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
437
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fre(e,t){return Mre(e)||Nre(e,t)||Ire(e,t)||Pre()}function Ire(e,t){if(e){if(typeof e==`string`)return yT(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yT(e,t):void 0}}function bT(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return PT(e,t,r)}}function Lre(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return FT(e,n)}}function xT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:HT;if(ET&&ET(e,null),!VT(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(DT(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Rre(e){for(let t=0;t<e.length;t++)QT(e,t)||(e[t]=null);return e}function ST(e){let t=MT(null);for(let r of TT(e)){var n=Fre(r,2);let i=n[0],a=n[1];QT(e,i)&&(VT(a)?t[i]=Rre(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=ST(a):t[i]=a)}return t}function zre(e){switch(typeof e){case`string`:return e;case`number`:return JT(e);case`boolean`:return YT(e);case`bigint`:return XT?XT(e):`0`;case`symbol`:return ZT?ZT(e):`Symbol()`;case`undefined`:return $T(e);case`function`:case`object`:{if(e===null)return $T(e);let t=e,n=CT(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:$T(e)}return $T(e)}default:return $T(e)}}function CT(e,t){for(;e!==null;){let n=kT(e,t);if(n){if(n.get)return bT(n.get);if(typeof n.value==`function`)return bT(n.value)}e=OT(e)}function n(){return null}return n}function Bre(e){try{return eE(e,``),!0}catch{return!1}}function wT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wE(),t=e=>wT(e);if(t.version=`3.4.5`,t.removed=[],!e||!e.document||e.document.nodeType!==CE.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript,a=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,f=e.HTMLFormElement,p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=CT(h,`cloneNode`),_=CT(h,`remove`),v=CT(h,`nextSibling`),y=CT(h,`childNodes`),b=CT(h,`parentNode`),x=s&&s.prototype?CT(s.prototype,`nodeType`):null;if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w=n,ee=w.implementation,T=w.createNodeIterator,te=w.createDocumentFragment,ne=w.getElementsByTagName,re=r.importNode,ie=EE();t.isSupported=typeof TT==`function`&&typeof b==`function`&&ee&&ee.createHTMLDocument!==void 0;let ae=pE,oe=mE,se=hE,ce=gE,le=_E,ue=yE,de=bE,fe=SE,E=vE,pe=null,me=xT({},[...nE,...rE,...iE,...oE,...cE]),he=null,ge=xT({},[...lE,...uE,...dE,...fE]),_e=Object.seal(MT(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}})),ve=null,ye=null,be=Object.seal(MT(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),xe=!0,Se=!0,Ce=!1,we=!0,Te=!1,Ee=!0,De=!1,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!1,Ne=!0,Pe=!1,Fe=`user-content-`,Ie=!0,Le=!1,Re={},ze=null,Be=xT({},[`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`]),Ve=null,He=xT({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ue=null,We=xT({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ge=`http://www.w3.org/1998/Math/MathML`,Ke=`http://www.w3.org/2000/svg`,qe=`http://www.w3.org/1999/xhtml`,Je=qe,Ye=!1,Xe=null,Ze=xT({},[Ge,Ke,qe],UT),Qe=xT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=xT({},[`annotation-xml`]),et=xT({},[`title`,`style`,`font`,`a`,`script`]),tt=null,nt=[`application/xhtml+xml`,`text/html`],rt=null,it=null,at=n.createElement(`form`),ot=function(e){return e instanceof RegExp||e instanceof Function},st=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(it&&it===e)return;(!e||typeof e!=`object`)&&(e={}),e=ST(e),tt=nt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,rt=tt===`application/xhtml+xml`?UT:HT,pe=QT(e,`ALLOWED_TAGS`)&&VT(e.ALLOWED_TAGS)?xT({},e.ALLOWED_TAGS,rt):me,he=QT(e,`ALLOWED_ATTR`)&&VT(e.ALLOWED_ATTR)?xT({},e.ALLOWED_ATTR,rt):ge,Xe=QT(e,`ALLOWED_NAMESPACES`)&&VT(e.ALLOWED_NAMESPACES)?xT({},e.ALLOWED_NAMESPACES,UT):Ze,Ue=QT(e,`ADD_URI_SAFE_ATTR`)&&VT(e.ADD_URI_SAFE_ATTR)?xT(ST(We),e.ADD_URI_SAFE_ATTR,rt):We,Ve=QT(e,`ADD_DATA_URI_TAGS`)&&VT(e.ADD_DATA_URI_TAGS)?xT(ST(He),e.ADD_DATA_URI_TAGS,rt):He,ze=QT(e,`FORBID_CONTENTS`)&&VT(e.FORBID_CONTENTS)?xT({},e.FORBID_CONTENTS,rt):Be,ve=QT(e,`FORBID_TAGS`)&&VT(e.FORBID_TAGS)?xT({},e.FORBID_TAGS,rt):ST({}),ye=QT(e,`FORBID_ATTR`)&&VT(e.FORBID_ATTR)?xT({},e.FORBID_ATTR,rt):ST({}),Re=QT(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?ST(e.USE_PROFILES):e.USE_PROFILES:!1,xe=e.ALLOW_ARIA_ATTR!==!1,Se=e.ALLOW_DATA_ATTR!==!1,Ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,we=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=e.SAFE_FOR_TEMPLATES||!1,Ee=e.SAFE_FOR_XML!==!1,De=e.WHOLE_DOCUMENT||!1,Ae=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Me=e.RETURN_TRUSTED_TYPE||!1,ke=e.FORCE_BODY||!1,Ne=e.SANITIZE_DOM!==!1,Pe=e.SANITIZE_NAMED_PROPS||!1,Ie=e.KEEP_CONTENT!==!1,Le=e.IN_PLACE||!1,E=Bre(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:vE,Je=typeof e.NAMESPACE==`string`?e.NAMESPACE:qe,Qe=QT(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?ST(e.MATHML_TEXT_INTEGRATION_POINTS):xT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=QT(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?ST(e.HTML_INTEGRATION_POINTS):xT({},[`annotation-xml`]);let t=QT(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?ST(e.CUSTOM_ELEMENT_HANDLING):MT(null);if(_e=MT(null),QT(t,`tagNameCheck`)&&ot(t.tagNameCheck)&&(_e.tagNameCheck=t.tagNameCheck),QT(t,`attributeNameCheck`)&&ot(t.attributeNameCheck)&&(_e.attributeNameCheck=t.attributeNameCheck),QT(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(_e.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Te&&(Se=!1),je&&(Ae=!0),Re&&(pe=xT({},cE),he=MT(null),Re.html===!0&&(xT(pe,nE),xT(he,lE)),Re.svg===!0&&(xT(pe,rE),xT(he,uE),xT(he,fE)),Re.svgFilters===!0&&(xT(pe,iE),xT(he,uE),xT(he,fE)),Re.mathMl===!0&&(xT(pe,oE),xT(he,dE),xT(he,fE))),be.tagCheck=null,be.attributeCheck=null,QT(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:VT(e.ADD_TAGS)&&(pe===me&&(pe=ST(pe)),xT(pe,e.ADD_TAGS,rt))),QT(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:VT(e.ADD_ATTR)&&(he===ge&&(he=ST(he)),xT(he,e.ADD_ATTR,rt))),QT(e,`ADD_URI_SAFE_ATTR`)&&VT(e.ADD_URI_SAFE_ATTR)&&xT(Ue,e.ADD_URI_SAFE_ATTR,rt),QT(e,`FORBID_CONTENTS`)&&VT(e.FORBID_CONTENTS)&&(ze===Be&&(ze=ST(ze)),xT(ze,e.FORBID_CONTENTS,rt)),QT(e,`ADD_FORBID_CONTENTS`)&&VT(e.ADD_FORBID_CONTENTS)&&(ze===Be&&(ze=ST(ze)),xT(ze,e.ADD_FORBID_CONTENTS,rt)),Ie&&(pe[`#text`]=!0),De&&xT(pe,[`html`,`head`,`body`]),pe.table&&(xT(pe,[`tbody`]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw tE(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw tE(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);S=e.TRUSTED_TYPES_POLICY,C=S.createHTML(``)}else S===void 0&&(S=TE(m,i)),S!==null&&typeof C==`string`&&(C=S.createHTML(``));AT&&AT(e),it=e},ct=xT({},[...rE,...iE,...aE]),lt=xT({},[...oE,...sE]),ut=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:Je,tagName:`template`});let n=HT(e.tagName),r=HT(t.tagName);return Xe[e.namespaceURI]?e.namespaceURI===Ke?t.namespaceURI===qe?n===`svg`:t.namespaceURI===Ge?n===`svg`&&(r===`annotation-xml`||Qe[r]):!!ct[n]:e.namespaceURI===Ge?t.namespaceURI===qe?n===`math`:t.namespaceURI===Ke?n===`math`&&$e[r]:!!lt[n]:e.namespaceURI===qe?t.namespaceURI===Ke&&!$e[r]||t.namespaceURI===Ge&&!Qe[r]?!1:!lt[n]&&(et[n]||!ct[n]):!!(tt===`application/xhtml+xml`&&Xe[e.namespaceURI]):!1},dt=function(e){zT(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},ft=function(e,n){try{zT(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{zT(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ae||je)try{dt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},pt=function(e){let t=null,r=null;if(ke)e=`<remove></remove>`+e;else{let t=WT(e,/^[\r\n\t ]+/);r=t&&t[0]}tt===`application/xhtml+xml`&&Je===qe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?S.createHTML(e):e;if(Je===qe)try{t=new p().parseFromString(i,tt)}catch{}if(!t||!t.documentElement){t=ee.createDocument(Je,`template`,null);try{t.documentElement.innerHTML=Ye?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Je===qe?ne.call(t,De?`html`:`body`)[0]:De?t.documentElement:a},mt=function(e){return T.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},ht=function(e){e.normalize();let t=T.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;IT([ae,oe,se],t=>{e=GT(e,t,` `)}),n.data=e,n=t.nextNode()}},gt=function(e){return e instanceof f&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},D=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function _t(e,n,r){IT(e,e=>{e.call(t,n,r,it)})}let vt=function(e){let n=null;if(_t(ie.beforeSanitizeElements,e,null),gt(e))return dt(e),!0;let r=rt(e.nodeName);if(_t(ie.uponSanitizeElement,e,{tagName:r,allowedTags:pe}),Ee&&e.hasChildNodes()&&!D(e.firstElementChild)&&eE(/<[/\w!]/g,e.innerHTML)&&eE(/<[/\w!]/g,e.textContent)||Ee&&e.namespaceURI===qe&&r===`style`&&D(e.firstElementChild)||e.nodeType===CE.progressingInstruction||Ee&&e.nodeType===CE.comment&&eE(/<[/\w]/g,e.data))return dt(e),!0;if(ve[r]||!(be.tagCheck instanceof Function&&be.tagCheck(r))&&!pe[r]){if(!ve[r]&&xt(r)&&(_e.tagNameCheck instanceof RegExp&&eE(_e.tagNameCheck,r)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(r)))return!1;if(Ie&&!ze[r]){let t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=g(n[i],!0);t.insertBefore(r,v(e))}}}return dt(e),!0}return e instanceof c&&!ut(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&eE(/<\/no(script|embed|frames)/i,e.innerHTML)?(dt(e),!0):(Te&&e.nodeType===CE.text&&(n=e.textContent,IT([ae,oe,se],e=>{n=GT(n,e,` `)}),e.textContent!==n&&(zT(t.removed,{element:e.cloneNode()}),e.textContent=n)),_t(ie.afterSanitizeElements,e,null),!1)},yt=function(e,t,r){if(ye[t]||Ne&&(t===`id`||t===`name`)&&(r in n||r in at))return!1;let i=he[t]||be.attributeCheck instanceof Function&&be.attributeCheck(t,e);if(!(Se&&!ye[t]&&eE(ce,t))&&!(xe&&eE(le,t))){if(!i||ye[t]){if(!(xt(e)&&(_e.tagNameCheck instanceof RegExp&&eE(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&eE(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t,e))||t===`is`&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&eE(_e.tagNameCheck,r)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(r))))return!1}else if(!Ue[t]&&!eE(E,GT(r,de,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&KT(r,`data:`)===0&&Ve[e])&&!(Ce&&!eE(ue,GT(r,de,``)))&&r)return!1}return!0},bt=xT({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),xt=function(e){return!bt[HT(e)]&&eE(fe,e)},St=function(e){_t(ie.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||gt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=rt(o),u=c,d=o===`value`?u:qT(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,_t(ie.uponSanitizeAttribute,e,r),d=r.attrValue,Pe&&(l===`id`||l===`name`)&&KT(d,Fe)!==0&&(ft(o,e),d=Fe+d),Ee&&eE(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(o,e);continue}if(l===`attributename`&&WT(d,`href`)){ft(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ft(o,e);continue}if(!we&&eE(/\/>/i,d)){ft(o,e);continue}Te&&IT([ae,oe,se],e=>{d=GT(d,e,` `)});let f=rt(e.nodeName);if(!yt(f,l,d)){ft(o,e);continue}if(S&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!s)switch(m.getAttributeType(f,l)){case`TrustedHTML`:d=S.createHTML(d);break;case`TrustedScriptURL`:d=S.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),gt(e)?dt(e):RT(t.removed)}catch{ft(o,e)}}_t(ie.afterSanitizeAttributes,e,null)},Ct=function(e){let t=null,n=mt(e);for(_t(ie.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)_t(ie.uponSanitizeShadowNode,t,null),vt(t),St(t),t.content instanceof a&&Ct(t.content);_t(ie.afterSanitizeShadowDOM,e,null)},wt=function(e){if(e.nodeType===CE.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;wt(t),Ct(t)}let t=e.childNodes;if(!t)return;let n=[];IT(t,e=>{zT(n,e)});for(let e of n)wt(e)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,s=null,c=null;if(Ye=!e,Ye&&(e=`<!-->`),typeof e!=`string`&&!D(e)&&(e=zre(e),typeof e!=`string`))throw tE(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(Oe||st(n),t.removed=[],typeof e==`string`&&(Le=!1),Le){let t=e.nodeName;if(typeof t==`string`){let e=rt(t);if(!pe[e]||ve[e])throw tE(`root node is forbidden and cannot be sanitized in-place`)}wt(e)}else if(D(e))i=pt(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===CE.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o),wt(o);else{if(!Ae&&!Te&&!De&&e.indexOf(`<`)===-1)return S&&Me?S.createHTML(e):e;if(i=pt(e),!i)return Ae?null:Me?C:``}i&&ke&&dt(i.firstChild);let l=mt(Le?e:i);for(;s=l.nextNode();)vt(s),St(s),s.content instanceof a&&Ct(s.content);if(Le)return Te&&ht(e),e;if(Ae){if(Te&&ht(i),je)for(c=te.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(he.shadowroot||he.shadowrootmode)&&(c=re.call(r,c,!0)),c}let u=De?i.outerHTML:i.innerHTML;return De&&pe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&eE(xE,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
438
- `+u),Te&&IT([ae,oe,se],e=>{u=GT(u,e,` `)}),S&&Me?S.createHTML(u):u},t.setConfig=function(){st(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Oe=!0},t.clearConfig=function(){it=null,Oe=!1},t.isValidAttribute=function(e,t,n){return it||st({}),yt(rt(e),rt(t),n)},t.addHook=function(e,t){typeof t==`function`&&zT(ie[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=LT(ie[e],t);return n===-1?void 0:BT(ie[e],n,1)[0]}return RT(ie[e])},t.removeHooks=function(e){ie[e]=[]},t.removeAllHooks=function(){ie=EE()},t}var TT,ET,DT,OT,kT,AT,jT,MT,NT,PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,Vre=s((()=>{TT=Object.entries,ET=Object.setPrototypeOf,DT=Object.isFrozen,OT=Object.getPrototypeOf,kT=Object.getOwnPropertyDescriptor,AT=Object.freeze,jT=Object.seal,MT=Object.create,NT=typeof Reflect<`u`&&Reflect,PT=NT.apply,FT=NT.construct,AT||=function(e){return e},jT||=function(e){return e},PT||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},FT||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},IT=bT(Array.prototype.forEach),LT=bT(Array.prototype.lastIndexOf),RT=bT(Array.prototype.pop),zT=bT(Array.prototype.push),BT=bT(Array.prototype.splice),VT=Array.isArray,HT=bT(String.prototype.toLowerCase),UT=bT(String.prototype.toString),WT=bT(String.prototype.match),GT=bT(String.prototype.replace),KT=bT(String.prototype.indexOf),qT=bT(String.prototype.trim),JT=bT(Number.prototype.toString),YT=bT(Boolean.prototype.toString),XT=typeof BigInt>`u`?null:bT(BigInt.prototype.toString),ZT=typeof Symbol>`u`?null:bT(Symbol.prototype.toString),QT=bT(Object.prototype.hasOwnProperty),$T=bT(Object.prototype.toString),eE=bT(RegExp.prototype.test),tE=Lre(TypeError),nE=AT(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),rE=AT(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),iE=AT([`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`]),aE=AT([`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`]),oE=AT(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),sE=AT([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),cE=AT([`#text`]),lE=AT(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),uE=AT(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),dE=AT(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),fE=AT([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),pE=jT(/{{[\w\W]*|^[\w\W]*}}/g),mE=jT(/<%[\w\W]*|^[\w\W]*%>/g),hE=jT(/\${[\w\W]*/g),gE=jT(/^data-[\-\w.\u00B7-\uFFFF]+$/),_E=jT(/^aria-[\-\w]+$/),vE=jT(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yE=jT(/^(?:\w+script|data):/i),bE=jT(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xE=jT(/^html$/i),SE=jT(/^[a-z][.\w]*(-[.\w]+)+$/i),CE={element:1,text:3,progressingInstruction:7,comment:8,document:9},wE=function(){return typeof window>`u`?null:window},TE=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},EE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},DE=wT()})),OE,kE=s((()=>{Vre(),OE=DE.sanitize.bind(DE),DE.isSupported,DE.addHook.bind(DE),DE.removeHook.bind(DE),DE.removeHooks.bind(DE),DE.removeAllHooks.bind(DE),DE.setConfig.bind(DE),DE.clearConfig.bind(DE),DE.isValidAttribute.bind(DE),DE.version,DE.removed}));function AE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function jE(e){VE=e}function ME(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function NE(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(WE.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function PE(e,t){if(t){if(WE.escapeTest.test(e))return e.replace(WE.escapeReplace,ZD)}else if(WE.escapeTestNoEncode.test(e))return e.replace(WE.escapeReplaceNoEncode,ZD);return e}function FE(e){try{e=encodeURI(e).replace(WE.percentDecode,`%`)}catch{return null}return e}function IE(e,t){let n=e.replace(WE.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(WE.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(WE.slashPipe,`|`);return n}function LE(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function RE(e){let t=e.split(`
437
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fre(e,t){return Mre(e)||Nre(e,t)||Ire(e,t)||Pre()}function Ire(e,t){if(e){if(typeof e==`string`)return yT(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yT(e,t):void 0}}function bT(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return PT(e,t,r)}}function Lre(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return FT(e,n)}}function xT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:HT;if(ET&&ET(e,null),!VT(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(DT(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Rre(e){for(let t=0;t<e.length;t++)QT(e,t)||(e[t]=null);return e}function ST(e){let t=MT(null);for(let r of TT(e)){var n=Fre(r,2);let i=n[0],a=n[1];QT(e,i)&&(VT(a)?t[i]=Rre(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=ST(a):t[i]=a)}return t}function zre(e){switch(typeof e){case`string`:return e;case`number`:return JT(e);case`boolean`:return YT(e);case`bigint`:return XT?XT(e):`0`;case`symbol`:return ZT?ZT(e):`Symbol()`;case`undefined`:return $T(e);case`function`:case`object`:{if(e===null)return $T(e);let t=e,n=CT(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:$T(e)}return $T(e)}default:return $T(e)}}function CT(e,t){for(;e!==null;){let n=kT(e,t);if(n){if(n.get)return bT(n.get);if(typeof n.value==`function`)return bT(n.value)}e=OT(e)}function n(){return null}return n}function Bre(e){try{return eE(e,``),!0}catch{return!1}}function wT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wE(),t=e=>wT(e);if(t.version=`3.4.7`,t.removed=[],!e||!e.document||e.document.nodeType!==CE.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=CT(d,`cloneNode`),p=CT(d,`remove`),m=CT(d,`nextSibling`),h=CT(d,`childNodes`),g=CT(d,`parentNode`),_=CT(d,`shadowRoot`),v=CT(d,`attributes`),y=o&&o.prototype?CT(o.prototype,`nodeType`):null,b=o&&o.prototype?CT(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=n,w=C.implementation,ee=C.createNodeIterator,T=C.createDocumentFragment,te=C.getElementsByTagName,ne=r.importNode,re=EE();t.isSupported=typeof TT==`function`&&typeof g==`function`&&w&&w.createHTMLDocument!==void 0;let ie=pE,ae=mE,oe=hE,se=gE,ce=_E,le=yE,ue=bE,de=SE,fe=vE,E=null,pe=xT({},[...nE,...rE,...iE,...oE,...cE]),me=null,he=xT({},[...lE,...uE,...dE,...fE]),ge=Object.seal(MT(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}})),_e=null,ve=null,ye=Object.seal(MT(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),be=!0,xe=!0,Se=!1,Ce=!0,we=!1,Te=!0,Ee=!1,De=!1,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!0,Ne=!1,Pe=`user-content-`,Fe=!0,Ie=!1,Le={},Re=null,ze=xT({},[`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`]),Be=null,Ve=xT({},[`audio`,`video`,`img`,`source`,`image`,`track`]),He=null,Ue=xT({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),We=`http://www.w3.org/1998/Math/MathML`,Ge=`http://www.w3.org/2000/svg`,Ke=`http://www.w3.org/1999/xhtml`,qe=Ke,Je=!1,Ye=null,Xe=xT({},[We,Ge,Ke],UT),Ze=xT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Qe=xT({},[`annotation-xml`]),$e=xT({},[`title`,`style`,`font`,`a`,`script`]),et=null,tt=[`application/xhtml+xml`,`text/html`],nt=null,rt=null,it=n.createElement(`form`),at=function(e){return e instanceof RegExp||e instanceof Function},ot=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(rt&&rt===e)return;(!e||typeof e!=`object`)&&(e={}),e=ST(e),et=tt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,nt=et===`application/xhtml+xml`?UT:HT,E=QT(e,`ALLOWED_TAGS`)&&VT(e.ALLOWED_TAGS)?xT({},e.ALLOWED_TAGS,nt):pe,me=QT(e,`ALLOWED_ATTR`)&&VT(e.ALLOWED_ATTR)?xT({},e.ALLOWED_ATTR,nt):he,Ye=QT(e,`ALLOWED_NAMESPACES`)&&VT(e.ALLOWED_NAMESPACES)?xT({},e.ALLOWED_NAMESPACES,UT):Xe,He=QT(e,`ADD_URI_SAFE_ATTR`)&&VT(e.ADD_URI_SAFE_ATTR)?xT(ST(Ue),e.ADD_URI_SAFE_ATTR,nt):Ue,Be=QT(e,`ADD_DATA_URI_TAGS`)&&VT(e.ADD_DATA_URI_TAGS)?xT(ST(Ve),e.ADD_DATA_URI_TAGS,nt):Ve,Re=QT(e,`FORBID_CONTENTS`)&&VT(e.FORBID_CONTENTS)?xT({},e.FORBID_CONTENTS,nt):ze,_e=QT(e,`FORBID_TAGS`)&&VT(e.FORBID_TAGS)?xT({},e.FORBID_TAGS,nt):ST({}),ve=QT(e,`FORBID_ATTR`)&&VT(e.FORBID_ATTR)?xT({},e.FORBID_ATTR,nt):ST({}),Le=QT(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?ST(e.USE_PROFILES):e.USE_PROFILES:!1,be=e.ALLOW_ARIA_ATTR!==!1,xe=e.ALLOW_DATA_ATTR!==!1,Se=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,we=e.SAFE_FOR_TEMPLATES||!1,Te=e.SAFE_FOR_XML!==!1,Ee=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=e.SANITIZE_DOM!==!1,Ne=e.SANITIZE_NAMED_PROPS||!1,Fe=e.KEEP_CONTENT!==!1,Ie=e.IN_PLACE||!1,fe=Bre(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:vE,qe=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ke,Ze=QT(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?ST(e.MATHML_TEXT_INTEGRATION_POINTS):xT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Qe=QT(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?ST(e.HTML_INTEGRATION_POINTS):xT({},[`annotation-xml`]);let t=QT(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?ST(e.CUSTOM_ELEMENT_HANDLING):MT(null);if(ge=MT(null),QT(t,`tagNameCheck`)&&at(t.tagNameCheck)&&(ge.tagNameCheck=t.tagNameCheck),QT(t,`attributeNameCheck`)&&at(t.attributeNameCheck)&&(ge.attributeNameCheck=t.attributeNameCheck),QT(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ge.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),we&&(xe=!1),Ae&&(ke=!0),Le&&(E=xT({},cE),me=MT(null),Le.html===!0&&(xT(E,nE),xT(me,lE)),Le.svg===!0&&(xT(E,rE),xT(me,uE),xT(me,fE)),Le.svgFilters===!0&&(xT(E,iE),xT(me,uE),xT(me,fE)),Le.mathMl===!0&&(xT(E,oE),xT(me,dE),xT(me,fE))),ye.tagCheck=null,ye.attributeCheck=null,QT(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ye.tagCheck=e.ADD_TAGS:VT(e.ADD_TAGS)&&(E===pe&&(E=ST(E)),xT(E,e.ADD_TAGS,nt))),QT(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ye.attributeCheck=e.ADD_ATTR:VT(e.ADD_ATTR)&&(me===he&&(me=ST(me)),xT(me,e.ADD_ATTR,nt))),QT(e,`ADD_URI_SAFE_ATTR`)&&VT(e.ADD_URI_SAFE_ATTR)&&xT(He,e.ADD_URI_SAFE_ATTR,nt),QT(e,`FORBID_CONTENTS`)&&VT(e.FORBID_CONTENTS)&&(Re===ze&&(Re=ST(Re)),xT(Re,e.FORBID_CONTENTS,nt)),QT(e,`ADD_FORBID_CONTENTS`)&&VT(e.ADD_FORBID_CONTENTS)&&(Re===ze&&(Re=ST(Re)),xT(Re,e.ADD_FORBID_CONTENTS,nt)),Fe&&(E[`#text`]=!0),Ee&&xT(E,[`html`,`head`,`body`]),E.table&&(xT(E,[`tbody`]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw tE(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw tE(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=TE(u,i)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));(re.uponSanitizeElement.length>0||re.uponSanitizeAttribute.length>0)&&E===pe&&(E=ST(E)),re.uponSanitizeAttribute.length>0&&me===he&&(me=ST(me)),AT&&AT(e),rt=e},st=xT({},[...rE,...iE,...aE]),ct=xT({},[...oE,...sE]),lt=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:qe,tagName:`template`});let n=HT(e.tagName),r=HT(t.tagName);return Ye[e.namespaceURI]?e.namespaceURI===Ge?t.namespaceURI===Ke?n===`svg`:t.namespaceURI===We?n===`svg`&&(r===`annotation-xml`||Ze[r]):!!st[n]:e.namespaceURI===We?t.namespaceURI===Ke?n===`math`:t.namespaceURI===Ge?n===`math`&&Qe[r]:!!ct[n]:e.namespaceURI===Ke?t.namespaceURI===Ge&&!Qe[r]||t.namespaceURI===We&&!Ze[r]?!1:!ct[n]&&($e[n]||!st[n]):!!(et===`application/xhtml+xml`&&Ye[e.namespaceURI]):!1},ut=function(e){zT(t.removed,{element:e});try{g(e).removeChild(e)}catch{p(e)}},dt=function(e,n){try{zT(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{zT(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ke||Ae)try{ut(n)}catch{}else try{n.setAttribute(e,``)}catch{}},ft=function(e){let t=null,r=null;if(Oe)e=`<remove></remove>`+e;else{let t=WT(e,/^[\r\n\t ]+/);r=t&&t[0]}et===`application/xhtml+xml`&&qe===Ke&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?x.createHTML(e):e;if(qe===Ke)try{t=new l().parseFromString(i,et)}catch{}if(!t||!t.documentElement){t=w.createDocument(qe,`template`,null);try{t.documentElement.innerHTML=Je?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),qe===Ke?te.call(t,Ee?`html`:`body`)[0]:Ee?t.documentElement:a},pt=function(e){return ee.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},mt=function(e){e.normalize();let t=ee.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;IT([ie,ae,oe],t=>{e=GT(e,t,` `)}),n.data=e,n=t.nextNode()}},ht=function(e){let t=b?b(e):null;return typeof t!=`string`||nt(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},gt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===CE.documentFragment}catch{return!1}},D=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function _t(e,n,r){IT(e,e=>{e.call(t,n,r,rt)})}let vt=function(e){let n=null;if(_t(re.beforeSanitizeElements,e,null),ht(e))return ut(e),!0;let r=nt(e.nodeName);if(_t(re.uponSanitizeElement,e,{tagName:r,allowedTags:E}),Te&&e.hasChildNodes()&&!D(e.firstElementChild)&&eE(/<[/\w!]/g,e.innerHTML)&&eE(/<[/\w!]/g,e.textContent)||Te&&e.namespaceURI===Ke&&r===`style`&&D(e.firstElementChild)||e.nodeType===CE.progressingInstruction||Te&&e.nodeType===CE.comment&&eE(/<[/\w]/g,e.data))return ut(e),!0;if(_e[r]||!(ye.tagCheck instanceof Function&&ye.tagCheck(r))&&!E[r]){if(!_e[r]&&xt(r)&&(ge.tagNameCheck instanceof RegExp&&eE(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r)))return!1;if(Fe&&!Re[r]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=f(n[i],!0);t.insertBefore(r,m(e))}}}return ut(e),!0}return(y?y(e):e.nodeType)===CE.element&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&eE(/<\/no(script|embed|frames)/i,e.innerHTML)?(ut(e),!0):(we&&e.nodeType===CE.text&&(n=e.textContent,IT([ie,ae,oe],e=>{n=GT(n,e,` `)}),e.textContent!==n&&(zT(t.removed,{element:e.cloneNode()}),e.textContent=n)),_t(re.afterSanitizeElements,e,null),!1)},yt=function(e,t,r){if(ve[t]||Me&&(t===`id`||t===`name`)&&(r in n||r in it))return!1;let i=me[t]||ye.attributeCheck instanceof Function&&ye.attributeCheck(t,e);if(!(xe&&!ve[t]&&eE(se,t))&&!(be&&eE(ce,t))){if(!i||ve[t]){if(!(xt(e)&&(ge.tagNameCheck instanceof RegExp&&eE(ge.tagNameCheck,e)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(e))&&(ge.attributeNameCheck instanceof RegExp&&eE(ge.attributeNameCheck,t)||ge.attributeNameCheck instanceof Function&&ge.attributeNameCheck(t,e))||t===`is`&&ge.allowCustomizedBuiltInElements&&(ge.tagNameCheck instanceof RegExp&&eE(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r))))return!1}else if(!He[t]&&!eE(fe,GT(r,ue,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&KT(r,`data:`)===0&&Be[e])&&!(Se&&!eE(le,GT(r,ue,``)))&&r)return!1}return!0},bt=xT({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),xt=function(e){return!bt[HT(e)]&&eE(de,e)},St=function(e){_t(re.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||ht(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:me,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=nt(o),d=c,f=o===`value`?d:qT(d);if(r.attrName=l,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,_t(re.uponSanitizeAttribute,e,r),f=r.attrValue,Ne&&(l===`id`||l===`name`)&&KT(f,Pe)!==0&&(dt(o,e),f=Pe+f),Te&&eE(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){dt(o,e);continue}if(l===`attributename`&&WT(f,`href`)){dt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){dt(o,e);continue}if(!Ce&&eE(/\/>/i,f)){dt(o,e);continue}we&&IT([ie,ae,oe],e=>{f=GT(f,e,` `)});let p=nt(e.nodeName);if(!yt(p,l,f)){dt(o,e);continue}if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!s)switch(u.getAttributeType(p,l)){case`TrustedHTML`:f=x.createHTML(f);break;case`TrustedScriptURL`:f=x.createScriptURL(f);break}if(f!==d)try{s?e.setAttributeNS(s,o,f):e.setAttribute(o,f),ht(e)?ut(e):RT(t.removed)}catch{dt(o,e)}}_t(re.afterSanitizeAttributes,e,null)},Ct=function(e){let t=null,n=pt(e);for(_t(re.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(_t(re.uponSanitizeShadowNode,t,null),vt(t),St(t),gt(t.content)&&Ct(t.content),(y?y(t):t.nodeType)===CE.element){let e=_?_(t):t.shadowRoot;gt(e)&&(wt(e),Ct(e))}_t(re.afterSanitizeShadowDOM,e,null)},wt=function(e){let t=y?y(e):e.nodeType;if(t===CE.element){let t=_?_(e):e.shadowRoot;gt(t)&&(wt(t),Ct(t))}let n=h?h(e):e.childNodes;if(!n)return;let r=[];IT(n,e=>{zT(r,e)});for(let e of r)wt(e);if(t===CE.element){let t=b?b(e):null;if(typeof t==`string`&&nt(t)===`template`){let t=e.content;gt(t)&&wt(t)}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Je=!e,Je&&(e=`<!-->`),typeof e!=`string`&&!D(e)&&(e=zre(e),typeof e!=`string`))throw tE(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(De||ot(n),t.removed=[],typeof e==`string`&&(Ie=!1),Ie){let t=b?b(e):e.nodeName;if(typeof t==`string`){let e=nt(t);if(!E[e]||_e[e])throw tE(`root node is forbidden and cannot be sanitized in-place`)}if(ht(e))throw tE(`root node is clobbered and cannot be sanitized in-place`);wt(e)}else if(D(e))i=ft(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===CE.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),wt(a);else{if(!ke&&!we&&!Ee&&e.indexOf(`<`)===-1)return x&&je?x.createHTML(e):e;if(i=ft(e),!i)return ke?null:je?S:``}i&&Oe&&ut(i.firstChild);let c=pt(Ie?e:i);for(;o=c.nextNode();)vt(o),St(o),gt(o.content)&&Ct(o.content);if(Ie)return we&&mt(e),e;if(ke){if(we&&mt(i),Ae)for(s=T.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(me.shadowroot||me.shadowrootmode)&&(s=ne.call(r,s,!0)),s}let l=Ee?i.outerHTML:i.innerHTML;return Ee&&E[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&eE(xE,i.ownerDocument.doctype.name)&&(l=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
438
+ `+l),we&&IT([ie,ae,oe],e=>{l=GT(l,e,` `)}),x&&je?x.createHTML(l):l},t.setConfig=function(){ot(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),De=!0},t.clearConfig=function(){rt=null,De=!1},t.isValidAttribute=function(e,t,n){return rt||ot({}),yt(nt(e),nt(t),n)},t.addHook=function(e,t){typeof t==`function`&&zT(re[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=LT(re[e],t);return n===-1?void 0:BT(re[e],n,1)[0]}return RT(re[e])},t.removeHooks=function(e){re[e]=[]},t.removeAllHooks=function(){re=EE()},t}var TT,ET,DT,OT,kT,AT,jT,MT,NT,PT,FT,IT,LT,RT,zT,BT,VT,HT,UT,WT,GT,KT,qT,JT,YT,XT,ZT,QT,$T,eE,tE,nE,rE,iE,aE,oE,sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,bE,xE,SE,CE,wE,TE,EE,DE,Vre=s((()=>{TT=Object.entries,ET=Object.setPrototypeOf,DT=Object.isFrozen,OT=Object.getPrototypeOf,kT=Object.getOwnPropertyDescriptor,AT=Object.freeze,jT=Object.seal,MT=Object.create,NT=typeof Reflect<`u`&&Reflect,PT=NT.apply,FT=NT.construct,AT||=function(e){return e},jT||=function(e){return e},PT||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},FT||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)},IT=bT(Array.prototype.forEach),LT=bT(Array.prototype.lastIndexOf),RT=bT(Array.prototype.pop),zT=bT(Array.prototype.push),BT=bT(Array.prototype.splice),VT=Array.isArray,HT=bT(String.prototype.toLowerCase),UT=bT(String.prototype.toString),WT=bT(String.prototype.match),GT=bT(String.prototype.replace),KT=bT(String.prototype.indexOf),qT=bT(String.prototype.trim),JT=bT(Number.prototype.toString),YT=bT(Boolean.prototype.toString),XT=typeof BigInt>`u`?null:bT(BigInt.prototype.toString),ZT=typeof Symbol>`u`?null:bT(Symbol.prototype.toString),QT=bT(Object.prototype.hasOwnProperty),$T=bT(Object.prototype.toString),eE=bT(RegExp.prototype.test),tE=Lre(TypeError),nE=AT(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),rE=AT(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),iE=AT([`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`]),aE=AT([`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`]),oE=AT(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),sE=AT([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),cE=AT([`#text`]),lE=AT(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),uE=AT(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),dE=AT(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),fE=AT([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),pE=jT(/{{[\w\W]*|^[\w\W]*}}/g),mE=jT(/<%[\w\W]*|^[\w\W]*%>/g),hE=jT(/\${[\w\W]*/g),gE=jT(/^data-[\-\w.\u00B7-\uFFFF]+$/),_E=jT(/^aria-[\-\w]+$/),vE=jT(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yE=jT(/^(?:\w+script|data):/i),bE=jT(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xE=jT(/^html$/i),SE=jT(/^[a-z][.\w]*(-[.\w]+)+$/i),CE={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},wE=function(){return typeof window>`u`?null:window},TE=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},EE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},DE=wT()})),OE,kE=s((()=>{Vre(),OE=DE.sanitize.bind(DE),DE.isSupported,DE.addHook.bind(DE),DE.removeHook.bind(DE),DE.removeHooks.bind(DE),DE.removeAllHooks.bind(DE),DE.setConfig.bind(DE),DE.clearConfig.bind(DE),DE.isValidAttribute.bind(DE),DE.version,DE.removed}));function AE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function jE(e){VE=e}function ME(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function NE(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(WE.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function PE(e,t){if(t){if(WE.escapeTest.test(e))return e.replace(WE.escapeReplace,ZD)}else if(WE.escapeTestNoEncode.test(e))return e.replace(WE.escapeReplaceNoEncode,ZD);return e}function FE(e){try{e=encodeURI(e).replace(WE.percentDecode,`%`)}catch{return null}return e}function IE(e,t){let n=e.replace(WE.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(WE.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``);for(;r<n.length;r++)n[r]=n[r].trim().replace(WE.slashPipe,`|`);return n}function LE(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function RE(e){let t=e.split(`
439
439
  `),n=t.length-1;for(;n>=0&&WE.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
440
440
  `)}function Hre(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Ure(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function zE(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Wre(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
441
441
  `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
@@ -641,7 +641,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
641
641
  }
642
642
  }
643
643
  }
644
- `,fP=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=ZN,r=n?20:100,i=[...e],a=[];for(;;){let e=await Zj(t,{paths:i.splice(0,r)});if(a.push(...e.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},pP=async({fetchingFiles:e,blobs:t,sizes:n={},commits:r={}})=>{let i=e.map(({path:e,sha:i})=>{let a=r[e],o={sha:i,size:Number(n[e]?.size??0),text:t[e]?.rawTextBlob??void 0,meta:{}};if(a){let{author:e,authorName:t,authorEmail:n,committedDate:r}=a,{id:i,username:s}=e??{},c=i?.match(/\d+/);o.meta={commitAuthor:{name:t,email:n,id:c?Number(c[0]):void 0,login:s},committedDate:new Date(r)}}return[e,o]});return Object.fromEntries(i)},mP=async e=>{Py.set(0);let t=window.setInterval(()=>{Py.update((e=0)=>e+1)},e.length/10),n=await fP(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),dP);return window.clearInterval(t),Py.set(void 0),pP({fetchingFiles:e,blobs:n})},hP=async()=>{await $N(),await HM({repository:ZN,fetchDefaultBranchName:tP,fetchLastCommit:iP,fetchFileList:uP,fetchFileContents:mP})},gP=async e=>{let{owner:t,repo:n,branch:r=``}=ZN,{path:i}=e;return Xj(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),_P,vP,yP,xie=s((()=>{Qx(),_P=`https://status.gitlab.com/`,vP=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,yP=async()=>{try{let{result:{status_overall:{status_code:e}}}=await Zx(vP);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),bP,xP,Sie=s((()=>{Sp(),rp(),yie(),cP(),KN(),bie(),nP(),xie(),Qj(),yM(),$P(),eN(),bP=()=>{let{backend:e}=A(JP)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=WN,auth_endpoint:i=GN,app_id:a=``,api_root:o=UN,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},d=`${l}/${u}`,f=`${vp(r)}/${vp(i)}`,p=vM(o,d);return Object.assign(ZN,{service:VN,label:HN,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:JN(p),databaseName:`${VN}:${d}`,isSelfHosted:o!==UN},QN(p,n)),Object.assign(qj,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:vp(o),graphqlBaseURL:vp(s),includeCredentials:c}),Object.assign(Jj,{fullPath:d,branch:n}),A($M).devModeEnabled&&console.info(`repositoryInfo`,ZN),ZN},xP={isGit:!0,name:VN,label:HN,repository:ZN,statusDashboardURL:_P,checkStatus:yP,init:bP,signIn:YN,signOut:XN,fetchFiles:hP,fetchBlob:gP,commitChanges:aP,fetchFileCommits:sP}})),SP,CP,wP,TP,EP,DP,OP,kP=s((()=>{rp(),iie(),aie(),uie(),_ie(),Sie(),SP={github:BN,gitlab:xP,gitea:nN,local:Ej,"test-repo":Ij},CP={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},wP=Object.keys(SP).filter(e=>e!==`local`),TP=Object.fromEntries(Object.entries(SP).filter(([,e])=>e.isGit)),EP=un(),DP=dn([EP],([e],t,n)=>{n(t=>{let n=e?SP[e]:void 0;return n&&n!==t&&n.init(),n})}),OP=un(!0)})),AP,jP,MP,NP,PP,FP=s((()=>{Z(),ub(),AP=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,typedKeyPath:c}=i,{errors:l,warnings:u}=a,d=[];o&&d.push(X(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&d.push(X(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&d.push(X(`config.error_locator.field`,{values:{field:c}}));let f=e===`error`?l:u,p=Oh.current,m=d.length?`${cb(p).format(d)}: `:``,h=X(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${X(`config.${r}`)}`:``}`)},jP=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&AP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},MP=/^[^\s.*:<>]+$/,NP=e=>MP.test(e),PP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return AP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return NP(e)?n[e]===1?(AP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(AP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),Cie,wie,Tie=s((()=>{Z(),p(),kP(),$y(),FP(),Cie=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],wie=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!d(n)){r.add(X(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(X(`config.error.missing_backend_name`));return}if(!wP.includes(a)){let e=CP[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=X(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${i} ${X(`config.error.unsupported_backend_suggestion`)}`);return}if(a in TP){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(X(`config.error.no_auth_methods`));let d=!c||c.includes(`token`);o===void 0&&r.add(X(`config.error.missing_repository`)),(typeof o!=`string`||!/(.+)\/([^/]+)$/.test(o))&&r.add(X(`config.error.invalid_repository`)),l===`implicit`&&r.add(X(`config.error.oauth_implicit_flow`).replace(`BACKEND_NAME`,a)),a===`github`&&l===`pkce`&&r.add(X(`config.error.github_pkce_unsupported`)),a===`gitlab`&&l===`pkce`&&!u&&r.add(X(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&Qy(`automatic_deployments`),jP({UNSUPPORTED_OPTIONS:Cie,config:n,context:{cmsConfig:e},collectors:t})}}})),Eie,IP,LP,Die,RP,Oie=s((()=>{Eie=[`code`,`markdown`,`richtext`,`text`],IP=[`md`,`markdown`,`mdx`],LP=[`astro`,`njk`],Die=[...IP,...LP],RP=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&Eie.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(IP.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return LP.includes(i)?!1:i!==e}if(a===`frontmatter`)return!Die.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1}})),kie,Aie,jie=s((()=>{FP(),kie=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Aie=e=>{jP({...e,UNSUPPORTED_OPTIONS:kie})}})),Mie,zP,Nie=s((()=>{FP(),Mie=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],zP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),jP({...e,UNSUPPORTED_OPTIONS:Mie})}})),Pie,Fie,Iie=s((()=>{UP(),FP(),Pie=(e,t,n)=>e===`object`?!0:(AP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Fie=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){AP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&VP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&HP(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};PP({...c,name:e,index:a,context:o})&&Pie(t,o,r)&&i&&HP(i,o,r)})}})),Lie,Rie,zie=s((()=>{FP(),Lie=[{prop:`valueType`,newProp:`value_type`}],Rie=e=>{jP({...e,UNSUPPORTED_OPTIONS:Lie})}})),Bie,Vie=s((()=>{UP(),FP(),Bie=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){AP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){AP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&HP(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};PP({...s,name:e,index:i,context:a})&&t&&HP(t,a,r)})}})),Hie,Uie,Wie=s((()=>{FP(),Hie=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Uie=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||AP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&AP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else AP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});jP({...e,UNSUPPORTED_OPTIONS:Hie}),r.relationFields.add({fieldConfig:i,context:n})}})),Gie,BP,Kie=s((()=>{FP(),Gie=[{prop:`editorComponents`,newProp:`editor_components`}],BP=e=>{jP({...e,UNSUPPORTED_OPTIONS:Gie})}})),qie,VP,HP,UP=s((()=>{jie(),Nie(),Iie(),zie(),Vie(),Wie(),Kie(),FP(),qie={datetime:Aie,file:zP,image:zP,list:Fie,markdown:BP,number:Rie,object:Bie,relation:Uie,richtext:BP},VP=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};qie[i]?.(o),i===`date`&&AP({...o,strKey:`date_field_type`})},HP=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;PP({...r,name:a,index:i})&&VP({config:e,context:t,collectors:n})})}})),Jie,WP,Yie=s((()=>{Np(),Oie(),UP(),FP(),Jie=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o}=r,{extension:s}=Dp(i);RP(s,a,o)&&AP({strKey:`file_format_mismatch`,context:e,values:{extension:s,format:a},collectors:t}),o?.length||AP({strKey:`collection_file_no_fields`,context:e,collectors:t}),HP(o,e,t)},WP=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};PP({...a,name:o,index:i,context:s})&&Jie(s,t)})}})),Xie,Zie,Qie,$ie,eae=s((()=>{Z(),$y(),Yie(),Oie(),UP(),FP(),Xie=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Zie=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;RP(i,a)&&AP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&Qy(`slug_length`),jP({UNSUPPORTED_OPTIONS:Xie,config:r,context:e,collectors:t}),o?.length||AP({strKey:`collection_no_fields`,context:e,collectors:t}),HP(o,e,t),s&&HP(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&AP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Qie=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){AP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){AP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?WP({cmsConfig:e,collection:t},n):a&&Zie({cmsConfig:e,collection:t},n)},$ie=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(X(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};PP({...a,name:i,index:r,context:o})&&Qie(o,t)}),Array.isArray(r)&&WP({cmsConfig:e,collection:{name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r}},t)}})),tae,nae=s((()=>{Z(),pw(),tae=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!fw.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>fw.includes(e))&&o.add(X(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(X(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(X(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(X(`config.error.public_folder_absolute_url`))):o.add(X(`config.error.invalid_public_folder`)))}})),rae,iae,aae=s((()=>{Tie(),eae(),nae(),FP(),rae=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],iae=(e,t)=>{wie(e,t),tae(e,t),$ie(e,t),jP({UNSUPPORTED_OPTIONS:rae,config:e,context:{cmsConfig:e},collectors:t})}})),oae,GP,sae,KP,qP,JP,YP,XP,ZP,QP,cae,$P=s((()=>{Z(),hp(),p(),Sp(),oae=u(ete(),1),rp(),My(),Hp(),dne(),fne(),kne(),aae(),Vy(),eN(),{DEV:GP,VITE_SITE_URL:sae}={DEV:!1},KP=GP?sae||`http://localhost:5174`:void 0,qP={},JP=un(),YP=un(),XP=un([]),ZP=dn([JP,XP],([e,t])=>!!e||!!t.length),QP={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},cae=async e=>{JP.set(void 0),XP.set([]),Object.assign(QP,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(X(`config.error.no_secure_context`));let t;if(e){if(!d(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,oae.default)(await iS({manualInit:!0}),t))}else t=await iS();if(Object.assign(qP,t),iae(t,QP),QP.errors.size)throw QP.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);QP.warnings.size&&QP.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(GP?KP:window.location.origin),n._baseURL=bp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),JP.set(n),YP.set(await mp(Ay(n)))}catch(e){XP.set(QP.errors.size?[...QP.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},JP.subscribe(e=>{if(A($M).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,QP)),!e)return;let t=cx(e),n=tx(e,[...QP.mediaFields]);Fy.set(t),Pp.set(n),A($M).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),eF,tF=s((()=>{rp(),$P(),eF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(JP),r=e===`default`?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n===!1?!1:i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t===!1?!1:i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})),nF,lae,rF=s((()=>{p(),tF(),Ww(),rT(),nF=({fieldConfig:e}={})=>{let t=eF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:d(a)?a:void 0}}},lae=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(Iw.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&Uw.includes(t)?t:`webp`,s=await tT(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0}),c=s.type===`image/${o}`?Rw.test(e.name)?e.name.replace(Rw,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await nT(e)],e.name,{type:e.type}):e}})),iF,aF=s((()=>{rF(),ew(),iF=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=YC(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await lae(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),oF,sF,cF,lF,uF,uae,dF,fF,pF,mF,hF,dae,gF,fae,pae,_F,vF,yF,mae,bF,xF,SF=s((()=>{Np(),Sp(),dc(),rp(),Hp(),aF(),RO(),qb(),nb(),Yy(),JO(),rF(),ew(),oF=un([]),sF={source:void 0,map:new Map},cF=()=>{let e=A(oF);return e!==sF.source&&(sF.source=e,sF.map=new Map(e.map(e=>[e.path,e]))),sF.map},lF=e=>cF().get(e),uF=un([]),uae=dn(uF,e=>new Set(e.map(e=>e.path))),dF=un(),fF=un(),pF=un({folder:void 0,files:[]}),mF=un(),hF=un(),dae=dn([pF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=nF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>iF(e,i)));n(()=>({processing:!1,undersizedFiles:e.filter(({oversized:e})=>!e).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),gF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Rp({collectionName:n.name,fileName:r?.name,typedKeyPath:i}):void 0,c=s?.entryRelative?s.internalSubPath??``:(r??n).media_folder,{path:l,content:u}=a[o in a?o:Object.keys(a)[0]];if(!l||!u)return;let{entryFolder:d}=l.match(/(?<entryFolder>.+?)(?:\/[^/]+)?$/).groups,f=e.replace(/^\.\//,``),p=ZC(XC([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return cF().get(p)},fae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Rp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Rp({collectionName:n,fileName:r}):void 0,n?Rp({collectionName:n}):void 0,A(Fp)].filter(e=>!!e&&!e.hasTemplateTags),a;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=cF().get(XC([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??cF().get(e)}return WO(t).flatMap(n=>{let r=Ky(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>gF({...a,file:e})):gF({...a})}).filter(Boolean)[0]??cF().get(e)},pae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=cF().get(vp(e));if(a)return a;let{dirname:o=``,basename:s}=Dp(e),c;return[i?Rp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Rp({collectionName:n,fileName:r}),Rp({collectionName:n}),A(Fp),A(Pp).findLast(e=>o.match(`^${(e.publicPath??``).replace(/{{.+?}}/g,`.+?`)}\\b`))].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&/{{.+?}}/.test(i)){let e=r?Wb(r):t?WO(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=LO(i,{type:`media_folder`,collection:e,content:lc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:tb(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=XC([i,s]),l=cF().get(a);return l&&(c=l),!!l}),c},_F=e=>!/^[/@]/.test(e),vF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=GC(e.split(`#`)[0]);return _F(a)?fae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):pae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},yF=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,mae=e=>A(oF).filter(t=>yF(t,e)),bF=e=>A(oF).filter(t=>Dp(t.path).dirname===e),Ip.subscribe(()=>{dF.set(void 0)}),xF=(e,t)=>{if(!t.length||!e.length)return[];let n=new Set(t.map(({name:e})=>e.normalize().toLowerCase()));return e.filter(e=>n.has(e.name.normalize().toLowerCase()))}})),CF,wF,TF=s((()=>{Np(),Sp(),rp(),SF(),Hp(),vT(),qb(),nb(),_A(),CF=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${gp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await _T({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},wF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Wb(t);if(!a)return[];let o=tb(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||_F(a))){let s=uA({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=vF({value:a,entry:e,collectionName:t,fileName:n});if(c&&Bp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Rp({collectionName:t,fileName:n})?.entryRelative){let t=Dp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(oF).forEach(n=>{let r=Dp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),EF,hae,DF,gae,OF,kF=s((()=>{p(),dc(),tp(),rp(),TF(),Gj(),EF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],hae=[`preSave`,`prePublish`],DF=new Set,gae=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>vd({data:uc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:uc(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),OF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=A(Wj),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==u),{content:h,path:g}=p[u],_=wF({entry:n,collectionName:c,fileName:l});for(let t of DF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:gae({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(hae.includes(e)&&Ql(n)){let e=n.toJS();d(e.data)&&d(e.i18n)?(p[u].content=lc(e.data),m.forEach(t=>{d(e.i18n[t]?.data)&&(p[t].content=lc(e.i18n[t].data))})):p[u].content=lc(e)}}}})),AF,jF,MF,NF,PF,FF,IF,LF,_ae,RF=s((()=>{rp(),AF=un(!1),jF=un(!1),MF=un({show:!1,multiple:!1}),NF=un({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),PF=un(null),FF=un(null),IF=un(),LF=new Set,_ae=new Map})),vae=s((()=>{})),Q=s((()=>{vae(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),yae,bae=s((()=>{yae=`{"ok":"OK","cancel":"Cancel","close":"Close","clear":"Clear","insert":"Insert","update":"Update","remove":"Remove","collapse":"Collapse","expand":"Expand","dismiss":"Dismiss","calendar":{"year":"Year","previous_decade":"Previous Decade","next_decade":"Next Decade","month":"Month","previous_month":"Previous Month","next_month":"Next Month","today":"Today"},"split_button":{"x_options":"{$name} Options","more_options":"More Options"},"combobox":{"select_an_option":"Select an option…","filter_options":"Filter Options","no_matching_options":"No matching options found"},"number_input":{"decrease":"Decrease","increase":"Increase"},"password_input":{"show_password":"Show Password","hide_password":"Hide Password"},"secret_input":{"show_secret":"Show Secret","hide_secret":"Hide Secret"},"select_tags":{"selected_options":"Selected options","remove_x":"Remove {$name}"},"text_editor":{"text_editor":"Text Editor","code_editor":"Code Editor","text_style_options":"Text Style Options","show_text_style_options":"Show Text Style Options","paragraph":"Paragraph","heading_1":"Heading 1","heading_2":"Heading 2","heading_3":"Heading 3","heading_4":"Heading 4","heading_5":"Heading 5","heading_6":"Heading 6","bulleted_list":"Bulleted List","numbered_list":"Numbered List","blockquote":"Block Quote","code_block":"Code Block","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","code":"Code","link":"Link","insert_link":"Insert Link","update_link":"Update Link","text":"Text","url":"URL","edit_in_markdown":"Edit in Markdown","converter_error":"There was an error while enabling rich text mode. Please use the plain text editor instead.","language":"Language","plain_text":"Plain Text"}}`})),xae,Sae=s((()=>{xae=`{"ok":"OK","cancel":"キャンセル","close":"閉じる","clear":"クリア","insert":"挿入","update":"更新","remove":"削除","collapse":"折り畳む","expand":"広げる","dismiss":"閉じる","calendar":{"year":"年","previous_decade":"前の 10 年","next_decade":"次の 10 年","month":"月","previous_month":"前月","next_month":"翌月","today":"今日"},"split_button":{"x_options":"{$name} オプション","more_options":"その他のオプション"},"combobox":{"select_an_option":"オプションを選択…","filter_options":"オプションを絞り込み","no_matching_options":"一致するオプションは見つかりませんでした"},"number_input":{"decrease":"減らす","increase":"増やす"},"password_input":{"show_password":"パスワードを表示","hide_password":"パスワードを隠す"},"secret_input":{"show_secret":"シークレットを表示","hide_secret":"シークレットを隠す"},"select_tags":{"selected_options":"選択済みのオプション","remove_x":"{$name} を削除"},"text_editor":{"text_editor":"テキストエディター","code_editor":"コードエディター","text_style_options":"テキストスタイルオプション","show_text_style_options":"テキストスタイルオプションを表示","paragraph":"段落","heading_1":"見出し 1","heading_2":"見出し 2","heading_3":"見出し 3","heading_4":"見出し 4","heading_5":"見出し 5","heading_6":"見出し 6","bulleted_list":"番号なしリスト","numbered_list":"番号付きリスト","blockquote":"ブロック引用","code_block":"コードブロック","bold":"太字","italic":"斜体","strikethrough":"取り消し線","code":"コード","link":"リンク","insert_link":"リンクを挿入","update_link":"リンクを更新","text":"テキスト","url":"URL","edit_in_markdown":"マークダウンで編集","converter_error":"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。","language":"言語","plain_text":"プレーンテキスト"}}`})),Cae,wae=s((()=>{bae(),Sae(),Z(),My(),Cae=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":yae,"../locales/ja.yaml":xae})).forEach(([e,t])=>{wh(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:ky(t)})}),Ah({fallbackLocale:e,initialLocale:t})}}));function zF(e,t){K(e,Eae);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=Tae();ys(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-6t81jx`);var i=F(r,!0);D(r),R(()=>W(i,t.name)),U(e,r)}var Tae,Eae,BF=s((()=>{Q(),Y(),Tae=V(`<span> </span>`),Eae={hash:`svelte-6t81jx`,code:`.icon.small-arrow.svelte-6t81jx {overflow:hidden;width:12px;text-indent:-6px;}`}}));function VF(e,t){K(e,Oae);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=Dae();ys(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-s3wmal`);var i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.icon),U(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);zF(e,{get name(){return z(n)}})}};G(i,e=>{t.icon?e(a):e(o,-1)}),Eo(L(i,2),()=>t.children??E),D(r),U(e,r)}var Dae,Oae,HF=s((()=>{Q(),Y(),BF(),Dae=V(`<div><!> <!></div>`),Oae={hash:`svelte-s3wmal`,code:`.alert.svelte-s3wmal {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-s3wmal {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-s3wmal {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-s3wmal {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-s3wmal {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),kae,UF,Aae,jae,Mae,WF,GF,KF=s((()=>{UF=()=>(kae??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),kae),Aae=[`Ctrl`,`Meta`,`Alt`,`Shift`],jae=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),Mae=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:jae.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),WF=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,UF()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Aae.includes(e)).every(t=>Mae(t,e))})},GF=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,UF()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!WF(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}}));function qF(e,t){K(e,Pae);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=Nae();Eo(F(i),()=>r()??E),D(i),R(()=>us(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var Nae,Pae,JF=s((()=>{Q(),Y(),Nae=V(`<span role="none" class="sui truncated-text svelte-7fdil4"><!></span>`),Pae={hash:`svelte-7fdil4`,code:`.truncated-text.svelte-7fdil4 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),YF,XF,ZF=s((()=>{hp(),YF=(e=`e`,t=7)=>[e,fp(t)].join(`-`),XF=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})}})),Fae,Iae,Lae=s((()=>{Y(),ZF(),Yx(),uh(),Fae=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Cr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=YF(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ba(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ba(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),ba(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),ba(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ba(this.popupElement,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)}),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement)}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement)}async hideImmediately(){this.popupElement.hidden=!0,this.open=!1,await Jx(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Iae=(...e)=>new Fae(...e)}));function Rae(e,t){var n=H();Eo(I(n),()=>t.children??E),U(e,n)}var zae=s((()=>{Q(),Y()}));function Bae(e,t){O(t,!0),K(e,Hae);let n=e=>{var n=Vae(),d=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},f=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};ys(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Ss]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-uy6k82`);var g=F(n);Eo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(_,e=>{(z(h)||l())&&e(v)}),D(n),Us(n,e=>i(e),()=>i()),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`dialog`,15),a=J(t,`role`,3,`dialog`),o=J(t,`showBackdrop`,3,!1),s=J(t,`lightDismiss`,3,!1),c=J(t,`escapeDismiss`,3,!0),l=J(t,`keepContent`,3,!1),u=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=0,_=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),v=async()=>{if(!i()||i()?.open)return;g+=1;let e=g;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await Jx(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return ti(()=>{r()?v():y()}),ic(()=>{let e=za(Rae,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Va(e)}}),k({focus:d,close:f})}var Vae,Hae,QF=s((()=>{Q(),Y(),Yx(),oc(),zae(),Vae=V(`<dialog><!> <!></dialog>`),Hae={hash:`svelte-uy6k82`,code:`dialog.svelte-uy6k82 {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-uy6k82::backdrop {background:transparent;}dialog.backdrop.svelte-uy6k82 {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-uy6k82 {transition-duration:50ms;opacity:1;}dialog.svelte-uy6k82:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-uy6k82 {transition-duration:1ms !important;}dialog.svelte-uy6k82:not(.active) {pointer-events:none !important;}dialog.svelte-uy6k82:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function $F(e,t){O(t,!0),K(e,Wae);let n=e=>{var n=Uae();let o,s;Eo(F(n),()=>t.children??E),D(n),Us(n,e=>a(e),()=>a()),R(()=>{q(n,`hidden`,!r()),o=ss(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-v4lkyt`,o,{touch:z(y)}),s=us(n,``,s,{inset:z(g)?.style.inset,"z-index":z(g)?.style.zIndex,"min-width":z(g)?.style.minWidth,"max-width":z(g)?.style.maxWidth,"max-height":z(g)?.style.height,visibility:z(g)?.style.inset?void 0:`hidden`})}),xa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),xa(`mouseleave`,n,()=>{i(!1),l()&&(_=window.setTimeout(()=>{r(!1)},200))}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`hovered`,15,!1),a=J(t,`content`,15,void 0),o=J(t,`showBackdrop`,3,void 0),s=J(t,`position`,3,`bottom-left`),c=J(t,`positionBaseElement`,3,void 0),l=J(t,`parentDialogElement`,3,void 0),u=J(t,`touchOptimized`,3,!1),d=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Iae(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ti(()=>{z(g)&&r(z(g).open)}),ti(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ti(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ti(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ic(()=>(P(m,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(g)?.destroy?.(),globalThis.clearTimeout(_)}));var b=H(),x=I(b),S=e=>{n(e)},C=e=>{{let i=M(()=>o()??z(y));Bae(e,Xs(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Jx(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(p)},set dialog(e){P(p,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};G(x,e=>{l()?e(S):e(C,-1)}),U(e,b),k()}var Uae,Wae,eI=s((()=>{Q(),Y(),Yx(),oc(),Lae(),QF(),Uae=V(`<div role="none"><!></div>`),Wae={hash:`svelte-v4lkyt`,code:`.content.svelte-v4lkyt {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-v4lkyt {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-v4lkyt .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-v4lkyt {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-v4lkyt .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-v4lkyt {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-v4lkyt {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-v4lkyt {transform:scale(90%);}.content.touch.combobox.svelte-v4lkyt .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-v4lkyt {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-v4lkyt {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function tI(e,t){O(t,!0),K(e,sI);let n=J(t,`element`,15),r=J(t,`class`,3,``),i=J(t,`type`,3,`button`),a=J(t,`role`,3,`button`),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,19,()=>typeof s()),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`pressed`,3,void 0),p=J(t,`keyShortcuts`,3,void 0),m=J(t,`label`,3,``),h=J(t,`lines`,3,1),g=J(t,`variant`,3,void 0),_=J(t,`size`,3,`medium`),v=J(t,`iconic`,3,!1),y=J(t,`pill`,3,!1),b=J(t,`flex`,3,!1),x=J(t,`popupPosition`,3,`bottom-left`),S=J(t,`showPopupBackdrop`,3,!1),C=Ys(t,`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`));var w=oI(),ee=I(w);ys(ee,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Ss]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-1xyq6cz`);var T=F(ee);Eo(T,()=>t.startIcon??E);var te=L(T,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=nI();qF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=rI();Eo(F(n),()=>t.children??E),D(n),U(e,n)};G(r,e=>{m()?e(i):e(a,-1)}),U(e,n)},re=e=>{var n=aI(),r=I(n),i=e=>{var t=iI();qF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(r,e=>{m()&&e(i)}),Eo(L(r,2),()=>t.children??E),U(e,n)};G(te,e=>{g()===`link`?e(ne):e(re,-1)}),Eo(L(te,2),()=>t.endIcon??E),D(ee),Us(ee,e=>n(e),()=>n()),Yo(ee,()=>GF(p()));var ie=L(ee,2),ae=e=>{$F(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup),U(e,r)},$$slots:{default:!0}})};G(ie,e=>{t.popup&&e(ae)}),U(e,w),k()}var nI,rI,iI,aI,oI,sI,cI=s((()=>{Q(),Y(),KF(),JF(),eI(),nI=V(`<span role="none" class="label svelte-1xyq6cz"><!></span>`),rI=V(`<span role="none" class="label svelte-1xyq6cz"><!></span>`),iI=V(`<span role="none" class="label svelte-1xyq6cz"><!></span>`),aI=V(`<!> <!>`,1),oI=V(`<button><!> <!> <!></button> <!>`,1),sI={hash:`svelte-1xyq6cz`,code:`button.svelte-1xyq6cz {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-1xyq6cz {display:none !important;}button.svelte-1xyq6cz:not(:disabled):focus-visible {z-index:1;}button.svelte-1xyq6cz:is(.primary:where(.svelte-1xyq6cz), .secondary:where(.svelte-1xyq6cz), .tertiary:where(.svelte-1xyq6cz), .ghost:where(.svelte-1xyq6cz)) {justify-content:center;border-width:1px;}button.svelte-1xyq6cz:is(.primary:where(.svelte-1xyq6cz), .secondary:where(.svelte-1xyq6cz), .tertiary:where(.svelte-1xyq6cz), .ghost:where(.svelte-1xyq6cz)) .label:where(.svelte-1xyq6cz):only-child {padding:0 4px;}button.primary.svelte-1xyq6cz {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-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz {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-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz {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-1xyq6cz .label:where(.svelte-1xyq6cz) {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-1xyq6cz .label:where(.svelte-1xyq6cz) {text-decoration:underline;}button.link.svelte-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus, :where(.svelte-1xyq6cz):active) .label:where(.svelte-1xyq6cz) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-1xyq6cz {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-1xyq6cz .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-1xyq6cz {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-1xyq6cz {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-1xyq6cz {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-1xyq6cz:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-1xyq6cz {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-1xyq6cz {background-color:var(--sui-error-background-color);}button.svelte-1xyq6cz .label:where(.svelte-1xyq6cz) {padding:0 4px;}button.svelte-1xyq6cz > * {pointer-events:none;}button.svelte-1xyq6cz :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function lI(e,t){O(t,!0),K(e,fI);let n=J(t,`show`,15,!0),r=J(t,`dismissible`,3,!0),i=J(t,`status`,3,`info`),a=J(t,`children`,3,void 0),o=J(t,`icon`,3,void 0);var s=H(),c=I(s),l=e=>{var t=dI(),s=F(t),c=F(s),l=e=>{var t=H();Eo(I(t),o),U(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());zF(e,{get name(){return z(t)}})}};G(c,e=>{o()?e(l):e(u,-1)}),Eo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=uI(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));tI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{zF(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(d,e=>{r()&&e(f)}),D(t),R(()=>ss(t,1,`infobar ${i()??``}`,`svelte-13hczk8`)),U(e,t)};G(c,e=>{n()&&e(l)}),U(e,s),k()}var uI,dI,fI,Gae=s((()=>{Q(),Y(),Z(),cI(),BF(),uI=V(`<div role="none"><!></div>`),dI=V(`<div role="none"><div role="alert" class="message svelte-13hczk8"><!> <!></div> <!></div>`),fI={hash:`svelte-13hczk8`,code:`.infobar.svelte-13hczk8 {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-13hczk8 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-13hczk8 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-13hczk8 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-13hczk8 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-13hczk8 {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-13hczk8 button {font-size:inherit !important;}.message.svelte-13hczk8 .icon {font-size:16px; /* !hardcoded */}`}}));function Kae(e,t){K(e,mI);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=pI();ys(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-yh2zzt`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var pI,mI,qae=s((()=>{Q(),Y(),pI=V(`<div><!></div>`),mI={hash:`svelte-yh2zzt`,code:`.bottom-navigation.svelte-yh2zzt {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-yh2zzt:is([inert]:where(.svelte-yh2zzt), [hidden]:where(.svelte-yh2zzt)) {display:none;}.bottom-navigation.svelte-yh2zzt .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function Jae(e,t){K(e,gI);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=hI();ys(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-elalfp`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var hI,gI,_I=s((()=>{Q(),Y(),hI=V(`<div><!></div>`),gI={hash:`svelte-elalfp`,code:`.button-group.svelte-elalfp {flex:none;display:inline-flex;align-items:center;}`}}));function vI(e,t){K(e,bI);let n=J(t,`children`,3,void 0);var r=yI();Eo(F(r),()=>n()??E),D(r),U(e,r)}var yI,bI,Yae=s((()=>{Q(),Y(),yI=V(`<div role="none" class="sui floating-action-button-wrapper svelte-1lkdgzn"><!></div>`),bI={hash:`svelte-1lkdgzn`,code:`.floating-action-button-wrapper.svelte-1lkdgzn {display:contents;}
644
+ `,fP=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=ZN,r=n?20:100,i=[...e],a=[];for(;;){let e=await Zj(t,{paths:i.splice(0,r)});if(a.push(...e.project.repository.blobs.nodes),!i.length)break}return Object.fromEntries(e.map((e,t)=>[e,a[t]]))},pP=async({fetchingFiles:e,blobs:t,sizes:n={},commits:r={}})=>{let i=e.map(({path:e,sha:i})=>{let a=r[e],o={sha:i,size:Number(n[e]?.size??0),text:t[e]?.rawTextBlob??void 0,meta:{}};if(a){let{author:e,authorName:t,authorEmail:n,committedDate:r}=a,{id:i,username:s}=e??{},c=i?.match(/\d+/);o.meta={commitAuthor:{name:t,email:n,id:c?Number(c[0]):void 0,login:s},committedDate:new Date(r)}}return[e,o]});return Object.fromEntries(i)},mP=async e=>{Py.set(0);let t=window.setInterval(()=>{Py.update((e=0)=>e+1)},e.length/10),n=await fP(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),dP);return window.clearInterval(t),Py.set(void 0),pP({fetchingFiles:e,blobs:n})},hP=async()=>{await $N(),await HM({repository:ZN,fetchDefaultBranchName:tP,fetchLastCommit:iP,fetchFileList:uP,fetchFileContents:mP})},gP=async e=>{let{owner:t,repo:n,branch:r=``}=ZN,{path:i}=e;return Xj(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),_P,vP,yP,xie=s((()=>{Qx(),_P=`https://status.gitlab.com/`,vP=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,yP=async()=>{try{let{result:{status_overall:{status_code:e}}}=await Zx(vP);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),bP,xP,Sie=s((()=>{Sp(),rp(),yie(),cP(),KN(),bie(),nP(),xie(),Qj(),yM(),$P(),eN(),bP=()=>{let{backend:e}=A(JP)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=WN,auth_endpoint:i=GN,app_id:a=``,api_root:o=UN,graphql_api_root:s=o.replace(/\/api\/.+$/,`/api/graphql`),include_credentials:c=!1}=e,{owner:l,repo:u}=t.match(/(?<owner>.+)\/(?<repo>[^/]+)$/)?.groups??{},d=`${l}/${u}`,f=`${vp(r)}/${vp(i)}`,p=vM(o,d);return Object.assign(ZN,{service:VN,label:HN,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:JN(p),databaseName:`${VN}:${d}`,isSelfHosted:o!==UN},QN(p,n)),Object.assign(qj,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:vp(o),graphqlBaseURL:vp(s),includeCredentials:c}),Object.assign(Jj,{fullPath:d,branch:n}),A($M).devModeEnabled&&console.info(`repositoryInfo`,ZN),ZN},xP={isGit:!0,name:VN,label:HN,repository:ZN,statusDashboardURL:_P,checkStatus:yP,init:bP,signIn:YN,signOut:XN,fetchFiles:hP,fetchBlob:gP,commitChanges:aP,fetchFileCommits:sP}})),SP,CP,wP,TP,EP,DP,OP,kP=s((()=>{rp(),iie(),aie(),uie(),_ie(),Sie(),SP={github:BN,gitlab:xP,gitea:nN,local:Ej,"test-repo":Ij},CP={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},wP=Object.keys(SP).filter(e=>e!==`local`),TP=Object.fromEntries(Object.entries(SP).filter(([,e])=>e.isGit)),EP=un(),DP=dn([EP],([e],t,n)=>{n(t=>{let n=e?SP[e]:void 0;return n&&n!==t&&n.init(),n})}),OP=un(!0)})),AP,jP,MP,NP,PP,FP=s((()=>{Z(),ub(),AP=({type:e=`error`,strKey:t,values:n={},extraStrKey:r,context:i={},collectors:a})=>{let{collection:o,collectionFile:s,typedKeyPath:c}=i,{errors:l,warnings:u}=a,d=[];o&&d.push(X(`config.error_locator.collection`,{values:{collection:o.label_singular??o.label??o.name}})),s&&d.push(X(`config.error_locator.file`,{values:{file:s.label??s.name}})),c&&d.push(X(`config.error_locator.field`,{values:{field:c}}));let f=e===`error`?l:u,p=Oh.current,m=d.length?`${cb(p).format(d)}: `:``,h=X(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${X(`config.${r}`)}`:``}`)},jP=({UNSUPPORTED_OPTIONS:e,config:t,context:n,collectors:r})=>{e.forEach(({type:e=`error`,prop:i,newProp:a,value:o,strKey:s=`unsupported_deprecated_option`})=>{i in t&&(o===void 0||t[i]===o)&&AP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},MP=/^[^\s.*:<>]+$/,NP=e=>MP.test(e),PP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return AP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return NP(e)?n[e]===1?(AP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(AP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),Cie,wie,Tie=s((()=>{Z(),p(),kP(),$y(),FP(),Cie=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],wie=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!d(n)){r.add(X(`config.error.missing_backend`));return}let{name:a}=n;if(!a){r.add(X(`config.error.missing_backend_name`));return}if(!wP.includes(a)){let e=CP[a],t=e?e.deprecated?`deprecated`:`known`:`custom`,n=e?.label,i=X(`config.error.unsupported_${t}_backend`,{values:{name:n}});r.add(`${i} ${X(`config.error.unsupported_backend_suggestion`)}`);return}if(a in TP){let{repo:o,automatic_deployments:s,auth_methods:c,auth_type:l,app_id:u}=n;Array.isArray(c)&&!c.length&&r.add(X(`config.error.no_auth_methods`));let d=!c||c.includes(`token`);o===void 0&&r.add(X(`config.error.missing_repository`)),(typeof o!=`string`||!/(.+)\/([^/]+)$/.test(o))&&r.add(X(`config.error.invalid_repository`)),l===`implicit`&&r.add(X(`config.error.oauth_implicit_flow`).replace(`BACKEND_NAME`,a)),a===`github`&&l===`pkce`&&r.add(X(`config.error.github_pkce_unsupported`)),a===`gitlab`&&l===`pkce`&&!u&&r.add(X(`config.error.oauth_no_app_id`)),a===`gitea`&&!u&&(d?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&Qy(`automatic_deployments`),jP({UNSUPPORTED_OPTIONS:Cie,config:n,context:{cmsConfig:e},collectors:t})}}})),Eie,IP,LP,Die,RP,Oie=s((()=>{Eie=[`code`,`markdown`,`richtext`,`text`],IP=[`md`,`markdown`,`mdx`],LP=[`astro`,`njk`],Die=[...IP,...LP],RP=(e,t,n=[])=>{if(!e||!t||t===`raw`)return!1;let r=t.endsWith(`-frontmatter`)||t===`frontmatter`;if(r&&n.length===1){let[{name:e,widget:t=`string`}]=n;if(e===`body`&&Eie.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(IP.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return LP.includes(i)?!1:i!==e}if(a===`frontmatter`)return!Die.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1}})),kie,Aie,jie=s((()=>{FP(),kie=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],Aie=e=>{jP({...e,UNSUPPORTED_OPTIONS:kie})}})),Mie,zP,Nie=s((()=>{FP(),Mie=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],zP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),jP({...e,UNSUPPORTED_OPTIONS:Mie})}})),Pie,Fie,Iie=s((()=>{UP(),FP(),Pie=(e,t,n)=>e===`object`?!0:(AP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Fie=e=>{let{config:t,context:n,collectors:r}=e,{field:i}=t,{fields:a}=t,{types:o}=t,{typedKeyPath:s}=n,c={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a||i&&o||a&&o){AP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&VP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&HP(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};PP({...c,name:e,index:a,context:o})&&Pie(t,o,r)&&i&&HP(i,o,r)})}})),Lie,Rie,zie=s((()=>{FP(),Lie=[{prop:`valueType`,newProp:`value_type`}],Rie=e=>{jP({...e,UNSUPPORTED_OPTIONS:Lie})}})),Bie,Vie=s((()=>{UP(),FP(),Bie=e=>{let{config:t,context:n,collectors:r}=e,{fields:i}=t,{types:a}=t,{typedKeyPath:o}=n,s={nameCounts:{},strKeyBase:`variable_type`,collectors:r};if(i&&a){AP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){AP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&HP(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};PP({...s,name:e,index:i,context:a})&&t&&HP(t,a,r)})}})),Hie,Uie,Wie=s((()=>{FP(),Hie=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],Uie=e=>{let{config:t,context:n,collectors:r}=e,i=t,{collection:a,file:o,value_field:s}=i,{cmsConfig:c}=n,l=a===`_singletons`?{files:c?.singletons}:c?.collections?.find(e=>e.name===a),u;if(l){let e=`files`in l&&Array.isArray(l.files);o?(e&&(u=l.files.find(e=>`file`in e&&e.name===o)),u||AP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&AP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else AP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});jP({...e,UNSUPPORTED_OPTIONS:Hie}),r.relationFields.add({fieldConfig:i,context:n})}})),Gie,BP,Kie=s((()=>{FP(),Gie=[{prop:`editorComponents`,newProp:`editor_components`}],BP=e=>{jP({...e,UNSUPPORTED_OPTIONS:Gie})}})),qie,VP,HP,UP=s((()=>{jie(),Nie(),Iie(),zie(),Vie(),Wie(),Kie(),FP(),qie={datetime:Aie,file:zP,image:zP,list:Fie,markdown:BP,number:Rie,object:Bie,relation:Uie,richtext:BP},VP=e=>{let{config:t,context:n}=e,{name:r,widget:i=`string`}=t,{typedKeyPath:a}=n,o={...e,context:{...n,typedKeyPath:a?`${a}.${r}`:r}};qie[i]?.(o),i===`date`&&AP({...o,strKey:`date_field_type`})},HP=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;PP({...r,name:a,index:i})&&VP({config:e,context:t,collectors:n})})}})),Jie,WP,Yie=s((()=>{Np(),Oie(),UP(),FP(),Jie=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o,i18n:s}=r,{extension:c}=Dp(i);RP(c,a,o)&&AP({strKey:`file_format_mismatch`,context:e,values:{extension:c,format:a},collectors:t}),o?.length||AP({strKey:`collection_file_no_fields`,context:e,collectors:t}),i.includes(`{{locale}}`)&&!s&&AP({strKey:`collection_file_i18n_required`,context:e,collectors:t}),HP(o,e,t)},WP=(e,t)=>{let{cmsConfig:n,collection:r}=e,{files:i}=r,a={nameCounts:{},strKeyBase:`collection_file_name`,collectors:t};i.forEach((e,i)=>{if(`divider`in e)return;let{name:o}=e,s={cmsConfig:n,collection:r,collectionFile:e};PP({...a,name:o,index:i,context:s})&&Jie(s,t)})}})),Xie,Zie,Qie,$ie,eae=s((()=>{Z(),$y(),Yie(),Oie(),UP(),FP(),Xie=[{type:`warning`,prop:`nested`,strKey:`nested_collections_unsupported`},{prop:`sortableFields`,newProp:`sortable_fields`}],Zie=(e,t)=>{let{cmsConfig:n,collection:r}=e,{extension:i,format:a,fields:o,index_file:s,slug:c,slug_length:l}=r;RP(i,a)&&AP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&Qy(`slug_length`),jP({UNSUPPORTED_OPTIONS:Xie,config:r,context:e,collectors:t}),o?.length||AP({strKey:`collection_no_fields`,context:e,collectors:t}),HP(o,e,t),s&&HP(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&AP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Qie=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){AP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){AP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?WP({cmsConfig:e,collection:t},n):a&&Zie({cmsConfig:e,collection:t},n)},$ie=(e,t)=>{let{collections:n,singletons:r}=e,{errors:i}=t;if(!Array.isArray(n)&&!Array.isArray(r)){i.add(X(`config.error.no_collection`));return}let a={nameCounts:{},strKeyBase:`collection_name`,collectors:t};n?.forEach((n,r)=>{if(`divider`in n)return;let{name:i}=n,o={cmsConfig:e,collection:n};PP({...a,name:i,index:r,context:o})&&Qie(o,t)}),Array.isArray(r)&&WP({cmsConfig:e,collection:{name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r}},t)}})),tae,nae=s((()=>{Z(),pw(),tae=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!fw.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>fw.includes(e))&&o.add(X(`config.error.missing_media_folder`)):typeof n!=`string`&&o.add(X(`config.error.invalid_media_folder`)),r!==void 0&&(typeof r==`string`?(/^\.{1,2}\//.test(r)&&o.add(X(`config.error.public_folder_relative_path`)),/^https?:/.test(r)&&o.add(X(`config.error.public_folder_absolute_url`))):o.add(X(`config.error.invalid_public_folder`)))}})),rae,iae,aae=s((()=>{Tie(),eae(),nae(),FP(),rae=[{type:`warning`,prop:`publish_mode`,value:`editorial_workflow`,strKey:`editorial_workflow_unsupported`},{type:`warning`,prop:`local_backend`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`locale`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`search`,strKey:`unsupported_ignored_option`}],iae=(e,t)=>{wie(e,t),tae(e,t),$ie(e,t),jP({UNSUPPORTED_OPTIONS:rae,config:e,context:{cmsConfig:e},collectors:t})}})),oae,GP,sae,KP,qP,JP,YP,XP,ZP,QP,cae,$P=s((()=>{Z(),hp(),p(),Sp(),oae=u(ete(),1),rp(),My(),Hp(),dne(),fne(),kne(),aae(),Vy(),eN(),{DEV:GP,VITE_SITE_URL:sae}={DEV:!1},KP=GP?sae||`http://localhost:5174`:void 0,qP={},JP=un(),YP=un(),XP=un([]),ZP=dn([JP,XP],([e,t])=>!!e||!!t.length),QP={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},cae=async e=>{JP.set(void 0),XP.set([]),Object.assign(QP,{errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set});try{if(!window.isSecureContext)throw Error(X(`config.error.no_secure_context`));let t;if(e){if(!d(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,oae.default)(await iS({manualInit:!0}),t))}else t=await iS();if(Object.assign(qP,t),iae(t,QP),QP.errors.size)throw QP.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);QP.warnings.size&&QP.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(GP?KP:window.location.origin),n._baseURL=bp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),JP.set(n),YP.set(await mp(Ay(n)))}catch(e){XP.set(QP.errors.size?[...QP.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},JP.subscribe(e=>{if(A($M).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,QP)),!e)return;let t=cx(e),n=tx(e,[...QP.mediaFields]);Fy.set(t),Pp.set(n),A($M).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),eF,tF=s((()=>{rp(),$P(),eF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(JP),r=e===`default`?{...n?.media_libraries?.all,...t?.media_libraries?.all}:void 0,i=e=>({...e,...r&&Object.keys(r).length>0&&{config:{...r,...e?.config}}});if(t?.media_libraries&&e in t.media_libraries){let n=t.media_libraries[e];return n===!1?!1:i(n)}if(t?.media_library){let r=n?.media_library?.name??`default`,a=t.media_library,o=a.name;if(r===e&&(o===e||o===void 0))return i(a)}if(n?.media_libraries&&e in n.media_libraries){let t=n.media_libraries[e];return t===!1?!1:i(t)}return n?.media_library?.name===e?i(n.media_library):i(null)}})),nF,lae,rF=s((()=>{p(),tF(),Ww(),rT(),nF=({fieldConfig:e}={})=>{let t=eF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:d(a)?a:void 0}}},lae=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(Iw.includes(r)&&(r in t?n=t[r]:`raster_image`in t&&(n=t.raster_image)),n){let{format:t,quality:r,width:i,height:a}=n,o=t&&Uw.includes(t)?t:`webp`,s=await tT(e,{format:o,quality:r&&Number.isSafeInteger(r)?r:85,width:i&&Number.isSafeInteger(i)?i:void 0,height:a&&Number.isSafeInteger(a)?a:void 0}),c=s.type===`image/${o}`?Rw.test(e.name)?e.name.replace(Rw,o):e.name.concat(o):e.name;return new File([s],c,{type:s.type})}}return n===`image`&&r===`svg+xml`&&t.svg?.optimize?new File([await nT(e)],e.name,{type:e.type}):e}})),iF,aF=s((()=>{rF(),ew(),iF=async(e,{slugify_filename:t=!1,transformations:n,max_file_size:r=1/0}={})=>{if(t){let{name:t,type:n,lastModified:r}=e,i=YC(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await lae(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),oF,sF,cF,lF,uF,uae,dF,fF,pF,mF,hF,dae,gF,fae,pae,_F,vF,yF,mae,bF,xF,SF=s((()=>{Np(),Sp(),dc(),rp(),Hp(),aF(),RO(),qb(),nb(),Yy(),JO(),rF(),ew(),oF=un([]),sF={source:void 0,map:new Map},cF=()=>{let e=A(oF);return e!==sF.source&&(sF.source=e,sF.map=new Map(e.map(e=>[e.path,e]))),sF.map},lF=e=>cF().get(e),uF=un([]),uae=dn(uF,e=>new Set(e.map(e=>e.path))),dF=un(),fF=un(),pF=un({folder:void 0,files:[]}),mF=un(),hF=un(),dae=dn([pF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=nF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>iF(e,i)));n(()=>({processing:!1,undersizedFiles:e.filter(({oversized:e})=>!e).map(({file:e})=>e),oversizedFiles:e.filter(({oversized:e})=>e).map(({file:e})=>e),transformedFileMap:new WeakMap(e.filter(({originalFile:e})=>e!==void 0).map(({file:e,originalFile:t})=>[e,t]))}))})()}),gF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Rp({collectionName:n.name,fileName:r?.name,typedKeyPath:i}):void 0,c=s?.entryRelative?s.internalSubPath??``:(r??n).media_folder,{path:l,content:u}=a[o in a?o:Object.keys(a)[0]];if(!l||!u)return;let{entryFolder:d}=l.match(/(?<entryFolder>.+?)(?:\/[^/]+)?$/).groups,f=e.replace(/^\.\//,``),p=ZC(XC([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return cF().get(p)},fae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Rp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Rp({collectionName:n,fileName:r}):void 0,n?Rp({collectionName:n}):void 0,A(Fp)].filter(e=>!!e&&!e.hasTemplateTags),a;return t.find(t=>{let n=t.publicPath?.replace(/^\//,``)??``,r=n&&e.startsWith(`${n}/`)?e.slice(n.length+1):e,i=cF().get(XC([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??cF().get(e)}return WO(t).flatMap(n=>{let r=Ky(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>gF({...a,file:e})):gF({...a})}).filter(Boolean)[0]??cF().get(e)},pae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=cF().get(vp(e));if(a)return a;let{dirname:o=``,basename:s}=Dp(e),c;return[i?Rp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Rp({collectionName:n,fileName:r}),Rp({collectionName:n}),A(Fp),A(Pp).findLast(e=>o.match(`^${(e.publicPath??``).replace(/{{.+?}}/g,`.+?`)}\\b`))].filter(e=>!!e).find(e=>{let{publicPath:n,collectionName:r}=e,{internalPath:i}=e;if(i!==void 0&&/{{.+?}}/.test(i)){let e=r?Wb(r):t?WO(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=LO(i,{type:`media_folder`,collection:e,content:lc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:tb(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=XC([i,s]),l=cF().get(a);return l&&(c=l),!!l}),c},_F=e=>!/^[/@]/.test(e),vF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=GC(e.split(`#`)[0]);return _F(a)?fae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):pae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},yF=({folder:e},t)=>e===t||e.collectionName===t.collectionName&&e.fileName===t.fileName&&e.typedKeyPath===t.typedKeyPath&&e.isIndexFile===t.isIndexFile&&e.internalPath===t.internalPath&&e.internalSubPath===t.internalSubPath&&e.publicPath===t.publicPath&&e.entryRelative===t.entryRelative&&e.hasTemplateTags===t.hasTemplateTags,mae=e=>A(oF).filter(t=>yF(t,e)),bF=e=>A(oF).filter(t=>Dp(t.path).dirname===e),Ip.subscribe(()=>{dF.set(void 0)}),xF=(e,t)=>{if(!t.length||!e.length)return[];let n=new Set(t.map(({name:e})=>e.normalize().toLowerCase()));return e.filter(e=>n.has(e.name.normalize().toLowerCase()))}})),CF,wF,TF=s((()=>{Np(),Sp(),rp(),SF(),Hp(),vT(),qb(),nb(),_A(),CF=async(e,t)=>{let{name:n,_i18n:{defaultLocale:r},_thumbnailFieldNames:i}=e,{locales:a}=t,{content:o}=a[r]??Object.values(a)[0]??{};if(!o)return;let s=i.some(e=>e.includes(`*`))?Object.keys(o):void 0,c=i.flatMap(e=>{if(e.includes(`*`)){let t=RegExp(`^${gp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await _T({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},wF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Wb(t);if(!a)return[];let o=tb(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||_F(a))){let s=uA({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=vF({value:a,entry:e,collectionName:t,fileName:n});if(c&&Bp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Rp({collectionName:t,fileName:n})?.entryRelative){let t=Dp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(oF).forEach(n=>{let r=Dp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),EF,hae,DF,gae,OF,kF=s((()=>{p(),dc(),tp(),rp(),TF(),Gj(),EF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],hae=[`preSave`,`prePublish`],DF=new Set,gae=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>vd({data:uc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:uc(n[e].content)}])),slug:r,path:i,newRecord:a,collection:o,mediaFiles:s.map(({sha:e,file:t,size:n,blobURL:r,...i})=>({id:e,name:i.name,path:i.path,file:t,size:n,url:r,displayURL:r})),meta:{path:i},isModification:null,label:null,partial:!1,author:``,raw:``,status:``,updatedOn:``}),OF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=A(Wj),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:u}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==u),{content:h,path:g}=p[u],_=wF({entry:n,collectionName:c,fileName:l});for(let t of DF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:gae({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(hae.includes(e)&&Ql(n)){let e=n.toJS();d(e.data)&&d(e.i18n)?(p[u].content=lc(e.data),m.forEach(t=>{d(e.i18n[t]?.data)&&(p[t].content=lc(e.i18n[t].data))})):p[u].content=lc(e)}}}})),AF,jF,MF,NF,PF,FF,IF,LF,_ae,RF=s((()=>{rp(),AF=un(!1),jF=un(!1),MF=un({show:!1,multiple:!1}),NF=un({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),PF=un(null),FF=un(null),IF=un(),LF=new Set,_ae=new Map})),vae=s((()=>{})),Q=s((()=>{vae(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),yae,bae=s((()=>{yae=`{"ok":"OK","cancel":"Cancel","close":"Close","clear":"Clear","insert":"Insert","update":"Update","remove":"Remove","collapse":"Collapse","expand":"Expand","dismiss":"Dismiss","calendar":{"year":"Year","previous_decade":"Previous Decade","next_decade":"Next Decade","month":"Month","previous_month":"Previous Month","next_month":"Next Month","today":"Today"},"split_button":{"x_options":"{$name} Options","more_options":"More Options"},"combobox":{"select_an_option":"Select an option…","filter_options":"Filter Options","no_matching_options":"No matching options found"},"number_input":{"decrease":"Decrease","increase":"Increase"},"password_input":{"show_password":"Show Password","hide_password":"Hide Password"},"secret_input":{"show_secret":"Show Secret","hide_secret":"Hide Secret"},"select_tags":{"selected_options":"Selected options","remove_x":"Remove {$name}"},"text_editor":{"text_editor":"Text Editor","code_editor":"Code Editor","text_style_options":"Text Style Options","show_text_style_options":"Show Text Style Options","paragraph":"Paragraph","heading_1":"Heading 1","heading_2":"Heading 2","heading_3":"Heading 3","heading_4":"Heading 4","heading_5":"Heading 5","heading_6":"Heading 6","bulleted_list":"Bulleted List","numbered_list":"Numbered List","blockquote":"Block Quote","code_block":"Code Block","bold":"Bold","italic":"Italic","strikethrough":"Strikethrough","code":"Code","link":"Link","insert_link":"Insert Link","update_link":"Update Link","text":"Text","url":"URL","edit_in_markdown":"Edit in Markdown","converter_error":"There was an error while enabling rich text mode. Please use the plain text editor instead.","language":"Language","plain_text":"Plain Text"}}`})),xae,Sae=s((()=>{xae=`{"ok":"OK","cancel":"キャンセル","close":"閉じる","clear":"クリア","insert":"挿入","update":"更新","remove":"削除","collapse":"折り畳む","expand":"広げる","dismiss":"閉じる","calendar":{"year":"年","previous_decade":"前の 10 年","next_decade":"次の 10 年","month":"月","previous_month":"前月","next_month":"翌月","today":"今日"},"split_button":{"x_options":"{$name} オプション","more_options":"その他のオプション"},"combobox":{"select_an_option":"オプションを選択…","filter_options":"オプションを絞り込み","no_matching_options":"一致するオプションは見つかりませんでした"},"number_input":{"decrease":"減らす","increase":"増やす"},"password_input":{"show_password":"パスワードを表示","hide_password":"パスワードを隠す"},"secret_input":{"show_secret":"シークレットを表示","hide_secret":"シークレットを隠す"},"select_tags":{"selected_options":"選択済みのオプション","remove_x":"{$name} を削除"},"text_editor":{"text_editor":"テキストエディター","code_editor":"コードエディター","text_style_options":"テキストスタイルオプション","show_text_style_options":"テキストスタイルオプションを表示","paragraph":"段落","heading_1":"見出し 1","heading_2":"見出し 2","heading_3":"見出し 3","heading_4":"見出し 4","heading_5":"見出し 5","heading_6":"見出し 6","bulleted_list":"番号なしリスト","numbered_list":"番号付きリスト","blockquote":"ブロック引用","code_block":"コードブロック","bold":"太字","italic":"斜体","strikethrough":"取り消し線","code":"コード","link":"リンク","insert_link":"リンクを挿入","update_link":"リンクを更新","text":"テキスト","url":"URL","edit_in_markdown":"マークダウンで編集","converter_error":"リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。","language":"言語","plain_text":"プレーンテキスト"}}`})),Cae,wae=s((()=>{bae(),Sae(),Z(),My(),Cae=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":yae,"../locales/ja.yaml":xae})).forEach(([e,t])=>{wh(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:ky(t)})}),Ah({fallbackLocale:e,initialLocale:t})}}));function zF(e,t){K(e,Eae);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=Tae();ys(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-6t81jx`);var i=F(r,!0);D(r),R(()=>W(i,t.name)),U(e,r)}var Tae,Eae,BF=s((()=>{Q(),Y(),Tae=V(`<span> </span>`),Eae={hash:`svelte-6t81jx`,code:`.icon.small-arrow.svelte-6t81jx {overflow:hidden;width:12px;text-indent:-6px;}`}}));function VF(e,t){K(e,Oae);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=Dae();ys(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-s3wmal`);var i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.icon),U(e,n)},o=e=>{{let n=M(()=>t.status===`success`?`check_circle`:t.status);zF(e,{get name(){return z(n)}})}};G(i,e=>{t.icon?e(a):e(o,-1)}),Eo(L(i,2),()=>t.children??E),D(r),U(e,r)}var Dae,Oae,HF=s((()=>{Q(),Y(),BF(),Dae=V(`<div><!> <!></div>`),Oae={hash:`svelte-s3wmal`,code:`.alert.svelte-s3wmal {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-s3wmal {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-s3wmal {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-s3wmal {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-s3wmal {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),kae,UF,Aae,jae,Mae,WF,GF,KF=s((()=>{UF=()=>(kae??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),kae),Aae=[`Ctrl`,`Meta`,`Alt`,`Shift`],jae=new Set([`Space`,`Enter`,`Escape`,`Tab`,`Backspace`,`Delete`,`Insert`,`Home`,`End`,`PageUp`,`PageDown`,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,...Array.from({length:24},(e,t)=>`F${t+1}`)]),Mae=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:jae.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),WF=(e,t)=>{let{ctrlKey:n,metaKey:r,altKey:i,shiftKey:a,key:o,code:s}=e;return!o&&!s?!1:t.replace(/\bAccel\b/g,UF()?`Meta`:`Ctrl`).split(/\s+/).some(t=>{let o=t.split(`+`);return o.includes(`Ctrl`)&&!n||o.includes(`Meta`)&&!r||o.includes(`Alt`)&&!i||o.includes(`Shift`)&&!a||!o.includes(`Ctrl`)&&n||!o.includes(`Meta`)&&r||!o.includes(`Alt`)&&i||!o.includes(`Shift`)&&a?!1:o.filter(e=>!Aae.includes(e)).every(t=>Mae(t,e))})},GF=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,UF()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!WF(n,t))return;let{top:i,left:a}=e.getBoundingClientRect();r&&e.style.setProperty(`pointer-events`,`auto`);let o=document.elementsFromPoint(a+4,i+4).includes(e);r&&e.style.removeProperty(`pointer-events`),o&&(n.preventDefault(),r||(e.focus(),e.click()))};return globalThis.addEventListener(`keydown`,n,{capture:!0}),e.setAttribute(`aria-keyshortcuts`,t),()=>{globalThis.removeEventListener(`keydown`,n,{capture:!0}),e.removeAttribute(`aria-keyshortcuts`)}}:()=>()=>{}}}));function qF(e,t){K(e,Pae);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=Nae();Eo(F(i),()=>r()??E),D(i),R(()=>us(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var Nae,Pae,JF=s((()=>{Q(),Y(),Nae=V(`<span role="none" class="sui truncated-text svelte-7fdil4"><!></span>`),Pae={hash:`svelte-7fdil4`,code:`.truncated-text.svelte-7fdil4 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),YF,XF,ZF=s((()=>{hp(),YF=(e=`e`,t=7)=>[e,fp(t)].join(`-`),XF=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})}})),Fae,Iae,Lae=s((()=>{Y(),ZF(),Yx(),uh(),Fae=class{#e=N(!1);get open(){return z(this.#e)}set open(e){P(this.#e,e,!0),e?this.checkPosition():this.anchorElement.getAttribute(`aria-expanded`)===`true`&&(this.anchorElement.focus(),this.anchorElement.removeAttribute(`aria-controls`)),this.anchorElement.setAttribute(`aria-expanded`,String(e))}#t=N(Cr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=YF(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ba(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ba(e,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e,o=i||a||n||r;!this.isDisabled&&!this.isReadOnly&&[`Enter`,` `].includes(t)&&!o&&(e.preventDefault(),e.stopPropagation(),this.open=!this.open)}),ba(e,`transitionstart`,()=>{this.anchorElement.closest(`.hiding, .hidden, [hidden]`)&&this.hideImmediately()}),this.intersectionObserver=new IntersectionObserver(([e])=>{!e.isIntersecting&&this.open&&this.hideImmediately()}),this.intersectionObserver.observe(this.anchorElement),ba(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ba(this.popupElement,`keydown`,e=>{let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;t===`Escape`&&!(i||a||n||r)&&(e.preventDefault(),e.stopPropagation(),this.open=!1)}),this.resizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this._rafId),this._rafId=requestAnimationFrame(()=>this.checkPosition())}),this.resizeObserver.observe(this.positionBaseElement)}get isDisabled(){return this.anchorElement.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.anchorElement.matches(`[aria-readonly="true"]`)}checkPosition(){this.observer.unobserve(this.positionBaseElement),this.observer.observe(this.positionBaseElement)}async hideImmediately(){this.popupElement.hidden=!0,this.open=!1,await Jx(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},Iae=(...e)=>new Fae(...e)}));function Rae(e,t){var n=H();Eo(I(n),()=>t.children??E),U(e,n)}var zae=s((()=>{Q(),Y()}));function Bae(e,t){O(t,!0),K(e,Hae);let n=e=>{var n=Vae(),d=({target:e})=>{i()&&s()&&e?.matches(`dialog`)&&(i(i().returnValue=`cancel`,!0),r(!1))},f=e=>{e.preventDefault(),i()&&c()&&(i(i().returnValue=`cancel`,!0),r(!1))};ys(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Ss]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-uy6k82`);var g=F(n);Eo(g,()=>t.extraContent??E);var _=L(g,2),v=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(_,e=>{(z(h)||l())&&e(v)}),D(n),Us(n,e=>i(e),()=>i()),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`dialog`,15),a=J(t,`role`,3,`dialog`),o=J(t,`showBackdrop`,3,!1),s=J(t,`lightDismiss`,3,!1),c=J(t,`escapeDismiss`,3,!0),l=J(t,`keepContent`,3,!1),u=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`dialog`,`class`,`role`,`showBackdrop`,`lightDismiss`,`escapeDismiss`,`keepContent`,`children`,`extraContent`,`onOpening`,`onOpen`,`onClosing`,`onOk`,`onCancel`,`onClose`]),d=()=>{i()?.focus()},f=e=>{i()&&(i(i().returnValue=e,!0),r(!1))},p=N(!1),m=N(!1),h=N(!1),g=0,_=async()=>new Promise(e=>{let t=n=>{n.target===i()&&(i().removeEventListener(`transitionend`,t),e())};i()?.addEventListener(`transitionend`,t)}),v=async()=>{if(!i()||i()?.open)return;g+=1;let e=g;t.onOpening?.(new CustomEvent(`Opening`)),P(h,!0),i().showModal(),t.onOpen?.(new CustomEvent(`Open`)),await Jx(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return ti(()=>{r()?v():y()}),ic(()=>{let e=za(Rae,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Va(e)}}),k({focus:d,close:f})}var Vae,Hae,QF=s((()=>{Q(),Y(),Yx(),oc(),zae(),Vae=V(`<dialog><!> <!></dialog>`),Hae={hash:`svelte-uy6k82`,code:`dialog.svelte-uy6k82 {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-uy6k82::backdrop {background:transparent;}dialog.backdrop.svelte-uy6k82 {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-uy6k82 {transition-duration:50ms;opacity:1;}dialog.svelte-uy6k82:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-uy6k82 {transition-duration:1ms !important;}dialog.svelte-uy6k82:not(.active) {pointer-events:none !important;}dialog.svelte-uy6k82:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function $F(e,t){O(t,!0),K(e,Wae);let n=e=>{var n=Uae();let o,s;Eo(F(n),()=>t.children??E),D(n),Us(n,e=>a(e),()=>a()),R(()=>{q(n,`hidden`,!r()),o=ss(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-v4lkyt`,o,{touch:z(y)}),s=us(n,``,s,{inset:z(g)?.style.inset,"z-index":z(g)?.style.zIndex,"min-width":z(g)?.style.minWidth,"max-width":z(g)?.style.maxWidth,"max-height":z(g)?.style.height,visibility:z(g)?.style.inset?void 0:`hidden`})}),xa(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),xa(`mouseleave`,n,()=>{i(!1),l()&&(_=window.setTimeout(()=>{r(!1)},200))}),U(e,n)},r=J(t,`open`,15,!1),i=J(t,`hovered`,15,!1),a=J(t,`content`,15,void 0),o=J(t,`showBackdrop`,3,void 0),s=J(t,`position`,3,`bottom-left`),c=J(t,`positionBaseElement`,3,void 0),l=J(t,`parentDialogElement`,3,void 0),u=J(t,`touchOptimized`,3,!1),d=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`hovered`,`content`,`class`,`showBackdrop`,`anchor`,`position`,`positionBaseElement`,`parentDialogElement`,`touchOptimized`,`children`,`onOpen`]),f=N(!1),p=N(void 0),m=N(!1),h=N(void 0),g=N(void 0),_=0,v=()=>{P(g,Iae(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ti(()=>{z(g)&&r(z(g).open)}),ti(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ti(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ti(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ic(()=>(P(m,globalThis.matchMedia(`(pointer: coarse)`).matches,!0),()=>{z(g)?.destroy?.(),globalThis.clearTimeout(_)}));var b=H(),x=I(b),S=e=>{n(e)},C=e=>{{let i=M(()=>o()??z(y));Bae(e,Xs(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await Jx(100),!a())return;let n=a().querySelector(`[tabindex]:not([aria-disabled="true"])`);n?n.focus():(a(a().tabIndex=-1,!0),a().focus())},get dialog(){return z(p)},set dialog(e){P(p,e,!0)},get open(){return r()},set open(e){r(e)},children:(e,t)=>{n(e)},$$slots:{default:!0}}))}};G(x,e=>{l()?e(S):e(C,-1)}),U(e,b),k()}var Uae,Wae,eI=s((()=>{Q(),Y(),Yx(),oc(),Lae(),QF(),Uae=V(`<div role="none"><!></div>`),Wae={hash:`svelte-v4lkyt`,code:`.content.svelte-v4lkyt {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-v4lkyt {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-v4lkyt .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-v4lkyt {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-v4lkyt .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-v4lkyt {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-v4lkyt {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-v4lkyt {transform:scale(90%);}.content.touch.combobox.svelte-v4lkyt .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-v4lkyt {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-v4lkyt {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function tI(e,t){O(t,!0),K(e,sI);let n=J(t,`element`,15),r=J(t,`class`,3,``),i=J(t,`type`,3,`button`),a=J(t,`role`,3,`button`),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,19,()=>typeof s()),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`pressed`,3,void 0),p=J(t,`keyShortcuts`,3,void 0),m=J(t,`label`,3,``),h=J(t,`lines`,3,1),g=J(t,`variant`,3,void 0),_=J(t,`size`,3,`medium`),v=J(t,`iconic`,3,!1),y=J(t,`pill`,3,!1),b=J(t,`flex`,3,!1),x=J(t,`popupPosition`,3,`bottom-left`),S=J(t,`showPopupBackdrop`,3,!1),C=Ys(t,`$$slots.$$events.$$legacy.element.class.type.role.name.value.valueType.hidden.disabled.readonly.pressed.keyShortcuts.label.lines.variant.size.iconic.pill.flex.popupPosition.showPopupBackdrop.children.startIcon.endIcon.popup`.split(`.`));var w=oI(),ee=I(w);ys(ee,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Ss]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-1xyq6cz`);var T=F(ee);Eo(T,()=>t.startIcon??E);var te=L(T,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=nI();qF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=rI();Eo(F(n),()=>t.children??E),D(n),U(e,n)};G(r,e=>{m()?e(i):e(a,-1)}),U(e,n)},re=e=>{var n=aI(),r=I(n),i=e=>{var t=iI();qF(F(t),{get lines(){return h()},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(r,e=>{m()&&e(i)}),Eo(L(r,2),()=>t.children??E),U(e,n)};G(te,e=>{g()===`link`?e(ne):e(re,-1)}),Eo(L(te,2),()=>t.endIcon??E),D(ee),Us(ee,e=>n(e),()=>n()),Yo(ee,()=>GF(p()));var ie=L(ee,2),ae=e=>{$F(e,{get anchor(){return n()},get position(){return x()},get showBackdrop(){return S()},touchOptimized:!0,children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup),U(e,r)},$$slots:{default:!0}})};G(ie,e=>{t.popup&&e(ae)}),U(e,w),k()}var nI,rI,iI,aI,oI,sI,cI=s((()=>{Q(),Y(),KF(),JF(),eI(),nI=V(`<span role="none" class="label svelte-1xyq6cz"><!></span>`),rI=V(`<span role="none" class="label svelte-1xyq6cz"><!></span>`),iI=V(`<span role="none" class="label svelte-1xyq6cz"><!></span>`),aI=V(`<!> <!>`,1),oI=V(`<button><!> <!> <!></button> <!>`,1),sI={hash:`svelte-1xyq6cz`,code:`button.svelte-1xyq6cz {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-1xyq6cz {display:none !important;}button.svelte-1xyq6cz:not(:disabled):focus-visible {z-index:1;}button.svelte-1xyq6cz:is(.primary:where(.svelte-1xyq6cz), .secondary:where(.svelte-1xyq6cz), .tertiary:where(.svelte-1xyq6cz), .ghost:where(.svelte-1xyq6cz)) {justify-content:center;border-width:1px;}button.svelte-1xyq6cz:is(.primary:where(.svelte-1xyq6cz), .secondary:where(.svelte-1xyq6cz), .tertiary:where(.svelte-1xyq6cz), .ghost:where(.svelte-1xyq6cz)) .label:where(.svelte-1xyq6cz):only-child {padding:0 4px;}button.primary.svelte-1xyq6cz {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-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz {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-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus-visible, [aria-expanded=true]:where(.svelte-1xyq6cz)) {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-1xyq6cz: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-1xyq6cz {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-1xyq6cz {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-1xyq6cz .label:where(.svelte-1xyq6cz) {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-1xyq6cz .label:where(.svelte-1xyq6cz) {text-decoration:underline;}button.link.svelte-1xyq6cz:is(:where(.svelte-1xyq6cz):hover, :where(.svelte-1xyq6cz):focus, :where(.svelte-1xyq6cz):active) .label:where(.svelte-1xyq6cz) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-1xyq6cz {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-1xyq6cz .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-1xyq6cz {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-1xyq6cz {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-1xyq6cz {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-1xyq6cz:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-1xyq6cz {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-1xyq6cz {background-color:var(--sui-error-background-color);}button.svelte-1xyq6cz .label:where(.svelte-1xyq6cz) {padding:0 4px;}button.svelte-1xyq6cz > * {pointer-events:none;}button.svelte-1xyq6cz :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function lI(e,t){O(t,!0),K(e,fI);let n=J(t,`show`,15,!0),r=J(t,`dismissible`,3,!0),i=J(t,`status`,3,`info`),a=J(t,`children`,3,void 0),o=J(t,`icon`,3,void 0);var s=H(),c=I(s),l=e=>{var t=dI(),s=F(t),c=F(s),l=e=>{var t=H();Eo(I(t),o),U(e,t)},u=e=>{{let t=M(()=>i()===`success`?`check_circle`:i());zF(e,{get name(){return z(t)}})}};G(c,e=>{o()?e(l):e(u,-1)}),Eo(L(c,2),()=>a()??E),D(s);var d=L(s,2),f=e=>{var t=uI(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));tI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{zF(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(d,e=>{r()&&e(f)}),D(t),R(()=>ss(t,1,`infobar ${i()??``}`,`svelte-13hczk8`)),U(e,t)};G(c,e=>{n()&&e(l)}),U(e,s),k()}var uI,dI,fI,Gae=s((()=>{Q(),Y(),Z(),cI(),BF(),uI=V(`<div role="none"><!></div>`),dI=V(`<div role="none"><div role="alert" class="message svelte-13hczk8"><!> <!></div> <!></div>`),fI={hash:`svelte-13hczk8`,code:`.infobar.svelte-13hczk8 {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-13hczk8 {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-13hczk8 {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-13hczk8 {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-13hczk8 {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-13hczk8 {flex:auto;display:flex;align-items:center;justify-content:var(--sui-infobar-message-justify-content, start);gap:var(--sui-infobar-message-gap, 6px);padding:var(--sui-infobar-message-padding, 6px);}.message.svelte-13hczk8 button {font-size:inherit !important;}.message.svelte-13hczk8 .icon {font-size:16px; /* !hardcoded */}`}}));function Kae(e,t){K(e,mI);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=pI();ys(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-yh2zzt`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var pI,mI,qae=s((()=>{Q(),Y(),pI=V(`<div><!></div>`),mI={hash:`svelte-yh2zzt`,code:`.bottom-navigation.svelte-yh2zzt {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-yh2zzt:is([inert]:where(.svelte-yh2zzt), [hidden]:where(.svelte-yh2zzt)) {display:none;}.bottom-navigation.svelte-yh2zzt .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function Jae(e,t){K(e,gI);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=hI();ys(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-elalfp`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var hI,gI,_I=s((()=>{Q(),Y(),hI=V(`<div><!></div>`),gI={hash:`svelte-elalfp`,code:`.button-group.svelte-elalfp {flex:none;display:inline-flex;align-items:center;}`}}));function vI(e,t){K(e,bI);let n=J(t,`children`,3,void 0);var r=yI();Eo(F(r),()=>n()??E),D(r),U(e,r)}var yI,bI,Yae=s((()=>{Q(),Y(),yI=V(`<div role="none" class="sui floating-action-button-wrapper svelte-1lkdgzn"><!></div>`),bI={hash:`svelte-1lkdgzn`,code:`.floating-action-button-wrapper.svelte-1lkdgzn {display:contents;}
645
645
  @media (width < 768px) {.floating-action-button-wrapper.svelte-1lkdgzn {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-1lkdgzn button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-1lkdgzn button .icon {font-size:32px;}
646
646
  }`}})),xI,SI=s((()=>{Y(),xI=e=>{let{type:t=`string`,name:n,label:r}=e.dataset,{value:i}=e.dataset;return t===`number`?(i=Number(i),Number.isNaN(i)&&(i=null)):t===`boolean`?i=i===`true`:t===`string`&&(i=i?String(i):``),{target:e,type:t,name:n,label:r,value:i}}})),CI,wI,TI,EI,DI,OI=s((()=>{Y(),Z(),ZF(),Yx(),SI(),CI=/\p{Diacritic}/gu,wI=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(CI,``).toLocaleLowerCase():``),TI={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}},EI=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=YF(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=TI[this.role];this.orientation=this.grid?`horizontal`:this.parent.getAttribute(`aria-orientation`)??n,this.childRoles=r,this.childSelectedAttr=i,this.childSelectedProp=i.replace(`aria-`,``),this.focusChild=a,this.selectFirst=o,this.parent.tabIndex=a?-1:0,(async()=>{await Jx(100),this.activate()})()}activate(){let{parent:e,allMembers:t,selected:n}=this;t.forEach((e,t)=>{let r=e.getAttribute(this.childSelectedAttr)===`true`||(n?e===n:this.selectFirst&&t===0),i=document.querySelector(`#${e.getAttribute(`aria-controls`)}`);e.id||=`${this.id}-item-${t+1}`,e.tabIndex=r?0:-1,e.setAttribute(this.childSelectedAttr,String(r)),i&&(i.inert=!r,i.setAttribute(`aria-labelledby`,e.id),i.setAttribute(`aria-hidden`,String(!r)),r&&globalThis.setTimeout(()=>{try{i.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{i.scrollIntoView(!0)}},300))}),e.addEventListener(`click`,this._onClick),e.addEventListener(`keydown`,this._onKeyDown),e.dispatchEvent(new CustomEvent(`Initialized`))}get selector(){return this.childRoles.map(e=>`[role="${e}"]`).join(`,`)}get allMembers(){return[...this.parent.querySelectorAll(this.selector)]}get activeMembers(){return this.allMembers.filter(e=>!e.matches(`[aria-disabled="true"], [aria-hidden="true"]`))}get selected(){return this.activeMembers.find(e=>e.matches(`[${this.childSelectedAttr}="true"]`))}get isDisabled(){return this.parent.matches(`[aria-disabled="true"]`)}get isReadOnly(){return this.parent.matches(`[aria-readonly="true"]`)}get grid(){return this.role===`grid`||this.role===`listbox`&&this.parent.matches(`.grid`)}selectTarget(e,t){if(this.isDisabled||this.isReadOnly){e.preventDefault();return}let n=t.getAttribute(`role`),r=t.closest(this.parentGroupSelector),i=e.type===`click`,a=e.type===`keydown`&&e.key===` `;this.activeMembers.forEach(o=>{let s=o.matches(`[role="menuitemcheckbox"]`),c=o.matches(`[role="menuitemradio"]`);if((s||c)&&(o.getAttribute(`role`)!==n||o.closest(this.parentGroupSelector)!==r))return;let l=s||this.multi,u=c||!l,d=o===t,f=o.matches(`[${this.childSelectedAttr}="true"]`),p=o.getAttribute(`aria-controls`),m=p?document.getElementById(p):null;l&&d&&(i||a)&&(o.setAttribute(this.childSelectedAttr,String(!f)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:!f}})),f||o.dispatchEvent(new CustomEvent(`Select`))),u&&f!==d&&(!c||a||i)&&(o.setAttribute(this.childSelectedAttr,String(d)),o.dispatchEvent(new CustomEvent(`Change`,{detail:{[this.childSelectedProp]:d}})),d&&(e.type===`keydown`&&o.matches(`[role="radio"]`)&&o.click(),o.dispatchEvent(new CustomEvent(`Select`)))),this.focusChild?globalThis.requestAnimationFrame(()=>{o.tabIndex=d?0:-1,d&&(o.focus(),o.dispatchEvent(new CustomEvent(`Focus`)))}):(o.classList.toggle(`focused`,d),d&&o.dispatchEvent(new CustomEvent(`Focus`))),m&&(m.inert=!d,m.setAttribute(`aria-hidden`,String(!d)),d&&globalThis.setTimeout(()=>{try{m.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{m.scrollIntoView(!0)}},300)),d&&(this.parent.setAttribute(`aria-activedescendant`,o.id),globalThis.setTimeout(()=>{try{o.scrollIntoView({block:`nearest`,inline:`nearest`,behavior:`auto`})}catch{o.scrollIntoView(!0)}},300))}),this.parent.dispatchEvent(new CustomEvent(`Change`,{detail:xI(t)}))}onClick(e){let t=e.target,n=t.matches(this.selector)?t:t.closest(this.selector);!n||e.button!==0||!this.clickToSelect||this.selectTarget(e,n)}onKeyDown(e){let{key:t,ctrlKey:n,metaKey:r,shiftKey:i,altKey:a}=e;if(i||a||n||r)return;let o=e.target,{allMembers:s,activeMembers:c}=this,l=(()=>{if(!this.focusChild)return c.find(e=>e.matches(`.focused`));if(o.matches(this.selector))return o})();if([`Enter`,` `,`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`].includes(t)&&e.preventDefault(),t===`Enter`){l?.click();return}if(t===` `){l&&this.selectTarget(e,l);return}let u,d;if(this.grid){let e=Math.floor(this.parent.clientWidth/c[0].clientWidth),n=bh();u=l?s.indexOf(l):-1,t===`ArrowUp`&&u>0&&(d=s[u-e]),t===`ArrowDown`&&u<s.length-1&&(d=s[u+e]),t===`ArrowLeft`&&u>0&&(d=s[u+(n?1:-1)]),t===`ArrowRight`&&u<s.length-1&&(d=s[u+(n?-1:1)]),d?.matches(`[aria-disabled="true"], [aria-hidden="true"]`)&&(d=void 0)}else{u=l?c.indexOf(l):-1;let e=bh(),n=this.orientation===`horizontal`?e?`ArrowRight`:`ArrowLeft`:`ArrowUp`,r=this.orientation===`horizontal`?e?`ArrowLeft`:`ArrowRight`:`ArrowDown`;t===n&&(u>0&&(d=c[u-1]),u<=0&&(d=c[c.length-1])),t===r&&(u<c.length-1&&(d=c[u+1]),u===c.length-1&&([d]=c))}d&&d!==l&&this.selectTarget(e,d)}destroy(){this.parent.removeEventListener(`click`,this._onClick),this.parent.removeEventListener(`keydown`,this._onKeyDown)}onUpdate({searchTerms:e}){let t=wI(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=wI(e.dataset.searchValue??e.dataset.label??e.querySelector(`.label`)?.textContent??e.textContent),r=!n.every(e=>t.includes(e));return e.dispatchEvent(new CustomEvent(`Toggle`,{detail:{hidden:r}})),r}).filter(e=>!e).length;i.dispatchEvent(new CustomEvent(`Filter`,{detail:{matched:a,total:r.length}}))}},DI=e=>t=>{let n=typeof e==`function`,r=new EI(t,n?e():e);return n&&ti(()=>{r.onUpdate(e())}),()=>{r.destroy()}}}));function kI(e,t){O(t,!0),K(e,jI);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`readonly`,3,!1),a=J(t,`required`,3,!1),o=J(t,`invalid`,3,!1),s=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var c=AI();ys(c,()=>({...s,role:`radiogroup`,class:`sui select-button-group ${t.class??``}`,hidden:n(),tabindex:`-1`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o()}),void 0,void 0,void 0,`svelte-lgqeeu`);var l=F(c);Eo(F(l),()=>t.children??E),D(l),D(c),Yo(c,DI),R(()=>l.inert=r()),U(e,c),k()}var AI,jI,Xae=s((()=>{Q(),Y(),OI(),AI=V(`<div><div role="none" class="inner svelte-lgqeeu"><!></div></div>`),jI={hash:`svelte-lgqeeu`,code:`.select-button-group.svelte-lgqeeu {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-lgqeeu:focus-visible {outline-width:0 !important;}.select-button-group.svelte-lgqeeu button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-lgqeeu button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-lgqeeu button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-lgqeeu button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-lgqeeu button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-lgqeeu [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-lgqeeu [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-lgqeeu [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-lgqeeu {display:contents;}`}}));function MI(e,t){O(t,!0);let n=J(t,`selected`,15,!1),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);tI(e,Xs(()=>r,{role:`radio`,get class(){return`sui select-button ${t.class??``}`},get"aria-checked"(){return n()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)}})),k()}var Zae=s((()=>{Q(),Y(),cI()}));function NI(e,t){O(t,!0);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`popupPosition`,3,`bottom-left`),a=J(t,`popupPositionBaseElement`,3,void 0),o=J(t,`showPopupBackdrop`,3,!1),s=J(t,`label`,3,``),c=J(t,`variant`,3,void 0),l=J(t,`size`,3,`medium`),u=J(t,`iconic`,3,!1),d=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`popupPosition`,`popupPositionBaseElement`,`showPopupBackdrop`,`label`,`variant`,`size`,`iconic`,`children`,`startIcon`,`endIcon`,`popup`]),f=N(void 0);var p={focus:()=>{z(f)?.focus()}},m=PI(),h=I(m);return tI(h,Xs(()=>d,{get class(){return`sui menu-button ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get label(){return s()},get variant(){return c()},get size(){return l()},get iconic(){return u()},"aria-haspopup":`menu`,get element(){return z(f)},set element(e){P(f,e,!0)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},endIcon:e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.endIcon),U(e,n)},a=e=>{zF(e,{name:`more_vert`})},o=e=>{zF(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.endIcon?e(i):u()?e(a,1):e(o,-1)}),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),$F(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup??E),U(e,r)},$$slots:{default:!0}}),U(e,m),k(p)}var PI,FI=s((()=>{Q(),Y(),cI(),BF(),eI(),PI=V(`<!> <!>`,1)}));function II(e,t){O(t,!0),K(e,RI);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`label`,3,``),a=J(t,`variant`,3,void 0),o=J(t,`size`,3,`medium`),s=J(t,`popupPosition`,3,`bottom-left`),c=J(t,`showPopupBackdrop`,3,!1),l=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),u=N(void 0);var d=LI(),f=F(d);tI(f,Xs(()=>l,{get hidden(){return n()},get disabled(){return r()},get label(){return i()},get variant(){return a()},get size(){return o()}}));var p=L(f,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{zF(e,{name:`arrow_drop_down`,class:`small-arrow`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},i=e=>{var n=H();Eo(I(n),()=>t.popup??E),U(e,n)},l=M(()=>X(`_sui.split_button.more_options`));NI(p,{iconic:!0,get hidden(){return n()},get disabled(){return r()},get variant(){return a()},get size(){return o()},get"aria-label"(){return z(l)},get popupPosition(){return s()},get popupPositionBaseElement(){return z(u)},get showPopupBackdrop(){return c()},endIcon:e,popup:i,$$slots:{endIcon:!0,popup:!0}})}D(d),Us(d,e=>P(u,e),()=>z(u)),R(e=>{q(d,`hidden`,n()),q(d,`aria-hidden`,n()),q(d,`aria-disabled`,r()),q(d,`aria-label`,e)},[()=>X(`_sui.split_button.x_options`,{values:{name:i()}})]),U(e,d),k()}var LI,RI,Qae=s((()=>{Q(),Y(),Z(),BF(),FI(),cI(),LI=V(`<div role="group" class="sui split-button svelte-wl358y"><!> <!></div>`),RI={hash:`svelte-wl358y`,code:`.split-button.svelte-wl358y {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-wl358y button {margin:0;}.split-button.svelte-wl358y button.menu-button {border-inline-start-width:0;border-start-start-radius:0;border-end-start-radius:0;aspect-ratio:3/4;}.split-button.svelte-wl358y button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}}));function zI(e,t){K(e,VI);let n=J(t,`hidden`,3,!1),r=J(t,`orientation`,3,`horizontal`),i=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]);var a=BI();ys(a,()=>({...i,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,void 0,`svelte-1698qg5`),U(e,a)}var BI,VI,HI=s((()=>{Q(),Y(),BI=V(`<div></div>`),VI={hash:`svelte-1698qg5`,code:`.divider.svelte-1698qg5 {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-1698qg5 {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-1698qg5 {margin:0 8px;width:1px;height:100%;}`}}));function UI(e,t){K(e,GI);let n=J(t,`flex`,3,!1),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]);var i=WI();ys(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Ss]:{flex:n()}}),void 0,void 0,void 0,`svelte-jhlmh6`),U(e,i)}var WI,GI,KI=s((()=>{Q(),Y(),WI=V(`<div></div>`),GI={hash:`svelte-jhlmh6`,code:`.spacer.flex.svelte-jhlmh6:not([hidden]) {display:block;flex:auto;}.spacer.svelte-jhlmh6:not(.flex) {width:8px;height:8px;}`}}));function $ae(e,t){K(e,JI);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`children`]);var o=qI();ys(o,()=>({...a,role:`group`,class:`sui checkbox-group ${t.class??``} ${i()??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-roledescription":`checkbox group`}),void 0,void 0,void 0,`svelte-bil6vr`);var s=F(o);Eo(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),U(e,o)}var qI,JI,eoe=s((()=>{Q(),Y(),qI=V(`<div><div role="none" class="inner svelte-bil6vr"><!></div></div>`),JI={hash:`svelte-bil6vr`,code:`.checkbox-group.svelte-bil6vr {display:inline-flex;}.checkbox-group.horizontal.svelte-bil6vr {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-bil6vr {gap:4px;flex-direction:column;}
647
647
  @media (pointer: coarse) {.checkbox-group.vertical.svelte-bil6vr {gap:8px;}
@@ -775,91 +775,122 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
775
775
  @media (prefers-reduced-motion) {*,
776
776
  ::before,
777
777
  ::after {scroll-behavior:auto;transition-duration:1ms !important;}
778
- }::selection {background-color:var(--sui-primary-accent-color-translucent);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-primary-accent-color-translucent);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 32px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 28px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 24px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 20px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 16px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 12px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-17994lf a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-17994lf {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-17994lf {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-17994lf {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-17994lf {display:flex;flex-direction:column;overflow:hidden;}`}}));function P$(e,t){K(e,I$);let n=J(t,`children`,3,void 0);var r=F$();Eo(F(r),()=>n()??E),D(r),U(e,r)}var F$,I$,oue=s((()=>{Q(),Y(),F$=V(`<div role="none" class="sui empty-state svelte-3x1zkm"><!></div>`),I$={hash:`svelte-3x1zkm`,code:`.empty-state.svelte-3x1zkm {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}}));function L$(e,t){K(e,z$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`]);var a=R$();ys(a,()=>({...i,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,void 0,`svelte-1uka9k4`);var o=F(a);Eo(F(o),()=>t.children??E),D(o),D(a),R(()=>o.inert=r()),U(e,a)}var R$,z$,sue=s((()=>{Q(),Y(),R$=V(`<div><div role="none" class="inner svelte-1uka9k4"><!></div></div>`),z$={hash:`svelte-1uka9k4`,code:`.inner.svelte-1uka9k4 {display:contents;}`}})),cue=s((()=>{})),B$=s((()=>{wae(),HF(),Gae(),qae(),_I(),cI(),Yae(),Xae(),Zae(),Qae(),Q(),Y(),Z(),dh(),HI(),KI(),BF(),eoe(),toe(),noe(),roe(),oL(),ioe(),QF(),aoe(),ooe(),soe(),coe(),uoe(),PL(),doe(),HL(),FI(),eR(),foe(),QL(),KL(),moe(),hoe(),goe(),_oe(),voe(),yoe(),boe(),MR(),koe(),PR(),joe(),Moe(),Noe(),Foe(),Loe(),zoe(),Voe(),Uoe(),Ble(),eue(),nue(),pL(),DR(),rue(),p$(),az(),n$(),JF(),aue(),oue(),sue(),cue(),Cae()})),V$,H$,U$,W$,G$,K$=s((()=>{cS(),Sp(),V$=u(YM(),1),ZO(),H$=(e,t,n,r)=>{let i=XO(t),a={};return e.forEach(e=>{let t=n(e),o=t==null?r:i?String(t).match(i)?.[0]??r:String(t);o in a||(a[o]=[]),a[o].push(e)}),Object.entries(a).sort(([e],[t])=>xp(e,t))},U$=(e,t,n)=>n?n.test(String(e??``)):e===t,W$=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?xp(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},G$=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new aS(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,V$.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})),q$,lue=s((()=>{AS(),K$(),ZO(),q$=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>kS(e)===n);let r=XO(n);return e.filter(e=>{let i=e[t];return U$(i,n,r)})}})),J$,uue=s((()=>{Z(),K$(),J$=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=X(`other`);return Object.fromEntries(H$(e,n,e=>e[t],r))}})),Y$,X$,Z$,due=s((()=>{Y$=u(YM(),1),rp(),Hp(),l1(),K$(),X$=un(),Z$=async({repository:e})=>{await G$(e,`assets-view`,X$),Ip.subscribe(e=>{let t=A(X$)?.[e?.internalPath??`*`]??structuredClone(a1);(0,Y$.default)(t,A(o1))||o1.set(t)}),o1.subscribe(e=>{let t=A(Ip)?.internalPath??`*`;(0,Y$.default)(e,A(X$)?.[t]??{})||X$.update(n=>({...n,[t]:e}))})}})),Q$,$$,fue=s((()=>{K$(),Q$=(e,t)=>{let{commitAuthor:{name:n,login:r,email:i}={},commitDate:a}=e;return t===`commit_author`?n||r||i:t===`commit_date`?a:t===`name`?e.name.split(`.`)[0]:e[t]??``},$$=(e,{key:t,order:n}={})=>{if(!t||!n)return e;let r=[...e],i={commit_author:String,commit_date:Date}[t]||r[0]?.[t]?.constructor||String;return W$(r,e=>{let n=Q$(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})),e1,t1,n1,r1,i1,a1,o1,s1,c1,l1=s((()=>{Z(),e1=u(YM(),1),rp(),SF(),Hp(),lue(),uue(),due(),fue(),kP(),qb(),Yy(),eN(),t1=un(!1),n1=un(!1),r1=dn([pF],([e],t)=>{t(!!e.files.length)}),i1=({collectionName:e,fileName:t,internalPath:n})=>{if(e===void 0)return X(n===void 0?`all_assets`:`global_assets`);let r=Wb(e),i=r?Gb(r):e;if(!t)return i;let a=r?Wy(r,t):void 0;return`${i} › ${a?Gy(a):t}`},a1={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},o1=un({type:`grid`,showInfo:!0}),s1=dn([oF,Ip],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,e1.default)(e,t))):n(e?[...e]:[])}),c1=dn([s1,o1],([e,t],n)=>{let r=[...e];r=$$(r,t.sort),r=q$(r,t.filter);let i=J$(r,t.group);(0,e1.default)(A(c1),i)||n(i)}),DP.subscribe(e=>{e&&!A(X$)&&Z$(e)}),s1.subscribe(e=>{uF.set([]),A($M).devModeEnabled&&console.info(`listedAssets`,e)})})),u1,d1=s((()=>{u1=e=>e?window.open(e,`_blank`,`noopener,noreferrer`):null})),f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1=s((()=>{Yx(),oc(),rp(),l1(),$P(),RF(),d1(),f1=dn([AF,t1],([e,t])=>e||t),p1=un(``),m1=un(``),h1=(e=window.location.href)=>{let{origin:t,hash:n}=new URL(e),{pathname:r,searchParams:i}=new URL(`${t}${n.substring(1)}`);return{path:decodeURIComponent(r),params:Object.fromEntries([...new Set(i.keys())].map(e=>[e,i.getAll(e).join(`,`)]))}},g1=null,_1=(e,t)=>{if(!document.startViewTransition||g1){t();return}let n={types:[e],update:async()=>{t(),await Jx(50),await new Promise(e=>{Tn(()=>{e(void 0)})})}};try{g1=document.startViewTransition(n),g1.finished.finally(()=>{g1=null})}catch{t()}},v1=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=h1(i).path,s=h1(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;_1(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},y1=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=h1();if(a===e&&!Object.keys(t).length&&!n)return;let{origin:o,pathname:s,hash:c}=window.location,l=`${o}${s}${c}`,u=`${o}${s}#${e}`,d=[{...t,from:l},``,u];n?window.history.replaceState(...d):window.history.pushState(...d),r&&_1(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},b1=(e,t={})=>{let n=`backwards`;window.history.state?.from?_1(n,()=>{window.history.back()}):y1(e,{...t,transitionType:n})},x1=()=>{let{display_url:e,_siteURL:t}=A(JP);u1(e||t||`/`)}})),C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1,P1,F1,I1=s((()=>{Z(),p(),cS(),rp(),S1(),kP(),$P(),Vy(),Gj(),eN(),C1=un({message:``,context:`authentication`}),w1=un(!0),T1=un(!1),E1=async()=>{await sS.set(`sveltia-cms.user`,{}),Wj.set(void 0),w1.set(!0)},D1=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await E1()},O1=()=>{C1.set({message:``,context:`authentication`})},k1=(e,t=`authentication`)=>{let n=e.cause?.message||X(`unexpected_error`);e.name===`NotFoundError`&&(n=X(`sign_in_error.not_project_root`)),e.name===`AbortError`&&(n=X(A(EP)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),C1.set({message:n,context:t}),console.error(e.name,e.message,e.cause)},A1=()=>{let{path:e}=h1(),{encodedData:t}=e.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};y1(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));d(e)&&typeof e.token==`string`&&(n={token:e.token},d(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},j1=async()=>{let e=await sS.get(`sveltia-cms.user`)||await sS.get(`decap-cms-user`)||await sS.get(`netlify-cms-user`);if(d(e)&&typeof e.backendName==`string`)return e},M1=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:A(JP).backend.name;return EP.set(t),A(DP)},N1=async()=>{O1();let e,t;if({_user:e,copiedPrefs:t}=A1(),e??=await j1(),!e)return;let n=M1(e);if(e&&n){Wj.set(e);let{token:t,refreshToken:r}=e;T1.set(!0);try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,Wj.set(void 0)}}if(T1.set(!1),w1.set(!e),!(!e||!n)){Wj.set(e),t&&$M.update(e=>({...e,...t}));try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?w1.set(!0):k1(e,`dataFetch`),await D1(e)}}},P1=async(e,t)=>{O1(),EP.set(e);let n=A(DP);if(!n)return;let r;T1.set(!0);try{r=await n.signIn({token:t,auto:!1})}catch(e){T1.set(!1),w1.set(!0),t&&e.cause?.status===401?k1(Error(`Invalid token`,{cause:{message:X(`sign_in_error.invalid_token`)}})):k1(e);return}if(T1.set(!1),w1.set(!r),r){Wj.set(r);try{await n.fetchFiles()}catch(e){k1(e,`dataFetch`),await D1(e)}}},F1=async()=>{await A(DP)?.signOut(),await E1(),EP.set(void 0),Ny.set(!1);let e=A(JP)?.logout_redirect_url;e&&(window.location.href=e)}}));function L1(e,t){O(t,!0),K(e,K1);let n=()=>j(JP,`$cmsConfig`,c),r=()=>j(FA,`$isLocalHost`,c),i=()=>j(C1,`$signInError`,c),a=()=>j(T1,`$signingIn`,c),o=()=>j(IA,`$isLocalBackendSupported`,c),s=()=>j(LA,`$isBrave`,c),[c,l]=hn(),u=N(!1),d=N(``),f=M(()=>n()?.backend),p=M(()=>z(f).name),m=M(()=>z(p)?SP[z(p)]:null),h=M(()=>z(p)===`test-repo`),g=M(()=>z(h)?void 0:z(f)?.repo?.split(`/`).pop()),_=M(()=>r()&&!z(h)),v=M(()=>!z(h)&&z(f).auth_methods?.includes(`token`)===!1),y=M(()=>z(p)===`gitea`&&z(f).base_url===`https://codeberg.org`?`Codeberg`:z(m)?.label),b=M(()=>!z(h)&&z(f).auth_methods?.includes(`oauth`)===!1||z(p)===`gitea`&&!z(f).app_id);ic(()=>{i().message||N1()});var x=G1(),S=I(x),C=F(S),w=e=>{var t=R1(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`signing_in`)]),U(e,t)},ee=e=>{var t=H1(),n=I(t),r=e=>{var t=V1(),n=I(t);{let e=M(()=>X(`work_with_local_repo`)),t=M(()=>!o());tI(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await P1(`local`)}})}var r=L(n,2),a=e=>{var t=z1(),n=F(t),r=e=>{var t=H();So(I(t),()=>Wk(X(`local_workflow.disabled`),`https://sveltiacms.app/en/docs/workflows/local#enabling-file-system-access-api-in-brave`)),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`local_workflow.unsupported_browser`)]),U(e,t)};G(n,e=>{s()?e(r):e(i,-1)}),D(t),U(e,t)},c=e=>{var t=B1(),n=F(t),r=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description`,{values:{repo:z(g)}})]),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description_no_repo`)]),U(e,t)};G(n,e=>{z(g)?e(r):e(i,-1)}),D(t),U(e,t)};G(r,e=>{o()?i().message||e(c,1):e(a)}),UI(L(r,2),{}),U(e,t)};G(n,e=>{z(_)&&e(r)});var a=L(n,2);{let e=M(()=>z(_)?`secondary`:`primary`),t=M(()=>z(h)?X(`work_with_test_repo`):X(`sign_in_with_x`,{values:{service:z(y)}}));tI(a,{get variant(){return z(e)},get label(){return z(t)},get disabled(){return z(b)},onclick:async()=>{await P1(z(p))}})}var c=L(a,2),l=e=>{{let t=M(()=>X(`sign_in_using_access_token`,{values:{service:z(y)}}));tI(e,{variant:`secondary`,get label(){return z(t)},get disabled(){return z(v)},onclick:()=>{P(u,!0)}})}};G(c,e=>{z(h)||e(l)}),U(e,t)};G(C,e=>{a()?e(w):z(m)&&e(ee,1)});var T=L(C,2),te=e=>{var t=U1(),n=F(t);zF(n,{name:`error`});var r=L(n);D(t),R(()=>W(r,` ${i().message??``}`)),U(e,t)};G(T,e=>{i().message&&i().context===`authentication`&&e(te)}),D(S);var ne=L(S,2);{let e=M(()=>X(`sign_in_using_access_token`)),t=M(()=>({spellcheck:!1,"aria-label":X(`personal_access_token`)})),n=M(()=>X(`sign_in`)),r=M(()=>!z(d).trim());mL(ne,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{await P1(z(p),z(d).trim())},get open(){return z(u)},set open(e){P(u,e,!0)},get value(){return z(d)},set value(e){P(d,e,!0)},children:(e,t)=>{_t();var n=W1(),r=I(n),i=L(r),a=e=>{var t=H();So(I(t),()=>Wk(X(`sign_in_using_access_token_link`,{values:{service:z(y)}}),z(m).repository.tokenPageURL)),U(e,t)};G(i,e=>{z(m)?.repository?.tokenPageURL&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`sign_in_using_access_token_description`)]),U(e,n)},$$slots:{default:!0}})}U(e,x),k(),l()}var R1,z1,B1,V1,H1,U1,W1,G1,K1,pue=s((()=>{Q(),Y(),Z(),B$(),oc(),kP(),$P(),I1(),WA(),Gk(),R1=V(`<div role="alert" class="message"> </div>`),z1=V(`<div role="alert"><!></div>`),B1=V(`<div role="none"><!></div>`),V1=V(`<!> <!> <!>`,1),H1=V(`<!> <!> <!>`,1),U1=V(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),W1=V(` <!>`,1),G1=V(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),K1={hash:`svelte-1ff54ya`,code:`.buttons.svelte-1ff54ya {display:flex;flex-direction:column;align-items:center;gap:12px;}.buttons.svelte-1ff54ya .button {width:320px;}[role=alert].iconic.svelte-1ff54ya {display:flex;align-items:center;gap:8px;}[role=alert].error.svelte-1ff54ya {color:var(--sui-error-foreground-color);}`}})),q1,mue=s((()=>{q1=`<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>`})),J1,Y1,X1,Z1,Q1,$1=s((()=>{bS(),rp(),mue(),$P(),J1=`Sveltia CMS`,Y1=`data:image/svg+xml;base64,${btoa(q1)}`,X1=dn([JP],([e])=>e?.app_title||`Sveltia CMS`),Z1=dn([JP],([e])=>e?.logo?.src||e?.logo_url||Y1),Q1=dn(Z1,e=>{let t=e.match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/);return t?t[1]:yS.getType(e)??void 0})}));function hue(e,t){O(t,!0),K(e,d0);let n=()=>j(ZP,`$cmsConfigLoaded`,h),r=()=>j(X1,`$appTitle`,h),i=()=>j(Z1,`$appLogoURL`,h),a=()=>j(XP,`$cmsConfigErrors`,h),o=()=>j(QM,`$prefsError`,h),s=()=>j(JP,`$cmsConfig`,h),c=()=>j($M,`$prefs`,h),l=()=>j(C1,`$signInError`,h),u=()=>j(nM,`$inAuthPopup`,h),d=()=>j(Wj,`$user`,h),f=()=>j(w1,`$unauthenticated`,h),p=()=>j(Ny,`$dataLoaded`,h),m=()=>j(Py,`$dataLoadedProgress`,h),[h,g]=hn();ti(()=>{n()&&mn(m1,X(`welcome_message`,{values:{name:r()}}))});var _=u0(),v=I(_),y=F(v),b=F(y),x=e=>{var t=t0(),n=I(t),a=L(n,2),o=F(a,!0);D(a),R(()=>{q(n,`src`,i()),W(o,r())}),U(e,t)};G(b,e=>{n()&&e(x)});var S=L(b,2),C=e=>{var t=r0(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);mo(i,5,a,e=>e,(e,t)=>{var n=n0();e0(F(n),()=>z(t)),D(n),U(e,n)}),D(i),D(t),R(e=>W(r,e),[()=>X(`config.errors`,{values:{count:a().length}})]),U(e,t)},w=e=>{var t=i0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`prefs.error.${o().type}`)]),U(e,t)},ee=e=>{var t=a0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading_cms_config`)]),U(e,t)},T=e=>{var t=o0(),n=I(t),r=F(n),i=F(r,!0);D(r);var a=L(r,2);e0(F(a),()=>l().message),D(a),D(n),L1(L(n,2),{}),R(e=>W(i,e),[()=>X(`loading_site_data_error`)]),U(e,t)},te=e=>{var t=s0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`authorizing`)]),U(e,t)},ne=e=>{L1(e,{})},re=e=>{var t=c0(),n=I(t),r=F(n,!0);D(n);var i=L(n,2),a=e=>{poe(e,{get now(){return m()}})};G(i,e=>{m()!==void 0&&e(a)}),R(e=>W(r,e),[()=>X(`loading_site_data`)]),U(e,t)};G(S,e=>{a().length?e(C):o()?e(w,1):!s()||!c()?e(ee,2):l().message&&l().context===`dataFetch`?e(T,3):u()?e(te,4):!d()||f()?e(ne,5):p()||e(re,6)}),D(y),D(v);var ie=L(v,2),ae=e=>{var t=l0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`powered_by`,{values:{name:J1}})]),U(e,t)};G(ie,e=>{n()&&r()!==`Sveltia CMS`&&e(ae)}),U(e,_),k(),g()}var e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,gue=s((()=>{Q(),Y(),Z(),B$(),kE(),lO(),pue(),$1(),S1(),pM(),$P(),Vy(),Gj(),I1(),eN(),e0=(e,t=E)=>{var n=H();So(I(n),()=>OE(BE.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),U(e,n)},t0=V(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),n0=V(`<li><!></li>`),r0=V(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),i0=V(`<div role="alert" class="message"> </div>`),a0=V(`<div role="alert" class="message"> </div>`),o0=V(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),s0=V(`<div role="alert" class="message"> </div>`),c0=V(`<div role="alert" class="message"> </div> <!>`,1),l0=V(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),u0=V(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),d0={hash:`svelte-7ua6x9`,code:`.container.svelte-7ua6x9 {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;}.container.svelte-7ua6x9 .inner:where(.svelte-7ua6x9) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) {width:auto;height:160px;}
779
- @media (width < 768px) {.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) {height:120px;}
780
- }.container.svelte-7ua6x9 h1:where(.svelte-7ua6x9) {font-size:48px;}.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) ~ h1:where(.svelte-7ua6x9) {font-size:var(--sui-font-size-xxx-large);}.container.svelte-7ua6x9 .error:where(.svelte-7ua6x9) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);text-align:center;-webkit-user-select:text;user-select:text;cursor:text;}.container.svelte-7ua6x9 .message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;}.container.svelte-7ua6x9 .message ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}.container.svelte-7ua6x9 .message li {margin:12px;padding:0;}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}}));function _ue(e,t){O(t,!0);let n=()=>j(DP,`$backend`,i),r=()=>j(JP,`$cmsConfig`,i),[i,a]=hn(),o=0,s=N(!1),c=N(`none`),l=async()=>{n()?.checkStatus&&P(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),P(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};ic(()=>(P(s,!0),()=>{d()})),ti(()=>{z(s),n(),r(),f()});var p=H(),m=I(p),h=e=>{var t=p0(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);lo(r,()=>({"--sui-infobar-message-justify-content":`center`})),lI(r.lastChild,{get status(){return z(e)},children:(e,t)=>{_t();var r=f0(),i=I(r),a=L(i);{let e=M(()=>X(`details`));tI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{u1(n()?.statusDashboardURL)}})}R(e=>W(i,`${e??``} `),[()=>X(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),U(e,r)},$$slots:{default:!0}}),D(r)}U(e,t)},g=M(()=>[`minor`,`major`].includes(z(c)));G(m,e=>{z(g)&&e(h)}),U(e,p),k(),a()}var f0,p0,vue=s((()=>{Q(),Y(),Z(),B$(),oc(),kP(),$P(),d1(),f0=V(` <!>`,1),p0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function yue(e,t){O(t,!0);let n=0,r=0,i=N(!1),a=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===kw)return;document.querySelector(`script[src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"]`)?r=window.setTimeout(()=>{P(i,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};ic(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=H(),s=I(o),c=e=>{var t=h0(),n=I(t);lo(n,()=>({"--sui-infobar-message-justify-content":`center`})),lI(n.lastChild,{children:(e,t)=>{_t();var n=m0(),r=I(n),i=L(r);{let e=M(()=>X(`update_now`));tI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>W(r,`${e??``} `),[()=>X(`update_available`)]),U(e,n)},$$slots:{default:!0}}),D(n),U(e,t)};G(s,e=>{z(i)&&e(c)}),U(e,o),k()}var m0,h0,bue=s((()=>{Q(),Y(),Z(),B$(),oc(),Aw(),m0=V(` <!>`,1),h0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),g0,_0=s((()=>{g0=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),v0,xue=s((()=>{Fw(),vT(),_0(),v0=async(e,t)=>{let n=t===`image`?await dT(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await Pw(`exifr`,`dist/lite.esm.mjs`),{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=await r(n).catch(()=>{})??{};return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:g0(i,7),longitude:g0(a,7)}:void 0}}})),y0,b0,x0,S0,Sue=s((()=>{xue(),y0=e=>{let t=new Image;return new Promise(n=>{t.addEventListener(`load`,()=>{n({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})},{once:!0}),t.src=e})},b0=async(e,t)=>{let n=document.createElement(t);return new Promise(r=>{n.addEventListener(`loadedmetadata`,()=>{let{duration:e}=n;t===`audio`&&r({duration:e});let{videoWidth:i,videoHeight:a}=n;r({dimensions:{width:i,height:a},duration:e})},{once:!0}),n.src=e})},x0=async(e,t)=>t===`image`?y0(e):b0(e,t),S0=async(e,t,n)=>{let{dimensions:r,duration:i}=await x0(t,n),{createdDate:a,coordinates:o}=await v0(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),C0,w0,T0,E0=s((()=>{rp(),vT(),kP(),ak(),Sue(),C0={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},w0=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=A(DP)?.repository??{},i=await fT(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await S0(e,i,t)),{...a,publicURL:hT(e),repoBlobURL:r?`${r}/${n}`:void 0}},T0=async e=>{let t=hT(e,{allowSpecial:!0,pathOnly:!0})??await fT(e);return t?rk(t):[]}}));function D0(e,t){O(t,!0);let n=e=>{var t=O0(),n=I(t);{let e=M(()=>X(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);qL(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=L(n,2);{let e=M(()=>X(`file_paths`,{values:{count:r().length}}));qL(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=L(i,2);{let e=M(()=>X(`file_data`)),t=M(()=>!z(o));qL(a,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(p,`asset_data_copied`)}})}U(e,t)},r=J(t,`assets`,19,()=>[]),i=J(t,`useButton`,3,!0),a=N(Cr([])),o=N(!1),s=Cr({show:!1,text:``,status:`success`}),c=M(()=>z(a).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),l,u=async()=>{if(l=void 0,r().length!==1)return!1;let e=await dT(r()[0]),{type:t}=e;return l=e,Ep(t)?!0:Hw.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
778
+ }::selection {background-color:var(--sui-primary-accent-color-translucent);}* {-webkit-tap-highlight-color:transparent;}:focus {z-index:1;outline-width:0;}:focus-visible {outline-color:var(--sui-primary-accent-color-translucent);z-index:2;}h1 {margin:var(--sui-h1-margin, var(--sui-heading-margin));font-size:var(--sui-h1-font-size, 32px);font-family:var(--sui-h1-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h1-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h1-line-height, var(--sui-heading-line-height));}h2 {margin:var(--sui-h2-margin, var(--sui-heading-margin));font-size:var(--sui-h2-font-size, 28px);font-family:var(--sui-h2-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h2-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h2-line-height, var(--sui-heading-line-height));}h3 {margin:var(--sui-h3-margin, var(--sui-heading-margin));font-size:var(--sui-h3-font-size, 24px);font-family:var(--sui-h3-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h3-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h3-line-height, var(--sui-heading-line-height));}h4 {margin:var(--sui-h4-margin, var(--sui-heading-margin));font-size:var(--sui-h4-font-size, 20px);font-family:var(--sui-h4-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h4-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h4-line-height, var(--sui-heading-line-height));}h5 {margin:var(--sui-h5-margin, var(--sui-heading-margin));font-size:var(--sui-h5-font-size, 16px);font-family:var(--sui-h5-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h5-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h5-line-height, var(--sui-heading-line-height));}h6 {margin:var(--sui-h6-margin, var(--sui-heading-margin));font-size:var(--sui-h6-font-size, 12px);font-family:var(--sui-h6-font-family, var(--sui-heading-font-family));font-weight:var(--sui-h6-font-weight, var(--sui-heading-font-weight));line-height:var(--sui-h6-line-height, var(--sui-heading-line-height));}strong {font-weight:var(--sui-font-weight-bold, bold);}a {color:var(--sui-primary-accent-color-text);text-decoration:none;text-underline-offset:2px;}a:is(:hover, :focus, :active) {text-decoration:underline;}:is(:root, :host)[data-underline-links=true].svelte-17994lf a {text-decoration:underline;}:is(p, ul, ol, dl) {margin:var(--sui-paragraph-margin) 0;line-height:var(--sui-line-height-comfortable);}:is(ul, ol) {padding-inline:2em;}:is(code, pre) {border-radius:4px;background-color:var(--sui-code-background-color);font-family:var(--sui-font-family-monospace);font-size:var(--sui-font-size-monospace);vertical-align:-0.05em;}pre {padding:8px;line-height:var(--sui-line-height-compact);-webkit-user-select:text;user-select:text;}code {padding:2px 4px;}table {border-collapse:collapse;}:is(th, td) {border:1px solid var(--sui-textbox-border-color);padding:8px;}blockquote {margin-inline:16px 0;border-inline-start:4px solid var(--sui-textbox-border-color);padding-inline-start:12px;}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;filter:grayscale(1) opacity(0.35);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]):not(body) * {filter:grayscale(0) opacity(1);}:is(.disabled, .readonly, [aria-disabled=true], [aria-readonly=true], [inert]) * {cursor:default;pointer-events:none;-webkit-user-select:none;user-select:none;}.font-loader.svelte-17994lf {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-17994lf {position:fixed;inset:0;overflow:hidden;width:100%;height:100%;color:var(--sui-primary-foreground-color);background-color:var(--sui-primary-background-color);font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);word-spacing:var(--sui-word-spacing-normal);-webkit-user-select:none;user-select:none;touch-action:none;cursor:default;}.app-shell.horizontal.svelte-17994lf {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-17994lf {display:flex;flex-direction:column;overflow:hidden;}`}}));function P$(e,t){K(e,I$);let n=J(t,`children`,3,void 0);var r=F$();Eo(F(r),()=>n()??E),D(r),U(e,r)}var F$,I$,oue=s((()=>{Q(),Y(),F$=V(`<div role="none" class="sui empty-state svelte-3x1zkm"><!></div>`),I$={hash:`svelte-3x1zkm`,code:`.empty-state.svelte-3x1zkm {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}}));function L$(e,t){K(e,z$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`]);var a=R$();ys(a,()=>({...i,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,void 0,`svelte-1uka9k4`);var o=F(a);Eo(F(o),()=>t.children??E),D(o),D(a),R(()=>o.inert=r()),U(e,a)}var R$,z$,sue=s((()=>{Q(),Y(),R$=V(`<div><div role="none" class="inner svelte-1uka9k4"><!></div></div>`),z$={hash:`svelte-1uka9k4`,code:`.inner.svelte-1uka9k4 {display:contents;}`}})),cue=s((()=>{})),B$=s((()=>{wae(),HF(),Gae(),qae(),_I(),cI(),Yae(),Xae(),Zae(),Qae(),Q(),Y(),Z(),dh(),HI(),KI(),BF(),eoe(),toe(),noe(),roe(),oL(),ioe(),QF(),aoe(),ooe(),soe(),coe(),uoe(),PL(),doe(),HL(),FI(),eR(),foe(),QL(),KL(),moe(),hoe(),goe(),_oe(),voe(),yoe(),boe(),MR(),koe(),PR(),joe(),Moe(),Noe(),Foe(),Loe(),zoe(),Voe(),Uoe(),Ble(),eue(),nue(),pL(),DR(),rue(),p$(),az(),n$(),JF(),aue(),oue(),sue(),cue(),Cae()})),V$,H$,U$,W$,G$,K$=s((()=>{cS(),Sp(),V$=u(YM(),1),ZO(),H$=(e,t,n,r)=>{let i=XO(t),a={};return e.forEach(e=>{let t=n(e),o=t==null?r:i?String(t).match(i)?.[0]??r:String(t);o in a||(a[o]=[]),a[o].push(e)}),Object.entries(a).sort(([e],[t])=>xp(e,t))},U$=(e,t,n)=>n?n.test(String(e??``)):e===t,W$=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?xp(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},G$=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new aS(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,V$.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})),q$,lue=s((()=>{AS(),K$(),ZO(),q$=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>kS(e)===n);let r=XO(n);return e.filter(e=>{let i=e[t];return U$(i,n,r)})}})),J$,uue=s((()=>{Z(),K$(),J$=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=X(`other`);return Object.fromEntries(H$(e,n,e=>e[t],r))}})),Y$,X$,Z$,due=s((()=>{Y$=u(YM(),1),rp(),Hp(),l1(),K$(),X$=un(),Z$=async({repository:e})=>{await G$(e,`assets-view`,X$),Ip.subscribe(e=>{let t=A(X$)?.[e?.internalPath??`*`]??structuredClone(a1);(0,Y$.default)(t,A(o1))||o1.set(t)}),o1.subscribe(e=>{let t=A(Ip)?.internalPath??`*`;(0,Y$.default)(e,A(X$)?.[t]??{})||X$.update(n=>({...n,[t]:e}))})}})),Q$,$$,fue=s((()=>{K$(),Q$=(e,t)=>{let{commitAuthor:{name:n,login:r,email:i}={},commitDate:a}=e;return t===`commit_author`?n||r||i:t===`commit_date`?a:t===`name`?e.name.split(`.`)[0]:e[t]??``},$$=(e,{key:t,order:n}={})=>{if(!t||!n)return e;let r=[...e],i={commit_author:String,commit_date:Date}[t]||r[0]?.[t]?.constructor||String;return W$(r,e=>{let n=Q$(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})),e1,t1,n1,r1,i1,a1,o1,s1,c1,l1=s((()=>{Z(),e1=u(YM(),1),rp(),SF(),Hp(),lue(),uue(),due(),fue(),kP(),qb(),Yy(),eN(),t1=un(!1),n1=un(!1),r1=dn([pF],([e],t)=>{t(!!e.files.length)}),i1=({collectionName:e,fileName:t,internalPath:n})=>{if(e===void 0)return X(n===void 0?`all_assets`:`global_assets`);let r=Wb(e),i=r?Gb(r):e;if(!t)return i;let a=r?Wy(r,t):void 0;return`${i} › ${a?Gy(a):t}`},a1={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},o1=un({type:`grid`,showInfo:!0}),s1=dn([oF,Ip],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,e1.default)(e,t))):n(e?[...e]:[])}),c1=dn([s1,o1],([e,t],n)=>{let r=[...e];r=$$(r,t.sort),r=q$(r,t.filter);let i=J$(r,t.group);(0,e1.default)(A(c1),i)||n(i)}),DP.subscribe(e=>{e&&!A(X$)&&Z$(e)}),s1.subscribe(e=>{uF.set([]),A($M).devModeEnabled&&console.info(`listedAssets`,e)})})),u1,d1=s((()=>{u1=e=>e?window.open(e,`_blank`,`noopener,noreferrer`):null})),f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1=s((()=>{Yx(),oc(),rp(),l1(),$P(),RF(),d1(),f1=dn([AF,t1],([e,t])=>e||t),p1=un(``),m1=un(``),h1=(e=window.location.href)=>{let{origin:t,hash:n}=new URL(e),{pathname:r,searchParams:i}=new URL(`${t}${n.substring(1)}`);return{path:decodeURIComponent(r),params:Object.fromEntries([...new Set(i.keys())].map(e=>[e,i.getAll(e).join(`,`)]))}},g1=null,_1=(e,t)=>{if(!document.startViewTransition||g1){t();return}let n={types:[e],update:async()=>{t(),await Jx(50),await new Promise(e=>{Tn(()=>{e(void 0)})})}};try{g1=document.startViewTransition(n),g1.finished.finally(()=>{g1=null})}catch{t()}},v1=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=h1(i).path,s=h1(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;_1(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},y1=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=h1();if(a===e&&!Object.keys(t).length&&!n)return;let{origin:o,pathname:s,hash:c}=window.location,l=`${o}${s}${c}`,u=`${o}${s}#${e}`,d=[{...t,from:l},``,u];n?window.history.replaceState(...d):window.history.pushState(...d),r&&_1(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},b1=(e,t={})=>{let n=`backwards`;window.history.state?.from?_1(n,()=>{window.history.back()}):y1(e,{...t,transitionType:n})},x1=()=>{let{display_url:e,_siteURL:t}=A(JP);u1(e||t||`/`)}})),C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1,P1,F1,I1=s((()=>{Z(),p(),cS(),rp(),S1(),kP(),$P(),Vy(),Gj(),eN(),C1=un({message:``,context:`authentication`}),w1=un(!0),T1=un(!1),E1=async()=>{await sS.set(`sveltia-cms.user`,{}),Wj.set(void 0),w1.set(!0)},D1=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await E1()},O1=()=>{C1.set({message:``,context:`authentication`})},k1=(e,t=`authentication`)=>{let n=e.cause?.message||X(`unexpected_error`);e.name===`NotFoundError`&&(n=X(`sign_in_error.not_project_root`)),e.name===`AbortError`&&(n=X(A(EP)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),C1.set({message:n,context:t}),console.error(e.name,e.message,e.cause)},A1=()=>{let{path:e}=h1(),{encodedData:t}=e.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};y1(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));d(e)&&typeof e.token==`string`&&(n={token:e.token},d(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},j1=async()=>{let e=await sS.get(`sveltia-cms.user`)||await sS.get(`decap-cms-user`)||await sS.get(`netlify-cms-user`);if(d(e)&&typeof e.backendName==`string`)return e},M1=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:A(JP).backend.name;return EP.set(t),A(DP)},N1=async()=>{O1();let e,t;if({_user:e,copiedPrefs:t}=A1(),e??=await j1(),!e)return;let n=M1(e);if(e&&n){Wj.set(e);let{token:t,refreshToken:r}=e;T1.set(!0);try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,Wj.set(void 0)}}if(T1.set(!1),w1.set(!e),!(!e||!n)){Wj.set(e),t&&$M.update(e=>({...e,...t}));try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?w1.set(!0):k1(e,`dataFetch`),await D1(e)}}},P1=async(e,t)=>{O1(),EP.set(e);let n=A(DP);if(!n)return;let r;T1.set(!0);try{r=await n.signIn({token:t,auto:!1})}catch(e){T1.set(!1),w1.set(!0),t&&e.cause?.status===401?k1(Error(`Invalid token`,{cause:{message:X(`sign_in_error.invalid_token`)}})):k1(e);return}if(T1.set(!1),w1.set(!r),r){Wj.set(r);try{await n.fetchFiles()}catch(e){k1(e,`dataFetch`),await D1(e)}}},F1=async()=>{await A(DP)?.signOut(),await E1(),EP.set(void 0),Ny.set(!1);let e=A(JP)?.logout_redirect_url;e&&(window.location.href=e)}}));function L1(e,t){O(t,!0),K(e,K1);let n=()=>j(JP,`$cmsConfig`,c),r=()=>j(FA,`$isLocalHost`,c),i=()=>j(C1,`$signInError`,c),a=()=>j(T1,`$signingIn`,c),o=()=>j(IA,`$isLocalBackendSupported`,c),s=()=>j(LA,`$isBrave`,c),[c,l]=hn(),u=N(!1),d=N(``),f=M(()=>n()?.backend),p=M(()=>z(f).name),m=M(()=>z(p)?SP[z(p)]:null),h=M(()=>z(p)===`test-repo`),g=M(()=>z(h)?void 0:z(f)?.repo?.split(`/`).pop()),_=M(()=>r()&&!z(h)),v=M(()=>!z(h)&&z(f).auth_methods?.includes(`token`)===!1),y=M(()=>z(p)===`gitea`&&z(f).base_url===`https://codeberg.org`?`Codeberg`:z(m)?.label),b=M(()=>!z(h)&&z(f).auth_methods?.includes(`oauth`)===!1||z(p)===`gitea`&&!z(f).app_id);ic(()=>{i().message||N1()});var x=G1(),S=I(x),C=F(S),w=e=>{var t=R1(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`signing_in`)]),U(e,t)},ee=e=>{var t=H1(),n=I(t),r=e=>{var t=V1(),n=I(t);{let e=M(()=>X(`work_with_local_repo`)),t=M(()=>!o());tI(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await P1(`local`)}})}var r=L(n,2),a=e=>{var t=z1(),n=F(t),r=e=>{var t=H();So(I(t),()=>Wk(X(`local_workflow.disabled`),`https://sveltiacms.app/en/docs/workflows/local#enabling-file-system-access-api-in-brave`)),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`local_workflow.unsupported_browser`)]),U(e,t)};G(n,e=>{s()?e(r):e(i,-1)}),D(t),U(e,t)},c=e=>{var t=B1(),n=F(t),r=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description`,{values:{repo:z(g)}})]),U(e,t)},i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description_no_repo`)]),U(e,t)};G(n,e=>{z(g)?e(r):e(i,-1)}),D(t),U(e,t)};G(r,e=>{o()?i().message||e(c,1):e(a)}),UI(L(r,2),{}),U(e,t)};G(n,e=>{z(_)&&e(r)});var a=L(n,2);{let e=M(()=>z(_)?`secondary`:`primary`),t=M(()=>z(h)?X(`work_with_test_repo`):X(`sign_in_with_x`,{values:{service:z(y)}}));tI(a,{get variant(){return z(e)},get label(){return z(t)},get disabled(){return z(b)},onclick:async()=>{await P1(z(p))}})}var c=L(a,2),l=e=>{{let t=M(()=>X(`sign_in_using_access_token`,{values:{service:z(y)}}));tI(e,{variant:`secondary`,get label(){return z(t)},get disabled(){return z(v)},onclick:()=>{P(u,!0)}})}};G(c,e=>{z(h)||e(l)}),U(e,t)};G(C,e=>{a()?e(w):z(m)&&e(ee,1)});var T=L(C,2),te=e=>{var t=U1(),n=F(t);zF(n,{name:`error`});var r=L(n);D(t),R(()=>W(r,` ${i().message??``}`)),U(e,t)};G(T,e=>{i().message&&i().context===`authentication`&&e(te)}),D(S);var ne=L(S,2);{let e=M(()=>X(`sign_in_using_access_token`)),t=M(()=>({spellcheck:!1,"aria-label":X(`personal_access_token`)})),n=M(()=>X(`sign_in`)),r=M(()=>!z(d).trim());mL(ne,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{await P1(z(p),z(d).trim())},get open(){return z(u)},set open(e){P(u,e,!0)},get value(){return z(d)},set value(e){P(d,e,!0)},children:(e,t)=>{_t();var n=W1(),r=I(n),i=L(r),a=e=>{var t=H();So(I(t),()=>Wk(X(`sign_in_using_access_token_link`,{values:{service:z(y)}}),z(m).repository.tokenPageURL)),U(e,t)};G(i,e=>{z(m)?.repository?.tokenPageURL&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`sign_in_using_access_token_description`)]),U(e,n)},$$slots:{default:!0}})}U(e,x),k(),l()}var R1,z1,B1,V1,H1,U1,W1,G1,K1,pue=s((()=>{Q(),Y(),Z(),B$(),oc(),kP(),$P(),I1(),WA(),Gk(),R1=V(`<div role="alert" class="message svelte-1ff54ya"> </div>`),z1=V(`<div role="alert" class="svelte-1ff54ya"><!></div>`),B1=V(`<div role="none"><!></div>`),V1=V(`<!> <!> <!>`,1),H1=V(`<!> <!> <!>`,1),U1=V(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),W1=V(` <!>`,1),G1=V(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),K1={hash:`svelte-1ff54ya`,code:`.buttons.svelte-1ff54ya {display:flex;flex-direction:column;align-items:center;gap:12px;.button {width:320px;}}[role='alert'].svelte-1ff54ya {&.iconic {display:flex;align-items:center;gap:8px;}&.error {color:var(--sui-error-foreground-color);}}`}})),q1,mue=s((()=>{q1=`<svg viewBox="0 0 800 800" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="400" x2="400" y1="0" y2="800"><stop offset="0" stop-color="#f0980b"/><stop offset="1" stop-color="#ff1d00"/></linearGradient><clipPath id="b"><rect height="800" rx="80" width="800"/></clipPath><rect fill="url(#a)" height="800" rx="80" width="800"/><g style="clip-path:url(#b);fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:180"><path d="m320-80-200 320 200 320-200 320"/><path d="m400 240 200 320 200-320"/></g></svg>`})),J1,Y1,X1,Z1,Q1,$1=s((()=>{bS(),rp(),mue(),$P(),J1=`Sveltia CMS`,Y1=`data:image/svg+xml;base64,${btoa(q1)}`,X1=dn([JP],([e])=>e?.app_title||`Sveltia CMS`),Z1=dn([JP],([e])=>e?.logo?.src||e?.logo_url||Y1),Q1=dn(Z1,e=>{let t=e.match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/);return t?t[1]:yS.getType(e)??void 0})}));function hue(e,t){O(t,!0),K(e,d0);let n=()=>j(ZP,`$cmsConfigLoaded`,h),r=()=>j(X1,`$appTitle`,h),i=()=>j(Z1,`$appLogoURL`,h),a=()=>j(XP,`$cmsConfigErrors`,h),o=()=>j(QM,`$prefsError`,h),s=()=>j(JP,`$cmsConfig`,h),c=()=>j($M,`$prefs`,h),l=()=>j(C1,`$signInError`,h),u=()=>j(nM,`$inAuthPopup`,h),d=()=>j(Wj,`$user`,h),f=()=>j(w1,`$unauthenticated`,h),p=()=>j(Ny,`$dataLoaded`,h),m=()=>j(Py,`$dataLoadedProgress`,h),[h,g]=hn();ti(()=>{n()&&mn(m1,X(`welcome_message`,{values:{name:r()}}))});var _=u0(),v=I(_),y=F(v),b=F(y),x=e=>{var t=t0(),n=I(t),a=L(n,2),o=F(a,!0);D(a),R(()=>{q(n,`src`,i()),W(o,r())}),U(e,t)};G(b,e=>{n()&&e(x)});var S=L(b,2),C=e=>{var t=r0(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);mo(i,5,a,e=>e,(e,t)=>{var n=n0();e0(F(n),()=>z(t)),D(n),U(e,n)}),D(i),D(t),R(e=>W(r,e),[()=>X(`config.errors`,{values:{count:a().length}})]),U(e,t)},w=e=>{var t=i0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`prefs.error.${o().type}`)]),U(e,t)},ee=e=>{var t=a0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading_cms_config`)]),U(e,t)},T=e=>{var t=o0(),n=I(t),r=F(n),i=F(r,!0);D(r);var a=L(r,2);e0(F(a),()=>l().message),D(a),D(n),L1(L(n,2),{}),R(e=>W(i,e),[()=>X(`loading_site_data_error`)]),U(e,t)},te=e=>{var t=s0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`authorizing`)]),U(e,t)},ne=e=>{L1(e,{})},re=e=>{var t=c0(),n=I(t),r=F(n,!0);D(n);var i=L(n,2),a=e=>{poe(e,{get now(){return m()}})};G(i,e=>{m()!==void 0&&e(a)}),R(e=>W(r,e),[()=>X(`loading_site_data`)]),U(e,t)};G(S,e=>{a().length?e(C):o()?e(w,1):!s()||!c()?e(ee,2):l().message&&l().context===`dataFetch`?e(T,3):u()?e(te,4):!d()||f()?e(ne,5):p()||e(re,6)}),D(y),D(v);var ie=L(v,2),ae=e=>{var t=l0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`powered_by`,{values:{name:J1}})]),U(e,t)};G(ie,e=>{n()&&r()!==`Sveltia CMS`&&e(ae)}),U(e,_),k(),g()}var e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,gue=s((()=>{Q(),Y(),Z(),B$(),kE(),lO(),pue(),$1(),S1(),pM(),$P(),Vy(),Gj(),I1(),eN(),e0=(e,t=E)=>{var n=H();So(I(n),()=>OE(BE.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),U(e,n)},t0=V(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),n0=V(`<li><!></li>`),r0=V(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),i0=V(`<div role="alert" class="message"> </div>`),a0=V(`<div role="alert" class="message"> </div>`),o0=V(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),s0=V(`<div role="alert" class="message"> </div>`),c0=V(`<div role="alert" class="message"> </div> <!>`,1),l0=V(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),u0=V(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),d0={hash:`svelte-7ua6x9`,code:`.container.svelte-7ua6x9 {position:absolute;inset:0;z-index:101;flex:auto;display:flex;justify-content:center;align-items:center;gap:16px;padding:32px;.inner:where(.svelte-7ua6x9) {display:flex;flex-direction:column;align-items:center;gap:32px;min-width:240px;max-width:800px;min-height:240px;}.logo:where(.svelte-7ua6x9) {width:auto;height:160px;
779
+
780
+ @media (width < 768px) {height:120px;
781
+ }}h1:where(.svelte-7ua6x9) {font-size:48px;}.logo:where(.svelte-7ua6x9) ~ h1:where(.svelte-7ua6x9) {font-size:var(--sui-font-size-xxx-large);}.error:where(.svelte-7ua6x9) {border-radius:var(--sui-control-medium-border-radius);padding:12px;background-color:var(--sui-tertiary-background-color);font-size:var(--sui-font-size-default);text-align:center;-webkit-user-select:text;user-select:text;cursor:text;}
782
+ /* \`<SignIn>\` also has \`.message\` */.message {margin:0 0 16px;font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-normal);text-align:center;ul {margin:12px 0 0;padding:0;max-height:160px;overflow-y:auto;list-style:none;}li {margin:12px;padding:0;}}}.powered-by.svelte-7ua6x9 {position:absolute;inset:auto 24px 24px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);text-align:center;}`}}));function _ue(e,t){O(t,!0);let n=()=>j(DP,`$backend`,i),r=()=>j(JP,`$cmsConfig`,i),[i,a]=hn(),o=0,s=N(!1),c=N(`none`),l=async()=>{n()?.checkStatus&&P(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),P(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};ic(()=>(P(s,!0),()=>{d()})),ti(()=>{z(s),n(),r(),f()});var p=H(),m=I(p),h=e=>{var t=p0(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);lo(r,()=>({"--sui-infobar-message-justify-content":`center`})),lI(r.lastChild,{get status(){return z(e)},children:(e,t)=>{_t();var r=f0(),i=I(r),a=L(i);{let e=M(()=>X(`details`));tI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{u1(n()?.statusDashboardURL)}})}R(e=>W(i,`${e??``} `),[()=>X(`backend_status.${z(c)}_incident`,{values:{service:n()?.label}})]),U(e,r)},$$slots:{default:!0}}),D(r)}U(e,t)},g=M(()=>[`minor`,`major`].includes(z(c)));G(m,e=>{z(g)&&e(h)}),U(e,p),k(),a()}var f0,p0,vue=s((()=>{Q(),Y(),Z(),B$(),oc(),kP(),$P(),d1(),f0=V(` <!>`,1),p0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function yue(e,t){O(t,!0);let n=0,r=0,i=N(!1),a=async()=>{try{let e=await fetch(`https://unpkg.com/@sveltia/cms/package.json`);if(!e.ok)return;let{version:t}=await e.json();if(!t||t===kw)return;document.querySelector(`script[src="https://unpkg.com/@sveltia/cms/dist/sveltia-cms.js"]`)?r=window.setTimeout(()=>{P(i,!0)},6e5):console.warn(`[Sveltia CMS] A new version (${t}) is available. Update the pinned version in your script tag or package.json to upgrade.`)}catch{}};ic(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=H(),s=I(o),c=e=>{var t=h0(),n=I(t);lo(n,()=>({"--sui-infobar-message-justify-content":`center`})),lI(n.lastChild,{children:(e,t)=>{_t();var n=m0(),r=I(n),i=L(r);{let e=M(()=>X(`update_now`));tI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{window.location.reload()}})}R(e=>W(r,`${e??``} `),[()=>X(`update_available`)]),U(e,n)},$$slots:{default:!0}}),D(n),U(e,t)};G(s,e=>{z(i)&&e(c)}),U(e,o),k()}var m0,h0,bue=s((()=>{Q(),Y(),Z(),B$(),oc(),Aw(),m0=V(` <!>`,1),h0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),g0,_0=s((()=>{g0=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),v0,xue=s((()=>{Fw(),vT(),_0(),v0=async(e,t)=>{let n=t===`image`?await dT(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await Pw(`exifr`,`dist/lite.esm.mjs`),{latitude:i,longitude:a,DateTimeOriginal:o,CreateDate:s=o}=await r(n).catch(()=>{})??{};return{createdDate:s instanceof Date?s:void 0,coordinates:Number.isFinite(i)&&Number.isFinite(a)?{latitude:g0(i,7),longitude:g0(a,7)}:void 0}}})),y0,b0,x0,S0,Sue=s((()=>{xue(),y0=e=>{let t=new Image;return new Promise(n=>{t.addEventListener(`load`,()=>{n({dimensions:{width:t.naturalWidth,height:t.naturalHeight}})},{once:!0}),t.src=e})},b0=async(e,t)=>{let n=document.createElement(t);return new Promise(r=>{n.addEventListener(`loadedmetadata`,()=>{let{duration:e}=n;t===`audio`&&r({duration:e});let{videoWidth:i,videoHeight:a}=n;r({dimensions:{width:i,height:a},duration:e})},{once:!0}),n.src=e})},x0=async(e,t)=>t===`image`?y0(e):b0(e,t),S0=async(e,t,n)=>{let{dimensions:r,duration:i}=await x0(t,n),{createdDate:a,coordinates:o}=await v0(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),C0,w0,T0,E0=s((()=>{rp(),vT(),kP(),ak(),Sue(),C0={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},w0=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=A(DP)?.repository??{},i=await fT(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await S0(e,i,t)),{...a,publicURL:hT(e),repoBlobURL:r?`${r}/${n}`:void 0}},T0=async e=>{let t=hT(e,{allowSpecial:!0,pathOnly:!0})??await fT(e);return t?rk(t):[]}}));function D0(e,t){O(t,!0);let n=e=>{var t=O0(),n=I(t);{let e=M(()=>X(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);qL(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(d,`asset_urls_copied`)}})}var i=L(n,2);{let e=M(()=>X(`file_paths`,{values:{count:r().length}}));qL(i,{get label(){return z(e)},onclick:()=>{m(f,`asset_paths_copied`)}})}var a=L(i,2);{let e=M(()=>X(`file_data`)),t=M(()=>!z(o));qL(a,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{m(p,`asset_data_copied`)}})}U(e,t)},r=J(t,`assets`,19,()=>[]),i=J(t,`useButton`,3,!0),a=N(Cr([])),o=N(!1),s=Cr({show:!1,text:``,status:`success`}),c=M(()=>z(a).filter(({publicURL:e})=>!!e).map(({publicURL:e})=>e)),l,u=async()=>{if(l=void 0,r().length!==1)return!1;let e=await dT(r()[0]),{type:t}=e;return l=e,Ep(t)?!0:Hw.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
781
783
  `))},f=async()=>{await navigator.clipboard.writeText(r().map(({path:e})=>`/${e}`).join(`
782
- `))},p=async()=>{let e=l,{type:t}=e;if(Ep(t)){await navigator.clipboard.writeText(await e.text());return}if(!Hw.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await tT(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=X(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=X(`clipboard_error`)}finally{s.show=!0}};ti(()=>{(async()=>{P(a,await Promise.all(r().map(w0)),!0),P(o,await u(),!0)})()});var h=k0(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>X(`copy_options`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>X(`copy`));NI(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=M(()=>!r().length),a=M(()=>X(`copy`));qL(e,{get disabled(){return z(i)},get label(){return z(a)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};G(g,e=>{i()?e(_):e(v,-1)}),nz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{VF(e,{get status(){return s.status},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,s.text)),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,h),k()}var O0,k0,A0=s((()=>{Q(),Y(),Z(),B$(),Np(),E0(),vT(),Ww(),rT(),O0=V(`<!> <!> <!>`,1),k0=V(`<!> <!>`,1)})),j0,M0,N0=s((()=>{rp(),j0={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},M0=un({...j0})})),P0,F0=s((()=>{rp(),N0(),P0=un({...j0})})),I0,L0,R0,z0,B0=s((()=>{cS(),rp(),SF(),kP(),Vy(),Gj(),eN(),ew(),I0=()=>{let e=A(Wj);if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},L0=async({changes:e,commit:t})=>{let{databaseName:n}=A(DP)?.repository??{};if(!n)return;let r=new aS(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:QC(c).size,text:c,meta:s};await r.set(a,l)}))},R0=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));Iy.update(e=>[...e.filter(e=>!r.has(e.id)),...t]);let i=new Set(n.map(e=>e.path));e.forEach(e=>{e.action===`move`&&e.previousPath?i.add(e.previousPath):e.action===`delete`&&i.add(e.path)}),oF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},z0=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=A(DP),a={...await i(e,r),author:I0()};A($M).devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await L0({changes:e,commit:a}),R0({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),V0,H0,Cue=s((()=>{SF(),F0(),B0(),N0(),V0=({assets:e})=>{dF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),P0.set({...j0,deleted:!0,count:e.length})},H0=async e=>{await z0({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),V0({assets:e})}}));function U0(e,t){O(t,!0);let n=J(t,`assets`,19,()=>[]),r=J(t,`buttonDescription`,3,``),i=J(t,`dialogDescription`,3,``),a=J(t,`onDelete`,3,void 0),o=J(t,`useButton`,3,!0),s=N(!1),c=M(()=>o()?tI:qL);var l=W0(),u=I(l);{let e=M(()=>!n().length),t=M(()=>X(`delete`));Oo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{P(s,!0)}})})}var d=L(u,2);{let e=M(()=>X(`delete_assets`,{values:{count:n().length}})),t=M(()=>X(`delete`));cL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{H0(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,i())),U(e,n)},$$slots:{default:!0}})}U(e,l),k()}var W0,G0=s((()=>{Q(),Y(),Z(),B$(),Cue(),W0=V(`<!> <!>`,1)}));function K0(e,t){O(t,!0);let n=J(t,`assets`,19,()=>[]),r=J(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?tI:qL),o=async()=>{for(let e of n())dee(await dT(e),e.name),await Jx(300);P(i,!0)};var s=q0(),c=I(s);{let e=M(()=>!n().length),t=M(()=>X(`download`));Oo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}nz(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`assets_downloaded`,{values:{count:n().length}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,s),k()}var q0,J0=s((()=>{Q(),Y(),Z(),B$(),Np(),Yx(),vT(),q0=V(`<!> <!>`,1)}));function Y0(e,t){O(t,!0);let n=()=>j($M,`$prefs`,i),r=()=>j(DP,`$backend`,i),[i,a]=hn(),o=J(t,`extraItems`,3,void 0),s=N(Cr({...C0})),c=M(()=>z(s).publicURL),l=M(()=>z(s).repoBlobURL),u=async()=>{P(s,t.asset?await w0(t.asset):{...C0},!0)};ti(()=>{t.asset,u()});{let i=e=>{{let i=M(()=>X(`edit_options`));UL(e,{get"aria-label"(){return z(i)},children:(e,i)=>{var a=X0(),s=I(a);Eo(s,()=>o()??E);var u=L(s,2);{let e=M(()=>X(`edit`)),n=M(()=>X(`edit_asset`)),r=M(()=>!t.asset||!OS(t.asset));qL(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(mF,t.asset)}})}var d=L(u,2);{let e=M(()=>X(`rename`)),n=M(()=>X(`rename_asset`)),r=M(()=>!t.asset);qL(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(hF,t.asset)}})}var f=L(d,2);{let e=M(()=>X(`replace`)),n=M(()=>X(`replace_asset`)),r=M(()=>!t.asset);qL(f,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(pF,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),mn(n1,!0)}})}var p=L(f,2);zI(p,{});var m=L(p,2);{let e=M(()=>X(`view_on_live_site`)),t=M(()=>!z(c));qL(m,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{u1(z(c))}})}var h=L(m,2),g=e=>{{let t=M(()=>!r()?.repository||!z(l)),n=M(()=>X(`view_on_x`,{values:{service:r()?.repository?.label},default:X(`view_in_repository`)}));qL(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{u1(`${z(l)}?plain=1`)}})}};G(h,e=>{n().devModeEnabled&&e(g)}),U(e,a)},$$slots:{default:!0}})}},a=M(()=>X(`show_edit_options`));NI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(a)},popup:i,$$slots:{popup:!0}})}k(),a()}var X0,Z0=s((()=>{Q(),Y(),Z(),B$(),SF(),E0(),AS(),l1(),kP(),eN(),d1(),X0=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function Q0(e,t){O(t,!0);let n=J(t,`useShortcut`,3,!1),r=J(t,`onclick`,3,void 0);{let i=e=>{{let t=M(()=>bh()?`arrow_forward`:`arrow_back`);zF(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??X(`back`)),o=M(()=>n()?`Escape`:void 0);tI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(a)},get keyShortcuts(){return z(o)},class:`back`,get onclick(){return r()},startIcon:i,$$slots:{startIcon:!0}})}k()}var $0=s((()=>{Q(),Y(),Z(),B$()}));function wue(e,t){O(t,!0);let n=()=>j(fF,`$overlaidAsset`,a),r=()=>j(zA,`$isSmallScreen`,a),i=()=>j(Ip,`$selectedAssetFolder`,a),[a,o]=hn(),s=e=>{var t=e2(),n=I(t);D0(n,{get assets(){return z(c)},get useButton(){return z(l)}});var r=L(n,2);K0(r,{get assets(){return z(c)},get useButton(){return z(l)}});var a=L(r,2);{let e=M(()=>X(`delete_asset`)),t=M(()=>X(`confirm_deleting_this_asset`));U0(a,{get assets(){return z(c)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{b1(`/assets/${i()?.internalPath??`-/all`}`)},get useButton(){return z(l)}})}U(e,t)},c=M(()=>n()?[n()]:[]),l=M(()=>!r());{let t=M(()=>X(`primary`));$Q(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var a=t2(),o=I(a);{let e=M(()=>X(`cancel_editing`));Q0(o,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{b1(`/assets/${i()?.internalPath??`-/all`}`)}})}var c=L(o,2);qF(F(c),{children:(e,t)=>{_t();var r=Fa();R(()=>W(r,n()?.name)),U(e,r)},$$slots:{default:!0}}),D(c);var l=L(c,2),u=e=>{s(e)};G(l,e=>{r()||e(u)}),Y0(L(l,2),{get asset(){return n()},extraItems:e=>{var t=H(),n=I(t),i=e=>{s(e)};G(n,e=>{r()&&e(i)}),U(e,t)},$$slots:{extraItems:!0}}),U(e,a)},$$slots:{default:!0}})}k(),o()}var e2,t2,Tue=s((()=>{Q(),Y(),Z(),B$(),A0(),G0(),J0(),Z0(),$0(),S1(),SF(),Hp(),WA(),e2=V(`<!> <!> <!>`,1),t2=V(`<!> <h2 role="none"><!></h2> <!> <!>`,1)}));function n2(e,t){O(t,!0),K(e,c2);let n=J(t,`loading`,3,`lazy`),r=J(t,`asset`,3,void 0),i=J(t,`src`,15,void 0),a=J(t,`variant`,3,void 0),o=J(t,`blurBackground`,3,!1),s=J(t,`cover`,3,!1),c=J(t,`checkerboard`,3,!1),l=J(t,`dissolve`,3,!0),u=J(t,`alt`,3,``),d=J(t,`controls`,3,!1),f=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),p=N(void 0),m=N(!1),h=N(!1),g=N(void 0),_=N(void 0),v=M(()=>!!r()&&!!a()&&!d()),y=M(()=>t.kind===`image`||r()?.name.endsWith(`.pdf`)||z(v)&&SS.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await XF(z(p));try{i(z(v)?await mT(r()):await fT(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,Tn()}},S=async()=>{!z(p)||!z(_)||((z(y)?!z(p).complete:!z(p).readyState)&&await new Promise(e=>{z(p)?.addEventListener(z(y)?`load`:`loadedmetadata`,()=>{e(void 0)},{once:!0})}),l()&&await XF(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&URL.revokeObjectURL(i()))};ti(()=>{r()&&!z(g)&&(async()=>{P(g,await mT(r(),{cacheOnly:!0}),!0)})()}),ti(()=>{z(p)&&r()&&x()}),ti(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await XF(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),ti(()=>{z(p)&&z(_)&&S()});var C=s2();let w;var ee=F(C),T=e=>{zF(e,{name:`draft`})},te=e=>{var t=r2();ys(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Us(t,e=>P(p,e),()=>z(p)),va(t),U(e,t)},ne=e=>{var t=i2();ys(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Us(t,e=>P(p,e),()=>z(p)),U(e,t)},re=e=>{var t=H(),n=I(t),r=e=>{var t=a2();ys(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Us(t,e=>P(p,e),()=>z(p)),U(e,t)},i=e=>{zF(e,{name:`audio_file`})};G(n,e=>{d()?e(r):e(i,-1)}),U(e,t)},ie=e=>{zF(e,{name:`draft`})};G(ee,e=>{z(m)?e(T):z(y)?e(te,1):t.kind===`video`?e(ne,2):t.kind===`audio`?e(re,3):e(ie,-1)});var ae=L(ee,2),oe=e=>{var t=o2(),n=F(t),r=F(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`loading`)]),U(e,t)};G(r,e=>{!z(v)&&!z(h)&&e(i)}),D(n);var a=L(n,2);let o;D(t),R(()=>{q(a,`src`,z(g)),o=ss(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),U(e,t)};G(ae,e=>{o()&&e(oe)}),D(C),R(()=>w=ss(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),U(e,C),k()}var r2,i2,a2,o2,s2,c2,l2=s((()=>{Q(),Y(),Z(),B$(),ZF(),oc(),vT(),AS(),r2=V(`<img/>`),i2=V(`<video></video>`,2),a2=V(`<audio></audio>`),o2=V(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),s2=V(`<div role="none"><!> <!></div>`),c2={hash:`svelte-1yaifwd`,code:`.preview.svelte-1yaifwd {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}.preview.tile.svelte-1yaifwd {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);}.preview.tile.svelte-1yaifwd .sui.icon {font-size:48px;}.preview.icon.svelte-1yaifwd {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}.preview.svelte-1yaifwd:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) {overflow:hidden;aspect-ratio:1/1;}.preview.svelte-1yaifwd:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) img:where(.svelte-1yaifwd) {pointer-events:none;}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) {display:contents;}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) > :where(.svelte-1yaifwd) {position:absolute;inset:0;pointer-events:none;}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) .overlay:where(.svelte-1yaifwd) {display:flex;justify-content:center;align-items:center;z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) img:where(.svelte-1yaifwd) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);}.preview.svelte-1yaifwd .blur:where(.svelte-1yaifwd) img.loaded:where(.svelte-1yaifwd) {opacity:1;}.preview.cover.svelte-1yaifwd {padding:0;}.preview.cover.svelte-1yaifwd > :is(img, video) {flex:auto;}.preview.svelte-1yaifwd > :is(img, video) {flex:0;max-width:100%;max-height:100%;}.preview.dissolve.svelte-1yaifwd :is(img, video) {opacity:0;transition:opacity 250ms;}.preview.dissolve.loaded.svelte-1yaifwd :is(img, video) {opacity:1;}.checkerboard.svelte-1yaifwd img:where(.svelte-1yaifwd) {background-image:linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%), linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);background-size:8px 8px;background-position:0 0, 4px 4px;}.svelte-1yaifwd:not(.checkerboard) img:where(.svelte-1yaifwd) {background-color:#e5e5e5;}:is(img, video) {object-fit:contain;}.svelte-1yaifwd:is(img, video):not([src]) {visibility:hidden;}.cover.svelte-1yaifwd :is(img, video) {object-fit:cover;aspect-ratio:1/1;}`}}));function u2(e,t){O(t,!0),K(e,f2);let n=J(t,`class`,3,``),r=J(t,`mapElement`,15),i=J(t,`onReady`,3,void 0),a=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`coordinates`,`class`,`mapElement`,`onReady`]),o,s=async()=>{if(!r())return;let e=await Pw(`leaflet`,`dist/leaflet-src.esm.js`),n=`${Nw(`leaflet`)}/dist/images/marker-icon-2x.png`,a=e.map(r(),{center:[0,0],zoom:2});if(e.tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,{attribution:`&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors`,referrerPolicy:`strict-origin`}).addTo(a),t.coordinates){let{latitude:r,longitude:i}=t.coordinates,o=e.icon({iconUrl:n,iconSize:[25,41]});e.marker([r,i],{icon:o}).addTo(a),a.setView([r,i],12)}r().querySelectorAll(`a[href^="https:"]`).forEach(e=>{e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`)}),o=new ResizeObserver(()=>{a?.invalidateSize()}),o.observe(r()),i()?.({leaflet:e,map:a})};ic(()=>(s(),()=>{o?.disconnect()}));var c=d2();ys(c,e=>({role:`application`,class:`map ${n()??``}`,"aria-label":e,...a}),[()=>t.coordinates?X(`map_lat_lng`,{values:t.coordinates}):void 0],void 0,void 0,`svelte-1c5gj1k`),Us(c,e=>r(e),()=>r()),U(e,c),k()}var d2,f2,p2=s((()=>{Q(),Y(),Z(),oc(),Fw(),d2=V(`<div></div>`),f2={hash:`svelte-1c5gj1k`,code:`.leaflet-pane,
783
- .leaflet-tile,
784
- .leaflet-marker-icon,
785
- .leaflet-marker-shadow,
786
- .leaflet-tile-container,
787
- .leaflet-pane > svg,
788
- .leaflet-pane > canvas,
789
- .leaflet-zoom-box,
790
- .leaflet-image-layer,
791
- .leaflet-layer {position:absolute;left:0;top:0;}.leaflet-container {overflow:hidden;-webkit-tap-highlight-color:transparent;background:#ddd;outline-offset:1px;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5;}.leaflet-tile,
792
- .leaflet-marker-icon,
793
- .leaflet-marker-shadow {-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;}.leaflet-tile::selection {background:transparent;}.leaflet-safari .leaflet-tile {image-rendering:-webkit-optimize-contrast;}.leaflet-safari .leaflet-tile-container {width:1600px;height:1600px;-webkit-transform-origin:0 0;transform-origin:0 0;}.leaflet-marker-icon,
794
- .leaflet-marker-shadow {display:block;}.leaflet-container .leaflet-overlay-pane svg {max-width:none !important;max-height:none !important;}.leaflet-container .leaflet-marker-pane img,
795
- .leaflet-container .leaflet-shadow-pane img,
796
- .leaflet-container .leaflet-tile-pane img,
797
- .leaflet-container img.leaflet-image-layer,
798
- .leaflet-container .leaflet-tile {max-width:none !important;max-height:none !important;width:auto;padding:0;}.leaflet-container img.leaflet-tile {mix-blend-mode:plus-lighter;}.leaflet-container.leaflet-touch-zoom {-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y;}.leaflet-container.leaflet-touch-drag {-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom;}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {-ms-touch-action:none;touch-action:none;}.leaflet-container a {-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4);color:#0078a8;}.leaflet-tile {filter:inherit;visibility:hidden;}.leaflet-tile-loaded {visibility:inherit;}.leaflet-zoom-box {width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800;border:2px dotted #38f;background:rgba(255, 255, 255, 0.5);}.leaflet-overlay-pane svg {-moz-user-select:none;user-select:none;}.leaflet-pane {z-index:400;}.leaflet-tile-pane {z-index:200;}.leaflet-overlay-pane {z-index:400;}.leaflet-shadow-pane {z-index:500;}.leaflet-marker-pane {z-index:600;}.leaflet-tooltip-pane {z-index:650;}.leaflet-popup-pane {z-index:700;}.leaflet-map-pane canvas {z-index:100;}.leaflet-map-pane svg {z-index:200;}.leaflet-vml-shape {width:1px;height:1px;}.lvml {behavior:url(#default#VML);display:inline-block;position:absolute;}.leaflet-control {position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto;float:left;clear:both;}.leaflet-top,
799
- .leaflet-bottom {position:absolute;z-index:1000;pointer-events:none;}.leaflet-top {top:0;}.leaflet-right {right:0;}.leaflet-bottom {bottom:0;}.leaflet-left {left:0;}.leaflet-right .leaflet-control {float:right;margin-right:10px;}.leaflet-top .leaflet-control {margin-top:10px;}.leaflet-bottom .leaflet-control {margin-bottom:10px;}.leaflet-left .leaflet-control {margin-left:10px;}.leaflet-fade-anim .leaflet-popup {opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear;}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {opacity:1;}.leaflet-zoom-animated {-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;}svg.leaflet-zoom-animated {will-change:transform;}.leaflet-zoom-anim .leaflet-zoom-animated {-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);}.leaflet-zoom-anim .leaflet-tile,
800
- .leaflet-pan-anim .leaflet-tile {-webkit-transition:none;-moz-transition:none;transition:none;}.leaflet-zoom-anim .leaflet-zoom-hide {visibility:hidden;}.leaflet-interactive {cursor:pointer;}.leaflet-grab {cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;}.leaflet-crosshair,
801
- .leaflet-crosshair .leaflet-interactive {cursor:crosshair;}.leaflet-popup-pane,
802
- .leaflet-control {cursor:auto;}.leaflet-dragging .leaflet-grab,
803
- .leaflet-dragging .leaflet-grab .leaflet-interactive,
804
- .leaflet-dragging .leaflet-marker-draggable {cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing;}.leaflet-marker-icon,
805
- .leaflet-marker-shadow,
806
- .leaflet-image-layer,
807
- .leaflet-pane > svg path,
808
- .leaflet-tile-container {pointer-events:none;}.leaflet-marker-icon.leaflet-interactive,
809
- .leaflet-image-layer.leaflet-interactive,
810
- .leaflet-pane > svg path.leaflet-interactive,
811
- svg.leaflet-image-layer.leaflet-interactive path {pointer-events:visiblePainted;pointer-events:auto;}.leaflet-bar {box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px;}.leaflet-bar a {background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black;}.leaflet-bar a,
812
- .leaflet-control-layers-toggle {background-position:50% 50%;background-repeat:no-repeat;display:block;}.leaflet-bar a:hover,
813
- .leaflet-bar a:focus {background-color:#f4f4f4;}.leaflet-bar a:first-child {border-top-left-radius:4px;border-top-right-radius:4px;}.leaflet-bar a:last-child {border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none;}.leaflet-bar a.leaflet-disabled {cursor:default;background-color:#f4f4f4;color:#bbb;}.leaflet-touch .leaflet-bar a {width:30px;height:30px;line-height:30px;}.leaflet-touch .leaflet-bar a:first-child {border-top-left-radius:2px;border-top-right-radius:2px;}.leaflet-touch .leaflet-bar a:last-child {border-bottom-left-radius:2px;border-bottom-right-radius:2px;}.leaflet-control-zoom-in,
814
- .leaflet-control-zoom-out {font:bold 18px "Lucida Console", Monaco, monospace;text-indent:1px;}.leaflet-touch .leaflet-control-zoom-in,
815
- .leaflet-touch .leaflet-control-zoom-out {font-size:22px;}.leaflet-control-layers {box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px;}.leaflet-control-layers-toggle {background-image:url(images/layers.png);width:36px;height:36px;}.leaflet-retina .leaflet-control-layers-toggle {background-image:url(images/layers-2x.png);background-size:26px 26px;}.leaflet-touch .leaflet-control-layers-toggle {width:44px;height:44px;}.leaflet-control-layers .leaflet-control-layers-list,
816
- .leaflet-control-layers-expanded .leaflet-control-layers-toggle {display:none;}.leaflet-control-layers-expanded .leaflet-control-layers-list {display:block;position:relative;}.leaflet-control-layers-expanded {padding:6px 10px 6px 6px;color:#333;background:#fff;}.leaflet-control-layers-scrollbar {overflow-y:scroll;overflow-x:hidden;padding-right:5px;}.leaflet-control-layers-selector {margin-top:2px;position:relative;top:1px;}.leaflet-control-layers label {display:block;font-size:13px;font-size:1.08333em;}.leaflet-control-layers-separator {height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px;}.leaflet-default-icon-path {background-image:url(images/marker-icon.png);}.leaflet-container .leaflet-control-attribution {background:#fff;background:rgba(255, 255, 255, 0.8);margin:0;}.leaflet-control-attribution,
817
- .leaflet-control-scale-line {padding:0 5px;color:#333;line-height:1.4;}.leaflet-control-attribution a {text-decoration:none;}.leaflet-control-attribution a:hover,
818
- .leaflet-control-attribution a:focus {text-decoration:underline;}.leaflet-attribution-flag {display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em;}.leaflet-left .leaflet-control-scale {margin-left:5px;}.leaflet-bottom .leaflet-control-scale {margin-bottom:5px;}.leaflet-control-scale-line {border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff;}.leaflet-control-scale-line:not(:first-child) {border-top:2px solid #777;border-bottom:none;margin-top:-2px;}.leaflet-control-scale-line:not(:first-child):not(:last-child) {border-bottom:2px solid #777;}.leaflet-touch .leaflet-control-attribution,
819
- .leaflet-touch .leaflet-control-layers,
820
- .leaflet-touch .leaflet-bar {box-shadow:none;}.leaflet-touch .leaflet-control-layers,
821
- .leaflet-touch .leaflet-bar {border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box;}.leaflet-popup {position:absolute;text-align:center;margin-bottom:20px;}.leaflet-popup-content-wrapper {padding:1px;text-align:left;border-radius:12px;}.leaflet-popup-content {margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px;}.leaflet-popup-content p {margin:17px 0;margin:1.3em 0;}.leaflet-popup-tip-container {width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none;}.leaflet-popup-tip {width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}.leaflet-popup-content-wrapper,
822
- .leaflet-popup-tip {background:white;color:#333;box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);}.leaflet-container a.leaflet-popup-close-button {position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent;}.leaflet-container a.leaflet-popup-close-button:hover,
823
- .leaflet-container a.leaflet-popup-close-button:focus {color:#585858;}.leaflet-popup-scrolled {overflow:auto;}.leaflet-oldie .leaflet-popup-content-wrapper {-ms-zoom:1;zoom:1;}.leaflet-oldie .leaflet-popup-tip {width:24px;margin:0 auto;}.leaflet-oldie .leaflet-control-zoom,
824
- .leaflet-oldie .leaflet-control-layers,
825
- .leaflet-oldie .leaflet-popup-content-wrapper,
826
- .leaflet-oldie .leaflet-popup-tip {border:1px solid #999;}.leaflet-div-icon {background:#fff;border:1px solid #666;}.leaflet-tooltip {position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);}.leaflet-tooltip.leaflet-interactive {cursor:pointer;pointer-events:auto;}.leaflet-tooltip-top:before,
827
- .leaflet-tooltip-bottom:before,
828
- .leaflet-tooltip-left:before,
829
- .leaflet-tooltip-right:before {position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:"";}.leaflet-tooltip-bottom {margin-top:6px;}.leaflet-tooltip-top {margin-top:-6px;}.leaflet-tooltip-bottom:before,
830
- .leaflet-tooltip-top:before {left:50%;margin-left:-6px;}.leaflet-tooltip-top:before {bottom:0;margin-bottom:-12px;border-top-color:#fff;}.leaflet-tooltip-bottom:before {top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff;}.leaflet-tooltip-left {margin-left:-6px;}.leaflet-tooltip-right {margin-left:6px;}.leaflet-tooltip-left:before,
831
- .leaflet-tooltip-right:before {top:50%;margin-top:-6px;}.leaflet-tooltip-left:before {right:0;margin-right:-12px;border-left-color:#fff;}.leaflet-tooltip-right:before {left:0;margin-left:-12px;border-right-color:#fff;}.map.svelte-1c5gj1k {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;aspect-ratio:1/1;background-clip:text;}.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);}`}})),m2,Eue=s((()=>{m2=e=>new Date(e*1e3).toISOString().substr(11,8)}));function h2(e,t){O(t,!0),K(e,M2);let n=J(t,`showPreview`,3,!1),r=N(Cr({...C0})),i=M(()=>t.asset.path),a=M(()=>t.asset.size),o=M(()=>t.asset.kind),s=M(()=>t.asset.commitAuthor),c=M(()=>t.asset.commitDate),l=M(()=>z(r).publicURL),u=M(()=>z(r).repoBlobURL),d=M(()=>z(r).dimensions),f=M(()=>z(r).duration),p=M(()=>z(r).createdDate),m=M(()=>z(r).coordinates),h=M(()=>z(r).usedEntries),g=M(()=>Dp(z(i))),_=M(()=>T(z(g).extension,``)),v=M(()=>TS(z(o))||z(i).endsWith(`.pdf`)),y=async()=>{P(r,t.asset?await w0(t.asset):{...C0},!0),z(r).usedEntries=t.asset?await T0(t.asset):[]};ti(()=>{t.asset,y()});var b=j2(),x=F(b),S=e=>{var n=y2(),r=F(n);{let e=M(()=>z(o)===`image`),n=M(()=>[`audio`,`video`].includes(z(o)));n2(r,{get kind(){return z(o)},get asset(){return t.asset},variant:`tile`,get checkerboard(){return z(e)},get controls(){return z(n)}})}D(n),U(e,n)};G(x,e=>{n()&&z(v)&&e(S)});var C=L(x,2),w=F(C),ee=F(w,!0);D(w);var te=L(w,2),ne=F(te,!0);D(te),D(C);var re=L(C,2),ie=e=>{var t=b2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);oo(F(i),()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>qC(z(a))]),U(e,t)}),D(i),D(t),R(e=>W(r,e),[()=>X(`size`)]),U(e,t)};G(re,e=>{z(a)&&e(ie)});var ae=L(re,2),oe=e=>{var t=x2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R(e=>{W(r,e),W(a,z(d)?`${z(d).width}×${z(d).height}`:`–`)},[()=>X(`dimensions`)]),U(e,t)};G(ae,e=>{z(v)&&e(oe)});var se=L(ae,2),ce=e=>{var t=S2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{W(r,e),W(a,t)},[()=>X(`duration`),()=>z(f)?m2(z(f)):`–`]),U(e,t)},le=M(()=>[`audio`,`video`].includes(z(o)));G(se,e=>{z(le)&&e(ce)});var ue=L(se,2),de=F(ue),fe=F(de,!0);D(de);var E=L(de,2),pe=F(E),me=e=>{var t=C2(),n=F(t,!0);D(t),R(()=>{q(t,`href`,z(l)),W(n,z(l))}),U(e,t)},he=e=>{U(e,Fa(`–`))};G(pe,e=>{z(l)?e(me):e(he,-1)}),D(E),D(ue);var ge=L(ue,2),_e=F(ge),ve=F(_e,!0);D(_e);var ye=L(_e,2),be=F(ye),xe=e=>{var t=w2(),n=F(t);D(t),R(()=>{q(t,`href`,z(u)),W(n,`/${z(i)??``}`)}),U(e,t)},Se=e=>{var t=Fa();R(()=>W(t,`/${z(i)??``}`)),U(e,t)};G(be,e=>{z(u)?e(xe):e(Se,-1)}),D(ye),D(ge);var Ce=L(ge,2),we=F(Ce),Te=F(we,!0);D(we);var Ee=L(we,2),De=e=>{var t=T2(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading`)]),U(e,t)},Oe=e=>{var t=H();mo(I(t),17,()=>z(h),e=>e.id,(e,t)=>{var n=H();mo(I(n),17,()=>WO(z(t)),e=>e.name,(e,n)=>{var r=H();oo(I(r),()=>Oh.current,e=>{let r=M(()=>Gb(z(n)));var i=H();mo(I(i),17,()=>Ky(z(n),z(t)),e=>e.name,(e,t)=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).name}`,collectionLabel:z(r),entryLabel:Gy(z(t))}));g2(e,()=>z(i))}},e=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).subPath}`,collectionLabel:z(r),entryLabel:CO(z(n),z(t),{useTemplate:!0})}));g2(e,()=>z(i))}}),U(e,i)}),U(e,r)}),U(e,n)},e=>{var t=E2(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`sort_keys.none`)]),U(e,t)}),U(e,t)};G(Ee,e=>{z(h)?e(Oe,-1):e(De)}),D(Ce);var ke=L(Ce,2),Ae=e=>{var t=D2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R(e=>{W(r,e),W(a,z(s).name||z(s).login||z(s).email)},[()=>X(`sort_keys.commit_author`)]),U(e,t)};G(ke,e=>{z(s)&&e(Ae)});var je=L(ke,2),Me=e=>{var t=O2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{W(r,e),W(a,t)},[()=>X(`sort_keys.commit_date`),()=>rC(z(c),Oh.current)]),U(e,t)};G(je,e=>{z(c)&&e(Me)});var Ne=L(je,2),Pe=e=>{var t=k2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{W(r,e),W(a,t)},[()=>X(`created_date`),()=>rC(z(p),Oh.current)]),U(e,t)};G(Ne,e=>{z(p)&&e(Pe)});var Fe=L(Ne,2),Ie=e=>{var t=A2(),n=F(t),r=F(n,!0);D(n),u2(L(n,2),{get coordinates(){return z(m)}}),D(t),R(e=>W(r,e),[()=>X(`location`)]),U(e,t)};G(Fe,e=>{z(m)&&e(Ie)}),D(b),R((e,t,n,r,i)=>{W(ee,e),W(ne,t),W(fe,n),W(ve,r),W(Te,i)},[()=>X(`kind`),()=>X(`file_type_labels.${z(_)}`,{default:yS.getType(z(i))??z(_).toUpperCase()}),()=>X(`public_url`),()=>X(`file_path`),()=>X(`used_in`)]),U(e,b),k()}var g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2=s((()=>{Q(),Y(),Z(),B$(),Np(),bS(),l2(),p2(),S1(),E0(),AS(),qb(),Yy(),JO(),wO(),iC(),ew(),Eue(),g2=(e,t)=>{let n=()=>t?.().link,r=()=>t?.().collectionLabel,i=()=>t?.().entryLabel;var a=v2();tI(F(a),{role:`link`,variant:`link`,onclick:()=>y1(n(),{transitionType:`forwards`}),children:(e,t)=>{var n=_2(),a=F(n);D(n),R(()=>W(a,`${r()??``} › ${i()??``}`)),U(e,n)},$$slots:{default:!0}}),D(a),U(e,a)},_2=V(`<span role="none"> </span>`),v2=V(`<p><!></p>`),y2=V(`<div role="none" class="preview svelte-6mkk55"><!></div>`),b2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section>`),x2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),S2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),C2=V(`<a target="_blank" rel="noopener noreferrer"> </a>`),w2=V(`<a> </a>`),T2=V(`<p> </p>`),E2=V(`<p> </p>`),D2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),O2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),k2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),A2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <!></section>`),j2=V(`<div role="none" class="detail svelte-6mkk55"><!> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section> <!> <!> <!> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <!></section> <!> <!> <!> <!></div>`),M2={hash:`svelte-6mkk55`,code:`.detail.svelte-6mkk55 {flex:none;overflow-x:hidden;overflow-y:auto;padding:16px;width:320px;}.detail.svelte-6mkk55 .preview:where(.svelte-6mkk55) {overflow:hidden;margin:0 0 16px;border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-content-background-color);aspect-ratio:1/1;}.detail.svelte-6mkk55 section:where(.svelte-6mkk55):not(:last-child) {margin:0 0 16px;}.detail.svelte-6mkk55 section:where(.svelte-6mkk55) > * {margin:0 0 4px;word-break:break-all;}.detail.svelte-6mkk55 h4:where(.svelte-6mkk55) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}`}}));function Due(e,t){O(t,!0),K(e,V2);let n=()=>j(fF,`$overlaidAsset`,i),r=()=>j(t1,`$showAssetOverlay`,i),[i,a]=hn(),o=N(void 0),s=N(void 0),c=M(()=>n()?.kind),l=M(()=>n()?.blobURL),u=M(()=>n()?.name),d=async()=>{await Bi(),z(o)&&(z(o).tabIndex=0,z(o).focus())};ti(()=>{n()&&(async()=>{P(s,await dT(n()),!0)})()}),ti(()=>{z(o)&&r()&&d()});var f=B2();oo(F(f),()=>n()?.sha,e=>{var t=z2(),r=I(t);wue(r,{});var i=L(r,2),a=F(i),o=F(a),d=e=>{{let t=M(()=>[`image`,`video`].includes(z(c))),r=M(()=>z(c)===`image`),i=M(()=>z(c)===`image`?z(u):void 0),a=M(()=>[`audio`,`video`].includes(z(c)));n2(e,{get kind(){return z(c)},get asset(){return n()},get blurBackground(){return z(t)},get checkerboard(){return z(r)},get alt(){return z(i)},get controls(){return z(a)}})}},f=M(()=>z(c)&&TS(z(c))),p=e=>{var t=P2();R(()=>{q(t,`src`,z(l)),q(t,`title`,z(u))}),U(e,t)},m=e=>{var t=H();eo(I(t),()=>n()?.text??z(s).text(),null,(e,t)=>{var n=H(),r=I(n),i=e=>{var n=H();eo(I(n),()=>cO(z(t),{breaks:!0,async:!0}),null,(e,t)=>{var n=F2();So(n,()=>OE(z(t)),!0),D(n),U(e,n)},e=>{var n=I2(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)}),U(e,n)},a=M(()=>z(u)?.endsWith(`.md`)),o=e=>{var n=L2(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)};G(r,e=>{z(a)?e(i):e(o,-1)}),U(e,n)}),U(e,t)},h=M(()=>z(s)?.type&&Ep(z(s).type)),g=e=>{P$(e,{children:(e,t)=>{var n=R2(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`preview_unavailable`)]),U(e,n)},$$slots:{default:!0}})};G(o,e=>{z(f)?e(d):z(s)?.type===`application/pdf`?e(p,1):z(h)?e(m,2):e(g,-1)}),D(a);var _=L(a,2),v=e=>{h2(e,{get asset(){return n()}})};G(_,e=>{n()&&e(v)}),D(i),U(e,t)}),D(f),Us(f,e=>P(o,e),()=>z(o)),R(e=>q(f,`aria-label`,e),[()=>X(`asset_editor`)]),U(e,f),k(),a()}var P2,F2,I2,L2,R2,z2,B2,V2,Oue=s((()=>{Q(),Y(),Z(),B$(),Np(),kE(),lO(),oc(),Tue(),l2(),N2(),SF(),vT(),AS(),l1(),P2=V(`<iframe class="svelte-9guikv"></iframe>`),F2=V(`<div role="figure" class="markdown svelte-9guikv"></div>`),I2=V(`<pre role="figure" class="svelte-9guikv"> </pre>`),L2=V(`<pre role="figure" class="svelte-9guikv"> </pre>`),R2=V(`<span role="alert"> </span>`),z2=V(`<!> <div role="none" class="row svelte-9guikv"><div role="none" class="preview svelte-9guikv"><!></div> <!></div>`,1),B2=V(`<div role="group" class="wrapper svelte-9guikv"><!></div>`),V2={hash:`svelte-9guikv`,code:`.wrapper.svelte-9guikv {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) {flex:auto;display:flex;overflow:hidden;}
832
- @media (width < 768px) {.wrapper.svelte-9guikv .row:where(.svelte-9guikv) {flex-direction:column;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) {flex:none !important;aspect-ratio:1/1;}.wrapper.svelte-9guikv .row:where(.svelte-9guikv) .detail {flex:auto;width:auto;}
833
- }.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),
834
- .wrapper.svelte-9guikv .row:where(.svelte-9guikv) .preview:where(.svelte-9guikv) pre:where(.svelte-9guikv),
835
- .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),
836
- .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);}`}})),H2,U2,W2=s((()=>{rp(),kP(),$P(),H2=dn([JP,DP],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return typeof n==`boolean`||typeof r==`boolean`}),U2=dn([JP,DP],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return n===!0||r===!1})})),G2,K2,q2,J2=s((()=>{rp(),SF(),F0(),AS(),W2(),B0(),N0(),rF(),ew(),G2=e=>{let{files:t,folder:n,originalAssets:r}=e,{slugify_filename:i=!1}=nF().config,a=n?.internalPath===void 0?[]:bF(n.internalPath).map(e=>e.name.normalize());return t.map(e=>{let t=r?.find(t=>t.name.normalize().toLowerCase()===e.name.normalize().toLowerCase()),o=t?.name??YC(e.name,{slugificationEnabled:i,assetNamesInSameFolder:a});return a.includes(o)||a.push(o),{action:t?`update`:`create`,name:o,path:t?.path??[n?.internalPath,o].join(`/`),file:e}})},K2=({count:e})=>{let t=A(dF),n=A(fF);t&&dF.set(lF(t.path)),n&&fF.set(lF(n.path)),P0.set({...j0,saved:!0,published:A(H2)&&!A(U2),count:e})},q2=async(e,t)=>{let{files:n,folder:r}=e,i=G2(e),a=i.map(({name:e,path:t,file:n})=>({name:e,path:t,size:n.size,kind:kS(e),folder:r}));await z0({changes:i.map(({action:e,path:t,file:n})=>({action:e,path:t,data:n})),savingAssets:a,options:t}),K2({count:n.length})}}));function kue(e,t){O(t,!0),K(e,X2);let n=()=>j(mF,`$editingAsset`,i),r=()=>j(t1,`$showAssetOverlay`,i),[i,a]=hn(),o=M(n),s=N(!1),c=N(void 0),l=N(void 0),u=N(void 0),d=N(!1),f=async()=>{P(c,await dT(z(o)),!0),P(l,await z(c).text(),!0),P(u,z(l),!0),P(s,!0)},p=()=>{mn(mF,void 0),P(c,void 0),P(l,void 0),P(u,void 0)},m=async()=>{z(o)&&z(c)&&typeof z(u)==`string`&&await q2({folder:z(o).folder,files:[new File([z(u)],z(o).name,{type:z(c).type})],originalAssets:[z(o)]},{commitType:`uploadMedia`})};ti(()=>{z(o)&&z(c)===void 0&&f()}),ti(()=>{r()||P(s,!1)});{let t=e=>{{let t=M(()=>X(`wrap_long_lines`));HR(e,{get label(){return z(t)},get checked(){return z(d)},set checked(e){P(d,e,!0)}})}},n=M(()=>X(`edit_x`,{values:{name:z(o)?.name??``}})),r=M(()=>X(`save`)),i=M(()=>z(u)===z(l));$I(e,{size:`x-large`,get title(){return z(n)},get okLabel(){return z(r)},get okDisabled(){return z(i)},okShortcuts:`Accel+S`,onOk:()=>{m()},onClose:()=>{p()},get open(){return z(s)},set open(e){P(s,e,!0)},footerExtra:t,children:(e,t)=>{var n=Y2();let r;l$(F(n),{dir:`auto`,flex:!0,get value(){return z(u)},set value(e){P(u,e,!0)}}),D(n),R(()=>r=ss(n,1,`wrapper svelte-1lnkfih`,null,r,{wrap:z(d)})),U(e,n)},$$slots:{footerExtra:!0,default:!0}})}k(),a()}var Y2,X2,Aue=s((()=>{Q(),Y(),Z(),B$(),SF(),J2(),vT(),l1(),Y2=V(`<div role="none"><!></div>`),X2={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;}`}})),Z2,Q2,$2=s((()=>{Sp(),RO(),nb(),ub(),ew(),Z2=({basePath:e,path:t,extension:n,locale:r,omitLocale:i,structure:a})=>{switch(a){case`multiple_folders`:return i?`${e}/${t}.${n}`:`${e}/${r}/${t}.${n}`;case`multiple_folders_i18n_root`:case`multiple_root_folders`:return i?`${e}/${t}.${n}`:`${r}/${e}/${t}.${n}`;case`multiple_files`:return i?`${e}/${t}.${n}`:`${e}/${t}.${r}.${n}`;default:return`${e}/${t}.${n}`}},Q2=({draft:e,locale:t,slug:n})=>{let{collection:r,collectionFile:i,originalEntry:a,currentValues:o,isIndexFile:s}=e,{_i18n:{defaultLocale:c,structure:l,omitDefaultLocaleFromFilePath:u}}=i??r;if(i){let{_i18n:e,file:n}=i;return lb({_i18n:e,locale:t,path:vp(n)})}if(a?.locales[t]?.slug===n)return a.locales[t].path;let d=r,{_file:{basePath:f,subPath:p,extension:m}}=d,h=s?eb(d)?.name:p?LO(p,{collection:d,locale:t,content:o[c],currentSlug:n}):n;return s&&h?.endsWith(`.${m}`)&&(h=h.slice(0,-m.length-1)),XC(Z2({basePath:f,path:h,extension:m,locale:t,omitLocale:u&&t===c,structure:l}).split(`/`))}})),e4,t4,n4,r4,i4,a4,o4=s((()=>{RO(),nb(),e4=(e,t)=>{let n={...e};return Object.entries(n).forEach(([e,r])=>{typeof r==`string`&&r.startsWith(`blob:`)&&t[r]&&(n[e]=t[r].file.name.replace(/\.[^.]+$/,``))}),n},t4=({draft:e})=>{let{collection:t,collectionFile:n,currentSlugs:r,currentValues:i,files:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=n??t;return{collection:t,content:{...e4(i[s],a),_slug:r?.[s]??r?._},locale:s,isIndexFile:o}},n4=({draft:e,locale:t,localizingKeyPaths:n})=>{let{isNew:r,collection:i,collectionFile:a,originalLocales:o,currentSlugs:s,currentValues:c,files:l,isIndexFile:u}=e,{_type:d}=i,{identifier_field:f=`title`,slug:p=`{{${f}}}`}=d===`entry`?i:{},{_i18n:{defaultLocale:m}}=a??i,h=s?.[t]??s?._;return r||!o[t]?LO(p,{collection:i,locale:t,content:{...e4(c[m],l),...e4(Object.fromEntries(n.map(e=>[e,c[t]?.[e]])),l),_slug:h},isIndexFile:u}):h},r4=({draft:e,defaultLocaleSlug:t})=>{let{collection:n,collectionFile:r,currentLocales:i}=e,{_type:a}=n,{identifier_field:o=`title`,slug:s=`{{${o}}}`}=a===`entry`?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:l,i18nSingleFileDefaultRoot:u}}}=r??n,d=[...s.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,e])=>!!e).map(([,e])=>e.replace(/^fields\./,``));if(!(l||u||!d.length))return Object.fromEntries(Object.entries(i).map(([n])=>[n,n===c?t:n4({draft:e,locale:n,localizingKeyPaths:d})]))},i4=({draft:e,defaultLocaleSlug:t,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;let{collection:i,collectionFile:a}=e,{_i18n:{canonicalSlug:{value:o}}}=a??i;return o===`{{slug}}`?t:LO(o,{...r,currentSlug:t})},a4=({draft:e})=>{let{isNew:t,collection:n,collectionFile:r,fileName:i,currentSlugs:a,isIndexFile:o}=e,{_type:s}=n,{identifier_field:c=`title`,slug:l=`{{${c}}}`}=s===`entry`?n:{};if(o)return{defaultLocaleSlug:eb(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};let{_i18n:{defaultLocale:u}}=r??n,d=t4({draft:e}),f=i??(t?LO(l,d):a?.[u]??a?._),p=r4({draft:e,defaultLocaleSlug:f});return{defaultLocaleSlug:f,localizedSlugs:p,canonicalSlug:i4({draft:e,defaultLocaleSlug:f,localizedSlugs:p,fillSlugOptions:d})}}})),s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,jue=s((()=>{s4=u(YM(),1),SF(),AS(),RO(),$2(),o4(),ew(),c4=[`multiple_folders`,`multiple_folders_i18n_root`,`multiple_root_folders`],l4=/(?<path>.+?)(?:\/[^/]+)?$/,u4=(e,t)=>e.includes(`{{`)?LO(e,t):e,d4=(e,t)=>{let n=e.lastIndexOf(`.`),r=e.substring(0,n),i=t?.includes(`/`)?t.split(`/`).at(-1):void 0;return i&&!i.includes(`{{`)&&(r=r.match(l4)?.groups?.path),r},f4=({internalPath:e,internalSubPath:t,entryFolderPath:n,isMultiFolders:r,isNestedEntry:i,fillSlugOptions:a})=>ZC(u4(XC([r||i?n:e,t]),a)),p4=({publicPath:e,subPathFolderPath:t,subPath:n,isMultiFolders:r,fillSlugOptions:i})=>!r&&/^\.?$/.test(e)?e:ZC(u4(r?XC([...Array((n?.match(/\//g)??[]).length+1).fill(`..`),e,t]):e,i)),m4=({folder:e,fillSlugOptions:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i,publicPath:a}=e;if(r===void 0||a===void 0)return{resolvedInternalPath:``,resolvedPublicPath:``};if(!n)return{resolvedInternalPath:LO(r,t),resolvedPublicPath:LO(a,t)};let{collection:o,entryFilePath:s}=t,c=c4.includes(o._i18n.structure),l=o._type===`entry`?o._file.subPath:void 0,u=l?.match(l4)?.groups?.path??``;return{resolvedInternalPath:f4({internalPath:r,internalSubPath:i,entryFolderPath:d4(s??``,l),isMultiFolders:c,isNestedEntry:l?.includes(`/`)??!1,fillSlugOptions:t}),resolvedPublicPath:p4({publicPath:a,subPathFolderPath:u,subPath:l,isMultiFolders:c,fillSlugOptions:t})}},h4=({draft:e,defaultLocaleSlug:t,folder:n})=>{let{collection:r,collectionName:i,collectionFile:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=a??r,c=m4({folder:n,fillSlugOptions:{...t4({draft:e}),type:`media_folder`,currentSlug:t,entryFilePath:Q2({draft:e,locale:s,slug:t}),isIndexFile:o}}),{resolvedInternalPath:l}=c;return{assetFolderPaths:c,assetNamesInSameFolder:bF(l).map(e=>e.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},g4=async({file:e,folder:t,replace:n,blobURL:r,draft:i,defaultLocaleSlug:a,keyPath:o,content:s,changes:c,savingAssets:l,encodingEnabled:u})=>{let d=await $C(e),f=l.find(e=>e.sha===d&&(!t.entryRelative||(0,s4.default)(e.folder,t))),{savingAssetProps:p,assetNamesInSameFolder:m,assetFolderPaths:{resolvedInternalPath:h,resolvedPublicPath:g}}=h4({draft:i,defaultLocaleSlug:a,folder:t}),_=``;if(f)_=f.name;else{_=YC(e.name,n?{}:{assetNamesInSameFolder:m});let t=n&&m.includes(_),i=h?`${h}/${_}`:_;t||m.push(_),c.push({action:t?`update`:`create`,path:i,data:e}),l.push({...p,blobURL:r,name:_,path:i,sha:d,size:e.size,kind:kS(_)})}let v=g?`${g===`/`?``:g}/${_}`:_;u&&(v=WC(v)),s[o]=s[o].replaceAll(r,v)}})),_4,v4,y4,b4,x4,S4=s((()=>{Lx(),rp(),My(),$P(),yb(),_4=(e,t=A(JP)?.output?.json??{})=>{let{indent_style:n=`space`,indent_size:r=n===`tab`?1:2}=t;return JSON.stringify(e,null,n===`tab`?` `.repeat(r):r).trim()},v4=e=>Dne(e).trim(),y4=(e,t=A(JP)?.output?.yaml??{},n={})=>{let{indent_size:r=2,indent_sequences:i=!0,quote:a=`none`}=t,{quote:o=!1}=n;return Ay(e,null,{indent:r,indentSeq:i,lineWidth:0,defaultKeyType:`PLAIN`,defaultStringType:o||a===`double`?`QUOTE_DOUBLE`:a===`single`?`QUOTE_SINGLE`:`PLAIN`,singleQuote:!(o||a===`double`)}).trim()},b4=({content:e,_file:t})=>{let{format:n,fmDelimiters:r,yamlQuote:i=!1}=t,[a,o]=r??[`---`,`---`],s=typeof e.body==`string`?e.body:``;if(delete e.body,!Object.keys(e).length)return`${s}\n`;try{let t=``;if(n===`frontmatter`||n===`yaml-frontmatter`)t=y4(e,void 0,{quote:i});else if(n===`toml-frontmatter`)t=v4(e);else if(n===`json-frontmatter`)t=_4(e);else return``;return`${a}\n${t}\n${o}\n${s?`\n${s}\n`:``}`}catch(e){console.error(e)}return``},x4=async({content:e,_file:t})=>{let{format:n,yamlQuote:r=!1}=t,i=fb.get(n)?.formatter;if(i)return`${(await i(e)).trim()}\n`;if(n===`raw`)return typeof e.body==`string`?`${e.body}\n`:``;try{if(/^ya?ml$/.test(n))return`${y4(e,void 0,{quote:r})}\n`;if(n===`toml`)return`${v4(e)}\n`;if(n===`json`)return`${_4(e)}\n`}catch(e){return console.error(e),``}return/^(?:(?:yaml|toml|json)-)?frontmatter$/.test(n)?b4({content:e,_file:t}):``}})),C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4=s((()=>{p(),cS(),rp(),kP(),B0(),N0(),ak(),nb(),i3(),Q4(),S4(),C4=`order`,w4=e=>{let t=e?.reorder;if(t)return d(t)&&typeof t.key==`string`&&t.key?t.key:C4},T4=(e,t)=>{let n=w4(t);if(!n)return[...e];let{defaultLocale:r}=t._i18n,i=e.map(e=>{let t=Number(e.locales[r]?.content?.[n]);return{entry:e,v:t,has:Number.isFinite(t)}});return i.sort((e,t)=>e.has&&t.has?e.v-t.v:e.has?-1:+!!t.has),i.map(({entry:e})=>e)},E4=e=>({collection:e,collectionName:e.name,collectionFile:void 0,fields:e.fields,isIndexFile:!1}),D4=({collection:e,entry:t,draft:n})=>{let{_i18n:{i18nEnabled:r,defaultLocale:i,structureMap:{i18nSingleFileDefaultRoot:a}={}}}=e;if(!r)return Z4({draft:n,locale:`_default`,valueMap:t.locales[i].content});let o=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([e,t])=>[e,Z4({draft:n,locale:e,valueMap:t.content})]));if(a){let{lang:e,...t}=o[i]??{},n=Object.fromEntries(Object.entries(o).filter(([e])=>e!==i));return{lang:[i,...Object.keys(n)],...t,...n}}return o},O4=(e,t,n)=>{let r=Object.fromEntries(Object.entries(e.locales).map(([e,r])=>[e,r.content?{...r,content:{...r.content,[t]:n}}:{...r}]));return{...e,locales:r}},k4=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{defaultLocale:a}}=e,{slug:o,path:s}=t.locales[a],[c,l]=await Promise.all([e3({cacheDB:r,previousPath:s}),x4({content:D4({collection:e,entry:t,draft:n}),_file:i})]);return{action:`update`,slug:o,path:s,previousSha:c,data:l}},A4=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{allLocales:a}}=e;return(await Promise.all(a.map(async e=>{let a=t.locales[e];if(!a?.content)return;let[o,s]=await Promise.all([e3({cacheDB:r,previousPath:a.path}),x4({content:Z4({draft:n,locale:e,valueMap:a.content}),_file:i})]);return{action:`update`,slug:a.slug,path:a.path,previousSha:o,data:s}}))).filter(Boolean)},j4=e=>{if(e)return e;let t=A(DP)?.repository?.databaseName;return t?new aS(t,`file-cache`):void 0},M4=async(e,t,{cacheDB:n}={})=>{let r=w4(e);if(!r)return{changes:[],savingEntries:[]};let{_i18n:{i18nEnabled:i,defaultLocale:a,structureMap:{i18nSingleFile:o,i18nSingleFileDefaultRoot:s}={}}}=e,c=!i||o||s,l=j4(n),u=[];for(let[e,n]of t.entries()){let t=e+1;Number(n.locales[a]?.content?.[r])!==t&&u.push(O4(n,r,t))}let d=E4(e);return{changes:(await Promise.all(u.map(t=>c?k4({collection:e,entry:t,draft:d,cacheDB:l}).then(e=>[e]):A4({collection:e,entry:t,draft:d,cacheDB:l})))).flat(),savingEntries:u}},N4=async(e,t,{silent:n=!1}={})=>{let{changes:r,savingEntries:i}=await M4(e,t);return r.length?(await z0({changes:r,savingEntries:i,options:{commitType:`update`,collection:e}}),n||M0.set({...j0,saved:!0,count:i.length}),i.length):0},P4=(e,{excludeIds:t}={})=>{let n=eb(e)?.name;return T4(tk(e.name).filter(e=>e.slug!==n&&!(t&&t.has(e.id))),e)},F4=async(e,{excludeIds:t,cacheDB:n}={})=>!e||e._type!==`entry`||!w4(e)?{changes:[],savingEntries:[]}:M4(e,P4(e,{excludeIds:t}),{cacheDB:n})})),L4,R4,z4,B4,V4,H4,U4,W4=s((()=>{L4=u(YM(),1),rp(),eN(),R4=/\.__sc_\w+$/,z4=un(),B4=un(!0),V4=un(!1),H4=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!R4.test(e))),U4=dn([z4],([e])=>{if(!e)return!1;let{originalLocales:t,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:a,currentValues:o}=e,s=Object.fromEntries(Object.entries(o).map(([e,t])=>[e,H4(t)]));return!(0,L4.default)(t,n)||!(0,L4.default)(r,i)||!(0,L4.default)(a,s)}),z4.subscribe(e=>{A($M).devModeEnabled&&console.info(`entryDraft`,e)})})),G4,K4,Mue=s((()=>{_A(),CC(),G4=({field:e,keyPath:t,keyPathList:n})=>{let{widget:r}=e,i=r===`list`;if(n.push(t),i||r===`object`){let{fields:r}=e,{types:a,typeKey:o=`type`}=e;if(r)r.forEach(e=>{G4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})});else if(a)n.push(i?`${t}.*.${o}`:`${t}.${o}`),a.forEach(e=>{e.fields?.forEach(e=>{G4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})})});else if(i){let{field:r}=e;r?G4({field:r,keyPath:`${t}.*`,keyPathList:n}):n.push(`${t}.*`)}}else r&&SC.includes(r)&&sA(e)&&n.push(`${t}.*`)},K4=e=>{let t=[];return e.forEach(e=>{G4({field:e,keyPath:e.name,keyPathList:t})}),t}})),q4,J4,Y4,X4,Z4,Q4=s((()=>{p(),Sp(),dc(),Lx(),rp(),$P(),I4(),W4(),Mue(),_A(),mC(),zx(),q4=new Map,J4=e=>e==null||e===``||Array.isArray(e)&&!e.length||d(e)&&!Object.keys(e).length,Y4=({key:e,field:t,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:a,omitEmptyOptionalFields:o})=>{if(R4.test(e)){delete r[e];return}let s=r[e];if(a&&t?.widget===`datetime`&&!oC(t).format){let e=new _x(s);s=e.isValid()?e:void 0}if(o&&t&&!dA({fieldConfig:t,locale:n})&&J4(s)){let t=Object.keys(r).filter(t=>t.startsWith(`${e}.`));t.some(e=>!R4.test(e)&&!J4(r[e]))?i[e]=s:t.forEach(e=>{delete r[e]})}else i[e]=s;delete r[e]},X4=({collectionName:e,fileName:t,fields:n,locale:r,valueMap:i,canonicalSlugKey:a,orderKey:o,isIndexFile:s=!1,isTomlOutput:c=!1})=>{let l=f(i),u={},{omit_empty_optional_fields:d=!1}=A(JP)?.output??{},p={collectionName:e,fileName:t,valueMap:i,isIndexFile:s},m={locale:r,unsortedMap:l,sortedMap:u,isTomlOutput:c,omitEmptyOptionalFields:d};return a&&a in l&&Y4({...m,key:a}),o&&o in l&&Y4({...m,key:o}),K4(n).forEach(e=>{let t=uA({...p,keyPath:e});if(e in l)Y4({...m,key:e,field:t});else if(t?.widget===`keyvalue`)u[e]={},Object.entries(l).filter(([t])=>t.startsWith(`${e}.`)).forEach(([e])=>{Y4({...m,key:e,field:t})});else{let n=Rx(q4,e,()=>RegExp(`^${gp(e.replaceAll(`*`,`\\d+`)).replaceAll(`\\\\d\\+`,`\\d+`)}$`));Object.keys(l).filter(e=>n.test(e)).sort(([e,t])=>xp(e,t)).forEach(e=>{let n=t??uA({...p,keyPath:e});Y4({...m,key:e,field:n})})}}),Object.keys(l).sort(([e,t])=>xp(e,t)).forEach(e=>{Y4({...m,key:e})}),uc(u)},Z4=({draft:e,locale:t,valueMap:n})=>{let{collection:r,collectionName:i,collectionFile:a,fields:o,isIndexFile:s}=e,{_file:c,_i18n:{canonicalSlug:{key:l}}}=a??r,u=[`toml`,`toml-frontmatter`].includes(c.format),d=X4({collectionName:i,fileName:a?.name,fields:o,locale:t,valueMap:n,canonicalSlugKey:l,orderKey:w4(r),isIndexFile:s,isTomlOutput:u});return!u&&oA(o,`list`)?d[o[0].name]??[]:oA(o,`keyvalue`)?d[o[0].name]??{}:d}})),$4,e3,t3,n3,r3,i3=s((()=>{Np(),p(),cS(),rp(),Hp(),kP(),$P(),kF(),jue(),$2(),Q4(),_A(),S4(),$4=async({draft:e,slugs:{defaultLocaleSlug:t,canonicalSlug:n,localizedSlugs:r}})=>{let i=A(Fp),{collection:a,collectionName:o,collectionFile:s,fileName:c,isIndexFile:l,currentLocales:u,currentValues:d,files:p}=e,{_i18n:{canonicalSlug:{key:m}}}=s??a,h=[],g=[],{encode_file_path:_=!1}=A(JP)?.output??{},v={collectionName:o,fileName:c,keyPath:``,valueMap:{},isIndexFile:l},y={draft:e,defaultLocaleSlug:t,changes:h,savingAssets:g};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(d).map(async([a,o])=>{let s=r?.[a]??t,c=Q2({draft:e,locale:a,slug:s});return u[a]?(n!==void 0&&(o[m]=n),await Promise.all(Object.entries(o).map(async([e,t])=>{if(t===void 0){delete o[e];return}if(typeof t!=`string`)return;o[e]=t.trim();let n=[...t.matchAll(Cp(`g`))];if(!n.length)return;let r=uA({...v,valueMap:o,keyPath:e}),a={...y,keyPath:e,content:o,encodingEnabled:r?.widget===`richtext`||r?.widget===`markdown`?!0:_};await Promise.all(n.map(async([e])=>{let{file:t,folder:n=i,replace:r}=p[e]??{};t&&await g4({...a,file:t,folder:n,replace:r,blobURL:e})}))})),[a,{slug:s,path:c,content:f(o)}]):[a,{path:c}]}))),changes:h,savingAssets:g}},e3=async({previousPath:e,cacheDB:t})=>{if(e)return(await t?.get(e))?.sha},t3=async({draft:e,savingEntry:t,cacheDB:n})=>{let{collection:r,isNew:i,originalSlugs:a,originalEntry:o,collectionFile:s}=e,{_file:c,_i18n:{i18nEnabled:l,defaultLocale:u,structureMap:{i18nSingleFileDefaultRoot:d}={}}}=s??r,{slug:f,path:p,content:m}=t.locales[u],h=!i&&(a?.[u]??a?._)!==f,g=o?.locales[u]?.path;return{action:i?`create`:h?`move`:`update`,slug:f,path:p,previousPath:h?g:void 0,previousSha:await e3({cacheDB:n,previousPath:g}),data:await x4({content:(()=>{if(!l)return Z4({draft:e,locale:`_default`,valueMap:m});let n=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([t,n])=>[t,Z4({draft:e,locale:t,valueMap:n.content})]));if(d){let{lang:e,...t}=n[u]??{},r=Object.fromEntries(Object.entries(n).filter(([e])=>e!==u));return{lang:[u,...Object.keys(r)],...t,...r}}return n})(),_file:c})}},n3=async({draft:e,savingEntry:t,cacheDB:n,locale:r})=>{let{collection:i,isNew:a,originalLocales:o,currentLocales:s,originalSlugs:c,originalEntry:l,collectionFile:u}=e,{_file:d}=u??i,{slug:f,path:p,content:m}=t.locales[r]??{},h=l?.locales[r]?.path,g=await e3({cacheDB:n,previousPath:h});if(s[r]){let t=!a&&o[r]&&(c?.[r]??c?._)!==f;return{action:a||!o[r]?`create`:t?`move`:`update`,slug:f,path:p,previousPath:t?h:void 0,previousSha:g,data:await x4({content:Z4({draft:e,locale:r,valueMap:m}),_file:d})}}if(!a&&o[r])return{action:`delete`,slug:f,path:p,previousSha:g}},r3=async({draft:e,slugs:t})=>{let{id:n,collection:r,collectionFile:i}=e,{defaultLocaleSlug:a}=t,{_file:o,_i18n:{i18nEnabled:s,allLocales:c,defaultLocale:l,structureMap:{i18nSingleFile:u,i18nSingleFileDefaultRoot:d}}}=i??r,{localizedEntryMap:f,changes:p,savingAssets:m}=await $4({draft:e,slugs:t}),h={id:n,slug:a,subPath:o.fullPathRegEx?f[l].path.match(o.fullPathRegEx)?.groups?.subPath??a:a,locales:Object.fromEntries(Object.entries(f))};await OF({type:`preSave`,draft:e,savingEntry:h});let g=A(DP)?.repository?.databaseName,_={draft:e,savingEntry:h,cacheDB:g?new aS(g,`file-cache`):void 0};return!s||u||d?p.push(await t3({..._})):await Promise.all(c.map(async e=>{let t=await n3({..._,locale:e});t&&p.push(t)})),{savingEntry:h,savingAssets:m,changes:p}}})),a3,o3,s3,c3,l3,u3,Nue=s((()=>{Np(),rp(),SF(),F0(),Hp(),vT(),B0(),N0(),ak(),nb(),Yy(),i3(),o4(),JO(),a3=({entry:e})=>{let{locales:t}=e,n=Object.entries(t),r=Object.fromEntries(n.map(([e])=>[e,!0])),i=Object.fromEntries(n.map(([e,{slug:t}])=>[e,t])),a=Object.fromEntries(n.map(([e,{content:t}])=>[e,t]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:e,originalLocales:r,currentLocales:structuredClone(r),originalSlugs:i,currentSlugs:structuredClone(i),originalValues:a,currentValues:structuredClone(a),files:{},validities:{},validationMessages:{},expanderStates:{}}},o3=async({draftProps:e,indexFile:t,savingEntries:n,changes:r})=>{let{collection:i,collectionFile:a}=e,{fields:o=[]}=a??i,s={...e,fields:t?.fields??o},{savingEntry:c,changes:l}=await r3({draft:s,slugs:a4({draft:s})});n.push(c),r.push(...l)},s3=async({entry:e,savingEntries:t,changes:n})=>{let r=a3({entry:e});await Promise.all(WO(e).map(async i=>{let a=i.name,o=tb(i,e),s=o?eb(i):void 0,c=Ky(i,e),l={indexFile:s,savingEntries:t,changes:n},u={...r,collection:i,collectionName:a,isIndexFile:o};c.length?await Promise.all(c.map(e=>o3({...l,draftProps:{...u,collectionFile:e,fileName:e.name}}))):await o3({...l,draftProps:u})}))},c3=async({_globalAssetFolder:e,newPath:t,asset:n,savingEntries:r,changes:i})=>{let a=hT(n)??n.blobURL,o=a?await rk(a):[];if(!a||!o.length)return;let{publicPath:s}=Bp(n.path).find(({collectionName:e})=>e!==void 0)??e,c=await rk(a,{entries:structuredClone(o),newURL:t.replace(n.folder.internalPath??``,s??``)});c.length&&await Promise.all(c.map(async e=>s3({entry:e,savingEntries:r,changes:i})))},l3=({action:e,movedAssets:t})=>{let n=A(dF)?.path,r=t.find(e=>e.asset.path===n),i=A(fF)?.path,a=t.find(e=>e.asset.path===i);r&&dF.set(lF(r.path)),a&&fF.set(lF(a.path)),P0.set({...j0,moved:e===`move`,renamed:e===`rename`,count:t.length})},u3=async(e,t)=>{let n=A(Fp),r=[],i=[],a=[];await Promise.all(t.map(async({asset:e,path:t})=>{let o=t,s=Dp(o).basename;a.push({...e,path:o,name:s}),r.push({action:`move`,path:o,previousPath:e.path,previousSha:e.sha,data:new File([e.file??await dT(e)],s)}),await c3({_globalAssetFolder:n,newPath:o,asset:e,savingEntries:i,changes:r})})),await z0({changes:r,savingEntries:i,savingAssets:a,options:{commitType:`uploadMedia`}}),l3({action:e,movedAssets:t})}}));function Pue(e,t){let n=Ia();O(t,!0),K(e,p3);let r=()=>j(hF,`$renamingAsset`,a),i=()=>j(t1,`$showAssetOverlay`,a),[a,o]=hn(),s=N(!1),c=N(Cr({filename:``})),l=N(``),u=N(Cr([])),d=N(Cr([])),f=M(r),p=M(()=>z(c).dirname),m=M(()=>z(c).filename),h=M(()=>z(c).extension),g=M(()=>{if(!z(l).trim())return`empty`;if(z(l).includes(`/`))return`character`;if(z(u).includes(`${z(l)}${z(h)?`.${z(h)}`:``}`))return`duplicate`}),_=M(()=>!!z(g)),v=async()=>{z(f)&&(P(c,Dp(z(f).path),!0),P(l,z(m),!0),P(u,bF(z(p)).map(e=>e.name).filter(e=>e!==z(f).name),!0),P(d,await T0(z(f)),!0),P(s,!0))},y=async()=>{if(!z(f))return;let e=z(f).path,t=`${z(p)}/${z(l)}${z(h)?`.${z(h)}`:``}`;await u3(`rename`,[{asset:z(f),path:t}]),h1().path===`/assets/${e}`&&await y1(`/assets/${t}`,{replaceState:!0,notifyChange:!1})};ti(()=>{z(f)&&v()}),ti(()=>{i()||(P(s,!1),mn(hF,void 0))});{let t=M(()=>X(`rename_x`,{values:{name:z(f)?.name??``}})),r=M(()=>X(`rename`)),i=M(()=>z(l)===z(m)||z(_));$I(e,{get title(){return z(t)},get okLabel(){return z(r)},get okDisabled(){return z(i)},onOk:()=>{y()},onClose:()=>{mn(hF,void 0)},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{var r=f3(),i=I(r),a=F(i,!0);D(i);var o=L(i,2),s=F(o);lL(s,{dir:`auto`,flex:!0,get invalid(){return z(_)},get"aria-errormessage"(){return`${n}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}});var c=L(s,2),u=e=>{var t=d3(),n=F(t);D(t),R(()=>W(n,`.${z(h)??``}`)),U(e,t)};G(c,e=>{z(h)&&e(u)}),D(o);var f=L(o,2),p=F(f),m=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`enter_new_name_for_asset_error.${z(g)}`)]),U(e,t)};G(p,e=>{z(_)&&e(m)}),D(f),R(e=>{W(a,e),q(f,`id`,`${n}-error`)},[()=>X(`enter_new_name_for_asset`,{values:{count:z(d).length}})]),U(e,r)},$$slots:{default:!0}})}k(),o()}var d3,f3,p3,Fue=s((()=>{Q(),Y(),Z(),B$(),Np(),S1(),SF(),Nue(),E0(),l1(),d3=V(`<span role="none"> </span>`),f3=V(`<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!> <!></div> <div role="none" class="error svelte-22gadf"><!></div>`,1),p3={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 Iue(e,t){O(t,!0),K(e,g3);let n=()=>j(s1,`$listedAssets`,s),r=()=>j(dF,`$focusedAsset`,s),i=()=>j(zA,`$isSmallScreen`,s),a=()=>j(BA,`$isMediumScreen`,s),o=()=>j(uae,`$selectedAssetPathSet`,s),[s,c]=hn(),l=M(()=>t.asset.name),u=M(()=>t.asset.kind),d=e=>{uF.update(n=>{let r=n.indexOf(t.asset);return e&&r===-1&&n.push(t.asset),!e&&r>-1&&n.splice(r,1),n})};{let s=M(()=>n().indexOf(t.asset));EL(e,{get"aria-rowindex"(){return z(s)},onChange:e=>{d(e.detail.selected)},onfocus:()=>{mn(dF,t.asset)},onclick:()=>{(i()||a())&&r()&&ES(r())&&y1(`/assets/${r().path}`,{transitionType:`forwards`})},ondblclick:()=>{r()&&ES(r())&&y1(`/assets/${r().path}`,{transitionType:`forwards`})},children:(e,n)=>{var r=h3(),s=I(r),c=e=>{CL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>o().has(t.asset.path));YI(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{d(e)}})}},$$slots:{default:!0}})};G(s,e=>{i()||a()||e(c)});var f=L(s,2);CL(f,{class:`image`,children:(e,n)=>{{let n=M(()=>t.viewType===`list`?`icon`:`tile`),r=M(()=>z(u)===`image`);n2(e,{get kind(){return z(u)},get asset(){return t.asset},get variant(){return z(n)},get cover(){return i()},get checkerboard(){return z(r)}})}},$$slots:{default:!0}});var p=L(f,2),m=e=>{CL(e,{class:`title`,children:(e,t)=>{var n=m3();qF(F(n),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(l))),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}})};G(p,e=>{(!i()||t.viewType===`list`)&&e(m)}),U(e,r)},$$slots:{default:!0}})}k(),c()}var m3,h3,g3,Lue=s((()=>{Q(),Y(),B$(),l2(),S1(),SF(),AS(),l1(),WA(),m3=V(`<div role="none" class="label svelte-17zk54k"><!></div>`),h3=V(`<!> <!> <!>`,1),g3={hash:`svelte-17zk54k`,code:`.label.svelte-17zk54k {word-break:break-all;}`}}));function _3(e,t){let n=J(t,`loading`,3,`lazy`),r=J(t,`asset`,3,void 0),i=J(t,`src`,3,void 0),a=J(t,`variant`,3,void 0),o=J(t,`blurBackground`,3,!1),s=J(t,`cover`,3,!1),c=J(t,`checkerboard`,3,!1),l=J(t,`alt`,3,``),u=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`alt`]);n2(e,Xs({kind:`image`,get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return a()},get blurBackground(){return o()},get cover(){return s()},get checkerboard(){return c()},get alt(){return l()}},()=>u))}var v3=s((()=>{Q(),Y(),l2()}));function y3(e,t){O(t,!0),K(e,C3);let n=J(t,`files`,27,()=>Cr([])),r=J(t,`transformedFileMap`,3,void 0),i=J(t,`removable`,3,!0);var a=S3();mo(a,23,n,(e,t)=>`${e.name}-${t}`,(e,t,a)=>{var o=H();eo(I(o),Jx,null,e=>{let o=M(()=>{let{name:e,type:n,size:r}=z(t);return{name:e,type:n,size:r}}),s=M(()=>r()?.get(z(t)));var c=x3(),l=F(c),u=e=>{{let n=M(()=>URL.createObjectURL(z(t)));_3(e,{get src(){return z(n)},variant:`icon`,checkerboard:!0})}},d=M(()=>Hw.includes(z(o).type)),f=e=>{var t=b3();zF(F(t),{name:`draft`}),D(t),U(e,t)};G(l,e=>{z(d)?e(u):e(f,-1)});var p=L(l,2),m=F(p);qF(F(m),{children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>z(o).name.normalize()]),U(e,n)},$$slots:{default:!0}}),D(m);var h=L(m,2),g=F(h);oo(g,()=>Oh.current,e=>{var n=Fa();R(e=>W(n,e),[()=>X(`file_meta`,{values:{type:X(`file_type_labels.${z(t).type.split(`/`)[1]}`,{default:Dp(z(o).name).extension?.toUpperCase()}),size:qC(z(o).size)}})]),U(e,n)});var _=L(g,2),v=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`file_meta_converted_from_x`,{values:{type:X(`file_type_labels.${z(s).type.split(`/`)[1]}`,{default:Dp(z(s).name).extension?.toUpperCase()})}})]),U(e,t)};G(_,e=>{z(s)&&z(s).type!==z(t).type&&e(v)}),D(h),D(p);var y=L(p,2);{let e=M(()=>X(`remove`)),t=M(()=>!i()||n().length===1);tI(y,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(e)},get hidden(){return z(t)},onclick:e=>{e.stopPropagation(),n().splice(z(a),1)},children:(e,t)=>{zF(e,{name:`close`})},$$slots:{default:!0}})}D(c),U(e,c)}),U(e,o)}),D(a),U(e,a),k()}var b3,x3,S3,C3,w3=s((()=>{Q(),Y(),Z(),B$(),Np(),Yx(),v3(),ew(),Ww(),b3=V(`<span role="none" class="image svelte-lbhi1w"><!></span>`),x3=V(`<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>`),S3=V(`<div role="list" class="files svelte-lbhi1w"></div>`),C3={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 T3(e,t){O(t,!0),K(e,j3);let n=()=>j(HA,`$hasMouse`,r),[r,i]=hn(),a=e=>{var t=H(),n=I(t),r=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`dropped_image_type_mismatch`)]),U(e,t)},i=M(()=>o()===Hw.join(`,`)),a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`dropped_file_type_mismatch`,{values:{type:cb(Oh.current,{type:`disjunction`}).format(o().split(/,\s*/))}})]),U(e,t)};G(n,e=>{z(i)?e(r):e(a,-1)}),U(e,t)},o=J(t,`accept`,3,void 0),s=J(t,`disabled`,3,!1),c=J(t,`multiple`,3,!1),l=J(t,`showUploadButton`,3,!1),u=J(t,`showFilePreview`,3,!1),d=J(t,`onDrop`,3,void 0),f=J(t,`children`,3,void 0),p=N(void 0),m=N(!1),h=N(!1),g=N(!1),_=N(void 0),v=N(Cr([])),y=M(()=>l()||u()&&z(v).length),b=()=>{z(_)?.open()},x=()=>{z(v).length&&(P(v,[],!0),d()?.({files:z(v)}))},S=e=>{P(v,c()?e:e.slice(0,1),!0),d()?.({files:z(v)})},C=e=>{d()?.({files:e.detail.files})};ic(()=>(z(p)?.addEventListener(`Select`,C),()=>{z(p)?.removeEventListener(`Select`,C)})),ti(()=>{!z(y)&&z(h)&&P(g,!0)});var w={openFilePicker:b,reset:x},ee=A3(),T=I(ee),te=F(T),ne=e=>{var t=O3(),r=F(t),i=e=>{var t=D3(),r=I(t),i=F(r),o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`drop_files_or_click_to_browse`,{values:{count:c()?2:1}})]),U(e,t)},l=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`tap_to_browse`)]),U(e,t)};G(i,e=>{n()?e(o):e(l,-1)}),D(r);var u=L(r,2),d=F(u);{let e=e=>{zF(e,{name:`cloud_upload`})},t=M(()=>X(`choose_files`,{values:{count:c()?2:1}}));tI(d,{variant:`primary`,get label(){return z(t)},get disabled(){return s()},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}D(u);var f=L(u,2),p=e=>{var t=E3();a(F(t)),D(t),U(e,t)};G(f,e=>{z(h)&&e(p)}),U(e,t)};G(r,e=>{l()&&e(i)});var o=L(r,2),d=e=>{y3(e,{get files(){return z(v)},set files(e){P(v,e,!0)}})};G(o,e=>{u()&&z(v).length&&e(d)}),D(t),U(e,t)},re=e=>{var t=H();Eo(I(t),()=>f()??E),U(e,t)};G(te,e=>{z(y)?e(ne):e(re,-1)});var ie=L(te,2),ae=e=>{var t=k3(),n=F(t),r=F(n);zF(r,{name:`download`});var i=L(r,2),a=F(i,!0);D(i),D(n),D(t),R(e=>W(a,e),[()=>X(`drop_files_here`,{values:{count:c()?2:1}})]),U(e,t)};G(ie,e=>{z(m)&&e(ae)}),D(T),Us(T,e=>P(p,e),()=>z(p));var oe=L(T,2);Us(_L(oe,{get accept(){return o()},get multiple(){return c()},onSelect:({files:e})=>{S(e)}}),e=>P(_,e,!0),()=>z(_));var se=L(oe,2),ce=e=>{{let t=M(()=>X(`unsupported_file_type`));sL(e,{get title(){return z(t)},get open(){return z(g)},set open(e){P(g,e,!0)},children:(e,t)=>{a(e)},$$slots:{default:!0}})}};G(se,e=>{z(y)||e(ce)}),xa(`dragover`,T,e=>{e.preventDefault(),!(s()||!e.dataTransfer)&&(e.dataTransfer.dropEffect=`copy`,P(m,!0),P(h,!1))}),xa(`dragleave`,T,e=>{e.preventDefault(),!s()&&P(m,!1)}),xa(`dragend`,T,e=>{e.preventDefault(),!s()&&P(m,!1)}),xa(`drop`,T,async e=>{if(e.preventDefault(),s()||!e.dataTransfer)return;P(m,!1);let t=await kp(e.dataTransfer,{accept:o()});t.length?S(t):P(h,!0)}),U(e,ee);var le=k(w);return i(),le}var E3,D3,O3,k3,A3,j3,M3=s((()=>{Q(),Y(),Z(),B$(),Np(),oc(),w3(),ub(),WA(),Ww(),E3=V(`<div role="alert"><!></div>`),D3=V(`<div role="none"><!></div> <div role="none"><!></div> <!>`,1),O3=V(`<div role="none" class="content svelte-1hhq62q"><!> <!></div>`),k3=V(`<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>`),A3=V(`<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>`,1),j3={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 N3(e,t){O(t,!0);let n=()=>j(Lp,`$targetAssetFolder`,r),[r,i]=hn(),a=J(t,`label`,3,void 0),o=M(()=>!Vp(n()));{let t=e=>{zF(e,{name:`cloud_upload`})},n=M(()=>!a()),r=M(()=>X(`upload_assets`));tI(e,{variant:`primary`,get iconic(){return z(n)},get disabled(){return z(o)},get label(){return a()},get"aria-label"(){return z(r)},onclick:()=>{mn(n1,!0)},startIcon:t,$$slots:{startIcon:!0}})}k(),i()}var P3=s((()=>{Q(),Y(),Z(),B$(),Hp(),l1()}));function F3(e,t){K(e,L3);let n=J(t,`children`,3,void 0),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`children`]);var i=I3();ys(i,()=>({role:`group`,class:`list-container`,...r}),void 0,void 0,void 0,`svelte-1sdsl2g`),Eo(F(i),()=>n()??E),D(i),U(e,i)}var I3,L3,R3=s((()=>{Q(),Y(),I3=V(`<div><!></div>`),L3={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 z3(e,t){O(t,!0),K(e,V3);let n=J(t,`children`,3,void 0),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`viewType`,`children`]);var i=B3();eo(F(i),Jx,null,e=>{loe(e,Xs({multiple:!0,clickToSelect:!1},()=>r,{children:(e,t)=>{var r=H();Eo(I(r),()=>n()??E),U(e,r)},$$slots:{default:!0}}))}),D(i),R(()=>ss(i,1,`${t.viewType??``}-view`,`svelte-1sfbolp`)),U(e,i),k()}var B3,V3,H3=s((()=>{Q(),Y(),B$(),Yx(),B3=V(`<div role="none"><!></div>`),V3={hash:`svelte-1sfbolp`,code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}
837
-
838
- @media (width < 768px) {.grid-view.svelte-1sfbolp {padding:4px;}
839
- }.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;}
840
- @media (width < 768px) {.grid-view.svelte-1sfbolp .grid-body {grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 160px), 1fr));gap:8px;}
841
- }.grid-view.svelte-1sfbolp .grid-row {display:block;position:relative;overflow:hidden;height:auto;text-align:start;}.grid-view.svelte-1sfbolp .grid-row .grid-cell {display:block;}.grid-view.svelte-1sfbolp .grid-row .grid-cell.image:empty {aspect-ratio:1/1;}.grid-view.svelte-1sfbolp .grid-row .checkbox {position:absolute;inset-block-start:4px;inset-inline-start:4px;z-index:2;}.grid-view.svelte-1sfbolp .grid-row .title .label {overflow:hidden;margin:12px;height:40px;line-height:1.5;}.grid-view.svelte-1sfbolp .grid-row[tabindex] {border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-secondary-background-color);cursor:pointer;transition:background-color 200ms;}.grid-view.svelte-1sfbolp .grid-row[tabindex]:is(:hover, :focus, :active) {background-color:var(--sui-hover-background-color);}
842
-
843
- @media (width < 768px) {.list-view.svelte-1sfbolp {padding:0;}
844
- }
845
- @media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] {width:100%;--sui-focus-ring-width: 0;}
846
- }.list-view.svelte-1sfbolp [role=grid] .row-group .row-group-caption + .grid-row .grid-cell {border-top-width:0 !important;}.list-view.svelte-1sfbolp [role=grid] .row-group .row-group-caption ~ .grid-row:last-child .grid-cell {border-bottom-width:0 !important;}.list-view.svelte-1sfbolp [role=grid] .grid-row {transition-property:background-color, outline-color;transition-duration:200ms;}.list-view.svelte-1sfbolp [role=grid] .grid-row[tabindex] {cursor:pointer;}.list-view.svelte-1sfbolp [role=grid] .grid-row:hover {background-color:var(--sui-hover-background-color);}.list-view.svelte-1sfbolp [role=grid] .grid-row:last-child .grid-cell {border-width:1px 0;}.list-view.svelte-1sfbolp [role=grid] .grid-cell {overflow:hidden;border-width:1px 0 0;border-color:var(--sui-secondary-border-color);padding:0 16px 0 0;height:40px;max-width:100%;color:var(--sui-secondary-foreground-color);white-space:nowrap;vertical-align:middle;}
847
- @media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell {border-width:0 !important;height:64px;}
848
- }.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;}
849
- @media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell .label {white-space:normal;line-height:var(--sui-line-height-compact);}
850
- }.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 Rue(e,t){O(t,!0);let n=()=>j(o1,`$currentView`,o),r=()=>j(Lp,`$targetAssetFolder`,o),i=()=>j(c1,`$assetGroups`,o),a=()=>j(s1,`$listedAssets`,o),[o,s]=hn(),c=M(()=>n().type),l=M(r),u=M(()=>!Vp(z(l)));{let t=M(()=>X(`asset_list`));F3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{T3(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{mn(pF,{folder:z(l),files:e})},children:(e,t)=>{var n=H(),r=I(n),o=e=>{{let t=M(()=>X(`assets`));z3(e,{id:`asset-list`,get viewType(){return z(c)},get"aria-label"(){return z(t)},get"aria-rowcount"(){return a().length},children:(e,t)=>{var n=H();mo(I(n),1,()=>Object.entries(i()),([e,t])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=H();eo(I(a),Jx,null,e=>{{let t=M(()=>r()===`*`?void 0:r());yL(e,{get label(){return z(t)},children:(e,t)=>{bR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();oo(I(n),()=>t().sha,e=>{var n=H();eo(I(n),Jx,null,e=>{Iue(e,{get asset(){return t()},get viewType(){return z(c)}})}),U(e,n)}),U(e,n)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)},$$slots:{default:!0}})}},s=M(()=>Object.values(i()).flat(1).length),l=e=>{P$(e,{children:(e,t)=>{var n=U3(),r=I(n),i=F(r,!0);D(r);var a=L(r,2),o=e=>{{let t=M(()=>X(`upload_assets`));N3(e,{get label(){return z(t)}})}};G(a,e=>{z(u)||e(o)}),R(e=>W(i,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{z(s)?e(o):e(l,-1)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}k(),s()}var U3,zue=s((()=>{Q(),Y(),Z(),B$(),Yx(),Lue(),M3(),P3(),R3(),H3(),SF(),Hp(),l1(),U3=V(`<span role="none"> </span> <!>`,1)})),W3,G3,K3=s((()=>{rp(),W3=un(null),G3=un(``)}));function q3(e,t){O(t,!0),K(e,X3);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn(),o=J(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=h1(),i=r.startsWith(`/search/`);mn(G3,e),e?y1(`/search/${e}`,{replaceState:i}):t&&i&&b1(`/collections`)},c=N(void 0);ti(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=Y3(),u=F(l),d=e=>{var t=J3(),n=I(t);{let e=M(()=>X(`search_placeholder_${r()}`));lo(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),Us(wR(n.lastChild,{debounce:!0,keyShortcuts:`Accel+F`,get placeholder(){return z(e)},get onclick(){return o()},oninput:({target:e})=>{s(e.value.trim())},onClear:()=>{s(``)}}),e=>P(c,e,!0),()=>z(c)),D(n)}U(e,t)};G(u,e=>{r()&&e(d)}),D(l),U(e,l),k(),a()}var J3,Y3,X3,Z3=s((()=>{Q(),Y(),Z(),B$(),S1(),K3(),J3=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),Y3=V(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),X3={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Bue(e,t){O(t,!0);let n=()=>j(Pp,`$allAssetFolders`,o),r=()=>j(zA,`$isSmallScreen`,o),i=()=>j(Ip,`$selectedAssetFolder`,o),a=()=>j(oF,`$allAssets`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Oh.current)),u=M(()=>[...n().filter(({typedKeyPath:e})=>e===void 0).sort((e,t)=>Jy(e.collectionName,e.fileName)-Jy(t.collectionName,t.fileName)).sort((e,t)=>Kb(e.collectionName)-Kb(t.collectionName))]);var d=t6(),f=F(d),p=e=>{var t=$3(),n=I(t),r=F(n),i=F(r,!0);D(r),D(n),q3(L(n,2),{onclick:e=>{e.preventDefault(),y1(`/search`)}}),R(e=>W(i,e),[()=>X(`assets`)]),U(e,t)};G(f,e=>{r()&&e(p)});var m=L(f,2);{let e=M(()=>X(`asset_folder_list`));jL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>X(`asset_location.repository`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(u),e=>[e.collectionName,e.fileName,e.internalPath].join(`:`),(e,t)=>{var n=H();eo(I(n),Jx,null,e=>{let n=M(()=>{let{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}=z(t);return{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}}),o=M(()=>z(n).collectionName?Wb(z(n).collectionName):void 0),s=M(()=>z(o)&&z(n).fileName?Wy(z(o),z(n).fileName):void 0),u=M(()=>z(n).entryRelative||z(n).hasTemplateTags),d=M(()=>(0,Q3.default)(i(),z(t)));{let i=e=>{{let t=M(()=>z(s)?.icon||z(o)?.icon||`folder`);zF(e,{get name(){return z(t)}})}},f=e=>{var r=H();oo(I(r),a,e=>{var r=H();eo(I(r),Jx,null,e=>{let r=M(()=>(z(n).internalPath===void 0?a():mae(z(t))).length);var i=e6(),o=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(o,t)},[()=>X(`x_assets`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)}),U(e,r)},p=M(()=>r()||c()?!1:z(d)),m=M(()=>Oh.current?i1(z(t)):``);RL(e,{get selected(){return z(p)},get label(){return z(m)},onSelect:()=>{y1(`/assets/${z(n).internalPath??`-/all`}`,{transitionType:`forwards`,state:{folder:z(t)}})},ondragover:e=>{e.preventDefault(),!z(u)&&(z(n).internalPath===void 0||z(d)?e.dataTransfer.dropEffect=`none`:(e.dataTransfer.dropEffect=`move`,e.target.classList.add(`dragover`)))},ondragleave:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondragend:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondrop:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},startIcon:i,endIcon:f,$$slots:{startIcon:!0,endIcon:!0}})}}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}})}D(d),U(e,d),k(),s()}var Q3,$3,e6,t6,Vue=s((()=>{Q(),Y(),Z(),B$(),Yx(),Q3=u(YM()),Z3(),S1(),SF(),Hp(),l1(),qb(),Yy(),WA(),$3=V(`<header><h2> </h2></header> <!>`,1),e6=V(`<span class="count"> </span>`),t6=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function Hue(e,t){O(t,!0);{let n=M(()=>!t.asset||!ES(t.asset)),r=M(()=>X(`preview`)),i=M(()=>X(`show_preview`));tI(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{y1(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}k()}var Uue=s((()=>{Q(),Y(),Z(),B$(),S1(),AS()}));function Wue(e,t){O(t,!0);let n=()=>j(uF,`$selectedAssets`,l),r=()=>j(dF,`$focusedAsset`,l),i=()=>j(Lp,`$targetAssetFolder`,l),a=()=>j(zA,`$isSmallScreen`,l),o=()=>j(Ip,`$selectedAssetFolder`,l),s=()=>j(BA,`$isMediumScreen`,l),c=()=>j(s1,`$listedAssets`,l),[l,u]=hn(),d=M(()=>n().length?[...n()]:r()?[r()]:[]),f=M(()=>!Vp(i()));{let t=M(()=>X(`folder`));$Q(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=i6(),i=I(n),l=e=>{{let t=M(()=>X(`back_to_asset_folder_list`));Q0(e,{get"aria-label"(){return z(t)},onclick:()=>{b1(`/assets`)}})}};G(i,e=>{a()&&e(l)});var u=L(i,2),p=F(u);oo(p,()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>o()?i1(o()):``]),U(e,t)});var m=L(p,2),h=e=>{var t=n6(),n=F(t);D(t),R(()=>W(n,`/${o().internalPath??``}`)),U(e,t)};G(m,e=>{!a()&&o()?.internalPath!==void 0&&e(h)}),D(u);var g=L(u,2),_=e=>{var t=r6(),n=I(t);Hue(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);D0(i,{get assets(){return z(e)}})}var a=L(i,2);K0(a,{get assets(){return z(d)}});var o=L(a,2);{let e=M(()=>X(`delete_selected_assets`,{values:{count:z(d).length}})),t=M(()=>X(z(d).length>1&&z(d).length===c().length?`confirm_deleting_all_assets`:`confirm_deleting_selected_assets`,{values:{count:z(d).length}}));U0(o,{get assets(){return z(d)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}Y0(L(o,2),{get asset(){return r()}}),U(e,t)};G(g,e=>{a()||s()||e(_)}),vI(L(g,2),{children:(e,t)=>{var n=H(),r=I(n),i=e=>{{let t=M(()=>a()?void 0:X(`upload`));N3(e,{get label(){return z(t)}})}};G(r,e=>{(!a()||c().length&&!z(f))&&e(i)}),U(e,n)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})}k(),u()}var n6,r6,i6,Gue=s((()=>{Q(),Y(),Z(),B$(),A0(),G0(),J0(),Z0(),Uue(),P3(),$0(),S1(),SF(),Hp(),l1(),WA(),n6=V(`<span role="none"> </span>`),r6=V(`<!> <!> <!> <!> <!>`,1),i6=V(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)}));function Kue(e,t){O(t,!0);let n=()=>j(VA,`$isLargeScreen`,a),r=()=>j(o1,`$currentView`,a),i=()=>j(dF,`$focusedAsset`,a),[a,o]=hn();var s=H(),c=I(s),l=e=>{{let t=M(()=>X(`asset_info`));L$(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),a=e=>{h2(e,{get asset(){return i()},showPreview:!0})},o=e=>{P$(e,{children:(e,t)=>{var n=a6(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`select_asset_show_info`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{i()?e(a):e(o,-1)}),U(e,n)},$$slots:{default:!0}})}};G(c,e=>{n()&&r().showInfo&&e(l)}),U(e,s),k(),o()}var a6,que=s((()=>{Q(),Y(),Z(),B$(),N2(),SF(),l1(),WA(),a6=V(`<span role="none"> </span>`)}));function o6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`multiple`,3,!1),c=J(t,`noneLabel`,3,``),l=J(t,`filters`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`filtering_options`));UL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H(),a=I(i),o=e=>{var r=H();mo(I(r),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}}),a=M(()=>(n().filters||[]).findIndex(e=>e.field===z(i).field&&String(e.pattern)===String(z(i).pattern)));{let n=M(()=>z(a)>-1);$L(e,{get label(){return z(i)._label},get checked(){return z(n)},onChange:()=>{t.currentView.update(e=>{let t=e.filters?[...e.filters]:[];return z(a)>-1?t.splice(z(a),1):t.push({field:z(i).field,pattern:z(i).pattern}),{...e,filters:t}})}})}}),U(e,r)},u=e=>{var r=s6(),i=I(r);{let e=M(()=>c()||X(`sort_keys.none`)),r=M(()=>!n().filter);tR(i,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:void 0}))}})}mo(L(i,2),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().filter?.field===z(i).field&&String(n().filter.pattern)===String(z(i).pattern));tR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,r)};G(a,e=>{s()?e(o):e(u,-1)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`filter`));NI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var s6,c6=s((()=>{Q(),Y(),Z(),B$(),s6=V(`<!> <!>`,1)}));function l6(e,t){O(t,!0),K(e,f6);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=hn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=d6(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>X(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));YI(u,{get disabled(){return z(e)},get"aria-label"(){return z(n)},get checked(){return z(r)},onChange:()=>{t.selectedItems.set(z(c)?[]:[...t.allItems])}})}var d=L(u,2),f=e=>{var t=u6(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`x_of_x_selected`,{values:{total:z(a),selected:z(o)}})]),U(e,t)};G(d,e=>{z(s)&&e(f)}),D(l),U(e,l),k(),i()}var u6,d6,f6,p6=s((()=>{Q(),Y(),Z(),B$(),u6=V(`<span role="none" class="svelte-1sd2xgz"> </span>`),d6=V(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),f6={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 m6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`sortKeys`,19,()=>[]),c=J(t,`collectionName`,3,void 0),l=[`ascending`,`descending`],u=[`date`,`commit_date`];{let r=e=>{{let r=M(()=>X(`sorting_options`));UL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H();mo(I(i),17,s,({key:e,label:t})=>e,(e,r)=>{let i=()=>z(r).key,a=()=>z(r).label;var o=h6(),d=I(o);mo(d,16,()=>l,e=>e,(e,r)=>{{let o=M(()=>X(u.includes(i())||c()&&uA({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);tR(e,{get label(){return z(o)},get checked(){return z(s)},onSelect:()=>{t.currentView.update(e=>({...e,sort:{key:i(),order:r}}))}})}});var f=L(d,2),p=e=>{zI(e,{})};G(f,e=>{i()===`_summary`&&s().length>1&&e(p)}),U(e,o)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`sort`));NI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var h6,g6=s((()=>{Q(),Y(),Z(),B$(),_A(),h6=V(`<!> <!>`,1)}));function _6(e,t){O(t,!0),K(e,b6);let n=()=>j(t.currentView,`$currentView`,i),r=()=>j(VA,`$isLargeScreen`,i),[i,a]=hn(),o=J(t,`disabled`,3,!1),s=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),c=M(()=>n().type===`grid`);var l=y6(),u=F(l),d=e=>{{let n=M(()=>X(`switch_view`));kI(e,Xs({get disabled(){return o()},get"aria-label"(){return z(n)}},()=>s,{children:(e,n)=>{var r=v6(),i=I(r);{let e=e=>{zF(e,{name:`format_list_bulleted`})},n=M(()=>!z(c)),r=M(()=>X(`list_view`));MI(i,{get disabled(){return o()},get selected(){return z(n)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,type:`list`}))},startIcon:e,$$slots:{startIcon:!0}})}var a=L(i,2);{let e=e=>{zF(e,{name:`grid_view`})},n=M(()=>X(`grid_view`));MI(a,{get disabled(){return o()},get selected(){return z(c)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(n)},onSelect:()=>{t.currentView.update(e=>({...e,type:`grid`}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,r)},$$slots:{default:!0}}))}},f=e=>{{let n=e=>{{let t=M(()=>z(c)?`format_list_bulleted`:`grid_view`);zF(e,{get name(){return z(t)}})}},r=M(()=>X(z(c)?`switch_to_list_view`:`switch_to_grid_view`));tI(e,{get disabled(){return o()},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onclick:()=>{t.currentView.update(e=>({...e,type:z(c)?`list`:`grid`}))},startIcon:n,$$slots:{startIcon:!0}})}};G(u,e=>{r()?e(d):e(f,-1)}),D(l),U(e,l),k(),a()}var v6,y6,b6,x6=s((()=>{Q(),Y(),Z(),B$(),WA(),v6=V(`<!> <!>`,1),y6=V(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),b6={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;}`}})),S6,Jue=s((()=>{S6={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`,reorder:`Reorder`,cancel:`Cancel`,done:`Done`,save:`Save`,saving:`Saving…`,publish:`Publish`,publishing:`Publishing…`,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`,singleton:`Singleton`,singletons:`Singletons`,clipboard_error:`There was an error while copying data.`,welcome_message:`Welcome to {$name}`,powered_by:`Powered by {$name}`,loading_cms_config:`Loading CMS 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_using_access_token:`Sign In Using Access Token`,sign_in_using_access_token_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_access_token_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_errors:`.input {$count :integer} .match $count one {{There was an error while parsing an entry file. Check the browser console for details.}} * {{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_contents:`Search for contents…`,search_placeholder_assets:`Search for assets…`,search_placeholder_all:`Search for contents 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`,cms_config:`CMS Configuration`,show_help_menu:`Show Help Menu`,help:`Help`,keyboard_shortcuts:`Keyboard Shortcuts`,documentation:`Documentation`,release_notes:`Release Notes`,announcements:`Announcements`,version_x:`Version {$version}`,report_issue:`Report Issue`,share_feedback:`Share Feedback`,get_help:`Get Help`,donate:`Donate`,join_discord:`Join Us on Discord`,bluesky:`Follow Us on Bluesky`,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:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$collection}” collection, which has no entries yet.}} one {{You’re now viewing the “{$collection}” collection, which has one entry.}} * {{You’re now viewing the “{$collection}” collection, which has {$count} entries.}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$folder}” asset folder, which has no assets yet.}} one {{You’re now viewing the “{$folder}” asset folder, which has one asset.}} * {{You’re now viewing the “{$folder}” asset folder, which has {$count} assets.}}`,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`,_summary:`Summary`,_manual:`Manual`},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`,entry_not_found:`Entry not found.`,creating_entries_disabled_by_admin:`Creating new entries in this collection is disabled by the administrator.`,creating_entries_disabled_by_quota:`You cannot add new entries to this collection because it has reached its limit of {$quota} entries.`,creating_entries_nearing_quota:`.input {$remaining :integer} .match $remaining one {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entry.}} * {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more 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:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any entries.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one entry.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} entries.}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any assets.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one asset.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} assets.}}`,x_entries:`.input {$count :integer} .match $count 0 {{No entries}} one {{{$count} entry}} * {{{$count} entries}}`,x_assets:`.input {$count :integer} .match $count 0 {{No assets}} one {{{$count} asset}} * {{{$count} 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:`.input {$count :integer} .match $count 0 {{Enter a new name below.}} one {{Enter a new name below. An entry using the asset will also be updated.}} * {{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}`,click_to_browse:`Click to browse…`,tap_to_browse:`Tap to browse…`,drop_files_or_click_to_browse:`.input {$count :integer} .match $count one {{Drop a file here or click to browse…}} * {{Drop files here or click to browse…}}`,drop_files_or:`.input {$count :integer} .match $count one {{Drop a file here or}} * {{Drop files here or}}`,drop_image_files_or:`.input {$count :integer} .match $count one {{Drop an image file here or}} * {{Drop image files here or}}`,browse:`Browse`,paste:`Paste`,paste_image:`Paste Image`,no_image_in_clipboard:`No image found in clipboard.`,clipboard_access_denied:`Clipboard access denied.`,drop_files_here:`.input {$count :integer} .match $count one {{Drop a file 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_files:`.input {$count :integer} .match $count one {{Choose File}} * {{Choose Files}}`,delete_assets:`.input {$count :integer} .match $count one {{Delete Asset}} * {{Delete Assets}}`,delete_selected_assets:`.input {$count :integer} .match $count one {{Delete Selected Asset}} * {{Delete Selected Assets}}`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected asset?}} * {{Are you sure you want to delete the selected {$count} assets?}}`,confirm_deleting_all_assets:`Are you sure you want to delete all the assets?`,delete_entries:`.input {$count :integer} .match $count one {{Delete Entry}} * {{Delete Entries}}`,delete_selected_entries:`.input {$count :integer} .match $count one {{Delete Selected Entry}} * {{Delete Selected Entries}}`,confirm_deleting_this_entry:`Are you sure you want to delete this entry?`,confirm_deleting_this_entry_with_assets:`Are you sure you want to delete this entry and associated assets?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry?}} * {{Are you sure you want to delete the selected {$count} entries?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry and associated assets?}} * {{Are you sure you want to delete the selected {$count} entries and associated assets?}}`,confirm_deleting_all_entries:`Are you sure you want to delete all the entries?`,confirm_deleting_all_entries_with_assets:`Are you sure you want to delete all the entries and associated assets?`,reorder_entries:`Reorder Entries`,done_reordering_entries:`Done Reordering Entries`,cancel_reordering_entries:`Cancel Reordering Entries`,saving_reorder_failed:`Failed to save the new entry order. Please try again.`,processing_files:`.input {$count :integer} .match $count one {{Processing a file. This may take a while.}} * {{Processing files. This may take a while.}}`,uploading_files:`Uploading Files`,confirm_replacing_file:`“{$name}” will be replaced with this file:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{This file will be saved to the “{$folder}” folder:}} * {{These {$count} files will be saved to the “{$folder}” folder:}}`,oversized_files:`Oversized Files`,warning_oversized_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it exceeds the maximum size of {$size}. Please reduce the size or select a different file.}} * {{These files cannot be uploaded because they exceed the maximum size of {$size}. Please reduce the sizes or select different files.}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{A file with the same name already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{A file named “{$name}” already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_resolution:`File Name Conflict Resolution`,keep_both:`Keep Both`,uploading_files_progress:`.input {$count :integer} .match $count one {{Uploading file…}} * {{Uploading files…}}`,uploading_files_failed:`.input {$count :integer} .match $count one {{File could not be uploaded}} * {{Files could not be uploaded}}`,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_errors:`.input {$count :integer} .match $count one {{One field has an error. Please correct it to save the entry.}} * {{{$count} fields have an error. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry has been saved.}} * {{{$count} entries have been saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry has been saved and published.}} * {{{$count} entries have been saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry has been deleted.}} * {{{$count} entries have been deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset has been saved.}} * {{{$count} assets have been saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset has been saved and published.}} * {{{$count} assets have been saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{Asset URL has been copied to clipboard.}} * {{{$count} asset URLs have been copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{Asset file path has been copied to clipboard.}} * {{{$count} asset file paths have been copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{Asset file has been copied to clipboard.}} * {{{$count} asset files have been copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset file has been downloaded.}} * {{{$count} asset files have been downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset has been moved.}} * {{{$count} assets have been moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset has been renamed.}} * {{{$count} assets have been renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset has been 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`,swap_panes:`Swap Panes`,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_field_type_x:`Unsupported field type: {$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_fields:`.input {$count :integer} .match $count one {{Translate Field}} * {{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 Relation fields, 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:`.input {$count :integer} .match $count 0 {{No field has been translated from {$source}.}} one {{Translated a field from {$source}.}} * {{Translated {$count} fields from {$source}.}}`},copy:{none:`Nothing has been copied.`,complete:`.input {$count :integer} .match $count 0 {{No field has been copied from {$source}.}} one {{Copied a field from {$source}.}} * {{Copied {$count} fields from {$source}.}}`}},validation:{value_missing:`This field is required.`,range_underflow:{"datetime-local":`The date/time must be at or after {$min}.`,date:`The date must be on or after {$min}.`,time:`The time must be at or after {$min}.`,number:`The value must be greater than or equal to {$min}.`,select:`.input {$min :integer} .match $min one {{You have to select at least {$min} option.}} * {{You have to select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You have to add at least {$min} item.}} * {{You have to add at least {$min} items.}}`},range_overflow:{"datetime-local":`The date/time must be at or before {$max}.`,date:`The date must be on or before {$max}.`,time:`The time must be at or before {$max}.`,number:`The value must be less than or equal to {$max}.`,select:`.input {$max :integer} .match $max one {{You cannot select more than {$max} option.}} * {{You cannot select more than {$max} options.}}`,add:`.input {$max :integer} .match $max one {{You cannot add more than {$max} item.}} * {{You cannot add more than {$max} items.}}`},too_short:`.input {$min :integer} .match $min one {{You must enter at least {$min} character.}} * {{You must enter at least {$min} characters.}}`,too_long:`.input {$max :integer} .match $max one {{You cannot enter more than {$max} character.}} * {{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.`}},entry_sidebar:{sidebar_panels:`Sidebar Panels`,validation:{title:`Validation`,placeholder:`Validation results will be shown here.`,no_errors_found:`No errors found.`},history:{title:`History`,fetch_failed:`Failed to load history.`,no_history:`No history found.`},backlinks:{title:`Backlinks`,no_entries:`No entries are referencing this entry.`}},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_urls:`.input {$count :integer} .match $count one {{Public URL}} * {{Public URLs}}`,file_paths:`.input {$count :integer} .match $count one {{File Path}} * {{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}`,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:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}. Maximum: {$max}.}} one {{{$count} character entered. Minimum: {$min}. Maximum: {$max}.}} * {{{$count} characters entered. Minimum: {$min}. Maximum: {$max}.}}`,min:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}.}} one {{{$count} character entered. Minimum: {$min}.}} * {{{$count} characters entered. Minimum: {$min}.}}`,max:`.input {$count :integer} .match $count 0 {{No character entered. Maximum: {$max}.}} one {{{$count} character entered. Maximum: {$max}.}} * {{{$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:{api_key:{key_label:`API Key`,initial:`Enter your {$key} for {$service}.`,requested:`Validating…`,error:`The provided {$key} is invalid. Please double check and try again.`},password:{initial:`Enter your password for {$service}.`,requested:`Signing in…`,error:`User name or password is incorrect. Please double check and try again.`}},cloudinary:{iframe_title:`Cloudinary media library`,activate:{button_label:`Activate Cloudinary`,description:`After signing in, click the Sign In button again to continue.`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`Secret Access Key`},cloudflare_r2:{auth_key_label:`Secret Access Key`},digitalocean_spaces:{auth_key_label:`Secret Access Key`}},config:{errors:`.input {$count :integer} .match $count one {{There is an error in the CMS configuration. Please solve the issue and try again.}} * {{There are errors in the CMS configuration. Please solve the issues and try again.}}`,error_locator:{collection:`{$collection} collection`,file:`{$file} file`,field:"`{$field}` field"},error:{no_secure_context:`Sveltia CMS only works with HTTPS or localhost URLs.`,insecure_url:`The configuration file URL must use HTTPS protocol or a localhost address.`,insecure_urls:`.input {$count :integer} .match $count one {{The configuration file URL must use HTTPS protocol or a localhost address.}} * {{The configuration file URLs must use HTTPS protocol or localhost addresses.}}`,fetch_failed:`The configuration file could not be retrieved.`,fetch_failed_not_ok:`HTTP response returned with status {$status}.`,fetch_failed_with_manual_init:"The configuration file could not be retrieved. To prevent the `config.yml` file from loading, add [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) to the configuration object passed to `CMS.init()`.",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, TOML and JSON are supported.`,no_collection:`Collections are not defined.`,missing_backend:`The backend is not defined.`,missing_backend_name:`The backend name is not defined.`,unsupported_known_backend:`The {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the [supported backends](https://sveltiacms.app/en/docs/backends#supported-backends) instead.`,missing_repository:`The repository is not defined.`,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 in Sveltia CMS. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/github#authentication) instead.`,oauth_no_app_id:`OAuth application ID is not defined.`,no_auth_methods:"The `auth_methods` option must contain at least one method.",missing_media_folder:`The media folder is not defined.`,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 in Sveltia CMS.`,invalid_collection_no_options:"The collection must have either the `folder`, `files` or `divider` option defined.",invalid_collection_multiple_options:"The collection cannot have the `folder`, `files` and `divider` options together.",file_format_mismatch:"The `{$extension}` extension doesn’t match the `{$format}` format.",invalid_slug_slash:"The slug template `{$slug}` is invalid as it cannot contain slashes. To organize entries in subfolders, use the `path` option instead of `slug`.",missing_collection_name:"The collection {$count} must have the `name` option defined as a non-empty string.",invalid_collection_name:"The collection name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_name:"Collection names must be unique, but `{$name}` is used more than once.",missing_collection_file_name:"The collection file {$count} must have the `name` option defined as a non-empty string.",invalid_collection_file_name:"The collection file name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_file_name:"Collection file names must be unique, but `{$name}` is used more than once.",collection_no_fields:"The collection must have the `fields` option defined with at least one field.",collection_file_no_fields:"The collection file must have the `fields` option defined with at least one field.",missing_field_name:"The field {$count} must have the `name` option defined as a non-empty string.",invalid_field_name:"The field name `{$name}` is invalid. It must not contain special characters. If you want to nest fields, [use Object fields instead of dot notation](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions).",duplicate_field_name:"Field names must be unique, but `{$name}` is used more than once.",missing_variable_type:"The variable type {$count} must have the `name` option defined as a non-empty string.",invalid_variable_type:"The variable type name `{$name}` is invalid. It must not contain special characters.",duplicate_variable_type:"Variable type names must be unique, but `{$name}` is used more than once.",date_field_type:"The deprecated Date field type is not supported in Sveltia CMS. Use the DateTime field type with the `type: date` option instead.",unsupported_deprecated_option:"The deprecated `{$prop}` option is not supported in Sveltia CMS. Use the `{$newProp}` option instead.",allow_multiple:"The `allow_multiple` option is not supported in Sveltia CMS. Use the `multiple` option instead, which defaults to `false`.",invalid_list_field:"The List field cannot have the `field`, `fields` and `types` options together.",invalid_list_variable_type:"The List field’s variable type is invalid. The `widget` option is set to `{$widget}` but it must be `object`.",invalid_object_field:"The Object field cannot have the `fields` and `types` options together.",object_field_missing_fields:"The Object field must have either the `fields` or `types` option defined.",relation_field_invalid_collection:"The referenced `{$collection}` collection is invalid or not defined.",relation_field_invalid_collection_file:"The referenced `{$file}` file is invalid or not defined.",relation_field_missing_file_name:"The `file` option must be defined for a relation to a file collection.",relation_field_invalid_value_field:"The referenced value field `{$field}` is invalid or not defined.",unexpected:`Unexpected error`},warning:{oauth_no_app_id:`OAuth application ID is not defined. Users are required to provide an access token to sign in.`,editorial_workflow_unsupported:`Editorial workflow is not yet supported in Sveltia CMS.`,open_authoring_unsupported:`Open authoring is not yet supported in Sveltia CMS.`,nested_collections_unsupported:`Nested collections are not yet supported in Sveltia CMS.`,unsupported_ignored_option:"The `{$prop}` option is not supported in Sveltia CMS. It will be ignored."},compatibility_link:`See the compatibility notes for details: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`Local`,unsupported_browser:`Local Workflow is not supported in your browser. Please use Chrome or Edge instead.`,disabled:`Local Workflow 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.`,api_key_invalid:`The provided API key is invalid. Please double check and try again.`},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`,translators:{default:{title:`Default Translation Service`,select_service:`Select Service`},api_keys:{title:`Translation Service API Keys`,description:`Manage API keys for <a>translation services</a>.`},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:{api_keys:{title:`Stock Photo Service API Keys`,description:`Manage API keys for <a>stock photo services</a>.`},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}`,no_services:`No <a>stock photo services</a> are configured.`},cloud_storage:{api_keys:{title:`Cloud Storage Service API Keys`,description:`Manage API keys for <a>cloud storage services</a>.`},field_label:`{$service} API Key`,no_services:`No <a>cloud storage services</a> are configured.`}},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.`,url:{field_label:`Hook URL`,saved:`Hook URL has been saved.`,removed:`Hook URL has been removed.`},auth:{field_label:`Authorization header (e.g. Bearer <token>) (optional)`,saved:`Authorization header has been saved.`,removed:`Authorization header 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`}}})),C6,Yue=s((()=>{C6={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:`削除`,reorder:`並び替え`,cancel:`キャンセル`,done:`完了`,save:`保存`,saving:`保存中…`,publish:`公開`,publishing:`公開中…`,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:`スラッグ`,singleton:`シングルトン`,singletons:`シングルトン`,clipboard_error:`データのコピー中に問題が発生しました。`,welcome_message:`{$name} へようこそ`,powered_by:`Powered by {$name}`,loading_cms_config:`CMS 設定を読み込んでいます…`,loading_site_data:`サイトデータを読み込んでいます…`,loading_site_data_error:`サイトデータの読み込み中にエラーが発生しました。`,sign_in_with_x:`{$service} にログイン`,sign_in_using_access_token:`アクセストークンを使用してログイン`,sign_in_using_access_token_description:`以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。`,sign_in_using_access_token_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_errors:`エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。`,visit_live_site:`管理対象サイトを開く`,switch_page:`ページを切り替え`,search_placeholder_contents:`コンテンツを検索…`,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:`設定`,cms_config:`CMS 設定`,show_help_menu:`ヘルプメニューを表示`,help:`ヘルプ`,keyboard_shortcuts:`キーボードショートカット`,documentation:`ドキュメンテーション`,release_notes:`リリースノート`,announcements:`お知らせ`,version_x:`バージョン {$version}`,report_issue:`問題を報告`,share_feedback:`フィードバックを共有`,get_help:`サポート`,donate:`寄付`,join_discord:`Discord チャンネルに参加`,bluesky:`Bluesky でフォロー`,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:`.input {$count :integer} .match $count 0 {{「{$collection}」コレクションを表示しています。ここにはまだエントリーがありません。}} one {{「{$collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。}} * {{「{$collection}」コレクションを表示しています。ここには {$count} 個のエントリーがあります。}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{「{$folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。}} one {{「{$folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。}} * {{「{$folder}」アセットフォルダーを表示しています。ここには {$count} 個のアセットがあります。}}`,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:`更新日時`,_summary:`サマリー`,_manual:`手動`},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:`グローバルアセット`,entry_not_found:`エントリーが見つかりませんでした。`,creating_entries_disabled_by_admin:`このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。`,creating_entries_disabled_by_quota:`このコレクションは最大の {$quota} エントリーに達したため、新しいエントリーを作成することはできません。`,creating_entries_nearing_quota:`このコレクションは {$quota} エントリーの上限に近づいています。あと {$remaining} 件のエントリーしか作成できません。`,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:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。エントリーは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のエントリーが見つかりました。}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。アセットは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のアセットが見つかりました。}}`,x_entries:`{$count} 個のエントリー`,x_assets:`{$count} 個のアセット`,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:`.input {$count :integer} .match $count 0 {{新しい名前を以下に入力してください。}} one {{新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。}} * {{新しい名前を以下に入力してください。このアセットを使用している {$count} 個のエントリーも更新されます。}}`,enter_new_name_for_asset_error:{empty:`ファイル名を空白にすることはできません。`,character:`ファイル名に特別な文字を含めることはできません。`,duplicate:`このファイル名は他のアセットに使われています。`},replace_asset:`アセットを差し替え`,replace_x:`{$name} を差し替え`,click_to_browse:`クリックして参照…`,tap_to_browse:`タップして参照…`,drop_files_or_click_to_browse:`ここにファイルをドロップするかクリックして参照…`,drop_files_or:`ここにファイルをドロップするか`,drop_image_files_or:`ここに画像ファイルをドロップするか`,browse:`参照`,paste:`貼り付け`,paste_image:`画像を貼り付け`,no_image_in_clipboard:`クリップボードに画像が見つかりません。`,clipboard_access_denied:`クリップボードへのアクセスが拒否されました。`,drop_files_here:`ここにファイルをドロップ`,unsupported_file_type:`非対応ファイル形式`,dropped_file_type_mismatch:`ドロップされたファイルは {$type} 形式ではありません。再度お試しください。`,dropped_image_type_mismatch:`ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。`,choose_files:`ファイルを選択`,delete_assets:`アセットを削除`,delete_selected_assets:`選択されたアセットを削除`,confirm_deleting_this_asset:`このアセットを削除してもよろしいですか?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{選択されたアセットを削除してもよろしいですか?}} * {{選択された {$count} 個のアセットを削除してもよろしいですか?}}`,confirm_deleting_all_assets:`すべてのアセットを削除してもよろしいですか?`,delete_entries:`エントリーを削除`,delete_selected_entries:`選択されたエントリーを削除`,confirm_deleting_this_entry:`このエントリーを削除してもよろしいですか?`,confirm_deleting_this_entry_with_assets:`このエントリーと関連アセットを削除してもよろしいですか?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{選択されたエントリーを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーを削除してもよろしいですか?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{選択されたエントリーと関連アセットを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーと関連アセットを削除してもよろしいですか?}}`,confirm_deleting_all_entries:`すべてのエントリーを削除してもよろしいですか?`,confirm_deleting_all_entries_with_assets:`すべてのエントリーと関連アセットを削除してもよろしいですか?`,reorder_entries:`エントリーを並び替え`,done_reordering_entries:`エントリーの並び替えを完了`,cancel_reordering_entries:`エントリーの並び替えをキャンセル`,saving_reorder_failed:`エントリーの並び替えを保存できませんでした。再度お試しください。`,processing_files:`ファイルを処理しています。これには時間がかかる場合があります。`,uploading_files:`アップロード対象ファイル`,confirm_replacing_file:`「{$name}」がこのファイルと置き換えられます:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{このファイルを「{$folder}」フォルダーに保存します:}} * {{これら {$count} 個のファイルを「{$folder}」フォルダーに保存します:}}`,oversized_files:`サイズ超過ファイル`,warning_oversized_files:`.input {$count :integer} .match $count one {{このファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}} * {{これらのファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{同じ名前のファイルがこのフォルダーに既に存在します。置き換えますか?}} * {{{$count} 個のファイルが同じ名前でこのフォルダーに既に存在します。置き換えますか?}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{"{$name}" という名前のファイルはこのフォルダーに既に存在します。置き換えますか?}} * {{{$count} 個のファイルが同じ名前でこのフォルダーに既に存在します。置き換えますか?}}`,file_name_conflict_resolution:`ファイル名の競合解決`,keep_both:`両方とも残す`,uploading_files_progress:`ファイルをアップロード中…`,uploading_files_failed:`ファイルをアップロードできませんでした`,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_errors:`.input {$count :integer} .match $count one {{ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}} * {{{$count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}}`,entry_saved:`.input {$count :integer} .match $count one {{エントリーが保存されました。}} * {{{$count} 件のエントリーが保存されました。}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{エントリーが保存、公開されました。}} * {{{$count} 件のエントリーが保存、公開されました。}}`,entries_deleted:`.input {$count :integer} .match $count one {{エントリーが削除されました。}} * {{{$count} 個のエントリーが削除されました。}}`,assets_saved:`.input {$count :integer} .match $count one {{アセットが保存されました。}} * {{{$count} 個のアセットが保存されました。}}`,asset_saved_and_published:`アセットが保存、公開されました。`,assets_saved_and_published:`.input {$count :integer} .match $count one {{アセットが保存、公開されました。}} * {{{$count} 個のアセットが保存、公開されました。}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{アセット URL がクリップボードにコピーされました。}} * {{{$count} 個のアセット URL がクリップボードにコピーされました。}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{アセットファイルパスがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルパスがクリップボードにコピーされました。}}`,asset_data_copied:`.input {$count :integer} .match $count one {{アセットファイルがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルがクリップボードにコピーされました。}}`,assets_downloaded:`.input {$count :integer} .match $count one {{アセットファイルがダウンロードされました。}} * {{{$count} 個のアセットファイルがダウンロードされました。}}`,assets_moved:`.input {$count :integer} .match $count one {{アセットが移動されました。}} * {{{$count} 個のアセットが移動されました。}}`,assets_renamed:`.input {$count :integer} .match $count one {{アセットの名前が変更されました。}} * {{{$count} 個のアセットの名前が変更されました。}}`,assets_deleted:`.input {$count :integer} .match $count one {{アセットが削除されました。}} * {{{$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:`プレビュー`,swap_panes:`ペインを入れ替える`,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_field_type_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_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:`.input {$count :integer} .match $count 0 {{{$source} から翻訳されたフィールドはありません。}} one {{{$source} からフィールドを翻訳しました。}} * {{{$source} から {$count} 個のフィールドを翻訳しました。}}`},copy:{none:`コピーされたフィールドはありません。`,complete:`.input {$count :integer} .match $count 0 {{{$source} からコピーされたフィールドはありません。}} one {{{$source} からフィールドをコピーしました。}} * {{{$source} から {$count} 個のフィールドをコピーしました。}}`}},validation:{value_missing:`この項目は必須です。`,range_underflow:{"datetime-local":`日時は {$min} かそれ以降でなければなりません。`,date:`日付は {$min} かそれ以降でなければなりません。`,time:`時刻は {$min} かそれ以降でなければなりません。`,number:`値は {$min} 以上でなければなりません。`,select:`少なくとも {$min} 個の項目を選択してください。`,add:`少なくとも {$min} 個の項目を追加してください。`},range_overflow:{"datetime-local":`日時は {$max} かそれ以前でなければなりません。`,date:`日付は {$max} かそれ以前でなければなりません。`,time:`時刻は {$max} かそれ以前でなければなりません。`,number:`値は {$max} 以下でなければなりません。`,select:`これ以上選択できる項目はありません。最大は {$max} 個です。`,add:`これ以上追加できる項目はありません。最大は {$max} 個です。`},too_short:`少なくとも {$min} 文字は入力してください。`,too_long:`{$max} 文字を超える入力はできません。`,type_mismatch:{number:`数値を入力してください。`,email:`正しいメールアドレスを入力してください。`,url:`正しい URL を入力してください。`}},entry_sidebar:{sidebar_panels:`サイドバーパネル`,validation:{title:`バリデーション`,placeholder:`検証結果がここに表示されます。`,no_errors_found:`エラーは見つかりませんでした。`},history:{title:`履歴`,fetch_failed:`履歴を読み込めませんでした。`,no_history:`履歴が見つかりませんでした。`},backlinks:{title:`バックリンク`,no_entries:`このエントリーを参照しているエントリーはありません。`}},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_urls:`公開 URL`,file_paths:`ファイルパス`,file_data:`ファイルデータ`,kind:`種類`,size:`サイズ`,dimensions:`大きさ`,duration:`再生時間`,used_in:`使われているエントリー`,created_date:`作成日時`,location:`場所`,map_lat_lng:`緯度 {$latitude}、経度 {$longitude} の地図`,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:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}。最大 {$max}。}} * {{{$count} 文字入力されています。最小: {$min}。最大 {$max}。}}`,min:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}}} * {{{$count} 文字入力されています。最小: {$min}。}}`,max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最大: {$max}。}} * {{{$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:{api_key:{key_label:`API キー`,initial:`{$service} の {$key} を入力してください。`,requested:`検証中…`,error:`入力された {$key} が無効です。確認の上、再度お試しください。`},password:{initial:`{$service} のパスワードを入力してください。`,requested:`ログイン中…`,error:`ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。`}},cloudinary:{iframe_title:`Cloudinary メディアライブラリ`,activate:{button_label:`Cloudinary を有効化`,description:`ログイン後、再度 Sign In ボタンをクリックして続行してください。`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`シークレットアクセスキー`},cloudflare_r2:{auth_key_label:`シークレットアクセスキー`},digitalocean_spaces:{auth_key_label:`シークレットアクセスキー`}},config:{errors:`CMS 設定に問題が見つかりました。問題を解決してから再度お試しください。`,error_locator:{collection:`{$collection} コレクション`,file:`{$file} ファイル`,field:"`{$field}` フィールド"},error:{no_secure_context:`Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。`,insecure_urls:`設定ファイルの URL は HTTPS プロトコルまたはローカルホストアドレスを使用する必要があります。`,fetch_failed:`設定ファイルを読み込めませんでした。`,fetch_failed_not_ok:`HTTP レスポンスがステータス {$status} で返されました。`,fetch_failed_with_manual_init:"設定ファイルを取得できませんでした。`config.yml` ファイルの読み込みを防ぐには、`CMS.init()` に渡される設定オブジェクトに [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) を追加してください。",parse_failed:`設定ファイルを解析できませんでした。`,parse_failed_invalid_object:`設定ファイルが有効な JavaScript オブジェクトではありません。`,parse_failed_unsupported_type:`設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML、TOML と JSON のみです。`,no_collection:`コレクションが定義されていません。`,missing_backend:`バックエンドが定義されていません。`,missing_backend_name:`バックエンド名が定義されていません。`,unsupported_known_backend:`{$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_deprecated_backend:`廃止予定の {$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_custom_backend:`カスタムバックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_backend_suggestion:`[サポートされているバックエンド](https://sveltiacms.app/en/docs/backends#supported-backends) のいずれかを使用してください。`,missing_repository:`レポジトリが定義されていません。`,invalid_repository:`設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。`,oauth_implicit_flow:`設定されている認証方式 (暗黙的フロー) は Sveltia CMS では非対応です。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) を使用してください。`,github_pkce_unsupported:`GitHub の制約により PKCE 認証はまだサポートされていません。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/github#authentication) を使用してください。`,oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。`,no_auth_methods:"`auth_methods` オプションには少なくとも 1 つの認証方法を含める必要があります。",missing_media_folder:`メディアフォルダーが定義されていません。`,invalid_media_folder:`設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。`,invalid_public_folder:`設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。`,public_folder_relative_path:`設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。`,public_folder_absolute_url:`パブリックフォルダーオプションの絶対 URL は Sveltia CMS では非対応です。`,invalid_collection_no_options:"コレクションは `folder`、`files`、`divider` オプションのいずれかを定義する必要があります。",invalid_collection_multiple_options:"コレクションは `folder`、`files`、`divider` オプションを同時に持つことはできません。",file_format_mismatch:"拡張子 `{$extension}` は `{$format}` 形式と一致しません。",invalid_slug_slash:"スラッグテンプレート `{$slug}` は無効です。スラッシュを含めることはできません。エントリーをサブフォルダーに整理するには、`slug` の代わりに `path` オプションを使用してください。",missing_collection_name:"コレクション {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_name:"コレクション名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_name:"コレクション名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_collection_file_name:"コレクションファイル {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_file_name:"コレクションファイル名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_file_name:"コレクションファイル名は一意でなければなりませんが、`{$name}` が複数回使用されています。",collection_no_fields:`コレクションには少なくとも 1 つのフィールドを定義する必要があります。`,collection_file_no_fields:`コレクションファイルには少なくとも 1 つのフィールドを定義する必要があります。`,missing_field_name:"フィールド {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_field_name:"フィールド名 `{$name}` は無効です。特殊文字を含めることはできません。ネストされたフィールドを作成したい場合は、[ドット表記ではなくオブジェクトフィールドを使用してください](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions)。",duplicate_field_name:"フィールド名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_variable_type:"変数タイプ {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_variable_type:"変数タイプ名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_variable_type:"変数タイプ名は一意でなければなりませんが、`{$name}` が複数回使用されています。",date_field_type:"Sveltia CMS では非推奨の Date フィールドタイプはサポートされていません。代わりに `type: date` オプション付きの DateTime フィールドタイプを使用してください。",unsupported_deprecated_option:"Sveltia CMS では非推奨の `{$prop}` オプションはサポートされていません。代わりに `{$newProp}` オプションを使用してください。",allow_multiple:"Sveltia CMS では `allow_multiple` オプションはサポートされていません。代わりにデフォルトで `false` の `multiple` オプションを使用してください。",invalid_list_field:"List フィールドは `field`、`fields`、`types` オプションを同時に持つことはできません。",invalid_list_variable_type:"List フィールドの変数タイプが無効です。`widget` オプションは `{$widget}` に設定されていますが、`object` でなければなりません。",invalid_object_field:"Object フィールドは `fields` と `types` オプションを同時に持つことはできません。",object_field_missing_fields:"Object フィールドは `fields` または `types` オプションのいずれかを定義する必要があります。",relation_field_invalid_collection:"参照されている `{$collection}` コレクションは無効であるか定義されていません。",relation_field_invalid_collection_file:"参照されている `{$file}` ファイルは無効であるか定義されていません。",relation_field_missing_file_name:"ファイルコレクションへの参照には `file` オプションを定義する必要があります。",relation_field_invalid_value_field:"参照されている値フィールド `{$field}` は無効であるか定義されていません。",unexpected:`予期せぬ問題`},warning:{oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。ユーザーがログインするにはアクセストークンを入力する必要があります。`,editorial_workflow_unsupported:`Sveltia CMS ではまだエディトリアルワークフローはサポートされていません。`,open_authoring_unsupported:`Sveltia CMS ではまだオープンオーサリングはサポートされていません。`,nested_collections_unsupported:`Sveltia CMS ではネストされたコレクションはまだサポートされていません。`,unsupported_ignored_option:"`{$prop}` オプションは Sveltia CMS ではサポートされていません。このオプションは無視されます。"},compatibility_link:`詳しくは互換性情報をご覧ください: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`ローカル`,unsupported_browser:`お使いのブラウザーはローカルワークフローに対応していません。代わりに Chrome か Edge を使ってください。`,disabled:`お使いのブラウザーではローカルワークフローが無効化されています。<a>有効化する方法はこちら</a>。`},status:{drafts:`下書き`,in_review:`レビュー中`,ready:`公開可`},categories:`カテゴリ`,prefs:{changes:{api_key_saved:`API キーが保存されました。`,api_key_removed:`API キーが削除されました。`,api_key_invalid:`入力された 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:`国際化`,translators:{default:{title:`デフォルト翻訳サービス`,select_service:`サービスを選択`},api_keys:{title:`翻訳サービス API キー`,description:`<a>翻訳サービス</a> の API キーを管理します。`},field_label:`{$service} キー`,description:`<a {$homeHref}>{$service}</a> にユーザー登録して、<a {$apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。`}},media:{title:`メディア`,stock_photos:{api_keys:{title:`無料画像素材サービス API キー`,description:`<a>無料画像素材サービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,description:`<a {$homeHref}>{$service} API</a> にユーザー登録して、<a {$apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。`,credit:`写真提供: {$service}`,no_services:`利用可能な <a>無料画像素材サービス</a> はありません。`},cloud_storage:{api_keys:{title:`クラウドストレージサービス API キー`,description:`<a>クラウドストレージサービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,no_services:`利用可能な <a>クラウドストレージサービス</a> はありません。`}},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 を使用する場合は空欄のままで構いません。`,url:{field_label:`フック URL`,saved:`フック URL が保存されました。`,removed:`フック URL が削除されました。`},auth:{field_label:`認証ヘッダー (例: Bearer <token>) (オプション)`,saved:`認証ヘッダーが保存されました。`,removed:`認証ヘッダーが削除されました。`}}}},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`}}})),w6,T6,E6=s((()=>{Jue(),Yue(),Z(),Np(),rp(),eN(),w6=np(()=>Oh.current),T6=()=>{Object.entries(Object.assign({"/src/lib/locales/en.yaml":S6,"/src/lib/locales/ja.yaml":C6})).forEach(([e,t])=>{let n=Dp(e).filename;wh(n,t)}),Ah({fallbackLocale:`en`,initialLocale:A($M).locale||(kh()??``).split(`-`)[0]||`en`})}})),D6,Xue=s((()=>{Z(),rp(),E6(),SF(),D6=dn([oF,w6],([e],t)=>{let n=[`name`];e.every(e=>!!e.commitAuthor)&&n.push(`commit_author`),e.every(e=>!!e.commitDate)&&n.push(`commit_date`),t(n.map(e=>({key:e,label:X(`sort_keys.${e}`)})))})}));function Zue(e,t){O(t,!0);let n=()=>j(s1,`$listedAssets`,c),r=()=>j(zA,`$isSmallScreen`,c),i=()=>j(BA,`$isMediumScreen`,c),a=()=>j(c1,`$assetGroups`,c),o=()=>j(D6,`$sortKeys`,c),s=()=>j(o1,`$currentView`,c),[c,l]=hn(),u=M(()=>!!n().length),d=M(()=>n().length>1);{let t=M(()=>X(`asset_list`));$Q(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=k6(),c=I(n),l=e=>{{let t=M(()=>Object.values(a()).flat(1));l6(e,{get allItems(){return z(t)},get selectedItems(){return uF}})}};G(c,e=>{r()||i()||e(l)});var f=L(c,2);UI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(d));m6(p,{get disabled(){return z(e)},get currentView(){return o1},get sortKeys(){return o()},"aria-controls":`asset-list`})}var m=L(p,2);{let e=M(()=>X(`type`)),t=M(()=>!z(d)),n=M(()=>X(`all`)),r=M(()=>CS.map(e=>({label:X(e),field:`fileType`,pattern:e})));o6(m,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return o1},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var h=L(m,2);{let e=M(()=>!z(u));_6(h,{get disabled(){return z(e)},get currentView(){return o1},"aria-controls":`asset-list`})}var g=L(h,2),_=e=>{var t=O6(),n=I(t);zI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{zF(e,{name:`info`})},t=M(()=>!z(u)),n=M(()=>!!s().showInfo),i=M(()=>!!s().showInfo),a=M(()=>X(s().showInfo?`hide_info`:`show_info`));tI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`asset-info`,get"aria-expanded"(){return z(i)},get"aria-label"(){return z(a)},onclick:()=>{o1.update(e=>({...e,showInfo:!s().showInfo}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(g,e=>{r()||i()||e(_)}),U(e,n)},$$slots:{default:!0}})}k(),l()}var O6,k6,Que=s((()=>{Q(),Y(),Z(),B$(),c6(),p6(),g6(),x6(),SF(),AS(),l1(),Xue(),WA(),O6=V(`<!> <!>`,1),k6=V(`<!> <!> <!> <!> <!> <!>`,1)}));function A6(e,t){K(e,M6);let n=J(t,`primaryToolbar`,3,void 0),r=J(t,`secondaryToolbar`,3,void 0),i=J(t,`mainContent`,3,void 0),a=J(t,`secondarySidebar`,3,void 0),o=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]);var s=j6();ys(s,()=>({role:`group`,class:`wrapper`,...o}),void 0,void 0,void 0,`svelte-1x2ldab`);var c=F(s);Eo(c,()=>n()??E);var l=L(c,2),u=F(l),d=F(u);Eo(d,()=>r()??E),Eo(L(d,2),()=>i()??E),D(u),Eo(L(u,2),()=>a()??E),D(l),D(s),U(e,s)}var j6,M6,N6=s((()=>{Q(),Y(),j6=V(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),M6={hash:`svelte-1x2ldab`,code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;height:100%;background-color:var(--sui-primary-background-color);}
851
- @media (768px <= width) {.wrapper.svelte-1x2ldab {view-transition-name:page-main;}
852
- }.resizable-pane > .wrapper.svelte-1x2ldab {border-start-start-radius:16px;}.wrapper.svelte-1x2ldab .sui.toolbar.primary {justify-content:center;}
853
- @media (width < 768px) {.wrapper.svelte-1x2ldab .sui.toolbar.primary {background-color:var(--sui-secondary-background-color);}
854
- }.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);}
855
- @media (768px <= width) {.main-inner.svelte-1x2ldab .secondary-sidebar {border-start-start-radius:16px;}
856
- }.main-inner.svelte-1x2ldab .secondary-sidebar [role=listbox] {padding:12px;}`}}));function P6(e,t){O(t,!0),K(e,R6);let n=()=>j(f1,`$hasOverlay`,i),r=()=>j(zA,`$isSmallScreen`,i),[i,a]=hn(),o=J(t,`class`,3,``),s=J(t,`uiSettingsKey`,3,void 0),c=J(t,`primarySidebar`,3,void 0),l=J(t,`main`,3,void 0),u=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`uiSettingsKey`,`primarySidebar`,`main`]),d=N(void 0),f=N(void 0),p=null,m=async()=>{if(!s())return;let{databaseName:e}=A(DP)?.repository??{};p=e?new aS(e,`ui-settings`):null,P(f,(await p?.get(s()))?.sidebarWidth??240,!0)},h=async e=>{!p||!s()||!z(d)||await p.set(s(),{...await p.get(s()),sidebarWidth:Math.round(z(d).clientWidth*(e/100))})};ri(()=>{n(),window.requestAnimationFrame(()=>{n()||m()})});var g=L6();ys(g,()=>({role:`group`,id:`page-container`,class:`outer ${o()??``}`,inert:n(),...u}),void 0,void 0,void 0,`svelte-1kkfo1f`);var _=F(g),v=e=>{var t=F6(),n=I(t);Eo(n,()=>c()??E),Eo(L(n,2),()=>l()??E),U(e,t)},y=e=>{hR(e,{onResize:({sizes:e})=>{h(e[0])},children:(e,t)=>{var n=I6(),r=I(n);vR(r,{get defaultSize(){return`${z(f)??``}px`},minSize:`160px`,maxSize:`480px`,children:(e,t)=>{var n=H();Eo(I(n),c),U(e,n)},$$slots:{default:!0}});var i=L(r,2);dR(i,{}),vR(L(i,2),{children:(e,t)=>{var n=H();Eo(I(n),l),U(e,n)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})};G(_,e=>{r()||!c()||!l()?e(v):z(f)!==void 0&&e(y,1)}),D(g),Us(g,e=>P(d,e),()=>z(d)),U(e,g),k(),a()}var F6,I6,L6,R6,z6=s((()=>{Q(),Y(),B$(),cS(),rp(),S1(),kP(),WA(),F6=V(`<!> <!>`,1),I6=V(`<!> <!> <!>`,1),L6=V(`<div><!></div>`),R6={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;overflow-y:auto;height:100%;}
857
- @media (width < 768px) {.outer.svelte-1kkfo1f .primary-sidebar {flex:auto;width:auto;background-color:var(--sui-primary-background-color);}
858
- }.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;}
859
- @media (pointer: coarse) {.outer.svelte-1kkfo1f .primary-sidebar [role=listbox] button {height:48px;}
860
- }.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 $ue(e,t){O(t,!0);let n=M(()=>t.asset.path),r=M(()=>t.asset.name),i=M(()=>t.asset.folder),a=M(()=>t.asset.kind);EL(e,{onclick:()=>{y1(`/assets/${z(n)}`,{transitionType:`forwards`})},children:(e,n)=>{var o=V6(),s=I(o);CL(s,{class:`image`,children:(e,n)=>{n2(e,{get kind(){return z(a)},get asset(){return t.asset},variant:`icon`,cover:!0})},$$slots:{default:!0}});var c=L(s,2);CL(c,{class:`collection`,children:(e,t)=>{var n=H();oo(I(n),()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>i1(z(i))]),U(e,t)}),U(e,n)},$$slots:{default:!0}}),CL(L(c,2),{class:`title`,children:(e,t)=>{var n=B6();qF(F(n),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(r))),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}}),U(e,o)},$$slots:{default:!0}}),k()}var B6,V6,ede=s((()=>{Q(),Y(),Z(),B$(),l2(),S1(),l1(),B6=V(`<div role="none" class="label"><!></div>`),V6=V(`<!> <!> <!>`,1)})),H6,U6,W6,G6=s((()=>{H6=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLocaleLowerCase():``),U6=(e,t=void 0)=>{if(!t)return H6(e);let n=t.get(e);if(n!==void 0)return n;let r=H6(e);return t.set(e,r),r},W6=({value:e,terms:t,normalizedValueCache:n=void 0})=>U6(e,n).includes(t)})),K6,q6,tde=s((()=>{rp(),SF(),K3(),G6(),K6=({assets:e,terms:t})=>{if(t=H6(t),!e.length||!t)return[];let n=new Map;return e.filter(e=>W6({value:e.name,terms:t,normalizedValueCache:n}))},q6=dn([oF,G3],([e,t])=>K6({assets:e,terms:t}))}));function nde(e,t){O(t,!0);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(q6,`$assetSearchResults`,i),[i,a]=hn();ti(()=>{mn(m1,X(`viewing_asset_search_results`,{values:{terms:n(),count:r().length}}))}),L$(e,{"aria-labelledby":`search-results-assets`,children:(e,t)=>{var i=Y6(),a=F(i),o=e=>{{let t=M(()=>X(`assets`));z3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=H();oo(I(i),n,e=>{bR(e,{get items(){return r()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{$ue(e,{get asset(){return t()}})}),U(e,n)},$$slots:{renderItem:!0}})}),U(e,i)},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=J6(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(a,e=>{r().length?e(o):n()&&e(s,1)}),D(i),U(e,i)},$$slots:{default:!0}}),k(),a()}var J6,Y6,rde=s((()=>{Q(),Y(),Z(),B$(),Yx(),H3(),ede(),S1(),K3(),tde(),J6=V(`<span role="none"> </span>`),Y6=V(`<div role="none"><!></div>`)}));function ide(e,t){O(t,!0);let n=(e,n)=>{let a=()=>n?.().collection,o=()=>n?.().collectionFile,s=M(()=>{let{defaultLocale:e}=(o()??a())._i18n??Cb;return{defaultLocale:e}}),c=M(()=>{let{content:e}=z(r)[z(s).defaultLocale]??Object.values(z(r))[0]??{};return{content:e}});var l=H(),u=I(l),d=e=>{EL(e,{onclick:()=>{y1(`/collections/${a().name}/entries/${o()?.name||z(i)}`,{transitionType:`forwards`})},children:(e,n)=>{var r=Z6(),i=I(r);CL(i,{class:`image`,children:(e,n)=>{var r=H(),i=I(r),o=e=>{var n=H();eo(I(n),()=>CF(a(),t.entry),null,(e,t)=>{var n=H(),r=I(n),i=e=>{_3(e,{get src(){return z(t)},variant:`icon`,cover:!0})};G(r,e=>{z(t)&&e(i)}),U(e,n)}),U(e,n)};G(i,e=>{a()._type===`entry`&&e(o)}),U(e,r)},$$slots:{default:!0}});var s=L(i,2);CL(s,{class:`collection`,children:(e,t)=>{var n=H();oo(I(n),()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>Gb(a())]),U(e,t)}),U(e,n)},$$slots:{default:!0}}),CL(L(s,2),{class:`title`,children:(e,n)=>{var r=X6();qF(F(r),{lines:2,children:(e,n)=>{var r=H(),i=I(r),s=e=>{var t=Fa();R(e=>W(t,e),[()=>Gy(o())]),U(e,t)},c=e=>{var n=H();oo(I(n),()=>Oh.current,e=>{var n=H();So(I(n),()=>CO(a(),t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)}),U(e,n)};G(i,e=>{o()?e(s):e(c,-1)}),U(e,r)},$$slots:{default:!0}}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,r)},$$slots:{default:!0}})};G(u,e=>{z(c).content&&e(d)}),U(e,l)},r=M(()=>t.entry.locales),i=M(()=>t.entry.subPath);var a=H();mo(I(a),17,()=>WO(t.entry),e=>e.name,(e,r)=>{var i=H();eo(I(i),Jx,null,e=>{var i=H();mo(I(i),17,()=>Ky(z(r),t.entry),e=>e.name,(e,t)=>{var i=H();eo(I(i),Jx,null,e=>{n(e,()=>({collection:z(r),collectionFile:z(t)}))}),U(e,i)},e=>{n(e,()=>({collection:z(r)}))}),U(e,i)}),U(e,i)}),U(e,a),k()}var X6,Z6,ade=s((()=>{Q(),Y(),Z(),B$(),Yx(),v3(),S1(),qb(),Yy(),JO(),TF(),wO(),jb(),X6=V(`<div role="none" class="label"><!></div>`),Z6=V(`<!> <!> <!>`,1)})),Q6,$6,e8,ode=s((()=>{rp(),E6(),Vy(),Yy(),JO(),wO(),K3(),G6(),Q6=({entry:e,terms:t,normalizedValueCache:n=void 0})=>{let r=0,i=WO(e);if(i.length){i.forEach(i=>{W6({value:i.label||i.name,terms:t,normalizedValueCache:n})&&(r+=10),r+=Ky(i,e).filter(e=>W6({value:e.label||e.name,terms:t,normalizedValueCache:n})).length});let[a]=i;W6({value:CO(a,e,{useTemplate:!0,allowMarkdown:!0}),terms:t,normalizedValueCache:n})&&(r+=10)}return Object.values(e.locales).forEach(({content:e})=>{r+=Object.values(e).filter(e=>typeof e==`string`&&!!e&&W6({value:e,terms:t,normalizedValueCache:n})||typeof e==`number`&&W6({value:String(e),terms:t,normalizedValueCache:n})).length}),r},$6=({entries:e,terms:t})=>{if(t=H6(t),!e.length||!t)return[];let n=new Map;return e.map(e=>({entry:e,points:Q6({entry:e,terms:t,normalizedValueCache:n})})).filter(({points:e})=>e>0).sort((e,t)=>t.points-e.points).map(({entry:e})=>e)},e8=dn([Iy,G3,w6],([e,t])=>$6({entries:e,terms:t}))}));function sde(e,t){O(t,!0);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(e8,`$entrySearchResults`,i),[i,a]=hn();ti(()=>{mn(m1,X(`viewing_entry_search_results`,{values:{terms:n(),count:r().length}}))}),L$(e,{"aria-labelledby":`search-results-entries`,children:(e,t)=>{var i=n8(),a=F(i),o=e=>{{let t=M(()=>X(`entries`));z3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=H();oo(I(i),n,e=>{bR(e,{get items(){return r()},itemKey:`id`,renderItem:(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{ide(e,{get entry(){return t()}})}),U(e,n)},$$slots:{renderItem:!0}})}),U(e,i)},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=t8(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})};G(a,e=>{r().length?e(o):n()&&e(s,1)}),D(i),U(e,i)},$$slots:{default:!0}}),k(),a()}var t8,n8,cde=s((()=>{Q(),Y(),Z(),B$(),Yx(),H3(),ade(),S1(),K3(),ode(),t8=V(`<span role="none"> </span>`),n8=V(`<div role="none"><!></div>`)}));function lde(e,t){O(t,!0),K(e,a8);let n=()=>j(zA,`$isSmallScreen`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn();var o=i8(),s=F(o),c=e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=r8(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`search_results`)]),U(e,n)},$$slots:{default:!0}})};G(s,e=>{n()||e(c)});var l=L(s,2),u=F(l),d=e=>{sde(e,{})};G(u,e=>{r()===`contents`&&e(d)});var f=L(u,2),p=e=>{nde(e,{})};G(f,e=>{r()===`assets`&&e(p)}),D(l),D(o),U(e,o),k(),a()}var r8,i8,a8,ude=s((()=>{Q(),Y(),Z(),B$(),rde(),cde(),K3(),WA(),r8=V(`<h2 role="none"> </h2>`),i8=V(`<div role="none" class="wrapper svelte-1p7vfqa"><!> <div role="none" class="results svelte-1p7vfqa"><!> <!></div></div>`),a8={hash:`svelte-1p7vfqa`,code:`.wrapper.svelte-1p7vfqa {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:100%;background-color:var(--sui-primary-background-color);}.results.svelte-1p7vfqa {flex:auto;overflow:auto;}.results.svelte-1p7vfqa > .sui.group {display:contents;}.results.svelte-1p7vfqa > .sui.group > .inner > div {display:contents;}.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;}
861
- @media (width < 768px) {.results.svelte-1p7vfqa h3 {display:none;}
862
- }`}}));function o8(e,t){O(t,!0),K(e,c8);let n=()=>j(zA,`$isSmallScreen`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn();A6(e,{primaryToolbar:e=>{var t=H(),i=I(t),a=e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=s8(),i=I(n);{let e=M(()=>X(r()===`assets`?`back_to_asset_folder_list`:`back_to_collection_list`));Q0(i,{get"aria-label"(){return z(e)},onclick:()=>{mn(G3,``),y1(r()===`assets`?`/assets`:`/collections`,{transitionType:`backwards`})}})}var a=L(i,2);q3(F(a),{}),D(a),U(e,n)},$$slots:{default:!0}})};G(i,e=>{n()&&e(a)}),U(e,t)},mainContent:e=>{lde(e,{})},$$slots:{primaryToolbar:!0,mainContent:!0}}),k(),a()}var s8,c8,l8=s((()=>{Q(),Y(),Z(),B$(),N6(),$0(),Z3(),ude(),S1(),K3(),WA(),s8=V(`<!> <div role="search" class="svelte-1476at1"><!></div>`,1),c8={hash:`svelte-1476at1`,code:`[role=search].svelte-1476at1 {display:contents;}[role=search].svelte-1476at1 .sui.search-bar {flex:auto;}`}})),u8,d8,f8=s((()=>{rp(),K3(),u8=/^\/search\/(?<terms>.+)$/,d8=e=>{let{groups:t}=e.match(u8)??{};if(!t)return!1;let{terms:n}=t;return n&&n!==A(G3)&&G3.set(n),A(W3)||W3.set(`contents`),!0}}));function p8(e,t){O(t,!0);let n=()=>j(Ip,`$selectedAssetFolder`,u),r=()=>j(t1,`$showAssetOverlay`,u),i=()=>j(zA,`$isSmallScreen`,u),a=()=>j(Pp,`$allAssetFolders`,u),o=()=>j(s1,`$listedAssets`,u),s=()=>j(fF,`$overlaidAsset`,u),c=()=>j(oF,`$allAssets`,u),l=()=>j(P0,`$assetUpdatesToast`,u),[u,d]=hn(),f=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/,p=N(!1),m=N(!1),h=M(()=>Oh.current&&n()?i1(n()):``),g=async()=>{let{path:e}=h1(),t=e.match(f);if(P(p,!1),P(m,!1),!t?.groups){mn(t1,!1),P(m,d8(e),!0);return}let{folderPath:r,fileName:l}=t.groups;if(!r){i()?(mn(Ip,void 0),mn(t1,!1),mn(m1,X(`viewing_asset_folder_list`)),P(p,!0)):y1(`/assets/-/all`);return}let u=window.history.state?.folder??a().find(({internalPath:e,collectionName:t})=>r===`-/all`?e===void 0&&t===void 0:e===r);if(u?(0,m8.default)(n(),u)||mn(Ip,u):mn(Ip,void 0),!l){await Jx(100),mn(t1,!1),mn(m1,X(`viewing_x_asset_folder`,{values:{folder:z(h),count:o().length}}));return}mn(fF,l?c().find(e=>e.path===`${r}/${l}`):void 0),mn(m1,s()?X(`viewing_x_asset_details`,{values:{name:s().name}}):X(`file_not_found`)),mn(t1,!0)};ic(()=>(g(),()=>{mn(t1,!1)}));var _=h8();xa(`hashchange`,Ir,e=>{v1(e,g,f)});var v=I(_);{let e=e=>{var t=H(),n=I(t),r=e=>{Bue(e,{get isSearchPage(){return z(m)}})};G(n,e=>{(!i()||z(p))&&e(r)}),U(e,t)},t=e=>{var t=H(),n=I(t),r=e=>{o8(e,{})},a=e=>{{let t=e=>{Wue(e,{})},n=e=>{var t=H(),n=I(t),r=e=>{Zue(e,{})};G(n,e=>{o().length&&e(r)}),U(e,t)},r=e=>{Rue(e,{})},i=e=>{Kue(e,{})},a=M(()=>X(`x_asset_folder`,{values:{folder:z(h)}}));A6(e,{id:`assets-container`,get"aria-label"(){return z(a)},primaryToolbar:t,secondaryToolbar:n,mainContent:r,secondarySidebar:i,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};G(n,e=>{z(m)?e(r):(!i()||!z(p))&&e(a,1)}),U(e,t)},n=M(()=>X(`asset_library`));P6(v,{uiSettingsKey:`assets-page`,get"aria-label"(){return z(n)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var y=L(v,2),b=e=>{Due(e,{})};G(y,e=>{r()&&e(b)});var x=L(y,2);kue(x,{});var S=L(x,2);Pue(S,{});var C=L(S,2);nz(C,{get show(){return l().saved},set show(e){_n(P0,B(l).saved=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(l().published?`assets_saved_and_published`:`assets_saved`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=L(C,2);nz(w,{get show(){return l().moved},set show(e){_n(P0,B(l).moved=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`assets_moved`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ee=L(w,2);nz(ee,{get show(){return l().renamed},set show(e){_n(P0,B(l).renamed=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`assets_renamed`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),nz(L(ee,2),{get show(){return l().deleted},set show(e){_n(P0,B(l).deleted=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`assets_deleted`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,_),k(),d()}var m8,h8,dde=s((()=>{Q(),Y(),Z(),B$(),Yx(),m8=u(YM()),oc(),Oue(),Aue(),Fue(),zue(),Vue(),Gue(),que(),Que(),N6(),z6(),l8(),S1(),SF(),F0(),Hp(),l1(),f8(),WA(),h8=V(`<!> <!> <!> <!> <!> <!> <!> <!>`,1)}));function fde(e,t){O(t,!0),K(e,S8);let n=()=>j(pF,`$uploadingAssets`,o),r=()=>j(dae,`$processedAssets`,o),i=()=>j(t1,`$showAssetOverlay`,o),a=()=>j(r1,`$showUploadAssetsConfirmDialog`,o),[o,s]=hn(),c=N(Cr([])),l=N(!0),u=M(()=>n().files),d=M(()=>n().folder),f=M(()=>n().originalAssets),p=M(()=>z(f)?.[0]),m=M(()=>r().processing),h=M(()=>r().undersizedFiles),g=M(()=>r().oversizedFiles),_=M(()=>r().transformedFileMap),v=M(()=>nF().config),y=M(()=>z(v).max_file_size),b=M(()=>z(p)||z(d)?.internalPath===void 0?[]:bF(z(d).internalPath)),x=M(()=>xF(z(c),z(b))),S=M(()=>z(x).length);ti(()=>{P(c,[...z(h)],!0),P(l,!0)}),ti(()=>{i()||mn(pF,{folder:void 0,files:[]})});{let t=M(()=>X(z(p)?`replace_asset`:`upload_assets`)),n=M(()=>X(z(p)?`replace`:`upload`)),r=M(()=>!z(c).length);cL(e,{get open(){return a()},get title(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{let e=z(p)?z(f):z(l)?z(b):[];await q2({files:z(c),folder:z(d),originalAssets:e},{commitType:`uploadMedia`}),mn(pF,{folder:void 0,files:[]})},onCancel:()=>{mn(pF,{folder:void 0,files:[]})},children:(e,t)=>{var n=x8(),r=I(n),i=e=>{var t=g8(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`processing_files`,{values:{count:z(u).length}})]),U(e,t)};G(r,e=>{z(m)&&e(i)});var a=L(r,2),o=e=>{var t=_8(),n=F(t),r=F(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`confirm_replacing_file`,{values:{name:z(p).name}})]),U(e,t)},a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`confirm_uploading_files`,{values:{count:z(c).length,folder:`/${z(d)?.internalPath}`}})]),U(e,t)};G(r,e=>{z(p)?e(i):e(a,-1)}),D(n),y3(L(n,2),{get transformedFileMap(){return z(_)},get files(){return z(c)},set files(e){P(c,e,!0)}}),D(t),R(e=>q(t,`aria-label`,e),[()=>X(`uploading_files`)]),U(e,t)};G(a,e=>{z(c).length&&e(o)});var s=L(a,2),f=e=>{var t=v8(),n=F(t);VF(n,{status:`warning`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`warning_oversized_files`,{values:{count:z(g).length,size:qC(z(y))}})]),U(e,n)},$$slots:{default:!0}}),y3(L(n,2),{get files(){return z(g)},get transformedFileMap(){return z(_)},removable:!1}),D(t),R(e=>q(t,`aria-label`,e),[()=>X(`oversized_files`)]),U(e,t)};G(s,e=>{z(g).length&&e(f)});var h=L(s,2),v=e=>{var t=b8(),n=F(t),r=L(n);{let e=M(()=>X(`file_name_conflict_resolution`));iR(r,{get"aria-label"(){return z(e)},onChange:({detail:e})=>{P(l,e.value===`replace`)},children:(e,t)=>{var n=y8(),r=I(n);sR(r,{value:`replace`,get checked(){return z(l)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`replace`)]),U(e,n)},$$slots:{default:!0}});var i=L(r,2);{let e=M(()=>!z(l));sR(i,{value:`keep`,get checked(){return z(e)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keep_both`)]),U(e,n)},$$slots:{default:!0}})}U(e,n)},$$slots:{default:!0}})}D(t),R(e=>W(n,`${e??``} `),[()=>X(`file_name_conflict_confirmation`,{values:{count:z(S)}})]),U(e,t)};G(h,e=>{z(S)&&e(v)}),U(e,n)},$$slots:{default:!0}})}k(),s()}var g8,_8,v8,y8,b8,x8,S8,pde=s((()=>{Q(),Y(),Z(),B$(),w3(),SF(),J2(),l1(),rF(),ew(),g8=V(`<div role="status"> </div>`),_8=V(`<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>`),v8=V(`<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>`),y8=V(`<!> <!>`,1),b8=V(`<div role="group" class="section svelte-96nj3d"> <!></div>`),x8=V(`<!> <!> <!> <!>`,1),S8={hash:`svelte-96nj3d`,code:`.section.svelte-96nj3d {display:flex;flex-direction:column;gap:12px;}.section.svelte-96nj3d:not(:first-child) {margin-top:16px;}.section.svelte-96nj3d > * {flex:none;}.section.oversized.svelte-96nj3d .files {opacity:0.5;}`}}));function mde(e,t){O(t,!0);let n=()=>j(pF,`$uploadingAssets`,s),r=()=>j(Lp,`$targetAssetFolder`,s),i=()=>j(n1,`$showUploadAssetsDialog`,s),a=()=>j(HA,`$hasMouse`,s),o=()=>j(t1,`$showAssetOverlay`,s),[s,c]=hn(),l=N(void 0),u=M(()=>n().originalAssets),d=M(()=>z(u)?.[0]),f=M(()=>!z(d)),p=M(()=>z(d)?yS.getType(z(d).name)??void 0:void 0),m=e=>{e.length&&(mn(pF,{folder:z(d)?z(d).folder:r(),files:e,originalAssets:z(u)}),mn(n1,!1))};ti(()=>{!a()&&i()&&z(l)?.open()}),ti(()=>{o()||mn(n1,!1)});var h=H(),g=I(h),_=e=>{{let t=M(()=>z(d)?X(`replace_x`,{values:{name:z(d).name}}):X(`upload_assets`));$I(e,{get title(){return z(t)},showOk:!1,get open(){return vn(),i()},set open(e){mn(n1,e)},children:(e,t)=>{T3(e,{showUploadButton:!0,get accept(){return z(p)},get multiple(){return z(f)},onDrop:({files:e})=>{m(e)}})},$$slots:{default:!0}})}},v=e=>{Us(_L(e,{get accept(){return z(p)},get multiple(){return z(f)},onSelect:({files:e})=>{m(e)},onCancel:()=>{mn(n1,!1)}}),e=>P(l,e,!0),()=>z(l))};G(g,e=>{a()?e(_):e(v,-1)}),U(e,h),k(),c()}var hde=s((()=>{Q(),Y(),Z(),B$(),bS(),M3(),SF(),Hp(),l1(),WA()}));function gde(e,t){O(t,!0),K(e,w8);{let t=e=>{var t=C8(),n=F(t),r=F(n,!0);D(n),D(t),R((e,n)=>{q(t,`aria-label`,e),W(r,n)},[()=>X(`cms_config`),()=>Ay(qP)]),U(e,t)},n=M(()=>X(`site_configuration_editor`));P6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var C8,w8,_de=s((()=>{Q(),Y(),Z(),My(),z6(),$P(),C8=V(`<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>`),w8={hash:`svelte-2picl5`,code:`div.svelte-2picl5 {flex:auto;overflow:auto;}pre.svelte-2picl5 {margin:0;padding:16px;width:100%;min-width:fit-content;min-height:-moz-available;min-height:-webkit-fill-available;min-height:stretch;background-color:var(--sui-primary-background-color);}`}})),T8,E8,D8=s((()=>{rp(),qb(),Yy(),W4(),_A(),T8=({getFieldArgs:e,fieldConfig:t,sourceLanguage:n,value:r})=>{let{keyPath:i}=e;Object.entries(A(z4).currentValues).forEach(([a,o])=>{if(i.includes(`.`)){let t=i.match(/(?<path>.+?)\.[^.]*$/)?.groups?.path;if(!Object.keys(o).some(e=>e.startsWith(`${t}.`))&&!uA({...e,keyPath:t}))return}if(t.widget===`relation`){let{value_field:e=`{{slug}}`}=t;e.startsWith(`{{locale}}/`)&&r.startsWith(`${n}/`)&&(r=`${a}/${r.slice(n.length+1)}`)}a!==n&&o[i]!==r&&(o[i]=r)})},E8=({draft:{collectionName:e,fileName:t,isIndexFile:n},locale:r,target:i={},getValueMap:a=void 0})=>{let o=Wb(e),s=o&&t?Wy(o,t):void 0;if(!o||t&&!s)return;let{defaultLocale:c,canonicalSlug:{key:l}}=(s??o)._i18n,u=e=>A(B4)&&e.i18n===`duplicate`&&r===c,d=(r,i)=>{let o=typeof a==`function`?a():r,s={collectionName:e,fileName:t,keyPath:i,valueMap:o,isIndexFile:n};return{valueMap:o,getFieldArgs:s,fieldConfig:uA({...s})}};return new Proxy(i,{set:(e,t,n)=>{if(e[t]!==n&&(e[t]=n),[l].includes(t))return!0;let{fieldConfig:i,getFieldArgs:a}=d(e,t);if(!i)return!0;let o=A(z4)?.validities?.[r]?.[t];return o&&typeof n==`string`&&dA({fieldConfig:i,locale:r})&&(o.valueMissing=!n),u(i)&&T8({getFieldArgs:a,fieldConfig:i,sourceLanguage:r,value:n}),!0},deleteProperty:(e,t)=>{delete e[t];let{fieldConfig:n}=d(e,t);return n&&u(n)&&Object.entries(A(z4).currentValues).forEach(([e,n])=>{e!==r&&t in n&&delete n[t]}),!0}})}})),O8,k8,A8,j8,M8,N8,P8,F8,I8,L8,R8,z8,B8,V8=s((()=>{Np(),p(),cS(),rp(),kP(),$P(),I4(),W4(),D8(),eN(),O8=0,k8=void 0,A8={saved:!1,restored:!1,deleted:!1},j8=un({show:!1}),M8=un({...A8}),N8=async(e,t=``)=>{await k8?.delete([e,t])},P8=async(e,t=``)=>{let n=await k8?.get([e,t]);return n?(n.siteConfigVersion??n.cmsConfigVersion)===A(YP)?n:(await N8(e,t),null):null},F8=async e=>{if(!(A($M).useDraftBackup??!0)||!A(V4))return;let{collectionName:t,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:a={},currentValues:o={},files:s}=e,c=n??r?.slug??``;if(A(U4)){let e={timestamp:new Date,cmsConfigVersion:A(YP),collectionName:t,slug:c,currentLocales:i,currentSlugs:f(a),currentValues:f(o),files:s};await k8?.put(e)}else await P8(t,c)&&await N8(t,c)},I8=({backup:e,collectionName:t,fileName:n})=>{let{currentLocales:r,currentSlugs:i,currentValues:a,files:o}=e,s=new Map;B4.set(!1),z4.update(e=>{if(e){e.currentLocales=r,e.currentSlugs=i;let c=w4(e.collection);Object.entries(a).forEach(([r,i])=>{if(c&&c in i){let t=e.originalEntry?.locales[r]?.content?.[c];t===void 0?delete i[c]:i[c]=t}Object.entries(i).forEach(([t,n])=>{typeof n==`string`&&([...n.matchAll(Cp(`g`))].forEach(([t])=>{let r=o[t],{file:i}=r??{};if(!r||!i)return;let a=``;s.has(i)?a=s.get(i):(a=URL.createObjectURL(i),e.files[a]=r,s.set(i,a)),n=n.replaceAll(t,a)}),i[t]=n)}),e.currentValues[r]?Object.assign(e.currentValues[r],i):e.currentValues[r]=E8({draft:{collectionName:t,fileName:n},locale:r,target:structuredClone(i)}),e.originalValues[r]||(e.originalValues[r]={})})}return e}),B4.set(!0)},L8=async({collectionName:e,fileName:t,slug:n=``})=>{if(!(A($M).useDraftBackup??!0))return;let r=await P8(e,n);if(!r)return;let{timestamp:i}=r,{promise:a,resolve:o}=Promise.withResolvers();j8.set({show:!0,timestamp:i,resolve:o});let s=await a;s!==void 0&&(s?(I8({backup:r,collectionName:e,fileName:t}),V4.set(!0)):await N8(e,n),M8.set({restored:s,deleted:!s,saved:!1}))},R8=async()=>{if(!(A($M).useDraftBackup??!0))return;let e=A(z4);if(!e||A(M8).saved)return;let{collectionName:t,originalEntry:n}=e;await P8(t,n?.slug)&&M8.set({restored:!1,deleted:!1,saved:!0})},z8=()=>{M8.set({...A8})},DP.subscribe(e=>{if(e&&!k8){let{databaseName:t}=e.repository??{};if(t){k8=new aS(t,`draft-backups`,{keyPath:[`collectionName`,`slug`]});return}}k8=null}),z4.subscribe(e=>{globalThis.clearTimeout(O8),e?.id!==B8&&(B8=e?.id,V4.set(!1)),e&&k8&&(O8=globalThis.setTimeout(()=>{F8(e)},500))})}));function vde(e,t){O(t,!0);let n=()=>j(j8,`$restoreDialogState`,a),r=()=>j(AF,`$showContentOverlay`,a),i=()=>j(M8,`$backupToastState`,a),[a,o]=hn(),s=M(()=>new Date),c=M(()=>n().resolve),l=M(()=>n().timestamp),u=M(()=>z(s).getUTCFullYear()===z(l)?.getUTCFullYear()),d=M(()=>z(u)&&z(s).getUTCMonth()===z(l)?.getUTCMonth()),f=M(()=>z(d)&&z(s).getUTCDate()===z(l)?.getUTCDate()),p=M(()=>z(l)?.toLocaleString(Oh.current,{year:z(u)?void 0:`numeric`,month:z(f)?void 0:`short`,day:z(f)?void 0:`numeric`,hour:`numeric`,minute:`numeric`}));ti(()=>{!r()&&n().show&&(_n(j8,B(n).show=!1,B(n)),z(c)?.())});var m=H8(),h=I(m);{let e=M(()=>X(`restore_backup_title`)),t=M(()=>X(`restore`)),r=M(()=>X(`discard`));cL(h,{get title(){return z(e)},get okLabel(){return z(t)},get cancelLabel(){return z(r)},onOk:()=>{z(c)?.(!0)},onCancel:()=>{z(c)?.(!1)},get open(){return n().show},set open(e){_n(j8,B(n).show=e,B(n))},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`restore_backup_description`,{values:{datetime:z(p)}})]),U(e,n)},$$slots:{default:!0}})}var g=L(h,2);nz(g,{get show(){return i().saved},set show(e){_n(M8,B(i).saved=e,B(i))},children:(e,t)=>{VF(e,{status:`info`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`draft_backup_saved`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var _=L(g,2);nz(_,{get show(){return i().restored},set show(e){_n(M8,B(i).restored=e,B(i))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`draft_backup_restored`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),nz(L(_,2),{get show(){return i().deleted},set show(e){_n(M8,B(i).deleted=e,B(i))},children:(e,t)=>{VF(e,{status:`info`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`draft_backup_deleted`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,m),k(),o()}var H8,yde=s((()=>{Q(),Y(),Z(),B$(),V8(),RF(),H8=V(`<!> <!> <!> <!>`,1)}));function U8(e,t){O(t,!0),K(e,G8);let n=N(null),r=N(!1);ti(()=>{z(n)&&(async()=>{await XF(z(n)),P(r,!0)})()});var i=H(),a=I(i),o=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},s=e=>{var t=W8();Us(t,e=>P(n,e),()=>z(n)),U(e,t)};G(a,e=>{z(r)?e(o):e(s,-1)}),U(e,i),k()}var W8,G8,K8=s((()=>{Q(),Y(),ZF(),W8=V(`<div class="placeholder svelte-ow4el9"></div>`),G8={hash:`svelte-ow4el9`,code:`.placeholder.svelte-ow4el9 {height:64px;}`}}));function bde(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}function q8(e,t){return Array(t+1).join(e)}function J8(e){return e.replace(/^\n*/,``)}function Y8(e){for(var t=e.length;t>0&&e[t-1]===`
784
+ `))},p=async()=>{let e=l,{type:t}=e;if(Ep(t)){await navigator.clipboard.writeText(await e.text());return}if(!Hw.includes(t))throw Error(`Unsupported type`);t!==`image/png`&&(e=await tT(e)),await navigator.clipboard.write([new ClipboardItem({"image/png":e})])},m=async(e,t)=>{try{await e(),s.status=`success`,s.text=X(t,{values:{count:r().length}})}catch{s.status=`error`,s.text=X(`clipboard_error`)}finally{s.show=!0}};ti(()=>{(async()=>{P(a,await Promise.all(r().map(w0)),!0),P(o,await u(),!0)})()});var h=k0(),g=I(h),_=e=>{{let t=e=>{{let t=M(()=>X(`copy_options`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{n(e)},$$slots:{default:!0}})}},i=M(()=>!r().length),a=M(()=>X(`copy`));NI(e,{variant:`ghost`,get disabled(){return z(i)},get label(){return z(a)},popupPosition:`bottom-right`,popup:t,$$slots:{popup:!0}})}},v=e=>{{let t=e=>{n(e)},i=M(()=>!r().length),a=M(()=>X(`copy`));qL(e,{get disabled(){return z(i)},get label(){return z(a)},popupPosition:`left-top`,items:t,$$slots:{items:!0}})}};G(g,e=>{i()?e(_):e(v,-1)}),nz(L(g,2),{get show(){return s.show},set show(e){s.show=e},children:(e,t)=>{VF(e,{get status(){return s.status},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,s.text)),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,h),k()}var O0,k0,A0=s((()=>{Q(),Y(),Z(),B$(),Np(),E0(),vT(),Ww(),rT(),O0=V(`<!> <!> <!>`,1),k0=V(`<!> <!>`,1)})),j0,M0,N0=s((()=>{rp(),j0={saved:!1,moved:!1,renamed:!1,deleted:!1,published:!1,count:1},M0=un({...j0})})),P0,F0=s((()=>{rp(),N0(),P0=un({...j0})})),I0,L0,R0,z0,B0=s((()=>{cS(),rp(),SF(),kP(),Vy(),Gj(),eN(),ew(),I0=()=>{let e=A(Wj);if(!e)return;let{name:t,email:n,id:r,login:i}=e;if(!(!t||!n))return{name:t,email:n,id:r,login:i}},L0=async({changes:e,commit:t})=>{let{databaseName:n}=A(DP)?.repository??{};if(!n)return;let r=new aS(n,`file-cache`),{files:i,author:a,date:o}=t,s={commitAuthor:a,commitDate:o};await Promise.all(e.map(async e=>{let{action:t,slug:n,path:a,previousPath:o,data:c}=e;if(typeof c!=`string`||!n)return;if(t===`delete`){await r.delete(a);return}t===`move`&&await r.delete(o);let l={sha:i[a]?.sha,size:QC(c).size,text:c,meta:s};await r.set(a,l)}))},R0=({changes:e,savedEntries:t,savedAssets:n})=>{let r=new Set(t.map(e=>e.id));Iy.update(e=>[...e.filter(e=>!r.has(e.id)),...t]);let i=new Set(n.map(e=>e.path));e.forEach(e=>{e.action===`move`&&e.previousPath?i.add(e.previousPath):e.action===`delete`&&i.add(e.path)}),oF.update(e=>[...e.filter(e=>!i.has(e.path)),...n])},z0=async({changes:e,savingEntries:t=[],savingAssets:n=[],options:r})=>{let{commitChanges:i}=A(DP),a={...await i(e,r),author:I0()};A($M).devModeEnabled&&(console.debug(`Commit changes:`,e),console.debug(`Commit results:`,a));let{files:o,author:s,date:c}=a,l=t.map(e=>({...e,commitAuthor:s,commitDate:c})),u=n.map(e=>{let{sha:t,file:n}=o[e.path]??{},r=n?URL.createObjectURL(n):void 0;return{...e,sha:t,blobURL:r,commitAuthor:s,commitDate:c}});return await L0({changes:e,commit:a}),R0({changes:e,savedEntries:l,savedAssets:u}),{commit:a,savedEntries:l,savedAssets:u}}})),V0,H0,Cue=s((()=>{SF(),F0(),B0(),N0(),V0=({assets:e})=>{dF.update(t=>e.some(({path:e})=>t?.path===e)?void 0:t),P0.set({...j0,deleted:!0,count:e.length})},H0=async e=>{await z0({changes:e.map(({path:e,sha:t})=>({action:`delete`,path:e,previousSha:t})),options:{commitType:`deleteMedia`}}),V0({assets:e})}}));function U0(e,t){O(t,!0);let n=J(t,`assets`,19,()=>[]),r=J(t,`buttonDescription`,3,``),i=J(t,`dialogDescription`,3,``),a=J(t,`onDelete`,3,void 0),o=J(t,`useButton`,3,!0),s=N(!1),c=M(()=>o()?tI:qL);var l=W0(),u=I(l);{let e=M(()=>!n().length),t=M(()=>X(`delete`));Oo(u,()=>z(c),(n,i)=>{i(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},get"aria-label"(){return r()},onclick:()=>{P(s,!0)}})})}var d=L(u,2);{let e=M(()=>X(`delete_assets`,{values:{count:n().length}})),t=M(()=>X(`delete`));cL(d,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{H0(n()),a()?.()},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,i())),U(e,n)},$$slots:{default:!0}})}U(e,l),k()}var W0,G0=s((()=>{Q(),Y(),Z(),B$(),Cue(),W0=V(`<!> <!>`,1)}));function K0(e,t){O(t,!0);let n=J(t,`assets`,19,()=>[]),r=J(t,`useButton`,3,!0),i=N(!1),a=M(()=>r()?tI:qL),o=async()=>{for(let e of n())dee(await dT(e),e.name),await Jx(300);P(i,!0)};var s=q0(),c=I(s);{let e=M(()=>!n().length),t=M(()=>X(`download`));Oo(c,()=>z(a),(n,r)=>{r(n,{variant:`ghost`,get disabled(){return z(e)},get label(){return z(t)},onclick:()=>{o()}})})}nz(L(c,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`assets_downloaded`,{values:{count:n().length}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,s),k()}var q0,J0=s((()=>{Q(),Y(),Z(),B$(),Np(),Yx(),vT(),q0=V(`<!> <!>`,1)}));function Y0(e,t){O(t,!0);let n=()=>j($M,`$prefs`,i),r=()=>j(DP,`$backend`,i),[i,a]=hn(),o=J(t,`extraItems`,3,void 0),s=N(Cr({...C0})),c=M(()=>z(s).publicURL),l=M(()=>z(s).repoBlobURL),u=async()=>{P(s,t.asset?await w0(t.asset):{...C0},!0)};ti(()=>{t.asset,u()});{let i=e=>{{let i=M(()=>X(`edit_options`));UL(e,{get"aria-label"(){return z(i)},children:(e,i)=>{var a=X0(),s=I(a);Eo(s,()=>o()??E);var u=L(s,2);{let e=M(()=>X(`edit`)),n=M(()=>X(`edit_asset`)),r=M(()=>!t.asset||!OS(t.asset));qL(u,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(mF,t.asset)}})}var d=L(u,2);{let e=M(()=>X(`rename`)),n=M(()=>X(`rename_asset`)),r=M(()=>!t.asset);qL(d,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(hF,t.asset)}})}var f=L(d,2);{let e=M(()=>X(`replace`)),n=M(()=>X(`replace_asset`)),r=M(()=>!t.asset);qL(f,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(pF,{folder:void 0,files:[],originalAssets:t.asset?[t.asset]:[]}),mn(n1,!0)}})}var p=L(f,2);zI(p,{});var m=L(p,2);{let e=M(()=>X(`view_on_live_site`)),t=M(()=>!z(c));qL(m,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{u1(z(c))}})}var h=L(m,2),g=e=>{{let t=M(()=>!r()?.repository||!z(l)),n=M(()=>X(`view_on_x`,{values:{service:r()?.repository?.label},default:X(`view_in_repository`)}));qL(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{u1(`${z(l)}?plain=1`)}})}};G(h,e=>{n().devModeEnabled&&e(g)}),U(e,a)},$$slots:{default:!0}})}},a=M(()=>X(`show_edit_options`));NI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(a)},popup:i,$$slots:{popup:!0}})}k(),a()}var X0,Z0=s((()=>{Q(),Y(),Z(),B$(),SF(),E0(),AS(),l1(),kP(),eN(),d1(),X0=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function Q0(e,t){O(t,!0);let n=J(t,`useShortcut`,3,!1),r=J(t,`onclick`,3,void 0);{let i=e=>{{let t=M(()=>bh()?`arrow_forward`:`arrow_back`);zF(e,{get name(){return z(t)}})}},a=M(()=>t[`aria-label`]??X(`back`)),o=M(()=>n()?`Escape`:void 0);tI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(a)},get keyShortcuts(){return z(o)},class:`back`,get onclick(){return r()},startIcon:i,$$slots:{startIcon:!0}})}k()}var $0=s((()=>{Q(),Y(),Z(),B$()}));function wue(e,t){O(t,!0);let n=()=>j(fF,`$overlaidAsset`,a),r=()=>j(zA,`$isSmallScreen`,a),i=()=>j(Ip,`$selectedAssetFolder`,a),[a,o]=hn(),s=e=>{var t=e2(),n=I(t);D0(n,{get assets(){return z(c)},get useButton(){return z(l)}});var r=L(n,2);K0(r,{get assets(){return z(c)},get useButton(){return z(l)}});var a=L(r,2);{let e=M(()=>X(`delete_asset`)),t=M(()=>X(`confirm_deleting_this_asset`));U0(a,{get assets(){return z(c)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)},onDelete:()=>{b1(`/assets/${i()?.internalPath??`-/all`}`)},get useButton(){return z(l)}})}U(e,t)},c=M(()=>n()?[n()]:[]),l=M(()=>!r());{let t=M(()=>X(`primary`));$Q(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var a=t2(),o=I(a);{let e=M(()=>X(`cancel_editing`));Q0(o,{get"aria-label"(){return z(e)},useShortcut:!0,onclick:()=>{b1(`/assets/${i()?.internalPath??`-/all`}`)}})}var c=L(o,2);qF(F(c),{children:(e,t)=>{_t();var r=Fa();R(()=>W(r,n()?.name)),U(e,r)},$$slots:{default:!0}}),D(c);var l=L(c,2),u=e=>{s(e)};G(l,e=>{r()||e(u)}),Y0(L(l,2),{get asset(){return n()},extraItems:e=>{var t=H(),n=I(t),i=e=>{s(e)};G(n,e=>{r()&&e(i)}),U(e,t)},$$slots:{extraItems:!0}}),U(e,a)},$$slots:{default:!0}})}k(),o()}var e2,t2,Tue=s((()=>{Q(),Y(),Z(),B$(),A0(),G0(),J0(),Z0(),$0(),S1(),SF(),Hp(),WA(),e2=V(`<!> <!> <!>`,1),t2=V(`<!> <h2 role="none"><!></h2> <!> <!>`,1)}));function n2(e,t){O(t,!0),K(e,c2);let n=J(t,`loading`,3,`lazy`),r=J(t,`asset`,3,void 0),i=J(t,`src`,15,void 0),a=J(t,`variant`,3,void 0),o=J(t,`blurBackground`,3,!1),s=J(t,`cover`,3,!1),c=J(t,`checkerboard`,3,!1),l=J(t,`dissolve`,3,!0),u=J(t,`alt`,3,``),d=J(t,`controls`,3,!1),f=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`kind`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`dissolve`,`alt`,`controls`]),p=N(void 0),m=N(!1),h=N(!1),g=N(void 0),_=N(void 0),v=M(()=>!!r()&&!!a()&&!d()),y=M(()=>t.kind===`image`||r()?.name.endsWith(`.pdf`)||z(v)&&SS.includes(t.kind)),b=!1,x=async()=>{if(!(!r()||!z(p)||b)){b=!0,P(m,!1),n()===`lazy`&&await XF(z(p));try{i(z(v)?await mT(r()):await fT(r()))}catch{P(m,!0)}o()&&!z(g)&&i()&&P(g,i(),!0),b=!1,Tn()}},S=async()=>{!z(p)||!z(_)||((z(y)?!z(p).complete:!z(p).readyState)&&await new Promise(e=>{z(p)?.addEventListener(z(y)?`load`:`loadedmetadata`,()=>{e(void 0)},{once:!0})}),l()&&await XF(z(p)),P(h,!0),r()&&z(v)&&i()?.startsWith(`blob:`)&&URL.revokeObjectURL(i()))};ti(()=>{r()&&!z(g)&&(async()=>{P(g,await mT(r(),{cacheOnly:!0}),!0)})()}),ti(()=>{z(p)&&r()&&x()}),ti(()=>{if(r())P(_,i(),!0);else if(i()&&z(p)&&n()===`lazy`){P(_,void 0);let e=i();(async()=>{await XF(z(p)),P(_,e,!0)})()}else P(_,i(),!0)}),ti(()=>{z(p)&&z(_)&&S()});var C=s2();let w;var ee=F(C),T=e=>{zF(e,{name:`draft`})},te=e=>{var t=r2();ys(t,()=>({loading:n(),src:z(_),alt:u(),...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Us(t,e=>P(p,e),()=>z(p)),va(t),U(e,t)},ne=e=>{var t=i2();ys(t,()=>({src:z(_),controls:d()||void 0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Us(t,e=>P(p,e),()=>z(p)),U(e,t)},re=e=>{var t=H(),n=I(t),r=e=>{var t=a2();ys(t,()=>({src:z(_),controls:!0,playsinline:!0,...f}),void 0,void 0,void 0,`svelte-1yaifwd`),Us(t,e=>P(p,e),()=>z(p)),U(e,t)},i=e=>{zF(e,{name:`audio_file`})};G(n,e=>{d()?e(r):e(i,-1)}),U(e,t)},ie=e=>{zF(e,{name:`draft`})};G(ee,e=>{z(m)?e(T):z(y)?e(te,1):t.kind===`video`?e(ne,2):t.kind===`audio`?e(re,3):e(ie,-1)});var ae=L(ee,2),oe=e=>{var t=o2(),n=F(t),r=F(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`loading`)]),U(e,t)};G(r,e=>{!z(v)&&!z(h)&&e(i)}),D(n);var a=L(n,2);let o;D(t),R(()=>{q(a,`src`,z(g)),o=ss(a,1,`svelte-1yaifwd`,null,o,{loaded:!!z(g)})}),U(e,t)};G(ae,e=>{o()&&e(oe)}),D(C),R(()=>w=ss(C,1,`preview ${a()??``}`,`svelte-1yaifwd`,w,{cover:s(),checkerboard:c(),dissolve:l(),loaded:z(h)})),U(e,C),k()}var r2,i2,a2,o2,s2,c2,l2=s((()=>{Q(),Y(),Z(),B$(),ZF(),oc(),vT(),AS(),r2=V(`<img/>`),i2=V(`<video></video>`,2),a2=V(`<audio></audio>`),o2=V(`<div role="none" class="blur svelte-1yaifwd"><div role="status" class="overlay svelte-1yaifwd"><!></div> <img role="none" loading="lazy" alt=""/></div>`),s2=V(`<div role="none"><!> <!></div>`),c2={hash:`svelte-1yaifwd`,code:`.preview.svelte-1yaifwd {display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;&.tile {border-width:1px;border-style:solid;border-color:transparent;padding:var(--tile-padding, 12px);.sui.icon {font-size:48px;}}&.icon {border-radius:var(--sui-control-medium-border-radius);width:var(--icon-size, 32px);height:var(--icon-size, 32px);}&:is(.tile:where(.svelte-1yaifwd), .icon:where(.svelte-1yaifwd)) {overflow:hidden;aspect-ratio:1 / 1;img:where(.svelte-1yaifwd) {
785
+ /* Prevent the image from being dragged */pointer-events:none;}}.blur:where(.svelte-1yaifwd) {display:contents;& > :where(.svelte-1yaifwd) {position:absolute;inset:0;pointer-events:none;}.overlay:where(.svelte-1yaifwd) {display:flex;justify-content:center;align-items:center;z-index:-1;backdrop-filter:blur(32px) brightness(0.8);}img:where(.svelte-1yaifwd) {width:100%;height:100%;z-index:-2;object-fit:cover;transform:scale(1.2);&.loaded {opacity:1;}}}&.cover {padding:0;& > :is(img, video) {flex:auto;}}& > :is(img, video) {flex:0;max-width:100%;max-height:100%;}&.dissolve {:is(img, video) {opacity:0;transition:opacity 250ms;}&.loaded {:is(img, video) {opacity:1;}}}}
786
+
787
+ /* prettier-ignore */.checkerboard.svelte-1yaifwd img:where(.svelte-1yaifwd) {
788
+ /* hardcoded, the same color as the checkerboard in Photoshop */background-image:linear-gradient(45deg, #ccc 25%, transparent 25%, transparent 75%, #ccc 75%),
789
+ linear-gradient(45deg, #ccc 25%, #fff 25%, #fff 75%, #ccc 75%);background-size:8px 8px;background-position:0 0, 4px 4px;}.svelte-1yaifwd:not(.checkerboard) img:where(.svelte-1yaifwd) {
790
+ /* hardcoded, the same color as the transparent image preview in Chrome and Firefox */background-color:#e5e5e5;}:is(img, video) {object-fit:contain;&:not([src]) {visibility:hidden;}}.cover.svelte-1yaifwd :is(img, video) {object-fit:cover;aspect-ratio:1 / 1;}`}}));function u2(e,t){O(t,!0),K(e,f2);let n=J(t,`class`,3,``),r=J(t,`mapElement`,15),i=J(t,`onReady`,3,void 0),a=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`coordinates`,`class`,`mapElement`,`onReady`]),o,s=async()=>{if(!r())return;let e=await Pw(`leaflet`,`dist/leaflet-src.esm.js`),n=`${Nw(`leaflet`)}/dist/images/marker-icon-2x.png`,a=e.map(r(),{center:[0,0],zoom:2});if(e.tileLayer(`https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png`,{attribution:`&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors`,referrerPolicy:`strict-origin`}).addTo(a),t.coordinates){let{latitude:r,longitude:i}=t.coordinates,o=e.icon({iconUrl:n,iconSize:[25,41]});e.marker([r,i],{icon:o}).addTo(a),a.setView([r,i],12)}r().querySelectorAll(`a[href^="https:"]`).forEach(e=>{e.setAttribute(`target`,`_blank`),e.setAttribute(`rel`,`noopener noreferrer`)}),o=new ResizeObserver(()=>{a?.invalidateSize()}),o.observe(r()),i()?.({leaflet:e,map:a})};ic(()=>(s(),()=>{o?.disconnect()}));var c=d2();ys(c,e=>({role:`application`,class:`map ${n()??``}`,"aria-label":e,...a}),[()=>t.coordinates?X(`map_lat_lng`,{values:t.coordinates}):void 0],void 0,void 0,`svelte-1c5gj1k`),Us(c,e=>r(e),()=>r()),U(e,c),k()}var d2,f2,p2=s((()=>{Q(),Y(),Z(),oc(),Fw(),d2=V(`<div></div>`),f2={hash:`svelte-1c5gj1k`,code:`
791
+ /* Leaflet default styles copied from \`node_modules/leaflet/dist/leaflet.css\`. Somehow we can’t */
792
+ /* import it directly here; Vite emits it as a separate CSS file, which we want to avoid. */
793
+ /* @todo Remove unused rules. */.leaflet-pane,
794
+ .leaflet-tile,
795
+ .leaflet-marker-icon,
796
+ .leaflet-marker-shadow,
797
+ .leaflet-tile-container,
798
+ .leaflet-pane > svg,
799
+ .leaflet-pane > canvas,
800
+ .leaflet-zoom-box,
801
+ .leaflet-image-layer,
802
+ .leaflet-layer {position:absolute;left:0;top:0;}.leaflet-container {overflow:hidden;-webkit-tap-highlight-color:transparent;background:#ddd;outline-offset:1px;font-family:'Helvetica Neue', Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5;}.leaflet-tile,
803
+ .leaflet-marker-icon,
804
+ .leaflet-marker-shadow {-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none;}.leaflet-tile::selection {background:transparent;}.leaflet-safari .leaflet-tile {image-rendering:-webkit-optimize-contrast;}.leaflet-safari .leaflet-tile-container {width:1600px;height:1600px;-webkit-transform-origin:0 0;transform-origin:0 0;}.leaflet-marker-icon,
805
+ .leaflet-marker-shadow {display:block;}.leaflet-container .leaflet-overlay-pane svg {max-width:none !important;max-height:none !important;}.leaflet-container .leaflet-marker-pane img,
806
+ .leaflet-container .leaflet-shadow-pane img,
807
+ .leaflet-container .leaflet-tile-pane img,
808
+ .leaflet-container img.leaflet-image-layer,
809
+ .leaflet-container .leaflet-tile {max-width:none !important;max-height:none !important;width:auto;padding:0;}.leaflet-container img.leaflet-tile {mix-blend-mode:plus-lighter;}.leaflet-container.leaflet-touch-zoom {-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y;}.leaflet-container.leaflet-touch-drag {-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom;}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {-ms-touch-action:none;touch-action:none;}.leaflet-container a {-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4);color:#0078a8;}.leaflet-tile {filter:inherit;visibility:hidden;}.leaflet-tile-loaded {visibility:inherit;}.leaflet-zoom-box {width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800;border:2px dotted #38f;background:rgba(255, 255, 255, 0.5);}.leaflet-overlay-pane svg {-moz-user-select:none;user-select:none;}.leaflet-pane {z-index:400;}.leaflet-tile-pane {z-index:200;}.leaflet-overlay-pane {z-index:400;}.leaflet-shadow-pane {z-index:500;}.leaflet-marker-pane {z-index:600;}.leaflet-tooltip-pane {z-index:650;}.leaflet-popup-pane {z-index:700;}.leaflet-map-pane canvas {z-index:100;}.leaflet-map-pane svg {z-index:200;}.leaflet-vml-shape {width:1px;height:1px;}.lvml {behavior:url(#default#VML);display:inline-block;position:absolute;}.leaflet-control {position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto;float:left;clear:both;}.leaflet-top,
810
+ .leaflet-bottom {position:absolute;z-index:1000;pointer-events:none;}.leaflet-top {top:0;}.leaflet-right {right:0;}.leaflet-bottom {bottom:0;}.leaflet-left {left:0;}.leaflet-right .leaflet-control {float:right;margin-right:10px;}.leaflet-top .leaflet-control {margin-top:10px;}.leaflet-bottom .leaflet-control {margin-bottom:10px;}.leaflet-left .leaflet-control {margin-left:10px;}.leaflet-fade-anim .leaflet-popup {opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear;}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {opacity:1;}.leaflet-zoom-animated {-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;}svg.leaflet-zoom-animated {will-change:transform;}.leaflet-zoom-anim .leaflet-zoom-animated {-webkit-transition:-webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);-moz-transition:-moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);transition:transform 0.25s cubic-bezier(0, 0, 0.25, 1);}.leaflet-zoom-anim .leaflet-tile,
811
+ .leaflet-pan-anim .leaflet-tile {-webkit-transition:none;-moz-transition:none;transition:none;}.leaflet-zoom-anim .leaflet-zoom-hide {visibility:hidden;}.leaflet-interactive {cursor:pointer;}.leaflet-grab {
812
+ /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-webkit-grab;
813
+ /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-moz-grab;cursor:grab;}.leaflet-crosshair,
814
+ .leaflet-crosshair .leaflet-interactive {cursor:crosshair;}.leaflet-popup-pane,
815
+ .leaflet-control {cursor:auto;}.leaflet-dragging .leaflet-grab,
816
+ .leaflet-dragging .leaflet-grab .leaflet-interactive,
817
+ .leaflet-dragging .leaflet-marker-draggable {cursor:move;
818
+ /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-webkit-grabbing;
819
+ /* stylelint-disable-next-line declaration-property-value-no-unknown */cursor:-moz-grabbing;cursor:grabbing;}.leaflet-marker-icon,
820
+ .leaflet-marker-shadow,
821
+ .leaflet-image-layer,
822
+ .leaflet-pane > svg path,
823
+ .leaflet-tile-container {pointer-events:none;}.leaflet-marker-icon.leaflet-interactive,
824
+ .leaflet-image-layer.leaflet-interactive,
825
+ .leaflet-pane > svg path.leaflet-interactive,
826
+ svg.leaflet-image-layer.leaflet-interactive path {pointer-events:visiblePainted;pointer-events:auto;}.leaflet-bar {box-shadow:0 1px 5px rgba(0, 0, 0, 0.65);border-radius:4px;}.leaflet-bar a {background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black;}.leaflet-bar a,
827
+ .leaflet-control-layers-toggle {background-position:50% 50%;background-repeat:no-repeat;display:block;}.leaflet-bar a:hover,
828
+ .leaflet-bar a:focus {background-color:#f4f4f4;}.leaflet-bar a:first-child {border-top-left-radius:4px;border-top-right-radius:4px;}.leaflet-bar a:last-child {border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none;}.leaflet-bar a.leaflet-disabled {cursor:default;background-color:#f4f4f4;color:#bbb;}.leaflet-touch .leaflet-bar a {width:30px;height:30px;line-height:30px;}.leaflet-touch .leaflet-bar a:first-child {border-top-left-radius:2px;border-top-right-radius:2px;}.leaflet-touch .leaflet-bar a:last-child {border-bottom-left-radius:2px;border-bottom-right-radius:2px;}.leaflet-control-zoom-in,
829
+ .leaflet-control-zoom-out {font:bold 18px 'Lucida Console',
830
+ Monaco,
831
+ monospace;text-indent:1px;}.leaflet-touch .leaflet-control-zoom-in,
832
+ .leaflet-touch .leaflet-control-zoom-out {font-size:22px;}.leaflet-control-layers {box-shadow:0 1px 5px rgba(0, 0, 0, 0.4);background:#fff;border-radius:5px;}.leaflet-control-layers-toggle {background-image:url(images/layers.png);width:36px;height:36px;}.leaflet-retina .leaflet-control-layers-toggle {background-image:url(images/layers-2x.png);background-size:26px 26px;}.leaflet-touch .leaflet-control-layers-toggle {width:44px;height:44px;}.leaflet-control-layers .leaflet-control-layers-list,
833
+ .leaflet-control-layers-expanded .leaflet-control-layers-toggle {display:none;}.leaflet-control-layers-expanded .leaflet-control-layers-list {display:block;position:relative;}.leaflet-control-layers-expanded {padding:6px 10px 6px 6px;color:#333;background:#fff;}.leaflet-control-layers-scrollbar {overflow-y:scroll;overflow-x:hidden;padding-right:5px;}.leaflet-control-layers-selector {margin-top:2px;position:relative;top:1px;}.leaflet-control-layers label {display:block;font-size:13px;font-size:1.08333em;}.leaflet-control-layers-separator {height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px;}.leaflet-default-icon-path {background-image:url(images/marker-icon.png);}.leaflet-container .leaflet-control-attribution {background:#fff;background:rgba(255, 255, 255, 0.8);margin:0;}.leaflet-control-attribution,
834
+ .leaflet-control-scale-line {padding:0 5px;color:#333;line-height:1.4;}.leaflet-control-attribution a {text-decoration:none;}.leaflet-control-attribution a:hover,
835
+ .leaflet-control-attribution a:focus {text-decoration:underline;}.leaflet-attribution-flag {display:inline !important;vertical-align:baseline !important;width:1em;height:0.6669em;}.leaflet-left .leaflet-control-scale {margin-left:5px;}.leaflet-bottom .leaflet-control-scale {margin-bottom:5px;}.leaflet-control-scale-line {border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:rgba(255, 255, 255, 0.8);text-shadow:1px 1px #fff;}.leaflet-control-scale-line:not(:first-child) {border-top:2px solid #777;border-bottom:none;margin-top:-2px;}.leaflet-control-scale-line:not(:first-child):not(:last-child) {border-bottom:2px solid #777;}.leaflet-touch .leaflet-control-attribution,
836
+ .leaflet-touch .leaflet-control-layers,
837
+ .leaflet-touch .leaflet-bar {box-shadow:none;}.leaflet-touch .leaflet-control-layers,
838
+ .leaflet-touch .leaflet-bar {border:2px solid rgba(0, 0, 0, 0.2);background-clip:padding-box;}.leaflet-popup {position:absolute;text-align:center;margin-bottom:20px;}.leaflet-popup-content-wrapper {padding:1px;text-align:left;border-radius:12px;}.leaflet-popup-content {margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px;}.leaflet-popup-content p {margin:17px 0;margin:1.3em 0;}.leaflet-popup-tip-container {width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none;}.leaflet-popup-tip {width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);}.leaflet-popup-content-wrapper,
839
+ .leaflet-popup-tip {background:white;color:#333;box-shadow:0 3px 14px rgba(0, 0, 0, 0.4);}.leaflet-container a.leaflet-popup-close-button {position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,
840
+ Verdana,
841
+ sans-serif;color:#757575;text-decoration:none;background:transparent;}.leaflet-container a.leaflet-popup-close-button:hover,
842
+ .leaflet-container a.leaflet-popup-close-button:focus {color:#585858;}.leaflet-popup-scrolled {overflow:auto;}.leaflet-oldie .leaflet-popup-content-wrapper {-ms-zoom:1;zoom:1;}.leaflet-oldie .leaflet-popup-tip {width:24px;margin:0 auto;}.leaflet-oldie .leaflet-control-zoom,
843
+ .leaflet-oldie .leaflet-control-layers,
844
+ .leaflet-oldie .leaflet-popup-content-wrapper,
845
+ .leaflet-oldie .leaflet-popup-tip {border:1px solid #999;}.leaflet-div-icon {background:#fff;border:1px solid #666;}.leaflet-tooltip {position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0, 0, 0, 0.4);}.leaflet-tooltip.leaflet-interactive {cursor:pointer;pointer-events:auto;}.leaflet-tooltip-top:before,
846
+ .leaflet-tooltip-bottom:before,
847
+ .leaflet-tooltip-left:before,
848
+ .leaflet-tooltip-right:before {position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:'';}.leaflet-tooltip-bottom {margin-top:6px;}.leaflet-tooltip-top {margin-top:-6px;}.leaflet-tooltip-bottom:before,
849
+ .leaflet-tooltip-top:before {left:50%;margin-left:-6px;}.leaflet-tooltip-top:before {bottom:0;margin-bottom:-12px;border-top-color:#fff;}.leaflet-tooltip-bottom:before {top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff;}.leaflet-tooltip-left {margin-left:-6px;}.leaflet-tooltip-right {margin-left:6px;}.leaflet-tooltip-left:before,
850
+ .leaflet-tooltip-right:before {top:50%;margin-top:-6px;}.leaflet-tooltip-left:before {right:0;margin-right:-12px;border-left-color:#fff;}.leaflet-tooltip-right:before {left:0;margin-left:-12px;border-right-color:#fff;}.map.svelte-1c5gj1k {margin:var(--sui-focus-ring-width);border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);overflow:hidden;aspect-ratio:1 / 1;background-clip:text;}.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;}
851
+
852
+ /* Dark theme: https://stackoverflow.com/q/59819792 */:root[data-theme='dark'] .leaflet-layer {filter:invert(100%) hue-rotate(180deg);}`}})),m2,Eue=s((()=>{m2=e=>new Date(e*1e3).toISOString().substr(11,8)}));function h2(e,t){O(t,!0),K(e,M2);let n=J(t,`showPreview`,3,!1),r=N(Cr({...C0})),i=M(()=>t.asset.path),a=M(()=>t.asset.size),o=M(()=>t.asset.kind),s=M(()=>t.asset.commitAuthor),c=M(()=>t.asset.commitDate),l=M(()=>z(r).publicURL),u=M(()=>z(r).repoBlobURL),d=M(()=>z(r).dimensions),f=M(()=>z(r).duration),p=M(()=>z(r).createdDate),m=M(()=>z(r).coordinates),h=M(()=>z(r).usedEntries),g=M(()=>Dp(z(i))),_=M(()=>T(z(g).extension,``)),v=M(()=>TS(z(o))||z(i).endsWith(`.pdf`)),y=async()=>{P(r,t.asset?await w0(t.asset):{...C0},!0),z(r).usedEntries=t.asset?await T0(t.asset):[]};ti(()=>{t.asset,y()});var b=j2(),x=F(b),S=e=>{var n=y2(),r=F(n);{let e=M(()=>z(o)===`image`),n=M(()=>[`audio`,`video`].includes(z(o)));n2(r,{get kind(){return z(o)},get asset(){return t.asset},variant:`tile`,get checkerboard(){return z(e)},get controls(){return z(n)}})}D(n),U(e,n)};G(x,e=>{n()&&z(v)&&e(S)});var C=L(x,2),w=F(C),ee=F(w,!0);D(w);var te=L(w,2),ne=F(te,!0);D(te),D(C);var re=L(C,2),ie=e=>{var t=b2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);oo(F(i),()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>qC(z(a))]),U(e,t)}),D(i),D(t),R(e=>W(r,e),[()=>X(`size`)]),U(e,t)};G(re,e=>{z(a)&&e(ie)});var ae=L(re,2),oe=e=>{var t=x2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R(e=>{W(r,e),W(a,z(d)?`${z(d).width}×${z(d).height}`:`–`)},[()=>X(`dimensions`)]),U(e,t)};G(ae,e=>{z(v)&&e(oe)});var se=L(ae,2),ce=e=>{var t=S2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{W(r,e),W(a,t)},[()=>X(`duration`),()=>z(f)?m2(z(f)):`–`]),U(e,t)},le=M(()=>[`audio`,`video`].includes(z(o)));G(se,e=>{z(le)&&e(ce)});var ue=L(se,2),de=F(ue),fe=F(de,!0);D(de);var E=L(de,2),pe=F(E),me=e=>{var t=C2(),n=F(t,!0);D(t),R(()=>{q(t,`href`,z(l)),W(n,z(l))}),U(e,t)},he=e=>{U(e,Fa(`–`))};G(pe,e=>{z(l)?e(me):e(he,-1)}),D(E),D(ue);var ge=L(ue,2),_e=F(ge),ve=F(_e,!0);D(_e);var ye=L(_e,2),be=F(ye),xe=e=>{var t=w2(),n=F(t);D(t),R(()=>{q(t,`href`,z(u)),W(n,`/${z(i)??``}`)}),U(e,t)},Se=e=>{var t=Fa();R(()=>W(t,`/${z(i)??``}`)),U(e,t)};G(be,e=>{z(u)?e(xe):e(Se,-1)}),D(ye),D(ge);var Ce=L(ge,2),we=F(Ce),Te=F(we,!0);D(we);var Ee=L(we,2),De=e=>{var t=T2(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading`)]),U(e,t)},Oe=e=>{var t=H();mo(I(t),17,()=>z(h),e=>e.id,(e,t)=>{var n=H();mo(I(n),17,()=>WO(z(t)),e=>e.name,(e,n)=>{var r=H();oo(I(r),()=>Oh.current,e=>{let r=M(()=>Gb(z(n)));var i=H();mo(I(i),17,()=>Ky(z(n),z(t)),e=>e.name,(e,t)=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).name}`,collectionLabel:z(r),entryLabel:Gy(z(t))}));g2(e,()=>z(i))}},e=>{{let i=M(()=>({link:`/collections/${z(n).name}/entries/${z(t).subPath}`,collectionLabel:z(r),entryLabel:CO(z(n),z(t),{useTemplate:!0})}));g2(e,()=>z(i))}}),U(e,i)}),U(e,r)}),U(e,n)},e=>{var t=E2(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`sort_keys.none`)]),U(e,t)}),U(e,t)};G(Ee,e=>{z(h)?e(Oe,-1):e(De)}),D(Ce);var ke=L(Ce,2),Ae=e=>{var t=D2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R(e=>{W(r,e),W(a,z(s).name||z(s).login||z(s).email)},[()=>X(`sort_keys.commit_author`)]),U(e,t)};G(ke,e=>{z(s)&&e(Ae)});var je=L(ke,2),Me=e=>{var t=O2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{W(r,e),W(a,t)},[()=>X(`sort_keys.commit_date`),()=>rC(z(c),Oh.current)]),U(e,t)};G(je,e=>{z(c)&&e(Me)});var Ne=L(je,2),Pe=e=>{var t=k2(),n=F(t),r=F(n,!0);D(n);var i=L(n,2),a=F(i,!0);D(i),D(t),R((e,t)=>{W(r,e),W(a,t)},[()=>X(`created_date`),()=>rC(z(p),Oh.current)]),U(e,t)};G(Ne,e=>{z(p)&&e(Pe)});var Fe=L(Ne,2),Ie=e=>{var t=A2(),n=F(t),r=F(n,!0);D(n),u2(L(n,2),{get coordinates(){return z(m)}}),D(t),R(e=>W(r,e),[()=>X(`location`)]),U(e,t)};G(Fe,e=>{z(m)&&e(Ie)}),D(b),R((e,t,n,r,i)=>{W(ee,e),W(ne,t),W(fe,n),W(ve,r),W(Te,i)},[()=>X(`kind`),()=>X(`file_type_labels.${z(_)}`,{default:yS.getType(z(i))??z(_).toUpperCase()}),()=>X(`public_url`),()=>X(`file_path`),()=>X(`used_in`)]),U(e,b),k()}var g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2=s((()=>{Q(),Y(),Z(),B$(),Np(),bS(),l2(),p2(),S1(),E0(),AS(),qb(),Yy(),JO(),wO(),iC(),ew(),Eue(),g2=(e,t)=>{let n=()=>t?.().link,r=()=>t?.().collectionLabel,i=()=>t?.().entryLabel;var a=v2();tI(F(a),{role:`link`,variant:`link`,onclick:()=>y1(n(),{transitionType:`forwards`}),children:(e,t)=>{var n=_2(),a=F(n);D(n),R(()=>W(a,`${r()??``} › ${i()??``}`)),U(e,n)},$$slots:{default:!0}}),D(a),U(e,a)},_2=V(`<span role="none"> </span>`),v2=V(`<p><!></p>`),y2=V(`<div role="none" class="preview svelte-6mkk55"><!></div>`),b2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section>`),x2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),S2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),C2=V(`<a target="_blank" rel="noopener noreferrer"> </a>`),w2=V(`<a> </a>`),T2=V(`<p> </p>`),E2=V(`<p> </p>`),D2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),O2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),k2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section>`),A2=V(`<section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <!></section>`),j2=V(`<div role="none" class="detail svelte-6mkk55"><!> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p> </p></section> <!> <!> <!> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <p><!></p></section> <section class="svelte-6mkk55"><h4 class="svelte-6mkk55"> </h4> <!></section> <!> <!> <!> <!></div>`),M2={hash:`svelte-6mkk55`,code:`.detail.svelte-6mkk55 {flex:none;overflow-x:hidden;overflow-y:auto;padding:16px;width:320px;.preview:where(.svelte-6mkk55) {overflow:hidden;margin:0 0 16px;border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-content-background-color);aspect-ratio:1 / 1;}section:where(.svelte-6mkk55) {&:not(:last-child) {margin:0 0 16px;}& > * {margin:0 0 4px;word-break:break-all;}}h4:where(.svelte-6mkk55) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}}`}}));function Due(e,t){O(t,!0),K(e,V2);let n=()=>j(fF,`$overlaidAsset`,i),r=()=>j(t1,`$showAssetOverlay`,i),[i,a]=hn(),o=N(void 0),s=N(void 0),c=M(()=>n()?.kind),l=M(()=>n()?.blobURL),u=M(()=>n()?.name),d=async()=>{await Bi(),z(o)&&(z(o).tabIndex=0,z(o).focus())};ti(()=>{n()&&(async()=>{P(s,await dT(n()),!0)})()}),ti(()=>{z(o)&&r()&&d()});var f=B2();oo(F(f),()=>n()?.sha,e=>{var t=z2(),r=I(t);wue(r,{});var i=L(r,2),a=F(i),o=F(a),d=e=>{{let t=M(()=>[`image`,`video`].includes(z(c))),r=M(()=>z(c)===`image`),i=M(()=>z(c)===`image`?z(u):void 0),a=M(()=>[`audio`,`video`].includes(z(c)));n2(e,{get kind(){return z(c)},get asset(){return n()},get blurBackground(){return z(t)},get checkerboard(){return z(r)},get alt(){return z(i)},get controls(){return z(a)}})}},f=M(()=>z(c)&&TS(z(c))),p=e=>{var t=P2();R(()=>{q(t,`src`,z(l)),q(t,`title`,z(u))}),U(e,t)},m=e=>{var t=H();eo(I(t),()=>n()?.text??z(s).text(),null,(e,t)=>{var n=H(),r=I(n),i=e=>{var n=H();eo(I(n),()=>cO(z(t),{breaks:!0,async:!0}),null,(e,t)=>{var n=F2();So(n,()=>OE(z(t)),!0),D(n),U(e,n)},e=>{var n=I2(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)}),U(e,n)},a=M(()=>z(u)?.endsWith(`.md`)),o=e=>{var n=L2(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)};G(r,e=>{z(a)?e(i):e(o,-1)}),U(e,n)}),U(e,t)},h=M(()=>z(s)?.type&&Ep(z(s).type)),g=e=>{P$(e,{children:(e,t)=>{var n=R2(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`preview_unavailable`)]),U(e,n)},$$slots:{default:!0}})};G(o,e=>{z(f)?e(d):z(s)?.type===`application/pdf`?e(p,1):z(h)?e(m,2):e(g,-1)}),D(a);var _=L(a,2),v=e=>{h2(e,{get asset(){return n()}})};G(_,e=>{n()&&e(v)}),D(i),U(e,t)}),D(f),Us(f,e=>P(o,e),()=>z(o)),R(e=>q(f,`aria-label`,e),[()=>X(`asset_editor`)]),U(e,f),k(),a()}var P2,F2,I2,L2,R2,z2,B2,V2,Oue=s((()=>{Q(),Y(),Z(),B$(),Np(),kE(),lO(),oc(),Tue(),l2(),N2(),SF(),vT(),AS(),l1(),P2=V(`<iframe class="svelte-9guikv"></iframe>`),F2=V(`<div role="figure" class="markdown svelte-9guikv"></div>`),I2=V(`<pre role="figure" class="svelte-9guikv"> </pre>`),L2=V(`<pre role="figure" class="svelte-9guikv"> </pre>`),R2=V(`<span role="alert"> </span>`),z2=V(`<!> <div role="none" class="row svelte-9guikv"><div role="none" class="preview svelte-9guikv"><!></div> <!></div>`,1),B2=V(`<div role="group" class="wrapper svelte-9guikv"><!></div>`),V2={hash:`svelte-9guikv`,code:`.wrapper.svelte-9guikv {position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background-color:var(--sui-secondary-background-color);.row:where(.svelte-9guikv) {flex:auto;display:flex;overflow:hidden;
853
+
854
+ @media (width < 768px) {flex-direction:column;.preview:where(.svelte-9guikv) {flex:none !important;aspect-ratio:1 / 1;}.detail {flex:auto;width:auto;}
855
+ }.preview:where(.svelte-9guikv) {flex:auto;overflow:hidden;iframe:where(.svelte-9guikv),
856
+ pre:where(.svelte-9guikv),
857
+ .markdown:where(.svelte-9guikv) {display:block;width:100%;height:100%;}pre:where(.svelte-9guikv),
858
+ .markdown:where(.svelte-9guikv) {margin:0;padding:16px;overflow:auto;}pre:where(.svelte-9guikv) {white-space:pre-wrap;}}.detail {background-color:var(--sui-primary-background-color);}}}`}})),H2,U2,W2=s((()=>{rp(),kP(),$P(),H2=dn([JP,DP],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return typeof n==`boolean`||typeof r==`boolean`}),U2=dn([JP,DP],([e,t])=>{if(!e||!t?.isGit)return!1;let{skip_ci:n,automatic_deployments:r}=e.backend;return n===!0||r===!1})})),G2,K2,q2,J2=s((()=>{rp(),SF(),F0(),AS(),W2(),B0(),N0(),rF(),ew(),G2=e=>{let{files:t,folder:n,originalAssets:r}=e,{slugify_filename:i=!1}=nF().config,a=n?.internalPath===void 0?[]:bF(n.internalPath).map(e=>e.name.normalize());return t.map(e=>{let t=r?.find(t=>t.name.normalize().toLowerCase()===e.name.normalize().toLowerCase()),o=t?.name??YC(e.name,{slugificationEnabled:i,assetNamesInSameFolder:a});return a.includes(o)||a.push(o),{action:t?`update`:`create`,name:o,path:t?.path??[n?.internalPath,o].join(`/`),file:e}})},K2=({count:e})=>{let t=A(dF),n=A(fF);t&&dF.set(lF(t.path)),n&&fF.set(lF(n.path)),P0.set({...j0,saved:!0,published:A(H2)&&!A(U2),count:e})},q2=async(e,t)=>{let{files:n,folder:r}=e,i=G2(e),a=i.map(({name:e,path:t,file:n})=>({name:e,path:t,size:n.size,kind:kS(e),folder:r}));await z0({changes:i.map(({action:e,path:t,file:n})=>({action:e,path:t,data:n})),savingAssets:a,options:t}),K2({count:n.length})}}));function kue(e,t){O(t,!0),K(e,X2);let n=()=>j(mF,`$editingAsset`,i),r=()=>j(t1,`$showAssetOverlay`,i),[i,a]=hn(),o=M(n),s=N(!1),c=N(void 0),l=N(void 0),u=N(void 0),d=N(!1),f=async()=>{P(c,await dT(z(o)),!0),P(l,await z(c).text(),!0),P(u,z(l),!0),P(s,!0)},p=()=>{mn(mF,void 0),P(c,void 0),P(l,void 0),P(u,void 0)},m=async()=>{z(o)&&z(c)&&typeof z(u)==`string`&&await q2({folder:z(o).folder,files:[new File([z(u)],z(o).name,{type:z(c).type})],originalAssets:[z(o)]},{commitType:`uploadMedia`})};ti(()=>{z(o)&&z(c)===void 0&&f()}),ti(()=>{r()||P(s,!1)});{let t=e=>{{let t=M(()=>X(`wrap_long_lines`));HR(e,{get label(){return z(t)},get checked(){return z(d)},set checked(e){P(d,e,!0)}})}},n=M(()=>X(`edit_x`,{values:{name:z(o)?.name??``}})),r=M(()=>X(`save`)),i=M(()=>z(u)===z(l));$I(e,{size:`x-large`,get title(){return z(n)},get okLabel(){return z(r)},get okDisabled(){return z(i)},okShortcuts:`Accel+S`,onOk:()=>{m()},onClose:()=>{p()},get open(){return z(s)},set open(e){P(s,e,!0)},footerExtra:t,children:(e,t)=>{var n=Y2();let r;l$(F(n),{dir:`auto`,flex:!0,get value(){return z(u)},set value(e){P(u,e,!0)}}),D(n),R(()=>r=ss(n,1,`wrapper svelte-1lnkfih`,null,r,{wrap:z(d)})),U(e,n)},$$slots:{footerExtra:!0,default:!0}})}k(),a()}var Y2,X2,Aue=s((()=>{Q(),Y(),Z(),B$(),SF(),J2(),vT(),l1(),Y2=V(`<div role="none"><!></div>`),X2={hash:`svelte-1lnkfih`,code:`.wrapper.svelte-1lnkfih {display:contents;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;}&.wrap textarea {text-wrap:wrap;}}`}})),Z2,Q2,$2=s((()=>{Sp(),RO(),nb(),ub(),ew(),Z2=({basePath:e,path:t,extension:n,locale:r,omitLocale:i,structure:a})=>{switch(a){case`multiple_folders`:return i?`${e}/${t}.${n}`:`${e}/${r}/${t}.${n}`;case`multiple_folders_i18n_root`:case`multiple_root_folders`:return i?`${e}/${t}.${n}`:`${r}/${e}/${t}.${n}`;case`multiple_files`:return i?`${e}/${t}.${n}`:`${e}/${t}.${r}.${n}`;default:return`${e}/${t}.${n}`}},Q2=({draft:e,locale:t,slug:n})=>{let{collection:r,collectionFile:i,originalEntry:a,currentValues:o,isIndexFile:s}=e,{_i18n:{defaultLocale:c,structure:l,omitDefaultLocaleFromFilePath:u}}=i??r;if(i){let{_i18n:e,file:n}=i;return lb({_i18n:e,locale:t,path:vp(n)})}if(a?.locales[t]?.slug===n)return a.locales[t].path;let d=r,{_file:{basePath:f,subPath:p,extension:m}}=d,h=s?eb(d)?.name:p?LO(p,{collection:d,locale:t,content:o[c],currentSlug:n}):n;return s&&h?.endsWith(`.${m}`)&&(h=h.slice(0,-m.length-1)),XC(Z2({basePath:f,path:h,extension:m,locale:t,omitLocale:u&&t===c,structure:l}).split(`/`))}})),e4,t4,n4,r4,i4,a4,o4=s((()=>{RO(),nb(),e4=(e,t)=>{let n={...e};return Object.entries(n).forEach(([e,r])=>{typeof r==`string`&&r.startsWith(`blob:`)&&t[r]&&(n[e]=t[r].file.name.replace(/\.[^.]+$/,``))}),n},t4=({draft:e})=>{let{collection:t,collectionFile:n,currentSlugs:r,currentValues:i,files:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=n??t;return{collection:t,content:{...e4(i[s],a),_slug:r?.[s]??r?._},locale:s,isIndexFile:o}},n4=({draft:e,locale:t,localizingKeyPaths:n})=>{let{isNew:r,collection:i,collectionFile:a,originalLocales:o,currentSlugs:s,currentValues:c,files:l,isIndexFile:u}=e,{_type:d}=i,{identifier_field:f=`title`,slug:p=`{{${f}}}`}=d===`entry`?i:{},{_i18n:{defaultLocale:m}}=a??i,h=s?.[t]??s?._;return r||!o[t]?LO(p,{collection:i,locale:t,content:{...e4(c[m],l),...e4(Object.fromEntries(n.map(e=>[e,c[t]?.[e]])),l),_slug:h},isIndexFile:u}):h},r4=({draft:e,defaultLocaleSlug:t})=>{let{collection:n,collectionFile:r,currentLocales:i}=e,{_type:a}=n,{identifier_field:o=`title`,slug:s=`{{${o}}}`}=a===`entry`?n:{},{_i18n:{defaultLocale:c,structureMap:{i18nSingleFile:l,i18nSingleFileDefaultRoot:u}}}=r??n,d=[...s.matchAll(/{{((?:fields\.)?.+?)( \| localize)?}}/g)].filter(([,,e])=>!!e).map(([,e])=>e.replace(/^fields\./,``));if(!(l||u||!d.length))return Object.fromEntries(Object.entries(i).map(([n])=>[n,n===c?t:n4({draft:e,locale:n,localizingKeyPaths:d})]))},i4=({draft:e,defaultLocaleSlug:t,localizedSlugs:n,fillSlugOptions:r})=>{if(!n)return;let{collection:i,collectionFile:a}=e,{_i18n:{canonicalSlug:{value:o}}}=a??i;return o===`{{slug}}`?t:LO(o,{...r,currentSlug:t})},a4=({draft:e})=>{let{isNew:t,collection:n,collectionFile:r,fileName:i,currentSlugs:a,isIndexFile:o}=e,{_type:s}=n,{identifier_field:c=`title`,slug:l=`{{${c}}}`}=s===`entry`?n:{};if(o)return{defaultLocaleSlug:eb(n)?.name,localizedSlugs:void 0,canonicalSlug:void 0};let{_i18n:{defaultLocale:u}}=r??n,d=t4({draft:e}),f=i??(t?LO(l,d):a?.[u]??a?._),p=r4({draft:e,defaultLocaleSlug:f});return{defaultLocaleSlug:f,localizedSlugs:p,canonicalSlug:i4({draft:e,defaultLocaleSlug:f,localizedSlugs:p,fillSlugOptions:d})}}})),s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,jue=s((()=>{s4=u(YM(),1),SF(),AS(),RO(),$2(),o4(),ew(),c4=[`multiple_folders`,`multiple_folders_i18n_root`,`multiple_root_folders`],l4=/(?<path>.+?)(?:\/[^/]+)?$/,u4=(e,t)=>e.includes(`{{`)?LO(e,t):e,d4=(e,t)=>{let n=e.lastIndexOf(`.`),r=e.substring(0,n),i=t?.includes(`/`)?t.split(`/`).at(-1):void 0;return i&&!i.includes(`{{`)&&(r=r.match(l4)?.groups?.path),r},f4=({internalPath:e,internalSubPath:t,entryFolderPath:n,isMultiFolders:r,isNestedEntry:i,fillSlugOptions:a})=>ZC(u4(XC([r||i?n:e,t]),a)),p4=({publicPath:e,subPathFolderPath:t,subPath:n,isMultiFolders:r,fillSlugOptions:i})=>!r&&/^\.?$/.test(e)?e:ZC(u4(r?XC([...Array((n?.match(/\//g)??[]).length+1).fill(`..`),e,t]):e,i)),m4=({folder:e,fillSlugOptions:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i,publicPath:a}=e;if(r===void 0||a===void 0)return{resolvedInternalPath:``,resolvedPublicPath:``};if(!n)return{resolvedInternalPath:LO(r,t),resolvedPublicPath:LO(a,t)};let{collection:o,entryFilePath:s}=t,c=c4.includes(o._i18n.structure),l=o._type===`entry`?o._file.subPath:void 0,u=l?.match(l4)?.groups?.path??``;return{resolvedInternalPath:f4({internalPath:r,internalSubPath:i,entryFolderPath:d4(s??``,l),isMultiFolders:c,isNestedEntry:l?.includes(`/`)??!1,fillSlugOptions:t}),resolvedPublicPath:p4({publicPath:a,subPathFolderPath:u,subPath:l,isMultiFolders:c,fillSlugOptions:t})}},h4=({draft:e,defaultLocaleSlug:t,folder:n})=>{let{collection:r,collectionName:i,collectionFile:a,isIndexFile:o}=e,{_i18n:{defaultLocale:s}}=a??r,c=m4({folder:n,fillSlugOptions:{...t4({draft:e}),type:`media_folder`,currentSlug:t,entryFilePath:Q2({draft:e,locale:s,slug:t}),isIndexFile:o}}),{resolvedInternalPath:l}=c;return{assetFolderPaths:c,assetNamesInSameFolder:bF(l).map(e=>e.name.normalize()),savingAssetProps:{collectionName:i,folder:n}}},g4=async({file:e,folder:t,replace:n,blobURL:r,draft:i,defaultLocaleSlug:a,keyPath:o,content:s,changes:c,savingAssets:l,encodingEnabled:u})=>{let d=await $C(e),f=l.find(e=>e.sha===d&&(!t.entryRelative||(0,s4.default)(e.folder,t))),{savingAssetProps:p,assetNamesInSameFolder:m,assetFolderPaths:{resolvedInternalPath:h,resolvedPublicPath:g}}=h4({draft:i,defaultLocaleSlug:a,folder:t}),_=``;if(f)_=f.name;else{_=YC(e.name,n?{}:{assetNamesInSameFolder:m});let t=n&&m.includes(_),i=h?`${h}/${_}`:_;t||m.push(_),c.push({action:t?`update`:`create`,path:i,data:e}),l.push({...p,blobURL:r,name:_,path:i,sha:d,size:e.size,kind:kS(_)})}let v=g?`${g===`/`?``:g}/${_}`:_;u&&(v=WC(v)),s[o]=s[o].replaceAll(r,v)}})),_4,v4,y4,b4,x4,S4=s((()=>{Lx(),rp(),My(),$P(),yb(),_4=(e,t=A(JP)?.output?.json??{})=>{let{indent_style:n=`space`,indent_size:r=n===`tab`?1:2}=t;return JSON.stringify(e,null,n===`tab`?` `.repeat(r):r).trim()},v4=e=>Dne(e).trim(),y4=(e,t=A(JP)?.output?.yaml??{},n={})=>{let{indent_size:r=2,indent_sequences:i=!0,quote:a=`none`}=t,{quote:o=!1}=n;return Ay(e,null,{indent:r,indentSeq:i,lineWidth:0,defaultKeyType:`PLAIN`,defaultStringType:o||a===`double`?`QUOTE_DOUBLE`:a===`single`?`QUOTE_SINGLE`:`PLAIN`,singleQuote:!(o||a===`double`)}).trim()},b4=({content:e,_file:t})=>{let{format:n,fmDelimiters:r,yamlQuote:i=!1}=t,[a,o]=r??[`---`,`---`],s=typeof e.body==`string`?e.body:``;if(delete e.body,!Object.keys(e).length)return`${s}\n`;try{let t=``;if(n===`frontmatter`||n===`yaml-frontmatter`)t=y4(e,void 0,{quote:i});else if(n===`toml-frontmatter`)t=v4(e);else if(n===`json-frontmatter`)t=_4(e);else return``;return`${a}\n${t}\n${o}\n${s?`\n${s}\n`:``}`}catch(e){console.error(e)}return``},x4=async({content:e,_file:t})=>{let{format:n,yamlQuote:r=!1}=t,i=fb.get(n)?.formatter;if(i)return`${(await i(e)).trim()}\n`;if(n===`raw`)return typeof e.body==`string`?`${e.body}\n`:``;try{if(/^ya?ml$/.test(n))return`${y4(e,void 0,{quote:r})}\n`;if(n===`toml`)return`${v4(e)}\n`;if(n===`json`)return`${_4(e)}\n`}catch(e){return console.error(e),``}return/^(?:(?:yaml|toml|json)-)?frontmatter$/.test(n)?b4({content:e,_file:t}):``}})),C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4=s((()=>{p(),cS(),rp(),kP(),B0(),N0(),ak(),nb(),i3(),Q4(),S4(),C4=`order`,w4=e=>{let t=e?.reorder;if(t)return d(t)&&typeof t.key==`string`&&t.key?t.key:C4},T4=(e,t)=>{let n=w4(t);if(!n)return[...e];let{defaultLocale:r}=t._i18n,i=e.map(e=>{let t=Number(e.locales[r]?.content?.[n]);return{entry:e,v:t,has:Number.isFinite(t)}});return i.sort((e,t)=>e.has&&t.has?e.v-t.v:e.has?-1:+!!t.has),i.map(({entry:e})=>e)},E4=e=>({collection:e,collectionName:e.name,collectionFile:void 0,fields:e.fields,isIndexFile:!1}),D4=({collection:e,entry:t,draft:n})=>{let{_i18n:{i18nEnabled:r,defaultLocale:i,structureMap:{i18nSingleFileDefaultRoot:a}={}}}=e;if(!r)return Z4({draft:n,locale:`_default`,valueMap:t.locales[i].content});let o=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([e,t])=>[e,Z4({draft:n,locale:e,valueMap:t.content})]));if(a){let{lang:e,...t}=o[i]??{},n=Object.fromEntries(Object.entries(o).filter(([e])=>e!==i));return{lang:[i,...Object.keys(n)],...t,...n}}return o},O4=(e,t,n)=>{let r=Object.fromEntries(Object.entries(e.locales).map(([e,r])=>[e,r.content?{...r,content:{...r.content,[t]:n}}:{...r}]));return{...e,locales:r}},k4=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{defaultLocale:a}}=e,{slug:o,path:s}=t.locales[a],[c,l]=await Promise.all([e3({cacheDB:r,previousPath:s}),x4({content:D4({collection:e,entry:t,draft:n}),_file:i})]);return{action:`update`,slug:o,path:s,previousSha:c,data:l}},A4=async({collection:e,entry:t,draft:n,cacheDB:r})=>{let{_file:i,_i18n:{allLocales:a}}=e;return(await Promise.all(a.map(async e=>{let a=t.locales[e];if(!a?.content)return;let[o,s]=await Promise.all([e3({cacheDB:r,previousPath:a.path}),x4({content:Z4({draft:n,locale:e,valueMap:a.content}),_file:i})]);return{action:`update`,slug:a.slug,path:a.path,previousSha:o,data:s}}))).filter(Boolean)},j4=e=>{if(e)return e;let t=A(DP)?.repository?.databaseName;return t?new aS(t,`file-cache`):void 0},M4=async(e,t,{cacheDB:n}={})=>{let r=w4(e);if(!r)return{changes:[],savingEntries:[]};let{_i18n:{i18nEnabled:i,defaultLocale:a,structureMap:{i18nSingleFile:o,i18nSingleFileDefaultRoot:s}={}}}=e,c=!i||o||s,l=j4(n),u=[];for(let[e,n]of t.entries()){let t=e+1;Number(n.locales[a]?.content?.[r])!==t&&u.push(O4(n,r,t))}let d=E4(e);return{changes:(await Promise.all(u.map(t=>c?k4({collection:e,entry:t,draft:d,cacheDB:l}).then(e=>[e]):A4({collection:e,entry:t,draft:d,cacheDB:l})))).flat(),savingEntries:u}},N4=async(e,t,{silent:n=!1}={})=>{let{changes:r,savingEntries:i}=await M4(e,t);return r.length?(await z0({changes:r,savingEntries:i,options:{commitType:`update`,collection:e}}),n||M0.set({...j0,saved:!0,count:i.length}),i.length):0},P4=(e,{excludeIds:t}={})=>{let n=eb(e)?.name;return T4(tk(e.name).filter(e=>e.slug!==n&&!(t&&t.has(e.id))),e)},F4=async(e,{excludeIds:t,cacheDB:n}={})=>!e||e._type!==`entry`||!w4(e)?{changes:[],savingEntries:[]}:M4(e,P4(e,{excludeIds:t}),{cacheDB:n})})),L4,R4,z4,B4,V4,H4,U4,W4=s((()=>{L4=u(YM(),1),rp(),eN(),R4=/\.__sc_\w+$/,z4=un(),B4=un(!0),V4=un(!1),H4=e=>Object.fromEntries(Object.entries(e).filter(([e])=>!R4.test(e))),U4=dn([z4],([e])=>{if(!e)return!1;let{originalLocales:t,currentLocales:n,originalSlugs:r,currentSlugs:i,originalValues:a,currentValues:o}=e,s=Object.fromEntries(Object.entries(o).map(([e,t])=>[e,H4(t)]));return!(0,L4.default)(t,n)||!(0,L4.default)(r,i)||!(0,L4.default)(a,s)}),z4.subscribe(e=>{A($M).devModeEnabled&&console.info(`entryDraft`,e)})})),G4,K4,Mue=s((()=>{_A(),CC(),G4=({field:e,keyPath:t,keyPathList:n})=>{let{widget:r}=e,i=r===`list`;if(n.push(t),i||r===`object`){let{fields:r}=e,{types:a,typeKey:o=`type`}=e;if(r)r.forEach(e=>{G4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})});else if(a)n.push(i?`${t}.*.${o}`:`${t}.${o}`),a.forEach(e=>{e.fields?.forEach(e=>{G4({field:e,keyPath:i?`${t}.*.${e.name}`:`${t}.${e.name}`,keyPathList:n})})});else if(i){let{field:r}=e;r?G4({field:r,keyPath:`${t}.*`,keyPathList:n}):n.push(`${t}.*`)}}else r&&SC.includes(r)&&sA(e)&&n.push(`${t}.*`)},K4=e=>{let t=[];return e.forEach(e=>{G4({field:e,keyPath:e.name,keyPathList:t})}),t}})),q4,J4,Y4,X4,Z4,Q4=s((()=>{p(),Sp(),dc(),Lx(),rp(),$P(),I4(),W4(),Mue(),_A(),mC(),zx(),q4=new Map,J4=e=>e==null||e===``||Array.isArray(e)&&!e.length||d(e)&&!Object.keys(e).length,Y4=({key:e,field:t,locale:n,unsortedMap:r,sortedMap:i,isTomlOutput:a,omitEmptyOptionalFields:o})=>{if(R4.test(e)){delete r[e];return}let s=r[e];if(a&&t?.widget===`datetime`&&!oC(t).format){let e=new _x(s);s=e.isValid()?e:void 0}if(o&&t&&!dA({fieldConfig:t,locale:n})&&J4(s)){let t=Object.keys(r).filter(t=>t.startsWith(`${e}.`));t.some(e=>!R4.test(e)&&!J4(r[e]))?i[e]=s:t.forEach(e=>{delete r[e]})}else i[e]=s;delete r[e]},X4=({collectionName:e,fileName:t,fields:n,locale:r,valueMap:i,canonicalSlugKey:a,orderKey:o,isIndexFile:s=!1,isTomlOutput:c=!1})=>{let l=f(i),u={},{omit_empty_optional_fields:d=!1}=A(JP)?.output??{},p={collectionName:e,fileName:t,valueMap:i,isIndexFile:s},m={locale:r,unsortedMap:l,sortedMap:u,isTomlOutput:c,omitEmptyOptionalFields:d};return a&&a in l&&Y4({...m,key:a}),o&&o in l&&Y4({...m,key:o}),K4(n).forEach(e=>{let t=uA({...p,keyPath:e});if(e in l)Y4({...m,key:e,field:t});else if(t?.widget===`keyvalue`)u[e]={},Object.entries(l).filter(([t])=>t.startsWith(`${e}.`)).forEach(([e])=>{Y4({...m,key:e,field:t})});else{let n=Rx(q4,e,()=>RegExp(`^${gp(e.replaceAll(`*`,`\\d+`)).replaceAll(`\\\\d\\+`,`\\d+`)}$`));Object.keys(l).filter(e=>n.test(e)).sort(([e,t])=>xp(e,t)).forEach(e=>{let n=t??uA({...p,keyPath:e});Y4({...m,key:e,field:n})})}}),Object.keys(l).sort(([e,t])=>xp(e,t)).forEach(e=>{Y4({...m,key:e})}),uc(u)},Z4=({draft:e,locale:t,valueMap:n})=>{let{collection:r,collectionName:i,collectionFile:a,fields:o,isIndexFile:s}=e,{_file:c,_i18n:{canonicalSlug:{key:l}}}=a??r,u=[`toml`,`toml-frontmatter`].includes(c.format),d=X4({collectionName:i,fileName:a?.name,fields:o,locale:t,valueMap:n,canonicalSlugKey:l,orderKey:w4(r),isIndexFile:s,isTomlOutput:u});return!u&&oA(o,`list`)?d[o[0].name]??[]:oA(o,`keyvalue`)?d[o[0].name]??{}:d}})),$4,e3,t3,n3,r3,i3=s((()=>{Np(),p(),cS(),rp(),Hp(),kP(),$P(),kF(),jue(),$2(),Q4(),_A(),S4(),$4=async({draft:e,slugs:{defaultLocaleSlug:t,canonicalSlug:n,localizedSlugs:r}})=>{let i=A(Fp),{collection:a,collectionName:o,collectionFile:s,fileName:c,isIndexFile:l,currentLocales:u,currentValues:d,files:p}=e,{_i18n:{canonicalSlug:{key:m}}}=s??a,h=[],g=[],{encode_file_path:_=!1}=A(JP)?.output??{},v={collectionName:o,fileName:c,keyPath:``,valueMap:{},isIndexFile:l},y={draft:e,defaultLocaleSlug:t,changes:h,savingAssets:g};return{localizedEntryMap:Object.fromEntries(await Promise.all(Object.entries(d).map(async([a,o])=>{let s=r?.[a]??t,c=Q2({draft:e,locale:a,slug:s});return u[a]?(n!==void 0&&(o[m]=n),await Promise.all(Object.entries(o).map(async([e,t])=>{if(t===void 0){delete o[e];return}if(typeof t!=`string`)return;o[e]=t.trim();let n=[...t.matchAll(Cp(`g`))];if(!n.length)return;let r=uA({...v,valueMap:o,keyPath:e}),a={...y,keyPath:e,content:o,encodingEnabled:r?.widget===`richtext`||r?.widget===`markdown`?!0:_};await Promise.all(n.map(async([e])=>{let{file:t,folder:n=i,replace:r}=p[e]??{};t&&await g4({...a,file:t,folder:n,replace:r,blobURL:e})}))})),[a,{slug:s,path:c,content:f(o)}]):[a,{path:c}]}))),changes:h,savingAssets:g}},e3=async({previousPath:e,cacheDB:t})=>{if(e)return(await t?.get(e))?.sha},t3=async({draft:e,savingEntry:t,cacheDB:n})=>{let{collection:r,isNew:i,originalSlugs:a,originalEntry:o,collectionFile:s}=e,{_file:c,_i18n:{i18nEnabled:l,defaultLocale:u,structureMap:{i18nSingleFileDefaultRoot:d}={}}}=s??r,{slug:f,path:p,content:m}=t.locales[u],h=!i&&(a?.[u]??a?._)!==f,g=o?.locales[u]?.path;return{action:i?`create`:h?`move`:`update`,slug:f,path:p,previousPath:h?g:void 0,previousSha:await e3({cacheDB:n,previousPath:g}),data:await x4({content:(()=>{if(!l)return Z4({draft:e,locale:`_default`,valueMap:m});let n=Object.fromEntries(Object.entries(t.locales).filter(([,e])=>!!e.content).map(([t,n])=>[t,Z4({draft:e,locale:t,valueMap:n.content})]));if(d){let{lang:e,...t}=n[u]??{},r=Object.fromEntries(Object.entries(n).filter(([e])=>e!==u));return{lang:[u,...Object.keys(r)],...t,...r}}return n})(),_file:c})}},n3=async({draft:e,savingEntry:t,cacheDB:n,locale:r})=>{let{collection:i,isNew:a,originalLocales:o,currentLocales:s,originalSlugs:c,originalEntry:l,collectionFile:u}=e,{_file:d}=u??i,{slug:f,path:p,content:m}=t.locales[r]??{},h=l?.locales[r]?.path,g=await e3({cacheDB:n,previousPath:h});if(s[r]){let t=!a&&o[r]&&(c?.[r]??c?._)!==f;return{action:a||!o[r]?`create`:t?`move`:`update`,slug:f,path:p,previousPath:t?h:void 0,previousSha:g,data:await x4({content:Z4({draft:e,locale:r,valueMap:m}),_file:d})}}if(!a&&o[r])return{action:`delete`,slug:f,path:p,previousSha:g}},r3=async({draft:e,slugs:t})=>{let{id:n,collection:r,collectionFile:i}=e,{defaultLocaleSlug:a}=t,{_file:o,_i18n:{i18nEnabled:s,allLocales:c,defaultLocale:l,structureMap:{i18nSingleFile:u,i18nSingleFileDefaultRoot:d}}}=i??r,{localizedEntryMap:f,changes:p,savingAssets:m}=await $4({draft:e,slugs:t}),h={id:n,slug:a,subPath:o.fullPathRegEx?f[l].path.match(o.fullPathRegEx)?.groups?.subPath??a:a,locales:Object.fromEntries(Object.entries(f))};await OF({type:`preSave`,draft:e,savingEntry:h});let g=A(DP)?.repository?.databaseName,_={draft:e,savingEntry:h,cacheDB:g?new aS(g,`file-cache`):void 0};return!s||u||d?p.push(await t3({..._})):await Promise.all(c.map(async e=>{let t=await n3({..._,locale:e});t&&p.push(t)})),{savingEntry:h,savingAssets:m,changes:p}}})),a3,o3,s3,c3,l3,u3,Nue=s((()=>{Np(),rp(),SF(),F0(),Hp(),vT(),B0(),N0(),ak(),nb(),Yy(),i3(),o4(),JO(),a3=({entry:e})=>{let{locales:t}=e,n=Object.entries(t),r=Object.fromEntries(n.map(([e])=>[e,!0])),i=Object.fromEntries(n.map(([e,{slug:t}])=>[e,t])),a=Object.fromEntries(n.map(([e,{content:t}])=>[e,t]));return{createdAt:Date.now(),isNew:!1,canPreview:!0,originalEntry:e,originalLocales:r,currentLocales:structuredClone(r),originalSlugs:i,currentSlugs:structuredClone(i),originalValues:a,currentValues:structuredClone(a),files:{},validities:{},validationMessages:{},expanderStates:{}}},o3=async({draftProps:e,indexFile:t,savingEntries:n,changes:r})=>{let{collection:i,collectionFile:a}=e,{fields:o=[]}=a??i,s={...e,fields:t?.fields??o},{savingEntry:c,changes:l}=await r3({draft:s,slugs:a4({draft:s})});n.push(c),r.push(...l)},s3=async({entry:e,savingEntries:t,changes:n})=>{let r=a3({entry:e});await Promise.all(WO(e).map(async i=>{let a=i.name,o=tb(i,e),s=o?eb(i):void 0,c=Ky(i,e),l={indexFile:s,savingEntries:t,changes:n},u={...r,collection:i,collectionName:a,isIndexFile:o};c.length?await Promise.all(c.map(e=>o3({...l,draftProps:{...u,collectionFile:e,fileName:e.name}}))):await o3({...l,draftProps:u})}))},c3=async({_globalAssetFolder:e,newPath:t,asset:n,savingEntries:r,changes:i})=>{let a=hT(n)??n.blobURL,o=a?await rk(a):[];if(!a||!o.length)return;let{publicPath:s}=Bp(n.path).find(({collectionName:e})=>e!==void 0)??e,c=await rk(a,{entries:structuredClone(o),newURL:t.replace(n.folder.internalPath??``,s??``)});c.length&&await Promise.all(c.map(async e=>s3({entry:e,savingEntries:r,changes:i})))},l3=({action:e,movedAssets:t})=>{let n=A(dF)?.path,r=t.find(e=>e.asset.path===n),i=A(fF)?.path,a=t.find(e=>e.asset.path===i);r&&dF.set(lF(r.path)),a&&fF.set(lF(a.path)),P0.set({...j0,moved:e===`move`,renamed:e===`rename`,count:t.length})},u3=async(e,t)=>{let n=A(Fp),r=[],i=[],a=[];await Promise.all(t.map(async({asset:e,path:t})=>{let o=t,s=Dp(o).basename;a.push({...e,path:o,name:s}),r.push({action:`move`,path:o,previousPath:e.path,previousSha:e.sha,data:new File([e.file??await dT(e)],s)}),await c3({_globalAssetFolder:n,newPath:o,asset:e,savingEntries:i,changes:r})})),await z0({changes:r,savingEntries:i,savingAssets:a,options:{commitType:`uploadMedia`}}),l3({action:e,movedAssets:t})}}));function Pue(e,t){let n=Ia();O(t,!0),K(e,p3);let r=()=>j(hF,`$renamingAsset`,a),i=()=>j(t1,`$showAssetOverlay`,a),[a,o]=hn(),s=N(!1),c=N(Cr({filename:``})),l=N(``),u=N(Cr([])),d=N(Cr([])),f=M(r),p=M(()=>z(c).dirname),m=M(()=>z(c).filename),h=M(()=>z(c).extension),g=M(()=>{if(!z(l).trim())return`empty`;if(z(l).includes(`/`))return`character`;if(z(u).includes(`${z(l)}${z(h)?`.${z(h)}`:``}`))return`duplicate`}),_=M(()=>!!z(g)),v=async()=>{z(f)&&(P(c,Dp(z(f).path),!0),P(l,z(m),!0),P(u,bF(z(p)).map(e=>e.name).filter(e=>e!==z(f).name),!0),P(d,await T0(z(f)),!0),P(s,!0))},y=async()=>{if(!z(f))return;let e=z(f).path,t=`${z(p)}/${z(l)}${z(h)?`.${z(h)}`:``}`;await u3(`rename`,[{asset:z(f),path:t}]),h1().path===`/assets/${e}`&&await y1(`/assets/${t}`,{replaceState:!0,notifyChange:!1})};ti(()=>{z(f)&&v()}),ti(()=>{i()||(P(s,!1),mn(hF,void 0))});{let t=M(()=>X(`rename_x`,{values:{name:z(f)?.name??``}})),r=M(()=>X(`rename`)),i=M(()=>z(l)===z(m)||z(_));$I(e,{get title(){return z(t)},get okLabel(){return z(r)},get okDisabled(){return z(i)},onOk:()=>{y()},onClose:()=>{mn(hF,void 0)},get open(){return z(s)},set open(e){P(s,e,!0)},children:(e,t)=>{var r=f3(),i=I(r),a=F(i,!0);D(i);var o=L(i,2),s=F(o);lL(s,{dir:`auto`,flex:!0,get invalid(){return z(_)},get"aria-errormessage"(){return`${n}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}});var c=L(s,2),u=e=>{var t=d3(),n=F(t);D(t),R(()=>W(n,`.${z(h)??``}`)),U(e,t)};G(c,e=>{z(h)&&e(u)}),D(o);var f=L(o,2),p=F(f),m=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`enter_new_name_for_asset_error.${z(g)}`)]),U(e,t)};G(p,e=>{z(_)&&e(m)}),D(f),R(e=>{W(a,e),q(f,`id`,`${n}-error`)},[()=>X(`enter_new_name_for_asset`,{values:{count:z(d).length}})]),U(e,r)},$$slots:{default:!0}})}k(),o()}var d3,f3,p3,Fue=s((()=>{Q(),Y(),Z(),B$(),Np(),S1(),SF(),Nue(),E0(),l1(),d3=V(`<span role="none"> </span>`),f3=V(`<p class="svelte-22gadf"> </p> <div role="none" class="svelte-22gadf"><!> <!></div> <div role="none" class="error svelte-22gadf"><!></div>`,1),p3={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 Iue(e,t){O(t,!0),K(e,g3);let n=()=>j(s1,`$listedAssets`,s),r=()=>j(dF,`$focusedAsset`,s),i=()=>j(zA,`$isSmallScreen`,s),a=()=>j(BA,`$isMediumScreen`,s),o=()=>j(uae,`$selectedAssetPathSet`,s),[s,c]=hn(),l=M(()=>t.asset.name),u=M(()=>t.asset.kind),d=e=>{uF.update(n=>{let r=n.indexOf(t.asset);return e&&r===-1&&n.push(t.asset),!e&&r>-1&&n.splice(r,1),n})};{let s=M(()=>n().indexOf(t.asset));EL(e,{get"aria-rowindex"(){return z(s)},onChange:e=>{d(e.detail.selected)},onfocus:()=>{mn(dF,t.asset)},onclick:()=>{(i()||a())&&r()&&ES(r())&&y1(`/assets/${r().path}`,{transitionType:`forwards`})},ondblclick:()=>{r()&&ES(r())&&y1(`/assets/${r().path}`,{transitionType:`forwards`})},children:(e,n)=>{var r=h3(),s=I(r),c=e=>{CL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>o().has(t.asset.path));YI(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{d(e)}})}},$$slots:{default:!0}})};G(s,e=>{i()||a()||e(c)});var f=L(s,2);CL(f,{class:`image`,children:(e,n)=>{{let n=M(()=>t.viewType===`list`?`icon`:`tile`),r=M(()=>z(u)===`image`);n2(e,{get kind(){return z(u)},get asset(){return t.asset},get variant(){return z(n)},get cover(){return i()},get checkerboard(){return z(r)}})}},$$slots:{default:!0}});var p=L(f,2),m=e=>{CL(e,{class:`title`,children:(e,t)=>{var n=m3();qF(F(n),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(l))),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}})};G(p,e=>{(!i()||t.viewType===`list`)&&e(m)}),U(e,r)},$$slots:{default:!0}})}k(),c()}var m3,h3,g3,Lue=s((()=>{Q(),Y(),B$(),l2(),S1(),SF(),AS(),l1(),WA(),m3=V(`<div role="none" class="label svelte-17zk54k"><!></div>`),h3=V(`<!> <!> <!>`,1),g3={hash:`svelte-17zk54k`,code:`.label.svelte-17zk54k {word-break:break-all;}`}}));function _3(e,t){let n=J(t,`loading`,3,`lazy`),r=J(t,`asset`,3,void 0),i=J(t,`src`,3,void 0),a=J(t,`variant`,3,void 0),o=J(t,`blurBackground`,3,!1),s=J(t,`cover`,3,!1),c=J(t,`checkerboard`,3,!1),l=J(t,`alt`,3,``),u=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`loading`,`asset`,`src`,`variant`,`blurBackground`,`cover`,`checkerboard`,`alt`]);n2(e,Xs({kind:`image`,get loading(){return n()},get asset(){return r()},get src(){return i()},get variant(){return a()},get blurBackground(){return o()},get cover(){return s()},get checkerboard(){return c()},get alt(){return l()}},()=>u))}var v3=s((()=>{Q(),Y(),l2()}));function y3(e,t){O(t,!0),K(e,C3);let n=J(t,`files`,27,()=>Cr([])),r=J(t,`transformedFileMap`,3,void 0),i=J(t,`removable`,3,!0);var a=S3();mo(a,23,n,(e,t)=>`${e.name}-${t}`,(e,t,a)=>{var o=H();eo(I(o),Jx,null,e=>{let o=M(()=>{let{name:e,type:n,size:r}=z(t);return{name:e,type:n,size:r}}),s=M(()=>r()?.get(z(t)));var c=x3(),l=F(c),u=e=>{{let n=M(()=>URL.createObjectURL(z(t)));_3(e,{get src(){return z(n)},variant:`icon`,checkerboard:!0})}},d=M(()=>Hw.includes(z(o).type)),f=e=>{var t=b3();zF(F(t),{name:`draft`}),D(t),U(e,t)};G(l,e=>{z(d)?e(u):e(f,-1)});var p=L(l,2),m=F(p);qF(F(m),{children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>z(o).name.normalize()]),U(e,n)},$$slots:{default:!0}}),D(m);var h=L(m,2),g=F(h);oo(g,()=>Oh.current,e=>{var n=Fa();R(e=>W(n,e),[()=>X(`file_meta`,{values:{type:X(`file_type_labels.${z(t).type.split(`/`)[1]}`,{default:Dp(z(o).name).extension?.toUpperCase()}),size:qC(z(o).size)}})]),U(e,n)});var _=L(g,2),v=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`file_meta_converted_from_x`,{values:{type:X(`file_type_labels.${z(s).type.split(`/`)[1]}`,{default:Dp(z(s).name).extension?.toUpperCase()})}})]),U(e,t)};G(_,e=>{z(s)&&z(s).type!==z(t).type&&e(v)}),D(h),D(p);var y=L(p,2);{let e=M(()=>X(`remove`)),t=M(()=>!i()||n().length===1);tI(y,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(e)},get hidden(){return z(t)},onclick:e=>{e.stopPropagation(),n().splice(z(a),1)},children:(e,t)=>{zF(e,{name:`close`})},$$slots:{default:!0}})}D(c),U(e,c)}),U(e,o)}),D(a),U(e,a),k()}var b3,x3,S3,C3,w3=s((()=>{Q(),Y(),Z(),B$(),Np(),Yx(),v3(),ew(),Ww(),b3=V(`<span role="none" class="image svelte-lbhi1w"><!></span>`),x3=V(`<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>`),S3=V(`<div role="list" class="files svelte-lbhi1w"></div>`),C3={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;.preview {flex:none;}.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);}.info:where(.svelte-lbhi1w) {flex:auto;display:flex;flex-direction:column;gap:4px;overflow:hidden;text-align:start;.meta:where(.svelte-lbhi1w) {font-size:var(--sui-font-size-small);color:var(--sui-secondary-foreground-color);}}}`}}));function T3(e,t){O(t,!0),K(e,j3);let n=()=>j(HA,`$hasMouse`,r),[r,i]=hn(),a=e=>{var t=H(),n=I(t),r=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`dropped_image_type_mismatch`)]),U(e,t)},i=M(()=>o()===Hw.join(`,`)),a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`dropped_file_type_mismatch`,{values:{type:cb(Oh.current,{type:`disjunction`}).format(o().split(/,\s*/))}})]),U(e,t)};G(n,e=>{z(i)?e(r):e(a,-1)}),U(e,t)},o=J(t,`accept`,3,void 0),s=J(t,`disabled`,3,!1),c=J(t,`multiple`,3,!1),l=J(t,`showUploadButton`,3,!1),u=J(t,`showFilePreview`,3,!1),d=J(t,`onDrop`,3,void 0),f=J(t,`children`,3,void 0),p=N(void 0),m=N(!1),h=N(!1),g=N(!1),_=N(void 0),v=N(Cr([])),y=M(()=>l()||u()&&z(v).length),b=()=>{z(_)?.open()},x=()=>{z(v).length&&(P(v,[],!0),d()?.({files:z(v)}))},S=e=>{P(v,c()?e:e.slice(0,1),!0),d()?.({files:z(v)})},C=e=>{d()?.({files:e.detail.files})};ic(()=>(z(p)?.addEventListener(`Select`,C),()=>{z(p)?.removeEventListener(`Select`,C)})),ti(()=>{!z(y)&&z(h)&&P(g,!0)});var w={openFilePicker:b,reset:x},ee=A3(),T=I(ee),te=F(T),ne=e=>{var t=O3(),r=F(t),i=e=>{var t=D3(),r=I(t),i=F(r),o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`drop_files_or_click_to_browse`,{values:{count:c()?2:1}})]),U(e,t)},l=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`tap_to_browse`)]),U(e,t)};G(i,e=>{n()?e(o):e(l,-1)}),D(r);var u=L(r,2),d=F(u);{let e=e=>{zF(e,{name:`cloud_upload`})},t=M(()=>X(`choose_files`,{values:{count:c()?2:1}}));tI(d,{variant:`primary`,get label(){return z(t)},get disabled(){return s()},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}D(u);var f=L(u,2),p=e=>{var t=E3();a(F(t)),D(t),U(e,t)};G(f,e=>{z(h)&&e(p)}),U(e,t)};G(r,e=>{l()&&e(i)});var o=L(r,2),d=e=>{y3(e,{get files(){return z(v)},set files(e){P(v,e,!0)}})};G(o,e=>{u()&&z(v).length&&e(d)}),D(t),U(e,t)},re=e=>{var t=H();Eo(I(t),()=>f()??E),U(e,t)};G(te,e=>{z(y)?e(ne):e(re,-1)});var ie=L(te,2),ae=e=>{var t=k3(),n=F(t),r=F(n);zF(r,{name:`download`});var i=L(r,2),a=F(i,!0);D(i),D(n),D(t),R(e=>W(a,e),[()=>X(`drop_files_here`,{values:{count:c()?2:1}})]),U(e,t)};G(ie,e=>{z(m)&&e(ae)}),D(T),Us(T,e=>P(p,e),()=>z(p));var oe=L(T,2);Us(_L(oe,{get accept(){return o()},get multiple(){return c()},onSelect:({files:e})=>{S(e)}}),e=>P(_,e,!0),()=>z(_));var se=L(oe,2),ce=e=>{{let t=M(()=>X(`unsupported_file_type`));sL(e,{get title(){return z(t)},get open(){return z(g)},set open(e){P(g,e,!0)},children:(e,t)=>{a(e)},$$slots:{default:!0}})}};G(se,e=>{z(y)||e(ce)}),xa(`dragover`,T,e=>{e.preventDefault(),!(s()||!e.dataTransfer)&&(e.dataTransfer.dropEffect=`copy`,P(m,!0),P(h,!1))}),xa(`dragleave`,T,e=>{e.preventDefault(),!s()&&P(m,!1)}),xa(`dragend`,T,e=>{e.preventDefault(),!s()&&P(m,!1)}),xa(`drop`,T,async e=>{if(e.preventDefault(),s()||!e.dataTransfer)return;P(m,!1);let t=await kp(e.dataTransfer,{accept:o()});t.length?S(t):P(h,!0)}),U(e,ee);var le=k(w);return i(),le}var E3,D3,O3,k3,A3,j3,M3=s((()=>{Q(),Y(),Z(),B$(),Np(),oc(),w3(),ub(),WA(),Ww(),E3=V(`<div role="alert"><!></div>`),D3=V(`<div role="none"><!></div> <div role="none"><!></div> <!>`,1),O3=V(`<div role="none" class="content svelte-1hhq62q"><!> <!></div>`),k3=V(`<div role="none" class="drop-indicator svelte-1hhq62q"><div role="none" class="svelte-1hhq62q"><!> <span role="none"> </span></div></div>`),A3=V(`<div role="none" class="drop-target svelte-1hhq62q"><!> <!></div> <!> <!>`,1),j3={hash:`svelte-1hhq62q`,code:`.drop-target.svelte-1hhq62q {display:flex;flex-direction:column;position:relative;overflow:hidden;height:100%;pointer-events:auto;& > .group {overflow-y:auto;padding:16px;width:100%;height:100%;}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;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);.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 N3(e,t){O(t,!0);let n=()=>j(Lp,`$targetAssetFolder`,r),[r,i]=hn(),a=J(t,`label`,3,void 0),o=M(()=>!Vp(n()));{let t=e=>{zF(e,{name:`cloud_upload`})},n=M(()=>!a()),r=M(()=>X(`upload_assets`));tI(e,{variant:`primary`,get iconic(){return z(n)},get disabled(){return z(o)},get label(){return a()},get"aria-label"(){return z(r)},onclick:()=>{mn(n1,!0)},startIcon:t,$$slots:{startIcon:!0}})}k(),i()}var P3=s((()=>{Q(),Y(),Z(),B$(),Hp(),l1()}));function F3(e,t){K(e,L3);let n=J(t,`children`,3,void 0),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`children`]);var i=I3();ys(i,()=>({role:`group`,class:`list-container`,...r}),void 0,void 0,void 0,`svelte-1sdsl2g`),Eo(F(i),()=>n()??E),D(i),U(e,i)}var I3,L3,R3=s((()=>{Q(),Y(),I3=V(`<div><!></div>`),L3={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 z3(e,t){O(t,!0),K(e,V3);let n=J(t,`children`,3,void 0),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`viewType`,`children`]);var i=B3();eo(F(i),Jx,null,e=>{loe(e,Xs({multiple:!0,clickToSelect:!1},()=>r,{children:(e,t)=>{var r=H();Eo(I(r),()=>n()??E),U(e,r)},$$slots:{default:!0}}))}),D(i),R(()=>ss(i,1,`${t.viewType??``}-view`,`svelte-1sfbolp`)),U(e,i),k()}var B3,V3,H3=s((()=>{Q(),Y(),B$(),Yx(),B3=V(`<div role="none"><!></div>`),V3={hash:`svelte-1sfbolp`,code:`:is(.grid-view.svelte-1sfbolp, .list-view.svelte-1sfbolp) {display:block;padding:0 16px 16px;height:100%;overflow-y:auto;}.grid-view.svelte-1sfbolp {
859
+ @media (width < 768px) {padding:4px;
860
+ }.row-group-caption {display:block;grid-column:1 / -1; /* span the entire row */th {display:block;}}.row-group:not(:first-child) .row-group-caption {margin-top:16px;}.grid-body {display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 200px), 1fr));gap:16px;border-width:0;
861
+
862
+ @media (width < 768px) {grid-template-columns:repeat(auto-fill, minmax(var(--grid-size, 160px), 1fr));gap:8px;
863
+ }}.grid-row {display:block;position:relative;overflow:hidden;height:auto;text-align:start;.grid-cell {display:block;&.image:empty {aspect-ratio:1 / 1;}}.checkbox {position:absolute;inset-block-start:4px;inset-inline-start:4px;z-index:2;}.title {.label {overflow:hidden;margin:12px;height:40px;line-height:1.5;}}&[tabindex] {border-radius:var(--sui-control-large-border-radius);background-color:var(--sui-secondary-background-color);cursor:pointer;transition:background-color 200ms;&:is(:hover, :focus, :active) {background-color:var(--sui-hover-background-color);}}}}.list-view.svelte-1sfbolp {
864
+ @media (width < 768px) {padding:0;
865
+ }[role='grid'] {
866
+ @media (width < 768px) {width:100%;--sui-focus-ring-width: 0;
867
+ }.row-group {.row-group-caption + .grid-row {.grid-cell {border-top-width:0 !important;}}.row-group-caption ~ .grid-row:last-child {.grid-cell {border-bottom-width:0 !important;}}}.grid-row {transition-property:background-color, outline-color;transition-duration:200ms;&[tabindex] {cursor:pointer;}&:hover {background-color:var(--sui-hover-background-color);}&:last-child .grid-cell {border-width:1px 0;}}.grid-cell {overflow:hidden;border-width:1px 0 0;border-color:var(--sui-secondary-border-color);padding:0 16px 0 0;height:40px;max-width:100%;color:var(--sui-secondary-foreground-color);white-space:nowrap;vertical-align:middle;
868
+
869
+ @media (width < 768px) {border-width:0 !important;height:64px;
870
+ }&.checkbox {padding-inline-start:8px !important;width:44px;}&.title {width:100%; /* flex: auto */color:var(--sui-primary-foreground-color);}&:first-child {padding-inline-start:16px;}.label {overflow:hidden;
871
+
872
+ @media (width < 768px) {white-space:normal;line-height:var(--sui-line-height-compact);
873
+ }}&.image {width:48px;&: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 Rue(e,t){O(t,!0);let n=()=>j(o1,`$currentView`,o),r=()=>j(Lp,`$targetAssetFolder`,o),i=()=>j(c1,`$assetGroups`,o),a=()=>j(s1,`$listedAssets`,o),[o,s]=hn(),c=M(()=>n().type),l=M(r),u=M(()=>!Vp(z(l)));{let t=M(()=>X(`asset_list`));F3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{T3(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{mn(pF,{folder:z(l),files:e})},children:(e,t)=>{var n=H(),r=I(n),o=e=>{{let t=M(()=>X(`assets`));z3(e,{id:`asset-list`,get viewType(){return z(c)},get"aria-label"(){return z(t)},get"aria-rowcount"(){return a().length},children:(e,t)=>{var n=H();mo(I(n),1,()=>Object.entries(i()),([e,t])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=H();eo(I(a),Jx,null,e=>{{let t=M(()=>r()===`*`?void 0:r());yL(e,{get label(){return z(t)},children:(e,t)=>{bR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();oo(I(n),()=>t().sha,e=>{var n=H();eo(I(n),Jx,null,e=>{Iue(e,{get asset(){return t()},get viewType(){return z(c)}})}),U(e,n)}),U(e,n)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)},$$slots:{default:!0}})}},s=M(()=>Object.values(i()).flat(1).length),l=e=>{P$(e,{children:(e,t)=>{var n=U3(),r=I(n),i=F(r,!0);D(r);var a=L(r,2),o=e=>{{let t=M(()=>X(`upload_assets`));N3(e,{get label(){return z(t)}})}};G(a,e=>{z(u)||e(o)}),R(e=>W(i,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{z(s)?e(o):e(l,-1)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}k(),s()}var U3,zue=s((()=>{Q(),Y(),Z(),B$(),Yx(),Lue(),M3(),P3(),R3(),H3(),SF(),Hp(),l1(),U3=V(`<span role="none"> </span> <!>`,1)})),W3,G3,K3=s((()=>{rp(),W3=un(null),G3=un(``)}));function q3(e,t){O(t,!0),K(e,X3);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn(),o=J(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=h1(),i=r.startsWith(`/search/`);mn(G3,e),e?y1(`/search/${e}`,{replaceState:i}):t&&i&&b1(`/collections`)},c=N(void 0);ti(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=Y3(),u=F(l),d=e=>{var t=J3(),n=I(t);{let e=M(()=>X(`search_placeholder_${r()}`));lo(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),Us(wR(n.lastChild,{debounce:!0,keyShortcuts:`Accel+F`,get placeholder(){return z(e)},get onclick(){return o()},oninput:({target:e})=>{s(e.value.trim())},onClear:()=>{s(``)}}),e=>P(c,e,!0),()=>z(c)),D(n)}U(e,t)};G(u,e=>{r()&&e(d)}),D(l),U(e,l),k(),a()}var J3,Y3,X3,Z3=s((()=>{Q(),Y(),Z(),B$(),S1(),K3(),J3=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),Y3=V(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),X3={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Bue(e,t){O(t,!0);let n=()=>j(Pp,`$allAssetFolders`,o),r=()=>j(zA,`$isSmallScreen`,o),i=()=>j(Ip,`$selectedAssetFolder`,o),a=()=>j(oF,`$allAssets`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Oh.current)),u=M(()=>[...n().filter(({typedKeyPath:e})=>e===void 0).sort((e,t)=>Jy(e.collectionName,e.fileName)-Jy(t.collectionName,t.fileName)).sort((e,t)=>Kb(e.collectionName)-Kb(t.collectionName))]);var d=t6(),f=F(d),p=e=>{var t=$3(),n=I(t),r=F(n),i=F(r,!0);D(r),D(n),q3(L(n,2),{onclick:e=>{e.preventDefault(),y1(`/search`)}}),R(e=>W(i,e),[()=>X(`assets`)]),U(e,t)};G(f,e=>{r()&&e(p)});var m=L(f,2);{let e=M(()=>X(`asset_folder_list`));jL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>X(`asset_location.repository`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(u),e=>[e.collectionName,e.fileName,e.internalPath].join(`:`),(e,t)=>{var n=H();eo(I(n),Jx,null,e=>{let n=M(()=>{let{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}=z(t);return{collectionName:e,fileName:n,internalPath:r,entryRelative:i,hasTemplateTags:a}}),o=M(()=>z(n).collectionName?Wb(z(n).collectionName):void 0),s=M(()=>z(o)&&z(n).fileName?Wy(z(o),z(n).fileName):void 0),u=M(()=>z(n).entryRelative||z(n).hasTemplateTags),d=M(()=>(0,Q3.default)(i(),z(t)));{let i=e=>{{let t=M(()=>z(s)?.icon||z(o)?.icon||`folder`);zF(e,{get name(){return z(t)}})}},f=e=>{var r=H();oo(I(r),a,e=>{var r=H();eo(I(r),Jx,null,e=>{let r=M(()=>(z(n).internalPath===void 0?a():mae(z(t))).length);var i=e6(),o=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(o,t)},[()=>X(`x_assets`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)}),U(e,r)},p=M(()=>r()||c()?!1:z(d)),m=M(()=>Oh.current?i1(z(t)):``);RL(e,{get selected(){return z(p)},get label(){return z(m)},onSelect:()=>{y1(`/assets/${z(n).internalPath??`-/all`}`,{transitionType:`forwards`,state:{folder:z(t)}})},ondragover:e=>{e.preventDefault(),!z(u)&&(z(n).internalPath===void 0||z(d)?e.dataTransfer.dropEffect=`none`:(e.dataTransfer.dropEffect=`move`,e.target.classList.add(`dragover`)))},ondragleave:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondragend:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},ondrop:e=>{e.preventDefault(),!z(u)&&e.target.classList.remove(`dragover`)},startIcon:i,endIcon:f,$$slots:{startIcon:!0,endIcon:!0}})}}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}})}D(d),U(e,d),k(),s()}var Q3,$3,e6,t6,Vue=s((()=>{Q(),Y(),Z(),B$(),Yx(),Q3=u(YM()),Z3(),S1(),SF(),Hp(),l1(),qb(),Yy(),WA(),$3=V(`<header><h2> </h2></header> <!>`,1),e6=V(`<span class="count"> </span>`),t6=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function Hue(e,t){O(t,!0);{let n=M(()=>!t.asset||!ES(t.asset)),r=M(()=>X(`preview`)),i=M(()=>X(`show_preview`));tI(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{y1(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}k()}var Uue=s((()=>{Q(),Y(),Z(),B$(),S1(),AS()}));function Wue(e,t){O(t,!0);let n=()=>j(uF,`$selectedAssets`,l),r=()=>j(dF,`$focusedAsset`,l),i=()=>j(Lp,`$targetAssetFolder`,l),a=()=>j(zA,`$isSmallScreen`,l),o=()=>j(Ip,`$selectedAssetFolder`,l),s=()=>j(BA,`$isMediumScreen`,l),c=()=>j(s1,`$listedAssets`,l),[l,u]=hn(),d=M(()=>n().length?[...n()]:r()?[r()]:[]),f=M(()=>!Vp(i()));{let t=M(()=>X(`folder`));$Q(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=i6(),i=I(n),l=e=>{{let t=M(()=>X(`back_to_asset_folder_list`));Q0(e,{get"aria-label"(){return z(t)},onclick:()=>{b1(`/assets`)}})}};G(i,e=>{a()&&e(l)});var u=L(i,2),p=F(u);oo(p,()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>o()?i1(o()):``]),U(e,t)});var m=L(p,2),h=e=>{var t=n6(),n=F(t);D(t),R(()=>W(n,`/${o().internalPath??``}`)),U(e,t)};G(m,e=>{!a()&&o()?.internalPath!==void 0&&e(h)}),D(u);var g=L(u,2),_=e=>{var t=r6(),n=I(t);Hue(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);D0(i,{get assets(){return z(e)}})}var a=L(i,2);K0(a,{get assets(){return z(d)}});var o=L(a,2);{let e=M(()=>X(`delete_selected_assets`,{values:{count:z(d).length}})),t=M(()=>X(z(d).length>1&&z(d).length===c().length?`confirm_deleting_all_assets`:`confirm_deleting_selected_assets`,{values:{count:z(d).length}}));U0(o,{get assets(){return z(d)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}Y0(L(o,2),{get asset(){return r()}}),U(e,t)};G(g,e=>{a()||s()||e(_)}),vI(L(g,2),{children:(e,t)=>{var n=H(),r=I(n),i=e=>{{let t=M(()=>a()?void 0:X(`upload`));N3(e,{get label(){return z(t)}})}};G(r,e=>{(!a()||c().length&&!z(f))&&e(i)}),U(e,n)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})}k(),u()}var n6,r6,i6,Gue=s((()=>{Q(),Y(),Z(),B$(),A0(),G0(),J0(),Z0(),Uue(),P3(),$0(),S1(),SF(),Hp(),l1(),WA(),n6=V(`<span role="none"> </span>`),r6=V(`<!> <!> <!> <!> <!>`,1),i6=V(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)}));function Kue(e,t){O(t,!0);let n=()=>j(VA,`$isLargeScreen`,a),r=()=>j(o1,`$currentView`,a),i=()=>j(dF,`$focusedAsset`,a),[a,o]=hn();var s=H(),c=I(s),l=e=>{{let t=M(()=>X(`asset_info`));L$(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),a=e=>{h2(e,{get asset(){return i()},showPreview:!0})},o=e=>{P$(e,{children:(e,t)=>{var n=a6(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`select_asset_show_info`)]),U(e,n)},$$slots:{default:!0}})};G(r,e=>{i()?e(a):e(o,-1)}),U(e,n)},$$slots:{default:!0}})}};G(c,e=>{n()&&r().showInfo&&e(l)}),U(e,s),k(),o()}var a6,que=s((()=>{Q(),Y(),Z(),B$(),N2(),SF(),l1(),WA(),a6=V(`<span role="none"> </span>`)}));function o6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`multiple`,3,!1),c=J(t,`noneLabel`,3,``),l=J(t,`filters`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`filtering_options`));UL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H(),a=I(i),o=e=>{var r=H();mo(I(r),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}}),a=M(()=>(n().filters||[]).findIndex(e=>e.field===z(i).field&&String(e.pattern)===String(z(i).pattern)));{let n=M(()=>z(a)>-1);$L(e,{get label(){return z(i)._label},get checked(){return z(n)},onChange:()=>{t.currentView.update(e=>{let t=e.filters?[...e.filters]:[];return z(a)>-1?t.splice(z(a),1):t.push({field:z(i).field,pattern:z(i).pattern}),{...e,filters:t}})}})}}),U(e,r)},u=e=>{var r=s6(),i=I(r);{let e=M(()=>c()||X(`sort_keys.none`)),r=M(()=>!n().filter);tR(i,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:void 0}))}})}mo(L(i,2),17,l,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().filter?.field===z(i).field&&String(n().filter.pattern)===String(z(i).pattern));tR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,filter:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,r)};G(a,e=>{s()?e(o):e(u,-1)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`filter`));NI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var s6,c6=s((()=>{Q(),Y(),Z(),B$(),s6=V(`<!> <!>`,1)}));function l6(e,t){O(t,!0),K(e,f6);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=hn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=d6(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>X(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));YI(u,{get disabled(){return z(e)},get"aria-label"(){return z(n)},get checked(){return z(r)},onChange:()=>{t.selectedItems.set(z(c)?[]:[...t.allItems])}})}var d=L(u,2),f=e=>{var t=u6(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`x_of_x_selected`,{values:{total:z(a),selected:z(o)}})]),U(e,t)};G(d,e=>{z(s)&&e(f)}),D(l),U(e,l),k(),i()}var u6,d6,f6,p6=s((()=>{Q(),Y(),Z(),B$(),u6=V(`<span role="none" class="svelte-1sd2xgz"> </span>`),d6=V(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),f6={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 m6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`sortKeys`,19,()=>[]),c=J(t,`collectionName`,3,void 0),l=[`ascending`,`descending`],u=[`date`,`commit_date`];{let r=e=>{{let r=M(()=>X(`sorting_options`));UL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=H();mo(I(i),17,s,({key:e,label:t})=>e,(e,r)=>{let i=()=>z(r).key,a=()=>z(r).label;var o=h6(),d=I(o);mo(d,16,()=>l,e=>e,(e,r)=>{{let o=M(()=>X(u.includes(i())||c()&&uA({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);tR(e,{get label(){return z(o)},get checked(){return z(s)},onSelect:()=>{t.currentView.update(e=>({...e,sort:{key:i(),order:r}}))}})}});var f=L(d,2),p=e=>{zI(e,{})};G(f,e=>{i()===`_summary`&&s().length>1&&e(p)}),U(e,o)}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`sort`));NI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var h6,g6=s((()=>{Q(),Y(),Z(),B$(),_A(),h6=V(`<!> <!>`,1)}));function _6(e,t){O(t,!0),K(e,b6);let n=()=>j(t.currentView,`$currentView`,i),r=()=>j(VA,`$isLargeScreen`,i),[i,a]=hn(),o=J(t,`disabled`,3,!1),s=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),c=M(()=>n().type===`grid`);var l=y6(),u=F(l),d=e=>{{let n=M(()=>X(`switch_view`));kI(e,Xs({get disabled(){return o()},get"aria-label"(){return z(n)}},()=>s,{children:(e,n)=>{var r=v6(),i=I(r);{let e=e=>{zF(e,{name:`format_list_bulleted`})},n=M(()=>!z(c)),r=M(()=>X(`list_view`));MI(i,{get disabled(){return o()},get selected(){return z(n)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,type:`list`}))},startIcon:e,$$slots:{startIcon:!0}})}var a=L(i,2);{let e=e=>{zF(e,{name:`grid_view`})},n=M(()=>X(`grid_view`));MI(a,{get disabled(){return o()},get selected(){return z(c)},variant:`ghost`,iconic:!0,get"aria-label"(){return z(n)},onSelect:()=>{t.currentView.update(e=>({...e,type:`grid`}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,r)},$$slots:{default:!0}}))}},f=e=>{{let n=e=>{{let t=M(()=>z(c)?`format_list_bulleted`:`grid_view`);zF(e,{get name(){return z(t)}})}},r=M(()=>X(z(c)?`switch_to_list_view`:`switch_to_grid_view`));tI(e,{get disabled(){return o()},variant:`ghost`,iconic:!0,get"aria-label"(){return z(r)},onclick:()=>{t.currentView.update(e=>({...e,type:z(c)?`list`:`grid`}))},startIcon:n,$$slots:{startIcon:!0}})}};G(u,e=>{r()?e(d):e(f,-1)}),D(l),U(e,l),k(),a()}var v6,y6,b6,x6=s((()=>{Q(),Y(),Z(),B$(),WA(),v6=V(`<!> <!>`,1),y6=V(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),b6={hash:`svelte-8v3idr`,code:`.wrapper.svelte-8v3idr {display:contents;.select-button-group button {border-radius:var(--sui-button-medium-border-radius) !important;}}`}})),S6,Jue=s((()=>{S6={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`,reorder:`Reorder`,cancel:`Cancel`,done:`Done`,save:`Save`,saving:`Saving…`,publish:`Publish`,publishing:`Publishing…`,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`,singleton:`Singleton`,singletons:`Singletons`,clipboard_error:`There was an error while copying data.`,welcome_message:`Welcome to {$name}`,powered_by:`Powered by {$name}`,loading_cms_config:`Loading CMS 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_using_access_token:`Sign In Using Access Token`,sign_in_using_access_token_description:`Enter your token below. It must have read/write access to the repository content.`,sign_in_using_access_token_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_errors:`.input {$count :integer} .match $count one {{There was an error while parsing an entry file. Check the browser console for details.}} * {{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_contents:`Search for contents…`,search_placeholder_assets:`Search for assets…`,search_placeholder_all:`Search for contents 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`,cms_config:`CMS Configuration`,show_help_menu:`Show Help Menu`,help:`Help`,keyboard_shortcuts:`Keyboard Shortcuts`,documentation:`Documentation`,release_notes:`Release Notes`,announcements:`Announcements`,version_x:`Version {$version}`,report_issue:`Report Issue`,share_feedback:`Share Feedback`,get_help:`Get Help`,donate:`Donate`,join_discord:`Join Us on Discord`,bluesky:`Follow Us on Bluesky`,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:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$collection}” collection, which has no entries yet.}} one {{You’re now viewing the “{$collection}” collection, which has one entry.}} * {{You’re now viewing the “{$collection}” collection, which has {$count} entries.}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{You’re now viewing the “{$folder}” asset folder, which has no assets yet.}} one {{You’re now viewing the “{$folder}” asset folder, which has one asset.}} * {{You’re now viewing the “{$folder}” asset folder, which has {$count} assets.}}`,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`,_summary:`Summary`,_manual:`Manual`},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`,entry_not_found:`Entry not found.`,creating_entries_disabled_by_admin:`Creating new entries in this collection is disabled by the administrator.`,creating_entries_disabled_by_quota:`You cannot add new entries to this collection because it has reached its limit of {$quota} entries.`,creating_entries_nearing_quota:`.input {$remaining :integer} .match $remaining one {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more entry.}} * {{This collection is nearing its limit of {$quota} entries. You can only create {$remaining} more 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:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any entries.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one entry.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} entries.}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{You’re now viewing search results for “{$terms}”. We couldn’t find any assets.}} one {{You’re now viewing search results for “{$terms}”. We’ve found one asset.}} * {{You’re now viewing search results for “{$terms}”. We’ve found {$count} assets.}}`,x_entries:`.input {$count :integer} .match $count 0 {{No entries}} one {{{$count} entry}} * {{{$count} entries}}`,x_assets:`.input {$count :integer} .match $count 0 {{No assets}} one {{{$count} asset}} * {{{$count} 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:`.input {$count :integer} .match $count 0 {{Enter a new name below.}} one {{Enter a new name below. An entry using the asset will also be updated.}} * {{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}`,click_to_browse:`Click to browse…`,tap_to_browse:`Tap to browse…`,drop_files_or_click_to_browse:`.input {$count :integer} .match $count one {{Drop a file here or click to browse…}} * {{Drop files here or click to browse…}}`,drop_files_or:`.input {$count :integer} .match $count one {{Drop a file here or}} * {{Drop files here or}}`,drop_image_files_or:`.input {$count :integer} .match $count one {{Drop an image file here or}} * {{Drop image files here or}}`,browse:`Browse`,paste:`Paste`,paste_image:`Paste Image`,no_image_in_clipboard:`No image found in clipboard.`,clipboard_access_denied:`Clipboard access denied.`,drop_files_here:`.input {$count :integer} .match $count one {{Drop a file 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_files:`.input {$count :integer} .match $count one {{Choose File}} * {{Choose Files}}`,delete_assets:`.input {$count :integer} .match $count one {{Delete Asset}} * {{Delete Assets}}`,delete_selected_assets:`.input {$count :integer} .match $count one {{Delete Selected Asset}} * {{Delete Selected Assets}}`,confirm_deleting_this_asset:`Are you sure you want to delete this asset?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected asset?}} * {{Are you sure you want to delete the selected {$count} assets?}}`,confirm_deleting_all_assets:`Are you sure you want to delete all the assets?`,delete_entries:`.input {$count :integer} .match $count one {{Delete Entry}} * {{Delete Entries}}`,delete_selected_entries:`.input {$count :integer} .match $count one {{Delete Selected Entry}} * {{Delete Selected Entries}}`,confirm_deleting_this_entry:`Are you sure you want to delete this entry?`,confirm_deleting_this_entry_with_assets:`Are you sure you want to delete this entry and associated assets?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry?}} * {{Are you sure you want to delete the selected {$count} entries?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{Are you sure you want to delete the selected entry and associated assets?}} * {{Are you sure you want to delete the selected {$count} entries and associated assets?}}`,confirm_deleting_all_entries:`Are you sure you want to delete all the entries?`,confirm_deleting_all_entries_with_assets:`Are you sure you want to delete all the entries and associated assets?`,reorder_entries:`Reorder Entries`,done_reordering_entries:`Done Reordering Entries`,cancel_reordering_entries:`Cancel Reordering Entries`,saving_reorder_failed:`Failed to save the new entry order. Please try again.`,processing_files:`.input {$count :integer} .match $count one {{Processing a file. This may take a while.}} * {{Processing files. This may take a while.}}`,uploading_files:`Uploading Files`,confirm_replacing_file:`“{$name}” will be replaced with this file:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{This file will be saved to the “{$folder}” folder:}} * {{These {$count} files will be saved to the “{$folder}” folder:}}`,oversized_files:`Oversized Files`,warning_oversized_files:`.input {$count :integer} .match $count one {{This file cannot be uploaded because it exceeds the maximum size of {$size}. Please reduce the size or select a different file.}} * {{These files cannot be uploaded because they exceed the maximum size of {$size}. Please reduce the sizes or select different files.}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{A file with the same name already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{A file named “{$name}” already exists in this folder. Do you want to replace it?}} * {{{$count} files with the same names already exist in this folder. Do you want to replace them?}}`,file_name_conflict_resolution:`File Name Conflict Resolution`,keep_both:`Keep Both`,uploading_files_progress:`.input {$count :integer} .match $count one {{Uploading file…}} * {{Uploading files…}}`,uploading_files_failed:`.input {$count :integer} .match $count one {{File could not be uploaded}} * {{Files could not be uploaded}}`,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_errors:`.input {$count :integer} .match $count one {{One field has an error. Please correct it to save the entry.}} * {{{$count} fields have an error. Please correct them to save the entry.}}`,entry_saved:`.input {$count :integer} .match $count one {{Entry has been saved.}} * {{{$count} entries have been saved.}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{Entry has been saved and published.}} * {{{$count} entries have been saved and published.}}`,entries_deleted:`.input {$count :integer} .match $count one {{Entry has been deleted.}} * {{{$count} entries have been deleted.}}`,assets_saved:`.input {$count :integer} .match $count one {{Asset has been saved.}} * {{{$count} assets have been saved.}}`,assets_saved_and_published:`.input {$count :integer} .match $count one {{Asset has been saved and published.}} * {{{$count} assets have been saved and published.}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{Asset URL has been copied to clipboard.}} * {{{$count} asset URLs have been copied to clipboard.}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{Asset file path has been copied to clipboard.}} * {{{$count} asset file paths have been copied to clipboard.}}`,asset_data_copied:`.input {$count :integer} .match $count one {{Asset file has been copied to clipboard.}} * {{{$count} asset files have been copied to clipboard.}}`,assets_downloaded:`.input {$count :integer} .match $count one {{Asset file has been downloaded.}} * {{{$count} asset files have been downloaded.}}`,assets_moved:`.input {$count :integer} .match $count one {{Asset has been moved.}} * {{{$count} assets have been moved.}}`,assets_renamed:`.input {$count :integer} .match $count one {{Asset has been renamed.}} * {{{$count} assets have been renamed.}}`,assets_deleted:`.input {$count :integer} .match $count one {{Asset has been 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`,swap_panes:`Swap Panes`,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_field_type_x:`Unsupported field type: {$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_fields:`.input {$count :integer} .match $count one {{Translate Field}} * {{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 Relation fields, 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:`.input {$count :integer} .match $count 0 {{No field has been translated from {$source}.}} one {{Translated a field from {$source}.}} * {{Translated {$count} fields from {$source}.}}`},copy:{none:`Nothing has been copied.`,complete:`.input {$count :integer} .match $count 0 {{No field has been copied from {$source}.}} one {{Copied a field from {$source}.}} * {{Copied {$count} fields from {$source}.}}`}},validation:{value_missing:`This field is required.`,range_underflow:{"datetime-local":`The date/time must be at or after {$min}.`,date:`The date must be on or after {$min}.`,time:`The time must be at or after {$min}.`,number:`The value must be greater than or equal to {$min}.`,select:`.input {$min :integer} .match $min one {{You have to select at least {$min} option.}} * {{You have to select at least {$min} options.}}`,add:`.input {$min :integer} .match $min one {{You have to add at least {$min} item.}} * {{You have to add at least {$min} items.}}`},range_overflow:{"datetime-local":`The date/time must be at or before {$max}.`,date:`The date must be on or before {$max}.`,time:`The time must be at or before {$max}.`,number:`The value must be less than or equal to {$max}.`,select:`.input {$max :integer} .match $max one {{You cannot select more than {$max} option.}} * {{You cannot select more than {$max} options.}}`,add:`.input {$max :integer} .match $max one {{You cannot add more than {$max} item.}} * {{You cannot add more than {$max} items.}}`},too_short:`.input {$min :integer} .match $min one {{You must enter at least {$min} character.}} * {{You must enter at least {$min} characters.}}`,too_long:`.input {$max :integer} .match $max one {{You cannot enter more than {$max} character.}} * {{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.`}},entry_sidebar:{sidebar_panels:`Sidebar Panels`,validation:{title:`Validation`,placeholder:`Validation results will be shown here.`,no_errors_found:`No errors found.`},history:{title:`History`,fetch_failed:`Failed to load history.`,no_history:`No history found.`},backlinks:{title:`Backlinks`,no_entries:`No entries are referencing this entry.`}},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_urls:`.input {$count :integer} .match $count one {{Public URL}} * {{Public URLs}}`,file_paths:`.input {$count :integer} .match $count one {{File Path}} * {{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}`,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:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}. Maximum: {$max}.}} one {{{$count} character entered. Minimum: {$min}. Maximum: {$max}.}} * {{{$count} characters entered. Minimum: {$min}. Maximum: {$max}.}}`,min:`.input {$count :integer} .match $count 0 {{No character entered. Minimum: {$min}.}} one {{{$count} character entered. Minimum: {$min}.}} * {{{$count} characters entered. Minimum: {$min}.}}`,max:`.input {$count :integer} .match $count 0 {{No character entered. Maximum: {$max}.}} one {{{$count} character entered. Maximum: {$max}.}} * {{{$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:{api_key:{key_label:`API Key`,initial:`Enter your {$key} for {$service}.`,requested:`Validating…`,error:`The provided {$key} is invalid. Please double check and try again.`},password:{initial:`Enter your password for {$service}.`,requested:`Signing in…`,error:`User name or password is incorrect. Please double check and try again.`}},cloudinary:{iframe_title:`Cloudinary media library`,activate:{button_label:`Activate Cloudinary`,description:`After signing in, click the Sign In button again to continue.`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`Secret Access Key`},cloudflare_r2:{auth_key_label:`Secret Access Key`},digitalocean_spaces:{auth_key_label:`Secret Access Key`}},config:{errors:`.input {$count :integer} .match $count one {{There is an error in the CMS configuration. Please solve the issue and try again.}} * {{There are errors in the CMS configuration. Please solve the issues and try again.}}`,error_locator:{collection:`{$collection} collection`,file:`{$file} file`,field:"`{$field}` field"},error:{no_secure_context:`Sveltia CMS only works with HTTPS or localhost URLs.`,insecure_url:`The configuration file URL must use HTTPS protocol or a localhost address.`,insecure_urls:`.input {$count :integer} .match $count one {{The configuration file URL must use HTTPS protocol or a localhost address.}} * {{The configuration file URLs must use HTTPS protocol or localhost addresses.}}`,fetch_failed:`The configuration file could not be retrieved.`,fetch_failed_not_ok:`HTTP response returned with status {$status}.`,fetch_failed_with_manual_init:"The configuration file could not be retrieved. To prevent the `config.yml` file from loading, add [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) to the configuration object passed to `CMS.init()`.",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, TOML and JSON are supported.`,no_collection:`Collections are not defined.`,missing_backend:`The backend is not defined.`,missing_backend_name:`The backend name is not defined.`,unsupported_known_backend:`The {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_deprecated_backend:`The deprecated {$name} backend is [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_custom_backend:`Custom backends are [not supported](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented) in Sveltia CMS.`,unsupported_backend_suggestion:`Use one of the [supported backends](https://sveltiacms.app/en/docs/backends#supported-backends) instead.`,missing_repository:`The repository is not defined.`,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 in Sveltia CMS. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) instead.`,github_pkce_unsupported:`PKCE authorization is not yet supported due to GitHub’s limitations. Use a different [authentication method](https://sveltiacms.app/en/docs/backends/github#authentication) instead.`,oauth_no_app_id:`OAuth application ID is not defined.`,no_auth_methods:"The `auth_methods` option must contain at least one method.",missing_media_folder:`The media folder is not defined.`,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 in Sveltia CMS.`,invalid_collection_no_options:"The collection must have either the `folder`, `files` or `divider` option defined.",invalid_collection_multiple_options:"The collection cannot have the `folder`, `files` and `divider` options together.",file_format_mismatch:"The `{$extension}` extension doesn’t match the `{$format}` format.",invalid_slug_slash:"The slug template `{$slug}` is invalid as it cannot contain slashes. To organize entries in subfolders, use the `path` option instead of `slug`.",missing_collection_name:"The collection {$count} must have the `name` option defined as a non-empty string.",invalid_collection_name:"The collection name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_name:"Collection names must be unique, but `{$name}` is used more than once.",missing_collection_file_name:"The collection file {$count} must have the `name` option defined as a non-empty string.",invalid_collection_file_name:"The collection file name `{$name}` is invalid. It must not contain special characters.",duplicate_collection_file_name:"Collection file names must be unique, but `{$name}` is used more than once.",collection_no_fields:"The collection must have the `fields` option defined with at least one field.",collection_file_no_fields:"The collection file must have the `fields` option defined with at least one field.",collection_file_i18n_required:"The collection file must have the `i18n` option defined if the `locale` placeholder is used in the `file` path.",missing_field_name:"The field {$count} must have the `name` option defined as a non-empty string.",invalid_field_name:"The field name `{$name}` is invalid. It must not contain special characters. If you want to nest fields, [use Object fields instead of dot notation](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions).",duplicate_field_name:"Field names must be unique, but `{$name}` is used more than once.",missing_variable_type:"The variable type {$count} must have the `name` option defined as a non-empty string.",invalid_variable_type:"The variable type name `{$name}` is invalid. It must not contain special characters.",duplicate_variable_type:"Variable type names must be unique, but `{$name}` is used more than once.",date_field_type:"The deprecated Date field type is not supported in Sveltia CMS. Use the DateTime field type with the `type: date` option instead.",unsupported_deprecated_option:"The deprecated `{$prop}` option is not supported in Sveltia CMS. Use the `{$newProp}` option instead.",allow_multiple:"The `allow_multiple` option is not supported in Sveltia CMS. Use the `multiple` option instead, which defaults to `false`.",invalid_list_field:"The List field cannot have the `field`, `fields` and `types` options together.",invalid_list_variable_type:"The List field’s variable type is invalid. The `widget` option is set to `{$widget}` but it must be `object`.",invalid_object_field:"The Object field cannot have the `fields` and `types` options together.",object_field_missing_fields:"The Object field must have either the `fields` or `types` option defined.",relation_field_invalid_collection:"The referenced `{$collection}` collection is invalid or not defined.",relation_field_invalid_collection_file:"The referenced `{$file}` file is invalid or not defined.",relation_field_missing_file_name:"The `file` option must be defined for a relation to a file collection.",relation_field_invalid_value_field:"The referenced value field `{$field}` is invalid or not defined.",unexpected:`Unexpected error`},warning:{oauth_no_app_id:`OAuth application ID is not defined. Users are required to provide an access token to sign in.`,editorial_workflow_unsupported:`Editorial workflow is not yet supported in Sveltia CMS.`,open_authoring_unsupported:`Open authoring is not yet supported in Sveltia CMS.`,nested_collections_unsupported:`Nested collections are not yet supported in Sveltia CMS.`,unsupported_ignored_option:"The `{$prop}` option is not supported in Sveltia CMS. It will be ignored."},compatibility_link:`See the compatibility notes for details: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`Local`,unsupported_browser:`Local Workflow is not supported in your browser. Please use Chrome or Edge instead.`,disabled:`Local Workflow 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.`,api_key_invalid:`The provided API key is invalid. Please double check and try again.`},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`,translators:{default:{title:`Default Translation Service`,select_service:`Select Service`},api_keys:{title:`Translation Service API Keys`,description:`Manage API keys for <a>translation services</a>.`},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:{api_keys:{title:`Stock Photo Service API Keys`,description:`Manage API keys for <a>stock photo services</a>.`},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}`,no_services:`No <a>stock photo services</a> are configured.`},cloud_storage:{api_keys:{title:`Cloud Storage Service API Keys`,description:`Manage API keys for <a>cloud storage services</a>.`},field_label:`{$service} API Key`,no_services:`No <a>cloud storage services</a> are configured.`}},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.`,url:{field_label:`Hook URL`,saved:`Hook URL has been saved.`,removed:`Hook URL has been removed.`},auth:{field_label:`Authorization header (e.g. Bearer <token>) (optional)`,saved:`Authorization header has been saved.`,removed:`Authorization header 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`}}})),C6,Yue=s((()=>{C6={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:`削除`,reorder:`並び替え`,cancel:`キャンセル`,done:`完了`,save:`保存`,saving:`保存中…`,publish:`公開`,publishing:`公開中…`,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:`スラッグ`,singleton:`シングルトン`,singletons:`シングルトン`,clipboard_error:`データのコピー中に問題が発生しました。`,welcome_message:`{$name} へようこそ`,powered_by:`Powered by {$name}`,loading_cms_config:`CMS 設定を読み込んでいます…`,loading_site_data:`サイトデータを読み込んでいます…`,loading_site_data_error:`サイトデータの読み込み中にエラーが発生しました。`,sign_in_with_x:`{$service} にログイン`,sign_in_using_access_token:`アクセストークンを使用してログイン`,sign_in_using_access_token_description:`以下にトークンを入力してください。レポジトリコンテンツへの読み取り・書き込みアクセスが必要です。`,sign_in_using_access_token_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_errors:`エントリーファイルの読み込み中にエラーが発生しました。詳しくはブラウザーのコンソールを確認してください。`,visit_live_site:`管理対象サイトを開く`,switch_page:`ページを切り替え`,search_placeholder_contents:`コンテンツを検索…`,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:`設定`,cms_config:`CMS 設定`,show_help_menu:`ヘルプメニューを表示`,help:`ヘルプ`,keyboard_shortcuts:`キーボードショートカット`,documentation:`ドキュメンテーション`,release_notes:`リリースノート`,announcements:`お知らせ`,version_x:`バージョン {$version}`,report_issue:`問題を報告`,share_feedback:`フィードバックを共有`,get_help:`サポート`,donate:`寄付`,join_discord:`Discord チャンネルに参加`,bluesky:`Bluesky でフォロー`,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:`.input {$count :integer} .match $count 0 {{「{$collection}」コレクションを表示しています。ここにはまだエントリーがありません。}} one {{「{$collection}」コレクションを表示しています。ここにはひとつのエントリーがあります。}} * {{「{$collection}」コレクションを表示しています。ここには {$count} 個のエントリーがあります。}}`,viewing_x_asset_folder:`.input {$count :integer} .match $count 0 {{「{$folder}」アセットフォルダーを表示しています。ここにはまだアセットがありません。}} one {{「{$folder}」アセットフォルダーを表示しています。ここにはひとつのアセットがあります。}} * {{「{$folder}」アセットフォルダーを表示しています。ここには {$count} 個のアセットがあります。}}`,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:`更新日時`,_summary:`サマリー`,_manual:`手動`},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:`グローバルアセット`,entry_not_found:`エントリーが見つかりませんでした。`,creating_entries_disabled_by_admin:`このコレクションへの新しいエントリーの作成は、管理者によって無効化されています。`,creating_entries_disabled_by_quota:`このコレクションは最大の {$quota} エントリーに達したため、新しいエントリーを作成することはできません。`,creating_entries_nearing_quota:`このコレクションは {$quota} エントリーの上限に近づいています。あと {$remaining} 件のエントリーしか作成できません。`,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:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。エントリーは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のエントリーが見つかりました。}}`,viewing_asset_search_results:`.input {$count :integer} .match $count 0 {{「{$terms}」の検索結果を表示しています。アセットは見つかりませんでした。}} * {{「{$terms}」の検索結果を表示しています。{$count} 件のアセットが見つかりました。}}`,x_entries:`{$count} 個のエントリー`,x_assets:`{$count} 個のアセット`,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:`.input {$count :integer} .match $count 0 {{新しい名前を以下に入力してください。}} one {{新しい名前を以下に入力してください。このアセットを使用している 1 個のエントリーも更新されます。}} * {{新しい名前を以下に入力してください。このアセットを使用している {$count} 個のエントリーも更新されます。}}`,enter_new_name_for_asset_error:{empty:`ファイル名を空白にすることはできません。`,character:`ファイル名に特別な文字を含めることはできません。`,duplicate:`このファイル名は他のアセットに使われています。`},replace_asset:`アセットを差し替え`,replace_x:`{$name} を差し替え`,click_to_browse:`クリックして参照…`,tap_to_browse:`タップして参照…`,drop_files_or_click_to_browse:`ここにファイルをドロップするかクリックして参照…`,drop_files_or:`ここにファイルをドロップするか`,drop_image_files_or:`ここに画像ファイルをドロップするか`,browse:`参照`,paste:`貼り付け`,paste_image:`画像を貼り付け`,no_image_in_clipboard:`クリップボードに画像が見つかりません。`,clipboard_access_denied:`クリップボードへのアクセスが拒否されました。`,drop_files_here:`ここにファイルをドロップ`,unsupported_file_type:`非対応ファイル形式`,dropped_file_type_mismatch:`ドロップされたファイルは {$type} 形式ではありません。再度お試しください。`,dropped_image_type_mismatch:`ドロップされたファイルはサポートされていません。AVIF、GIF、JPEG、PNG、WebP または SVG 形式の画像のみが受け入れられます。再度お試しください。`,choose_files:`ファイルを選択`,delete_assets:`アセットを削除`,delete_selected_assets:`選択されたアセットを削除`,confirm_deleting_this_asset:`このアセットを削除してもよろしいですか?`,confirm_deleting_selected_assets:`.input {$count :integer} .match $count one {{選択されたアセットを削除してもよろしいですか?}} * {{選択された {$count} 個のアセットを削除してもよろしいですか?}}`,confirm_deleting_all_assets:`すべてのアセットを削除してもよろしいですか?`,delete_entries:`エントリーを削除`,delete_selected_entries:`選択されたエントリーを削除`,confirm_deleting_this_entry:`このエントリーを削除してもよろしいですか?`,confirm_deleting_this_entry_with_assets:`このエントリーと関連アセットを削除してもよろしいですか?`,confirm_deleting_selected_entries:`.input {$count :integer} .match $count one {{選択されたエントリーを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーを削除してもよろしいですか?}}`,confirm_deleting_selected_entries_with_assets:`.input {$count :integer} .match $count one {{選択されたエントリーと関連アセットを削除してもよろしいですか?}} * {{選択された {$count} 個のエントリーと関連アセットを削除してもよろしいですか?}}`,confirm_deleting_all_entries:`すべてのエントリーを削除してもよろしいですか?`,confirm_deleting_all_entries_with_assets:`すべてのエントリーと関連アセットを削除してもよろしいですか?`,reorder_entries:`エントリーを並び替え`,done_reordering_entries:`エントリーの並び替えを完了`,cancel_reordering_entries:`エントリーの並び替えをキャンセル`,saving_reorder_failed:`エントリーの並び替えを保存できませんでした。再度お試しください。`,processing_files:`ファイルを処理しています。これには時間がかかる場合があります。`,uploading_files:`アップロード対象ファイル`,confirm_replacing_file:`「{$name}」がこのファイルと置き換えられます:`,confirm_uploading_files:`.input {$count :integer} .match $count one {{このファイルを「{$folder}」フォルダーに保存します:}} * {{これら {$count} 個のファイルを「{$folder}」フォルダーに保存します:}}`,oversized_files:`サイズ超過ファイル`,warning_oversized_files:`.input {$count :integer} .match $count one {{このファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}} * {{これらのファイルは最大サイズ {$size} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}}`,file_name_conflict_confirmation:`.input {$count :integer} .match $count one {{同じ名前のファイルがこのフォルダーに既に存在します。置き換えますか?}} * {{{$count} 個のファイルが同じ名前でこのフォルダーに既に存在します。置き換えますか?}}`,file_name_conflict_confirmation_with_name:`.input {$count :integer} .input {$name :string} .match $count one {{"{$name}" という名前のファイルはこのフォルダーに既に存在します。置き換えますか?}} * {{{$count} 個のファイルが同じ名前でこのフォルダーに既に存在します。置き換えますか?}}`,file_name_conflict_resolution:`ファイル名の競合解決`,keep_both:`両方とも残す`,uploading_files_progress:`ファイルをアップロード中…`,uploading_files_failed:`ファイルをアップロードできませんでした`,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_errors:`.input {$count :integer} .match $count one {{ひとつのフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}} * {{{$count} 個のフィールドにエラーがあります。エントリーを保存するには問題を修正してください。}}`,entry_saved:`.input {$count :integer} .match $count one {{エントリーが保存されました。}} * {{{$count} 件のエントリーが保存されました。}}`,entry_saved_and_published:`.input {$count :integer} .match $count one {{エントリーが保存、公開されました。}} * {{{$count} 件のエントリーが保存、公開されました。}}`,entries_deleted:`.input {$count :integer} .match $count one {{エントリーが削除されました。}} * {{{$count} 個のエントリーが削除されました。}}`,assets_saved:`.input {$count :integer} .match $count one {{アセットが保存されました。}} * {{{$count} 個のアセットが保存されました。}}`,asset_saved_and_published:`アセットが保存、公開されました。`,assets_saved_and_published:`.input {$count :integer} .match $count one {{アセットが保存、公開されました。}} * {{{$count} 個のアセットが保存、公開されました。}}`,asset_urls_copied:`.input {$count :integer} .match $count one {{アセット URL がクリップボードにコピーされました。}} * {{{$count} 個のアセット URL がクリップボードにコピーされました。}}`,asset_paths_copied:`.input {$count :integer} .match $count one {{アセットファイルパスがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルパスがクリップボードにコピーされました。}}`,asset_data_copied:`.input {$count :integer} .match $count one {{アセットファイルがクリップボードにコピーされました。}} * {{{$count} 個のアセットファイルがクリップボードにコピーされました。}}`,assets_downloaded:`.input {$count :integer} .match $count one {{アセットファイルがダウンロードされました。}} * {{{$count} 個のアセットファイルがダウンロードされました。}}`,assets_moved:`.input {$count :integer} .match $count one {{アセットが移動されました。}} * {{{$count} 個のアセットが移動されました。}}`,assets_renamed:`.input {$count :integer} .match $count one {{アセットの名前が変更されました。}} * {{{$count} 個のアセットの名前が変更されました。}}`,assets_deleted:`.input {$count :integer} .match $count one {{アセットが削除されました。}} * {{{$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:`プレビュー`,swap_panes:`ペインを入れ替える`,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_field_type_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_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:`.input {$count :integer} .match $count 0 {{{$source} から翻訳されたフィールドはありません。}} one {{{$source} からフィールドを翻訳しました。}} * {{{$source} から {$count} 個のフィールドを翻訳しました。}}`},copy:{none:`コピーされたフィールドはありません。`,complete:`.input {$count :integer} .match $count 0 {{{$source} からコピーされたフィールドはありません。}} one {{{$source} からフィールドをコピーしました。}} * {{{$source} から {$count} 個のフィールドをコピーしました。}}`}},validation:{value_missing:`この項目は必須です。`,range_underflow:{"datetime-local":`日時は {$min} かそれ以降でなければなりません。`,date:`日付は {$min} かそれ以降でなければなりません。`,time:`時刻は {$min} かそれ以降でなければなりません。`,number:`値は {$min} 以上でなければなりません。`,select:`少なくとも {$min} 個の項目を選択してください。`,add:`少なくとも {$min} 個の項目を追加してください。`},range_overflow:{"datetime-local":`日時は {$max} かそれ以前でなければなりません。`,date:`日付は {$max} かそれ以前でなければなりません。`,time:`時刻は {$max} かそれ以前でなければなりません。`,number:`値は {$max} 以下でなければなりません。`,select:`これ以上選択できる項目はありません。最大は {$max} 個です。`,add:`これ以上追加できる項目はありません。最大は {$max} 個です。`},too_short:`少なくとも {$min} 文字は入力してください。`,too_long:`{$max} 文字を超える入力はできません。`,type_mismatch:{number:`数値を入力してください。`,email:`正しいメールアドレスを入力してください。`,url:`正しい URL を入力してください。`}},entry_sidebar:{sidebar_panels:`サイドバーパネル`,validation:{title:`バリデーション`,placeholder:`検証結果がここに表示されます。`,no_errors_found:`エラーは見つかりませんでした。`},history:{title:`履歴`,fetch_failed:`履歴を読み込めませんでした。`,no_history:`履歴が見つかりませんでした。`},backlinks:{title:`バックリンク`,no_entries:`このエントリーを参照しているエントリーはありません。`}},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_urls:`公開 URL`,file_paths:`ファイルパス`,file_data:`ファイルデータ`,kind:`種類`,size:`サイズ`,dimensions:`大きさ`,duration:`再生時間`,used_in:`使われているエントリー`,created_date:`作成日時`,location:`場所`,map_lat_lng:`緯度 {$latitude}、経度 {$longitude} の地図`,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:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}。最大 {$max}。}} * {{{$count} 文字入力されています。最小: {$min}。最大 {$max}。}}`,min:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最小: {$min}}} * {{{$count} 文字入力されています。最小: {$min}。}}`,max:`.input {$count :integer} .match $count 0 {{文字が入力されていません。最大: {$max}。}} * {{{$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:{api_key:{key_label:`API キー`,initial:`{$service} の {$key} を入力してください。`,requested:`検証中…`,error:`入力された {$key} が無効です。確認の上、再度お試しください。`},password:{initial:`{$service} のパスワードを入力してください。`,requested:`ログイン中…`,error:`ユーザー名またはパスワードが間違っています。確認の上、再度お試しください。`}},cloudinary:{iframe_title:`Cloudinary メディアライブラリ`,activate:{button_label:`Cloudinary を有効化`,description:`ログイン後、再度 Sign In ボタンをクリックして続行してください。`},auth_key_label:`API Secret`},uploadcare:{auth_key_label:`API Secret Key`},aws_s3:{auth_key_label:`シークレットアクセスキー`},cloudflare_r2:{auth_key_label:`シークレットアクセスキー`},digitalocean_spaces:{auth_key_label:`シークレットアクセスキー`}},config:{errors:`CMS 設定に問題が見つかりました。問題を解決してから再度お試しください。`,error_locator:{collection:`{$collection} コレクション`,file:`{$file} ファイル`,field:"`{$field}` フィールド"},error:{no_secure_context:`Sveltia CMS は HTTPS またはローカルホスト URL でのみ動作します。`,insecure_urls:`設定ファイルの URL は HTTPS プロトコルまたはローカルホストアドレスを使用する必要があります。`,fetch_failed:`設定ファイルを読み込めませんでした。`,fetch_failed_not_ok:`HTTP レスポンスがステータス {$status} で返されました。`,fetch_failed_with_manual_init:"設定ファイルを取得できませんでした。`config.yml` ファイルの読み込みを防ぐには、`CMS.init()` に渡される設定オブジェクトに [`load_config_file: false`](https://sveltiacms.app/en/docs/api/initialization#providing-a-full-configuration) を追加してください。",parse_failed:`設定ファイルを解析できませんでした。`,parse_failed_invalid_object:`設定ファイルが有効な JavaScript オブジェクトではありません。`,parse_failed_unsupported_type:`設定ファイルが有効なファイル形式ではありません。サポートされているのは YAML、TOML と JSON のみです。`,no_collection:`コレクションが定義されていません。`,missing_backend:`バックエンドが定義されていません。`,missing_backend_name:`バックエンド名が定義されていません。`,unsupported_known_backend:`{$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_deprecated_backend:`廃止予定の {$name} バックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_custom_backend:`カスタムバックエンドは Sveltia CMS では [非対応です](https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented)。`,unsupported_backend_suggestion:`[サポートされているバックエンド](https://sveltiacms.app/en/docs/backends#supported-backends) のいずれかを使用してください。`,missing_repository:`レポジトリが定義されていません。`,invalid_repository:`設定されているレポジトリが正しくありません。この設定は「owner/repo」形式でなければなりません。`,oauth_implicit_flow:`設定されている認証方式 (暗黙的フロー) は Sveltia CMS では非対応です。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/BACKEND_NAME#authentication) を使用してください。`,github_pkce_unsupported:`GitHub の制約により PKCE 認証はまだサポートされていません。代わりに他の [認証方法](https://sveltiacms.app/en/docs/backends/github#authentication) を使用してください。`,oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。`,no_auth_methods:"`auth_methods` オプションには少なくとも 1 つの認証方法を含める必要があります。",missing_media_folder:`メディアフォルダーが定義されていません。`,invalid_media_folder:`設定されているメディアフォルダーが正しくありません。この設定は文字列でなければなりません。`,invalid_public_folder:`設定されているパブリックフォルダーが正しくありません。この設定は文字列でなければなりません。`,public_folder_relative_path:`設定されているパブリックフォルダーが正しくありません。この設定は「/」で始まる絶対パスでなければなりません。`,public_folder_absolute_url:`パブリックフォルダーオプションの絶対 URL は Sveltia CMS では非対応です。`,invalid_collection_no_options:"コレクションは `folder`、`files`、`divider` オプションのいずれかを定義する必要があります。",invalid_collection_multiple_options:"コレクションは `folder`、`files`、`divider` オプションを同時に持つことはできません。",file_format_mismatch:"拡張子 `{$extension}` は `{$format}` 形式と一致しません。",invalid_slug_slash:"スラッグテンプレート `{$slug}` は無効です。スラッシュを含めることはできません。エントリーをサブフォルダーに整理するには、`slug` の代わりに `path` オプションを使用してください。",missing_collection_name:"コレクション {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_name:"コレクション名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_name:"コレクション名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_collection_file_name:"コレクションファイル {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_collection_file_name:"コレクションファイル名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_collection_file_name:"コレクションファイル名は一意でなければなりませんが、`{$name}` が複数回使用されています。",collection_no_fields:`コレクションには少なくとも 1 つのフィールドを定義する必要があります。`,collection_file_no_fields:`コレクションファイルには少なくとも 1 つのフィールドを定義する必要があります。`,collection_file_i18n_required:"コレクションファイルには、`file` パスで `locale` プレースホルダーを使用する場合、`i18n` オプションを定義する必要があります。",missing_field_name:"フィールド {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_field_name:"フィールド名 `{$name}` は無効です。特殊文字を含めることはできません。ネストされたフィールドを作成したい場合は、[ドット表記ではなくオブジェクトフィールドを使用してください](https://sveltiacms.app/en/docs/troubleshooting#using-proper-naming-conventions)。",duplicate_field_name:"フィールド名は一意でなければなりませんが、`{$name}` が複数回使用されています。",missing_variable_type:"変数タイプ {$count} には `name` オプションを空でない文字列として定義する必要があります。",invalid_variable_type:"変数タイプ名 `{$name}` は無効です。特殊文字を含めることはできません。",duplicate_variable_type:"変数タイプ名は一意でなければなりませんが、`{$name}` が複数回使用されています。",date_field_type:"Sveltia CMS では非推奨の Date フィールドタイプはサポートされていません。代わりに `type: date` オプション付きの DateTime フィールドタイプを使用してください。",unsupported_deprecated_option:"Sveltia CMS では非推奨の `{$prop}` オプションはサポートされていません。代わりに `{$newProp}` オプションを使用してください。",allow_multiple:"Sveltia CMS では `allow_multiple` オプションはサポートされていません。代わりにデフォルトで `false` の `multiple` オプションを使用してください。",invalid_list_field:"List フィールドは `field`、`fields`、`types` オプションを同時に持つことはできません。",invalid_list_variable_type:"List フィールドの変数タイプが無効です。`widget` オプションは `{$widget}` に設定されていますが、`object` でなければなりません。",invalid_object_field:"Object フィールドは `fields` と `types` オプションを同時に持つことはできません。",object_field_missing_fields:"Object フィールドは `fields` または `types` オプションのいずれかを定義する必要があります。",relation_field_invalid_collection:"参照されている `{$collection}` コレクションは無効であるか定義されていません。",relation_field_invalid_collection_file:"参照されている `{$file}` ファイルは無効であるか定義されていません。",relation_field_missing_file_name:"ファイルコレクションへの参照には `file` オプションを定義する必要があります。",relation_field_invalid_value_field:"参照されている値フィールド `{$field}` は無効であるか定義されていません。",unexpected:`予期せぬ問題`},warning:{oauth_no_app_id:`OAuth アプリケーション ID が定義されていません。ユーザーがログインするにはアクセストークンを入力する必要があります。`,editorial_workflow_unsupported:`Sveltia CMS ではまだエディトリアルワークフローはサポートされていません。`,open_authoring_unsupported:`Sveltia CMS ではまだオープンオーサリングはサポートされていません。`,nested_collections_unsupported:`Sveltia CMS ではネストされたコレクションはまだサポートされていません。`,unsupported_ignored_option:"`{$prop}` オプションは Sveltia CMS ではサポートされていません。このオプションは無視されます。"},compatibility_link:`詳しくは互換性情報をご覧ください: https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`},local_workflow:{indicator:`ローカル`,unsupported_browser:`お使いのブラウザーはローカルワークフローに対応していません。代わりに Chrome か Edge を使ってください。`,disabled:`お使いのブラウザーではローカルワークフローが無効化されています。<a>有効化する方法はこちら</a>。`},status:{drafts:`下書き`,in_review:`レビュー中`,ready:`公開可`},categories:`カテゴリ`,prefs:{changes:{api_key_saved:`API キーが保存されました。`,api_key_removed:`API キーが削除されました。`,api_key_invalid:`入力された 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:`国際化`,translators:{default:{title:`デフォルト翻訳サービス`,select_service:`サービスを選択`},api_keys:{title:`翻訳サービス API キー`,description:`<a>翻訳サービス</a> の API キーを管理します。`},field_label:`{$service} キー`,description:`<a {$homeHref}>{$service}</a> にユーザー登録して、<a {$apiKeyHref}>発行されたキー</a> をここに入力すると、テキストエントリー項目の素早い翻訳が可能となります。`}},media:{title:`メディア`,stock_photos:{api_keys:{title:`無料画像素材サービス API キー`,description:`<a>無料画像素材サービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,description:`<a {$homeHref}>{$service} API</a> にユーザー登録して、<a {$apiKeyHref}>発行された API キー</a> をここに入力すると、画像エントリー項目に無料のストックフォトを挿入できます。`,credit:`写真提供: {$service}`,no_services:`利用可能な <a>無料画像素材サービス</a> はありません。`},cloud_storage:{api_keys:{title:`クラウドストレージサービス API キー`,description:`<a>クラウドストレージサービス</a> の API キーを管理します。`},field_label:`{$service} API キー`,no_services:`利用可能な <a>クラウドストレージサービス</a> はありません。`}},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 を使用する場合は空欄のままで構いません。`,url:{field_label:`フック URL`,saved:`フック URL が保存されました。`,removed:`フック URL が削除されました。`},auth:{field_label:`認証ヘッダー (例: Bearer <token>) (オプション)`,saved:`認証ヘッダーが保存されました。`,removed:`認証ヘッダーが削除されました。`}}}},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`}}})),w6,T6,E6=s((()=>{Jue(),Yue(),Z(),Np(),rp(),eN(),w6=np(()=>Oh.current),T6=()=>{Object.entries(Object.assign({"/src/lib/locales/en.yaml":S6,"/src/lib/locales/ja.yaml":C6})).forEach(([e,t])=>{let n=Dp(e).filename;wh(n,t)}),Ah({fallbackLocale:`en`,initialLocale:A($M).locale||(kh()??``).split(`-`)[0]||`en`})}})),D6,Xue=s((()=>{Z(),rp(),E6(),SF(),D6=dn([oF,w6],([e],t)=>{let n=[`name`];e.every(e=>!!e.commitAuthor)&&n.push(`commit_author`),e.every(e=>!!e.commitDate)&&n.push(`commit_date`),t(n.map(e=>({key:e,label:X(`sort_keys.${e}`)})))})}));function Zue(e,t){O(t,!0);let n=()=>j(s1,`$listedAssets`,c),r=()=>j(zA,`$isSmallScreen`,c),i=()=>j(BA,`$isMediumScreen`,c),a=()=>j(c1,`$assetGroups`,c),o=()=>j(D6,`$sortKeys`,c),s=()=>j(o1,`$currentView`,c),[c,l]=hn(),u=M(()=>!!n().length),d=M(()=>n().length>1);{let t=M(()=>X(`asset_list`));$Q(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=k6(),c=I(n),l=e=>{{let t=M(()=>Object.values(a()).flat(1));l6(e,{get allItems(){return z(t)},get selectedItems(){return uF}})}};G(c,e=>{r()||i()||e(l)});var f=L(c,2);UI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(d));m6(p,{get disabled(){return z(e)},get currentView(){return o1},get sortKeys(){return o()},"aria-controls":`asset-list`})}var m=L(p,2);{let e=M(()=>X(`type`)),t=M(()=>!z(d)),n=M(()=>X(`all`)),r=M(()=>CS.map(e=>({label:X(e),field:`fileType`,pattern:e})));o6(m,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return o1},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var h=L(m,2);{let e=M(()=>!z(u));_6(h,{get disabled(){return z(e)},get currentView(){return o1},"aria-controls":`asset-list`})}var g=L(h,2),_=e=>{var t=O6(),n=I(t);zI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{zF(e,{name:`info`})},t=M(()=>!z(u)),n=M(()=>!!s().showInfo),i=M(()=>!!s().showInfo),a=M(()=>X(s().showInfo?`hide_info`:`show_info`));tI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`asset-info`,get"aria-expanded"(){return z(i)},get"aria-label"(){return z(a)},onclick:()=>{o1.update(e=>({...e,showInfo:!s().showInfo}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(g,e=>{r()||i()||e(_)}),U(e,n)},$$slots:{default:!0}})}k(),l()}var O6,k6,Que=s((()=>{Q(),Y(),Z(),B$(),c6(),p6(),g6(),x6(),SF(),AS(),l1(),Xue(),WA(),O6=V(`<!> <!>`,1),k6=V(`<!> <!> <!> <!> <!> <!>`,1)}));function A6(e,t){K(e,M6);let n=J(t,`primaryToolbar`,3,void 0),r=J(t,`secondaryToolbar`,3,void 0),i=J(t,`mainContent`,3,void 0),a=J(t,`secondarySidebar`,3,void 0),o=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]);var s=j6();ys(s,()=>({role:`group`,class:`wrapper`,...o}),void 0,void 0,void 0,`svelte-1x2ldab`);var c=F(s);Eo(c,()=>n()??E);var l=L(c,2),u=F(l),d=F(u);Eo(d,()=>r()??E),Eo(L(d,2),()=>i()??E),D(u),Eo(L(u,2),()=>a()??E),D(l),D(s),U(e,s)}var j6,M6,N6=s((()=>{Q(),Y(),j6=V(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),M6={hash:`svelte-1x2ldab`,code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;height:100%;background-color:var(--sui-primary-background-color);
874
+
875
+ @media (768px <= width) {view-transition-name:page-main;
876
+ }.sui.toolbar.primary {justify-content:center;
877
+
878
+ @media (width < 768px) {background-color:var(--sui-secondary-background-color);
879
+ }}}.resizable-pane > .wrapper.svelte-1x2ldab {border-start-start-radius:16px;}.main-inner.svelte-1x2ldab {flex:auto;display:flex;overflow:hidden;.main-inner-main:where(.svelte-1x2ldab) {flex:auto;display:flex;flex-direction:column;overflow:hidden;}.secondary-sidebar {flex:none;overflow:auto;box-sizing:content-box;width:320px;background-color:var(--sui-secondary-background-color);
880
+
881
+ @media (768px <= width) {border-start-start-radius:16px;
882
+ }[role='listbox'] {padding:12px;}}}`}}));function P6(e,t){O(t,!0),K(e,R6);let n=()=>j(f1,`$hasOverlay`,i),r=()=>j(zA,`$isSmallScreen`,i),[i,a]=hn(),o=J(t,`class`,3,``),s=J(t,`uiSettingsKey`,3,void 0),c=J(t,`primarySidebar`,3,void 0),l=J(t,`main`,3,void 0),u=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`uiSettingsKey`,`primarySidebar`,`main`]),d=N(void 0),f=N(void 0),p=null,m=async()=>{if(!s())return;let{databaseName:e}=A(DP)?.repository??{};p=e?new aS(e,`ui-settings`):null,P(f,(await p?.get(s()))?.sidebarWidth??240,!0)},h=async e=>{!p||!s()||!z(d)||await p.set(s(),{...await p.get(s()),sidebarWidth:Math.round(z(d).clientWidth*(e/100))})};ri(()=>{n(),window.requestAnimationFrame(()=>{n()||m()})});var g=L6();ys(g,()=>({role:`group`,id:`page-container`,class:`outer ${o()??``}`,inert:n(),...u}),void 0,void 0,void 0,`svelte-1kkfo1f`);var _=F(g),v=e=>{var t=F6(),n=I(t);Eo(n,()=>c()??E),Eo(L(n,2),()=>l()??E),U(e,t)},y=e=>{hR(e,{onResize:({sizes:e})=>{h(e[0])},children:(e,t)=>{var n=I6(),r=I(n);vR(r,{get defaultSize(){return`${z(f)??``}px`},minSize:`160px`,maxSize:`480px`,children:(e,t)=>{var n=H();Eo(I(n),c),U(e,n)},$$slots:{default:!0}});var i=L(r,2);dR(i,{}),vR(L(i,2),{children:(e,t)=>{var n=H();Eo(I(n),l),U(e,n)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})};G(_,e=>{r()||!c()||!l()?e(v):z(f)!==void 0&&e(y,1)}),D(g),Us(g,e=>P(d,e),()=>z(d)),U(e,g),k(),a()}var F6,I6,L6,R6,z6=s((()=>{Q(),Y(),B$(),cS(),rp(),S1(),kP(),WA(),F6=V(`<!> <!>`,1),I6=V(`<!> <!> <!>`,1),L6=V(`<div><!></div>`),R6={hash:`svelte-1kkfo1f`,code:`.outer.svelte-1kkfo1f {flex:auto;display:flex;overflow:hidden;&[inert] {display:none;}.primary-sidebar {display:flex;flex-direction:column;flex:none;overflow-y:auto;height:100%;
883
+
884
+ @media (width < 768px) {flex:auto;width:auto;background-color:var(--sui-primary-background-color);
885
+ }
886
+
887
+ /* Mobile header */header {display:flex;align-items:center;justify-content:space-between;padding:0 10px;height:var(--sui-primary-toolbar-size);h2 {padding:0 10px;font-size:var(--sui-font-size-x-large);}}.sui.search-bar {margin-inline:12px;--sui-textbox-background-color: var(--sui-tertiary-background-color);}[role='radiogroup'] {width:100%;}[role='listbox'] {margin:8px;border-width:0;background-color:transparent;button {display:flex;justify-content:flex-start;border-radius:var(--sui-control-medium-border-radius);width:100%;text-align:start;
888
+
889
+ @media (pointer: coarse) {height:48px;
890
+ }&:not(:first-child) {margin-top:4px;}&:not(:focus) {border-color:transparent;}span {flex:none;}.label {flex:auto;overflow:hidden;}.icon {transition:color 200ms;}.icon.check {display:none;}.count {padding:2px;color:var(--sui-tertiary-foreground-color);font-size:var(--sui-font-size-small);transition:color 200ms;}}[role='option'][aria-selected='true'] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);.count {color:var(--sui-highlighted-foreground-color);}}[role='option'].dragover {color:var(--sui-primary-accent-color-inverted) !important;background-color:var(--sui-primary-accent-color) !important;}}.sui.divider {margin:8px 0;}}}`}}));function $ue(e,t){O(t,!0);let n=M(()=>t.asset.path),r=M(()=>t.asset.name),i=M(()=>t.asset.folder),a=M(()=>t.asset.kind);EL(e,{onclick:()=>{y1(`/assets/${z(n)}`,{transitionType:`forwards`})},children:(e,n)=>{var o=V6(),s=I(o);CL(s,{class:`image`,children:(e,n)=>{n2(e,{get kind(){return z(a)},get asset(){return t.asset},variant:`icon`,cover:!0})},$$slots:{default:!0}});var c=L(s,2);CL(c,{class:`collection`,children:(e,t)=>{var n=H();oo(I(n),()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>i1(z(i))]),U(e,t)}),U(e,n)},$$slots:{default:!0}}),CL(L(c,2),{class:`title`,children:(e,t)=>{var n=B6();qF(F(n),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(r))),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}}),U(e,o)},$$slots:{default:!0}}),k()}var B6,V6,ede=s((()=>{Q(),Y(),Z(),B$(),l2(),S1(),l1(),B6=V(`<div role="none" class="label"><!></div>`),V6=V(`<!> <!> <!>`,1)})),H6,U6,W6,G6=s((()=>{H6=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLocaleLowerCase():``),U6=(e,t=void 0)=>{if(!t)return H6(e);let n=t.get(e);if(n!==void 0)return n;let r=H6(e);return t.set(e,r),r},W6=({value:e,terms:t,normalizedValueCache:n=void 0})=>U6(e,n).includes(t)})),K6,q6,tde=s((()=>{rp(),SF(),K3(),G6(),K6=({assets:e,terms:t})=>{if(t=H6(t),!e.length||!t)return[];let n=new Map;return e.filter(e=>W6({value:e.name,terms:t,normalizedValueCache:n}))},q6=dn([oF,G3],([e,t])=>K6({assets:e,terms:t}))}));function nde(e,t){O(t,!0);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(q6,`$assetSearchResults`,i),[i,a]=hn();ti(()=>{mn(m1,X(`viewing_asset_search_results`,{values:{terms:n(),count:r().length}}))}),L$(e,{"aria-labelledby":`search-results-assets`,children:(e,t)=>{var i=Y6(),a=F(i),o=e=>{{let t=M(()=>X(`assets`));z3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=H();oo(I(i),n,e=>{bR(e,{get items(){return r()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{$ue(e,{get asset(){return t()}})}),U(e,n)},$$slots:{renderItem:!0}})}),U(e,i)},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=J6(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(a,e=>{r().length?e(o):n()&&e(s,1)}),D(i),U(e,i)},$$slots:{default:!0}}),k(),a()}var J6,Y6,rde=s((()=>{Q(),Y(),Z(),B$(),Yx(),H3(),ede(),S1(),K3(),tde(),J6=V(`<span role="none"> </span>`),Y6=V(`<div role="none"><!></div>`)}));function ide(e,t){O(t,!0);let n=(e,n)=>{let a=()=>n?.().collection,o=()=>n?.().collectionFile,s=M(()=>{let{defaultLocale:e}=(o()??a())._i18n??Cb;return{defaultLocale:e}}),c=M(()=>{let{content:e}=z(r)[z(s).defaultLocale]??Object.values(z(r))[0]??{};return{content:e}});var l=H(),u=I(l),d=e=>{EL(e,{onclick:()=>{y1(`/collections/${a().name}/entries/${o()?.name||z(i)}`,{transitionType:`forwards`})},children:(e,n)=>{var r=Z6(),i=I(r);CL(i,{class:`image`,children:(e,n)=>{var r=H(),i=I(r),o=e=>{var n=H();eo(I(n),()=>CF(a(),t.entry),null,(e,t)=>{var n=H(),r=I(n),i=e=>{_3(e,{get src(){return z(t)},variant:`icon`,cover:!0})};G(r,e=>{z(t)&&e(i)}),U(e,n)}),U(e,n)};G(i,e=>{a()._type===`entry`&&e(o)}),U(e,r)},$$slots:{default:!0}});var s=L(i,2);CL(s,{class:`collection`,children:(e,t)=>{var n=H();oo(I(n),()=>Oh.current,e=>{var t=Fa();R(e=>W(t,e),[()=>Gb(a())]),U(e,t)}),U(e,n)},$$slots:{default:!0}}),CL(L(s,2),{class:`title`,children:(e,n)=>{var r=X6();qF(F(r),{lines:2,children:(e,n)=>{var r=H(),i=I(r),s=e=>{var t=Fa();R(e=>W(t,e),[()=>Gy(o())]),U(e,t)},c=e=>{var n=H();oo(I(n),()=>Oh.current,e=>{var n=H();So(I(n),()=>CO(a(),t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)}),U(e,n)};G(i,e=>{o()?e(s):e(c,-1)}),U(e,r)},$$slots:{default:!0}}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,r)},$$slots:{default:!0}})};G(u,e=>{z(c).content&&e(d)}),U(e,l)},r=M(()=>t.entry.locales),i=M(()=>t.entry.subPath);var a=H();mo(I(a),17,()=>WO(t.entry),e=>e.name,(e,r)=>{var i=H();eo(I(i),Jx,null,e=>{var i=H();mo(I(i),17,()=>Ky(z(r),t.entry),e=>e.name,(e,t)=>{var i=H();eo(I(i),Jx,null,e=>{n(e,()=>({collection:z(r),collectionFile:z(t)}))}),U(e,i)},e=>{n(e,()=>({collection:z(r)}))}),U(e,i)}),U(e,i)}),U(e,a),k()}var X6,Z6,ade=s((()=>{Q(),Y(),Z(),B$(),Yx(),v3(),S1(),qb(),Yy(),JO(),TF(),wO(),jb(),X6=V(`<div role="none" class="label"><!></div>`),Z6=V(`<!> <!> <!>`,1)})),Q6,$6,e8,ode=s((()=>{rp(),E6(),Vy(),Yy(),JO(),wO(),K3(),G6(),Q6=({entry:e,terms:t,normalizedValueCache:n=void 0})=>{let r=0,i=WO(e);if(i.length){i.forEach(i=>{W6({value:i.label||i.name,terms:t,normalizedValueCache:n})&&(r+=10),r+=Ky(i,e).filter(e=>W6({value:e.label||e.name,terms:t,normalizedValueCache:n})).length});let[a]=i;W6({value:CO(a,e,{useTemplate:!0,allowMarkdown:!0}),terms:t,normalizedValueCache:n})&&(r+=10)}return Object.values(e.locales).forEach(({content:e})=>{r+=Object.values(e).filter(e=>typeof e==`string`&&!!e&&W6({value:e,terms:t,normalizedValueCache:n})||typeof e==`number`&&W6({value:String(e),terms:t,normalizedValueCache:n})).length}),r},$6=({entries:e,terms:t})=>{if(t=H6(t),!e.length||!t)return[];let n=new Map;return e.map(e=>({entry:e,points:Q6({entry:e,terms:t,normalizedValueCache:n})})).filter(({points:e})=>e>0).sort((e,t)=>t.points-e.points).map(({entry:e})=>e)},e8=dn([Iy,G3,w6],([e,t])=>$6({entries:e,terms:t}))}));function sde(e,t){O(t,!0);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(e8,`$entrySearchResults`,i),[i,a]=hn();ti(()=>{mn(m1,X(`viewing_entry_search_results`,{values:{terms:n(),count:r().length}}))}),L$(e,{"aria-labelledby":`search-results-entries`,children:(e,t)=>{var i=n8(),a=F(i),o=e=>{{let t=M(()=>X(`entries`));z3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return r().length},children:(e,t)=>{var i=H();oo(I(i),n,e=>{bR(e,{get items(){return r()},itemKey:`id`,renderItem:(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{ide(e,{get entry(){return t()}})}),U(e,n)},$$slots:{renderItem:!0}})}),U(e,i)},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=t8(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})};G(a,e=>{r().length?e(o):n()&&e(s,1)}),D(i),U(e,i)},$$slots:{default:!0}}),k(),a()}var t8,n8,cde=s((()=>{Q(),Y(),Z(),B$(),Yx(),H3(),ade(),S1(),K3(),ode(),t8=V(`<span role="none"> </span>`),n8=V(`<div role="none"><!></div>`)}));function lde(e,t){O(t,!0),K(e,a8);let n=()=>j(zA,`$isSmallScreen`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn();var o=i8(),s=F(o),c=e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=r8(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`search_results`)]),U(e,n)},$$slots:{default:!0}})};G(s,e=>{n()||e(c)});var l=L(s,2),u=F(l),d=e=>{sde(e,{})};G(u,e=>{r()===`contents`&&e(d)});var f=L(u,2),p=e=>{nde(e,{})};G(f,e=>{r()===`assets`&&e(p)}),D(l),D(o),U(e,o),k(),a()}var r8,i8,a8,ude=s((()=>{Q(),Y(),Z(),B$(),rde(),cde(),K3(),WA(),r8=V(`<h2 role="none"> </h2>`),i8=V(`<div role="none" class="wrapper svelte-1p7vfqa"><!> <div role="none" class="results svelte-1p7vfqa"><!> <!></div></div>`),a8={hash:`svelte-1p7vfqa`,code:`.wrapper.svelte-1p7vfqa {flex:auto;display:flex;flex-direction:column;overflow:hidden;width:100%;background-color:var(--sui-primary-background-color);}.results.svelte-1p7vfqa {flex:auto;overflow:auto;& > .sui.group {display:contents;& > .inner > div {display:contents;}}h3 {flex:none;margin:16px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-large);& + div {overflow:auto;flex:auto;}
891
+
892
+ @media (width < 768px) {display:none;
893
+ }}}`}}));function o8(e,t){O(t,!0),K(e,c8);let n=()=>j(zA,`$isSmallScreen`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn();A6(e,{primaryToolbar:e=>{var t=H(),i=I(t),a=e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=s8(),i=I(n);{let e=M(()=>X(r()===`assets`?`back_to_asset_folder_list`:`back_to_collection_list`));Q0(i,{get"aria-label"(){return z(e)},onclick:()=>{mn(G3,``),y1(r()===`assets`?`/assets`:`/collections`,{transitionType:`backwards`})}})}var a=L(i,2);q3(F(a),{}),D(a),U(e,n)},$$slots:{default:!0}})};G(i,e=>{n()&&e(a)}),U(e,t)},mainContent:e=>{lde(e,{})},$$slots:{primaryToolbar:!0,mainContent:!0}}),k(),a()}var s8,c8,l8=s((()=>{Q(),Y(),Z(),B$(),N6(),$0(),Z3(),ude(),S1(),K3(),WA(),s8=V(`<!> <div role="search" class="svelte-1476at1"><!></div>`,1),c8={hash:`svelte-1476at1`,code:`[role='search'].svelte-1476at1 {display:contents;.sui.search-bar {flex:auto;}}`}})),u8,d8,f8=s((()=>{rp(),K3(),u8=/^\/search\/(?<terms>.+)$/,d8=e=>{let{groups:t}=e.match(u8)??{};if(!t)return!1;let{terms:n}=t;return n&&n!==A(G3)&&G3.set(n),A(W3)||W3.set(`contents`),!0}}));function p8(e,t){O(t,!0);let n=()=>j(Ip,`$selectedAssetFolder`,u),r=()=>j(t1,`$showAssetOverlay`,u),i=()=>j(zA,`$isSmallScreen`,u),a=()=>j(Pp,`$allAssetFolders`,u),o=()=>j(s1,`$listedAssets`,u),s=()=>j(fF,`$overlaidAsset`,u),c=()=>j(oF,`$allAssets`,u),l=()=>j(P0,`$assetUpdatesToast`,u),[u,d]=hn(),f=/^\/assets(?:\/(?<folderPath>.+?)(?:\/(?<fileName>[^/]+\.[A-Za-z0-9]+))?)?$/,p=N(!1),m=N(!1),h=M(()=>Oh.current&&n()?i1(n()):``),g=async()=>{let{path:e}=h1(),t=e.match(f);if(P(p,!1),P(m,!1),!t?.groups){mn(t1,!1),P(m,d8(e),!0);return}let{folderPath:r,fileName:l}=t.groups;if(!r){i()?(mn(Ip,void 0),mn(t1,!1),mn(m1,X(`viewing_asset_folder_list`)),P(p,!0)):y1(`/assets/-/all`);return}let u=window.history.state?.folder??a().find(({internalPath:e,collectionName:t})=>r===`-/all`?e===void 0&&t===void 0:e===r);if(u?(0,m8.default)(n(),u)||mn(Ip,u):mn(Ip,void 0),!l){await Jx(100),mn(t1,!1),mn(m1,X(`viewing_x_asset_folder`,{values:{folder:z(h),count:o().length}}));return}mn(fF,l?c().find(e=>e.path===`${r}/${l}`):void 0),mn(m1,s()?X(`viewing_x_asset_details`,{values:{name:s().name}}):X(`file_not_found`)),mn(t1,!0)};ic(()=>(g(),()=>{mn(t1,!1)}));var _=h8();xa(`hashchange`,Ir,e=>{v1(e,g,f)});var v=I(_);{let e=e=>{var t=H(),n=I(t),r=e=>{Bue(e,{get isSearchPage(){return z(m)}})};G(n,e=>{(!i()||z(p))&&e(r)}),U(e,t)},t=e=>{var t=H(),n=I(t),r=e=>{o8(e,{})},a=e=>{{let t=e=>{Wue(e,{})},n=e=>{var t=H(),n=I(t),r=e=>{Zue(e,{})};G(n,e=>{o().length&&e(r)}),U(e,t)},r=e=>{Rue(e,{})},i=e=>{Kue(e,{})},a=M(()=>X(`x_asset_folder`,{values:{folder:z(h)}}));A6(e,{id:`assets-container`,get"aria-label"(){return z(a)},primaryToolbar:t,secondaryToolbar:n,mainContent:r,secondarySidebar:i,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};G(n,e=>{z(m)?e(r):(!i()||!z(p))&&e(a,1)}),U(e,t)},n=M(()=>X(`asset_library`));P6(v,{uiSettingsKey:`assets-page`,get"aria-label"(){return z(n)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var y=L(v,2),b=e=>{Due(e,{})};G(y,e=>{r()&&e(b)});var x=L(y,2);kue(x,{});var S=L(x,2);Pue(S,{});var C=L(S,2);nz(C,{get show(){return l().saved},set show(e){_n(P0,B(l).saved=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(l().published?`assets_saved_and_published`:`assets_saved`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var w=L(C,2);nz(w,{get show(){return l().moved},set show(e){_n(P0,B(l).moved=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`assets_moved`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ee=L(w,2);nz(ee,{get show(){return l().renamed},set show(e){_n(P0,B(l).renamed=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`assets_renamed`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),nz(L(ee,2),{get show(){return l().deleted},set show(e){_n(P0,B(l).deleted=e,B(l))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`assets_deleted`,{values:{count:l().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,_),k(),d()}var m8,h8,dde=s((()=>{Q(),Y(),Z(),B$(),Yx(),m8=u(YM()),oc(),Oue(),Aue(),Fue(),zue(),Vue(),Gue(),que(),Que(),N6(),z6(),l8(),S1(),SF(),F0(),Hp(),l1(),f8(),WA(),h8=V(`<!> <!> <!> <!> <!> <!> <!> <!>`,1)}));function fde(e,t){O(t,!0),K(e,S8);let n=()=>j(pF,`$uploadingAssets`,o),r=()=>j(dae,`$processedAssets`,o),i=()=>j(t1,`$showAssetOverlay`,o),a=()=>j(r1,`$showUploadAssetsConfirmDialog`,o),[o,s]=hn(),c=N(Cr([])),l=N(!0),u=M(()=>n().files),d=M(()=>n().folder),f=M(()=>n().originalAssets),p=M(()=>z(f)?.[0]),m=M(()=>r().processing),h=M(()=>r().undersizedFiles),g=M(()=>r().oversizedFiles),_=M(()=>r().transformedFileMap),v=M(()=>nF().config),y=M(()=>z(v).max_file_size),b=M(()=>z(p)||z(d)?.internalPath===void 0?[]:bF(z(d).internalPath)),x=M(()=>xF(z(c),z(b))),S=M(()=>z(x).length);ti(()=>{P(c,[...z(h)],!0),P(l,!0)}),ti(()=>{i()||mn(pF,{folder:void 0,files:[]})});{let t=M(()=>X(z(p)?`replace_asset`:`upload_assets`)),n=M(()=>X(z(p)?`replace`:`upload`)),r=M(()=>!z(c).length);cL(e,{get open(){return a()},get title(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{let e=z(p)?z(f):z(l)?z(b):[];await q2({files:z(c),folder:z(d),originalAssets:e},{commitType:`uploadMedia`}),mn(pF,{folder:void 0,files:[]})},onCancel:()=>{mn(pF,{folder:void 0,files:[]})},children:(e,t)=>{var n=x8(),r=I(n),i=e=>{var t=g8(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`processing_files`,{values:{count:z(u).length}})]),U(e,t)};G(r,e=>{z(m)&&e(i)});var a=L(r,2),o=e=>{var t=_8(),n=F(t),r=F(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`confirm_replacing_file`,{values:{name:z(p).name}})]),U(e,t)},a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`confirm_uploading_files`,{values:{count:z(c).length,folder:`/${z(d)?.internalPath}`}})]),U(e,t)};G(r,e=>{z(p)?e(i):e(a,-1)}),D(n),y3(L(n,2),{get transformedFileMap(){return z(_)},get files(){return z(c)},set files(e){P(c,e,!0)}}),D(t),R(e=>q(t,`aria-label`,e),[()=>X(`uploading_files`)]),U(e,t)};G(a,e=>{z(c).length&&e(o)});var s=L(a,2),f=e=>{var t=v8(),n=F(t);VF(n,{status:`warning`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`warning_oversized_files`,{values:{count:z(g).length,size:qC(z(y))}})]),U(e,n)},$$slots:{default:!0}}),y3(L(n,2),{get files(){return z(g)},get transformedFileMap(){return z(_)},removable:!1}),D(t),R(e=>q(t,`aria-label`,e),[()=>X(`oversized_files`)]),U(e,t)};G(s,e=>{z(g).length&&e(f)});var h=L(s,2),v=e=>{var t=b8(),n=F(t),r=L(n);{let e=M(()=>X(`file_name_conflict_resolution`));iR(r,{get"aria-label"(){return z(e)},onChange:({detail:e})=>{P(l,e.value===`replace`)},children:(e,t)=>{var n=y8(),r=I(n);sR(r,{value:`replace`,get checked(){return z(l)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`replace`)]),U(e,n)},$$slots:{default:!0}});var i=L(r,2);{let e=M(()=>!z(l));sR(i,{value:`keep`,get checked(){return z(e)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keep_both`)]),U(e,n)},$$slots:{default:!0}})}U(e,n)},$$slots:{default:!0}})}D(t),R(e=>W(n,`${e??``} `),[()=>X(`file_name_conflict_confirmation`,{values:{count:z(S)}})]),U(e,t)};G(h,e=>{z(S)&&e(v)}),U(e,n)},$$slots:{default:!0}})}k(),s()}var g8,_8,v8,y8,b8,x8,S8,pde=s((()=>{Q(),Y(),Z(),B$(),w3(),SF(),J2(),l1(),rF(),ew(),g8=V(`<div role="status"> </div>`),_8=V(`<div role="group" class="section uploading svelte-96nj3d"><div role="none"><!></div> <!></div>`),v8=V(`<div role="group" class="section oversized svelte-96nj3d"><!> <!></div>`),y8=V(`<!> <!>`,1),b8=V(`<div role="group" class="section svelte-96nj3d"> <!></div>`),x8=V(`<!> <!> <!> <!>`,1),S8={hash:`svelte-96nj3d`,code:`.section.svelte-96nj3d {display:flex;flex-direction:column;gap:12px;&:not(:first-child) {margin-top:16px;}& > * {flex:none;}&.oversized .files {opacity:0.5;}}`}}));function mde(e,t){O(t,!0);let n=()=>j(pF,`$uploadingAssets`,s),r=()=>j(Lp,`$targetAssetFolder`,s),i=()=>j(n1,`$showUploadAssetsDialog`,s),a=()=>j(HA,`$hasMouse`,s),o=()=>j(t1,`$showAssetOverlay`,s),[s,c]=hn(),l=N(void 0),u=M(()=>n().originalAssets),d=M(()=>z(u)?.[0]),f=M(()=>!z(d)),p=M(()=>z(d)?yS.getType(z(d).name)??void 0:void 0),m=e=>{e.length&&(mn(pF,{folder:z(d)?z(d).folder:r(),files:e,originalAssets:z(u)}),mn(n1,!1))};ti(()=>{!a()&&i()&&z(l)?.open()}),ti(()=>{o()||mn(n1,!1)});var h=H(),g=I(h),_=e=>{{let t=M(()=>z(d)?X(`replace_x`,{values:{name:z(d).name}}):X(`upload_assets`));$I(e,{get title(){return z(t)},showOk:!1,get open(){return vn(),i()},set open(e){mn(n1,e)},children:(e,t)=>{T3(e,{showUploadButton:!0,get accept(){return z(p)},get multiple(){return z(f)},onDrop:({files:e})=>{m(e)}})},$$slots:{default:!0}})}},v=e=>{Us(_L(e,{get accept(){return z(p)},get multiple(){return z(f)},onSelect:({files:e})=>{m(e)},onCancel:()=>{mn(n1,!1)}}),e=>P(l,e,!0),()=>z(l))};G(g,e=>{a()?e(_):e(v,-1)}),U(e,h),k(),c()}var hde=s((()=>{Q(),Y(),Z(),B$(),bS(),M3(),SF(),Hp(),l1(),WA()}));function gde(e,t){O(t,!0),K(e,w8);{let t=e=>{var t=C8(),n=F(t),r=F(n,!0);D(n),D(t),R((e,n)=>{q(t,`aria-label`,e),W(r,n)},[()=>X(`cms_config`),()=>Ay(qP)]),U(e,t)},n=M(()=>X(`site_configuration_editor`));P6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var C8,w8,_de=s((()=>{Q(),Y(),Z(),My(),z6(),$P(),C8=V(`<div role="blockquote" class="svelte-2picl5"><pre class="svelte-2picl5"> </pre></div>`),w8={hash:`svelte-2picl5`,code:`div.svelte-2picl5 {flex:auto;overflow:auto;}pre.svelte-2picl5 {margin:0;padding:16px;width:100%;min-width:fit-content;min-height:-moz-available;min-height:-webkit-fill-available;min-height:stretch;background-color:var(--sui-primary-background-color);}`}})),T8,E8,D8=s((()=>{rp(),qb(),Yy(),W4(),_A(),T8=({getFieldArgs:e,fieldConfig:t,sourceLanguage:n,value:r})=>{let{keyPath:i}=e;Object.entries(A(z4).currentValues).forEach(([a,o])=>{if(i.includes(`.`)){let t=i.match(/(?<path>.+?)\.[^.]*$/)?.groups?.path;if(!Object.keys(o).some(e=>e.startsWith(`${t}.`))&&!uA({...e,keyPath:t}))return}if(t.widget===`relation`){let{value_field:e=`{{slug}}`}=t;e.startsWith(`{{locale}}/`)&&r.startsWith(`${n}/`)&&(r=`${a}/${r.slice(n.length+1)}`)}a!==n&&o[i]!==r&&(o[i]=r)})},E8=({draft:{collectionName:e,fileName:t,isIndexFile:n},locale:r,target:i={},getValueMap:a=void 0})=>{let o=Wb(e),s=o&&t?Wy(o,t):void 0;if(!o||t&&!s)return;let{defaultLocale:c,canonicalSlug:{key:l}}=(s??o)._i18n,u=e=>A(B4)&&e.i18n===`duplicate`&&r===c,d=(r,i)=>{let o=typeof a==`function`?a():r,s={collectionName:e,fileName:t,keyPath:i,valueMap:o,isIndexFile:n};return{valueMap:o,getFieldArgs:s,fieldConfig:uA({...s})}};return new Proxy(i,{set:(e,t,n)=>{if(e[t]!==n&&(e[t]=n),[l].includes(t))return!0;let{fieldConfig:i,getFieldArgs:a}=d(e,t);if(!i)return!0;let o=A(z4)?.validities?.[r]?.[t];return o&&typeof n==`string`&&dA({fieldConfig:i,locale:r})&&(o.valueMissing=!n),u(i)&&T8({getFieldArgs:a,fieldConfig:i,sourceLanguage:r,value:n}),!0},deleteProperty:(e,t)=>{delete e[t];let{fieldConfig:n}=d(e,t);return n&&u(n)&&Object.entries(A(z4).currentValues).forEach(([e,n])=>{e!==r&&t in n&&delete n[t]}),!0}})}})),O8,k8,A8,j8,M8,N8,P8,F8,I8,L8,R8,z8,B8,V8=s((()=>{Np(),p(),cS(),rp(),kP(),$P(),I4(),W4(),D8(),eN(),O8=0,k8=void 0,A8={saved:!1,restored:!1,deleted:!1},j8=un({show:!1}),M8=un({...A8}),N8=async(e,t=``)=>{await k8?.delete([e,t])},P8=async(e,t=``)=>{let n=await k8?.get([e,t]);return n?n.cmsConfigVersion===A(YP)?n:(await N8(e,t),null):null},F8=async e=>{if(!(A($M).useDraftBackup??!0)||!A(V4))return;let{collectionName:t,fileName:n,originalEntry:r,currentLocales:i={},currentSlugs:a={},currentValues:o={},files:s}=e,c=n??r?.slug??``;if(A(U4)){let e={timestamp:new Date,cmsConfigVersion:A(YP),collectionName:t,slug:c,currentLocales:i,currentSlugs:f(a),currentValues:f(o),files:s};await k8?.put(e)}else await P8(t,c)&&await N8(t,c)},I8=({backup:e,collectionName:t,fileName:n})=>{let{currentLocales:r,currentSlugs:i,currentValues:a,files:o}=e,s=new Map;B4.set(!1),z4.update(e=>{if(e){e.currentLocales=r,e.currentSlugs=i;let c=w4(e.collection);Object.entries(a).forEach(([r,i])=>{if(c&&c in i){let t=e.originalEntry?.locales[r]?.content?.[c];t===void 0?delete i[c]:i[c]=t}Object.entries(i).forEach(([t,n])=>{typeof n==`string`&&([...n.matchAll(Cp(`g`))].forEach(([t])=>{let r=o[t],{file:i}=r??{};if(!r||!i)return;let a=``;s.has(i)?a=s.get(i):(a=URL.createObjectURL(i),e.files[a]=r,s.set(i,a)),n=n.replaceAll(t,a)}),i[t]=n)}),e.currentValues[r]?Object.assign(e.currentValues[r],i):e.currentValues[r]=E8({draft:{collectionName:t,fileName:n},locale:r,target:structuredClone(i)}),e.originalValues[r]||(e.originalValues[r]={})})}return e}),B4.set(!0)},L8=async({collectionName:e,fileName:t,slug:n=``})=>{if(!(A($M).useDraftBackup??!0))return;let r=await P8(e,n);if(!r)return;let{timestamp:i}=r,{promise:a,resolve:o}=Promise.withResolvers();j8.set({show:!0,timestamp:i,resolve:o});let s=await a;s!==void 0&&(s?(I8({backup:r,collectionName:e,fileName:t}),V4.set(!0)):await N8(e,n),M8.set({restored:s,deleted:!s,saved:!1}))},R8=async()=>{if(!(A($M).useDraftBackup??!0))return;let e=A(z4);if(!e||A(M8).saved)return;let{collectionName:t,originalEntry:n}=e;await P8(t,n?.slug)&&M8.set({restored:!1,deleted:!1,saved:!0})},z8=()=>{M8.set({...A8})},DP.subscribe(e=>{if(e&&!k8){let{databaseName:t}=e.repository??{};if(t){k8=new aS(t,`draft-backups`,{keyPath:[`collectionName`,`slug`]});return}}k8=null}),z4.subscribe(e=>{globalThis.clearTimeout(O8),e?.id!==B8&&(B8=e?.id,V4.set(!1)),e&&k8&&(O8=globalThis.setTimeout(()=>{F8(e)},500))})}));function vde(e,t){O(t,!0);let n=()=>j(j8,`$restoreDialogState`,a),r=()=>j(AF,`$showContentOverlay`,a),i=()=>j(M8,`$backupToastState`,a),[a,o]=hn(),s=M(()=>new Date),c=M(()=>n().resolve),l=M(()=>n().timestamp),u=M(()=>z(s).getUTCFullYear()===z(l)?.getUTCFullYear()),d=M(()=>z(u)&&z(s).getUTCMonth()===z(l)?.getUTCMonth()),f=M(()=>z(d)&&z(s).getUTCDate()===z(l)?.getUTCDate()),p=M(()=>z(l)?.toLocaleString(Oh.current,{year:z(u)?void 0:`numeric`,month:z(f)?void 0:`short`,day:z(f)?void 0:`numeric`,hour:`numeric`,minute:`numeric`}));ti(()=>{!r()&&n().show&&(_n(j8,B(n).show=!1,B(n)),z(c)?.())});var m=H8(),h=I(m);{let e=M(()=>X(`restore_backup_title`)),t=M(()=>X(`restore`)),r=M(()=>X(`discard`));cL(h,{get title(){return z(e)},get okLabel(){return z(t)},get cancelLabel(){return z(r)},onOk:()=>{z(c)?.(!0)},onCancel:()=>{z(c)?.(!1)},get open(){return n().show},set open(e){_n(j8,B(n).show=e,B(n))},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`restore_backup_description`,{values:{datetime:z(p)}})]),U(e,n)},$$slots:{default:!0}})}var g=L(h,2);nz(g,{get show(){return i().saved},set show(e){_n(M8,B(i).saved=e,B(i))},children:(e,t)=>{VF(e,{status:`info`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`draft_backup_saved`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var _=L(g,2);nz(_,{get show(){return i().restored},set show(e){_n(M8,B(i).restored=e,B(i))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`draft_backup_restored`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),nz(L(_,2),{get show(){return i().deleted},set show(e){_n(M8,B(i).deleted=e,B(i))},children:(e,t)=>{VF(e,{status:`info`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`draft_backup_deleted`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,m),k(),o()}var H8,yde=s((()=>{Q(),Y(),Z(),B$(),V8(),RF(),H8=V(`<!> <!> <!> <!>`,1)}));function U8(e,t){O(t,!0),K(e,G8);let n=N(null),r=N(!1);ti(()=>{z(n)&&(async()=>{await XF(z(n)),P(r,!0)})()});var i=H(),a=I(i),o=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},s=e=>{var t=W8();Us(t,e=>P(n,e),()=>z(n)),U(e,t)};G(a,e=>{z(r)?e(o):e(s,-1)}),U(e,i),k()}var W8,G8,K8=s((()=>{Q(),Y(),ZF(),W8=V(`<div class="placeholder svelte-ow4el9"></div>`),G8={hash:`svelte-ow4el9`,code:`.placeholder.svelte-ow4el9 {height:64px;}`}}));function bde(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}function q8(e,t){return Array(t+1).join(e)}function J8(e){return e.replace(/^\n*/,``)}function Y8(e){for(var t=e.length;t>0&&e[t-1]===`
863
894
  `;)t--;return e.substring(0,t)}function X8(e){return Y8(J8(e))}function Z8(e){return $8(e,Vde)}function Q8(e){return $8(e,d5)}function xde(e){return e5(e,d5)}function Sde(e){return $8(e,f5)}function Cde(e){return e5(e,f5)}function $8(e,t){return t.indexOf(e.nodeName)>=0}function e5(e,t){return e.getElementsByTagName&&t.some(function(t){return e.getElementsByTagName(t).length})}function t5(e){return Hde.reduce(function(e,t){return e.replace(t[0],t[1])},e)}function n5(e){return e?e.replace(/(\n+\s*)+/g,`
864
895
  `):``}function r5(e){var t=e.replace(/([<>()])/g,`\\$1`);return t.indexOf(` `)>=0?`<`+t+`>`:t}function i5(e){return e.replace(/"/g,`\\"`)}function a5(e){for(var t in this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[],e.rules)this.array.push(e.rules[t])}function o5(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if(wde(i,t,n))return i}}function wde(e,t,n){var r=e.filter;if(typeof r==`string`){if(r===t.nodeName.toLowerCase())return!0}else if(Array.isArray(r)){if(r.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof r==`function`){if(r.call(e,t,n))return!0}else throw TypeError("`filter` needs to be a string, array, or function")}function Tde(e){var t=e.element,n=e.isBlock,r=e.isVoid,i=e.isPre||function(e){return e.nodeName===`PRE`};if(!(!t.firstChild||i(t))){for(var a=null,o=!1,s=null,c=c5(s,t,i);c!==t;){if(c.nodeType===3||c.nodeType===4){var l=c.data.replace(/[ \r\n\t]+/g,` `);if((!a||/ $/.test(a.data))&&!o&&l[0]===` `&&(l=l.substr(1)),!l){c=s5(c);continue}c.data=l,a=c}else if(c.nodeType===1)n(c)||c.nodeName===`BR`?(a&&(a.data=a.data.replace(/ $/,``)),a=null,o=!1):r(c)||i(c)?(a=null,o=!0):a&&(o=!1);else{c=s5(c);continue}var u=c5(s,c,i);s=c,c=u}a&&(a.data=a.data.replace(/ $/,``),a.data||s5(a))}}function s5(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function c5(e,t,n){return e&&e.parentNode===t||n(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}function Ede(){var e=m5.DOMParser,t=!1;try{new e().parseFromString(``,`text/html`)&&(t=!0)}catch{}return t}function Dde(){var e=function(){};return Ode()?e.prototype.parseFromString=function(e){var t=new window.ActiveXObject(`htmlfile`);return t.designMode=`on`,t.open(),t.write(e),t.close(),t}:e.prototype.parseFromString=function(e){var t=document.implementation.createHTMLDocument(``);return t.open(),t.write(e),t.close(),t},e}function Ode(){var e=!1;try{document.implementation.createHTMLDocument(``).open()}catch{m5.ActiveXObject&&(e=!0)}return e}function kde(e,t){var n=typeof e==`string`?Ade().parseFromString(`<x-turndown id="turndown-root">`+e+`</x-turndown>`,`text/html`).getElementById(`turndown-root`):e.cloneNode(!0);return Tde({element:n,isBlock:Z8,isVoid:Q8,isPre:t.preformattedCode?jde:null}),n}function Ade(){return Wde||=new Ude,Wde}function jde(e){return e.nodeName===`PRE`||e.nodeName===`CODE`}function Mde(e,t){return e.isBlock=Z8(e),e.isCode=e.nodeName===`CODE`||e.parentNode.isCode,e.isBlank=Nde(e),e.flankingWhitespace=Pde(e,t),e}function Nde(e){return!Q8(e)&&!Sde(e)&&/^\s*$/i.test(e.textContent)&&!xde(e)&&!Cde(e)}function Pde(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:``,trailing:``};var n=Fde(e.textContent);return n.leadingAscii&&l5(`left`,e,t)&&(n.leading=n.leadingNonAscii),n.trailingAscii&&l5(`right`,e,t)&&(n.trailing=n.trailingNonAscii),{leading:n.leading,trailing:n.trailing}}function Fde(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function l5(e,t,n){var r,i,a;return e===`left`?(r=t.previousSibling,i=/ $/):(r=t.nextSibling,i=/^ /),r&&(r.nodeType===3?a=i.test(r.nodeValue):n.preformattedCode&&r.nodeName===`CODE`?a=!1:r.nodeType===1&&!Z8(r)&&(a=i.test(r.textContent))),a}function u5(e){if(!(this instanceof u5))return new u5(e);var t={rules:p5,headingStyle:`setext`,hr:`* * *`,bulletListMarker:`*`,codeBlockStyle:`indented`,fence:"```",emDelimiter:`_`,strongDelimiter:`**`,linkStyle:`inlined`,linkReferenceStyle:`full`,br:` `,preformattedCode:!1,blankReplacement:function(e,t){return t.isBlock?`
865
896
 
@@ -931,27 +962,48 @@ IMPORTANT INSTRUCTIONS:\n${[...n,...r,...i].join(`
931
962
 
932
963
  Required JSON structure:
933
964
  ["translation 1", "translation 2", ...]`},y5=e=>`Translate these texts and return ONLY valid JSON (no markdown, no code blocks):
934
- ${JSON.stringify(e)}\n\nRespond with JSON only:`,b5=(e,t,n)=>{let r;try{r=JSON.parse(e)}catch{throw Error(`Failed to parse JSON response from ${n}.`)}if(!Array.isArray(r))throw Error(`Invalid JSON structure in ${n} response.`);if(r.length!==t)throw Error(`Translation count mismatch: expected ${t}, got ${r.length}`);return r}})),nfe,rfe,ife,afe,ofe,sfe,cfe=s((()=>{tfe(),x5(),nfe=`anthropic`,rfe=`Anthropic Claude`,ife=`claude-haiku-4-5`,afe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),ofe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await efe({apiKey:r,model:ife,systemPrompt:v5(i,a),userMessage:y5(e)}),e.length,`Anthropic API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Anthropic API.`)}},sfe={serviceId:nfe,serviceLabel:rfe,apiLabel:Xde,developerURL:Zde,apiKeyURL:Qde,apiKeyPattern:$de,markdownSupported:!0,availability:afe,translate:ofe}})),lfe,ufe,dfe,ffe,pfe,mfe,hfe=s((()=>{lfe=`https://api.deepseek.com/chat/completions`,ufe=`DeepSeek API`,dfe=`https://api-docs.deepseek.com/`,ffe=`https://platform.deepseek.com/api_keys`,pfe=/sk-[a-zA-Z0-9]{32,}/,mfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,thinking:o=!0})=>{let s=await fetch(lfe,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,messages:[{role:`system`,content:n},{role:`user`,content:r}],temperature:i,max_tokens:a,thinking:{type:o?`enabled`:`disabled`},stream:!1})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(`DeepSeek API error: ${s.status} ${s.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let c=await s.json();if(!c.choices||!Array.isArray(c.choices)||!c.choices[0]?.message?.content)throw Error(`Invalid response format from DeepSeek API.`);return c.choices[0].message.content.trim()}})),gfe,_fe,vfe,yfe,bfe,xfe,Sfe=s((()=>{hfe(),x5(),gfe=`deepseek`,_fe=`DeepSeek`,vfe=`deepseek-v4-flash`,yfe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),bfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await mfe({apiKey:r,model:vfe,systemPrompt:v5(i,a),userMessage:y5(e),thinking:!1}),e.length,`DeepSeek API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with DeepSeek API.`)}},xfe={serviceId:gfe,serviceLabel:_fe,apiLabel:ufe,developerURL:dfe,apiKeyURL:ffe,apiKeyPattern:pfe,markdownSupported:!0,availability:yfe,translate:bfe}})),Cfe,wfe,Tfe,Efe,Dfe,Ofe,S5,C5,kfe,Afe,w5,jfe=s((()=>{Cfe=`google`,wfe=`Google Cloud Translation`,Tfe=`Cloud Translation API`,Efe=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,Dfe=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,Ofe=/AIza[0-9A-Za-z-_]{35}/,S5=[`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(`,`),C5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(S5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(S5.includes(n))return n},kfe=async({sourceLanguage:e,targetLanguage:t})=>!!C5(e)&&!!C5(t),Afe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=C5(t)??``,n=C5(n)??``,!t)throw Error(`Source locale is not supported.`);if(!n)throw Error(`Target locale is not supported.`);let i={q:e,source:t,target:n,format:`html`};try{let e=await fetch(`https://translation.googleapis.com/language/translate/v2`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-goog-api-key":r},body:JSON.stringify(i)});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(`Google Translate API error: ${e.status} ${e.statusText}${t.error?.message?` - ${t.error.message}`:``}`)}let{data:t}=await e.json();return t.translations.map(e=>e.translatedText.replace(/&#39;/g,`'`))}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Google Translate API.`)}},w5={serviceId:Cfe,serviceLabel:wfe,apiLabel:Tfe,developerURL:Efe,apiKeyURL:Dfe,apiKeyPattern:Ofe,markdownSupported:!1,availability:kfe,translate:Afe}})),Mfe,Nfe,Pfe,Ffe,Ife,Lfe=s((()=>{Mfe=`Google AI Studio API`,Nfe=`https://ai.google.dev/gemini-api/docs`,Pfe=`https://aistudio.google.com/api-keys`,Ffe=/AIza[a-zA-Z0-9_-]{35}/,Ife=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,responseFormat:o})=>{let s=`https://generativelanguage.googleapis.com/v1beta/models/${t}:generateContent?key=${e}`,c=await fetch(s,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({system_instruction:{parts:[{text:n}]},contents:[{parts:[{text:r}]}],generationConfig:{temperature:i,maxOutputTokens:a,...o?{responseMimeType:o}:{}}})});if(!c.ok){let e=await c.json().catch(()=>({}));throw Error(`Gemini API error: ${c.status} ${c.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let l=await c.json();if(!Array.isArray(l.candidates)||!l.candidates[0]?.content?.parts?.[0])throw Error(`Invalid response format from Gemini API.`);return l.candidates[0].content.parts[0].text.trim()}})),Rfe,zfe,Bfe,Vfe,Hfe,Ufe,Wfe=s((()=>{Lfe(),x5(),Rfe=`google-ai`,zfe=`Google Gemini`,Bfe=`gemini-3.1-flash-lite`,Vfe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),Hfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await Ife({apiKey:r,model:Bfe,systemPrompt:v5(i,a),userMessage:y5(e),responseFormat:`application/json`}),e.length,`Gemini API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Gemini API.`)}},Ufe={serviceId:Rfe,serviceLabel:zfe,apiLabel:Mfe,developerURL:Nfe,apiKeyURL:Pfe,apiKeyPattern:Ffe,markdownSupported:!0,availability:Vfe,translate:Hfe}})),Gfe,Kfe,qfe,Jfe,Yfe,Xfe,Zfe,Qfe,$fe=s((()=>{Gfe=`https://api.openai.com/v1/responses`,Kfe=`OpenAI API`,qfe=`https://platform.openai.com/docs/overview`,Jfe=`https://platform.openai.com/api-keys`,Yfe=/sk-[a-zA-Z0-9-_]{40,}/,Xfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content),Zfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`,Qfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(Gfe,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,instructions:n,input:r,store:!1,temperature:i,max_output_tokens:a})});if(!o.ok){let e=await o.json().catch(()=>({}));throw Error(`OpenAI API error: ${o.status} ${o.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let s=await o.json();if(typeof s.output_text==`string`)return s.output_text.trim();let c=(Array.isArray(s.output)?s.output:[]).find(Xfe),l=(Array.isArray(c?.content)?c.content:[]).find(Zfe);if(typeof l?.text==`string`)return l.text.trim();throw Error(`Invalid response format from OpenAI API.`)}})),epe,tpe,npe,rpe,ipe,ape,ope=s((()=>{$fe(),x5(),epe=`openai`,tpe=`OpenAI GPT`,npe=`gpt-5.4-nano`,rpe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),ipe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await Qfe({apiKey:r,model:npe,systemPrompt:v5(i,a),userMessage:y5(e)}),e.length,`OpenAI API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with OpenAI API.`)}},ape={serviceId:epe,serviceLabel:tpe,apiLabel:Kfe,developerURL:qfe,apiKeyURL:Jfe,apiKeyPattern:Yfe,markdownSupported:!0,availability:rpe,translate:ipe}})),T5,E5,D5=s((()=>{rp(),eN(),cfe(),Sfe(),jfe(),Wfe(),ope(),T5={anthropic:sfe,deepseek:xfe,google:w5,"google-ai":Ufe,openai:ape},E5=dn([$M],([e])=>{let{defaultTranslationService:t=`google`}=e;return T5[t]??w5})})),O5,spe,k5,cpe,lpe,A5,upe=s((()=>{lO(),rp(),Kde(),W4(),RF(),_A(),g5(),D5(),eN(),O5=new u5({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),O5.keep([`span`,`div`]),spe=({draft:e,options:t})=>{let{collectionName:n,fileName:r,currentValues:i,isIndexFile:a}=e,{sourceLanguage:o,targetLanguage:s,keyPath:c=``,translate:l=!1}=t,u=i[o],d={collectionName:n,fileName:r,valueMap:u,isIndexFile:a};return Object.fromEntries(Object.entries(u).map(([e,t])=>{let n=i[s][e],r=uA({...d,keyPath:e}),a=r?.widget??`string`;return c&&!e.startsWith(c)||typeof t!=`string`||!t||![`richtext`,`markdown`,`text`,`string`,`list`].includes(a)||a===`list`&&h5(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},k5=(e,t,{count:n,sourceLanguage:r})=>{NF.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},cpe=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r,markdownSupported:i,translate:a}=A(E5),{sourceLanguage:o,targetLanguage:s}=t,c=Object.keys(n).length,l=A($M).apiKeys?.[r]||await new Promise(e=>{MF.set({show:!0,multiple:c>1,resolve:e})});if(l){k5(`info`,`translation.started`,{count:c,sourceLanguage:o});try{let t=await a(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!i?cO(e):e),{apiKey:l,sourceLanguage:o,targetLanguage:s});Object.entries(n).forEach(([n,{isMarkdown:r}],a)=>{let o=t[a];e[s][n]=r&&!i?O5.turndown(o):o}),k5(`success`,`translation.complete`,{count:c,sourceLanguage:o})}catch(e){k5(`error`,`translation.error`,{count:c,sourceLanguage:o}),console.error(e)}}},lpe=({currentValues:e,options:t,copingFieldMap:n})=>{let{sourceLanguage:r,targetLanguage:i}=t,a=Object.keys(n).length;Object.entries(n).forEach(([t,{value:n}])=>{e[i][t]=n}),k5(`success`,`copy.complete`,{count:a,sourceLanguage:r})},A5=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=A(z4),{currentValues:i}=r,a=spe({draft:r,options:e}),o=Object.keys(a).length;if(!o){k5(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await cpe({currentValues:i,options:e,copingFieldMap:a}):lpe({currentValues:i,options:e,copingFieldMap:a}),z4.update(e=>({...e,currentValues:i}))}}));function j5(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,i),r=()=>j(E5,`$translator`,i),[i,a]=hn(),o=J(t,`keyPath`,3,``),s=J(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!jt(n().currentValues[e])[o()]||!s()&&!!o()&&jt(n().currentValues[e])[o()]===jt(n().currentValues[t])[o()]||s()&&!await r()?.availability({sourceLanguage:e,targetLanguage:t});var l=H();mo(I(l),16,()=>t.otherLocales,e=>e,(e,n)=>{let r=M(()=>({sourceLanguage:n,targetLanguage:t.locale}));var i=H();eo(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>X(s()?`translate_from_x`:`copy_from_x`,{values:{locale:ob(n)}}));qL(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{A5({...z(r),keyPath:o(),translate:s()})}})}}),U(e,i)}),U(e,l),k(),a()}var M5=s((()=>{Q(),Y(),Z(),B$(),W4(),upe(),ub(),D5()}));function dpe(e,t){O(t,!0),K(e,ppe);let n=J(t,`children`,3,void 0),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`children`]),i=N(void 0);ic(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=fpe();ys(a,()=>({role:`group`,class:`field`,...r}),void 0,void 0,void 0,`svelte-wzztxu`),Eo(F(a),()=>n()??E),D(a),Us(a,e=>P(i,e),()=>z(i)),U(e,a),k()}var fpe,ppe,mpe=s((()=>{Q(),Y(),oc(),fpe=V(`<section><!></section>`),ppe={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:var(--sui-focus-ring-width) 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 hpe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,i),r=()=>j(E5,`$translator`,i),[i,a]=hn(),o=J(t,`size`,3,`medium`),s=J(t,`keyPath`,3,``),c=M(()=>!n()?.currentLocales[t.locale]),l=async({sourceLanguage:e,targetLanguage:t})=>z(c)||!n()?.currentLocales[e]||!await r()?.availability({sourceLanguage:e,targetLanguage:t});var u=H(),d=I(u),f=e=>{let n=M(()=>{let[e]=t.otherLocales;return{otherLocale:e}}),r=M(()=>X(`translate_from_x`,{values:{locale:ob(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=H();eo(I(a),()=>l(z(i)),null,(e,t)=>{tI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},get title(){return z(r)},get disabled(){return z(t)},onclick:()=>{A5({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{zF(e,{name:`translate`})},$$slots:{startIcon:!0}})}),U(e,a)},p=e=>{{let n=e=>{zF(e,{name:`translate`})},r=e=>{{let n=M(()=>X(`translation_options`));UL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{j5(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>X(`translate`));NI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},get disabled(){return z(c)},endIcon:n,popup:r,$$slots:{endIcon:!0,popup:!0}})}};G(d,e=>{t.otherLocales.length===1?e(f):e(p,-1)}),U(e,u),k(),a()}var gpe=s((()=>{Q(),Y(),Z(),B$(),M5(),W4(),upe(),ub(),D5()}));function N5(e,t){K(e,vpe);let n=J(t,`id`,3,void 0),r=J(t,`live`,3,`polite`);var i=_pe(),a=F(i),o=F(a);zF(o,{name:`error`}),Eo(L(o,2),()=>t.children),D(a),D(i),R(()=>{q(i,`id`,n()),q(i,`aria-live`,r())}),U(e,i)}var _pe,vpe,P5=s((()=>{Q(),Y(),B$(),_pe=V(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),vpe={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 0;}.validation.svelte-6wra4i div:where(.svelte-6wra4i) .icon {flex:none;font-size:16px; /* !hardcoded */}`}}));function ype(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1);HR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get checked(){return n()},set checked(e){n(e)}}),k()}var bpe=s((()=>{Q(),Y(),B$()}));function xpe(e,t){O(t,!0);let n=J(t,`currentValue`,3,!1);var r=H(),i=I(r),a=e=>{var t=Spe(),r=F(t,!0);D(t),R(e=>W(r,e),[()=>X(`boolean.${n()}`)]),U(e,t)};G(i,e=>{typeof n()==`boolean`&&e(a)}),U(e,r),k()}var Spe,Cpe=s((()=>{Q(),Y(),Z(),Spe=V(`<p> </p>`)}));function wpe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=N(``),d=N(``),f=M(()=>T(t.fieldConfig.default_language,`plain`)),p=M(()=>T(t.fieldConfig.allow_language_selection,!0)),m=M(()=>T(t.fieldConfig.output_code_only,!1)),h=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),g=M(()=>jt(n()?.[a][t.locale])??{}),_=M(()=>`${t.keyPath}.${z(h).code}`),v=M(()=>`${t.keyPath}.${z(h).lang}`),y=()=>{if(z(m))typeof o()==`string`?z(u)!==o()&&P(u,o(),!0):P(u,``),P(d,z(f),!0);else{let e=z(g)[z(_)],t=z(g)[z(v)]||z(f);typeof e==`string`?z(u)!==e&&P(u,e,!0):P(u,``),typeof t==`string`?z(d)!==t&&P(d,t,!0):P(d,``)}},b=()=>{z(m)?o()!==z(u)&&o(z(u)):n()&&(o({}),z(g)[z(_)]!==z(u)&&_n(z4,B(n)[a][t.locale][z(_)]=z(u),B(n)),z(g)[z(v)]!==z(d)&&_n(z4,B(n)[a][t.locale][z(v)]=z(d),B(n)))};ti(()=>{z(g),B(()=>{y()})}),ti(()=>{z(u),z(d),B(()=>{b()})});var x=H();eo(I(x),Jx,null,e=>{var n=H();oo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{zle(e,{get showLanguageSwitcher(){return z(p)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get code(){return z(u)},set code(e){P(u,e,!0)},get lang(){return z(d)},set lang(e){P(d,e,!0)}})}),U(e,n)}),U(e,x),k(),i()}var Tpe=s((()=>{Q(),Y(),B$(),Yx(),oc(),W4()}));function Epe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>T(t.fieldConfig.default_language,``)),o=M(()=>T(t.fieldConfig.output_code_only,!1)),s=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>`${t.keyPath}.${z(s).code}`),u=M(()=>`${t.keyPath}.${z(s).lang}`),d=M(()=>z(o)?t.currentValue:z(c)[z(l)]),f=M(()=>z(o)?z(a):z(c)[z(u)]);var p=H(),m=I(p),h=e=>{var t=Dpe(),n=F(t,!0);D(t),R(()=>{ss(t,1,es(z(f)?`language-${z(f)}`:void 0)),W(n,z(d))}),U(e,t)};G(m,e=>{z(d)&&e(h)}),U(e,p),k(),i()}var Dpe,Ope=s((()=>{Q(),Y(),W4(),Dpe=V(`<pre> </pre>`)}));function kpe(e,t){let n=Ia();O(t,!0),K(e,Npe);let r=J(t,`currentValue`,15),i=J(t,`required`,3,!0),a=J(t,`readonly`,3,!1),o=J(t,`invalid`,3,!1),s=N(``),c=N(255),l=M(()=>T(t.fieldConfig.allowInput,!1)),u=M(()=>T(t.fieldConfig.enableAlpha,!1)),d=/^#[0-9a-f]{6}$/i,f=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/i,p=()=>{if(typeof r()!=`string`)return;let{rgb:e,a:t=`ff`}=r().match(f)?.groups??{};if(e&&z(s)!==e&&P(s,e,!0),e&&z(u)){let e=Number.parseInt(`0x${t}`,16);z(c)!==e&&P(c,e,!0)}},m=()=>{let e=d.test(z(s))?z(s):``;e&&z(u)&&(e+=z(c).toString(16).padStart(2,`0`)),r()!==e&&r(e)};ti(()=>{r(),B(()=>{p()})}),ti(()=>{z(s),z(c),B(()=>{m()})});var h=Mpe(),g=F(h);gs(g);var _=L(g,2),v=e=>{var r=jpe(),d=F(r),f=e=>{lL(e,{dir:`ltr`,get id(){return`${n}-input`},get invalid(){return o()},get readonly(){return a()},get required(){return i()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(s)},set value(e){P(s,e,!0)}})};G(d,e=>{z(l)&&e(f)});var p=L(d,2),m=e=>{var t=Ape(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>X(`opacity`));Aoe(r,{min:0,max:255,get disabled(){return z(e)},get"aria-label"(){return z(t)},get value(){return z(c)},set value(e){P(c,e,!0)}})}R(e=>W(n,`${e??``} `),[()=>X(`opacity`)]),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(r),U(e,r)};G(_,e=>{(z(l)||z(u))&&e(v)});var y=L(_,2),b=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!z(s)),i=M(()=>`${n}-picker ${z(l)?`${n}-input`:``}`);tI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},get"aria-controls"(){return z(i)},onclick:()=>{P(s,``),P(c,255)}})}};G(y,e=>{!a()&&!i()&&e(b)}),D(h),R(()=>{q(g,`id`,`${n}-picker`),g.readOnly=a(),q(g,`aria-invalid`,o()),q(g,`aria-readonly`,a()),q(g,`aria-required`,i()),q(g,`aria-labelledby`,`${t.fieldId??``}-label`),q(g,`aria-errormessage`,`${t.fieldId??``}-error`)}),Ps(g,()=>z(s),e=>P(s,e)),U(e,h),k()}var Ape,jpe,Mpe,Npe,Ppe=s((()=>{Q(),Y(),Z(),B$(),oc(),Ape=V(` <!>`,1),jpe=V(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),Mpe=V(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),Npe={hash:`svelte-udhsyb`,code:`div.svelte-udhsyb {display:flex;align-items:center;gap:8px;}div.svelte-udhsyb .value:where(.svelte-udhsyb) {display:flex;align-items:center;gap:8px;}div.svelte-udhsyb .value:where(.svelte-udhsyb) .sui.text-input {width:88px;min-width:0;}div.svelte-udhsyb .value:where(.svelte-udhsyb) .sui.slider {padding:8px;--sui-slider-base-width: 80px;}input.svelte-udhsyb {font-family:var(--sui-textbox-font-family);}`}}));function Fpe(e,t){O(t,!0),K(e,Lpe);let n=M(()=>T(t.fieldConfig.enableAlpha,!1)),r=e=>Number.parseInt(`0x${e}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/i,a=M(()=>{let{r:e,g:a,b:o,a:s}=t.currentValue?.match(i)?.groups??{};return e?`rgb(${r(e)} ${r(a)} ${r(o)}${z(n)&&s?` / ${Math.round(r(s)/255*100)}%`:``})`:``});var o=H(),s=I(o),c=e=>{var n=Ipe(),r=F(n),i=F(r);let o;var s=L(i,2),c=F(s,!0);D(s);var l=L(s,2),u=F(l,!0);D(l),D(r),D(n),R(()=>{o=us(i,``,o,{"background-color":t.currentValue}),W(c,t.currentValue),W(u,z(a))}),U(e,n)},l=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(s,e=>{z(l)&&e(c)}),U(e,o),k()}var Ipe,Lpe,Rpe=s((()=>{Q(),Y(),Ipe=V(`<p><span role="none" class="preview svelte-1m6xsa0"><span role="none" class="color svelte-1m6xsa0"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>`),Lpe={hash:`svelte-1m6xsa0`,code:`.preview.svelte-1m6xsa0 {display:inline-flex;align-items:center;gap:8px;}.preview.svelte-1m6xsa0 .color:where(.svelte-1m6xsa0) {display:block;width:24px;height:24px;border-radius:24px;}`}}));function zpe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=M(()=>T(t.fieldConfig.value,``)),d=M(()=>n()?.isIndexFile??!1),f=M(()=>n()?.collectionName??``),p=M(()=>n()?.fileName),m=M(()=>jt(n()?.[a][t.locale])??{}),h=M(()=>cb(t.locale)),g=()=>{let[e]=t.keyPath.split(`.`).splice(-2,1);return e?.match(/^\d+$/)?Number(e):void 0},_=()=>{if(!(t.keyPath in z(m)))return;let e=z(u)===`{{index}}`?g()??``:z(u).replaceAll(/{{(.+?)}}/g,(e,n)=>{if(n===`index`)return String(g()??``);if(!n.startsWith(`fields.`))return``;let r=mA({collectionName:z(f),fileName:z(p),valueMap:z(m),keyPath:n.replace(/^fields\./,``),locale:t.locale,isIndexFile:z(d)});return Array.isArray(r)?z(h).format(r):String(r)});o()!==e&&o(e)};ti(()=>{z(m),B(()=>{_()})});{let n=M(()=>String(o()));lL(e,{dir:`auto`,get value(){return z(n)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`}})}k(),i()}var Bpe=s((()=>{Q(),Y(),B$(),oc(),W4(),_A(),ub()}));function Vpe(e,t){O(t,!0);var n=Hpe(),r=F(n,!0);D(n),R((e,i)=>{q(n,`lang`,e),q(n,`dir`,i),W(r,t.currentValue),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,n),k()}var Hpe,Upe=s((()=>{Q(),Y(),ub(),Hpe=V(`<p> </p>`)}));function Wpe(e,t){O(t,!0),K(e,qpe);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(``),s=M(()=>oC(t.fieldConfig)),c=M(()=>z(s).type),l=M(()=>z(s).min),u=M(()=>z(s).max),d=M(()=>z(s).step),f=M(()=>z(s).dateOnly),p=M(()=>z(s).utc),m=()=>{let e=fC(n(),t.fieldConfig);e!==void 0&&e!==z(o)&&P(o,e,!0)},h=()=>{let e=dC(z(o),n(),t.fieldConfig);e!==void 0&&e!==n()&&Number(lC(e,t.fieldConfig))!==Number(lC(n(),t.fieldConfig))&&n(e)};ti(()=>{n(),B(()=>{m()})}),ti(()=>{z(o),B(()=>{h()})});var g=Kpe(),_=F(g);ys(_,()=>({type:z(c),min:z(l),max:z(u),step:z(d),readonly:i(),"aria-readonly":i(),"aria-required":r(),"aria-invalid":a(),"aria-labelledby":`${t.fieldId??``}-label`,"aria-errormessage":`${t.fieldId??``}-error`}),void 0,void 0,void 0,`svelte-1dnhck7`,!0);var v=L(_,2),y=e=>{U(e,Gpe())};G(v,e=>{z(p)&&e(y)});var b=L(v,2),x=e=>{{let n=M(()=>X(z(f)?`today`:`now`));tI(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{let e=uC(t.fieldConfig);P(o,z(p)?e.replace(/:00\.000Z$/,``):e,!0)}})}};G(b,e=>{i()||e(x)});var S=L(b,2),C=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!n());tI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};G(S,e=>{!i()&&!r()&&e(C)}),D(g),Ps(_,()=>z(o),e=>P(o,e)),U(e,g),k()}var Gpe,Kpe,qpe,Jpe=s((()=>{Q(),Y(),Z(),B$(),oc(),mC(),Gpe=V(`<span role="none" class="utc svelte-1dnhck7">UTC</span>`),Kpe=V(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!> <!></div>`),qpe={hash:`svelte-1dnhck7`,code:`div.svelte-1dnhck7 {display:flex;align-items:center;}.utc.svelte-1dnhck7 {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}`}}));function Ype(e,t){O(t,!0);let n=M(()=>pC({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var r=H(),i=I(r),a=e=>{var r=Xpe(),i=F(r),a=L(i),o=e=>{U(e,Fa(`UTC`))};G(a,e=>{t.fieldConfig.picker_utc&&e(o)}),D(r),R((e,t)=>{q(r,`lang`,e),q(r,`dir`,t),W(i,`${z(n)??``} `),r.dir=r.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,r)};G(i,e=>{z(n)&&e(a)}),U(e,r),k()}var Xpe,Zpe=s((()=>{Q(),Y(),mC(),ub(),Xpe=V(`<p> <!></p>`)}));function Qpe(e,t){O(t,!0),K(e,tme);let n=J(t,`multiple`,3,!1),r=J(t,`hidden`,3,!1),i=M(()=>EC(t.fieldConfig)??{}),a=``,o=N(!1),s=N(!1),c=N(void 0),l=()=>{if(!z(c))return;a=window.crypto.randomUUID();let e=new URLSearchParams({...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>tre.includes(e))),ml_id:a,pmHost:window.location.origin,new_cms:`true`,remove_header:`true`});z(c).src=`https://console.cloudinary.com/console/media_library/cms?${e}`},u=()=>{let e={...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>nre.includes(e))),multiple:n(),max_files:t.fieldConfig?.max??z(i).config?.max_files??20,folder:{path:z(i).config?.folder?.path??``,resource_type:t.kind??`raw`}},r={type:`ML_WIDGET_SHOW`,data:{mlId:a,config:e}};console.debug(`Cloudinary Panel sending message:`,r),z(c)?.contentWindow?.postMessage(JSON.stringify(r),ere)},f=({assets:e})=>{let{output_filename_only:n=!1,use_transformations:r=!0}=z(i),a=e.map(e=>{let t=e.secure_url;return n?{url:t.split(`/`).pop()}:r?{url:e.derived?.[0]?.secure_url??t}:{url:t}});t.onSelect(a)},p=({origin:e,data:t})=>{if(e===`https://console.cloudinary.com`){if(typeof t==`string`)try{t=JSON.parse(t)}catch{return}d(t)&&(console.debug(`Cloudinary Panel received message:`,t),t.type===`login`&&t.consoleDomain&&P(o,!0),t.type===`consoleLoaded`&&P(s,!0),t.type===`ML_WIDGET_INSERT_DATA`&&f(t.data))}};ic(()=>(l(),window.addEventListener(`message`,p),()=>{window.removeEventListener(`message`,p)})),ti(()=>{z(i)&&z(s)&&u()});var m=eme(),h=I(m);Us(h,e=>P(c,e),()=>z(c));var g=L(h,2),_=e=>{P$(e,{children:(e,t)=>{var n=$pe(),r=I(n);{let e=M(()=>X(`cloud_storage.cloudinary.activate.button_label`));tI(r,{variant:`primary`,get label(){return z(e)},onclick:async()=>{u1(`https://console.cloudinary.com/console/media_library/cms_login?cms=true`)}})}var i=L(r,2),a=F(i,!0);D(i),R(e=>W(a,e),[()=>X(`cloud_storage.cloudinary.activate.description`)]),U(e,n)},$$slots:{default:!0}})};G(g,e=>{!r()&&!z(o)&&e(_)}),R(e=>{q(h,`title`,e),q(h,`hidden`,r()||!z(o))},[()=>X(`cloud_storage.cloudinary.iframe_title`)]),U(e,m),k()}var $pe,eme,tme,nme=s((()=>{Q(),Y(),Z(),B$(),p(),oc(),DC(),d1(),$pe=V(`<!> <div role="none"> </div>`,1),eme=V(`<iframe allow="camera; storage-access" class="svelte-p06t0o"></iframe> <!>`,1),tme={hash:`svelte-p06t0o`,code:`iframe.svelte-p06t0o {display:block;width:100%;height:100%;border:none;&[hidden] {display:none;}}`}}));function rme(e,t){O(t,!0),K(e,sme);let n=J(t,`children`,3,void 0),r=M(()=>t.path?vp(t.path).split(`/`):t.caption?[t.caption]:[]),i={ALLOWED_TAGS:[`wbr`]},a=e=>OE(e.replace(/([-_.])/g,`$1<wbr>`),i);var o=H(),s=I(o),c=e=>{var t=ome(),i=F(t);qF(i,{lines:2,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(r),(e,t)=>`${e}-${t}`,(e,t,n)=>{var i=H(),o=I(i),s=e=>{var n=ime();So(n,()=>a(z(t)),!0),D(n),U(e,n)},c=e=>{var n=ame();So(I(n),()=>a(z(t))),_t(),U(e,n)};G(o,e=>{z(n)===z(r).length-1?e(s):e(c,-1)}),U(e,i)}),U(e,n)},$$slots:{default:!0}}),Eo(L(i,2),()=>n()??E),D(t),U(e,t)};G(s,e=>{z(r).length&&e(c)}),U(e,o),k()}var ime,ame,ome,sme,cme=s((()=>{Q(),Y(),B$(),Sp(),kE(),ime=V(`<strong></strong>`),ame=V(`<!>/`,1),ome=V(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),sme={hash:`svelte-1ngvthn`,code:`.name.svelte-1ngvthn {color:var(--sui-tertiary-foreground-color);}.name.svelte-1ngvthn strong {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}`}}));function lme(e,t){K(e,fme);let n=J(t,`viewType`,3,`grid`);var r=dme();RL(F(r),{label:``,get value(){return t.value},get selected(){return t.selected},get onChange(){return t.onChange},startIcon:e=>{var n=H(),r=I(n),i=e=>{var t=ume();zF(F(t),{name:`check`,class:`icon check`}),D(t),U(e,t)};G(r,e=>{t.multiple&&e(i)}),U(e,n)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{startIcon:!0,default:!0}}),D(r),R(()=>ss(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),U(e,r)}var ume,dme,fme,pme=s((()=>{Q(),Y(),B$(),ume=V(`<span role="none" class="icon check-background"><!></span>`),dme=V(`<div role="none"><!></div>`),fme={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 mme(e,t){O(t,!0),K(e,gme);let n=J(t,`viewType`,3,`grid`),r=J(t,`gridId`,3,void 0),i=J(t,`multiple`,3,!1),a=J(t,`showTitle`,3,!1),o=J(t,`onChange`,3,void 0),s=J(t,`children`,3,void 0);var c=hme();let l;var u=F(c);{let e=M(()=>X(`assets_dialog.available_images`));jL(u,{get id(){return r()},get class(){return n()},get multiple(){return i()},get"aria-label"(){return z(e)},onChange:e=>{o()?.(e.detail)},children:(e,t)=>{var n=H();Eo(I(n),()=>s()??E),U(e,n)},$$slots:{default:!0}})}D(c),R(()=>l=ss(c,1,`wrapper svelte-umbokg`,null,l,{"show-title":a()})),U(e,c),k()}var hme,gme,_me=s((()=>{Q(),Y(),Z(),B$(),hme=V(`<div role="none"><!></div>`),gme={hash:`svelte-umbokg`,code:`.wrapper.svelte-umbokg {display:contents;}.wrapper.svelte-umbokg .listbox {gap:4px;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 .option button .name:empty {display:none;}.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;inset-inline-start:-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 vme(e,t){O(t,!0);let n=J(t,`open`,15,!1);{let r=M(()=>X(`assets_dialog.large_file.title`));sL(e,{get title(){return z(r)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=yme(),i=I(r),a=F(i,!0);D(i);var o=L(i,2),s=F(o,!0);D(o),R((e,t)=>{W(a,e),W(s,t)},[()=>X(`warning_oversized_files`,{values:{count:t.oversizedFileNames.length,size:qC(t.maxSize)}}),()=>cb(Oh.current).format(t.oversizedFileNames)]),U(e,r)},$$slots:{default:!0}})}k()}var yme,bme=s((()=>{Q(),Y(),Z(),B$(),ub(),ew(),yme=V(`<div> </div> <div> </div>`,1)}));function xme(e,t){O(t,!0),K(e,Nme);let n=()=>j(IF,`$selectAssetsView`,o),r=()=>j(JP,`$cmsConfig`,o),i=()=>j($M,`$prefs`,o),a=()=>j(zA,`$isSmallScreen`,o),[o,s]=hn(),c=e=>{var t=H(),n=I(t),r=e=>{P$(e,{children:(e,t)=>{var n=Sme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(d()?`searching`:`loading`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{P$(e,{children:(e,t)=>{var n=Cme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})},o=e=>{var t=Tme();mme(F(t),{get viewType(){return z(re)},get gridId(){return f()},get multiple(){return u()},children:(e,t)=>{{let t=(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{let n=M(()=>{let{id:e,previewURL:n,description:r,kind:i}=t();return{id:e,previewURL:n,description:r,_kind:i}});{let r=M(()=>Ce(t()));lme(e,{get value(){return z(n).id},get viewType(){return z(re)},get multiple(){return u()},get selected(){return z(r)},onChange:({detail:{selected:e}})=>{we(t(),e)},children:(e,t)=>{var r=wme(),i=I(r);n2(i,{get kind(){return z(n)._kind},get src(){return z(n).previewURL},get alt(){return z(n).description},variant:`tile`,crossorigin:`anonymous`});var o=L(i,2),s=e=>{{let t=M(()=>z(ie)?void 0:z(n).description),r=M(()=>z(ie)?z(n).description:void 0);rme(e,{get path(){return z(t)},get caption(){return z(r)}})}};G(o,e=>{(z(re)===`list`||!a()&&!z(ie))&&e(s)}),U(e,r)},$$slots:{default:!0}})}}),U(e,n)},n=M(()=>z(me)??[]);bR(e,{get items(){return z(n)},itemKey:`id`,renderItem:t,$$slots:{renderItem:!0}})}},$$slots:{default:!0}}),D(t),U(e,t)};G(n,e=>{z(me)?z(me).length?e(o,-1):e(i,1):e(r)}),U(e,t)},l=J(t,`fieldConfig`,3,void 0),u=J(t,`multiple`,3,!1),d=J(t,`searchTerms`,3,``),f=J(t,`gridId`,3,void 0),p=J(t,`selectedResources`,31,()=>Cr([])),m=M(()=>T(t.serviceProps.serviceType,`stock_assets`)),h=M(()=>T(t.serviceProps.serviceId,``)),g=M(()=>T(t.serviceProps.serviceLabel,``)),_=M(()=>T(t.serviceProps.hotlinking,!1)),v=M(()=>T(t.serviceProps.authType,`api_key`)),y=M(()=>T(t.serviceProps.developerURL,``)),b=M(()=>T(t.serviceProps.apiKeyURL,``)),x=M(()=>t.serviceProps.apiKeyPattern),S=M(()=>t.serviceProps.init),C=M(()=>t.serviceProps.signIn),w=M(()=>t.serviceProps.list),ee=M(()=>t.serviceProps.search),ne=M(()=>t.serviceProps.upload),re=M(()=>z(h)===`picsum`?`grid`:n()?.type),ie=M(()=>z(m)===`stock_assets`),ae=M(()=>l()?.media_libraries?.all??r()?.media_libraries?.all??{}),oe=M(()=>z(ae).max_file_size??1/0),se=Cr({userName:``,password:``}),ce=N(!0),le=N(!1),ue=N(``),de=N(``),fe=N(``),pe=N(`initial`),me=N(null),he=N(void 0),ge=N(Cr({show:!1,status:`info`,length:0})),_e=N(Cr([])),ve=N(!1),ye=M(()=>({kind:t.kind,fieldConfig:l(),apiKey:z(ue),userName:z(de),password:z(fe)})),be=async(e=``)=>{P(me,null),e=e.trim();try{P(me,await(e?z(ee)?.(e,z(ye)):z(w)?.(z(ye)))??[],!0)}catch(e){P(he,`search_fetch_failed`),console.error(e)}},xe=async e=>{if(!z(ne))return;let t=await Promise.all(e.map(e=>iF(e,z(ae))));if(e=t.filter(({oversized:e})=>!e).map(({file:e})=>e),P(_e,t.filter(({oversized:e})=>e).map(({file:e})=>e.name),!0),z(_e).length&&P(ve,!0),e.length){P(ge,{show:!0,status:`info`,length:e.length},!0);try{await z(ne)(e,z(ye)),be()}catch{P(ge,{show:!0,status:`error`,length:e.length},!0)}}},Se=async e=>{let{downloadURL:t,fileName:n,credit:r}=e;if(z(_))return{url:t,credit:r};try{let e=await fetch(t),{ok:i,status:a}=e;if(!i)throw Error(`The response returned with HTTP status ${a}.`);let o=await e.blob();return{url:t,credit:r,file:new File([o],n,{type:o.type})}}catch(e){P(he,`image_fetch_failed`),console.error(e)}},Ce=e=>p().some(t=>t.url===e.downloadURL),we=async(e,t)=>{let n=p().filter(t=>t.url!==e.downloadURL);if(t){let t=await Se(e);t&&p([...n,t])}else p(n)};ic(()=>{(async()=>{typeof z(S)==`function`&&(P(ce,!1),P(ce,await z(S)(),!0)),z(ce)&&(P(ue,i().apiKeys?.[z(h)]??``,!0),(e=>{var t=te(e,2);P(de,t[0],!0),P(fe,t[1],!0)})((i().logins?.[z(h)]??``).split(` `)),P(le,z(v)===`none`||!!z(ue)||!!z(fe),!0),P(me,null))})()}),ti(()=>{d(),z(le),B(()=>{z(le)&&be(d())})});var Te={uploadFiles:xe},Ee=Mme(),De=I(Ee),Oe=e=>{var t=H(),n=I(t),r=e=>{P$(e,{children:(e,t)=>{var n=Eme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`assets_dialog.error.${z(he)}`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{{let t=M(()=>l()?.accept);T3(e,{get accept(){return z(t)},multiple:!0,onDrop:({files:e})=>xe(e),children:(e,t)=>{c(e)},$$slots:{default:!0}})}},a=e=>{c(e)};G(n,e=>{z(he)?e(r):z(ne)?e(i,1):e(a,-1)}),U(e,t)},ke=e=>{P$(e,{children:(e,t)=>{var n=kme(),r=I(n),a=F(r),o=e=>{var t=H();So(I(t),()=>OE(X(`prefs.media.stock_photos.description`,{values:{service:z(g),homeHref:`href="${z(y)}"`,apiKeyHref:`href="${z(b)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(a,e=>{z(ie)&&e(o)});var s=L(a,2),c=e=>{var t=H();So(I(t),()=>OE(X(`cloud_storage.${z(h)}.auth.${z(pe)}`,{default:X(`cloud_storage.auth.${z(v)}.${z(pe)}`,{values:{service:z(g),key:X(`cloud_storage.${z(h)}.auth_key_label`,{default:X(`cloud_storage.auth.${z(v)}.key_label`)})}})}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(s,e=>{z(m)===`cloud_storage`&&e(c)}),D(r);var l=L(r,2),u=e=>{var t=Dme(),n=F(t);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(g)}}));lL(n,{dir:`ltr`,flex:!0,monospace:!0,spellcheck:`false`,get"aria-label"(){return z(e)},oninput:e=>{let t=e.target.value.trim();z(x)?.test(t)&&(P(ue,t,!0),P(le,!0),_n($M,B(i).apiKeys??={},B(i)),_n($M,B(i).apiKeys[z(h)]=z(ue),B(i)),be())}})}D(t),U(e,t)};G(l,e=>{z(v)===`api_key`&&e(u)});var d=L(l,2),f=e=>{var t=Ome(),n=I(t),r=F(n);{let e=M(()=>X(`user_name`)),t=M(()=>z(pe)===`requested`);lL(r,{dir:`ltr`,flex:!0,spellcheck:`false`,get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.userName},set value(e){se.userName=e}})}D(n);var a=L(n,2),o=F(a);{let e=M(()=>X(`password`)),t=M(()=>z(pe)===`requested`);E$(o,{get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.password},set value(e){se.password=e}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`sign_in`)),t=M(()=>!se.userName||!se.password||z(pe)===`requested`);tI(c,{variant:`secondary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{P(pe,`requested`),se.userName=se.userName.trim(),se.password=se.password.trim(),await z(C)?.(se.userName,se.password)?(P(pe,`success`),P(de,se.userName,!0),P(fe,se.password,!0),P(le,!0),_n($M,B(i).logins??={},B(i)),_n($M,B(i).logins[z(h)]=[z(de),z(fe)].join(` `),B(i)),be()):P(pe,`error`)}})}D(s),U(e,t)};G(d,e=>{z(v)===`password`&&e(f)}),U(e,n)},$$slots:{default:!0}})},Ae=e=>{P$(e,{children:(e,t)=>{var n=Ame(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`cloud_storage.invalid`)]),U(e,n)},$$slots:{default:!0}})};G(De,e=>{z(le)?e(Oe):z(ce)?e(ke,1):e(Ae,-1)});var je=L(De,2);nz(je,{get show(){return z(ge).show},set show(e){z(ge).show=e},children:(e,t)=>{VF(e,{get status(){return z(ge).status},children:(e,t)=>{var n=jme(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_progress`,{values:{count:z(ge).length}})]),U(e,t)};G(r,e=>{z(ge).status===`info`&&e(i)});var a=L(r,2),o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_failed`,{values:{count:z(ge).length}})]),U(e,t)};G(a,e=>{z(ge).status===`error`&&e(o)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),vme(L(je,2),{get oversizedFileNames(){return z(_e)},get maxSize(){return z(oe)},get open(){return z(ve)},set open(e){P(ve,e,!0)}}),U(e,Ee);var Me=k(Te);return s(),Me}var Sme,Cme,wme,Tme,Eme,Dme,Ome,kme,Ame,jme,Mme,Nme,Pme=s((()=>{Q(),Y(),Z(),B$(),Yx(),kE(),oc(),cme(),pme(),_me(),l2(),M3(),bme(),aF(),$P(),RF(),WA(),eN(),Sme=V(`<span role="alert"> </span>`),Cme=V(`<span role="alert"> </span>`),wme=V(`<!> <!>`,1),Tme=V(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),Eme=V(`<span role="alert"> </span>`),Dme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),Ome=V(`<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),kme=V(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),Ame=V(`<span role="alert"> </span>`),jme=V(`<!> <!>`,1),Mme=V(`<!> <!> <!>`,1),Nme={hash:`svelte-mqll9n`,code:`.grid-wrapper.svelte-mqll9n {overflow-y:auto;height:100%;}p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}`}}));function Fme(e,t){O(t,!0),K(e,Vme);let n=()=>j(zA,`$isSmallScreen`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`assets`,19,()=>[]),s=J(t,`viewType`,3,`grid`),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`gridId`,3,void 0),d=J(t,`checkerboard`,3,!1),f=J(t,`selectedResources`,31,()=>Cr([])),p=J(t,`onSelect`,3,void 0),m=M(()=>(c()?o().filter(({name:e})=>H6(e).includes(c())):o()).filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)),h=e=>f().some(t=>(0,F5.default)(t.asset,e)),g=(e,t)=>{let n=f().filter(t=>!(0,F5.default)(t.asset,e));t?(f([...n,{asset:e}]),p()?.({asset:e})):f(n)};var _=H(),v=I(_),y=e=>{var t=zme();mme(F(t),{get multiple(){return a()},get gridId(){return u()},get viewType(){return s()},showTitle:!0,children:(e,t)=>{bR(e,{get items(){return z(m)},itemKey:`path`,renderItem:(e,t=E)=>{var r=H();eo(I(r),Jx,null,e=>{let r=M(()=>{let{kind:e,name:n,path:r,unsaved:i,folder:a}=t();return{kind:e,name:n,path:r,unsaved:i,folder:a}}),i=M(()=>l()&&!z(r).folder.entryRelative?vp(z(r).path.replace(l(),``)):z(r).name);{let o=M(()=>h(t()));lme(e,{get value(){return z(r).path},get viewType(){return s()},get multiple(){return a()},get selected(){return z(o)},onChange:({detail:{selected:e}})=>{g(t(),e)},children:(e,a)=>{var o=Rme(),c=I(o),l=e=>{var t=Ime(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(c,e=>{s()===`grid`&&z(r).unsaved&&e(l)});var u=L(c,2);n2(u,{get kind(){return z(r).kind},get asset(){return t()},get alt(){return z(i)},variant:`tile`,get checkerboard(){return d()}});var f=L(u,2),p=e=>{rme(e,{get path(){return z(i)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=Lme(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(i,e=>{s()===`list`&&z(r).unsaved&&e(a)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{(!n()||s()===`list`)&&e(p)}),U(e,o)},$$slots:{default:!0}})}}),U(e,r)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),D(t),U(e,t)},b=e=>{P$(e,{children:(e,t)=>{var n=Bme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(v,e=>{z(m).length?e(y):e(b,-1)}),U(e,_),k(),i()}var F5,Ime,Lme,Rme,zme,Bme,Vme,Hme=s((()=>{Q(),Y(),Z(),B$(),Yx(),Sp(),F5=u(YM()),cme(),pme(),_me(),l2(),G6(),WA(),Ime=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Lme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Rme=V(`<!> <!> <!>`,1),zme=V(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),Bme=V(`<span role="none"> </span>`),Vme={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);}`}}));function Ume(e,t){O(t,!0);let n=()=>j(IF,`$selectAssetsView`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`accept`,3,void 0),s=J(t,`assets`,19,()=>[]),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`selectedResources`,31,()=>Cr([])),d=N(void 0);ti(()=>{u().length||B(()=>{z(d)?.reset()})}),Us(T3(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);Fme(e,{get multiple(){return a()},get assets(){return s()},get viewType(){return z(t)},get searchTerms(){return c()},get basePath(){return l()},gridId:`select-assets-grid`,checkerboard:!0,get selectedResources(){return u()},set selectedResources(e){u(e)}})}},$$slots:{default:!0}}),e=>P(d,e,!0),()=>z(d)),k(),i()}var Wme=s((()=>{Q(),Y(),oc(),Hme(),M3(),RF()})),I5,L5,R5,z5=s((()=>{Y(),SF(),I5={count:0,name:``,showDialog:!1,resolve:()=>{}},L5=Cr({...I5}),R5=async({files:e,listedAssets:t})=>{let n=xF(e,t),r=n.length;if(!r)return!1;let{promise:i,resolve:a}=Promise.withResolvers();Object.assign(L5,{count:r,name:n[0].name,showDialog:!0,resolve:a});let o=await i;return Object.assign(L5,{...I5}),o}})),Gme,B5,V5,H5,Kme,U5,qme,W5=s((()=>{hp(),Np(),Gme=u(YM(),1),rp(),SF(),Hp(),B5=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r})=>{let i=Rp({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r}),a=t?Rp({collectionName:e,fileName:t}):void 0,o=Rp({collectionName:e}),s=a??o,c=A(Fp);return{field:{folder:i,enabled:i!==void 0},entry:{folder:s,enabled:!!s&&(s.entryRelative||s.hasTemplateTags)},file:{folder:a,enabled:!!a&&!a.entryRelative&&!a.hasTemplateTags},collection:{folder:o,enabled:!!o&&!o.entryRelative&&!o.hasTemplateTags},global:{folder:c,enabled:c!==void 0}}},V5=({entry:e,folder:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i}=t??{};if(!n)return r?.replace(`{{slug}}`,e?.slug??`-`);let a=i||void 0;if(e){let t=Dp(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${r}/${a}/-`:`${r}/-`},H5=({path:e,folderPath:t})=>t!==void 0&&(e===t||`${e}/-`===t||e.startsWith(`${t}/`)),Kme=({asset:e,folder:t,folderPath:n})=>{if(t===void 0||e.folder?.internalPath!==t.internalPath||e.folder?.entryRelative!==t.entryRelative)return!1;if(!t.entryRelative)return H5({path:e.path,folderPath:n});let{dirname:r}=Dp(e.path);return r===void 0?!1:H5({path:r,folderPath:n})},U5=({kind:e,folder:t,folderPath:n,unsavedAssets:r})=>[...A(oF),...r].filter(t=>!e||e===t.kind).sort((e,t)=>e.name.localeCompare(t.name)).sort((e,t)=>Number(!!t.unsaved)-Number(!!e.unsaved)).filter(e=>Kme({asset:e,folder:t,folderPath:n})),qme=async({hash:e,folder:t,unsavedAssets:n})=>(await Promise.all(n.map(async n=>!!n.file&&(0,Gme.default)(n.folder,t)&&await mp(n.file)===e))).includes(!0)})),G5,K5,q5,J5,Jme,Y5,X5=s((()=>{hp(),G5=u(YM(),1),kE(),rp(),SF(),vT(),AS(),aF(),ew(),K5=async({draft:e,file:t,folder:n})=>{let r=await mp(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await mp(t.file)===r&&(!n?.entryRelative||(0,G5.default)(t.folder,n))&&(i=e)})),i},q5=async({file:e,blobURL:t,folder:n,targetFolderPath:r})=>{let{name:i,size:a}=e;return{unsaved:!0,file:e,blobURL:t??URL.createObjectURL(e),name:i,path:r?`${r}/${i}`:i,sha:await $C(e),size:a,kind:kS(i),folder:n}},J5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>q5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),Jme=(e,t)=>{let n=A(oF);if(!t?.entryRelative)return n;let{originalEntry:r,defaultLocale:i,collection:a}=e,o=r?.locales[i]?.path;if(!o)return[];let s=a._type===`entry`?a._file.subPath:void 0,c=s?.includes(`/`)?s.split(`/`).at(-1):void 0,l=o.substring(0,o.lastIndexOf(`.`));c&&!c.includes(`{{`)&&(l=l.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??l);let u=[l,t.internalSubPath].filter(Boolean).join(`/`);return n.filter(e=>e.path.startsWith(`${u}/`))},Y5=async({draft:e,resource:t,libraryConfig:n})=>{let{url:r,credit:i,replace:a=!1}=t,{asset:o,file:s}=t,c=``,l;if(s){let{folder:r}=t,i=await K5({draft:e,file:s,folder:r});if(i)c=i;else{let{file:t,oversized:i}=await iF(s,n??{});s=t;let u=await $C(s),d=[...Jme(e,r),...await J5({draft:e})].find(e=>e.sha===u&&(0,G5.default)(e.folder,r));d?(o=d,s=void 0):i?(l=s.name,s=void 0):(c=URL.createObjectURL(s),e.files[c]={file:s,folder:r,replace:a})}}return o&&(o.unsaved?o.file&&(c=await K5({draft:e,file:o.file,folder:o.folder})):c=hT(o,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!s&&!o&&(c=r),{value:c,credit:i?OE(i,{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`]}):``,oversizedFileName:l}}})),Z5,Q5,$5,Yme,e7,Xme,Zme,Qme,$me=s((()=>{Z(),Yx(),Z5=[`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(`,`),Q5=`https://api.pexels.com/v1`,$5={per_page:80},Yme=()=>{let e=Oh.current.toLowerCase(),[t]=e.split(`-`);return Z5.find(t=>t.toLowerCase()===e)??Z5.find(e=>e.split(`-`)[0]===t)??`en-US`},e7=e=>e.map(({id:e,url:t,alt:n,src:{large2x:r,medium:i},photographer:a})=>({id:String(e),description:t.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g,` `)??n,previewURL:i,downloadURL:r,fileName:`pexels-${a.split(/\s+/).join(`-`).toLowerCase()}-${e}.jpg`,kind:`image`,credit:`<a href="${t}">Photo by ${a} on Pexels</a>`})),Xme=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams($5),r=await fetch(`${Q5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return e7(i)},Zme=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...$5,query:e,locale:Yme()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${Q5}/search?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{photos:a,next_page:o}=await t.json();if(i.push(...a),!o)break;await Jx(50)}return e7(i)},Qme={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:Xme,search:Zme}})),ehe,the,nhe,rhe,ihe,ahe,ohe,she=s((()=>{ehe=`https://picsum.photos/v2/list`,the=100,nhe=10,rhe=3,ihe=e=>e.map(({id:e,width:t,height:n})=>{let r=t>=n,[i,a]=r?[1920,1280]:[1280,1920],[o,s]=r?[480,320]:[320,480];return{id:e,description:``,previewURL:`https://picsum.photos/id/${e}/${o}/${s}.webp`,downloadURL:`https://picsum.photos/id/${e}/${i}/${a}.webp`,fileName:`picsum-${e}.webp`,kind:`image`}}),ahe=async()=>{let e=Array.from({length:nhe},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,rhe),t=await Promise.all(e.map(e=>fetch(`${ehe}?page=${e}&limit=${the}`)));return t.some(e=>!e.ok)?Promise.reject():ihe((await Promise.all(t.map(e=>e.json()))).flat().sort(()=>Math.random()-.5))},ohe={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:ahe}})),che,t7,n7,r7,i7,lhe,uhe,dhe,fhe=s((()=>{Z(),che=`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(`,`),t7=`https://pixabay.com/api`,n7={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},r7=e=>e.map(({id:e,webformatURL:t,previewURL:n,largeImageURL:r,imageWidth:i,imageHeight:a,pageURL:o,tags:s,user:c})=>({id:String(e),description:s,previewURL:t.replace(`_640.`,i>a?`_180.`:`_340.`),downloadURL:r,fileName:n.split(`/`).pop().replace(`_150.`,`_1280.`),kind:`image`,credit:`<a href="${o}">Photo by ${c} on Pixabay`})),i7=()=>{let[e]=Oh.current.toLowerCase().split(`-`);return che.includes(e)?e:`en`},lhe=async({apiKey:e})=>{let t=new URLSearchParams({...n7,key:e,lang:i7(),editors_choice:`true`}),n=await fetch(`${t7}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return r7(r)},uhe=async(e,{apiKey:t})=>{let n=new URLSearchParams({...n7,key:t,lang:i7(),q:e}),r=await fetch(`${t7}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return r7(i)},dhe={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:lhe,search:uhe}})),a7,o7,s7,c7,phe,l7,mhe,hhe,ghe,_he=s((()=>{Z(),Yx(),a7=[`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(`,`),o7=`https://api.unsplash.com`,s7=`utm_source=sveltia-cms&utm_medium=referral`,c7={per_page:30},phe=()=>{let e=Oh.current.toLowerCase(),[t]=e.split(`-`);return a7.find(t=>t.toLowerCase()===e)??a7.find(e=>e.split(`-`)[0]===t)??`en`},l7=e=>e.map(({id:e,description:t,alt_description:n,urls:{regular:r,thumb:i},user:{username:a,name:o}})=>({id:String(e),description:[t,n].filter(Boolean).join(` — `),previewURL:i,downloadURL:r,fileName:`${o.split(/\s+/).join(`-`).toLowerCase()}-${e}-unsplash.jpg`,kind:`image`,credit:`Photo by <a href="https://unsplash.com/@${a}?${s7}">${o}</a> on <a href="https://unsplash.com/?${s7}">Unsplash</a>`})),mhe=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(c7),r=await fetch(`${o7}/photos?${n}`,{headers:t});return r.ok?l7(await r.json()):Promise.reject()},hhe=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...c7,query:e,lang:phe()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${o7}/search/photos?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{results:a,total_pages:o}=await t.json();if(i.push(...a),o===e)break;await Jx(50)}return l7(i)},ghe={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:mhe,search:hhe}})),u7,d7,vhe=s((()=>{tF(),$me(),she(),fhe(),_he(),u7={pexels:Qme,picsum:ohe,pixabay:dhe,unsplash:ghe},d7=({fieldConfig:e}={})=>{let t=eF({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(u7),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}}));function yhe(e,t){let n=Ia();O(t,!0),K(e,khe);let r=()=>j(t.entryDraft,`$entryDraft`,c),i=()=>j($M,`$prefs`,c),a=()=>j(zA,`$isSmallScreen`,c),o=()=>j(AF,`$showContentOverlay`,c),s=()=>j(IF,`$selectAssetsView`,c),[c,l]=hn(),u=e=>{var n=xhe(),r=I(n),i=e=>{var n=bhe(),r=I(n),i=e=>{{let t=M(()=>IF);_6(e,{get currentView(){return z(t)},"aria-controls":`select-assets-grid`})}};G(r,e=>{s()&&e(i)});var o=L(r,2);{let e=M(()=>!z(ie)),n=M(()=>z(C).some(e=>e.file)),r=M(()=>X(`assets_dialog.search_for_${t.kind??`file`}`));wR(o,{dir:`auto`,get flex(){return a()},get debounce(){return z(e)},get disabled(){return z(n)},get"aria-label"(){return z(r)},get value(){return z(v)},set value(e){P(v,e,!0)}})}U(e,n)};G(r,e=>{(z(ie)||z(de)&&z(y)!==`cloudinary`||z(fe)&&z(y)!==`picsum`)&&e(i)});var o=L(r,2),c=e=>{{let t=e=>{zF(e,{name:`cloud_upload`})},n=M(()=>X(`upload`));tI(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(S)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};G(o,e=>{(z(ie)||z(de)&&z(y)!==`cloudinary`)&&e(c)}),U(e,n)},d=J(t,`open`,15,!1),f=J(t,`multiple`,3,!1),p=J(t,`accept`,19,()=>t.kind===`image`?Hw.join(`,`):void 0),m=J(t,`canEnterURL`,3,!0),h=J(t,`onSelect`,3,void 0),g=J(t,`pendingFiles`,31,()=>Cr([])),_=N(``),v=N(``),y=N(`default-global`),b=N(Cr([])),x=N(Cr([])),S=N(void 0),C=N(Cr([])),w=N(void 0),ee=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},T=M(()=>t.kind===`image`?X(`assets_dialog.title.image`):X(`assets_dialog.title.file`)),ne=M(()=>H6(z(v))),re=M(()=>eF({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),ie=M(()=>z(y).startsWith(`default-`)),ae=M(()=>{if(!z(ie))return;let e=z(y).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),oe=M(()=>V5({entry:r()?.originalEntry,folder:z(ae)})),se=M(()=>U5({kind:t.kind,folder:z(ae),folderPath:z(oe),unsavedAssets:z(x)})),ce=M(()=>{let{providers:e=[]}=d7({fieldConfig:t.fieldConfig});return Object.entries(u7).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(re))).sort(ee)}),le=M(()=>z(ce).some(([e,{authType:t}])=>e===z(y)&&(t===`none`||!!i()?.apiKeys?.[z(y)]))),ue=M(()=>[...t.enabledCloudServiceEntries,...z(ce)].sort(ee)),de=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(y))),fe=M(()=>z(ce).map(([e])=>e).includes(z(y))),E=M(()=>a()?NR:jL),pe=async e=>{let t=await mp(e),n=z(ae);if(await qme({hash:t,folder:n,unsavedAssets:z(x)}))return;let r=await q5({file:e,folder:n,targetFolderPath:z(oe)});return z(b).push(r),r},me=async e=>{let t=await R5({files:e,listedAssets:z(se)});t!==void 0&&P(C,(await Promise.all(e.map(e=>pe(e)))).filter(e=>!!e).map(e=>({asset:e,replace:t})),!0)},he=()=>{P(_,``),P(v,``),P(b,[],!0),P(x,[],!0),P(C,[],!0)},ge=()=>{if(!z(C).length)return;let e=jt(z(C)).map(e=>{let{asset:{unsaved:t,file:n,folder:r}={},replace:i}=e;return t?{file:n,folder:r,replace:i}:e});h()?.(e)};ri(()=>{let e=z(re)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(y,`default-${e}`):P(y,z(ue)[0]?.[0],!0)}),ti(()=>{r()?.files,jt(z(b)),(async()=>{P(x,[...r()?.files?await J5({draft:r(),targetFolderPath:z(oe)}):[],...Object.values(z(b))],!0)})()}),ti(()=>{o()||d(!1)}),ti(()=>{z(w)&&g().length&&(z(w).uploadFiles(g()),g([]))});var _e=Ohe(),ve=I(_e);{let e=e=>{var t=H(),n=I(t),r=e=>{u(e)};G(n,e=>{a()||e(r)}),U(e,t)},r=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{showServiceLink:e,serviceLabel:t,serviceURL:n}=u7[z(y)]??{};return{showServiceLink:e,serviceLabel:t,serviceURL:n}});var n=H(),r=I(n),i=e=>{var n=She(),r=F(n,!0);D(n),R(e=>{q(n,`href`,z(t).serviceURL),W(r,e)},[()=>X(`prefs.media.stock_photos.credit`,{values:{service:z(t).serviceLabel}})]),U(e,n)};G(r,e=>{z(t).showServiceLink&&e(i)}),U(e,n)};G(n,e=>{z(le)&&e(r)}),U(e,t)},i=M(()=>X(`insert`)),o=M(()=>!z(C).length);$I(ve,{get title(){return z(T)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(o)},keepContent:!0,focusInput:!1,onOk:ge,onClose:()=>{he()},get open(){return d()},set open(e){d(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=Dhe(),o=F(i),s=F(o);{let e=M(()=>X(`assets_dialog.locations`));Oo(s,()=>z(E),(r,i)=>{i(r,{class:`tabs`,get"aria-label"(){return z(e)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:e=>{P(y,e.detail.name,!0),P(C,[],!0)},children:(e,n)=>{var r=whe(),i=I(r),a=e=>{{let n=M(()=>X(`asset_location.repository`));FL(e,{get label(){return z(n)},children:(e,n)=>{var r=H();mo(I(r),17,()=>Object.entries(t.assetLibraryFolderMap),([e,{enabled:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].enabled;var a=H(),o=I(a),s=e=>{let t=M(()=>`default-${r()}`);{let n=M(()=>X(`assets_dialog.folder.${r()}`)),i=M(()=>z(y)===z(t));RL(e,{get name(){return z(t)},get label(){return z(n)},get selected(){return z(i)}})}};G(o,e=>{i()&&e(s)}),U(e,a)}),U(e,r)},$$slots:{default:!0}})}};G(i,e=>{z(re)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`asset_location.external`));FL(e,{get label(){return z(n)},children:(e,n)=>{var r=Che(),i=I(r);mo(i,17,()=>t.enabledCloudServiceEntries,([,{serviceId:e,serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(y)===r());RL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}});var a=L(i,2),o=e=>{{let t=M(()=>X(`assets_dialog.enter_url`)),n=M(()=>z(y)===`enter-url`);RL(e,{name:`enter-url`,get label(){return z(t)},get selected(){return z(n)}})}};G(a,e=>{m()&&e(o)}),U(e,r)},$$slots:{default:!0}})}},c=M(()=>m()||!!Object.keys(t.enabledCloudServiceEntries).length);G(o,e=>{z(c)&&e(s)});var l=L(o,2),u=e=>{{let t=M(()=>X(`asset_location.stock_photos`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(ce),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(y)===r());RL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),U(e,n)},$$slots:{default:!0}})}};G(l,e=>{z(ce).length&&e(u)}),U(e,r)},$$slots:{default:!0}})})}var c=L(s,2),l=e=>{var t=The();u(F(t)),D(t),U(e,t)};G(c,e=>{a()&&e(l)}),D(o);var h=L(o,2),g=F(h),v=e=>{Ume(e,{get accept(){return p()},get multiple(){return f()},get assets(){return z(se)},get searchTerms(){return z(ne)},get basePath(){return z(ae).internalPath},onDrop:({files:e})=>{me(e)},get selectedResources(){return z(C)},set selectedResources(e){P(C,e,!0)}})};G(g,e=>{z(ie)&&z(ae)&&e(v)});var b=L(g,2),x=e=>{P$(e,{children:(e,n)=>{var r=Ehe(),i=I(r),a=F(i,!0);D(i),lL(L(i,2),{dir:`ltr`,flex:!0,oninput:()=>{let e=z(_).trim();P(C,e?[{url:e}]:[],!0)},get value(){return z(_)},set value(e){P(_,e,!0)}}),R(e=>W(a,e),[()=>t.kind===`image`?X(`assets_dialog.enter_image_url`):X(`assets_dialog.enter_file_url`)]),U(e,r)},$$slots:{default:!0}})};G(b,e=>{m()&&z(y)===`enter-url`&&e(x)}),mo(L(b,2),17,()=>z(ue),([e,t])=>e,(e,n)=>{var r=M(()=>te(z(n),2));let i=()=>z(r)[0],a=()=>z(r)[1];var o=H(),s=I(o),c=e=>{{let n=M(()=>z(y)!==`cloudinary`);Qpe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return f()},get hidden(){return z(n)},onSelect:e=>{d()&&(P(C,e,!0),ge(),d(!1))}})}},l=e=>{Us(xme(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return f()},get searchTerms(){return z(ne)},get serviceProps(){return a()},gridId:`select-assets-grid`,get selectedResources(){return z(C)},set selectedResources(e){P(C,e,!0)}}),e=>P(w,e,!0),()=>z(w))};G(s,e=>{i()===`cloudinary`?e(c):z(y)===i()&&e(l,1)}),U(e,o)}),D(h),D(i),R(()=>q(h,`id`,`${n}-content-pane`)),U(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}Us(_L(L(ve,2),{get accept(){return p()},get multiple(){return f()},onSelect:({files:e})=>{z(de)?z(w)?.uploadFiles(e):me(e)}}),e=>P(S,e,!0),()=>z(S)),U(e,_e),k(),l()}var bhe,xhe,She,Che,whe,The,Ehe,Dhe,Ohe,khe,Ahe=s((()=>{Q(),Y(),Z(),B$(),hp(),nme(),Pme(),Wme(),x6(),RF(),z5(),W5(),X5(),tF(),vhe(),G6(),WA(),eN(),Ww(),bhe=V(`<!> <!>`,1),xhe=V(`<!> <!>`,1),She=V(`<a> </a>`),Che=V(`<!> <!>`,1),whe=V(`<!> <!> <!>`,1),The=V(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),Ehe=V(`<div role="none"> </div> <!>`,1),Dhe=V(`<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>`),Ohe=V(`<!> <!>`,1),khe={hash:`svelte-5b1zbe`,code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;max-height:800px;--tile-padding: 4px;}
935
- @media (width < 768px) {.wrapper.svelte-5b1zbe {flex-direction:column;overflow:hidden;height:72dvh;}
936
- }.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {display:flex;gap:4px;}
937
- @media (width < 768px) {.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {flex-direction:column;}
938
- }.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 jhe(e,t){O(t,!0);{let t=e=>{var t=Mhe(),n=I(t);UI(n,{flex:!0});var r=L(n,2);tI(r,{variant:`primary`,onclick:()=>L5.resolve(!0),children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`replace`)]),U(e,n)},$$slots:{default:!0}});var i=L(r,2);tI(i,{variant:`primary`,onclick:()=>L5.resolve(!1),children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keep_both`)]),U(e,n)},$$slots:{default:!0}}),tI(L(i,2),{variant:`secondary`,onclick:()=>L5.resolve(void 0),children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`cancel`)]),U(e,n)},$$slots:{default:!0}}),U(e,t)},n=M(()=>X(`file_name_conflict_resolution`));cL(e,{get title(){return z(n)},onCancel:()=>L5.resolve(void 0),get open(){return L5.showDialog},set open(e){L5.showDialog=e},footer:t,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`file_name_conflict_confirmation_with_name`,{values:{count:L5.count,name:L5.name}})]),U(e,n)},$$slots:{footer:!0,default:!0}})}k()}var Mhe,Nhe=s((()=>{Q(),Y(),Z(),B$(),z5(),Mhe=V(`<!> <!> <!> <!>`,1)}));function Phe(e,t){O(t,!0),K(e,zhe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`readonly`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`required`,3,!1),c=J(t,`collectionName`,3,``),l=J(t,`fileName`,3,void 0),u=J(t,`typedKeyPath`,3,void 0),d=J(t,`entry`,3,void 0),f=N(void 0),p=N(void 0),m=N(void 0),h=N(void 0),g=M(()=>t.fieldConfig.widget),_=M(()=>z(g)===`image`),v=M(()=>{if(!t.value)return``;if(z(p)){let{publicPath:e,entryRelative:r,hasTemplateTags:i}=n()?.files[t.value]?.folder??{};return XC([r||i?``:e||``,decodeURI(z(p).name.normalize())])}if(!t.value.startsWith(`blob:`)){let e=decodeURI(t.value);if(bp(e)){let t=new URL(e);if(t.search)return t.search=``,`${t}…`}return e}return``}),y=async()=>{if(t.value?.startsWith(`blob:`)&&n()&&P(p,n().files[t.value]?.file,!0),t.value){let e={value:t.value,entry:d(),collectionName:c(),fileName:l(),fieldConfig:t.fieldConfig,typedKeyPath:u()};z(_)&&/^https?:/.test(t.value)?(P(f,void 0),P(m,`image`),P(h,t.value,!0)):t.value.startsWith(`blob:`)||(P(f,vF({...e}),!0),P(m,void 0),P(h,void 0)),!z(f)&&!z(h)&&(P(m,await DS(t.value),!0),P(h,z(m)?await _T({...e,thumbnail:!0}):void 0,!0))}else P(f,void 0),P(p,void 0),P(m,void 0),P(h,void 0)};ti(()=>{t.value,B(()=>{y()})});var b=Rhe(),x=F(b),S=e=>{var n=Fhe(),r=F(n);{let e=e=>{zF(e,{name:`arrow_upward`})},n=M(()=>!t.onMoveUp),i=M(()=>X(`move_up`));tI(r,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(i)},onclick:()=>{t.onMoveUp?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{zF(e,{name:`arrow_downward`})},n=M(()=>!t.onMoveDown),r=M(()=>X(`move_down`));tI(i,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{t.onMoveDown?.()},startIcon:e,$$slots:{startIcon:!0}})}D(n),U(e,n)};G(x,e=>{(t.onMoveUp||t.onMoveDown)&&!a()&&e(S)});var C=L(x,2),w=e=>{n2(e,{get kind(){return z(m)},get src(){return z(h)},variant:`tile`,checkerboard:!0})},ee=e=>{n2(e,{get kind(){return z(f).kind},get asset(){return z(f)},variant:`tile`,checkerboard:!0})},T=e=>{var t=Ihe();zF(F(t),{name:`draft`}),D(t),U(e,t)};G(C,e=>{z(m)&&z(h)?e(w):z(f)?e(ee,1):e(T,-1)});var te=L(C,2),ne=F(te),re=e=>{var n=Lhe(),r=F(n,!0);D(n),R(()=>{q(n,`id`,`${t.fieldId??``}-value`),q(n,`aria-readonly`,a()),q(n,`aria-invalid`,o()),q(n,`aria-required`,s()),q(n,`aria-labelledby`,`${t.fieldId??``}-label`),q(n,`aria-errormessage`,`${t.fieldId??``}-error`),W(r,z(v))}),U(e,n)};G(ne,e=>{typeof t.value==`string`&&e(re)});var ie=L(ne,2),ae=F(ie),oe=e=>{{let n=M(()=>X(`replace`)),r=M(()=>X(`replace_${z(g)}`));tI(e,{get disabled(){return a()},variant:`tertiary`,size:`small`,get label(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{t.onReplace()}})}};G(ae,e=>{t.onReplace&&e(oe)});var se=L(ae,2),ce=e=>{{let n=M(()=>X(`remove`)),r=M(()=>X(`remove_${z(g)}`));tI(e,{get disabled(){return a()},variant:`tertiary`,size:`small`,get label(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{t.onRemove()}})}};G(se,e=>{t.onRemove&&e(ce)}),D(ie),D(te),D(b),U(e,b),k(),i()}var Fhe,Ihe,Lhe,Rhe,zhe,Bhe=s((()=>{Q(),Y(),Z(),B$(),Sp(),oc(),l2(),SF(),vT(),AS(),W4(),ew(),Fhe=V(`<div role="toolbar" class="reorder-controls svelte-1yfgkx5"><!> <!></div>`),Ihe=V(`<span role="none" class="preview no-thumbnail"><!></span>`),Lhe=V(`<div role="textbox" tabindex="0" class="filename svelte-1yfgkx5"> </div>`),Rhe=V(`<div role="none" class="filled svelte-1yfgkx5"><!> <!> <div role="none" class="svelte-1yfgkx5"><!> <div role="none"><!> <!></div></div></div>`),zhe={hash:`svelte-1yfgkx5`,code:`.filled.svelte-1yfgkx5 {display:flex !important;align-items:center;gap:12px;margin:var(--sui-focus-ring-width);}.filled.svelte-1yfgkx5 .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-1yfgkx5 .preview.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);}.filled.svelte-1yfgkx5 .preview.no-thumbnail .icon {font-size:64px;}.filled.svelte-1yfgkx5 .sui.button.tertiary.small {margin:var(--sui-focus-ring-width);}.filled.svelte-1yfgkx5 > div:where(.svelte-1yfgkx5) {flex:auto;overflow:hidden;}.filled.svelte-1yfgkx5 > div:where(.svelte-1yfgkx5) .filename:where(.svelte-1yfgkx5) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;}.filled.svelte-1yfgkx5 > div:where(.svelte-1yfgkx5) .filename:where(.svelte-1yfgkx5):empty {margin:0;padding:0;}.reorder-controls.svelte-1yfgkx5 {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-1yfgkx5 button {padding:0;height:16px;}`}}));function Vhe(e,t){O(t,!0),K(e,Khe);let n=()=>j(HA,`$hasMouse`,r),[r,i]=hn(),a=e=>{var n=Hhe(),r=F(n);{let e=M(()=>X(`browse`));tI(r,{get label(){return z(e)},variant:`tertiary`,size:`small`,get disabled(){return z(u)},onclick:e=>{e.stopPropagation(),s(!1),o(!0)}})}var i=L(r,2),a=e=>{{let n=M(()=>X(t.isImageField?`paste`:`paste_image`));tI(e,{get label(){return z(n)},variant:`tertiary`,size:`small`,get disabled(){return z(u)},onclick:e=>{e.stopPropagation(),d()}})}};G(i,e=>{c()&&e(a)}),D(n),U(e,n)},o=J(t,`showSelectAssetsDialog`,15,!1),s=J(t,`replaceMode`,15,!1),c=J(t,`onFilePaste`,3,void 0),l=Cr({show:!1,message:``}),u=M(()=>t.readonly||t.processing),d=async()=>{if(!(z(u)||!c()))try{let e=await navigator.clipboard.read(),t,n=e.find(e=>e.types.some(e=>{let n=e.startsWith(`image/`);return n&&(t=e),n}));if(n&&t){let e=await n.getType(t),r=t.split(`/`)[1].replace(`+xml`,``),i=new File([e],`pasted-image-${Date.now()}.${r}`,{type:t});c()(i);return}Object.assign(l,{message:X(`no_image_in_clipboard`),show:!0})}catch{Object.assign(l,{message:X(`clipboard_access_denied`),show:!0})}};var f=Ghe(),p=I(f);let m;var h=F(p);zF(h,{name:`cloud_upload`});var g=L(h,2),_=F(g),v=e=>{var n=Uhe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`processing_files`,{values:{count:t.multiple?2:1}})]),U(e,n)},y=e=>{var n=Whe(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`click_to_browse`)]),U(e,t)},o=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`drop_image_files_or`,{values:{count:t.multiple?2:1}})]),U(e,n)},s=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`drop_files_or`,{values:{count:t.multiple?2:1}})]),U(e,n)};G(r,e=>{t.allowDrop?t.isImageField?e(o,1):e(s,-1):e(i)}),a(L(r,2)),U(e,n)},b=e=>{a(e)};G(_,e=>{t.processing?e(v):n()?e(y,1):e(b,-1)}),D(g),D(p),nz(L(p,2),{get show(){return l.show},set show(e){l.show=e},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,l.message)),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(()=>{m=ss(p,1,`empty svelte-1jvz1op`,null,m,{invalid:t.invalid,processing:t.processing}),q(p,`aria-disabled`,z(u)||void 0),q(p,`tabindex`,z(u)?-1:0)}),Sa(`click`,p,()=>{n()&&!z(u)&&(s(!1),o(!0))}),Sa(`keydown`,p,e=>{!z(u)&&WF(e,`Accel+V`)&&(e.preventDefault(),d())}),U(e,f),k(),i()}var Hhe,Uhe,Whe,Ghe,Khe,qhe=s((()=>{Q(),Y(),Z(),B$(),KF(),WA(),Hhe=V(`<div role="none" class="buttons"><!> <!></div>`),Uhe=V(`<div role="status"> </div>`),Whe=V(`<!> <!>`,1),Ghe=V(`<div role="button"><!> <div role="none" class="label svelte-1jvz1op"><!></div></div> <!>`,1),Khe={hash:`svelte-1jvz1op`,code:`.empty.svelte-1jvz1op {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:120px;margin:var(--sui-focus-ring-width);border-width:1px;border-style:solid;border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));border-radius:var(--sui-button-medium-border-radius);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-family:var(--sui-control-font-family);font-size:var(--sui-font-size-small);cursor:pointer;transition:all 200ms;}.empty.svelte-1jvz1op:focus-visible {z-index:1;outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);outline-offset:var(--sui-focus-ring-offset);}.empty.svelte-1jvz1op:not([aria-disabled=true]):is(:where(.svelte-1jvz1op):hover, :where(.svelte-1jvz1op):focus-visible) {background-color:var(--sui-button-tertiary-background-color-focus, var(--sui-hover-background-color));}.empty.svelte-1jvz1op:not([aria-disabled=true]):active {background-color:var(--sui-button-tertiary-background-color-active, var(--sui-active-background-color));}.empty.svelte-1jvz1op .icon {color:var(--sui-secondary-foreground-color);font-size:48px;}.empty[aria-disabled=true].svelte-1jvz1op {pointer-events:none !important;}.empty[aria-disabled=true].svelte-1jvz1op * {opacity:0.5;}
939
- @media (pointer: coarse) {.empty.svelte-1jvz1op {cursor:default;}.empty.svelte-1jvz1op:active, .empty.svelte-1jvz1op:focus {background-color:var(--sui-button-background-color) !important;}
940
- }.empty.invalid.svelte-1jvz1op {border-color:var(--sui-error-border-color);}.label.svelte-1jvz1op {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 4px;white-space:nowrap;}.label.svelte-1jvz1op .button {margin-block:0;}`},Ca([`click`,`keydown`])}));function Jhe(e,t){O(t,!0),K(e,Qhe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=e=>{Vhe(e,{get allowDrop(){return z(Se)},get invalid(){return f()},get readonly(){return d()},get processing(){return z(b)},get isImageField(){return z(ce)},get multiple(){return z(he)},onFilePaste:e=>{we([{file:e,folder:z(E)}])},get showSelectAssetsDialog(){return z(p)},set showSelectAssetsDialog(e){P(p,e,!0)},get replaceMode(){return z(m)},set replaceMode(e){P(m,e,!0)}})},o=e=>{var n=H(),r=I(n),i=e=>{var n=H(),r=I(n),i=e=>{var n=H(),r=I(n),i=e=>{var n=Yhe(),r=I(n);mo(r,23,l,(e,t)=>`${e}|${t}`,(e,n,r)=>{{let i=M(()=>z(r)>0?()=>De(z(r)-1):void 0),a=M(()=>z(r)<l().length-1?()=>De(z(r)):void 0);Phe(e,Xs(()=>z(ve),{get value(){return z(n)},get fieldId(){return`${t.fieldId??``}-${z(r)??``}`},onReplace:()=>{P(m,!0),P(h,z(r),!0),P(p,!0)},onRemove:()=>Ee(z(r)),get onMoveUp(){return z(i)},get onMoveDown(){return z(a)}}))}}),D(r);var i=L(r,2),o=e=>{a(e)};G(i,e=>{l().length<z(ee)&&e(o)}),U(e,n)},o=M(()=>Array.isArray(l()));G(r,e=>{z(o)&&e(i)}),U(e,n)},o=e=>{Phe(e,Xs(()=>z(ve),{get value(){return l()},get fieldId(){return t.fieldId},onReplace:()=>{P(m,!0),P(p,!0)},onRemove:Ce}))};G(r,e=>{z(he)?e(i):typeof l()==`string`&&l()&&e(o,1)}),U(e,n)},o=e=>{a(e)};G(r,e=>{l()?.length&&!z(b)?e(i):e(o,-1)}),U(e,n)},{fieldContext:s=void 0}=Rt(`field-editor`)??{},c=s===`rich-text-editor-component`,l=J(t,`currentValue`,15),u=J(t,`required`,3,!0),d=J(t,`readonly`,3,!1),f=J(t,`invalid`,3,!1),p=N(!1),m=N(!1),h=N(-1),g=N(!1),_=N(!1),v=N(``),y=N(void 0),b=N(!1),x=N(Cr([])),S=N(Cr([])),C=N(Cr([])),w=M(()=>t.fieldConfig.widget),ee=M(()=>T(t.fieldConfig.max,1/0)),ne=M(()=>t.fieldConfig.accept),re=M(()=>T(t.fieldConfig.choose_url,!0)),ie=M(()=>n()?.originalEntry),ae=M(()=>n()?.collectionName??``),oe=M(()=>n()?.fileName),se=M(()=>n()?.isIndexFile??!1),ce=M(()=>z(w)===`image`),le=M(()=>z(ce)?`image`:void 0),ue=M(()=>nF({fieldConfig:t.fieldConfig})),de=M(()=>z(ue).config),fe=M(()=>B5({collectionName:z(ae),fileName:z(oe),typedKeyPath:t.typedKeyPath,isIndexFile:z(se)})),E=M(()=>Object.values(z(fe)).find(({enabled:e})=>e)?.folder),pe=M(()=>V5({entry:n()?.originalEntry,folder:z(E)})),me=M(()=>U5({kind:z(le),folder:z(E),folderPath:z(pe),unsavedAssets:z(C)})),he=M(()=>rA(t.fieldConfig)&&!c),ge=M(()=>z(de).max_file_size),_e=M(()=>!u()&&(!s||![`rich-text-editor-component`,`single-subfield-list-field`].includes(s))),ve=M(()=>({fieldConfig:t.fieldConfig,readonly:d(),invalid:f(),required:u(),showRemoveButton:z(_e),collectionName:z(ae),fileName:z(oe),typedKeyPath:t.typedKeyPath,entry:z(ie)})),ye=M(()=>Object.entries(dw).filter(([,{isEnabled:e}])=>e?.(t.fieldConfig)??!0)),be=M(()=>z(ue).enabled&&!!z(E)),xe=M(()=>+!!z(be)+z(ye).length),Se=M(()=>z(xe)===1),Ce=()=>{z(y)?.reset(),z(he)||(l(``),Tn())},we=async e=>{if(!n())return;let r=z(he)?void 0:l();Ce(),P(b,!0),P(x,[],!0);let i=await Promise.all(e.map(e=>Y5({draft:n(),resource:e,libraryConfig:z(de)}))),a=[],o=!1,s=z(he)?Object.keys(n().currentValues[t.locale]).filter(e=>e.startsWith(`${t.keyPath}.`)).map(e=>Number(e.replace(`${t.keyPath}.`,``))).pop()??-1:-1;i.forEach(({value:e,credit:r,oversizedFileName:i},u)=>{if(e)if(o=!0,z(he)){let r=z(m)?z(h):s+1+u;_n(z4,B(n).currentValues[t.locale][`${t.keyPath}.${r}`]=e,B(n))}else l(c?e.replaceAll(` `,`%20`):e);r&&a.push(r),i&&z(x).push(i)}),!o&&!z(he)&&r!==void 0&&l(r),a.length?(P(v,a.join(`
941
- `),!0),P(_,!0)):P(v,``),z(x).length&&P(g,!0),P(b,!1)},Te=async({files:e})=>{if(e.length)if(z(be)){let t=await R5({files:e,listedAssets:z(me)});if(t===void 0)return;we(e.map(e=>({file:e,folder:z(E),replace:t})))}else P(S,e,!0),P(p,!0)},Ee=e=>{if(!n())return;let r=jt(n().currentValues[t.locale]),i=[];for(let a=0;;a+=1){let o=`${t.keyPath}.${a}`,s=`${t.keyPath}.${a+1}`;if(a<e)i.push(r[o]);else if(s in r)i.push(r[s]),_n(z4,B(n).currentValues[t.locale][o]=r[s],B(n));else{_n(z4,B(n).currentValues[t.locale][o]=null,B(n)),delete n().currentValues[t.locale][o];break}}l(Object.values(i))},De=e=>{n()&&(r=>{var i=te(r,2);_n(z4,B(n).currentValues[t.locale][`${t.keyPath}.${e}`]=i[0],B(n)),_n(z4,B(n).currentValues[t.locale][`${t.keyPath}.${e+1}`]=i[1],B(n))})([n().currentValues[t.locale][`${t.keyPath}.${e+1}`],n().currentValues[t.locale][`${t.keyPath}.${e}`]])};ti(()=>{(async()=>{n()?.files?P(C,await J5({draft:n(),targetFolderPath:z(pe)}),!0):P(C,[],!0)})()});var Oe=Zhe(),ke=I(Oe),Ae=e=>{{let t=M(()=>z(ne)??(z(ce)?Hw.join(`,`):void 0));Us(T3(e,{get multiple(){return z(he)},get disabled(){return d()},get accept(){return z(t)},onDrop:Te,children:(e,t)=>{o(e)},$$slots:{default:!0}}),e=>P(y,e,!0),()=>z(y))}},je=e=>{o(e)};G(ke,e=>{z(Se)?e(Ae):e(je,-1)});var Me=L(ke,2);{let e=M(()=>z(m)?!1:z(he));yhe(Me,{get kind(){return z(le)},get multiple(){return z(e)},get accept(){return z(ne)},get canEnterURL(){return z(re)},get entryDraft(){return z4},get fieldConfig(){return t.fieldConfig},get assetLibraryFolderMap(){return z(fe)},get enabledCloudServiceEntries(){return z(ye)},onSelect:we,get open(){return z(p)},set open(e){P(p,e,!0)},get pendingFiles(){return z(S)},set pendingFiles(e){P(S,e,!0)}})}var Ne=L(Me,2);jhe(Ne,{});var Pe=L(Ne,2);vme(Pe,{get oversizedFileNames(){return z(x)},get maxSize(){return z(ge)},get open(){return z(g)},set open(e){P(g,e,!0)}});var Fe=L(Pe,2);{let e=M(()=>X(`assets_dialog.photo_credit.title`)),t=M(()=>X(`copy`));cL(Fe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{navigator.clipboard.writeText(z(v))},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{var n=Xhe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);l$(F(a),{dir:`auto`,flex:!0,readonly:!0,get value(){return z(v)},onclick:e=>{e.target.focus(),e.target.select()}}),D(a),R(e=>W(i,e),[()=>X(`assets_dialog.photo_credit.description`)]),U(e,n)},$$slots:{default:!0}})}U(e,Oe),k(),i()}var Yhe,Xhe,Zhe,Qhe,$he=s((()=>{Q(),Y(),Z(),B$(),oc(),Ahe(),Nhe(),M3(),bme(),Bhe(),qhe(),W4(),z5(),W5(),X5(),pw(),rF(),iA(),Ww(),Yhe=V(`<div role="none" class="item-list svelte-17jic1t"></div> <!>`,1),Xhe=V(`<div role="none"> </div> <div role="none"><!></div>`,1),Zhe=V(`<!> <!> <!> <!> <!>`,1),Qhe={hash:`svelte-17jic1t`,code:`.item-list.svelte-17jic1t {display:flex;flex-direction:column;gap:4px;}`}}));function ege(e,t){O(t,!0),K(e,rge);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`typedKeyPath`,3,void 0),o=N(void 0),s=N(void 0),c=M(()=>t.fieldConfig.widget),l=M(()=>z(c)===`image`),u=M(()=>n()?.originalEntry),d=M(()=>n()?.collectionName??``),f=M(()=>n()?.fileName);ti(()=>{t.value,B(async()=>{P(o,t.value?z(l)?`image`:await DS(t.value):void 0,!0),P(s,z(o)?await _T({value:t.value,entry:z(u),collectionName:z(d),fileName:z(f),fieldConfig:t.fieldConfig,typedKeyPath:a()}):void 0,!0)})});var p=H(),m=I(p),h=e=>{var t=tge(),n=F(t);{let e=M(()=>[`audio`,`video`].includes(z(o)));n2(n,{get kind(){return z(o)},get src(){return z(s)},get controls(){return z(e)}})}D(t),U(e,t)},g=e=>{var n=nge(),r=F(n,!0);D(n),R(()=>W(r,t.value)),U(e,n)},_=M(()=>t.value.trim()&&!t.value.startsWith(`blob:`));G(m,e=>{z(o)&&z(s)?e(h):z(_)&&e(g,1)}),U(e,p),k(),i()}var tge,nge,rge,ige=s((()=>{Q(),Y(),oc(),l2(),vT(),AS(),W4(),tge=V(`<p class="svelte-28vcoi"><!></p>`),nge=V(`<p class="svelte-28vcoi"> </p>`),rge={hash:`svelte-28vcoi`,code:`@media (width < 768px) {[role='document'] section > p.svelte-28vcoi:has(img) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
942
- }`}}));function age(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=H(),r=I(n),i=e=>{var n=H();mo(I(n),19,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,n)=>{ege(e,{get value(){return z(n)},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})}),U(e,n)},a=M(()=>Array.isArray(t.currentValue));G(r,e=>{z(a)&&e(i)}),U(e,n)},a=M(()=>rA(t.fieldConfig)),o=e=>{ege(e,{get value(){return t.currentValue},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})};G(r,e=>{z(a)?e(i):typeof t.currentValue==`string`&&t.currentValue&&e(o,1)}),U(e,n),k()}var oge=s((()=>{Q(),Y(),ige(),iA()})),f7,sge,cge,p7=s((()=>{rp(),W4(),f7=({entryDraft:e,valueStoreKey:t=`currentValues`,keyPath:n,locale:r})=>Object.entries(A(e)[t][r]??{}).filter(([e])=>e.startsWith(`${n}.`)).map(([e,t])=>[e.replace(`${n}.`,``),t]),sge=({pairs:e,edited:t})=>e.map(([e],n,r)=>{if(!e.trim()&&t[n])return`empty`;if(e.trim()&&r.findIndex(t=>t[0]===e)!==n)return`duplicate`}),cge=({entryDraft:e,keyPath:t,locale:n,fieldConfig:r,pairs:i})=>{let{i18n:a}=r;B4.set(!1),e.update(e=>(e&&Object.entries(e.currentValues).forEach(([e,r])=>{(e===n||a===`duplicate`)&&(Object.entries(r).forEach(([e])=>{e.startsWith(`${t}.`)&&delete r[e]}),i.forEach(([e,n])=>{r[`${t}.${e}`]=n}))}),e)),B4.set(!0)}}));function lge(e,t){O(t,!0),K(e,_ge);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`readonly`,3,!1),s=M(()=>T(t.fieldConfig.i18n,!1)),c=M(()=>t.fieldConfig.key_label),l=M(()=>t.fieldConfig.value_label),u=M(()=>T(t.fieldConfig.max,1/0)),d=M(()=>z(c)||X(`key_value.key`)),f=M(()=>z(l)||X(`key_value.value`)),p=N(Cr([])),m=N(Cr([])),h=0,g=Cr([]),_=N(Cr([])),v=N(Cr([])),y=()=>{if(!n())return;let e=f7({entryDraft:z4,valueStoreKey:a,keyPath:t.keyPath,locale:t.locale});(0,uge.default)(z(p),e)||(P(p,[...e],!0),P(m,e.map((e,t)=>t<z(m).length?z(m)[t]:(h+=1,h-1)),!0),P(_,e.map(()=>!1),!0)),!z(p).length&&n()[a][t.locale][t.keyPath]!==null&&_n(z4,B(n)[a][t.locale][t.keyPath]=null,B(n))},b=()=>{n()&&(Object.entries(n()[a]).forEach(([e,n])=>{(e===t.locale||z(s)===`duplicate`)&&delete n[t.keyPath]}),z(p).push([``,``]),z(m).push(h),h+=1,z(_).push(!1),window.requestAnimationFrame(()=>{g[z(p).length-1].querySelector(`input`).focus()}))},x=e=>{z(p).splice(e,1),z(m).splice(e,1),z(_).splice(e,1)},S=()=>{P(v,sge({pairs:z(p),edited:z(_)}),!0),!(!n()||z(v).some(Boolean)||z(p).some(([e])=>!e.trim()))&&cge({entryDraft:z4,fieldConfig:t.fieldConfig,keyPath:t.keyPath,locale:t.locale,pairs:z(p)})};ti(()=>{jt(n()?.[a][t.locale]),B(()=>{y()})}),ti(()=>{jt(z(p)),B(()=>{S()})});var C=gge(),w=I(C),ee=e=>{var n=mge(),r=F(n),i=F(r),a=F(i),s=F(a,!0);D(a);var c=L(a),l=F(c,!0);D(c);var h=L(c),y=e=>{var t=dge();R(e=>q(t,`aria-label`,e),[()=>X(`key_value.action`)]),U(e,t)};G(h,e=>{o()||e(y)}),D(i),D(r);var S=L(r);mo(S,23,()=>z(p),(e,t)=>z(m)[t],(e,n,r)=>{var i=pge(),a=F(i),s=F(a);{let e=M(()=>!!z(v)[z(r)]),i=M(()=>z(v)[z(r)]?`${t.fieldId}-kv-error`:void 0);lL(s,{dir:`ltr`,get readonly(){return o()},flex:!0,get invalid(){return z(e)},get"aria-label"(){return z(d)},get"aria-errormessage"(){return z(i)},oninput:()=>{z(_)[z(r)]=!0},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&g[z(r)].querySelector(`td.value input`).focus()},get value(){return z(n)[0]},set value(e){z(n)[0]=e}})}D(a);var c=L(a),l=F(c);{let e=M(()=>ib(t.locale));lL(l,{get dir(){return z(e)},get readonly(){return o()},flex:!0,get"aria-label"(){return z(f)},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&(z(r)<z(p).length-1?g[z(r)+1].querySelector(`input`).focus():z(p).length<z(u)&&b())},get value(){return z(n)[1]},set value(e){z(n)[1]=e}})}D(c);var m=L(c),h=e=>{var t=fge(),n=F(t);{let e=e=>{zF(e,{name:`close`})},t=M(()=>X(`remove`));tI(n,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{x(z(r))},startIcon:e,$$slots:{startIcon:!0}})}D(t),U(e,t)};G(m,e=>{o()||e(h)}),D(i),Us(i,(e,t)=>g[t]=e,e=>g?.[e],()=>[z(r)]),U(e,i)}),D(S),D(n),R(()=>{W(s,z(d)),W(l,z(f))}),U(e,n)};G(w,e=>{z(p).length&&e(ee)});var te=L(w,2),ne=e=>{N5(e,{get id(){return`${t.fieldId??``}-kv-error`},children:(e,t)=>{var n=hge(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`key_value.empty_key`)]),U(e,t)},a=M(()=>z(v).includes(`empty`));G(r,e=>{z(a)&&e(i)});var o=L(r,2),s=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`key_value.duplicate_key`)]),U(e,t)},c=M(()=>z(v).includes(`duplicate`));G(o,e=>{z(c)&&e(s)}),U(e,n)},$$slots:{default:!0}})},re=M(()=>z(v).some(Boolean));G(te,e=>{z(re)&&e(ne)});var ie=L(te,2),ae=F(ie);{let e=M(()=>X(`add`)),t=M(()=>o()||z(p).length>=z(u));tI(ae,{get label(){return z(e)},variant:`tertiary`,get disabled(){return z(t)},onclick:()=>{b()}})}D(ie),U(e,C),k(),i()}var uge,dge,fge,pge,mge,hge,gge,_ge,vge=s((()=>{Q(),Y(),Z(),B$(),uge=u(YM()),oc(),P5(),W4(),p7(),ub(),dge=V(`<th scope="col" class="action svelte-u0prcz"></th>`),fge=V(`<td class="action svelte-u0prcz"><!></td>`),pge=V(`<tr><td class="key svelte-u0prcz"><!></td><td class="value svelte-u0prcz"><!></td><!></tr>`),mge=V(`<table class="svelte-u0prcz"><thead><tr><th scope="col" class="key svelte-u0prcz"> </th><th scope="col" class="value svelte-u0prcz"> </th><!></tr></thead><tbody></tbody></table>`),hge=V(`<!> <!>`,1),gge=V(`<!> <!> <div role="none"><!></div>`,1),_ge={hash:`svelte-u0prcz`,code:`table.svelte-u0prcz {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-u0prcz,
943
- td.svelte-u0prcz {border-width:0;}th.svelte-u0prcz {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-u0prcz, th.value.svelte-u0prcz {width:50%;}td.svelte-u0prcz {padding:0;vertical-align:middle;}`}}));function yge(e,t){O(t,!0),K(e,Cge);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.key_label),o=M(()=>t.fieldConfig.value_label),s=M(()=>z(a)||X(`key_value.key`)),c=M(()=>z(o)||X(`key_value.value`)),l=N(Cr([])),u=()=>{let e=f7({entryDraft:z4,keyPath:t.keyPath,locale:t.locale});(0,bge.default)(z(l),e)||P(l,e,!0)};ti(()=>{n()&&(jt(n().currentValues[t.locale]),B(()=>{u()}))});var d=H(),f=I(d),p=e=>{var t=Sge(),n=F(t),r=F(n),i=F(r),a=F(i,!0);D(i);var o=L(i),u=F(o,!0);D(o),D(r),D(n);var d=L(n);mo(d,23,()=>z(l),([e,t],n)=>`${e}-${n}`,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=xge(),o=F(a),s=F(o,!0);D(o);var c=L(o),l=F(c,!0);D(c),D(a),R(()=>{W(s,r()),W(l,i())}),U(e,a)}),D(d),D(t),R(()=>{W(a,z(s)),W(u,z(c))}),U(e,t)};G(f,e=>{z(l).length&&e(p)}),U(e,d),k(),i()}var bge,xge,Sge,Cge,wge=s((()=>{Q(),Y(),Z(),bge=u(YM()),oc(),W4(),p7(),xge=V(`<tr><td class="svelte-11sa460"> </td><td class="svelte-11sa460"> </td></tr>`),Sge=V(`<table class="svelte-11sa460"><thead><tr><th scope="col" class="svelte-11sa460"> </th><th scope="col" class="svelte-11sa460"> </th></tr></thead><tbody></tbody></table>`),Cge={hash:`svelte-11sa460`,code:`@charset "UTF-8";table.svelte-11sa460 {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-11sa460 {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-11sa460:empty::after {content:"\xA0";}`}}));function Tge(e,t){O(t,!0);let n=J(t,`expanded`,3,!1);{let t=M(()=>n()?`expand_more`:bh()?`chevron_left`:`chevron_right`);zF(e,{get name(){return z(t)}})}k()}var Ege=s((()=>{Q(),Y(),Z(),B$()}));function m7(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`items`,19,()=>[]),i=J(t,`addItem`,3,()=>void 0),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.label),s=M(()=>t.fieldConfig.types),c=M(()=>t.fieldConfig.widget===`list`?t.fieldConfig:void 0),l=M(()=>z(c)?.label_singular??``),u=M(()=>z(c)?.max??void 0),d=M(()=>X(`add_x`,{values:{name:z(l)||z(o)||z(a)}})),f=M(()=>n()||typeof z(u)==`number`&&r().length===z(u));var p=H(),m=I(p),h=e=>{NI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},startIcon:e=>{zF(e,{name:`add`})},endIcon:e=>{},popup:e=>{{let t=M(()=>X(`select_list_type`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(s),({name:e,label:t})=>e,(e,t)=>{let n=()=>z(t).name,r=()=>z(t).label;{let t=M(()=>r()||n());qL(e,{get label(){return z(t)},onclick:()=>i()({type:n()})})}}),U(e,n)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},g=M(()=>Array.isArray(z(s))),_=e=>{tI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},onclick:()=>i()(),startIcon:e=>{zF(e,{name:`add`})},$$slots:{startIcon:!0}})};G(m,e=>{z(g)?e(h):e(_,-1)}),U(e,p),k()}var Dge=s((()=>{Q(),Y(),Z(),B$()}));function h7(e,t){O(t,!0),K(e,Age);let n=J(t,`label`,3,``),r=J(t,`expanded`,15),i=J(t,`centerContent`,3,void 0),a=J(t,`endContent`,3,void 0);var o=kge(),s=F(o),c=F(s);{let e=e=>{Tge(e,{get expanded(){return r()}})},i=M(()=>r()?X(`collapse`):X(`expand`));tI(c,{size:`small`,get"aria-label"(){return z(i)},get"aria-expanded"(){return r()},get"aria-controls"(){return t.controlId},onclick:()=>{r(!r()),t.toggleExpanded?.()},startIcon:e,children:(e,t)=>{var r=H(),i=I(r),a=e=>{var t=Oge(),r=F(t,!0);D(t),R(()=>W(r,n())),U(e,t)};G(i,e=>{n()&&e(a)}),U(e,r)},$$slots:{startIcon:!0,default:!0}})}D(s);var l=L(s,2);Eo(F(l),()=>i()??E),D(l);var u=L(l,2);Eo(F(u),()=>a()??E),D(u),D(o),U(e,o),k()}var Oge,kge,Age,g7=s((()=>{Q(),Y(),Z(),B$(),Ege(),Oge=V(`<span role="none" class="type svelte-57h597"> </span>`),kge=V(`<div role="none" class="header svelte-57h597"><div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div></div>`),Age={hash:`svelte-57h597`,code:`.header.svelte-57h597 {display:flex;align-items:center;gap:8px;height:24px;background-color:var(--sui-secondary-border-color);}.header.svelte-57h597 > div:where(.svelte-57h597) {display:flex;align-items:center;}.header.svelte-57h597 > div:where(.svelte-57h597):first-child {justify-content:flex-start;width:40%;}.header.svelte-57h597 > div:where(.svelte-57h597):nth-child(2) {width:20%;justify-content:center;}.header.svelte-57h597 > div:where(.svelte-57h597):last-child {width:40%;justify-content:flex-end;}.header.svelte-57h597 button {padding:0;height:16px;}.header.svelte-57h597 .type:where(.svelte-57h597) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}`}})),jge,Mge,Nge=s((()=>{jge=({fieldConfig:e,dynamicValue:t})=>{if(t!==void 0)return t===`true`;let{default:n}=e;return typeof n==`boolean`?n:!1},Mge=e=>({[e.keyPath]:jge(e)})})),Pge,Fge=s((()=>{p(),Pge=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,output_code_only:i=!1,keys:a={code:`code`,lang:`lang`}}=e,o=n===void 0?r:n;if(i)return{[t]:typeof o==`string`?o:``};let s=d(o)?o:void 0,c=s?.[a.code]??o,l=s?.[a.lang]??``;return{[t]:{},[`${t}.${a.code}`]:typeof c==`string`?c:``,[`${t}.${a.lang}`]:typeof l==`string`?l:``}}})),Ige,Lge,Rge=s((()=>{mC(),Ige=({fieldConfig:e,dynamicValue:t})=>{let n=e,r=n.default,i=t??r;return typeof i==`string`?i===`{{now}}`?dC(uC(n),``,n):i:``},Lge=e=>({[e.keyPath]:Ige(e)})})),_7,zge=s((()=>{iA(),_7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let r=e,i=r.default,a=rA(r),o=``;o=n===void 0?a?Array.isArray(i)?i:[]:typeof i==`string`?i:``:a?n.split(/,\s*/):n;let s={};return a&&Array.isArray(o)&&(o=o.map(e=>e.trim()).filter(e=>e!==``),o.length&&(s[t]=[],o.forEach((e,n)=>{s[`${t}.${n}`]=e}))),!a&&typeof o==`string`&&(s[t]=o.trim()),s}})),Bge,v7,Vge=s((()=>{hp(),rp(),Gj(),Bge=({fieldConfig:e,locale:t,dynamicValue:n})=>{let{email:r=``,login:i=``,name:a=``}=A(Wj),{default:o}=e,s=n??o;return typeof s==`string`?s.replaceAll(/{{(.+?)}}/g,(e,n)=>n===`locale`?t:n===`datetime`?new Date().toJSON().replace(/\d+\.\d+Z$/,`00.000Z`):n===`uuid`?fp():n===`uuid_short`?fp(`short`):n===`uuid_shorter`?fp(`shorter`):n===`author-email`?r:n===`author-login`?i:n===`author-name`?a:``):s},v7=e=>({[e.keyPath]:Bge(e)})})),Hge,Uge,Wge=s((()=>{p(),_A(),Hge=({fieldConfig:e,locale:t})=>{let{default:n}=e,r=dA({fieldConfig:e,locale:t});return d(n)?n:r?{"":``}:{}},Uge=e=>{let{keyPath:t,dynamicValue:n}=e,r;if(n!==void 0)try{let e=JSON.parse(n);d(e)&&(r=e)}catch{}return r??=Hge(e),Object.fromEntries(Object.entries(r).filter(([,e])=>typeof e==`string`).map(([e,n])=>[`${t}.${e}`,n]))}})),Gge,Kge=s((()=>{p(),dc(),Gge=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r}=e,{fields:i}=e,{types:a}=e,o;if(o=n===void 0?Array.isArray(r)?r:[]:n.split(/,\s*/).map(e=>e.trim()).filter(e=>e!==``),!(Array.isArray(o)&&o.length))return{[t]:[]};let s={[t]:o};return i||a?o.forEach((e,n)=>{d(e)?Object.entries(lc(e)).forEach(([e,r])=>{s[`${t}.${n}.${e}`]=r}):s[`${t}.${n}`]=e}):o.forEach((e,n)=>{d(e)||(s[`${t}.${n}`]=e)}),s}})),qge,Jge=s((()=>{qge=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,value_type:i=`int`}=e,a=n??r,o=typeof a==`string`;if(a===void 0)return i===`int`||i===`float`?{[t]:null}:{[t]:``};if([`int`,`int/string`].includes(i)){let e=o?Number.parseInt(a,10):a;return Number.isInteger(e)?{[t]:e}:{}}if([`float`,`float/string`].includes(i)){let e=o?Number.parseFloat(a):a;return Number.isFinite(e)?{[t]:e}:{}}return{}}})),Yge,Xge=s((()=>{p(),dc(),_A(),Yge=({fieldConfig:e,keyPath:t,locale:n,defaultLocale:r,populateDefault:i})=>{let{default:a}=e,{fields:o}=e,{types:s}=e,c=dA({fieldConfig:e,locale:n}),l={};return d(a)?(Object.entries(lc(a)).forEach(([e,n])=>{l[`${t}.${e}`]=n}),l):!c||Array.isArray(s)?(l[t]=null,l):(o&&o.length>0&&o.forEach(e=>{i?.({content:l,keyPath:[t,e.name].join(`.`),fieldConfig:e,locale:n,defaultLocale:r,dynamicValues:{}})}),l)}})),y7,Zge=s((()=>{Sp(),rp(),$P(),y7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r=A(JP)?.field_defaults?.richtext?.default}=e,i=``;if(n!==void 0)try{i=yp(n)}catch{i=n.replace(/<[^>]*>/g,``)}else i=r||``;return{[t]:i}}})),b7,Qge=s((()=>{b7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,multiple:i=!1}=e,a=n===void 0?r:n.split(/,\s*/).map(e=>e.trim()),o=Array.isArray(a)&&!!a.length;if(!i){if(n!==void 0){let e=n.split(/,\s*/).map(e=>e.trim());return{[t]:e[0]||``}}return{[t]:a===void 0?``:a}}return o?Object.fromEntries(a.map((e,n)=>[`${t}.${n}`,e])):{[t]:[]}}})),$ge,e_e=s((()=>{Nge(),Fge(),Rge(),zge(),Vge(),Wge(),Kge(),Jge(),Xge(),Zge(),Qge(),$ge={boolean:Mge,code:Pge,datetime:Lge,file:_7,hidden:v7,image:_7,keyvalue:Uge,list:Gge,markdown:y7,number:qge,object:Yge,relation:b7,richtext:y7,select:b7}})),x7,S7,C7=s((()=>{e_e(),x7=({content:e,keyPath:t,fieldConfig:n,locale:r,defaultLocale:i,dynamicValues:a})=>{let{widget:o=`string`,default:s,i18n:c=!1}=n;if(r!==i&&[!1,`none`].includes(c))return;if(o===`compute`){e[t]=``;return}let l=t in a&&!/\.\d+(?:\.|$)/.test(t)&&a[t].trim()||void 0,u=$ge[o];if(u){Object.assign(e,u({fieldConfig:n,keyPath:t,locale:r,defaultLocale:i,dynamicValue:l,populateDefault:x7}));return}e[t]=l||s||``},S7=({fields:e,locale:t,defaultLocale:n,dynamicValues:r={}})=>{let i={};return e.forEach(e=>{x7({content:i,keyPath:e.name,fieldConfig:e,locale:t,defaultLocale:n,dynamicValues:r})}),i}})),w7,t_e,T7,E7,n_e=s((()=>{Sp(),dc(),rp(),W4(),zx(),w7=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e[t]!==n&&(e[t]=n)}),Object.keys(e).forEach(n=>{n in t||delete e[n]})},t_e=new Map,T7=(e,t)=>{let n=Rx(t_e,t,()=>RegExp(`^${gp(t)}\\b(?!#)`)),r=Object.entries(e).filter(([e])=>n.test(e)).map(([e,t])=>[e.replace(n,`_`),t]).sort();return[uc(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(e).filter(([e])=>!n.test(e)))]},E7=({locale:e,valueStoreKey:t=`currentValues`,keyPath:n,manipulate:r})=>{let i=A(z4),{collection:a,collectionFile:o}=i,{defaultLocale:s}=(o??a)._i18n,[c,l]=T7(i[t][e],n),[u,d]=e===s?T7(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:u}),B4.set(!1),z4.update(r=>(w7(r[t][e],{...lc({[n]:c}),...l}),e===s&&w7(r.expanderStates._,{...lc({[n]:u}),...d}),r)),B4.set(!0)}})),r_e,D7,O7,k7,i_e,A7=s((()=>{Sp(),rp(),W4(),_A(),zx(),r_e=new Map,D7=({key:e,locale:t,collapsed:n=!1})=>{let r=A(z4),i=r?.expanderStates?._[e];if(i!==void 0)return i;if(n===`auto`){let n=r?.currentValues?.[t]??{},i=e.replace(/#$/,``),a=Rx(r_e,i,()=>RegExp(`^${gp(i)}\\.[^\\.]+$`));return!Object.entries(n).some(([e,t])=>a.test(e)&&!!t)}return!n},O7=e=>{z4.update(t=>(t&&Object.entries(e).forEach(([e,n])=>{t.expanderStates._[e]!==n&&(t.expanderStates._[e]=n)}),t))},k7=({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{let a=new Set,o={collectionName:e,fileName:t,valueMap:n,isIndexFile:i};return r.split(`.`).forEach((e,t,n)=>{let r=n.slice(0,t+1).join(`.`),i=uA({...o,keyPath:r}),s=/\.\d+$/.test(r);if(i?.widget===`object`)s&&a.add(r),a.add(`${r}#`);else if(i?.widget===`list`)a.add(s?r:`${r}#`);else if(t>0){let e=n.slice(0,t).join(`.`),i=uA({...o,keyPath:e});i?.widget===`object`&&`fields`in i&&a.add(`${e}.${i.name}#`),i?.widget===`list`&&`field`in i&&a.add(r)}}),[...a]},i_e=({collectionName:e,fileName:t,currentValues:n})=>{let{validities:r,isIndexFile:i}=A(z4),a={};Object.entries(r??{}).forEach(([r,o])=>{Object.entries(o).forEach(([o,{valid:s}])=>{s||k7({collectionName:e,fileName:t,valueMap:n[r],keyPath:o,isIndexFile:i}).forEach(e=>{a[e]=!0})})}),O7(a)}}));function a_e(e,t){let n=Ia();O(t,!0),K(e,h_e);let r=()=>j(z4,`$entryDraft`,a),i=()=>j(zA,`$isSmallScreen`,a),[a,o]=hn(),s=(e,t=E,n=E)=>{var r=H(),i=I(r),a=e=>{{let r=e=>{var n=H();mo(I(n),17,()=>z(te)??[],({name:e,label:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).label;{let n=M(()=>i()||r());qL(e,{get label(){return z(n)},onclick:()=>Ee({index:t(),type:r()})})}}),U(e,n)},i=M(()=>X(`add_item_${n()}`));qL(e,{get label(){return z(i)},get disabled(){return z(be)},items:r,$$slots:{items:!0}})}},o=e=>{{let r=M(()=>X(`add_item_${n()}`));qL(e,{get label(){return z(r)},get disabled(){return z(be)},onclick:()=>Ee({index:t()})})}};G(i,e=>{z(ae)?e(a):e(o,-1)}),U(e,r)},{valueStoreKey:c=`currentValues`}=Rt(`field-editor`)??{},l=M(()=>t.fieldConfig.name),u=M(()=>t.fieldConfig.label),f=M(()=>t.fieldConfig.i18n),p=M(()=>T(t.fieldConfig.allow_add,!0)),m=M(()=>T(t.fieldConfig.allow_remove,!0)),h=M(()=>T(t.fieldConfig.allow_duplicate,!0)),g=M(()=>T(t.fieldConfig.allow_reorder,!0)),_=M(()=>t.fieldConfig.collapsed),v=M(()=>t.fieldConfig.summary),y=M(()=>t.fieldConfig.thumbnail),b=M(()=>T(t.fieldConfig.minimize_collapsed,!1)),x=M(()=>t.fieldConfig.label_singular),S=M(()=>T(t.fieldConfig.max,1/0)),C=M(()=>T(t.fieldConfig.add_to_top,!1)),w=M(()=>t.fieldConfig.field),ee=M(()=>t.fieldConfig.fields),te=M(()=>t.fieldConfig.types),ne=M(()=>T(t.fieldConfig.typeKey,`type`)),re=M(()=>h5(t.fieldConfig)),ie=M(()=>z(re).hasSingleSubField),ae=M(()=>z(re).hasVariableTypes),oe=M(()=>RegExp(`^${gp(t.keyPath)}\\.(\\d+)(.*)?`)),se=M(()=>r()?.isIndexFile??!1),ce=M(()=>r()?.collection),le=M(()=>r()?.collectionName??``),ue=M(()=>r()?.collectionFile),de=M(()=>r()?.fileName),fe=M(()=>(z(ue)??z(ce))?._i18n??Cb),pe=M(()=>z(fe).defaultLocale),me=M(()=>t.locale!==z(pe)&&z(f)===`duplicate`),he=M(()=>jt(r()?.[c][t.locale])??{}),ge=M(()=>`${t.keyPath}#`),_e=M(()=>r()?.expanderStates?._[z(ge)]??!0),ve=M(()=>uc(Object.fromEntries(Object.entries(z(he)).filter(([e])=>z(oe).test(e)).map(([e,n])=>[`${z(l)}${e.slice(t.keyPath.length)}`,n])))[z(l)]??[]),ye=M(()=>z(ve).map((e,n)=>{let i=`${t.keyPath}.${n}`;return[i,r()?.expanderStates?._[i]??!0]})),be=M(()=>z(ve).length>=z(S)),xe=M(()=>t.locale===z(pe)||(z(ae)?z(te)?.flatMap(({fields:e=[]})=>e)??[]:z(ee)??(z(w)?[z(w)]:[])).some(({i18n:e=!1})=>e===!0||e===`translate`)),Se=M(()=>z(me)||!z(xe)),Ce=Cr([]),we=()=>{O7({[z(ge)]:z(b)===`auto`?!z(ve).length:!z(b),...Object.fromEntries(z(ve).map((e,n)=>{let r=`${t.keyPath}.${n}`;return[r,D7({key:r,locale:t.locale,collapsed:z(_)})]}))})},Te=e=>{Object.keys(r()?.[c]??{}).forEach(n=>{z(f)!==`duplicate`&&n!==t.locale||E7({locale:n,valueStoreKey:c,keyPath:t.keyPath,manipulate:e})})},Ee=({index:e=z(C)?0:z(ve).length,dupIndex:n,type:r}={})=>{Te(({valueList:i,expanderStateList:a})=>{let o=r?z(te)?.find(({name:e})=>e===r)?.fields??[]:z(ee)??(z(w)?[z(w)]:[]),s=(()=>{if(typeof n==`number`)return structuredClone(i[n]);let e=uc(S7({fields:o,locale:t.locale,defaultLocale:z(pe)}));return z(ie)&&z(w)?e[z(w).name]:e})();r&&(s[z(ne)]=r),z(ie)||(s.__sc_item_id=crypto.randomUUID(),i.forEach((e,n)=>{d(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)})),i.splice(e,0,s),a.splice(e,0,!0)}),O7({[z(ge)]:!0})},De=e=>{Te(({valueList:n,expanderStateList:r})=>{z(ie)||n.forEach((e,n)=>{d(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)}),n.splice(e,1),r.splice(e,1)})},Oe=e=>{Te(({valueList:n,expanderStateList:r})=>{z(ie)||(n[e].__sc_item_id??=crypto.randomUUID(),n[e+1].__sc_item_id??=crypto.randomUUID(),n[e].__sc_item_original_key_path??=`${t.keyPath}.${e}`,n[e+1].__sc_item_original_key_path??=`${t.keyPath}.${e+1}`),[n[e],n[e+1]]=[n[e+1],n[e]],[r[e],r[e+1]]=[r[e+1],r[e]]})},ke=(e,n)=>Jde({collectionName:z(le),fileName:z(de),keyPath:t.keyPath,valueMap:z(he),locale:t.locale,summaryTemplate:n,hasSingleSubField:z(ie),index:e,isIndexFile:z(se)}),Ae=async e=>{if(!z(y))return;let n=z(y).replace(/^fields\./,``),i=`${t.keyPath}.${e}`,a=z(ie)?i:`${i}.${n}`,o=z(he)[a];if(!o)return;let s=uA({collectionName:z(le),fileName:z(de),valueMap:z(he),keyPath:a,isIndexFile:z(se)});if(!(s?.widget!==`image`||z(ie)&&s.name!==n))return _T({value:o,entry:r()?.originalEntry,collectionName:z(le),fileName:z(de),typedKeyPath:z(ie)?`${t.typedKeyPath}.*`:`${t.typedKeyPath}.*.${n}`})},je=async()=>{z(y)&&(Ce.length=z(ve).length,z(ve).forEach(async(e,t)=>{let n=await Ae(t);Ce[t]!==n&&(Ce[t]=n)}))};ti(()=>{z(ve),B(()=>{je()})}),ic(()=>{we()});var Me=m_e(),Ne=I(Me),Pe=F(Ne);{let e=e=>{Tge(e,{get expanded(){return z(_e)}})},t=M(()=>!z(ve).length),r=M(()=>z(_e)?X(`collapse`):X(`expand`));tI(Pe,{iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},get"aria-expanded"(){return z(_e)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{O7({[z(ge)]:!z(_e)})},startIcon:e,$$slots:{startIcon:!0}})}var Fe=L(Pe,2),Ie=F(Fe);D(Fe);var Le=L(Fe,2);UI(Le,{flex:!0});var Re=L(Le,2),ze=e=>{var t=o_e(),n=I(t);{let e=M(()=>X(`expand_all`)),t=M(()=>z(ye).every(([,e])=>e));tI(n,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{O7(Object.fromEntries(z(ye).map(([e])=>[e,!0])))}})}var r=L(n,2);{let e=M(()=>X(`collapse_all`)),t=M(()=>z(ye).every(([,e])=>!e));tI(r,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{O7(Object.fromEntries(z(ye).map(([e])=>[e,!1])))}})}U(e,t)};G(Re,e=>{z(_e)&&z(ve).length>1&&e(ze)}),D(Ne);var Be=L(Ne,2),Ve=e=>{var n=s_e();m7(F(n),{get disabled(){return z(Se)},get fieldConfig(){return t.fieldConfig},get items(){return z(ve)},addItem:Ee}),D(n),U(e,n)};G(Be,e=>{z(p)&&(z(C)||!z(ve).length)&&e(Ve)});var He=L(Be,2);let Ue;mo(He,23,()=>z(ve),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,a,o)=>{U8(e,{children:(e,c)=>{let l=M(()=>`${t.keyPath}.${z(o)}`),u=M(()=>r()?.expanderStates?._[z(l)]??!0),d=M(()=>z(ae)?z(te)?.find(({name:e})=>e===z(a)[z(ne)]):void 0),f=M(()=>z(ae)?z(d)?.fields??[]:z(ee)??(z(w)?[z(w)]:[])),_=M(()=>z(ae)&&z(d)?.summary||z(v));var y=f_e(),b=F(y);{let e=e=>{var t=H(),n=I(t),r=e=>{var t=c_e(),n=I(t);{let e=e=>{zF(e,{name:`arrow_upward`})},t=M(()=>z(me)||z(o)===0),r=M(()=>X(`move_up`));tI(n,{size:`small`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},onclick:()=>Oe(z(o)-1),startIcon:e,$$slots:{startIcon:!0}})}var r=L(n,2);UI(r,{});var i=L(r,2);{let e=e=>{zF(e,{name:`arrow_downward`})},t=M(()=>z(me)||z(o)===z(ve).length-1),n=M(()=>X(`move_down`));tI(i,{iconic:!0,size:`small`,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:()=>Oe(z(o)),startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(n,e=>{z(g)&&e(r)}),U(e,t)},t=e=>{var t=u_e(),n=I(t),r=e=>{{let t=e=>{{let t=M(()=>X(`list_item_options`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=l_e(),r=I(n),i=e=>{{let t=M(()=>X(`duplicate`));qL(e,{get label(){return z(t)},get disabled(){return z(be)},onclick:()=>Ee({index:z(o)+1,dupIndex:z(o)})})}};G(r,e=>{z(h)&&e(i)});var a=L(r,2);s(a,()=>z(o),()=>`above`),s(L(a,2),()=>z(o)+1,()=>`below`),U(e,n)},$$slots:{default:!0}})}},n=M(()=>X(`list_item_options`));NI(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(n)},get disabled(){return z(Se)},popup:t,$$slots:{popup:!0}})}};G(n,e=>{z(p)&&e(r)});var i=L(n,2),a=e=>{{let t=e=>{zF(e,{name:`close`})},n=M(()=>X(`remove`));tI(e,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>De(z(o)),startIcon:t,$$slots:{startIcon:!0}})}};G(i,e=>{z(m)&&e(a)}),U(e,t)},r=M(()=>z(ae)?z(d)?.label||z(d)?.name:``),i=M(()=>z(f).length?()=>O7({[z(l)]:!z(u)}):void 0);h7(b,{get label(){return z(r)},get controlId(){return`list-${n}-item-${z(o)??``}-body`},get expanded(){return z(u)},get toggleExpanded(){return z(i)},centerContent:e,endContent:t,$$slots:{centerContent:!0,endContent:!0}})}var x=L(b,2),S=F(x),C=e=>{var n=H();mo(I(n),17,()=>z(f),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{{let r=M(()=>z(ie)?z(l):`${z(l)}.${z(n).name}`),i=M(()=>z(ae)?`${t.typedKeyPath}.*<${z(a)[z(ne)]}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`),o=M(()=>z(ie)?`single-subfield-list-field`:void 0);r9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)},get context(){return z(o)}})}},$$slots:{default:!0}})}),U(e,n)},T=e=>{var t=d_e(),n=F(t),r=e=>{_3(e,{get src(){return Ce[z(o)]},variant:`icon`,cover:!0})};G(n,e=>{Ce[z(o)]&&e(r)});var a=L(n,2);{let e=M(()=>i()?2:1);qF(a,{get lines(){return z(e)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>ke(z(o),z(_))]),U(e,n)},$$slots:{default:!0}})}D(t),U(e,t)};G(S,e=>{z(u)?e(C):e(T,-1)}),D(x),D(y),R(()=>q(x,`id`,`list-${n}-item-${z(o)??``}-body`)),U(e,y)},$$slots:{default:!0}})}),D(He);var We=L(He,2),Ge=e=>{var n=p_e(),r=F(n);m7(r,{get disabled(){return z(Se)},get fieldConfig(){return t.fieldConfig},get items(){return z(ve)},addItem:Ee}),UI(L(r,2),{flex:!0}),D(n),U(e,n)};G(We,e=>{z(p)&&!z(C)&&z(ve).length&&e(Ge)}),R(()=>{q(Fe,`id`,`object-${n}-summary`),W(Ie,`${z(ve).length??``}
944
- ${((z(ve).length===1?z(x):void 0)||z(u)||z(l))??``}`),q(He,`id`,`list-${n}-item-list`),Ue=ss(He,1,`item-list svelte-n5zzp2`,null,Ue,{collapsed:!z(_e)})}),U(e,Me),k(),o()}var o_e,s_e,c_e,l_e,u_e,d_e,f_e,p_e,m_e,h_e,g_e=s((()=>{Q(),Y(),Z(),B$(),p(),Sp(),dc(),oc(),v3(),Ege(),K8(),a9(),Dge(),g7(),vT(),W4(),C7(),n_e(),A7(),_A(),g5(),jb(),WA(),o_e=V(`<!> <!>`,1),s_e=V(`<div role="none" class="toolbar top add svelte-n5zzp2"><!></div>`),c_e=V(`<!> <!> <!>`,1),l_e=V(`<!> <!> <!>`,1),u_e=V(`<!> <!>`,1),d_e=V(`<div role="none" class="summary svelte-n5zzp2"><!> <!></div>`),f_e=V(`<div role="none" class="item svelte-n5zzp2"><!> <div role="none" class="item-body"><!></div></div>`),p_e=V(`<div role="none" class="toolbar bottom add svelte-n5zzp2"><!> <!></div>`),m_e=V(`<div role="none" class="toolbar top svelte-n5zzp2"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>`,1),h_e={hash:`svelte-n5zzp2`,code:`.toolbar.svelte-n5zzp2 {display:flex;align-items:center;}.toolbar.top.add.svelte-n5zzp2 {margin-block:8px 16px !important;}.toolbar.bottom.add.svelte-n5zzp2 {margin-block:16px 0 !important;}.item-list.collapsed.svelte-n5zzp2 {display:none;}.item.svelte-n5zzp2 {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.item.svelte-n5zzp2 .summary:where(.svelte-n5zzp2) {display:flex;align-items:center;gap:8px;padding:8px;}.item.svelte-n5zzp2 .summary:where(.svelte-n5zzp2):empty {display:none;}`}}));function __e(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,7),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=N(!1),d=N(``),f=M(()=>t.fieldConfig.i18n),p=()=>{P(d,o()?.join(`
945
- `)??``,!0)},m=(e=z(d).split(/\n/g))=>{Object.keys(n()?.[a]??{}).forEach(r=>{z(f)!==`duplicate`&&r!==t.locale||(Object.keys(n()?.[a][r]??{}).forEach(e=>{e.match(`^${gp(t.keyPath)}\\.\\d+$`)&&delete n()?.[a][r][e]}),e.forEach((e,i)=>{_n(z4,B(n)[a][r][`${t.keyPath}.${i}`]=e,B(n))}))})},h=()=>{o(z(d).split(/\n/g).map(e=>e.trim()).filter(e=>!!e)),m(o())};ic(()=>{P(u,!0)}),ti(()=>{z(u)&&(o(),B(()=>{p()}))});{let n=M(()=>ib(t.locale));l$(e,{get dir(){return z(n)},autoResize:!0,flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-errormessage"(){return`${t.fieldId??``}-error`},oninput:()=>{m()},onblur:()=>{h()},get value(){return z(d)},set value(e){P(d,e,!0)}})}k(),i()}var v_e=s((()=>{Q(),Y(),B$(),Sp(),oc(),W4(),ub()}));function y_e(e,t){let n=Ia();O(t,!0);let r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);L$(e,{get"aria-labelledby"(){return`list-${n}-summary`},children:(e,n)=>{var i=H(),a=I(i),o=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));a_e(e,Xs(()=>z(n)))}},s=M(()=>h5(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));__e(e,Xs(()=>z(n)))}};G(a,e=>{z(s)?e(o):e(c,-1)}),U(e,i)},$$slots:{default:!0}}),k()}var b_e=s((()=>{Q(),Y(),B$(),g_e(),v_e(),g5()}));function x_e(e,t){let n=Ia();K(e,w_e);let r=`${n}-header`;var i=C_e(),a=F(i),o=e=>{var n=S_e(),i=F(n,!0);D(n),R(()=>{q(n,`id`,r),W(i,t.label)}),U(e,n)};G(a,e=>{t.label&&e(o)});var s=L(a,2);Eo(F(s),()=>t.children??E),D(s),D(i),R(()=>q(i,`aria-labelledby`,t.label?r:void 0)),U(e,i)}var S_e,C_e,w_e,T_e=s((()=>{Q(),Y(),S_e=V(`<div role="none" class="header svelte-ygwzbn"> </div>`),C_e=V(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),w_e={hash:`svelte-ygwzbn`,code:`.subsection.svelte-ygwzbn {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.subsection.svelte-ygwzbn .title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}.header.svelte-ygwzbn {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-ygwzbn {padding:8px 16px;}.items.svelte-ygwzbn:empty {display:none;}`}}));function j7(e,t){O(t,!0),K(e,O_e);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`showLabel`,3,!0),o=M(()=>t.fieldConfig.name),s=M(()=>T(t.fieldConfig.widget,`string`)),c=M(()=>T(t.fieldConfig.i18n,!1)),l=M(()=>T(t.fieldConfig.label,``)),u=M(()=>T(t.fieldConfig.preview,!0)),d=M(()=>sA(t.fieldConfig)),f=M(()=>z(s)===`list`||z(d)),p=M(()=>n()?.collection),m=M(()=>n()?.collectionFile),h=M(()=>jt(n()?.currentValues[t.locale]??{})),g=M(()=>(z(m)??z(p))?._i18n??Cb),_=M(()=>z(g).i18nEnabled),v=M(()=>z(g).defaultLocale),y=M(()=>z(_)&&(z(c)===!0||z(c)===`translate`)),b=M(()=>z(_)&&z(c)===`duplicate`),x=M(()=>RegExp(`^${gp(t.keyPath)}\\.\\d+$`)),S=M(()=>z(f)?Object.entries(z(h)).filter(([e])=>z(x).test(e)).map(([,e])=>e).filter(e=>e!==void 0):z(h)[t.keyPath]),C=()=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:t.locale,keyPath:t.keyPath}},window.location.origin)};var w=H(),ee=I(w),te=e=>{var n=D_e(),r=F(n),i=e=>{var t=E_e(),n=F(t,!0);D(t),R(()=>W(n,z(l)||z(o))),U(e,t)};G(r,e=>{a()&&e(i)});var c=L(r,2),u=e=>{let n=M(()=>Q7[z(s)]);var r=H();Oo(I(r),()=>z(n),(e,n)=>{n(e,{get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get locale(){return t.locale},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(S)}})}),U(e,r)};G(c,e=>{z(s)in Q7&&e(u)}),D(n),R(()=>{q(n,`data-field-type`,z(s)),q(n,`data-key-path`,t.keyPath),q(n,`data-typed-key-path`,t.typedKeyPath)}),Sa(`keydown`,n,e=>{e.key===`Enter`&&(e.stopPropagation(),C())}),Sa(`click`,n,e=>{e.stopPropagation(),C()}),U(e,n)};G(ee,e=>{z(s)!==`hidden`&&z(u)&&(t.locale===z(v)||z(y)||z(b))&&e(te)}),U(e,w),k(),i()}var E_e,D_e,O_e,M7=s((()=>{Q(),Y(),Sp(),wbe(),W4(),_A(),jb(),E_e=V(`<h4 class="svelte-s650n2"> </h4>`),D_e=V(`<section role="group" tabindex="0" class="svelte-s650n2"><!> <!></section>`),O_e={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;}
946
-
947
- @media (width < 768px) {[role='document'] > section.svelte-s650n2:is([data-field-type=file]:where(.svelte-s650n2), [data-field-type=image]:where(.svelte-s650n2)):has(img), [role='document'] > section.svelte-s650n2:is([data-field-type=string]:where(.svelte-s650n2)):has(iframe) {overflow:visible;}[role='document'] > section.svelte-s650n2:is([data-field-type=file]:where(.svelte-s650n2), [data-field-type=image]:where(.svelte-s650n2)) img {width:100%;max-height:none !important;}
948
- }`},Ca([`keydown`,`click`])}));function k_e(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.field),s=M(()=>t.fieldConfig.fields),c=M(()=>t.fieldConfig.types),l=M(()=>T(t.fieldConfig.typeKey,`type`)),u=M(()=>h5(t.fieldConfig)),f=M(()=>z(u).hasSingleSubField),p=M(()=>z(u).hasVariableTypes),m=M(()=>RegExp(`^${gp(t.keyPath)}\\.\\d+`)),h=M(()=>uc(Object.fromEntries(Object.entries(jt(n()?.currentValues[t.locale])??{}).filter(([e])=>z(m).test(e)).map(([e,n])=>[`${z(a)}${e.slice(t.keyPath.length)}`,n])))[z(a)]??[]);var g=H();mo(I(g),19,()=>z(h),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,r,i)=>{U8(e,{children:(e,r)=>{let a=M(()=>`${t.keyPath}.${z(i)}`),u=M(()=>Array.isArray(z(c))?n()?.currentValues[t.locale][`${z(a)}.${z(l)}`]:void 0),d=M(()=>z(c)?.find(({name:e})=>e===z(u))),m=M(()=>z(d)?z(d).label||z(d).name:void 0),h=M(()=>z(u)?z(d)?.fields??[]:z(s)??(z(o)?[z(o)]:[]));x_e(e,{get label(){return z(m)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{{let r=M(()=>z(f)?z(a):`${z(a)}.${z(n).name}`),i=M(()=>z(p)?`${t.typedKeyPath}.*<${z(u)}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`);j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,g),k(),i()}var A_e=s((()=>{Q(),Y(),p(),Sp(),dc(),K8(),T_e(),M7(),W4(),g5()}));function j_e(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=N_e();mo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=M_e(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)}),D(n),R((e,t)=>{q(n,`lang`,e),q(n,`dir`,t),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,n)},a=M(()=>Array.isArray(t.currentValue)&&t.currentValue.length);G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var M_e,N_e,P_e=s((()=>{Q(),Y(),ub(),M_e=V(`<li> </li>`),N_e=V(`<ul></ul>`)}));function F_e(e,t){O(t,!0);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);var r=H(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));k_e(e,Xs(()=>z(r)))}},o=M(()=>h5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));j_e(e,Xs(()=>z(r)))}};G(i,e=>{z(o)?e(a):e(s,-1)}),U(e,r),k()}var I_e=s((()=>{Q(),Y(),A_e(),P_e(),g5()})),L_e,R_e,z_e,B_e=s((()=>{p(),_0(),L_e=(e,t=`Point`)=>{try{let n=JSON.parse(e);return d(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},R_e=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>g0(e,t)):g0(e,t)):g0(e,t)),z_e=e=>{if(e.type===`Point`)return null;let t=e.type===`Polygon`?e.coordinates.flat(1):e.coordinates;if(!t.every(e=>typeof e[0]==`number`&&typeof e[1]==`number`))return null;let n=t.map(e=>e[1]),r=t.map(e=>e[0]);return[[Math.min(...n),Math.min(...r)],[Math.max(...n),Math.max(...r)]]}}));function V_e(e,t){O(t,!0),K(e,G_e);let n=J(t,`currentValue`,15),r=J(t,`readonly`,3,!1),i=J(t,`invalid`,3,!1),a=M(()=>T(t.fieldConfig.decimals,7)),o=M(()=>T(t.fieldConfig.type,`Point`)),s=M(()=>t.fieldConfig.center),c=M(()=>t.fieldConfig.zoom),l=M(()=>z(o).toLowerCase()),u=N(void 0),f=N(void 0),p=N(``),m=N(``),h=N(void 0),g=N(!1),_=N(!1),v=N(``),y,b=async({leaflet:e,map:t})=>{y=t;let{TerraDraw:r,TerraDrawLineStringMode:i,TerraDrawPointMode:a,TerraDrawPolygonMode:u}=await Pw(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await Pw(`terra-draw-leaflet-adapter`,`dist/terra-draw-leaflet-adapter.module.js?module`),p={Point:a,LineString:i,Polygon:u},m=new r({adapter:new d({lib:e,map:y}),modes:[new p[z(o)]]});m.start(),m.setMode(z(l)),m.on(`change`,(e,t)=>{x(t)}),P(f,m,!0),(!n()||!L_e(n(),z(o)))&&y.setView(z(s)?[z(s)[1],z(s)[0]]:[0,0],z(c)??2)},x=e=>{if(!z(f))return;let t=z(f).getSnapshot(),n=t[t.length-1];!n||e!==(z(o)===`Point`?`create`:`delete`)||(P(p,JSON.stringify({type:z(o),coordinates:R_e(n.geometry.coordinates,z(a))}),!0),t.length>1&&z(f).removeFeatures(t.filter(e=>e.id!==n.id).map(e=>e.id)))},S=e=>{if(e.type===`Point`){let[t,n]=e.coordinates;typeof t==`number`&&typeof n==`number`&&y?.setView([n,t],15)}else{let t=z_e(e);t&&y?.fitBounds(t)}},C=()=>{if(!z(f))return;let e=n()??``,t;try{if(t=JSON.parse(e),!d(t)||t.type!==z(o)||!Array.isArray(t.coordinates))throw Error(`Invalid object`)}catch{e=``,t=void 0}z(p)!==e&&(P(p,e,!0),z(f).clear(),t&&(z(f).addFeatures([{type:`Feature`,geometry:t,properties:{mode:z(l)}}]),S(t)))},w=()=>{if(!z(f))return;let e=z(p);n()!==e&&n(e)},ee=async()=>{let e=z(m).trim();if(!e)return;P(g,!0);let t=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:e,format:`jsonv2`})}`;try{P(h,await Zx(t),!0)}catch{P(h,[],!0)}P(g,!1)},te=({latitude:e,longitude:t})=>{if(!z(f)||(e=g0(e,z(a)),t=g0(t,z(a)),y?.setView([e,t],15),z(o)!==`Point`))return;let n={type:`Point`,coordinates:[t,e]};z(f).clear(),z(f).addFeatures([{type:`Feature`,geometry:n,properties:{mode:`point`}}]),P(p,JSON.stringify(n),!0)},ne=({lat:e,lon:t})=>{te({latitude:parseFloat(e),longitude:parseFloat(t)})},re=()=>{if(!navigator.geolocation){P(_,!0),P(v,X(`geolocation_unsupported`),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:e,longitude:t}})=>{te({latitude:e,longitude:t})},e=>{P(_,!0),P(v,X(`geolocation_error_body`),!0),console.error(`Error getting current location:`,e)})},ie=()=>{n(``)};ti(()=>{z(f),n(),B(()=>{C()})}),ti(()=>{z(p),B(()=>{w()})}),ti(()=>{z(m),B(()=>{ee()})});var ae=W_e(),oe=I(ae),se=F(oe);{let e=M(()=>X(`find_place`));wR(se,{debounce:!0,get readonly(){return r()},flex:!0,get placeholder(){return z(e)},get value(){return z(m)},set value(e){P(m,e,!0)}})}var ce=L(se,2);{let e=e=>{zF(e,{name:`near_me`})},t=M(()=>X(`use_your_location`)),n=M(()=>X(`use_your_location`));tI(ce,{variant:`tertiary`,iconic:!0,get title(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return r()},onclick:()=>{re()},startIcon:e,$$slots:{startIcon:!0}})}var le=L(ce,2);{let e=M(()=>X(`clear`)),t=M(()=>r()||!n());tI(le,{variant:`tertiary`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{ie()}})}D(oe);var ue=L(oe,2),de=e=>{var t=H_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`searching`)]),U(e,t)},fe=e=>{var t=H(),n=I(t),r=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`search_results`));jL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(h),e=>e.place_id,(e,t)=>{RL(e,{get label(){return z(t).display_name},onSelect:()=>{ne(z(t))}})}),U(e,n)},$$slots:{default:!0}})}},i=e=>{var t=U_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`no_results`)]),U(e,t)};G(n,e=>{z(h).length?e(r):e(i,-1)}),U(e,t)};G(n,e=>{z(h)&&e(r)}),U(e,t)};G(ue,e=>{z(g)?e(de):z(m)&&e(fe,1)});var E=L(ue,2),pe=F(E);{let e=M(()=>i()?`invalid`:void 0);u2(pe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(u)},set mapElement(e){P(u,e,!0)}})}D(E);var me=L(E,2);{let e=M(()=>X(`geolocation_error_title`));sL(me,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(v))),U(e,n)},$$slots:{default:!0}})}U(e,ae),k()}var H_e,U_e,W_e,G_e,K_e=s((()=>{Q(),Y(),Z(),B$(),p(),oc(),p2(),Fw(),B_e(),Qx(),_0(),H_e=V(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),U_e=V(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),W_e=V(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),G_e={hash:`svelte-ktr5k7`,code:`.toolbar.svelte-ktr5k7 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-ktr5k7 {padding:12px;color:var(--sui-secondary-foreground-color);}.map-wrapper.svelte-ktr5k7 {display:contents;}.map-wrapper.svelte-ktr5k7 .map {aspect-ratio:auto;height:400px;}.map-wrapper.svelte-ktr5k7 .map.invalid {border-color:var(--sui-error-border-color);}`}}));function q_e(e,t){K(e,Y_e);var n=H(),r=I(n),i=e=>{var n=J_e(),r=F(n,!0);D(n),R(()=>W(r,t.currentValue)),U(e,n)};G(r,e=>{t.currentValue&&e(i)}),U(e,n)}var J_e,Y_e,X_e=s((()=>{Q(),Y(),J_e=V(`<pre class="svelte-1ox6w30"> </pre>`),Y_e={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}}));function Z_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(void 0),s=M(()=>T(t.fieldConfig.value_type,`int`)),c=M(()=>t.fieldConfig.min),l=M(()=>t.fieldConfig.max),u=M(()=>T(t.fieldConfig.step,1)),d=M(()=>![`int`,`float`].includes(z(s))),f=M(()=>[`float`,`float/string`].includes(z(s))),p=()=>{let e;n()!==void 0&&(typeof n()==`number`?e=n():typeof n()==`string`&&(e=n().trim()?z(f)?Number.parseFloat(n()):Number.parseInt(n(),10):NaN,e=Number.isNaN(e)?void 0:e)),z(o)!==e&&P(o,e,!0)},m=()=>{let e;e=z(o)===void 0?NaN:z(f)?Number.parseFloat(String(z(o))):Number.parseInt(String(z(o)),10),z(d)?e=Number.isNaN(e)?``:String(e):Number.isNaN(e)&&(e=null),n()!==e&&n(e)};ti(()=>{n(),B(()=>{p()})}),ti(()=>{z(o),B(()=>{m()})}),tue(e,{get min(){return z(c)},get max(){return z(l)},get step(){return z(u)},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onblur:()=>{p()},get value(){return z(o)},set value(e){P(o,e,!0)}}),k()}var Q_e=s((()=>{Q(),Y(),B$(),oc()}));function $_e(e,t){O(t,!0);let n=M(()=>rb(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=H(),a=I(i),o=e=>{var i=eve(),a=F(i,!0);D(i),R((e,t)=>{q(i,`lang`,z(n)),q(i,`dir`,e),W(a,t),i.dir=i.dir},[()=>ib(t.locale),()=>z(r).format(Number(t.currentValue))]),U(e,i)};G(a,e=>{t.currentValue!==void 0&&t.currentValue!==null&&t.currentValue!==``&&e(o)}),U(e,i),k()}var eve,tve=s((()=>{Q(),Y(),ub(),eve=V(`<p> </p>`)})),N7,P7,F7=s((()=>{p(),rp(),W4(),D8(),C7(),_A(),N7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=A(z4),{defaultLocale:c}=(a??i)._i18n,l=f(o[c]),u={...f(e),...l},d={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},p=[];return Object.keys(u).forEach(n=>{let r=uA({...d,keyPath:n});if(!r)return;let{widget:i=`text`,i18n:a=!1}=r;if([`text`,`string`,`richtext`,`markdown`].includes(i)&&[!0,`translate`].includes(a)&&(u[n]=e[n]??``),i===`hidden`&&[!0,`translate`].includes(a)){let{default:e}=r;e===`{{locale}}`&&(u[n]=t)}i===`object`&&[!0,`translate`,`duplicate`].includes(a)&&l[n]!==null&&delete u[n],([!1,`none`].includes(a)||p.some(e=>n===e||n.startsWith(`${e}.`)))&&(delete u[n],p.push(n))}),u},P7=e=>{z4.update(t=>{let{fields:n,defaultLocale:r,currentLocales:i,currentValues:a,validities:o,validationMessages:s}=t,c=!i[e];if(c&&!a[e]){let{collectionName:o,fileName:s,originalValues:l}=t,u=S7({fields:n,locale:e,defaultLocale:r});return{...t,currentLocales:{...i,[e]:c},originalValues:{...l,[e]:u},currentValues:{...a,[e]:E8({draft:{collectionName:o,fileName:s},locale:e,target:N7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})),nve,rve,ive=s((()=>{Sp(),_A(),zx(),nve=new Map,rve=({collectionName:e,fileName:t,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:a,summaryTemplate:o})=>{let s={collectionName:e,fileName:t,keyPath:``,valueMap:r,isIndexFile:i};return o?o.replaceAll(/{{(.+?)}}/g,(e,t)=>{let[r,...i]=t.split(/\s*\|\s*/);return mA({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:i})}):hA({valueMap:r,locale:a,keyPath:n,keyPathRegex:Rx(nve,n,()=>RegExp(`^${gp(n)}\\.`)),getFieldArgs:s})}}));function ave(e,t){let n=Ia();O(t,!0),K(e,lve);let r=()=>j(z4,`$entryDraft`,a),i=()=>j(zA,`$isSmallScreen`,a),[a,o]=hn(),{fieldContext:s,valueStoreKey:c=`currentValues`}=Rt(`field-editor`)??{},l=s===`single-subfield-list-field`,u=J(t,`required`,3,!0),d=M(()=>t.fieldConfig.name),p=M(()=>T(t.fieldConfig.i18n,!1)),m=M(()=>t.fieldConfig.collapsed),h=M(()=>t.fieldConfig.summary),g=M(()=>t.fieldConfig.fields),_=M(()=>t.fieldConfig.types),v=M(()=>T(t.fieldConfig.typeKey,`type`)),y=M(()=>r()?.isIndexFile??!1),b=M(()=>r()?.collection),x=M(()=>r()?.collectionName??``),S=M(()=>r()?.collectionFile),C=M(()=>r()?.fileName),w=M(()=>(z(S)??z(b))?._i18n??Cb),ee=M(()=>z(w).defaultLocale),te=M(()=>jt(r()?.[c][t.locale])??{}),ne=M(()=>({collectionName:z(x),fileName:z(C),valueMap:z(te),isIndexFile:z(y)})),re=M(()=>Object.entries(z(te)).some(([e,n])=>e.startsWith(`${t.keyPath}.`)&&n!==void 0)),ie=M(()=>s===`rich-text-editor-component`||t.locale===z(ee)||z(p)!==!1),ae=M(()=>`${t.keyPath}#`),oe=M(()=>r()?.expanderStates?._[z(ae)]??!0),se=M(()=>Array.isArray(z(_))),ce=M(()=>`${t.keyPath}.${z(v)}`),le=M(()=>z(se)?z(_)?.find(({name:e})=>e===z(te)[z(ce)]):void 0),ue=M(()=>(z(se)?z(le)?.fields:z(g))??[]),de=M(()=>z(se)&&z(le)?.summary||z(h)),fe=M(()=>t.locale!==z(ee)&&z(p)===`duplicate`),E=()=>{if(l)return;let e=z(ae);O7({[e]:D7({key:e,locale:t.locale,collapsed:z(m)})})},pe=async({type:e}={})=>{mn(B4,!1),e&&(Object.keys(r()?.[c]??{}).forEach(n=>{(n===t.locale||z(p)===`duplicate`)&&_n(z4,B(r)[c][n][z(ce)]=e,B(r))}),await Bi());let n=Object.fromEntries(Object.entries(S7({fields:z(ue),locale:t.locale,defaultLocale:z(ee)})).map(([e,n])=>[`${t.keyPath}.${e}`,n])),i=t.locale===z(ee)?n:N7(n,t.locale);Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(_n(z4,B(r)[c][e]=Object.assign(n,f({...i,...n})),B(r)),delete r()[c][e][t.keyPath])}),mn(B4,!0)},me=()=>{mn(B4,!1),Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(_n(z4,B(r)[c][e][n]=null,B(r)),delete r()?.[c][e][n])}),_n(z4,B(r)[c][e][t.keyPath]=null,B(r)))}),mn(B4,!0)},he=()=>rve({...z(ne),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(de)});ic(()=>{E()});var ge=cve(),_e=I(ge),ve=e=>{{let n=M(()=>X(`add_x`,{values:{name:t.fieldLabel||z(d)}}));YI(e,{get label(){return z(n)},get checked(){return z(re)},get disabled(){return z(fe)},onChange:({detail:{checked:e}})=>{e?pe():me()}})}};G(_e,e=>{!z(se)&&!u()&&e(ve)});var ye=L(_e,2),be=e=>{m7(e,{get disabled(){return z(fe)},get fieldConfig(){return t.fieldConfig},addItem:pe})};G(ye,e=>{z(se)&&!z(re)&&e(be)});var xe=L(ye,2),Se=e=>{var r=sve(),a=F(r),o=e=>{{let t=e=>{var t=H(),n=I(t),r=e=>{{let t=e=>{zF(e,{name:`close`})},n=M(()=>X(`remove`));tI(e,{size:`small`,iconic:!0,get disabled(){return z(fe)},get"aria-label"(){return z(n)},onclick:()=>{me()},startIcon:t,$$slots:{startIcon:!0}})}};G(n,e=>{z(se)&&e(r)}),U(e,t)},r=M(()=>z(se)?z(le)?.label||z(le)?.name:``),i=M(()=>z(ue).length?()=>O7({[z(ae)]:!z(oe)}):void 0);h7(e,{get label(){return z(r)},get controlId(){return`object-${n}-item-list`},get expanded(){return z(oe)},get toggleExpanded(){return z(i)},endContent:t,$$slots:{endContent:!0}})}};G(a,e=>{l||e(o)});var s=L(a,2),c=F(s),u=e=>{var n=H();mo(I(n),17,()=>z(ue),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);U8(e,{children:(e,i)=>{{let i=M(()=>z(se)&&z(le)?.name?`${t.typedKeyPath}<${z(le).name}>.${z(n).name}`:z(r));r9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,n)},d=e=>{let t=M(he);var r=H(),a=I(r),o=e=>{var r=ove(),a=F(r);{let e=M(()=>i()?2:1);qF(a,{get lines(){return z(e)},children:(e,n)=>{_t();var r=Fa();R(()=>W(r,z(t))),U(e,r)},$$slots:{default:!0}})}D(r),R(()=>q(r,`id`,`object-${n}-summary`)),U(e,r)};G(a,e=>{z(t)&&e(o)}),U(e,r)};G(c,e=>{z(oe)?e(u):e(d,-1)}),D(s),D(r),R(()=>{q(r,`aria-labelledby`,z(oe)?void 0:`object-${n}-summary`),q(s,`id`,`object-${n}-item-list`)}),U(e,r)};G(xe,e=>{(!(!u()||z(se))||z(re))&&z(ie)&&e(Se)}),U(e,ge),k(),o()}var ove,sve,cve,lve,uve=s((()=>{Q(),Y(),Z(),B$(),p(),oc(),K8(),a9(),Dge(),g7(),W4(),C7(),F7(),A7(),ive(),jb(),WA(),ove=V(`<div role="none" class="summary svelte-pauyt3"><!></div>`),sve=V(`<div role="group" class="wrapper svelte-pauyt3"><!> <div role="none" class="item-list"><!></div></div>`),cve=V(`<!> <!> <!>`,1),lve={hash:`svelte-pauyt3`,code:`.wrapper.svelte-pauyt3 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-pauyt3 > .group {margin-top:8px;}.summary.svelte-pauyt3 {padding:8px;}`}}));function dve(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>T(t.fieldConfig.typeKey,`type`)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>Object.entries(z(c)).some(([e,n])=>!!e.startsWith(`${t.keyPath}.`)&&!!n)),u=M(()=>Array.isArray(z(o))),d=M(()=>`${t.keyPath}.${z(s)}`),f=M(()=>z(u)?z(o)?.find(({name:e})=>e===z(c)[z(d)]):void 0),p=M(()=>z(f)?z(f).label||z(f).name:void 0),m=M(()=>(z(u)?z(f)?.fields:z(a))??[]);var h=H(),g=I(h),_=e=>{x_e(e,{get label(){return z(p)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(m),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);U8(e,{children:(e,i)=>{{let i=M(()=>z(u)&&z(f)?.name?`${t.typedKeyPath}<${z(f).name}>.${z(n).name}`:z(r));j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{z(l)&&e(_)}),U(e,h),k(),i()}var fve=s((()=>{Q(),Y(),K8(),T_e(),M7(),W4()}));function pve(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.i18n),u=M(()=>t.fieldConfig.max),d=M(()=>T(t.fieldConfig.dropdown_threshold,5)),f=e=>{n()&&Object.keys(jt(n()[a])??{}).forEach(n=>{z(l)!==`duplicate`&&n!==t.locale||E7({locale:n,valueStoreKey:a,keyPath:t.keyPath,manipulate:e})})},p=e=>{f(({valueList:t})=>{t.push(e)})},m=e=>{f(({valueList:t})=>{t.splice(t.indexOf(e),1)})};var h=H(),g=I(h),_=e=>{Ooe(e,Xs({get disabled(){return s()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get options(){return t.options}},()=>({values:t.currentValue}),{get max(){return z(u)},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onAddValue:({detail:{value:e}})=>{p(e)},onRemoveValue:({detail:{value:e}})=>{m(e)},onReorder:({detail:{values:e}})=>{f(({valueList:t})=>{t.splice(0,t.length,...e)})}}))},v=e=>{$ae(e,{get"aria-labelledby"(){return`${t.fieldId??``}-label`},children:(e,n)=>{var r=H();mo(I(r),17,()=>t.options,({label:e,value:t})=>t,(e,n)=>{let r=()=>z(n).label,i=()=>z(n).value;{let n=M(()=>t.currentValue?.includes(i())??!1);YI(e,{get label(){return r()},get value(){return i()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get checked(){return z(n)},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{checked:e}})=>{e?p(i()):m(i())}})}}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{t.options.length>z(d)?e(_):e(v,-1)}),U(e,h),k(),i()}var mve=s((()=>{Q(),Y(),B$(),oc(),W4(),n_e()}));function hve(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`options`,7),s=M(()=>T(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);ti(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),ti(()=>{!r()&&!o().some(({value:e})=>!e)&&o([{label:X(`unselected_option`),value:z(c)===`number`?null:``,searchValue:``},...o()])});var l=H(),u=I(l),d=e=>{NR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return n()},set value(e){n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;{let t=M(()=>i()===n());RL(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get searchValue(){return a()},get selected(){return z(t)},wrap:!0})}}),U(e,r)},$$slots:{default:!0}})},f=e=>{iR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{value:e}})=>{n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value;{let t=M(()=>i()===n());sR(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get checked(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})};G(u,e=>{o().length>z(s)?e(d):e(f,-1)}),U(e,l),k()}var gve=s((()=>{Q(),Y(),Z(),B$()}));function _ve(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`sortOptions`,3,!1),s=M(()=>t.fieldConfig.options),c=M(()=>t.fieldConfig.multiple),l=M(()=>z(c)?pve:hve),u=M(()=>{let e=z(s).map(e=>d(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>xp(e.label,t.label)),e});var f=H();oo(I(f),()=>JSON.stringify(z(u)),e=>{var o=H();Oo(I(o),()=>z(l),(e,o)=>{o(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get fieldId(){return t.fieldId},get fieldConfig(){return t.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get options(){return z(u)},get currentValue(){return n()},set currentValue(e){n(e)}})}),U(e,o)}),U(e,f),k()}var vve=s((()=>{Q(),Y(),p(),Sp(),mve(),gve()}));function yve(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.collection),u=M(()=>t.fieldConfig.file),d=M(()=>z(u)?[qy(z(l),z(u))].filter(e=>!!e):tk(z(l))),f=M(()=>n()?.currentValues[t.locale]),p=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),m=M(()=>({...t.fieldConfig,widget:`select`,options:Ak({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(d),currentLocaleValues:z(f),currentSlug:z(p)})}));var h=bve();_ve(F(h),{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return t.fieldId},get fieldLabel(){return t.fieldLabel},get fieldConfig(){return z(m)},get readonly(){return s()},get required(){return o()},get invalid(){return c()},sortOptions:!0,get currentValue(){return a()},set currentValue(e){a(e)}}),D(h),U(e,h),k(),i()}var bve,xve=s((()=>{Q(),Y(),vve(),ak(),Yy(),W4(),Mk(),bve=V(`<div role="none" class="wrapper"><!></div>`)}));function Sve(e,t){O(t,!0);let n=M(()=>t.fieldConfig.collection),r=M(()=>t.fieldConfig.file),i=M(()=>T(t.fieldConfig.multiple,!1)),a=M(()=>T(t.fieldConfig.value_field,`{{slug}}`)),o=M(()=>cb(t.locale)),s=M(()=>z(r)?[qy(z(n),z(r))].filter(e=>!!e):tk(z(n))),c=M(()=>Ak({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(s)})),l=M(()=>(z(i)?t.currentValue:[t.currentValue]).filter(e=>e!==void 0).map(e=>{let t=z(c).find(t=>t.value===e)?.label;return t&&t!==e?[`slug`,`{{slug}}`,`{{fields.slug}}`].includes(z(a))?t:`${t} (${e})`:e}));var u=H(),d=I(u),f=e=>{var n=Cve(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale),()=>z(o).format(z(l))]),U(e,n)};G(d,e=>{z(l).length&&e(f)}),U(e,u),k()}var Cve,wve=s((()=>{Q(),Y(),ak(),Yy(),Mk(),ub(),Cve=V(`<p> </p>`)})),I7,Tve,Eve,Dve,Ove,L7,R7=s((()=>{I7=/^.+?:\w+:/,Tve=[`rich_text`,`raw`],Eve={rich_text:`rich-text`,raw:`plain-text`},Dve=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],Ove={bold:`bold`,italic:`italic`,strikethrough:`strikethrough`,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`},L7=[`code-block`,`image`]})),kve,Ave,z7,jve,Mve=s((()=>{mC(),kve=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=oC(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=fC(t,n);if(e){let t=document.createElement(`input`);t.type=r,o&&(t.min=i),s&&(t.max=a),t.value=e,{rangeUnderflow:c,rangeOverflow:l}=t.validity}}return{validity:{rangeUnderflow:c,rangeOverflow:l},detail:{hasMin:o,hasMax:s,invalid:c||l}}},Ave=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),z7=e=>Ave.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),jve=(e,t)=>{if(e===`date`)return t;if(e===`time`)return z7(t);let[n,r]=t.split(`T`);return`${n}, ${z7(r)}`}})),B7,V7,Nve=s((()=>{Z(),_A(),mC(),Mve(),B7=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>r===`datetime`&&typeof n==`string`?X(`validation.range_${e}.${i}`,{values:{[t]:jve(i,n)}}):X(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add`:`validation.range_${e}.select`,{values:{[t]:n}}),V7=({validity:e,fieldConfig:t})=>{let n=[],{widget:r=`string`}=t,{pattern:i=[]}=t,a=r===`datetime`,o=a?oC(t):{},s=r===`string`?t.type??`text`:a?o.type:r===`number`?`number`:void 0,{min:c,max:l}=a?o:t,u=r===`list`||r===`keyvalue`||sA(t);if(e.valueMissing&&n.push(X(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;n.push(X(`validation.too_short`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;n.push(X(`validation.too_long`,{values:{max:e}}))}return e.rangeUnderflow&&n.push(B7({direction:`underflow`,limitKey:`min`,limitValue:c,fieldType:r,type:s,canAddMultiValue:u})),e.rangeOverflow&&n.push(B7({direction:`overflow`,limitKey:`max`,limitValue:l,fieldType:r,type:s,canAddMultiValue:u})),e.patternMismatch&&n.push(i[1]),e.typeMismatch&&n.push(X(`validation.type_mismatch.${s}`)),n}})),Pve,Fve=s((()=>{Pve=({keyPath:e,value:t,valueMap:n,fieldConfig:r,validities:i,locale:a})=>{let{output_code_only:o=!1,keys:s={code:`code`,lang:`lang`}}=r,c=(e.match(`(.+)\\.(?:${s.code}|${s.lang})$`)?.[1]??``)||e;return c in i[a]?{skip:!0,keyPath:c,value:t}:{skip:!1,keyPath:c,value:o?t:n[`${c}.${s.code}`]}}})),Ive,Lve=s((()=>{W4(),_A(),p7(),R7(),Ive=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=uA({...t,keyPath:c.replace(I7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=f7({entryDraft:z4,keyPath:c,locale:i});return a&&!u.length?n.valueMissing=!0:typeof o==`number`&&u.length<o?n.rangeUnderflow=!0:typeof s==`number`&&u.length>s&&(n.rangeOverflow=!0),{skip:!1,keyPath:c}}})),Rve,zve,Bve=s((()=>{Sp(),zx(),Rve=new Map,zve=({keyPath:e,value:t,valueEntries:n,validity:r,validities:i,locale:a,required:o,min:s,max:c})=>{if(e in i[a])return{skip:!0};let l=Rx(Rve,e,()=>RegExp(`^${gp(e)}\\.\\d+`)),u=Array.isArray(t)&&t.length?t.length:new Set(n.map(([e])=>e.match(l)?.[0]).filter(Boolean)).size;return o&&!u?r.valueMissing=!0:typeof s==`number`&&u<s?r.rangeUnderflow=!0:typeof c==`number`&&u>c&&(r.rangeOverflow=!0),{skip:!1}}})),Vve,Hve=s((()=>{_A(),Vve=({fieldConfig:e,locale:t,value:n})=>{let{value_type:r=`int`,min:i,max:a}=e,o=typeof i==`number`&&n!==null&&Number(n)<i;return{validity:{rangeUnderflow:o,rangeOverflow:!o&&typeof a==`number`&&n!==null&&Number(n)>a,typeMismatch:(r===`int`||r===`float`)&&dA({fieldConfig:e,locale:t})&&n===null}}}})),H7,Uve=s((()=>{H7=({fieldConfig:e,value:t})=>{let n=e,{widget:r=`string`,minlength:i,maxlength:a}=n,o=Number.isInteger(i)&&i<=(a??1/0),s=Number.isInteger(a)&&(i??0)<=a,c=t?[...t.trim()].length:0,l=o&&c<i,u=s&&c>a,d=!1;if(r===`string`&&t){let{type:e=`text`,prefix:r,suffix:i}=n,a=t;if(r&&a.startsWith(r)&&(a=a.slice(r.length)),i&&a.endsWith(i)&&(a=a.slice(0,-i.length)),e!==`text`){let t=document.createElement(`input`);t.type=e,t.value=a,{typeMismatch:d}=t.validity}e===`email`&&!d&&!a.split(`@`)[1]?.includes(`.`)&&(d=!0)}return{validity:{tooShort:l,tooLong:u,typeMismatch:d},detail:{count:c,hasMin:o,hasMax:s,invalid:l||u||d}}}})),U7,Wve,Gve,Kve,qve,Jve,W7,Yve,G7,Xve=s((()=>{rp(),W4(),Nve(),_A(),CC(),Fve(),Mve(),Lve(),g5(),Bve(),Hve(),R7(),Uve(),ZO(),U7=/\.\d+$/,Wve={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},Gve={datetime:kve,number:Vve,string:H7,text:H7},Kve={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},qve=({value:e,required:t,validation:n,validity:r})=>{let i=typeof e==`string`?e.trim():e;if(t&&(i==null||i===``)&&(r.valueMissing=!0),Array.isArray(n)){let e=XO(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},Jve=e=>{let{draft:t,locale:n,valueMap:r,componentName:i,validities:a}=e,{collection:o,collectionName:s,fileName:c,collectionFile:l,files:u,isIndexFile:d}=t,{keyPath:f,value:p}=e,m={collectionName:s,fileName:c,componentName:i,valueMap:r,keyPath:f.replace(I7,``),isIndexFile:d},h=uA({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=sA(h),{min:b=0,max:x=1/0}=$ne.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),ee=dA({fieldConfig:h,locale:n}),T={...Wve};if(g===`list`||y){let{skip:e}=zve({keyPath:f,value:p,valueEntries:w,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e)return}if(g===`object`&&ee&&!p&&(T.valueMissing=!0),g===`keyvalue`){let e=Ive({keyPath:f,getFieldArgs:m,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=Pve({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}xC.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||qve({value:p,required:ee,validation:v,validity:T});let te=Gve[g];return te&&Object.assign(T,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(T,Kve)},W7=e=>{let{validities:t,locale:n,keyPath:r}=e,i=Jve(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},Yve=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??W7(t),{widget:o=`string`}=e;return o===`list`&&!h5(e).hasSubFields||sA(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},G7=e=>{let t=A(z4),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:a}=t,o={},s={},c={collectionName:n,fileName:r,isIndexFile:i,keyPath:``,valueMap:{}},l=!0;return Object.entries(t[e]).forEach(([e,n])=>{let r=Object.entries(n);if(!a[e]){o[e]=Object.fromEntries(r.map(([e])=>[e,{valid:!0}])),s[e]=Object.fromEntries(r.map(([e])=>[e,[]]));return}let i={draft:t,locale:e,valueMap:n,validities:o};o[e]={},s[e]={},r.forEach(([t,r])=>{let[a]=t.match(I7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=uA({...c,keyPath:t.replace(I7,``),valueMap:n,componentName:u});if(!d)return;if(U7.test(t)){let n=t.replace(U7,``),{valid:r,validateItems:a}=Yve({fieldConfig:d,validateArgs:{...i,keyPath:n,value:``,componentName:u}});if(r||(l=!1),!(n in s[e])){let t=o[e][n];t&&(s[e][n]=V7({validity:t,fieldConfig:d}))}if(!a)return}W7({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=V7({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}}}));function Zve(e,t){let n=Ia();O(t,!0),K(e,nye);let r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`mode`,3,`block`),s=J(t,`collapsed`,3,!1),c=J(t,`values`,7),l=J(t,`onChange`,3,()=>void 0),u=N(void 0),d=N(``),f=N(``),p=N(``),m=N(!s()),h=N(!1),g=N(void 0),_=N(!1),v=M(()=>z(f)?`${z(f)}:${n}:`:``),y=M(()=>z(p)?`${z(p)}:${n}:`:``),b=M(()=>t.fields.find(e=>e.widget===`string`||e.widget===`text`||!e.widget)),x=()=>z(u),S=`extraValues`,C,w=M(()=>{if(r()&&z(d)&&z(f))return uc(Object.fromEntries(Object.entries(jt(r()[S][z(d)]??{})).filter(([e])=>e.startsWith(z(v))).map(([e,t])=>[e.replace(z(v),``),t])))}),ee=()=>{P(g,z(w)?{...z(w)}:void 0,!0),P(h,!0)},T=()=>{r()&&z(d)&&z(f)&&z(g)&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.assign(r()[S][z(d)],Object.fromEntries(Object.entries(lc(z(g))).map(([e,t])=>[`${z(v)}${e}`,t]))))},te=()=>{P(h,!1),l()(new CustomEvent(`remove`))},ne=()=>{let{validities:e}=G7(`extraValues`);z4.update(t=>t&&{...t,validities:Object.fromEntries(Object.keys(t.validities).map(n=>[n,{...t.validities[n],...e[n]}]))});let t=e[z(d)]??{};Object.entries(t).some(([e,t])=>e.startsWith(z(v))&&!t.valid)||(P(_,!1),P(h,!1),l()(new CustomEvent(`update`,{detail:z(w)})),P(g,void 0))},re=()=>{z(_)?(P(h,!1),l()(new CustomEvent(`remove`))):(T(),P(h,!1),P(g,void 0))},ie=(e,n)=>{if(!e||!n)return null;let r=lc(n),i=e.replaceAll(/{{(.+?)}}/g,(e,n)=>{let[i,...a]=n.trim().split(/\s*\|\s*/),o=i.replace(/^fields\./,``),s=r[o];return s==null?``:(a.length&&(s=yC({fieldConfig:t.fields.find(e=>e.name===o),value:s,transformations:a,locale:z(d)})),String(s))});return i!==e.replaceAll(/{{.+?}}/g,``)&&i.trim()?i.trim():null},ae=M(()=>{let e=t.fields.some(e=>z(w)?.[e.name]!==void 0)?z(w):c();if(t.summary&&e){let n=ie(t.summary,e);if(n)return n}if(z(b)&&e){let t=e[z(b).name];if(typeof t==`string`&&t.trim())return t.trim()}return t.label});ic(()=>(window.requestAnimationFrame(()=>{let e=z(u)?.closest(`[data-locale]`),t=z(u)?.closest(`[data-key-path]`);P(d,e?.dataset.locale,!0),P(f,t?.dataset.keyPath,!0),o()!==`dialog`&&P(p,t?.dataset.typedKeyPath,!0),P(_,!c()),o()===`dialog`&&z(_)&&ee()}),()=>{r()&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.keys(r().validities[z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r().validities[z(d)][e]}))})),ti(()=>{c(),z(d),z(f),B(()=>{if(r()&&z(d)&&z(f)){let{defaultLocale:e}=r();if(c(c()??uc(S7({fields:t.fields,locale:z(d),defaultLocale:e}))??{}),c().__sc_component_name=t.componentName,!(0,K7.default)(c(),z(w))){let e=Object.fromEntries(Object.entries(lc(c())).map(([e,t])=>[`${z(v)}${e}`,t]));z4.update(t=>t&&(Object.assign(t[S][z(d)],e),t))}}})}),ti(()=>{o()!==`dialog`&&(z(w),B(()=>{(0,K7.default)(C,z(w))||(l()(new CustomEvent(`update`,{detail:z(w)})),C=z(w))}))});var oe={getElement:x},se=H(),ce=I(se),le=e=>{var n=eye(),r=I(n),i=F(r,!0);D(r),Us(r,e=>P(u,e),()=>z(u)),$I(L(r,2),{get title(){return t.label},size:`large`,showOk:!1,showCancel:!1,get open(){return z(h)},set open(e){P(h,e,!0)},footer:e=>{var t=Qve(),n=I(t);{let e=M(()=>X(`remove`));tI(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{te()}})}var r=L(n,2);UI(r,{flex:!0});var i=L(r,2);{let e=M(()=>X(z(_)?`insert`:`update`));tI(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{ne()}})}var a=L(i,2);{let e=M(()=>X(`cancel`));tI(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{re()}})}U(e,t)},children:(e,n)=>{var r=$ve(),i=F(r),a=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(v)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})}),U(e,n)};G(i,e=>{z(d)&&z(f)&&e(a)}),D(r),U(e,r)},$$slots:{footer:!0,default:!0}}),R(()=>{q(r,`aria-label`,t.label),q(r,`title`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),W(i,z(ae))}),Sa(`click`,r,()=>{ee()}),Sa(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),ee()),e.key===`Backspace`&&(e.preventDefault(),l()(new CustomEvent(`remove`)))}),U(e,n)},ue=e=>{var r=tye(),i=F(r);h7(i,{get label(){return t.label},get controlId(){return`object-${n}-item-list`},get expanded(){return z(m)},set expanded(e){P(m,e,!0)},endContent:e=>{{let t=e=>{zF(e,{name:`close`})},n=M(()=>X(`remove`));tI(e,{size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>{l()(new CustomEvent(`remove`))},startIcon:t,$$slots:{startIcon:!0}})}},$$slots:{endContent:!0}});var a=L(i,2),o=F(a),s=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{U8(e,{children:(e,n)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(y)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})},$$slots:{default:!0}})}),U(e,n)};G(o,e=>{z(d)&&z(f)&&z(m)&&e(s)}),D(a),D(r),Us(r,e=>P(u,e),()=>z(u)),R(()=>{q(r,`aria-label`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),q(a,`id`,`object-${n}-item-list`)}),xa(`keydown`,r,e=>{e.stopPropagation()},!0),Sa(`keydown`,r,e=>{!e.target.matches(`button, input, textarea`)&&e.key!==`Tab`&&e.preventDefault(),e.target===z(u)&&e.key===`Backspace`&&l()(new CustomEvent(`remove`))}),U(e,r)};G(ce,e=>{o()===`dialog`?e(le):e(ue,-1)}),U(e,se);var de=k(oe);return a(),de}var K7,Qve,$ve,eye,tye,nye,rye=s((()=>{Q(),Y(),Z(),B$(),K7=u(YM()),dc(),oc(),K8(),a9(),g7(),bC(),W4(),C7(),Xve(),Qve=V(`<!> <!> <!> <!>`,1),$ve=V(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),eye=V(`<span role="button" class="placeholder svelte-1l1n28m" contenteditable="false" tabindex="0"> </span> <!>`,1),tye=V(`<div role="group" class="wrapper svelte-1l1n28m" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),nye={hash:`svelte-1l1n28m`,code:`.wrapper.svelte-1l1n28m {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-1l1n28m:focus {outline-color:var(--sui-primary-accent-color-translucent);}
949
- @media (768px <= width) {.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type] {border-width:0;}.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type=string] {display:flex;align-items:center;gap:8px;padding-block:0 16px;}.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type=string] h4 {margin-bottom:0 !important;}.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) [data-field-type=string] .field-wrapper {flex:auto;}
950
- }.wrapper.svelte-1l1n28m:is([data-component-name=image]:where(.svelte-1l1n28m), [data-component-name=linked-image]:where(.svelte-1l1n28m)) button {margin:var(--sui-focus-ring-width);}.wrapper.svelte-1l1n28m + .wrapper {margin-top:16px;}.placeholder.svelte-1l1n28m {display:inline;border:dashed 1px currentColor;border-color:hsl(from currentColor h s l/0.5);border-radius:2px;padding-inline:0.4em;cursor:pointer;-webkit-user-select:none;user-select:none;}.placeholder.svelte-1l1n28m:hover {border-color:currentColor;}.placeholder.svelte-1l1n28m:focus {outline:2px solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}.fields.svelte-1l1n28m {display:flex;flex-direction:column;gap:16px;}`},Ca([`click`,`keydown`])})),iye,aye=s((()=>{JK(),oc(),rye(),Ik(),iye=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=Nk(s),d=l?.({}),f=c({}),p=typeof d==`string`?d.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName??(typeof f==`string`?f.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName:void 0):void 0;class m extends SK{__props;constructor(e,t){super(t),this.__props=e}static getType(){return t}isInline(){return!u}static clone(e){return new m(e.__props,e.__key)}static importJSON(e){return new m().updateFromJSON(e)}exportJSON(){return{...Pk(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,u=()=>{l||(l=!0,Va(c))};return c=za(Zve,{target:document.createElement(`div`),props:{componentName:t,label:n,collapsed:r,mode:i,summary:a,fields:o,values:this.__props,onChange:async({type:t,detail:n})=>{await Bi(),s??=FV(e);let{activeElement:r}=document,i=r,a=i?.matches(`[contenteditable="true"]`)?window.getSelection():null,o=a&&a.rangeCount>0?a.getRangeAt(0).cloneRange():null;s?.update(()=>{if(t===`update`)try{this.getWritable().__props=n}catch{}t===`remove`&&(u(),this.remove())},{discrete:!0,onUpdate:()=>{i&&document.body.contains(i)&&(i.focus(),o&&a&&(a.removeAllRanges(),a.addRange(o)))}})}}}),Tn(),e=c.getElement(),window.requestAnimationFrame(()=>{e.focus(),e.closest(`.field`)?.addEventListener(`Unmount`,u,{once:!0});let{parentElement:t}=e;if(t){let n=new MutationObserver(()=>{e.isConnected||(u(),n.disconnect())});n.observe(t,{childList:!0})}}),e}exportDOM(){return{element:this.createDOM()}}static importDOM(){let e={};return p&&(e[p]=()=>({conversion:e=>({node:new m(Object.fromEntries(o.map(({name:t})=>[t,e[t]??``])))}),priority:3})),t===`linked-image`&&Object.assign(e,{a:e=>{if(e.firstChild?.nodeName.toLowerCase()===`img`){let{href:t}=e,{src:n,alt:r,title:i}=e.firstChild;return{conversion:()=>({node:new m({src:n,alt:r,title:i,link:t}),after:()=>[]}),priority:4}}return null}}),e}updateDOM(){return!1}}return m}})),oye,sye=s((()=>{Ik(),oye=({componentDef:e,CustomNode:t})=>{let{id:n,pattern:r,fromBlock:i,toBlock:a}=e,o=new RegExp(r.source,r.flags.replace(`g`,``)),s=e=>i?.(e)??e.groups??{},c=e=>e instanceof t&&e.getType()===n,l=e=>c(e)?a(Pk(e.__props??{})):null;return Nk(r)?{type:`multiline-element`,dependencies:[t],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:e,rootNode:n,startLineIndex:r})=>{let i=e.slice(r).join(`
965
+ ${JSON.stringify(e)}\n\nRespond with JSON only:`,b5=(e,t,n)=>{let r;try{r=JSON.parse(e)}catch{throw Error(`Failed to parse JSON response from ${n}.`)}if(!Array.isArray(r))throw Error(`Invalid JSON structure in ${n} response.`);if(r.length!==t)throw Error(`Translation count mismatch: expected ${t}, got ${r.length}`);return r}})),nfe,rfe,ife,afe,ofe,sfe,cfe=s((()=>{tfe(),x5(),nfe=`anthropic`,rfe=`Anthropic Claude`,ife=`claude-haiku-4-5`,afe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),ofe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await efe({apiKey:r,model:ife,systemPrompt:v5(i,a),userMessage:y5(e)}),e.length,`Anthropic API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Anthropic API.`)}},sfe={serviceId:nfe,serviceLabel:rfe,apiLabel:Xde,developerURL:Zde,apiKeyURL:Qde,apiKeyPattern:$de,markdownSupported:!0,availability:afe,translate:ofe}})),lfe,ufe,dfe,ffe,pfe,mfe,hfe=s((()=>{lfe=`https://api.deepseek.com/chat/completions`,ufe=`DeepSeek API`,dfe=`https://api-docs.deepseek.com/`,ffe=`https://platform.deepseek.com/api_keys`,pfe=/sk-[a-zA-Z0-9]{32,}/,mfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,thinking:o=!0})=>{let s=await fetch(lfe,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,messages:[{role:`system`,content:n},{role:`user`,content:r}],temperature:i,max_tokens:a,thinking:{type:o?`enabled`:`disabled`},stream:!1})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error(`DeepSeek API error: ${s.status} ${s.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let c=await s.json();if(!c.choices||!Array.isArray(c.choices)||!c.choices[0]?.message?.content)throw Error(`Invalid response format from DeepSeek API.`);return c.choices[0].message.content.trim()}})),gfe,_fe,vfe,yfe,bfe,xfe,Sfe=s((()=>{hfe(),x5(),gfe=`deepseek`,_fe=`DeepSeek`,vfe=`deepseek-v4-flash`,yfe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),bfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await mfe({apiKey:r,model:vfe,systemPrompt:v5(i,a),userMessage:y5(e),thinking:!1}),e.length,`DeepSeek API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with DeepSeek API.`)}},xfe={serviceId:gfe,serviceLabel:_fe,apiLabel:ufe,developerURL:dfe,apiKeyURL:ffe,apiKeyPattern:pfe,markdownSupported:!0,availability:yfe,translate:bfe}})),Cfe,wfe,Tfe,Efe,Dfe,Ofe,S5,C5,kfe,Afe,w5,jfe=s((()=>{Cfe=`google`,wfe=`Google Cloud Translation`,Tfe=`Cloud Translation API`,Efe=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,Dfe=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,Ofe=/AIza[0-9A-Za-z-_]{35}/,S5=[`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(`,`),C5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(S5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(S5.includes(n))return n},kfe=async({sourceLanguage:e,targetLanguage:t})=>!!C5(e)&&!!C5(t),Afe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=C5(t)??``,n=C5(n)??``,!t)throw Error(`Source locale is not supported.`);if(!n)throw Error(`Target locale is not supported.`);let i={q:e,source:t,target:n,format:`html`};try{let e=await fetch(`https://translation.googleapis.com/language/translate/v2`,{method:`POST`,headers:{"Content-Type":`application/json`,"X-goog-api-key":r},body:JSON.stringify(i)});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error(`Google Translate API error: ${e.status} ${e.statusText}${t.error?.message?` - ${t.error.message}`:``}`)}let{data:t}=await e.json();return t.translations.map(e=>e.translatedText.replace(/&#39;/g,`'`))}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Google Translate API.`)}},w5={serviceId:Cfe,serviceLabel:wfe,apiLabel:Tfe,developerURL:Efe,apiKeyURL:Dfe,apiKeyPattern:Ofe,markdownSupported:!1,availability:kfe,translate:Afe}})),Mfe,Nfe,Pfe,Ffe,Ife,Lfe=s((()=>{Mfe=`Google AI Studio API`,Nfe=`https://ai.google.dev/gemini-api/docs`,Pfe=`https://aistudio.google.com/api-keys`,Ffe=/AIza[a-zA-Z0-9_-]{35}/,Ife=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,responseFormat:o})=>{let s=`https://generativelanguage.googleapis.com/v1beta/models/${t}:generateContent?key=${e}`,c=await fetch(s,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({system_instruction:{parts:[{text:n}]},contents:[{parts:[{text:r}]}],generationConfig:{temperature:i,maxOutputTokens:a,...o?{responseMimeType:o}:{}}})});if(!c.ok){let e=await c.json().catch(()=>({}));throw Error(`Gemini API error: ${c.status} ${c.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let l=await c.json();if(!Array.isArray(l.candidates)||!l.candidates[0]?.content?.parts?.[0])throw Error(`Invalid response format from Gemini API.`);return l.candidates[0].content.parts[0].text.trim()}})),Rfe,zfe,Bfe,Vfe,Hfe,Ufe,Wfe=s((()=>{Lfe(),x5(),Rfe=`google-ai`,zfe=`Google Gemini`,Bfe=`gemini-3.1-flash-lite`,Vfe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),Hfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await Ife({apiKey:r,model:Bfe,systemPrompt:v5(i,a),userMessage:y5(e),responseFormat:`application/json`}),e.length,`Gemini API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Gemini API.`)}},Ufe={serviceId:Rfe,serviceLabel:zfe,apiLabel:Mfe,developerURL:Nfe,apiKeyURL:Pfe,apiKeyPattern:Ffe,markdownSupported:!0,availability:Vfe,translate:Hfe}})),Gfe,Kfe,qfe,Jfe,Yfe,Xfe,Zfe,Qfe,$fe=s((()=>{Gfe=`https://api.openai.com/v1/responses`,Kfe=`OpenAI API`,qfe=`https://platform.openai.com/docs/overview`,Jfe=`https://platform.openai.com/api-keys`,Yfe=/sk-[a-zA-Z0-9-_]{40,}/,Xfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content),Zfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`,Qfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(Gfe,{method:`POST`,headers:{"Content-Type":`application/json`,Authorization:`Bearer ${e}`},body:JSON.stringify({model:t,instructions:n,input:r,store:!1,temperature:i,max_output_tokens:a})});if(!o.ok){let e=await o.json().catch(()=>({}));throw Error(`OpenAI API error: ${o.status} ${o.statusText}${e.error?.message?` - ${e.error.message}`:``}`)}let s=await o.json();if(typeof s.output_text==`string`)return s.output_text.trim();let c=(Array.isArray(s.output)?s.output:[]).find(Xfe),l=(Array.isArray(c?.content)?c.content:[]).find(Zfe);if(typeof l?.text==`string`)return l.text.trim();throw Error(`Invalid response format from OpenAI API.`)}})),epe,tpe,npe,rpe,ipe,ape,ope=s((()=>{$fe(),x5(),epe=`openai`,tpe=`OpenAI GPT`,npe=`gpt-5.4-nano`,rpe=async({sourceLanguage:e,targetLanguage:t})=>!!_5(e)&&!!_5(t),ipe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=_5(t),a=_5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return b5(await Qfe({apiKey:r,model:npe,systemPrompt:v5(i,a),userMessage:y5(e)}),e.length,`OpenAI API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with OpenAI API.`)}},ape={serviceId:epe,serviceLabel:tpe,apiLabel:Kfe,developerURL:qfe,apiKeyURL:Jfe,apiKeyPattern:Yfe,markdownSupported:!0,availability:rpe,translate:ipe}})),T5,E5,D5=s((()=>{rp(),eN(),cfe(),Sfe(),jfe(),Wfe(),ope(),T5={anthropic:sfe,deepseek:xfe,google:w5,"google-ai":Ufe,openai:ape},E5=dn([$M],([e])=>{let{defaultTranslationService:t=`google`}=e;return T5[t]??w5})})),O5,spe,k5,cpe,lpe,A5,upe=s((()=>{lO(),rp(),Kde(),W4(),RF(),_A(),g5(),D5(),eN(),O5=new u5({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),O5.keep([`span`,`div`]),spe=({draft:e,options:t})=>{let{collectionName:n,fileName:r,currentValues:i,isIndexFile:a}=e,{sourceLanguage:o,targetLanguage:s,keyPath:c=``,translate:l=!1}=t,u=i[o],d={collectionName:n,fileName:r,valueMap:u,isIndexFile:a};return Object.fromEntries(Object.entries(u).map(([e,t])=>{let n=i[s][e],r=uA({...d,keyPath:e}),a=r?.widget??`string`;return c&&!e.startsWith(c)||typeof t!=`string`||!t||![`richtext`,`markdown`,`text`,`string`,`list`].includes(a)||a===`list`&&h5(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},k5=(e,t,{count:n,sourceLanguage:r})=>{NF.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},cpe=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r,markdownSupported:i,translate:a}=A(E5),{sourceLanguage:o,targetLanguage:s}=t,c=Object.keys(n).length,l=A($M).apiKeys?.[r]||await new Promise(e=>{MF.set({show:!0,multiple:c>1,resolve:e})});if(l){k5(`info`,`translation.started`,{count:c,sourceLanguage:o});try{let t=await a(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!i?cO(e):e),{apiKey:l,sourceLanguage:o,targetLanguage:s});Object.entries(n).forEach(([n,{isMarkdown:r}],a)=>{let o=t[a];e[s][n]=r&&!i?O5.turndown(o):o}),k5(`success`,`translation.complete`,{count:c,sourceLanguage:o})}catch(e){k5(`error`,`translation.error`,{count:c,sourceLanguage:o}),console.error(e)}}},lpe=({currentValues:e,options:t,copingFieldMap:n})=>{let{sourceLanguage:r,targetLanguage:i}=t,a=Object.keys(n).length;Object.entries(n).forEach(([t,{value:n}])=>{e[i][t]=n}),k5(`success`,`copy.complete`,{count:a,sourceLanguage:r})},A5=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=A(z4),{currentValues:i}=r,a=spe({draft:r,options:e}),o=Object.keys(a).length;if(!o){k5(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await cpe({currentValues:i,options:e,copingFieldMap:a}):lpe({currentValues:i,options:e,copingFieldMap:a}),z4.update(e=>({...e,currentValues:i}))}}));function j5(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,i),r=()=>j(E5,`$translator`,i),[i,a]=hn(),o=J(t,`keyPath`,3,``),s=J(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!jt(n().currentValues[e])[o()]||!s()&&!!o()&&jt(n().currentValues[e])[o()]===jt(n().currentValues[t])[o()]||s()&&!await r()?.availability({sourceLanguage:e,targetLanguage:t});var l=H();mo(I(l),16,()=>t.otherLocales,e=>e,(e,n)=>{let r=M(()=>({sourceLanguage:n,targetLanguage:t.locale}));var i=H();eo(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>X(s()?`translate_from_x`:`copy_from_x`,{values:{locale:ob(n)}}));qL(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{A5({...z(r),keyPath:o(),translate:s()})}})}}),U(e,i)}),U(e,l),k(),a()}var M5=s((()=>{Q(),Y(),Z(),B$(),W4(),upe(),ub(),D5()}));function dpe(e,t){O(t,!0),K(e,ppe);let n=J(t,`children`,3,void 0),r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`children`]),i=N(void 0);ic(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=fpe();ys(a,()=>({role:`group`,class:`field`,...r}),void 0,void 0,void 0,`svelte-wzztxu`),Eo(F(a),()=>n()??E),D(a),Us(a,e=>P(i,e),()=>z(i)),U(e,a),k()}var fpe,ppe,mpe=s((()=>{Q(),Y(),oc(),fpe=V(`<section><!></section>`),ppe={hash:`svelte-wzztxu`,code:`section.svelte-wzztxu {padding:var(--field-editor-padding);&:not(:last-child) {border-width:0 0 1px;border-color:var(--sui-secondary-border-color);}& > * {margin-inline:auto !important;max-width:768px;}& > header {display:flex;align-items:center;margin:0 -8px 8px;height:var(--sui-button-small-height);h4 {margin-inline:var(--sui-focus-ring-width) 0;font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}.required {margin-block:2px 0;margin-inline:2px 0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-large);}}}`}}));function hpe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,i),r=()=>j(E5,`$translator`,i),[i,a]=hn(),o=J(t,`size`,3,`medium`),s=J(t,`keyPath`,3,``),c=M(()=>!n()?.currentLocales[t.locale]),l=async({sourceLanguage:e,targetLanguage:t})=>z(c)||!n()?.currentLocales[e]||!await r()?.availability({sourceLanguage:e,targetLanguage:t});var u=H(),d=I(u),f=e=>{let n=M(()=>{let[e]=t.otherLocales;return{otherLocale:e}}),r=M(()=>X(`translate_from_x`,{values:{locale:ob(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=H();eo(I(a),()=>l(z(i)),null,(e,t)=>{tI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},get title(){return z(r)},get disabled(){return z(t)},onclick:()=>{A5({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{zF(e,{name:`translate`})},$$slots:{startIcon:!0}})}),U(e,a)},p=e=>{{let n=e=>{zF(e,{name:`translate`})},r=e=>{{let n=M(()=>X(`translation_options`));UL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{j5(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>X(`translate`));NI(e,{variant:`ghost`,get size(){return o()},iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},get disabled(){return z(c)},endIcon:n,popup:r,$$slots:{endIcon:!0,popup:!0}})}};G(d,e=>{t.otherLocales.length===1?e(f):e(p,-1)}),U(e,u),k(),a()}var gpe=s((()=>{Q(),Y(),Z(),B$(),M5(),W4(),upe(),ub(),D5()}));function N5(e,t){K(e,vpe);let n=J(t,`id`,3,void 0),r=J(t,`live`,3,`polite`);var i=_pe(),a=F(i),o=F(a);zF(o,{name:`error`}),Eo(L(o,2),()=>t.children),D(a),D(i),R(()=>{q(i,`id`,n()),q(i,`aria-live`,r())}),U(e,i)}var _pe,vpe,P5=s((()=>{Q(),Y(),B$(),_pe=V(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),vpe={hash:`svelte-6wra4i`,code:`.validation.svelte-6wra4i {color:var(--sui-error-foreground-color) !important;font-size:var(--sui-font-size-small);div:where(.svelte-6wra4i) {display:flex;align-items:center;gap:4px;margin:4px 0 0;.icon {flex:none;font-size:16px; /* !hardcoded */}}}`}}));function ype(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1);HR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get checked(){return n()},set checked(e){n(e)}}),k()}var bpe=s((()=>{Q(),Y(),B$()}));function xpe(e,t){O(t,!0);let n=J(t,`currentValue`,3,!1);var r=H(),i=I(r),a=e=>{var t=Spe(),r=F(t,!0);D(t),R(e=>W(r,e),[()=>X(`boolean.${n()}`)]),U(e,t)};G(i,e=>{typeof n()==`boolean`&&e(a)}),U(e,r),k()}var Spe,Cpe=s((()=>{Q(),Y(),Z(),Spe=V(`<p> </p>`)}));function wpe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=N(``),d=N(``),f=M(()=>T(t.fieldConfig.default_language,`plain`)),p=M(()=>T(t.fieldConfig.allow_language_selection,!0)),m=M(()=>T(t.fieldConfig.output_code_only,!1)),h=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),g=M(()=>jt(n()?.[a][t.locale])??{}),_=M(()=>`${t.keyPath}.${z(h).code}`),v=M(()=>`${t.keyPath}.${z(h).lang}`),y=()=>{if(z(m))typeof o()==`string`?z(u)!==o()&&P(u,o(),!0):P(u,``),P(d,z(f),!0);else{let e=z(g)[z(_)],t=z(g)[z(v)]||z(f);typeof e==`string`?z(u)!==e&&P(u,e,!0):P(u,``),typeof t==`string`?z(d)!==t&&P(d,t,!0):P(d,``)}},b=()=>{z(m)?o()!==z(u)&&o(z(u)):n()&&(o({}),z(g)[z(_)]!==z(u)&&_n(z4,B(n)[a][t.locale][z(_)]=z(u),B(n)),z(g)[z(v)]!==z(d)&&_n(z4,B(n)[a][t.locale][z(v)]=z(d),B(n)))};ti(()=>{z(g),B(()=>{y()})}),ti(()=>{z(u),z(d),B(()=>{b()})});var x=H();eo(I(x),Jx,null,e=>{var n=H();oo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{zle(e,{get showLanguageSwitcher(){return z(p)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get code(){return z(u)},set code(e){P(u,e,!0)},get lang(){return z(d)},set lang(e){P(d,e,!0)}})}),U(e,n)}),U(e,x),k(),i()}var Tpe=s((()=>{Q(),Y(),B$(),Yx(),oc(),W4()}));function Epe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>T(t.fieldConfig.default_language,``)),o=M(()=>T(t.fieldConfig.output_code_only,!1)),s=M(()=>T(t.fieldConfig.keys,()=>({code:`code`,lang:`lang`}),!0)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>`${t.keyPath}.${z(s).code}`),u=M(()=>`${t.keyPath}.${z(s).lang}`),d=M(()=>z(o)?t.currentValue:z(c)[z(l)]),f=M(()=>z(o)?z(a):z(c)[z(u)]);var p=H(),m=I(p),h=e=>{var t=Dpe(),n=F(t,!0);D(t),R(()=>{ss(t,1,es(z(f)?`language-${z(f)}`:void 0)),W(n,z(d))}),U(e,t)};G(m,e=>{z(d)&&e(h)}),U(e,p),k(),i()}var Dpe,Ope=s((()=>{Q(),Y(),W4(),Dpe=V(`<pre> </pre>`)}));function kpe(e,t){let n=Ia();O(t,!0),K(e,Npe);let r=J(t,`currentValue`,15),i=J(t,`required`,3,!0),a=J(t,`readonly`,3,!1),o=J(t,`invalid`,3,!1),s=N(``),c=N(255),l=M(()=>T(t.fieldConfig.allowInput,!1)),u=M(()=>T(t.fieldConfig.enableAlpha,!1)),d=/^#[0-9a-f]{6}$/i,f=/^(?<rgb>#[0-9a-f]{6})(?<a>[0-9a-f]{2})?$/i,p=()=>{if(typeof r()!=`string`)return;let{rgb:e,a:t=`ff`}=r().match(f)?.groups??{};if(e&&z(s)!==e&&P(s,e,!0),e&&z(u)){let e=Number.parseInt(`0x${t}`,16);z(c)!==e&&P(c,e,!0)}},m=()=>{let e=d.test(z(s))?z(s):``;e&&z(u)&&(e+=z(c).toString(16).padStart(2,`0`)),r()!==e&&r(e)};ti(()=>{r(),B(()=>{p()})}),ti(()=>{z(s),z(c),B(()=>{m()})});var h=Mpe(),g=F(h);gs(g);var _=L(g,2),v=e=>{var r=jpe(),d=F(r),f=e=>{lL(e,{dir:`ltr`,get id(){return`${n}-input`},get invalid(){return o()},get readonly(){return a()},get required(){return i()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(s)},set value(e){P(s,e,!0)}})};G(d,e=>{z(l)&&e(f)});var p=L(d,2),m=e=>{var t=Ape(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>X(`opacity`));Aoe(r,{min:0,max:255,get disabled(){return z(e)},get"aria-label"(){return z(t)},get value(){return z(c)},set value(e){P(c,e,!0)}})}R(e=>W(n,`${e??``} `),[()=>X(`opacity`)]),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(r),U(e,r)};G(_,e=>{(z(l)||z(u))&&e(v)});var y=L(_,2),b=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!z(s)),i=M(()=>`${n}-picker ${z(l)?`${n}-input`:``}`);tI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},get"aria-controls"(){return z(i)},onclick:()=>{P(s,``),P(c,255)}})}};G(y,e=>{!a()&&!i()&&e(b)}),D(h),R(()=>{q(g,`id`,`${n}-picker`),g.readOnly=a(),q(g,`aria-invalid`,o()),q(g,`aria-readonly`,a()),q(g,`aria-required`,i()),q(g,`aria-labelledby`,`${t.fieldId??``}-label`),q(g,`aria-errormessage`,`${t.fieldId??``}-error`)}),Ps(g,()=>z(s),e=>P(s,e)),U(e,h),k()}var Ape,jpe,Mpe,Npe,Ppe=s((()=>{Q(),Y(),Z(),B$(),oc(),Ape=V(` <!>`,1),jpe=V(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),Mpe=V(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),Npe={hash:`svelte-udhsyb`,code:`div.svelte-udhsyb {display:flex;align-items:center;gap:8px;.value:where(.svelte-udhsyb) {display:flex;align-items:center;gap:8px;.sui.text-input {width:88px;min-width:0;}.sui.slider {padding:8px;--sui-slider-base-width: 80px;}}}input.svelte-udhsyb {font-family:var(--sui-textbox-font-family);}`}}));function Fpe(e,t){O(t,!0),K(e,Lpe);let n=M(()=>T(t.fieldConfig.enableAlpha,!1)),r=e=>Number.parseInt(`0x${e}`,16),i=/^#(?<r>[0-9a-f]{2})(?<g>[0-9a-f]{2})(?<b>[0-9a-f]{2})(?<a>[0-9a-f]{2})?$/i,a=M(()=>{let{r:e,g:a,b:o,a:s}=t.currentValue?.match(i)?.groups??{};return e?`rgb(${r(e)} ${r(a)} ${r(o)}${z(n)&&s?` / ${Math.round(r(s)/255*100)}%`:``})`:``});var o=H(),s=I(o),c=e=>{var n=Ipe(),r=F(n),i=F(r);let o;var s=L(i,2),c=F(s,!0);D(s);var l=L(s,2),u=F(l,!0);D(l),D(r),D(n),R(()=>{o=us(i,``,o,{"background-color":t.currentValue}),W(c,t.currentValue),W(u,z(a))}),U(e,n)},l=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(s,e=>{z(l)&&e(c)}),U(e,o),k()}var Ipe,Lpe,Rpe=s((()=>{Q(),Y(),Ipe=V(`<p><span role="none" class="preview svelte-1m6xsa0"><span role="none" class="color svelte-1m6xsa0"></span> <span role="none" class="value"> </span> <span role="none" class="value"> </span></span></p>`),Lpe={hash:`svelte-1m6xsa0`,code:`.preview.svelte-1m6xsa0 {display:inline-flex;align-items:center;gap:8px;.color:where(.svelte-1m6xsa0) {display:block;width:24px;height:24px;border-radius:24px;}}`}}));function zpe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,15),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=M(()=>T(t.fieldConfig.value,``)),d=M(()=>n()?.isIndexFile??!1),f=M(()=>n()?.collectionName??``),p=M(()=>n()?.fileName),m=M(()=>jt(n()?.[a][t.locale])??{}),h=M(()=>cb(t.locale)),g=()=>{let[e]=t.keyPath.split(`.`).splice(-2,1);return e?.match(/^\d+$/)?Number(e):void 0},_=()=>{if(!(t.keyPath in z(m)))return;let e=z(u)===`{{index}}`?g()??``:z(u).replaceAll(/{{(.+?)}}/g,(e,n)=>{if(n===`index`)return String(g()??``);if(!n.startsWith(`fields.`))return``;let r=mA({collectionName:z(f),fileName:z(p),valueMap:z(m),keyPath:n.replace(/^fields\./,``),locale:t.locale,isIndexFile:z(d)});return Array.isArray(r)?z(h).format(r):String(r)});o()!==e&&o(e)};ti(()=>{z(m),B(()=>{_()})});{let n=M(()=>String(o()));lL(e,{dir:`auto`,get value(){return z(n)},flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`}})}k(),i()}var Bpe=s((()=>{Q(),Y(),B$(),oc(),W4(),_A(),ub()}));function Vpe(e,t){O(t,!0);var n=Hpe(),r=F(n,!0);D(n),R((e,i)=>{q(n,`lang`,e),q(n,`dir`,i),W(r,t.currentValue),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,n),k()}var Hpe,Upe=s((()=>{Q(),Y(),ub(),Hpe=V(`<p> </p>`)}));function Wpe(e,t){O(t,!0),K(e,qpe);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(``),s=M(()=>oC(t.fieldConfig)),c=M(()=>z(s).type),l=M(()=>z(s).min),u=M(()=>z(s).max),d=M(()=>z(s).step),f=M(()=>z(s).dateOnly),p=M(()=>z(s).utc),m=()=>{let e=fC(n(),t.fieldConfig);e!==void 0&&e!==z(o)&&P(o,e,!0)},h=()=>{let e=dC(z(o),n(),t.fieldConfig);e!==void 0&&e!==n()&&Number(lC(e,t.fieldConfig))!==Number(lC(n(),t.fieldConfig))&&n(e)};ti(()=>{n(),B(()=>{m()})}),ti(()=>{z(o),B(()=>{h()})});var g=Kpe(),_=F(g);ys(_,()=>({type:z(c),min:z(l),max:z(u),step:z(d),readonly:i(),"aria-readonly":i(),"aria-required":r(),"aria-invalid":a(),"aria-labelledby":`${t.fieldId??``}-label`,"aria-errormessage":`${t.fieldId??``}-error`}),void 0,void 0,void 0,`svelte-1dnhck7`,!0);var v=L(_,2),y=e=>{U(e,Gpe())};G(v,e=>{z(p)&&e(y)});var b=L(v,2),x=e=>{{let n=M(()=>X(z(f)?`today`:`now`));tI(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{let e=uC(t.fieldConfig);P(o,z(p)?e.replace(/:00\.000Z$/,``):e,!0)}})}};G(b,e=>{i()||e(x)});var S=L(b,2),C=e=>{{let t=M(()=>X(`clear`)),r=M(()=>!n());tI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};G(S,e=>{!i()&&!r()&&e(C)}),D(g),Ps(_,()=>z(o),e=>P(o,e)),U(e,g),k()}var Gpe,Kpe,qpe,Jpe=s((()=>{Q(),Y(),Z(),B$(),oc(),mC(),Gpe=V(`<span role="none" class="utc svelte-1dnhck7">UTC</span>`),Kpe=V(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!> <!></div>`),qpe={hash:`svelte-1dnhck7`,code:`div.svelte-1dnhck7 {display:flex;align-items:center;}.utc.svelte-1dnhck7 {margin:0 8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}`}}));function Ype(e,t){O(t,!0);let n=M(()=>pC({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var r=H(),i=I(r),a=e=>{var r=Xpe(),i=F(r),a=L(i),o=e=>{U(e,Fa(`UTC`))};G(a,e=>{t.fieldConfig.picker_utc&&e(o)}),D(r),R((e,t)=>{q(r,`lang`,e),q(r,`dir`,t),W(i,`${z(n)??``} `),r.dir=r.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,r)};G(i,e=>{z(n)&&e(a)}),U(e,r),k()}var Xpe,Zpe=s((()=>{Q(),Y(),mC(),ub(),Xpe=V(`<p> <!></p>`)}));function Qpe(e,t){O(t,!0),K(e,tme);let n=J(t,`multiple`,3,!1),r=J(t,`hidden`,3,!1),i=M(()=>EC(t.fieldConfig)??{}),a=``,o=N(!1),s=N(!1),c=N(void 0),l=()=>{if(!z(c))return;a=window.crypto.randomUUID();let e=new URLSearchParams({...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>tre.includes(e))),ml_id:a,pmHost:window.location.origin,new_cms:`true`,remove_header:`true`});z(c).src=`https://console.cloudinary.com/console/media_library/cms?${e}`},u=()=>{let e={...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>nre.includes(e))),multiple:n(),max_files:t.fieldConfig?.max??z(i).config?.max_files??20,folder:{path:z(i).config?.folder?.path??``,resource_type:t.kind??`raw`}},r={type:`ML_WIDGET_SHOW`,data:{mlId:a,config:e}};console.debug(`Cloudinary Panel sending message:`,r),z(c)?.contentWindow?.postMessage(JSON.stringify(r),ere)},f=({assets:e})=>{let{output_filename_only:n=!1,use_transformations:r=!0}=z(i),a=e.map(e=>{let t=e.secure_url;return n?{url:t.split(`/`).pop()}:r?{url:e.derived?.[0]?.secure_url??t}:{url:t}});t.onSelect(a)},p=({origin:e,data:t})=>{if(e===`https://console.cloudinary.com`){if(typeof t==`string`)try{t=JSON.parse(t)}catch{return}d(t)&&(console.debug(`Cloudinary Panel received message:`,t),t.type===`login`&&t.consoleDomain&&P(o,!0),t.type===`consoleLoaded`&&P(s,!0),t.type===`ML_WIDGET_INSERT_DATA`&&f(t.data))}};ic(()=>(l(),window.addEventListener(`message`,p),()=>{window.removeEventListener(`message`,p)})),ti(()=>{z(i)&&z(s)&&u()});var m=eme(),h=I(m);Us(h,e=>P(c,e),()=>z(c));var g=L(h,2),_=e=>{P$(e,{children:(e,t)=>{var n=$pe(),r=I(n);{let e=M(()=>X(`cloud_storage.cloudinary.activate.button_label`));tI(r,{variant:`primary`,get label(){return z(e)},onclick:async()=>{u1(`https://console.cloudinary.com/console/media_library/cms_login?cms=true`)}})}var i=L(r,2),a=F(i,!0);D(i),R(e=>W(a,e),[()=>X(`cloud_storage.cloudinary.activate.description`)]),U(e,n)},$$slots:{default:!0}})};G(g,e=>{!r()&&!z(o)&&e(_)}),R(e=>{q(h,`title`,e),q(h,`hidden`,r()||!z(o))},[()=>X(`cloud_storage.cloudinary.iframe_title`)]),U(e,m),k()}var $pe,eme,tme,nme=s((()=>{Q(),Y(),Z(),B$(),p(),oc(),DC(),d1(),$pe=V(`<!> <div role="none"> </div>`,1),eme=V(`<iframe allow="camera; storage-access" class="svelte-p06t0o"></iframe> <!>`,1),tme={hash:`svelte-p06t0o`,code:`iframe.svelte-p06t0o {display:block;width:100%;height:100%;border:none;&[hidden] {display:none;}}`}}));function rme(e,t){O(t,!0),K(e,sme);let n=J(t,`children`,3,void 0),r=M(()=>t.path?vp(t.path).split(`/`):t.caption?[t.caption]:[]),i={ALLOWED_TAGS:[`wbr`]},a=e=>OE(e.replace(/([-_.])/g,`$1<wbr>`),i);var o=H(),s=I(o),c=e=>{var t=ome(),i=F(t);qF(i,{lines:2,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(r),(e,t)=>`${e}-${t}`,(e,t,n)=>{var i=H(),o=I(i),s=e=>{var n=ime();So(n,()=>a(z(t)),!0),D(n),U(e,n)},c=e=>{var n=ame();So(I(n),()=>a(z(t))),_t(),U(e,n)};G(o,e=>{z(n)===z(r).length-1?e(s):e(c,-1)}),U(e,i)}),U(e,n)},$$slots:{default:!0}}),Eo(L(i,2),()=>n()??E),D(t),U(e,t)};G(s,e=>{z(r).length&&e(c)}),U(e,o),k()}var ime,ame,ome,sme,cme=s((()=>{Q(),Y(),B$(),Sp(),kE(),ime=V(`<strong></strong>`),ame=V(`<!>/`,1),ome=V(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),sme={hash:`svelte-1ngvthn`,code:`.name.svelte-1ngvthn {color:var(--sui-tertiary-foreground-color);strong {color:var(--sui-primary-foreground-color);font-weight:var(--sui-font-weight-normal);}}`}}));function lme(e,t){K(e,fme);let n=J(t,`viewType`,3,`grid`);var r=dme();RL(F(r),{label:``,get value(){return t.value},get selected(){return t.selected},get onChange(){return t.onChange},startIcon:e=>{var n=H(),r=I(n),i=e=>{var t=ume();zF(F(t),{name:`check`,class:`icon check`}),D(t),U(e,t)};G(r,e=>{t.multiple&&e(i)}),U(e,n)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{startIcon:!0,default:!0}}),D(r),R(()=>ss(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),U(e,r)}var ume,dme,fme,pme=s((()=>{Q(),Y(),B$(),ume=V(`<span role="none" class="icon check-background"><!></span>`),dme=V(`<div role="none"><!></div>`),fme={hash:`svelte-1fitgoo`,code:`.wrapper.svelte-1fitgoo {display:contents;[role='option'] {position:relative;& > .icon.check {display:none;}&[aria-selected='false'] {.check-background {border-color:var(--sui-checkbox-border-color);background-color:var(--sui-checkbox-background-color);.icon {display:none;}}}&[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);}}.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;.icon {color:inherit !important;font-size:20px;}}}&.grid {.check-background {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}}&.list {.check-background {margin-inline-start:16px;}}}`}}));function mme(e,t){O(t,!0),K(e,gme);let n=J(t,`viewType`,3,`grid`),r=J(t,`gridId`,3,void 0),i=J(t,`multiple`,3,!1),a=J(t,`showTitle`,3,!1),o=J(t,`onChange`,3,void 0),s=J(t,`children`,3,void 0);var c=hme();let l;var u=F(c);{let e=M(()=>X(`assets_dialog.available_images`));jL(u,{get id(){return r()},get class(){return n()},get multiple(){return i()},get"aria-label"(){return z(e)},onChange:e=>{o()?.(e.detail)},children:(e,t)=>{var n=H();Eo(I(n),()=>s()??E),U(e,n)},$$slots:{default:!0}})}D(c),R(()=>l=ss(c,1,`wrapper svelte-umbokg`,null,l,{"show-title":a()})),U(e,c),k()}var hme,gme,_me=s((()=>{Q(),Y(),Z(),B$(),hme=V(`<div role="none"><!></div>`),gme={hash:`svelte-umbokg`,code:`.wrapper.svelte-umbokg {display:contents;.listbox {gap:4px;border-width:0;max-height:calc(100% - var(--sui-focus-ring-width) * 2);.option {button {border-radius:var(--sui-control-medium-border-radius);padding:4px;width:100%;height:auto;transition:none;&:focus-visible {outline-color:transparent;}.preview {flex:none;border-radius:var(--sui-control-medium-border-radius);aspect-ratio:1 / 1;object-fit:contain;}}}.name {min-height:calc(var(--sui-font-size-default) * 2);white-space:normal;line-height:var(--sui-line-height-compact);}}.listbox.grid {display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));height:auto;max-height:none;.option {button {flex-direction:column;justify-content:flex-start;.preview {width:100%;height:auto;}.name {flex:none;margin:4px 0 12px;padding:0 8px;width:100%;min-height:calc(var(--sui-font-size-default) * 3);&:empty {display:none;}}}}button[aria-selected='true'] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}}&:not(.wrapper.show-title) .listbox.grid .option .name {position:absolute;inset-inline-start:-99999px;}.listbox.list {.option {button {gap:16px;.preview {width:64px;}.name {flex:auto;padding-inline:0 8px;}}button[aria-selected='true'] {outline-offset:-2px;outline-width:2px !important;outline-style:solid;outline-color:var(--sui-primary-accent-color-light);}}}}`}}));function vme(e,t){O(t,!0);let n=J(t,`open`,15,!1);{let r=M(()=>X(`assets_dialog.large_file.title`));sL(e,{get title(){return z(r)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=yme(),i=I(r),a=F(i,!0);D(i);var o=L(i,2),s=F(o,!0);D(o),R((e,t)=>{W(a,e),W(s,t)},[()=>X(`warning_oversized_files`,{values:{count:t.oversizedFileNames.length,size:qC(t.maxSize)}}),()=>cb(Oh.current).format(t.oversizedFileNames)]),U(e,r)},$$slots:{default:!0}})}k()}var yme,bme=s((()=>{Q(),Y(),Z(),B$(),ub(),ew(),yme=V(`<div> </div> <div> </div>`,1)}));function xme(e,t){O(t,!0),K(e,Nme);let n=()=>j(IF,`$selectAssetsView`,o),r=()=>j(JP,`$cmsConfig`,o),i=()=>j($M,`$prefs`,o),a=()=>j(zA,`$isSmallScreen`,o),[o,s]=hn(),c=e=>{var t=H(),n=I(t),r=e=>{P$(e,{children:(e,t)=>{var n=Sme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(d()?`searching`:`loading`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{P$(e,{children:(e,t)=>{var n=Cme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})},o=e=>{var t=Tme();mme(F(t),{get viewType(){return z(re)},get gridId(){return f()},get multiple(){return u()},children:(e,t)=>{{let t=(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{let n=M(()=>{let{id:e,previewURL:n,description:r,kind:i}=t();return{id:e,previewURL:n,description:r,_kind:i}});{let r=M(()=>Ce(t()));lme(e,{get value(){return z(n).id},get viewType(){return z(re)},get multiple(){return u()},get selected(){return z(r)},onChange:({detail:{selected:e}})=>{we(t(),e)},children:(e,t)=>{var r=wme(),i=I(r);n2(i,{get kind(){return z(n)._kind},get src(){return z(n).previewURL},get alt(){return z(n).description},variant:`tile`,crossorigin:`anonymous`});var o=L(i,2),s=e=>{{let t=M(()=>z(ie)?void 0:z(n).description),r=M(()=>z(ie)?z(n).description:void 0);rme(e,{get path(){return z(t)},get caption(){return z(r)}})}};G(o,e=>{(z(re)===`list`||!a()&&!z(ie))&&e(s)}),U(e,r)},$$slots:{default:!0}})}}),U(e,n)},n=M(()=>z(me)??[]);bR(e,{get items(){return z(n)},itemKey:`id`,renderItem:t,$$slots:{renderItem:!0}})}},$$slots:{default:!0}}),D(t),U(e,t)};G(n,e=>{z(me)?z(me).length?e(o,-1):e(i,1):e(r)}),U(e,t)},l=J(t,`fieldConfig`,3,void 0),u=J(t,`multiple`,3,!1),d=J(t,`searchTerms`,3,``),f=J(t,`gridId`,3,void 0),p=J(t,`selectedResources`,31,()=>Cr([])),m=M(()=>T(t.serviceProps.serviceType,`stock_assets`)),h=M(()=>T(t.serviceProps.serviceId,``)),g=M(()=>T(t.serviceProps.serviceLabel,``)),_=M(()=>T(t.serviceProps.hotlinking,!1)),v=M(()=>T(t.serviceProps.authType,`api_key`)),y=M(()=>T(t.serviceProps.developerURL,``)),b=M(()=>T(t.serviceProps.apiKeyURL,``)),x=M(()=>t.serviceProps.apiKeyPattern),S=M(()=>t.serviceProps.init),C=M(()=>t.serviceProps.signIn),w=M(()=>t.serviceProps.list),ee=M(()=>t.serviceProps.search),ne=M(()=>t.serviceProps.upload),re=M(()=>z(h)===`picsum`?`grid`:n()?.type),ie=M(()=>z(m)===`stock_assets`),ae=M(()=>l()?.media_libraries?.all??r()?.media_libraries?.all??{}),oe=M(()=>z(ae).max_file_size??1/0),se=Cr({userName:``,password:``}),ce=N(!0),le=N(!1),ue=N(``),de=N(``),fe=N(``),pe=N(`initial`),me=N(null),he=N(void 0),ge=N(Cr({show:!1,status:`info`,length:0})),_e=N(Cr([])),ve=N(!1),ye=M(()=>({kind:t.kind,fieldConfig:l(),apiKey:z(ue),userName:z(de),password:z(fe)})),be=async(e=``)=>{P(me,null),e=e.trim();try{P(me,await(e?z(ee)?.(e,z(ye)):z(w)?.(z(ye)))??[],!0)}catch(e){P(he,`search_fetch_failed`),console.error(e)}},xe=async e=>{if(!z(ne))return;let t=await Promise.all(e.map(e=>iF(e,z(ae))));if(e=t.filter(({oversized:e})=>!e).map(({file:e})=>e),P(_e,t.filter(({oversized:e})=>e).map(({file:e})=>e.name),!0),z(_e).length&&P(ve,!0),e.length){P(ge,{show:!0,status:`info`,length:e.length},!0);try{await z(ne)(e,z(ye)),be()}catch{P(ge,{show:!0,status:`error`,length:e.length},!0)}}},Se=async e=>{let{downloadURL:t,fileName:n,credit:r}=e;if(z(_))return{url:t,credit:r};try{let e=await fetch(t),{ok:i,status:a}=e;if(!i)throw Error(`The response returned with HTTP status ${a}.`);let o=await e.blob();return{url:t,credit:r,file:new File([o],n,{type:o.type})}}catch(e){P(he,`image_fetch_failed`),console.error(e)}},Ce=e=>p().some(t=>t.url===e.downloadURL),we=async(e,t)=>{let n=p().filter(t=>t.url!==e.downloadURL);if(t){let t=await Se(e);t&&p([...n,t])}else p(n)};ic(()=>{(async()=>{typeof z(S)==`function`&&(P(ce,!1),P(ce,await z(S)(),!0)),z(ce)&&(P(ue,i().apiKeys?.[z(h)]??``,!0),(e=>{var t=te(e,2);P(de,t[0],!0),P(fe,t[1],!0)})((i().logins?.[z(h)]??``).split(` `)),P(le,z(v)===`none`||!!z(ue)||!!z(fe),!0),P(me,null))})()}),ti(()=>{d(),z(le),B(()=>{z(le)&&be(d())})});var Te={uploadFiles:xe},Ee=Mme(),De=I(Ee),Oe=e=>{var t=H(),n=I(t),r=e=>{P$(e,{children:(e,t)=>{var n=Eme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`assets_dialog.error.${z(he)}`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{{let t=M(()=>l()?.accept);T3(e,{get accept(){return z(t)},multiple:!0,onDrop:({files:e})=>xe(e),children:(e,t)=>{c(e)},$$slots:{default:!0}})}},a=e=>{c(e)};G(n,e=>{z(he)?e(r):z(ne)?e(i,1):e(a,-1)}),U(e,t)},ke=e=>{P$(e,{children:(e,t)=>{var n=kme(),r=I(n),a=F(r),o=e=>{var t=H();So(I(t),()=>OE(X(`prefs.media.stock_photos.description`,{values:{service:z(g),homeHref:`href="${z(y)}"`,apiKeyHref:`href="${z(b)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(a,e=>{z(ie)&&e(o)});var s=L(a,2),c=e=>{var t=H();So(I(t),()=>OE(X(`cloud_storage.${z(h)}.auth.${z(pe)}`,{default:X(`cloud_storage.auth.${z(v)}.${z(pe)}`,{values:{service:z(g),key:X(`cloud_storage.${z(h)}.auth_key_label`,{default:X(`cloud_storage.auth.${z(v)}.key_label`)})}})}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,t)};G(s,e=>{z(m)===`cloud_storage`&&e(c)}),D(r);var l=L(r,2),u=e=>{var t=Dme(),n=F(t);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(g)}}));lL(n,{dir:`ltr`,flex:!0,monospace:!0,spellcheck:`false`,get"aria-label"(){return z(e)},oninput:e=>{let t=e.target.value.trim();z(x)?.test(t)&&(P(ue,t,!0),P(le,!0),_n($M,B(i).apiKeys??={},B(i)),_n($M,B(i).apiKeys[z(h)]=z(ue),B(i)),be())}})}D(t),U(e,t)};G(l,e=>{z(v)===`api_key`&&e(u)});var d=L(l,2),f=e=>{var t=Ome(),n=I(t),r=F(n);{let e=M(()=>X(`user_name`)),t=M(()=>z(pe)===`requested`);lL(r,{dir:`ltr`,flex:!0,spellcheck:`false`,get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.userName},set value(e){se.userName=e}})}D(n);var a=L(n,2),o=F(a);{let e=M(()=>X(`password`)),t=M(()=>z(pe)===`requested`);E$(o,{get"aria-label"(){return z(e)},get disabled(){return z(t)},get value(){return se.password},set value(e){se.password=e}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`sign_in`)),t=M(()=>!se.userName||!se.password||z(pe)===`requested`);tI(c,{variant:`secondary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{P(pe,`requested`),se.userName=se.userName.trim(),se.password=se.password.trim(),await z(C)?.(se.userName,se.password)?(P(pe,`success`),P(de,se.userName,!0),P(fe,se.password,!0),P(le,!0),_n($M,B(i).logins??={},B(i)),_n($M,B(i).logins[z(h)]=[z(de),z(fe)].join(` `),B(i)),be()):P(pe,`error`)}})}D(s),U(e,t)};G(d,e=>{z(v)===`password`&&e(f)}),U(e,n)},$$slots:{default:!0}})},Ae=e=>{P$(e,{children:(e,t)=>{var n=Ame(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`cloud_storage.invalid`)]),U(e,n)},$$slots:{default:!0}})};G(De,e=>{z(le)?e(Oe):z(ce)?e(ke,1):e(Ae,-1)});var je=L(De,2);nz(je,{get show(){return z(ge).show},set show(e){z(ge).show=e},children:(e,t)=>{VF(e,{get status(){return z(ge).status},children:(e,t)=>{var n=jme(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_progress`,{values:{count:z(ge).length}})]),U(e,t)};G(r,e=>{z(ge).status===`info`&&e(i)});var a=L(r,2),o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`uploading_files_failed`,{values:{count:z(ge).length}})]),U(e,t)};G(a,e=>{z(ge).status===`error`&&e(o)}),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),vme(L(je,2),{get oversizedFileNames(){return z(_e)},get maxSize(){return z(oe)},get open(){return z(ve)},set open(e){P(ve,e,!0)}}),U(e,Ee);var Me=k(Te);return s(),Me}var Sme,Cme,wme,Tme,Eme,Dme,Ome,kme,Ame,jme,Mme,Nme,Pme=s((()=>{Q(),Y(),Z(),B$(),Yx(),kE(),oc(),cme(),pme(),_me(),l2(),M3(),bme(),aF(),$P(),RF(),WA(),eN(),Sme=V(`<span role="alert"> </span>`),Cme=V(`<span role="alert"> </span>`),wme=V(`<!> <!>`,1),Tme=V(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),Eme=V(`<span role="alert"> </span>`),Dme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),Ome=V(`<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),kme=V(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),Ame=V(`<span role="alert"> </span>`),jme=V(`<!> <!>`,1),Mme=V(`<!> <!> <!>`,1),Nme={hash:`svelte-mqll9n`,code:`.grid-wrapper.svelte-mqll9n {overflow-y:auto;height:100%;}p.svelte-mqll9n {margin:0 0 8px;}.input-outer.svelte-mqll9n {width:400px;max-width:100%;text-align:center;}`}}));function Fme(e,t){O(t,!0),K(e,Vme);let n=()=>j(zA,`$isSmallScreen`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`assets`,19,()=>[]),s=J(t,`viewType`,3,`grid`),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`gridId`,3,void 0),d=J(t,`checkerboard`,3,!1),f=J(t,`selectedResources`,31,()=>Cr([])),p=J(t,`onSelect`,3,void 0),m=M(()=>(c()?o().filter(({name:e})=>H6(e).includes(c())):o()).filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)),h=e=>f().some(t=>(0,F5.default)(t.asset,e)),g=(e,t)=>{let n=f().filter(t=>!(0,F5.default)(t.asset,e));t?(f([...n,{asset:e}]),p()?.({asset:e})):f(n)};var _=H(),v=I(_),y=e=>{var t=zme();mme(F(t),{get multiple(){return a()},get gridId(){return u()},get viewType(){return s()},showTitle:!0,children:(e,t)=>{bR(e,{get items(){return z(m)},itemKey:`path`,renderItem:(e,t=E)=>{var r=H();eo(I(r),Jx,null,e=>{let r=M(()=>{let{kind:e,name:n,path:r,unsaved:i,folder:a}=t();return{kind:e,name:n,path:r,unsaved:i,folder:a}}),i=M(()=>l()&&!z(r).folder.entryRelative?vp(z(r).path.replace(l(),``)):z(r).name);{let o=M(()=>h(t()));lme(e,{get value(){return z(r).path},get viewType(){return s()},get multiple(){return a()},get selected(){return z(o)},onChange:({detail:{selected:e}})=>{g(t(),e)},children:(e,a)=>{var o=Rme(),c=I(o),l=e=>{var t=Ime(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(c,e=>{s()===`grid`&&z(r).unsaved&&e(l)});var u=L(c,2);n2(u,{get kind(){return z(r).kind},get asset(){return t()},get alt(){return z(i)},variant:`tile`,get checkerboard(){return d()}});var f=L(u,2),p=e=>{rme(e,{get path(){return z(i)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=Lme(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`assets_dialog.unsaved`)]),U(e,t)};G(i,e=>{s()===`list`&&z(r).unsaved&&e(a)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{(!n()||s()===`list`)&&e(p)}),U(e,o)},$$slots:{default:!0}})}}),U(e,r)},$$slots:{renderItem:!0}})},$$slots:{default:!0}}),D(t),U(e,t)},b=e=>{P$(e,{children:(e,t)=>{var n=Bme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_found`)]),U(e,n)},$$slots:{default:!0}})};G(v,e=>{z(m).length?e(y):e(b,-1)}),U(e,_),k(),i()}var F5,Ime,Lme,Rme,zme,Bme,Vme,Hme=s((()=>{Q(),Y(),Z(),B$(),Yx(),Sp(),F5=u(YM()),cme(),pme(),_me(),l2(),G6(),WA(),Ime=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Lme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Rme=V(`<!> <!> <!>`,1),zme=V(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),Bme=V(`<span role="none"> </span>`),Vme={hash:`svelte-1ong0f1`,code:`.grid-wrapper.svelte-1ong0f1 {overflow-y:auto;height:100%;[role='listbox'] {background-color:transparent;&.grid {.unsaved {position:absolute;inset-block-start:8px;inset-inline-end:8px;z-index:1;}}&.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);}`}}));function Ume(e,t){O(t,!0);let n=()=>j(IF,`$selectAssetsView`,r),[r,i]=hn(),a=J(t,`multiple`,3,!1),o=J(t,`accept`,3,void 0),s=J(t,`assets`,19,()=>[]),c=J(t,`searchTerms`,3,``),l=J(t,`basePath`,3,void 0),u=J(t,`selectedResources`,31,()=>Cr([])),d=N(void 0);ti(()=>{u().length||B(()=>{z(d)?.reset()})}),Us(T3(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);Fme(e,{get multiple(){return a()},get assets(){return s()},get viewType(){return z(t)},get searchTerms(){return c()},get basePath(){return l()},gridId:`select-assets-grid`,checkerboard:!0,get selectedResources(){return u()},set selectedResources(e){u(e)}})}},$$slots:{default:!0}}),e=>P(d,e,!0),()=>z(d)),k(),i()}var Wme=s((()=>{Q(),Y(),oc(),Hme(),M3(),RF()})),I5,L5,R5,z5=s((()=>{Y(),SF(),I5={count:0,name:``,showDialog:!1,resolve:()=>{}},L5=Cr({...I5}),R5=async({files:e,listedAssets:t})=>{let n=xF(e,t),r=n.length;if(!r)return!1;let{promise:i,resolve:a}=Promise.withResolvers();Object.assign(L5,{count:r,name:n[0].name,showDialog:!0,resolve:a});let o=await i;return Object.assign(L5,{...I5}),o}})),Gme,B5,V5,H5,Kme,U5,qme,W5=s((()=>{hp(),Np(),Gme=u(YM(),1),rp(),SF(),Hp(),B5=({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r})=>{let i=Rp({collectionName:e,fileName:t,typedKeyPath:n,isIndexFile:r}),a=t?Rp({collectionName:e,fileName:t}):void 0,o=Rp({collectionName:e}),s=a??o,c=A(Fp);return{field:{folder:i,enabled:i!==void 0},entry:{folder:s,enabled:!!s&&(s.entryRelative||s.hasTemplateTags)},file:{folder:a,enabled:!!a&&!a.entryRelative&&!a.hasTemplateTags},collection:{folder:o,enabled:!!o&&!o.entryRelative&&!o.hasTemplateTags},global:{folder:c,enabled:c!==void 0}}},V5=({entry:e,folder:t})=>{let{entryRelative:n,internalPath:r,internalSubPath:i}=t??{};if(!n)return r?.replace(`{{slug}}`,e?.slug??`-`);let a=i||void 0;if(e){let t=Dp(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${r}/${a}/-`:`${r}/-`},H5=({path:e,folderPath:t})=>t!==void 0&&(e===t||`${e}/-`===t||e.startsWith(`${t}/`)),Kme=({asset:e,folder:t,folderPath:n})=>{if(t===void 0||e.folder?.internalPath!==t.internalPath||e.folder?.entryRelative!==t.entryRelative)return!1;if(!t.entryRelative)return H5({path:e.path,folderPath:n});let{dirname:r}=Dp(e.path);return r===void 0?!1:H5({path:r,folderPath:n})},U5=({kind:e,folder:t,folderPath:n,unsavedAssets:r})=>[...A(oF),...r].filter(t=>!e||e===t.kind).sort((e,t)=>e.name.localeCompare(t.name)).sort((e,t)=>Number(!!t.unsaved)-Number(!!e.unsaved)).filter(e=>Kme({asset:e,folder:t,folderPath:n})),qme=async({hash:e,folder:t,unsavedAssets:n})=>(await Promise.all(n.map(async n=>!!n.file&&(0,Gme.default)(n.folder,t)&&await mp(n.file)===e))).includes(!0)})),G5,K5,q5,J5,Jme,Y5,X5=s((()=>{hp(),G5=u(YM(),1),kE(),rp(),SF(),vT(),AS(),aF(),ew(),K5=async({draft:e,file:t,folder:n})=>{let r=await mp(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await mp(t.file)===r&&(!n?.entryRelative||(0,G5.default)(t.folder,n))&&(i=e)})),i},q5=async({file:e,blobURL:t,folder:n,targetFolderPath:r})=>{let{name:i,size:a}=e;return{unsaved:!0,file:e,blobURL:t??URL.createObjectURL(e),name:i,path:r?`${r}/${i}`:i,sha:await $C(e),size:a,kind:kS(i),folder:n}},J5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>q5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),Jme=(e,t)=>{let n=A(oF);if(!t?.entryRelative)return n;let{originalEntry:r,defaultLocale:i,collection:a}=e,o=r?.locales[i]?.path;if(!o)return[];let s=a._type===`entry`?a._file.subPath:void 0,c=s?.includes(`/`)?s.split(`/`).at(-1):void 0,l=o.substring(0,o.lastIndexOf(`.`));c&&!c.includes(`{{`)&&(l=l.match(/(?<path>.+?)(?:\/[^/]+)?$/)?.groups?.path??l);let u=[l,t.internalSubPath].filter(Boolean).join(`/`);return n.filter(e=>e.path.startsWith(`${u}/`))},Y5=async({draft:e,resource:t,libraryConfig:n})=>{let{url:r,credit:i,replace:a=!1}=t,{asset:o,file:s}=t,c=``,l;if(s){let{folder:r}=t,i=await K5({draft:e,file:s,folder:r});if(i)c=i;else{let{file:t,oversized:i}=await iF(s,n??{});s=t;let u=await $C(s),d=[...Jme(e,r),...await J5({draft:e})].find(e=>e.sha===u&&(0,G5.default)(e.folder,r));d?(o=d,s=void 0):i?(l=s.name,s=void 0):(c=URL.createObjectURL(s),e.files[c]={file:s,folder:r,replace:a})}}return o&&(o.unsaved?o.file&&(c=await K5({draft:e,file:o.file,folder:o.folder})):c=hT(o,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!s&&!o&&(c=r),{value:c,credit:i?OE(i,{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`]}):``,oversizedFileName:l}}})),Z5,Q5,$5,Yme,e7,Xme,Zme,Qme,$me=s((()=>{Z(),Yx(),Z5=[`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(`,`),Q5=`https://api.pexels.com/v1`,$5={per_page:80},Yme=()=>{let e=Oh.current.toLowerCase(),[t]=e.split(`-`);return Z5.find(t=>t.toLowerCase()===e)??Z5.find(e=>e.split(`-`)[0]===t)??`en-US`},e7=e=>e.map(({id:e,url:t,alt:n,src:{large2x:r,medium:i},photographer:a})=>({id:String(e),description:t.match(/\/photo\/(?<alt>.+?)-\d+\/$/)?.groups?.alt.replace(/-/g,` `)??n,previewURL:i,downloadURL:r,fileName:`pexels-${a.split(/\s+/).join(`-`).toLowerCase()}-${e}.jpg`,kind:`image`,credit:`<a href="${t}">Photo by ${a} on Pexels</a>`})),Xme=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams($5),r=await fetch(`${Q5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return e7(i)},Zme=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...$5,query:e,locale:Yme()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${Q5}/search?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{photos:a,next_page:o}=await t.json();if(i.push(...a),!o)break;await Jx(50)}return e7(i)},Qme={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:Xme,search:Zme}})),ehe,the,nhe,rhe,ihe,ahe,ohe,she=s((()=>{ehe=`https://picsum.photos/v2/list`,the=100,nhe=10,rhe=3,ihe=e=>e.map(({id:e,width:t,height:n})=>{let r=t>=n,[i,a]=r?[1920,1280]:[1280,1920],[o,s]=r?[480,320]:[320,480];return{id:e,description:``,previewURL:`https://picsum.photos/id/${e}/${o}/${s}.webp`,downloadURL:`https://picsum.photos/id/${e}/${i}/${a}.webp`,fileName:`picsum-${e}.webp`,kind:`image`}}),ahe=async()=>{let e=Array.from({length:nhe},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,rhe),t=await Promise.all(e.map(e=>fetch(`${ehe}?page=${e}&limit=${the}`)));return t.some(e=>!e.ok)?Promise.reject():ihe((await Promise.all(t.map(e=>e.json()))).flat().sort(()=>Math.random()-.5))},ohe={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:ahe}})),che,t7,n7,r7,i7,lhe,uhe,dhe,fhe=s((()=>{Z(),che=`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(`,`),t7=`https://pixabay.com/api`,n7={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},r7=e=>e.map(({id:e,webformatURL:t,previewURL:n,largeImageURL:r,imageWidth:i,imageHeight:a,pageURL:o,tags:s,user:c})=>({id:String(e),description:s,previewURL:t.replace(`_640.`,i>a?`_180.`:`_340.`),downloadURL:r,fileName:n.split(`/`).pop().replace(`_150.`,`_1280.`),kind:`image`,credit:`<a href="${o}">Photo by ${c} on Pixabay`})),i7=()=>{let[e]=Oh.current.toLowerCase().split(`-`);return che.includes(e)?e:`en`},lhe=async({apiKey:e})=>{let t=new URLSearchParams({...n7,key:e,lang:i7(),editors_choice:`true`}),n=await fetch(`${t7}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return r7(r)},uhe=async(e,{apiKey:t})=>{let n=new URLSearchParams({...n7,key:t,lang:i7(),q:e}),r=await fetch(`${t7}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return r7(i)},dhe={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:lhe,search:uhe}})),a7,o7,s7,c7,phe,l7,mhe,hhe,ghe,_he=s((()=>{Z(),Yx(),a7=[`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(`,`),o7=`https://api.unsplash.com`,s7=`utm_source=sveltia-cms&utm_medium=referral`,c7={per_page:30},phe=()=>{let e=Oh.current.toLowerCase(),[t]=e.split(`-`);return a7.find(t=>t.toLowerCase()===e)??a7.find(e=>e.split(`-`)[0]===t)??`en`},l7=e=>e.map(({id:e,description:t,alt_description:n,urls:{regular:r,thumb:i},user:{username:a,name:o}})=>({id:String(e),description:[t,n].filter(Boolean).join(` — `),previewURL:i,downloadURL:r,fileName:`${o.split(/\s+/).join(`-`).toLowerCase()}-${e}-unsplash.jpg`,kind:`image`,credit:`Photo by <a href="https://unsplash.com/@${a}?${s7}">${o}</a> on <a href="https://unsplash.com/?${s7}">Unsplash</a>`})),mhe=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(c7),r=await fetch(`${o7}/photos?${n}`,{headers:t});return r.ok?l7(await r.json()):Promise.reject()},hhe=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...c7,query:e,lang:phe()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${o7}/search/photos?${r}`,{headers:n});if(!t.ok)return Promise.reject();let{results:a,total_pages:o}=await t.json();if(i.push(...a),o===e)break;await Jx(50)}return l7(i)},ghe={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:mhe,search:hhe}})),u7,d7,vhe=s((()=>{tF(),$me(),she(),fhe(),_he(),u7={pexels:Qme,picsum:ohe,pixabay:dhe,unsplash:ghe},d7=({fieldConfig:e}={})=>{let t=eF({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(u7),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}}));function yhe(e,t){let n=Ia();O(t,!0),K(e,khe);let r=()=>j(t.entryDraft,`$entryDraft`,c),i=()=>j($M,`$prefs`,c),a=()=>j(zA,`$isSmallScreen`,c),o=()=>j(AF,`$showContentOverlay`,c),s=()=>j(IF,`$selectAssetsView`,c),[c,l]=hn(),u=e=>{var n=xhe(),r=I(n),i=e=>{var n=bhe(),r=I(n),i=e=>{{let t=M(()=>IF);_6(e,{get currentView(){return z(t)},"aria-controls":`select-assets-grid`})}};G(r,e=>{s()&&e(i)});var o=L(r,2);{let e=M(()=>!z(ie)),n=M(()=>z(C).some(e=>e.file)),r=M(()=>X(`assets_dialog.search_for_${t.kind??`file`}`));wR(o,{dir:`auto`,get flex(){return a()},get debounce(){return z(e)},get disabled(){return z(n)},get"aria-label"(){return z(r)},get value(){return z(v)},set value(e){P(v,e,!0)}})}U(e,n)};G(r,e=>{(z(ie)||z(de)&&z(y)!==`cloudinary`||z(fe)&&z(y)!==`picsum`)&&e(i)});var o=L(r,2),c=e=>{{let t=e=>{zF(e,{name:`cloud_upload`})},n=M(()=>X(`upload`));tI(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(S)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};G(o,e=>{(z(ie)||z(de)&&z(y)!==`cloudinary`)&&e(c)}),U(e,n)},d=J(t,`open`,15,!1),f=J(t,`multiple`,3,!1),p=J(t,`accept`,19,()=>t.kind===`image`?Hw.join(`,`):void 0),m=J(t,`canEnterURL`,3,!0),h=J(t,`onSelect`,3,void 0),g=J(t,`pendingFiles`,31,()=>Cr([])),_=N(``),v=N(``),y=N(`default-global`),b=N(Cr([])),x=N(Cr([])),S=N(void 0),C=N(Cr([])),w=N(void 0),ee=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},T=M(()=>t.kind===`image`?X(`assets_dialog.title.image`):X(`assets_dialog.title.file`)),ne=M(()=>H6(z(v))),re=M(()=>eF({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),ie=M(()=>z(y).startsWith(`default-`)),ae=M(()=>{if(!z(ie))return;let e=z(y).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),oe=M(()=>V5({entry:r()?.originalEntry,folder:z(ae)})),se=M(()=>U5({kind:t.kind,folder:z(ae),folderPath:z(oe),unsavedAssets:z(x)})),ce=M(()=>{let{providers:e=[]}=d7({fieldConfig:t.fieldConfig});return Object.entries(u7).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(re))).sort(ee)}),le=M(()=>z(ce).some(([e,{authType:t}])=>e===z(y)&&(t===`none`||!!i()?.apiKeys?.[z(y)]))),ue=M(()=>[...t.enabledCloudServiceEntries,...z(ce)].sort(ee)),de=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(y))),fe=M(()=>z(ce).map(([e])=>e).includes(z(y))),E=M(()=>a()?NR:jL),pe=async e=>{let t=await mp(e),n=z(ae);if(await qme({hash:t,folder:n,unsavedAssets:z(x)}))return;let r=await q5({file:e,folder:n,targetFolderPath:z(oe)});return z(b).push(r),r},me=async e=>{let t=await R5({files:e,listedAssets:z(se)});t!==void 0&&P(C,(await Promise.all(e.map(e=>pe(e)))).filter(e=>!!e).map(e=>({asset:e,replace:t})),!0)},he=()=>{P(_,``),P(v,``),P(b,[],!0),P(x,[],!0),P(C,[],!0)},ge=()=>{if(!z(C).length)return;let e=jt(z(C)).map(e=>{let{asset:{unsaved:t,file:n,folder:r}={},replace:i}=e;return t?{file:n,folder:r,replace:i}:e});h()?.(e)};ri(()=>{let e=z(re)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(y,`default-${e}`):P(y,z(ue)[0]?.[0],!0)}),ti(()=>{r()?.files,jt(z(b)),(async()=>{P(x,[...r()?.files?await J5({draft:r(),targetFolderPath:z(oe)}):[],...Object.values(z(b))],!0)})()}),ti(()=>{o()||d(!1)}),ti(()=>{z(w)&&g().length&&(z(w).uploadFiles(g()),g([]))});var _e=Ohe(),ve=I(_e);{let e=e=>{var t=H(),n=I(t),r=e=>{u(e)};G(n,e=>{a()||e(r)}),U(e,t)},r=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{showServiceLink:e,serviceLabel:t,serviceURL:n}=u7[z(y)]??{};return{showServiceLink:e,serviceLabel:t,serviceURL:n}});var n=H(),r=I(n),i=e=>{var n=She(),r=F(n,!0);D(n),R(e=>{q(n,`href`,z(t).serviceURL),W(r,e)},[()=>X(`prefs.media.stock_photos.credit`,{values:{service:z(t).serviceLabel}})]),U(e,n)};G(r,e=>{z(t).showServiceLink&&e(i)}),U(e,n)};G(n,e=>{z(le)&&e(r)}),U(e,t)},i=M(()=>X(`insert`)),o=M(()=>!z(C).length);$I(ve,{get title(){return z(T)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(o)},keepContent:!0,focusInput:!1,onOk:ge,onClose:()=>{he()},get open(){return d()},set open(e){d(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=Dhe(),o=F(i),s=F(o);{let e=M(()=>X(`assets_dialog.locations`));Oo(s,()=>z(E),(r,i)=>{i(r,{class:`tabs`,get"aria-label"(){return z(e)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:e=>{P(y,e.detail.name,!0),P(C,[],!0)},children:(e,n)=>{var r=whe(),i=I(r),a=e=>{{let n=M(()=>X(`asset_location.repository`));FL(e,{get label(){return z(n)},children:(e,n)=>{var r=H();mo(I(r),17,()=>Object.entries(t.assetLibraryFolderMap),([e,{enabled:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].enabled;var a=H(),o=I(a),s=e=>{let t=M(()=>`default-${r()}`);{let n=M(()=>X(`assets_dialog.folder.${r()}`)),i=M(()=>z(y)===z(t));RL(e,{get name(){return z(t)},get label(){return z(n)},get selected(){return z(i)}})}};G(o,e=>{i()&&e(s)}),U(e,a)}),U(e,r)},$$slots:{default:!0}})}};G(i,e=>{z(re)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`asset_location.external`));FL(e,{get label(){return z(n)},children:(e,n)=>{var r=Che(),i=I(r);mo(i,17,()=>t.enabledCloudServiceEntries,([,{serviceId:e,serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(y)===r());RL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}});var a=L(i,2),o=e=>{{let t=M(()=>X(`assets_dialog.enter_url`)),n=M(()=>z(y)===`enter-url`);RL(e,{name:`enter-url`,get label(){return z(t)},get selected(){return z(n)}})}};G(a,e=>{m()&&e(o)}),U(e,r)},$$slots:{default:!0}})}},c=M(()=>m()||!!Object.keys(t.enabledCloudServiceEntries).length);G(o,e=>{z(c)&&e(s)});var l=L(o,2),u=e=>{{let t=M(()=>X(`asset_location.stock_photos`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(ce),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(y)===r());RL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),U(e,n)},$$slots:{default:!0}})}};G(l,e=>{z(ce).length&&e(u)}),U(e,r)},$$slots:{default:!0}})})}var c=L(s,2),l=e=>{var t=The();u(F(t)),D(t),U(e,t)};G(c,e=>{a()&&e(l)}),D(o);var h=L(o,2),g=F(h),v=e=>{Ume(e,{get accept(){return p()},get multiple(){return f()},get assets(){return z(se)},get searchTerms(){return z(ne)},get basePath(){return z(ae).internalPath},onDrop:({files:e})=>{me(e)},get selectedResources(){return z(C)},set selectedResources(e){P(C,e,!0)}})};G(g,e=>{z(ie)&&z(ae)&&e(v)});var b=L(g,2),x=e=>{P$(e,{children:(e,n)=>{var r=Ehe(),i=I(r),a=F(i,!0);D(i),lL(L(i,2),{dir:`ltr`,flex:!0,oninput:()=>{let e=z(_).trim();P(C,e?[{url:e}]:[],!0)},get value(){return z(_)},set value(e){P(_,e,!0)}}),R(e=>W(a,e),[()=>t.kind===`image`?X(`assets_dialog.enter_image_url`):X(`assets_dialog.enter_file_url`)]),U(e,r)},$$slots:{default:!0}})};G(b,e=>{m()&&z(y)===`enter-url`&&e(x)}),mo(L(b,2),17,()=>z(ue),([e,t])=>e,(e,n)=>{var r=M(()=>te(z(n),2));let i=()=>z(r)[0],a=()=>z(r)[1];var o=H(),s=I(o),c=e=>{{let n=M(()=>z(y)!==`cloudinary`);Qpe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return f()},get hidden(){return z(n)},onSelect:e=>{d()&&(P(C,e,!0),ge(),d(!1))}})}},l=e=>{Us(xme(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return f()},get searchTerms(){return z(ne)},get serviceProps(){return a()},gridId:`select-assets-grid`,get selectedResources(){return z(C)},set selectedResources(e){P(C,e,!0)}}),e=>P(w,e,!0),()=>z(w))};G(s,e=>{i()===`cloudinary`?e(c):z(y)===i()&&e(l,1)}),U(e,o)}),D(h),D(i),R(()=>q(h,`id`,`${n}-content-pane`)),U(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}Us(_L(L(ve,2),{get accept(){return p()},get multiple(){return f()},onSelect:({files:e})=>{z(de)?z(w)?.uploadFiles(e):me(e)}}),e=>P(S,e,!0),()=>z(S)),U(e,_e),k(),l()}var bhe,xhe,She,Che,whe,The,Ehe,Dhe,Ohe,khe,Ahe=s((()=>{Q(),Y(),Z(),B$(),hp(),nme(),Pme(),Wme(),x6(),RF(),z5(),W5(),X5(),tF(),vhe(),G6(),WA(),eN(),Ww(),bhe=V(`<!> <!>`,1),xhe=V(`<!> <!>`,1),She=V(`<a class="service-link svelte-5b1zbe"> </a>`),Che=V(`<!> <!>`,1),whe=V(`<!> <!> <!>`,1),The=V(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),Ehe=V(`<div role="none"> </div> <!>`,1),Dhe=V(`<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>`),Ohe=V(`<!> <!>`,1),khe={hash:`svelte-5b1zbe`,code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;max-height:800px;--tile-padding: 4px;
966
+
967
+ @media (width < 768px) {flex-direction:column;overflow:hidden;height:72dvh;
968
+ }.nav:where(.svelte-5b1zbe) {display:flex;gap:4px;
969
+
970
+ @media (width < 768px) {flex-direction:column;
971
+ }}.listbox {flex:none;background-color:transparent;}.content-pane:where(.svelte-5b1zbe) {overflow:auto;flex:auto;}}.service-link.svelte-5b1zbe {font-size:var(--sui-font-size-small);}.filter-tools.svelte-5b1zbe {display:flex;gap:8px;}`}}));function jhe(e,t){O(t,!0);{let t=e=>{var t=Mhe(),n=I(t);UI(n,{flex:!0});var r=L(n,2);tI(r,{variant:`primary`,onclick:()=>L5.resolve(!0),children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`replace`)]),U(e,n)},$$slots:{default:!0}});var i=L(r,2);tI(i,{variant:`primary`,onclick:()=>L5.resolve(!1),children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keep_both`)]),U(e,n)},$$slots:{default:!0}}),tI(L(i,2),{variant:`secondary`,onclick:()=>L5.resolve(void 0),children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`cancel`)]),U(e,n)},$$slots:{default:!0}}),U(e,t)},n=M(()=>X(`file_name_conflict_resolution`));cL(e,{get title(){return z(n)},onCancel:()=>L5.resolve(void 0),get open(){return L5.showDialog},set open(e){L5.showDialog=e},footer:t,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`file_name_conflict_confirmation_with_name`,{values:{count:L5.count,name:L5.name}})]),U(e,n)},$$slots:{footer:!0,default:!0}})}k()}var Mhe,Nhe=s((()=>{Q(),Y(),Z(),B$(),z5(),Mhe=V(`<!> <!> <!> <!>`,1)}));function Phe(e,t){O(t,!0),K(e,zhe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`readonly`,3,!1),o=J(t,`invalid`,3,!1),s=J(t,`required`,3,!1),c=J(t,`collectionName`,3,``),l=J(t,`fileName`,3,void 0),u=J(t,`typedKeyPath`,3,void 0),d=J(t,`entry`,3,void 0),f=N(void 0),p=N(void 0),m=N(void 0),h=N(void 0),g=M(()=>t.fieldConfig.widget),_=M(()=>z(g)===`image`),v=M(()=>{if(!t.value)return``;if(z(p)){let{publicPath:e,entryRelative:r,hasTemplateTags:i}=n()?.files[t.value]?.folder??{};return XC([r||i?``:e||``,decodeURI(z(p).name.normalize())])}if(!t.value.startsWith(`blob:`)){let e=decodeURI(t.value);if(bp(e)){let t=new URL(e);if(t.search)return t.search=``,`${t}…`}return e}return``}),y=async()=>{if(t.value?.startsWith(`blob:`)&&n()&&P(p,n().files[t.value]?.file,!0),t.value){let e={value:t.value,entry:d(),collectionName:c(),fileName:l(),fieldConfig:t.fieldConfig,typedKeyPath:u()};z(_)&&/^https?:/.test(t.value)?(P(f,void 0),P(m,`image`),P(h,t.value,!0)):t.value.startsWith(`blob:`)||(P(f,vF({...e}),!0),P(m,void 0),P(h,void 0)),!z(f)&&!z(h)&&(P(m,await DS(t.value),!0),P(h,z(m)?await _T({...e,thumbnail:!0}):void 0,!0))}else P(f,void 0),P(p,void 0),P(m,void 0),P(h,void 0)};ti(()=>{t.value,B(()=>{y()})});var b=Rhe(),x=F(b),S=e=>{var n=Fhe(),r=F(n);{let e=e=>{zF(e,{name:`arrow_upward`})},n=M(()=>!t.onMoveUp),i=M(()=>X(`move_up`));tI(r,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(i)},onclick:()=>{t.onMoveUp?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{zF(e,{name:`arrow_downward`})},n=M(()=>!t.onMoveDown),r=M(()=>X(`move_down`));tI(i,{size:`small`,iconic:!0,get disabled(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{t.onMoveDown?.()},startIcon:e,$$slots:{startIcon:!0}})}D(n),U(e,n)};G(x,e=>{(t.onMoveUp||t.onMoveDown)&&!a()&&e(S)});var C=L(x,2),w=e=>{n2(e,{get kind(){return z(m)},get src(){return z(h)},variant:`tile`,checkerboard:!0})},ee=e=>{n2(e,{get kind(){return z(f).kind},get asset(){return z(f)},variant:`tile`,checkerboard:!0})},T=e=>{var t=Ihe();zF(F(t),{name:`draft`}),D(t),U(e,t)};G(C,e=>{z(m)&&z(h)?e(w):z(f)?e(ee,1):e(T,-1)});var te=L(C,2),ne=F(te),re=e=>{var n=Lhe(),r=F(n,!0);D(n),R(()=>{q(n,`id`,`${t.fieldId??``}-value`),q(n,`aria-readonly`,a()),q(n,`aria-invalid`,o()),q(n,`aria-required`,s()),q(n,`aria-labelledby`,`${t.fieldId??``}-label`),q(n,`aria-errormessage`,`${t.fieldId??``}-error`),W(r,z(v))}),U(e,n)};G(ne,e=>{typeof t.value==`string`&&e(re)});var ie=L(ne,2),ae=F(ie),oe=e=>{{let n=M(()=>X(`replace`)),r=M(()=>X(`replace_${z(g)}`));tI(e,{get disabled(){return a()},variant:`tertiary`,size:`small`,get label(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{t.onReplace()}})}};G(ae,e=>{t.onReplace&&e(oe)});var se=L(ae,2),ce=e=>{{let n=M(()=>X(`remove`)),r=M(()=>X(`remove_${z(g)}`));tI(e,{get disabled(){return a()},variant:`tertiary`,size:`small`,get label(){return z(n)},get"aria-label"(){return z(r)},get"aria-controls"(){return`${t.fieldId??``}-value`},onclick:()=>{t.onRemove()}})}};G(se,e=>{t.onRemove&&e(ce)}),D(ie),D(te),D(b),U(e,b),k(),i()}var Fhe,Ihe,Lhe,Rhe,zhe,Bhe=s((()=>{Q(),Y(),Z(),B$(),Sp(),oc(),l2(),SF(),vT(),AS(),W4(),ew(),Fhe=V(`<div role="toolbar" class="reorder-controls svelte-1yfgkx5"><!> <!></div>`),Ihe=V(`<span role="none" class="preview no-thumbnail"><!></span>`),Lhe=V(`<div role="textbox" tabindex="0" class="filename svelte-1yfgkx5"> </div>`),Rhe=V(`<div role="none" class="filled svelte-1yfgkx5"><!> <!> <div role="none" class="svelte-1yfgkx5"><!> <div role="none"><!> <!></div></div></div>`),zhe={hash:`svelte-1yfgkx5`,code:`.filled.svelte-1yfgkx5 {display:flex !important;align-items:center;gap:12px;margin:var(--sui-focus-ring-width);.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;&.no-thumbnail {display:flex;align-items:center;justify-content:center;background-color:var(--sui-secondary-background-color);.icon {font-size:64px;}}}.sui.button.tertiary.small {margin:var(--sui-focus-ring-width);}& > div:where(.svelte-1yfgkx5) {flex:auto;overflow:hidden;.filename:where(.svelte-1yfgkx5) {margin:var(--sui-focus-ring-width);padding:4px;word-break:break-all;&:empty {margin:0;padding:0;}}}}.reorder-controls.svelte-1yfgkx5 {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);button {padding:0;height:16px;}}`}}));function Vhe(e,t){O(t,!0),K(e,Khe);let n=()=>j(HA,`$hasMouse`,r),[r,i]=hn(),a=e=>{var n=Hhe(),r=F(n);{let e=M(()=>X(`browse`));tI(r,{get label(){return z(e)},variant:`tertiary`,size:`small`,get disabled(){return z(u)},onclick:e=>{e.stopPropagation(),s(!1),o(!0)}})}var i=L(r,2),a=e=>{{let n=M(()=>X(t.isImageField?`paste`:`paste_image`));tI(e,{get label(){return z(n)},variant:`tertiary`,size:`small`,get disabled(){return z(u)},onclick:e=>{e.stopPropagation(),d()}})}};G(i,e=>{c()&&e(a)}),D(n),U(e,n)},o=J(t,`showSelectAssetsDialog`,15,!1),s=J(t,`replaceMode`,15,!1),c=J(t,`onFilePaste`,3,void 0),l=Cr({show:!1,message:``}),u=M(()=>t.readonly||t.processing),d=async()=>{if(!(z(u)||!c()))try{let e=await navigator.clipboard.read(),t,n=e.find(e=>e.types.some(e=>{let n=e.startsWith(`image/`);return n&&(t=e),n}));if(n&&t){let e=await n.getType(t),r=t.split(`/`)[1].replace(`+xml`,``),i=new File([e],`pasted-image-${Date.now()}.${r}`,{type:t});c()(i);return}Object.assign(l,{message:X(`no_image_in_clipboard`),show:!0})}catch{Object.assign(l,{message:X(`clipboard_access_denied`),show:!0})}};var f=Ghe(),p=I(f);let m;var h=F(p);zF(h,{name:`cloud_upload`});var g=L(h,2),_=F(g),v=e=>{var n=Uhe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`processing_files`,{values:{count:t.multiple?2:1}})]),U(e,n)},y=e=>{var n=Whe(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`click_to_browse`)]),U(e,t)},o=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`drop_image_files_or`,{values:{count:t.multiple?2:1}})]),U(e,n)},s=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`drop_files_or`,{values:{count:t.multiple?2:1}})]),U(e,n)};G(r,e=>{t.allowDrop?t.isImageField?e(o,1):e(s,-1):e(i)}),a(L(r,2)),U(e,n)},b=e=>{a(e)};G(_,e=>{t.processing?e(v):n()?e(y,1):e(b,-1)}),D(g),D(p),nz(L(p,2),{get show(){return l.show},set show(e){l.show=e},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,l.message)),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(()=>{m=ss(p,1,`empty svelte-1jvz1op`,null,m,{invalid:t.invalid,processing:t.processing}),q(p,`aria-disabled`,z(u)||void 0),q(p,`tabindex`,z(u)?-1:0)}),Sa(`click`,p,()=>{n()&&!z(u)&&(s(!1),o(!0))}),Sa(`keydown`,p,e=>{!z(u)&&WF(e,`Accel+V`)&&(e.preventDefault(),d())}),U(e,f),k(),i()}var Hhe,Uhe,Whe,Ghe,Khe,qhe=s((()=>{Q(),Y(),Z(),B$(),KF(),WA(),Hhe=V(`<div role="none" class="buttons"><!> <!></div>`),Uhe=V(`<div role="status"> </div>`),Whe=V(`<!> <!>`,1),Ghe=V(`<div role="button"><!> <div role="none" class="label svelte-1jvz1op"><!></div></div> <!>`,1),Khe={hash:`svelte-1jvz1op`,code:`.empty.svelte-1jvz1op {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:120px;margin:var(--sui-focus-ring-width);border-width:1px;border-style:solid;border-color:var(--sui-button-tertiary-border-color, var(--sui-button-border-color));border-radius:var(--sui-button-medium-border-radius);color:var(--sui-button-tertiary-foreground-color, var(--sui-highlight-foreground-color));background-color:var(
972
+ --sui-button-tertiary-background-color,
973
+ var(--sui-button-background-color)
974
+ );font-family:var(--sui-control-font-family);font-size:var(--sui-font-size-small);cursor:pointer;transition:all 200ms;&:focus-visible {z-index:1;outline:var(--sui-focus-ring-width) solid var(--sui-focus-ring-color);outline-offset:var(--sui-focus-ring-offset);}&:not([aria-disabled='true']):is(:where(.svelte-1jvz1op):hover, :where(.svelte-1jvz1op):focus-visible) {background-color:var(
975
+ --sui-button-tertiary-background-color-focus,
976
+ var(--sui-hover-background-color)
977
+ );}&:not([aria-disabled='true']):active {background-color:var(
978
+ --sui-button-tertiary-background-color-active,
979
+ var(--sui-active-background-color)
980
+ );}.icon {color:var(--sui-secondary-foreground-color);font-size:48px;}&[aria-disabled='true'] {pointer-events:none !important;* {opacity:0.5;}}
981
+
982
+ @media (pointer: coarse) {cursor:default;&:active,
983
+ &:focus {
984
+ /* Reset the style because the element is non-interactive on touch devices */background-color:var(--sui-button-background-color) !important;}
985
+ }&.invalid {border-color:var(--sui-error-border-color);}}.label.svelte-1jvz1op {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:0 4px;white-space:nowrap;.button {margin-block:0;}}`},Ca([`click`,`keydown`])}));function Jhe(e,t){O(t,!0),K(e,Qhe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=e=>{Vhe(e,{get allowDrop(){return z(Se)},get invalid(){return f()},get readonly(){return d()},get processing(){return z(b)},get isImageField(){return z(ce)},get multiple(){return z(he)},onFilePaste:e=>{we([{file:e,folder:z(E)}])},get showSelectAssetsDialog(){return z(p)},set showSelectAssetsDialog(e){P(p,e,!0)},get replaceMode(){return z(m)},set replaceMode(e){P(m,e,!0)}})},o=e=>{var n=H(),r=I(n),i=e=>{var n=H(),r=I(n),i=e=>{var n=H(),r=I(n),i=e=>{var n=Yhe(),r=I(n);mo(r,23,l,(e,t)=>`${e}|${t}`,(e,n,r)=>{{let i=M(()=>z(r)>0?()=>De(z(r)-1):void 0),a=M(()=>z(r)<l().length-1?()=>De(z(r)):void 0);Phe(e,Xs(()=>z(ve),{get value(){return z(n)},get fieldId(){return`${t.fieldId??``}-${z(r)??``}`},onReplace:()=>{P(m,!0),P(h,z(r),!0),P(p,!0)},onRemove:()=>Ee(z(r)),get onMoveUp(){return z(i)},get onMoveDown(){return z(a)}}))}}),D(r);var i=L(r,2),o=e=>{a(e)};G(i,e=>{l().length<z(ee)&&e(o)}),U(e,n)},o=M(()=>Array.isArray(l()));G(r,e=>{z(o)&&e(i)}),U(e,n)},o=e=>{Phe(e,Xs(()=>z(ve),{get value(){return l()},get fieldId(){return t.fieldId},onReplace:()=>{P(m,!0),P(p,!0)},onRemove:Ce}))};G(r,e=>{z(he)?e(i):typeof l()==`string`&&l()&&e(o,1)}),U(e,n)},o=e=>{a(e)};G(r,e=>{l()?.length&&!z(b)?e(i):e(o,-1)}),U(e,n)},{fieldContext:s=void 0}=Rt(`field-editor`)??{},c=s===`rich-text-editor-component`,l=J(t,`currentValue`,15),u=J(t,`required`,3,!0),d=J(t,`readonly`,3,!1),f=J(t,`invalid`,3,!1),p=N(!1),m=N(!1),h=N(-1),g=N(!1),_=N(!1),v=N(``),y=N(void 0),b=N(!1),x=N(Cr([])),S=N(Cr([])),C=N(Cr([])),w=M(()=>t.fieldConfig.widget),ee=M(()=>T(t.fieldConfig.max,1/0)),ne=M(()=>t.fieldConfig.accept),re=M(()=>T(t.fieldConfig.choose_url,!0)),ie=M(()=>n()?.originalEntry),ae=M(()=>n()?.collectionName??``),oe=M(()=>n()?.fileName),se=M(()=>n()?.isIndexFile??!1),ce=M(()=>z(w)===`image`),le=M(()=>z(ce)?`image`:void 0),ue=M(()=>nF({fieldConfig:t.fieldConfig})),de=M(()=>z(ue).config),fe=M(()=>B5({collectionName:z(ae),fileName:z(oe),typedKeyPath:t.typedKeyPath,isIndexFile:z(se)})),E=M(()=>Object.values(z(fe)).find(({enabled:e})=>e)?.folder),pe=M(()=>V5({entry:n()?.originalEntry,folder:z(E)})),me=M(()=>U5({kind:z(le),folder:z(E),folderPath:z(pe),unsavedAssets:z(C)})),he=M(()=>rA(t.fieldConfig)&&!c),ge=M(()=>z(de).max_file_size),_e=M(()=>!u()&&(!s||![`rich-text-editor-component`,`single-subfield-list-field`].includes(s))),ve=M(()=>({fieldConfig:t.fieldConfig,readonly:d(),invalid:f(),required:u(),showRemoveButton:z(_e),collectionName:z(ae),fileName:z(oe),typedKeyPath:t.typedKeyPath,entry:z(ie)})),ye=M(()=>Object.entries(dw).filter(([,{isEnabled:e}])=>e?.(t.fieldConfig)??!0)),be=M(()=>z(ue).enabled&&!!z(E)),xe=M(()=>+!!z(be)+z(ye).length),Se=M(()=>z(xe)===1),Ce=()=>{z(y)?.reset(),z(he)||(l(``),Tn())},we=async e=>{if(!n())return;let r=z(he)?void 0:l();Ce(),P(b,!0),P(x,[],!0);let i=await Promise.all(e.map(e=>Y5({draft:n(),resource:e,libraryConfig:z(de)}))),a=[],o=!1,s=z(he)?Object.keys(n().currentValues[t.locale]).filter(e=>e.startsWith(`${t.keyPath}.`)).map(e=>Number(e.replace(`${t.keyPath}.`,``))).pop()??-1:-1;i.forEach(({value:e,credit:r,oversizedFileName:i},u)=>{if(e)if(o=!0,z(he)){let r=z(m)?z(h):s+1+u;_n(z4,B(n).currentValues[t.locale][`${t.keyPath}.${r}`]=e,B(n))}else l(c?e.replaceAll(` `,`%20`):e);r&&a.push(r),i&&z(x).push(i)}),!o&&!z(he)&&r!==void 0&&l(r),a.length?(P(v,a.join(`
986
+ `),!0),P(_,!0)):P(v,``),z(x).length&&P(g,!0),P(b,!1)},Te=async({files:e})=>{if(e.length)if(z(be)){let t=await R5({files:e,listedAssets:z(me)});if(t===void 0)return;we(e.map(e=>({file:e,folder:z(E),replace:t})))}else P(S,e,!0),P(p,!0)},Ee=e=>{if(!n())return;let r=jt(n().currentValues[t.locale]),i=[];for(let a=0;;a+=1){let o=`${t.keyPath}.${a}`,s=`${t.keyPath}.${a+1}`;if(a<e)i.push(r[o]);else if(s in r)i.push(r[s]),_n(z4,B(n).currentValues[t.locale][o]=r[s],B(n));else{_n(z4,B(n).currentValues[t.locale][o]=null,B(n)),delete n().currentValues[t.locale][o];break}}l(Object.values(i))},De=e=>{n()&&(r=>{var i=te(r,2);_n(z4,B(n).currentValues[t.locale][`${t.keyPath}.${e}`]=i[0],B(n)),_n(z4,B(n).currentValues[t.locale][`${t.keyPath}.${e+1}`]=i[1],B(n))})([n().currentValues[t.locale][`${t.keyPath}.${e+1}`],n().currentValues[t.locale][`${t.keyPath}.${e}`]])};ti(()=>{(async()=>{n()?.files?P(C,await J5({draft:n(),targetFolderPath:z(pe)}),!0):P(C,[],!0)})()});var Oe=Zhe(),ke=I(Oe),Ae=e=>{{let t=M(()=>z(ne)??(z(ce)?Hw.join(`,`):void 0));Us(T3(e,{get multiple(){return z(he)},get disabled(){return d()},get accept(){return z(t)},onDrop:Te,children:(e,t)=>{o(e)},$$slots:{default:!0}}),e=>P(y,e,!0),()=>z(y))}},je=e=>{o(e)};G(ke,e=>{z(Se)?e(Ae):e(je,-1)});var Me=L(ke,2);{let e=M(()=>z(m)?!1:z(he));yhe(Me,{get kind(){return z(le)},get multiple(){return z(e)},get accept(){return z(ne)},get canEnterURL(){return z(re)},get entryDraft(){return z4},get fieldConfig(){return t.fieldConfig},get assetLibraryFolderMap(){return z(fe)},get enabledCloudServiceEntries(){return z(ye)},onSelect:we,get open(){return z(p)},set open(e){P(p,e,!0)},get pendingFiles(){return z(S)},set pendingFiles(e){P(S,e,!0)}})}var Ne=L(Me,2);jhe(Ne,{});var Pe=L(Ne,2);vme(Pe,{get oversizedFileNames(){return z(x)},get maxSize(){return z(ge)},get open(){return z(g)},set open(e){P(g,e,!0)}});var Fe=L(Pe,2);{let e=M(()=>X(`assets_dialog.photo_credit.title`)),t=M(()=>X(`copy`));cL(Fe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:()=>{navigator.clipboard.writeText(z(v))},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{var n=Xhe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);l$(F(a),{dir:`auto`,flex:!0,readonly:!0,get value(){return z(v)},onclick:e=>{e.target.focus(),e.target.select()}}),D(a),R(e=>W(i,e),[()=>X(`assets_dialog.photo_credit.description`)]),U(e,n)},$$slots:{default:!0}})}U(e,Oe),k(),i()}var Yhe,Xhe,Zhe,Qhe,$he=s((()=>{Q(),Y(),Z(),B$(),oc(),Ahe(),Nhe(),M3(),bme(),Bhe(),qhe(),W4(),z5(),W5(),X5(),pw(),rF(),iA(),Ww(),Yhe=V(`<div role="none" class="item-list svelte-17jic1t"></div> <!>`,1),Xhe=V(`<div role="none"> </div> <div role="none"><!></div>`,1),Zhe=V(`<!> <!> <!> <!> <!>`,1),Qhe={hash:`svelte-17jic1t`,code:`.item-list.svelte-17jic1t {display:flex;flex-direction:column;gap:4px;}`}}));function ege(e,t){O(t,!0),K(e,rge);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`typedKeyPath`,3,void 0),o=N(void 0),s=N(void 0),c=M(()=>t.fieldConfig.widget),l=M(()=>z(c)===`image`),u=M(()=>n()?.originalEntry),d=M(()=>n()?.collectionName??``),f=M(()=>n()?.fileName);ti(()=>{t.value,B(async()=>{P(o,t.value?z(l)?`image`:await DS(t.value):void 0,!0),P(s,z(o)?await _T({value:t.value,entry:z(u),collectionName:z(d),fileName:z(f),fieldConfig:t.fieldConfig,typedKeyPath:a()}):void 0,!0)})});var p=H(),m=I(p),h=e=>{var t=tge(),n=F(t);{let e=M(()=>[`audio`,`video`].includes(z(o)));n2(n,{get kind(){return z(o)},get src(){return z(s)},get controls(){return z(e)}})}D(t),U(e,t)},g=e=>{var n=nge(),r=F(n,!0);D(n),R(()=>W(r,t.value)),U(e,n)},_=M(()=>t.value.trim()&&!t.value.startsWith(`blob:`));G(m,e=>{z(o)&&z(s)?e(h):z(_)&&e(g,1)}),U(e,p),k(),i()}var tge,nge,rge,ige=s((()=>{Q(),Y(),oc(),l2(),vT(),AS(),W4(),tge=V(`<p class="svelte-28vcoi"><!></p>`),nge=V(`<p class="svelte-28vcoi"> </p>`),rge={hash:`svelte-28vcoi`,code:`
987
+ /* Remove the padding to make the image full-width on small screens */
988
+ @media (width < 768px) {[role='document'] section > p.svelte-28vcoi:has(img) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
989
+ }`}}));function age(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=H(),r=I(n),i=e=>{var n=H();mo(I(n),19,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,n)=>{ege(e,{get value(){return z(n)},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})}),U(e,n)},a=M(()=>Array.isArray(t.currentValue));G(r,e=>{z(a)&&e(i)}),U(e,n)},a=M(()=>rA(t.fieldConfig)),o=e=>{ege(e,{get value(){return t.currentValue},get fieldConfig(){return t.fieldConfig},get typedKeyPath(){return t.typedKeyPath}})};G(r,e=>{z(a)?e(i):typeof t.currentValue==`string`&&t.currentValue&&e(o,1)}),U(e,n),k()}var oge=s((()=>{Q(),Y(),ige(),iA()})),f7,sge,cge,p7=s((()=>{rp(),W4(),f7=({entryDraft:e,valueStoreKey:t=`currentValues`,keyPath:n,locale:r})=>Object.entries(A(e)[t][r]??{}).filter(([e])=>e.startsWith(`${n}.`)).map(([e,t])=>[e.replace(`${n}.`,``),t]),sge=({pairs:e,edited:t})=>e.map(([e],n,r)=>{if(!e.trim()&&t[n])return`empty`;if(e.trim()&&r.findIndex(t=>t[0]===e)!==n)return`duplicate`}),cge=({entryDraft:e,keyPath:t,locale:n,fieldConfig:r,pairs:i})=>{let{i18n:a}=r;B4.set(!1),e.update(e=>(e&&Object.entries(e.currentValues).forEach(([e,r])=>{(e===n||a===`duplicate`)&&(Object.entries(r).forEach(([e])=>{e.startsWith(`${t}.`)&&delete r[e]}),i.forEach(([e,n])=>{r[`${t}.${e}`]=n}))}),e)),B4.set(!0)}}));function lge(e,t){O(t,!0),K(e,_ge);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`readonly`,3,!1),s=M(()=>T(t.fieldConfig.i18n,!1)),c=M(()=>t.fieldConfig.key_label),l=M(()=>t.fieldConfig.value_label),u=M(()=>T(t.fieldConfig.max,1/0)),d=M(()=>z(c)||X(`key_value.key`)),f=M(()=>z(l)||X(`key_value.value`)),p=N(Cr([])),m=N(Cr([])),h=0,g=Cr([]),_=N(Cr([])),v=N(Cr([])),y=()=>{if(!n())return;let e=f7({entryDraft:z4,valueStoreKey:a,keyPath:t.keyPath,locale:t.locale});(0,uge.default)(z(p),e)||(P(p,[...e],!0),P(m,e.map((e,t)=>t<z(m).length?z(m)[t]:(h+=1,h-1)),!0),P(_,e.map(()=>!1),!0)),!z(p).length&&n()[a][t.locale][t.keyPath]!==null&&_n(z4,B(n)[a][t.locale][t.keyPath]=null,B(n))},b=()=>{n()&&(Object.entries(n()[a]).forEach(([e,n])=>{(e===t.locale||z(s)===`duplicate`)&&delete n[t.keyPath]}),z(p).push([``,``]),z(m).push(h),h+=1,z(_).push(!1),window.requestAnimationFrame(()=>{g[z(p).length-1].querySelector(`input`).focus()}))},x=e=>{z(p).splice(e,1),z(m).splice(e,1),z(_).splice(e,1)},S=()=>{P(v,sge({pairs:z(p),edited:z(_)}),!0),!(!n()||z(v).some(Boolean)||z(p).some(([e])=>!e.trim()))&&cge({entryDraft:z4,fieldConfig:t.fieldConfig,keyPath:t.keyPath,locale:t.locale,pairs:z(p)})};ti(()=>{jt(n()?.[a][t.locale]),B(()=>{y()})}),ti(()=>{jt(z(p)),B(()=>{S()})});var C=gge(),w=I(C),ee=e=>{var n=mge(),r=F(n),i=F(r),a=F(i),s=F(a,!0);D(a);var c=L(a),l=F(c,!0);D(c);var h=L(c),y=e=>{var t=dge();R(e=>q(t,`aria-label`,e),[()=>X(`key_value.action`)]),U(e,t)};G(h,e=>{o()||e(y)}),D(i),D(r);var S=L(r);mo(S,23,()=>z(p),(e,t)=>z(m)[t],(e,n,r)=>{var i=pge(),a=F(i),s=F(a);{let e=M(()=>!!z(v)[z(r)]),i=M(()=>z(v)[z(r)]?`${t.fieldId}-kv-error`:void 0);lL(s,{dir:`ltr`,get readonly(){return o()},flex:!0,get invalid(){return z(e)},get"aria-label"(){return z(d)},get"aria-errormessage"(){return z(i)},oninput:()=>{z(_)[z(r)]=!0},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&g[z(r)].querySelector(`td.value input`).focus()},get value(){return z(n)[0]},set value(e){z(n)[0]=e}})}D(a);var c=L(a),l=F(c);{let e=M(()=>ib(t.locale));lL(l,{get dir(){return z(e)},get readonly(){return o()},flex:!0,get"aria-label"(){return z(f)},onkeydown:e=>{e.key===`Enter`&&!e.isComposing&&(z(r)<z(p).length-1?g[z(r)+1].querySelector(`input`).focus():z(p).length<z(u)&&b())},get value(){return z(n)[1]},set value(e){z(n)[1]=e}})}D(c);var m=L(c),h=e=>{var t=fge(),n=F(t);{let e=e=>{zF(e,{name:`close`})},t=M(()=>X(`remove`));tI(n,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{x(z(r))},startIcon:e,$$slots:{startIcon:!0}})}D(t),U(e,t)};G(m,e=>{o()||e(h)}),D(i),Us(i,(e,t)=>g[t]=e,e=>g?.[e],()=>[z(r)]),U(e,i)}),D(S),D(n),R(()=>{W(s,z(d)),W(l,z(f))}),U(e,n)};G(w,e=>{z(p).length&&e(ee)});var te=L(w,2),ne=e=>{N5(e,{get id(){return`${t.fieldId??``}-kv-error`},children:(e,t)=>{var n=hge(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`key_value.empty_key`)]),U(e,t)},a=M(()=>z(v).includes(`empty`));G(r,e=>{z(a)&&e(i)});var o=L(r,2),s=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`key_value.duplicate_key`)]),U(e,t)},c=M(()=>z(v).includes(`duplicate`));G(o,e=>{z(c)&&e(s)}),U(e,n)},$$slots:{default:!0}})},re=M(()=>z(v).some(Boolean));G(te,e=>{z(re)&&e(ne)});var ie=L(te,2),ae=F(ie);{let e=M(()=>X(`add`)),t=M(()=>o()||z(p).length>=z(u));tI(ae,{get label(){return z(e)},variant:`tertiary`,get disabled(){return z(t)},onclick:()=>{b()}})}D(ie),U(e,C),k(),i()}var uge,dge,fge,pge,mge,hge,gge,_ge,vge=s((()=>{Q(),Y(),Z(),B$(),uge=u(YM()),oc(),P5(),W4(),p7(),ub(),dge=V(`<th scope="col" class="action svelte-u0prcz"></th>`),fge=V(`<td class="action svelte-u0prcz"><!></td>`),pge=V(`<tr><td class="key svelte-u0prcz"><!></td><td class="value svelte-u0prcz"><!></td><!></tr>`),mge=V(`<table class="svelte-u0prcz"><thead><tr><th scope="col" class="key svelte-u0prcz"> </th><th scope="col" class="value svelte-u0prcz"> </th><!></tr></thead><tbody></tbody></table>`),hge=V(`<!> <!>`,1),gge=V(`<!> <!> <div role="none"><!></div>`,1),_ge={hash:`svelte-u0prcz`,code:`table.svelte-u0prcz {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-u0prcz,
990
+ td.svelte-u0prcz {border-width:0;}th.svelte-u0prcz {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;&.key,
991
+ &.value {width:50%;}}td.svelte-u0prcz {padding:0;vertical-align:middle;}`}}));function yge(e,t){O(t,!0),K(e,Cge);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.key_label),o=M(()=>t.fieldConfig.value_label),s=M(()=>z(a)||X(`key_value.key`)),c=M(()=>z(o)||X(`key_value.value`)),l=N(Cr([])),u=()=>{let e=f7({entryDraft:z4,keyPath:t.keyPath,locale:t.locale});(0,bge.default)(z(l),e)||P(l,e,!0)};ti(()=>{n()&&(jt(n().currentValues[t.locale]),B(()=>{u()}))});var d=H(),f=I(d),p=e=>{var t=Sge(),n=F(t),r=F(n),i=F(r),a=F(i,!0);D(i);var o=L(i),u=F(o,!0);D(o),D(r),D(n);var d=L(n);mo(d,23,()=>z(l),([e,t],n)=>`${e}-${n}`,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=xge(),o=F(a),s=F(o,!0);D(o);var c=L(o),l=F(c,!0);D(c),D(a),R(()=>{W(s,r()),W(l,i())}),U(e,a)}),D(d),D(t),R(()=>{W(a,z(s)),W(u,z(c))}),U(e,t)};G(f,e=>{z(l).length&&e(p)}),U(e,d),k(),i()}var bge,xge,Sge,Cge,wge=s((()=>{Q(),Y(),Z(),bge=u(YM()),oc(),W4(),p7(),xge=V(`<tr><td class="svelte-11sa460"> </td><td class="svelte-11sa460"> </td></tr>`),Sge=V(`<table class="svelte-11sa460"><thead><tr><th scope="col" class="svelte-11sa460"> </th><th scope="col" class="svelte-11sa460"> </th></tr></thead><tbody></tbody></table>`),Cge={hash:`svelte-11sa460`,code:`table.svelte-11sa460 {width:-moz-available;width:-webkit-fill-available;width:stretch;}th.svelte-11sa460 {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-11sa460 {&:empty::after {content:'\\00a0'; /* nbsp */}}`}}));function Tge(e,t){O(t,!0);let n=J(t,`expanded`,3,!1);{let t=M(()=>n()?`expand_more`:bh()?`chevron_left`:`chevron_right`);zF(e,{get name(){return z(t)}})}k()}var Ege=s((()=>{Q(),Y(),Z(),B$()}));function m7(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`items`,19,()=>[]),i=J(t,`addItem`,3,()=>void 0),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.label),s=M(()=>t.fieldConfig.types),c=M(()=>t.fieldConfig.widget===`list`?t.fieldConfig:void 0),l=M(()=>z(c)?.label_singular??``),u=M(()=>z(c)?.max??void 0),d=M(()=>X(`add_x`,{values:{name:z(l)||z(o)||z(a)}})),f=M(()=>n()||typeof z(u)==`number`&&r().length===z(u));var p=H(),m=I(p),h=e=>{NI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},startIcon:e=>{zF(e,{name:`add`})},endIcon:e=>{},popup:e=>{{let t=M(()=>X(`select_list_type`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(s),({name:e,label:t})=>e,(e,t)=>{let n=()=>z(t).name,r=()=>z(t).label;{let t=M(()=>r()||n());qL(e,{get label(){return z(t)},onclick:()=>i()({type:n()})})}}),U(e,n)},$$slots:{default:!0}})}},$$slots:{startIcon:!0,endIcon:!0,popup:!0}})},g=M(()=>Array.isArray(z(s))),_=e=>{tI(e,{variant:`tertiary`,get label(){return z(d)},get disabled(){return z(f)},onclick:()=>i()(),startIcon:e=>{zF(e,{name:`add`})},$$slots:{startIcon:!0}})};G(m,e=>{z(g)?e(h):e(_,-1)}),U(e,p),k()}var Dge=s((()=>{Q(),Y(),Z(),B$()}));function h7(e,t){O(t,!0),K(e,Age);let n=J(t,`label`,3,``),r=J(t,`expanded`,15),i=J(t,`centerContent`,3,void 0),a=J(t,`endContent`,3,void 0);var o=kge(),s=F(o),c=F(s);{let e=e=>{Tge(e,{get expanded(){return r()}})},i=M(()=>r()?X(`collapse`):X(`expand`));tI(c,{size:`small`,get"aria-label"(){return z(i)},get"aria-expanded"(){return r()},get"aria-controls"(){return t.controlId},onclick:()=>{r(!r()),t.toggleExpanded?.()},startIcon:e,children:(e,t)=>{var r=H(),i=I(r),a=e=>{var t=Oge(),r=F(t,!0);D(t),R(()=>W(r,n())),U(e,t)};G(i,e=>{n()&&e(a)}),U(e,r)},$$slots:{startIcon:!0,default:!0}})}D(s);var l=L(s,2);Eo(F(l),()=>i()??E),D(l);var u=L(l,2);Eo(F(u),()=>a()??E),D(u),D(o),U(e,o),k()}var Oge,kge,Age,g7=s((()=>{Q(),Y(),Z(),B$(),Ege(),Oge=V(`<span role="none" class="type svelte-57h597"> </span>`),kge=V(`<div role="none" class="header svelte-57h597"><div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div> <div role="none" class="svelte-57h597"><!></div></div>`),Age={hash:`svelte-57h597`,code:`.header.svelte-57h597 {display:flex;align-items:center;gap:8px;height:24px;background-color:var(--sui-secondary-border-color);& > div:where(.svelte-57h597) {display:flex;align-items:center;&:first-child {justify-content:flex-start;width:40%;}&:nth-child(2) {width:20%;justify-content:center;}&:last-child {width:40%;justify-content:flex-end;}}button {padding:0;height:16px;}.type:where(.svelte-57h597) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-bold);color:var(--sui-secondary-foreground-color);}}`}})),jge,Mge,Nge=s((()=>{jge=({fieldConfig:e,dynamicValue:t})=>{if(t!==void 0)return t===`true`;let{default:n}=e;return typeof n==`boolean`?n:!1},Mge=e=>({[e.keyPath]:jge(e)})})),Pge,Fge=s((()=>{p(),Pge=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,output_code_only:i=!1,keys:a={code:`code`,lang:`lang`}}=e,o=n===void 0?r:n;if(i)return{[t]:typeof o==`string`?o:``};let s=d(o)?o:void 0,c=s?.[a.code]??o,l=s?.[a.lang]??``;return{[t]:{},[`${t}.${a.code}`]:typeof c==`string`?c:``,[`${t}.${a.lang}`]:typeof l==`string`?l:``}}})),Ige,Lge,Rge=s((()=>{mC(),Ige=({fieldConfig:e,dynamicValue:t})=>{let n=e,r=n.default,i=t??r;return typeof i==`string`?i===`{{now}}`?dC(uC(n),``,n):i:``},Lge=e=>({[e.keyPath]:Ige(e)})})),_7,zge=s((()=>{iA(),_7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let r=e,i=r.default,a=rA(r),o=``;o=n===void 0?a?Array.isArray(i)?i:[]:typeof i==`string`?i:``:a?n.split(/,\s*/):n;let s={};return a&&Array.isArray(o)&&(o=o.map(e=>e.trim()).filter(e=>e!==``),o.length&&(s[t]=[],o.forEach((e,n)=>{s[`${t}.${n}`]=e}))),!a&&typeof o==`string`&&(s[t]=o.trim()),s}})),Bge,v7,Vge=s((()=>{hp(),rp(),Gj(),Bge=({fieldConfig:e,locale:t,dynamicValue:n})=>{let{email:r=``,login:i=``,name:a=``}=A(Wj),{default:o}=e,s=n??o;return typeof s==`string`?s.replaceAll(/{{(.+?)}}/g,(e,n)=>n===`locale`?t:n===`datetime`?new Date().toJSON().replace(/\d+\.\d+Z$/,`00.000Z`):n===`uuid`?fp():n===`uuid_short`?fp(`short`):n===`uuid_shorter`?fp(`shorter`):n===`author-email`?r:n===`author-login`?i:n===`author-name`?a:``):s},v7=e=>({[e.keyPath]:Bge(e)})})),Hge,Uge,Wge=s((()=>{p(),_A(),Hge=({fieldConfig:e,locale:t})=>{let{default:n}=e,r=dA({fieldConfig:e,locale:t});return d(n)?n:r?{"":``}:{}},Uge=e=>{let{keyPath:t,dynamicValue:n}=e,r;if(n!==void 0)try{let e=JSON.parse(n);d(e)&&(r=e)}catch{}return r??=Hge(e),Object.fromEntries(Object.entries(r).filter(([,e])=>typeof e==`string`).map(([e,n])=>[`${t}.${e}`,n]))}})),Gge,Kge=s((()=>{p(),dc(),Gge=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r}=e,{fields:i}=e,{types:a}=e,o;if(o=n===void 0?Array.isArray(r)?r:[]:n.split(/,\s*/).map(e=>e.trim()).filter(e=>e!==``),!(Array.isArray(o)&&o.length))return{[t]:[]};let s={[t]:o};return i||a?o.forEach((e,n)=>{d(e)?Object.entries(lc(e)).forEach(([e,r])=>{s[`${t}.${n}.${e}`]=r}):s[`${t}.${n}`]=e}):o.forEach((e,n)=>{d(e)||(s[`${t}.${n}`]=e)}),s}})),qge,Jge=s((()=>{qge=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,value_type:i=`int`}=e,a=n??r,o=typeof a==`string`;if(a===void 0)return i===`int`||i===`float`?{[t]:null}:{[t]:``};if([`int`,`int/string`].includes(i)){let e=o?Number.parseInt(a,10):a;return Number.isInteger(e)?{[t]:e}:{}}if([`float`,`float/string`].includes(i)){let e=o?Number.parseFloat(a):a;return Number.isFinite(e)?{[t]:e}:{}}return{}}})),Yge,Xge=s((()=>{p(),dc(),_A(),Yge=({fieldConfig:e,keyPath:t,locale:n,defaultLocale:r,populateDefault:i})=>{let{default:a}=e,{fields:o}=e,{types:s}=e,c=dA({fieldConfig:e,locale:n}),l={};return d(a)?(Object.entries(lc(a)).forEach(([e,n])=>{l[`${t}.${e}`]=n}),l):!c||Array.isArray(s)?(l[t]=null,l):(o&&o.length>0&&o.forEach(e=>{i?.({content:l,keyPath:[t,e.name].join(`.`),fieldConfig:e,locale:n,defaultLocale:r,dynamicValues:{}})}),l)}})),y7,Zge=s((()=>{Sp(),rp(),$P(),y7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r=A(JP)?.field_defaults?.richtext?.default}=e,i=``;if(n!==void 0)try{i=yp(n)}catch{i=n.replace(/<[^>]*>/g,``)}else i=r||``;return{[t]:i}}})),b7,Qge=s((()=>{b7=({fieldConfig:e,keyPath:t,dynamicValue:n})=>{let{default:r,multiple:i=!1}=e,a=n===void 0?r:n.split(/,\s*/).map(e=>e.trim()),o=Array.isArray(a)&&!!a.length;if(!i){if(n!==void 0){let e=n.split(/,\s*/).map(e=>e.trim());return{[t]:e[0]||``}}return{[t]:a===void 0?``:a}}return o?Object.fromEntries(a.map((e,n)=>[`${t}.${n}`,e])):{[t]:[]}}})),$ge,e_e=s((()=>{Nge(),Fge(),Rge(),zge(),Vge(),Wge(),Kge(),Jge(),Xge(),Zge(),Qge(),$ge={boolean:Mge,code:Pge,datetime:Lge,file:_7,hidden:v7,image:_7,keyvalue:Uge,list:Gge,markdown:y7,number:qge,object:Yge,relation:b7,richtext:y7,select:b7}})),x7,S7,C7=s((()=>{e_e(),x7=({content:e,keyPath:t,fieldConfig:n,locale:r,defaultLocale:i,dynamicValues:a})=>{let{widget:o=`string`,default:s,i18n:c=!1}=n;if(r!==i&&[!1,`none`].includes(c))return;if(o===`compute`){e[t]=``;return}let l=t in a&&!/\.\d+(?:\.|$)/.test(t)&&a[t].trim()||void 0,u=$ge[o];if(u){Object.assign(e,u({fieldConfig:n,keyPath:t,locale:r,defaultLocale:i,dynamicValue:l,populateDefault:x7}));return}e[t]=l||s||``},S7=({fields:e,locale:t,defaultLocale:n,dynamicValues:r={}})=>{let i={};return e.forEach(e=>{x7({content:i,keyPath:e.name,fieldConfig:e,locale:t,defaultLocale:n,dynamicValues:r})}),i}})),w7,t_e,T7,E7,n_e=s((()=>{Sp(),dc(),rp(),W4(),zx(),w7=(e,t)=>{Object.entries(t).forEach(([t,n])=>{e[t]!==n&&(e[t]=n)}),Object.keys(e).forEach(n=>{n in t||delete e[n]})},t_e=new Map,T7=(e,t)=>{let n=Rx(t_e,t,()=>RegExp(`^${gp(t)}\\b(?!#)`)),r=Object.entries(e).filter(([e])=>n.test(e)).map(([e,t])=>[e.replace(n,`_`),t]).sort();return[uc(Object.fromEntries(r))._??[],Object.fromEntries(Object.entries(e).filter(([e])=>!n.test(e)))]},E7=({locale:e,valueStoreKey:t=`currentValues`,keyPath:n,manipulate:r})=>{let i=A(z4),{collection:a,collectionFile:o}=i,{defaultLocale:s}=(o??a)._i18n,[c,l]=T7(i[t][e],n),[u,d]=e===s?T7(i.expanderStates._,n):[[],[]];r({valueList:c,expanderStateList:u}),B4.set(!1),z4.update(r=>(w7(r[t][e],{...lc({[n]:c}),...l}),e===s&&w7(r.expanderStates._,{...lc({[n]:u}),...d}),r)),B4.set(!0)}})),r_e,D7,O7,k7,i_e,A7=s((()=>{Sp(),rp(),W4(),_A(),zx(),r_e=new Map,D7=({key:e,locale:t,collapsed:n=!1})=>{let r=A(z4),i=r?.expanderStates?._[e];if(i!==void 0)return i;if(n===`auto`){let n=r?.currentValues?.[t]??{},i=e.replace(/#$/,``),a=Rx(r_e,i,()=>RegExp(`^${gp(i)}\\.[^\\.]+$`));return!Object.entries(n).some(([e,t])=>a.test(e)&&!!t)}return!n},O7=e=>{z4.update(t=>(t&&Object.entries(e).forEach(([e,n])=>{t.expanderStates._[e]!==n&&(t.expanderStates._[e]=n)}),t))},k7=({collectionName:e,fileName:t,valueMap:n,keyPath:r,isIndexFile:i=!1})=>{let a=new Set,o={collectionName:e,fileName:t,valueMap:n,isIndexFile:i};return r.split(`.`).forEach((e,t,n)=>{let r=n.slice(0,t+1).join(`.`),i=uA({...o,keyPath:r}),s=/\.\d+$/.test(r);if(i?.widget===`object`)s&&a.add(r),a.add(`${r}#`);else if(i?.widget===`list`)a.add(s?r:`${r}#`);else if(t>0){let e=n.slice(0,t).join(`.`),i=uA({...o,keyPath:e});i?.widget===`object`&&`fields`in i&&a.add(`${e}.${i.name}#`),i?.widget===`list`&&`field`in i&&a.add(r)}}),[...a]},i_e=({collectionName:e,fileName:t,currentValues:n})=>{let{validities:r,isIndexFile:i}=A(z4),a={};Object.entries(r??{}).forEach(([r,o])=>{Object.entries(o).forEach(([o,{valid:s}])=>{s||k7({collectionName:e,fileName:t,valueMap:n[r],keyPath:o,isIndexFile:i}).forEach(e=>{a[e]=!0})})}),O7(a)}}));function a_e(e,t){let n=Ia();O(t,!0),K(e,h_e);let r=()=>j(z4,`$entryDraft`,a),i=()=>j(zA,`$isSmallScreen`,a),[a,o]=hn(),s=(e,t=E,n=E)=>{var r=H(),i=I(r),a=e=>{{let r=e=>{var n=H();mo(I(n),17,()=>z(te)??[],({name:e,label:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).label;{let n=M(()=>i()||r());qL(e,{get label(){return z(n)},onclick:()=>Ee({index:t(),type:r()})})}}),U(e,n)},i=M(()=>X(`add_item_${n()}`));qL(e,{get label(){return z(i)},get disabled(){return z(be)},items:r,$$slots:{items:!0}})}},o=e=>{{let r=M(()=>X(`add_item_${n()}`));qL(e,{get label(){return z(r)},get disabled(){return z(be)},onclick:()=>Ee({index:t()})})}};G(i,e=>{z(ae)?e(a):e(o,-1)}),U(e,r)},{valueStoreKey:c=`currentValues`}=Rt(`field-editor`)??{},l=M(()=>t.fieldConfig.name),u=M(()=>t.fieldConfig.label),f=M(()=>t.fieldConfig.i18n),p=M(()=>T(t.fieldConfig.allow_add,!0)),m=M(()=>T(t.fieldConfig.allow_remove,!0)),h=M(()=>T(t.fieldConfig.allow_duplicate,!0)),g=M(()=>T(t.fieldConfig.allow_reorder,!0)),_=M(()=>t.fieldConfig.collapsed),v=M(()=>t.fieldConfig.summary),y=M(()=>t.fieldConfig.thumbnail),b=M(()=>T(t.fieldConfig.minimize_collapsed,!1)),x=M(()=>t.fieldConfig.label_singular),S=M(()=>T(t.fieldConfig.max,1/0)),C=M(()=>T(t.fieldConfig.add_to_top,!1)),w=M(()=>t.fieldConfig.field),ee=M(()=>t.fieldConfig.fields),te=M(()=>t.fieldConfig.types),ne=M(()=>T(t.fieldConfig.typeKey,`type`)),re=M(()=>h5(t.fieldConfig)),ie=M(()=>z(re).hasSingleSubField),ae=M(()=>z(re).hasVariableTypes),oe=M(()=>RegExp(`^${gp(t.keyPath)}\\.(\\d+)(.*)?`)),se=M(()=>r()?.isIndexFile??!1),ce=M(()=>r()?.collection),le=M(()=>r()?.collectionName??``),ue=M(()=>r()?.collectionFile),de=M(()=>r()?.fileName),fe=M(()=>(z(ue)??z(ce))?._i18n??Cb),pe=M(()=>z(fe).defaultLocale),me=M(()=>t.locale!==z(pe)&&z(f)===`duplicate`),he=M(()=>jt(r()?.[c][t.locale])??{}),ge=M(()=>`${t.keyPath}#`),_e=M(()=>r()?.expanderStates?._[z(ge)]??!0),ve=M(()=>uc(Object.fromEntries(Object.entries(z(he)).filter(([e])=>z(oe).test(e)).map(([e,n])=>[`${z(l)}${e.slice(t.keyPath.length)}`,n])))[z(l)]??[]),ye=M(()=>z(ve).map((e,n)=>{let i=`${t.keyPath}.${n}`;return[i,r()?.expanderStates?._[i]??!0]})),be=M(()=>z(ve).length>=z(S)),xe=M(()=>t.locale===z(pe)||(z(ae)?z(te)?.flatMap(({fields:e=[]})=>e)??[]:z(ee)??(z(w)?[z(w)]:[])).some(({i18n:e=!1})=>e===!0||e===`translate`)),Se=M(()=>z(me)||!z(xe)),Ce=Cr([]),we=()=>{O7({[z(ge)]:z(b)===`auto`?!z(ve).length:!z(b),...Object.fromEntries(z(ve).map((e,n)=>{let r=`${t.keyPath}.${n}`;return[r,D7({key:r,locale:t.locale,collapsed:z(_)})]}))})},Te=e=>{Object.keys(r()?.[c]??{}).forEach(n=>{z(f)!==`duplicate`&&n!==t.locale||E7({locale:n,valueStoreKey:c,keyPath:t.keyPath,manipulate:e})})},Ee=({index:e=z(C)?0:z(ve).length,dupIndex:n,type:r}={})=>{Te(({valueList:i,expanderStateList:a})=>{let o=r?z(te)?.find(({name:e})=>e===r)?.fields??[]:z(ee)??(z(w)?[z(w)]:[]),s=(()=>{if(typeof n==`number`)return structuredClone(i[n]);let e=uc(S7({fields:o,locale:t.locale,defaultLocale:z(pe)}));return z(ie)&&z(w)?e[z(w).name]:e})();r&&(s[z(ne)]=r),z(ie)||(s.__sc_item_id=crypto.randomUUID(),i.forEach((e,n)=>{d(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)})),i.splice(e,0,s),a.splice(e,0,!0)}),O7({[z(ge)]:!0})},De=e=>{Te(({valueList:n,expanderStateList:r})=>{z(ie)||n.forEach((e,n)=>{d(e)&&(e.__sc_item_original_key_path??=`${t.keyPath}.${n}`)}),n.splice(e,1),r.splice(e,1)})},Oe=e=>{Te(({valueList:n,expanderStateList:r})=>{z(ie)||(n[e].__sc_item_id??=crypto.randomUUID(),n[e+1].__sc_item_id??=crypto.randomUUID(),n[e].__sc_item_original_key_path??=`${t.keyPath}.${e}`,n[e+1].__sc_item_original_key_path??=`${t.keyPath}.${e+1}`),[n[e],n[e+1]]=[n[e+1],n[e]],[r[e],r[e+1]]=[r[e+1],r[e]]})},ke=(e,n)=>Jde({collectionName:z(le),fileName:z(de),keyPath:t.keyPath,valueMap:z(he),locale:t.locale,summaryTemplate:n,hasSingleSubField:z(ie),index:e,isIndexFile:z(se)}),Ae=async e=>{if(!z(y))return;let n=z(y).replace(/^fields\./,``),i=`${t.keyPath}.${e}`,a=z(ie)?i:`${i}.${n}`,o=z(he)[a];if(!o)return;let s=uA({collectionName:z(le),fileName:z(de),valueMap:z(he),keyPath:a,isIndexFile:z(se)});if(!(s?.widget!==`image`||z(ie)&&s.name!==n))return _T({value:o,entry:r()?.originalEntry,collectionName:z(le),fileName:z(de),typedKeyPath:z(ie)?`${t.typedKeyPath}.*`:`${t.typedKeyPath}.*.${n}`})},je=async()=>{z(y)&&(Ce.length=z(ve).length,z(ve).forEach(async(e,t)=>{let n=await Ae(t);Ce[t]!==n&&(Ce[t]=n)}))};ti(()=>{z(ve),B(()=>{je()})}),ic(()=>{we()});var Me=m_e(),Ne=I(Me),Pe=F(Ne);{let e=e=>{Tge(e,{get expanded(){return z(_e)}})},t=M(()=>!z(ve).length),r=M(()=>z(_e)?X(`collapse`):X(`expand`));tI(Pe,{iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},get"aria-expanded"(){return z(_e)},get"aria-controls"(){return`list-${n}-item-list`},onclick:()=>{O7({[z(ge)]:!z(_e)})},startIcon:e,$$slots:{startIcon:!0}})}var Fe=L(Pe,2),Ie=F(Fe);D(Fe);var Le=L(Fe,2);UI(Le,{flex:!0});var Re=L(Le,2),ze=e=>{var t=o_e(),n=I(t);{let e=M(()=>X(`expand_all`)),t=M(()=>z(ye).every(([,e])=>e));tI(n,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{O7(Object.fromEntries(z(ye).map(([e])=>[e,!0])))}})}var r=L(n,2);{let e=M(()=>X(`collapse_all`)),t=M(()=>z(ye).every(([,e])=>!e));tI(r,{variant:`tertiary`,size:`small`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{O7(Object.fromEntries(z(ye).map(([e])=>[e,!1])))}})}U(e,t)};G(Re,e=>{z(_e)&&z(ve).length>1&&e(ze)}),D(Ne);var Be=L(Ne,2),Ve=e=>{var n=s_e();m7(F(n),{get disabled(){return z(Se)},get fieldConfig(){return t.fieldConfig},get items(){return z(ve)},addItem:Ee}),D(n),U(e,n)};G(Be,e=>{z(p)&&(z(C)||!z(ve).length)&&e(Ve)});var He=L(Be,2);let Ue;mo(He,23,()=>z(ve),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,a,o)=>{U8(e,{children:(e,c)=>{let l=M(()=>`${t.keyPath}.${z(o)}`),u=M(()=>r()?.expanderStates?._[z(l)]??!0),d=M(()=>z(ae)?z(te)?.find(({name:e})=>e===z(a)[z(ne)]):void 0),f=M(()=>z(ae)?z(d)?.fields??[]:z(ee)??(z(w)?[z(w)]:[])),_=M(()=>z(ae)&&z(d)?.summary||z(v));var y=f_e(),b=F(y);{let e=e=>{var t=H(),n=I(t),r=e=>{var t=c_e(),n=I(t);{let e=e=>{zF(e,{name:`arrow_upward`})},t=M(()=>z(me)||z(o)===0),r=M(()=>X(`move_up`));tI(n,{size:`small`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(r)},onclick:()=>Oe(z(o)-1),startIcon:e,$$slots:{startIcon:!0}})}var r=L(n,2);UI(r,{});var i=L(r,2);{let e=e=>{zF(e,{name:`arrow_downward`})},t=M(()=>z(me)||z(o)===z(ve).length-1),n=M(()=>X(`move_down`));tI(i,{iconic:!0,size:`small`,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:()=>Oe(z(o)),startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(n,e=>{z(g)&&e(r)}),U(e,t)},t=e=>{var t=u_e(),n=I(t),r=e=>{{let t=e=>{{let t=M(()=>X(`list_item_options`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=l_e(),r=I(n),i=e=>{{let t=M(()=>X(`duplicate`));qL(e,{get label(){return z(t)},get disabled(){return z(be)},onclick:()=>Ee({index:z(o)+1,dupIndex:z(o)})})}};G(r,e=>{z(h)&&e(i)});var a=L(r,2);s(a,()=>z(o),()=>`above`),s(L(a,2),()=>z(o)+1,()=>`below`),U(e,n)},$$slots:{default:!0}})}},n=M(()=>X(`list_item_options`));NI(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(n)},get disabled(){return z(Se)},popup:t,$$slots:{popup:!0}})}};G(n,e=>{z(p)&&e(r)});var i=L(n,2),a=e=>{{let t=e=>{zF(e,{name:`close`})},n=M(()=>X(`remove`));tI(e,{variant:`ghost`,size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>De(z(o)),startIcon:t,$$slots:{startIcon:!0}})}};G(i,e=>{z(m)&&e(a)}),U(e,t)},r=M(()=>z(ae)?z(d)?.label||z(d)?.name:``),i=M(()=>z(f).length?()=>O7({[z(l)]:!z(u)}):void 0);h7(b,{get label(){return z(r)},get controlId(){return`list-${n}-item-${z(o)??``}-body`},get expanded(){return z(u)},get toggleExpanded(){return z(i)},centerContent:e,endContent:t,$$slots:{centerContent:!0,endContent:!0}})}var x=L(b,2),S=F(x),C=e=>{var n=H();mo(I(n),17,()=>z(f),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{{let r=M(()=>z(ie)?z(l):`${z(l)}.${z(n).name}`),i=M(()=>z(ae)?`${t.typedKeyPath}.*<${z(a)[z(ne)]}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`),o=M(()=>z(ie)?`single-subfield-list-field`:void 0);r9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)},get context(){return z(o)}})}},$$slots:{default:!0}})}),U(e,n)},T=e=>{var t=d_e(),n=F(t),r=e=>{_3(e,{get src(){return Ce[z(o)]},variant:`icon`,cover:!0})};G(n,e=>{Ce[z(o)]&&e(r)});var a=L(n,2);{let e=M(()=>i()?2:1);qF(a,{get lines(){return z(e)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>ke(z(o),z(_))]),U(e,n)},$$slots:{default:!0}})}D(t),U(e,t)};G(S,e=>{z(u)?e(C):e(T,-1)}),D(x),D(y),R(()=>q(x,`id`,`list-${n}-item-${z(o)??``}-body`)),U(e,y)},$$slots:{default:!0}})}),D(He);var We=L(He,2),Ge=e=>{var n=p_e(),r=F(n);m7(r,{get disabled(){return z(Se)},get fieldConfig(){return t.fieldConfig},get items(){return z(ve)},addItem:Ee}),UI(L(r,2),{flex:!0}),D(n),U(e,n)};G(We,e=>{z(p)&&!z(C)&&z(ve).length&&e(Ge)}),R(()=>{q(Fe,`id`,`object-${n}-summary`),W(Ie,`${z(ve).length??``}
992
+ ${((z(ve).length===1?z(x):void 0)||z(u)||z(l))??``}`),q(He,`id`,`list-${n}-item-list`),Ue=ss(He,1,`item-list svelte-n5zzp2`,null,Ue,{collapsed:!z(_e)})}),U(e,Me),k(),o()}var o_e,s_e,c_e,l_e,u_e,d_e,f_e,p_e,m_e,h_e,g_e=s((()=>{Q(),Y(),Z(),B$(),p(),Sp(),dc(),oc(),v3(),Ege(),K8(),a9(),Dge(),g7(),vT(),W4(),C7(),n_e(),A7(),_A(),g5(),jb(),WA(),o_e=V(`<!> <!>`,1),s_e=V(`<div role="none" class="toolbar top add svelte-n5zzp2"><!></div>`),c_e=V(`<!> <!> <!>`,1),l_e=V(`<!> <!> <!>`,1),u_e=V(`<!> <!>`,1),d_e=V(`<div role="none" class="summary svelte-n5zzp2"><!> <!></div>`),f_e=V(`<div role="none" class="item svelte-n5zzp2"><!> <div role="none" class="item-body"><!></div></div>`),p_e=V(`<div role="none" class="toolbar bottom add svelte-n5zzp2"><!> <!></div>`),m_e=V(`<div role="none" class="toolbar top svelte-n5zzp2"><!> <div role="none" class="summary"> </div> <!> <!></div> <!> <div role="none"></div> <!>`,1),h_e={hash:`svelte-n5zzp2`,code:`.toolbar.svelte-n5zzp2 {display:flex;align-items:center;&.top.add {margin-block:8px 16px !important;}&.bottom.add {margin-block:16px 0 !important;}}.item-list.svelte-n5zzp2 {&.collapsed {display:none;}}.item.svelte-n5zzp2 {margin:16px 0;border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.summary:where(.svelte-n5zzp2) {display:flex;align-items:center;gap:8px;padding:8px;&:empty {display:none;}}}`}}));function __e(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`currentValue`,7),s=J(t,`required`,3,!0),c=J(t,`readonly`,3,!1),l=J(t,`invalid`,3,!1),u=N(!1),d=N(``),f=M(()=>t.fieldConfig.i18n),p=()=>{P(d,o()?.join(`
993
+ `)??``,!0)},m=(e=z(d).split(/\n/g))=>{Object.keys(n()?.[a]??{}).forEach(r=>{z(f)!==`duplicate`&&r!==t.locale||(Object.keys(n()?.[a][r]??{}).forEach(e=>{e.match(`^${gp(t.keyPath)}\\.\\d+$`)&&delete n()?.[a][r][e]}),e.forEach((e,i)=>{_n(z4,B(n)[a][r][`${t.keyPath}.${i}`]=e,B(n))}))})},h=()=>{o(z(d).split(/\n/g).map(e=>e.trim()).filter(e=>!!e)),m(o())};ic(()=>{P(u,!0)}),ti(()=>{z(u)&&(o(),B(()=>{p()}))});{let n=M(()=>ib(t.locale));l$(e,{get dir(){return z(n)},autoResize:!0,flex:!0,get readonly(){return c()},get required(){return s()},get invalid(){return l()},get"aria-errormessage"(){return`${t.fieldId??``}-error`},oninput:()=>{m()},onblur:()=>{h()},get value(){return z(d)},set value(e){P(d,e,!0)}})}k(),i()}var v_e=s((()=>{Q(),Y(),B$(),Sp(),oc(),W4(),ub()}));function y_e(e,t){let n=Ia();O(t,!0);let r=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);L$(e,{get"aria-labelledby"(){return`list-${n}-summary`},children:(e,n)=>{var i=H(),a=I(i),o=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));a_e(e,Xs(()=>z(n)))}},s=M(()=>h5(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));__e(e,Xs(()=>z(n)))}};G(a,e=>{z(s)?e(o):e(c,-1)}),U(e,i)},$$slots:{default:!0}}),k()}var b_e=s((()=>{Q(),Y(),B$(),g_e(),v_e(),g5()}));function x_e(e,t){let n=Ia();K(e,w_e);let r=`${n}-header`;var i=C_e(),a=F(i),o=e=>{var n=S_e(),i=F(n,!0);D(n),R(()=>{q(n,`id`,r),W(i,t.label)}),U(e,n)};G(a,e=>{t.label&&e(o)});var s=L(a,2);Eo(F(s),()=>t.children??E),D(s),D(i),R(()=>q(i,`aria-labelledby`,t.label?r:void 0)),U(e,i)}var S_e,C_e,w_e,T_e=s((()=>{Q(),Y(),S_e=V(`<div role="none" class="header svelte-ygwzbn"> </div>`),C_e=V(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),w_e={hash:`svelte-ygwzbn`,code:`.subsection.svelte-ygwzbn {margin:16px auto;border:2px solid var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);.title {font-size:inherit;font-weight:var(--sui-font-weight-normal);}}.header.svelte-ygwzbn {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-ygwzbn {padding:8px 16px;&:empty {display:none;}}`}}));function j7(e,t){O(t,!0),K(e,O_e);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`showLabel`,3,!0),o=M(()=>t.fieldConfig.name),s=M(()=>T(t.fieldConfig.widget,`string`)),c=M(()=>T(t.fieldConfig.i18n,!1)),l=M(()=>T(t.fieldConfig.label,``)),u=M(()=>T(t.fieldConfig.preview,!0)),d=M(()=>sA(t.fieldConfig)),f=M(()=>z(s)===`list`||z(d)),p=M(()=>n()?.collection),m=M(()=>n()?.collectionFile),h=M(()=>jt(n()?.currentValues[t.locale]??{})),g=M(()=>(z(m)??z(p))?._i18n??Cb),_=M(()=>z(g).i18nEnabled),v=M(()=>z(g).defaultLocale),y=M(()=>z(_)&&(z(c)===!0||z(c)===`translate`)),b=M(()=>z(_)&&z(c)===`duplicate`),x=M(()=>RegExp(`^${gp(t.keyPath)}\\.\\d+$`)),S=M(()=>z(f)?Object.entries(z(h)).filter(([e])=>z(x).test(e)).map(([,e])=>e).filter(e=>e!==void 0):z(h)[t.keyPath]),C=()=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:t.locale,keyPath:t.keyPath}},window.location.origin)};var w=H(),ee=I(w),te=e=>{var n=D_e(),r=F(n),i=e=>{var t=E_e(),n=F(t,!0);D(t),R(()=>W(n,z(l)||z(o))),U(e,t)};G(r,e=>{a()&&e(i)});var c=L(r,2),u=e=>{let n=M(()=>Q7[z(s)]);var r=H();Oo(I(r),()=>z(n),(e,n)=>{n(e,{get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get locale(){return t.locale},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(S)}})}),U(e,r)};G(c,e=>{z(s)in Q7&&e(u)}),D(n),R(()=>{q(n,`data-field-type`,z(s)),q(n,`data-key-path`,t.keyPath),q(n,`data-typed-key-path`,t.typedKeyPath)}),Sa(`keydown`,n,e=>{e.key===`Enter`&&(e.stopPropagation(),C())}),Sa(`click`,n,e=>{e.stopPropagation(),C()}),U(e,n)};G(ee,e=>{z(s)!==`hidden`&&z(u)&&(t.locale===z(v)||z(y)||z(b))&&e(te)}),U(e,w),k(),i()}var E_e,D_e,O_e,M7=s((()=>{Q(),Y(),Sp(),wbe(),W4(),_A(),jb(),E_e=V(`<h4 class="svelte-s650n2"> </h4>`),D_e=V(`<section role="group" tabindex="0" class="svelte-s650n2"><!> <!></section>`),O_e={hash:`svelte-s650n2`,code:`[role='document'] section.svelte-s650n2 {overflow:hidden;margin:8px 0;padding:8px 0;h4:where(.svelte-s650n2) {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);&:not(:last-child) {margin-bottom:8px;}}& > * {margin-inline:auto;max-width:768px;}p {margin:8px auto 0;-webkit-user-select:text;user-select:text;}img {max-height:800px !important;}}
994
+
995
+ @media (width < 768px) {[role='document'] {& > section.svelte-s650n2:is([data-field-type='file']:where(.svelte-s650n2), [data-field-type='image']:where(.svelte-s650n2)):has(img),
996
+ & > section.svelte-s650n2:is([data-field-type='string']:where(.svelte-s650n2)):has(iframe) {overflow:visible;}& > section.svelte-s650n2:is([data-field-type='file']:where(.svelte-s650n2), [data-field-type='image']:where(.svelte-s650n2)) img {width:100%;max-height:none !important;}}
997
+ }`},Ca([`keydown`,`click`])}));function k_e(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.name),o=M(()=>t.fieldConfig.field),s=M(()=>t.fieldConfig.fields),c=M(()=>t.fieldConfig.types),l=M(()=>T(t.fieldConfig.typeKey,`type`)),u=M(()=>h5(t.fieldConfig)),f=M(()=>z(u).hasSingleSubField),p=M(()=>z(u).hasVariableTypes),m=M(()=>RegExp(`^${gp(t.keyPath)}\\.\\d+`)),h=M(()=>uc(Object.fromEntries(Object.entries(jt(n()?.currentValues[t.locale])??{}).filter(([e])=>z(m).test(e)).map(([e,n])=>[`${z(a)}${e.slice(t.keyPath.length)}`,n])))[z(a)]??[]);var g=H();mo(I(g),19,()=>z(h),(e,t)=>d(e)?e.__sc_item_id??t:t,(e,r,i)=>{U8(e,{children:(e,r)=>{let a=M(()=>`${t.keyPath}.${z(i)}`),u=M(()=>Array.isArray(z(c))?n()?.currentValues[t.locale][`${z(a)}.${z(l)}`]:void 0),d=M(()=>z(c)?.find(({name:e})=>e===z(u))),m=M(()=>z(d)?z(d).label||z(d).name:void 0),h=M(()=>z(u)?z(d)?.fields??[]:z(s)??(z(o)?[z(o)]:[]));x_e(e,{get label(){return z(m)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{{let r=M(()=>z(f)?z(a):`${z(a)}.${z(n).name}`),i=M(()=>z(p)?`${t.typedKeyPath}.*<${z(u)}>.${z(n).name}`:`${t.typedKeyPath}.*.${z(n).name}`);j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,g),k(),i()}var A_e=s((()=>{Q(),Y(),p(),Sp(),dc(),K8(),T_e(),M7(),W4(),g5()}));function j_e(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=N_e();mo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=M_e(),r=F(n,!0);D(n),R(()=>W(r,z(t))),U(e,n)}),D(n),R((e,t)=>{q(n,`lang`,e),q(n,`dir`,t),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,n)},a=M(()=>Array.isArray(t.currentValue)&&t.currentValue.length);G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var M_e,N_e,P_e=s((()=>{Q(),Y(),ub(),M_e=V(`<li> </li>`),N_e=V(`<ul></ul>`)}));function F_e(e,t){O(t,!0);let n=Ys(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);var r=H(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));k_e(e,Xs(()=>z(r)))}},o=M(()=>h5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));j_e(e,Xs(()=>z(r)))}};G(i,e=>{z(o)?e(a):e(s,-1)}),U(e,r),k()}var I_e=s((()=>{Q(),Y(),A_e(),P_e(),g5()})),L_e,R_e,z_e,B_e=s((()=>{p(),_0(),L_e=(e,t=`Point`)=>{try{let n=JSON.parse(e);return d(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},R_e=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>g0(e,t)):g0(e,t)):g0(e,t)),z_e=e=>{if(e.type===`Point`)return null;let t=e.type===`Polygon`?e.coordinates.flat(1):e.coordinates;if(!t.every(e=>typeof e[0]==`number`&&typeof e[1]==`number`))return null;let n=t.map(e=>e[1]),r=t.map(e=>e[0]);return[[Math.min(...n),Math.min(...r)],[Math.max(...n),Math.max(...r)]]}}));function V_e(e,t){O(t,!0),K(e,G_e);let n=J(t,`currentValue`,15),r=J(t,`readonly`,3,!1),i=J(t,`invalid`,3,!1),a=M(()=>T(t.fieldConfig.decimals,7)),o=M(()=>T(t.fieldConfig.type,`Point`)),s=M(()=>t.fieldConfig.center),c=M(()=>t.fieldConfig.zoom),l=M(()=>z(o).toLowerCase()),u=N(void 0),f=N(void 0),p=N(``),m=N(``),h=N(void 0),g=N(!1),_=N(!1),v=N(``),y,b=async({leaflet:e,map:t})=>{y=t;let{TerraDraw:r,TerraDrawLineStringMode:i,TerraDrawPointMode:a,TerraDrawPolygonMode:u}=await Pw(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await Pw(`terra-draw-leaflet-adapter`,`dist/terra-draw-leaflet-adapter.module.js?module`),p={Point:a,LineString:i,Polygon:u},m=new r({adapter:new d({lib:e,map:y}),modes:[new p[z(o)]]});m.start(),m.setMode(z(l)),m.on(`change`,(e,t)=>{x(t)}),P(f,m,!0),(!n()||!L_e(n(),z(o)))&&y.setView(z(s)?[z(s)[1],z(s)[0]]:[0,0],z(c)??2)},x=e=>{if(!z(f))return;let t=z(f).getSnapshot(),n=t[t.length-1];!n||e!==(z(o)===`Point`?`create`:`delete`)||(P(p,JSON.stringify({type:z(o),coordinates:R_e(n.geometry.coordinates,z(a))}),!0),t.length>1&&z(f).removeFeatures(t.filter(e=>e.id!==n.id).map(e=>e.id)))},S=e=>{if(e.type===`Point`){let[t,n]=e.coordinates;typeof t==`number`&&typeof n==`number`&&y?.setView([n,t],15)}else{let t=z_e(e);t&&y?.fitBounds(t)}},C=()=>{if(!z(f))return;let e=n()??``,t;try{if(t=JSON.parse(e),!d(t)||t.type!==z(o)||!Array.isArray(t.coordinates))throw Error(`Invalid object`)}catch{e=``,t=void 0}z(p)!==e&&(P(p,e,!0),z(f).clear(),t&&(z(f).addFeatures([{type:`Feature`,geometry:t,properties:{mode:z(l)}}]),S(t)))},w=()=>{if(!z(f))return;let e=z(p);n()!==e&&n(e)},ee=async()=>{let e=z(m).trim();if(!e)return;P(g,!0);let t=`https://nominatim.openstreetmap.org/search?${new URLSearchParams({q:e,format:`jsonv2`})}`;try{P(h,await Zx(t),!0)}catch{P(h,[],!0)}P(g,!1)},te=({latitude:e,longitude:t})=>{if(!z(f)||(e=g0(e,z(a)),t=g0(t,z(a)),y?.setView([e,t],15),z(o)!==`Point`))return;let n={type:`Point`,coordinates:[t,e]};z(f).clear(),z(f).addFeatures([{type:`Feature`,geometry:n,properties:{mode:`point`}}]),P(p,JSON.stringify(n),!0)},ne=({lat:e,lon:t})=>{te({latitude:parseFloat(e),longitude:parseFloat(t)})},re=()=>{if(!navigator.geolocation){P(_,!0),P(v,X(`geolocation_unsupported`),!0);return}navigator.geolocation.getCurrentPosition(({coords:{latitude:e,longitude:t}})=>{te({latitude:e,longitude:t})},e=>{P(_,!0),P(v,X(`geolocation_error_body`),!0),console.error(`Error getting current location:`,e)})},ie=()=>{n(``)};ti(()=>{z(f),n(),B(()=>{C()})}),ti(()=>{z(p),B(()=>{w()})}),ti(()=>{z(m),B(()=>{ee()})});var ae=W_e(),oe=I(ae),se=F(oe);{let e=M(()=>X(`find_place`));wR(se,{debounce:!0,get readonly(){return r()},flex:!0,get placeholder(){return z(e)},get value(){return z(m)},set value(e){P(m,e,!0)}})}var ce=L(se,2);{let e=e=>{zF(e,{name:`near_me`})},t=M(()=>X(`use_your_location`)),n=M(()=>X(`use_your_location`));tI(ce,{variant:`tertiary`,iconic:!0,get title(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return r()},onclick:()=>{re()},startIcon:e,$$slots:{startIcon:!0}})}var le=L(ce,2);{let e=M(()=>X(`clear`)),t=M(()=>r()||!n());tI(le,{variant:`tertiary`,get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{ie()}})}D(oe);var ue=L(oe,2),de=e=>{var t=H_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`searching`)]),U(e,t)},fe=e=>{var t=H(),n=I(t),r=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`search_results`));jL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(h),e=>e.place_id,(e,t)=>{RL(e,{get label(){return z(t).display_name},onSelect:()=>{ne(z(t))}})}),U(e,n)},$$slots:{default:!0}})}},i=e=>{var t=U_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`no_results`)]),U(e,t)};G(n,e=>{z(h).length?e(r):e(i,-1)}),U(e,t)};G(n,e=>{z(h)&&e(r)}),U(e,t)};G(ue,e=>{z(g)?e(de):z(m)&&e(fe,1)});var E=L(ue,2),pe=F(E);{let e=M(()=>i()?`invalid`:void 0);u2(pe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(u)},set mapElement(e){P(u,e,!0)}})}D(E);var me=L(E,2);{let e=M(()=>X(`geolocation_error_title`));sL(me,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{_t();var n=Fa();R(()=>W(n,z(v))),U(e,n)},$$slots:{default:!0}})}U(e,ae),k()}var H_e,U_e,W_e,G_e,K_e=s((()=>{Q(),Y(),Z(),B$(),p(),oc(),p2(),Fw(),B_e(),Qx(),_0(),H_e=V(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),U_e=V(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),W_e=V(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),G_e={hash:`svelte-ktr5k7`,code:`.toolbar.svelte-ktr5k7 {display:flex;align-items:center;margin-bottom:var(--sui-spacing-2x);}.search-result.svelte-ktr5k7 {padding:12px;color:var(--sui-secondary-foreground-color);}.map-wrapper.svelte-ktr5k7 {display:contents;.map {aspect-ratio:auto;height:400px;&.invalid {border-color:var(--sui-error-border-color);}}}`}}));function q_e(e,t){K(e,Y_e);var n=H(),r=I(n),i=e=>{var n=J_e(),r=F(n,!0);D(n),R(()=>W(r,t.currentValue)),U(e,n)};G(r,e=>{t.currentValue&&e(i)}),U(e,n)}var J_e,Y_e,X_e=s((()=>{Q(),Y(),J_e=V(`<pre class="svelte-1ox6w30"> </pre>`),Y_e={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}}));function Z_e(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=N(void 0),s=M(()=>T(t.fieldConfig.value_type,`int`)),c=M(()=>t.fieldConfig.min),l=M(()=>t.fieldConfig.max),u=M(()=>T(t.fieldConfig.step,1)),d=M(()=>![`int`,`float`].includes(z(s))),f=M(()=>[`float`,`float/string`].includes(z(s))),p=()=>{let e;n()!==void 0&&(typeof n()==`number`?e=n():typeof n()==`string`&&(e=n().trim()?z(f)?Number.parseFloat(n()):Number.parseInt(n(),10):NaN,e=Number.isNaN(e)?void 0:e)),z(o)!==e&&P(o,e,!0)},m=()=>{let e;e=z(o)===void 0?NaN:z(f)?Number.parseFloat(String(z(o))):Number.parseInt(String(z(o)),10),z(d)?e=Number.isNaN(e)?``:String(e):Number.isNaN(e)&&(e=null),n()!==e&&n(e)};ti(()=>{n(),B(()=>{p()})}),ti(()=>{z(o),B(()=>{m()})}),tue(e,{get min(){return z(c)},get max(){return z(l)},get step(){return z(u)},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onblur:()=>{p()},get value(){return z(o)},set value(e){P(o,e,!0)}}),k()}var Q_e=s((()=>{Q(),Y(),B$(),oc()}));function $_e(e,t){O(t,!0);let n=M(()=>rb(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=H(),a=I(i),o=e=>{var i=eve(),a=F(i,!0);D(i),R((e,t)=>{q(i,`lang`,z(n)),q(i,`dir`,e),W(a,t),i.dir=i.dir},[()=>ib(t.locale),()=>z(r).format(Number(t.currentValue))]),U(e,i)};G(a,e=>{t.currentValue!==void 0&&t.currentValue!==null&&t.currentValue!==``&&e(o)}),U(e,i),k()}var eve,tve=s((()=>{Q(),Y(),ub(),eve=V(`<p> </p>`)})),N7,P7,F7=s((()=>{p(),rp(),W4(),D8(),C7(),_A(),N7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=A(z4),{defaultLocale:c}=(a??i)._i18n,l=f(o[c]),u={...f(e),...l},d={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},p=[];return Object.keys(u).forEach(n=>{let r=uA({...d,keyPath:n});if(!r)return;let{widget:i=`text`,i18n:a=!1}=r;if([`text`,`string`,`richtext`,`markdown`].includes(i)&&[!0,`translate`].includes(a)&&(u[n]=e[n]??``),i===`hidden`&&[!0,`translate`].includes(a)){let{default:e}=r;e===`{{locale}}`&&(u[n]=t)}i===`object`&&[!0,`translate`,`duplicate`].includes(a)&&l[n]!==null&&delete u[n],([!1,`none`].includes(a)||p.some(e=>n===e||n.startsWith(`${e}.`)))&&(delete u[n],p.push(n))}),u},P7=e=>{z4.update(t=>{let{fields:n,defaultLocale:r,currentLocales:i,currentValues:a,validities:o,validationMessages:s}=t,c=!i[e];if(c&&!a[e]){let{collectionName:o,fileName:s,originalValues:l}=t,u=S7({fields:n,locale:e,defaultLocale:r});return{...t,currentLocales:{...i,[e]:c},originalValues:{...l,[e]:u},currentValues:{...a,[e]:E8({draft:{collectionName:o,fileName:s},locale:e,target:N7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})),nve,rve,ive=s((()=>{Sp(),_A(),zx(),nve=new Map,rve=({collectionName:e,fileName:t,keyPath:n,valueMap:r,isIndexFile:i=!1,locale:a,summaryTemplate:o})=>{let s={collectionName:e,fileName:t,keyPath:``,valueMap:r,isIndexFile:i};return o?o.replaceAll(/{{(.+?)}}/g,(e,t)=>{let[r,...i]=t.split(/\s*\|\s*/);return mA({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:i})}):hA({valueMap:r,locale:a,keyPath:n,keyPathRegex:Rx(nve,n,()=>RegExp(`^${gp(n)}\\.`)),getFieldArgs:s})}}));function ave(e,t){let n=Ia();O(t,!0),K(e,lve);let r=()=>j(z4,`$entryDraft`,a),i=()=>j(zA,`$isSmallScreen`,a),[a,o]=hn(),{fieldContext:s,valueStoreKey:c=`currentValues`}=Rt(`field-editor`)??{},l=s===`single-subfield-list-field`,u=J(t,`required`,3,!0),d=M(()=>t.fieldConfig.name),p=M(()=>T(t.fieldConfig.i18n,!1)),m=M(()=>t.fieldConfig.collapsed),h=M(()=>t.fieldConfig.summary),g=M(()=>t.fieldConfig.fields),_=M(()=>t.fieldConfig.types),v=M(()=>T(t.fieldConfig.typeKey,`type`)),y=M(()=>r()?.isIndexFile??!1),b=M(()=>r()?.collection),x=M(()=>r()?.collectionName??``),S=M(()=>r()?.collectionFile),C=M(()=>r()?.fileName),w=M(()=>(z(S)??z(b))?._i18n??Cb),ee=M(()=>z(w).defaultLocale),te=M(()=>jt(r()?.[c][t.locale])??{}),ne=M(()=>({collectionName:z(x),fileName:z(C),valueMap:z(te),isIndexFile:z(y)})),re=M(()=>Object.entries(z(te)).some(([e,n])=>e.startsWith(`${t.keyPath}.`)&&n!==void 0)),ie=M(()=>s===`rich-text-editor-component`||t.locale===z(ee)||z(p)!==!1),ae=M(()=>`${t.keyPath}#`),oe=M(()=>r()?.expanderStates?._[z(ae)]??!0),se=M(()=>Array.isArray(z(_))),ce=M(()=>`${t.keyPath}.${z(v)}`),le=M(()=>z(se)?z(_)?.find(({name:e})=>e===z(te)[z(ce)]):void 0),ue=M(()=>(z(se)?z(le)?.fields:z(g))??[]),de=M(()=>z(se)&&z(le)?.summary||z(h)),fe=M(()=>t.locale!==z(ee)&&z(p)===`duplicate`),E=()=>{if(l)return;let e=z(ae);O7({[e]:D7({key:e,locale:t.locale,collapsed:z(m)})})},pe=async({type:e}={})=>{mn(B4,!1),e&&(Object.keys(r()?.[c]??{}).forEach(n=>{(n===t.locale||z(p)===`duplicate`)&&_n(z4,B(r)[c][n][z(ce)]=e,B(r))}),await Bi());let n=Object.fromEntries(Object.entries(S7({fields:z(ue),locale:t.locale,defaultLocale:z(ee)})).map(([e,n])=>[`${t.keyPath}.${e}`,n])),i=t.locale===z(ee)?n:N7(n,t.locale);Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(_n(z4,B(r)[c][e]=Object.assign(n,f({...i,...n})),B(r)),delete r()[c][e][t.keyPath])}),mn(B4,!0)},me=()=>{mn(B4,!1),Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(_n(z4,B(r)[c][e][n]=null,B(r)),delete r()?.[c][e][n])}),_n(z4,B(r)[c][e][t.keyPath]=null,B(r)))}),mn(B4,!0)},he=()=>rve({...z(ne),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(de)});ic(()=>{E()});var ge=cve(),_e=I(ge),ve=e=>{{let n=M(()=>X(`add_x`,{values:{name:t.fieldLabel||z(d)}}));YI(e,{get label(){return z(n)},get checked(){return z(re)},get disabled(){return z(fe)},onChange:({detail:{checked:e}})=>{e?pe():me()}})}};G(_e,e=>{!z(se)&&!u()&&e(ve)});var ye=L(_e,2),be=e=>{m7(e,{get disabled(){return z(fe)},get fieldConfig(){return t.fieldConfig},addItem:pe})};G(ye,e=>{z(se)&&!z(re)&&e(be)});var xe=L(ye,2),Se=e=>{var r=sve(),a=F(r),o=e=>{{let t=e=>{var t=H(),n=I(t),r=e=>{{let t=e=>{zF(e,{name:`close`})},n=M(()=>X(`remove`));tI(e,{size:`small`,iconic:!0,get disabled(){return z(fe)},get"aria-label"(){return z(n)},onclick:()=>{me()},startIcon:t,$$slots:{startIcon:!0}})}};G(n,e=>{z(se)&&e(r)}),U(e,t)},r=M(()=>z(se)?z(le)?.label||z(le)?.name:``),i=M(()=>z(ue).length?()=>O7({[z(ae)]:!z(oe)}):void 0);h7(e,{get label(){return z(r)},get controlId(){return`object-${n}-item-list`},get expanded(){return z(oe)},get toggleExpanded(){return z(i)},endContent:t,$$slots:{endContent:!0}})}};G(a,e=>{l||e(o)});var s=L(a,2),c=F(s),u=e=>{var n=H();mo(I(n),17,()=>z(ue),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);U8(e,{children:(e,i)=>{{let i=M(()=>z(se)&&z(le)?.name?`${t.typedKeyPath}<${z(le).name}>.${z(n).name}`:z(r));r9(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,n)},d=e=>{let t=M(he);var r=H(),a=I(r),o=e=>{var r=ove(),a=F(r);{let e=M(()=>i()?2:1);qF(a,{get lines(){return z(e)},children:(e,n)=>{_t();var r=Fa();R(()=>W(r,z(t))),U(e,r)},$$slots:{default:!0}})}D(r),R(()=>q(r,`id`,`object-${n}-summary`)),U(e,r)};G(a,e=>{z(t)&&e(o)}),U(e,r)};G(c,e=>{z(oe)?e(u):e(d,-1)}),D(s),D(r),R(()=>{q(r,`aria-labelledby`,z(oe)?void 0:`object-${n}-summary`),q(s,`id`,`object-${n}-item-list`)}),U(e,r)};G(xe,e=>{(!(!u()||z(se))||z(re))&&z(ie)&&e(Se)}),U(e,ge),k(),o()}var ove,sve,cve,lve,uve=s((()=>{Q(),Y(),Z(),B$(),p(),oc(),K8(),a9(),Dge(),g7(),W4(),C7(),F7(),A7(),ive(),jb(),WA(),ove=V(`<div role="none" class="summary svelte-pauyt3"><!></div>`),sve=V(`<div role="group" class="wrapper svelte-pauyt3"><!> <div role="none" class="item-list"><!></div></div>`),cve=V(`<!> <!> <!>`,1),lve={hash:`svelte-pauyt3`,code:`.wrapper.svelte-pauyt3 {border-width:2px;border-color:var(--sui-secondary-border-color);border-radius:var(--sui-control-medium-border-radius);}.sui.checkbox + .wrapper.svelte-pauyt3 {& > .group {margin-top:8px;}}.summary.svelte-pauyt3 {padding:8px;}`}}));function dve(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>T(t.fieldConfig.typeKey,`type`)),c=M(()=>jt(n()?.currentValues[t.locale])??{}),l=M(()=>Object.entries(z(c)).some(([e,n])=>!!e.startsWith(`${t.keyPath}.`)&&!!n)),u=M(()=>Array.isArray(z(o))),d=M(()=>`${t.keyPath}.${z(s)}`),f=M(()=>z(u)?z(o)?.find(({name:e})=>e===z(c)[z(d)]):void 0),p=M(()=>z(f)?z(f).label||z(f).name:void 0),m=M(()=>(z(u)?z(f)?.fields:z(a))??[]);var h=H(),g=I(h),_=e=>{x_e(e,{get label(){return z(p)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(m),e=>e.name,(e,n)=>{let r=M(()=>`${t.keyPath}.${z(n).name}`);U8(e,{children:(e,i)=>{{let i=M(()=>z(u)&&z(f)?.name?`${t.typedKeyPath}<${z(f).name}>.${z(n).name}`:z(r));j7(e,{get keyPath(){return z(r)},get typedKeyPath(){return z(i)},get locale(){return t.locale},get fieldConfig(){return z(n)}})}},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{z(l)&&e(_)}),U(e,h),k(),i()}var fve=s((()=>{Q(),Y(),K8(),T_e(),M7(),W4()}));function pve(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),{valueStoreKey:a=`currentValues`}=Rt(`field-editor`)??{},o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.i18n),u=M(()=>t.fieldConfig.max),d=M(()=>T(t.fieldConfig.dropdown_threshold,5)),f=e=>{n()&&Object.keys(jt(n()[a])??{}).forEach(n=>{z(l)!==`duplicate`&&n!==t.locale||E7({locale:n,valueStoreKey:a,keyPath:t.keyPath,manipulate:e})})},p=e=>{f(({valueList:t})=>{t.push(e)})},m=e=>{f(({valueList:t})=>{t.splice(t.indexOf(e),1)})};var h=H(),g=I(h),_=e=>{Ooe(e,Xs({get disabled(){return s()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get options(){return t.options}},()=>({values:t.currentValue}),{get max(){return z(u)},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onAddValue:({detail:{value:e}})=>{p(e)},onRemoveValue:({detail:{value:e}})=>{m(e)},onReorder:({detail:{values:e}})=>{f(({valueList:t})=>{t.splice(0,t.length,...e)})}}))},v=e=>{$ae(e,{get"aria-labelledby"(){return`${t.fieldId??``}-label`},children:(e,n)=>{var r=H();mo(I(r),17,()=>t.options,({label:e,value:t})=>t,(e,n)=>{let r=()=>z(n).label,i=()=>z(n).value;{let n=M(()=>t.currentValue?.includes(i())??!1);YI(e,{get label(){return r()},get value(){return i()},get readonly(){return s()},get required(){return o()},get invalid(){return c()},get checked(){return z(n)},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{checked:e}})=>{e?p(i()):m(i())}})}}),U(e,r)},$$slots:{default:!0}})};G(g,e=>{t.options.length>z(d)?e(_):e(v,-1)}),U(e,h),k(),i()}var mve=s((()=>{Q(),Y(),B$(),oc(),W4(),n_e()}));function hve(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`options`,7),s=M(()=>T(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);ti(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),ti(()=>{!r()&&!o().some(({value:e})=>!e)&&o([{label:X(`unselected_option`),value:z(c)===`number`?null:``,searchValue:``},...o()])});var l=H(),u=I(l),d=e=>{NR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return n()},set value(e){n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;{let t=M(()=>i()===n());RL(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get searchValue(){return a()},get selected(){return z(t)},wrap:!0})}}),U(e,r)},$$slots:{default:!0}})},f=e=>{iR(e,{get readonly(){return i()},get required(){return r()},get invalid(){return a()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},onChange:({detail:{value:e}})=>{n(e)},children:(e,t)=>{var r=H();mo(I(r),17,o,({label:e,value:t})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value;{let t=M(()=>i()===n());sR(e,{get label(){return r()},get value(){return i()},get valueType(){return z(c)},get checked(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})};G(u,e=>{o().length>z(s)?e(d):e(f,-1)}),U(e,l),k()}var gve=s((()=>{Q(),Y(),Z(),B$()}));function _ve(e,t){O(t,!0);let n=J(t,`currentValue`,15),r=J(t,`required`,3,!0),i=J(t,`readonly`,3,!1),a=J(t,`invalid`,3,!1),o=J(t,`sortOptions`,3,!1),s=M(()=>t.fieldConfig.options),c=M(()=>t.fieldConfig.multiple),l=M(()=>z(c)?pve:hve),u=M(()=>{let e=z(s).map(e=>d(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>xp(e.label,t.label)),e});var f=H();oo(I(f),()=>JSON.stringify(z(u)),e=>{var o=H();Oo(I(o),()=>z(l),(e,o)=>{o(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get fieldId(){return t.fieldId},get fieldConfig(){return t.fieldConfig},get readonly(){return i()},get required(){return r()},get invalid(){return a()},get options(){return z(u)},get currentValue(){return n()},set currentValue(e){n(e)}})}),U(e,o)}),U(e,f),k()}var vve=s((()=>{Q(),Y(),p(),Sp(),mve(),gve()}));function yve(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=M(()=>t.fieldConfig.collection),u=M(()=>t.fieldConfig.file),d=M(()=>z(u)?[qy(z(l),z(u))].filter(e=>!!e):tk(z(l))),f=M(()=>n()?.currentValues[t.locale]),p=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),m=M(()=>({...t.fieldConfig,widget:`select`,options:Ak({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(d),currentLocaleValues:z(f),currentSlug:z(p)})}));var h=bve();_ve(F(h),{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return t.fieldId},get fieldLabel(){return t.fieldLabel},get fieldConfig(){return z(m)},get readonly(){return s()},get required(){return o()},get invalid(){return c()},sortOptions:!0,get currentValue(){return a()},set currentValue(e){a(e)}}),D(h),U(e,h),k(),i()}var bve,xve=s((()=>{Q(),Y(),vve(),ak(),Yy(),W4(),Mk(),bve=V(`<div role="none" class="wrapper"><!></div>`)}));function Sve(e,t){O(t,!0);let n=M(()=>t.fieldConfig.collection),r=M(()=>t.fieldConfig.file),i=M(()=>T(t.fieldConfig.multiple,!1)),a=M(()=>T(t.fieldConfig.value_field,`{{slug}}`)),o=M(()=>cb(t.locale)),s=M(()=>z(r)?[qy(z(n),z(r))].filter(e=>!!e):tk(z(n))),c=M(()=>Ak({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(s)})),l=M(()=>(z(i)?t.currentValue:[t.currentValue]).filter(e=>e!==void 0).map(e=>{let t=z(c).find(t=>t.value===e)?.label;return t&&t!==e?[`slug`,`{{slug}}`,`{{fields.slug}}`].includes(z(a))?t:`${t} (${e})`:e}));var u=H(),d=I(u),f=e=>{var n=Cve(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale),()=>z(o).format(z(l))]),U(e,n)};G(d,e=>{z(l).length&&e(f)}),U(e,u),k()}var Cve,wve=s((()=>{Q(),Y(),ak(),Yy(),Mk(),ub(),Cve=V(`<p> </p>`)})),I7,Tve,Eve,Dve,Ove,L7,R7=s((()=>{I7=/^.+?:\w+:/,Tve=[`rich_text`,`raw`],Eve={rich_text:`rich-text`,raw:`plain-text`},Dve=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],Ove={bold:`bold`,italic:`italic`,strikethrough:`strikethrough`,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`},L7=[`code-block`,`image`]})),kve,Ave,z7,jve,Mve=s((()=>{mC(),kve=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=oC(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=fC(t,n);if(e){let t=document.createElement(`input`);t.type=r,o&&(t.min=i),s&&(t.max=a),t.value=e,{rangeUnderflow:c,rangeOverflow:l}=t.validity}}return{validity:{rangeUnderflow:c,rangeOverflow:l},detail:{hasMin:o,hasMax:s,invalid:c||l}}},Ave=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),z7=e=>Ave.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),jve=(e,t)=>{if(e===`date`)return t;if(e===`time`)return z7(t);let[n,r]=t.split(`T`);return`${n}, ${z7(r)}`}})),B7,V7,Nve=s((()=>{Z(),_A(),mC(),Mve(),B7=({direction:e,limitKey:t,limitValue:n,fieldType:r,type:i,canAddMultiValue:a})=>r===`datetime`&&typeof n==`string`?X(`validation.range_${e}.${i}`,{values:{[t]:jve(i,n)}}):X(r===`number`?`validation.range_${e}.number`:a?`validation.range_${e}.add`:`validation.range_${e}.select`,{values:{[t]:n}}),V7=({validity:e,fieldConfig:t})=>{let n=[],{widget:r=`string`}=t,{pattern:i=[]}=t,a=r===`datetime`,o=a?oC(t):{},s=r===`string`?t.type??`text`:a?o.type:r===`number`?`number`:void 0,{min:c,max:l}=a?o:t,u=r===`list`||r===`keyvalue`||sA(t);if(e.valueMissing&&n.push(X(`validation.value_missing`)),e.tooShort){let{minlength:e}=t;n.push(X(`validation.too_short`,{values:{min:e}}))}if(e.tooLong){let{maxlength:e}=t;n.push(X(`validation.too_long`,{values:{max:e}}))}return e.rangeUnderflow&&n.push(B7({direction:`underflow`,limitKey:`min`,limitValue:c,fieldType:r,type:s,canAddMultiValue:u})),e.rangeOverflow&&n.push(B7({direction:`overflow`,limitKey:`max`,limitValue:l,fieldType:r,type:s,canAddMultiValue:u})),e.patternMismatch&&n.push(i[1]),e.typeMismatch&&n.push(X(`validation.type_mismatch.${s}`)),n}})),Pve,Fve=s((()=>{Pve=({keyPath:e,value:t,valueMap:n,fieldConfig:r,validities:i,locale:a})=>{let{output_code_only:o=!1,keys:s={code:`code`,lang:`lang`}}=r,c=(e.match(`(.+)\\.(?:${s.code}|${s.lang})$`)?.[1]??``)||e;return c in i[a]?{skip:!0,keyPath:c,value:t}:{skip:!1,keyPath:c,value:o?t:n[`${c}.${s.code}`]}}})),Ive,Lve=s((()=>{W4(),_A(),p7(),R7(),Ive=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=uA({...t,keyPath:c.replace(I7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=f7({entryDraft:z4,keyPath:c,locale:i});return a&&!u.length?n.valueMissing=!0:typeof o==`number`&&u.length<o?n.rangeUnderflow=!0:typeof s==`number`&&u.length>s&&(n.rangeOverflow=!0),{skip:!1,keyPath:c}}})),Rve,zve,Bve=s((()=>{Sp(),zx(),Rve=new Map,zve=({keyPath:e,value:t,valueEntries:n,validity:r,validities:i,locale:a,required:o,min:s,max:c})=>{if(e in i[a])return{skip:!0};let l=Rx(Rve,e,()=>RegExp(`^${gp(e)}\\.\\d+`)),u=Array.isArray(t)&&t.length?t.length:new Set(n.map(([e])=>e.match(l)?.[0]).filter(Boolean)).size;return o&&!u?r.valueMissing=!0:typeof s==`number`&&u<s?r.rangeUnderflow=!0:typeof c==`number`&&u>c&&(r.rangeOverflow=!0),{skip:!1}}})),Vve,Hve=s((()=>{_A(),Vve=({fieldConfig:e,locale:t,value:n})=>{let{value_type:r=`int`,min:i,max:a}=e,o=typeof i==`number`&&n!==null&&Number(n)<i;return{validity:{rangeUnderflow:o,rangeOverflow:!o&&typeof a==`number`&&n!==null&&Number(n)>a,typeMismatch:(r===`int`||r===`float`)&&dA({fieldConfig:e,locale:t})&&n===null}}}})),H7,Uve=s((()=>{H7=({fieldConfig:e,value:t})=>{let n=e,{widget:r=`string`,minlength:i,maxlength:a}=n,o=Number.isInteger(i)&&i<=(a??1/0),s=Number.isInteger(a)&&(i??0)<=a,c=t?[...t.trim()].length:0,l=o&&c<i,u=s&&c>a,d=!1;if(r===`string`&&t){let{type:e=`text`,prefix:r,suffix:i}=n,a=t;if(r&&a.startsWith(r)&&(a=a.slice(r.length)),i&&a.endsWith(i)&&(a=a.slice(0,-i.length)),e!==`text`){let t=document.createElement(`input`);t.type=e,t.value=a,{typeMismatch:d}=t.validity}e===`email`&&!d&&!a.split(`@`)[1]?.includes(`.`)&&(d=!0)}return{validity:{tooShort:l,tooLong:u,typeMismatch:d},detail:{count:c,hasMin:o,hasMax:s,invalid:l||u||d}}}})),U7,Wve,Gve,Kve,qve,Jve,W7,Yve,G7,Xve=s((()=>{rp(),W4(),Nve(),_A(),CC(),Fve(),Mve(),Lve(),g5(),Bve(),Hve(),R7(),Uve(),ZO(),U7=/\.\d+$/,Wve={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},Gve={datetime:kve,number:Vve,string:H7,text:H7},Kve={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},qve=({value:e,required:t,validation:n,validity:r})=>{let i=typeof e==`string`?e.trim():e;if(t&&(i==null||i===``)&&(r.valueMissing=!0),Array.isArray(n)){let e=XO(n[0]);e&&!e.test(String(i))&&(r.patternMismatch=!0)}},Jve=e=>{let{draft:t,locale:n,valueMap:r,componentName:i,validities:a}=e,{collection:o,collectionName:s,fileName:c,collectionFile:l,files:u,isIndexFile:d}=t,{keyPath:f,value:p}=e,m={collectionName:s,fileName:c,componentName:i,valueMap:r,keyPath:f.replace(I7,``),isIndexFile:d},h=uA({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=sA(h),{min:b=0,max:x=1/0}=$ne.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),ee=dA({fieldConfig:h,locale:n}),T={...Wve};if(g===`list`||y){let{skip:e}=zve({keyPath:f,value:p,valueEntries:w,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e)return}if(g===`object`&&ee&&!p&&(T.valueMissing=!0),g===`keyvalue`){let e=Ive({keyPath:f,getFieldArgs:m,validity:T,validities:a,locale:n,required:ee,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=Pve({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}xC.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||qve({value:p,required:ee,validation:v,validity:T});let te=Gve[g];return te&&Object.assign(T,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(T,Kve)},W7=e=>{let{validities:t,locale:n,keyPath:r}=e,i=Jve(e),a=!0;return i&&(t[n][r]=i,i.valid||(a=!1)),a},Yve=({fieldConfig:e,validateArgs:t})=>{let{validities:n,locale:r,keyPath:i}=t,a=n[r][i]?.valid??W7(t),{widget:o=`string`}=e;return o===`list`&&!h5(e).hasSubFields||sA(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},G7=e=>{let t=A(z4),{collectionName:n,fileName:r,isIndexFile:i,currentLocales:a}=t,o={},s={},c={collectionName:n,fileName:r,isIndexFile:i,keyPath:``,valueMap:{}},l=!0;return Object.entries(t[e]).forEach(([e,n])=>{let r=Object.entries(n);if(!a[e]){o[e]=Object.fromEntries(r.map(([e])=>[e,{valid:!0}])),s[e]=Object.fromEntries(r.map(([e])=>[e,[]]));return}let i={draft:t,locale:e,valueMap:n,validities:o};o[e]={},s[e]={},r.forEach(([t,r])=>{let[a]=t.match(I7)??[],u=a?n[`${a}__sc_component_name`]:void 0,d=uA({...c,keyPath:t.replace(I7,``),valueMap:n,componentName:u});if(!d)return;if(U7.test(t)){let n=t.replace(U7,``),{valid:r,validateItems:a}=Yve({fieldConfig:d,validateArgs:{...i,keyPath:n,value:``,componentName:u}});if(r||(l=!1),!(n in s[e])){let t=o[e][n];t&&(s[e][n]=V7({validity:t,fieldConfig:d}))}if(!a)return}W7({...i,keyPath:t,value:r,componentName:u})||(l=!1);let f=o[e][t];f&&(s[e][t]=V7({validity:f,fieldConfig:d}))})}),{valid:l,validities:o,validationMessages:s}}}));function Zve(e,t){let n=Ia();O(t,!0),K(e,nye);let r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`mode`,3,`block`),s=J(t,`collapsed`,3,!1),c=J(t,`values`,7),l=J(t,`onChange`,3,()=>void 0),u=N(void 0),d=N(``),f=N(``),p=N(``),m=N(!s()),h=N(!1),g=N(void 0),_=N(!1),v=M(()=>z(f)?`${z(f)}:${n}:`:``),y=M(()=>z(p)?`${z(p)}:${n}:`:``),b=M(()=>t.fields.find(e=>e.widget===`string`||e.widget===`text`||!e.widget)),x=()=>z(u),S=`extraValues`,C,w=M(()=>{if(r()&&z(d)&&z(f))return uc(Object.fromEntries(Object.entries(jt(r()[S][z(d)]??{})).filter(([e])=>e.startsWith(z(v))).map(([e,t])=>[e.replace(z(v),``),t])))}),ee=()=>{P(g,z(w)?{...z(w)}:void 0,!0),P(h,!0)},T=()=>{r()&&z(d)&&z(f)&&z(g)&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.assign(r()[S][z(d)],Object.fromEntries(Object.entries(lc(z(g))).map(([e,t])=>[`${z(v)}${e}`,t]))))},te=()=>{P(h,!1),l()(new CustomEvent(`remove`))},ne=()=>{let{validities:e}=G7(`extraValues`);z4.update(t=>t&&{...t,validities:Object.fromEntries(Object.keys(t.validities).map(n=>[n,{...t.validities[n],...e[n]}]))});let t=e[z(d)]??{};Object.entries(t).some(([e,t])=>e.startsWith(z(v))&&!t.valid)||(P(_,!1),P(h,!1),l()(new CustomEvent(`update`,{detail:z(w)})),P(g,void 0))},re=()=>{z(_)?(P(h,!1),l()(new CustomEvent(`remove`))):(T(),P(h,!1),P(g,void 0))},ie=(e,n)=>{if(!e||!n)return null;let r=lc(n),i=e.replaceAll(/{{(.+?)}}/g,(e,n)=>{let[i,...a]=n.trim().split(/\s*\|\s*/),o=i.replace(/^fields\./,``),s=r[o];return s==null?``:(a.length&&(s=yC({fieldConfig:t.fields.find(e=>e.name===o),value:s,transformations:a,locale:z(d)})),String(s))});return i!==e.replaceAll(/{{.+?}}/g,``)&&i.trim()?i.trim():null},ae=M(()=>{let e=t.fields.some(e=>z(w)?.[e.name]!==void 0)?z(w):c();if(t.summary&&e){let n=ie(t.summary,e);if(n)return n}if(z(b)&&e){let t=e[z(b).name];if(typeof t==`string`&&t.trim())return t.trim()}return t.label});ic(()=>(window.requestAnimationFrame(()=>{let e=z(u)?.closest(`[data-locale]`),t=z(u)?.closest(`[data-key-path]`);P(d,e?.dataset.locale,!0),P(f,t?.dataset.keyPath,!0),o()!==`dialog`&&P(p,t?.dataset.typedKeyPath,!0),P(_,!c()),o()===`dialog`&&z(_)&&ee()}),()=>{r()&&(Object.keys(r()[S][z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r()[S][z(d)][e]}),Object.keys(r().validities[z(d)]??{}).forEach(e=>{e.startsWith(z(v))&&delete r().validities[z(d)][e]}))})),ti(()=>{c(),z(d),z(f),B(()=>{if(r()&&z(d)&&z(f)){let{defaultLocale:e}=r();if(c(c()??uc(S7({fields:t.fields,locale:z(d),defaultLocale:e}))??{}),c().__sc_component_name=t.componentName,!(0,K7.default)(c(),z(w))){let e=Object.fromEntries(Object.entries(lc(c())).map(([e,t])=>[`${z(v)}${e}`,t]));z4.update(t=>t&&(Object.assign(t[S][z(d)],e),t))}}})}),ti(()=>{o()!==`dialog`&&(z(w),B(()=>{(0,K7.default)(C,z(w))||(l()(new CustomEvent(`update`,{detail:z(w)})),C=z(w))}))});var oe={getElement:x},se=H(),ce=I(se),le=e=>{var n=eye(),r=I(n),i=F(r,!0);D(r),Us(r,e=>P(u,e),()=>z(u)),$I(L(r,2),{get title(){return t.label},size:`large`,showOk:!1,showCancel:!1,get open(){return z(h)},set open(e){P(h,e,!0)},footer:e=>{var t=Qve(),n=I(t);{let e=M(()=>X(`remove`));tI(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{te()}})}var r=L(n,2);UI(r,{flex:!0});var i=L(r,2);{let e=M(()=>X(z(_)?`insert`:`update`));tI(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{ne()}})}var a=L(i,2);{let e=M(()=>X(`cancel`));tI(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{re()}})}U(e,t)},children:(e,n)=>{var r=$ve(),i=F(r),a=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(v)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})}),U(e,n)};G(i,e=>{z(d)&&z(f)&&e(a)}),D(r),U(e,r)},$$slots:{footer:!0,default:!0}}),R(()=>{q(r,`aria-label`,t.label),q(r,`title`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),W(i,z(ae))}),Sa(`click`,r,()=>{ee()}),Sa(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),ee()),e.key===`Backspace`&&(e.preventDefault(),l()(new CustomEvent(`remove`)))}),U(e,n)},ue=e=>{var r=tye(),i=F(r);h7(i,{get label(){return t.label},get controlId(){return`object-${n}-item-list`},get expanded(){return z(m)},set expanded(e){P(m,e,!0)},endContent:e=>{{let t=e=>{zF(e,{name:`close`})},n=M(()=>X(`remove`));tI(e,{size:`small`,iconic:!0,get"aria-label"(){return z(n)},onclick:()=>{l()(new CustomEvent(`remove`))},startIcon:t,$$slots:{startIcon:!0}})}},$$slots:{endContent:!0}});var a=L(i,2),o=F(a),s=e=>{var n=H();mo(I(n),17,()=>t.fields,e=>e.name,(e,t)=>{U8(e,{children:(e,n)=>{r9(e,{get locale(){return z(d)},get keyPath(){return`${z(v)??``}${z(t).name??``}`},get typedKeyPath(){return`${z(y)??``}${z(t).name??``}`},get fieldConfig(){return z(t)},context:`rich-text-editor-component`,valueStoreKey:S})},$$slots:{default:!0}})}),U(e,n)};G(o,e=>{z(d)&&z(f)&&z(m)&&e(s)}),D(a),D(r),Us(r,e=>P(u,e),()=>z(u)),R(()=>{q(r,`aria-label`,t.label),q(r,`data-key-path-prefix`,z(v)),q(r,`data-component-name`,t.componentName),q(a,`id`,`object-${n}-item-list`)}),xa(`keydown`,r,e=>{e.stopPropagation()},!0),Sa(`keydown`,r,e=>{!e.target.matches(`button, input, textarea`)&&e.key!==`Tab`&&e.preventDefault(),e.target===z(u)&&e.key===`Backspace`&&l()(new CustomEvent(`remove`))}),U(e,r)};G(ce,e=>{o()===`dialog`?e(le):e(ue,-1)}),U(e,se);var de=k(oe);return a(),de}var K7,Qve,$ve,eye,tye,nye,rye=s((()=>{Q(),Y(),Z(),B$(),K7=u(YM()),dc(),oc(),K8(),a9(),g7(),bC(),W4(),C7(),Xve(),Qve=V(`<!> <!> <!> <!>`,1),$ve=V(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),eye=V(`<span role="button" class="placeholder svelte-1l1n28m" contenteditable="false" tabindex="0"> </span> <!>`,1),tye=V(`<div role="group" class="wrapper svelte-1l1n28m" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),nye={hash:`svelte-1l1n28m`,code:`.wrapper.svelte-1l1n28m {display:inline-block; /* Cancel underline if the component is within a link */border:1px solid var(--sui-secondary-border-color);border-radius:4px;width:100%;color:var(--sui-secondary-foreground-color); /* Reset color within a link */background-color:var(--sui-primary-background-color);white-space:normal;-webkit-user-select:none;user-select:none;&:focus {outline-color:var(--sui-primary-accent-color-translucent);}
998
+
999
+ /* Make the input fields compact within the built-in image component */&:is([data-component-name='image']:where(.svelte-1l1n28m), [data-component-name='linked-image']:where(.svelte-1l1n28m)) {
1000
+ @media (768px <= width) {[data-field-type] {border-width:0;}[data-field-type='string'] {display:flex;align-items:center;gap:8px;padding-block:0 16px;h4 {margin-bottom:0 !important;}.field-wrapper {flex:auto;}}
1001
+ }button {margin:var(--sui-focus-ring-width);}}& + .wrapper {margin-top:16px;}}.placeholder.svelte-1l1n28m {display:inline;border:dashed 1px currentColor;border-color:hsl(from currentColor h s l / 0.5);border-radius:2px;padding-inline:0.4em;cursor:pointer;-webkit-user-select:none;user-select:none;&:hover {border-color:currentColor;}&:focus {outline:2px solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}}.fields.svelte-1l1n28m {display:flex;flex-direction:column;gap:16px;}`},Ca([`click`,`keydown`])})),iye,aye=s((()=>{JK(),oc(),rye(),Ik(),iye=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=Nk(s),d=l?.({}),f=c({}),p=typeof d==`string`?d.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName??(typeof f==`string`?f.trim().match(/^<(?<tagName>[a-z]+)/i)?.groups?.tagName:void 0):void 0;class m extends SK{__props;constructor(e,t){super(t),this.__props=e}static getType(){return t}isInline(){return!u}static clone(e){return new m(e.__props,e.__key)}static importJSON(e){return new m().updateFromJSON(e)}exportJSON(){return{...Pk(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,u=()=>{l||(l=!0,Va(c))};return c=za(Zve,{target:document.createElement(`div`),props:{componentName:t,label:n,collapsed:r,mode:i,summary:a,fields:o,values:this.__props,onChange:async({type:t,detail:n})=>{await Bi(),s??=FV(e);let{activeElement:r}=document,i=r,a=i?.matches(`[contenteditable="true"]`)?window.getSelection():null,o=a&&a.rangeCount>0?a.getRangeAt(0).cloneRange():null;s?.update(()=>{if(t===`update`)try{this.getWritable().__props=n}catch{}t===`remove`&&(u(),this.remove())},{discrete:!0,onUpdate:()=>{i&&document.body.contains(i)&&(i.focus(),o&&a&&(a.removeAllRanges(),a.addRange(o)))}})}}}),Tn(),e=c.getElement(),window.requestAnimationFrame(()=>{e.focus(),e.closest(`.field`)?.addEventListener(`Unmount`,u,{once:!0});let{parentElement:t}=e;if(t){let n=new MutationObserver(()=>{e.isConnected||(u(),n.disconnect())});n.observe(t,{childList:!0})}}),e}exportDOM(){return{element:this.createDOM()}}static importDOM(){let e={};return p&&(e[p]=()=>({conversion:e=>({node:new m(Object.fromEntries(o.map(({name:t})=>[t,e[t]??``])))}),priority:3})),t===`linked-image`&&Object.assign(e,{a:e=>{if(e.firstChild?.nodeName.toLowerCase()===`img`){let{href:t}=e,{src:n,alt:r,title:i}=e.firstChild;return{conversion:()=>({node:new m({src:n,alt:r,title:i,link:t}),after:()=>[]}),priority:4}}return null}}),e}updateDOM(){return!1}}return m}})),oye,sye=s((()=>{Ik(),oye=({componentDef:e,CustomNode:t})=>{let{id:n,pattern:r,fromBlock:i,toBlock:a}=e,o=new RegExp(r.source,r.flags.replace(`g`,``)),s=e=>i?.(e)??e.groups??{},c=e=>e instanceof t&&e.getType()===n,l=e=>c(e)?a(Pk(e.__props??{})):null;return Nk(r)?{type:`multiline-element`,dependencies:[t],regExpStart:/^./,regExpEnd:{optional:!0,regExp:/.$/},handleImportAfterStartMatch:({lines:e,rootNode:n,startLineIndex:r})=>{let i=e.slice(r).join(`
951
1002
  `),[a]=i.match(o)??[];if(!a||!i.startsWith(a))return null;let c=a.match(o),l=r+a.split(`
952
- `).length-1;return c?(n.append(new t(s(c))),[!0,l]):[!1,l]},replace:()=>void 0,export:l}:{type:`text-match`,dependencies:[t],importRegExp:o,regExp:o,replace:(e,n)=>{e.replace(new t(s(n)))},export:l}}})),q7,cye,lye,uye=s((()=>{aye(),sye(),q7=new Map,cye=e=>{let t=iye(e);return{node:t,createNode:e=>new t(e),transformer:oye({componentDef:e,CustomNode:t})}},lye=class{constructor(e){let{id:t}=e,n=q7.get(t),r=n??cye(e);n||q7.set(t,r),Object.assign(this,{...e,...r})}}}));function dye(e,t){O(t,!0),K(e,pye);let n=()=>j(JP,`$cmsConfig`,i),r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=n()?.field_defaults?.richtext??{},{fieldContext:s=void 0}=Rt(`field-editor`)??{},c=s===`rich-text-editor-component`,l=J(t,`currentValue`,15),u=J(t,`required`,3,!0),d=J(t,`readonly`,3,!1),f=J(t,`invalid`,3,!1),p=N(void 0),m=N(``),h=0,g=M(()=>T(t.fieldConfig.modes,()=>o.modes??[...Tve],!0)),_=M(()=>T(t.fieldConfig.buttons,()=>o.buttons??[...Dve],!0)),v=M(()=>T(t.fieldConfig.editor_components,()=>o.editor_components??[...L7,...Kk.keys()],!0)),y=M(()=>T(t.fieldConfig.linked_images,()=>o.linked_images??!0,!0)),b=M(()=>T(t.fieldConfig.minimal,()=>o.minimal??!1,!0)),x=M(()=>z(g).map(e=>Eve[e]).filter(Boolean)),S=M(()=>[...z(_),...z(v).includes(`code-block`)?[`code-block`]:[]].map(e=>Ove[e]).filter(Boolean)),C=M(()=>c?[]:z(v).map(e=>Yk(e===`image`&&z(y)?`linked-image`:e)).filter(e=>!!e).map(e=>new lye(e))),w=M(()=>z(C).find(({id:e})=>e===`image`||e===`linked-image`)),ee=async({target:e,images:t})=>{let n=e?.closest(`div`),i=FV(n);if(!r()||!z(w)||!n?.matches(`.lexical-root`)||!i)return;let a=r(),{collectionName:o,fileName:s,isIndexFile:c}=a,l=z(w).fields?.find(({name:e})=>e===`src`),{config:u}=nF({fieldConfig:l}),d=B5({collectionName:o,fileName:s,isIndexFile:c}),f=Object.values(d).find(({enabled:e})=>e)?.folder;for(let{file:e,src:n,alt:r=``}of t){let t=n;if(e){let{value:n}=await Y5({draft:a,resource:{file:e,folder:f},libraryConfig:u});t=n}if(!t)continue;let o=t;i.update(()=>{YB([z(w).createNode({src:o,alt:r}),CV()])})}},te=async e=>{let{target:t,clipboardData:n}=e,r=n?.items;if(!r)return;let i=[],a=[...r].findIndex(({kind:e,type:t})=>e===`file`&&Hw.includes(t)),o=[...r].findIndex(({kind:e,type:t})=>e===`string`&&t===`text/html`);if(a>-1&&o>-1){let t=a>-1?r[a].getAsFile():void 0;if(!t)return;r.clear(),e.stopPropagation();let n=``,s=t.name,c=await new Promise(e=>{r[o].getAsString(t=>{e(new DOMParser().parseFromString(t,`text/html`).querySelector(`img`))})});if(c&&(n=c.alt,/^https?:/.test(c.src))){let e=new URL(c.src).pathname.split(`/`).pop()??``;(Rw.test(e)||Vw.test(e))&&(s=e)}i=[{file:new File([t],s,{type:t.type}),alt:n}]}else i=[...n.files].filter(({type:e})=>Hw.includes(e)).map(e=>({file:e}));i.length&&(i=i.map(({file:e,alt:t},n)=>{if(e?.name===`image.png`){let{year:t,month:r,day:a,hour:o,minute:s,second:c}=XS(),l=`${t}${r}${a}-${o}${s}${c}${i.length>1?`-${n+1}`:``}.png`;e=new File([e],l,{type:e.type})}return{file:e,alt:t}}),await ee({target:t,images:i}))},ne=async e=>{let{target:t,dataTransfer:n}=e,r=n?.files,i=[];if(r?.length)i=[...r].filter(({type:e})=>Hw.includes(e)).map(e=>({file:e}));else{let t=e.dataTransfer?.getData(`text/html`);if(t){let e=new DOMParser().parseFromString(t,`text/html`).querySelector(`img`);if(e){let{src:t,alt:n}=e,r=t.match(/^data:(?<type>image\/.+?);base64,.+/),a;if(r){let e=r.groups?.type??``;if(Hw.includes(e))try{let n=await(await fetch(t)).blob(),{year:r,month:i,day:o,hour:s,minute:c,second:l}=XS(),u=`${r}${i}${o}-${s}${c}${l}.${e.split(`/`)[1]}`;a=new File([n],u,{type:e})}catch{return}}i=[{file:a,src:t,alt:n}]}}}i.length&&await ee({target:t,images:i})},re=()=>{let e=typeof l()==`string`?l():``;z(m)!==e&&P(m,e,!0),!(!r()||c)&&(window.clearTimeout(h),h=window.setTimeout(()=>{Object.keys(r()?.extraValues[t.locale]??{}).forEach(e=>{let[n]=e.match(I7)??[];n?.startsWith(`${t.keyPath}:`)&&!z(p)?.querySelector(`[data-key-path-prefix="${n}"]`)&&delete r().extraValues[t.locale][e]})},500))},ie=()=>{let e=z(m);l()!==e&&l(e)};ti(()=>{l(),B(()=>{re()})}),ti(()=>{z(m),B(()=>{ie()})});var ae=fye();let oe;eo(F(ae),Jx,null,e=>{var n=H();oo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{{let n=M(()=>rb(t.locale)),r=M(()=>ib(t.locale));$le(e,{get lang(){return z(n)},get dir(){return z(r)},get modes(){return z(x)},get buttons(){return z(S)},get components(){return z(C)},flex:!0,get readonly(){return d()},get required(){return u()},get invalid(){return f()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,onpastecapture:e=>{te(e)},ondrop:e=>{ne(e)},get value(){return z(m)},set value(e){P(m,e,!0)}})}}),U(e,n)}),D(ae),Us(ae,e=>P(p,e),()=>z(p)),R(()=>oe=ss(ae,1,`wrapper svelte-duifo7`,null,oe,{minimal:z(b)})),U(e,ae),k(),a()}var fye,pye,mye=s((()=>{Q(),Y(),B$(),ZS(),Yx(),JK(),oc(),$P(),W4(),W5(),X5(),R7(),uye(),Xk(),ub(),rF(),Ww(),fye=V(`<div role="none"><!></div>`),pye={hash:`svelte-duifo7`,code:`.wrapper.svelte-duifo7 {display:contents;}.wrapper.minimal.svelte-duifo7 :is([role=textbox], textarea) {overflow:auto;max-height:240px;}
953
- @media (width < 768px) {.wrapper.svelte-duifo7 .sui.text-editor {margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}.wrapper.svelte-duifo7 :is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
954
- }`}}));function hye(){return{useNewRenderer:!0,renderer:{heading(...e){return BE.Renderer.prototype.heading.call(this,...e).replace(/^<(h\d)/,`<$1 dir="auto"`)},list(...e){return BE.Renderer.prototype.list.call(this,...e).replace(/^<(ol|ul)/,`<$1 dir="auto"`)},paragraph(...e){return BE.Renderer.prototype.paragraph.call(this,...e).replace(/^<p/,`<p dir="auto"`)}}}}var gye=s((()=>{lO()})),_ye=c((e=>{
1003
+ `).length-1;return c?(n.append(new t(s(c))),[!0,l]):[!1,l]},replace:()=>void 0,export:l}:{type:`text-match`,dependencies:[t],importRegExp:o,regExp:o,replace:(e,n)=>{e.replace(new t(s(n)))},export:l}}})),q7,cye,lye,uye=s((()=>{aye(),sye(),q7=new Map,cye=e=>{let t=iye(e);return{node:t,createNode:e=>new t(e),transformer:oye({componentDef:e,CustomNode:t})}},lye=class{constructor(e){let{id:t}=e,n=q7.get(t),r=n??cye(e);n||q7.set(t,r),Object.assign(this,{...e,...r})}}}));function dye(e,t){O(t,!0),K(e,pye);let n=()=>j(JP,`$cmsConfig`,i),r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=n()?.field_defaults?.richtext??{},{fieldContext:s=void 0}=Rt(`field-editor`)??{},c=s===`rich-text-editor-component`,l=J(t,`currentValue`,15),u=J(t,`required`,3,!0),d=J(t,`readonly`,3,!1),f=J(t,`invalid`,3,!1),p=N(void 0),m=N(``),h=0,g=M(()=>T(t.fieldConfig.modes,()=>o.modes??[...Tve],!0)),_=M(()=>T(t.fieldConfig.buttons,()=>o.buttons??[...Dve],!0)),v=M(()=>T(t.fieldConfig.editor_components,()=>o.editor_components??[...L7,...Kk.keys()],!0)),y=M(()=>T(t.fieldConfig.linked_images,()=>o.linked_images??!0,!0)),b=M(()=>T(t.fieldConfig.minimal,()=>o.minimal??!1,!0)),x=M(()=>z(g).map(e=>Eve[e]).filter(Boolean)),S=M(()=>[...z(_),...z(v).includes(`code-block`)?[`code-block`]:[]].map(e=>Ove[e]).filter(Boolean)),C=M(()=>c?[]:z(v).map(e=>Yk(e===`image`&&z(y)?`linked-image`:e)).filter(e=>!!e).map(e=>new lye(e))),w=M(()=>z(C).find(({id:e})=>e===`image`||e===`linked-image`)),ee=async({target:e,images:t})=>{let n=e?.closest(`div`),i=FV(n);if(!r()||!z(w)||!n?.matches(`.lexical-root`)||!i)return;let a=r(),{collectionName:o,fileName:s,isIndexFile:c}=a,l=z(w).fields?.find(({name:e})=>e===`src`),{config:u}=nF({fieldConfig:l}),d=B5({collectionName:o,fileName:s,isIndexFile:c}),f=Object.values(d).find(({enabled:e})=>e)?.folder;for(let{file:e,src:n,alt:r=``}of t){let t=n;if(e){let{value:n}=await Y5({draft:a,resource:{file:e,folder:f},libraryConfig:u});t=n}if(!t)continue;let o=t;i.update(()=>{YB([z(w).createNode({src:o,alt:r}),CV()])})}},te=async e=>{let{target:t,clipboardData:n}=e,r=n?.items;if(!r)return;let i=[],a=[...r].findIndex(({kind:e,type:t})=>e===`file`&&Hw.includes(t)),o=[...r].findIndex(({kind:e,type:t})=>e===`string`&&t===`text/html`);if(a>-1&&o>-1){let t=a>-1?r[a].getAsFile():void 0;if(!t)return;r.clear(),e.stopPropagation();let n=``,s=t.name,c=await new Promise(e=>{r[o].getAsString(t=>{e(new DOMParser().parseFromString(t,`text/html`).querySelector(`img`))})});if(c&&(n=c.alt,/^https?:/.test(c.src))){let e=new URL(c.src).pathname.split(`/`).pop()??``;(Rw.test(e)||Vw.test(e))&&(s=e)}i=[{file:new File([t],s,{type:t.type}),alt:n}]}else i=[...n.files].filter(({type:e})=>Hw.includes(e)).map(e=>({file:e}));i.length&&(i=i.map(({file:e,alt:t},n)=>{if(e?.name===`image.png`){let{year:t,month:r,day:a,hour:o,minute:s,second:c}=XS(),l=`${t}${r}${a}-${o}${s}${c}${i.length>1?`-${n+1}`:``}.png`;e=new File([e],l,{type:e.type})}return{file:e,alt:t}}),await ee({target:t,images:i}))},ne=async e=>{let{target:t,dataTransfer:n}=e,r=n?.files,i=[];if(r?.length)i=[...r].filter(({type:e})=>Hw.includes(e)).map(e=>({file:e}));else{let t=e.dataTransfer?.getData(`text/html`);if(t){let e=new DOMParser().parseFromString(t,`text/html`).querySelector(`img`);if(e){let{src:t,alt:n}=e,r=t.match(/^data:(?<type>image\/.+?);base64,.+/),a;if(r){let e=r.groups?.type??``;if(Hw.includes(e))try{let n=await(await fetch(t)).blob(),{year:r,month:i,day:o,hour:s,minute:c,second:l}=XS(),u=`${r}${i}${o}-${s}${c}${l}.${e.split(`/`)[1]}`;a=new File([n],u,{type:e})}catch{return}}i=[{file:a,src:t,alt:n}]}}}i.length&&await ee({target:t,images:i})},re=()=>{let e=typeof l()==`string`?l():``;z(m)!==e&&P(m,e,!0),!(!r()||c)&&(window.clearTimeout(h),h=window.setTimeout(()=>{Object.keys(r()?.extraValues[t.locale]??{}).forEach(e=>{let[n]=e.match(I7)??[];n?.startsWith(`${t.keyPath}:`)&&!z(p)?.querySelector(`[data-key-path-prefix="${n}"]`)&&delete r().extraValues[t.locale][e]})},500))},ie=()=>{let e=z(m);l()!==e&&l(e)};ti(()=>{l(),B(()=>{re()})}),ti(()=>{z(m),B(()=>{ie()})});var ae=fye();let oe;eo(F(ae),Jx,null,e=>{var n=H();oo(I(n),()=>JSON.stringify(t.fieldConfig),e=>{{let n=M(()=>rb(t.locale)),r=M(()=>ib(t.locale));$le(e,{get lang(){return z(n)},get dir(){return z(r)},get modes(){return z(x)},get buttons(){return z(S)},get components(){return z(C)},flex:!0,get readonly(){return d()},get required(){return u()},get invalid(){return f()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,onpastecapture:e=>{te(e)},ondrop:e=>{ne(e)},get value(){return z(m)},set value(e){P(m,e,!0)}})}}),U(e,n)}),D(ae),Us(ae,e=>P(p,e),()=>z(p)),R(()=>oe=ss(ae,1,`wrapper svelte-duifo7`,null,oe,{minimal:z(b)})),U(e,ae),k(),a()}var fye,pye,mye=s((()=>{Q(),Y(),B$(),ZS(),Yx(),JK(),oc(),$P(),W4(),W5(),X5(),R7(),uye(),Xk(),ub(),rF(),Ww(),fye=V(`<div role="none"><!></div>`),pye={hash:`svelte-duifo7`,code:`.wrapper.svelte-duifo7 {display:contents;&.minimal {:is([role='textbox'], textarea) {overflow:auto;max-height:240px;}}
1004
+ @media (width < 768px) {.sui.text-editor {
1005
+ /* Remove the section padding */margin:0 calc(var(--field-editor-padding) * -1) calc(var(--field-editor-padding) * -1);width:100dvw;}:is(.sui.toolbar, .lexical-root, textarea) {border:0;border-radius:0;}
1006
+ }}`}}));function hye(){return{useNewRenderer:!0,renderer:{heading(...e){return BE.Renderer.prototype.heading.call(this,...e).replace(/^<(h\d)/,`<$1 dir="auto"`)},list(...e){return BE.Renderer.prototype.list.call(this,...e).replace(/^<(ol|ul)/,`<$1 dir="auto"`)},paragraph(...e){return BE.Renderer.prototype.paragraph.call(this,...e).replace(/^<p/,`<p dir="auto"`)}}}}var gye=s((()=>{lO()})),_ye=c((e=>{
955
1007
  /**
956
1008
  * @license React
957
1009
  * scheduler.production.js
@@ -992,18 +1044,22 @@ Error generating stack: `+e.message+`
992
1044
  `).replace(Cd,``)}function Td(e,t){return t=wd(t),wd(e)===t}function Ed(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Qt(e,``+r);break;case`className`:Rt(e,`class`,r);break;case`tabIndex`:Rt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Rt(e,n,r);break;case`style`:tn(e,r,o);break;case`data`:if(t!==`object`){Rt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Ed(e,t,`name`,a.name,a,null),Ed(e,t,`formEncType`,a.formEncType,a,null),Ed(e,t,`formMethod`,a.formMethod,a,null),Ed(e,t,`formTarget`,a.formTarget,a,null)):(Ed(e,t,`encType`,a.encType,a,null),Ed(e,t,`method`,a.method,a,null),Ed(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=on(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`onScroll`:r!=null&&fd(`scroll`,e);break;case`onScrollEnd`:r!=null&&fd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=on(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:fd(`beforetoggle`,e),fd(`toggle`,e),Lt(e,`popover`,r);break;case`xlinkActuate`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:zt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:zt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Lt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=rn.get(n)||n,Lt(e,n,r))}}function Dd(e,t,n,r,a,o){switch(n){case`style`:tn(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Qt(e,``+r);break;case`onScroll`:r!=null&&fd(`scroll`,e);break;case`onScrollEnd`:r!=null&&fd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=sn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!At.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[D]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Lt(e,n,r)}}}function Od(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:fd(`error`,e),fd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ed(e,t,o,s,n,null)}}a&&Ed(e,t,`srcSet`,n.srcSet,n,null),r&&Ed(e,t,`src`,n.src,n,null);return;case`input`:fd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Ed(e,t,r,d,n,null)}}qt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in fd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Ed(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Yt(e,!!r,n,!0):Yt(e,!!r,t,!1);return;case`textarea`:for(s in fd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Ed(e,t,s,c,n,null)}Zt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Ed(e,t,l,r,n,null)}return;case`dialog`:fd(`beforetoggle`,e),fd(`toggle`,e),fd(`cancel`,e),fd(`close`,e);break;case`iframe`:case`object`:fd(`load`,e);break;case`video`:case`audio`:for(r=0;r<ld.length;r++)fd(ld[r],e);break;case`image`:fd(`error`,e),fd(`load`,e);break;case`details`:fd(`toggle`,e);break;case`embed`:case`source`:case`link`:fd(`error`,e),fd(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ed(e,t,u,r,n,null)}return;default:if(nn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Dd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Ed(e,t,c,r,n,null))}function kd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Ed(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Ed(e,t,p,m,r,f)}}Kt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Ed(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Ed(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Yt(e,!!n,n?[]:``,!1):Yt(e,!!n,t,!0)):Yt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Ed(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Ed(e,t,s,a,r,o)}Xt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Ed(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Ed(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Ed(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Ed(e,t,u,p,r,m)}return;default:if(nn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Dd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Dd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Ed(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Ed(e,t,f,p,r,m)}function Ad(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function jd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ad(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ad(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Md=null,Nd=null;function Pd(e){return e.nodeType===9?e:e.ownerDocument}function Fd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Id(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ld(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Rd=null;function zd(){var e=window.event;return e&&e.type===`popstate`?e===Rd?!1:(Rd=e,!0):(Rd=null,!1)}var Bd=typeof setTimeout==`function`?setTimeout:void 0,Vd=typeof clearTimeout==`function`?clearTimeout:void 0,Hd=typeof Promise==`function`?Promise:void 0,Ud=typeof queueMicrotask==`function`?queueMicrotask:Hd===void 0?Bd:function(e){return Hd.resolve(null).then(e).catch(Wd)};function Wd(e){setTimeout(function(){throw e})}function Gd(e){return e===`head`}function Kd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Tp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)sf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,sf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[St]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&sf(e.ownerDocument.body);n=i}while(n);Tp(t)}function qd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function Jd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:Jd(n),Ct(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function Yd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[St])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=tf(e.nextSibling),e===null)break}return null}function Xd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=tf(e.nextSibling),e===null))return null;return e}function Zd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=tf(e.nextSibling),e===null))return null;return e}function Qd(e){return e.data===`$?`||e.data===`$~`}function $d(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function ef(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function tf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var nf=null;function rf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return tf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function af(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function of(e,t,n){switch(t=Pd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function sf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ct(e)}var cf=new Map,lf=new Set;function uf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var df=le.d;le.d={f:ff,r:pf,D:gf,C:_f,L:vf,m:yf,X:xf,S:bf,M:Sf};function ff(){var e=df.f(),t=fu();return e||t}function pf(e){var t=Tt(e);t!==null&&t.tag===5&&t.type===`form`?_s(t):df.r(e)}var mf=typeof document>`u`?null:document;function hf(e,t,n){var r=mf;if(r&&typeof t==`string`&&t){var i=Gt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),lf.has(i)||(lf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Od(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function gf(e){df.D(e),hf(`dns-prefetch`,e,null)}function _f(e,t){df.C(e,t),hf(`preconnect`,e,t)}function vf(e,t,n){df.L(e,t,n);var r=mf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Gt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Gt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Gt(n.imageSizes)+`"]`)):i+=`[href="`+Gt(e)+`"]`;var a=i;switch(t){case`style`:a=wf(e);break;case`script`:a=Df(e)}cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Tf(a))||t===`script`&&r.querySelector(Of(a))||(t=r.createElement(`link`),Od(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function yf(e,t){df.m(e,t);var n=mf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Gt(r)+`"][href="`+Gt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Df(e)}if(!cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Of(a)))return}r=n.createElement(`link`),Od(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function bf(e,t,n){df.S(e,t,n);var r=mf;if(r&&e){var i=Dt(r).hoistableStyles,a=wf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Tf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=cf.get(a))&&jf(e,n);var c=o=r.createElement(`link`);Ot(c),Od(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Af(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function xf(e,t){df.X(e,t);var n=mf;if(n&&e){var r=Dt(n).hoistableScripts,i=Df(e),a=r.get(i);a||(a=n.querySelector(Of(i)),a||(e=f({src:e,async:!0},t),(t=cf.get(i))&&Mf(e,t),a=n.createElement(`script`),Ot(a),Od(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Sf(e,t){df.M(e,t);var n=mf;if(n&&e){var r=Dt(n).hoistableScripts,i=Df(e),a=r.get(i);a||(a=n.querySelector(Of(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=cf.get(i))&&Mf(e,t),a=n.createElement(`script`),Ot(a),Od(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Cf(e,t,n,r){var a=(a=_e.current)?uf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=wf(n.href),n=Dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=wf(n.href);var o=Dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Tf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cf.set(e,n),o||cee(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Df(n),n=Dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function wf(e){return`href="`+Gt(e)+`"`}function Tf(e){return`link[rel="stylesheet"][`+e+`]`}function Ef(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function cee(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Od(t,`link`,n),Ot(t),e.head.appendChild(t))}function Df(e){return`[src="`+Gt(e)+`"]`}function Of(e){return`script[async]`+e}function kf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Gt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Od(r,`style`,a),Af(r,n.precedence,e),t.instance=r;case`stylesheet`:a=wf(n.href);var o=e.querySelector(Tf(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Ef(n),(a=cf.get(a))&&jf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Od(o,`link`,r),t.state.loading|=4,Af(o,n.precedence,e),t.instance=o;case`script`:return o=Df(n.src),(a=e.querySelector(Of(o)))?(t.instance=a,Ot(a),a):(r=n,(a=cf.get(o))&&(r=f({},n),Mf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),Od(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Af(r,n.precedence,e));return t.instance}function Af(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Mf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Nf=null;function Pf(e,t,n){if(Nf===null){var r=new Map,i=Nf=new Map;i.set(n,r)}else i=Nf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[St]||a[gt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Ff(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function If(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Lf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Rf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=wf(r.href),a=t.querySelector(Tf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Vf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Ef(r),(i=cf.get(i))&&jf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Od(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Vf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var zf=0;function Bf(e,t){return e.stylesheets&&e.count===0&&Uf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Uf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&zf===0&&(zf=62500*jd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Uf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>zf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Vf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hf=null;function Uf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hf=new Map,t.forEach(Wf,e),Hf=null,Vf.call(e))}function Wf(e,t){if(!(t.state.loading&4)){var n=Hf.get(e);if(n)var r=n.get(null);else{n=new Map,Hf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Vf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Gf={$$typeof:x,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function lee(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=at(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=at(0),this.hiddenUpdates=at(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function Kf(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lee(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=ra(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Fa(a),e}function qf(e){return e?(e=ri,e):ri}function Jf(e,t,n,r,i,a){i=qf(i),r.context===null?r.context=i:r.pendingContext=i,r=U(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ia(e,r,t),n!==null&&(su(n,e,t),La(n,e,t))}function Yf(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Xf(e,t){Yf(e,t),(e=e.alternate)&&Yf(e,t)}function Zf(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&su(t,e,67108864),Xf(e,67108864)}}function Qf(e){if(e.tag===13||e.tag===31){var t=au();t=dt(t);var n=ei(e,t);n!==null&&su(n,e,t),Xf(e,t)}}var $f=!0;function ep(e,t,n,r){var i=ce.T;ce.T=null;var a=le.p;try{le.p=2,np(e,t,n,r)}finally{le.p=a,ce.T=i}}function tp(e,t,n,r){var i=ce.T;ce.T=null;var a=le.p;try{le.p=8,np(e,t,n,r)}finally{le.p=a,ce.T=i}}function np(e,t,n,r){if($f){var i=rp(r);if(i===null)_d(e,t,r,ip,n),hp(e,r);else if(_p(i,e,t,n,r))r.stopPropagation();else if(hp(e,r),t&4&&-1<mp.indexOf(e)){for(;i!==null;){var a=Tt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}Xu(a),!(El&6)&&(ql=Fe()+500,Zu(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&su(s,a,2),fu(),Xf(a,2)}if(a=rp(r),a===null&&_d(e,t,r,ip,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else _d(e,t,r,null,n)}}function rp(e){return e=ln(e),ap(e)}var ip=null;function ap(e){if(ip=null,e=wt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ip=e,null}function op(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var sp=!1,cp=null,lp=null,up=null,dp=new Map,fp=new Map,pp=[],mp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function hp(e,t){switch(e){case`focusin`:case`focusout`:cp=null;break;case`dragenter`:case`dragleave`:lp=null;break;case`mouseover`:case`mouseout`:up=null;break;case`pointerover`:case`pointerout`:dp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:fp.delete(t.pointerId)}}function gp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Tt(t),t!==null&&Zf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _p(e,t,n,r,i){switch(t){case`focusin`:return cp=gp(cp,e,t,n,r,i),!0;case`dragenter`:return lp=gp(lp,e,t,n,r,i),!0;case`mouseover`:return up=gp(up,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return dp.set(a,gp(dp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,fp.set(a,gp(fp.get(a)||null,e,t,n,r,i)),!0}return!1}function vp(e){var t=wt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,mt(e.priority,function(){Qf(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,mt(e.priority,function(){Qf(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=rp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cn=r,n.target.dispatchEvent(r),cn=null}else return t=Tt(n),t!==null&&Zf(t),e.blockedOn=n,!1;t.shift()}return!0}function bp(e,t,n){yp(e)&&n.delete(t)}function xp(){sp=!1,cp!==null&&yp(cp)&&(cp=null),lp!==null&&yp(lp)&&(lp=null),up!==null&&yp(up)&&(up=null),dp.forEach(bp),fp.forEach(bp)}function Sp(e,n){e.blockedOn===n&&(e.blockedOn=null,sp||(sp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,xp)))}var Cp=null;function wp(e){Cp!==e&&(Cp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Cp===e&&(Cp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(ap(r||n)===null)continue;break}var a=Tt(n);a!==null&&(e.splice(t,3),t-=3,hs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Tp(e){function t(t){return Sp(t,e)}cp!==null&&Sp(cp,e),lp!==null&&Sp(lp,e),up!==null&&Sp(up,e),dp.forEach(t),fp.forEach(t);for(var n=0;n<pp.length;n++){var r=pp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<pp.length&&(n=pp[0],n.blockedOn===null);)vp(n),n.blockedOn===null&&pp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[D]||null;if(typeof a==`function`)o||wp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[D]||null)s=o.formAction;else if(ap(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),wp(n)}}}function Ep(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Dp(e){this._internalRoot=e}Op.prototype.render=Dp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;Jf(n,au(),e,t,null,null)},Op.prototype.unmount=Dp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jf(e.current,2,null,e,null,null),fu(),t[_t]=null}};function Op(e){this._internalRoot=e}Op.prototype.unstable_scheduleHydration=function(e){if(e){var t=pt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pp.length&&t!==0&&t<pp[n].priority;n++);pp.splice(n,0,e),n===0&&vp(e)}};var kp=n.version;if(kp!==`19.2.6`)throw Error(i(527,kp,`19.2.6`));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Ap={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:ce,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jp.isDisabled&&jp.supportsFiber)try{We=jp.inject(Ap),Ge=jp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ls,s=Rs,c=zs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=Kf(e,1,!1,null,null,n,r,null,o,s,c,Ep),e[_t]=t.current,hd(e),new Dp(t)}})),Sye=c(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=xye()})),Cye,J7,wye,Tye,Eye,Dye,Oye,kye,Aye,jye,Y7,Mye,Nye=s((()=>{Vk(),zx(),Cye={ALLOWED_URI_REGEXP:/^(?:(?:(?:f|ht)tps?|mailto|tel|blob):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i,ADD_TAGS:[`iframe`],ADD_ATTR:[`allow`,`allowfullscreen`]},J7=`span[data-component-key]`,wye=`img[src]:not([data-processed])`,Tye=e=>Array.from(e).reduce((e,t)=>((e^t.charCodeAt(0))>>>0)*16777619>>>0,2166136261).toString(16),Eye=new Set([`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`]),Dye=/^[ ]{0,3}(`{3,}|~{3,})/,Oye=/^<([a-zA-Z][a-zA-Z0-9]*)(?:[\s>])/,kye=new Map,Aye=e=>{if(!e)return[];let t=[],n=[],r=null,i=null;return e.split(`
993
1045
  `).forEach(e=>{if(r){n.push(e);let t=e.trimStart();e.length-t.length<=3&&t.startsWith(r.char.repeat(r.length))&&!/\S/.test(t.slice(r.length))&&(r=null)}else if(i){n.push(e);let{openRe:t,closeRe:r}=i;i.depth+=[...e.matchAll(t)].length-[...e.matchAll(r)].length,i.depth<=0&&(i=null)}else{let a=Dye.exec(e);if(a)n.push(e),r={char:a[1][0],length:a[1].length};else{let r=Oye.exec(e);if(r){let t=r[1].toLowerCase();if(n.push(e),!Eye.has(t)){let{openRe:n,closeRe:r}=Rx(kye,t,()=>({openRe:RegExp(`<${t}(?:[\\s>])`,`gi`),closeRe:RegExp(`<\\/${t}>`,`gi`)})),a=[...e.matchAll(n)].length-[...e.matchAll(r)].length;a>0&&(i={tag:t,depth:a,openRe:n,closeRe:r})}}else e===``?n.length&&t.push(n.splice(0).join(`
994
1046
  `)):n.push(e)}}}),n.length&&t.push(n.join(`
995
- `)),t},jye=(...e)=>{let{alt:t,src:n,title:r}=e.at(-1),i=n.replaceAll(` `,`%20`);return r?`![${t}](${i} "${r}")`:`![${t}](${i})`},Y7=new Map,Mye=(e,t)=>{let n=new Map,r=(e??``).replace(Rk,jye);return t.forEach(({pattern:e,fromBlock:t,toPreview:i})=>{let a=`${e.source}|${e.flags}`,o=Y7.get(a);o||(o=e.global?e:new RegExp(e.source,`${e.flags}g`),Y7.set(a,o));let s=[],c=new Map;r.matchAll(o).forEach(e=>{let r=Tye(e[0]),a=c.get(r)??0,o=a===0?r:`${r}-${a}`,l=t?.(e)??e.groups??{};s.push(o),c.set(r,a+1),n.set(o,i?.(l))}),r=r.replaceAll(o,()=>{let e=s.shift(),t=n.get(e);return typeof t==`string`?t:`<span data-component-key="${e}"></span>`})}),{markdown:r,previewMap:n}}}));function Pye(e,t){O(t,!0),K(e,Rye);let n=()=>j(JP,`$cmsConfig`,i),r=()=>j(z4,`$entryDraft`,i),[i,a]=hn();oO(hye()),oO({renderer:{code({text:e,lang:t}){let{Prism:n}=window;return n&&t&&n.languages[t]?`<pre><code class="language-${t}">${n.highlight(e,n.languages[t],t)}</code></pre>\n`:!1}}});let o=n()?.field_defaults?.richtext??{},s=new sh,c=new sh,l=N(void 0),u=M(()=>r()?.originalEntry),d=M(()=>r()?.collectionName??``),f=M(()=>r()?.fileName),p=M(()=>T(t.fieldConfig.sanitize_preview,()=>o.sanitize_preview??!0,!0)),m=M(()=>T(t.fieldConfig.editor_components,()=>o.editor_components??[...L7,...Kk.keys()],!0)),h=M(()=>T(t.fieldConfig.linked_images,()=>o.linked_images??!0,!0)),g=M(()=>z(m).map(e=>Yk(e===`image`&&z(h)?`linked-image`:e)).filter(e=>!!e)),_=M(()=>{if(typeof t.currentValue!=`string`||!t.currentValue.trim())return``;let{markdown:e,previewMap:n}=Mye(t.currentValue,z(g));return c=n,e}),v=e=>{let t=e.dataset.componentKey,n=t?c.get(t):void 0;if((0,Fye.isValidElement)(n)){let t=(0,Iye.createRoot)(e);s.set(e,t),t.render(n)}else e.remove()},y=e=>{[e,...e.querySelectorAll(J7)].forEach(e=>{let t=s.get(e);t&&(t.unmount(),s.delete(e))})},b=async e=>{e.dataset.processed=`true`;let n=await _T({value:e.getAttribute(`src`),entry:z(u),collectionName:z(d),fileName:z(f),typedKeyPath:t.typedKeyPath});n&&(e.src=n)},x=e=>{e.forEach(({removedNodes:e,addedNodes:t})=>{e.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&y(e)}),t.forEach(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;t.matches(`span[data-component-key]`)?v(t):t.querySelectorAll(J7).forEach(e=>{v(e)}),t.matches(`img[src]:not([data-processed])`)?b(t):t.querySelectorAll(wye).forEach(e=>{b(e)})})})},S=e=>{let t=cO(e,{breaks:!0});return z(p)?OE(t,Cye):t};ic(()=>{let e=new MutationObserver(x);return z(l)&&e.observe(z(l),{childList:!0,subtree:!0}),()=>{e.disconnect(),s.forEach(e=>e.unmount()),s.clear()}});var C=Lye(),w=F(C),ee=e=>{var t=H();mo(I(t),19,()=>Aye(z(_)),(e,t)=>`${t}-${e}`,(e,t)=>{var n=H();So(I(n),()=>S(z(t))),U(e,n)}),U(e,t)};G(w,e=>{z(_)&&e(ee)}),D(C),Us(C,e=>P(l,e),()=>z(l)),U(e,C),k(),a()}var Fye,Iye,Lye,Rye,zye=s((()=>{Q(),Y(),kE(),lO(),gye(),Fye=h(),Iye=Sye(),oc(),dh(),vT(),$P(),W4(),R7(),Xk(),Nye(),Lye=V(`<div role="none" class="svelte-14tuh7g"><!></div>`),Rye={hash:`svelte-14tuh7g`,code:`[role='document'] div.svelte-14tuh7g :is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}[role='document'] div.svelte-14tuh7g :is(video, img) {max-width:100%;max-height:100%;}[role='document'] div.svelte-14tuh7g :is(a:has(img)) {display:inline-block;}[role='document'] div.svelte-14tuh7g :is(a:has(img)) img {pointer-events:none;}div.svelte-14tuh7g [data-component-key] {display:contents;}`}}));function Bye(e,t){O(t,!0);let n=M(()=>t.fieldConfig.options),r=M(()=>t.fieldConfig.multiple),i=M(()=>lS(z(n))),a=M(()=>cb(t.locale)),o=e=>z(i)&&z(n).find(t=>t.value===e)?.label||String(e);var s=H(),c=I(s),l=e=>{var n=Vye(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale),()=>z(a).format(t.currentValue.map(o).sort())]),U(e,n)},u=M(()=>z(r)&&Array.isArray(t.currentValue)&&t.currentValue.length),d=e=>{var n=Hye(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale),()=>o(t.currentValue)]),U(e,n)};G(c,e=>{z(u)?e(l):t.currentValue!==void 0&&e(d,1)}),U(e,s),k()}var Vye,Hye,Uye=s((()=>{Q(),Y(),dS(),ub(),Vye=V(`<p> </p>`),Hye=V(`<p> </p>`)}));function Wye(e,t){O(t,!0),K(e,Kye);let n=M(()=>t.fieldConfig.minlength),r=M(()=>t.fieldConfig.maxlength),i=M(()=>H7({fieldConfig:t.fieldConfig,locale:t.locale,value:t.currentValue}).detail),a=M(()=>z(i).count),o=M(()=>z(i).hasMin),s=M(()=>z(i).hasMax),c=M(()=>z(i).invalid);var l=H(),u=I(l),d=e=>{var t=Gye(),i=F(t),l=e=>{var t=Fa();R(()=>W(t,`${z(n)??``} / `)),U(e,t)};G(i,e=>{z(o)&&e(l)});var u=L(i,2);let d;var f=F(u,!0);D(u);var p=L(u,2),m=e=>{var t=Fa();R(()=>W(t,` /
996
- ${z(r)??``}`)),U(e,t)};G(p,e=>{z(s)&&e(m)}),D(t),R(e=>{q(t,`aria-label`,e),d=ss(u,1,`count svelte-19vklom`,null,d,{invalid:z(c)}),W(f,z(a))},[()=>X(z(o)&&z(s)?`character_counter.min_max`:z(o)?`character_counter.min`:`character_counter.max`,{values:{count:z(a),min:z(n),max:z(r)}})]),U(e,t)};G(u,e=>{(z(o)||z(s))&&e(d)}),U(e,l),k()}var Gye,Kye,qye=s((()=>{Q(),Y(),Z(),Uve(),Gye=V(`<div class="wrapper svelte-19vklom"><!> <span role="none"> </span> <!></div>`),Kye={hash:`svelte-19vklom`,code:`.wrapper.svelte-19vklom {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-19vklom {color:var(--sui-error-foreground-color);}.count.svelte-19vklom:not(.invalid) {color:var(--sui-success-foreground-color);}`}}));function Jye(e,t){O(t,!0);let[n,r]=hn(),i=J(t,`currentValue`,15),a=J(t,`required`,3,!0),o=J(t,`readonly`,3,!1),s=J(t,`invalid`,3,!1),{extraHint:c}=Rt(`field-editor`)??{},l=N(``),u=M(()=>T(t.fieldConfig.type,`text`)),d=M(()=>T(t.fieldConfig.prefix,``)),f=M(()=>T(t.fieldConfig.suffix,``)),p=()=>{let e=typeof i()==`string`?i():``;z(d)&&e.startsWith(z(d))&&(e=e.slice(z(d).length)),z(f)&&e.endsWith(z(f))&&(e=e.slice(0,-z(f).length)),z(l)!==e&&P(l,e,!0)},m=()=>{let e=z(l);e.trim()&&(z(d)||z(f))&&(e=`${z(d)}${e}${z(f)}`),i()!==e&&i(e)};ti(()=>{i(),B(()=>{p()})}),ti(()=>{z(l),B(()=>{m()})}),ti(()=>{c&&mn(c,Wye)});{let n=M(()=>rb(t.locale)),r=M(()=>ib(t.locale));lL(e,{get lang(){return z(n)},get dir(){return z(r)},get type(){return z(u)},get inputmode(){return z(u)},flex:!0,get readonly(){return o()},get required(){return a()},get invalid(){return s()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}})}k(),r()}var Yye=s((()=>{Q(),Y(),B$(),oc(),qye(),ub()})),Xye,Zye,Qye=s((()=>{Sp(),Xye=e=>{if(!bp(e))return!1;let{origin:t,pathname:n,searchParams:r}=new URL(e);return!!((t===`https://www.youtube.com`||t===`https://www.youtube-nocookie.com`)&&(n===`/watch`&&r.has(`v`)||n===`/playlist`&&r.has(`list`)||n.startsWith(`/embed/`))||t===`https://youtu.be`&&n)},Zye=e=>{let t=`https://www.youtube-nocookie.com`,{pathname:n,search:r,searchParams:i}=new URL(e);if(n===`/watch`){let e=new URLSearchParams(i),n=`${t}/embed/${e.get(`v`)}`;return e.get(`list`)&&(e.delete(`v`),e.set(`listType`,`playlist`),n+=`?${e}`),n}return n===`/playlist`?`${t}/embed/videoseries${r}`:n.startsWith(`/embed/`)?`${t}${n}${r}`:`${t}/embed${n}${r}`}}));function $ye(e,t){O(t,!0),K(e,rbe);let n=N(!0),r=M(()=>Zye(t.url)),i=({blockedURI:e,violatedDirective:t})=>{e===new URL(z(r)).origin&&t===`frame-src`&&(P(n,!1),window.removeEventListener(`securitypolicyviolation`,i))};ic(()=>(window.addEventListener(`securitypolicyviolation`,i),()=>{window.removeEventListener(`securitypolicyviolation`,i)}));var a=nbe(),o=F(a),s=e=>{U8(e,{children:(e,t)=>{var n=ebe();R((e,t)=>{q(n,`src`,e),q(n,`title`,t)},[()=>encodeURI(z(r)),()=>X(`youtube_video_player`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{var n=tbe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,e),W(r,t.url)},[()=>encodeURI(t.url)]),U(e,n)};G(o,e=>{z(n)?e(s):e(c,-1)}),D(a),U(e,a),k()}var ebe,tbe,nbe,rbe,ibe=s((()=>{Q(),Y(),Z(),oc(),K8(),Qye(),ebe=V(`<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-spbxln"></iframe>`),tbe=V(`<a> </a>`),nbe=V(`<div role="none"><!></div>`),rbe={hash:`svelte-spbxln`,code:`iframe.svelte-spbxln {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16/9;}`}}));function abe(e,t){O(t,!0),K(e,lbe);let n=M(()=>t.fieldConfig.name),r=M(()=>T(t.fieldConfig.type,`text`)),i=/^(?:https|mailto|tel):/;var a=H(),o=I(a),s=e=>{var a=cbe();let o;var s=F(a),c=e=>{var n=H(),r=I(n),a=e=>{$ye(e,{get url(){return t.currentValue}})},o=M(()=>Xye(t.currentValue)),s=e=>{var n=obe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,e),W(r,t.currentValue)},[()=>encodeURI(t.currentValue)]),U(e,n)},c=M(()=>i.test(t.currentValue)),l=e=>{var n=Fa();R(()=>W(n,t.currentValue)),U(e,n)};G(r,e=>{z(o)?e(a):z(c)?e(s,1):e(l,-1)}),U(e,n)},l=M(()=>z(r)===`url`||bp(t.currentValue)),u=e=>{var n=sbe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,`mailto:${e??``}`),W(r,t.currentValue)},[()=>encodeURI(t.currentValue)]),U(e,n)},d=e=>{var n=Fa();R(()=>W(n,t.currentValue)),U(e,n)};G(s,e=>{z(l)?e(c):z(r)===`email`?e(u,1):e(d,-1)}),D(a),R((e,t)=>{q(a,`lang`,e),q(a,`dir`,t),o=ss(a,1,`svelte-euqs6c`,null,o,{title:z(n)===`title`}),a.dir=a.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,a)},c=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(o,e=>{z(c)&&e(s)}),U(e,a),k()}var obe,sbe,cbe,lbe,ube=s((()=>{Q(),Y(),Sp(),ibe(),ub(),Qye(),obe=V(`<a> </a>`),sbe=V(`<a> </a>`),cbe=V(`<p><!></p>`),lbe={hash:`svelte-euqs6c`,code:`.title.svelte-euqs6c {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}
997
-
998
- @media (width < 768px) {[role='document'] section > p.svelte-euqs6c:has(iframe) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
999
- }`}}));function dbe(e,t){O(t,!0);let[n,r]=hn(),{extraHint:i}=Rt(`field-editor`)??{},a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=N(``),u=()=>{let e=typeof a()==`string`?a():``;z(l)!==e&&P(l,e,!0)},d=()=>{let e=z(l);a()!==e&&a(e)};ti(()=>{a(),B(()=>{u()})}),ti(()=>{z(l),B(()=>{d()})}),ti(()=>{i&&mn(i,Wye)});{let n=M(()=>rb(t.locale)),r=M(()=>ib(t.locale));l$(e,{get lang(){return z(n)},get dir(){return z(r)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,get value(){return z(l)},set value(e){P(l,e,!0)}})}k(),r()}var fbe=s((()=>{Q(),Y(),B$(),oc(),qye(),ub()}));function pbe(e,t){O(t,!0),K(e,hbe);var n=H(),r=I(n),i=e=>{var n=mbe(),r=F(n,!0);D(n),R((e,i)=>{q(n,`lang`,e),q(n,`dir`,i),W(r,t.currentValue),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var mbe,hbe,gbe=s((()=>{Q(),Y(),ub(),mbe=V(`<p class="svelte-q17c48"> </p>`),hbe={hash:`svelte-q17c48`,code:`p.svelte-q17c48 {white-space:pre-wrap;}`}})),X7,_be=s((()=>{hp(),X7=e=>{let{prefix:t,use_b32_encoding:n}=e,r=n?pp():fp();return t?`${t}${r}`:r}}));function vbe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!0),c=J(t,`invalid`,3,!1),l=M(()=>n()?.collection),u=M(()=>n()?.collectionFile),d=M(()=>(z(u)??z(l))?._i18n??Cb),f=M(()=>z(d).defaultLocale);ic(()=>{a()||(t.locale===z(f)||[!0,`translate`].includes(t.fieldConfig?.i18n??!1))&&a(X7(t.fieldConfig)),`read_only`in t.fieldConfig&&Qy(`uuid_read_only`)});{let n=M(()=>s()&&t.fieldConfig.read_only!==!1);lL(e,{dir:`ltr`,flex:!0,get readonly(){return z(n)},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return a()},set value(e){a(e)}})}k(),i()}var ybe=s((()=>{Q(),Y(),B$(),oc(),$y(),W4(),_be(),jb()}));function bbe(e,t){O(t,!0),K(e,Sbe);var n=H(),r=I(n),i=e=>{var n=xbe(),r=F(n,!0);D(n),R(()=>W(r,t.currentValue)),U(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var xbe,Sbe,Cbe=s((()=>{Q(),Y(),xbe=V(`<p class="svelte-1phz9g8"> </p>`),Sbe={hash:`svelte-1phz9g8`,code:`p.svelte-1phz9g8 {font-family:var(--sui-font-family-monospace);}`}})),Z7,Q7,wbe=s((()=>{bpe(),Cpe(),Tpe(),Ope(),Ppe(),Rpe(),Bpe(),Upe(),Jpe(),Zpe(),$he(),oge(),vge(),wge(),b_e(),I_e(),K_e(),X_e(),Q_e(),tve(),uve(),fve(),xve(),wve(),mye(),zye(),vve(),Uye(),Yye(),ube(),fbe(),gbe(),ybe(),Cbe(),Z7={boolean:ype,code:wpe,color:kpe,compute:zpe,datetime:Wpe,file:Jhe,image:Jhe,keyvalue:lge,list:y_e,map:V_e,markdown:dye,number:Z_e,object:ave,relation:yve,richtext:dye,select:_ve,string:Jye,text:dbe,uuid:vbe},Q7={boolean:xpe,code:Epe,color:Fpe,compute:Vpe,datetime:Ype,file:age,image:age,keyvalue:yge,list:F_e,map:q_e,markdown:Pye,number:$_e,object:dve,relation:Sve,richtext:Pye,select:Bye,string:abe,text:pbe,uuid:bbe}})),$7,e9,Tbe,t9,n9=s((()=>{rp(),W4(),_A(),$7=(e,t)=>{let n=t.split(`.`);for(let t=n.length-1;t>=1;--t)if(/^\d+$/.test(n[t])){let r=n.slice(0,t+1).join(`.`),i=e[`${r}.__sc_item_original_key_path`];if(i!==void 0){let e=n.slice(t+1).join(`.`);return{originalKeyPath:e?`${i}.${e}`:i,currentPrefix:r,originalPrefix:i}}}},e9=({locale:e,isDefaultLocale:t,keyPath:n,getFieldArgs:r,currentValues:i,reset:a=!1,remapPrefix:o})=>{let{valueMap:s={}}=r;Object.entries(s).forEach(([s,c])=>{if(!n||s.startsWith(n)){let n=uA({...r,keyPath:s});if(t||[!0,`translate`].includes(n?.i18n??!1))if(a)delete i[e][s];else{let t=o?`${o.to}${s.slice(o.from.length)}`:s;i[e][t]=c}}})},Tbe=({draft:e,keyPath:t,locale:n})=>{let{collection:r,collectionName:i,collectionFile:a,fileName:o,currentValues:s,originalValues:c,isIndexFile:l}=e,{defaultLocale:u}=(a??r)._i18n,d=n===u,f={collectionName:i,fileName:o,keyPath:``,isIndexFile:l},p=t?$7(s[n],t):void 0,m=p?.originalKeyPath??t,h=p?{from:p.originalPrefix,to:p.currentPrefix}:void 0;e9({locale:n,isDefaultLocale:d,keyPath:t,getFieldArgs:{...f,valueMap:s[n]},currentValues:s,reset:!0}),e9({locale:n,isDefaultLocale:d,keyPath:m,getFieldArgs:{...f,valueMap:c[n]},currentValues:s,remapPrefix:h})},t9=({locale:e=``,keyPath:t=``}={})=>{let n=A(z4),{collection:r,collectionFile:i,currentValues:a}=n,{allLocales:o}=(i??r)._i18n;(e?[e]:o).forEach(e=>{Tbe({draft:n,keyPath:t,locale:e})}),z4.update(()=>({...n,currentValues:a}))}}));function r9(e,t){let n=Ia();O(t,!0),K(e,Rbe);let r=()=>j(z4,`$entryDraft`,a),i=()=>j(d,`$extraHint`,a),[a,o]=hn(),s=Rt(`field-editor`)??{},c=J(t,`context`,19,()=>s.fieldContext??void 0),l=J(t,`valueStoreKey`,19,()=>s.valueStoreKey??`currentValues`),u=e=>OE(sO(e.replaceAll(`\\n`,`<br>`)),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`,`br`],ALLOWED_ATTR:[`href`]}),d=un();zt(`field-editor`,{fieldContext:c(),extraHint:d,valueStoreKey:l()});let f=M(()=>c()===`rich-text-editor-component`),p=M(()=>t.fieldConfig.name),m=M(()=>T(t.fieldConfig.widget,`string`)),h=M(()=>T(t.fieldConfig.i18n,!1)),g=M(()=>T(t.fieldConfig.label,``)),_=M(()=>T(t.fieldConfig.comment,``)),v=M(()=>T(t.fieldConfig.hint,``)),y=M(()=>T(t.fieldConfig.readonly,!1)),b=M(()=>dA({fieldConfig:t.fieldConfig,locale:t.locale})),x=M(()=>sA(t.fieldConfig)),S=M(()=>[`string`].includes(z(m))),C=M(()=>z(S)?t.fieldConfig.prefix:void 0),w=M(()=>z(S)?t.fieldConfig.suffix:void 0),ee=M(()=>[`boolean`,`number`,`string`].includes(z(m))),te=M(()=>z(ee)?t.fieldConfig.before_input:void 0),ne=M(()=>z(ee)?t.fieldConfig.after_input:void 0),re=M(()=>!!(z(C)||z(w)||z(te)||z(ne))),ie=M(()=>z(m)===`list`||z(x)),ae=M(()=>r()?.collection),oe=M(()=>r()?.collectionFile),se=M(()=>r()?.originalValues),ce=M(()=>(z(oe)??z(ae))?._i18n??Cb),le=M(()=>z(ce).i18nEnabled),ue=M(()=>z(ce).allLocales),de=M(()=>z(ce).defaultLocale),fe=M(()=>z(le)?z(ue).filter(e=>e!==t.locale):[]),E=M(()=>z(le)&&(z(h)===!0||z(h)===`translate`)),pe=M(()=>z(le)&&z(h)===`duplicate`),me=M(()=>z(f)||t.locale===z(de)||z(E)||z(pe)),he=M(()=>!z(f)&&z(E)&&z(fe).length),ge=M(()=>!z(f)&&!(z(pe)&&t.locale!==z(de))),_e=M(()=>RegExp(`^${gp(t.keyPath)}\\.\\d+$`)),ve=M(()=>{let e=jt(r()?.[l()][t.locale]??{}),n=e[t.keyPath];if(!z(ie))return n;let i=Object.entries(e).filter(([e])=>z(_e).test(e));return i.length?i.map(([,e])=>e).filter(e=>e!==void 0):z(x)&&n!==void 0&&typeof n!=`object`?[n]:[]}),ye=M(()=>{if(z(ie))return Object.entries(z(se)?.[t.locale]??{}).filter(([e])=>z(_e).test(e)).map(([,e])=>e).filter(e=>e!==void 0);let e=$7(jt(r()?.[l()][t.locale]??{}),t.keyPath);return e?z(se)?.[t.locale]?.[e.originalKeyPath]:z(se)?.[t.locale]?.[t.keyPath]}),be=M(()=>{if(z(m)===`list`){let e=jt(r()?.[l()][t.locale]??{}),n=z(se)?.[t.locale]??{},i=`${t.keyPath}.`;return(0,i9.default)(Object.entries(e).filter(([e])=>e.startsWith(i)&&!R4.test(e)).sort(([e],[t])=>e.localeCompare(t)),Object.entries(n).filter(([e])=>e.startsWith(i)&&!R4.test(e)).sort(([e],[t])=>e.localeCompare(t)))}return(0,i9.default)(z(ve),z(ye))}),xe=M(()=>r()?.validities[t.locale][t.keyPath]),Se=M(()=>z(g)||z(p)),Ce=M(()=>z(y)||z(h)===`duplicate`&&t.locale!==z(de)||z(m)===`compute`||z(m)===`uuid`),we=M(()=>z(xe)?.valid===!1);ti(()=>{if(r()&&z(x)&&Array.isArray(z(ve))){let e=r()[l()][t.locale]?.[`${t.keyPath}.0`],[n]=z(ve);e===void 0&&n!==void 0&&(_n(z4,B(r)[l()][t.locale][`${t.keyPath}.0`]=n,B(r)),delete r()[l()][t.locale][t.keyPath])}}),ti(()=>{if(r()&&!z(x)&&z(ve)===void 0){let e=r()[l()][t.locale]?.[`${t.keyPath}.0`];e!==void 0&&(_n(z4,B(r)[l()][t.locale][t.keyPath]=e,B(r)),Object.keys(r()[l()][t.locale]).forEach(e=>{z(_e).test(e)&&delete r()[l()][t.locale][e]}))}});var Te=H(),Ee=I(Te),De=e=>{{let a=M(()=>X(`x_field`,{values:{field:z(Se)}})),o=M(()=>z(m)===`compute`);dpe(e,{get"aria-label"(){return z(a)},get"data-field-type"(){return z(m)},get"data-key-path"(){return t.keyPath},get"data-typed-key-path"(){return t.typedKeyPath},get hidden(){return z(o)},children:(e,a)=>{var o=Lbe(),s=I(o),c=F(s),d=F(c,!0);D(c);var f=L(c,2),p=e=>{var t=Ebe();R(e=>q(t,`aria-label`,e),[()=>X(`required`)]),U(e,t)};G(f,e=>{!z(Ce)&&z(b)&&e(p)});var h=L(f,2);UI(h,{flex:!0});var g=L(h,2),y=e=>{hpe(e,{size:`small`,get locale(){return t.locale},get otherLocales(){return z(fe)},get keyPath(){return t.keyPath}})},x=M(()=>z(he)&&[`richtext`,`markdown`,`string`,`text`,`list`,`object`].includes(z(m)));G(g,e=>{z(x)&&e(y)});var S=L(g,2),ee=e=>{{let n=e=>{{let n=M(()=>X(`field_options`));UL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{var r=Dbe(),i=I(r),a=e=>{j5(e,{get locale(){return t.locale},get otherLocales(){return z(fe)},get keyPath(){return t.keyPath}})};G(i,e=>{z(he)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`revert_changes`));qL(e,{get label(){return z(n)},get disabled(){return z(be)},onclick:()=>{t9({locale:t.locale,keyPath:t.keyPath})}})}};G(o,e=>{z(ge)&&e(s)}),U(e,r)},$$slots:{default:!0}})}},r=M(()=>X(`show_field_options`));NI(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},popup:n,$$slots:{popup:!0}})}};G(S,e=>{(z(he)||z(ge))&&e(ee)}),D(s);var T=L(s,2),ae=e=>{var t=Obe(),n=F(t);So(n,()=>u(z(_)),!0),D(n),D(t),U(e,t)};G(T,e=>{!z(Ce)&&z(_)&&e(ae)});var oe=L(T,2),se=e=>{N5(e,{get id(){return`${n}-error`},children:(e,n)=>{_t();var i=Fa();R(e=>W(i,e),[()=>r()?.validationMessages[t.locale][t.keyPath]?.join(` `)]),U(e,i)},$$slots:{default:!0}})};G(oe,e=>{z(xe)?.valid===!1&&e(se)});var ce=L(oe,2);let le;var ue=F(ce),de=e=>{var t=kbe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`unsupported_field_type_x`,{values:{name:z(m)}})]),U(e,t)},E=e=>{let r=M(()=>Z7[z(m)]);var i=H();Oo(I(i),()=>z(r),(e,r)=>{r(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return z(Se)},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(ve)},get readonly(){return z(Ce)},get required(){return z(b)},get invalid(){return z(we)}})}),U(e,i)},pe=e=>{let i=M(()=>Z7[z(m)]);var a=Pbe(),o=I(a),s=e=>{var t=Abe();So(t,()=>u(z(te)),!0),D(t),U(e,t)};G(o,e=>{z(te)&&e(s)});var c=L(o,2),d=e=>{var t=jbe(),n=F(t,!0);D(t),R(()=>W(n,z(C))),U(e,t)};G(c,e=>{z(C)&&e(d)});var f=L(c,2);Oo(f,()=>z(i),(e,i)=>{i(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return z(Se)},get fieldConfig(){return t.fieldConfig},get readonly(){return z(Ce)},get required(){return z(b)},get invalid(){return z(we)},get currentValue(){return r()[l()][t.locale][t.keyPath]},set currentValue(e){_n(z4,B(r)[l()][t.locale][t.keyPath]=e,B(r))}})});var p=L(f,2),h=e=>{var t=Mbe(),n=F(t,!0);D(t),R(()=>W(n,z(w))),U(e,t)};G(p,e=>{z(w)&&e(h)});var g=L(p,2),_=e=>{var t=Nbe();So(t,()=>u(z(ne)),!0),D(t),U(e,t)};G(g,e=>{z(ne)&&e(_)}),U(e,a)};G(ue,e=>{z(m)in Z7?z(ie)?e(E,1):e(pe,-1):e(de)}),D(ce);var me=L(ce,2),_e=e=>{let n=M(i);var r=Ibe(),a=F(r),o=e=>{var t=Fbe();So(t,()=>u(z(v)),!0),D(t),U(e,t)};G(a,e=>{z(v)&&e(o)}),Oo(L(a,2),()=>z(n),(e,n)=>{n(e,{get fieldConfig(){return t.fieldConfig},get locale(){return t.locale},get currentValue(){return z(ve)}})}),D(r),U(e,r)};G(me,e=>{!z(Ce)&&(z(v)||i())&&e(_e)}),R(()=>{q(c,`id`,`${n}-label`),W(d,z(Se)),le=ss(ce,1,`field-wrapper svelte-dkfcyc`,null,le,{"has-extra-labels":z(re)})}),U(e,o)},$$slots:{default:!0}})}};G(Ee,e=>{r()&&z(me)&&z(m)!==`hidden`&&e(De)}),U(e,Te),k(),o()}var i9,Ebe,Dbe,Obe,kbe,Abe,jbe,Mbe,Nbe,Pbe,Fbe,Ibe,Lbe,Rbe,a9=s((()=>{Q(),Y(),Z(),B$(),Sp(),i9=u(YM()),kE(),lO(),oc(),rp(),M5(),mpe(),gpe(),P5(),wbe(),W4(),n9(),_A(),jb(),Ebe=V(`<div class="required">*</div>`),Dbe=V(`<!> <!>`,1),Obe=V(`<div role="none" class="comment-wrapper"><p class="comment svelte-dkfcyc"></p></div>`),kbe=V(`<div role="none"> </div>`),Abe=V(`<div role="none" class="before-input svelte-dkfcyc"></div>`),jbe=V(`<div role="none" class="prefix svelte-dkfcyc"> </div>`),Mbe=V(`<div role="none" class="suffix svelte-dkfcyc"> </div>`),Nbe=V(`<div role="none" class="after-input svelte-dkfcyc"></div>`),Pbe=V(`<!> <!> <!> <!> <!>`,1),Fbe=V(`<p class="hint svelte-dkfcyc"></p>`),Ibe=V(`<div role="none" class="footer svelte-dkfcyc"><!> <!></div>`),Lbe=V(`<header role="none"><h4 role="none"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!>`,1),Rbe={hash:`svelte-dkfcyc`,code:`.field-wrapper.has-extra-labels.svelte-dkfcyc {display:flex;align-items:center;justify-content:flex-start;gap:4px;}.field-wrapper.svelte-dkfcyc :is(input[type=text], textarea) {width:100%;}.field-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);}.field-wrapper.svelte-dkfcyc input:is([type=file], [type=checkbox]) {color:inherit;}.field-wrapper.svelte-dkfcyc > div {color:inherit;}.field-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;}.field-wrapper.svelte-dkfcyc input:is([type=date], [type=datetime-local], [type=time]):disabled {opacity:0.4;}.field-wrapper.svelte-dkfcyc input[aria-invalid=true]:is([type=color],
1000
- [type=date],
1001
- [type=datetime-local],
1002
- [type=time]) {border-color:var(--sui-error-border-color);}.field-wrapper.svelte-dkfcyc input:read-only {-webkit-user-select:text;user-select:text;pointer-events:auto;}.before-input.svelte-dkfcyc,
1003
- .after-input.svelte-dkfcyc,
1004
- .prefix.svelte-dkfcyc,
1005
- .suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc,
1006
- .hint.svelte-dkfcyc {margin-inline:var(--sui-focus-ring-width) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);}.comment.svelte-dkfcyc {margin-block:var(--sui-focus-ring-width) !important;}.hint.svelte-dkfcyc {flex:auto;margin-block:var(--sui-focus-ring-width) 0 !important;color:var(--sui-tertiary-foreground-color);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}`}}));function zbe(e,t){let n=Ia();O(t,!0);let r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=M(()=>r()?.collection),s=M(()=>r()?.collectionFile),c=M(()=>(z(s)??z(o))?._i18n??Cb),l=M(()=>z(c).defaultLocale),u=M(()=>r()?.slugEditor[t.locale]),d=M(()=>z(u)===!0),f=M(()=>z(u)===`readonly`),p=M(()=>r()?.validities[t.locale]._slug),m=M(()=>!z(f)&&z(p)?.valid===!1),h=N(``);ti(()=>{z(f)&&P(h,r()?.currentSlugs[t.locale]??``,!0)}),ti(()=>{z(h),B(()=>{r()&&Object.entries(r().slugEditor).forEach(([e,n])=>{(t.locale===e||t.locale===z(l)&&n===`readonly`)&&_n(z4,B(r).currentSlugs[e]=z(h),B(r))})})});var g=H(),_=I(g),v=e=>{dpe(e,{children:(e,t)=>{var r=Vbe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2),c=e=>{var t=Bbe();R(e=>q(t,`aria-label`,e),[()=>X(`required`)]),U(e,t)};G(s,e=>{z(d)&&e(c)}),D(i);var l=L(i,2),u=e=>{N5(e,{get id(){return`${n}-error`},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`validation.value_missing`)]),U(e,t)};G(r,e=>{z(p)?.valueMissing&&e(i)}),U(e,n)},$$slots:{default:!0}})};G(l,e=>{z(m)&&e(u)});var g=L(l,2);lL(F(g),{dir:`auto`,flex:!0,get readonly(){return z(f)},get required(){return z(d)},get invalid(){return z(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return z(h)},set value(e){P(h,e,!0)}}),D(g),R(e=>{q(a,`id`,`${n}-label`),W(o,e)},[()=>X(`slug`)]),U(e,r)},$$slots:{default:!0}})};G(_,e=>{r()&&e(v)}),U(e,g),k(),a()}var Bbe,Vbe,Hbe=s((()=>{Q(),Y(),Z(),B$(),oc(),mpe(),P5(),W4(),jb(),Bbe=V(`<div class="required">*</div>`),Vbe=V(`<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="field-wrapper"><!></div>`,1)}));function Ube(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()?.fields??[]);U8(e,{children:(e,r)=>{var i=Wbe(),o=I(i),s=e=>{zbe(e,{get locale(){return t.locale}})};G(o,e=>{n()?.slugEditor[t.locale]&&e(s)}),mo(L(o,2),17,()=>z(a),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{r9(e,{get keyPath(){return z(n).name},get typedKeyPath(){return z(n).name},get locale(){return t.locale},get fieldConfig(){return z(n)}})},$$slots:{default:!0}})}),U(e,i)},$$slots:{default:!0}}),k(),i()}var Wbe,Gbe=s((()=>{Q(),Y(),K8(),a9(),Hbe(),W4(),Wbe=V(`<!> <!>`,1)}));function Kbe(e,t){let n=J(t,`children`,3,void 0);var r=H();Eo(I(r),()=>n()??E),U(e,r)}var qbe=s((()=>{Q(),Y()}));function Jbe(e,t){O(t,!0),K(e,Xbe);let n=N(void 0),r=()=>`
1047
+ `)),t},jye=(...e)=>{let{alt:t,src:n,title:r}=e.at(-1),i=n.replaceAll(` `,`%20`);return r?`![${t}](${i} "${r}")`:`![${t}](${i})`},Y7=new Map,Mye=(e,t)=>{let n=new Map,r=(e??``).replace(Rk,jye);return t.forEach(({pattern:e,fromBlock:t,toPreview:i})=>{let a=`${e.source}|${e.flags}`,o=Y7.get(a);o||(o=e.global?e:new RegExp(e.source,`${e.flags}g`),Y7.set(a,o));let s=[],c=new Map;r.matchAll(o).forEach(e=>{let r=Tye(e[0]),a=c.get(r)??0,o=a===0?r:`${r}-${a}`,l=t?.(e)??e.groups??{};s.push(o),c.set(r,a+1),n.set(o,i?.(l))}),r=r.replaceAll(o,()=>{let e=s.shift(),t=n.get(e);return typeof t==`string`?t:`<span data-component-key="${e}"></span>`})}),{markdown:r,previewMap:n}}}));function Pye(e,t){O(t,!0),K(e,Rye);let n=()=>j(JP,`$cmsConfig`,i),r=()=>j(z4,`$entryDraft`,i),[i,a]=hn();oO(hye()),oO({renderer:{code({text:e,lang:t}){let{Prism:n}=window;return n&&t&&n.languages[t]?`<pre><code class="language-${t}">${n.highlight(e,n.languages[t],t)}</code></pre>\n`:!1}}});let o=n()?.field_defaults?.richtext??{},s=new sh,c=new sh,l=N(void 0),u=M(()=>r()?.originalEntry),d=M(()=>r()?.collectionName??``),f=M(()=>r()?.fileName),p=M(()=>T(t.fieldConfig.sanitize_preview,()=>o.sanitize_preview??!0,!0)),m=M(()=>T(t.fieldConfig.editor_components,()=>o.editor_components??[...L7,...Kk.keys()],!0)),h=M(()=>T(t.fieldConfig.linked_images,()=>o.linked_images??!0,!0)),g=M(()=>z(m).map(e=>Yk(e===`image`&&z(h)?`linked-image`:e)).filter(e=>!!e)),_=M(()=>{if(typeof t.currentValue!=`string`||!t.currentValue.trim())return``;let{markdown:e,previewMap:n}=Mye(t.currentValue,z(g));return c=n,e}),v=e=>{let t=e.dataset.componentKey,n=t?c.get(t):void 0;if((0,Fye.isValidElement)(n)){let t=(0,Iye.createRoot)(e);s.set(e,t),t.render(n)}else e.remove()},y=e=>{[e,...e.querySelectorAll(J7)].forEach(e=>{let t=s.get(e);t&&(t.unmount(),s.delete(e))})},b=async e=>{e.dataset.processed=`true`;let n=await _T({value:e.getAttribute(`src`),entry:z(u),collectionName:z(d),fileName:z(f),typedKeyPath:t.typedKeyPath});n&&(e.src=n)},x=e=>{e.forEach(({removedNodes:e,addedNodes:t})=>{e.forEach(e=>{e.nodeType===Node.ELEMENT_NODE&&y(e)}),t.forEach(e=>{if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;t.matches(`span[data-component-key]`)?v(t):t.querySelectorAll(J7).forEach(e=>{v(e)}),t.matches(`img[src]:not([data-processed])`)?b(t):t.querySelectorAll(wye).forEach(e=>{b(e)})})})},S=e=>{let t=cO(e,{breaks:!0});return z(p)?OE(t,Cye):t};ic(()=>{let e=new MutationObserver(x);return z(l)&&e.observe(z(l),{childList:!0,subtree:!0}),()=>{e.disconnect(),s.forEach(e=>e.unmount()),s.clear()}});var C=Lye(),w=F(C),ee=e=>{var t=H();mo(I(t),19,()=>Aye(z(_)),(e,t)=>`${t}-${e}`,(e,t)=>{var n=H();So(I(n),()=>S(z(t))),U(e,n)}),U(e,t)};G(w,e=>{z(_)&&e(ee)}),D(C),Us(C,e=>P(l,e),()=>z(l)),U(e,C),k(),a()}var Fye,Iye,Lye,Rye,zye=s((()=>{Q(),Y(),kE(),lO(),gye(),Fye=h(),Iye=Sye(),oc(),dh(),vT(),$P(),W4(),R7(),Xk(),Nye(),Lye=V(`<div role="none" class="svelte-14tuh7g"><!></div>`),Rye={hash:`svelte-14tuh7g`,code:`[role='document'] div.svelte-14tuh7g {:is(h1, h2, h3, h4, h5, h6, p, ul, ol) {margin:1em 0 0;}:is(video, img) {max-width:100%;max-height:100%;}:is(a:has(img)) {display:inline-block;img {pointer-events:none;}}}div.svelte-14tuh7g {[data-component-key] {display:contents;}}`}}));function Bye(e,t){O(t,!0);let n=M(()=>t.fieldConfig.options),r=M(()=>t.fieldConfig.multiple),i=M(()=>lS(z(n))),a=M(()=>cb(t.locale)),o=e=>z(i)&&z(n).find(t=>t.value===e)?.label||String(e);var s=H(),c=I(s),l=e=>{var n=Vye(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale),()=>z(a).format(t.currentValue.map(o).sort())]),U(e,n)},u=M(()=>z(r)&&Array.isArray(t.currentValue)&&t.currentValue.length),d=e=>{var n=Hye(),r=F(n,!0);D(n),R((e,t,i)=>{q(n,`lang`,e),q(n,`dir`,t),W(r,i),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale),()=>o(t.currentValue)]),U(e,n)};G(c,e=>{z(u)?e(l):t.currentValue!==void 0&&e(d,1)}),U(e,s),k()}var Vye,Hye,Uye=s((()=>{Q(),Y(),dS(),ub(),Vye=V(`<p> </p>`),Hye=V(`<p> </p>`)}));function Wye(e,t){O(t,!0),K(e,Kye);let n=M(()=>t.fieldConfig.minlength),r=M(()=>t.fieldConfig.maxlength),i=M(()=>H7({fieldConfig:t.fieldConfig,locale:t.locale,value:t.currentValue}).detail),a=M(()=>z(i).count),o=M(()=>z(i).hasMin),s=M(()=>z(i).hasMax),c=M(()=>z(i).invalid);var l=H(),u=I(l),d=e=>{var t=Gye(),i=F(t),l=e=>{var t=Fa();R(()=>W(t,`${z(n)??``} / `)),U(e,t)};G(i,e=>{z(o)&&e(l)});var u=L(i,2);let d;var f=F(u,!0);D(u);var p=L(u,2),m=e=>{var t=Fa();R(()=>W(t,` /
1048
+ ${z(r)??``}`)),U(e,t)};G(p,e=>{z(s)&&e(m)}),D(t),R(e=>{q(t,`aria-label`,e),d=ss(u,1,`count svelte-19vklom`,null,d,{invalid:z(c)}),W(f,z(a))},[()=>X(z(o)&&z(s)?`character_counter.min_max`:z(o)?`character_counter.min`:`character_counter.max`,{values:{count:z(a),min:z(n),max:z(r)}})]),U(e,t)};G(u,e=>{(z(o)||z(s))&&e(d)}),U(e,l),k()}var Gye,Kye,qye=s((()=>{Q(),Y(),Z(),Uve(),Gye=V(`<div class="wrapper svelte-19vklom"><!> <span role="none"> </span> <!></div>`),Kye={hash:`svelte-19vklom`,code:`.wrapper.svelte-19vklom {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.svelte-19vklom {&.invalid {color:var(--sui-error-foreground-color);}&:not(.invalid) {color:var(--sui-success-foreground-color);}}`}}));function Jye(e,t){O(t,!0);let[n,r]=hn(),i=J(t,`currentValue`,15),a=J(t,`required`,3,!0),o=J(t,`readonly`,3,!1),s=J(t,`invalid`,3,!1),{extraHint:c}=Rt(`field-editor`)??{},l=N(``),u=M(()=>T(t.fieldConfig.type,`text`)),d=M(()=>T(t.fieldConfig.prefix,``)),f=M(()=>T(t.fieldConfig.suffix,``)),p=()=>{let e=typeof i()==`string`?i():``;z(d)&&e.startsWith(z(d))&&(e=e.slice(z(d).length)),z(f)&&e.endsWith(z(f))&&(e=e.slice(0,-z(f).length)),z(l)!==e&&P(l,e,!0)},m=()=>{let e=z(l);e.trim()&&(z(d)||z(f))&&(e=`${z(d)}${e}${z(f)}`),i()!==e&&i(e)};ti(()=>{i(),B(()=>{p()})}),ti(()=>{z(l),B(()=>{m()})}),ti(()=>{c&&mn(c,Wye)});{let n=M(()=>rb(t.locale)),r=M(()=>ib(t.locale));lL(e,{get lang(){return z(n)},get dir(){return z(r)},get type(){return z(u)},get inputmode(){return z(u)},flex:!0,get readonly(){return o()},get required(){return a()},get invalid(){return s()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return z(l)},set value(e){P(l,e,!0)}})}k(),r()}var Yye=s((()=>{Q(),Y(),B$(),oc(),qye(),ub()})),Xye,Zye,Qye=s((()=>{Sp(),Xye=e=>{if(!bp(e))return!1;let{origin:t,pathname:n,searchParams:r}=new URL(e);return!!((t===`https://www.youtube.com`||t===`https://www.youtube-nocookie.com`)&&(n===`/watch`&&r.has(`v`)||n===`/playlist`&&r.has(`list`)||n.startsWith(`/embed/`))||t===`https://youtu.be`&&n)},Zye=e=>{let t=`https://www.youtube-nocookie.com`,{pathname:n,search:r,searchParams:i}=new URL(e);if(n===`/watch`){let e=new URLSearchParams(i),n=`${t}/embed/${e.get(`v`)}`;return e.get(`list`)&&(e.delete(`v`),e.set(`listType`,`playlist`),n+=`?${e}`),n}return n===`/playlist`?`${t}/embed/videoseries${r}`:n.startsWith(`/embed/`)?`${t}${n}${r}`:`${t}/embed${n}${r}`}}));function $ye(e,t){O(t,!0),K(e,rbe);let n=N(!0),r=M(()=>Zye(t.url)),i=({blockedURI:e,violatedDirective:t})=>{e===new URL(z(r)).origin&&t===`frame-src`&&(P(n,!1),window.removeEventListener(`securitypolicyviolation`,i))};ic(()=>(window.addEventListener(`securitypolicyviolation`,i),()=>{window.removeEventListener(`securitypolicyviolation`,i)}));var a=nbe(),o=F(a),s=e=>{U8(e,{children:(e,t)=>{var n=ebe();R((e,t)=>{q(n,`src`,e),q(n,`title`,t)},[()=>encodeURI(z(r)),()=>X(`youtube_video_player`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{var n=tbe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,e),W(r,t.url)},[()=>encodeURI(t.url)]),U(e,n)};G(o,e=>{z(n)?e(s):e(c,-1)}),D(a),U(e,a),k()}var ebe,tbe,nbe,rbe,ibe=s((()=>{Q(),Y(),Z(),oc(),K8(),Qye(),ebe=V(`<iframe frameborder="0" allow="autoplay; encrypted-media; picture-in-picture" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-spbxln"></iframe>`),tbe=V(`<a> </a>`),nbe=V(`<div role="none"><!></div>`),rbe={hash:`svelte-spbxln`,code:`iframe.svelte-spbxln {display:block;margin:0 auto;width:100%;height:auto;aspect-ratio:16 / 9;}`}}));function abe(e,t){O(t,!0),K(e,lbe);let n=M(()=>t.fieldConfig.name),r=M(()=>T(t.fieldConfig.type,`text`)),i=/^(?:https|mailto|tel):/;var a=H(),o=I(a),s=e=>{var a=cbe();let o;var s=F(a),c=e=>{var n=H(),r=I(n),a=e=>{$ye(e,{get url(){return t.currentValue}})},o=M(()=>Xye(t.currentValue)),s=e=>{var n=obe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,e),W(r,t.currentValue)},[()=>encodeURI(t.currentValue)]),U(e,n)},c=M(()=>i.test(t.currentValue)),l=e=>{var n=Fa();R(()=>W(n,t.currentValue)),U(e,n)};G(r,e=>{z(o)?e(a):z(c)?e(s,1):e(l,-1)}),U(e,n)},l=M(()=>z(r)===`url`||bp(t.currentValue)),u=e=>{var n=sbe(),r=F(n,!0);D(n),R(e=>{q(n,`href`,`mailto:${e??``}`),W(r,t.currentValue)},[()=>encodeURI(t.currentValue)]),U(e,n)},d=e=>{var n=Fa();R(()=>W(n,t.currentValue)),U(e,n)};G(s,e=>{z(l)?e(c):z(r)===`email`?e(u,1):e(d,-1)}),D(a),R((e,t)=>{q(a,`lang`,e),q(a,`dir`,t),o=ss(a,1,`svelte-euqs6c`,null,o,{title:z(n)===`title`}),a.dir=a.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,a)},c=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(o,e=>{z(c)&&e(s)}),U(e,a),k()}var obe,sbe,cbe,lbe,ube=s((()=>{Q(),Y(),Sp(),ibe(),ub(),Qye(),obe=V(`<a> </a>`),sbe=V(`<a> </a>`),cbe=V(`<p><!></p>`),lbe={hash:`svelte-euqs6c`,code:`.title.svelte-euqs6c {font-size:var(--sui-font-size-xxx-large);font-weight:var(--sui-font-weight-bold);}
1049
+
1050
+ /* Remove the padding to make the iframe full-width on small screens */
1051
+ @media (width < 768px) {[role='document'] section > p.svelte-euqs6c:has(iframe) {margin-inline:calc(var(--entry-preview-padding-inline) * -1);}
1052
+ }`}}));function dbe(e,t){O(t,!0);let[n,r]=hn(),{extraHint:i}=Rt(`field-editor`)??{},a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!1),c=J(t,`invalid`,3,!1),l=N(``),u=()=>{let e=typeof a()==`string`?a():``;z(l)!==e&&P(l,e,!0)},d=()=>{let e=z(l);a()!==e&&a(e)};ti(()=>{a(),B(()=>{u()})}),ti(()=>{z(l),B(()=>{d()})}),ti(()=>{i&&mn(i,Wye)});{let n=M(()=>rb(t.locale)),r=M(()=>ib(t.locale));l$(e,{get lang(){return z(n)},get dir(){return z(r)},flex:!0,get readonly(){return s()},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},autoResize:!0,get value(){return z(l)},set value(e){P(l,e,!0)}})}k(),r()}var fbe=s((()=>{Q(),Y(),B$(),oc(),qye(),ub()}));function pbe(e,t){O(t,!0),K(e,hbe);var n=H(),r=I(n),i=e=>{var n=mbe(),r=F(n,!0);D(n),R((e,i)=>{q(n,`lang`,e),q(n,`dir`,i),W(r,t.currentValue),n.dir=n.dir},[()=>rb(t.locale),()=>ib(t.locale)]),U(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var mbe,hbe,gbe=s((()=>{Q(),Y(),ub(),mbe=V(`<p class="svelte-q17c48"> </p>`),hbe={hash:`svelte-q17c48`,code:`p.svelte-q17c48 {white-space:pre-wrap;}`}})),X7,_be=s((()=>{hp(),X7=e=>{let{prefix:t,use_b32_encoding:n}=e,r=n?pp():fp();return t?`${t}${r}`:r}}));function vbe(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=J(t,`currentValue`,15),o=J(t,`required`,3,!0),s=J(t,`readonly`,3,!0),c=J(t,`invalid`,3,!1),l=M(()=>n()?.collection),u=M(()=>n()?.collectionFile),d=M(()=>(z(u)??z(l))?._i18n??Cb),f=M(()=>z(d).defaultLocale);ic(()=>{a()||(t.locale===z(f)||[!0,`translate`].includes(t.fieldConfig?.i18n??!1))&&a(X7(t.fieldConfig)),`read_only`in t.fieldConfig&&Qy(`uuid_read_only`)});{let n=M(()=>s()&&t.fieldConfig.read_only!==!1);lL(e,{dir:`ltr`,flex:!0,get readonly(){return z(n)},get required(){return o()},get invalid(){return c()},get"aria-labelledby"(){return`${t.fieldId??``}-label`},get"aria-errormessage"(){return`${t.fieldId??``}-error`},get value(){return a()},set value(e){a(e)}})}k(),i()}var ybe=s((()=>{Q(),Y(),B$(),oc(),$y(),W4(),_be(),jb()}));function bbe(e,t){O(t,!0),K(e,Sbe);var n=H(),r=I(n),i=e=>{var n=xbe(),r=F(n,!0);D(n),R(()=>W(r,t.currentValue)),U(e,n)},a=M(()=>typeof t.currentValue==`string`&&t.currentValue.trim());G(r,e=>{z(a)&&e(i)}),U(e,n),k()}var xbe,Sbe,Cbe=s((()=>{Q(),Y(),xbe=V(`<p class="svelte-1phz9g8"> </p>`),Sbe={hash:`svelte-1phz9g8`,code:`p.svelte-1phz9g8 {font-family:var(--sui-font-family-monospace);}`}})),Z7,Q7,wbe=s((()=>{bpe(),Cpe(),Tpe(),Ope(),Ppe(),Rpe(),Bpe(),Upe(),Jpe(),Zpe(),$he(),oge(),vge(),wge(),b_e(),I_e(),K_e(),X_e(),Q_e(),tve(),uve(),fve(),xve(),wve(),mye(),zye(),vve(),Uye(),Yye(),ube(),fbe(),gbe(),ybe(),Cbe(),Z7={boolean:ype,code:wpe,color:kpe,compute:zpe,datetime:Wpe,file:Jhe,image:Jhe,keyvalue:lge,list:y_e,map:V_e,markdown:dye,number:Z_e,object:ave,relation:yve,richtext:dye,select:_ve,string:Jye,text:dbe,uuid:vbe},Q7={boolean:xpe,code:Epe,color:Fpe,compute:Vpe,datetime:Ype,file:age,image:age,keyvalue:yge,list:F_e,map:q_e,markdown:Pye,number:$_e,object:dve,relation:Sve,richtext:Pye,select:Bye,string:abe,text:pbe,uuid:bbe}})),$7,e9,Tbe,t9,n9=s((()=>{rp(),W4(),_A(),$7=(e,t)=>{let n=t.split(`.`);for(let t=n.length-1;t>=1;--t)if(/^\d+$/.test(n[t])){let r=n.slice(0,t+1).join(`.`),i=e[`${r}.__sc_item_original_key_path`];if(i!==void 0){let e=n.slice(t+1).join(`.`);return{originalKeyPath:e?`${i}.${e}`:i,currentPrefix:r,originalPrefix:i}}}},e9=({locale:e,isDefaultLocale:t,keyPath:n,getFieldArgs:r,currentValues:i,reset:a=!1,remapPrefix:o})=>{let{valueMap:s={}}=r;Object.entries(s).forEach(([s,c])=>{if(!n||s.startsWith(n)){let n=uA({...r,keyPath:s});if(t||[!0,`translate`].includes(n?.i18n??!1))if(a)delete i[e][s];else{let t=o?`${o.to}${s.slice(o.from.length)}`:s;i[e][t]=c}}})},Tbe=({draft:e,keyPath:t,locale:n})=>{let{collection:r,collectionName:i,collectionFile:a,fileName:o,currentValues:s,originalValues:c,isIndexFile:l}=e,{defaultLocale:u}=(a??r)._i18n,d=n===u,f={collectionName:i,fileName:o,keyPath:``,isIndexFile:l},p=t?$7(s[n],t):void 0,m=p?.originalKeyPath??t,h=p?{from:p.originalPrefix,to:p.currentPrefix}:void 0;e9({locale:n,isDefaultLocale:d,keyPath:t,getFieldArgs:{...f,valueMap:s[n]},currentValues:s,reset:!0}),e9({locale:n,isDefaultLocale:d,keyPath:m,getFieldArgs:{...f,valueMap:c[n]},currentValues:s,remapPrefix:h})},t9=({locale:e=``,keyPath:t=``}={})=>{let n=A(z4),{collection:r,collectionFile:i,currentValues:a}=n,{allLocales:o}=(i??r)._i18n;(e?[e]:o).forEach(e=>{Tbe({draft:n,keyPath:t,locale:e})}),z4.update(()=>({...n,currentValues:a}))}}));function r9(e,t){let n=Ia();O(t,!0),K(e,Rbe);let r=()=>j(z4,`$entryDraft`,a),i=()=>j(d,`$extraHint`,a),[a,o]=hn(),s=Rt(`field-editor`)??{},c=J(t,`context`,19,()=>s.fieldContext??void 0),l=J(t,`valueStoreKey`,19,()=>s.valueStoreKey??`currentValues`),u=e=>OE(sO(e.replaceAll(`\\n`,`<br>`)),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`,`br`],ALLOWED_ATTR:[`href`]}),d=un();zt(`field-editor`,{fieldContext:c(),extraHint:d,valueStoreKey:l()});let f=M(()=>c()===`rich-text-editor-component`),p=M(()=>t.fieldConfig.name),m=M(()=>T(t.fieldConfig.widget,`string`)),h=M(()=>T(t.fieldConfig.i18n,!1)),g=M(()=>T(t.fieldConfig.label,``)),_=M(()=>T(t.fieldConfig.comment,``)),v=M(()=>T(t.fieldConfig.hint,``)),y=M(()=>T(t.fieldConfig.readonly,!1)),b=M(()=>dA({fieldConfig:t.fieldConfig,locale:t.locale})),x=M(()=>sA(t.fieldConfig)),S=M(()=>[`string`].includes(z(m))),C=M(()=>z(S)?t.fieldConfig.prefix:void 0),w=M(()=>z(S)?t.fieldConfig.suffix:void 0),ee=M(()=>[`boolean`,`number`,`string`].includes(z(m))),te=M(()=>z(ee)?t.fieldConfig.before_input:void 0),ne=M(()=>z(ee)?t.fieldConfig.after_input:void 0),re=M(()=>!!(z(C)||z(w)||z(te)||z(ne))),ie=M(()=>z(m)===`list`||z(x)),ae=M(()=>r()?.collection),oe=M(()=>r()?.collectionFile),se=M(()=>r()?.originalValues),ce=M(()=>(z(oe)??z(ae))?._i18n??Cb),le=M(()=>z(ce).i18nEnabled),ue=M(()=>z(ce).allLocales),de=M(()=>z(ce).defaultLocale),fe=M(()=>z(le)?z(ue).filter(e=>e!==t.locale):[]),E=M(()=>z(le)&&(z(h)===!0||z(h)===`translate`)),pe=M(()=>z(le)&&z(h)===`duplicate`),me=M(()=>z(f)||t.locale===z(de)||z(E)||z(pe)),he=M(()=>!z(f)&&z(E)&&z(fe).length),ge=M(()=>!z(f)&&!(z(pe)&&t.locale!==z(de))),_e=M(()=>RegExp(`^${gp(t.keyPath)}\\.\\d+$`)),ve=M(()=>{let e=jt(r()?.[l()][t.locale]??{}),n=e[t.keyPath];if(!z(ie))return n;let i=Object.entries(e).filter(([e])=>z(_e).test(e));return i.length?i.map(([,e])=>e).filter(e=>e!==void 0):z(x)&&n!==void 0&&typeof n!=`object`?[n]:[]}),ye=M(()=>{if(z(ie))return Object.entries(z(se)?.[t.locale]??{}).filter(([e])=>z(_e).test(e)).map(([,e])=>e).filter(e=>e!==void 0);let e=$7(jt(r()?.[l()][t.locale]??{}),t.keyPath);return e?z(se)?.[t.locale]?.[e.originalKeyPath]:z(se)?.[t.locale]?.[t.keyPath]}),be=M(()=>{if(z(m)===`list`){let e=jt(r()?.[l()][t.locale]??{}),n=z(se)?.[t.locale]??{},i=`${t.keyPath}.`;return(0,i9.default)(Object.entries(e).filter(([e])=>e.startsWith(i)&&!R4.test(e)).sort(([e],[t])=>e.localeCompare(t)),Object.entries(n).filter(([e])=>e.startsWith(i)&&!R4.test(e)).sort(([e],[t])=>e.localeCompare(t)))}return(0,i9.default)(z(ve),z(ye))}),xe=M(()=>r()?.validities[t.locale][t.keyPath]),Se=M(()=>z(g)||z(p)),Ce=M(()=>z(y)||z(h)===`duplicate`&&t.locale!==z(de)||z(m)===`compute`||z(m)===`uuid`),we=M(()=>z(xe)?.valid===!1);ti(()=>{if(r()&&z(x)&&Array.isArray(z(ve))){let e=r()[l()][t.locale]?.[`${t.keyPath}.0`],[n]=z(ve);e===void 0&&n!==void 0&&(_n(z4,B(r)[l()][t.locale][`${t.keyPath}.0`]=n,B(r)),delete r()[l()][t.locale][t.keyPath])}}),ti(()=>{if(r()&&!z(x)&&z(ve)===void 0){let e=r()[l()][t.locale]?.[`${t.keyPath}.0`];e!==void 0&&(_n(z4,B(r)[l()][t.locale][t.keyPath]=e,B(r)),Object.keys(r()[l()][t.locale]).forEach(e=>{z(_e).test(e)&&delete r()[l()][t.locale][e]}))}});var Te=H(),Ee=I(Te),De=e=>{{let a=M(()=>X(`x_field`,{values:{field:z(Se)}})),o=M(()=>z(m)===`compute`);dpe(e,{get"aria-label"(){return z(a)},get"data-field-type"(){return z(m)},get"data-key-path"(){return t.keyPath},get"data-typed-key-path"(){return t.typedKeyPath},get hidden(){return z(o)},children:(e,a)=>{var o=Lbe(),s=I(o),c=F(s),d=F(c,!0);D(c);var f=L(c,2),p=e=>{var t=Ebe();R(e=>q(t,`aria-label`,e),[()=>X(`required`)]),U(e,t)};G(f,e=>{!z(Ce)&&z(b)&&e(p)});var h=L(f,2);UI(h,{flex:!0});var g=L(h,2),y=e=>{hpe(e,{size:`small`,get locale(){return t.locale},get otherLocales(){return z(fe)},get keyPath(){return t.keyPath}})},x=M(()=>z(he)&&[`richtext`,`markdown`,`string`,`text`,`list`,`object`].includes(z(m)));G(g,e=>{z(x)&&e(y)});var S=L(g,2),ee=e=>{{let n=e=>{{let n=M(()=>X(`field_options`));UL(e,{get"aria-label"(){return z(n)},children:(e,n)=>{var r=Dbe(),i=I(r),a=e=>{j5(e,{get locale(){return t.locale},get otherLocales(){return z(fe)},get keyPath(){return t.keyPath}})};G(i,e=>{z(he)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`revert_changes`));qL(e,{get label(){return z(n)},get disabled(){return z(be)},onclick:()=>{t9({locale:t.locale,keyPath:t.keyPath})}})}};G(o,e=>{z(ge)&&e(s)}),U(e,r)},$$slots:{default:!0}})}},r=M(()=>X(`show_field_options`));NI(e,{variant:`ghost`,size:`small`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},popup:n,$$slots:{popup:!0}})}};G(S,e=>{(z(he)||z(ge))&&e(ee)}),D(s);var T=L(s,2),ae=e=>{var t=Obe(),n=F(t);So(n,()=>u(z(_)),!0),D(n),D(t),U(e,t)};G(T,e=>{!z(Ce)&&z(_)&&e(ae)});var oe=L(T,2),se=e=>{N5(e,{get id(){return`${n}-error`},children:(e,n)=>{_t();var i=Fa();R(e=>W(i,e),[()=>r()?.validationMessages[t.locale][t.keyPath]?.join(` `)]),U(e,i)},$$slots:{default:!0}})};G(oe,e=>{z(xe)?.valid===!1&&e(se)});var ce=L(oe,2);let le;var ue=F(ce),de=e=>{var t=kbe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`unsupported_field_type_x`,{values:{name:z(m)}})]),U(e,t)},E=e=>{let r=M(()=>Z7[z(m)]);var i=H();Oo(I(i),()=>z(r),(e,r)=>{r(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return z(Se)},get fieldConfig(){return t.fieldConfig},get currentValue(){return z(ve)},get readonly(){return z(Ce)},get required(){return z(b)},get invalid(){return z(we)}})}),U(e,i)},pe=e=>{let i=M(()=>Z7[z(m)]);var a=Pbe(),o=I(a),s=e=>{var t=Abe();So(t,()=>u(z(te)),!0),D(t),U(e,t)};G(o,e=>{z(te)&&e(s)});var c=L(o,2),d=e=>{var t=jbe(),n=F(t,!0);D(t),R(()=>W(n,z(C))),U(e,t)};G(c,e=>{z(C)&&e(d)});var f=L(c,2);Oo(f,()=>z(i),(e,i)=>{i(e,{get locale(){return t.locale},get keyPath(){return t.keyPath},get typedKeyPath(){return t.typedKeyPath},get fieldId(){return n},get fieldLabel(){return z(Se)},get fieldConfig(){return t.fieldConfig},get readonly(){return z(Ce)},get required(){return z(b)},get invalid(){return z(we)},get currentValue(){return r()[l()][t.locale][t.keyPath]},set currentValue(e){_n(z4,B(r)[l()][t.locale][t.keyPath]=e,B(r))}})});var p=L(f,2),h=e=>{var t=Mbe(),n=F(t,!0);D(t),R(()=>W(n,z(w))),U(e,t)};G(p,e=>{z(w)&&e(h)});var g=L(p,2),_=e=>{var t=Nbe();So(t,()=>u(z(ne)),!0),D(t),U(e,t)};G(g,e=>{z(ne)&&e(_)}),U(e,a)};G(ue,e=>{z(m)in Z7?z(ie)?e(E,1):e(pe,-1):e(de)}),D(ce);var me=L(ce,2),_e=e=>{let n=M(i);var r=Ibe(),a=F(r),o=e=>{var t=Fbe();So(t,()=>u(z(v)),!0),D(t),U(e,t)};G(a,e=>{z(v)&&e(o)}),Oo(L(a,2),()=>z(n),(e,n)=>{n(e,{get fieldConfig(){return t.fieldConfig},get locale(){return t.locale},get currentValue(){return z(ve)}})}),D(r),U(e,r)};G(me,e=>{!z(Ce)&&(z(v)||i())&&e(_e)}),R(()=>{q(c,`id`,`${n}-label`),W(d,z(Se)),le=ss(ce,1,`field-wrapper svelte-dkfcyc`,null,le,{"has-extra-labels":z(re)})}),U(e,o)},$$slots:{default:!0}})}};G(Ee,e=>{r()&&z(me)&&z(m)!==`hidden`&&e(De)}),U(e,Te),k(),o()}var i9,Ebe,Dbe,Obe,kbe,Abe,jbe,Mbe,Nbe,Pbe,Fbe,Ibe,Lbe,Rbe,a9=s((()=>{Q(),Y(),Z(),B$(),Sp(),i9=u(YM()),kE(),lO(),oc(),rp(),M5(),mpe(),gpe(),P5(),wbe(),W4(),n9(),_A(),jb(),Ebe=V(`<div class="required">*</div>`),Dbe=V(`<!> <!>`,1),Obe=V(`<div role="none" class="comment-wrapper"><p class="comment svelte-dkfcyc"></p></div>`),kbe=V(`<div role="none"> </div>`),Abe=V(`<div role="none" class="before-input svelte-dkfcyc"></div>`),jbe=V(`<div role="none" class="prefix svelte-dkfcyc"> </div>`),Mbe=V(`<div role="none" class="suffix svelte-dkfcyc"> </div>`),Nbe=V(`<div role="none" class="after-input svelte-dkfcyc"></div>`),Pbe=V(`<!> <!> <!> <!> <!>`,1),Fbe=V(`<p class="hint svelte-dkfcyc"></p>`),Ibe=V(`<div role="none" class="footer svelte-dkfcyc"><!> <!></div>`),Lbe=V(`<header role="none"><h4 role="none"> </h4> <!> <!> <!> <!></header> <!> <!> <div role="none"><!></div> <!>`,1),Rbe={hash:`svelte-dkfcyc`,code:`.field-wrapper.svelte-dkfcyc {&.has-extra-labels {display:flex;align-items:center;justify-content:flex-start;gap:4px;}:is(input[type='text'], textarea) {width:100%;}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);}input:is([type='file'], [type='checkbox']) {color:inherit;}& > div {color:inherit;}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;&:disabled {opacity:0.4;}}input[aria-invalid='true']:is(
1053
+ [type='color'],
1054
+ [type='date'],
1055
+ [type='datetime-local'],
1056
+ [type='time']
1057
+ ) {border-color:var(--sui-error-border-color);}input:read-only {
1058
+ /* Make readonly inputs selectable */-webkit-user-select:text;user-select:text;pointer-events:auto;}}.before-input.svelte-dkfcyc,
1059
+ .after-input.svelte-dkfcyc,
1060
+ .prefix.svelte-dkfcyc,
1061
+ .suffix.svelte-dkfcyc {color:var(--sui-secondary-foreground-color);white-space:nowrap;}.comment.svelte-dkfcyc,
1062
+ .hint.svelte-dkfcyc {margin-inline:var(--sui-focus-ring-width) !important;font-size:var(--sui-font-size-small);line-height:var(--sui-line-height-compact);}.comment.svelte-dkfcyc {margin-block:var(--sui-focus-ring-width) !important;}.hint.svelte-dkfcyc {flex:auto;margin-block:var(--sui-focus-ring-width) 0 !important;color:var(--sui-tertiary-foreground-color);}.footer.svelte-dkfcyc {display:flex;gap:16px;justify-content:flex-end;margin-top:4px;}`}}));function zbe(e,t){let n=Ia();O(t,!0);let r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=M(()=>r()?.collection),s=M(()=>r()?.collectionFile),c=M(()=>(z(s)??z(o))?._i18n??Cb),l=M(()=>z(c).defaultLocale),u=M(()=>r()?.slugEditor[t.locale]),d=M(()=>z(u)===!0),f=M(()=>z(u)===`readonly`),p=M(()=>r()?.validities[t.locale]._slug),m=M(()=>!z(f)&&z(p)?.valid===!1),h=N(``);ti(()=>{z(f)&&P(h,r()?.currentSlugs[t.locale]??``,!0)}),ti(()=>{z(h),B(()=>{r()&&Object.entries(r().slugEditor).forEach(([e,n])=>{(t.locale===e||t.locale===z(l)&&n===`readonly`)&&_n(z4,B(r).currentSlugs[e]=z(h),B(r))})})});var g=H(),_=I(g),v=e=>{dpe(e,{children:(e,t)=>{var r=Vbe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2),c=e=>{var t=Bbe();R(e=>q(t,`aria-label`,e),[()=>X(`required`)]),U(e,t)};G(s,e=>{z(d)&&e(c)}),D(i);var l=L(i,2),u=e=>{N5(e,{get id(){return`${n}-error`},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`validation.value_missing`)]),U(e,t)};G(r,e=>{z(p)?.valueMissing&&e(i)}),U(e,n)},$$slots:{default:!0}})};G(l,e=>{z(m)&&e(u)});var g=L(l,2);lL(F(g),{dir:`auto`,flex:!0,get readonly(){return z(f)},get required(){return z(d)},get invalid(){return z(m)},get"aria-labelledby"(){return`${n}-label`},get"aria-errormessage"(){return`${n}-error`},get value(){return z(h)},set value(e){P(h,e,!0)}}),D(g),R(e=>{q(a,`id`,`${n}-label`),W(o,e)},[()=>X(`slug`)]),U(e,r)},$$slots:{default:!0}})};G(_,e=>{r()&&e(v)}),U(e,g),k(),a()}var Bbe,Vbe,Hbe=s((()=>{Q(),Y(),Z(),B$(),oc(),mpe(),P5(),W4(),jb(),Bbe=V(`<div class="required">*</div>`),Vbe=V(`<header role="none"><h4 role="none"> </h4> <!></header> <!> <div role="none" class="field-wrapper"><!></div>`,1)}));function Ube(e,t){O(t,!0);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()?.fields??[]);U8(e,{children:(e,r)=>{var i=Wbe(),o=I(i),s=e=>{zbe(e,{get locale(){return t.locale}})};G(o,e=>{n()?.slugEditor[t.locale]&&e(s)}),mo(L(o,2),17,()=>z(a),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{r9(e,{get keyPath(){return z(n).name},get typedKeyPath(){return z(n).name},get locale(){return t.locale},get fieldConfig(){return z(n)}})},$$slots:{default:!0}})}),U(e,i)},$$slots:{default:!0}}),k(),i()}var Wbe,Gbe=s((()=>{Q(),Y(),K8(),a9(),Hbe(),W4(),Wbe=V(`<!> <!>`,1)}));function Kbe(e,t){let n=J(t,`children`,3,void 0);var r=H();Eo(I(r),()=>n()??E),U(e,r)}var qbe=s((()=>{Q(),Y()}));function Jbe(e,t){O(t,!0),K(e,Xbe);let n=N(void 0),r=()=>`
1007
1063
  <!DOCTYPE html>
1008
1064
  <html lang="${Hk(t.locale)}">
1009
1065
  <head>
@@ -1013,166 +1069,196 @@ Error generating stack: `+e.message+`
1013
1069
  </head>
1014
1070
  <body></body>
1015
1071
  </html>
1016
- `,i=()=>{let e=z(n)?.contentDocument?.body;e&&za(Kbe,{target:e,props:{children:t.children}})},a=()=>{if(z(n)){let e=URL.createObjectURL(new Blob([r()],{type:`text/html`}));z(n).addEventListener(`load`,()=>{i(),URL.revokeObjectURL(e)},{once:!0}),z(n).src=e}};ti(()=>{z(n)&&a()});var o=Ybe();Us(o,e=>P(n,e),()=>z(n)),R(e=>q(o,`title`,e),[()=>X(`content_preview`)]),U(e,o),k()}var Ybe,Xbe,Zbe=s((()=>{Q(),Y(),Z(),oc(),qbe(),Gk(),Ybe=V(`<iframe class="preview svelte-1k58u5t" sandbox="allow-same-origin allow-scripts"></iframe>`),Xbe={hash:`svelte-1k58u5t`,code:`iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}`}}));function Qbe(e,t){O(t,!0),K(e,exe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=e=>{var n=H();mo(I(n),17,()=>z(o),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{j7(e,{get keyPath(){return z(n).name},get typedKeyPath(){return z(n).name},get locale(){return t.locale},get fieldConfig(){return z(n)}})},$$slots:{default:!0}})}),U(e,n)},o=M(()=>n()?.fields??[]);U8(e,{children:(e,n)=>{var r=H(),i=I(r),o=e=>{{let n=M(()=>[...LF]);Jbe(e,{get locale(){return t.locale},get styleURLs(){return z(n)},get children(){return a}})}},s=e=>{var t=$be();a(F(t)),D(t),R(e=>q(t,`aria-label`,e),[()=>X(`content_preview`)]),U(e,t)};G(i,e=>{LF.size?e(o):e(s,-1)}),U(e,r)},$$slots:{default:!0}}),k(),i()}var $be,exe,txe=s((()=>{Q(),Y(),Z(),K8(),Zbe(),M7(),W4(),RF(),$be=V(`<div role="document" class="svelte-17akd4q"><!></div>`),exe={hash:`svelte-17akd4q`,code:`div.svelte-17akd4q {--entry-preview-padding-block: 8px;--entry-preview-padding-inline: 16px;padding-block:var(--entry-preview-padding-block);padding-inline:var(--entry-preview-padding-inline);}`}})),o9,s9,c9,nxe,l9=s((()=>{cS(),o9=u(YM(),1),rp(),kP(),RF(),s9=un(),c9={},nxe=async({repository:e})=>{let{databaseName:t}=e??{},n=t?new aS(t,`ui-settings`):null,r=`entry-view`,i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:`grid`},...await n?.get(r)};s9.set(i),IF.set(i.selectAssetsView),c9.entryEditorSettingsUnsubscribe?.(),c9.selectAssetsViewUnsubscribe?.(),c9.entryEditorSettingsUnsubscribe=s9.subscribe(e=>{(async()=>{try{(0,o9.default)(e,await n?.get(r))||await n?.set(r,e)}catch{}})()}),c9.selectAssetsViewUnsubscribe=IF.subscribe(e=>{!e||!Object.keys(e).length||(0,o9.default)(e,A(s9)?.selectAssetsView??{})||s9.update(t=>({...t,selectAssetsView:e}))})},DP.subscribe(e=>{e&&!A(s9)&&nxe(e)})}));function rxe(e,t){O(t,!0),K(e,sxe);let n=()=>j(s9,`$entryEditorSettings`,a),r=()=>j(t.thisPane,`$thisPane`,a),i=()=>j(z4,`$entryDraft`,a),[a,o]=hn(),s=J(t,`thisPaneContentArea`,15),c=J(t,`thatPaneContentArea`,15),l=M(()=>n()??{}),u=M(()=>z(l).syncScrolling),d=M(()=>r()?.locale),f=M(()=>r()?.mode),p=M(()=>!!z(d)&&!!jt(i()?.currentValues[z(d)])),m=M(()=>({values:{locale:z(d)?ob(z(d))??z(d):``}})),h=M(()=>z(f)===`preview`?Qbe:Ube),g=N(void 0),_=()=>{window.requestAnimationFrame(()=>{if(!z(u)||!z(g)||!s()||!c())return;let{x:e,y:t}=s()===z(g)?s().getBoundingClientRect():{x:0,y:0},{ownerDocument:n,scrollTop:r,scrollHeight:i,clientHeight:a}=s(),o=r/(i-a),l=n.elementsFromPoint(e+80,t).find(e=>e.matches(`[data-key-path]`));if(!l){c(c().scrollTop=c().scrollHeight*o,!0);return}let{keyPath:d}=l.dataset,{top:f,height:p}=l.getBoundingClientRect(),m=(t-f)/p,h=c().querySelector(`[data-key-path="${CSS.escape(d??``)}"]`);m<0||m>1||!h||c(c().scrollTop=h.offsetTop-t+h.clientHeight*m,!0)})},v={capture:!0,passive:!0},y=async()=>{if(!z(g))return;s()&&(s().removeEventListener(`wheel`,_,v),s().removeEventListener(`touchmove`,_,v));let e=z(g).querySelector(`iframe.preview`);e?(await Jx(250),s(e?.contentDocument?.firstElementChild)):s(z(g)),s()&&(s(s().scrollTop=0,!0),s().addEventListener(`wheel`,_,v),s().addEventListener(`touchmove`,_,v))};ti(()=>{r()?.mode,z(g),y()});var b=oxe(),x=F(b),S=e=>{var t=ixe();Oo(F(t),()=>z(h),(e,t)=>{t(e,{get locale(){return z(d)}})}),D(t),Us(t,e=>P(g,e),()=>z(g)),U(e,t)},C=e=>{P$(e,{children:(e,t)=>{var n=axe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(z(p)?`reenable_x_locale`:`enable_x_locale`,z(m)));tI(a,{variant:`tertiary`,get label(){return z(e)},onclick:()=>{z(d)&&P7(z(d))}})}R(e=>W(i,e),[()=>X(z(p)?`locale_x_now_disabled`:`locale_x_has_been_disabled`,z(m))]),U(e,n)},$$slots:{default:!0}})};G(x,e=>{z(d)&&i()?.currentLocales[z(d)]?e(S):z(f)===`edit`&&e(C,1)}),D(b),R(()=>q(b,`id`,t.id)),U(e,b),k(),o()}var ixe,axe,oxe,sxe,cxe=s((()=>{Q(),Y(),Z(),B$(),Yx(),Gbe(),txe(),W4(),F7(),l9(),ub(),ixe=V(`<div role="none" class="content svelte-1vy4qxn"><!></div>`),axe=V(`<span role="alert"> </span> <!>`,1),oxe=V(`<div role="none" class="wrapper svelte-1vy4qxn"><!></div>`),sxe={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;}
1017
- @media (width < 768px) {.content.svelte-1vy4qxn {--field-editor-padding: 12px;}
1018
- }`}}));function lxe(e,t){O(t,!0),K(e,pxe);let n=()=>j(z4,`$entryDraft`,c),r=()=>j(zA,`$isSmallScreen`,c),i=()=>j(BA,`$isMediumScreen`,c),a=()=>j(u(),`$thatPane`,c),o=()=>j(t.thisPane,`$thisPane`,c),s=()=>j(s9,`$entryEditorSettings`,c),[c,l]=hn(),u=J(t,`thatPane`,19,()=>un(null)),d=M(()=>n()?.collection),f=M(()=>n()?.collectionFile),p=M(()=>(z(f)??z(d))?._i18n??Cb),m=M(()=>z(p).allLocales),h=M(()=>r()||i()?[...z(m)]:z(m).filter(e=>!(a()?.mode===`edit`&&a().locale===e))),g=M(()=>Object.entries(n()?.validities??{}).some(([e,t])=>z(h).includes(e)&&Object.values(t??{}).some(({valid:e})=>!e))),_=M(()=>n()?.canPreview??!0),v=M(()=>r()||i()||z(m).length>=5),y=M(()=>z(v)?NR:kI),b=M(()=>z(v)?RL:MI),x=M(()=>z(v)?void 0:`tertiary`),S=M(()=>z(v)?void 0:`small`),C=M(()=>o()?.mode===`edit`?o().locale:o()?.mode===`preview`?`preview`:void 0);var w=fxe(),ee=F(w);{let e=M(()=>z(g)&&z(v)?`error`:void 0),r=M(()=>X(`switch_locale`)),i=M(()=>t.id.replace(`-header`,`-body`));Oo(ee,()=>z(y),(c,l)=>{l(c,{get value(){return z(C)},get class(){return z(e)},get"aria-label"(){return z(r)},get"aria-controls"(){return z(i)},children:(e,r)=>{var i=dxe(),c=F(i);mo(c,16,()=>z(h),e=>e,(e,r)=>{let i=M(()=>ob(r)??r),s=M(()=>!n()?.currentLocales[r]),c=M(()=>Object.values(n()?.validities[r]??{}).some(({valid:e})=>!e));var l=H(),d=I(l);{let e=e=>{var t=H(),n=I(t),r=e=>{zF(e,{name:`edit_off`})},i=e=>{zF(e,{name:`error`})};G(n,e=>{z(s)?e(r):z(c)&&e(i,1)}),U(e,t)},n=M(()=>z(i)),l=M(()=>z(s)?X(`locale_content_disabled_short`):z(c)?X(`locale_content_error_short`):``),f=M(()=>o()?.mode===`edit`&&o().locale===r),p=M(()=>z(c)?`error`:``);Oo(d,()=>z(b),(o,s)=>{s(o,{get variant(){return z(x)},get size(){return z(S)},get label(){return z(i)},get value(){return r},get"aria-label"(){return`${z(n)??``} ${z(l)??``}`},get selected(){return z(f)},get class(){return z(p)},"data-mode":`edit`,onSelect:()=>{mn(t.thisPane,{mode:`edit`,locale:r}),a()?.mode===`preview`&&mn(u(),{mode:`preview`,locale:r})},startIcon:e,$$slots:{startIcon:!0}})})}U(e,l)});var l=L(c,2),d=e=>{var n=uxe(),r=I(n),i=e=>{zI(e,{})};G(r,e=>{z(v)&&e(i)});var s=L(r,2);{let e=M(()=>X(`preview`)),n=M(()=>o()?.mode===`preview`);Oo(s,()=>z(b),(r,i)=>{i(r,{get variant(){return z(x)},get size(){return z(S)},get label(){return z(e)},value:`preview`,get selected(){return z(n)},"data-mode":`preview`,onSelect:()=>{mn(t.thisPane,{mode:`preview`,locale:a()?.locale??``})}})})}U(e,n)};G(l,e=>{a()?.mode===`edit`&&z(_)&&s()?.showPreview&&e(d)}),D(i),U(e,i)},$$slots:{default:!0}})})}D(w),U(e,w),k(),l()}var uxe,dxe,fxe,pxe,mxe=s((()=>{Q(),Y(),Z(),B$(),rp(),W4(),l9(),ub(),jb(),WA(),uxe=V(`<!> <!>`,1),dxe=V(`<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>`),fxe=V(`<div role="none" class="wrapper svelte-1ibgz0y"><!></div>`),pxe={hash:`svelte-1ibgz0y`,code:`.wrapper.svelte-1ibgz0y {display:contents;}
1019
- @media (width < 1024px) {.wrapper.svelte-1ibgz0y .combobox {min-width:128px;--sui-textbox-height: 32px;--sui-button-medium-height: 32px;}
1020
- }.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 hxe(e,t){O(t,!0);let n=()=>j(t.thisPane,`$thisPane`,r),[r,i]=hn();{let r=e=>{zF(e,{name:`visibility`})},i=M(()=>X(`preview`)),a=M(()=>n()?.mode===`preview`);tI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get pressed(){return z(a)},onclick:()=>{mn(t.thisPane,{mode:n()?.mode===`preview`?`edit`:`preview`,locale:n()?.locale??``})},startIcon:r,$$slots:{startIcon:!0}})}k(),i()}var gxe=s((()=>{Q(),Y(),Z(),B$()}));function _xe(e,t){O(t,!0),K(e,Dxe);let n=()=>j(z4,`$entryDraft`,c),r=()=>j(t.thisPane,`$thisPane`,c),i=()=>j(zA,`$isSmallScreen`,c),a=()=>j(BA,`$isMediumScreen`,c),o=()=>j($M,`$prefs`,c),s=()=>j(DP,`$backend`,c),[c,l]=hn(),u=J(t,`thatPane`,19,()=>un(null)),d=M(()=>n()?.collection),f=M(()=>n()?.collectionFile),p=M(()=>n()?.originalEntry),m=M(()=>n()?.originalValues??{}),h=M(()=>(z(f)??z(d))?._i18n??Cb),g=M(()=>z(h).i18nEnabled),_=M(()=>z(h).saveAllLocales),v=M(()=>z(h).allLocales),y=M(()=>z(h).defaultLocale),b=M(()=>n()?.currentLocales[r()?.locale??``]),x=M(()=>Object.values(n()?.currentLocales??{}).filter(e=>e).length===1),S=M(()=>z(g)?z(v).filter(e=>e!==r()?.locale):[]),C=M(()=>!!z(S).length),w=M(()=>r()?.locale&&!(0,vxe.default)(z(m)[r().locale],H4(jt(n()?.currentValues[r().locale])??{}))),ee=M(()=>n()?.canPreview??!0),T=M(()=>z(d)&&z(p)&&r()?.locale?KO(z(p),r().locale,z(d),z(f)):void 0);var te=Exe(),ne=F(te);{let e=M(()=>X(`secondary`));$Q(ne,{variant:`secondary`,get"aria-label"(){return z(e)},children:(e,c)=>{var l=Txe(),d=I(l),f=e=>{var n=yxe(),r=I(n);lxe(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return u()}});var o=L(r,2),s=e=>{hxe(e,{get thisPane(){return t.thisPane}})};G(o,e=>{(i()||a())&&z(ee)&&e(s)}),U(e,n)},m=e=>{var t=bxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>r()?.mode===`preview`?X(`preview`):X(`edit`)]),U(e,t)},h=e=>{hxe(e,{get thisPane(){return t.thisPane}})};G(d,e=>{z(g)&&z(v).length>1?e(f):i()||a()?z(ee)&&e(h,2):e(m,1)});var te=L(d,2);UI(te,{flex:!0});var ne=L(te,2),re=e=>{let t=M(()=>ob(r().locale)??r().locale);var i=wxe(),a=I(i),c=e=>{hpe(e,{get locale(){return r().locale},get otherLocales(){return z(S)}})};G(a,e=>{z(C)&&e(c)});var l=L(a,2);{let e=e=>{{let i=M(()=>X(`content_options_x_locale`,{values:{locale:z(t)}}));UL(e,{get"aria-label"(){return z(i)},children:(e,i)=>{var a=Cxe(),c=I(a),l=e=>{j5(e,{get locale(){return r().locale},get otherLocales(){return z(S)}})};G(c,e=>{z(C)&&r()?.locale&&e(l)});var u=L(c,2);{let e=M(()=>X(`revert_changes`)),t=M(()=>!z(w));qL(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9({locale:r()?.locale})}})}var d=L(u,2),f=e=>{var i=xxe(),a=I(i);zI(a,{});var o=L(a,2);{let e=M(()=>X(z(b)?`disable_x_locale`:jt(n()?.currentValues[r().locale])?`reenable_x_locale`:`enable_x_locale`,{values:{locale:z(t)}})),i=M(()=>r().locale===z(y)||z(b)&&z(x));qL(o,{get label(){return z(e)},get disabled(){return z(i)},onclick:()=>{P7(r()?.locale??``)}})}U(e,i)};G(d,e=>{!z(_)&&r()?.locale&&e(f)});var m=L(d,2),h=e=>{var t=Sxe(),n=I(t);zI(n,{});var i=L(n,2),a=e=>{{let t=M(()=>X(`view_on_live_site`));qL(e,{get label(){return z(t)},onclick:()=>{u1(z(T))}})}};G(i,e=>{z(T)&&e(a)});var c=L(i,2),l=e=>{{let t=M(()=>!s()?.repository?.blobBaseURL),n=M(()=>X(`view_on_x`,{values:{service:s()?.repository?.label},default:X(`view_in_repository`)}));qL(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{z(p)&&r()&&u1(qO(z(p),r().locale))}})}};G(c,e=>{o().devModeEnabled&&e(l)}),U(e,t)};G(m,e=>{z(p)&&(z(T)||o().devModeEnabled)&&e(h)}),U(e,a)},$$slots:{default:!0}})}},i=M(()=>X(`show_content_options_x_locale`,{values:{locale:z(t)}}));NI(l,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:e,$$slots:{popup:!0}})}U(e,i)};G(ne,e=>{r()?.mode===`edit`&&e(re)}),U(e,l)},$$slots:{default:!0}})}D(te),R(()=>q(te,`id`,t.id)),U(e,te),k(),l()}var vxe,yxe,bxe,xxe,Sxe,Cxe,wxe,Txe,Exe,Dxe,Oxe=s((()=>{Q(),Y(),Z(),B$(),vxe=u(YM()),rp(),M5(),gpe(),mxe(),gxe(),kP(),W4(),F7(),n9(),JO(),ub(),jb(),WA(),eN(),d1(),yxe=V(`<!> <!>`,1),bxe=V(`<h3 role="none"> </h3>`),xxe=V(`<!> <!>`,1),Sxe=V(`<!> <!> <!>`,1),Cxe=V(`<!> <!> <!> <!>`,1),wxe=V(`<!> <!>`,1),Txe=V(`<!> <!> <!>`,1),Exe=V(`<div role="none" class="header svelte-uj56is"><!></div>`),Dxe={hash:`svelte-uj56is`,code:`.header.svelte-uj56is {flex:none !important;}.header.svelte-uj56is > .sui.toolbar {margin-inline:auto;max-width:800px;}
1021
- @media (width < 768px) {.header.svelte-uj56is > .sui.toolbar {padding:0;}
1022
- }.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`}}));function u9(e,t){let n=Ia();K(e,Axe);let r=J(t,`children`,3,void 0);var i=kxe(),a=F(i),o=F(a),s=F(o,!0);D(o),D(a);var c=L(a,2);Eo(F(c),()=>r()??E),D(c),D(i),R(()=>{q(i,`aria-labelledby`,`panel-${n}-label`),q(o,`id`,`panel-${n}-label`),W(s,t.title)}),U(e,i)}var kxe,Axe,d9=s((()=>{Q(),Y(),kxe=V(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),Axe={hash:`svelte-1bq1or9`,code:`section.svelte-1bq1or9 {overflow:hidden;height:100%;display:flex;flex-direction:column;}header.svelte-1bq1or9 {flex:none;display:flex;align-items:center;border-bottom:1px solid var(--sui-secondary-border-color);padding:0 16px;height:var(--sui-primary-toolbar-size);}h3.svelte-1bq1or9 {font-size:var(--sui-font-size-x-large);}div.svelte-1bq1or9 {flex:auto;overflow:auto;}div.svelte-1bq1or9 h4 {display:flex;align-items:center;padding:12px 12px 8px;font-size:var(--sui-font-size-large);}div.svelte-1bq1or9 > .empty {padding:16px;}div.svelte-1bq1or9 .empty {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}div.svelte-1bq1or9 .sui.button.ref {display:flex;justify-content:flex-start;gap:8px;padding:8px;width:-moz-available;width:-webkit-fill-available;width:stretch;height:auto;}`}})),f9,jxe,Mxe,Nxe,Pxe=s((()=>{Sp(),rp(),$P(),Vy(),qb(),ak(),wO(),Mk(),f9=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${gp(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},jxe=(e,t,n)=>{let{collection:r,file:i}=e;if(!Wb(r))return new Set;let a=Ak({locale:n,fieldConfig:e,refEntries:i?A(Iy).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):tk(r)}),o=e.value_field;if(!o||o===`{{slug}}`||o===`slug`)return new Set([t.slug]);let s=t.locales[n]?.content??Object.values(t.locales)[0]?.content??{};if(!o.includes(`{{`)&&!o.includes(`*`)){let e=s[o];return e==null?new Set:new Set([e])}let c=t.slug,l=new Set(a.filter(e=>String(e.value).includes(c)).map(e=>e.value));if(l.size===0){let e=s[o.replace(/^{{|}}$/g,``)];e!=null&&l.add(e)}return l},Mxe=(e,t,n,r,i)=>i?Object.keys(e).filter(e=>i.test(e)).some(t=>f9(e,t,n).some(e=>r.has(e))):f9(e,t,n).some(e=>r.has(e)),Nxe=({collectionName:e,fileName:t,entry:n})=>{let r=Wb(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...QP.relationFields].filter(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t));if(a.length===0)return[];let o=new Map(a.map(({fieldConfig:e})=>[e,jxe(e,n,i)]));return a.flatMap(({fieldConfig:t,context:r})=>{let i=r.collection;if(!i||!(`name`in i))return[];let a=i.name,s=Wb(a);if(!s)return[];let c=s._i18n.defaultLocale,l=o.get(t)??new Set;if(l.size===0)return[];let u=(r.typedKeyPath??``).replace(/<[^>]+>/g,``).replace(/\.\*\./g,`.*.`).replace(/\.\*$/,`.*`),d=t.name,f=u.replace(/\*\./g,``).replace(/\*$/g,``)||d,p=f.includes(`*`)?RegExp(`^${gp(f).replace(/\\\*/g,`\\d+`)}$`):void 0;return(a===e?tk(a).filter(e=>e.slug!==n.slug):tk(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!Mxe(n,f,!!t.multiple,l,p)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:CO(s,e)}}).filter(e=>!!e)})}}));function Fxe(e,t){O(t,!0),K(e,zxe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>{let e=n();return e?.originalEntry?Nxe({collectionName:e.collectionName,fileName:e.fileName,entry:e.originalEntry}):[]}),o=M(()=>{let e=[];return z(a).forEach(t=>{let n=e.find(e=>e.collectionLabel===t.collectionLabel);n?n.items.push(t):e.push({collectionLabel:t.collectionLabel,items:[t]})}),e});{let t=M(()=>X(`entry_sidebar.backlinks.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=H();mo(I(t),17,()=>z(o),({collectionLabel:e,items:t})=>e,(e,t)=>{let n=()=>z(t).collectionLabel,r=()=>z(t).items;var i=Lxe(),a=F(i),o=F(a,!0);D(a),mo(L(a,2),17,r,e=>e.entry.id,(e,t)=>{tI(e,{class:`ref`,variant:`ghost`,onclick:()=>{y1(`/collections/${z(t).collectionName}/entries/${z(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=Ixe(),i=F(r,!0);D(r),R(()=>W(i,z(t).summary)),U(e,r)},$$slots:{default:!0}})}),D(i),R(()=>W(o,n())),U(e,i)}),U(e,t)},s=e=>{var t=Rxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.backlinks.no_entries`)]),U(e,t)};G(r,e=>{z(a).length>0?e(i):e(s,-1)}),U(e,n)},$$slots:{default:!0}})}k(),i()}var Ixe,Lxe,Rxe,zxe,Bxe=s((()=>{Q(),Y(),Z(),B$(),d9(),S1(),W4(),Pxe(),Ixe=V(`<span class="summary"> </span>`),Lxe=V(`<section class="collection svelte-1lhuwki" role="group"><h4> </h4> <!></section>`),Rxe=V(`<div class="empty"> </div>`),zxe={hash:`svelte-1lhuwki`,code:`.collection.svelte-1lhuwki {padding:4px;}.collection.svelte-1lhuwki:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}`}})),p9,Vxe,Hxe,Uxe=s((()=>{rp(),kP(),p9=new Map,Vxe=async e=>{let{id:t,locales:n}=e,r=p9.get(t);if(r)return r;let i=A(DP);if(!i?.fetchFileCommits)return{commits:[],loading:!1,error:!1};let a=[...new Set(Object.values(n).map(e=>e.path))];try{let e={commits:await i.fetchFileCommits(a),loading:!1,error:!1};return p9.set(t,e),e}catch{let e={commits:[],loading:!1,error:!0};return p9.set(t,e),e}},Hxe=e=>{p9.delete(e)}}));function Wxe(e,t){O(t,!0),K(e,Qxe);let n=()=>j(z4,`$entryDraft`,i),r=()=>j(DP,`$backend`,i),[i,a]=hn(),o=N(Cr([])),s=N(!1),c=N(!1),l=async()=>{let e=n()?.originalEntry;e&&(P(s,!0),await(async e=>{P(o,e.commits,!0),P(c,e.error,!0)})(await Vxe(e)),P(s,!1))};ic(()=>{l()});{let t=M(()=>X(`entry_sidebar.history.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=Gxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading`)]),U(e,t)},l=e=>{var t=Kxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.history.fetch_failed`)]),U(e,t)},u=e=>{var t=Xxe();mo(t,21,()=>z(o),e=>e.sha,(e,t)=>{let n=M(()=>r()?.repository?.commitBaseURL?`${r().repository.commitBaseURL}/${z(t).sha}`:void 0);{let r=M(()=>!z(n));tI(e,{class:`ref`,variant:`ghost`,role:`link`,get disabled(){return z(r)},onclick:()=>{z(n)&&u1(z(n))},children:(e,n)=>{var r=Yxe(),i=I(r),a=e=>{var n=qxe();R(()=>q(n,`src`,z(t).authorAvatarURL)),U(e,n)},o=e=>{U(e,Jxe())};G(i,e=>{z(t).authorAvatarURL?e(a):e(o,-1)});var s=L(i,2),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u,!0);D(u),D(s),R(e=>{W(l,z(t).authorName),W(d,e)},[()=>rC(z(t).date,Oh.current)]),U(e,r)},$$slots:{default:!0}})}}),D(t),U(e,t)},d=e=>{var t=Zxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.history.no_history`)]),U(e,t)};G(i,e=>{z(s)?e(a):z(c)?e(l,1):z(o).length>0?e(u,2):e(d,-1)}),U(e,n)},$$slots:{default:!0}})}k(),a()}var Gxe,Kxe,qxe,Jxe,Yxe,Xxe,Zxe,Qxe,$xe=s((()=>{Q(),Y(),Z(),B$(),oc(),d9(),kP(),W4(),Uxe(),iC(),d1(),Gxe=V(`<div class="empty"> </div>`),Kxe=V(`<div class="empty"> </div>`),qxe=V(`<img class="avatar svelte-14rpg2i" alt="" width="24" height="24" loading="lazy"/>`),Jxe=V(`<span class="avatar placeholder svelte-14rpg2i" aria-hidden="true"></span>`),Yxe=V(`<!> <span class="details svelte-14rpg2i"><span class="author svelte-14rpg2i"> </span> <span class="date svelte-14rpg2i"> </span></span>`,1),Xxe=V(`<div role="list" class="commits svelte-14rpg2i"></div>`),Zxe=V(`<div class="empty"> </div>`),Qxe={hash:`svelte-14rpg2i`,code:`.commits.svelte-14rpg2i {padding:4px;}.avatar.svelte-14rpg2i {flex:none;width:24px;height:24px;border-radius:50%;background-color:var(--sui-secondary-background-color);}.details.svelte-14rpg2i {display:flex;flex-direction:column;gap:2px;overflow:hidden;font-size:var(--sui-font-size-small);}.author.svelte-14rpg2i {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.date.svelte-14rpg2i {color:var(--sui-tertiary-foreground-color);}`}}));function eSe(e,t){O(t,!0),K(e,oSe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()??{}),o=M(()=>z(a).validationMessages),s=M(()=>z(a).collectionName),c=M(()=>z(a).fileName),l=M(()=>z(a).currentValues),u=M(()=>z(a).isIndexFile),d=M(()=>z(a).validities),f=M(()=>Object.values(z(d)??{}).some(e=>!!Object.keys(e).length)),p=M(()=>({collectionName:z(s),fileName:z(c),currentValues:z(l),isIndexFile:z(u)})),m=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}},window.location.origin)};{let t=M(()=>X(`entry_sidebar.validation.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=H();mo(I(t),17,()=>Object.entries(z(o)),([e,t])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1],a=M(()=>z(l)?.[r()]),o=M(()=>ob(r()));var s=iSe(),c=F(s),u=e=>{var t=tSe(),n=F(t,!0);D(t),R(()=>W(n,z(o))),U(e,t)};G(c,e=>{z(o)&&e(u)});var f=L(c,2),h=e=>{var t=H();mo(I(t),16,()=>Object.keys(z(a)),e=>e,(e,t)=>{let n=M(()=>uA({...z(p),valueMap:z(a),keyPath:t})),o=M(()=>i()[t]??[]);var s=H(),c=I(s),l=e=>{tI(e,{class:`ref`,variant:`ghost`,onclick:()=>{m({locale:r(),keyPath:t})},children:(e,t)=>{var r=nSe(),i=I(r),a=F(i,!0);D(i),mo(L(i,2),17,()=>z(o),fo,(e,t)=>{N5(e,{live:`off`,children:(e,n)=>{_t();var r=Fa();R(()=>W(r,z(t))),U(e,r)},$$slots:{default:!0}})}),R(()=>W(a,z(n)?.label||z(n)?.name)),U(e,r)},$$slots:{default:!0}})};G(c,e=>{z(o).length&&e(l)}),U(e,s)}),U(e,t)},g=M(()=>Object.values(z(d)[r()]).some(e=>e.valid===!1)),_=e=>{var t=rSe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.validation.no_errors_found`)]),U(e,t)};G(f,e=>{z(g)?e(h):e(_,-1)}),D(s),U(e,s)}),U(e,t)},a=e=>{var t=aSe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.validation.placeholder`)]),U(e,t)};G(r,e=>{z(d)&&z(f)?e(i):e(a,-1)}),U(e,n)},$$slots:{default:!0}})}k(),i()}var tSe,nSe,rSe,iSe,aSe,oSe,sSe=s((()=>{Q(),Y(),Z(),B$(),P5(),d9(),W4(),_A(),ub(),tSe=V(`<h4 class="svelte-mwf2jd"> </h4>`),nSe=V(`<span class="summary svelte-mwf2jd"> </span> <!>`,1),rSe=V(`<div class="empty svelte-mwf2jd"> </div>`),iSe=V(`<section class="locale svelte-mwf2jd" role="group"><!> <!></section>`),aSe=V(`<div class="empty"> </div>`),oSe={hash:`svelte-mwf2jd`,code:`.locale.svelte-mwf2jd {padding:4px;}.locale.svelte-mwf2jd:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}.locale.svelte-mwf2jd h4:where(.svelte-mwf2jd),
1023
- .locale.svelte-mwf2jd .empty:where(.svelte-mwf2jd) {margin:0 !important;padding:12px;}.locale.svelte-mwf2jd .summary:where(.svelte-mwf2jd) {display:block;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-heading-font-weight);}.locale.svelte-mwf2jd .sui.button.ref {flex-direction:column;align-items:flex-start;gap:4px;}`}}));function cSe(e,t){O(t,!0),K(e,dSe);let n=()=>j(z4,`$entryDraft`,a),r=()=>j(DP,`$backend`,a),i=()=>j(s9,`$entryEditorSettings`,a),[a,o]=hn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...QP.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),c=M(()=>[{key:`validation`,label:X(`entry_sidebar.validation.title`),icon:`check_circle`,disabled:!1,panel:eSe},{key:`history`,label:X(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:Wxe},{key:`backlinks`,label:X(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:Fxe}]),l=N(Cr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ti(()=>{s9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=uSe(),f=F(d);{let e=M(()=>X(`entry_sidebar.sidebar_panels`));kI(f,{class:`tabs`,get"aria-label"(){return z(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=H();mo(I(n),17,()=>z(c),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).disabled;{let t=M(()=>z(u)?.key===n());MI(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return z(t)},get disabled(){return a()},onclick:()=>{P(l,z(l)===n()?null:n(),!0)},children:(e,t)=>{zF(e,{get name(){return i()}})},$$slots:{default:!0}})}}),U(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=lSe();Oo(F(t),()=>z(u).panel,(e,t)=>{t(e,{})}),D(t),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(d),U(e,d),k(),o()}var lSe,uSe,dSe,fSe=s((()=>{Q(),Y(),Z(),B$(),Bxe(),$xe(),sSe(),kP(),$P(),W4(),l9(),lSe=V(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),uSe=V(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),dSe={hash:`svelte-19e8zut`,code:`.sidebar.svelte-19e8zut {flex:none;display:flex;flex-direction:row-reverse;}.sidebar.svelte-19e8zut .tabs {flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:8px 0;width:48px;}.sidebar.svelte-19e8zut .tabs button {border-radius:4px !important;}.content.svelte-19e8zut {flex:none;width:320px;margin-inline-start:8px;border-radius:16px 16px 0 0;background-color:var(--sui-primary-background-color);}`}}));function pSe(e,t){let n=Ia();O(t,!0),K(e,vSe);let r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Cr([])),u=Cr({}),d=Cr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,tk(z(s)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(u,z(c)),Object.assign(d,Object.fromEntries(Object.keys(z(c)).map(e=>[e,!1])))};ti(()=>{o()&&f()});{let t=M(()=>X(`edit_slug`)),i=M(()=>X(`update`)),a=M(()=>(0,mSe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));$I(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{_n(z4,B(r).currentSlugs=u,B(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=_Se(),i=I(r);lo(i,()=>({"--font-size":`var(--sui-font-size-small)`})),VF(i.lastChild,{status:`warning`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`edit_slug_warning`)]),U(e,n)},$$slots:{default:!0}}),D(i);var a=L(i,2);mo(a,20,()=>Object.keys(u),e=>e,(e,t)=>{var r=gSe(),i=F(r),a=e=>{var n=hSe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>ob(t)??t]),U(e,n)},o=M(()=>![`_`,`_default`].includes(t));G(i,e=>{z(o)&&e(a)});var s=L(i,2),c=F(s);{let e=M(()=>d[t]!==!1);lL(c,{dir:`auto`,flex:!0,oninput:()=>{d[t]=u[t].trim()?z(l).includes(u[t])?`duplicate`:!1:`empty`},get invalid(){return z(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return u[t]},set value(e){u[t]=e}})}var f=L(c,2),p=F(f),m=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.empty`)]),U(e,t)};G(p,e=>{d[t]===`empty`&&e(m)});var h=L(p,2),g=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.duplicate`)]),U(e,t)};G(h,e=>{d[t]===`duplicate`&&e(g)}),D(f),D(s),D(r),R(()=>q(f,`id`,`${n}-${t??``}-error`)),U(e,r)}),D(a),U(e,r)},$$slots:{default:!0}})}k(),a()}var mSe,hSe,gSe,_Se,vSe,ySe=s((()=>{Q(),Y(),Z(),B$(),mSe=u(YM()),ak(),W4(),ub(),hSe=V(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),gSe=V(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),_Se=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),vSe={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);}`}})),bSe,m9,xSe=s((()=>{dS(),cS(),rp(),SF(),kP(),B0(),Vy(),qb(),N0(),I4(),i3(),bSe=({ids:e,assetPaths:t})=>{let n=A(Iy),r=new Set(e);if(Iy.set(n.filter(e=>!r.has(e.id))),M0.set({...j0,deleted:!0,count:e.length}),t.length){let e=new Set(t);oF.update(t=>t.filter(t=>!e.has(t.path)))}},m9=async(e,t=[])=>{let n=A(DP)?.repository?.databaseName,r=n?new aS(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=uS(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await e3({cacheDB:r,previousPath:e});i.push({action:a,slug:n,path:e,previousSha:t})})),e})),s=t.map(({path:e,sha:t})=>(i.push({action:a,path:e,previousSha:t}),e)),{changes:c,savingEntries:l}=await F4(A(Mb),{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...c),await z0({changes:i,savingEntries:l,options:{commitType:`delete`,collection:A(Mb)}}),bSe({ids:o,assetPaths:s})}})),h9,SSe=s((()=>{p(),h9=(e,t)=>{if(Array.isArray(e))return{options:e};if(d(e)){let n=e[t],r=e.default;if(Array.isArray(n)){let e=r?n.find(({name:e})=>e===r):void 0;return{options:n,default:e?{field:e.field,pattern:e.pattern}:void 0}}}return{options:[]}}})),g9,CSe,wSe,TSe,ESe=s((()=>{rp(),K$(),qb(),M9(),SSe(),_A(),ZO(),g9=e=>h9(e,`filters`),CSe=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=g9(i),s=n.filter(({field:e,pattern:t})=>e!==void 0&&t!==void 0&&o.some(n=>n.field===e&&String(n.pattern)===String(t))).map(({field:e,pattern:t})=>({field:e,pattern:t,regex:XO(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=gA({...o,resolveRef:!1}),c=gA({...o});return s===void 0||c===void 0?!1:U$(s,n,i)||U$(c,n,i)}))},wSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=g9(e.view_filters);t(n),S9.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},TSe=dn([Mb],([e],t)=>{wSe(e,t)})})),DSe,OSe,kSe,ASe,jSe=s((()=>{Z(),rp(),K$(),qb(),M9(),SSe(),_A(),DSe=e=>h9(e,`groups`),OSe=(e,t,n)=>{let{field:r,pattern:i}=n??{field:``,pattern:void 0};if(!r)return e.length?[{name:`*`,entries:e}]:[];let{name:a,_i18n:{defaultLocale:o}}=t,s=A(S9).sort,c=H$(e,i,e=>gA({entry:e,locale:o,collectionName:a,key:r}),X(`other`)).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&c.reverse(),c},kSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=DSe(e.view_groups);t(n),S9.update(e=>({...e,group:e.group===void 0?r:e.group}))},ASe=dn([Mb],([e],t)=>{kSe(e,t)})})),MSe,_9,NSe,PSe=s((()=>{MSe=u(YM(),1),rp(),K$(),qb(),M9(),_9=un(),NSe=async({repository:e})=>{await G$(e,`contents-view`,_9),S9.subscribe(e=>{let{name:t}=A(Mb)??{},n=A(_9)?.[t??``]??{};t&&!(0,MSe.default)(e,n)&&_9.update(n=>({...n,[t]:e}))})}})),FSe,v9,y9,b9,x9,ISe,LSe,RSe,zSe,BSe,VSe,HSe=s((()=>{Z(),dS(),p(),FSe=u(YM(),1),rp(),E6(),Vy(),qb(),I4(),M9(),PSe(),_A(),v9=[`title`,`name`,`date`,`author`,`description`],y9={slug:String,commit_author:String,commit_date:Date,_summary:String,_manual:String},b9=Object.keys(y9),x9=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),ISe=e=>{if(x9(e))return{keys:e};if(d(e)){let{fields:t,default:n}=e;return x9(t)?d(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},LSe=e=>e?{keys:[e,...v9.filter(t=>t!==e)],defaultKey:e}:{keys:[...v9]},RSe=({collection:e,isCommitAuthorAvailable:t,isCommitDateAvailable:n})=>{let{name:r,identifier_field:i,sortable_fields:a,summary:o}=e,{keys:s,defaultKey:c,defaultOrder:l}=a?ISe(a):LSe(i);o&&s.unshift(`_summary`);let u=s.includes(`commit_author`),d=s.includes(`commit_date`);t?!s.includes(`author`)&&!u&&s.push(`commit_author`):u&&(s=s.filter(e=>e!==`commit_author`)),n?!s.includes(`date`)&&!d&&s.push(`commit_date`):d&&(s=s.filter(e=>e!==`commit_date`)),s=uS(s).filter(e=>!!e&&(b9.includes(e)||!!uA({collectionName:r,keyPath:e})));let f=w4(e);return f&&(s=s.filter(e=>e!==f),s.includes(`_manual`)||s.unshift(`_manual`),c=`_manual`,l=`ascending`),c=c&&s.includes(c)?c:s[0],l??=c?`ascending`:void 0,{keys:s,default:{key:c,order:l}}},zSe=({key:e,fieldConfig:t})=>{if(e in y9)return y9[e];if(t?.widget===`boolean`)return Boolean;if(t?.widget===`number`){let{value_type:e=`int`}=t;if(e===`int`||e===`float`)return Number}return String},BSe=({collection:e,key:t})=>[...b9,`name`].includes(t)?X(`sort_keys.${t}`):t.includes(`.`)?t.split(`.`).map((t,n,r)=>{if(/^\d+$/.test(t))return;let i=r.slice(0,n+1).join(`.`);return uA({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,VSe=dn([Mb,Iy,w6],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=A(_9)?.[e.name]??{type:`list`},{keys:i,default:a}=RSe({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:BSe({collection:e,key:t})}))),(0,FSe.default)(r,A(S9))||S9.set(r)})})),USe,WSe=s((()=>{USe=e=>{let t=e,n=!0;for(;n;){let e=t;t=t.replaceAll(/([_*`~])([^_*`~]+)\1/g,`$2`),t=t.replaceAll(/([_*`~]{2,})(.+?)\1/g,`$2`),n=t!==e}return t}})),GSe,KSe,qSe,JSe=s((()=>{K$(),nb(),I4(),HSe(),_A(),wO(),mC(),WSe(),GSe=[`title`,`summary`,`description`],KSe=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>CO(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=gA({entry:t,locale:r,collectionName:i,key:e});return n?Number(lC(n,a)??0):0}:t===String?t=>{let n=gA({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?USe(a):a}:t=>{let n=gA({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},qSe=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=w4(t),c=n===`_manual`?s??n:n,l=uA({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:zSe({key:n,fieldConfig:l}),d=l?.widget===`datetime`?l:void 0,f=KSe({key:c,type:u,collection:t,locale:o,collectionName:a,dateFieldConfig:d,isMarkdownField:l?.widget===`richtext`||l?.widget===`markdown`||GSe.includes(n)}),p=Object.fromEntries(i.map(e=>[e.slug,f(e)]));W$(i,e=>p[e.slug],!d&&u===String,r);let m=eb(t)?.name;if(m){let e=i.findIndex(e=>e.slug===m);e>-1&&i.unshift(i.splice(e,1)[0])}return i}})),S9,C9,w9,T9,E9,D9,YSe,O9,k9,A9,j9,M9=s((()=>{rp(),E6(),kP(),Vy(),qb(),ak(),Yy(),ESe(),jSe(),PSe(),JSe(),eN(),S9=un({type:`list`}),C9=un(!1),w9=un([]),T9=un(!1),D9=dn([Iy,Mb],([e,t],n)=>{n(e&&t?tk(t.name):[])}),YSe=5,O9=dn([D9,Mb],([e,t])=>{if(t?._type===`entry`){let n=t.create??!0,r=t.delete??!0,i=!!t.reorder,a=t?.limit??1/0,o=a<1/0?a-e.length:1/0;return{isEntryCollection:!0,canCreate:n,canDelete:r,canReorder:i,quota:a,remaining:o,nearingQuota:o>0&&o<=YSe,creationDisabled:!n||o<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,canReorder:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),k9=void 0,A9=void 0,j9=dn([D9,S9,w6],([e,t],n)=>{if(e===k9&&t===A9)return;k9=e,A9=t;let r=A(Mb),i=[...e];if(!i.length||Ky(r,i[0]).length){n([]);return}t.sort&&(i=qSe(i,r,t.sort)),t.filters&&(i=CSe(i,r,t.filters)),n(OSe(i,r,t.group))}),C9.subscribe(e=>{if(!e){w9.set([]),T9.set(!1),E9&&=(S9.set(E9),void 0);return}let t=A(S9);E9=t;let n={};t.sort?.key!==`_manual`&&(n.sort={key:`_manual`,order:`ascending`}),t.filters?.length&&(n.filters=[]),t.group&&(n.group=null),Object.keys(n).length&&S9.set({...t,...n})}),DP.subscribe(e=>{e&&!A(_9)&&NSe(e)}),D9.subscribe(e=>{$O.set([]),A($M).devModeEnabled&&console.info(`listedEntries`,e)}),Mb.subscribe(e=>{E9=void 0,C9.set(!1),e&&A($M).devModeEnabled&&console.info(`selectedCollection`,e)})})),XSe,N9,P9,F9=s((()=>{rp(),$P(),nb(),W4(),V8(),D8(),C7(),XSe=`{{fields._slug | localize}}`,N9=({collection:e,collectionFile:t,originalSlugs:n})=>{let r=e._type===`entry`,{allLocales:i,defaultLocale:a}=(t??e)._i18n;if(!r)return Object.fromEntries(i.map(e=>[e,!1]));let{identifier_field:o=`title`,slug:s=`{{${o}}}`}=e,c=s.includes(XSe),l=s.includes(`{{fields._slug}}`)||c;return Object.fromEntries(i.map(e=>!l||n._||n[e]?[e,!1]:[e,e===a||c||`readonly`]))},P9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=tb(e,n)})=>{let s=e.name,c=t?.name,{id:l,slug:u,locales:d}=n,f=l===void 0,{fields:p=[],_i18n:m}=t??e,h=o?eb(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??A(JP)?.editor?.preview??!0,{allLocales:v,initialLocales:y,defaultLocale:b,canonicalSlug:{key:x}}=m,S=f?y:v.filter(e=>!!d?.[e]?.content),C=Object.fromEntries(v.map(e=>[e,S.includes(e)])),w=f?{}:x in(d?.[b]?.content??{})?Object.fromEntries(v.map(e=>[e,d?.[e]?.slug])):{_:d?.[b].slug},ee=Object.fromEntries(S.map(e=>f?[e,S7({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));z4.set({id:f?crypto.randomUUID():l,createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:_,collectionName:s,collection:e,fileName:c,collectionFile:t,fields:g,originalEntry:f?void 0:n,defaultLocale:b,originalLocales:C,currentLocales:structuredClone(C),originalSlugs:w,currentSlugs:structuredClone(w),originalValues:ee,currentValues:Object.fromEntries(S.map(e=>[e,E8({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(ee[e])})])),files:{},extraValues:i??Object.fromEntries(v.map(e=>[e,{}])),validities:Object.fromEntries(v.map(e=>[e,{}])),validationMessages:Object.fromEntries(v.map(e=>[e,{}])),expanderStates:a??{_:{}},slugEditor:N9({collection:e,collectionFile:t,originalSlugs:w})}),L8({collectionName:s,fileName:c,slug:u})}})),ZSe,QSe=s((()=>{rp(),I4(),W4(),F9(),RF(),_A(),Vge(),_be(),ZSe=()=>{let e=A(z4),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=w4(r);Object.entries(a).forEach(([e,r])=>{delete r[l],u&&delete r[u];let i={collectionName:t,fileName:n,valueMap:r,isIndexFile:s};Object.keys(r).forEach(t=>{let n=uA({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=X7(n)),n?.widget===`hidden`){if(Array.isArray(n.default)&&t.match(/\.\d+$/)&&(delete r[t],t=t.replace(/\.\d+$/,``),t in r))return;(e===c||[!0,`translate`].includes(n?.i18n??!1))&&Object.assign(r,v7({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),z4.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:N9({collection:r,collectionFile:i,originalSlugs:{}})}),jF.set(!0)}})),$Se,eCe=s((()=>{rp(),W4(),$Se=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=A(z4),r={},i=!0;return Object.entries(t).forEach(([t,a])=>{let o=!!e?.[t]&&!!n[t]&&!a?.trim();o&&(i=!1),r[t]={_slug:{valueMissing:o,valid:!o}}}),{valid:i,validities:r}}})),tCe,nCe=s((()=>{W4(),Xve(),eCe(),tCe=()=>{let{valid:e,validities:t,validationMessages:n}=G7(`currentValues`),{valid:r,validities:i,validationMessages:a}=G7(`extraValues`),{valid:o,validities:s}=$Se();return z4.update(e=>({...e,validities:Object.fromEntries(Object.keys(t).map(e=>[e,{...t[e],...i[e],...s[e]}])),validationMessages:Object.fromEntries(Object.keys(n).map(e=>[e,{...n[e],...a[e]}]))})),e&&r&&o}})),rCe,iCe,aCe,oCe=s((()=>{rp(),kP(),W2(),B0(),N0(),ak(),I4(),W4(),V8(),kF(),i3(),o4(),nCe(),A7(),Uxe(),rCe=({skipCI:e})=>{let t=A(H2)&&!(e??A(U2));M0.set({...j0,saved:!0,published:t,count:1}),OP.set(t)},iCe=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=w4(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=tk(t.name).reduce((e,t)=>{let n=Number(t.locales[a]?.content?.[i]);return Number.isFinite(n)&&n>e?n:e},0)+1;Object.values(r).forEach(e=>{e[i]=o})},aCe=async({skipCI:e=void 0}={})=>{let t=A(z4),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!tCe())throw i_e({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&iCe(t);let c=a4({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await r3({draft:t,slugs:c}),p;try{p=await z0({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:n?`create`:`update`,collection:r,skipCI:e}})}catch(e){throw console.error(e.cause??e),Error(`saving_failed`,{cause:e.cause??e})}return await OF({type:`postSave`,draft:t,savingEntry:u}),rCe({skipCI:e}),N8(i,n?``:l),s&&Hxe(s.id),p.savedEntries[0]}}));function sCe(e,t){O(t,!0),K(e,mCe);let n=()=>j(z4,`$entryDraft`,f),r=()=>j(U4,`$entryDraftModified`,f),i=()=>j($M,`$prefs`,f),a=()=>j(zA,`$isSmallScreen`,f),o=()=>j(O9,`$collectionState`,f),s=()=>j(BA,`$isMediumScreen`,f),c=()=>j(s9,`$entryEditorSettings`,f),l=()=>j(H2,`$skipCIConfigured`,f),u=()=>j(U2,`$skipCIEnabled`,f),d=()=>j(NF,`$copyFromLocaleToast`,f),[f,p]=hn(),m=e=>{let t=M(()=>a()?qL:tI),n=M(()=>!z(ee)&&z(te)?.duplicate!==!1&&!o().creationDisabled&&!z(te)?.path),r=M(()=>z(te)?.delete!==!1);var i=cCe(),s=I(i),c=e=>{var n=H(),r=I(n);{let e=M(()=>X(`duplicate`)),n=M(()=>X(`duplicate_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{y1(`/collections/${z(oe)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),ZSe()}})})}U(e,n)};G(s,e=>{z(n)&&e(c)});var l=L(s,2),u=e=>{var n=H(),r=I(n);{let e=M(()=>X(`delete`)),n=M(()=>X(`delete_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{P(v,!0)}})})}U(e,n)};G(l,e=>{z(r)&&e(u)}),U(e,i)},h=J(t,`disabled`,3,!1),g=N(!1),_=N(!1),v=N(!1),y=N(!1),b=N(``),x=N(!1),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()?.isNew??!0),ee=M(()=>n()?.isIndexFile??!1),T=M(()=>n()?.collection),te=M(()=>z(T)?._type===`entry`?z(T):void 0),ne=M(()=>n()?.collectionFile),re=M(()=>n()?.originalEntry),ie=M(()=>(z(ne)??z(T))?._i18n??Cb),ae=M(()=>z(ie).defaultLocale),oe=M(()=>z(T)?.name),se=M(()=>z(ne)?.name),ce=M(()=>Oh.current&&z(T)?Gb(z(T)):``),le=M(()=>Oh.current&&z(T)?Gb(z(T),{useSingular:!0}):``),ue=M(()=>n()?.canPreview??!0),de=M(()=>z(w)||r()),fe=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),E=M(()=>z(oe)&&z(re)&&Rp({collectionName:z(oe),fileName:z(se)})?.entryRelative?wF({entry:z(re),collectionName:z(oe),fileName:z(se),relative:!0}):[]),pe=M(()=>z(T)&&z(re)?KO(z(re),z(ae),z(T),z(ne)):void 0),me=()=>{b1(z(oe)===`_singletons`?`/collections`:`/collections/${z(oe)}`)},he=async({skipCI:e=void 0}={})=>{if(P(x,!0),z(T))try{let t=await aCe({skipCI:e});i()?.closeOnSave??!0?(me(),mn(z4,null)):(z(w)&&y1(`/collections/${z(oe)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),P9({collection:z(T),collectionFile:z(ne),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?P(g,!0):e.message===`saving_failed`?(P(y,!0),P(b,e.cause?.message??e.message??X(`unexpected_error`),!0)):(P(y,!0),P(b,``),console.error(e))}finally{P(x,!1)}};var ge=pCe(),_e=I(ge);{let e=M(()=>X(`primary`));$Q(_e,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=uCe(),o=I(r);{let e=M(()=>X(`cancel_editing`));Q0(o,{get"aria-label"(){return z(e)},get useShortcut(){return i().closeWithEscape},onclick:()=>{me()}})}var d=L(o,2),f=F(d),p=e=>{qF(e,{children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`create_entry_title`,{values:{name:z(le)}})]),U(e,t)},o=e=>{let t=M(()=>z(ne)?Gy(z(ne)):z(T)&&z(re)&&Oh.current?CO(z(T),z(re)):``);var n=H(),r=I(n),i=e=>{var n=Fa();R(()=>W(n,z(t))),U(e,n)},o=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`edit_entry_title`,{values:{collection:z(ce),entry:z(t)}})]),U(e,n)};G(r,e=>{a()?e(i):e(o,-1)}),U(e,n)};G(r,e=>{z(w)?e(i):e(o,-1)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{z(C)||e(p)}),D(d);var g=L(d,2),v=e=>{{let t=M(()=>X(`view_on_live_site`));tI(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{u1(z(pe))}})}};G(g,e=>{!h()&&z(pe)&&e(v)});var y=L(g,2),b=e=>{m(e)};G(y,e=>{!a()&&!h()&&!z(ne)&&!z(w)&&e(b)});var ie=L(y,2);{let e=e=>{{let t=M(()=>X(`editor_options`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=I9(),i=I(r),o=e=>{m(e)};G(i,e=>{a()&&!h()&&!z(ne)&&!z(w)&&e(o)});var l=L(i,2);{let e=M(()=>X(`edit_slug`)),t=M(()=>!!z(ne)||z(w)||z(ee)||z(te)?.delete===!1);qL(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{P(_,!0)}})}var u=L(l,2);{let e=M(()=>X(`revert_all_changes`)),t=M(()=>!z(de));qL(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9()}})}var d=L(u,2),f=e=>{var t=lCe(),r=I(t);zI(r,{});var i=L(r,2);{let e=M(()=>X(`show_preview`)),t=M(()=>c()?.showPreview),n=M(()=>!z(ue));$L(i,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(n)},onChange:()=>{s9.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var a=L(i,2);{let e=M(()=>X(`sync_scrolling`)),t=M(()=>c()?.syncScrolling),r=M(()=>!z(ue)&&Object.keys(n()?.currentValues??{}).length===1);$L(a,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(r)},onChange:()=>{s9.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}U(e,t)};G(d,e=>{a()||s()||e(f)}),U(e,r)},$$slots:{default:!0}})}},t=M(()=>X(`show_editor_options`));Us(NI(ie,{get disabled(){return h()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(t)},popup:e,$$slots:{popup:!0}}),e=>P(S,e,!0),()=>z(S))}var ae=L(ie,2),oe=e=>{{let t=e=>{UL(e,{children:(e,t)=>{{let t=M(()=>X(u()?`save_and_publish`:`save_without_publishing`));qL(e,{get label(){return z(t)},onclick:()=>{he({skipCI:!u()})}})}},$$slots:{default:!0}})},n=M(()=>X(u()?z(x)?`saving`:`save`:z(x)?`publishing`:`publish`)),r=M(()=>h()||!z(de)||z(x));II(e,{variant:`primary`,get label(){return z(n)},get disabled(){return z(r)},keyShortcuts:`Accel+S`,onclick:()=>{he()},popup:t,$$slots:{popup:!0}})}},se=e=>{{let t=M(()=>X(z(x)?`saving`:`save`)),n=M(()=>h()||!z(de)||z(x));tI(e,{variant:`primary`,get label(){return z(t)},get disabled(){return z(n)},keyShortcuts:`Accel+S`,onclick:()=>{he()}})}};G(ae,e=>{l()?e(oe):e(se,-1)}),U(e,r)},$$slots:{default:!0}})}var ve=L(_e,2);nz(ve,{get show(){return z(g)},set show(e){P(g,e,!0)},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_validation_errors`,{values:{count:z(fe)}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ye=L(ve,2);nz(ye,{get id(){return d().id},get show(){return d().show},set show(e){_n(NF,B(d).show=e,B(d))},children:(e,t)=>{let n=M(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=d();return{status:e,message:t,count:n,sourceLanguage:r}});VF(e,{get status(){return z(n).status},children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?ob(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=L(ye,2);pSe(be,{get open(){return z(_)},set open(e){P(_,e,!0)}});var xe=L(be,2);{let e=M(()=>X(`delete_entry`)),t=M(()=>X(`delete`));cL(xe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(re)&&await m9([z(re)],z(E)),me()},onClose:()=>{z(S)?.focus()},get open(){return z(v)},set open(e){P(v,e,!0)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(E).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),U(e,n)},$$slots:{default:!0}})}var Se=L(xe,2);{let e=M(()=>X(`saving_entry.error.title`));sL(Se,{get title(){return z(e)},onClose:()=>{z(S)?.focus()},get open(){return z(y)},set open(e){P(y,e,!0)},children:(e,t)=>{_t();var n=fCe(),r=I(n),i=L(r),a=e=>{var t=dCe(),n=F(t,!0);D(t),R(()=>W(n,z(b))),U(e,t)};G(i,e=>{z(b)&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`saving_entry.error.description`)]),U(e,n)},$$slots:{default:!0}})}U(e,ge),k(),p()}var cCe,lCe,I9,uCe,dCe,fCe,pCe,mCe,hCe=s((()=>{Q(),Y(),Z(),B$(),$0(),ySe(),S1(),Hp(),W2(),qb(),xSe(),Yy(),M9(),W4(),F9(),QSe(),oCe(),n9(),RF(),l9(),JO(),TF(),wO(),ub(),jb(),WA(),eN(),d1(),cCe=V(`<!> <!>`,1),lCe=V(`<!> <!> <!>`,1),I9=V(`<!> <!> <!> <!>`,1),uCe=V(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),dCe=V(`<div role="none" class="error svelte-zjrq31"> </div>`),fCe=V(` <!>`,1),pCe=V(`<!> <!> <!> <!> <!> <!>`,1),mCe={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 gCe(e,t){O(t,!0),K(e,DCe);let n=()=>j(z4,`$entryDraft`,f),r=()=>j(s9,`$entryEditorSettings`,f),i=()=>j(O9,`$collectionState`,f),a=()=>j(PF,`$editorFirstPane`,f),o=()=>j(FF,`$editorSecondPane`,f),s=()=>j(zA,`$isSmallScreen`,f),c=()=>j(BA,`$isMediumScreen`,f),l=()=>j(V4,`$entryDraftInteracted`,f),u=()=>j(AF,`$showContentOverlay`,f),d=()=>j(jF,`$showDuplicateToast`,f),[f,p]=hn(),m=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=a();return{locale:e,mode:t}});var n=vCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:ob(z(t).locale)??z(t).locale}}));L$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=_Ce(),r=I(n);_xe(r,{id:`first-pane-header`,get thisPane(){return PF},get thatPane(){return FF}}),rxe(L(r,2),{id:`first-pane-body`,get thisPane(){return PF},get thisPaneContentArea(){return z(x)},set thisPaneContentArea(e){P(x,e,!0)},get thatPaneContentArea(){return z(S)},set thatPaneContentArea(e){P(S,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{a()&&e(r)}),U(e,t)},h=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=o();return{locale:e,mode:t}});var n=bCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:ob(z(t).locale)??z(t).locale}}));L$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=yCe(),r=I(n);_xe(r,{id:`second-pane-header`,get thisPane(){return FF},get thatPane(){return PF}}),rxe(L(r,2),{id:`second-pane-body`,get thisPane(){return FF},get thisPaneContentArea(){return z(S)},set thisPaneContentArea(e){P(S,e,!0)},get thatPaneContentArea(){return z(x)},set thatPaneContentArea(e){P(x,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{o()&&e(r)}),U(e,t)},g=J(t,`editorLocale`,3,void 0),_=!1,v=!1,y=N(!0),b=N(void 0),x=N(void 0),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()??{}),ee=M(()=>T(z(w).isNew,!0)),ne=M(()=>T(z(w).canPreview,!0)),re=M(()=>z(w).collection),ie=M(()=>z(w).collectionName),ae=M(()=>z(w).collectionFile),oe=M(()=>z(w).fileName),se=M(()=>z(w).isIndexFile),ce=M(()=>z(w).currentValues),le=M(()=>r()??{}),ue=M(()=>z(le).showPreview),de=M(()=>(z(ae)??z(re))?._i18n??Cb),fe=M(()=>z(de).i18nEnabled),E=M(()=>z(de).allLocales),pe=M(()=>z(de).defaultLocale),me=M(()=>z(ae)?.name?[z(re)?.name,z(ae).name].join(`|`):z(re)?.name),he=M(()=>i().canCreate),ge=M(()=>i().quota),_e=M(()=>i().creationDisabled),ve=M(()=>!a()&&!o()?[0,0,0]:!a()||!o()?[a()?100:0,o()?100:0,0]:typeof a().width==`number`&&typeof o().width==`number`&&a().width>=30&&o().width>=30&&a().width+o().width===100?[a().width,o().width,30]:[50,50,30]),ye=M(()=>te(z(ve),3)),be=M(()=>z(ye)[0]),xe=M(()=>z(ye)[1]),Se=M(()=>z(ye)[2]),Ce=async()=>{let[e,t]=r()?.paneStates?.[z(me)??``]??[];return g()&&(e={mode:`edit`,locale:g()},t={mode:`preview`,locale:g()}),_||!e||!t||e.locale&&!z(E).includes(e.locale)||t.locale&&!z(E).includes(t.locale)||(!z(ue)||!z(ne))&&(e.mode===`preview`||t.mode===`preview`)||z(E).length===2&&e.locale!==z(pe)?!1:(_=!0,await Bi(),mn(PF,e),mn(FF,s()||c()?null:t),await Bi(),_=!1,!0)},we=async()=>{if(!(!n()||v)){if(v=!0,await Ce()){v=!1;return}if(mn(PF,{mode:`edit`,locale:a()?.locale??z(pe)}),s()||c())mn(FF,null);else if(!z(ue)||!z(ne)){let e=z(fe)?z(E).filter(e=>e!==a()?.locale):[];mn(FF,e.length?{mode:`edit`,locale:e[0]}:null)}else mn(FF,{mode:`preview`,locale:a().locale});v=!1}},Te=()=>{!z(re)||_||!a()||!o()||!z(me)||s9.update((e={})=>({...e,paneStates:{...e.paneStates,[z(me)]:[a(),o()]}}))},Ee=e=>{e.isTrusted&&!l()&&mn(V4,!0)},De=async()=>{await Bi(),z(b)&&(z(b).tabIndex=0,z(b).focus())},Oe=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?mn(FF,{mode:`edit`,locale:e}):t?.mode===`preview`?mn(PF,{mode:`edit`,locale:e}):mn(n?FF:PF,{mode:`edit`,locale:e}),await Jx(100))},ke=async({locale:e,keyPath:t})=>{await Oe(e);let n=z(ce)?.[e]??{},r=k7({collectionName:z(ie),fileName:z(oe),valueMap:n,keyPath:t,isIndexFile:z(se)});O7(Object.fromEntries(r.map(e=>[e,!0]))),window.requestAnimationFrame(()=>{let n=document.querySelector(`.content-editor .pane[data-mode="edit"][data-locale="${CSS.escape(e)}"] .field[data-key-path="${CSS.escape(t)}"]`);if(n){typeof n.scrollIntoViewIfNeeded==`function`?n.scrollIntoViewIfNeeded():n.scrollIntoView();let e=n.querySelector(`.field-wrapper`);(e?.querySelector(`[contenteditable="true"], [tabindex="0"]`)??e?.querySelector(`input, textarea, button`))?.focus()}})},Ae=e=>{e.source===window&&e.data?.type===`highlight-editor-field`&&e.data.payload&&ke(e.data.payload)};ic(()=>(u()||mn(z4,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),ti(()=>{z(me)&&(mn(PF,null),mn(FF,null))}),ti(()=>{z(re),z(ue),z(ne),s(),c(),B(()=>{we()})}),ti(()=>{a(),o(),Te()}),ti(()=>{z(b)&&(u()?z(y)&&(P(y,!1),we(),De(),z8()):R8())});var je=ECe(),Me=I(je);oo(F(Me),()=>n()?.id,e=>{var t=TCe(),r=I(t);{let e=M(()=>z(ee)&&z(_e));sCe(r,{get disabled(){return z(e)}})}var i=L(r,2),c=e=>{},l=e=>{P$(e,{children:(e,t)=>{var n=xCe(),r=I(n),i=F(r),a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`entry_not_found`)]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},s=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(ge)}})]),U(e,t)};G(i,e=>{z(C)?e(a):z(he)?e(s,-1):e(o,1)}),D(r);var c=L(r,2);tI(F(c),{variant:`primary`,onclick:()=>{y1(`/collection/${z(re)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`back_to_collection`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,n)},$$slots:{default:!0}})},u=e=>{var t=wCe();oo(F(t),()=>`${z(ie)}|${z(oe)}|${z(se)}`,e=>{var t=CCe(),n=I(t),r=F(n),i=e=>{var t=H(),n=I(t),r=e=>{hR(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=te(e,2);_n(PF,B(a).width=t[0],B(a)),_n(FF,B(o).width=t[1],B(o))})(e)},children:(e,t)=>{var n=SCe(),r=I(n);vR(r,{get defaultSize(){return z(be)},get minSize(){return z(Se)},children:(e,t)=>{m(e)},$$slots:{default:!0}});var i=L(r,2);dR(i,{children:(e,t)=>{{let t=M(()=>X(`swap_panes`));tI(e,{class:`swap-button`,iconic:!0,size:`small`,variant:`tertiary`,get"aria-label"(){return z(t)},onclick:()=>{(e=>{var t=te(e,2);mn(PF,t[0]),mn(FF,t[1])})([o(),a()])},children:(e,t)=>{zF(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),vR(L(i,2),{get defaultSize(){return z(xe)},get minSize(){return z(Se)},children:(e,t)=>{h(e)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(be)&&z(xe)&&e(r)}),U(e,t)},c=e=>{m(e)},l=e=>{h(e)},u=e=>{UI(e,{flex:!0})};G(r,e=>{a()&&o()?e(i):a()?e(c,1):o()?e(l,2):e(u,-1)}),D(n);var d=L(n,2),f=e=>{cSe(e,{})};G(d,e=>{s()||e(f)}),U(e,t)}),D(t),Sa(`pointerdown`,t,Ee),Sa(`keydown`,t,Ee),U(e,t)};G(i,e=>{n()===null?e(c):z(C)||z(ee)&&z(_e)?e(l,1):e(u,-1)}),U(e,t)}),D(Me),Us(Me,e=>P(b,e),()=>z(b));var Ne=L(Me,2);vde(Ne,{}),nz(L(Ne,2),{get show(){return vn(),d()},set show(e){mn(jF,e)},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_duplicated`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(e=>q(Me,`aria-label`,e),[()=>X(`content_editor`)]),U(e,je),k(),p()}var _Ce,vCe,yCe,bCe,xCe,SCe,CCe,wCe,TCe,ECe,DCe,OCe=s((()=>{Q(),Y(),Z(),B$(),Yx(),oc(),yde(),cxe(),Oxe(),fSe(),hCe(),S1(),M9(),W4(),V8(),RF(),A7(),l9(),ub(),jb(),WA(),_Ce=V(`<!> <!>`,1),vCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),yCe=V(`<!> <!>`,1),bCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),xCe=V(`<div role="none"><!></div> <div role="none"><!></div>`,1),SCe=V(`<!> <!> <!>`,1),CCe=V(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),wCe=V(`<div role="none" class="body svelte-jrunrx"><!></div>`),TCe=V(`<!> <!>`,1),ECe=V(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),DCe={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);}.pane-wrapper.svelte-jrunrx {display:contents;}.pane-wrapper.svelte-jrunrx > .pane {flex:auto;height:100%;overflow:hidden;display:flex;flex-direction:column;}.body.svelte-jrunrx {flex:auto;display:flex;overflow:hidden;}.content-area.svelte-jrunrx {flex:auto;background-color:var(--sui-primary-background-color);}.content-area.svelte-jrunrx:not(:only-child) {border-start-end-radius:16px;}.content-area.svelte-jrunrx .sui.resizable-handle {background-color:var(--sui-secondary-background-color);}.content-area.svelte-jrunrx .sui.resizable-handle .swap-button {position:absolute;top:calc(50% - 12px);margin:0;border-radius:50%;opacity:0.5;}.content-area.svelte-jrunrx .sui.resizable-handle .swap-button:hover, .content-area.svelte-jrunrx .sui.resizable-handle .swap-button:focus-visible {opacity:1;}`},Ca([`pointerdown`,`keydown`])}));function kCe(e,t){O(t,!0),K(e,NCe);let n=()=>j(zA,`$isSmallScreen`,a),r=()=>j(BA,`$isMediumScreen`,a),i=()=>j(ek,`$selectedEntryIdSet`,a),[a,o]=hn(),s=J(t,`showCheckbox`,3,!1),c=J(t,`onSelect`,3,void 0);var l=MCe(),u=I(l),d=e=>{CL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.entry.id));YI(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{c()?.(e)}})}},$$slots:{default:!0}})};G(u,e=>{s()&&!(n()||r())&&e(d)});var f=L(u,2),p=e=>{CL(e,{class:`image`,children:(e,n)=>{var r=H();eo(I(r),()=>CF(t.collection,t.entry),null,(e,n)=>{var r=H(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);_3(e,{get src(){return z(n)},get variant(){return z(r)},cover:!0})}};G(i,e=>{z(n)&&e(a)}),U(e,r)}),U(e,r)},$$slots:{default:!0}})};G(f,e=>{t.collection._thumbnailFieldNames.length&&e(p)}),CL(L(f,2),{class:`title`,children:(e,n)=>{var r=jCe();qF(F(r),{lines:2,children:(e,n)=>{var r=ACe(),i=I(r);oo(i,()=>Oh.current,e=>{var n=H();So(I(n),()=>CO(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>eb(t.collection)?.icon);zF(e,{get name(){return z(n)},class:`home`})}},s=M(()=>tb(t.collection,t.entry));G(a,e=>{z(s)&&e(o)}),U(e,r)},$$slots:{default:!0}}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,l),k(),o()}var ACe,jCe,MCe,NCe,PCe=s((()=>{Q(),Y(),Z(),B$(),v3(),ak(),nb(),TF(),wO(),WA(),ACe=V(`<!> <!>`,1),jCe=V(`<div role="none" class="label svelte-b1f01"><!></div>`),MCe=V(`<!> <!> <!>`,1),NCe={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}`}}));function FCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=e=>{$O.update(n=>{let r=n.indexOf(t.entry);return e&&r===-1&&n.push(t.entry),!e&&r>-1&&n.splice(r,1),n})};{let r=M(()=>n().indexOf(t.entry));EL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{y1(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{kCe(e,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType},showCheckbox:!0,onSelect:a})},$$slots:{default:!0}})}k(),i()}var ICe=s((()=>{Q(),Y(),B$(),PCe(),S1(),ak(),M9()}));function LCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=J(t,`dragging`,3,!1),o=J(t,`dropBefore`,3,!1),s=J(t,`dropAfter`,3,!1),c=J(t,`canMoveUp`,3,!1),l=J(t,`canMoveDown`,3,!1),u=J(t,`onDragStart`,3,void 0),d=J(t,`onDragOver`,3,void 0),f=J(t,`onDrop`,3,void 0),p=J(t,`onDragEnd`,3,void 0),m=J(t,`onMoveUp`,3,void 0),h=J(t,`onMoveDown`,3,void 0);{let r=M(()=>n().indexOf(t.entry)),i=M(()=>[a()&&`drag-source`,o()&&`drop-before`,s()&&`drop-after`].filter(Boolean).join(` `));EL(e,{get"aria-rowindex"(){return z(r)},get class(){return z(i)},draggable:!0,ondragstart:e=>{u()?.(),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)},ondragover:e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),d()?.(e.clientY,e.currentTarget.getBoundingClientRect())},ondrop:e=>{e.preventDefault(),f()?.()},ondragend:()=>{p()?.()},children:(e,n)=>{var r=zCe(),i=I(r);kCe(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),CL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=RCe(),r=I(n);{let e=e=>{zF(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>X(`move_up`));tI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),m()?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{zF(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>X(`move_down`));tI(i,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),h()?.()},startIcon:e,$$slots:{startIcon:!0}})}U(e,n)},$$slots:{default:!0}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var RCe,zCe,BCe=s((()=>{Q(),Y(),Z(),B$(),PCe(),M9(),RCe=V(`<!> <!>`,1),zCe=V(`<!> <!>`,1)}));function VCe(e,t){O(t,!0),K(e,UCe);let n=()=>j(j9,`$entryGroups`,r),[r,i]=hn(),a=N(Cr({})),o=N(``),s=N(void 0),c=N(void 0),l=(e=z(a))=>{w9.set(n().flatMap(({name:t,entries:n})=>e[t]??n))},u=(e,t,n)=>{if(t===n)return;let r=[...z(a)[e]??[]],[i]=r.splice(t,1);r.splice(n,0,i),z(a)[e]=r,T9.set(!0),l()};ic(()=>{let e=eb(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,T4(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=HCe();mo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=H();eo(I(l),Jx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());yL(e,{get label(){return z(n)},children:(e,n)=>{let l=M(()=>z(a)[r()]??i());var d=H();mo(I(d),19,()=>z(l),e=>e.id,(e,n,i)=>{{let a=M(()=>z(s)===z(i)&&z(o)===r()),d=M(()=>z(c)===z(i)&&z(o)===r()&&z(s)!==z(i)&&z(s)!==z(i)-1),f=M(()=>z(c)===z(l).length&&z(i)===z(l).length-1&&z(o)===r()&&z(s)!==z(l).length-1),p=M(()=>z(i)>0),m=M(()=>z(i)<z(l).length-1);LCe(e,{get collection(){return t.collection},get entry(){return z(n)},get viewType(){return t.viewType},get dragging(){return z(a)},get dropBefore(){return z(d)},get dropAfter(){return z(f)},get canMoveUp(){return z(p)},get canMoveDown(){return z(m)},onDragStart:()=>{P(o,r(),!0),P(s,z(i),!0)},onDragOver:(e,t)=>{P(o,r(),!0),P(c,e<t.top+t.height/2?z(i):z(i)+1,!0)},onDrop:()=>{z(s)!==void 0&&z(c)!==void 0&&z(c)!==z(s)&&z(c)!==z(s)+1&&u(r(),z(s),z(c)>z(s)?z(c)-1:z(c)),P(s,void 0),P(c,void 0)},onDragEnd:()=>{P(s,void 0),P(c,void 0)},onMoveUp:()=>{z(i)>0&&u(r(),z(i),z(i)-1)},onMoveDown:()=>{z(i)<z(l).length-1&&u(r(),z(i),z(i)+1)}})}}),U(e,d)},$$slots:{default:!0}})}}),U(e,l)}),D(d),U(e,d),k(),i()}var HCe,UCe,WCe=s((()=>{Q(),Y(),B$(),Yx(),oc(),BCe(),nb(),I4(),M9(),HCe=V(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),UCe={hash:`svelte-1txp9gj`,code:`.wrapper.svelte-1txp9gj .grid-row.drag-source {opacity:0.4;cursor:grabbing;}.wrapper.svelte-1txp9gj .grid-row[draggable=true]:not(.drag-source) {cursor:grab;}.wrapper.svelte-1txp9gj .grid-row.drop-before .grid-cell {border-top:3px solid var(--sui-primary-accent-color) !important;}.wrapper.svelte-1txp9gj .grid-row.drop-after .grid-cell {border-bottom:3px solid var(--sui-primary-accent-color) !important;}`}}));function GCe(e,t){O(t,!0);let n=()=>j(Iy,`$allEntries`,a),r=()=>j(Mb,`$selectedCollection`,a),i=()=>j(O9,`$collectionState`,a),[a,o]=hn(),s=J(t,`label`,3,void 0),c=J(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?ik(r()):!1),u=M(()=>Oh.current&&r()?eb(r())?.label:``),d=M(()=>z(l)?II:tI),f=(e=!1)=>{y1(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=H(),m=I(p);{let e=e=>{zF(e,{name:`edit`})},t=e=>{var t=H(),n=I(t),r=e=>{UL(e,{children:(e,t)=>{var n=KCe(),r=I(n);{let e=M(()=>X(`entry`));qL(r,{get label(){return z(e)},onclick:()=>f()})}qL(L(r,2),{get label(){return z(u)},onclick:()=>f(!0)}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(l)&&e(r)}),U(e,t)},n=M(()=>!s()),r=M(()=>X(`create_new_entry`));Oo(m,()=>z(d),(a,o)=>{o(a,{variant:`primary`,get iconic(){return z(n)},get disabled(){return i().creationDisabled},get label(){return s()},get"aria-label"(){return z(r)},get keyShortcuts(){return c()},onclick:()=>f(),startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})})}U(e,p),k(),o()}var KCe,qCe=s((()=>{Q(),Y(),Z(),B$(),S1(),Vy(),qb(),ak(),nb(),M9(),KCe=V(`<!> <!>`,1)}));function JCe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,s),r=()=>j(C9,`$reordering`,s),i=()=>j(S9,`$currentView`,s),a=()=>j(j9,`$entryGroups`,s),o=()=>j(D9,`$listedEntries`,s),[s,c]=hn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>X(`entry_list`));F3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),i=I(n),s=e=>{var t=H(),n=I(t),i=e=>{let t=M(()=>{let{defaultLocale:e}=z(l)._i18n;return{defaultLocale:e}});{let n=M(()=>X(`entries`));z3(e,{get viewType(){return z(u)},id:`entry-list`,get"aria-label"(){return z(n)},get"aria-rowcount"(){return o().length},children:(e,n)=>{var i=H(),o=I(i),s=e=>{VCe(e,{get collection(){return z(l)},get viewType(){return z(u)}})},c=e=>{var n=H();mo(I(n),1,a,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var a=H();eo(I(a),Jx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());yL(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{FCe(e,{get collection(){return z(l)},get entry(){return t()},get viewType(){return z(u)}})}),U(e,n)},r=M(()=>i().filter(({locales:e})=>!!(e[z(t).defaultLocale]??Object.values(e)[0])?.content));bR(e,{get items(){return z(r)},itemKey:`id`,renderItem:n,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)};G(o,e=>{r()?e(s):e(c,-1)}),U(e,i)},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=YCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{P$(e,{children:(e,t)=>{var n=XCe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`create_new_entry`));GCe(a,{get collectionName(){return z(l).name},get label(){return z(e)}})}R(e=>W(i,e),[()=>X(`no_entries_created`)]),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(d).length?e(i):o().length?e(s,1):e(c,-1)}),U(e,t)},c=e=>{P$(e,{children:(e,t)=>{var n=ZCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`collection_not_found`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(l)?e(s):e(c,-1)}),U(e,n)},$$slots:{default:!0}})}k(),c()}var YCe,XCe,ZCe,QCe=s((()=>{Q(),Y(),Z(),B$(),Yx(),R3(),H3(),ICe(),WCe(),qCe(),qb(),M9(),YCe=V(`<span role="none"> </span>`),XCe=V(`<span role="none"> </span> <!>`,1),ZCe=V(`<span role="none"> </span>`)}));function $Ce(e,t){O(t,!0),K(e,nwe);let n=()=>j(Mb,`$selectedCollection`,r),[r,i]=hn(),a=M(()=>n()?.files.filter(Hy)??[]);{let t=M(()=>X(`file_list`));F3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=H(),i=I(r),o=e=>{{let t=M(()=>X(`files`));z3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{bR(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=H();eo(I(o),Jx,null,e=>{EL(e,{onclick:()=>{y1(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{CL(e,{class:`title`,children:(e,t)=>{var n=ewe(),o=F(n),s=e=>{zF(e,{get name(){return a()}})};G(o,e=>{a()&&e(s)}),qF(L(o,2),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,i()||r())),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=twe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_in_collection`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(a)?.length?e(o):e(s,-1)}),U(e,r)},$$slots:{default:!0}})}k(),i()}var ewe,twe,nwe,rwe=s((()=>{Q(),Y(),Z(),B$(),Yx(),R3(),H3(),S1(),qb(),Yy(),ewe=V(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),twe=V(`<span role="none"> </span>`),nwe={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 iwe(e,t){O(t,!0),K(e,owe);let[n,r]=hn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=awe(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);zF(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));RL(u,{get label(){return z(t)},onSelect:()=>{mn(m1,X(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{y1(`/collections/_singletons/entries/${z(i)}`,{transitionType:`forwards`}),P(s,!1),z(c)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return z(s)},set selected(e){P(s,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}D(l),Us(l,e=>P(c,e),()=>z(c)),U(e,l),k(),r()}var awe,owe,swe=s((()=>{Q(),Y(),Z(),B$(),S1(),awe=V(`<div class="wrapper svelte-w0jevb"><!></div>`),owe={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}}));function cwe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,s),r=()=>j(DP,`$backend`,s),i=()=>j(OP,`$isLastCommitPublished`,s),a=()=>j(H2,`$skipCIConfigured`,s),o=()=>j(zA,`$isSmallScreen`,s),[s,c]=hn(),l=M(()=>n().deployHookURL),u=M(()=>n().deployHookAuthHeader),d=M(()=>r()?.triggerDeployment),f=M(()=>(!!z(l)||typeof z(d)==`function`)&&!i()),p=N(`info`),m=N(!1),h=async()=>{P(p,`info`),P(m,!0);try{if(z(l)&&!Xx(z(l)))throw Error(`Deploy hook URL must use HTTPS or localhost`);let{ok:e,status:t}=z(l)?await fetch(z(l),{method:`POST`,mode:z(u)?`cors`:`no-cors`,headers:z(u)?{Authorization:z(u)}:{}}):await z(d)?.()??{};if(!e&&(z(u)||t!==0))throw Error(`Webhook returned ${t} error`);mn(OP,!0)}catch(e){P(p,`error`),P(m,!0),console.error(e)}};var g=H(),_=I(g),v=e=>{var t=lwe(),n=I(t);{let e=M(()=>o()?`small`:`medium`),t=M(()=>X(`publish_changes`)),r=M(()=>!z(f));tI(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>h()})}nz(L(n,2),{get show(){return z(m)},set show(e){P(m,e,!0)},children:(e,t)=>{VF(e,{get status(){return z(p)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(p)===`error`?`publishing_changes_failed`:`publishing_changes`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,t)};G(_,e=>{a()&&e(v)}),U(e,g),k(),c()}var lwe,uwe=s((()=>{Q(),Y(),Z(),B$(),kP(),W2(),WA(),eN(),Qx(),lwe=V(`<!> <!>`,1)}));function dwe(e,t){O(t,!0);let n=()=>j(JP,`$cmsConfig`,o),r=()=>j(zA,`$isSmallScreen`,o),i=()=>j(Mb,`$selectedCollection`,o),a=()=>j(Iy,`$allEntries`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Oh.current)),u=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),d=M(()=>n()?.singletons??[]);var f=gwe(),p=F(f),m=e=>{var t=fwe(),n=I(t),r=F(n),i=F(r,!0);D(r),cwe(L(r,2),{}),D(n),q3(L(n,2),{onclick:e=>{e.preventDefault(),y1(`/search`)}}),R(e=>W(i,e),[()=>X(`contents`)]),U(e,t)};G(p,e=>{r()&&e(m)});var h=L(p,2);{let e=M(()=>X(`collection_list`));jL(h,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=hwe(),o=I(n),s=e=>{{let t=M(()=>X(`collections`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(u),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Jx,null,e=>{var n=H(),o=I(n),s=e=>{let n=M(()=>{let{name:e,label:n,icon:r}=z(t);return{name:e,label:n,icon:r}});{let o=e=>{{let t=M(()=>z(n).icon||`bookmark_manager`);zF(e,{get name(){return z(t)}})}},s=e=>{var r=H();oo(I(r),a,e=>{let r=M(()=>(`files`in z(t)?z(t).files:tk(z(n).name)).length);var i=pwe(),a=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(a,t)},[()=>X(`x_entries`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)},u=M(()=>z(n).label||z(n).name),d=M(()=>r()||c()?!1:i()?.name===z(n).name);RL(e,{get label(){return z(u)},get selected(){return z(d)},onSelect:()=>{y1(`/collections/${z(n).name}`,{transitionType:`forwards`})},startIcon:o,endIcon:s,$$slots:{startIcon:!0,endIcon:!0}})}},u=e=>{zI(e,{})};G(o,e=>{`divider`in z(t)?z(t).divider&&e(u,1):e(s)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}};G(o,e=>{z(u).length&&e(s)});var f=L(o,2),p=e=>{var t=H(),n=I(t),a=e=>{{let t=M(()=>X(`files`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Jx,null,e=>{var n=H(),r=I(n),i=e=>{iwe(e,{get file(){return z(t)}})},a=e=>{zI(e,{})};G(r,e=>{`divider`in z(t)?z(t).divider&&e(a,1):e(i)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},o=e=>{let t=M(()=>z(d).length);{let n=M(()=>X(`collections`));FL(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{zF(e,{name:`bookmark_manager`})},r=e=>{var n=mwe(),r=F(n,!0);D(n),R((e,t)=>{q(n,`aria-label`,`(${e??``})`),W(r,t)},[()=>X(`x_entries`,{values:{count:z(t)}}),()=>z(l).format(z(t))]),U(e,n)},a=M(()=>X(`files`)),o=M(()=>i()?.name===`_singletons`);RL(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{y1(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:r,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};G(n,e=>{r()||z(u).length?e(a):e(o,-1)}),U(e,t)};G(f,e=>{z(d).length&&e(p)}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),s()}var fwe,pwe,mwe,hwe,gwe,_we=s((()=>{Q(),Y(),Z(),B$(),Yx(),swe(),uwe(),Z3(),S1(),$P(),Vy(),qb(),ak(),WA(),fwe=V(`<header><h2> </h2> <!></header> <!>`,1),pwe=V(`<span class="count"> </span>`),mwe=V(`<span class="count"> </span>`),hwe=V(`<!> <!>`,1),gwe=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function vwe(e,t){O(t,!0);let n=()=>j(T9,`$reorderDirty`,a),r=()=>j(Mb,`$selectedCollection`,a),i=()=>j(w9,`$reorderedEntries`,a),[a,o]=hn(),s=N(!1),c=N(!1);var l=ywe(),u=I(l);{let e=M(()=>X(`done`)),t=M(()=>X(`done_reordering_entries`)),a=M(()=>z(s)||!n());tI(u,{variant:`primary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(a)},onclick:async()=>{let e=r();P(s,!0);try{await N4(e,i()),mn(C9,!1)}catch(e){console.error(e),P(c,!0)}P(s,!1)}})}var d=L(u,2);{let e=M(()=>X(`cancel`)),t=M(()=>X(`cancel_reordering_entries`));tI(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{mn(C9,!1)}})}nz(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`saving_reorder_failed`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,l),k(),o()}var ywe,bwe=s((()=>{Q(),Y(),Z(),B$(),qb(),I4(),M9(),ywe=V(`<!> <!> <!>`,1)}));function xwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,a),r=()=>j($O,`$selectedEntries`,a),i=()=>j(D9,`$listedEntries`,a),[a,o]=hn(),s=J(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&Rp({collectionName:e})?.entryRelative?r().flatMap(t=>wF({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>X(`delete_entries`,{values:{count:r().length}})),n=M(()=>X(`delete`));cL(e,{get title(){return z(t)},get okLabel(){return z(n)},onOk:()=>{m9(r(),z(c))},get open(){return s()},set open(e){s(e)},children:(e,t)=>{let n=M(()=>r().length>1&&r().length===i().length);_t();var a=Fa();R(e=>W(a,e),[()=>X(z(c).length?z(n)?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_selected_entries_with_assets`:z(n)?`confirm_deleting_all_entries`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),U(e,a)},$$slots:{default:!0}})}k(),o()}var Swe=s((()=>{Q(),Y(),Z(),B$(),Hp(),qb(),xSe(),ak(),M9(),TF()}));function Cwe(e,t){O(t,!0),K(e,Awe);let n=()=>j(Mb,`$selectedCollection`,c),r=()=>j(O9,`$collectionState`,c),i=()=>j(zA,`$isSmallScreen`,c),a=()=>j(C9,`$reordering`,c),o=()=>j($O,`$selectedEntries`,c),s=()=>j(D9,`$listedEntries`,c),[c,l]=hn(),u=N(!1),d=e=>OE(BE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),f=M(()=>n()?.name??``),p=M(()=>n()?.description),m=M(()=>Oh.current&&n()?Gb(n()):z(f)),h=M(()=>r().isEntryCollection),g=M(()=>r().canCreate),_=M(()=>r().canDelete),v=M(()=>r().canReorder),y=M(()=>r().quota),b=M(()=>r().remaining),x=M(()=>r().nearingQuota),S=M(()=>r().creationDisabled);var C=kwe(),w=I(C),ee=e=>{var t=Owe(),n=I(t);{let e=M(()=>X(`collection`));$Q(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=Ewe(),r=I(n),c=e=>{{let t=M(()=>X(`back_to_collection_list`));Q0(e,{get"aria-label"(){return z(t)},onclick:()=>{b1(`/collections`)}})}};G(r,e=>{i()&&e(c)});var l=L(r,2),g=F(l,!0);D(l);var y=L(l,2),b=e=>{UI(e,{flex:!0})},x=e=>{var t=wwe();qF(F(t),{children:(e,t)=>{var n=H();So(I(n),()=>d(z(p)||``)),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(y,e=>{i()?e(b):e(x,-1)});var C=L(y,2),w=e=>{vwe(e,{})},ee=e=>{var t=Twe(),n=I(t),r=e=>{{let t=M(()=>X(`delete`)),n=M(()=>X(`delete_selected_entries`,{values:{count:o().length}})),r=M(()=>!o().length||!z(_));tI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{P(u,!0)}})}};G(n,e=>{i()||e(r)});var a=L(n,2),c=e=>{{let t=M(()=>X(`reorder`)),n=M(()=>X(`reorder_entries`)),r=M(()=>!s().length);tI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(C9,!0)}})}};G(a,e=>{z(v)&&e(c)}),vI(L(a,2),{children:(e,t)=>{var n=H(),r=I(n),a=e=>{{let t=M(()=>i()?void 0:X(`create`));GCe(e,{get collectionName(){return z(f)},get label(){return z(t)},keyShortcuts:`Accel+E`})}};G(r,e=>{(!i()||s().length&&!z(S))&&e(a)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(C,e=>{z(h)&&a()?e(w):z(h)&&e(ee,1)}),R(()=>W(g,z(m))),U(e,n)},$$slots:{default:!0}})}var r=L(n,2),c=e=>{var t=Dwe(),n=I(t);lo(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),lI(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(y)}})]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_nearing_quota`,{values:{quota:z(y),remaining:z(b)}})]),U(e,t)};G(r,e=>{z(g)?z(S)?e(a,1):z(x)&&e(o,2):e(i)}),U(e,n)},$$slots:{default:!0}}),D(n),U(e,t)};G(r,e=>{z(h)&&(z(S)||z(x))&&e(c)}),U(e,t)};G(w,e=>{n()&&e(ee)}),xwe(L(w,2),{get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,C),k(),l()}var wwe,Twe,Ewe,Dwe,Owe,kwe,Awe,jwe=s((()=>{Q(),Y(),Z(),B$(),kE(),lO(),$0(),bwe(),Swe(),qCe(),S1(),qb(),ak(),M9(),WA(),wwe=V(`<div role="none" class="description svelte-83jnuc"><!></div>`),Twe=V(`<!> <!> <!>`,1),Ewe=V(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),Dwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),Owe=V(`<!> <!>`,1),kwe=V(`<!> <!>`,1),Awe={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 Mwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,o),r=()=>j(oF,`$allAssets`,o),i=()=>j(VA,`$isLargeScreen`,o),a=()=>j(S9,`$currentView`,o),[o,s]=hn(),c=M(()=>Rp({collectionName:n()?.name})),l=M(()=>z(c)?r().filter(e=>yF(e,z(c))):[]),u=M(()=>z(c)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),d=M(()=>z(u).internalPath),f=M(()=>z(u).entryRelative),p=M(()=>z(u).hasTemplateTags),m=M(()=>z(f)||z(p));var h=H(),g=I(h),_=e=>{{let t=M(()=>X(`collection_assets`));L$(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{T3(e,{get disabled(){return z(m)},multiple:!0,onDrop:({files:e})=>{mn(pF,{folder:z(c),files:e})},children:(e,t)=>{Fme(e,{get assets(){return z(l)},onSelect:({asset:e})=>{y1(`/assets/${e.path}`,{transitionType:`forwards`})}})},$$slots:{default:!0}})},$$slots:{default:!0}})}};G(g,e=>{z(d)!==void 0&&i()&&a().showMedia&&e(_)}),U(e,h),k(),s()}var Nwe=s((()=>{Q(),Y(),Z(),B$(),Hme(),M3(),S1(),SF(),Hp(),qb(),M9(),WA()}));function Pwe(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`noneLabel`,3,``),c=J(t,`groups`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`grouping_options`));UL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=Fwe(),a=I(i);{let e=M(()=>s()||X(`sort_keys.none`)),r=M(()=>!n().group);tR(a,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}mo(L(a,2),17,c,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().group?.field===z(i).field&&String(n().group.pattern)===String(z(i).pattern));tR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`group`));NI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var Fwe,Iwe=s((()=>{Q(),Y(),Z(),B$(),Fwe=V(`<!> <!>`,1)}));function Lwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,f),r=()=>j(D9,`$listedEntries`,f),i=()=>j(C9,`$reordering`,f),a=()=>j(zA,`$isSmallScreen`,f),o=()=>j(BA,`$isMediumScreen`,f),s=()=>j(j9,`$entryGroups`,f),c=()=>j(VSe,`$sortKeys`,f),l=()=>j(TSe,`$viewFilters`,f),u=()=>j(ASe,`$viewGroups`,f),d=()=>j(S9,`$currentView`,f),[f,p]=hn(),m=M(()=>n()?._type===`entry`?n():void 0),h=M(()=>z(m)?.name),g=M(()=>z(m)?._thumbnailFieldNames??[]),_=M(()=>!!r().length),v=M(()=>r().length>1);var y=H(),b=I(y),x=e=>{{let t=M(()=>X(`entry_list`));$Q(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=zwe(),r=I(n),i=e=>{{let t=M(()=>s().flatMap(({entries:e})=>e));l6(e,{get allItems(){return z(t)},get selectedItems(){return $O}})}};G(r,e=>{a()||o()||e(i)});var f=L(r,2);UI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(v)||!c().length);m6(p,{get disabled(){return z(e)},get currentView(){return S9},get sortKeys(){return c()},get collectionName(){return z(h)},"aria-controls":`entry-list`})}var m=L(p,2),y=e=>{{let t=M(()=>!z(v));o6(e,{get disabled(){return z(t)},get currentView(){return S9},get filters(){return l()},multiple:!0,"aria-controls":`entry-list`})}};G(m,e=>{l()?.length&&e(y)});var b=L(m,2),x=e=>{{let t=M(()=>!z(v));Pwe(e,{get disabled(){return z(t)},get currentView(){return S9},get groups(){return u()},"aria-controls":`entry-list`})}};G(b,e=>{u()?.length&&e(x)});var S=L(b,2),C=e=>{{let t=M(()=>!z(_));_6(e,{get disabled(){return z(t)},get currentView(){return S9},"aria-controls":`entry-list`})}};G(S,e=>{z(g).length&&e(C)});var w=L(S,2),ee=e=>{var t=Rwe(),n=I(t);zI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{zF(e,{name:`photo_library`})},t=M(()=>!z(_)||!Rp({collectionName:z(h)})),n=M(()=>!!d().showMedia),i=M(()=>X(d().showMedia?`hide_assets`:`show_assets`));tI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`collection-assets`,get"aria-expanded"(){return d().showMedia},get"aria-label"(){return z(i)},onclick:()=>{S9.update(e=>({...e,showMedia:!d().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(w,e=>{a()||o()||e(ee)}),U(e,n)},$$slots:{default:!0}})}};G(b,e=>{z(m)&&!i()&&e(x)}),U(e,y),k(),p()}var Rwe,zwe,Bwe=s((()=>{Q(),Y(),Z(),B$(),c6(),Iwe(),p6(),g6(),x6(),Hp(),qb(),ak(),M9(),ESe(),jSe(),HSe(),WA(),Rwe=V(`<!> <!>`,1),zwe=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function Vwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,s),r=()=>j(AF,`$showContentOverlay`,s),i=()=>j(zA,`$isSmallScreen`,s),a=()=>j(D9,`$listedEntries`,s),o=()=>j(M0,`$contentUpdatesToast`,s),[s,c]=hn(),l=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,u=N(!1),d=N(!1),f=N(void 0),p=M(()=>`files`in(n()??{})?$Ce:JCe),m=()=>{let{path:e,params:t}=h1(),r=e.match(l);if(P(u,!1),P(d,!1),P(f,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&Rb().length&&mn(Mb,void 0),!r?.groups){mn(AF,!1),P(d,d8(e),!0);return}let{_collectionName:o,routeType:s,subPath:c}=r.groups;if(!o){i()?(mn(Mb,void 0),mn(AF,!1),mn(m1,X(`viewing_collection_list`)),P(u,!0)):y1(`/collections/${(n()||zb()||Ub())?.name}`,{replaceState:!0});return}let p=Wb(o);if(!p||p.hide?mn(Mb,void 0):n()?.name!==p.name&&mn(Mb,p),!p||!n()){mn(AF,!1),mn(m1,X(`collection_not_found`));return}let{name:m}=n(),h=Gb(n()),g=`_fileMap`in n()?n()._fileMap:void 0;if(!s){mn(AF,!1),mn(m1,X(`viewing_x_collection`,{values:{collection:h,count:a().length}}));return}if(mn(AF,!0),g){if(s===`entries`&&c){let e=qy(m,c),t=g[c];P9(e?{collection:p,collectionFile:t,originalEntry:e}:{collection:p,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),mn(m1,X(`edit_${p._type}_announcement`,{values:{collection:h,file:Gy(t)}}))}}else if(s===`new`&&!c&&(P9({collection:p,dynamicValues:t,isIndexFile:!!window.history.state?.index}),mn(m1,X(`create_entry_announcement`,{values:{collection:h}}))),s===`entries`&&c){let e=a().find(e=>e.subPath===c);e&&Oh.current&&(P9({collection:p,originalEntry:e}),mn(m1,X(`edit_entry_announcement`,{values:{collection:h,entry:CO(n(),e)}})))}};ic(()=>(m(),()=>{mn(AF,!1)}));var h=Hwe();xa(`hashchange`,Ir,e=>{v1(e,m,l)});var g=I(h);{let e=e=>{var t=H(),n=I(t),r=e=>{dwe(e,{get isSearchPage(){return z(d)}})};G(n,e=>{(!i()||z(u))&&e(r)}),U(e,t)},t=e=>{var t=H(),r=I(t),o=e=>{o8(e,{})},s=e=>{{let t=e=>{Cwe(e,{})},r=e=>{var t=H(),r=I(t),i=e=>{Lwe(e,{})};G(r,e=>{n()?._type===`entry`&&a().length&&e(i)}),U(e,t)},i=e=>{var t=H();Oo(I(t),()=>z(p),(e,t)=>{t(e,{})}),U(e,t)},o=e=>{Mwe(e,{})},s=M(()=>X(`x_collection`,{values:{collection:Oh.current&&n()?Gb(n()):``}})),c=M(()=>n()?.description);A6(e,{get"aria-label"(){return z(s)},get"aria-description"(){return z(c)},primaryToolbar:t,secondaryToolbar:r,mainContent:i,secondarySidebar:o,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};G(r,e=>{z(d)?e(o):(!i()||!z(u))&&e(s,1)}),U(e,t)},r=M(()=>X(`content_library`));P6(g,{uiSettingsKey:`contents-page`,get"aria-label"(){return z(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var _=L(g,2),v=e=>{gCe(e,{get editorLocale(){return z(f)}})};G(_,e=>{r()&&e(v)});var y=L(_,2);nz(y,{get show(){return o().saved},set show(e){_n(M0,B(o).saved=e,B(o))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(o().published?`entry_saved_and_published`:`entry_saved`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),nz(L(y,2),{get show(){return o().deleted},set show(e){_n(M0,B(o).deleted=e,B(o))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entries_deleted`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,h),k(),c()}var Hwe,Uwe=s((()=>{Q(),Y(),Z(),B$(),oc(),N6(),z6(),OCe(),QCe(),rwe(),_we(),jwe(),Nwe(),Bwe(),l8(),S1(),qb(),N0(),Yy(),M9(),F9(),RF(),wO(),f8(),WA(),Hwe=V(`<!> <!> <!> <!>`,1)}));function Wwe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let t=M(()=>X(`prefs.i18n.translators.default.select_service`));NR(e,{get"aria-label"(){return z(t)},get value(){return n().defaultTranslationService},onChange:e=>{mn($M,{...n(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),17,()=>Object.entries(T5),([e,{serviceLabel:t}])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1].serviceLabel;{let t=M(()=>i()===n().defaultTranslationService);RL(e,{get label(){return a()},get value(){return i()},get selected(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var Gwe=s((()=>{Q(),Y(),Z(),B$(),D5(),eN()}));function Kwe(e,t){O(t,!0);let n=()=>j(E5,`$translator`,o),r=()=>j(AF,`$showContentOverlay`,o),i=()=>j(MF,`$translatorApiKeyDialogState`,o),a=()=>j($M,`$prefs`,o),[o,s]=hn(),c=M(()=>n().serviceId),l=M(()=>n().apiLabel),u=M(()=>n().developerURL),d=M(()=>n().apiKeyURL),f=M(()=>n().apiKeyPattern);ti(()=>{!r()&&i().show&&(_n(MF,B(i).show=!1,B(i)),i().resolve?.())});{let t=M(()=>X(`translate_fields`,{values:{count:i().multiple?2:1}})),n=M(()=>({spellcheck:!1,monospace:!0,"aria-label":X(`api_key`)}));mL(e,{get title(){return z(t)},showOk:!1,get textboxAttrs(){return z(n)},oninput:e=>{let t=e.target.value.trim();z(f)?.test(t)&&(_n($M,B(a).apiKeys??={},B(a)),_n($M,B(a).apiKeys[z(c)]=t,B(a)),_n(MF,B(i).show=!1,B(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){_n(MF,B(i).show=e,B(i))},children:(e,t)=>{var n=qwe(),r=I(n);Wwe(r,{});var i=L(r,2);UI(i,{}),So(L(i,2),()=>OE(X(`prefs.i18n.translators.description`,{values:{service:z(l),homeHref:`href="${z(u)}"`,apiKeyHref:`href="${z(d)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,n)},$$slots:{default:!0}})}k(),s()}var qwe,Jwe=s((()=>{Q(),Y(),Z(),B$(),kE(),Gwe(),RF(),D5(),eN(),qwe=V(`<!> <!> <!>`,1)}));function Ywe(e,t){O(t,!0);let n=()=>j(Ly,`$entryParseErrors`,r),[r,i]=hn(),a=N(!!n().length);nz(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`entry_parse_errors`,{values:{count:n().length}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),k(),i()}var Xwe=s((()=>{Q(),Y(),Z(),B$(),Vy()})),L9,R9,z9=s((()=>{rp(),kP(),Gj(),WA(),L9=dn([VA,HA,FA,DP,Wj],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),R9=un(!1)}));function Zwe(e,t){O(t,!0);let n=()=>j(DP,`$backend`,r),[r,i]=hn(),a,o=N(!1);ti(()=>{let{databaseName:e}=n()?.repository??{};e&&(a=new aS(e,`ui-settings`),(async()=>{let e=await a.get(`onboarding`)??{};e.mobileCta||P(o,!0),await a.set(`onboarding`,{...e,mobileCta:!0})})())});var s=$we(),c=I(s);lo(c,()=>({"--sui-infobar-message-justify-content":`center`})),lI(c.lastChild,{get show(){return z(o)},dismissible:!1,children:(e,t)=>{_t();var n=Qwe(),r=I(n),i=L(r);{let e=M(()=>X(`mobile_promo_button`));tI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1),mn(R9,!0)}})}var a=L(i,2);{let e=M(()=>X(`later`));tI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1)}})}R(e=>W(r,`${e??``} `),[()=>X(`mobile_promo_title`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,s),k(),i()}var Qwe,$we,eTe=s((()=>{Q(),Y(),Z(),B$(),cS(),z9(),kP(),Qwe=V(` <!> <!>`,1),$we=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function tTe(e,t){O(t,!0),K(e,rTe);let n=()=>j(Pp,`$allAssetFolders`,l),r=()=>j(zA,`$isSmallScreen`,l),i=()=>j(Ip,`$selectedAssetFolder`,l),a=()=>j(JP,`$cmsConfig`,l),o=()=>j(EP,`$backendName`,l),s=()=>j(p1,`$selectedPageName`,l),c=()=>j(W3,`$searchMode`,l),[l,u]=hn(),d=M(()=>{let e=[{key:`collections`,label:X(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return n().length&&e.push({key:`assets`,label:X(`assets`),icon:`photo`,link:r()?`/assets`:`/assets/${i()?.internalPath??`-/all`}`,searchMode:`assets`}),a()?.publish_mode,o(),r()&&e.push({key:`menu`,label:X(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var f=nTe(),p=F(f);{let e=M(()=>X(`switch_page`));kI(p,{get"aria-label"(){return z(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),({key:e,label:t,icon:n,link:r,searchMode:i})=>e,(e,t,n)=>{let r=()=>z(t).key,i=()=>z(t).label,a=()=>z(t).icon,o=()=>z(t).link,l=()=>z(t).searchMode;{let t=e=>{zF(e,{get name(){return a()}})},u=M(()=>s()===r()||c()===l()),d=M(()=>z(n)+1);MI(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{y1(o())},startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),u()}var nTe,rTe,iTe=s((()=>{Q(),Y(),Z(),B$(),S1(),Hp(),kP(),$P(),K3(),WA(),nTe=V(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),rTe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
1024
- @media (width < 768px) {.wrapper.svelte-t2r4ty .sui.select-button-group {justify-content:space-evenly;width:100%;}
1025
- }.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`}}));function aTe(e,t){O(t,!0);let n=()=>j(f1,`$hasOverlay`,r),[r,i]=hn();Kae(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>X(`global`));$Q(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=oTe();tTe(F(n),{}),D(n),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),k(),i()}var oTe,sTe=s((()=>{Q(),Y(),Z(),B$(),iTe(),S1(),oTe=V(`<div role="none" class="buttons"><!></div>`)}));function cTe(e,t){O(t,!0),K(e,fTe);let n=()=>j(RA,`$isMacOS`,r),[r,i]=hn(),a=J(t,`open`,15,!1),o=J(t,`onClose`,3,void 0),s=[{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 t=M(()=>X(`keyboard_shortcuts`));$I(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{o()?.()},get open(){return a()},set open(e){a(e)},children:(e,t)=>{var r=dTe(),i=F(r);{let e=M(()=>X(`keyboard_shortcuts`));Ioe(i,{get"aria-label"(){return z(e)},children:(e,t)=>{var r=H();mo(I(r),17,()=>s,({feature:e,keys:t})=>t,(e,t)=>{let r=()=>z(t).feature,i=()=>z(t).keys;Poe(e,{children:(e,t)=>{var a=uTe(),o=I(a);GR(o,{class:`feature`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keyboard_shortcuts_.${r()}`)]),U(e,n)},$$slots:{default:!0}}),GR(L(o,2),{class:`keys`,children:(e,t)=>{var r=H();mo(I(r),16,()=>i().split(`+`),e=>e,(e,t)=>{var r=lTe(),i=F(r,!0);D(r),R(e=>W(i,e),[()=>t.replace(`Accel`,n()?`⌘`:`Ctrl`)]),U(e,r)}),U(e,r)},$$slots:{default:!0}}),U(e,a)},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})}D(r),U(e,r)},$$slots:{default:!0}})}k(),i()}var lTe,uTe,dTe,fTe,pTe=s((()=>{Q(),Y(),Z(),B$(),WA(),lTe=V(`<kbd class="svelte-13q15u"> </kbd>`),uTe=V(`<!> <!>`,1),dTe=V(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),fTe={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 mTe(e,t){O(t,!0);let n=()=>j(HA,`$hasMouse`,r),[r,i]=hn(),a=N(!1);var o=hTe(),s=I(o),c=e=>{{let t=M(()=>X(`keyboard_shortcuts`));qL(e,{get label(){return z(t)},onclick:()=>{P(a,!0)}})}};G(s,e=>{n()&&e(c)}),cTe(L(s,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(a)},set open(e){P(a,e,!0)}}),U(e,o),k(),i()}var hTe,gTe=s((()=>{Q(),Y(),Z(),B$(),pTe(),WA(),hTe=V(`<!> <!>`,1)}));function B9(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn(),a=J(t,`defaultValue`,3,!0),o=N(!0);ti(()=>{P(o,!!(n()[t.key]??a()),!0)}),ti(()=>{n()[t.key]!==z(o)&&_n($M,B(n)[t.key]=z(o),B(n))}),HR(e,{get label(){return t.label},get checked(){return z(o)},set checked(e){P(o,e,!0)}}),k(),i()}var V9=s((()=>{Q(),Y(),B$(),eN()}));function _Te(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=vTe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a,!0);D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.accessibility.underline_links.switch_label`));B9(c,{key:`underlineLinks`,get label(){return z(e)}})}D(s),D(n),R((e,t)=>{W(i,e),W(o,t)},[()=>X(`prefs.accessibility.underline_links.title`),()=>X(`prefs.accessibility.underline_links.description`)]),U(e,n),k()}var vTe,yTe=s((()=>{Q(),Y(),Z(),V9(),vTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)}));function bTe(e,t){O(t,!0);let n=()=>j(H2,`$skipCIConfigured`,i),r=()=>j($M,`$prefs`,i),[i,a]=hn(),o=J(t,`onChange`,3,void 0);var s=STe(),c=I(s),l=F(c),u=F(l,!0);D(l);var d=L(l,2),f=F(d,!0);D(d);var p=L(d,2),m=F(p);{let e=M(()=>X(`prefs.advanced.beta.switch_label`));B9(m,{key:`beta`,get label(){return z(e)},defaultValue:!1})}D(p),D(c);var h=L(c,2),g=F(h),_=F(g,!0);D(g);var v=L(g,2),y=F(v,!0);D(v);var b=L(v,2),x=F(b);{let e=M(()=>X(`prefs.advanced.developer_mode.switch_label`));B9(x,{key:`devModeEnabled`,get label(){return z(e)},defaultValue:!1})}D(b),D(h);var S=L(h,2),C=e=>{var t=xTe(),n=F(t),i=F(n,!0);D(n);var a=L(n,2),s=F(a,!0);D(a);var c=L(a,2),l=F(c);{let e=M(()=>X(`prefs.advanced.deploy_hook.url.field_label`));lL(l,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return r().deployHookURL},set value(e){_n($M,B(r).deployHookURL=e,B(r))}})}D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.advanced.deploy_hook.auth.field_label`));lL(d,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return r().deployHookAuthHeader},set value(e){_n($M,B(r).deployHookAuthHeader=e,B(r))}})}D(u),D(t),R((e,t)=>{W(i,e),W(s,t)},[()=>X(`prefs.advanced.deploy_hook.title`),()=>X(`prefs.advanced.deploy_hook.description`)]),U(e,t)};G(S,e=>{n()&&e(C)}),R((e,t,n,r)=>{W(u,e),W(f,t),W(_,n),W(y,r)},[()=>X(`prefs.advanced.beta.title`),()=>X(`prefs.advanced.beta.description`),()=>X(`prefs.advanced.developer_mode.title`),()=>X(`prefs.advanced.developer_mode.description`)]),U(e,s),k(),a()}var xTe,STe,CTe=s((()=>{Q(),Y(),Z(),B$(),V9(),W2(),eN(),xTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),STe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)}));function wTe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=TTe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2),l=F(c);{let e=M(()=>X(`prefs.appearance.select_theme`));kI(l,{get"aria-label"(){return z(e)},onChange:e=>{mn($M,{...n(),theme:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let r=M(()=>X(`prefs.theme.${t}`)),i=M(()=>!n().theme&&t===`auto`||n().theme===t);MI(e,{variant:`tertiary`,get label(){return z(r)},get value(){return t},get selected(){return z(i)}})}}),U(e,r)},$$slots:{default:!0}})}D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.appearance.theme`)]),U(e,a),k(),i()}var TTe,ETe=s((()=>{Q(),Y(),Z(),B$(),eN(),TTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function DTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=OTe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a);{let e=M(()=>X(`prefs.contents.editor.use_draft_backup.switch_label`));B9(o,{key:`useDraftBackup`,get label(){return z(e)}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.contents.editor.close_on_save.switch_label`));B9(c,{key:`closeOnSave`,get label(){return z(e)}})}D(s);var l=L(s,2),u=F(l);{let e=M(()=>X(`prefs.contents.editor.close_with_escape.switch_label`));B9(u,{key:`closeWithEscape`,get label(){return z(e)}})}D(l),D(n),R(e=>W(i,e),[()=>X(`prefs.contents.editor.title`)]),U(e,n),k()}var OTe,kTe=s((()=>{Q(),Y(),Z(),V9(),OTe=V(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`)}));function H9(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn(),a=J(t,`onChange`,3,void 0),o=M(()=>t.service.apiKeyPattern),s=N(``);ic(()=>{P(s,n().apiKeys?.[t.serviceId]??``,!0)}),E$(e,{flex:!0,autocomplete:`off`,spellcheck:`false`,get"aria-label"(){return t.ariaLabel},onchange:()=>{let e=z(s).trim(),r=!!e&&!!z(o)&&!z(o).test(e);_n($M,B(n).apiKeys??={},B(n)),_n($M,B(n).apiKeys[t.serviceId]=r?``:e,B(n)),a()?.({message:X(r?`prefs.changes.api_key_invalid`:e?`prefs.changes.api_key_saved`:`prefs.changes.api_key_removed`),status:r?`error`:`success`})},get value(){return z(s)},set value(e){P(s,e,!0)}}),k(),i()}var ATe=s((()=>{Q(),Y(),Z(),B$(),oc(),eN()}));function jTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0);var r=NTe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);Wwe(F(s),{}),D(s),D(i);var c=L(i,2),l=F(c),u=F(l,!0);D(l);var d=L(l,2);So(d,()=>Wk(X(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),D(d),mo(L(d,2),17,()=>Object.entries(T5),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=MTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.i18n.translators.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(c),R((e,t)=>{W(o,e),W(u,t)},[()=>X(`prefs.i18n.translators.default.title`),()=>X(`prefs.i18n.translators.api_keys.title`)]),U(e,r),k()}var MTe,NTe,PTe=s((()=>{Q(),Y(),Z(),ATe(),Gwe(),D5(),Gk(),MTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),NTe=V(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)}));function FTe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=ITe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2);oo(F(c),()=>Oh.current,e=>{{let t=M(()=>X(`prefs.language.ui_language.select_language`));NR(e,{get"aria-label"(){return z(t)},get value(){return Oh.current},onChange:e=>{mn($M,{...n(),locale:e.detail.value})},children:(e,t)=>{var n=H();mo(I(n),16,()=>ph,e=>e,(e,t)=>{{let n=M(()=>ob(t,{displayLocale:t})??t),r=M(()=>t===Oh.current);RL(e,{get label(){return z(n)},get value(){return t},get selected(){return z(r)},dir:`auto`})}}),U(e,n)},$$slots:{default:!0}})}}),D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.language.ui_language.title`)]),U(e,a),k(),i()}var ITe,LTe=s((()=>{Q(),Y(),Z(),B$(),ub(),eN(),ITe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function RTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=d7();return Object.entries(u7).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(dw).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=VTe(),o=I(a),s=F(o),c=F(s,!0);D(s);var l=L(s,2);So(l,()=>Wk(z(i).length?X(`prefs.media.cloud_storage.api_keys.description`):X(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),D(l),mo(L(l,2),17,()=>z(i),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=zTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.cloud_storage.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(o);var u=L(o,2),d=F(u),f=F(d,!0);D(d);var p=L(d,2);So(p,()=>Wk(z(r).length?X(`prefs.media.stock_photos.api_keys.description`):X(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),D(p),mo(L(p,2),17,()=>z(r),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=BTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(u),R((e,t)=>{W(c,e),W(f,t)},[()=>X(`prefs.media.cloud_storage.api_keys.title`),()=>X(`prefs.media.stock_photos.api_keys.title`)]),U(e,a),k()}var zTe,BTe,VTe,HTe=s((()=>{Q(),Y(),Z(),ATe(),pw(),vhe(),Gk(),zTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),BTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),VTe=V(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})),U9,UTe=s((()=>{rp(),yTe(),CTe(),ETe(),kTe(),PTe(),LTe(),HTe(),$P(),U9=dn([JP],([e])=>[{key:`appearance`,icon:`palette`,component:wTe},{key:`language`,icon:`language`,component:FTe},{key:`contents`,icon:`library_books`,component:DTe},{key:`i18n`,icon:`translate`,component:jTe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:RTe},{key:`accessibility`,icon:`accessibility_new`,component:_Te},{key:`advanced`,icon:`build`,component:bTe}])}));function WTe(e,t){K(e,KTe);let n=N(``),r=N(`success`),i=N(!1);var a=GTe(),o=I(a);Oo(F(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{P(n,e,!0),P(r,t??`success`,!0),P(i,!0)}})}),D(o),nz(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{VF(e,{get status(){return z(r)},children:(e,t)=>{_t();var r=Fa();R(()=>W(r,z(n))),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,a)}var GTe,KTe,qTe=s((()=>{Q(),Y(),B$(),GTe=V(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),KTe={hash:`svelte-1attlke`,code:`.container.svelte-1attlke {display:contents;}.container.svelte-1attlke section:not(:first-child) {margin:16px 0 0;}.container.svelte-1attlke p {margin-top:0;}.container.svelte-1attlke h3 {font-size:inherit;}.container.svelte-1attlke h3 ~ div {margin:8px 0 0;}.container.svelte-1attlke h3 ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.container.svelte-1attlke h4 {margin-bottom:4px;font-size:var(--sui-font-size-small);}`}}));function JTe(e,t){O(t,!0),K(e,XTe);let n=J(t,`open`,15,!1),r=J(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>X(`settings`));$I(e,{get title(){return z(t)},size:`large`,showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{r()?.()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=YTe(),r=F(n);{let e=M(()=>X(`categories`));Roe(r,{orientation:`vertical`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=H();mo(I(n),17,()=>A(U9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon,a=ar(()=>T(z(t).enabled,!0));var o=H(),s=I(o),c=e=>{{let t=e=>{zF(e,{get name(){return r()}})},a=M(()=>X(`prefs.${n()}.title`)),o=M(()=>n()===z(i));Hoe(e,{get label(){return z(a)},get selected(){return z(o)},get"aria-controls"(){return`prefs-tab-${n()??``}`},onSelect:()=>{P(i,n(),!0)},startIcon:t,$$slots:{startIcon:!0}})}};G(s,e=>{z(a)&&e(c)}),U(e,o)}),U(e,n)},$$slots:{default:!0}})}mo(L(r,2),17,()=>A(U9),({key:e,component:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).component;Boe(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{WTe(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),D(n),U(e,n)},$$slots:{default:!0}})}k()}var YTe,XTe,ZTe=s((()=>{Q(),Y(),Z(),B$(),rp(),UTe(),qTe(),YTe=V(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),XTe={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;}`}}));function QTe(e,t){O(t,!0);let n=()=>j(EP,`$backendName`,c),r=()=>j(Wj,`$user`,c),i=()=>j($M,`$prefs`,c),a=()=>j(DP,`$backend`,c),o=()=>j(zA,`$isSmallScreen`,c),s=()=>j(L9,`$canShowMobileSignInDialog`,c),[c,l]=hn(),u=N(!1),d=M(()=>n()===`local`),f=M(()=>n()===`test-repo`);var p=tEe(),m=I(p);{let e=M(()=>X(`account`));UL(m,{get"aria-label"(){return z(e)},children:(e,n)=>{var c=eEe(),l=I(c);{let e=M(()=>z(d)?X(`working_with_local_repo`):z(f)?X(`working_with_test_repo`):X(`signed_in_as_x`,{values:{name:r()?.login}})),t=M(()=>z(d)||z(f));qL(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{u1(r()?.profileURL)}})}var p=L(l,2);zI(p,{});var m=L(p,2);{let e=M(()=>X(`live_site`));qL(m,{get label(){return z(e)},onclick:()=>{x1()}})}var h=L(m,2),g=e=>{var t=$Te(),n=I(t);{let e=M(()=>X(`git_repository`)),t=M(()=>!a()?.repository?.treeBaseURL);qL(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{u1(a()?.repository?.treeBaseURL)}})}var r=L(n,2);{let e=M(()=>X(`cms_config`));qL(r,{get label(){return z(e)},onclick:()=>{y1(`/config`,{transitionType:`forwards`})}})}U(e,t)};G(h,e=>{i().devModeEnabled&&e(g)});var _=L(h,2);zI(_,{});var v=L(_,2);{let e=M(()=>X(`settings`));qL(v,{get label(){return z(e)},onclick:()=>{o()?y1(`/settings`,{transitionType:`forwards`}):P(u,!0)}})}var y=L(v,2),b=e=>{mTe(e,{get menuButton(){return t.menuButton}})};G(y,e=>{i().devModeEnabled||e(b)});var x=L(y,2),S=e=>{{let t=M(()=>X(`sign_in_with_mobile`));qL(e,{get label(){return z(t)},onclick:()=>{mn(R9,!0)}})}};G(x,e=>{s()&&e(S)});var C=L(x,2);zI(C,{});var w=L(C,2);{let e=M(()=>X(`sign_out`));qL(w,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{F1()})}})}U(e,c)},$$slots:{default:!0}})}JTe(L(m,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,p),k(),l()}var $Te,eEe,tEe,nEe=s((()=>{Q(),Y(),Z(),B$(),gTe(),ZTe(),S1(),z9(),kP(),Gj(),I1(),WA(),eN(),d1(),$Te=V(`<!> <!>`,1),eEe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),tEe=V(`<!> <!>`,1)}));function rEe(e,t){O(t,!0),K(e,oEe);let n=()=>j(EP,`$backendName`,i),r=()=>j(Wj,`$user`,i),[i,a]=hn(),o=N(void 0),s=M(()=>n()===`local`),c=M(()=>!!r()?.avatarURL);var l=aEe(),u=F(l);{let e=e=>{var t=H(),n=I(t),i=e=>{zF(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=iEe();R(()=>q(t,`src`,r()?.avatarURL)),U(e,t)},o=e=>{zF(e,{name:`account_circle`})};G(n,e=>{z(s)?e(i):z(c)?e(a,1):e(o,-1)}),U(e,t)},t=e=>{QTe(e,{get menuButton(){return z(o)}})},n=M(()=>!z(s)),i=M(()=>z(s)?X(`local_workflow.indicator`):void 0),a=M(()=>z(c)?`avatar`:``),l=M(()=>X(`show_account_menu`));Us(NI(u,{variant:`ghost`,get iconic(){return z(n)},get label(){return z(i)},get class(){return z(a)},popupPosition:`bottom-right`,get"aria-label"(){return z(l)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(o,e,!0),()=>z(o))}D(l),U(e,l),k(),a()}var iEe,aEe,oEe,sEe=s((()=>{Q(),Y(),Z(),B$(),nEe(),kP(),Gj(),iEe=V(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),aEe=V(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),oEe={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 cEe(e,t){O(t,!0);let[n,r]=hn(),i=M(()=>Rb({visible:!0,type:`entry`}));{let t=e=>{zF(e,{name:`add`})},n=e=>{{let t=M(()=>X(`create_entry_or_assets`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=uEe(),r=I(n),a=e=>{var t=lEe(),n=I(t);mo(n,17,()=>z(i),e=>e.name,(e,t)=>{let n=M(()=>{let{name:e,label:n,label_singular:r,create:i=!0,limit:a=1/0}=z(t);return{name:e,label:n,labelSingular:r,create:i,limit:a}});{let t=M(()=>z(n).labelSingular||z(n).label||z(n).name),r=M(()=>!z(n).create||tk(z(n).name).length>=z(n).limit);qL(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{y1(`/collections/${z(n).name}/new`,{transitionType:`forwards`})}})}}),zI(L(n,2),{}),U(e,t)};G(r,e=>{z(i).length&&e(a)});var o=L(r,2);{let e=M(()=>X(`assets`));qL(o,{get label(){return z(e)},onclick:async()=>{y1(`/assets`,{transitionType:`forwards`}),await Jx(100),mn(n1,!0)}})}U(e,n)},$$slots:{default:!0}})}},r=M(()=>X(`create_entry_or_assets`));NI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:t,popup:n,$$slots:{endIcon:!0,popup:!0}})}k(),r()}var lEe,uEe,dEe=s((()=>{Q(),Y(),Z(),B$(),Yx(),S1(),l1(),qb(),ak(),lEe=V(`<!> <!>`,1),uEe=V(`<!> <!>`,1)}));function fEe(e,t){O(t,!0),K(e,mEe);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let t=e=>{var t=H(),r=I(t),i=e=>{var t=pEe(),n=F(t);D(t),R(e=>{q(t,`aria-label`,`(${e??``})`),W(n,`v${kw??``}`)},[()=>X(`version_x`,{values:{version:kw}})]),U(e,t)};G(r,e=>{n().devModeEnabled&&e(i)}),U(e,t)},r=M(()=>X(`release_notes`));qL(e,{get label(){return z(r)},onclick:()=>{u1(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}k(),i()}var pEe,mEe,hEe=s((()=>{Q(),Y(),Z(),B$(),Aw(),eN(),d1(),pEe=V(`<span class="version svelte-wmw2gz"> </span>`),mEe={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 gEe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let r=M(()=>X(`help`));UL(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=vEe(),a=I(i);mTe(a,{get menuButton(){return t.menuButton}});var o=L(a,2),s=e=>{var t=_Ee(),n=I(t);W9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);fEe(r,{});var i=L(r,2);W9(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=L(i,2);zI(a,{});var o=L(a,2);W9(o,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var s=L(o,2);W9(s,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var c=L(s,2);W9(c,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var l=L(c,2);W9(l,()=>`donate`,()=>`https://github.com/sponsors/kyoshino`);var u=L(l,2);zI(u,{});var d=L(u,2);W9(d,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`),W9(L(d,2),()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),U(e,t)};G(o,e=>{n().devModeEnabled&&e(s)}),U(e,i)},$$slots:{default:!0}})}k(),i()}var W9,_Ee,vEe,yEe=s((()=>{Q(),Y(),Z(),B$(),hEe(),gTe(),eN(),d1(),W9=(e,t=E,n=E)=>{{let r=M(()=>X(t()));qL(e,{get label(){return z(r)},onclick:()=>{u1(n())}})}},_Ee=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),vEe=V(`<!> <!>`,1)}));function bEe(e,t){O(t,!0),K(e,SEe);let n=N(void 0),r=N(!1);var i=xEe(),a=I(i),o=F(a);{let e=e=>{zF(e,{name:`help`})},t=e=>{gEe(e,{get menuButton(){return z(n)}})},r=M(()=>X(`show_help_menu`));Us(NI(o,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(n,e,!0),()=>z(n))}D(a),cTe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),U(e,i),k()}var xEe,SEe,CEe=s((()=>{Q(),Y(),Z(),B$(),yEe(),pTe(),xEe=V(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),SEe={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}}));function wEe(e,t){O(t,!0);{let t=e=>{zF(e,{name:`notifications`})},n=M(()=>X(`show_notifications`));tI(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}k()}var TEe=s((()=>{Q(),Y(),Z(),B$()}));function EEe(e,t){O(t,!0),K(e,OEe);let n=()=>j(Z1,`$appLogoURL`,i),r=()=>j(JP,`$cmsConfig`,i),[i,a]=hn();var o=H(),s=I(o),c=e=>{{let t=M(()=>X(`visit_live_site`));tI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{x1()},children:(e,t)=>{var r=DEe();R(()=>q(r,`src`,n())),U(e,r)},$$slots:{default:!0}})}};G(s,e=>{n()!==Y1&&(r()?.logo?.show_in_header??!0)&&e(c)}),U(e,o),k(),a()}var DEe,OEe,kEe=s((()=>{Q(),Y(),Z(),B$(),$1(),S1(),$P(),DEe=V(`<img alt="" class="logo svelte-15c9hhi"/>`),OEe={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}}));function AEe(e,t){O(t,!0),K(e,NEe);let n=()=>j(f1,`$hasOverlay`,i),r=()=>j($M,`$prefs`,i),[i,a]=hn();var o=MEe(),s=F(o);{let e=M(()=>X(`global`));$Q(s,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=jEe(),i=I(n),a=F(i);EEe(a,{}),tTe(L(a,2),{}),D(i);var o=L(i,2);q3(o,{});var s=L(o,2),c=F(s);cwe(c,{});var l=L(c,2);cEe(l,{});var u=L(l,2);wEe(u,{});var d=L(u,2),f=e=>{bEe(e,{})};G(d,e=>{r().devModeEnabled&&e(f)}),rEe(L(d,2),{}),D(s),U(e,n)},$$slots:{default:!0}})}D(o),R(()=>o.inert=n()),U(e,o),k(),a()}var jEe,MEe,NEe,PEe=s((()=>{Q(),Y(),Z(),B$(),sEe(),dEe(),CEe(),TEe(),iTe(),uwe(),Z3(),kEe(),S1(),eN(),jEe=V(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),MEe=V(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),NEe={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh .sui.search-bar {display:none !important;}
1026
- @media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar {padding:0 4px;}
1027
- }.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%;}
1028
- @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;}
1029
- }`}}));function FEe(e,t){O(t,!0),K(e,zEe);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let t=e=>{A6(e,{primaryToolbar:e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=IEe(),r=I(n),i=F(r,!0);D(r),UI(L(r,2),{flex:!0}),R(e=>W(i,e),[()=>X(`menu`)]),U(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=REe(),r=F(t),i=F(r),a=F(i,!0);D(i),QTe(L(i,2),{}),D(r);var o=L(r,2),s=e=>{var t=LEe(),n=F(t),r=F(n,!0);D(n),gEe(L(n,2),{}),D(t),R(e=>W(r,e),[()=>X(`help`)]),U(e,t)};G(o,e=>{n().devModeEnabled&&e(s)}),D(t),R(e=>W(a,e),[()=>X(`account`)]),U(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},r=M(()=>X(`menu`));P6(e,{get"aria-label"(){return z(r)},main:t,$$slots:{main:!0}})}k(),i()}var IEe,LEe,REe,zEe,BEe=s((()=>{Q(),Y(),Z(),B$(),N6(),z6(),nEe(),yEe(),eN(),IEe=V(`<h2 role="none"> </h2> <!>`,1),LEe=V(`<section><h3 class="svelte-16cq5v7"> </h3> <!></section>`),REe=V(`<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>`),zEe={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);}`}})),VEe=c(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),G9=c((e=>{var t,n=[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];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),K9=c((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),HEe=c(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),UEe=c(((e,t)=>{function n(e){if(!e||e<1)throw 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)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),WEe=c((e=>{var t=G9().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),GEe=c((e=>{var t=G9().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),KEe=c((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),qEe=c((e=>{var t=K9(),n=[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],r=[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];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),JEe=c((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),YEe=c((e=>{var t=JEe();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),XEe=c(((e,t)=>{var n=YEe();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),ZEe=c((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),QEe=c((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
1072
+ `,i=()=>{let e=z(n)?.contentDocument?.body;e&&za(Kbe,{target:e,props:{children:t.children}})},a=()=>{if(z(n)){let e=URL.createObjectURL(new Blob([r()],{type:`text/html`}));z(n).addEventListener(`load`,()=>{i(),URL.revokeObjectURL(e)},{once:!0}),z(n).src=e}};ti(()=>{z(n)&&a()});var o=Ybe();Us(o,e=>P(n,e),()=>z(n)),R(e=>q(o,`title`,e),[()=>X(`content_preview`)]),U(e,o),k()}var Ybe,Xbe,Zbe=s((()=>{Q(),Y(),Z(),oc(),qbe(),Gk(),Ybe=V(`<iframe class="preview svelte-1k58u5t" sandbox="allow-same-origin allow-scripts"></iframe>`),Xbe={hash:`svelte-1k58u5t`,code:`iframe.svelte-1k58u5t {display:block;border:none;width:100%;height:100%;}`}}));function Qbe(e,t){O(t,!0),K(e,exe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=e=>{var n=H();mo(I(n),17,()=>z(o),e=>e.name,(e,n)=>{U8(e,{children:(e,r)=>{j7(e,{get keyPath(){return z(n).name},get typedKeyPath(){return z(n).name},get locale(){return t.locale},get fieldConfig(){return z(n)}})},$$slots:{default:!0}})}),U(e,n)},o=M(()=>n()?.fields??[]);U8(e,{children:(e,n)=>{var r=H(),i=I(r),o=e=>{{let n=M(()=>[...LF]);Jbe(e,{get locale(){return t.locale},get styleURLs(){return z(n)},get children(){return a}})}},s=e=>{var t=$be();a(F(t)),D(t),R(e=>q(t,`aria-label`,e),[()=>X(`content_preview`)]),U(e,t)};G(i,e=>{LF.size?e(o):e(s,-1)}),U(e,r)},$$slots:{default:!0}}),k(),i()}var $be,exe,txe=s((()=>{Q(),Y(),Z(),K8(),Zbe(),M7(),W4(),RF(),$be=V(`<div role="document" class="svelte-17akd4q"><!></div>`),exe={hash:`svelte-17akd4q`,code:`div.svelte-17akd4q {--entry-preview-padding-block: 8px;--entry-preview-padding-inline: 16px;padding-block:var(--entry-preview-padding-block);padding-inline:var(--entry-preview-padding-inline);}`}})),o9,s9,c9,nxe,l9=s((()=>{cS(),o9=u(YM(),1),rp(),kP(),RF(),s9=un(),c9={},nxe=async({repository:e})=>{let{databaseName:t}=e??{},n=t?new aS(t,`ui-settings`):null,r=`entry-view`,i={showPreview:!0,syncScrolling:!0,selectAssetsView:{type:`grid`},...await n?.get(r)};s9.set(i),IF.set(i.selectAssetsView),c9.entryEditorSettingsUnsubscribe?.(),c9.selectAssetsViewUnsubscribe?.(),c9.entryEditorSettingsUnsubscribe=s9.subscribe(e=>{(async()=>{try{(0,o9.default)(e,await n?.get(r))||await n?.set(r,e)}catch{}})()}),c9.selectAssetsViewUnsubscribe=IF.subscribe(e=>{!e||!Object.keys(e).length||(0,o9.default)(e,A(s9)?.selectAssetsView??{})||s9.update(t=>({...t,selectAssetsView:e}))})},DP.subscribe(e=>{e&&!A(s9)&&nxe(e)})}));function rxe(e,t){O(t,!0),K(e,sxe);let n=()=>j(s9,`$entryEditorSettings`,a),r=()=>j(t.thisPane,`$thisPane`,a),i=()=>j(z4,`$entryDraft`,a),[a,o]=hn(),s=J(t,`thisPaneContentArea`,15),c=J(t,`thatPaneContentArea`,15),l=M(()=>n()??{}),u=M(()=>z(l).syncScrolling),d=M(()=>r()?.locale),f=M(()=>r()?.mode),p=M(()=>!!z(d)&&!!jt(i()?.currentValues[z(d)])),m=M(()=>({values:{locale:z(d)?ob(z(d))??z(d):``}})),h=M(()=>z(f)===`preview`?Qbe:Ube),g=N(void 0),_=()=>{window.requestAnimationFrame(()=>{if(!z(u)||!z(g)||!s()||!c())return;let{x:e,y:t}=s()===z(g)?s().getBoundingClientRect():{x:0,y:0},{ownerDocument:n,scrollTop:r,scrollHeight:i,clientHeight:a}=s(),o=r/(i-a),l=n.elementsFromPoint(e+80,t).find(e=>e.matches(`[data-key-path]`));if(!l){c(c().scrollTop=c().scrollHeight*o,!0);return}let{keyPath:d}=l.dataset,{top:f,height:p}=l.getBoundingClientRect(),m=(t-f)/p,h=c().querySelector(`[data-key-path="${CSS.escape(d??``)}"]`);m<0||m>1||!h||c(c().scrollTop=h.offsetTop-t+h.clientHeight*m,!0)})},v={capture:!0,passive:!0},y=async()=>{if(!z(g))return;s()&&(s().removeEventListener(`wheel`,_,v),s().removeEventListener(`touchmove`,_,v));let e=z(g).querySelector(`iframe.preview`);e?(await Jx(250),s(e?.contentDocument?.firstElementChild)):s(z(g)),s()&&(s(s().scrollTop=0,!0),s().addEventListener(`wheel`,_,v),s().addEventListener(`touchmove`,_,v))};ti(()=>{r()?.mode,z(g),y()});var b=oxe(),x=F(b),S=e=>{var t=ixe();Oo(F(t),()=>z(h),(e,t)=>{t(e,{get locale(){return z(d)}})}),D(t),Us(t,e=>P(g,e),()=>z(g)),U(e,t)},C=e=>{P$(e,{children:(e,t)=>{var n=axe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(z(p)?`reenable_x_locale`:`enable_x_locale`,z(m)));tI(a,{variant:`tertiary`,get label(){return z(e)},onclick:()=>{z(d)&&P7(z(d))}})}R(e=>W(i,e),[()=>X(z(p)?`locale_x_now_disabled`:`locale_x_has_been_disabled`,z(m))]),U(e,n)},$$slots:{default:!0}})};G(x,e=>{z(d)&&i()?.currentLocales[z(d)]?e(S):z(f)===`edit`&&e(C,1)}),D(b),R(()=>q(b,`id`,t.id)),U(e,b),k(),o()}var ixe,axe,oxe,sxe,cxe=s((()=>{Q(),Y(),Z(),B$(),Yx(),Gbe(),txe(),W4(),F7(),l9(),ub(),ixe=V(`<div role="none" class="content svelte-1vy4qxn"><!></div>`),axe=V(`<span role="alert"> </span> <!>`,1),oxe=V(`<div role="none" class="wrapper svelte-1vy4qxn"><!></div>`),sxe={hash:`svelte-1vy4qxn`,code:`.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;
1073
+
1074
+ @media (width < 768px) {--field-editor-padding: 12px;
1075
+ }}`}}));function lxe(e,t){O(t,!0),K(e,pxe);let n=()=>j(z4,`$entryDraft`,c),r=()=>j(zA,`$isSmallScreen`,c),i=()=>j(BA,`$isMediumScreen`,c),a=()=>j(u(),`$thatPane`,c),o=()=>j(t.thisPane,`$thisPane`,c),s=()=>j(s9,`$entryEditorSettings`,c),[c,l]=hn(),u=J(t,`thatPane`,19,()=>un(null)),d=M(()=>n()?.collection),f=M(()=>n()?.collectionFile),p=M(()=>(z(f)??z(d))?._i18n??Cb),m=M(()=>z(p).allLocales),h=M(()=>r()||i()?[...z(m)]:z(m).filter(e=>!(a()?.mode===`edit`&&a().locale===e))),g=M(()=>Object.entries(n()?.validities??{}).some(([e,t])=>z(h).includes(e)&&Object.values(t??{}).some(({valid:e})=>!e))),_=M(()=>n()?.canPreview??!0),v=M(()=>r()||i()||z(m).length>=5),y=M(()=>z(v)?NR:kI),b=M(()=>z(v)?RL:MI),x=M(()=>z(v)?void 0:`tertiary`),S=M(()=>z(v)?void 0:`small`),C=M(()=>o()?.mode===`edit`?o().locale:o()?.mode===`preview`?`preview`:void 0);var w=fxe(),ee=F(w);{let e=M(()=>z(g)&&z(v)?`error`:void 0),r=M(()=>X(`switch_locale`)),i=M(()=>t.id.replace(`-header`,`-body`));Oo(ee,()=>z(y),(c,l)=>{l(c,{get value(){return z(C)},get class(){return z(e)},get"aria-label"(){return z(r)},get"aria-controls"(){return z(i)},children:(e,r)=>{var i=dxe(),c=F(i);mo(c,16,()=>z(h),e=>e,(e,r)=>{let i=M(()=>ob(r)??r),s=M(()=>!n()?.currentLocales[r]),c=M(()=>Object.values(n()?.validities[r]??{}).some(({valid:e})=>!e));var l=H(),d=I(l);{let e=e=>{var t=H(),n=I(t),r=e=>{zF(e,{name:`edit_off`})},i=e=>{zF(e,{name:`error`})};G(n,e=>{z(s)?e(r):z(c)&&e(i,1)}),U(e,t)},n=M(()=>z(i)),l=M(()=>z(s)?X(`locale_content_disabled_short`):z(c)?X(`locale_content_error_short`):``),f=M(()=>o()?.mode===`edit`&&o().locale===r),p=M(()=>z(c)?`error`:``);Oo(d,()=>z(b),(o,s)=>{s(o,{get variant(){return z(x)},get size(){return z(S)},get label(){return z(i)},get value(){return r},get"aria-label"(){return`${z(n)??``} ${z(l)??``}`},get selected(){return z(f)},get class(){return z(p)},"data-mode":`edit`,onSelect:()=>{mn(t.thisPane,{mode:`edit`,locale:r}),a()?.mode===`preview`&&mn(u(),{mode:`preview`,locale:r})},startIcon:e,$$slots:{startIcon:!0}})})}U(e,l)});var l=L(c,2),d=e=>{var n=uxe(),r=I(n),i=e=>{zI(e,{})};G(r,e=>{z(v)&&e(i)});var s=L(r,2);{let e=M(()=>X(`preview`)),n=M(()=>o()?.mode===`preview`);Oo(s,()=>z(b),(r,i)=>{i(r,{get variant(){return z(x)},get size(){return z(S)},get label(){return z(e)},value:`preview`,get selected(){return z(n)},"data-mode":`preview`,onSelect:()=>{mn(t.thisPane,{mode:`preview`,locale:a()?.locale??``})}})})}U(e,n)};G(l,e=>{a()?.mode===`edit`&&z(_)&&s()?.showPreview&&e(d)}),D(i),U(e,i)},$$slots:{default:!0}})})}D(w),U(e,w),k(),l()}var uxe,dxe,fxe,pxe,mxe=s((()=>{Q(),Y(),Z(),B$(),rp(),W4(),l9(),ub(),jb(),WA(),uxe=V(`<!> <!>`,1),dxe=V(`<div role="none" class="inner svelte-1ibgz0y"><!> <!></div>`),fxe=V(`<div role="none" class="wrapper svelte-1ibgz0y"><!></div>`),pxe={hash:`svelte-1ibgz0y`,code:`.wrapper.svelte-1ibgz0y {display:contents;.combobox {
1076
+ @media (width < 1024px) {min-width:128px;--sui-textbox-height: 32px;--sui-button-medium-height: 32px;
1077
+ }&.error [role='combobox'] {border-color:var(--sui-error-border-color);}}}.inner.svelte-1ibgz0y {display:contents;:is(.error, .error button[data-mode='edit']) {color:var(--sui-error-foreground-color) !important;}}`}}));function hxe(e,t){O(t,!0);let n=()=>j(t.thisPane,`$thisPane`,r),[r,i]=hn();{let r=e=>{zF(e,{name:`visibility`})},i=M(()=>X(`preview`)),a=M(()=>n()?.mode===`preview`);tI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get pressed(){return z(a)},onclick:()=>{mn(t.thisPane,{mode:n()?.mode===`preview`?`edit`:`preview`,locale:n()?.locale??``})},startIcon:r,$$slots:{startIcon:!0}})}k(),i()}var gxe=s((()=>{Q(),Y(),Z(),B$()}));function _xe(e,t){O(t,!0),K(e,Dxe);let n=()=>j(z4,`$entryDraft`,c),r=()=>j(t.thisPane,`$thisPane`,c),i=()=>j(zA,`$isSmallScreen`,c),a=()=>j(BA,`$isMediumScreen`,c),o=()=>j($M,`$prefs`,c),s=()=>j(DP,`$backend`,c),[c,l]=hn(),u=J(t,`thatPane`,19,()=>un(null)),d=M(()=>n()?.collection),f=M(()=>n()?.collectionFile),p=M(()=>n()?.originalEntry),m=M(()=>n()?.originalValues??{}),h=M(()=>(z(f)??z(d))?._i18n??Cb),g=M(()=>z(h).i18nEnabled),_=M(()=>z(h).saveAllLocales),v=M(()=>z(h).allLocales),y=M(()=>z(h).defaultLocale),b=M(()=>n()?.currentLocales[r()?.locale??``]),x=M(()=>Object.values(n()?.currentLocales??{}).filter(e=>e).length===1),S=M(()=>z(g)?z(v).filter(e=>e!==r()?.locale):[]),C=M(()=>!!z(S).length),w=M(()=>r()?.locale&&!(0,vxe.default)(z(m)[r().locale],H4(jt(n()?.currentValues[r().locale])??{}))),ee=M(()=>n()?.canPreview??!0),T=M(()=>z(d)&&z(p)&&r()?.locale?KO(z(p),r().locale,z(d),z(f)):void 0);var te=Exe(),ne=F(te);{let e=M(()=>X(`secondary`));$Q(ne,{variant:`secondary`,get"aria-label"(){return z(e)},children:(e,c)=>{var l=Txe(),d=I(l),f=e=>{var n=yxe(),r=I(n);lxe(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return u()}});var o=L(r,2),s=e=>{hxe(e,{get thisPane(){return t.thisPane}})};G(o,e=>{(i()||a())&&z(ee)&&e(s)}),U(e,n)},m=e=>{var t=bxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>r()?.mode===`preview`?X(`preview`):X(`edit`)]),U(e,t)},h=e=>{hxe(e,{get thisPane(){return t.thisPane}})};G(d,e=>{z(g)&&z(v).length>1?e(f):i()||a()?z(ee)&&e(h,2):e(m,1)});var te=L(d,2);UI(te,{flex:!0});var ne=L(te,2),re=e=>{let t=M(()=>ob(r().locale)??r().locale);var i=wxe(),a=I(i),c=e=>{hpe(e,{get locale(){return r().locale},get otherLocales(){return z(S)}})};G(a,e=>{z(C)&&e(c)});var l=L(a,2);{let e=e=>{{let i=M(()=>X(`content_options_x_locale`,{values:{locale:z(t)}}));UL(e,{get"aria-label"(){return z(i)},children:(e,i)=>{var a=Cxe(),c=I(a),l=e=>{j5(e,{get locale(){return r().locale},get otherLocales(){return z(S)}})};G(c,e=>{z(C)&&r()?.locale&&e(l)});var u=L(c,2);{let e=M(()=>X(`revert_changes`)),t=M(()=>!z(w));qL(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9({locale:r()?.locale})}})}var d=L(u,2),f=e=>{var i=xxe(),a=I(i);zI(a,{});var o=L(a,2);{let e=M(()=>X(z(b)?`disable_x_locale`:jt(n()?.currentValues[r().locale])?`reenable_x_locale`:`enable_x_locale`,{values:{locale:z(t)}})),i=M(()=>r().locale===z(y)||z(b)&&z(x));qL(o,{get label(){return z(e)},get disabled(){return z(i)},onclick:()=>{P7(r()?.locale??``)}})}U(e,i)};G(d,e=>{!z(_)&&r()?.locale&&e(f)});var m=L(d,2),h=e=>{var t=Sxe(),n=I(t);zI(n,{});var i=L(n,2),a=e=>{{let t=M(()=>X(`view_on_live_site`));qL(e,{get label(){return z(t)},onclick:()=>{u1(z(T))}})}};G(i,e=>{z(T)&&e(a)});var c=L(i,2),l=e=>{{let t=M(()=>!s()?.repository?.blobBaseURL),n=M(()=>X(`view_on_x`,{values:{service:s()?.repository?.label},default:X(`view_in_repository`)}));qL(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{z(p)&&r()&&u1(qO(z(p),r().locale))}})}};G(c,e=>{o().devModeEnabled&&e(l)}),U(e,t)};G(m,e=>{z(p)&&(z(T)||o().devModeEnabled)&&e(h)}),U(e,a)},$$slots:{default:!0}})}},i=M(()=>X(`show_content_options_x_locale`,{values:{locale:z(t)}}));NI(l,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(i)},popup:e,$$slots:{popup:!0}})}U(e,i)};G(ne,e=>{r()?.mode===`edit`&&e(re)}),U(e,l)},$$slots:{default:!0}})}D(te),R(()=>q(te,`id`,t.id)),U(e,te),k(),l()}var vxe,yxe,bxe,xxe,Sxe,Cxe,wxe,Txe,Exe,Dxe,Oxe=s((()=>{Q(),Y(),Z(),B$(),vxe=u(YM()),rp(),M5(),gpe(),mxe(),gxe(),kP(),W4(),F7(),n9(),JO(),ub(),jb(),WA(),eN(),d1(),yxe=V(`<!> <!>`,1),bxe=V(`<h3 role="none"> </h3>`),xxe=V(`<!> <!>`,1),Sxe=V(`<!> <!> <!>`,1),Cxe=V(`<!> <!> <!> <!>`,1),wxe=V(`<!> <!>`,1),Txe=V(`<!> <!> <!>`,1),Exe=V(`<div role="none" class="header svelte-uj56is"><!></div>`),Dxe={hash:`svelte-uj56is`,code:`.header.svelte-uj56is {flex:none !important;& > .sui.toolbar {margin-inline:auto;max-width:800px;
1078
+
1079
+ @media (width < 768px) {padding:0;
1080
+ }h3 {margin:0 8px;font-size:var(--sui-font-size-default);}}}`}}));function u9(e,t){let n=Ia();K(e,Axe);let r=J(t,`children`,3,void 0);var i=kxe(),a=F(i),o=F(a),s=F(o,!0);D(o),D(a);var c=L(a,2);Eo(F(c),()=>r()??E),D(c),D(i),R(()=>{q(i,`aria-labelledby`,`panel-${n}-label`),q(o,`id`,`panel-${n}-label`),W(s,t.title)}),U(e,i)}var kxe,Axe,d9=s((()=>{Q(),Y(),kxe=V(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),Axe={hash:`svelte-1bq1or9`,code:`section.svelte-1bq1or9 {overflow:hidden;height:100%;display:flex;flex-direction:column;}header.svelte-1bq1or9 {flex:none;display:flex;align-items:center;border-bottom:1px solid var(--sui-secondary-border-color);padding:0 16px;height:var(--sui-primary-toolbar-size);}h3.svelte-1bq1or9 {font-size:var(--sui-font-size-x-large);}div.svelte-1bq1or9 {flex:auto;overflow:auto;h4 {display:flex;align-items:center;padding:12px 12px 8px;font-size:var(--sui-font-size-large);}& > .empty {padding:16px;}.empty {color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.sui.button.ref {display:flex;justify-content:flex-start;gap:8px;padding:8px;width:-moz-available;width:-webkit-fill-available;width:stretch;height:auto;}}`}})),f9,jxe,Mxe,Nxe,Pxe=s((()=>{Sp(),rp(),$P(),Vy(),qb(),ak(),wO(),Mk(),f9=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${gp(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},jxe=(e,t,n)=>{let{collection:r,file:i}=e;if(!Wb(r))return new Set;let a=Ak({locale:n,fieldConfig:e,refEntries:i?A(Iy).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):tk(r)}),o=e.value_field;if(!o||o===`{{slug}}`||o===`slug`)return new Set([t.slug]);let s=t.locales[n]?.content??Object.values(t.locales)[0]?.content??{};if(!o.includes(`{{`)&&!o.includes(`*`)){let e=s[o];return e==null?new Set:new Set([e])}let c=t.slug,l=new Set(a.filter(e=>String(e.value).includes(c)).map(e=>e.value));if(l.size===0){let e=s[o.replace(/^{{|}}$/g,``)];e!=null&&l.add(e)}return l},Mxe=(e,t,n,r,i)=>i?Object.keys(e).filter(e=>i.test(e)).some(t=>f9(e,t,n).some(e=>r.has(e))):f9(e,t,n).some(e=>r.has(e)),Nxe=({collectionName:e,fileName:t,entry:n})=>{let r=Wb(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...QP.relationFields].filter(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t));if(a.length===0)return[];let o=new Map(a.map(({fieldConfig:e})=>[e,jxe(e,n,i)]));return a.flatMap(({fieldConfig:t,context:r})=>{let i=r.collection;if(!i||!(`name`in i))return[];let a=i.name,s=Wb(a);if(!s)return[];let c=s._i18n.defaultLocale,l=o.get(t)??new Set;if(l.size===0)return[];let u=(r.typedKeyPath??``).replace(/<[^>]+>/g,``).replace(/\.\*\./g,`.*.`).replace(/\.\*$/,`.*`),d=t.name,f=u.replace(/\*\./g,``).replace(/\*$/g,``)||d,p=f.includes(`*`)?RegExp(`^${gp(f).replace(/\\\*/g,`\\d+`)}$`):void 0;return(a===e?tk(a).filter(e=>e.slug!==n.slug):tk(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!Mxe(n,f,!!t.multiple,l,p)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:CO(s,e)}}).filter(e=>!!e)})}}));function Fxe(e,t){O(t,!0),K(e,zxe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>{let e=n();return e?.originalEntry?Nxe({collectionName:e.collectionName,fileName:e.fileName,entry:e.originalEntry}):[]}),o=M(()=>{let e=[];return z(a).forEach(t=>{let n=e.find(e=>e.collectionLabel===t.collectionLabel);n?n.items.push(t):e.push({collectionLabel:t.collectionLabel,items:[t]})}),e});{let t=M(()=>X(`entry_sidebar.backlinks.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=H();mo(I(t),17,()=>z(o),({collectionLabel:e,items:t})=>e,(e,t)=>{let n=()=>z(t).collectionLabel,r=()=>z(t).items;var i=Lxe(),a=F(i),o=F(a,!0);D(a),mo(L(a,2),17,r,e=>e.entry.id,(e,t)=>{tI(e,{class:`ref`,variant:`ghost`,onclick:()=>{y1(`/collections/${z(t).collectionName}/entries/${z(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=Ixe(),i=F(r,!0);D(r),R(()=>W(i,z(t).summary)),U(e,r)},$$slots:{default:!0}})}),D(i),R(()=>W(o,n())),U(e,i)}),U(e,t)},s=e=>{var t=Rxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.backlinks.no_entries`)]),U(e,t)};G(r,e=>{z(a).length>0?e(i):e(s,-1)}),U(e,n)},$$slots:{default:!0}})}k(),i()}var Ixe,Lxe,Rxe,zxe,Bxe=s((()=>{Q(),Y(),Z(),B$(),d9(),S1(),W4(),Pxe(),Ixe=V(`<span class="summary"> </span>`),Lxe=V(`<section class="collection svelte-1lhuwki" role="group"><h4> </h4> <!></section>`),Rxe=V(`<div class="empty"> </div>`),zxe={hash:`svelte-1lhuwki`,code:`.collection.svelte-1lhuwki {padding:4px;&:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}}`}})),p9,Vxe,Hxe,Uxe=s((()=>{rp(),kP(),p9=new Map,Vxe=async e=>{let{id:t,locales:n}=e,r=p9.get(t);if(r)return r;let i=A(DP);if(!i?.fetchFileCommits)return{commits:[],loading:!1,error:!1};let a=[...new Set(Object.values(n).map(e=>e.path))];try{let e={commits:await i.fetchFileCommits(a),loading:!1,error:!1};return p9.set(t,e),e}catch{let e={commits:[],loading:!1,error:!0};return p9.set(t,e),e}},Hxe=e=>{p9.delete(e)}}));function Wxe(e,t){O(t,!0),K(e,Qxe);let n=()=>j(z4,`$entryDraft`,i),r=()=>j(DP,`$backend`,i),[i,a]=hn(),o=N(Cr([])),s=N(!1),c=N(!1),l=async()=>{let e=n()?.originalEntry;e&&(P(s,!0),await(async e=>{P(o,e.commits,!0),P(c,e.error,!0)})(await Vxe(e)),P(s,!1))};ic(()=>{l()});{let t=M(()=>X(`entry_sidebar.history.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=Gxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading`)]),U(e,t)},l=e=>{var t=Kxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.history.fetch_failed`)]),U(e,t)},u=e=>{var t=Xxe();mo(t,21,()=>z(o),e=>e.sha,(e,t)=>{let n=M(()=>r()?.repository?.commitBaseURL?`${r().repository.commitBaseURL}/${z(t).sha}`:void 0);{let r=M(()=>!z(n));tI(e,{class:`ref`,variant:`ghost`,role:`link`,get disabled(){return z(r)},onclick:()=>{z(n)&&u1(z(n))},children:(e,n)=>{var r=Yxe(),i=I(r),a=e=>{var n=qxe();R(()=>q(n,`src`,z(t).authorAvatarURL)),U(e,n)},o=e=>{U(e,Jxe())};G(i,e=>{z(t).authorAvatarURL?e(a):e(o,-1)});var s=L(i,2),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u,!0);D(u),D(s),R(e=>{W(l,z(t).authorName),W(d,e)},[()=>rC(z(t).date,Oh.current)]),U(e,r)},$$slots:{default:!0}})}}),D(t),U(e,t)},d=e=>{var t=Zxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.history.no_history`)]),U(e,t)};G(i,e=>{z(s)?e(a):z(c)?e(l,1):z(o).length>0?e(u,2):e(d,-1)}),U(e,n)},$$slots:{default:!0}})}k(),a()}var Gxe,Kxe,qxe,Jxe,Yxe,Xxe,Zxe,Qxe,$xe=s((()=>{Q(),Y(),Z(),B$(),oc(),d9(),kP(),W4(),Uxe(),iC(),d1(),Gxe=V(`<div class="empty"> </div>`),Kxe=V(`<div class="empty"> </div>`),qxe=V(`<img class="avatar svelte-14rpg2i" alt="" width="24" height="24" loading="lazy"/>`),Jxe=V(`<span class="avatar placeholder svelte-14rpg2i" aria-hidden="true"></span>`),Yxe=V(`<!> <span class="details svelte-14rpg2i"><span class="author svelte-14rpg2i"> </span> <span class="date svelte-14rpg2i"> </span></span>`,1),Xxe=V(`<div role="list" class="commits svelte-14rpg2i"></div>`),Zxe=V(`<div class="empty"> </div>`),Qxe={hash:`svelte-14rpg2i`,code:`.commits.svelte-14rpg2i {padding:4px;}.avatar.svelte-14rpg2i {flex:none;width:24px;height:24px;border-radius:50%;background-color:var(--sui-secondary-background-color);}.details.svelte-14rpg2i {display:flex;flex-direction:column;gap:2px;overflow:hidden;font-size:var(--sui-font-size-small);}.author.svelte-14rpg2i {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.date.svelte-14rpg2i {color:var(--sui-tertiary-foreground-color);}`}}));function eSe(e,t){O(t,!0),K(e,oSe);let n=()=>j(z4,`$entryDraft`,r),[r,i]=hn(),a=M(()=>n()??{}),o=M(()=>z(a).validationMessages),s=M(()=>z(a).collectionName),c=M(()=>z(a).fileName),l=M(()=>z(a).currentValues),u=M(()=>z(a).isIndexFile),d=M(()=>z(a).validities),f=M(()=>Object.values(z(d)??{}).some(e=>!!Object.keys(e).length)),p=M(()=>({collectionName:z(s),fileName:z(c),currentValues:z(l),isIndexFile:z(u)})),m=({locale:e,keyPath:t})=>{window.postMessage({type:`highlight-editor-field`,payload:{locale:e,keyPath:t}},window.location.origin)};{let t=M(()=>X(`entry_sidebar.validation.title`));u9(e,{get title(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=H();mo(I(t),17,()=>Object.entries(z(o)),([e,t])=>e,(e,t)=>{var n=M(()=>te(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1],a=M(()=>z(l)?.[r()]),o=M(()=>ob(r()));var s=iSe(),c=F(s),u=e=>{var t=tSe(),n=F(t,!0);D(t),R(()=>W(n,z(o))),U(e,t)};G(c,e=>{z(o)&&e(u)});var f=L(c,2),h=e=>{var t=H();mo(I(t),16,()=>Object.keys(z(a)),e=>e,(e,t)=>{let n=M(()=>uA({...z(p),valueMap:z(a),keyPath:t})),o=M(()=>i()[t]??[]);var s=H(),c=I(s),l=e=>{tI(e,{class:`ref`,variant:`ghost`,onclick:()=>{m({locale:r(),keyPath:t})},children:(e,t)=>{var r=nSe(),i=I(r),a=F(i,!0);D(i),mo(L(i,2),17,()=>z(o),fo,(e,t)=>{N5(e,{live:`off`,children:(e,n)=>{_t();var r=Fa();R(()=>W(r,z(t))),U(e,r)},$$slots:{default:!0}})}),R(()=>W(a,z(n)?.label||z(n)?.name)),U(e,r)},$$slots:{default:!0}})};G(c,e=>{z(o).length&&e(l)}),U(e,s)}),U(e,t)},g=M(()=>Object.values(z(d)[r()]).some(e=>e.valid===!1)),_=e=>{var t=rSe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.validation.no_errors_found`)]),U(e,t)};G(f,e=>{z(g)?e(h):e(_,-1)}),D(s),U(e,s)}),U(e,t)},a=e=>{var t=aSe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`entry_sidebar.validation.placeholder`)]),U(e,t)};G(r,e=>{z(d)&&z(f)?e(i):e(a,-1)}),U(e,n)},$$slots:{default:!0}})}k(),i()}var tSe,nSe,rSe,iSe,aSe,oSe,sSe=s((()=>{Q(),Y(),Z(),B$(),P5(),d9(),W4(),_A(),ub(),tSe=V(`<h4 class="svelte-mwf2jd"> </h4>`),nSe=V(`<span class="summary svelte-mwf2jd"> </span> <!>`,1),rSe=V(`<div class="empty svelte-mwf2jd"> </div>`),iSe=V(`<section class="locale svelte-mwf2jd" role="group"><!> <!></section>`),aSe=V(`<div class="empty"> </div>`),oSe={hash:`svelte-mwf2jd`,code:`.locale.svelte-mwf2jd {padding:4px;&:not(:first-child) {border-top:2px solid var(--sui-secondary-background-color);}h4:where(.svelte-mwf2jd),
1081
+ .empty:where(.svelte-mwf2jd) {margin:0 !important;padding:12px;}.summary:where(.svelte-mwf2jd) {display:block;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);font-weight:var(--sui-heading-font-weight);}.sui.button.ref {flex-direction:column;align-items:flex-start;gap:4px;}}`}}));function cSe(e,t){O(t,!0),K(e,dSe);let n=()=>j(z4,`$entryDraft`,a),r=()=>j(DP,`$backend`,a),i=()=>j(s9,`$entryEditorSettings`,a),[a,o]=hn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...QP.relationFields].some(({fieldConfig:n})=>!(n.collection!==e||t&&n.file&&n.file!==t)):!1}),c=M(()=>[{key:`validation`,label:X(`entry_sidebar.validation.title`),icon:`check_circle`,disabled:!1,panel:eSe},{key:`history`,label:X(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:Wxe},{key:`backlinks`,label:X(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:Fxe}]),l=N(Cr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ti(()=>{s9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=uSe(),f=F(d);{let e=M(()=>X(`entry_sidebar.sidebar_panels`));kI(f,{class:`tabs`,get"aria-label"(){return z(e)},"aria-controls":`entry-sidebar-content`,children:(e,t)=>{var n=H();mo(I(n),17,()=>z(c),({key:e,label:t,icon:n,disabled:r})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).disabled;{let t=M(()=>z(u)?.key===n());MI(e,{iconic:!0,get"aria-label"(){return r()},get selected(){return z(t)},get disabled(){return a()},onclick:()=>{P(l,z(l)===n()?null:n(),!0)},children:(e,t)=>{zF(e,{get name(){return i()}})},$$slots:{default:!0}})}}),U(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=lSe();Oo(F(t),()=>z(u).panel,(e,t)=>{t(e,{})}),D(t),U(e,t)};G(p,e=>{z(u)&&e(m)}),D(d),U(e,d),k(),o()}var lSe,uSe,dSe,fSe=s((()=>{Q(),Y(),Z(),B$(),Bxe(),$xe(),sSe(),kP(),$P(),W4(),l9(),lSe=V(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),uSe=V(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),dSe={hash:`svelte-19e8zut`,code:`.sidebar.svelte-19e8zut {flex:none;display:flex;flex-direction:row-reverse;.tabs {flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;padding:8px 0;width:48px;button {border-radius:4px !important;}}}.content.svelte-19e8zut {flex:none;width:320px;margin-inline-start:8px;border-radius:16px 16px 0 0;background-color:var(--sui-primary-background-color);}`}}));function pSe(e,t){let n=Ia();O(t,!0),K(e,vSe);let r=()=>j(z4,`$entryDraft`,i),[i,a]=hn(),o=J(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Cr([])),u=Cr({}),d=Cr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,tk(z(s)).flatMap(e=>Object.values(e.locales).map(({slug:e})=>e)).filter(t=>!e.has(t)),!0),Object.assign(u,z(c)),Object.assign(d,Object.fromEntries(Object.keys(z(c)).map(e=>[e,!1])))};ti(()=>{o()&&f()});{let t=M(()=>X(`edit_slug`)),i=M(()=>X(`update`)),a=M(()=>(0,mSe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));$I(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{_n(z4,B(r).currentSlugs=u,B(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=_Se(),i=I(r);lo(i,()=>({"--font-size":`var(--sui-font-size-small)`})),VF(i.lastChild,{status:`warning`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`edit_slug_warning`)]),U(e,n)},$$slots:{default:!0}}),D(i);var a=L(i,2);mo(a,20,()=>Object.keys(u),e=>e,(e,t)=>{var r=gSe(),i=F(r),a=e=>{var n=hSe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>ob(t)??t]),U(e,n)},o=M(()=>![`_`,`_default`].includes(t));G(i,e=>{z(o)&&e(a)});var s=L(i,2),c=F(s);{let e=M(()=>d[t]!==!1);lL(c,{dir:`auto`,flex:!0,oninput:()=>{d[t]=u[t].trim()?z(l).includes(u[t])?`duplicate`:!1:`empty`},get invalid(){return z(e)},get"aria-errormessage"(){return`${n}-${t??``}-error`},get value(){return u[t]},set value(e){u[t]=e}})}var f=L(c,2),p=F(f),m=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.empty`)]),U(e,t)};G(p,e=>{d[t]===`empty`&&e(m)});var h=L(p,2),g=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`edit_slug_error.duplicate`)]),U(e,t)};G(h,e=>{d[t]===`duplicate`&&e(g)}),D(f),D(s),D(r),R(()=>q(f,`id`,`${n}-${t??``}-error`)),U(e,r)}),D(a),U(e,r)},$$slots:{default:!0}})}k(),a()}var mSe,hSe,gSe,_Se,vSe,ySe=s((()=>{Q(),Y(),Z(),B$(),mSe=u(YM()),ak(),W4(),ub(),hSe=V(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),gSe=V(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),_Se=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),vSe={hash:`svelte-wdavy7`,code:`p.svelte-wdavy7:not(:empty) {margin-top:0;}.locales.svelte-wdavy7 {display:table;margin:16px 0 0;width:100%;section:where(.svelte-wdavy7) {display:table-row;div:where(.svelte-wdavy7) {display:table-cell;vertical-align:middle;white-space:nowrap;&:last-child {width:90%;}}h3:where(.svelte-wdavy7) {margin-inline-end:8px;font-size:inherit;}p.error:where(.svelte-wdavy7) {margin:0;color:var(--sui-error-foreground-color);font-size:var(--sui-font-size-small);}}}`}})),bSe,m9,xSe=s((()=>{dS(),cS(),rp(),SF(),kP(),B0(),Vy(),qb(),N0(),I4(),i3(),bSe=({ids:e,assetPaths:t})=>{let n=A(Iy),r=new Set(e);if(Iy.set(n.filter(e=>!r.has(e.id))),M0.set({...j0,deleted:!0,count:e.length}),t.length){let e=new Set(t);oF.update(t=>t.filter(t=>!e.has(t.path)))}},m9=async(e,t=[])=>{let n=A(DP)?.repository?.databaseName,r=n?new aS(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=uS(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await e3({cacheDB:r,previousPath:e});i.push({action:a,slug:n,path:e,previousSha:t})})),e})),s=t.map(({path:e,sha:t})=>(i.push({action:a,path:e,previousSha:t}),e)),{changes:c,savingEntries:l}=await F4(A(Mb),{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...c),await z0({changes:i,savingEntries:l,options:{commitType:`delete`,collection:A(Mb)}}),bSe({ids:o,assetPaths:s})}})),h9,SSe=s((()=>{p(),h9=(e,t)=>{if(Array.isArray(e))return{options:e};if(d(e)){let n=e[t],r=e.default;if(Array.isArray(n)){let e=r?n.find(({name:e})=>e===r):void 0;return{options:n,default:e?{field:e.field,pattern:e.pattern}:void 0}}}return{options:[]}}})),g9,CSe,wSe,TSe,ESe=s((()=>{rp(),K$(),qb(),M9(),SSe(),_A(),ZO(),g9=e=>h9(e,`filters`),CSe=(e,t,n)=>{let{name:r,view_filters:i=[],_i18n:{defaultLocale:a}}=t,{options:o}=g9(i),s=n.filter(({field:e,pattern:t})=>e!==void 0&&t!==void 0&&o.some(n=>n.field===e&&String(n.pattern)===String(t))).map(({field:e,pattern:t})=>({field:e,pattern:t,regex:XO(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=gA({...o,resolveRef:!1}),c=gA({...o});return s===void 0||c===void 0?!1:U$(s,n,i)||U$(c,n,i)}))},wSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=g9(e.view_filters);t(n),S9.update(e=>({...e,filters:e.filters??(r?[r]:void 0)}))},TSe=dn([Mb],([e],t)=>{wSe(e,t)})})),DSe,OSe,kSe,ASe,jSe=s((()=>{Z(),rp(),K$(),qb(),M9(),SSe(),_A(),DSe=e=>h9(e,`groups`),OSe=(e,t,n)=>{let{field:r,pattern:i}=n??{field:``,pattern:void 0};if(!r)return e.length?[{name:`*`,entries:e}]:[];let{name:a,_i18n:{defaultLocale:o}}=t,s=A(S9).sort,c=H$(e,i,e=>gA({entry:e,locale:o,collectionName:a,key:r}),X(`other`)).map(([e,t])=>({name:e,entries:t}));return s?.key===r&&s.order===`descending`&&c.reverse(),c},kSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=DSe(e.view_groups);t(n),S9.update(e=>({...e,group:e.group===void 0?r:e.group}))},ASe=dn([Mb],([e],t)=>{kSe(e,t)})})),MSe,_9,NSe,PSe=s((()=>{MSe=u(YM(),1),rp(),K$(),qb(),M9(),_9=un(),NSe=async({repository:e})=>{await G$(e,`contents-view`,_9),S9.subscribe(e=>{let{name:t}=A(Mb)??{},n=A(_9)?.[t??``]??{};t&&!(0,MSe.default)(e,n)&&_9.update(n=>({...n,[t]:e}))})}})),FSe,v9,y9,b9,x9,ISe,LSe,RSe,zSe,BSe,VSe,HSe=s((()=>{Z(),dS(),p(),FSe=u(YM(),1),rp(),E6(),Vy(),qb(),I4(),M9(),PSe(),_A(),v9=[`title`,`name`,`date`,`author`,`description`],y9={slug:String,commit_author:String,commit_date:Date,_summary:String,_manual:String},b9=Object.keys(y9),x9=e=>Array.isArray(e)&&e.every(e=>typeof e==`string`),ISe=e=>{if(x9(e))return{keys:e};if(d(e)){let{fields:t,default:n}=e;return x9(t)?d(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},LSe=e=>e?{keys:[e,...v9.filter(t=>t!==e)],defaultKey:e}:{keys:[...v9]},RSe=({collection:e,isCommitAuthorAvailable:t,isCommitDateAvailable:n})=>{let{name:r,identifier_field:i,sortable_fields:a,summary:o}=e,{keys:s,defaultKey:c,defaultOrder:l}=a?ISe(a):LSe(i);o&&s.unshift(`_summary`);let u=s.includes(`commit_author`),d=s.includes(`commit_date`);t?!s.includes(`author`)&&!u&&s.push(`commit_author`):u&&(s=s.filter(e=>e!==`commit_author`)),n?!s.includes(`date`)&&!d&&s.push(`commit_date`):d&&(s=s.filter(e=>e!==`commit_date`)),s=uS(s).filter(e=>!!e&&(b9.includes(e)||!!uA({collectionName:r,keyPath:e})));let f=w4(e);return f&&(s=s.filter(e=>e!==f),s.includes(`_manual`)||s.unshift(`_manual`),c=`_manual`,l=`ascending`),c=c&&s.includes(c)?c:s[0],l??=c?`ascending`:void 0,{keys:s,default:{key:c,order:l}}},zSe=({key:e,fieldConfig:t})=>{if(e in y9)return y9[e];if(t?.widget===`boolean`)return Boolean;if(t?.widget===`number`){let{value_type:e=`int`}=t;if(e===`int`||e===`float`)return Number}return String},BSe=({collection:e,key:t})=>[...b9,`name`].includes(t)?X(`sort_keys.${t}`):t.includes(`.`)?t.split(`.`).map((t,n,r)=>{if(/^\d+$/.test(t))return;let i=r.slice(0,n+1).join(`.`);return uA({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,VSe=dn([Mb,Iy,w6],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=A(_9)?.[e.name]??{type:`list`},{keys:i,default:a}=RSe({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:BSe({collection:e,key:t})}))),(0,FSe.default)(r,A(S9))||S9.set(r)})})),USe,WSe=s((()=>{USe=e=>{let t=e,n=!0;for(;n;){let e=t;t=t.replaceAll(/([_*`~])([^_*`~]+)\1/g,`$2`),t=t.replaceAll(/([_*`~]{2,})(.+?)\1/g,`$2`),n=t!==e}return t}})),GSe,KSe,qSe,JSe=s((()=>{K$(),nb(),I4(),HSe(),_A(),wO(),mC(),WSe(),GSe=[`title`,`summary`,`description`],KSe=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>CO(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=gA({entry:t,locale:r,collectionName:i,key:e});return n?Number(lC(n,a)??0):0}:t===String?t=>{let n=gA({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?USe(a):a}:t=>{let n=gA({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},qSe=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=w4(t),c=n===`_manual`?s??n:n,l=uA({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:zSe({key:n,fieldConfig:l}),d=l?.widget===`datetime`?l:void 0,f=KSe({key:c,type:u,collection:t,locale:o,collectionName:a,dateFieldConfig:d,isMarkdownField:l?.widget===`richtext`||l?.widget===`markdown`||GSe.includes(n)}),p=Object.fromEntries(i.map(e=>[e.slug,f(e)]));W$(i,e=>p[e.slug],!d&&u===String,r);let m=eb(t)?.name;if(m){let e=i.findIndex(e=>e.slug===m);e>-1&&i.unshift(i.splice(e,1)[0])}return i}})),S9,C9,w9,T9,E9,D9,YSe,O9,k9,A9,j9,M9=s((()=>{rp(),E6(),kP(),Vy(),qb(),ak(),Yy(),ESe(),jSe(),PSe(),JSe(),eN(),S9=un({type:`list`}),C9=un(!1),w9=un([]),T9=un(!1),D9=dn([Iy,Mb],([e,t],n)=>{n(e&&t?tk(t.name):[])}),YSe=5,O9=dn([D9,Mb],([e,t])=>{if(t?._type===`entry`){let n=t.create??!0,r=t.delete??!0,i=!!t.reorder,a=t?.limit??1/0,o=a<1/0?a-e.length:1/0;return{isEntryCollection:!0,canCreate:n,canDelete:r,canReorder:i,quota:a,remaining:o,nearingQuota:o>0&&o<=YSe,creationDisabled:!n||o<=0}}return{isEntryCollection:!1,canCreate:!1,canDelete:!1,canReorder:!1,quota:1/0,remaining:1/0,nearingQuota:!1,creationDisabled:!1}}),k9=void 0,A9=void 0,j9=dn([D9,S9,w6],([e,t],n)=>{if(e===k9&&t===A9)return;k9=e,A9=t;let r=A(Mb),i=[...e];if(!i.length||Ky(r,i[0]).length){n([]);return}t.sort&&(i=qSe(i,r,t.sort)),t.filters&&(i=CSe(i,r,t.filters)),n(OSe(i,r,t.group))}),C9.subscribe(e=>{if(!e){w9.set([]),T9.set(!1),E9&&=(S9.set(E9),void 0);return}let t=A(S9);E9=t;let n={};t.sort?.key!==`_manual`&&(n.sort={key:`_manual`,order:`ascending`}),t.filters?.length&&(n.filters=[]),t.group&&(n.group=null),Object.keys(n).length&&S9.set({...t,...n})}),DP.subscribe(e=>{e&&!A(_9)&&NSe(e)}),D9.subscribe(e=>{$O.set([]),A($M).devModeEnabled&&console.info(`listedEntries`,e)}),Mb.subscribe(e=>{E9=void 0,C9.set(!1),e&&A($M).devModeEnabled&&console.info(`selectedCollection`,e)})})),XSe,N9,P9,F9=s((()=>{rp(),$P(),nb(),W4(),V8(),D8(),C7(),XSe=`{{fields._slug | localize}}`,N9=({collection:e,collectionFile:t,originalSlugs:n})=>{let r=e._type===`entry`,{allLocales:i,defaultLocale:a}=(t??e)._i18n;if(!r)return Object.fromEntries(i.map(e=>[e,!1]));let{identifier_field:o=`title`,slug:s=`{{${o}}}`}=e,c=s.includes(XSe),l=s.includes(`{{fields._slug}}`)||c;return Object.fromEntries(i.map(e=>!l||n._||n[e]?[e,!1]:[e,e===a||c||`readonly`]))},P9=({collection:e,collectionFile:t,originalEntry:n={},dynamicValues:r,extraValues:i,expanderStates:a,isIndexFile:o=tb(e,n)})=>{let s=e.name,c=t?.name,{id:l,slug:u,locales:d}=n,f=l===void 0,{fields:p=[],_i18n:m}=t??e,h=o?eb(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??A(JP)?.editor?.preview??!0,{allLocales:v,initialLocales:y,defaultLocale:b,canonicalSlug:{key:x}}=m,S=f?y:v.filter(e=>!!d?.[e]?.content),C=Object.fromEntries(v.map(e=>[e,S.includes(e)])),w=f?{}:x in(d?.[b]?.content??{})?Object.fromEntries(v.map(e=>[e,d?.[e]?.slug])):{_:d?.[b].slug},ee=Object.fromEntries(S.map(e=>f?[e,S7({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));z4.set({id:f?crypto.randomUUID():l,createdAt:Date.now(),isNew:f,isIndexFile:o,canPreview:_,collectionName:s,collection:e,fileName:c,collectionFile:t,fields:g,originalEntry:f?void 0:n,defaultLocale:b,originalLocales:C,currentLocales:structuredClone(C),originalSlugs:w,currentSlugs:structuredClone(w),originalValues:ee,currentValues:Object.fromEntries(S.map(e=>[e,E8({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(ee[e])})])),files:{},extraValues:i??Object.fromEntries(v.map(e=>[e,{}])),validities:Object.fromEntries(v.map(e=>[e,{}])),validationMessages:Object.fromEntries(v.map(e=>[e,{}])),expanderStates:a??{_:{}},slugEditor:N9({collection:e,collectionFile:t,originalSlugs:w})}),L8({collectionName:s,fileName:c,slug:u})}})),ZSe,QSe=s((()=>{rp(),I4(),W4(),F9(),RF(),_A(),Vge(),_be(),ZSe=()=>{let e=A(z4),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=w4(r);Object.entries(a).forEach(([e,r])=>{delete r[l],u&&delete r[u];let i={collectionName:t,fileName:n,valueMap:r,isIndexFile:s};Object.keys(r).forEach(t=>{let n=uA({...i,keyPath:t});if(n?.widget===`uuid`&&(e===c||[!0,`translate`].includes(n?.i18n??!1))&&(r[t]=X7(n)),n?.widget===`hidden`){if(Array.isArray(n.default)&&t.match(/\.\d+$/)&&(delete r[t],t=t.replace(/\.\d+$/,``),t in r))return;(e===c||[!0,`translate`].includes(n?.i18n??!1))&&Object.assign(r,v7({fieldConfig:n,keyPath:t,locale:e,defaultLocale:c}))}})}),Object.keys(o).forEach(e=>{o[e]={}}),z4.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:N9({collection:r,collectionFile:i,originalSlugs:{}})}),jF.set(!0)}})),$Se,eCe=s((()=>{rp(),W4(),$Se=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=A(z4),r={},i=!0;return Object.entries(t).forEach(([t,a])=>{let o=!!e?.[t]&&!!n[t]&&!a?.trim();o&&(i=!1),r[t]={_slug:{valueMissing:o,valid:!o}}}),{valid:i,validities:r}}})),tCe,nCe=s((()=>{W4(),Xve(),eCe(),tCe=()=>{let{valid:e,validities:t,validationMessages:n}=G7(`currentValues`),{valid:r,validities:i,validationMessages:a}=G7(`extraValues`),{valid:o,validities:s}=$Se();return z4.update(e=>({...e,validities:Object.fromEntries(Object.keys(t).map(e=>[e,{...t[e],...i[e],...s[e]}])),validationMessages:Object.fromEntries(Object.keys(n).map(e=>[e,{...n[e],...a[e]}]))})),e&&r&&o}})),rCe,iCe,aCe,oCe=s((()=>{rp(),kP(),W2(),B0(),N0(),ak(),I4(),W4(),V8(),kF(),i3(),o4(),nCe(),A7(),Uxe(),rCe=({skipCI:e})=>{let t=A(H2)&&!(e??A(U2));M0.set({...j0,saved:!0,published:t,count:1}),OP.set(t)},iCe=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=w4(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=tk(t.name).reduce((e,t)=>{let n=Number(t.locales[a]?.content?.[i]);return Number.isFinite(n)&&n>e?n:e},0)+1;Object.values(r).forEach(e=>{e[i]=o})},aCe=async({skipCI:e=void 0}={})=>{let t=A(z4),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!tCe())throw i_e({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&iCe(t);let c=a4({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await r3({draft:t,slugs:c}),p;try{p=await z0({changes:d,savingEntries:[u],savingAssets:f,options:{commitType:n?`create`:`update`,collection:r,skipCI:e}})}catch(e){throw console.error(e.cause??e),Error(`saving_failed`,{cause:e.cause??e})}return await OF({type:`postSave`,draft:t,savingEntry:u}),rCe({skipCI:e}),N8(i,n?``:l),s&&Hxe(s.id),p.savedEntries[0]}}));function sCe(e,t){O(t,!0),K(e,mCe);let n=()=>j(z4,`$entryDraft`,f),r=()=>j(U4,`$entryDraftModified`,f),i=()=>j($M,`$prefs`,f),a=()=>j(zA,`$isSmallScreen`,f),o=()=>j(O9,`$collectionState`,f),s=()=>j(BA,`$isMediumScreen`,f),c=()=>j(s9,`$entryEditorSettings`,f),l=()=>j(H2,`$skipCIConfigured`,f),u=()=>j(U2,`$skipCIEnabled`,f),d=()=>j(NF,`$copyFromLocaleToast`,f),[f,p]=hn(),m=e=>{let t=M(()=>a()?qL:tI),n=M(()=>!z(ee)&&z(te)?.duplicate!==!1&&!o().creationDisabled&&!z(te)?.path),r=M(()=>z(te)?.delete!==!1);var i=cCe(),s=I(i),c=e=>{var n=H(),r=I(n);{let e=M(()=>X(`duplicate`)),n=M(()=>X(`duplicate_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{y1(`/collections/${z(oe)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),ZSe()}})})}U(e,n)};G(s,e=>{z(n)&&e(c)});var l=L(s,2),u=e=>{var n=H(),r=I(n);{let e=M(()=>X(`delete`)),n=M(()=>X(`delete_entry`));Oo(r,()=>z(t),(t,r)=>{r(t,{variant:`ghost`,get label(){return z(e)},get"aria-label"(){return z(n)},onclick:()=>{P(v,!0)}})})}U(e,n)};G(l,e=>{z(r)&&e(u)}),U(e,i)},h=J(t,`disabled`,3,!1),g=N(!1),_=N(!1),v=N(!1),y=N(!1),b=N(``),x=N(!1),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()?.isNew??!0),ee=M(()=>n()?.isIndexFile??!1),T=M(()=>n()?.collection),te=M(()=>z(T)?._type===`entry`?z(T):void 0),ne=M(()=>n()?.collectionFile),re=M(()=>n()?.originalEntry),ie=M(()=>(z(ne)??z(T))?._i18n??Cb),ae=M(()=>z(ie).defaultLocale),oe=M(()=>z(T)?.name),se=M(()=>z(ne)?.name),ce=M(()=>Oh.current&&z(T)?Gb(z(T)):``),le=M(()=>Oh.current&&z(T)?Gb(z(T),{useSingular:!0}):``),ue=M(()=>n()?.canPreview??!0),de=M(()=>z(w)||r()),fe=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),E=M(()=>z(oe)&&z(re)&&Rp({collectionName:z(oe),fileName:z(se)})?.entryRelative?wF({entry:z(re),collectionName:z(oe),fileName:z(se),relative:!0}):[]),pe=M(()=>z(T)&&z(re)?KO(z(re),z(ae),z(T),z(ne)):void 0),me=()=>{b1(z(oe)===`_singletons`?`/collections`:`/collections/${z(oe)}`)},he=async({skipCI:e=void 0}={})=>{if(P(x,!0),z(T))try{let t=await aCe({skipCI:e});i()?.closeOnSave??!0?(me(),mn(z4,null)):(z(w)&&y1(`/collections/${z(oe)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),P9({collection:z(T),collectionFile:z(ne),originalEntry:t,extraValues:n()?.extraValues,expanderStates:n()?.expanderStates}))}catch(e){e.message===`validation_failed`?P(g,!0):e.message===`saving_failed`?(P(y,!0),P(b,e.cause?.message??e.message??X(`unexpected_error`),!0)):(P(y,!0),P(b,``),console.error(e))}finally{P(x,!1)}};var ge=pCe(),_e=I(ge);{let e=M(()=>X(`primary`));$Q(_e,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=uCe(),o=I(r);{let e=M(()=>X(`cancel_editing`));Q0(o,{get"aria-label"(){return z(e)},get useShortcut(){return i().closeWithEscape},onclick:()=>{me()}})}var d=L(o,2),f=F(d),p=e=>{qF(e,{children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`create_entry_title`,{values:{name:z(le)}})]),U(e,t)},o=e=>{let t=M(()=>z(ne)?Gy(z(ne)):z(T)&&z(re)&&Oh.current?CO(z(T),z(re)):``);var n=H(),r=I(n),i=e=>{var n=Fa();R(()=>W(n,z(t))),U(e,n)},o=e=>{var n=Fa();R(e=>W(n,e),[()=>X(`edit_entry_title`,{values:{collection:z(ce),entry:z(t)}})]),U(e,n)};G(r,e=>{a()?e(i):e(o,-1)}),U(e,n)};G(r,e=>{z(w)?e(i):e(o,-1)}),U(e,n)},$$slots:{default:!0}})};G(f,e=>{z(C)||e(p)}),D(d);var g=L(d,2),v=e=>{{let t=M(()=>X(`view_on_live_site`));tI(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{u1(z(pe))}})}};G(g,e=>{!h()&&z(pe)&&e(v)});var y=L(g,2),b=e=>{m(e)};G(y,e=>{!a()&&!h()&&!z(ne)&&!z(w)&&e(b)});var ie=L(y,2);{let e=e=>{{let t=M(()=>X(`editor_options`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=I9(),i=I(r),o=e=>{m(e)};G(i,e=>{a()&&!h()&&!z(ne)&&!z(w)&&e(o)});var l=L(i,2);{let e=M(()=>X(`edit_slug`)),t=M(()=>!!z(ne)||z(w)||z(ee)||z(te)?.delete===!1);qL(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{P(_,!0)}})}var u=L(l,2);{let e=M(()=>X(`revert_all_changes`)),t=M(()=>!z(de));qL(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9()}})}var d=L(u,2),f=e=>{var t=lCe(),r=I(t);zI(r,{});var i=L(r,2);{let e=M(()=>X(`show_preview`)),t=M(()=>c()?.showPreview),n=M(()=>!z(ue));$L(i,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(n)},onChange:()=>{s9.update((e={})=>({...e,showPreview:!e.showPreview}))}})}var a=L(i,2);{let e=M(()=>X(`sync_scrolling`)),t=M(()=>c()?.syncScrolling),r=M(()=>!z(ue)&&Object.keys(n()?.currentValues??{}).length===1);$L(a,{get label(){return z(e)},get checked(){return z(t)},get disabled(){return z(r)},onChange:()=>{s9.update((e={})=>({...e,syncScrolling:!e.syncScrolling}))}})}U(e,t)};G(d,e=>{a()||s()||e(f)}),U(e,r)},$$slots:{default:!0}})}},t=M(()=>X(`show_editor_options`));Us(NI(ie,{get disabled(){return h()},variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(t)},popup:e,$$slots:{popup:!0}}),e=>P(S,e,!0),()=>z(S))}var ae=L(ie,2),oe=e=>{{let t=e=>{UL(e,{children:(e,t)=>{{let t=M(()=>X(u()?`save_and_publish`:`save_without_publishing`));qL(e,{get label(){return z(t)},onclick:()=>{he({skipCI:!u()})}})}},$$slots:{default:!0}})},n=M(()=>X(u()?z(x)?`saving`:`save`:z(x)?`publishing`:`publish`)),r=M(()=>h()||!z(de)||z(x));II(e,{variant:`primary`,get label(){return z(n)},get disabled(){return z(r)},keyShortcuts:`Accel+S`,onclick:()=>{he()},popup:t,$$slots:{popup:!0}})}},se=e=>{{let t=M(()=>X(z(x)?`saving`:`save`)),n=M(()=>h()||!z(de)||z(x));tI(e,{variant:`primary`,get label(){return z(t)},get disabled(){return z(n)},keyShortcuts:`Accel+S`,onclick:()=>{he()}})}};G(ae,e=>{l()?e(oe):e(se,-1)}),U(e,r)},$$slots:{default:!0}})}var ve=L(_e,2);nz(ve,{get show(){return z(g)},set show(e){P(g,e,!0)},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_validation_errors`,{values:{count:z(fe)}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ye=L(ve,2);nz(ye,{get id(){return d().id},get show(){return d().show},set show(e){_n(NF,B(d).show=e,B(d))},children:(e,t)=>{let n=M(()=>{let{status:e,message:t,count:n,sourceLanguage:r}=d();return{status:e,message:t,count:n,sourceLanguage:r}});VF(e,{get status(){return z(n).status},children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?ob(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=L(ye,2);pSe(be,{get open(){return z(_)},set open(e){P(_,e,!0)}});var xe=L(be,2);{let e=M(()=>X(`delete_entry`)),t=M(()=>X(`delete`));cL(xe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(re)&&await m9([z(re)],z(E)),me()},onClose:()=>{z(S)?.focus()},get open(){return z(v)},set open(e){P(v,e,!0)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(E).length?`confirm_deleting_this_entry_with_assets`:`confirm_deleting_this_entry`)]),U(e,n)},$$slots:{default:!0}})}var Se=L(xe,2);{let e=M(()=>X(`saving_entry.error.title`));sL(Se,{get title(){return z(e)},onClose:()=>{z(S)?.focus()},get open(){return z(y)},set open(e){P(y,e,!0)},children:(e,t)=>{_t();var n=fCe(),r=I(n),i=L(r),a=e=>{var t=dCe(),n=F(t,!0);D(t),R(()=>W(n,z(b))),U(e,t)};G(i,e=>{z(b)&&e(a)}),R(e=>W(r,`${e??``} `),[()=>X(`saving_entry.error.description`)]),U(e,n)},$$slots:{default:!0}})}U(e,ge),k(),p()}var cCe,lCe,I9,uCe,dCe,fCe,pCe,mCe,hCe=s((()=>{Q(),Y(),Z(),B$(),$0(),ySe(),S1(),Hp(),W2(),qb(),xSe(),Yy(),M9(),W4(),F9(),QSe(),oCe(),n9(),RF(),l9(),JO(),TF(),wO(),ub(),jb(),WA(),eN(),d1(),cCe=V(`<!> <!>`,1),lCe=V(`<!> <!> <!>`,1),I9=V(`<!> <!> <!> <!>`,1),uCe=V(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),dCe=V(`<div role="none" class="error svelte-zjrq31"> </div>`),fCe=V(` <!>`,1),pCe=V(`<!> <!> <!> <!> <!> <!>`,1),mCe={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 gCe(e,t){O(t,!0),K(e,DCe);let n=()=>j(z4,`$entryDraft`,f),r=()=>j(s9,`$entryEditorSettings`,f),i=()=>j(O9,`$collectionState`,f),a=()=>j(PF,`$editorFirstPane`,f),o=()=>j(FF,`$editorSecondPane`,f),s=()=>j(zA,`$isSmallScreen`,f),c=()=>j(BA,`$isMediumScreen`,f),l=()=>j(V4,`$entryDraftInteracted`,f),u=()=>j(AF,`$showContentOverlay`,f),d=()=>j(jF,`$showDuplicateToast`,f),[f,p]=hn(),m=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=a();return{locale:e,mode:t}});var n=vCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:ob(z(t).locale)??z(t).locale}}));L$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=_Ce(),r=I(n);_xe(r,{id:`first-pane-header`,get thisPane(){return PF},get thatPane(){return FF}}),rxe(L(r,2),{id:`first-pane-body`,get thisPane(){return PF},get thisPaneContentArea(){return z(x)},set thisPaneContentArea(e){P(x,e,!0)},get thatPaneContentArea(){return z(S)},set thatPaneContentArea(e){P(S,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{a()&&e(r)}),U(e,t)},h=e=>{var t=H(),n=I(t),r=e=>{let t=M(()=>{let{locale:e,mode:t}=o();return{locale:e,mode:t}});var n=bCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:ob(z(t).locale)??z(t).locale}}));L$(r,{class:`pane`,get"aria-label"(){return z(e)},get"data-locale"(){return z(t).locale},get"data-mode"(){return z(t).mode},children:(e,t)=>{var n=yCe(),r=I(n);_xe(r,{id:`second-pane-header`,get thisPane(){return FF},get thatPane(){return PF}}),rxe(L(r,2),{id:`second-pane-body`,get thisPane(){return FF},get thisPaneContentArea(){return z(S)},set thisPaneContentArea(e){P(S,e,!0)},get thatPaneContentArea(){return z(x)},set thatPaneContentArea(e){P(x,e,!0)}}),U(e,n)},$$slots:{default:!0}})}D(n),U(e,n)};G(n,e=>{o()&&e(r)}),U(e,t)},g=J(t,`editorLocale`,3,void 0),_=!1,v=!1,y=N(!0),b=N(void 0),x=N(void 0),S=N(void 0),C=M(()=>n()===void 0),w=M(()=>n()??{}),ee=M(()=>T(z(w).isNew,!0)),ne=M(()=>T(z(w).canPreview,!0)),re=M(()=>z(w).collection),ie=M(()=>z(w).collectionName),ae=M(()=>z(w).collectionFile),oe=M(()=>z(w).fileName),se=M(()=>z(w).isIndexFile),ce=M(()=>z(w).currentValues),le=M(()=>r()??{}),ue=M(()=>z(le).showPreview),de=M(()=>(z(ae)??z(re))?._i18n??Cb),fe=M(()=>z(de).i18nEnabled),E=M(()=>z(de).allLocales),pe=M(()=>z(de).defaultLocale),me=M(()=>z(ae)?.name?[z(re)?.name,z(ae).name].join(`|`):z(re)?.name),he=M(()=>i().canCreate),ge=M(()=>i().quota),_e=M(()=>i().creationDisabled),ve=M(()=>!a()&&!o()?[0,0,0]:!a()||!o()?[a()?100:0,o()?100:0,0]:typeof a().width==`number`&&typeof o().width==`number`&&a().width>=30&&o().width>=30&&a().width+o().width===100?[a().width,o().width,30]:[50,50,30]),ye=M(()=>te(z(ve),3)),be=M(()=>z(ye)[0]),xe=M(()=>z(ye)[1]),Se=M(()=>z(ye)[2]),Ce=async()=>{let[e,t]=r()?.paneStates?.[z(me)??``]??[];return g()&&(e={mode:`edit`,locale:g()},t={mode:`preview`,locale:g()}),_||!e||!t||e.locale&&!z(E).includes(e.locale)||t.locale&&!z(E).includes(t.locale)||(!z(ue)||!z(ne))&&(e.mode===`preview`||t.mode===`preview`)||z(E).length===2&&e.locale!==z(pe)?!1:(_=!0,await Bi(),mn(PF,e),mn(FF,s()||c()?null:t),await Bi(),_=!1,!0)},we=async()=>{if(!(!n()||v)){if(v=!0,await Ce()){v=!1;return}if(mn(PF,{mode:`edit`,locale:a()?.locale??z(pe)}),s()||c())mn(FF,null);else if(!z(ue)||!z(ne)){let e=z(fe)?z(E).filter(e=>e!==a()?.locale):[];mn(FF,e.length?{mode:`edit`,locale:e[0]}:null)}else mn(FF,{mode:`preview`,locale:a().locale});v=!1}},Te=()=>{!z(re)||_||!a()||!o()||!z(me)||s9.update((e={})=>({...e,paneStates:{...e.paneStates,[z(me)]:[a(),o()]}}))},Ee=e=>{e.isTrusted&&!l()&&mn(V4,!0)},De=async()=>{await Bi(),z(b)&&(z(b).tabIndex=0,z(b).focus())},Oe=async e=>{let t=a(),n=o();t?.mode===`edit`&&t.locale===e||n?.mode===`edit`&&n.locale===e||(n?.mode===`preview`?mn(FF,{mode:`edit`,locale:e}):t?.mode===`preview`?mn(PF,{mode:`edit`,locale:e}):mn(n?FF:PF,{mode:`edit`,locale:e}),await Jx(100))},ke=async({locale:e,keyPath:t})=>{await Oe(e);let n=z(ce)?.[e]??{},r=k7({collectionName:z(ie),fileName:z(oe),valueMap:n,keyPath:t,isIndexFile:z(se)});O7(Object.fromEntries(r.map(e=>[e,!0]))),window.requestAnimationFrame(()=>{let n=document.querySelector(`.content-editor .pane[data-mode="edit"][data-locale="${CSS.escape(e)}"] .field[data-key-path="${CSS.escape(t)}"]`);if(n){typeof n.scrollIntoViewIfNeeded==`function`?n.scrollIntoViewIfNeeded():n.scrollIntoView();let e=n.querySelector(`.field-wrapper`);(e?.querySelector(`[contenteditable="true"], [tabindex="0"]`)??e?.querySelector(`input, textarea, button`))?.focus()}})},Ae=e=>{e.source===window&&e.data?.type===`highlight-editor-field`&&e.data.payload&&ke(e.data.payload)};ic(()=>(u()||mn(z4,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),ti(()=>{z(me)&&(mn(PF,null),mn(FF,null))}),ti(()=>{z(re),z(ue),z(ne),s(),c(),B(()=>{we()})}),ti(()=>{a(),o(),Te()}),ti(()=>{z(b)&&(u()?z(y)&&(P(y,!1),we(),De(),z8()):R8())});var je=ECe(),Me=I(je);oo(F(Me),()=>n()?.id,e=>{var t=TCe(),r=I(t);{let e=M(()=>z(ee)&&z(_e));sCe(r,{get disabled(){return z(e)}})}var i=L(r,2),c=e=>{},l=e=>{P$(e,{children:(e,t)=>{var n=xCe(),r=I(n),i=F(r),a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`entry_not_found`)]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},s=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(ge)}})]),U(e,t)};G(i,e=>{z(C)?e(a):z(he)?e(s,-1):e(o,1)}),D(r);var c=L(r,2);tI(F(c),{variant:`primary`,onclick:()=>{y1(`/collection/${z(re)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`back_to_collection`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,n)},$$slots:{default:!0}})},u=e=>{var t=wCe();oo(F(t),()=>`${z(ie)}|${z(oe)}|${z(se)}`,e=>{var t=CCe(),n=I(t),r=F(n),i=e=>{var t=H(),n=I(t),r=e=>{hR(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=te(e,2);_n(PF,B(a).width=t[0],B(a)),_n(FF,B(o).width=t[1],B(o))})(e)},children:(e,t)=>{var n=SCe(),r=I(n);vR(r,{get defaultSize(){return z(be)},get minSize(){return z(Se)},children:(e,t)=>{m(e)},$$slots:{default:!0}});var i=L(r,2);dR(i,{children:(e,t)=>{{let t=M(()=>X(`swap_panes`));tI(e,{class:`swap-button`,iconic:!0,size:`small`,variant:`tertiary`,get"aria-label"(){return z(t)},onclick:()=>{(e=>{var t=te(e,2);mn(PF,t[0]),mn(FF,t[1])})([o(),a()])},children:(e,t)=>{zF(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),vR(L(i,2),{get defaultSize(){return z(xe)},get minSize(){return z(Se)},children:(e,t)=>{h(e)},$$slots:{default:!0}}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(be)&&z(xe)&&e(r)}),U(e,t)},c=e=>{m(e)},l=e=>{h(e)},u=e=>{UI(e,{flex:!0})};G(r,e=>{a()&&o()?e(i):a()?e(c,1):o()?e(l,2):e(u,-1)}),D(n);var d=L(n,2),f=e=>{cSe(e,{})};G(d,e=>{s()||e(f)}),U(e,t)}),D(t),Sa(`pointerdown`,t,Ee),Sa(`keydown`,t,Ee),U(e,t)};G(i,e=>{n()===null?e(c):z(C)||z(ee)&&z(_e)?e(l,1):e(u,-1)}),U(e,t)}),D(Me),Us(Me,e=>P(b,e),()=>z(b));var Ne=L(Me,2);vde(Ne,{}),nz(L(Ne,2),{get show(){return vn(),d()},set show(e){mn(jF,e)},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entry_duplicated`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),R(e=>q(Me,`aria-label`,e),[()=>X(`content_editor`)]),U(e,je),k(),p()}var _Ce,vCe,yCe,bCe,xCe,SCe,CCe,wCe,TCe,ECe,DCe,OCe=s((()=>{Q(),Y(),Z(),B$(),Yx(),oc(),yde(),cxe(),Oxe(),fSe(),hCe(),S1(),M9(),W4(),V8(),RF(),A7(),l9(),ub(),jb(),WA(),_Ce=V(`<!> <!>`,1),vCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),yCe=V(`<!> <!>`,1),bCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),xCe=V(`<div role="none"><!></div> <div role="none"><!></div>`,1),SCe=V(`<!> <!> <!>`,1),CCe=V(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),wCe=V(`<div role="none" class="body svelte-jrunrx"><!></div>`),TCe=V(`<!> <!>`,1),ECe=V(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),DCe={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);}.pane-wrapper.svelte-jrunrx {display:contents;& > .pane {flex:auto;height:100%;overflow:hidden;display:flex;flex-direction:column;}}.body.svelte-jrunrx {flex:auto;display:flex;overflow:hidden;}.content-area.svelte-jrunrx {flex:auto;background-color:var(--sui-primary-background-color);&:not(:only-child) {border-start-end-radius:16px; /* sidebar is present */}.sui.resizable-handle {background-color:var(--sui-secondary-background-color); /* same as toolbar */.swap-button {position:absolute;top:calc(50% - 12px);margin:0;border-radius:50%;opacity:0.5;&:hover,
1082
+ &:focus-visible {opacity:1;}}}}`},Ca([`pointerdown`,`keydown`])}));function kCe(e,t){O(t,!0),K(e,NCe);let n=()=>j(zA,`$isSmallScreen`,a),r=()=>j(BA,`$isMediumScreen`,a),i=()=>j(ek,`$selectedEntryIdSet`,a),[a,o]=hn(),s=J(t,`showCheckbox`,3,!1),c=J(t,`onSelect`,3,void 0);var l=MCe(),u=I(l),d=e=>{CL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.entry.id));YI(e,{role:`none`,tabindex:`-1`,get checked(){return z(n)},onChange:({detail:{checked:e}})=>{c()?.(e)}})}},$$slots:{default:!0}})};G(u,e=>{s()&&!(n()||r())&&e(d)});var f=L(u,2),p=e=>{CL(e,{class:`image`,children:(e,n)=>{var r=H();eo(I(r),()=>CF(t.collection,t.entry),null,(e,n)=>{var r=H(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);_3(e,{get src(){return z(n)},get variant(){return z(r)},cover:!0})}};G(i,e=>{z(n)&&e(a)}),U(e,r)}),U(e,r)},$$slots:{default:!0}})};G(f,e=>{t.collection._thumbnailFieldNames.length&&e(p)}),CL(L(f,2),{class:`title`,children:(e,n)=>{var r=jCe();qF(F(r),{lines:2,children:(e,n)=>{var r=ACe(),i=I(r);oo(i,()=>Oh.current,e=>{var n=H();So(I(n),()=>CO(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>eb(t.collection)?.icon);zF(e,{get name(){return z(n)},class:`home`})}},s=M(()=>tb(t.collection,t.entry));G(a,e=>{z(s)&&e(o)}),U(e,r)},$$slots:{default:!0}}),D(r),U(e,r)},$$slots:{default:!0}}),U(e,l),k(),o()}var ACe,jCe,MCe,NCe,PCe=s((()=>{Q(),Y(),Z(),B$(),v3(),ak(),nb(),TF(),wO(),WA(),ACe=V(`<!> <!>`,1),jCe=V(`<div role="none" class="label svelte-b1f01"><!></div>`),MCe=V(`<!> <!> <!>`,1),NCe={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 {.icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}}`}}));function FCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=e=>{$O.update(n=>{let r=n.indexOf(t.entry);return e&&r===-1&&n.push(t.entry),!e&&r>-1&&n.splice(r,1),n})};{let r=M(()=>n().indexOf(t.entry));EL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{y1(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{kCe(e,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType},showCheckbox:!0,onSelect:a})},$$slots:{default:!0}})}k(),i()}var ICe=s((()=>{Q(),Y(),B$(),PCe(),S1(),ak(),M9()}));function LCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=hn(),a=J(t,`dragging`,3,!1),o=J(t,`dropBefore`,3,!1),s=J(t,`dropAfter`,3,!1),c=J(t,`canMoveUp`,3,!1),l=J(t,`canMoveDown`,3,!1),u=J(t,`onDragStart`,3,void 0),d=J(t,`onDragOver`,3,void 0),f=J(t,`onDrop`,3,void 0),p=J(t,`onDragEnd`,3,void 0),m=J(t,`onMoveUp`,3,void 0),h=J(t,`onMoveDown`,3,void 0);{let r=M(()=>n().indexOf(t.entry)),i=M(()=>[a()&&`drag-source`,o()&&`drop-before`,s()&&`drop-after`].filter(Boolean).join(` `));EL(e,{get"aria-rowindex"(){return z(r)},get class(){return z(i)},draggable:!0,ondragstart:e=>{u()?.(),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`)},ondragover:e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),d()?.(e.clientY,e.currentTarget.getBoundingClientRect())},ondrop:e=>{e.preventDefault(),f()?.()},ondragend:()=>{p()?.()},children:(e,n)=>{var r=zCe(),i=I(r);kCe(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),CL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=RCe(),r=I(n);{let e=e=>{zF(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>X(`move_up`));tI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),m()?.()},startIcon:e,$$slots:{startIcon:!0}})}var i=L(r,2);{let e=e=>{zF(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>X(`move_down`));tI(i,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get"aria-label"(){return z(n)},onclick:e=>{e.stopPropagation(),h()?.()},startIcon:e,$$slots:{startIcon:!0}})}U(e,n)},$$slots:{default:!0}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var RCe,zCe,BCe=s((()=>{Q(),Y(),Z(),B$(),PCe(),M9(),RCe=V(`<!> <!>`,1),zCe=V(`<!> <!>`,1)}));function VCe(e,t){O(t,!0),K(e,UCe);let n=()=>j(j9,`$entryGroups`,r),[r,i]=hn(),a=N(Cr({})),o=N(``),s=N(void 0),c=N(void 0),l=(e=z(a))=>{w9.set(n().flatMap(({name:t,entries:n})=>e[t]??n))},u=(e,t,n)=>{if(t===n)return;let r=[...z(a)[e]??[]],[i]=r.splice(t,1);r.splice(n,0,i),z(a)[e]=r,T9.set(!0),l()};ic(()=>{let e=eb(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,T4(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=HCe();mo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=H();eo(I(l),Jx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());yL(e,{get label(){return z(n)},children:(e,n)=>{let l=M(()=>z(a)[r()]??i());var d=H();mo(I(d),19,()=>z(l),e=>e.id,(e,n,i)=>{{let a=M(()=>z(s)===z(i)&&z(o)===r()),d=M(()=>z(c)===z(i)&&z(o)===r()&&z(s)!==z(i)&&z(s)!==z(i)-1),f=M(()=>z(c)===z(l).length&&z(i)===z(l).length-1&&z(o)===r()&&z(s)!==z(l).length-1),p=M(()=>z(i)>0),m=M(()=>z(i)<z(l).length-1);LCe(e,{get collection(){return t.collection},get entry(){return z(n)},get viewType(){return t.viewType},get dragging(){return z(a)},get dropBefore(){return z(d)},get dropAfter(){return z(f)},get canMoveUp(){return z(p)},get canMoveDown(){return z(m)},onDragStart:()=>{P(o,r(),!0),P(s,z(i),!0)},onDragOver:(e,t)=>{P(o,r(),!0),P(c,e<t.top+t.height/2?z(i):z(i)+1,!0)},onDrop:()=>{z(s)!==void 0&&z(c)!==void 0&&z(c)!==z(s)&&z(c)!==z(s)+1&&u(r(),z(s),z(c)>z(s)?z(c)-1:z(c)),P(s,void 0),P(c,void 0)},onDragEnd:()=>{P(s,void 0),P(c,void 0)},onMoveUp:()=>{z(i)>0&&u(r(),z(i),z(i)-1)},onMoveDown:()=>{z(i)<z(l).length-1&&u(r(),z(i),z(i)+1)}})}}),U(e,d)},$$slots:{default:!0}})}}),U(e,l)}),D(d),U(e,d),k(),i()}var HCe,UCe,WCe=s((()=>{Q(),Y(),B$(),Yx(),oc(),BCe(),nb(),I4(),M9(),HCe=V(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),UCe={hash:`svelte-1txp9gj`,code:`.wrapper.svelte-1txp9gj {.grid-row.drag-source {opacity:0.4;cursor:grabbing;}.grid-row[draggable='true']:not(.drag-source) {cursor:grab;}.grid-row.drop-before .grid-cell {border-top:3px solid var(--sui-primary-accent-color) !important;}.grid-row.drop-after .grid-cell {border-bottom:3px solid var(--sui-primary-accent-color) !important;}}`}}));function GCe(e,t){O(t,!0);let n=()=>j(Iy,`$allEntries`,a),r=()=>j(Mb,`$selectedCollection`,a),i=()=>j(O9,`$collectionState`,a),[a,o]=hn(),s=J(t,`label`,3,void 0),c=J(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?ik(r()):!1),u=M(()=>Oh.current&&r()?eb(r())?.label:``),d=M(()=>z(l)?II:tI),f=(e=!1)=>{y1(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=H(),m=I(p);{let e=e=>{zF(e,{name:`edit`})},t=e=>{var t=H(),n=I(t),r=e=>{UL(e,{children:(e,t)=>{var n=KCe(),r=I(n);{let e=M(()=>X(`entry`));qL(r,{get label(){return z(e)},onclick:()=>f()})}qL(L(r,2),{get label(){return z(u)},onclick:()=>f(!0)}),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(l)&&e(r)}),U(e,t)},n=M(()=>!s()),r=M(()=>X(`create_new_entry`));Oo(m,()=>z(d),(a,o)=>{o(a,{variant:`primary`,get iconic(){return z(n)},get disabled(){return i().creationDisabled},get label(){return s()},get"aria-label"(){return z(r)},get keyShortcuts(){return c()},onclick:()=>f(),startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})})}U(e,p),k(),o()}var KCe,qCe=s((()=>{Q(),Y(),Z(),B$(),S1(),Vy(),qb(),ak(),nb(),M9(),KCe=V(`<!> <!>`,1)}));function JCe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,s),r=()=>j(C9,`$reordering`,s),i=()=>j(S9,`$currentView`,s),a=()=>j(j9,`$entryGroups`,s),o=()=>j(D9,`$listedEntries`,s),[s,c]=hn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>X(`entry_list`));F3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),i=I(n),s=e=>{var t=H(),n=I(t),i=e=>{let t=M(()=>{let{defaultLocale:e}=z(l)._i18n;return{defaultLocale:e}});{let n=M(()=>X(`entries`));z3(e,{get viewType(){return z(u)},id:`entry-list`,get"aria-label"(){return z(n)},get"aria-rowcount"(){return o().length},children:(e,n)=>{var i=H(),o=I(i),s=e=>{VCe(e,{get collection(){return z(l)},get viewType(){return z(u)}})},c=e=>{var n=H();mo(I(n),1,a,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var a=H();eo(I(a),Jx,null,e=>{{let n=M(()=>r()===`*`?void 0:r());yL(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=H();eo(I(n),Jx,null,e=>{FCe(e,{get collection(){return z(l)},get entry(){return t()},get viewType(){return z(u)}})}),U(e,n)},r=M(()=>i().filter(({locales:e})=>!!(e[z(t).defaultLocale]??Object.values(e)[0])?.content));bR(e,{get items(){return z(r)},itemKey:`id`,renderItem:n,$$slots:{renderItem:!0}})}},$$slots:{default:!0}})}}),U(e,a)}),U(e,n)};G(o,e=>{r()?e(s):e(c,-1)}),U(e,i)},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=YCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{P$(e,{children:(e,t)=>{var n=XCe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`create_new_entry`));GCe(a,{get collectionName(){return z(l).name},get label(){return z(e)}})}R(e=>W(i,e),[()=>X(`no_entries_created`)]),U(e,n)},$$slots:{default:!0}})};G(n,e=>{z(d).length?e(i):o().length?e(s,1):e(c,-1)}),U(e,t)},c=e=>{P$(e,{children:(e,t)=>{var n=ZCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`collection_not_found`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(l)?e(s):e(c,-1)}),U(e,n)},$$slots:{default:!0}})}k(),c()}var YCe,XCe,ZCe,QCe=s((()=>{Q(),Y(),Z(),B$(),Yx(),R3(),H3(),ICe(),WCe(),qCe(),qb(),M9(),YCe=V(`<span role="none"> </span>`),XCe=V(`<span role="none"> </span> <!>`,1),ZCe=V(`<span role="none"> </span>`)}));function $Ce(e,t){O(t,!0),K(e,nwe);let n=()=>j(Mb,`$selectedCollection`,r),[r,i]=hn(),a=M(()=>n()?.files.filter(Hy)??[]);{let t=M(()=>X(`file_list`));F3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=H(),i=I(r),o=e=>{{let t=M(()=>X(`files`));z3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{bR(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=H();eo(I(o),Jx,null,e=>{EL(e,{onclick:()=>{y1(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{CL(e,{class:`title`,children:(e,t)=>{var n=ewe(),o=F(n),s=e=>{zF(e,{get name(){return a()}})};G(o,e=>{a()&&e(s)}),qF(L(o,2),{lines:2,children:(e,t)=>{_t();var n=Fa();R(()=>W(n,i()||r())),U(e,n)},$$slots:{default:!0}}),D(n),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})}),U(e,o)},$$slots:{renderItem:!0}})},$$slots:{default:!0}})}},s=e=>{P$(e,{children:(e,t)=>{var n=twe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_files_in_collection`)]),U(e,n)},$$slots:{default:!0}})};G(i,e=>{z(a)?.length?e(o):e(s,-1)}),U(e,r)},$$slots:{default:!0}})}k(),i()}var ewe,twe,nwe,rwe=s((()=>{Q(),Y(),Z(),B$(),Yx(),R3(),H3(),S1(),qb(),Yy(),ewe=V(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),twe=V(`<span role="none"> </span>`),nwe={hash:`svelte-1nfjp1`,code:`.label.svelte-1nfjp1 {display:flex;align-items:center;gap:16px;.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 iwe(e,t){O(t,!0),K(e,owe);let[n,r]=hn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=awe(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);zF(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));RL(u,{get label(){return z(t)},onSelect:()=>{mn(m1,X(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{y1(`/collections/_singletons/entries/${z(i)}`,{transitionType:`forwards`}),P(s,!1),z(c)?.querySelector(`[role="option"]`)?.classList.remove(`focused`)},get selected(){return z(s)},set selected(e){P(s,e,!0)},startIcon:e,$$slots:{startIcon:!0}})}D(l),Us(l,e=>P(c,e),()=>z(c)),U(e,l),k(),r()}var awe,owe,swe=s((()=>{Q(),Y(),Z(),B$(),S1(),awe=V(`<div class="wrapper svelte-w0jevb"><!></div>`),owe={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}}));function cwe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,s),r=()=>j(DP,`$backend`,s),i=()=>j(OP,`$isLastCommitPublished`,s),a=()=>j(H2,`$skipCIConfigured`,s),o=()=>j(zA,`$isSmallScreen`,s),[s,c]=hn(),l=M(()=>n().deployHookURL),u=M(()=>n().deployHookAuthHeader),d=M(()=>r()?.triggerDeployment),f=M(()=>(!!z(l)||typeof z(d)==`function`)&&!i()),p=N(`info`),m=N(!1),h=async()=>{P(p,`info`),P(m,!0);try{if(z(l)&&!Xx(z(l)))throw Error(`Deploy hook URL must use HTTPS or localhost`);let{ok:e,status:t}=z(l)?await fetch(z(l),{method:`POST`,mode:z(u)?`cors`:`no-cors`,headers:z(u)?{Authorization:z(u)}:{}}):await z(d)?.()??{};if(!e&&(z(u)||t!==0))throw Error(`Webhook returned ${t} error`);mn(OP,!0)}catch(e){P(p,`error`),P(m,!0),console.error(e)}};var g=H(),_=I(g),v=e=>{var t=lwe(),n=I(t);{let e=M(()=>o()?`small`:`medium`),t=M(()=>X(`publish_changes`)),r=M(()=>!z(f));tI(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>h()})}nz(L(n,2),{get show(){return z(m)},set show(e){P(m,e,!0)},children:(e,t)=>{VF(e,{get status(){return z(p)},children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(z(p)===`error`?`publishing_changes_failed`:`publishing_changes`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,t)};G(_,e=>{a()&&e(v)}),U(e,g),k(),c()}var lwe,uwe=s((()=>{Q(),Y(),Z(),B$(),kP(),W2(),WA(),eN(),Qx(),lwe=V(`<!> <!>`,1)}));function dwe(e,t){O(t,!0);let n=()=>j(JP,`$cmsConfig`,o),r=()=>j(zA,`$isSmallScreen`,o),i=()=>j(Mb,`$selectedCollection`,o),a=()=>j(Iy,`$allEntries`,o),[o,s]=hn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Oh.current)),u=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),d=M(()=>n()?.singletons??[]);var f=gwe(),p=F(f),m=e=>{var t=fwe(),n=I(t),r=F(n),i=F(r,!0);D(r),cwe(L(r,2),{}),D(n),q3(L(n,2),{onclick:e=>{e.preventDefault(),y1(`/search`)}}),R(e=>W(i,e),[()=>X(`contents`)]),U(e,t)};G(p,e=>{r()&&e(m)});var h=L(p,2);{let e=M(()=>X(`collection_list`));jL(h,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=hwe(),o=I(n),s=e=>{{let t=M(()=>X(`collections`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(u),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Jx,null,e=>{var n=H(),o=I(n),s=e=>{let n=M(()=>{let{name:e,label:n,icon:r}=z(t);return{name:e,label:n,icon:r}});{let o=e=>{{let t=M(()=>z(n).icon||`bookmark_manager`);zF(e,{get name(){return z(t)}})}},s=e=>{var r=H();oo(I(r),a,e=>{let r=M(()=>(`files`in z(t)?z(t).files:tk(z(n).name)).length);var i=pwe(),a=F(i,!0);D(i),R((e,t)=>{q(i,`aria-label`,`(${e??``})`),W(a,t)},[()=>X(`x_entries`,{values:{count:z(r)}}),()=>z(l).format(z(r))]),U(e,i)}),U(e,r)},u=M(()=>z(n).label||z(n).name),d=M(()=>r()||c()?!1:i()?.name===z(n).name);RL(e,{get label(){return z(u)},get selected(){return z(d)},onSelect:()=>{y1(`/collections/${z(n).name}`,{transitionType:`forwards`})},startIcon:o,endIcon:s,$$slots:{startIcon:!0,endIcon:!0}})}},u=e=>{zI(e,{})};G(o,e=>{`divider`in z(t)?z(t).divider&&e(u,1):e(s)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}};G(o,e=>{z(u).length&&e(s)});var f=L(o,2),p=e=>{var t=H(),n=I(t),a=e=>{{let t=M(()=>X(`files`));FL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),(e,t)=>e.name??t,(e,t)=>{var n=H();eo(I(n),Jx,null,e=>{var n=H(),r=I(n),i=e=>{iwe(e,{get file(){return z(t)}})},a=e=>{zI(e,{})};G(r,e=>{`divider`in z(t)?z(t).divider&&e(a,1):e(i)}),U(e,n)}),U(e,n)}),U(e,n)},$$slots:{default:!0}})}},o=e=>{let t=M(()=>z(d).length);{let n=M(()=>X(`collections`));FL(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{zF(e,{name:`bookmark_manager`})},r=e=>{var n=mwe(),r=F(n,!0);D(n),R((e,t)=>{q(n,`aria-label`,`(${e??``})`),W(r,t)},[()=>X(`x_entries`,{values:{count:z(t)}}),()=>z(l).format(z(t))]),U(e,n)},a=M(()=>X(`files`)),o=M(()=>i()?.name===`_singletons`);RL(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{y1(`/collections/_singletons`,{transitionType:`forwards`})},startIcon:n,endIcon:r,$$slots:{startIcon:!0,endIcon:!0}})}},$$slots:{default:!0}})}};G(n,e=>{r()||z(u).length?e(a):e(o,-1)}),U(e,t)};G(f,e=>{z(d).length&&e(p)}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),s()}var fwe,pwe,mwe,hwe,gwe,_we=s((()=>{Q(),Y(),Z(),B$(),Yx(),swe(),uwe(),Z3(),S1(),$P(),Vy(),qb(),ak(),WA(),fwe=V(`<header><h2> </h2> <!></header> <!>`,1),pwe=V(`<span class="count"> </span>`),mwe=V(`<span class="count"> </span>`),hwe=V(`<!> <!>`,1),gwe=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function vwe(e,t){O(t,!0);let n=()=>j(T9,`$reorderDirty`,a),r=()=>j(Mb,`$selectedCollection`,a),i=()=>j(w9,`$reorderedEntries`,a),[a,o]=hn(),s=N(!1),c=N(!1);var l=ywe(),u=I(l);{let e=M(()=>X(`done`)),t=M(()=>X(`done_reordering_entries`)),a=M(()=>z(s)||!n());tI(u,{variant:`primary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(a)},onclick:async()=>{let e=r();P(s,!0);try{await N4(e,i()),mn(C9,!1)}catch(e){console.error(e),P(c,!0)}P(s,!1)}})}var d=L(u,2);{let e=M(()=>X(`cancel`)),t=M(()=>X(`cancel_reordering_entries`));tI(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{mn(C9,!1)}})}nz(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`saving_reorder_failed`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,l),k(),o()}var ywe,bwe=s((()=>{Q(),Y(),Z(),B$(),qb(),I4(),M9(),ywe=V(`<!> <!> <!>`,1)}));function xwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,a),r=()=>j($O,`$selectedEntries`,a),i=()=>j(D9,`$listedEntries`,a),[a,o]=hn(),s=J(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&Rp({collectionName:e})?.entryRelative?r().flatMap(t=>wF({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>X(`delete_entries`,{values:{count:r().length}})),n=M(()=>X(`delete`));cL(e,{get title(){return z(t)},get okLabel(){return z(n)},onOk:()=>{m9(r(),z(c))},get open(){return s()},set open(e){s(e)},children:(e,t)=>{let n=M(()=>r().length>1&&r().length===i().length);_t();var a=Fa();R(e=>W(a,e),[()=>X(z(c).length?z(n)?`confirm_deleting_all_entries_with_assets`:`confirm_deleting_selected_entries_with_assets`:z(n)?`confirm_deleting_all_entries`:`confirm_deleting_selected_entries`,{values:{count:r().length}})]),U(e,a)},$$slots:{default:!0}})}k(),o()}var Swe=s((()=>{Q(),Y(),Z(),B$(),Hp(),qb(),xSe(),ak(),M9(),TF()}));function Cwe(e,t){O(t,!0),K(e,Awe);let n=()=>j(Mb,`$selectedCollection`,c),r=()=>j(O9,`$collectionState`,c),i=()=>j(zA,`$isSmallScreen`,c),a=()=>j(C9,`$reordering`,c),o=()=>j($O,`$selectedEntries`,c),s=()=>j(D9,`$listedEntries`,c),[c,l]=hn(),u=N(!1),d=e=>OE(BE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),f=M(()=>n()?.name??``),p=M(()=>n()?.description),m=M(()=>Oh.current&&n()?Gb(n()):z(f)),h=M(()=>r().isEntryCollection),g=M(()=>r().canCreate),_=M(()=>r().canDelete),v=M(()=>r().canReorder),y=M(()=>r().quota),b=M(()=>r().remaining),x=M(()=>r().nearingQuota),S=M(()=>r().creationDisabled);var C=kwe(),w=I(C),ee=e=>{var t=Owe(),n=I(t);{let e=M(()=>X(`collection`));$Q(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=Ewe(),r=I(n),c=e=>{{let t=M(()=>X(`back_to_collection_list`));Q0(e,{get"aria-label"(){return z(t)},onclick:()=>{b1(`/collections`)}})}};G(r,e=>{i()&&e(c)});var l=L(r,2),g=F(l,!0);D(l);var y=L(l,2),b=e=>{UI(e,{flex:!0})},x=e=>{var t=wwe();qF(F(t),{children:(e,t)=>{var n=H();So(I(n),()=>d(z(p)||``)),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)};G(y,e=>{i()?e(b):e(x,-1)});var C=L(y,2),w=e=>{vwe(e,{})},ee=e=>{var t=Twe(),n=I(t),r=e=>{{let t=M(()=>X(`delete`)),n=M(()=>X(`delete_selected_entries`,{values:{count:o().length}})),r=M(()=>!o().length||!z(_));tI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{P(u,!0)}})}};G(n,e=>{i()||e(r)});var a=L(n,2),c=e=>{{let t=M(()=>X(`reorder`)),n=M(()=>X(`reorder_entries`)),r=M(()=>!s().length);tI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{mn(C9,!0)}})}};G(a,e=>{z(v)&&e(c)}),vI(L(a,2),{children:(e,t)=>{var n=H(),r=I(n),a=e=>{{let t=M(()=>i()?void 0:X(`create`));GCe(e,{get collectionName(){return z(f)},get label(){return z(t)},keyShortcuts:`Accel+E`})}};G(r,e=>{(!i()||s().length&&!z(S))&&e(a)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(C,e=>{z(h)&&a()?e(w):z(h)&&e(ee,1)}),R(()=>W(g,z(m))),U(e,n)},$$slots:{default:!0}})}var r=L(n,2),c=e=>{var t=Dwe(),n=I(t);lo(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),lI(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},a=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(y)}})]),U(e,t)},o=e=>{var t=Fa();R(e=>W(t,e),[()=>X(`creating_entries_nearing_quota`,{values:{quota:z(y),remaining:z(b)}})]),U(e,t)};G(r,e=>{z(g)?z(S)?e(a,1):z(x)&&e(o,2):e(i)}),U(e,n)},$$slots:{default:!0}}),D(n),U(e,t)};G(r,e=>{z(h)&&(z(S)||z(x))&&e(c)}),U(e,t)};G(w,e=>{n()&&e(ee)}),xwe(L(w,2),{get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,C),k(),l()}var wwe,Twe,Ewe,Dwe,Owe,kwe,Awe,jwe=s((()=>{Q(),Y(),Z(),B$(),kE(),lO(),$0(),bwe(),Swe(),qCe(),S1(),qb(),ak(),M9(),WA(),wwe=V(`<div role="none" class="description svelte-83jnuc"><!></div>`),Twe=V(`<!> <!> <!>`,1),Ewe=V(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),Dwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),Owe=V(`<!> <!>`,1),kwe=V(`<!> <!>`,1),Awe={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 Mwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,o),r=()=>j(oF,`$allAssets`,o),i=()=>j(VA,`$isLargeScreen`,o),a=()=>j(S9,`$currentView`,o),[o,s]=hn(),c=M(()=>Rp({collectionName:n()?.name})),l=M(()=>z(c)?r().filter(e=>yF(e,z(c))):[]),u=M(()=>z(c)??{internalPath:void 0,entryRelative:!1,hasTemplateTags:!1}),d=M(()=>z(u).internalPath),f=M(()=>z(u).entryRelative),p=M(()=>z(u).hasTemplateTags),m=M(()=>z(f)||z(p));var h=H(),g=I(h),_=e=>{{let t=M(()=>X(`collection_assets`));L$(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{T3(e,{get disabled(){return z(m)},multiple:!0,onDrop:({files:e})=>{mn(pF,{folder:z(c),files:e})},children:(e,t)=>{Fme(e,{get assets(){return z(l)},onSelect:({asset:e})=>{y1(`/assets/${e.path}`,{transitionType:`forwards`})}})},$$slots:{default:!0}})},$$slots:{default:!0}})}};G(g,e=>{z(d)!==void 0&&i()&&a().showMedia&&e(_)}),U(e,h),k(),s()}var Nwe=s((()=>{Q(),Y(),Z(),B$(),Hme(),M3(),S1(),SF(),Hp(),qb(),M9(),WA()}));function Pwe(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=hn(),a=J(t,`label`,3,``),o=J(t,`disabled`,3,!1),s=J(t,`noneLabel`,3,``),c=J(t,`groups`,19,()=>[]);{let r=e=>{{let r=M(()=>X(`grouping_options`));UL(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=Fwe(),a=I(i);{let e=M(()=>s()||X(`sort_keys.none`)),r=M(()=>!n().group);tR(a,{get label(){return z(e)},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:null}))}})}mo(L(a,2),17,c,e=>`${e.field}|${String(e.pattern)}`,(e,r)=>{let i=M(()=>{let{label:e,field:t,pattern:n}=z(r);return{_label:e,field:t,pattern:n}});{let r=M(()=>n().group?.field===z(i).field&&String(n().group.pattern)===String(z(i).pattern));tR(e,{get label(){return z(i)._label},get checked(){return z(r)},onSelect:()=>{t.currentView.update(e=>({...e,group:{field:z(i).field,pattern:z(i).pattern}}))}})}}),U(e,i)},$$slots:{default:!0}})}},i=M(()=>a()||X(`group`));NI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var Fwe,Iwe=s((()=>{Q(),Y(),Z(),B$(),Fwe=V(`<!> <!>`,1)}));function Lwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,f),r=()=>j(D9,`$listedEntries`,f),i=()=>j(C9,`$reordering`,f),a=()=>j(zA,`$isSmallScreen`,f),o=()=>j(BA,`$isMediumScreen`,f),s=()=>j(j9,`$entryGroups`,f),c=()=>j(VSe,`$sortKeys`,f),l=()=>j(TSe,`$viewFilters`,f),u=()=>j(ASe,`$viewGroups`,f),d=()=>j(S9,`$currentView`,f),[f,p]=hn(),m=M(()=>n()?._type===`entry`?n():void 0),h=M(()=>z(m)?.name),g=M(()=>z(m)?._thumbnailFieldNames??[]),_=M(()=>!!r().length),v=M(()=>r().length>1);var y=H(),b=I(y),x=e=>{{let t=M(()=>X(`entry_list`));$Q(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=zwe(),r=I(n),i=e=>{{let t=M(()=>s().flatMap(({entries:e})=>e));l6(e,{get allItems(){return z(t)},get selectedItems(){return $O}})}};G(r,e=>{a()||o()||e(i)});var f=L(r,2);UI(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(v)||!c().length);m6(p,{get disabled(){return z(e)},get currentView(){return S9},get sortKeys(){return c()},get collectionName(){return z(h)},"aria-controls":`entry-list`})}var m=L(p,2),y=e=>{{let t=M(()=>!z(v));o6(e,{get disabled(){return z(t)},get currentView(){return S9},get filters(){return l()},multiple:!0,"aria-controls":`entry-list`})}};G(m,e=>{l()?.length&&e(y)});var b=L(m,2),x=e=>{{let t=M(()=>!z(v));Pwe(e,{get disabled(){return z(t)},get currentView(){return S9},get groups(){return u()},"aria-controls":`entry-list`})}};G(b,e=>{u()?.length&&e(x)});var S=L(b,2),C=e=>{{let t=M(()=>!z(_));_6(e,{get disabled(){return z(t)},get currentView(){return S9},"aria-controls":`entry-list`})}};G(S,e=>{z(g).length&&e(C)});var w=L(S,2),ee=e=>{var t=Rwe(),n=I(t);zI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{zF(e,{name:`photo_library`})},t=M(()=>!z(_)||!Rp({collectionName:z(h)})),n=M(()=>!!d().showMedia),i=M(()=>X(d().showMedia?`hide_assets`:`show_assets`));tI(r,{variant:`ghost`,iconic:!0,get disabled(){return z(t)},get pressed(){return z(n)},"aria-controls":`collection-assets`,get"aria-expanded"(){return d().showMedia},get"aria-label"(){return z(i)},onclick:()=>{S9.update(e=>({...e,showMedia:!d().showMedia}))},startIcon:e,$$slots:{startIcon:!0}})}U(e,t)};G(w,e=>{a()||o()||e(ee)}),U(e,n)},$$slots:{default:!0}})}};G(b,e=>{z(m)&&!i()&&e(x)}),U(e,y),k(),p()}var Rwe,zwe,Bwe=s((()=>{Q(),Y(),Z(),B$(),c6(),Iwe(),p6(),g6(),x6(),Hp(),qb(),ak(),M9(),ESe(),jSe(),HSe(),WA(),Rwe=V(`<!> <!>`,1),zwe=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function Vwe(e,t){O(t,!0);let n=()=>j(Mb,`$selectedCollection`,s),r=()=>j(AF,`$showContentOverlay`,s),i=()=>j(zA,`$isSmallScreen`,s),a=()=>j(D9,`$listedEntries`,s),o=()=>j(M0,`$contentUpdatesToast`,s),[s,c]=hn(),l=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,u=N(!1),d=N(!1),f=N(void 0),p=M(()=>`files`in(n()??{})?$Ce:JCe),m=()=>{let{path:e,params:t}=h1(),r=e.match(l);if(P(u,!1),P(d,!1),P(f,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&Rb().length&&mn(Mb,void 0),!r?.groups){mn(AF,!1),P(d,d8(e),!0);return}let{_collectionName:o,routeType:s,subPath:c}=r.groups;if(!o){i()?(mn(Mb,void 0),mn(AF,!1),mn(m1,X(`viewing_collection_list`)),P(u,!0)):y1(`/collections/${(n()||zb()||Ub())?.name}`,{replaceState:!0});return}let p=Wb(o);if(!p||p.hide?mn(Mb,void 0):n()?.name!==p.name&&mn(Mb,p),!p||!n()){mn(AF,!1),mn(m1,X(`collection_not_found`));return}let{name:m}=n(),h=Gb(n()),g=`_fileMap`in n()?n()._fileMap:void 0;if(!s){mn(AF,!1),mn(m1,X(`viewing_x_collection`,{values:{collection:h,count:a().length}}));return}if(mn(AF,!0),g){if(s===`entries`&&c){let e=qy(m,c),t=g[c];P9(e?{collection:p,collectionFile:t,originalEntry:e}:{collection:p,collectionFile:t,originalEntry:{slug:t.name,locales:Object.fromEntries(t._i18n.initialLocales.map(e=>[e,{}]))}}),mn(m1,X(`edit_${p._type}_announcement`,{values:{collection:h,file:Gy(t)}}))}}else if(s===`new`&&!c&&(P9({collection:p,dynamicValues:t,isIndexFile:!!window.history.state?.index}),mn(m1,X(`create_entry_announcement`,{values:{collection:h}}))),s===`entries`&&c){let e=a().find(e=>e.subPath===c);e&&Oh.current&&(P9({collection:p,originalEntry:e}),mn(m1,X(`edit_entry_announcement`,{values:{collection:h,entry:CO(n(),e)}})))}};ic(()=>(m(),()=>{mn(AF,!1)}));var h=Hwe();xa(`hashchange`,Ir,e=>{v1(e,m,l)});var g=I(h);{let e=e=>{var t=H(),n=I(t),r=e=>{dwe(e,{get isSearchPage(){return z(d)}})};G(n,e=>{(!i()||z(u))&&e(r)}),U(e,t)},t=e=>{var t=H(),r=I(t),o=e=>{o8(e,{})},s=e=>{{let t=e=>{Cwe(e,{})},r=e=>{var t=H(),r=I(t),i=e=>{Lwe(e,{})};G(r,e=>{n()?._type===`entry`&&a().length&&e(i)}),U(e,t)},i=e=>{var t=H();Oo(I(t),()=>z(p),(e,t)=>{t(e,{})}),U(e,t)},o=e=>{Mwe(e,{})},s=M(()=>X(`x_collection`,{values:{collection:Oh.current&&n()?Gb(n()):``}})),c=M(()=>n()?.description);A6(e,{get"aria-label"(){return z(s)},get"aria-description"(){return z(c)},primaryToolbar:t,secondaryToolbar:r,mainContent:i,secondarySidebar:o,$$slots:{primaryToolbar:!0,secondaryToolbar:!0,mainContent:!0,secondarySidebar:!0}})}};G(r,e=>{z(d)?e(o):(!i()||!z(u))&&e(s,1)}),U(e,t)},r=M(()=>X(`content_library`));P6(g,{uiSettingsKey:`contents-page`,get"aria-label"(){return z(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var _=L(g,2),v=e=>{gCe(e,{get editorLocale(){return z(f)}})};G(_,e=>{r()&&e(v)});var y=L(_,2);nz(y,{get show(){return o().saved},set show(e){_n(M0,B(o).saved=e,B(o))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(o().published?`entry_saved_and_published`:`entry_saved`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),nz(L(y,2),{get show(){return o().deleted},set show(e){_n(M0,B(o).deleted=e,B(o))},children:(e,t)=>{VF(e,{status:`success`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`entries_deleted`,{values:{count:o().count}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,h),k(),c()}var Hwe,Uwe=s((()=>{Q(),Y(),Z(),B$(),oc(),N6(),z6(),OCe(),QCe(),rwe(),_we(),jwe(),Nwe(),Bwe(),l8(),S1(),qb(),N0(),Yy(),M9(),F9(),RF(),wO(),f8(),WA(),Hwe=V(`<!> <!> <!> <!>`,1)}));function Wwe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let t=M(()=>X(`prefs.i18n.translators.default.select_service`));NR(e,{get"aria-label"(){return z(t)},get value(){return n().defaultTranslationService},onChange:e=>{mn($M,{...n(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),17,()=>Object.entries(T5),([e,{serviceLabel:t}])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1].serviceLabel;{let t=M(()=>i()===n().defaultTranslationService);RL(e,{get label(){return a()},get value(){return i()},get selected(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var Gwe=s((()=>{Q(),Y(),Z(),B$(),D5(),eN()}));function Kwe(e,t){O(t,!0);let n=()=>j(E5,`$translator`,o),r=()=>j(AF,`$showContentOverlay`,o),i=()=>j(MF,`$translatorApiKeyDialogState`,o),a=()=>j($M,`$prefs`,o),[o,s]=hn(),c=M(()=>n().serviceId),l=M(()=>n().apiLabel),u=M(()=>n().developerURL),d=M(()=>n().apiKeyURL),f=M(()=>n().apiKeyPattern);ti(()=>{!r()&&i().show&&(_n(MF,B(i).show=!1,B(i)),i().resolve?.())});{let t=M(()=>X(`translate_fields`,{values:{count:i().multiple?2:1}})),n=M(()=>({spellcheck:!1,monospace:!0,"aria-label":X(`api_key`)}));mL(e,{get title(){return z(t)},showOk:!1,get textboxAttrs(){return z(n)},oninput:e=>{let t=e.target.value.trim();z(f)?.test(t)&&(_n($M,B(a).apiKeys??={},B(a)),_n($M,B(a).apiKeys[z(c)]=t,B(a)),_n(MF,B(i).show=!1,B(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){_n(MF,B(i).show=e,B(i))},children:(e,t)=>{var n=qwe(),r=I(n);Wwe(r,{});var i=L(r,2);UI(i,{}),So(L(i,2),()=>OE(X(`prefs.i18n.translators.description`,{values:{service:z(l),homeHref:`href="${z(u)}"`,apiKeyHref:`href="${z(d)}"`}}).replace(/[\u2068\u2069]/g,``),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,n)},$$slots:{default:!0}})}k(),s()}var qwe,Jwe=s((()=>{Q(),Y(),Z(),B$(),kE(),Gwe(),RF(),D5(),eN(),qwe=V(`<!> <!> <!>`,1)}));function Ywe(e,t){O(t,!0);let n=()=>j(Ly,`$entryParseErrors`,r),[r,i]=hn(),a=N(!!n().length);nz(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{VF(e,{status:`error`,children:(e,t)=>{_t();var r=Fa();R(e=>W(r,e),[()=>X(`entry_parse_errors`,{values:{count:n().length}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),k(),i()}var Xwe=s((()=>{Q(),Y(),Z(),B$(),Vy()})),L9,R9,z9=s((()=>{rp(),kP(),Gj(),WA(),L9=dn([VA,HA,FA,DP,Wj],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),R9=un(!1)}));function Zwe(e,t){O(t,!0);let n=()=>j(DP,`$backend`,r),[r,i]=hn(),a,o=N(!1);ti(()=>{let{databaseName:e}=n()?.repository??{};e&&(a=new aS(e,`ui-settings`),(async()=>{let e=await a.get(`onboarding`)??{};e.mobileCta||P(o,!0),await a.set(`onboarding`,{...e,mobileCta:!0})})())});var s=$we(),c=I(s);lo(c,()=>({"--sui-infobar-message-justify-content":`center`})),lI(c.lastChild,{get show(){return z(o)},dismissible:!1,children:(e,t)=>{_t();var n=Qwe(),r=I(n),i=L(r);{let e=M(()=>X(`mobile_promo_button`));tI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1),mn(R9,!0)}})}var a=L(i,2);{let e=M(()=>X(`later`));tI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1)}})}R(e=>W(r,`${e??``} `),[()=>X(`mobile_promo_title`)]),U(e,n)},$$slots:{default:!0}}),D(c),U(e,s),k(),i()}var Qwe,$we,eTe=s((()=>{Q(),Y(),Z(),B$(),cS(),z9(),kP(),Qwe=V(` <!> <!>`,1),$we=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function tTe(e,t){O(t,!0),K(e,rTe);let n=()=>j(Pp,`$allAssetFolders`,l),r=()=>j(zA,`$isSmallScreen`,l),i=()=>j(Ip,`$selectedAssetFolder`,l),a=()=>j(JP,`$cmsConfig`,l),o=()=>j(EP,`$backendName`,l),s=()=>j(p1,`$selectedPageName`,l),c=()=>j(W3,`$searchMode`,l),[l,u]=hn(),d=M(()=>{let e=[{key:`collections`,label:X(`contents`),icon:`article`,link:`/collections`,searchMode:`contents`}];return n().length&&e.push({key:`assets`,label:X(`assets`),icon:`photo`,link:r()?`/assets`:`/assets/${i()?.internalPath??`-/all`}`,searchMode:`assets`}),a()?.publish_mode,o(),r()&&e.push({key:`menu`,label:X(`menu`),icon:`menu`,link:`/menu`,searchMode:void 0}),e});var f=nTe(),p=F(f);{let e=M(()=>X(`switch_page`));kI(p,{get"aria-label"(){return z(e)},"aria-controls":`page-container`,children:(e,t)=>{var n=H();mo(I(n),19,()=>z(d),({key:e,label:t,icon:n,link:r,searchMode:i})=>e,(e,t,n)=>{let r=()=>z(t).key,i=()=>z(t).label,a=()=>z(t).icon,o=()=>z(t).link,l=()=>z(t).searchMode;{let t=e=>{zF(e,{get name(){return a()}})},u=M(()=>s()===r()||c()===l()),d=M(()=>z(n)+1);MI(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{y1(o())},startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),u()}var nTe,rTe,iTe=s((()=>{Q(),Y(),Z(),B$(),S1(),Hp(),kP(),$P(),K3(),WA(),nTe=V(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),rTe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;.sui.select-button-group {gap:4px;
1083
+
1084
+ @media (width < 768px) {justify-content:space-evenly;width:100%;
1085
+ }}.sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}}`}}));function aTe(e,t){O(t,!0);let n=()=>j(f1,`$hasOverlay`,r),[r,i]=hn();Kae(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>X(`global`));$Q(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=oTe();tTe(F(n),{}),D(n),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),k(),i()}var oTe,sTe=s((()=>{Q(),Y(),Z(),B$(),iTe(),S1(),oTe=V(`<div role="none" class="buttons"><!></div>`)}));function cTe(e,t){O(t,!0),K(e,fTe);let n=()=>j(RA,`$isMacOS`,r),[r,i]=hn(),a=J(t,`open`,15,!1),o=J(t,`onClose`,3,void 0),s=[{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 t=M(()=>X(`keyboard_shortcuts`));$I(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,onClose:()=>{o()?.()},get open(){return a()},set open(e){a(e)},children:(e,t)=>{var r=dTe(),i=F(r);{let e=M(()=>X(`keyboard_shortcuts`));Ioe(i,{get"aria-label"(){return z(e)},children:(e,t)=>{var r=H();mo(I(r),17,()=>s,({feature:e,keys:t})=>t,(e,t)=>{let r=()=>z(t).feature,i=()=>z(t).keys;Poe(e,{children:(e,t)=>{var a=uTe(),o=I(a);GR(o,{class:`feature`,children:(e,t)=>{_t();var n=Fa();R(e=>W(n,e),[()=>X(`keyboard_shortcuts_.${r()}`)]),U(e,n)},$$slots:{default:!0}}),GR(L(o,2),{class:`keys`,children:(e,t)=>{var r=H();mo(I(r),16,()=>i().split(`+`),e=>e,(e,t)=>{var r=lTe(),i=F(r,!0);D(r),R(e=>W(i,e),[()=>t.replace(`Accel`,n()?`⌘`:`Ctrl`)]),U(e,r)}),U(e,r)},$$slots:{default:!0}}),U(e,a)},$$slots:{default:!0}})}),U(e,r)},$$slots:{default:!0}})}D(r),U(e,r)},$$slots:{default:!0}})}k(),i()}var lTe,uTe,dTe,fTe,pTe=s((()=>{Q(),Y(),Z(),B$(),WA(),lTe=V(`<kbd class="svelte-13q15u"> </kbd>`),uTe=V(`<!> <!>`,1),dTe=V(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),fTe={hash:`svelte-13q15u`,code:`.wrapper.svelte-13q15u {display:contents;.table-row {display:flex;align-items:center;gap:16px;padding:8px 0;border-top:1px solid var(--sui-secondary-border-color);&:last-child {border-bottom:1px solid var(--sui-secondary-border-color);}.feature {flex:auto;}.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 mTe(e,t){O(t,!0);let n=()=>j(HA,`$hasMouse`,r),[r,i]=hn(),a=N(!1);var o=hTe(),s=I(o),c=e=>{{let t=M(()=>X(`keyboard_shortcuts`));qL(e,{get label(){return z(t)},onclick:()=>{P(a,!0)}})}};G(s,e=>{n()&&e(c)}),cTe(L(s,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(a)},set open(e){P(a,e,!0)}}),U(e,o),k(),i()}var hTe,gTe=s((()=>{Q(),Y(),Z(),B$(),pTe(),WA(),hTe=V(`<!> <!>`,1)}));function B9(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn(),a=J(t,`defaultValue`,3,!0),o=N(!0);ti(()=>{P(o,!!(n()[t.key]??a()),!0)}),ti(()=>{n()[t.key]!==z(o)&&_n($M,B(n)[t.key]=z(o),B(n))}),HR(e,{get label(){return t.label},get checked(){return z(o)},set checked(e){P(o,e,!0)}}),k(),i()}var V9=s((()=>{Q(),Y(),B$(),eN()}));function _Te(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=vTe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a,!0);D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.accessibility.underline_links.switch_label`));B9(c,{key:`underlineLinks`,get label(){return z(e)}})}D(s),D(n),R((e,t)=>{W(i,e),W(o,t)},[()=>X(`prefs.accessibility.underline_links.title`),()=>X(`prefs.accessibility.underline_links.description`)]),U(e,n),k()}var vTe,yTe=s((()=>{Q(),Y(),Z(),V9(),vTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)}));function bTe(e,t){O(t,!0);let n=()=>j(H2,`$skipCIConfigured`,i),r=()=>j($M,`$prefs`,i),[i,a]=hn(),o=J(t,`onChange`,3,void 0);var s=STe(),c=I(s),l=F(c),u=F(l,!0);D(l);var d=L(l,2),f=F(d,!0);D(d);var p=L(d,2),m=F(p);{let e=M(()=>X(`prefs.advanced.beta.switch_label`));B9(m,{key:`beta`,get label(){return z(e)},defaultValue:!1})}D(p),D(c);var h=L(c,2),g=F(h),_=F(g,!0);D(g);var v=L(g,2),y=F(v,!0);D(v);var b=L(v,2),x=F(b);{let e=M(()=>X(`prefs.advanced.developer_mode.switch_label`));B9(x,{key:`devModeEnabled`,get label(){return z(e)},defaultValue:!1})}D(b),D(h);var S=L(h,2),C=e=>{var t=xTe(),n=F(t),i=F(n,!0);D(n);var a=L(n,2),s=F(a,!0);D(a);var c=L(a,2),l=F(c);{let e=M(()=>X(`prefs.advanced.deploy_hook.url.field_label`));lL(l,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookURL?`prefs.advanced.deploy_hook.url.saved`:`prefs.advanced.deploy_hook.url.removed`)})},get value(){return r().deployHookURL},set value(e){_n($M,B(r).deployHookURL=e,B(r))}})}D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.advanced.deploy_hook.auth.field_label`));lL(d,{dir:`ltr`,flex:!0,get"aria-label"(){return z(e)},showInlineLabel:!0,onchange:()=>{o()?.({message:X(r().deployHookAuthHeader?`prefs.advanced.deploy_hook.auth.saved`:`prefs.advanced.deploy_hook.auth.removed`)})},get value(){return r().deployHookAuthHeader},set value(e){_n($M,B(r).deployHookAuthHeader=e,B(r))}})}D(u),D(t),R((e,t)=>{W(i,e),W(s,t)},[()=>X(`prefs.advanced.deploy_hook.title`),()=>X(`prefs.advanced.deploy_hook.description`)]),U(e,t)};G(S,e=>{n()&&e(C)}),R((e,t,n,r)=>{W(u,e),W(f,t),W(_,n),W(y,r)},[()=>X(`prefs.advanced.beta.title`),()=>X(`prefs.advanced.beta.description`),()=>X(`prefs.advanced.developer_mode.title`),()=>X(`prefs.advanced.developer_mode.description`)]),U(e,s),k(),a()}var xTe,STe,CTe=s((()=>{Q(),Y(),Z(),B$(),V9(),W2(),eN(),xTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),STe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)}));function wTe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=TTe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2),l=F(c);{let e=M(()=>X(`prefs.appearance.select_theme`));kI(l,{get"aria-label"(){return z(e)},onChange:e=>{mn($M,{...n(),theme:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),16,()=>[`auto`,`dark`,`light`],e=>e,(e,t)=>{{let r=M(()=>X(`prefs.theme.${t}`)),i=M(()=>!n().theme&&t===`auto`||n().theme===t);MI(e,{variant:`tertiary`,get label(){return z(r)},get value(){return t},get selected(){return z(i)}})}}),U(e,r)},$$slots:{default:!0}})}D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.appearance.theme`)]),U(e,a),k(),i()}var TTe,ETe=s((()=>{Q(),Y(),Z(),B$(),eN(),TTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function DTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=OTe(),r=F(n),i=F(r,!0);D(r);var a=L(r,2),o=F(a);{let e=M(()=>X(`prefs.contents.editor.use_draft_backup.switch_label`));B9(o,{key:`useDraftBackup`,get label(){return z(e)}})}D(a);var s=L(a,2),c=F(s);{let e=M(()=>X(`prefs.contents.editor.close_on_save.switch_label`));B9(c,{key:`closeOnSave`,get label(){return z(e)}})}D(s);var l=L(s,2),u=F(l);{let e=M(()=>X(`prefs.contents.editor.close_with_escape.switch_label`));B9(u,{key:`closeWithEscape`,get label(){return z(e)}})}D(l),D(n),R(e=>W(i,e),[()=>X(`prefs.contents.editor.title`)]),U(e,n),k()}var OTe,kTe=s((()=>{Q(),Y(),Z(),V9(),OTe=V(`<section><h3> </h3> <div role="none"><!></div> <div role="none"><!></div> <div role="none"><!></div></section>`)}));function H9(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn(),a=J(t,`onChange`,3,void 0),o=M(()=>t.service.apiKeyPattern),s=N(``);ic(()=>{P(s,n().apiKeys?.[t.serviceId]??``,!0)}),E$(e,{flex:!0,autocomplete:`off`,spellcheck:`false`,get"aria-label"(){return t.ariaLabel},onchange:()=>{let e=z(s).trim(),r=!!e&&!!z(o)&&!z(o).test(e);_n($M,B(n).apiKeys??={},B(n)),_n($M,B(n).apiKeys[t.serviceId]=r?``:e,B(n)),a()?.({message:X(r?`prefs.changes.api_key_invalid`:e?`prefs.changes.api_key_saved`:`prefs.changes.api_key_removed`),status:r?`error`:`success`})},get value(){return z(s)},set value(e){P(s,e,!0)}}),k(),i()}var ATe=s((()=>{Q(),Y(),Z(),B$(),oc(),eN()}));function jTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0);var r=NTe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);Wwe(F(s),{}),D(s),D(i);var c=L(i,2),l=F(c),u=F(l,!0);D(l);var d=L(l,2);So(d,()=>Wk(X(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),D(d),mo(L(d,2),17,()=>Object.entries(T5),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=MTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.i18n.translators.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(c),R((e,t)=>{W(o,e),W(u,t)},[()=>X(`prefs.i18n.translators.default.title`),()=>X(`prefs.i18n.translators.api_keys.title`)]),U(e,r),k()}var MTe,NTe,PTe=s((()=>{Q(),Y(),Z(),ATe(),Gwe(),D5(),Gk(),MTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),NTe=V(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)}));function FTe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();J(t,`onChange`,3,void 0);var a=ITe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2);oo(F(c),()=>Oh.current,e=>{{let t=M(()=>X(`prefs.language.ui_language.select_language`));NR(e,{get"aria-label"(){return z(t)},get value(){return Oh.current},onChange:e=>{mn($M,{...n(),locale:e.detail.value})},children:(e,t)=>{var n=H();mo(I(n),16,()=>ph,e=>e,(e,t)=>{{let n=M(()=>ob(t,{displayLocale:t})??t),r=M(()=>t===Oh.current);RL(e,{get label(){return z(n)},get value(){return t},get selected(){return z(r)},dir:`auto`})}}),U(e,n)},$$slots:{default:!0}})}}),D(c),D(a),R(e=>W(s,e),[()=>X(`prefs.language.ui_language.title`)]),U(e,a),k(),i()}var ITe,LTe=s((()=>{Q(),Y(),Z(),B$(),ub(),eN(),ITe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function RTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=d7();return Object.entries(u7).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(dw).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=VTe(),o=I(a),s=F(o),c=F(s,!0);D(s);var l=L(s,2);So(l,()=>Wk(z(i).length?X(`prefs.media.cloud_storage.api_keys.description`):X(`prefs.media.cloud_storage.no_services`),`https://sveltiacms.app/en/docs/media`),!0),D(l),mo(L(l,2),17,()=>z(i),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=zTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.cloud_storage.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(o);var u=L(o,2),d=F(u),f=F(d,!0);D(d);var p=L(d,2);So(p,()=>Wk(z(r).length?X(`prefs.media.stock_photos.api_keys.description`):X(`prefs.media.stock_photos.no_services`),`https://sveltiacms.app/en/docs/integrations/stock-photos`),!0),D(p),mo(L(p,2),17,()=>z(r),([e,t])=>e,(e,t)=>{var r=M(()=>te(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=BTe(),c=F(s),l=F(c,!0);D(c);var u=L(c,2),d=F(u);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(o)}}));H9(d,{get serviceId(){return i()},get service(){return a()},get ariaLabel(){return z(e)},get onChange(){return n()}})}D(u),D(s),R(()=>W(l,z(o))),U(e,s)}),D(u),R((e,t)=>{W(c,e),W(f,t)},[()=>X(`prefs.media.cloud_storage.api_keys.title`),()=>X(`prefs.media.stock_photos.api_keys.title`)]),U(e,a),k()}var zTe,BTe,VTe,HTe=s((()=>{Q(),Y(),Z(),ATe(),pw(),vhe(),Gk(),zTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),BTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),VTe=V(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})),U9,UTe=s((()=>{rp(),yTe(),CTe(),ETe(),kTe(),PTe(),LTe(),HTe(),$P(),U9=dn([JP],([e])=>[{key:`appearance`,icon:`palette`,component:wTe},{key:`language`,icon:`language`,component:FTe},{key:`contents`,icon:`library_books`,component:DTe},{key:`i18n`,icon:`translate`,component:jTe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:RTe},{key:`accessibility`,icon:`accessibility_new`,component:_Te},{key:`advanced`,icon:`build`,component:bTe}])}));function WTe(e,t){K(e,KTe);let n=N(``),r=N(`success`),i=N(!1);var a=GTe(),o=I(a);Oo(F(o),()=>t.Panel,(e,t)=>{t(e,{onChange:({message:e,status:t})=>{P(n,e,!0),P(r,t??`success`,!0),P(i,!0)}})}),D(o),nz(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{VF(e,{get status(){return z(r)},children:(e,t)=>{_t();var r=Fa();R(()=>W(r,z(n))),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,a)}var GTe,KTe,qTe=s((()=>{Q(),Y(),B$(),GTe=V(`<div class="container svelte-1attlke" role="none"><!></div> <!>`,1),KTe={hash:`svelte-1attlke`,code:`.container.svelte-1attlke {display:contents;section:not(:first-child) {margin:16px 0 0;}p {margin-top:0;}h3 {font-size:inherit;& ~ div {margin:8px 0 0;}& ~ p {margin:8px 0 0;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}}h4 {margin-bottom:4px;font-size:var(--sui-font-size-small);}}`}}));function JTe(e,t){O(t,!0),K(e,XTe);let n=J(t,`open`,15,!1),r=J(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>X(`settings`));$I(e,{get title(){return z(t)},size:`large`,showOk:!1,showCancel:!1,showClose:!0,onClose:()=>{r()?.()},get open(){return n()},set open(e){n(e)},children:(e,t)=>{var n=YTe(),r=F(n);{let e=M(()=>X(`categories`));Roe(r,{orientation:`vertical`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=H();mo(I(n),17,()=>A(U9),({key:e,icon:t,enabled:n=!0})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon,a=ar(()=>T(z(t).enabled,!0));var o=H(),s=I(o),c=e=>{{let t=e=>{zF(e,{get name(){return r()}})},a=M(()=>X(`prefs.${n()}.title`)),o=M(()=>n()===z(i));Hoe(e,{get label(){return z(a)},get selected(){return z(o)},get"aria-controls"(){return`prefs-tab-${n()??``}`},onSelect:()=>{P(i,n(),!0)},startIcon:t,$$slots:{startIcon:!0}})}};G(s,e=>{z(a)&&e(c)}),U(e,o)}),U(e,n)},$$slots:{default:!0}})}mo(L(r,2),17,()=>A(U9),({key:e,component:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).component;Boe(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{WTe(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),D(n),U(e,n)},$$slots:{default:!0}})}k()}var YTe,XTe,ZTe=s((()=>{Q(),Y(),Z(),B$(),rp(),UTe(),qTe(),YTe=V(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),XTe={hash:`svelte-pwxwga`,code:`.wrapper.svelte-pwxwga {display:flex;.sui.tab-list {flex:none;}.sui.tab-panel {flex:auto;border-width:0;}}`}}));function QTe(e,t){O(t,!0);let n=()=>j(EP,`$backendName`,c),r=()=>j(Wj,`$user`,c),i=()=>j($M,`$prefs`,c),a=()=>j(DP,`$backend`,c),o=()=>j(zA,`$isSmallScreen`,c),s=()=>j(L9,`$canShowMobileSignInDialog`,c),[c,l]=hn(),u=N(!1),d=M(()=>n()===`local`),f=M(()=>n()===`test-repo`);var p=tEe(),m=I(p);{let e=M(()=>X(`account`));UL(m,{get"aria-label"(){return z(e)},children:(e,n)=>{var c=eEe(),l=I(c);{let e=M(()=>z(d)?X(`working_with_local_repo`):z(f)?X(`working_with_test_repo`):X(`signed_in_as_x`,{values:{name:r()?.login}})),t=M(()=>z(d)||z(f));qL(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{u1(r()?.profileURL)}})}var p=L(l,2);zI(p,{});var m=L(p,2);{let e=M(()=>X(`live_site`));qL(m,{get label(){return z(e)},onclick:()=>{x1()}})}var h=L(m,2),g=e=>{var t=$Te(),n=I(t);{let e=M(()=>X(`git_repository`)),t=M(()=>!a()?.repository?.treeBaseURL);qL(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{u1(a()?.repository?.treeBaseURL)}})}var r=L(n,2);{let e=M(()=>X(`cms_config`));qL(r,{get label(){return z(e)},onclick:()=>{y1(`/config`,{transitionType:`forwards`})}})}U(e,t)};G(h,e=>{i().devModeEnabled&&e(g)});var _=L(h,2);zI(_,{});var v=L(_,2);{let e=M(()=>X(`settings`));qL(v,{get label(){return z(e)},onclick:()=>{o()?y1(`/settings`,{transitionType:`forwards`}):P(u,!0)}})}var y=L(v,2),b=e=>{mTe(e,{get menuButton(){return t.menuButton}})};G(y,e=>{i().devModeEnabled||e(b)});var x=L(y,2),S=e=>{{let t=M(()=>X(`sign_in_with_mobile`));qL(e,{get label(){return z(t)},onclick:()=>{mn(R9,!0)}})}};G(x,e=>{s()&&e(S)});var C=L(x,2);zI(C,{});var w=L(C,2);{let e=M(()=>X(`sign_out`));qL(w,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{F1()})}})}U(e,c)},$$slots:{default:!0}})}JTe(L(m,2),{onClose:()=>{t.menuButton?.focus()},get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,p),k(),l()}var $Te,eEe,tEe,nEe=s((()=>{Q(),Y(),Z(),B$(),gTe(),ZTe(),S1(),z9(),kP(),Gj(),I1(),WA(),eN(),d1(),$Te=V(`<!> <!>`,1),eEe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),tEe=V(`<!> <!>`,1)}));function rEe(e,t){O(t,!0),K(e,oEe);let n=()=>j(EP,`$backendName`,i),r=()=>j(Wj,`$user`,i),[i,a]=hn(),o=N(void 0),s=M(()=>n()===`local`),c=M(()=>!!r()?.avatarURL);var l=aEe(),u=F(l);{let e=e=>{var t=H(),n=I(t),i=e=>{zF(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=iEe();R(()=>q(t,`src`,r()?.avatarURL)),U(e,t)},o=e=>{zF(e,{name:`account_circle`})};G(n,e=>{z(s)?e(i):z(c)?e(a,1):e(o,-1)}),U(e,t)},t=e=>{QTe(e,{get menuButton(){return z(o)}})},n=M(()=>!z(s)),i=M(()=>z(s)?X(`local_workflow.indicator`):void 0),a=M(()=>z(c)?`avatar`:``),l=M(()=>X(`show_account_menu`));Us(NI(u,{variant:`ghost`,get iconic(){return z(n)},get label(){return z(i)},get class(){return z(a)},popupPosition:`bottom-right`,get"aria-label"(){return z(l)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(o,e,!0),()=>z(o))}D(l),U(e,l),k(),a()}var iEe,aEe,oEe,sEe=s((()=>{Q(),Y(),Z(),B$(),nEe(),kP(),Gj(),iEe=V(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),aEe=V(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),oEe={hash:`svelte-q0ng4j`,code:`.wrapper.svelte-q0ng4j {display:contents;button.avatar {border-width:0;background-color:transparent;}}.avatar.svelte-q0ng4j {width:32px;height:32px;border-radius:32px;object-fit:cover;}`}}));function cEe(e,t){O(t,!0);let[n,r]=hn(),i=M(()=>Rb({visible:!0,type:`entry`}));{let t=e=>{zF(e,{name:`add`})},n=e=>{{let t=M(()=>X(`create_entry_or_assets`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=uEe(),r=I(n),a=e=>{var t=lEe(),n=I(t);mo(n,17,()=>z(i),e=>e.name,(e,t)=>{let n=M(()=>{let{name:e,label:n,label_singular:r,create:i=!0,limit:a=1/0}=z(t);return{name:e,label:n,labelSingular:r,create:i,limit:a}});{let t=M(()=>z(n).labelSingular||z(n).label||z(n).name),r=M(()=>!z(n).create||tk(z(n).name).length>=z(n).limit);qL(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{y1(`/collections/${z(n).name}/new`,{transitionType:`forwards`})}})}}),zI(L(n,2),{}),U(e,t)};G(r,e=>{z(i).length&&e(a)});var o=L(r,2);{let e=M(()=>X(`assets`));qL(o,{get label(){return z(e)},onclick:async()=>{y1(`/assets`,{transitionType:`forwards`}),await Jx(100),mn(n1,!0)}})}U(e,n)},$$slots:{default:!0}})}},r=M(()=>X(`create_entry_or_assets`));NI(e,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:t,popup:n,$$slots:{endIcon:!0,popup:!0}})}k(),r()}var lEe,uEe,dEe=s((()=>{Q(),Y(),Z(),B$(),Yx(),S1(),l1(),qb(),ak(),lEe=V(`<!> <!>`,1),uEe=V(`<!> <!>`,1)}));function fEe(e,t){O(t,!0),K(e,mEe);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let t=e=>{var t=H(),r=I(t),i=e=>{var t=pEe(),n=F(t);D(t),R(e=>{q(t,`aria-label`,`(${e??``})`),W(n,`v${kw??``}`)},[()=>X(`version_x`,{values:{version:kw}})]),U(e,t)};G(r,e=>{n().devModeEnabled&&e(i)}),U(e,t)},r=M(()=>X(`release_notes`));qL(e,{get label(){return z(r)},onclick:()=>{u1(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}k(),i()}var pEe,mEe,hEe=s((()=>{Q(),Y(),Z(),B$(),Aw(),eN(),d1(),pEe=V(`<span class="version svelte-wmw2gz"> </span>`),mEe={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 gEe(e,t){O(t,!0);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let r=M(()=>X(`help`));UL(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=vEe(),a=I(i);mTe(a,{get menuButton(){return t.menuButton}});var o=L(a,2),s=e=>{var t=_Ee(),n=I(t);W9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);fEe(r,{});var i=L(r,2);W9(i,()=>`announcements`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/announcements`);var a=L(i,2);zI(a,{});var o=L(a,2);W9(o,()=>`report_issue`,()=>`https://github.com/sveltia/sveltia-cms/issues`);var s=L(o,2);W9(s,()=>`share_feedback`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/ideas`);var c=L(s,2);W9(c,()=>`get_help`,()=>`https://github.com/sveltia/sveltia-cms/discussions/categories/q-a`);var l=L(c,2);W9(l,()=>`donate`,()=>`https://github.com/sponsors/kyoshino`);var u=L(l,2);zI(u,{});var d=L(u,2);W9(d,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`),W9(L(d,2),()=>`join_discord`,()=>`https://discord.com/invite/5hwCGqup5b`),U(e,t)};G(o,e=>{n().devModeEnabled&&e(s)}),U(e,i)},$$slots:{default:!0}})}k(),i()}var W9,_Ee,vEe,yEe=s((()=>{Q(),Y(),Z(),B$(),hEe(),gTe(),eN(),d1(),W9=(e,t=E,n=E)=>{{let r=M(()=>X(t()));qL(e,{get label(){return z(r)},onclick:()=>{u1(n())}})}},_Ee=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),vEe=V(`<!> <!>`,1)}));function bEe(e,t){O(t,!0),K(e,SEe);let n=N(void 0),r=N(!1);var i=xEe(),a=I(i),o=F(a);{let e=e=>{zF(e,{name:`help`})},t=e=>{gEe(e,{get menuButton(){return z(n)}})},r=M(()=>X(`show_help_menu`));Us(NI(o,{variant:`ghost`,iconic:!0,popupPosition:`bottom-right`,get"aria-label"(){return z(r)},endIcon:e,popup:t,$$slots:{endIcon:!0,popup:!0}}),e=>P(n,e,!0),()=>z(n))}D(a),cTe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),U(e,i),k()}var xEe,SEe,CEe=s((()=>{Q(),Y(),Z(),B$(),yEe(),pTe(),xEe=V(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),SEe={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}}));function wEe(e,t){O(t,!0);{let t=e=>{zF(e,{name:`notifications`})},n=M(()=>X(`show_notifications`));tI(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}k()}var TEe=s((()=>{Q(),Y(),Z(),B$()}));function EEe(e,t){O(t,!0),K(e,OEe);let n=()=>j(Z1,`$appLogoURL`,i),r=()=>j(JP,`$cmsConfig`,i),[i,a]=hn();var o=H(),s=I(o),c=e=>{{let t=M(()=>X(`visit_live_site`));tI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{x1()},children:(e,t)=>{var r=DEe();R(()=>q(r,`src`,n())),U(e,r)},$$slots:{default:!0}})}};G(s,e=>{n()!==Y1&&(r()?.logo?.show_in_header??!0)&&e(c)}),U(e,o),k(),a()}var DEe,OEe,kEe=s((()=>{Q(),Y(),Z(),B$(),$1(),S1(),$P(),DEe=V(`<img alt="" class="logo svelte-15c9hhi"/>`),OEe={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}}));function AEe(e,t){O(t,!0),K(e,NEe);let n=()=>j(f1,`$hasOverlay`,i),r=()=>j($M,`$prefs`,i),[i,a]=hn();var o=MEe(),s=F(o);{let e=M(()=>X(`global`));$Q(s,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=jEe(),i=I(n),a=F(i);EEe(a,{}),tTe(L(a,2),{}),D(i);var o=L(i,2);q3(o,{});var s=L(o,2),c=F(s);cwe(c,{});var l=L(c,2);cEe(l,{});var u=L(l,2);wEe(u,{});var d=L(u,2),f=e=>{bEe(e,{})};G(d,e=>{r().devModeEnabled&&e(f)}),rEe(L(d,2),{}),D(s),U(e,n)},$$slots:{default:!0}})}D(o),R(()=>o.inert=n()),U(e,o),k(),a()}var jEe,MEe,NEe,PEe=s((()=>{Q(),Y(),Z(),B$(),sEe(),dEe(),CEe(),TEe(),iTe(),uwe(),Z3(),kEe(),S1(),eN(),jEe=V(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),MEe=V(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),NEe={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;&[inert] {.sui.search-bar {
1086
+ /* Disable the keyboard shortcut for the search bar */display:none !important;}}& > .sui.toolbar {
1087
+ @media (width < 768px) {padding:0 4px;
1088
+ }.buttons {flex:auto;display:flex;align-items:center;width:50%;&:last-child {justify-content:flex-end;}}.sui.search-bar {flex:none;width:640px;max-width:50%;
1089
+
1090
+ @media (width < 768px) {flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;max-width:none;
1091
+ }}}}`}}));function FEe(e,t){O(t,!0),K(e,zEe);let n=()=>j($M,`$prefs`,r),[r,i]=hn();{let t=e=>{A6(e,{primaryToolbar:e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=IEe(),r=I(n),i=F(r,!0);D(r),UI(L(r,2),{flex:!0}),R(e=>W(i,e),[()=>X(`menu`)]),U(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=REe(),r=F(t),i=F(r),a=F(i,!0);D(i),QTe(L(i,2),{}),D(r);var o=L(r,2),s=e=>{var t=LEe(),n=F(t),r=F(n,!0);D(n),gEe(L(n,2),{}),D(t),R(e=>W(r,e),[()=>X(`help`)]),U(e,t)};G(o,e=>{n().devModeEnabled&&e(s)}),D(t),R(e=>W(a,e),[()=>X(`account`)]),U(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},r=M(()=>X(`menu`));P6(e,{get"aria-label"(){return z(r)},main:t,$$slots:{main:!0}})}k(),i()}var IEe,LEe,REe,zEe,BEe=s((()=>{Q(),Y(),Z(),B$(),N6(),z6(),nEe(),yEe(),eN(),IEe=V(`<h2 role="none"> </h2> <!>`,1),LEe=V(`<section><h3 class="svelte-16cq5v7"> </h3> <!></section>`),REe=V(`<div role="none" class="wrapper svelte-16cq5v7"><section><h3 class="svelte-16cq5v7"> </h3> <!></section> <!></div>`),zEe={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);}`}})),VEe=c(((e,t)=>{t.exports=function(){return typeof Promise==`function`&&Promise.prototype&&Promise.prototype.then}})),G9=c((e=>{var t,n=[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];e.getSymbolSize=function(e){if(!e)throw Error(`"version" cannot be null or undefined`);if(e<1||e>40)throw Error(`"version" should be in range from 1 to 40`);return e*4+17},e.getSymbolTotalCodewords=function(e){return n[e]},e.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},e.setToSJISFunction=function(e){if(typeof e!=`function`)throw Error(`"toSJISFunc" is not a valid function.`);t=e},e.isKanjiModeEnabled=function(){return t!==void 0},e.toSJIS=function(e){return t(e)}})),K9=c((e=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`l`:case`low`:return e.L;case`m`:case`medium`:return e.M;case`q`:case`quartile`:return e.Q;case`h`:case`high`:return e.H;default:throw Error(`Unknown EC Level: `+t)}}e.isValid=function(e){return e&&e.bit!==void 0&&e.bit>=0&&e.bit<4},e.from=function(n,r){if(e.isValid(n))return n;try{return t(n)}catch{return r}}})),HEe=c(((e,t)=>{function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){let t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(let n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},t.exports=n})),UEe=c(((e,t)=>{function n(e){if(!e||e<1)throw 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)}n.prototype.set=function(e,t,n,r){let i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},n.prototype.get=function(e,t){return this.data[e*this.size+t]},n.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},n.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},t.exports=n})),WEe=c((e=>{var t=G9().getSymbolSize;e.getRowColCoords=function(e){if(e===1)return[];let n=Math.floor(e/7)+2,r=t(e),i=r===145?26:Math.ceil((r-13)/(2*n-2))*2,a=[r-7];for(let e=1;e<n-1;e++)a[e]=a[e-1]-i;return a.push(6),a.reverse()},e.getPositions=function(t){let n=[],r=e.getRowColCoords(t),i=r.length;for(let e=0;e<i;e++)for(let t=0;t<i;t++)e===0&&t===0||e===0&&t===i-1||e===i-1&&t===0||n.push([r[e],r[t]]);return n}})),GEe=c((e=>{var t=G9().getSymbolSize,n=7;e.getPositions=function(e){let r=t(e);return[[0,0],[r-n,0],[0,r-n]]}})),KEe=c((e=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(e){return e!=null&&e!==``&&!isNaN(e)&&e>=0&&e<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(e){let n=e.size,r=0,i=0,a=0,o=null,s=null;for(let c=0;c<n;c++){i=a=0,o=s=null;for(let l=0;l<n;l++){let n=e.get(c,l);n===o?i++:(i>=5&&(r+=t.N1+(i-5)),o=n,i=1),n=e.get(l,c),n===s?a++:(a>=5&&(r+=t.N1+(a-5)),s=n,a=1)}i>=5&&(r+=t.N1+(i-5)),a>=5&&(r+=t.N1+(a-5))}return r},e.getPenaltyN2=function(e){let n=e.size,r=0;for(let t=0;t<n-1;t++)for(let i=0;i<n-1;i++){let n=e.get(t,i)+e.get(t,i+1)+e.get(t+1,i)+e.get(t+1,i+1);(n===4||n===0)&&r++}return r*t.N2},e.getPenaltyN3=function(e){let n=e.size,r=0,i=0,a=0;for(let t=0;t<n;t++){i=a=0;for(let o=0;o<n;o++)i=i<<1&2047|e.get(t,o),o>=10&&(i===1488||i===93)&&r++,a=a<<1&2047|e.get(o,t),o>=10&&(a===1488||a===93)&&r++}return r*t.N3},e.getPenaltyN4=function(e){let n=0,r=e.data.length;for(let t=0;t<r;t++)n+=e.data[t];return Math.abs(Math.ceil(n*100/r/5)-10)*t.N4};function n(t,n,r){switch(t){case e.Patterns.PATTERN000:return(n+r)%2==0;case e.Patterns.PATTERN001:return n%2==0;case e.Patterns.PATTERN010:return r%3==0;case e.Patterns.PATTERN011:return(n+r)%3==0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case e.Patterns.PATTERN101:return n*r%2+n*r%3==0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw Error(`bad maskPattern:`+t)}}e.applyMask=function(e,t){let r=t.size;for(let i=0;i<r;i++)for(let a=0;a<r;a++)t.isReserved(a,i)||t.xor(a,i,n(e,a,i))},e.getBestMask=function(t,n){let r=Object.keys(e.Patterns).length,i=0,a=1/0;for(let o=0;o<r;o++){n(o),e.applyMask(o,t);let r=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(o,t),r<a&&(a=r,i=o)}return i}})),qEe=c((e=>{var t=K9(),n=[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],r=[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];e.getBlocksCount=function(e,r){switch(r){case t.L:return n[(e-1)*4+0];case t.M:return n[(e-1)*4+1];case t.Q:return n[(e-1)*4+2];case t.H:return n[(e-1)*4+3];default:return}},e.getTotalCodewordsCount=function(e,n){switch(n){case t.L:return r[(e-1)*4+0];case t.M:return r[(e-1)*4+1];case t.Q:return r[(e-1)*4+2];case t.H:return r[(e-1)*4+3];default:return}}})),JEe=c((e=>{var t=new Uint8Array(512),n=new Uint8Array(256);(function(){let e=1;for(let r=0;r<255;r++)t[r]=e,n[e]=r,e<<=1,e&256&&(e^=285);for(let e=255;e<512;e++)t[e]=t[e-255]})(),e.log=function(e){if(e<1)throw Error(`log(`+e+`)`);return n[e]},e.exp=function(e){return t[e]},e.mul=function(e,r){return e===0||r===0?0:t[n[e]+n[r]]}})),YEe=c((e=>{var t=JEe();e.mul=function(e,n){let r=new Uint8Array(e.length+n.length-1);for(let i=0;i<e.length;i++)for(let a=0;a<n.length;a++)r[i+a]^=t.mul(e[i],n[a]);return r},e.mod=function(e,n){let r=new Uint8Array(e);for(;r.length-n.length>=0;){let e=r[0];for(let i=0;i<n.length;i++)r[i]^=t.mul(n[i],e);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r},e.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let i=0;i<n;i++)r=e.mul(r,new Uint8Array([1,t.exp(i)]));return r}})),XEe=c(((e,t)=>{var n=YEe();function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=n.generateECPolynomial(this.degree)},r.prototype.encode=function(e){if(!this.genPoly)throw Error(`Encoder not initialized`);let t=new Uint8Array(e.length+this.degree);t.set(e);let r=n.mod(t,this.genPoly),i=this.degree-r.length;if(i>0){let e=new Uint8Array(this.degree);return e.set(r,i),e}return r},t.exports=r})),ZEe=c((e=>{e.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}})),QEe=c((e=>{var t=`[0-9]+`,n=`[A-Z $%*+\\-./:]+`,r=`(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+`;r=r.replace(/u/g,`\\u`);var i=`(?:(?![A-Z0-9 $%*+\\-./:]|`+r+`)(?:.|[\r
1030
1092
  ]))+`;e.KANJI=new RegExp(r,`g`),e.BYTE_KANJI=RegExp(`[^A-Z0-9 $%*+\\-./:]+`,`g`),e.BYTE=new RegExp(i,`g`),e.NUMERIC=new RegExp(t,`g`),e.ALPHANUMERIC=new RegExp(n,`g`);var a=RegExp(`^`+r+`$`),o=RegExp(`^[0-9]+$`),s=RegExp(`^[A-Z0-9 $%*+\\-./:]+$`);e.testKanji=function(e){return a.test(e)},e.testNumeric=function(e){return o.test(e)},e.testAlphanumeric=function(e){return s.test(e)}})),q9=c((e=>{var t=ZEe(),n=QEe();e.NUMERIC={id:`Numeric`,bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:`Alphanumeric`,bit:2,ccBits:[9,11,13]},e.BYTE={id:`Byte`,bit:4,ccBits:[8,16,16]},e.KANJI={id:`Kanji`,bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(e,n){if(!e.ccBits)throw Error(`Invalid mode: `+e);if(!t.isValid(n))throw Error(`Invalid version: `+n);return n>=1&&n<10?e.ccBits[0]:n<27?e.ccBits[1]:e.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(e){if(e&&e.id)return e.id;throw Error(`Invalid mode`)},e.isValid=function(e){return e&&e.bit&&e.ccBits};function r(t){if(typeof t!=`string`)throw Error(`Param is not a string`);switch(t.toLowerCase()){case`numeric`:return e.NUMERIC;case`alphanumeric`:return e.ALPHANUMERIC;case`kanji`:return e.KANJI;case`byte`:return e.BYTE;default:throw Error(`Unknown mode: `+t)}}e.from=function(t,n){if(e.isValid(t))return t;try{return r(t)}catch{return n}}})),$Ee=c((e=>{var t=G9(),n=qEe(),r=K9(),i=q9(),a=ZEe(),o=7973,s=t.getBCHDigit(o);function c(t,n,r){for(let i=1;i<=40;i++)if(n<=e.getCapacity(i,r,t))return i}function l(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){let r=l(e.mode,t);n+=r+e.getBitsLength()}),n}function d(t,n){for(let r=1;r<=40;r++)if(u(t,r)<=e.getCapacity(r,n,i.MIXED))return r}e.from=function(e,t){return a.isValid(e)?parseInt(e,10):t},e.getCapacity=function(e,r,o){if(!a.isValid(e))throw Error(`Invalid QR Code version`);o===void 0&&(o=i.BYTE);let s=(t.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,r))*8;if(o===i.MIXED)return s;let c=s-l(o,e);switch(o){case i.NUMERIC:return Math.floor(c/10*3);case i.ALPHANUMERIC:return Math.floor(c/11*2);case i.KANJI:return Math.floor(c/13);case i.BYTE:default:return Math.floor(c/8)}},e.getBestVersionForData=function(e,t){let n,i=r.from(t,r.M);if(Array.isArray(e)){if(e.length>1)return d(e,i);if(e.length===0)return 1;n=e[0]}else n=e;return c(n.mode,n.getLength(),i)},e.getEncodedBits=function(e){if(!a.isValid(e)||e<7)throw Error(`Invalid QR Code version`);let n=e<<12;for(;t.getBCHDigit(n)-s>=0;)n^=o<<t.getBCHDigit(n)-s;return e<<12|n}})),eDe=c((e=>{var t=G9(),n=1335,r=21522,i=t.getBCHDigit(n);e.getEncodedBits=function(e,a){let o=e.bit<<3|a,s=o<<10;for(;t.getBCHDigit(s)-i>=0;)s^=n<<t.getBCHDigit(s)-i;return(o<<10|s)^r}})),tDe=c(((e,t)=>{var n=q9();function r(e){this.mode=n.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},t.exports=r})),nDe=c(((e,t)=>{var n=q9(),r=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`.split(``);function i(e){this.mode=n.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=r.indexOf(this.data[t])*45;n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},t.exports=i})),rDe=c(((e,t)=>{var n=q9();function r(e){this.mode=n.BYTE,typeof e==`string`?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}r.getBitsLength=function(e){return e*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},t.exports=r})),iDe=c(((e,t)=>{var n=q9(),r=G9();function i(e){this.mode=n.KANJI,this.data=e}i.getBitsLength=function(e){return e*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw Error(`Invalid SJIS character: `+this.data[t]+`
1031
1093
  Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},t.exports=i})),aDe=c(((e,t)=>{var n={single_source_shortest_paths:function(e,t,r){var i={},a={};a[t]=0;var o=n.PriorityQueue.make();o.push(t,0);for(var s,c,l,u,d,f,p,m,h;!o.empty();)for(l in s=o.pop(),c=s.value,u=s.cost,d=e[c]||{},d)d.hasOwnProperty(l)&&(f=d[l],p=u+f,m=a[l],h=a[l]===void 0,(h||m>p)&&(a[l]=p,o.push(l,p),i[l]=c));if(r!==void 0&&a[r]===void 0){var g=[`Could not find a path from `,t,` to `,r,`.`].join(``);throw Error(g)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,r){var i=n.single_source_shortest_paths(e,t,r);return n.extract_shortest_path_from_predecessor_list(i,r)},PriorityQueue:{make:function(e){var t=n.PriorityQueue,r={},i;for(i in e||={},t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.queue=[],r.sorter=e.sorter||t.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t!==void 0&&(t.exports=n)})),oDe=c((e=>{var t=q9(),n=tDe(),r=nDe(),i=rDe(),a=iDe(),o=QEe(),s=G9(),c=aDe();function l(e){return unescape(encodeURIComponent(e)).length}function u(e,t,n){let r=[],i;for(;(i=e.exec(n))!==null;)r.push({data:i[0],index:i.index,mode:t,length:i[0].length});return r}function d(e){let n=u(o.NUMERIC,t.NUMERIC,e),r=u(o.ALPHANUMERIC,t.ALPHANUMERIC,e),i,a;return s.isKanjiModeEnabled()?(i=u(o.BYTE,t.BYTE,e),a=u(o.KANJI,t.KANJI,e)):(i=u(o.BYTE_KANJI,t.BYTE,e),a=[]),n.concat(r,i,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,o){switch(o){case t.NUMERIC:return n.getBitsLength(e);case t.ALPHANUMERIC:return r.getBitsLength(e);case t.KANJI:return a.getBitsLength(e);case t.BYTE:return i.getBitsLength(e)}}function p(e){return e.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function m(e){let n=[];for(let r=0;r<e.length;r++){let i=e[r];switch(i.mode){case t.NUMERIC:n.push([i,{data:i.data,mode:t.ALPHANUMERIC,length:i.length},{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.ALPHANUMERIC:n.push([i,{data:i.data,mode:t.BYTE,length:i.length}]);break;case t.KANJI:n.push([i,{data:i.data,mode:t.BYTE,length:l(i.data)}]);break;case t.BYTE:n.push([{data:i.data,mode:t.BYTE,length:l(i.data)}])}}return n}function h(e,n){let r={},i={start:{}},a=[`start`];for(let o=0;o<e.length;o++){let s=e[o],c=[];for(let e=0;e<s.length;e++){let l=s[e],u=``+o+e;c.push(u),r[u]={node:l,lastCount:0},i[u]={};for(let e=0;e<a.length;e++){let o=a[e];r[o]&&r[o].node.mode===l.mode?(i[o][u]=f(r[o].lastCount+l.length,l.mode)-f(r[o].lastCount,l.mode),r[o].lastCount+=l.length):(r[o]&&(r[o].lastCount=l.length),i[o][u]=f(l.length,l.mode)+4+t.getCharCountIndicator(l.mode,n))}}a=c}for(let e=0;e<a.length;e++)i[a[e]].end=0;return{map:i,table:r}}function g(e,o){let c,l=t.getBestModeForData(e);if(c=t.from(o,l),c!==t.BYTE&&c.bit<l.bit)throw Error(`"`+e+`" cannot be encoded with mode `+t.toString(c)+`.
1032
1094
  Suggested mode is: `+t.toString(l));switch(c===t.KANJI&&!s.isKanjiModeEnabled()&&(c=t.BYTE),c){case t.NUMERIC:return new n(e);case t.ALPHANUMERIC:return new r(e);case t.KANJI:return new a(e);case t.BYTE:return new i(e)}}e.fromArray=function(e){return e.reduce(function(e,t){return typeof t==`string`?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},e.fromString=function(t,n){let r=h(m(d(t,s.isKanjiModeEnabled())),n),i=c.find_path(r.map,`start`,`end`),a=[];for(let e=1;e<i.length-1;e++)a.push(r.table[i[e]].node);return e.fromArray(p(a))},e.rawSplit=function(t){return e.fromArray(d(t,s.isKanjiModeEnabled()))}})),sDe=c((e=>{var t=G9(),n=K9(),r=HEe(),i=UEe(),a=WEe(),o=GEe(),s=KEe(),c=qEe(),l=XEe(),u=$Ee(),d=eDe(),f=q9(),p=oDe();function m(e,t){let n=e.size,r=o.getPositions(t);for(let t=0;t<r.length;t++){let i=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(i+t<=-1||n<=i+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(r===0||r===6)||r>=0&&r<=6&&(t===0||t===6)||t>=2&&t<=4&&r>=2&&r<=4?e.set(i+t,a+r,!0,!0):e.set(i+t,a+r,!1,!0))}}function h(e){let t=e.size;for(let n=8;n<t-8;n++){let t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}function g(e,t){let n=a.getPositions(t);for(let t=0;t<n.length;t++){let r=n[t][0],i=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)t===-2||t===2||n===-2||n===2||t===0&&n===0?e.set(r+t,i+n,!0,!0):e.set(r+t,i+n,!1,!0)}}function _(e,t){let n=e.size,r=u.getEncodedBits(t),i,a,o;for(let t=0;t<18;t++)i=Math.floor(t/3),a=t%3+n-8-3,o=(r>>t&1)==1,e.set(i,a,o,!0),e.set(a,i,o,!0)}function v(e,t,n){let r=e.size,i=d.getEncodedBits(t,n),a,o;for(a=0;a<15;a++)o=(i>>a&1)==1,a<6?e.set(a,8,o,!0):a<8?e.set(a+1,8,o,!0):e.set(r-15+a,8,o,!0),a<8?e.set(8,r-a-1,o,!0):a<9?e.set(8,15-a-1+1,o,!0):e.set(8,15-a-1,o,!0);e.set(r-8,8,1,!0)}function y(e,t){let n=e.size,r=-1,i=n-1,a=7,o=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(i,s-n)){let r=!1;o<t.length&&(r=(t[o]>>>a&1)==1),e.set(i,s-n,r),a--,a===-1&&(o++,a=7)}if(i+=r,i<0||n<=i){i-=r,r=-r;break}}}function b(e,n,i){let a=new r;i.forEach(function(t){a.put(t.mode.bit,4),a.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(a)});let o=(t.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,n))*8;for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(0);let s=(o-a.getLengthInBits())/8;for(let e=0;e<s;e++)a.put(e%2?17:236,8);return x(a,e,n)}function x(e,n,r){let i=t.getSymbolTotalCodewords(n),a=i-c.getTotalCodewordsCount(n,r),o=c.getBlocksCount(n,r),s=o-i%o,u=Math.floor(i/o),d=Math.floor(a/o),f=d+1,p=u-d,m=new l(p),h=0,g=Array(o),_=Array(o),v=0,y=new Uint8Array(e.buffer);for(let e=0;e<o;e++){let t=e<s?d:f;g[e]=y.slice(h,h+t),_[e]=m.encode(g[e]),h+=t,v=Math.max(v,t)}let b=new Uint8Array(i),x=0,S,C;for(S=0;S<v;S++)for(C=0;C<o;C++)S<g[C].length&&(b[x++]=g[C][S]);for(S=0;S<p;S++)for(C=0;C<o;C++)b[x++]=_[C][S];return b}function S(e,n,r,a){let o;if(Array.isArray(e))o=p.fromArray(e);else if(typeof e==`string`){let t=n;if(!t){let n=p.rawSplit(e);t=u.getBestVersionForData(n,r)}o=p.fromString(e,t||40)}else throw Error(`Invalid data`);let c=u.getBestVersionForData(o,r);if(!c)throw Error(`The amount of data is too big to be stored in a QR Code`);if(!n)n=c;else if(n<c)throw Error(`
1033
1095
  The chosen QR Code version cannot contain this amount of data.
1034
1096
  Minimum version required to store current data is: `+c+`.
1035
1097
  `);let l=b(n,r,o),d=new i(t.getSymbolSize(n));return m(d,n),h(d),g(d,n),v(d,r,0),n>=7&&_(d,n),y(d,l),isNaN(a)&&(a=s.getBestMask(d,v.bind(null,d,r))),s.applyMask(a,d),v(d,r,a),{modules:d,version:n,errorCorrectionLevel:r,maskPattern:a,segments:o}}e.create=function(e,r){if(e===void 0||e===``)throw Error(`No input text`);let i=n.M,a,o;return r!==void 0&&(i=n.from(r.errorCorrectionLevel,n.M),a=u.from(r.version),o=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),S(e,a,i,o)}})),cDe=c((e=>{function t(e){if(typeof e==`number`&&(e=e.toString()),typeof e!=`string`)throw Error(`Color should be defined as hex string`);let t=e.slice().replace(`#`,``).split(``);if(t.length<3||t.length===5||t.length>8)throw Error(`Invalid hex color: `+e);(t.length===3||t.length===4)&&(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),t.length===6&&t.push(`F`,`F`);let n=parseInt(t.join(``),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:`#`+t.slice(0,6).join(``)}}e.getOptions=function(e){e||={},e.color||={};let n=e.margin===void 0||e.margin===null||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:t(e.color.dark||`#000000ff`),light:t(e.color.light||`#ffffffff`)},type:e.type,rendererOpts:e.rendererOpts||{}}},e.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},e.getImageWidth=function(t,n){let r=e.getScale(t,n);return Math.floor((t+n.margin*2)*r)},e.qrToImageData=function(t,n,r){let i=n.modules.size,a=n.modules.data,o=e.getScale(i,r),s=Math.floor((i+r.margin*2)*o),c=r.margin*o,l=[r.color.light,r.color.dark];for(let e=0;e<s;e++)for(let n=0;n<s;n++){let u=(e*s+n)*4,d=r.color.light;if(e>=c&&n>=c&&e<s-c&&n<s-c){let t=Math.floor((e-c)/o),r=Math.floor((n-c)/o);d=l[+!!a[t*i+r]]}t[u++]=d.r,t[u++]=d.g,t[u++]=d.b,t[u]=d.a}}})),lDe=c((e=>{var t=cDe();function n(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||={},t.height=n,t.width=n,t.style.height=n+`px`,t.style.width=n+`px`}function r(){try{return document.createElement(`canvas`)}catch{throw Error(`You need to specify a canvas element`)}}e.render=function(e,i,a){let o=a,s=i;o===void 0&&(!i||!i.getContext)&&(o=i,i=void 0),i||(s=r()),o=t.getOptions(o);let c=t.getImageWidth(e.modules.size,o),l=s.getContext(`2d`),u=l.createImageData(c,c);return t.qrToImageData(u.data,e,o),n(l,s,c),l.putImageData(u,0,0),s},e.renderToDataURL=function(t,n,r){let i=r;i===void 0&&(!n||!n.getContext)&&(i=n,n=void 0),i||={};let a=e.render(t,n,i),o=i.type||`image/png`,s=i.rendererOpts||{};return a.toDataURL(o,s.quality)}})),uDe=c((e=>{var t=cDe();function n(e,t){let n=e.a/255,r=t+`="`+e.hex+`"`;return n<1?r+` `+t+`-opacity="`+n.toFixed(2).slice(1)+`"`:r}function r(e,t,n){let r=e+t;return n!==void 0&&(r+=` `+n),r}function i(e,t,n){let i=``,a=0,o=!1,s=0;for(let c=0;c<e.length;c++){let l=Math.floor(c%t),u=Math.floor(c/t);!l&&!o&&(o=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(i+=o?r(`M`,l+n,.5+u+n):r(`m`,a,0),a=0,o=!1),l+1<t&&e[c+1]||(i+=r(`h`,s),s=0)):a++}return i}e.render=function(e,r,a){let o=t.getOptions(r),s=e.modules.size,c=e.modules.data,l=s+o.margin*2,u=o.color.light.a?`<path `+n(o.color.light,`fill`)+` d="M0 0h`+l+`v`+l+`H0z"/>`:``,d=`<path `+n(o.color.dark,`stroke`)+` d="`+i(c,s,o.margin)+`"/>`,f=`viewBox="0 0 `+l+` `+l+`"`,p=`<svg xmlns="http://www.w3.org/2000/svg" `+(o.width?`width="`+o.width+`" height="`+o.width+`" `:``)+f+` shape-rendering="crispEdges">`+u+d+`</svg>
1036
- `;return typeof a==`function`&&a(null,p),p}})),dDe=c((e=>{var t=VEe(),n=sDe(),r=lDe(),i=uDe();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}));function fDe(e,t){O(t,!0),K(e,hDe);let n=()=>j(R9,`$showMobileSignInDialog`,a),r=()=>j(Wj,`$user`,a),i=()=>j($M,`$prefs`,a),[a,o]=hn(),s=N(void 0);ti(()=>{if(z(s)&&n()){let{origin:e,pathname:t}=window.location,n=`${e}${t}#/signin/${btoa(JSON.stringify({token:r()?.token,prefs:i()}))}`;(0,pDe.toCanvas)(z(s),n),i().devModeEnabled&&console.info(`Mobile sign-in URL:`,n)}});{let t=M(()=>X(`sign_in_with_mobile`));$I(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,get open(){return vn(),n()},set open(e){mn(R9,e)},children:(e,t)=>{var n=mDe(),r=I(n),i=F(r,!0);D(r),Us(L(r,2),e=>P(s,e),()=>z(s)),R(e=>W(i,e),[()=>X(`sign_in_with_mobile_instruction`)]),U(e,n)},$$slots:{default:!0}})}k(),o()}var pDe,mDe,hDe,gDe=s((()=>{Q(),Y(),Z(),B$(),pDe=dDe(),z9(),Gj(),eN(),mDe=V(`<div> </div> <canvas class="svelte-1eeac91"></canvas>`,1),hDe={hash:`svelte-1eeac91`,code:`canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}`}}));function _De(e,t){O(t,!0);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn(),o=/^\/search\/(?<terms>.+)$/,s=()=>{let{path:e}=h1(),{terms:t}=e.match(o)?.groups??{};t&&t!==n()&&mn(G3,t),mn(W3,r()??`contents`)};ic(()=>{s(),document.querySelector(`.sui.search-bar input`)?.focus()}),xa(`hashchange`,Ir,()=>{s()});{let t=e=>{o8(e,{})},r=M(()=>X(`search_results_for_x`,{values:{terms:n()}}));P6(e,{get"aria-label"(){return z(r)},main:t,$$slots:{main:!0}})}k(),a()}var vDe=s((()=>{Q(),Y(),Z(),oc(),z6(),l8(),S1(),K3()}));function yDe(e,t){O(t,!0),K(e,wDe);let n=/^\/settings(?:\/(?<panelKey>.+))?$/,r=N(void 0),i=()=>{let{path:e}=h1(),t=e.match(n);if(!t?.groups)return;let{panelKey:i}=t.groups;P(r,i?A(U9).find(e=>e.key===i):void 0,!0)};ic(()=>{i()}),xa(`hashchange`,Ir,e=>{v1(e,i,n)});{let t=e=>{A6(e,{primaryToolbar:e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=SDe(),i=I(n),a=e=>{var t=bDe(),n=I(t);Q0(n,{onclick:()=>b1(`/settings`)});var i=L(n,2),a=F(i,!0);D(i),R(e=>W(a,e),[()=>X(`prefs.${z(r).key}.title`)]),U(e,t)},o=e=>{var t=xDe(),n=I(t);Q0(n,{onclick:()=>b1(`/menu`)});var r=L(n,2),i=F(r,!0);D(r),R(e=>W(i,e),[()=>X(`settings`)]),U(e,t)};G(i,e=>{z(r)?e(a):e(o,-1)}),UI(L(i,2),{flex:!0}),U(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=CDe(),n=F(t),i=e=>{WTe(e,{get Panel(){return z(r).component}})},a=e=>{{let t=M(()=>X(`settings`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>A(U9),({key:e,icon:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon;{let t=e=>{zF(e,{get name(){return r()}})},i=M(()=>X(`prefs.${n()}.title`));qL(e,{get label(){return z(i)},onclick:()=>y1(`/settings/${n()}`,{transitionType:`forwards`}),startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}};G(n,e=>{z(r)?e(i):e(a,-1)}),D(t),U(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>X(`settings`));P6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var bDe,xDe,SDe,CDe,wDe,TDe=s((()=>{Q(),Y(),Z(),B$(),oc(),rp(),N6(),z6(),$0(),UTe(),qTe(),S1(),bDe=V(`<!> <h2 role="none"> </h2>`,1),xDe=V(`<!> <h2 role="none"> </h2>`,1),SDe=V(`<!> <!>`,1),CDe=V(`<div role="none" class="wrapper svelte-116bna3"><!></div>`),wDe={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 > .container {display:block;padding:16px;}`}}));function EDe(e,t){O(t,!0),K(e,jDe);{let t=e=>{var t=ADe(),n=F(t);L$(n,{class:`column`,"aria-labelledby":`draft-column-title`,children:(e,t)=>{var n=DDe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>X(`status.drafts`)]),U(e,n)},$$slots:{default:!0}});var r=L(n,2);L$(r,{class:`column`,"aria-labelledby":`review-column-title`,children:(e,t)=>{var n=ODe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>X(`status.in_review`)]),U(e,n)},$$slots:{default:!0}}),L$(L(r,2),{class:`column`,"aria-labelledby":`ready-column-title`,children:(e,t)=>{var n=kDe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>X(`status.ready`)]),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},n=M(()=>X(`editorial_workflow`));P6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var DDe,ODe,kDe,ADe,jDe,MDe=s((()=>{Q(),Y(),Z(),B$(),z6(),DDe=V(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>`),ODe=V(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>`),kDe=V(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>`),ADe=V(`<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>`),jDe={hash:`svelte-ljqw9n`,code:`.columns.svelte-ljqw9n {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color);}
1037
- @media (width < 768px) {.columns.svelte-ljqw9n {flex-direction:column;gap:0;}
1038
- }.columns.svelte-ljqw9n .column {flex:auto;width:33.3333333333%;background-color:var(--sui-primary-background-color);}
1039
- @media (width < 768px) {.columns.svelte-ljqw9n .column {width:100%;height:33.3333333333%;}
1040
- }.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 NDe(e,t){O(t,!0),K(e,IDe);let n=()=>j(zA,`$isSmallScreen`,o),r=()=>j(W3,`$searchMode`,o),i=()=>j(p1,`$selectedPageName`,o),a=()=>j(L9,`$canShowMobileSignInDialog`,o),[o,s]=hn(),c=M(()=>({collections:Vwe,assets:p8,search:n()?_De:r()?{contents:Vwe,assets:p8}[r()]:_De,workflow:EDe,config:gde,menu:FEe,settings:yDe})),l=M(()=>z(c)[i()]),u=()=>{let{path:e}=h1(),{pageName:t}=e.match(`^\\/(?<pageName>${Object.keys(z(c)).join(`|`)})\\b`)?.groups??{};t?i()!==t&&mn(p1,t):window.location.replace(`#/collections`),t===`collections`?mn(W3,`contents`):t===`assets`?mn(W3,`assets`):t!==`search`&&mn(W3,null)};ic(()=>{u()});var d={selectPage:u},f=FDe();xa(`hashchange`,Ir,()=>{u()});var p=I(f),m=e=>{var t=PDe(),n=I(t);Zwe(n,{}),fDe(L(n,2),{}),U(e,t)};G(p,e=>{a()&&e(m)});var h=L(p,2),g=e=>{AEe(e,{})};G(h,e=>{n()||e(g)});var _=L(h,2);Oo(F(_),()=>z(l),(e,t)=>{t(e,{})}),D(_);var v=L(_,2),y=e=>{aTe(e,{})};G(v,e=>{n()&&e(y)});var b=L(v,2);mde(b,{});var x=L(b,2);fde(x,{});var S=L(x,2);Kwe(S,{}),Ywe(L(S,2),{}),U(e,f);var C=k(d);return s(),C}var PDe,FDe,IDe,LDe=s((()=>{Q(),Y(),oc(),dde(),pde(),hde(),_de(),Uwe(),Jwe(),Xwe(),eTe(),sTe(),PEe(),BEe(),gDe(),vDe(),TDe(),MDe(),S1(),z9(),K3(),WA(),PDe=V(`<!> <!>`,1),FDe=V(`<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>`,1),IDe={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 RDe(e,t){O(t,!0),K(e,UDe);let n=()=>j(Ny,`$dataLoaded`,u),r=()=>j(Wj,`$user`,u),i=()=>j(ZP,`$cmsConfigLoaded`,u),a=()=>j(X1,`$appTitle`,u),o=()=>j(Z1,`$appLogoURL`,u),s=()=>j(Q1,`$appLogoType`,u),c=()=>j(DP,`$backend`,u),l=()=>j(m1,`$announcedPageStatus`,u),[u,d]=hn(),f=N(!1);ri(()=>{T6(),P(f,!0)}),ri(()=>{UA()}),ti(()=>{cae(t.config)}),ic(()=>{let e=document.querySelector(`#nc-root`);e&&window.getComputedStyle(e).position===`static`&&window.requestAnimationFrame(()=>{let{top:t,height:n}=e.getBoundingClientRect();n?e.style.position=`relative`:(e.style.position=`fixed`,e.style.inset=`${t}px 0 0 0`)})});let p=N(!1);ti(()=>{n()&&r()?_1(`forwards`,()=>{P(p,!0)}):_1(`backwards`,()=>{P(p,!1)})}),Ko(`7y4msj`,e=>{var t=VDe(),n=L(I(t),4),r=e=>{var t=zDe();R(()=>{q(t,`href`,o()),q(t,`type`,s())}),li(()=>{Lr.title=a()??``}),U(e,t)};G(n,e=>{i()&&e(r)});var c=L(n,2),l=e=>{var t=BDe();R(()=>q(t,`href`,`${KP??``}/admin/config.yml`)),U(e,t)};G(c,e=>{KP&&e(l)}),U(e,t)}),xa(`mousedown`,Lr.body,e=>{if(e.target?.matches(`a`)){let t=e.target,{origin:n,pathname:r}=t;(n!==window.location.origin||r!==window.location.pathname)&&(t.rel=`noopener noreferrer`,t.target=`_blank`)}}),iue(e,{children:(e,t)=>{var i=H(),a=I(i),o=e=>{var t=HDe(),i=I(t),a=F(i);yue(a,{});var o=L(a,2),s=e=>{_ue(e,{})};G(o,e=>{c()&&e(s)});var u=L(o,2),d=F(u),f=e=>{NDe(e,{})},m=e=>{hue(e,{})};G(d,e=>{r()&&n()&&z(p)?e(f):e(m,-1)}),D(u),D(i);var h=L(i,2),g=F(h,!0);D(h),R(()=>W(g,l())),U(e,t)};G(a,e=>{z(f)&&e(o)}),U(e,i)},$$slots:{default:!0}}),k(),d()}var zDe,BDe,VDe,HDe,UDe,WDe=s((()=>{Q(),Y(),B$(),oc(),gue(),vue(),bue(),LDe(),$1(),E6(),S1(),kP(),$P(),Vy(),Gj(),WA(),zDe=V(`<link rel="icon"/>`),BDe=V(`<link type="application/yaml" rel="cms-config-url"/>`),VDe=V(`<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>`,1),HDe=V(`<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!></div></div> <div role="status" class="svelte-7y4msj"> </div>`,1),UDe={hash:`svelte-7y4msj`,code:`@view-transition {navigation:auto;
1041
- }
1042
- @keyframes svelte-7y4msj-slide-out-to-left {
1043
- from {
1044
- transform: translateX(0);
1045
- filter: brightness(1);
1046
- }
1047
- to {
1048
- transform: translateX(-20%);
1049
- filter: brightness(0.5);
1050
- }
1051
- }
1052
- @keyframes svelte-7y4msj-slide-out-to-right {
1053
- from {
1054
- transform: translateX(0);
1055
- opacity: 1;
1056
- }
1057
- to {
1058
- transform: translateX(100%);
1059
- opacity: 0;
1060
- }
1061
- }
1062
- @keyframes svelte-7y4msj-slide-in-from-right {
1063
- from {
1064
- transform: translateX(100%);
1065
- opacity: 0;
1066
- }
1067
- to {
1068
- transform: translateX(0);
1069
- opacity: 1;
1070
- }
1071
- }
1072
- @keyframes svelte-7y4msj-slide-in-from-left {
1073
- from {
1074
- transform: translateX(-20%);
1075
- filter: brightness(0.5);
1076
- }
1077
- to {
1078
- transform: translateX(0);
1079
- filter: brightness(1);
1080
- }
1081
- }
1082
- @keyframes svelte-7y4msj-slide-out-to-left-rtl {
1083
- from {
1084
- transform: translateX(0);
1085
- opacity: 1;
1086
- }
1087
- to {
1088
- transform: translateX(-100%);
1089
- opacity: 0;
1090
- }
1091
- }
1092
- @keyframes svelte-7y4msj-slide-out-to-right-rtl {
1093
- from {
1094
- transform: translateX(0);
1095
- filter: brightness(1);
1098
+ `;return typeof a==`function`&&a(null,p),p}})),dDe=c((e=>{var t=VEe(),n=sDe(),r=lDe(),i=uDe();function a(e,r,i,a,o){let s=[].slice.call(arguments,1),c=s.length,l=typeof s[c-1]==`function`;if(!l&&!t())throw Error(`Callback required as last argument`);if(l){if(c<2)throw Error(`Too few arguments provided`);c===2?(o=i,i=r,r=a=void 0):c===3&&(r.getContext&&o===void 0?(o=a,a=void 0):(o=a,a=i,i=r,r=void 0))}else{if(c<1)throw Error(`Too few arguments provided`);return c===1?(i=r,r=a=void 0):c===2&&!r.getContext&&(a=i,i=r,r=void 0),new Promise(function(t,o){try{t(e(n.create(i,a),r,a))}catch(e){o(e)}})}try{let t=n.create(i,a);o(null,e(t,r,a))}catch(e){o(e)}}e.create=n.create,e.toCanvas=a.bind(null,r.render),e.toDataURL=a.bind(null,r.renderToDataURL),e.toString=a.bind(null,function(e,t,n){return i.render(e,n)})}));function fDe(e,t){O(t,!0),K(e,hDe);let n=()=>j(R9,`$showMobileSignInDialog`,a),r=()=>j(Wj,`$user`,a),i=()=>j($M,`$prefs`,a),[a,o]=hn(),s=N(void 0);ti(()=>{if(z(s)&&n()){let{origin:e,pathname:t}=window.location,n=`${e}${t}#/signin/${btoa(JSON.stringify({token:r()?.token,prefs:i()}))}`;(0,pDe.toCanvas)(z(s),n),i().devModeEnabled&&console.info(`Mobile sign-in URL:`,n)}});{let t=M(()=>X(`sign_in_with_mobile`));$I(e,{get title(){return z(t)},size:`small`,showOk:!1,showCancel:!1,showClose:!0,style:`--sui-dialog-small-content-max-height:auto`,get open(){return vn(),n()},set open(e){mn(R9,e)},children:(e,t)=>{var n=mDe(),r=I(n),i=F(r,!0);D(r),Us(L(r,2),e=>P(s,e),()=>z(s)),R(e=>W(i,e),[()=>X(`sign_in_with_mobile_instruction`)]),U(e,n)},$$slots:{default:!0}})}k(),o()}var pDe,mDe,hDe,gDe=s((()=>{Q(),Y(),Z(),B$(),pDe=dDe(),z9(),Gj(),eN(),mDe=V(`<div> </div> <canvas class="svelte-1eeac91"></canvas>`,1),hDe={hash:`svelte-1eeac91`,code:`canvas.svelte-1eeac91 {display:block;margin:32px auto 16px;width:200px !important;height:200px !important;}`}}));function _De(e,t){O(t,!0);let n=()=>j(G3,`$searchTerms`,i),r=()=>j(W3,`$searchMode`,i),[i,a]=hn(),o=/^\/search\/(?<terms>.+)$/,s=()=>{let{path:e}=h1(),{terms:t}=e.match(o)?.groups??{};t&&t!==n()&&mn(G3,t),mn(W3,r()??`contents`)};ic(()=>{s(),document.querySelector(`.sui.search-bar input`)?.focus()}),xa(`hashchange`,Ir,()=>{s()});{let t=e=>{o8(e,{})},r=M(()=>X(`search_results_for_x`,{values:{terms:n()}}));P6(e,{get"aria-label"(){return z(r)},main:t,$$slots:{main:!0}})}k(),a()}var vDe=s((()=>{Q(),Y(),Z(),oc(),z6(),l8(),S1(),K3()}));function yDe(e,t){O(t,!0),K(e,wDe);let n=/^\/settings(?:\/(?<panelKey>.+))?$/,r=N(void 0),i=()=>{let{path:e}=h1(),t=e.match(n);if(!t?.groups)return;let{panelKey:i}=t.groups;P(r,i?A(U9).find(e=>e.key===i):void 0,!0)};ic(()=>{i()}),xa(`hashchange`,Ir,e=>{v1(e,i,n)});{let t=e=>{A6(e,{primaryToolbar:e=>{$Q(e,{variant:`primary`,children:(e,t)=>{var n=SDe(),i=I(n),a=e=>{var t=bDe(),n=I(t);Q0(n,{onclick:()=>b1(`/settings`)});var i=L(n,2),a=F(i,!0);D(i),R(e=>W(a,e),[()=>X(`prefs.${z(r).key}.title`)]),U(e,t)},o=e=>{var t=xDe(),n=I(t);Q0(n,{onclick:()=>b1(`/menu`)});var r=L(n,2),i=F(r,!0);D(r),R(e=>W(i,e),[()=>X(`settings`)]),U(e,t)};G(i,e=>{z(r)?e(a):e(o,-1)}),UI(L(i,2),{flex:!0}),U(e,n)},$$slots:{default:!0}})},mainContent:e=>{var t=CDe(),n=F(t),i=e=>{WTe(e,{get Panel(){return z(r).component}})},a=e=>{{let t=M(()=>X(`settings`));UL(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>A(U9),({key:e,icon:t})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).icon;{let t=e=>{zF(e,{get name(){return r()}})},i=M(()=>X(`prefs.${n()}.title`));qL(e,{get label(){return z(i)},onclick:()=>y1(`/settings/${n()}`,{transitionType:`forwards`}),startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}};G(n,e=>{z(r)?e(i):e(a,-1)}),D(t),U(e,t)},$$slots:{primaryToolbar:!0,mainContent:!0}})},n=M(()=>X(`settings`));P6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var bDe,xDe,SDe,CDe,wDe,TDe=s((()=>{Q(),Y(),Z(),B$(),oc(),rp(),N6(),z6(),$0(),UTe(),qTe(),S1(),bDe=V(`<!> <h2 role="none"> </h2>`,1),xDe=V(`<!> <h2 role="none"> </h2>`,1),SDe=V(`<!> <!>`,1),CDe=V(`<div role="none" class="wrapper svelte-116bna3"><!></div>`),wDe={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;& > .container {display:block;padding:16px;}}`}}));function EDe(e,t){O(t,!0),K(e,jDe);{let t=e=>{var t=ADe(),n=F(t);L$(n,{class:`column`,"aria-labelledby":`draft-column-title`,children:(e,t)=>{var n=DDe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>X(`status.drafts`)]),U(e,n)},$$slots:{default:!0}});var r=L(n,2);L$(r,{class:`column`,"aria-labelledby":`review-column-title`,children:(e,t)=>{var n=ODe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>X(`status.in_review`)]),U(e,n)},$$slots:{default:!0}}),L$(L(r,2),{class:`column`,"aria-labelledby":`ready-column-title`,children:(e,t)=>{var n=kDe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>X(`status.ready`)]),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},n=M(()=>X(`editorial_workflow`));P6(e,{get"aria-label"(){return z(n)},main:t,$$slots:{main:!0}})}k()}var DDe,ODe,kDe,ADe,jDe,MDe=s((()=>{Q(),Y(),Z(),B$(),z6(),DDe=V(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="draft-column-title" class="svelte-ljqw9n"> </h3></header>`),ODe=V(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="review-column-title" class="svelte-ljqw9n"> </h3></header>`),kDe=V(`<header role="none" class="svelte-ljqw9n"><h3 role="none" id="ready-column-title" class="svelte-ljqw9n"> </h3></header>`),ADe=V(`<div role="none" class="columns svelte-ljqw9n"><!> <!> <!></div>`),jDe={hash:`svelte-ljqw9n`,code:`.columns.svelte-ljqw9n {flex:auto;display:flex;gap:4px;background-color:var(--sui-secondary-background-color); /* same as toolbar */
1099
+
1100
+ @media (width < 768px) {flex-direction:column;gap:0;
1101
+ }.column {flex:auto;width:calc(100% / 3);background-color:var(--sui-primary-background-color);
1102
+
1103
+ @media (width < 768px) {width:100%;height:calc(100% / 3);
1104
+ }}header:where(.svelte-ljqw9n) {display:flex;align-items:center;padding:0 16px;height:40px;background-color:var(--sui-tertiary-background-color);h3:where(.svelte-ljqw9n) {font-size:var(--sui-font-size-x-large);}}}`}}));function NDe(e,t){O(t,!0),K(e,IDe);let n=()=>j(zA,`$isSmallScreen`,o),r=()=>j(W3,`$searchMode`,o),i=()=>j(p1,`$selectedPageName`,o),a=()=>j(L9,`$canShowMobileSignInDialog`,o),[o,s]=hn(),c=M(()=>({collections:Vwe,assets:p8,search:n()?_De:r()?{contents:Vwe,assets:p8}[r()]:_De,workflow:EDe,config:gde,menu:FEe,settings:yDe})),l=M(()=>z(c)[i()]),u=()=>{let{path:e}=h1(),{pageName:t}=e.match(`^\\/(?<pageName>${Object.keys(z(c)).join(`|`)})\\b`)?.groups??{};t?i()!==t&&mn(p1,t):window.location.replace(`#/collections`),t===`collections`?mn(W3,`contents`):t===`assets`?mn(W3,`assets`):t!==`search`&&mn(W3,null)};ic(()=>{u()});var d={selectPage:u},f=FDe();xa(`hashchange`,Ir,()=>{u()});var p=I(f),m=e=>{var t=PDe(),n=I(t);Zwe(n,{}),fDe(L(n,2),{}),U(e,t)};G(p,e=>{a()&&e(m)});var h=L(p,2),g=e=>{AEe(e,{})};G(h,e=>{n()||e(g)});var _=L(h,2);Oo(F(_),()=>z(l),(e,t)=>{t(e,{})}),D(_);var v=L(_,2),y=e=>{aTe(e,{})};G(v,e=>{n()&&e(y)});var b=L(v,2);mde(b,{});var x=L(b,2);fde(x,{});var S=L(x,2);Kwe(S,{}),Ywe(L(S,2),{}),U(e,f);var C=k(d);return s(),C}var PDe,FDe,IDe,LDe=s((()=>{Q(),Y(),oc(),dde(),pde(),hde(),_de(),Uwe(),Jwe(),Xwe(),eTe(),sTe(),PEe(),BEe(),gDe(),vDe(),TDe(),MDe(),S1(),z9(),K3(),WA(),PDe=V(`<!> <!>`,1),FDe=V(`<!> <!> <div role="none" class="page-root svelte-1a6c577"><!></div> <!> <!> <!> <!> <!>`,1),IDe={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 RDe(e,t){O(t,!0),K(e,UDe);let n=()=>j(Ny,`$dataLoaded`,u),r=()=>j(Wj,`$user`,u),i=()=>j(ZP,`$cmsConfigLoaded`,u),a=()=>j(X1,`$appTitle`,u),o=()=>j(Z1,`$appLogoURL`,u),s=()=>j(Q1,`$appLogoType`,u),c=()=>j(DP,`$backend`,u),l=()=>j(m1,`$announcedPageStatus`,u),[u,d]=hn(),f=N(!1);ri(()=>{T6(),P(f,!0)}),ri(()=>{UA()}),ti(()=>{cae(t.config)}),ic(()=>{let e=document.querySelector(`#nc-root`);e&&window.getComputedStyle(e).position===`static`&&window.requestAnimationFrame(()=>{let{top:t,height:n}=e.getBoundingClientRect();n?e.style.position=`relative`:(e.style.position=`fixed`,e.style.inset=`${t}px 0 0 0`)})});let p=N(!1);ti(()=>{n()&&r()?_1(`forwards`,()=>{P(p,!0)}):_1(`backwards`,()=>{P(p,!1)})}),Ko(`7y4msj`,e=>{var t=VDe(),n=L(I(t),4),r=e=>{var t=zDe();R(()=>{q(t,`href`,o()),q(t,`type`,s())}),li(()=>{Lr.title=a()??``}),U(e,t)};G(n,e=>{i()&&e(r)});var c=L(n,2),l=e=>{var t=BDe();R(()=>q(t,`href`,`${KP??``}/admin/config.yml`)),U(e,t)};G(c,e=>{KP&&e(l)}),U(e,t)}),xa(`mousedown`,Lr.body,e=>{if(e.target?.matches(`a`)){let t=e.target,{origin:n,pathname:r}=t;(n!==window.location.origin||r!==window.location.pathname)&&(t.rel=`noopener noreferrer`,t.target=`_blank`)}}),iue(e,{children:(e,t)=>{var i=H(),a=I(i),o=e=>{var t=HDe(),i=I(t),a=F(i);yue(a,{});var o=L(a,2),s=e=>{_ue(e,{})};G(o,e=>{c()&&e(s)});var u=L(o,2),d=F(u),f=e=>{NDe(e,{})},m=e=>{hue(e,{})};G(d,e=>{r()&&n()&&z(p)?e(f):e(m,-1)}),D(u),D(i);var h=L(i,2),g=F(h,!0);D(h),R(()=>W(g,l())),U(e,t)};G(a,e=>{z(f)&&e(o)}),U(e,i)},$$slots:{default:!0}}),k(),d()}var zDe,BDe,VDe,HDe,UDe,WDe=s((()=>{Q(),Y(),B$(),oc(),gue(),vue(),bue(),LDe(),$1(),E6(),S1(),kP(),$P(),Vy(),Gj(),WA(),zDe=V(`<link rel="icon"/>`),BDe=V(`<link type="application/yaml" rel="cms-config-url"/>`),VDe=V(`<meta name="referrer" content="same-origin"/> <meta name="robots" content="noindex"/> <!> <!>`,1),HDe=V(`<div role="none" class="outer svelte-7y4msj"><!> <!> <div role="none" class="main svelte-7y4msj"><!></div></div> <div role="status" class="svelte-7y4msj"> </div>`,1),UDe={hash:`svelte-7y4msj`,code:`
1105
+ @view-transition {navigation:auto;
1096
1106
  }
1097
- to {
1098
- transform: translateX(20%);
1099
- filter: brightness(0.5);
1107
+
1108
+ @keyframes svelte-7y4msj-slide-out-to-left {
1109
+ from {
1110
+ transform: translateX(0);
1111
+ filter: brightness(1);
1112
+ }
1113
+
1114
+ to {
1115
+ transform: translateX(-20%);
1116
+ filter: brightness(0.5);
1117
+ }
1100
1118
  }
1101
- }
1102
- @keyframes svelte-7y4msj-slide-in-from-right-rtl {
1103
- from {
1104
- transform: translateX(20%);
1105
- filter: brightness(0.5);
1119
+
1120
+ @keyframes svelte-7y4msj-slide-out-to-right {
1121
+ from {
1122
+ transform: translateX(0);
1123
+ opacity: 1;
1124
+ }
1125
+
1126
+ to {
1127
+ transform: translateX(100%);
1128
+ opacity: 0;
1129
+ }
1106
1130
  }
1107
- to {
1108
- transform: translateX(0);
1109
- filter: brightness(1);
1131
+
1132
+ @keyframes svelte-7y4msj-slide-in-from-right {
1133
+ from {
1134
+ transform: translateX(100%);
1135
+ opacity: 0;
1136
+ }
1137
+
1138
+ to {
1139
+ transform: translateX(0);
1140
+ opacity: 1;
1141
+ }
1110
1142
  }
1111
- }
1112
- @keyframes svelte-7y4msj-slide-in-from-left-rtl {
1113
- from {
1114
- transform: translateX(-100%);
1115
- opacity: 0;
1143
+
1144
+ @keyframes svelte-7y4msj-slide-in-from-left {
1145
+ from {
1146
+ transform: translateX(-20%);
1147
+ filter: brightness(0.5);
1148
+ }
1149
+
1150
+ to {
1151
+ transform: translateX(0);
1152
+ filter: brightness(1);
1153
+ }
1116
1154
  }
1117
- to {
1118
- transform: translateX(0);
1119
- opacity: 1;
1155
+
1156
+ /* RTL-specific keyframes that mirror the depth effect */
1157
+ @keyframes svelte-7y4msj-slide-out-to-left-rtl {
1158
+ from {
1159
+ transform: translateX(0);
1160
+ opacity: 1;
1161
+ }
1162
+
1163
+ to {
1164
+ transform: translateX(-100%);
1165
+ opacity: 0;
1166
+ }
1120
1167
  }
1121
- }
1122
- @keyframes svelte-7y4msj-fade-out {
1123
- from {
1124
- opacity: 1;
1168
+
1169
+ @keyframes svelte-7y4msj-slide-out-to-right-rtl {
1170
+ from {
1171
+ transform: translateX(0);
1172
+ filter: brightness(1);
1173
+ }
1174
+
1175
+ to {
1176
+ transform: translateX(20%);
1177
+ filter: brightness(0.5);
1178
+ }
1125
1179
  }
1126
- to {
1127
- opacity: 0;
1180
+
1181
+ @keyframes svelte-7y4msj-slide-in-from-right-rtl {
1182
+ from {
1183
+ transform: translateX(20%);
1184
+ filter: brightness(0.5);
1185
+ }
1186
+
1187
+ to {
1188
+ transform: translateX(0);
1189
+ filter: brightness(1);
1190
+ }
1128
1191
  }
1129
- }
1130
- @keyframes svelte-7y4msj-fade-in {
1131
- from {
1132
- opacity: 0;
1192
+
1193
+ @keyframes svelte-7y4msj-slide-in-from-left-rtl {
1194
+ from {
1195
+ transform: translateX(-100%);
1196
+ opacity: 0;
1197
+ }
1198
+
1199
+ to {
1200
+ transform: translateX(0);
1201
+ opacity: 1;
1202
+ }
1133
1203
  }
1134
- to {
1135
- opacity: 1;
1204
+
1205
+ @keyframes svelte-7y4msj-fade-out {
1206
+ from {
1207
+ opacity: 1;
1208
+ }
1209
+
1210
+ to {
1211
+ opacity: 0;
1212
+ }
1136
1213
  }
1137
- }
1138
- @media (width < 768px) {html:active-view-transition-type(forwards)::view-transition-old(page-root) {z-index:999;
1139
- animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left;}
1140
- }
1141
- @media (width < 768px) and (prefers-reduced-motion) {html:active-view-transition-type(forwards)::view-transition-old(page-root) {
1142
- animation: none;}
1143
- }
1144
- @media (width < 768px) and (width < 768px) {html:active-view-transition-type(forwards)::view-transition-new(page-root) {z-index:1000;
1145
- animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right;}
1146
- }
1147
- @media (width < 768px) and (prefers-reduced-motion) {html:active-view-transition-type(forwards)::view-transition-new(page-root) {
1148
- animation: none;}
1149
- }
1150
- @media (width < 768px) {html:active-view-transition-type(forwards):dir(rtl)::view-transition-old(page-root) {
1151
- animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right-rtl;}html:active-view-transition-type(forwards):dir(rtl)::view-transition-new(page-root) {
1152
- animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left-rtl;}
1153
- }
1154
- @media (width < 768px) {html:active-view-transition-type(backwards)::view-transition-old(page-root) {z-index:1000;
1155
- animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right;}
1156
- }
1157
- @media (width < 768px) and (prefers-reduced-motion) {html:active-view-transition-type(backwards)::view-transition-old(page-root) {
1158
- animation: none;}
1159
- }
1160
- @media (width < 768px) {html:active-view-transition-type(backwards)::view-transition-new(page-root) {z-index:999;
1161
- animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left;}
1162
- }
1163
- @media (width < 768px) and (prefers-reduced-motion) {html:active-view-transition-type(backwards)::view-transition-new(page-root) {
1164
- animation: none;}
1165
- }
1166
- @media (width < 768px) {html:active-view-transition-type(backwards):dir(rtl)::view-transition-old(page-root) {
1167
- animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left-rtl;}html:active-view-transition-type(backwards):dir(rtl)::view-transition-new(page-root) {
1168
- animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right-rtl;}
1169
- }html:active-view-transition-type(unknown)::view-transition-old(page-main) {
1170
- animation: 100ms ease-in both svelte-7y4msj-fade-out;}
1171
- @media (prefers-reduced-motion) {html:active-view-transition-type(unknown)::view-transition-old(page-main) {
1172
- animation: none;}
1173
- }html:active-view-transition-type(unknown)::view-transition-new(page-main) {
1174
- animation: 100ms ease-in both svelte-7y4msj-fade-in;}
1175
- @media (prefers-reduced-motion) {html:active-view-transition-type(unknown)::view-transition-new(page-main) {
1176
- animation: none;}
1177
- }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;}`}})),GDe,J9,KDe,qDe,Y9,X9,JDe,YDe,XDe,ZDe,QDe,Z9,Q9,$9;return s((()=>{p(),GDe=u(v(),1),J9=h(),oc(),kF(),RF(),Xk(),yb(),WDe(),KDe=[`getBackend`,`getCustomFormats`,`getCustomFormatsExtensions`,`getCustomFormatsFormatters`,`getEditorComponents`,`getEventListeners`,`getLocale`,`getMediaLibrary`,`getPreviewStyles`,`getPreviewTemplate`,`getRemarkPlugins`,`getWidget`,`getWidgetValueSerializer`,`getWidgets`,`invokeEvent`,`moment`,`registerBackend`,`registerMediaLibrary`,`registerWidgetValueSerializer`,`removeEventListener`,`resolveWidget`,`registerLocale`,`registerRemarkPlugin`],qDe=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,Y9=!1,X9=async({config:e}={})=>{if(e!==void 0&&!d(e))throw TypeError("The `config` option for `CMS.init()` must be an object");Y9||(Y9=!0,document.readyState===`loading`&&!document.querySelector(`#nc-root`)&&await new Promise(e=>{window.addEventListener(`DOMContentLoaded`,()=>e(void 0),{once:!0})}),za(RDe,{target:document.querySelector(`#nc-root`)??document.body,props:{config:e}}))},JDe=(e,t,{fromFile:n,toFile:r}={})=>{if(typeof e!=`string`)throw TypeError("The `name` option for `CMS.registerCustomFormat()` must be a string");if(typeof t!=`string`)throw TypeError("The `extension` option for `CMS.registerCustomFormat()` must be a string");if(typeof n!=`function`&&typeof r!=`function`)throw Error("At least one of `fromFile` or `toFile` must be provided to `CMS.registerCustomFormat()`");if(n!==void 0&&typeof n!=`function`)throw TypeError("The `fromFile` option for `CMS.registerCustomFormat()` must be a function");if(r!==void 0&&typeof r!=`function`)throw TypeError("The `toFile` option for `CMS.registerCustomFormat()` must be a function");fb.set(e,{extension:t,parser:n,formatter:r})},YDe=e=>{if(!e||typeof e!=`object`)throw TypeError("The `definition` option for `CMS.registerEditorComponent()` must be an object");if(typeof e.id!=`string`)throw TypeError("The `definition.id` must be a string");if(typeof e.label!=`string`)throw TypeError("The `definition.label` must be a string");if(typeof e.pattern!=`object`||!(e.pattern instanceof RegExp))throw TypeError("The `definition.pattern` must be a RegExp");if(typeof e.toBlock!=`function`)throw TypeError("The `definition.toBlock` must be a function");if(typeof e.toPreview!=`function`)throw TypeError("The `definition.toPreview` must be a function");if(!Array.isArray(e.fields))throw TypeError("The `definition.fields` must be an array");Kk.set(e.id,e)},XDe=e=>{if(!d(e))throw TypeError(`The event listener must be an object`);let{name:t,handler:n}=e;if(typeof t!=`string`||typeof n!=`function`)throw TypeError("The event listener must have a string `name` property and a function `handler` property");if(!EF.includes(t))throw RangeError(`Unsupported event listener name "${t}". Supported names are: ${EF.join(`, `)}`);DF.add(e)},ZDe=(e,{raw:t=!1}={})=>{if(typeof e!=`string`)throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a string");if(typeof t!=`boolean`)throw TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");let n=window.location.href;if(!t&&!URL.canParse(e,n))throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a valid URL or file path when `raw` is false");let r=t?URL.createObjectURL(new Blob([e],{type:`text/css`})):new URL(e,n).href;LF.add(r)},QDe=(e,t)=>{if(console.warn(`Custom preview templates are not yet supported in Sveltia CMS.`),typeof e!=`string`)throw TypeError("The `name` option for `CMS.registerPreviewTemplate()` must be a string");if(typeof t!=`function`)throw TypeError("The `component` option for `CMS.registerPreviewTemplate()` must be a function");_ae.set(e,t)},Z9=(e,t,n,r)=>{console.warn(`Custom field types (widgets) are not yet supported in Sveltia CMS.`)},Q9=new Proxy({init:X9,registerCustomFormat:JDe,registerEditorComponent:YDe,registerEventListener:XDe,registerFieldType:Z9,registerPreviewStyle:ZDe,registerPreviewTemplate:QDe,registerWidget:Z9},{get:(e,t)=>{if(t in e)return e[t];let n=``;if(KDe.includes(t)&&(n=`CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it.`),n)return console.warn(`${n} See %s for compatibility information.`,t,qDe),()=>void 0}}),window.CMS=Q9,window.initCMS=X9,window.createClass=GDe.default,window.createElement=J9.createElement,window.h=J9.createElement,document.querySelector(`link[rel="stylesheet"][href$="/sveltia-cms.css"]`)&&console.warn("Sveltia CMS does not require a stylesheet. Remove the invalid `<link>` tag referencing `sveltia-cms.css` to avoid unnecessary network requests."),$9=document.querySelector(`script[src$="/sveltia-cms.js"]`),$9?.type===`module`&&console.warn('The Sveltia CMS script is not an ES module. Remove the "type="module" attribute from the `<script>` tag to avoid unexpected behavior when using the JavaScript API.'),document.querySelector(`script[src="https://identity.netlify.com/v1/netlify-identity-widget.js"]`)&&console.warn(`Netlify Identity has been deprecated. The widget is not supported in Sveltia CMS.`),!window.CMS_MANUAL_INIT&&(document.currentScript||$9)&&X9()}))(),e.default=Q9,e.init=X9,e})({});
1214
+
1215
+ @keyframes svelte-7y4msj-fade-in {
1216
+ from {
1217
+ opacity: 0;
1218
+ }
1219
+
1220
+ to {
1221
+ opacity: 1;
1222
+ }
1223
+ }html:active-view-transition-type(forwards) {
1224
+ @media (width < 768px) {&::view-transition-old(page-root) {z-index:999;
1225
+ animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left;
1226
+
1227
+ @media (prefers-reduced-motion) {
1228
+ animation: none;
1229
+ }}&::view-transition-new(page-root) {
1230
+ @media (width < 768px) {z-index:1000;
1231
+ animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right;
1232
+ }
1233
+
1234
+ @media (prefers-reduced-motion) {
1235
+ animation: none;
1236
+ }}&:dir(rtl) {&::view-transition-old(page-root) {
1237
+ animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right-rtl;}&::view-transition-new(page-root) {
1238
+ animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left-rtl;}}
1239
+ }}html:active-view-transition-type(backwards) {
1240
+ @media (width < 768px) {&::view-transition-old(page-root) {z-index:1000;
1241
+ animation: 100ms ease-in both svelte-7y4msj-slide-out-to-right;
1242
+
1243
+ @media (prefers-reduced-motion) {
1244
+ animation: none;
1245
+ }}&::view-transition-new(page-root) {z-index:999;
1246
+ animation: 100ms ease-in both svelte-7y4msj-slide-in-from-left;
1247
+
1248
+ @media (prefers-reduced-motion) {
1249
+ animation: none;
1250
+ }}&:dir(rtl) {&::view-transition-old(page-root) {
1251
+ animation: 100ms ease-in both svelte-7y4msj-slide-out-to-left-rtl;}&::view-transition-new(page-root) {
1252
+ animation: 100ms ease-in both svelte-7y4msj-slide-in-from-right-rtl;}}
1253
+ }}html:active-view-transition-type(unknown) {&::view-transition-old(page-main) {
1254
+ animation: 100ms ease-in both svelte-7y4msj-fade-out;
1255
+
1256
+ @media (prefers-reduced-motion) {
1257
+ animation: none;
1258
+ }}&::view-transition-new(page-main) {
1259
+ animation: 100ms ease-in both svelte-7y4msj-fade-in;
1260
+
1261
+ @media (prefers-reduced-motion) {
1262
+ animation: none;
1263
+ }}}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;}`}})),GDe,J9,KDe,qDe,Y9,X9,JDe,YDe,XDe,ZDe,QDe,Z9,Q9,$9;return s((()=>{p(),GDe=u(v(),1),J9=h(),oc(),kF(),RF(),Xk(),yb(),WDe(),KDe=[`getBackend`,`getCustomFormats`,`getCustomFormatsExtensions`,`getCustomFormatsFormatters`,`getEditorComponents`,`getEventListeners`,`getLocale`,`getMediaLibrary`,`getPreviewStyles`,`getPreviewTemplate`,`getRemarkPlugins`,`getWidget`,`getWidgetValueSerializer`,`getWidgets`,`invokeEvent`,`moment`,`registerBackend`,`registerMediaLibrary`,`registerWidgetValueSerializer`,`removeEventListener`,`resolveWidget`,`registerLocale`,`registerRemarkPlugin`],qDe=`https://sveltiacms.app/en/docs/migration/netlify-decap-cms#features-not-to-be-implemented`,Y9=!1,X9=async({config:e}={})=>{if(e!==void 0&&!d(e))throw TypeError("The `config` option for `CMS.init()` must be an object");Y9||(Y9=!0,document.readyState===`loading`&&!document.querySelector(`#nc-root`)&&await new Promise(e=>{window.addEventListener(`DOMContentLoaded`,()=>e(void 0),{once:!0})}),za(RDe,{target:document.querySelector(`#nc-root`)??document.body,props:{config:e}}))},JDe=(e,t,{fromFile:n,toFile:r}={})=>{if(typeof e!=`string`)throw TypeError("The `name` option for `CMS.registerCustomFormat()` must be a string");if(typeof t!=`string`)throw TypeError("The `extension` option for `CMS.registerCustomFormat()` must be a string");if(typeof n!=`function`&&typeof r!=`function`)throw Error("At least one of `fromFile` or `toFile` must be provided to `CMS.registerCustomFormat()`");if(n!==void 0&&typeof n!=`function`)throw TypeError("The `fromFile` option for `CMS.registerCustomFormat()` must be a function");if(r!==void 0&&typeof r!=`function`)throw TypeError("The `toFile` option for `CMS.registerCustomFormat()` must be a function");fb.set(e,{extension:t,parser:n,formatter:r})},YDe=e=>{if(!e||typeof e!=`object`)throw TypeError("The `definition` option for `CMS.registerEditorComponent()` must be an object");if(typeof e.id!=`string`)throw TypeError("The `definition.id` must be a string");if(typeof e.label!=`string`)throw TypeError("The `definition.label` must be a string");if(typeof e.pattern!=`object`||!(e.pattern instanceof RegExp))throw TypeError("The `definition.pattern` must be a RegExp");if(typeof e.toBlock!=`function`)throw TypeError("The `definition.toBlock` must be a function");if(typeof e.toPreview!=`function`)throw TypeError("The `definition.toPreview` must be a function");if(!Array.isArray(e.fields))throw TypeError("The `definition.fields` must be an array");Kk.set(e.id,e)},XDe=e=>{if(!d(e))throw TypeError(`The event listener must be an object`);let{name:t,handler:n}=e;if(typeof t!=`string`||typeof n!=`function`)throw TypeError("The event listener must have a string `name` property and a function `handler` property");if(!EF.includes(t))throw RangeError(`Unsupported event listener name "${t}". Supported names are: ${EF.join(`, `)}`);DF.add(e)},ZDe=(e,{raw:t=!1}={})=>{if(typeof e!=`string`)throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a string");if(typeof t!=`boolean`)throw TypeError("The `raw` option for `CMS.registerPreviewStyle()` must be a boolean");let n=window.location.href;if(!t&&!URL.canParse(e,n))throw TypeError("The `style` option for `CMS.registerPreviewStyle()` must be a valid URL or file path when `raw` is false");let r=t?URL.createObjectURL(new Blob([e],{type:`text/css`})):new URL(e,n).href;LF.add(r)},QDe=(e,t)=>{if(console.warn(`Custom preview templates are not yet supported in Sveltia CMS.`),typeof e!=`string`)throw TypeError("The `name` option for `CMS.registerPreviewTemplate()` must be a string");if(typeof t!=`function`)throw TypeError("The `component` option for `CMS.registerPreviewTemplate()` must be a function");_ae.set(e,t)},Z9=(e,t,n,r)=>{console.warn(`Custom field types (widgets) are not yet supported in Sveltia CMS.`)},Q9=new Proxy({init:X9,registerCustomFormat:JDe,registerEditorComponent:YDe,registerEventListener:XDe,registerFieldType:Z9,registerPreviewStyle:ZDe,registerPreviewTemplate:QDe,registerWidget:Z9},{get:(e,t)=>{if(t in e)return e[t];let n=``;if(KDe.includes(t)&&(n=`CMS.%s() is not supported in Sveltia CMS, and we don’t have any plans to implement it.`),n)return console.warn(`${n} See %s for compatibility information.`,t,qDe),()=>void 0}}),window.CMS=Q9,window.initCMS=X9,window.createClass=GDe.default,window.createElement=J9.createElement,window.h=J9.createElement,document.querySelector(`link[rel="stylesheet"][href$="/sveltia-cms.css"]`)&&console.warn("Sveltia CMS does not require a stylesheet. Remove the invalid `<link>` tag referencing `sveltia-cms.css` to avoid unnecessary network requests."),$9=document.querySelector(`script[src$="/sveltia-cms.js"]`),$9?.type===`module`&&console.warn('The Sveltia CMS script is not an ES module. Remove the "type="module" attribute from the `<script>` tag to avoid unexpected behavior when using the JavaScript API.'),document.querySelector(`script[src="https://identity.netlify.com/v1/netlify-identity-widget.js"]`)&&console.warn(`Netlify Identity has been deprecated. The widget is not supported in Sveltia CMS.`),!window.CMS_MANUAL_INIT&&(document.currentScript||$9)&&X9()}))(),e.default=Q9,e.init=X9,e})({});
1178
1264
  //# sourceMappingURL=sveltia-cms.js.map