@sveltia/cms 0.161.1 → 0.162.1

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.
@@ -14,7 +14,7 @@ object-assign
14
14
  (c) Sindre Sorhus
15
15
  @license MIT
16
16
  */
17
- var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),g=s(((e,t)=>{var n=h(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),_=s(((e,t)=>{var n=m(),r=g();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),v=o((()=>{})),y=o((()=>{})),b=o((()=>{v(),y()}));function x(e){return typeof e==`function`}function S(e){return typeof e?.then==`function`}function C(e){for(var t=0;t<e.length;t++)e[t]()}function w(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function T(e,t,n=!1){return e===void 0?n?t():t:e}function ee(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var te,ne,re,ie,ae,oe,se,ce,le,ue,de,E,fe=o((()=>{te=Array.isArray,ne=Array.prototype.indexOf,re=Array.prototype.includes,ie=Array.from,ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,se=Object.getOwnPropertyDescriptors,ce=Object.prototype,le=Array.prototype,ue=Object.getPrototypeOf,de=Object.isExtensible,E=()=>{}})),pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be=o((()=>{pe=1<<24,me=1024,he=2048,ge=4096,_e=8192,ve=16384,ye=32768,be=1<<25,xe=65536,Se=1<<18,Ce=1<<19,we=1<<20,Te=1<<25,Ee=65536,De=1<<21,Oe=1<<22,ke=1<<23,Ae=Symbol(`$state`),je=Symbol(`legacy props`),Me=Symbol(``),Ne=Symbol(`attributes`),Pe=Symbol(`class`),Fe=Symbol(`style`),Ie=Symbol(`text`),Le=Symbol(`form reset`),Re=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ze=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)}));function Ve(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}var He=o((()=>{b()}));function Ue(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function We(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ke(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function qe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Je(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Xe(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ze(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Qe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function $e(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function et(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var tt=o((()=>{b(),He()})),nt,rt,it,at,ot,st=o((()=>{nt={},rt=Symbol(),it=`http://www.w3.org/1999/xhtml`,at=`http://www.w3.org/2000/svg`,ot=`http://www.w3.org/1998/Math/MathML`}));function ct(){console.warn(`https://svelte.dev/e/derived_inert`)}function lt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ut(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function dt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var ft=o((()=>{b()}));function pt(e){yt=e}function mt(e){if(e===null)throw lt(),nt;return bt=e}function ht(){return mt(Ar(bt))}function D(e){if(yt){if(Ar(bt)!==null)throw lt(),nt;bt=e}}function gt(e=1){if(yt){for(var t=e,n=bt;t--;)n=Ar(n);bt=n}}function _t(e=!0){for(var t=0,n=bt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Ar(n);e&&n.remove(),n=i}}function vt(e){if(!e||e.nodeType!==8)throw lt(),nt;return e.data}var yt,bt,xt=o((()=>{Be(),st(),ft(),Br(),yt=!1}));function St(e){return e===this.v}function Ct(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function wt(e){return!Ct(e,this.v)}var Tt=o((()=>{})),Et,Dt,Ot=o((()=>{Et=!1,Dt=!1})),kt=o((()=>{b()}));function At(e,t=!1,n=!1){return jt(e,new Map,``,Mt,null,n)}function jt(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(te(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=jt(l,t,n,r,null,a))}return s}if(ue(e)===ce){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=jt(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return jt(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var Mt,Nt=o((()=>{b(),kt(),fe(),Mt=[]})),Pt=o((()=>{Nt(),Be(),Ci(),ea()})),Ft=o((()=>{b(),fe(),He()}));function It(e){Ht=e}function Lt(e){return Bt(`getContext`).get(e)}function Rt(e,t){let n=Bt(`setContext`);if(Et){var r=Ki.f;!Wi&&r&32&&!Ht.i||Xe()}return n.set(e,t),t}function O(e,t=!1,n){Ht={p:Ht,i:!1,c:null,e:null,s:e,x:null,r:Ki,l:Dt&&!t?{s:null,u:null,$:[]}:null}}function k(e){var t=Ht,n=t.e;if(n!==null){t.e=null;for(var r of n)ti(r)}return e!==void 0&&(t.x=e),t.i=!0,Ht=t.p,e??{}}function zt(){return!Dt||Ht!==null&&Ht.l===null}function Bt(e){return Ht===null&&Ve(e),Ht.c??=new Map(Vt(Ht)||void 0)}function Vt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ht,Ut=o((()=>{b(),tt(),ea(),Ci(),Ot(),Be(),Ht=null}));function Wt(){var e=qt;qt=[],C(e)}function Gt(e){if(qt.length===0&&!Rn){var t=qt;queueMicrotask(()=>{t===qt&&Wt()})}qt.push(e)}function Kt(){for(;qt.length>0;)Wt()}var qt,Jt=o((()=>{fe(),Kn(),qt=[]}));function Yt(e){var t=Ki;if(t===null)return Wi.f|=ke,e;if(!(t.f&32768)&&!(t.f&4))throw e;Xt(e,t)}function Xt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Zt=o((()=>{b(),st(),Br(),Be(),fe(),ea()}));function Qt(e,t){e.f=e.f&en|t}function $t(e){e.f&512||e.deps===null?Qt(e,me):Qt(e,ge)}var en,tn=o((()=>{Be(),en=~(he|ge|me)}));function nn(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=Ee,nn(t.deps))}function rn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nn(e.deps),Qt(e,me)}var an=o((()=>{Be(),tn()}));function on(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=B(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var sn=o((()=>{ea(),fe()}));function cn(e,t){return{subscribe:ln(e,t).subscribe}}function ln(e,t=E){let n=null,r=new Set;function i(t){if(Ct(e,t)&&(e=t,n)){let t=!dn.length;for(let t of r)t[1](),dn.push(t,e);if(t){for(let e=0;e<dn.length;e+=2)dn[e][0](dn[e+1]);dn.length=0}}}function a(t){i(t(e))}function o(o,s=E){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||E),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function un(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return cn(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>on(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){C(d),l(),o=!1}})}function A(e){let t;return on(e,e=>t=e)(),t}var dn,fn=o((()=>{fe(),Tt(),sn(),dn=[]}));function j(e,t,n){let r=n[t]??={store:null,source:pr(void 0),unsubscribe:E};if(r.store!==e&&!(xn in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=on(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}return e&&xn in n?A(e):z(r.source)}function pn(e,t){return hn(e,t),t}function mn(){let e={};function t(){$r(()=>{for(var t in e)e[t].unsubscribe();ae(e,xn,{enumerable:!1,value:!0})})}return[e,t]}function hn(e,t){yn=!0;try{e.set(t)}finally{yn=!1}}function gn(e,t,n){return hn(e,n),t}function _n(){bn=!0}function vn(e){var t=bn;try{return bn=!1,[e(),bn]}finally{bn=t}}var yn,bn,xn,Sn=o((()=>{sn(),fn(),fe(),ea(),Ci(),xr(),b(),yn=!1,bn=!1,xn=Symbol()})),Cn=o((()=>{Be(),Nt(),ea()}));function wn(e){var t=Rn;Rn=!0;try{var n;for(e&&(Pn!==null&&!Pn.is_fork&&Pn.flush(),n=e());;){if(Kt(),Pn===null)return n;Pn.flush()}}finally{Rn=t}}function Tn(){try{Je()}catch(e){Xt(e,Ln)}}function En(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ni(r)&&(Gn=new Set,Ri(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&_i(r),Gn?.size>0)){yr.clear();for(let e of Gn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Gn.has(n)&&(Gn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Ri(n)}}Gn.clear()}}Gn=null}}function Dn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Dn(i,t,n,r):e&4194320&&!(e&2048)&&On(i,t,r)&&(Qt(i,he),kn(i))}}function On(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(re.call(t,r))return!0;if(r.f&2&&On(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function kn(e){Pn.schedule(e)}function An(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Qt(e,me);for(var n=e.first;n!==null;)An(n,t),n=n.next}}function jn(e){Qt(e,me);for(var t=e.first;t!==null;)jn(t),t=t.next}var Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn=o((()=>{Be(),Ot(),fe(),ea(),tt(),Jt(),b(),Zt(),xr(),Ci(),an(),st(),tn(),Sn(),Ft(),Cn(),Mn=null,Nn=null,Pn=null,Fn=null,In=null,Ln=null,Rn=!1,zn=!1,Bn=null,Vn=null,Hn=0,Un=1,Wn=class e{id=Un++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)Qt(r,he),t(r);for(r of n.m)Qt(r,ge),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,Hn++>1e3&&(this.#w(),Tn()),!this.#g()){for(let e of this.#d)this.#f.delete(e),Qt(e,he),this.schedule(e);for(let e of this.#f)Qt(e,ge),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=Bn=[],r=[],i=Vn=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw jn(e),t}if(Pn=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Bn=null,Vn=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)An(e,t);i.length>0&&Pn.#_();return}let o=this.#y();if(o){o.#b(this);return}this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),Fn=this,En(r),En(n),Fn=null,this.#c?.resolve();var s=Pn;if(this.linked&&this.#o===0&&this.#w(),Et&&!this.linked&&(this.#S(),Pn=s),this.#l.length>0){s===null&&(s=this,this.#C());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}#v(e,t,n){e.f^=me;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=me:i&4?t.push(r):Et&&i&16777224?n.push(r):Ni(r)&&(i&16&&this.#f.add(r),Ri(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#f.delete(i),Qt(i,he),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),Pn=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)rn(e[t],this.#d,this.#f)}capture(e,t,n=!1){e.v!==rt&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),In?.set(e,t)),this.is_fork||(e.v=t)}activate(){Pn=this}deactivate(){Pn=null,In=null}flush(){try{zn=!0,Pn=this,this.#_()}finally{Hn=0,Ln=null,Bn=null,Vn=null,zn=!1,Pn=null,In=null,yr.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#w()}register_created_effect(e){this.#u.push(e)}#S(){this.#w();for(let l=Mn;l!==null;l=l.#n){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=l.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(l.#e){var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#m)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#x([e])});l.activate();var i=new Set,a=new Map;for(var o of t)Dn(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e.v:!0);if(s.length>0)for(let e of this.#u)!(e.f&155648)&&On(e,s,a)&&(e.f&4194320?(Qt(e,he),l.schedule(e)):l.#d.add(e));if(l.#l.length>0){l.apply();for(var c of l.#l)l.#v(c,[],[]);l.#l=[]}l.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,Gt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=w()).promise}static ensure(){if(Pn===null){let t=Pn=new e;t.#C(),!zn&&!Rn&&Gt(()=>{t.#e||t.flush()})}return Pn}apply(){if(!Et||!this.is_fork&&this.#t===null&&this.#n===null){In=null;return}In=new Map;for(let[e,[t]]of this.current)In.set(e,t);for(let t=Mn;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)In.has(e)||In.set(e,n)}}schedule(e){if(Ln=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Bn!==null&&t===Ki&&(Et||(Wi===null||!(Wi.f&2))&&!yn))return;if(n&96){if(!(n&1024))return;t.f^=me}}this.#l.push(t)}#C(){Nn===null?Mn=Nn=this:(Nn.#n=this,this.#t=Nn),Nn=this}#w(){var e=this.#t,t=this.#n;e===null?Mn=t:e.#n=t,t===null?Nn=e:t.#t=e,this.linked=!1}},Gn=null}));function eee(e){let t=0,n=fr(0),r;return()=>{Qr()&&(z(n),si(()=>(t===0&&(r=B(()=>e(()=>gr(n)))),t+=1,()=>{Gt(()=>{--t,t===0&&(r?.(),r=void 0,gr(n))})})))}}var qn=o((()=>{ea(),Ci(),xr(),Pt(),b(),Jt()}));function Jn(e,t,n,r){new Xn(e,t,n,r)}var Yn,Xn,Zn=o((()=>{Be(),st(),Ut(),Zt(),Ci(),ea(),xt(),Jt(),tt(),ft(),b(),Kn(),xr(),Pt(),qn(),Br(),an(),Yn=xe|Ce,Xn=class{parent;is_pending=!1;transform_error;#e;#t=yt?bt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=eee(()=>(this.#m=fr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Ki;t.b=this,t.f|=128,n(e)},this.parent=Ki.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=li(()=>{if(yt){let e=this.#t;ht();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Yn),yt&&(this.#e=bt)}#g(){try{this.#a=di(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=di(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=di(()=>e(this.#e)),Gt(()=>{var e=this.#c=document.createDocumentFragment(),t=Or();e.append(t),this.#a=this.#x(()=>di(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,vi(this.#o,()=>{this.#o=null}),this.#b(Pn))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=di(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Si(this.#a,e);let t=this.#n.pending;this.#o=di(()=>t(this.#e))}else this.#b(Pn)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=Ki,n=Wi,r=Ht;Oi(this.#i),Di(this.#i),It(this.#i.ctx);try{return Wn.ensure(),e()}catch(e){return Yt(e),null}finally{Oi(t),Di(n),It(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&vi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Gt(()=>{this.#d=!1,this.#m&&mr(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Pn?.is_fork?(this.#a&&Pn.skip_effect(this.#a),this.#o&&Pn.skip_effect(this.#o),this.#s&&Pn.skip_effect(this.#s),Pn.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(hi(this.#a),null),this.#o&&=(hi(this.#o),null),this.#s&&=(hi(this.#s),null),yt&&(mt(this.#t),gt(),mt(_t()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){dt();return}r=!0,i&&et(),this.#s!==null&&vi(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Xt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return di(()=>{var t=Ki;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Xt(e,this.#i.parent),null}}))};Gt(()=>{var t;try{t=this.transform_error(e)}catch(e){Xt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Xt(e,this.#i&&this.#i.parent)):o(t)})}}}));function Qn(e,t,n,r){let i=zt()?rr:ar;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=Ki,s=$n(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){Xt(e,o)}er()}}var u=tr();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>ir(e))).then(e=>l([...t.map(i),...e])).catch(e=>Xt(e,o)).finally(u)}c?c.then(()=>{s(),d(),er()}):d()}function $n(){var e=Ki,t=Wi,n=Ht,r=Pn;return function(i=!0){Oi(e),Di(t),It(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function er(e=!0){Oi(null),Di(null),It(null),e&&Pn?.deactivate()}function tr(){var e=Ki,t=e.b,n=Pn,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}var nr=o((()=>{Be(),b(),Ut(),Zn(),Zt(),ea(),Kn(),dr(),Ci()}));function rr(e){var t=2|he;return Ki!==null&&(Ki.f|=Ce),{ctx:Ht,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:rt,wv:0,parent:Ki,ac:null}}function ir(e,t,n){let r=Ki;r===null&&Ue();var i=void 0,a=fr(rt),o=!Wi,s=new Set;return oi(()=>{var t=Ki,n=w();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Re&&n.reject(e)}).finally(er)}catch(e){n.reject(e),er()}var c=Pn;if(o){if(t.f&32768)var l=tr();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(ur);else for(let e of s.values())e.reject(ur);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==ur&&(c.activate(),t?(a.f|=ke,mr(a,t)):(a.f&8388608&&(a.f^=ke),mr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),$r(()=>{for(let e of s)e.reject(ur)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=rr(e);return Et||ki(t),t}function ar(e){let t=rr(e);return t.equals=wt,t}function tee(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)hi(t[n])}}function or(e){var t,n=Ki,r=e.parent;if(!Ui&&r!==null&&r.f&24576)return ct(),e.v;Oi(r);try{e.f&=~Ee,tee(e),t=Fi(e)}finally{Oi(n)}return t}function sr(e){var t=or(e);if(!e.equals(t)&&(e.wv=Mi(),(!Pn?.is_fork||e.deps===null)&&(Pn===null?e.v=t:(Pn.capture(e,t,!0),Fn?.capture(e,t,!0)),e.deps===null))){Qt(e,me);return}Ui||(In===null?$t(e):(Qr()||Pn?.is_fork)&&In.set(e,t))}function cr(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Re),t.teardown=E,t.ac=null,Li(t,0),pi(t))}function lr(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Ri(t)}var ur,dr=o((()=>{b(),Be(),ea(),Tt(),tt(),ft(),Ci(),xr(),Ft(),Ot(),Ut(),st(),Kn(),nr(),fe(),tn(),ur=Symbol(`obsolete`)}));function fr(e,t){return{f:0,v:e,reactions:null,equals:St,rv:0,wv:0}}function N(e,t){let n=fr(e,t);return ki(n),n}function pr(e,t=!1,n=!0){let r=fr(e);return t||(r.equals=wt),Dt&&n&&Ht!==null&&Ht.l!==null&&(Ht.l.s??=[]).push(r),r}function P(e,t,n=!1){return Wi!==null&&(!Gi||Wi.f&131072)&&zt()&&Wi.f&4325394&&(qi===null||!re.call(qi,e))&&$e(),mr(e,n?Sr(t):t,Vn)}function mr(e,t,n=null){if(!e.equals(t)){yr.set(e,Ui?t:e.v);var r=Wn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&or(t),In===null&&$t(t)}e.wv=Mi(),_r(e,he,n),zt()&&Ki!==null&&Ki.f&1024&&!(Ki.f&96)&&(Xi===null?Ai([e]):Xi.push(e)),!r.is_fork&&vr.size>0&&!br&&hr()}return t}function hr(){br=!1;for(let e of vr){e.f&1024&&Qt(e,ge);let t;try{t=Ni(e)}catch{t=!0}t&&Ri(e)}vr.clear()}function gr(e){P(e,e.v+1)}function _r(e,t,n){var r=e.reactions;if(r!==null)for(var i=zt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Ki)){var l=(c&he)===0;if(l&&Qt(s,t),c&131072)vr.add(s);else if(c&2){var u=s;In?.delete(u),c&65536||(c&512&&(Ki===null||!(Ki.f&2097152))&&(s.f|=Ee),_r(u,ge,n))}else if(l){var d=s;c&16&&Gn!==null&&Gn.add(d),n===null?kn(d):n.push(d)}}}}var vr,yr,br,xr=o((()=>{b(),ea(),Tt(),Be(),tt(),Ot(),fe(),Pt(),Ft(),Ut(),Kn(),Tr(),dr(),tn(),vr=new Set,yr=new Map,br=!1}));function Sr(e){if(typeof e!=`object`||!e||Ae in e)return e;let t=ue(e);if(t!==ce&&t!==le)return e;var n=new Map,r=te(e),i=N(0),a=null,o=$i,s=e=>{if($i===o)return e();var t=Wi,n=$i;Di(null),ji(o);var r=e();return Di(t),ji(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ze();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(rt,a));n.set(t,e),gr(i)}}else P(r,rt),gr(i);return!0},get(t,r,i){if(r===Ae)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||oe(t,r)?.writable)&&(o=s(()=>N(Sr(c?t[r]:rt),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===rt?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==rt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Ae)return!0;var r=n.get(t),i=r!==void 0&&r.v!==rt||Reflect.has(e,t);return(r!==void 0||Ki!==null&&(!i||oe(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Sr(e[t]):rt,a)),n.set(t,r)),z(r)===rt)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(rt,a)),n.set(d+``,f)):P(f,rt)}if(l===void 0)(!u||oe(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Sr(o)),n.set(t,l));else{u=l.v!==rt;var p=s(()=>Sr(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}gr(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==rt});for(var[r,a]of n)a.v!==rt&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Qe()}})}function Cr(e){try{if(typeof e==`object`&&e&&Ae in e)return e[Ae]}catch{}return e}function wr(e,t){return Object.is(Cr(e),Cr(t))}var Tr=o((()=>{b(),ea(),fe(),xr(),Be(),st(),tt(),Pt(),Ft(),Ot(),new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`])})),Er=o((()=>{ft(),Tr()}));function Dr(){if(Fr===void 0){Fr=window,Ir=document,Lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rr=oe(t,`firstChild`).get,zr=oe(t,`nextSibling`).get,de(e)&&(e[Pe]=void 0,e[Ne]=null,e[Fe]=void 0,e.__e=void 0),de(n)&&(n[Ie]=void 0)}}function Or(e=``){return document.createTextNode(e)}function kr(e){return Rr.call(e)}function Ar(e){return zr.call(e)}function F(e,t){if(!yt)return kr(e);var n=kr(bt);if(n===null)n=bt.appendChild(Or());else if(t&&n.nodeType!==3){var r=Or();return n?.before(r),mt(r),r}return t&&Pr(n),mt(n),n}function I(e,t=!1){if(!yt){var n=kr(e);return n instanceof Comment&&n.data===``?Ar(n):n}if(t){if(bt?.nodeType!==3){var r=Or();return bt?.before(r),mt(r),r}Pr(bt)}return bt}function L(e,t=1,n=!1){let r=yt?bt:e;for(var i;t--;)i=r,r=Ar(r);if(!yt)return r;if(n){if(r?.nodeType!==3){var a=Or();return r===null?i?.after(a):r.before(a),mt(a),a}Pr(r)}return mt(r),r}function jr(e){e.textContent=``}function Mr(){return!Et||Gn!==null?!1:(Ki.f&ye)!==0}function Nr(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Pr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Fr,Ir,Lr,Rr,zr,Br=o((()=>{xt(),b(),Er(),fe(),ea(),Ot(),Be(),Kn(),st()}));function Vr(e,t){if(t){let t=document.body;e.autofocus=!0,Gt(()=>{document.activeElement===t&&e.focus()})}}function Hr(e){yt&&kr(e)!==null&&jr(e)}function Ur(){Wr||(Wr=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Le]?.()})},{capture:!0}))}var Wr,Gr=o((()=>{xt(),Br(),Jt(),Be(),Wr=!1}));function Kr(e){var t=Wi,n=Ki;Di(null),Oi(null);try{return e()}finally{Di(t),Oi(n)}}function qr(e,t,n,r=n){e.addEventListener(t,()=>Kr(n));let i=e[Le];i?e[Le]=()=>{i(),r(!0)}:e[Le]=()=>r(!0),Ur()}var Jr=o((()=>{Ci(),ea(),Be(),Gr()}));function Yr(e){Ki===null&&(Wi===null&&qe(e),Ke()),Ui&&Ge(e)}function Xr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Zr(e,t){var n=Ki;n!==null&&n.f&8192&&(e|=_e);var r={ctx:Ht,deps:null,nodes:null,f:e|he|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Pn?.register_created_effect(r);var i=r;if(e&4)Bn===null?Wn.ensure().schedule(r):Bn.push(r);else if(t!==null){try{Ri(r)}catch(e){throw hi(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=xe))}if(i!==null&&(i.parent=n,n!==null&&Xr(i,n),Wi!==null&&Wi.f&2&&!(e&64))){var a=Wi;(a.effects??=[]).push(i)}return r}function Qr(){return Wi!==null&&!Gi}function $r(e){let t=Zr(8,null);return Qt(t,me),t.teardown=e,t}function ei(e){Yr(`$effect`);var t=Ki.f;if(!Wi&&t&32&&!(t&32768)){var n=Ht;(n.e??=[]).push(e)}else return ti(e)}function ti(e){return Zr(4|we,e)}function ni(e){return Yr(`$effect.pre`),Zr(8|we,e)}function ri(e){Wn.ensure();let t=Zr(64|Ce,e);return()=>{hi(t)}}function ii(e){Wn.ensure();let t=Zr(64|Ce,e);return(e={})=>new Promise(n=>{e.outro?vi(t,()=>{hi(t),n(void 0)}):(hi(t),n(void 0))})}function ai(e){return Zr(4,e)}function oi(e){return Zr(Oe|Ce,e)}function si(e,t=0){return Zr(8|t,e)}function R(e,t=[],n=[],r=[]){Qn(r,t,n,t=>{Zr(8,()=>e(...t.map(z)))})}function ci(e,t=[],n=[],r=[]){Qn(r,t,n,t=>{Zr(4,()=>e(...t.map(z)))})}function li(e,t=0){return Zr(16|t,e)}function ui(e,t=0){return Zr(pe|t,e)}function di(e){return Zr(32|Ce,e)}function fi(e){var t=e.teardown;if(t!==null){let e=Ui,n=Wi;Ei(!0),Di(null);try{t.call(null)}finally{Ei(e),Di(n)}}}function pi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Kr(()=>{e.abort(Re)});var r=n.next;n.f&64?n.parent=null:hi(n,t),n=r}}function mi(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||hi(t),t=n}}function hi(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(gi(e.nodes.start,e.nodes.end),n=!0),Qt(e,be),pi(e,t&&!n),Li(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();fi(e),e.f^=be,e.f|=ve;var i=e.parent;i!==null&&i.first!==null&&_i(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function gi(e,t){for(;e!==null;){var n=e===t?null:Ar(e);e.remove(),e=n}}function _i(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function vi(e,t,n=!0){var r=[];yi(e,r,!0);var i=()=>{n&&hi(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function yi(e,t,n){if(!(e.f&8192)){e.f^=_e;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;yi(i,t,o?n:!1)}i=a}}}function bi(e){xi(e,!0)}function xi(e,t){if(e.f&8192){e.f^=_e,e.f&1024||(Qt(e,he),Wn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;xi(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Si(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Ar(n);t.append(n),n=i}}var Ci=o((()=>{ea(),Be(),tt(),b(),fe(),Br(),Ut(),Kn(),nr(),Jr(),tn()})),wi,Ti=o((()=>{xr(),ea(),wi=null}));function Ei(e){Ui=e}function Di(e){Wi=e}function Oi(e){Ki=e}function ki(e){Wi!==null&&(!Et||Wi.f&2)&&(qi===null?qi=[e]:qi.push(e))}function Ai(e){Xi=e}function ji(e){$i=e}function Mi(){return++Zi}function Ni(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~Ee),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ni(a)&&sr(a),a.wv>e.wv)return!0}t&512&&In===null&&Qt(e,me)}return!1}function Pi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Et&&qi!==null&&re.call(qi,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Pi(a,t,!1):t===a&&(n?Qt(a,he):a.f&1024&&Qt(a,ge),kn(a))}}function Fi(e){var t=Ji,n=Yi,r=Xi,i=Wi,a=qi,o=Ht,s=Gi,c=$i,l=e.f;Ji=null,Yi=0,Xi=null,Wi=l&96?null:e,qi=null,It(e.ctx),Gi=!1,$i=++Qi,e.ac!==null&&(Kr(()=>{e.ac.abort(Re)}),e.ac=null);try{e.f|=De;var u=e.fn,d=u();e.f|=ye;var f=e.deps,p=Pn?.is_fork;if(Ji!==null){var m;if(p||Li(e,Yi),f!==null&&Yi>0)for(f.length=Yi+Ji.length,m=0;m<Ji.length;m++)f[Yi+m]=Ji[m];else e.deps=f=Ji;if(Qr()&&e.f&512)for(m=Yi;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Yi<f.length&&(Li(e,Yi),f.length=Yi);if(zt()&&Xi!==null&&!Gi&&f!==null&&!(e.f&6146))for(m=0;m<Xi.length;m++)Pi(Xi[m],e);if(i!==null&&i!==e){if(Qi++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Qi;if(t!==null)for(let e of t)e.rv=Qi;Xi!==null&&(r===null?r=Xi:r.push(...Xi))}return e.f&8388608&&(e.f^=ke),d}catch(e){return Yt(e)}finally{e.f^=De,Ji=t,Yi=n,Xi=r,Wi=i,qi=a,It(o),Gi=s,$i=c}}function Ii(e,t){let n=t.reactions;if(n!==null){var r=ne.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Ji===null||!re.call(Ji,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~Ee),a.v!==rt&&$t(a),cr(a),Li(a,0)}}function Li(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ii(e,n[r])}function Ri(e){var t=e.f;if(!(t&16384)){Qt(e,me);var n=Ki,r=Hi;Ki=e,Hi=!0;try{t&16777232?mi(e):pi(e),fi(e);var i=Fi(e);e.teardown=typeof i==`function`?i:null,e.wv=Zi}finally{Hi=r,Ki=n}}}async function zi(){if(Et)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),wn()}function z(e){var t=(e.f&2)!=0;if(wi?.add(e),Wi!==null&&!Gi&&!(Ki!==null&&Ki.f&16384)&&(qi===null||!re.call(qi,e))){var n=Wi.deps;if(Wi.f&2097152)e.rv<Qi&&(e.rv=Qi,Ji===null&&n!==null&&n[Yi]===e?Yi++:Ji===null?Ji=[e]:Ji.push(e));else{(Wi.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[Wi]:re.call(r,Wi)||r.push(Wi)}}if(Ui&&yr.has(e))return yr.get(e);if(t){var i=e;if(Ui){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Vi(i))&&(a=or(i)),yr.set(i,a),a}var o=(i.f&512)==0&&!Gi&&Wi!==null&&(Hi||(Wi.f&512)!=0),s=(i.f&ye)===0;Ni(i)&&(o&&(i.f|=512),sr(i)),o&&!s&&(lr(i),Bi(i))}if(In?.has(e))return In.get(e);if(e.f&8388608)throw e.v;return e.v}function Bi(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(lr(t),Bi(t))}function Vi(e){if(e.v===rt)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(yr.has(t)||t.f&2&&Vi(t))return!0;return!1}function B(e){var t=Gi;try{return Gi=!0,e()}finally{Gi=t}}var Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea=o((()=>{b(),fe(),Ci(),Be(),xr(),dr(),Ot(),Pt(),Ft(),Ut(),Kn(),Zt(),st(),Ti(),Jr(),tn(),ft(),Hi=!1,Ui=!1,Wi=null,Gi=!1,Ki=null,qi=null,Ji=null,Yi=0,Xi=null,Zi=1,Qi=0,$i=Qi})),ta=o((()=>{Y(),sc(),Ci()}));function na(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function ra(e){return sa.includes(e)}function ia(e){return e=e.toLowerCase(),la[e]??e}function aa(e){return ua.includes(e)}function oa(e){return fa.includes(e)}var sa,ca,la,ua,da,fa,pa=o((()=>{sa=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],ca=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),la={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...ca],ua=[`touchstart`,`touchmove`],da=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...da],fa=[`textarea`,`script`,`style`,`title`]})),ma=o((()=>{Be(),pa(),ea()})),ha=o((()=>{})),ga=o((()=>{Be(),xt(),Ut()}));function _a(e){if(!yt)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function va(e,t,n,r={}){function i(e){if(r.capture||Ca.call(t,e),!e.cancelBubble)return Kr(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Gt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ya(e,t,n,r={}){var i=va(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ba(e,t,n,r,i){var a={capture:r,passive:i},o=va(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$r(()=>{t.removeEventListener(e,o,a)})}function xa(e,t,n){(t[wa]??={})[e]=n}function Sa(e){for(var t=0;t<e.length;t++)Ta.add(e[t]);for(var n of Ea)n(e)}function Ca(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Da=e;var o=0,s=Da===e&&e[wa];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[wa]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){ae(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Wi,d=Ki;Di(null),Oi(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[wa]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[wa]=t,delete e.currentTarget,Di(u),Oi(d)}}}var wa,Ta,Ea,Da,Oa=o((()=>{Ci(),fe(),xt(),Jt(),ea(),Jr(),wa=Symbol(`events`),Ta=new Set,Ea=new Set,Da=null}));function ka(e){return ja?.createHTML(e)??e}function Aa(e){var t=Nr(`template`);return t.innerHTML=ka(e.replaceAll(`<!>`,`<!---->`)),t.content}var ja,Ma=o((()=>{Br(),ja=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})}));function Na(e,t){var n=Ki;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function V(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(yt)return Na(bt,null),bt;i===void 0&&(i=Aa(a?e:`<!>`+e),n||(i=kr(i)));var t=r||Lr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=kr(t),s=t.lastChild;Na(o,s)}else Na(t,t);return t}}function Pa(e=``){if(!yt){var t=Or(e+``);return Na(t,t),t}var n=bt;return n.nodeType===3?Pr(n):(n.before(n=Or()),mt(n)),Na(n,n),n}function H(){if(yt)return Na(bt,null),bt;var e=document.createDocumentFragment(),t=document.createComment(``),n=Or();return e.append(t,n),Na(t,n),e}function U(e,t){if(yt){var n=Ki;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=bt),ht();return}e!==null&&e.before(t)}function Fa(){if(yt&&bt&&bt.nodeType===8&&bt.textContent?.startsWith(`$`)){let e=bt.textContent.substring(1);return ht(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}var Ia=o((()=>{xt(),Br(),Ma(),ea(),st(),Be()}));function La(e){Va=e}function W(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ie]??=e.nodeValue)&&(e[Ie]=n,e.nodeValue=`${n}`)}function Ra(e,t){return za(e,t)}function za(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Dr();var c=void 0,l=ii(()=>{var l=n??t.appendChild(Or());Jn(l,{pending:()=>{}},t=>{O({});var n=Ht;if(a&&(n.c=a),i&&(r.$$events=i),yt&&Na(t,null),Va=o,c=e(t,r)||{},Va=!0,yt&&(Ki.nodes.end=bt,bt===null||bt.nodeType!==8||bt.data!==`]`))throw lt(),nt;k()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=aa(r);for(let e of[t,document]){var a=Ha.get(e);a===void 0&&(a=new Map,Ha.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Ca,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(ie(Ta)),Ea.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Ha.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ca),r.delete(e),r.size===0&&Ha.delete(n)):r.set(e,i)}Ea.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Ua.set(c,l),c}function Ba(e,t){let n=Ua.get(e);return n?(Ua.delete(e),n(t)):Promise.resolve()}var Va,Ha,Ua,Wa=o((()=>{b(),Br(),st(),ea(),Ut(),Ci(),xt(),fe(),Oa(),ft(),tt(),Ia(),pa(),Be(),Zn(),Ha=new Map,Ua=new WeakMap})),Ga=o((()=>{Be(),xt(),Ci(),xr(),Wa(),ea()})),Ka=o((()=>{fe(),Be(),Ut(),pa()})),qa=o((()=>{tt(),Ut()})),Ja=o((()=>{Nt(),Ci(),ea(),Ft()})),Ya=o((()=>{nr(),ea(),xt()})),Xa=o((()=>{tt()})),Za,Qa=o((()=>{Kn(),Ci(),Be(),xt(),Br(),b(),Za=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)bi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(hi(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Si(r,t),t.append(Or()),this.#n.set(e,{effect:r,fragment:t})}else hi(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),vi(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(hi(n.effect),this.#n.delete(e))};ensure(e,t){var n=Pn,r=Mr();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=Or();i.append(a),this.#n.set(e,{effect:di(()=>t(a)),fragment:i})}else this.#t.set(e,di(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else yt&&(this.anchor=bt),this.#a(n)}}}));function $a(e,t,n,r,i){yt&&ht();var a=zt(),o=rt,s=a?fr(o):pr(o,!1,!1),c=a?fr(o):pr(o,!1,!1),l=new Za(e);li(()=>{var a=Pn;a.deactivate();var o=t();a.activate();var u=!1;let d=yt&&S(o)===(e.data===`[!`);if(d&&(mt(_t()),pt(!1)),S(o)){var f=$n(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Wn.ensure(),yt&&pt(!1);try{e()}finally{er(!1),Rn||wn()}}};o.then(t=>{e(()=>{mr(s,t),l.ensure(to,r&&(e=>r(e,s)))})},t=>{e(()=>{if(mr(c,t),l.ensure(no,i&&(e=>i(e,c))),!i)throw c.v})}),yt?l.ensure(eo,n):Gt(()=>{p||e(()=>{l.ensure(eo,n)})})}else mr(s,o),l.ensure(to,r&&(e=>r(e,s)));return d&&pt(!0),()=>{u=!0}})}var eo,to,no,ro=o((()=>{fe(),Ci(),xr(),xt(),Jt(),st(),Ut(),Kn(),Qa(),nr(),eo=0,to=1,no=2}));function G(e,t,n=!1){var r;yt&&(r=bt,ht());var i=new Za(e),a=n?xe:0;function o(e,t){if(yt){var n=vt(r);if(e!==parseInt(n.substring(1))){var a=_t();mt(a),i.anchor=a,pt(!1),i.ensure(e,t),pt(!0);return}}i.ensure(e,t)}li(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var io=o((()=>{Be(),xt(),Ci(),Qa()}));function ao(e,t,n){yt&&ht();var r=new Za(e),i=!zt();li(()=>{var e=t();e!==e&&(e=oo),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var oo,so=o((()=>{Ut(),Ci(),xt(),Qa(),oo=Symbol(`NaN`)}));function co(e,t){yt&&mt(kr(e)),si(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}var lo=o((()=>{Ci(),xt(),Br()}));function uo(e,t){return t}function fo(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];vi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;po(e,ie(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;jr(u),u.append(l),e.items.clear()}po(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function po(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Te,Si(a,document.createDocumentFragment())):hi(t[i],n)}}function mo(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=yt?mt(kr(c)):c.appendChild(Or())}yt&&ht();var l=null,u=ar(()=>{var e=n();return te(e)?e:e==null?[]:ie(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,go(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Te,vo(l,null,o)):bi(l):vi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:li(()=>{d=z(u);var e=d.length;let c=!1;yt&&vt(o)===`[!`!=(e===0)&&(o=_t(),mt(o),pt(!1),c=!0);for(var g=new Set,_=Pn,v=Mr(),y=0;y<e;y+=1){yt&&bt.nodeType===8&&bt.data===`]`&&(o=bt,c=!0,pt(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&mr(S.v,b),S.i&&mr(S.i,y),v&&_.unskip_effect(S.e)):(S=_o(s,p?o:bo??=Or(),b,x,y,i,t,n),p||(S.e.f|=Te),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=di(()=>a(o)):(l=di(()=>a(bo??=Or())),l.f|=Te)),e>g.size&&We(``,``,``),yt&&e>0&&mt(_t()),!p)if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_);c&&pt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,yt&&(o=bt)}function ho(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function go(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=ho(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(bi(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=Te,g===c)vo(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),yo(e,u,g),yo(e,g,v),vo(g,v,n),u=g,f=[],p=[],c=ho(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],S=f[f.length-1];for(b=0;b<f.length;b+=1)vo(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);yo(e,x.prev,S.next),yo(e,u,x),yo(e,S,y),c=y,u=S,--_,f=[],p=[]}else l.delete(g),vo(g,c,n),yo(e,g.prev,g.next),yo(e,g,u===null?e.effect.first:u.next),yo(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=ho(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=ho(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(po(e,ie(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(g of l)g.f&8192||C.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=ho(c.next);var w=C.length;if(w>0){var T=r&4&&o===0?n:null;if(a){for(_=0;_<w;_+=1)C[_].nodes?.a?.measure();for(_=0;_<w;_+=1)C[_].nodes?.a?.fix()}fo(e,C,T)}}a&&Gt(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function _o(e,t,n,r,i,a,o,s){var c=o&1?o&16?fr(n):pr(n,!1,!1):null,l=o&2?fr(i):null;return{v:c,i:l,e:di(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function vo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Ar(r);if(a.before(r),r===i)return;r=o}}function yo(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var bo,xo=o((()=>{st(),xt(),Br(),Ci(),xr(),fe(),Be(),Jt(),ea(),b(),dr(),Kn(),tt(),Pt()}));function So(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;yt&&(o=mt(kr(c)))}R(()=>{var e=Ki;if(s===(s=t()??``)){yt&&ht();return}if(n&&!yt){e.nodes=null,c.innerHTML=s,s!==``&&Na(kr(c),c.lastChild);return}if(e.nodes!==null&&(gi(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(yt){for(var a=bt.data,l=ht(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=Ar(l);if(l===null)throw lt(),nt;Na(bt,u),o=mt(l);return}var d=Nr(r?`svg`:i?`math`:`template`,r?at:i?ot:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Na(kr(f),f.lastChild),r||i)for(;kr(f);)o.before(kr(f));else o.before(f)}})}var Co=o((()=>{st(),Ci(),xt(),Ia(),ft(),pa(),b(),Ut(),Br(),ea(),Be()})),wo=o((()=>{xt()})),To=o((()=>{pa(),He()}));function Eo(e,t,...n){var r=new Za(e);li(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},xe)}var Do=o((()=>{Be(),Ci(),Ut(),xt(),Ma(),Ia(),tt(),b(),Br(),To(),Qa()}));function Oo(e,t,n){var r;yt&&(r=bt,ht());var i=new Za(e);li(()=>{var e=t()??null;if(yt&&vt(r)===`[`!=(e!==null)){var a=_t();mt(a),i.anchor=a,pt(!1),i.ensure(e,e&&(t=>n(t,e))),pt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},xe)}var ko=o((()=>{Be(),Ci(),xt(),Qa(),st()})),Ao,jo,Mo=o((()=>{fe(),b(),Ao=()=>performance.now(),jo={tick:e=>requestAnimationFrame(e),now:()=>Ao(),tasks:new Set}}));function No(){let e=jo.now();jo.tasks.forEach(t=>{t.c(e)||(jo.tasks.delete(t),t.f())}),jo.tasks.size!==0&&jo.tick(No)}function Po(e){let t;return jo.tasks.size===0&&jo.tick(No),{promise:new Promise(n=>{jo.tasks.add(t={c:e,f:n})}),abort(){jo.tasks.delete(t)}}}var Fo=o((()=>{Mo()}));function Io(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Lo(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Io(n.trim());t[i]=r.trim()}return t}function Ro(e){Ho=e}function zo(e,t,n){var r=(Ho??Ki).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Bo(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Bo(e,t,n,r,i,a){var o=r===1;if(x(t)){var s,c=!1;return Gt(()=>{c||(s=Bo(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Vo}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=Lo(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=Lo(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&Po(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var Vo,Ho,Uo=o((()=>{fe(),Ci(),ea(),Fo(),Wa(),Be(),Jt(),Jr(),Vo=e=>e,Ho=null}));function Wo(e,t,n,r,i,a){let o=yt;yt&&ht();var s=null;yt&&bt.nodeType===1&&(s=bt,ht());var c=yt?bt:e,l=Ki,u=new Za(c,!1);li(()=>{let e=t()||null;var a=i?i():n||e===`svg`?at:void 0;if(e===null){u.ensure(null,null),La(!0);return}return u.ensure(e,t=>{if(e){if(s=yt?s:Nr(e,a),Na(s,s),r){yt&&oa(e)&&s.append(document.createComment(``));var n=yt?kr(s):s.appendChild(Or());yt&&(n===null?pt(!1):mt(n)),Ro(l),r(s,n),Ro(null)}Ki.nodes.end=s,t.before(s)}yt&&mt(t)}),La(!0),()=>{e&&La(!1)}},xe),$r(()=>{La(!0)}),o&&(pt(!0),mt(c))}var Go=o((()=>{st(),xt(),Br(),Ci(),Wa(),ea(),Ut(),b(),Be(),Ia(),pa(),Qa(),Uo()}));function Ko(e,t){let n=null,r=yt;var i;if(yt){n=bt;for(var a=kr(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=Ar(a);if(a===null)pt(!1);else{var o=Ar(a);a.remove(),mt(o)}}yt||(i=document.head.appendChild(Or()));try{li(()=>{var e=di(()=>t(i));e.f|=Se})}finally{r&&(pt(!0),mt(n))}}var qo=o((()=>{xt(),Br(),Ci(),Be()}));function K(e,t){ai(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Nr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Jo=o((()=>{b(),ha(),Ci(),Br()})),Yo=o((()=>{Ci(),ea()}));function Xo(e,t){var n=void 0,r;ui(()=>{n!==(n=t())&&(r&&=(hi(r),null),n&&(r=di(()=>{ai(()=>n(e))})))})}var Zo=o((()=>{Ci()}));function Qo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Qo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function $o(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Qo(e))&&(r&&(r+=` `),r+=t);return r}var es=o((()=>{}));function ts(e){return typeof e==`object`?$o(e):e??``}function ns(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||os.includes(r[o-1]))&&(s===r.length||os.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function rs(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function is(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function as(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(is)),i&&c.push(...Object.keys(i).map(is));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=is(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=rs(r)),i&&(n+=rs(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}var os,ss=o((()=>{es(),fe(),os=[...`
17
+ var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),g=s(((e,t)=>{var n=h(),r={};function i(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}var a=`mixins`;function o(e){return e}function s(e,t,s){var c=[],l={mixins:`DEFINE_MANY`,statics:`DEFINE_MANY`,propTypes:`DEFINE_MANY`,contextTypes:`DEFINE_MANY`,childContextTypes:`DEFINE_MANY`,getDefaultProps:`DEFINE_MANY_MERGED`,getInitialState:`DEFINE_MANY_MERGED`,getChildContext:`DEFINE_MANY_MERGED`,render:`DEFINE_ONCE`,componentWillMount:`DEFINE_MANY`,componentDidMount:`DEFINE_MANY`,componentWillReceiveProps:`DEFINE_MANY`,shouldComponentUpdate:`DEFINE_ONCE`,componentWillUpdate:`DEFINE_MANY`,componentDidUpdate:`DEFINE_MANY`,componentWillUnmount:`DEFINE_MANY`,UNSAFE_componentWillMount:`DEFINE_MANY`,UNSAFE_componentWillReceiveProps:`DEFINE_MANY`,UNSAFE_componentWillUpdate:`DEFINE_MANY`,updateComponent:`OVERRIDE_BASE`},u={getDerivedStateFromProps:`DEFINE_MANY_MERGED`},d={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)p(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=n({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=n({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=g(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=n({},e.propTypes,t)},statics:function(e,t){m(e,t)},autobind:function(){}};function f(e,t){var n=l.hasOwnProperty(t)?l[t]:null;S.hasOwnProperty(t)&&i(n===`OVERRIDE_BASE`,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&i(n===`DEFINE_MANY`||n===`DEFINE_MANY_MERGED`,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function p(e,n){if(n){i(typeof n!=`function`,`ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object.`),i(!t(n),`ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.`);var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(a)&&d.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==a){var c=n[s],u=r.hasOwnProperty(s);if(f(u,s),d.hasOwnProperty(s))d[s](e,c);else{var p=l.hasOwnProperty(s);if(typeof c==`function`&&!p&&!u&&n.autobind!==!1)o.push(s,c),r[s]=c;else if(u){var m=l[s];i(p&&(m===`DEFINE_MANY_MERGED`||m===`DEFINE_MANY`),`ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.`,m,s),m===`DEFINE_MANY_MERGED`?r[s]=g(r[s],c):m===`DEFINE_MANY`&&(r[s]=_(r[s],c))}else r[s]=c}}}}function m(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in d),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){i((u.hasOwnProperty(n)?u[n]:null)===`DEFINE_MANY_MERGED`,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=g(e[n],r);return}e[n]=r}}}function h(e,t){for(var n in i(e&&t&&typeof e==`object`&&typeof t==`object`,`mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.`),t)t.hasOwnProperty(n)&&(i(e[n]===void 0,"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function g(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(n==null)return r;if(r==null)return n;var i={};return h(i,n),h(i,r),i}}function _(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}var b={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};n(C.prototype,e.prototype,S);function w(e){var t=o(function(e,n,a){this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=n,this.refs=r,this.updater=a||s,this.state=null;var o=this.getInitialState?this.getInitialState():null;i(typeof o==`object`&&!Array.isArray(o),`%s.getInitialState(): must return an object or null`,t.displayName||`ReactCompositeComponent`),this.state=o});for(var n in t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],c.forEach(p.bind(null,t)),p(t,b),p(t,e),p(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[n]||(t.prototype[n]=null);return t}return w}t.exports=s})),_=s(((e,t)=>{var n=m(),r=g();if(n===void 0)throw Error(`create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.`);var i=new n.Component().updater;t.exports=r(n.Component,n.isValidElement,i)})),v=o((()=>{})),y=o((()=>{})),b=o((()=>{v(),y()}));function x(e){return typeof e==`function`}function S(e){return typeof e?.then==`function`}function C(e){for(var t=0;t<e.length;t++)e[t]()}function w(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function T(e,t,n=!1){return e===void 0?n?t():t:e}function ee(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var te,ne,re,ie,ae,oe,se,ce,le,ue,de,E,fe=o((()=>{te=Array.isArray,ne=Array.prototype.indexOf,re=Array.prototype.includes,ie=Array.from,ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,se=Object.getOwnPropertyDescriptors,ce=Object.prototype,le=Array.prototype,ue=Object.getPrototypeOf,de=Object.isExtensible,E=()=>{}})),pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be=o((()=>{pe=1<<24,me=1024,he=2048,ge=4096,_e=8192,ve=16384,ye=32768,be=1<<25,xe=65536,Se=1<<18,Ce=1<<19,we=1<<20,Te=1<<25,Ee=65536,De=1<<21,Oe=1<<22,ke=1<<23,Ae=Symbol(`$state`),je=Symbol(`legacy props`),Me=Symbol(``),Ne=Symbol(`attributes`),Pe=Symbol(`class`),Fe=Symbol(`style`),Ie=Symbol(`text`),Le=Symbol(`form reset`),Re=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ze=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`)}));function Ve(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}var He=o((()=>{b()}));function Ue(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function We(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Ge(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ke(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function qe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Je(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Xe(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ze(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Qe(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function $e(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function et(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var tt=o((()=>{b(),He()})),nt,rt,it,at,ot,st=o((()=>{nt={},rt=Symbol(`uninitialized`),it=`http://www.w3.org/1999/xhtml`,at=`http://www.w3.org/2000/svg`,ot=`http://www.w3.org/1998/Math/MathML`}));function ct(){console.warn(`https://svelte.dev/e/derived_inert`)}function lt(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ut(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function dt(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var ft=o((()=>{b()}));function pt(e){yt=e}function mt(e){if(e===null)throw lt(),nt;return bt=e}function ht(){return mt(Ar(bt))}function D(e){if(yt){if(Ar(bt)!==null)throw lt(),nt;bt=e}}function gt(e=1){if(yt){for(var t=e,n=bt;t--;)n=Ar(n);bt=n}}function _t(e=!0){for(var t=0,n=bt;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Ar(n);e&&n.remove(),n=i}}function vt(e){if(!e||e.nodeType!==8)throw lt(),nt;return e.data}var yt,bt,xt=o((()=>{Be(),st(),ft(),Br(),yt=!1}));function St(e){return e===this.v}function Ct(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function wt(e){return!Ct(e,this.v)}var Tt=o((()=>{})),Et,Dt,Ot=o((()=>{Et=!1,Dt=!1})),kt=o((()=>{b()}));function At(e,t=!1,n=!1){return jt(e,new Map,``,Mt,null,n)}function jt(e,t,n,r,i=null,a=!1){if(typeof e==`object`&&e){var o=t.get(e);if(o!==void 0)return o;if(e instanceof Map)return new Map(e);if(e instanceof Set)return new Set(e);if(te(e)){var s=Array(e.length);t.set(e,s),i!==null&&t.set(i,s);for(var c=0;c<e.length;c+=1){var l=e[c];c in e&&(s[c]=jt(l,t,n,r,null,a))}return s}if(ue(e)===ce){s={},t.set(e,s),i!==null&&t.set(i,s);for(var u of Object.keys(e))s[u]=jt(e[u],t,n,r,null,a);return s}if(e instanceof Date)return structuredClone(e);if(typeof e.toJSON==`function`&&!a)return jt(e.toJSON(),t,n,r,e)}if(e instanceof EventTarget)return e;try{return structuredClone(e)}catch{return e}}var Mt,Nt=o((()=>{b(),kt(),fe(),Mt=[]})),Pt=o((()=>{Nt(),Be(),Ci(),ea()})),Ft=o((()=>{b(),fe(),He()}));function It(e){Ht=e}function Lt(e){return Bt(`getContext`).get(e)}function Rt(e,t){let n=Bt(`setContext`);if(Et){var r=Ki.f;!Wi&&r&32&&!Ht.i||Xe()}return n.set(e,t),t}function O(e,t=!1,n){Ht={p:Ht,i:!1,c:null,e:null,s:e,x:null,r:Ki,l:Dt&&!t?{s:null,u:null,$:[]}:null}}function k(e){var t=Ht,n=t.e;if(n!==null){t.e=null;for(var r of n)ti(r)}return e!==void 0&&(t.x=e),t.i=!0,Ht=t.p,e??{}}function zt(){return!Dt||Ht!==null&&Ht.l===null}function Bt(e){return Ht===null&&Ve(e),Ht.c??=new Map(Vt(Ht)||void 0)}function Vt(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ht,Ut=o((()=>{b(),tt(),ea(),Ci(),Ot(),Be(),Ht=null}));function Wt(){var e=qt;qt=[],C(e)}function Gt(e){if(qt.length===0&&!Rn){var t=qt;queueMicrotask(()=>{t===qt&&Wt()})}qt.push(e)}function Kt(){for(;qt.length>0;)Wt()}var qt,Jt=o((()=>{fe(),Kn(),qt=[]}));function Yt(e){var t=Ki;if(t===null)return Wi.f|=ke,e;if(!(t.f&32768)&&!(t.f&4))throw e;Xt(e,t)}function Xt(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Zt=o((()=>{b(),st(),Br(),Be(),fe(),ea()}));function Qt(e,t){e.f=e.f&en|t}function $t(e){e.f&512||e.deps===null?Qt(e,me):Qt(e,ge)}var en,tn=o((()=>{Be(),en=~(he|ge|me)}));function nn(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=Ee,nn(t.deps))}function rn(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nn(e.deps),Qt(e,me)}var an=o((()=>{Be(),tn()}));function on(e,t,n){if(e==null)return t(void 0),n&&n(void 0),E;let r=B(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var sn=o((()=>{ea(),fe()}));function cn(e,t){return{subscribe:ln(e,t).subscribe}}function ln(e,t=E){let n=null,r=new Set;function i(t){if(Ct(e,t)&&(e=t,n)){let t=!dn.length;for(let t of r)t[1](),dn.push(t,e);if(t){for(let e=0;e<dn.length;e+=2)dn[e][0](dn[e+1]);dn.length=0}}}function a(t){i(t(e))}function o(o,s=E){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||E),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function un(e,t,n){let r=!Array.isArray(e),i=r?[e]:e;if(!i.every(Boolean))throw Error(`derived() expects stores as input, got a falsy value`);let a=t.length<2;return cn(n,(e,n)=>{let o=!1,s=[],c=0,l=E,u=()=>{if(c)return;l();let i=t(r?s[0]:s,e,n);a?e(i):l=typeof i==`function`?i:E},d=i.map((e,t)=>on(e,e=>{s[t]=e,c&=~(1<<t),o&&u()},()=>{c|=1<<t}));return o=!0,u(),function(){C(d),l(),o=!1}})}function A(e){let t;return on(e,e=>t=e)(),t}var dn,fn=o((()=>{fe(),Tt(),sn(),dn=[]}));function j(e,t,n){let r=n[t]??={store:null,source:pr(void 0),unsubscribe:E};if(r.store!==e&&!(xn in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=E;else{var i=!0;r.unsubscribe=on(e,e=>{i?r.source.v=e:P(r.source,e)}),i=!1}return e&&xn in n?A(e):z(r.source)}function pn(e,t){return hn(e,t),t}function mn(){let e={};function t(){$r(()=>{for(var t in e)e[t].unsubscribe();ae(e,xn,{enumerable:!1,value:!0})})}return[e,t]}function hn(e,t){yn=!0;try{e.set(t)}finally{yn=!1}}function gn(e,t,n){return hn(e,n),t}function _n(){bn=!0}function vn(e){var t=bn;try{return bn=!1,[e(),bn]}finally{bn=t}}var yn,bn,xn,Sn=o((()=>{sn(),fn(),fe(),ea(),Ci(),xr(),b(),yn=!1,bn=!1,xn=Symbol(`unmounted`)})),Cn=o((()=>{Be(),Nt(),ea()}));function wn(e){var t=Rn;Rn=!0;try{var n;for(e&&(Pn!==null&&!Pn.is_fork&&Pn.flush(),n=e());;){if(Kt(),Pn===null)return n;Pn.flush()}}finally{Rn=t}}function Tn(){try{Je()}catch(e){Xt(e,Ln)}}function En(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ni(r)&&(Gn=new Set,Ri(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&_i(r),Gn?.size>0)){yr.clear();for(let e of Gn){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)Gn.has(n)&&(Gn.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Ri(n)}}Gn.clear()}}Gn=null}}function Dn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Dn(i,t,n,r):e&4194320&&!(e&2048)&&On(i,t,r)&&(Qt(i,he),kn(i))}}function On(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(re.call(t,r))return!0;if(r.f&2&&On(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function kn(e){Pn.schedule(e)}function An(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),Qt(e,me);for(var n=e.first;n!==null;)An(n,t),n=n.next}}function jn(e){Qt(e,me);for(var t=e.first;t!==null;)jn(t),t=t.next}var Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn=o((()=>{Be(),Ot(),fe(),ea(),tt(),Jt(),b(),Zt(),xr(),Ci(),an(),st(),tn(),Sn(),Ft(),Cn(),Mn=null,Nn=null,Pn=null,Fn=null,In=null,Ln=null,Rn=!1,zn=!1,Bn=null,Vn=null,Hn=0,Un=1,Wn=class e{id=Un++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#a=new Set;#o=0;#s=new Map;#c=null;#l=[];#u=[];#d=new Set;#f=new Set;#p=new Map;#m=new Set;is_fork=!1;#h=!1;#g(){if(this.is_fork)return!0;for(let n of this.#s.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#p.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#p.has(e)||this.#p.set(e,{d:[],m:[]}),this.#m.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#p.get(e);if(n){this.#p.delete(e);for(var r of n.d)Qt(r,he),t(r);for(r of n.m)Qt(r,ge),t(r)}this.#m.add(e)}#_(){if(this.#e=!0,Hn++>1e3&&(this.#w(),Tn()),!this.#g()){for(let e of this.#d)this.#f.delete(e),Qt(e,he),this.schedule(e);for(let e of this.#f)Qt(e,ge),this.schedule(e)}let t=this.#l;this.#l=[],this.apply();var n=Bn=[],r=[],i=Vn=[];for(let e of t)try{this.#v(e,n,r)}catch(t){throw jn(e),t}if(Pn=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(Bn=null,Vn=null,this.#g()){this.#x(r),this.#x(n);for(let[e,t]of this.#p)An(e,t);i.length>0&&Pn.#_();return}let o=this.#y();if(o){o.#b(this);return}this.#d.clear(),this.#f.clear();for(let e of this.#r)e(this);this.#r.clear(),Fn=this,En(r),En(n),Fn=null,this.#c?.resolve();var s=Pn;if(this.linked&&this.#o===0&&this.#w(),Et&&!this.linked&&(this.#S(),Pn=s),this.#l.length>0){s===null&&(s=this,this.#C());let e=s;e.#l.push(...this.#l.filter(t=>!e.#l.includes(t)))}s!==null&&s.#_()}#v(e,t,n){e.f^=me;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#p.has(r))&&r.fn!==null){a?r.f^=me:i&4?t.push(r):Et&&i&16777224?n.push(r):Ni(r)&&(i&16&&this.#f.add(r),Ri(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#y(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#b(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#f.delete(i),Qt(i,he),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#w(),Pn=this,this.#_()}#x(e){for(var t=0;t<e.length;t+=1)rn(e[t],this.#d,this.#f)}capture(e,t,n=!1){e.v!==rt&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),In?.set(e,t)),this.is_fork||(e.v=t)}activate(){Pn=this}deactivate(){Pn=null,In=null}flush(){try{zn=!0,Pn=this,this.#_()}finally{Hn=0,Ln=null,Bn=null,Vn=null,zn=!1,Pn=null,In=null,yr.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear(),this.#a.clear(),this.#w()}register_created_effect(e){this.#u.push(e)}#S(){this.#w();for(let l=Mn;l!==null;l=l.#n){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=l.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(l.#e){var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#m)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#x([e])});l.activate();var i=new Set,a=new Map;for(var o of t)Dn(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e.v:!0);if(s.length>0)for(let e of this.#u)!(e.f&155648)&&On(e,s,a)&&(e.f&4194320?(Qt(e,he),l.schedule(e)):l.#d.add(e));if(l.#l.length>0){l.apply();for(var c of l.#l)l.#v(c,[],[]);l.#l=[]}l.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#s.get(t)??0;this.#s.set(t,e+1)}}decrement(e,t){if(--this.#o,e){let e=this.#s.get(t)??0;e===1?this.#s.delete(t):this.#s.set(t,e-1)}this.#h||(this.#h=!0,Gt(()=>{this.#h=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#d.add(t);for(let e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#a.add(e)}run_fork_commit_callbacks(){for(let e of this.#a)e(this);this.#a.clear()}settled(){return(this.#c??=w()).promise}static ensure(){if(Pn===null){let t=Pn=new e;t.#C(),!zn&&!Rn&&Gt(()=>{t.#e||t.flush()})}return Pn}apply(){if(!Et||!this.is_fork&&this.#t===null&&this.#n===null){In=null;return}In=new Map;for(let[e,[t]]of this.current)In.set(e,t);for(let t=Mn;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)In.has(e)||In.set(e,n)}}schedule(e){if(Ln=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(Bn!==null&&t===Ki&&(Et||(Wi===null||!(Wi.f&2))&&!yn))return;if(n&96){if(!(n&1024))return;t.f^=me}}this.#l.push(t)}#C(){Nn===null?Mn=Nn=this:(Nn.#n=this,this.#t=Nn),Nn=this}#w(){var e=this.#t,t=this.#n;e===null?Mn=t:e.#n=t,t===null?Nn=e:t.#t=e,this.linked=!1}},Gn=null}));function eee(e){let t=0,n=fr(0),r;return()=>{Qr()&&(z(n),si(()=>(t===0&&(r=B(()=>e(()=>gr(n)))),t+=1,()=>{Gt(()=>{--t,t===0&&(r?.(),r=void 0,gr(n))})})))}}var qn=o((()=>{ea(),Ci(),xr(),Pt(),b(),Jt()}));function Jn(e,t,n,r){new Xn(e,t,n,r)}var Yn,Xn,Zn=o((()=>{Be(),st(),Ut(),Zt(),Ci(),ea(),xt(),Jt(),tt(),ft(),b(),Kn(),xr(),Pt(),qn(),Br(),an(),Yn=xe|Ce,Xn=class{parent;is_pending=!1;transform_error;#e;#t=yt?bt:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=eee(()=>(this.#m=fr(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=Ki;t.b=this,t.f|=128,n(e)},this.parent=Ki.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=li(()=>{if(yt){let e=this.#t;ht();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Yn),yt&&(this.#e=bt)}#g(){try{this.#a=di(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=di(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=di(()=>e(this.#e)),Gt(()=>{var e=this.#c=document.createDocumentFragment(),t=Or();e.append(t),this.#a=this.#x(()=>di(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,vi(this.#o,()=>{this.#o=null}),this.#b(Pn))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=di(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Si(this.#a,e);let t=this.#n.pending;this.#o=di(()=>t(this.#e))}else this.#b(Pn)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rn(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=Ki,n=Wi,r=Ht;Oi(this.#i),Di(this.#i),It(this.#i.ctx);try{return Wn.ensure(),e()}catch(e){return Yt(e),null}finally{Oi(t),Di(n),It(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&vi(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Gt(()=>{this.#d=!1,this.#m&&mr(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),z(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;Pn?.is_fork?(this.#a&&Pn.skip_effect(this.#a),this.#o&&Pn.skip_effect(this.#o),this.#s&&Pn.skip_effect(this.#s),Pn.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(hi(this.#a),null),this.#o&&=(hi(this.#o),null),this.#s&&=(hi(this.#s),null),yt&&(mt(this.#t),gt(),mt(_t()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){dt();return}r=!0,i&&et(),this.#s!==null&&vi(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Xt(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return di(()=>{var t=Ki;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Xt(e,this.#i.parent),null}}))};Gt(()=>{var t;try{t=this.transform_error(e)}catch(e){Xt(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Xt(e,this.#i&&this.#i.parent)):o(t)})}}}));function Qn(e,t,n,r){let i=zt()?rr:ar;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=Ki,s=$n(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){if(!(o.f&16384)){s();try{r(e)}catch(e){Xt(e,o)}er()}}var u=tr();if(n.length===0){c.then(()=>l(t.map(i))).finally(u);return}function d(){Promise.all(n.map(e=>ir(e))).then(e=>l([...t.map(i),...e])).catch(e=>Xt(e,o)).finally(u)}c?c.then(()=>{s(),d(),er()}):d()}function $n(){var e=Ki,t=Wi,n=Ht,r=Pn;return function(i=!0){Oi(e),Di(t),It(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function er(e=!0){Oi(null),Di(null),It(null),e&&Pn?.deactivate()}function tr(){var e=Ki,t=e.b,n=Pn,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}var nr=o((()=>{Be(),b(),Ut(),Zn(),Zt(),ea(),Kn(),dr(),Ci()}));function rr(e){var t=2|he;return Ki!==null&&(Ki.f|=Ce),{ctx:Ht,deps:null,effects:null,equals:St,f:t,fn:e,reactions:null,rv:0,v:rt,wv:0,parent:Ki,ac:null}}function ir(e,t,n){let r=Ki;r===null&&Ue();var i=void 0,a=fr(rt),o=!Wi,s=new Set;return oi(()=>{var t=Ki,n=w();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Re&&n.reject(e)}).finally(er)}catch(e){n.reject(e),er()}var c=Pn;if(o){if(t.f&32768)var l=tr();if(r.b.is_rendered())c.async_deriveds.get(t)?.reject(ur);else for(let e of s.values())e.reject(ur);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==ur&&(c.activate(),t?(a.f|=ke,mr(a,t)):(a.f&8388608&&(a.f^=ke),mr(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),$r(()=>{for(let e of s)e.reject(ur)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=rr(e);return Et||ki(t),t}function ar(e){let t=rr(e);return t.equals=wt,t}function tee(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)hi(t[n])}}function or(e){var t,n=Ki,r=e.parent;if(!Ui&&r!==null&&e.v!==rt&&r.f&24576)return ct(),e.v;Oi(r);try{e.f&=~Ee,tee(e),t=Fi(e)}finally{Oi(n)}return t}function sr(e){var t=or(e);if(!e.equals(t)&&(e.wv=Mi(),(!Pn?.is_fork||e.deps===null)&&(Pn===null?e.v=t:(Pn.capture(e,t,!0),Fn?.capture(e,t,!0)),e.deps===null))){Qt(e,me);return}Ui||(In===null?$t(e):(Qr()||Pn?.is_fork)&&In.set(e,t))}function cr(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Re),t.fn!==null&&(t.teardown=E),t.ac=null,Li(t,0),pi(t))}function lr(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Ri(t)}var ur,dr=o((()=>{b(),Be(),ea(),Tt(),tt(),ft(),Ci(),xr(),Ft(),Ot(),Ut(),st(),Kn(),nr(),fe(),tn(),ur=Symbol(`obsolete`)}));function fr(e,t){return{f:0,v:e,reactions:null,equals:St,rv:0,wv:0}}function N(e,t){let n=fr(e,t);return ki(n),n}function pr(e,t=!1,n=!0){let r=fr(e);return t||(r.equals=wt),Dt&&n&&Ht!==null&&Ht.l!==null&&(Ht.l.s??=[]).push(r),r}function P(e,t,n=!1){return Wi!==null&&(!Gi||Wi.f&131072)&&zt()&&Wi.f&4325394&&(qi===null||!re.call(qi,e))&&$e(),mr(e,n?Sr(t):t,Vn)}function mr(e,t,n=null){if(!e.equals(t)){yr.set(e,Ui?t:e.v);var r=Wn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&or(t),In===null&&$t(t)}e.wv=Mi(),_r(e,he,n),zt()&&Ki!==null&&Ki.f&1024&&!(Ki.f&96)&&(Xi===null?Ai([e]):Xi.push(e)),!r.is_fork&&vr.size>0&&!br&&hr()}return t}function hr(){br=!1;for(let e of vr){e.f&1024&&Qt(e,ge);let t;try{t=Ni(e)}catch{t=!0}t&&Ri(e)}vr.clear()}function gr(e){P(e,e.v+1)}function _r(e,t,n){var r=e.reactions;if(r!==null)for(var i=zt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===Ki)){var l=(c&he)===0;if(l&&Qt(s,t),c&131072)vr.add(s);else if(c&2){var u=s;In?.delete(u),c&65536||(c&512&&(Ki===null||!(Ki.f&2097152))&&(s.f|=Ee),_r(u,ge,n))}else if(l){var d=s;c&16&&Gn!==null&&Gn.add(d),n===null?kn(d):n.push(d)}}}}var vr,yr,br,xr=o((()=>{b(),ea(),Tt(),Be(),tt(),Ot(),fe(),Pt(),Ft(),Ut(),Kn(),Tr(),dr(),tn(),vr=new Set,yr=new Map,br=!1}));function Sr(e){if(typeof e!=`object`||!e||Ae in e)return e;let t=ue(e);if(t!==ce&&t!==le)return e;var n=new Map,r=te(e),i=N(0),a=null,o=$i,s=e=>{if($i===o)return e();var t=Wi,n=$i;Di(null),ji(o);var r=e();return Di(t),ji(n),r};return r&&n.set(`length`,N(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ze();var i=n.get(t);return i===void 0?s(()=>{var e=N(r.value,a);return n.set(t,e),e}):P(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>N(rt,a));n.set(t,e),gr(i)}}else P(r,rt),gr(i);return!0},get(t,r,i){if(r===Ae)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||oe(t,r)?.writable)&&(o=s(()=>N(Sr(c?t[r]:rt),a)),n.set(r,o)),o!==void 0){var l=z(o);return l===rt?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=z(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==rt)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===Ae)return!0;var r=n.get(t),i=r!==void 0&&r.v!==rt||Reflect.has(e,t);return(r!==void 0||Ki!==null&&(!i||oe(e,t)?.writable))&&(r===void 0&&(r=s(()=>N(i?Sr(e[t]):rt,a)),n.set(t,r)),z(r)===rt)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>N(rt,a)),n.set(d+``,f)):P(f,rt)}if(l===void 0)(!u||oe(e,t)?.writable)&&(l=s(()=>N(void 0,a)),P(l,Sr(o)),n.set(t,l));else{u=l.v!==rt;var p=s(()=>Sr(o));P(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var h=n.get(`length`),g=Number(t);Number.isInteger(g)&&g>=h.v&&P(h,g+1)}gr(i)}return!0},ownKeys(e){z(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==rt});for(var[r,a]of n)a.v!==rt&&!(r in e)&&t.push(r);return t},setPrototypeOf(){Qe()}})}function Cr(e){try{if(typeof e==`object`&&e&&Ae in e)return e[Ae]}catch{}return e}function wr(e,t){return Object.is(Cr(e),Cr(t))}var Tr=o((()=>{b(),ea(),fe(),xr(),Be(),st(),tt(),Pt(),Ft(),Ot(),new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`])})),Er=o((()=>{ft(),Tr()}));function Dr(){if(Fr===void 0){Fr=window,Ir=document,Lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Rr=oe(t,`firstChild`).get,zr=oe(t,`nextSibling`).get,de(e)&&(e[Pe]=void 0,e[Ne]=null,e[Fe]=void 0,e.__e=void 0),de(n)&&(n[Ie]=void 0)}}function Or(e=``){return document.createTextNode(e)}function kr(e){return Rr.call(e)}function Ar(e){return zr.call(e)}function F(e,t){if(!yt)return kr(e);var n=kr(bt);if(n===null)n=bt.appendChild(Or());else if(t&&n.nodeType!==3){var r=Or();return n?.before(r),mt(r),r}return t&&Pr(n),mt(n),n}function I(e,t=!1){if(!yt){var n=kr(e);return n instanceof Comment&&n.data===``?Ar(n):n}if(t){if(bt?.nodeType!==3){var r=Or();return bt?.before(r),mt(r),r}Pr(bt)}return bt}function L(e,t=1,n=!1){let r=yt?bt:e;for(var i;t--;)i=r,r=Ar(r);if(!yt)return r;if(n){if(r?.nodeType!==3){var a=Or();return r===null?i?.after(a):r.before(a),mt(a),a}Pr(r)}return mt(r),r}function jr(e){e.textContent=``}function Mr(){return!Et||Gn!==null?!1:(Ki.f&ye)!==0}function Nr(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function Pr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}var Fr,Ir,Lr,Rr,zr,Br=o((()=>{xt(),b(),Er(),fe(),ea(),Ot(),Be(),Kn(),st()}));function Vr(e,t){if(t){let t=document.body;e.autofocus=!0,Gt(()=>{document.activeElement===t&&e.focus()})}}function Hr(e){yt&&kr(e)!==null&&jr(e)}function Ur(){Wr||(Wr=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[Le]?.()})},{capture:!0}))}var Wr,Gr=o((()=>{xt(),Br(),Jt(),Be(),Wr=!1}));function Kr(e){var t=Wi,n=Ki;Di(null),Oi(null);try{return e()}finally{Di(t),Oi(n)}}function qr(e,t,n,r=n){e.addEventListener(t,()=>Kr(n));let i=e[Le];i?e[Le]=()=>{i(),r(!0)}:e[Le]=()=>r(!0),Ur()}var Jr=o((()=>{Ci(),ea(),Be(),Gr()}));function Yr(e){Ki===null&&(Wi===null&&qe(e),Ke()),Ui&&Ge(e)}function Xr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Zr(e,t){var n=Ki;n!==null&&n.f&8192&&(e|=_e);var r={ctx:Ht,deps:null,nodes:null,f:e|he|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};Pn?.register_created_effect(r);var i=r;if(e&4)Bn===null?Wn.ensure().schedule(r):Bn.push(r);else if(t!==null){try{Ri(r)}catch(e){throw hi(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=xe))}if(i!==null&&(i.parent=n,n!==null&&Xr(i,n),Wi!==null&&Wi.f&2&&!(e&64))){var a=Wi;(a.effects??=[]).push(i)}return r}function Qr(){return Wi!==null&&!Gi}function $r(e){let t=Zr(8,null);return Qt(t,me),t.teardown=e,t}function ei(e){Yr(`$effect`);var t=Ki.f;if(!Wi&&t&32&&!(t&32768)){var n=Ht;(n.e??=[]).push(e)}else return ti(e)}function ti(e){return Zr(4|we,e)}function ni(e){return Yr(`$effect.pre`),Zr(8|we,e)}function ri(e){Wn.ensure();let t=Zr(64|Ce,e);return()=>{hi(t)}}function ii(e){Wn.ensure();let t=Zr(64|Ce,e);return(e={})=>new Promise(n=>{e.outro?vi(t,()=>{hi(t),n(void 0)}):(hi(t),n(void 0))})}function ai(e){return Zr(4,e)}function oi(e){return Zr(Oe|Ce,e)}function si(e,t=0){return Zr(8|t,e)}function R(e,t=[],n=[],r=[]){Qn(r,t,n,t=>{Zr(8,()=>e(...t.map(z)))})}function ci(e,t=[],n=[],r=[]){Qn(r,t,n,t=>{Zr(4,()=>e(...t.map(z)))})}function li(e,t=0){return Zr(16|t,e)}function ui(e,t=0){return Zr(pe|t,e)}function di(e){return Zr(32|Ce,e)}function fi(e){var t=e.teardown;if(t!==null){let e=Ui,n=Wi;Ei(!0),Di(null);try{t.call(null)}finally{Ei(e),Di(n)}}}function pi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&Kr(()=>{e.abort(Re)});var r=n.next;n.f&64?n.parent=null:hi(n,t),n=r}}function mi(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||hi(t),t=n}}function hi(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(gi(e.nodes.start,e.nodes.end),n=!0),Qt(e,be),pi(e,t&&!n),Li(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();fi(e),e.f^=be,e.f|=ve;var i=e.parent;i!==null&&i.first!==null&&_i(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function gi(e,t){for(;e!==null;){var n=e===t?null:Ar(e);e.remove(),e=n}}function _i(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function vi(e,t,n=!0){var r=[];yi(e,r,!0);var i=()=>{n&&hi(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function yi(e,t,n){if(!(e.f&8192)){e.f^=_e;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;yi(i,t,o?n:!1)}i=a}}}function bi(e){xi(e,!0)}function xi(e,t){if(e.f&8192){e.f^=_e,e.f&1024||(Qt(e,he),Wn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;xi(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Si(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Ar(n);t.append(n),n=i}}var Ci=o((()=>{ea(),Be(),tt(),b(),fe(),Br(),Ut(),Kn(),nr(),Jr(),tn()})),wi,Ti=o((()=>{xr(),ea(),wi=null}));function Ei(e){Ui=e}function Di(e){Wi=e}function Oi(e){Ki=e}function ki(e){Wi!==null&&(!Et||Wi.f&2)&&(qi===null?qi=[e]:qi.push(e))}function Ai(e){Xi=e}function ji(e){$i=e}function Mi(){return++Zi}function Ni(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~Ee),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ni(a)&&sr(a),a.wv>e.wv)return!0}t&512&&In===null&&Qt(e,me)}return!1}function Pi(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Et&&qi!==null&&re.call(qi,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Pi(a,t,!1):t===a&&(n?Qt(a,he):a.f&1024&&Qt(a,ge),kn(a))}}function Fi(e){var t=Ji,n=Yi,r=Xi,i=Wi,a=qi,o=Ht,s=Gi,c=$i,l=e.f;Ji=null,Yi=0,Xi=null,Wi=l&96?null:e,qi=null,It(e.ctx),Gi=!1,$i=++Qi,e.ac!==null&&(Kr(()=>{e.ac.abort(Re)}),e.ac=null);try{e.f|=De;var u=e.fn,d=u();e.f|=ye;var f=e.deps,p=Pn?.is_fork;if(Ji!==null){var m;if(p||Li(e,Yi),f!==null&&Yi>0)for(f.length=Yi+Ji.length,m=0;m<Ji.length;m++)f[Yi+m]=Ji[m];else e.deps=f=Ji;if(Qr()&&e.f&512)for(m=Yi;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Yi<f.length&&(Li(e,Yi),f.length=Yi);if(zt()&&Xi!==null&&!Gi&&f!==null&&!(e.f&6146))for(m=0;m<Xi.length;m++)Pi(Xi[m],e);if(i!==null&&i!==e){if(Qi++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Qi;if(t!==null)for(let e of t)e.rv=Qi;Xi!==null&&(r===null?r=Xi:r.push(...Xi))}return e.f&8388608&&(e.f^=ke),d}catch(e){return Yt(e)}finally{e.f^=De,Ji=t,Yi=n,Xi=r,Wi=i,qi=a,It(o),Gi=s,$i=c}}function Ii(e,t){let n=t.reactions;if(n!==null){var r=ne.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Ji===null||!re.call(Ji,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~Ee),a.v!==rt&&$t(a),cr(a),Li(a,0)}}function Li(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ii(e,n[r])}function Ri(e){var t=e.f;if(!(t&16384)){Qt(e,me);var n=Ki,r=Hi;Ki=e,Hi=!0;try{t&16777232?mi(e):pi(e),fi(e);var i=Fi(e);e.teardown=typeof i==`function`?i:null,e.wv=Zi}finally{Hi=r,Ki=n}}}async function zi(){if(Et)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),wn()}function z(e){var t=(e.f&2)!=0;if(wi?.add(e),Wi!==null&&!Gi&&!(Ki!==null&&Ki.f&16384)&&(qi===null||!re.call(qi,e))){var n=Wi.deps;if(Wi.f&2097152)e.rv<Qi&&(e.rv=Qi,Ji===null&&n!==null&&n[Yi]===e?Yi++:Ji===null?Ji=[e]:Ji.push(e));else{(Wi.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[Wi]:re.call(r,Wi)||r.push(Wi)}}if(Ui&&yr.has(e))return yr.get(e);if(t){var i=e;if(Ui){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Vi(i))&&(a=or(i)),yr.set(i,a),a}var o=(i.f&512)==0&&!Gi&&Wi!==null&&(Hi||(Wi.f&512)!=0),s=(i.f&ye)===0;Ni(i)&&(o&&(i.f|=512),sr(i)),o&&!s&&(lr(i),Bi(i))}if(In?.has(e))return In.get(e);if(e.f&8388608)throw e.v;return e.v}function Bi(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(lr(t),Bi(t))}function Vi(e){if(e.v===rt)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(yr.has(t)||t.f&2&&Vi(t))return!0;return!1}function B(e){var t=Gi;try{return Gi=!0,e()}finally{Gi=t}}var Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea=o((()=>{b(),fe(),Ci(),Be(),xr(),dr(),Ot(),Pt(),Ft(),Ut(),Kn(),Zt(),st(),Ti(),Jr(),tn(),ft(),Hi=!1,Ui=!1,Wi=null,Gi=!1,Ki=null,qi=null,Ji=null,Yi=0,Xi=null,Zi=1,Qi=0,$i=Qi})),ta=o((()=>{Y(),sc(),Ci()}));function na(e){return e.endsWith(`capture`)&&e!==`gotpointercapture`&&e!==`lostpointercapture`}function ra(e){return sa.includes(e)}function ia(e){return e=e.toLowerCase(),la[e]??e}function aa(e){return ua.includes(e)}function oa(e){return fa.includes(e)}var sa,ca,la,ua,da,fa,pa=o((()=>{sa=[`beforeinput`,`click`,`change`,`dblclick`,`contextmenu`,`focusin`,`focusout`,`input`,`keydown`,`keyup`,`mousedown`,`mousemove`,`mouseout`,`mouseover`,`mouseup`,`pointerdown`,`pointermove`,`pointerout`,`pointerover`,`pointerup`,`touchend`,`touchmove`,`touchstart`],ca=`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`),la={formnovalidate:`formNoValidate`,ismap:`isMap`,nomodule:`noModule`,playsinline:`playsInline`,readonly:`readOnly`,defaultvalue:`defaultValue`,defaultchecked:`defaultChecked`,srcobject:`srcObject`,novalidate:`noValidate`,allowfullscreen:`allowFullscreen`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`},[...ca],ua=[`touchstart`,`touchmove`],da=[`$state`,`$state.raw`,`$derived`,`$derived.by`],[...da],fa=[`textarea`,`script`,`style`,`title`]})),ma=o((()=>{Be(),pa(),ea()})),ha=o((()=>{})),ga=o((()=>{Be(),xt(),Ut()}));function _a(e){if(!yt)return;e.removeAttribute(`onload`),e.removeAttribute(`onerror`);let t=e.__e;t!==void 0&&(e.__e=void 0,queueMicrotask(()=>{e.isConnected&&e.dispatchEvent(t)}))}function va(e,t,n,r={}){function i(e){if(r.capture||Ca.call(t,e),!e.cancelBubble)return Kr(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Gt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ya(e,t,n,r={}){var i=va(t,e,n,r);return()=>{e.removeEventListener(t,i,r)}}function ba(e,t,n,r,i){var a={capture:r,passive:i},o=va(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$r(()=>{t.removeEventListener(e,o,a)})}function xa(e,t,n){(t[wa]??={})[e]=n}function Sa(e){for(var t=0;t<e.length;t++)Ta.add(e[t]);for(var n of Ea)n(e)}function Ca(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Da=e;var o=0,s=Da===e&&e[wa];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[wa]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){ae(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=Wi,d=Ki;Di(null),Oi(null);try{for(var f,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var h=a[wa]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble||m===t||m===null)break;a=m}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[wa]=t,delete e.currentTarget,Di(u),Oi(d)}}}var wa,Ta,Ea,Da,Oa=o((()=>{Ci(),fe(),xt(),Jt(),ea(),Jr(),wa=Symbol(`events`),Ta=new Set,Ea=new Set,Da=null}));function ka(e){return ja?.createHTML(e)??e}function Aa(e){var t=Nr(`template`);return t.innerHTML=ka(e.replaceAll(`<!>`,`<!---->`)),t.content}var ja,Ma=o((()=>{Br(),ja=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e})}));function Na(e,t){var n=Ki;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function V(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(yt)return Na(bt,null),bt;i===void 0&&(i=Aa(a?e:`<!>`+e),n||(i=kr(i)));var t=r||Lr?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=kr(t),s=t.lastChild;Na(o,s)}else Na(t,t);return t}}function Pa(e=``){if(!yt){var t=Or(e+``);return Na(t,t),t}var n=bt;return n.nodeType===3?Pr(n):(n.before(n=Or()),mt(n)),Na(n,n),n}function H(){if(yt)return Na(bt,null),bt;var e=document.createDocumentFragment(),t=document.createComment(``),n=Or();return e.append(t,n),Na(t,n),e}function U(e,t){if(yt){var n=Ki;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=bt),ht();return}e!==null&&e.before(t)}function Fa(){if(yt&&bt&&bt.nodeType===8&&bt.textContent?.startsWith(`$`)){let e=bt.textContent.substring(1);return ht(),e}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}var Ia=o((()=>{xt(),Br(),Ma(),ea(),st(),Be()}));function La(e){Va=e}function W(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ie]??=e.nodeValue)&&(e[Ie]=n,e.nodeValue=`${n}`)}function Ra(e,t){return za(e,t)}function za(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Dr();var c=void 0,l=ii(()=>{var l=n??t.appendChild(Or());Jn(l,{pending:()=>{}},t=>{O({});var n=Ht;if(a&&(n.c=a),i&&(r.$$events=i),yt&&Na(t,null),Va=o,c=e(t,r)||{},Va=!0,yt&&(Ki.nodes.end=bt,bt===null||bt.nodeType!==8||bt.data!==`]`))throw lt(),nt;k()},s);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=aa(r);for(let e of[t,document]){var a=Ha.get(e);a===void 0&&(a=new Map,Ha.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Ca,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(ie(Ta)),Ea.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Ha.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Ca),r.delete(e),r.size===0&&Ha.delete(n)):r.set(e,i)}Ea.delete(d),l!==n&&l.parentNode?.removeChild(l)}});return Ua.set(c,l),c}function Ba(e,t){let n=Ua.get(e);return n?(Ua.delete(e),n(t)):Promise.resolve()}var Va,Ha,Ua,Wa=o((()=>{b(),Br(),st(),ea(),Ut(),Ci(),xt(),fe(),Oa(),ft(),tt(),Ia(),pa(),Be(),Zn(),Ha=new Map,Ua=new WeakMap})),Ga=o((()=>{Be(),xt(),Ci(),xr(),Wa(),ea()})),Ka=o((()=>{fe(),Be(),Ut(),pa()})),qa=o((()=>{tt(),Ut()})),Ja=o((()=>{Nt(),Ci(),ea(),Ft()})),Ya=o((()=>{nr(),ea(),xt()})),Xa=o((()=>{tt()})),Za,Qa=o((()=>{Kn(),Ci(),Be(),xt(),Br(),b(),Za=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)bi(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(hi(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Si(r,t),t.append(Or()),this.#n.set(e,{effect:r,fragment:t})}else hi(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),vi(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(hi(n.effect),this.#n.delete(e))};ensure(e,t){var n=Pn,r=Mr();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=Or();i.append(a),this.#n.set(e,{effect:di(()=>t(a)),fragment:i})}else this.#t.set(e,di(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else yt&&(this.anchor=bt),this.#a(n)}}}));function $a(e,t,n,r,i){yt&&ht();var a=zt(),o=rt,s=a?fr(o):pr(o,!1,!1),c=a?fr(o):pr(o,!1,!1),l=new Za(e);li(()=>{var a=Pn;a.deactivate();var o=t();a.activate();var u=!1;let d=yt&&S(o)===(e.data===`[!`);if(d&&(mt(_t()),pt(!1)),S(o)){var f=$n(),p=!1;let e=e=>{if(!u){p=!0,f(!1),Wn.ensure(),yt&&pt(!1);try{e()}finally{er(!1),Rn||wn()}}};o.then(t=>{e(()=>{mr(s,t),l.ensure(to,r&&(e=>r(e,s)))})},t=>{e(()=>{if(mr(c,t),l.ensure(no,i&&(e=>i(e,c))),!i)throw c.v})}),yt?l.ensure(eo,n):Gt(()=>{p||e(()=>{l.ensure(eo,n)})})}else mr(s,o),l.ensure(to,r&&(e=>r(e,s)));return d&&pt(!0),()=>{u=!0}})}var eo,to,no,ro=o((()=>{fe(),Ci(),xr(),xt(),Jt(),st(),Ut(),Kn(),Qa(),nr(),eo=0,to=1,no=2}));function G(e,t,n=!1){var r;yt&&(r=bt,ht());var i=new Za(e),a=n?xe:0;function o(e,t){if(yt){var n=vt(r);if(e!==parseInt(n.substring(1))){var a=_t();mt(a),i.anchor=a,pt(!1),i.ensure(e,t),pt(!0);return}}i.ensure(e,t)}li(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var io=o((()=>{Be(),xt(),Ci(),Qa()}));function ao(e,t,n){yt&&ht();var r=new Za(e),i=!zt();li(()=>{var e=t();e!==e&&(e=oo),i&&typeof e==`object`&&e&&(e={}),r.ensure(e,n)})}var oo,so=o((()=>{Ut(),Ci(),xt(),Qa(),oo=Symbol(`NaN`)}));function co(e,t){yt&&mt(kr(e)),si(()=>{var n=t();for(var r in n){var i=n[r];i?e.style.setProperty(r,i):e.style.removeProperty(r)}})}var lo=o((()=>{Ci(),xt(),Br()}));function uo(e,t){return t}function fo(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];vi(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;po(e,ie(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;jr(u),u.append(l),e.items.clear()}po(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function po(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=Te,Si(a,document.createDocumentFragment())):hi(t[i],n)}}function mo(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=yt?mt(kr(c)):c.appendChild(Or())}yt&&ht();var l=null,u=ar(()=>{var e=n();return te(e)?e:e==null?[]:ie(e)}),d,f=new Map,p=!0;function m(e){g.effect.f&16384||(g.pending.delete(e),g.fallback=l,go(g,d,o,t,r),l!==null&&(d.length===0?l.f&33554432?(l.f^=Te,vo(l,null,o)):bi(l):vi(l,()=>{l=null})))}function h(e){g.pending.delete(e)}var g={effect:li(()=>{d=z(u);var e=d.length;let c=!1;yt&&vt(o)===`[!`!=(e===0)&&(o=_t(),mt(o),pt(!1),c=!0);for(var g=new Set,_=Pn,v=Mr(),y=0;y<e;y+=1){yt&&bt.nodeType===8&&bt.data===`]`&&(o=bt,c=!0,pt(!1));var b=d[y],x=r(b,y),S=p?null:s.get(x);S?(S.v&&mr(S.v,b),S.i&&mr(S.i,y),v&&_.unskip_effect(S.e)):(S=_o(s,p?o:bo??=Or(),b,x,y,i,t,n),p||(S.e.f|=Te),s.set(x,S)),g.add(x)}if(e===0&&a&&!l&&(p?l=di(()=>a(o)):(l=di(()=>a(bo??=Or())),l.f|=Te)),e>g.size&&We(``,``,``),yt&&e>0&&mt(_t()),!p)if(f.set(_,g),v){for(let[e,t]of s)g.has(e)||_.skip_effect(t.e);_.oncommit(m),_.ondiscard(h)}else m(_);c&&pt(!0),z(u)}),flags:t,items:s,pending:f,outrogroups:null,fallback:l};p=!1,yt&&(o=bt)}function ho(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function go(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=ho(e.effect.first),l,u=null,d,f=[],p=[],m,h,g,_;if(a)for(_=0;_<o;_+=1)m=t[_],h=i(m,_),g=s.get(h).e,g.f&33554432||(g.nodes?.a?.measure(),(d??=new Set).add(g));for(_=0;_<o;_+=1){if(m=t[_],h=i(m,_),g=s.get(h).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(g),t.done.delete(g);if(g.f&8192&&(bi(g),a&&(g.nodes?.a?.unfix(),(d??=new Set).delete(g))),g.f&33554432)if(g.f^=Te,g===c)vo(g,null,n);else{var v=u?u.next:c;g===e.effect.last&&(e.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),yo(e,u,g),yo(e,g,v),vo(g,v,n),u=g,f=[],p=[],c=ho(u.next);continue}if(g!==c){if(l!==void 0&&l.has(g)){if(f.length<p.length){var y=p[0],b;u=y.prev;var x=f[0],S=f[f.length-1];for(b=0;b<f.length;b+=1)vo(f[b],y,n);for(b=0;b<p.length;b+=1)l.delete(p[b]);yo(e,x.prev,S.next),yo(e,u,x),yo(e,S,y),c=y,u=S,--_,f=[],p=[]}else l.delete(g),vo(g,c,n),yo(e,g.prev,g.next),yo(e,g,u===null?e.effect.first:u.next),yo(e,u,g),u=g;continue}for(f=[],p=[];c!==null&&c!==g;)(l??=new Set).add(c),p.push(c),c=ho(c.next);if(c===null)continue}g.f&33554432||f.push(g),u=g,c=ho(g.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(po(e,ie(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var C=[];if(l!==void 0)for(g of l)g.f&8192||C.push(g);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&C.push(c),c=ho(c.next);var w=C.length;if(w>0){var T=r&4&&o===0?n:null;if(a){for(_=0;_<w;_+=1)C[_].nodes?.a?.measure();for(_=0;_<w;_+=1)C[_].nodes?.a?.fix()}fo(e,C,T)}}a&&Gt(()=>{if(d!==void 0)for(g of d)g.nodes?.a?.apply()})}function _o(e,t,n,r,i,a,o,s){var c=o&1?o&16?fr(n):pr(n,!1,!1):null,l=o&2?fr(i):null;return{v:c,i:l,e:di(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function vo(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=Ar(r);if(a.before(r),r===i)return;r=o}}function yo(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}var bo,xo=o((()=>{st(),xt(),Br(),Ci(),xr(),fe(),Be(),Jt(),ea(),b(),dr(),Kn(),tt(),Pt()}));function So(e,t,n=!1,r=!1,i=!1,a=!1){var o=e,s=``;if(n){var c=e;yt&&(o=mt(kr(c)))}R(()=>{var e=Ki;if(s===(s=t()??``)){yt&&ht();return}if(n&&!yt){e.nodes=null,c.innerHTML=s,s!==``&&Na(kr(c),c.lastChild);return}if(e.nodes!==null&&(gi(e.nodes.start,e.nodes.end),e.nodes=null),s!==``){if(yt){for(var a=bt.data,l=ht(),u=l;l!==null&&(l.nodeType!==8||l.data!==``);)u=l,l=Ar(l);if(l===null)throw lt(),nt;Na(bt,u),o=mt(l);return}var d=Nr(r?`svg`:i?`math`:`template`,r?at:i?ot:void 0);d.innerHTML=s;var f=r||i?d:d.content;if(Na(kr(f),f.lastChild),r||i)for(;kr(f);)o.before(kr(f));else o.before(f)}})}var Co=o((()=>{st(),Ci(),xt(),Ia(),ft(),pa(),b(),Ut(),Br(),ea(),Be()})),wo=o((()=>{xt()})),To=o((()=>{pa(),He()}));function Eo(e,t,...n){var r=new Za(e);li(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},xe)}var Do=o((()=>{Be(),Ci(),Ut(),xt(),Ma(),Ia(),tt(),b(),Br(),To(),Qa()}));function Oo(e,t,n){var r;yt&&(r=bt,ht());var i=new Za(e);li(()=>{var e=t()??null;if(yt&&vt(r)===`[`!=(e!==null)){var a=_t();mt(a),i.anchor=a,pt(!1),i.ensure(e,e&&(t=>n(t,e))),pt(!0);return}i.ensure(e,e&&(t=>n(t,e)))},xe)}var ko=o((()=>{Be(),Ci(),xt(),Qa(),st()})),Ao,jo,Mo=o((()=>{fe(),b(),Ao=()=>performance.now(),jo={tick:e=>requestAnimationFrame(e),now:()=>Ao(),tasks:new Set}}));function No(){let e=jo.now();jo.tasks.forEach(t=>{t.c(e)||(jo.tasks.delete(t),t.f())}),jo.tasks.size!==0&&jo.tick(No)}function Po(e){let t;return jo.tasks.size===0&&jo.tick(No),{promise:new Promise(n=>{jo.tasks.add(t={c:e,f:n})}),abort(){jo.tasks.delete(t)}}}var Fo=o((()=>{Mo()}));function Io(e){if(e===`float`)return`cssFloat`;if(e===`offset`)return`cssOffset`;if(e.startsWith(`--`))return e;let t=e.split(`-`);return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join(``)}function Lo(e){let t={},n=e.split(`;`);for(let e of n){let[n,r]=e.split(`:`);if(!n||r===void 0)break;let i=Io(n.trim());t[i]=r.trim()}return t}function Ro(e){Ho=e}function zo(e,t,n){var r=(Ho??Ki).nodes,i,a,o,s=null;r.a??={element:e,measure(){i=this.element.getBoundingClientRect()},apply(){if(o?.abort(),a=this.element.getBoundingClientRect(),i.left!==a.left||i.right!==a.right||i.top!==a.top||i.bottom!==a.bottom){let e=t()(this.element,{from:i,to:a},n?.());o=Bo(this.element,e,void 0,1,()=>{},()=>{o?.abort(),o=void 0})}},fix(){if(!e.getAnimations().length){var{position:t,width:n,height:r}=getComputedStyle(e);if(t!==`absolute`&&t!==`fixed`){var a=e.style;s={position:a.position,width:a.width,height:a.height,transform:a.transform},a.position=`absolute`,a.width=n,a.height=r;var o=e.getBoundingClientRect();if(i.left!==o.left||i.top!==o.top){var c=`translate(${i.left-o.left}px, ${i.top-o.top}px)`;a.transform=a.transform?`${a.transform} ${c}`:c}}}},unfix(){if(s){var t=e.style;t.position=s.position,t.width=s.width,t.height=s.height,t.transform=s.transform}}},r.a.element=e}function Bo(e,t,n,r,i,a){var o=r===1;if(x(t)){var s,c=!1;return Gt(()=>{c||(s=Bo(e,t({direction:o?`in`:`out`}),n,r,i,a))}),{abort:()=>{c=!0,s?.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n?.deactivate(),!t?.duration&&!t?.delay)return i(),a(),{abort:E,deactivate:E,reset:E,t:()=>r};let{delay:l=0,css:u,tick:d,easing:f=Vo}=t;var p=[];if(o&&n===void 0&&(d&&d(0,1),u)){var m=Lo(u(0,1));p.push(m,m)}var h=()=>1-r,g=e.animate(p,{duration:l,fill:`forwards`});return g.onfinish=()=>{g.cancel(),i();var o=n?.t()??1-r;n?.abort();var s=r-o,c=t.duration*Math.abs(s),l=[];if(c>0){var p=!1;if(u)for(var m=Math.ceil(c/(1e3/60)),_=0;_<=m;_+=1){var v=o+s*f(_/m),y=Lo(u(v,1-v));l.push(y),p||=y.overflow===`hidden`}p&&(e.style.overflow=`hidden`),h=()=>{var e=g.currentTime;return o+s*f(e/c)},d&&Po(()=>{if(g.playState!==`running`)return!1;var e=h();return d(e,1-e),!0})}g=e.animate(l,{duration:c,fill:`forwards`}),g.onfinish=()=>{h=()=>r,d?.(r,1-r),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=E)},deactivate:()=>{a=E},reset:()=>{r===0&&d?.(1,0)},t:()=>h()}}var Vo,Ho,Uo=o((()=>{fe(),Ci(),ea(),Fo(),Wa(),Be(),Jt(),Jr(),Vo=e=>e,Ho=null}));function Wo(e,t,n,r,i,a){let o=yt;yt&&ht();var s=null;yt&&bt.nodeType===1&&(s=bt,ht());var c=yt?bt:e,l=Ki,u=new Za(c,!1);li(()=>{let e=t()||null;var a=i?i():n||e===`svg`?at:void 0;if(e===null){u.ensure(null,null),La(!0);return}return u.ensure(e,t=>{if(e){if(s=yt?s:Nr(e,a),Na(s,s),r){yt&&oa(e)&&s.append(document.createComment(``));var n=yt?kr(s):s.appendChild(Or());yt&&(n===null?pt(!1):mt(n)),Ro(l),r(s,n),Ro(null)}Ki.nodes.end=s,t.before(s)}yt&&mt(t)}),La(!0),()=>{e&&La(!1)}},xe),$r(()=>{La(!0)}),o&&(pt(!0),mt(c))}var Go=o((()=>{st(),xt(),Br(),Ci(),Wa(),ea(),Ut(),b(),Be(),Ia(),pa(),Qa(),Uo()}));function Ko(e,t){let n=null,r=yt;var i;if(yt){n=bt;for(var a=kr(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=Ar(a);if(a===null)pt(!1);else{var o=Ar(a);a.remove(),mt(o)}}yt||(i=document.head.appendChild(Or()));try{li(()=>{var e=di(()=>t(i));e.f|=Se})}finally{r&&(pt(!0),mt(n))}}var qo=o((()=>{xt(),Br(),Ci(),Be()}));function K(e,t){ai(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=Nr(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Jo=o((()=>{b(),ha(),Ci(),Br()})),Yo=o((()=>{Ci(),ea()}));function Xo(e,t){var n=void 0,r;ui(()=>{n!==(n=t())&&(r&&=(hi(r),null),n&&(r=di(()=>{ai(()=>n(e))})))})}var Zo=o((()=>{Ci()}));function Qo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Qo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function $o(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Qo(e))&&(r&&(r+=` `),r+=t);return r}var es=o((()=>{}));function ts(e){return typeof e==`object`?$o(e):e??``}function ns(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||os.includes(r[o-1]))&&(s===r.length||os.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function rs(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function is(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function as(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(is)),i&&c.push(...Object.keys(i).map(is));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=is(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=rs(r)),i&&(n+=rs(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}var os,ss=o((()=>{es(),fe(),os=[...`
18
18
  \r\f\xA0\v`]}));function cs(e,t,n,r,i,a){var o=e[Pe];if(yt||o!==n||o===void 0){var s=ns(n,r,a);(!yt||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[Pe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}var ls=o((()=>{ss(),Be(),xt()}));function us(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ds(e,t,n,r){var i=e[Fe];if(yt||i!==t){var a=as(t,r);(!yt||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e[Fe]=t}else r&&(Array.isArray(r)?(us(e,n?.[0],r[0]),us(e,n?.[1],r[1],`important`)):us(e,n,r));return r}var fs=o((()=>{ss(),Be(),xt()}));function ps(e,t,n=!1){if(e.multiple){if(t==null)return;if(!te(t))return ut();for(var r of e.options)r.selected=t.includes(hs(r));return}for(r of e.options)if(wr(hs(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function ms(e){var t=new MutationObserver(()=>{ps(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),$r(()=>{t.disconnect()})}function hs(e){return`__value`in e?e.__value:e.value}var gs=o((()=>{Ci(),Jr(),Tr(),fe(),ft(),Kn()}));function _s(e){if(yt){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;q(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;q(e,`checked`,null),e.checked=r}}};e[Le]=n,Gt(n),Ur()}}function vs(e,t){t?e.hasAttribute(`selected`)||e.setAttribute(`selected`,``):e.removeAttribute(`selected`)}function q(e,t,n,r){var i=xs(e);yt&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ds)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[Me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ss(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ys(e,t,n,r,i=!1,a=!1){if(yt&&i&&e.nodeName===Os){var o=e;(o.type===`checkbox`?`defaultChecked`:`defaultValue`)in n||_s(o)}var s=xs(e),c=s[Ts],l=!s[Es];let u=yt&&c;u&&pt(!1);var d=t||{},f=e.nodeName===ks;for(var p in t)p in n||(n[p]=null);n.class?n.class=ts(n.class):(r||n[Cs])&&(n.class=null),n[ws]&&(n.style??=null);var m=Ss(e);for(let i in n){let o=n[i];if(f&&i===`value`&&o==null){e.value=e.__value=``,d[i]=o;continue}if(i===`class`){cs(e,e.namespaceURI===`http://www.w3.org/1999/xhtml`,o,r,t?.[Cs],n[Cs]),d[i]=o,d[Cs]=n[Cs];continue}if(i===`style`){ds(e,o,t?.[ws],n[ws]),d[i]=o,d[ws]=n[ws];continue}var h=d[i];if(!(o===h&&!(o===void 0&&e.hasAttribute(i)))){d[i]=o;var g=i[0]+i[1];if(g!==`$$`)if(g===`on`){let t={},n=`$$`+i,r=i.slice(2);var _=ra(r);if(na(r)&&(r=r.slice(0,-7),t.capture=!0),!_&&h){if(o!=null)continue;e.removeEventListener(r,d[n],t),d[n]=null}if(_)xa(r,e,o),Sa([r]);else if(o!=null){function a(e){d[i].call(this,e)}d[n]=va(r,e,a,t)}}else if(i===`style`)q(e,i,o);else if(i===`autofocus`)Vr(e,!!o);else if(!c&&(i===`__value`||i===`value`&&o!=null))e.value=e.__value=o;else if(i===`selected`&&f)vs(e,o);else{var v=i;l||(v=ia(v));var y=v===`defaultValue`||v===`defaultChecked`;if(o==null&&!c&&!y)if(s[i]=null,v===`value`||v===`checked`){let n=e,r=t===void 0;if(v===`value`){let e=n.defaultValue;n.removeAttribute(v),n.defaultValue=e,n.value=n.__value=r?e:null}else{let e=n.defaultChecked;n.removeAttribute(v),n.defaultChecked=e,n.checked=r?e:!1}}else e.removeAttribute(i);else y||m.includes(v)&&(c||typeof o!=`string`)?(e[v]=o,v in s&&(s[v]=rt)):typeof o!=`function`&&q(e,v,o,a)}}}return u&&pt(!0),d}function bs(e,t,n=[],r=[],i=[],a,o=!1,s=!1){Qn(i,n,r,n=>{var r=void 0,i={},c=e.nodeName===As,l=!1;if(ui(()=>{var u=t(...n.map(z)),d=ys(e,r,u,a,o,s);l&&c&&`value`in u&&ps(e,u.value);for(let e of Object.getOwnPropertySymbols(i))u[e]||hi(i[e]);for(let t of Object.getOwnPropertySymbols(u)){var f=u[t];t.description===`@attach`&&(!r||f!==r[t])&&(i[t]&&hi(i[t]),i[t]=di(()=>Xo(e,()=>f))),d[t]=f}r=d}),c){var u=e;ai(()=>{ps(u,r.value,!0),ms(u)})}l=!0})}function xs(e){return e[Ne]??={[Ts]:e.nodeName.includes(`-`),[Es]:e.namespaceURI===it}}function Ss(e){var t=e.getAttribute(`is`)||e.nodeName,n=js.get(t);if(n)return n;js.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=se(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=ue(i)}return n}var Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms=o((()=>{b(),xt(),fe(),Oa(),Gr(),ft(),Be(),Jt(),pa(),ea(),Zo(),ss(),ls(),fs(),st(),Ci(),gs(),nr(),Cs=Symbol(`class`),ws=Symbol(`style`),Ts=Symbol(`is custom element`),Es=Symbol(`is html`),Ds=ze?`link`:`LINK`,Os=ze?`input`:`INPUT`,ks=ze?`option`:`OPTION`,As=ze?`select`:`SELECT`,js=new Map})),Ns=o((()=>{xt(),Br(),Ma(),Zo()})),Ps=o((()=>{Jr()}));function Fs(e,t,n=t){var r=new WeakSet;qr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=Is(e)?Ls(a):a,n(a),Pn!==null&&r.add(Pn),await zi(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(yt&&e.defaultValue!==e.value||B(t)==null&&e.value)&&(n(Is(e)?Ls(e.value):e.value),Pn!==null&&r.add(Pn)),si(()=>{var n=t();if(e===document.activeElement){var i=Et?Fn:Pn;if(r.has(i))return}Is(e)&&n===Ls(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function Is(e){var t=e.type;return t===`number`||t===`range`}function Ls(e){return e===``?null:+e}var Rs=o((()=>{b(),Ci(),Jr(),tt(),Tr(),Jt(),xt(),ea(),Ut(),Kn(),Ot()})),nee=o((()=>{Ci(),Jr()})),zs=o((()=>{Jr()})),Bs=o((()=>{Ci(),fe()})),Vs=o((()=>{Ci(),ea()}));function Hs(e,t){return e===t||e?.[Ae]===t}function Us(e={},t,n,r){var i=Ht.r,a=Ki;return ai(()=>{var o,s;return si(()=>{o=s,s=r?.()||[],B(()=>{Hs(n(...s),e)||(t(e,...s),o&&Hs(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&Hs(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}var Ws=o((()=>{Be(),Ut(),Ci(),ea()})),Gs=o((()=>{Ci(),Jr()})),Ks=o((()=>{Ci(),Jr()})),qs=o((()=>{fe(),Ci(),Oa()})),Js=o((()=>{fe(),Ut(),dr(),Ci(),ea()})),Ys=o((()=>{xr(),ea(),fe()}));function Xs(e,t,n){return new Proxy({props:e,exclude:t},Qs)}function Zs(...e){return new Proxy({props:e},$s)}function J(e,t,n,r){var i=!Dt||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=void 0,u=()=>o&&i?(l??=rr(r),z(l)):(c&&(c=!1,s=o?B(r):r),s);let d;if(a){var f=Ae in e||je in e;d=oe(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=vn(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Ye(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?rr:ar)(()=>(_=!1,h()));a&&z(v);var y=Ki;return(function(e,t){if(arguments.length>0){let n=t?z(v):i&&a?Sr(e):e;return P(v,n),_=!0,s!==void 0&&(s=n),e}return Ui&&_||y.f&16384?v.v:z(v)})}var Qs,$s,ec=o((()=>{b(),st(),fe(),xr(),dr(),ea(),tt(),Be(),Tr(),Sn(),Ot(),Ci(),Qs={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}},$s={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(x(r)&&(r=r()),typeof r==`object`&&r&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];x(i)&&(i=i());let a=oe(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(x(r)&&(r=r()),typeof r==`object`&&r&&t in r){let e=oe(r,t);return e&&!e.configurable&&(e.configurable=!0),e}}},has(e,t){if(t===Ae||t===je)return!1;for(let n of e.props)if(x(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){let t=[];for(let n of e.props)if(x(n)&&(n=n()),n){for(let e in n)t.includes(e)||t.push(e);for(let e of Object.getOwnPropertySymbols(n))t.includes(e)||t.push(e)}return t}}})),tc=o((()=>{Ut(),Ci(),Sn(),nr()})),nc=o((()=>{Be(),Ci(),xr(),Wa(),ea(),Kn(),fe(),tt(),Ut(),Ot(),tn(),qs()})),ree=o((()=>{nc(),Ci(),Ia(),fe(),Br()})),rc=o((()=>{Be(),Nt(),ea()})),Y=o((()=>{ta(),st(),Ut(),ma(),ha(),ga(),Ga(),Ka(),qa(),Pt(),Ja(),Ya(),Xa(),ro(),io(),so(),lo(),xo(),Co(),wo(),Do(),ko(),Go(),qo(),Jo(),Yo(),Zo(),Ms(),ls(),Oa(),Gr(),Ns(),fs(),Uo(),Ps(),Rs(),nee(),zs(),Bs(),gs(),Vs(),Ws(),Gs(),Ks(),xt(),qs(),Js(),Ys(),Ia(),nr(),Kn(),dr(),Ci(),xr(),ec(),Sn(),Zn(),Ti(),Wa(),ea(),tc(),Mo(),Tr(),ree(),Br(),ss(),Nt(),fe(),To(),Er(),rc(),Zt()})),ic=o((()=>{xt(),tt()}));function ac(e){Ht===null&&Ve(`onMount`),Dt&&Ht.l!==null?oc(Ht).m.push(e):ei(()=>{let t=B(e);if(typeof t==`function`)return t})}function oc(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var sc=o((()=>{ea(),fe(),Y(),tt(),Ot(),Ut(),b(),Kn(),ic(),Wa(),Do()}));function cc(e){return e&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function lc(e){return e}function uc(e,t){t||={};let n=t.delimiter||`.`,r=t.maxDepth,i=t.transformKey||lc,a={};function o(e,s,c){c||=1,Object.keys(e).forEach(function(l){let u=e[l],d=t.safe&&Array.isArray(u),f=Object.prototype.toString.call(u),p=cc(u),m=f===`[object Object]`||f===`[object Array]`,h=s?s+n+i(l):i(l);if(!d&&!p&&m&&Object.keys(u).length&&(!t.maxDepth||c<r))return o(u,h,c+1);a[h]=u})}return o(e),a}function dc(e,t){t||={};let n=t.delimiter||`.`,r=t.overwrite||!1,i=t.transformKey||lc,a={};if(cc(e)||Object.prototype.toString.call(e)!==`[object Object]`)return e;function o(e){let n=Number(e);return isNaN(n)||e.indexOf(`.`)!==-1||t.object?e:n}function s(e,t,r){return Object.keys(r).reduce(function(t,i){return t[e+n+i]=r[i],t},t)}function c(e){let t=Object.prototype.toString.call(e),n=t===`[object Array]`,r=t===`[object Object]`;if(!e)return!0;if(n)return!e.length;if(r)return!Object.keys(e).length}return e=Object.keys(e).reduce(function(n,r){let i=Object.prototype.toString.call(e[r]);return!(i===`[object Object]`||i===`[object Array]`)||c(e[r])?(n[r]=e[r],n):s(r,n,uc(e[r],t))},{}),Object.keys(e).forEach(function(s){let c=s.split(n).map(i),l=o(c.shift()),u=o(c[0]),d=a;for(;u!==void 0;){if(l===`__proto__`)return;let e=Object.prototype.toString.call(d[l]),n=e===`[object Object]`||e===`[object Array]`;if(!r&&!n&&d[l]!==void 0)return;(r&&!n||!r&&d[l]==null)&&(d[l]=typeof u==`number`&&!t.object?[]:{}),d=d[l],c.length>0&&(l=o(c.shift()),u=o(c[0]))}d[l]=dc(e[s],t)}),a}var fc=o((()=>{}));
19
19
  /**
20
20
  * @license
@@ -431,11 +431,11 @@ Wx=(e,t,n)=>(e.has(t)||e.set(t,n()),e.get(t))})),Kx,qx,Jx,Yx,Xx,Zx,Qx,$x=o((()=>
431
431
  `).map(e=>e.startsWith(`*.`)&&e.includes(`filter=lfs`)?e.split(` `)[0].slice(2).toLowerCase():``).filter(Boolean)??[])})),BS=s(((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(){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 ee||!(!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 ee(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var ee=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(T.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 T},_.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 T.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=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.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 T.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=T.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[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.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 T.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=T.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 T.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 T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.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 T.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 T.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 T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.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=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.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:T.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 T.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=ee.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,ee,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}))})),VS=s(((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(){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)}}}))})),HS=s(((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(){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)}}}))})),US=s(((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(){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)}}}))})),WS,Dne=o((()=>{WS=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`],[`−`,`-`],[`⁓`,`-`]])})),GS,KS,One=o((()=>{GS=[[`æ`,`ae`],[`Æ`,`Ae`],[`ø`,`oe`],[`Ø`,`Oe`],[`å`,`aa`],[`Å`,`Aa`]],KS={sv:[[`ä`,`a`],[`Ä`,`A`],[`ö`,`o`],[`Ö`,`O`],[`å`,`a`],[`Å`,`A`]],da:GS,nb:GS,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(KS))KS[e]=new Map(KS[e])}));function kne(e,t){if(typeof e!=`string`)throw TypeError(`Expected a string, got \`${typeof e}\``);t={customReplacements:[],...t};let n=ZS(t.locale),r=[...t.customReplacements],i=WS,a=YS;if(n&&({replacements:i,pattern:a}=XS.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 qS,JS,YS,XS,ZS,Ane=o((()=>{Dne(),One(),qS=e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),JS=e=>{let t=[...e.keys()].sort((e,t)=>t.length-e.length);return new RegExp(t.map(e=>qS(e)).join(`|`),`gu`)},YS=JS(WS),XS=new Map;for(let[e,t]of Object.entries(KS)){let n=new Map(WS);for(let[e,r]of t)n.set(e,r);XS.set(e,{replacements:n,pattern:JS(n)})}ZS=e=>{if(!e)return;let t=e.toLowerCase().replace(/^no(-|$)/,`nb$1`);if(Object.hasOwn(KS,t))return t;let n=t.split(`-`)[0];if(Object.hasOwn(KS,n))return n}})),QS,$S,eC,tC=o((()=>{Ane(),yp(),Ep(),sp(),uF(),Gx(),QS=[`da`,`de`,`hu`,`nb`,`sr`,`sv`,`tr`],$S=new Map,eC=(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(aF)??{},u=r??s,d=e;if(a&&(d=kne(d.normalize(`NFD`),{locale:n&&QS.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=Wx($S,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=gp(`short`)),typeof u==`number`&&d.length>u&&(d=xp(d,u,{ellipsis:``})),l&&(d=d.toLocaleLowerCase()),d}})),nC,rC=o((()=>{nC=({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]))}})),iC,aC,oC,sC,cC,lC,uC=o((()=>{iC=/^\d{4}-[01]\d-[0-3]\d$/,aC=/T00:00(?::00)?(?:\.000)?Z$/,oC={year:`numeric`,month:`short`,day:`numeric`},sC={hour:`numeric`,minute:`numeric`,hour12:!0},cC={...oC,...sC},lC=(e,t)=>e.toLocaleString(t??void 0,cC)})),dC,fC,pC,mC,hC,gC,_C,vC,yC,bC,xC,SC,CC=o((()=>{rC(),dC=l(BS(),1),fC=l(VS(),1),pC=l(HS(),1),mC=l(US(),1),_b(),uC(),dC.default.extend(fC.default),dC.default.extend(pC.default),dC.default.extend(mC.default),hC=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}},gC=e=>e instanceof Date&&!Number.isNaN(e.getTime()),_C=e=>e?dC.default.utc:dC.default,vC=(e,t)=>{let{format:n,timeOnly:r,utc:i}=hC(t);if(!e)return;let a;if(n){let t=_C(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),gC(a))return a;console.error(`Invalid Date`,e)},yC=e=>{let{dateOnly:t,timeOnly:n,utc:r}=hC(e),{year:i,month:a,day:o,hour:s,minute:c}=nC({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}`},bC=(e,t,n)=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=hC(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=_C(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}`}},xC=(e,t)=>{let{dateOnly:n,timeOnly:r,utc:i}=hC(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=vC(e,t);if(!o)return``;let{year:s,month:c,day:l,hour:u,minute:d}=nC({date:o,timeZone:i?`UTC`:void 0}),f=`${s}-${c}-${l}`,p=`${u}:${d}`;return n?f:r?p:`${f}T${p}`},SC=({locale:e,fieldConfig:t,currentValue:n})=>{let{format:r,dateOnly:i,timeOnly:a,utc:o}=hC(t);if(typeof n!=`string`||!n.trim())return``;if(r){let e=_C(o),t=e(n,r);return!t.isValid()&&(t=e(n),!t.isValid())?(console.error(`Invalid Date`,n),``):t.format(r)}let s=vC(n,t),c=ub(e);return gC(s)?a?s.toLocaleTimeString(c,sC):i?s.toLocaleDateString(c,{...oC,timeZone:o||iC.test(n)||aC.test(n)?`UTC`:void 0}):s.toLocaleString(c,{...oC,...sC,timeZone:o?`UTC`:void 0,timeZoneName:o?void 0:`short`}):``}})),wC,jne,Mne,Nne,TC,EC,DC,Pne,Fne,Ine,Lne,Rne,zne,Bne,Vne,OC,kC=o((()=>{Ep(),wC=l(BS(),1),jne=l(VS(),1),Mne=l(HS(),1),Nne=l(US(),1),tC(),CC(),wC.default.extend(jne.default),wC.default.extend(Mne.default),wC.default.extend(Nne.default),TC=/^date\('(?<format>.+?)'(?:,\s*'(?<timeZone>.+?)')?\)$/,EC=/^default\('(?<defaultValue>.+?)'\)$/,DC=/^ternary\('(?<truthyValue>.*?)',\s*'(?<falsyValue>.*?)'\)$/,Pne=/^truncate\((?<max>\d+)(?:,\s*'(?<ellipsis>.+?)')?\)$/,Fne=e=>String(e).toUpperCase(),Ine=e=>String(e).toLowerCase(),Lne=(e,{format:t,timeZone:n},r)=>{let i=String(e),{dateOnly:a,utc:o}=hC(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$/)?wC.default.utc:wC.default)(i);return s.isValid()?s.format(t):``},Rne=(e,{defaultValue:t})=>e?String(e):t,zne=(e,{truthyValue:t,falsyValue:n})=>e?t:n,Bne=(e,{max:t,ellipsis:n=`…`})=>xp(String(e),Number(t),{ellipsis:n}),Vne=({fieldConfig:e,value:t,transformation:n,locale:r})=>{if(n===`upper`)return Fne(t);if(n===`lower`)return Ine(t);if(n===`slugify`)return eC(String(t),{locale:r});let i=n.match(TC);if(i?.groups)return Lne(t,i.groups,e??{});let a=n.match(EC);if(a?.groups)return Rne(t,a.groups);let o=n.match(DC);if(o?.groups)return zne(t,o.groups);let s=n.match(Pne);return s?.groups?Bne(t,s.groups):String(t)},OC=({fieldConfig:e,value:t,transformations:n,locale:r})=>(n.forEach(n=>{t=Vne({fieldConfig:e,value:t,transformation:n,locale:r})}),t)})),AC,jC,Hne,MC=o((()=>{AC=[`file`,`image`],jC=[...AC,`relation`,`select`],Hne=[...jC,`datetime`,`keyvalue`,`list`,`number`]})),Une,Wne,Gne,NC,PC,FC,Kne,qne,IC=o((()=>{sp(),uF(),Une=`https://console.cloudinary.com`,Wne=[`cloud_name`,`api_key`,`username`,`timestamp`,`signature`,`integration`,`use_saml`,`saml_iframe_support`],Gne=[`integration`,`inline_container`,`z_index`,`multiple`,`max_files`,`default_transformations`,`insert_caption`,`remove_header`,`folder`,`search`,`collection`,`asset`,`transformation`,`sandboxNotAllowedAttributes`,`theme`],NC=e=>{let t=A(aF);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},PC=new Map,FC=e=>{let t=e?JSON.stringify(e):`global`,n=PC.get(t);if(n)return n;let r=NC()||{config:{}},i=NC(e)||{config:{}},a={...r,...i,config:{...r.config,...i.config}};return PC.set(t,a),a},Kne=e=>{let t=NC(e)??NC(),{cloud_name:n,api_key:r}=(t?t.config:void 0)??{};return!!(n&&r)},qne={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:Kne}})),LC,RC,Jne,zC,Yne,Xne,BC,VC,HC,UC,WC=o((()=>{tS(),IS(),LC=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)},RC=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(``)},Jne=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 RC(g)].join(`
434
- `),b=await LC(await LC(await LC(await LC(await LC(`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(` `)},zC=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 RC(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await Jne({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}})},Yne=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)},Xne=({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}`,BC=(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=Xne({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:FS(t)}})},VC=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 zC({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=Yne(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 eS(50)}return BC(c?u.filter(e=>FS(e.Key)===c):u,e)},HC=async(e,t,n)=>{let r=await VC(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},UC=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 zC({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 eS(50)}return BC(l,t)}})),GC,Zne,Qne,$ne,ere,tre,nre=o((()=>{sp(),uF(),WC(),GC=(e=A(aF))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),Zne=e=>{let t=GC(e)??GC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Qne=async e=>{let{fieldConfig:t}=e,n=GC(t)??GC();return n?VC(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},$ne=async(e,t)=>{let{fieldConfig:n}=t,r=GC(n)??GC();return r?HC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},ere=async(e,t)=>{let{fieldConfig:n}=t,r=GC(n)??GC();return r?UC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},tre={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:Zne,list:Qne,search:$ne,upload:ere}})),rre,KC,qC,ire,are,ore,sre,cre,lre=o((()=>{sp(),uF(),WC(),rre={default:``,eu:`eu.`,fedramp:`fedramp.`},KC=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${rre[t]??``}r2.cloudflarestorage.com`,qC=(e=A(aF))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),ire=e=>{let t=qC(e)??qC();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},are=async e=>{let{fieldConfig:t}=e,n=qC(t)??qC();return n?VC({...n,region:`auto`,endpoint:KC(n)},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},ore=async(e,t)=>{let{fieldConfig:n}=t,r=qC(n)??qC();return r?HC(e,{...r,region:`auto`,endpoint:KC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},sre=async(e,t)=>{let{fieldConfig:n}=t,r=qC(n)??qC();return r?UC(e,{...r,region:`auto`,endpoint:KC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},cre={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:ire,list:are,search:ore,upload:sre}})),JC,ure,dre,fre,YC,XC,pre=o((()=>{sp(),uF(),WC(),JC=(e=A(aF))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),ure=e=>{let t=JC(e)??JC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},dre=async e=>{let{fieldConfig:t}=e,n=JC(t)??JC();return n?VC({...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`))},fre=async(e,t)=>{let{fieldConfig:n}=t,r=JC(n)??JC();return r?HC(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`))},YC=async(e,t)=>{let{fieldConfig:n}=t,r=JC(n)??JC();return r?UC(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`))},XC={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:ure,list:dre,search:fre,upload:YC}})),mre=s(((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}})),hre=s(((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}})),gre=s(((e,t)=>{var n=mre(),r=hre();t.exports=n.bind(null,r)})),_re=s(((e,t)=>{var n=gre(),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,``)}})),ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw=o((()=>{Z(),yp(),zp(),Ep(),ZC=l(_re(),1),tC(),QC=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),$C=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},ew=e=>decodeURIComponent(e),tw=new Map,nw=e=>{let t=Ph.current,n=tw.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),tw.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)}})},rw=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=jp(e),i=RegExp(`^${bp(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>Tp(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},iw=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,ZC.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=jp(r);r=`${eC(e)}${t?`.${t.toLowerCase()}`:``}`}return rw(r,n)},aw=e=>e.filter(Boolean).join(`/`),ow=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}),aw(t)},sw=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,cw=async e=>{let t=await sw(e).arrayBuffer();return vp(new Blob([`blob ${t.byteLength}\0`,t]))}})),uw,dw,fw,pw,mw,hw,gw,_w,vw,yw,vre=o((()=>{tS(),sp(),uF(),lw(),uw=(e=A(aF))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),dw=e=>{let t=uw(e)??uw();return t?t.config?.publicKey:void 0},fw=e=>!!dw(e),pw=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(uw(t)??uw())||{};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`}})},mw=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=dw(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 eS(50)}return pw(l,{fieldConfig:i})},hw=async e=>mw(e),gw=async(e,t)=>{let n=e.toLowerCase();return mw(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},_w=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(``)},vw=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=dw(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 _w(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(iw(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 pw(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})},yw={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:fw,list:hw,search:gw,upload:vw}})),bw,xw,Sw=o((()=>{IC(),nre(),lre(),pre(),vre(),bw={aws_s3:tre,cloudflare_r2:cre,cloudinary:qne,digitalocean_spaces:XC,uploadcare:yw},xw=Object.keys(bw)})),Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,jw,Mw,Nw,Pw,Fw,yre=o((()=>{Cw=`@sveltia/cms`,ww=`0.161.1`,Tw=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,Ew=[`svelte`,`cms`,`content-management-system`],Dw=`https://sveltiacms.app/en/`,Ow={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},kw={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Aw=`module`,jw={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`},Mw={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.44.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.0`,"@sveltia/ui":`^0.39.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.12.0`,leaflet:`^1.9.4`,lexical:`^0.44.0`,marked:`^18.0.3`,"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.0`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Nw={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.7.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.14`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.6`,cspell:`^10.0.0`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^62.9.0`,"eslint-plugin-package-json":`^0.91.2`,"eslint-plugin-svelte":`^3.17.1`,"eslint-plugin-unused-imports":`^4.4.1`,globals:`^17.6.0`,oxlint:`^1.64.0`,postcss:`^8.5.14`,"postcss-html":`^1.8.1`,prettier:`^3.8.3`,"prettier-plugin-svelte":`^3.5.2`,sass:`^1.99.0`,stylelint:`^17.11.1`,"stylelint-config-recommended-scss":`^17.0.1`,"stylelint-scss":`^7.1.1`,svelte:`^5.55.7`,"svelte-check":`^4.4.8`,"svelte-preprocess":`^6.0.3`,"ts-json-schema-generator":`^2.9.0`,typescript:`^5.9.3`,vite:`^8.0.13`,vitest:`^4.1.6`},Pw={directory:`package`,access:`public`,provenance:!0},Fw={name:Cw,version:ww,description:Tw,keywords:Ew,homepage:Dw,repository:Ow,license:`MIT`,author:kw,type:Aw,scripts:jw,dependencies:Mw,devDependencies:Nw,publishConfig:Pw}})),Iw,Lw,Rw=o((()=>{yre(),{dependencies:Iw,version:Lw}=Fw})),zw,Bw,Vw,Hw,Uw=o((()=>{zw=`modulepreload`,Bw=function(e){return`/`+e},Vw={},Hw=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Bw(t,n),t in Vw)return;Vw[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:zw,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Ww,Gw,Kw=o((()=>{Rw(),Uw(),Ww=e=>{let t=`https://unpkg.com/${e}`,n=Iw[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Gw=async(e,t)=>Hw(()=>import(`${Ww(e)}/${t}`),[])})),qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT=o((()=>{qw=[`avif`,`gif`,`jpeg`,`png`,`webp`],Jw=qw.map(e=>`image/${e}`),Yw=/\b(?:avif|gif|jpe?g|png|webp)$/i,Xw=[`svg`],Zw=[`image/svg+xml`],Qw=/\b(?:svg)$/i,[...qw,...Xw],$w=[...Jw,...Zw],eT=[`webp`]})),nT,rT,iT,aT=o((()=>{Kw(),tT(),nT={},rT=async e=>{if(e in nT)return nT[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return nT[e]=r,r},iT=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await rT(t)&&eT.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Gw(`@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})}})),oT,sT,cT=o((()=>{oT=({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}},sT=(e,t,n)=>{let{scale:r,width:i,height:a}=oT(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),lT,uT,dT,fT,pT,mT=o((()=>{Kw(),aT(),cT(),lT=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})},uT=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)})},dT=async e=>e.type.startsWith(`video/`)?uT({blob:e}):lT({blob:e}),fT=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 dT(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return sT(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),iT(l,{format:t,quality:n})},pT=async e=>{let t=await e.text();try{let{optimize:n}=await Gw(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),hT,gT,_T,vT,yT,bT,bre=o((()=>{Kw(),aT(),cT(),Uw(),hT=Ww(`pdfjs-dist`),gT=`${hT}/build/pdf.min.mjs`,_T=`${hT}/build/pdf.worker.min.mjs`,vT={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${hT}/cmaps/`,iccUrl:`${hT}/iccs/`,standardFontDataUrl:`${hT}/standard_fonts/`,wasmUrl:`${hT}/wasm/`},bT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!yT)try{yT=await Hw(()=>import(gT),[]),yT.GlobalWorkerOptions.workerSrc=_T}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 yT.getDocument({...vT,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=sT(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 iT(s,{format:t,quality:n})}})),xT,ST,CT,wT,TT,ET,DT,OT,kT=o((()=>{zp(),tS(),mS(),Ep(),ES(),sp(),MF(),Yp(),zP(),uF(),Sw(),IC(),lw(),mT(),bre(),xT=new Set,ST=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(xT.has(o)&&t<=25)return await eS(200),ST(e,t+1);xT.add(o);let n=await A(LP)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:TS.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),xT.delete(o),s},CT=async e=>(e.blobURL||await ST(e),e.blobURL),wT=void 0,TT=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(wT===void 0){let{databaseName:e}=A(LP)?.repository??{};wT=e?new dS(e,`asset-thumbnails`):null}let r=await wT?.get(e.sha);if(!r){if(t)return;let i=await ST(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await bT(i,a):await fT(i,a),await wT?.set(e.sha,r)}return URL.createObjectURL(r)},ET=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:qp(e.path).find(({collectionName:e})=>e!==void 0)??A(Vp);if(a){if(t){let t=jp(e.path).dirname,n=r?jp(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===aw([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(aF),l=o?e.path.replace(QC(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:bp(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=$C(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},DT=e=>{if(bw.cloudinary?.isEnabled?.()){let t=FC(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},OT=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(OF(e)){let t=DT(i);if(t)return`${t}/${e}`}let s=kF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await TT(s):await CT(s))??ET(s)}}));
435
- /*! @license DOMPurify 3.4.3 | (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.3/LICENSE */
434
+ `),b=await LC(await LC(await LC(await LC(await LC(`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(` `)},zC=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 RC(i),d={Host:l.host,"x-amz-date":c.toISOString().replace(/[:-]|\.\d{3}/g,``),"x-amz-content-sha256":u,...a},f=await Jne({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}})},Yne=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)},Xne=({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}`,BC=(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=Xne({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:FS(t)}})},VC=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 zC({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=Yne(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 eS(50)}return BC(c?u.filter(e=>FS(e.Key)===c):u,e)},HC=async(e,t,n)=>{let r=await VC(t,n,{maxPages:5}),i=e.toLowerCase();return r.filter(e=>e.fileName.toLowerCase().includes(i)||e.description.toLowerCase().includes(i))},UC=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 zC({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 eS(50)}return BC(l,t)}})),GC,Zne,Qne,$ne,ere,tre,nre=o((()=>{sp(),uF(),WC(),GC=(e=A(aF))=>e?.media_libraries?.aws_s3??(e?.media_library?.name===`aws_s3`?e?.media_library:void 0),Zne=e=>{let t=GC(e)??GC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},Qne=async e=>{let{fieldConfig:t}=e,n=GC(t)??GC();return n?VC(n,e):Promise.reject(Error(`Amazon S3 configuration is not available`))},$ne=async(e,t)=>{let{fieldConfig:n}=t,r=GC(n)??GC();return r?HC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},ere=async(e,t)=>{let{fieldConfig:n}=t,r=GC(n)??GC();return r?UC(e,r,t):Promise.reject(Error(`Amazon S3 configuration is not available`))},tre={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:Zne,list:Qne,search:$ne,upload:ere}})),rre,KC,qC,ire,are,ore,sre,cre,lre=o((()=>{sp(),uF(),WC(),rre={default:``,eu:`eu.`,fedramp:`fedramp.`},KC=({account_id:e,jurisdiction:t=`default`})=>`https://${e}.${rre[t]??``}r2.cloudflarestorage.com`,qC=(e=A(aF))=>e?.media_libraries?.cloudflare_r2??(e?.media_library?.name===`cloudflare_r2`?e?.media_library:void 0),ire=e=>{let t=qC(e)??qC();return!!(t&&t.access_key_id&&t.bucket&&t.account_id)},are=async e=>{let{fieldConfig:t}=e,n=qC(t)??qC();return n?VC({...n,region:`auto`,endpoint:KC(n)},e):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},ore=async(e,t)=>{let{fieldConfig:n}=t,r=qC(n)??qC();return r?HC(e,{...r,region:`auto`,endpoint:KC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},sre=async(e,t)=>{let{fieldConfig:n}=t,r=qC(n)??qC();return r?UC(e,{...r,region:`auto`,endpoint:KC(r)},t):Promise.reject(Error(`Cloudflare R2 configuration is not available`))},cre={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:ire,list:are,search:ore,upload:sre}})),JC,ure,dre,fre,YC,XC,pre=o((()=>{sp(),uF(),WC(),JC=(e=A(aF))=>e?.media_libraries?.digitalocean_spaces??(e?.media_library?.name===`digitalocean_spaces`?e?.media_library:void 0),ure=e=>{let t=JC(e)??JC();return!!(t&&t.access_key_id&&t.bucket&&t.region)},dre=async e=>{let{fieldConfig:t}=e,n=JC(t)??JC();return n?VC({...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`))},fre=async(e,t)=>{let{fieldConfig:n}=t,r=JC(n)??JC();return r?HC(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`))},YC=async(e,t)=>{let{fieldConfig:n}=t,r=JC(n)??JC();return r?UC(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`))},XC={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:ure,list:dre,search:fre,upload:YC}})),mre=s(((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}})),hre=s(((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}})),gre=s(((e,t)=>{var n=mre(),r=hre();t.exports=n.bind(null,r)})),_re=s(((e,t)=>{var n=gre(),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,``)}})),ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw=o((()=>{Z(),yp(),zp(),Ep(),ZC=l(_re(),1),tC(),QC=(e,t)=>RegExp(`^${e.split(`/`).map(t).join(`\\/`)}(?=\\/|$)`),$C=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},ew=e=>decodeURIComponent(e),tw=new Map,nw=e=>{let t=Ph.current,n=tw.get(t);n||(n=new Intl.NumberFormat(t,{maximumFractionDigits:1}),tw.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)}})},rw=(e,t)=>{if(!t.length)return e;let{filename:n,extension:r}=jp(e),i=RegExp(`^${bp(n)}(?:-(?<num>\\d+?))?${r?`\\.${r}`:``}$`),a=t.sort((e,t)=>Tp(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},iw=(e,{slugificationEnabled:t=!1,assetNamesInSameFolder:n=[]}={})=>{let r=(0,ZC.default)(e.normalize().replace(/[\s\u00A0\u202F]+/g,` `));if(t){let{filename:e,extension:t}=jp(r);r=`${eC(e)}${t?`.${t.toLowerCase()}`:``}`}return rw(r,n)},aw=e=>e.filter(Boolean).join(`/`),ow=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}),aw(t)},sw=e=>typeof e==`string`?new Blob([e],{type:`text/plain`}):e,cw=async e=>{let t=await sw(e).arrayBuffer();return vp(new Blob([`blob ${t.byteLength}\0`,t]))}})),uw,dw,fw,pw,mw,hw,gw,_w,vw,yw,vre=o((()=>{tS(),sp(),uF(),lw(),uw=(e=A(aF))=>e?.media_libraries?.uploadcare??(e?.media_library?.name===`uploadcare`?e?.media_library:void 0),dw=e=>{let t=uw(e)??uw();return t?t.config?.publicKey:void 0},fw=e=>!!dw(e),pw=(e,{fieldConfig:t}={})=>{let{settings:{autoFilename:n=!1,defaultOperations:r=void 0}={},config:{cdnBase:i=void 0}={}}=(uw(t)??uw())||{};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`}})},mw=async(e,{maxPages:t=10,filter:n}={})=>{let{kind:r,fieldConfig:i,apiKey:a}=e,o=dw(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 eS(50)}return pw(l,{fieldConfig:i})},hw=async e=>mw(e),gw=async(e,t)=>{let n=e.toLowerCase();return mw(t,{filter:e=>e.original_filename.toLowerCase().includes(n)})},_w=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(``)},vw=async(e,t)=>{if(e.length===0)return[];let{fieldConfig:n,apiKey:r}=t,i=dw(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 _w(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(iw(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 pw(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})},yw={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:fw,list:hw,search:gw,upload:vw}})),bw,xw,Sw=o((()=>{IC(),nre(),lre(),pre(),vre(),bw={aws_s3:tre,cloudflare_r2:cre,cloudinary:qne,digitalocean_spaces:XC,uploadcare:yw},xw=Object.keys(bw)})),Cw,ww,Tw,Ew,Dw,Ow,kw,Aw,jw,Mw,Nw,Pw,Fw,yre=o((()=>{Cw=`@sveltia/cms`,ww=`0.162.1`,Tw=`Sveltia CMS is a modern, lightweight, Git-based headless content management system.`,Ew=[`svelte`,`cms`,`content-management-system`],Dw=`https://sveltiacms.app/en/`,Ow={type:`git`,url:`git+https://github.com/sveltia/sveltia-cms.git`},kw={name:`Kohei Yoshino`,url:`https://github.com/kyoshino`},Aw=`module`,jw={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`},Mw={"@jsquash/webp":`^1.5.0`,"@lexical/markdown":`^0.44.0`,"@sindresorhus/transliterate":`^2.3.1`,"@sveltia/i18n":`^1.1.0`,"@sveltia/ui":`^0.39.2`,"@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.13.0`,leaflet:`^1.9.4`,lexical:`^0.44.0`,marked:`^18.0.3`,"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.0`,"terra-draw-leaflet-adapter":`1.0.3`,turndown:`^7.2.4`,yaml:`^2.9.0`},Nw={"@stylistic/eslint-plugin":`^5.10.0`,"@sveltejs/vite-plugin-svelte":`^7.1.2`,"@types/leaflet":`^1.9.21`,"@types/node":`^25.9.0`,"@types/qrcode":`^1.5.6`,"@types/react":`^19.2.14`,"@types/react-dom":`^19.2.3`,"@vitest/coverage-v8":`^4.1.6`,cspell:`^10.0.0`,eslint:`^9.39.4`,"eslint-config-airbnb-extended":`^3.1.0`,"eslint-config-prettier":`^10.1.8`,"eslint-plugin-jsdoc":`^62.9.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.65.0`,postcss:`^8.5.14`,"postcss-html":`^1.8.1`,prettier:`^3.8.3`,"prettier-plugin-svelte":`^3.5.2`,sass:`^1.99.0`,stylelint:`^17.11.1`,"stylelint-config-recommended-scss":`^17.0.1`,"stylelint-scss":`^7.1.1`,svelte:`^5.55.8`,"svelte-check":`^4.4.8`,"svelte-preprocess":`^6.0.3`,"ts-json-schema-generator":`^2.9.0`,typescript:`^5.9.3`,vite:`^8.0.13`,vitest:`^4.1.6`},Pw={directory:`package`,access:`public`,provenance:!0},Fw={name:Cw,version:ww,description:Tw,keywords:Ew,homepage:Dw,repository:Ow,license:`MIT`,author:kw,type:Aw,scripts:jw,dependencies:Mw,devDependencies:Nw,publishConfig:Pw}})),Iw,Lw,Rw=o((()=>{yre(),{dependencies:Iw,version:Lw}=Fw})),zw,Bw,Vw,Hw,Uw=o((()=>{zw=`modulepreload`,Bw=function(e){return`/`+e},Vw={},Hw=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Bw(t,n),t in Vw)return;Vw[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:zw,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}})),Ww,Gw,Kw=o((()=>{Rw(),Uw(),Ww=e=>{let t=`https://unpkg.com/${e}`,n=Iw[e]?.replace(/^\D/,``);return n?`${t}@${n}`:t},Gw=async(e,t)=>Hw(()=>import(`${Ww(e)}/${t}`),[])})),qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT=o((()=>{qw=[`avif`,`gif`,`jpeg`,`png`,`webp`],Jw=qw.map(e=>`image/${e}`),Yw=/\b(?:avif|gif|jpe?g|png|webp)$/i,Xw=[`svg`],Zw=[`image/svg+xml`],Qw=/\b(?:svg)$/i,[...qw,...Xw],$w=[...Jw,...Zw],eT=[`webp`]})),nT,rT,iT,aT=o((()=>{Kw(),tT(),nT={},rT=async e=>{if(e in nT)return nT[e];let t=`image/${e}`,n=new OffscreenCanvas(1,1);n.getContext(`2d`);let r=(await n.convertToBlob({type:t})).type===t;return nT[e]=r,r},iT=async(e,{format:t=`webp`,quality:n=85}={})=>{let r=`image/${t}`;if(!await rT(t)&&eT.includes(t)){let i=e.getContext(`2d`).getImageData(0,0,e.width,e.height);try{let e=(await Gw(`@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})}})),oT,sT,cT=o((()=>{oT=({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}},sT=(e,t,n)=>{let{scale:r,width:i,height:a}=oT(t,n);return e.width=i,e.height=a,{scale:r,width:i,height:a}}})),lT,uT,dT,fT,pT,mT=o((()=>{Kw(),aT(),cT(),lT=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})},uT=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)})},dT=async e=>e.type.startsWith(`video/`)?uT({blob:e}):lT({blob:e}),fT=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 dT(e))}r??=s,i??=c;let l=new OffscreenCanvas(512,512),u=l.getContext(`2d`);return sT(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),iT(l,{format:t,quality:n})},pT=async e=>{let t=await e.text();try{let{optimize:n}=await Gw(`svgo`,`dist/svgo.browser.js`),{data:r}=n(t);return new Blob([r],{type:e.type})}catch{}return e}})),hT,gT,_T,vT,yT,bT,bre=o((()=>{Kw(),aT(),cT(),Uw(),hT=Ww(`pdfjs-dist`),gT=`${hT}/build/pdf.min.mjs`,_T=`${hT}/build/pdf.worker.min.mjs`,vT={isEvalSupported:!1,disableAutoFetch:!0,cMapUrl:`${hT}/cmaps/`,iccUrl:`${hT}/iccs/`,standardFontDataUrl:`${hT}/standard_fonts/`,wasmUrl:`${hT}/wasm/`},bT=async(e,{format:t=`png`,quality:n=85,width:r=void 0,height:i=void 0,fit:a=`scale-down`}={})=>{if(!yT)try{yT=await Hw(()=>import(gT),[]),yT.GlobalWorkerOptions.workerSrc=_T}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 yT.getDocument({...vT,url:o}).promise).getPage(1),t=e.getViewport({scale:1}),{scale:n}=sT(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 iT(s,{format:t,quality:n})}})),xT,ST,CT,wT,TT,ET,DT,OT,kT=o((()=>{zp(),tS(),mS(),Ep(),ES(),sp(),MF(),Yp(),zP(),uF(),Sw(),IC(),lw(),mT(),bre(),xT=new Set,ST=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(xT.has(o)&&t<=25)return await eS(200),ST(e,t+1);xT.add(o);let n=await A(LP)?.fetchBlob?.(e);if(!n)throw Error(`Failed to retrieve blob`);s=new Blob([n],{type:TS.getType(a)??n.type})}return e.blobURL=URL.createObjectURL(s),xT.delete(o),s},CT=async e=>(e.blobURL||await ST(e),e.blobURL),wT=void 0,TT=async(e,{cacheOnly:t=!1}={})=>{let n=e.name.endsWith(`.pdf`);if(!([`image`,`video`].includes(e.kind)||n))return;if(wT===void 0){let{databaseName:e}=A(LP)?.repository??{};wT=e?new dS(e,`asset-thumbnails`):null}let r=await wT?.get(e.sha);if(!r){if(t)return;let i=await ST(e),a={format:`webp`,quality:85,width:512,height:512,fit:`contain`};r=n?await bT(i,a):await fT(i,a),await wT?.set(e.sha,r)}return URL.createObjectURL(r)},ET=(e,{pathOnly:t=!1,allowSpecial:n=!1,entry:r=void 0}={})=>{let{publicPath:i,entryRelative:a,hasTemplateTags:o}=e.folder.collectionName===void 0?e.folder:qp(e.path).find(({collectionName:e})=>e!==void 0)??A(Vp);if(a){if(t){let t=jp(e.path).dirname,n=r?jp(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===aw([i,a,e.name]))return e.path.slice(i.length+1)}return}let{_baseURL:s=``,output:{encode_file_path:c=!1}={}}=A(aF),l=o?e.path.replace(QC(e.folder.internalPath??``,e=>{let t=e.match(/{{(?<tag>.+?)}}/)?.groups?.tag;return t?`(?<${t}>[^/]+)`:bp(e)}),i?.replaceAll(/{{(.+?)}}/g,`$<$1>`)??``):e.path.replace(e.folder.internalPath??``,i===`/`?``:i??``);if(c&&(l=$C(l)),!(!l.startsWith(`/`)&&!n))return t?l:`${s}${l}`},DT=e=>{if(bw.cloudinary?.isEnabled?.()){let t=FC(e);if(t.output_filename_only&&t.config?.cloud_name)return`https://res.cloudinary.com/${t.config.cloud_name}`}},OT=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(OF(e)){let t=DT(i);if(t)return`${t}/${e}`}let s=kF({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:a});if(s)return(o?await TT(s):await CT(s))??ET(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 */
436
436
  function AT(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 xre(e){if(Array.isArray(e))return e}function Sre(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 Cre(){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 wre(e,t){return xre(e)||Sre(e,t)||Tre(e,t)||Cre()}function Tre(e,t){if(e){if(typeof e==`string`)return AT(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)?AT(e,t):void 0}}function jT(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return GT(e,t,n)}}function Ere(e){return function(){return KT(e,[...arguments])}}function MT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$T;if(LT&&LT(e,null),!QT(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(RT(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Dre(e){for(let t=0;t<e.length;t++)lE(e,t)||(e[t]=null);return e}function NT(e){let t=UT(null);for(let r of IT(e)){var n=wre(r,2);let i=n[0],a=n[1];lE(e,i)&&(QT(a)?t[i]=Dre(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=NT(a):t[i]=a)}return t}function Ore(e){switch(typeof e){case`string`:return e;case`number`:return aE(e);case`boolean`:return oE(e);case`bigint`:return sE?sE(e):`0`;case`symbol`:return cE?cE(e):`Symbol()`;case`undefined`:return uE(e);case`function`:case`object`:{if(e===null)return uE(e);let t=e,n=PT(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:uE(e)}return uE(e)}default:return uE(e)}}function PT(e,t){for(;e!==null;){let n=BT(e,t);if(n){if(n.get)return jT(n.get);if(typeof n.value==`function`)return jT(n.value)}e=zT(e)}function n(){return null}return n}function kre(e){try{return dE(e,``),!0}catch{return!1}}function FT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:FE(),t=e=>FT(e);if(t.version=`3.4.3`,t.removed=[],!e||!e.document||e.document.nodeType!==PE.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=PT(h,`cloneNode`),_=PT(h,`remove`),v=PT(h,`nextSibling`),y=PT(h,`childNodes`),b=PT(h,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C=n,w=C.implementation,T=C.createNodeIterator,ee=C.createDocumentFragment,te=C.getElementsByTagName,ne=r.importNode,re=LE();t.isSupported=typeof IT==`function`&&typeof b==`function`&&w&&w.createHTMLDocument!==void 0;let ie=wE,ae=TE,oe=EE,se=DE,ce=OE,le=AE,ue=jE,de=NE,E=kE,fe=null,pe=MT({},[...pE,...mE,...hE,..._E,...yE]),me=null,he=MT({},[...bE,...xE,...SE,...CE]),ge=Object.seal(UT(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(UT(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=MT({},[`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=MT({},[`audio`,`video`,`img`,`source`,`image`,`track`]),He=null,Ue=MT({},[`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=MT({},[We,Ge,Ke],eE),Ze=MT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Qe=MT({},[`annotation-xml`]),$e=MT({},[`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=NT(e),et=tt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,nt=et===`application/xhtml+xml`?eE:$T,fe=lE(e,`ALLOWED_TAGS`)&&QT(e.ALLOWED_TAGS)?MT({},e.ALLOWED_TAGS,nt):pe,me=lE(e,`ALLOWED_ATTR`)&&QT(e.ALLOWED_ATTR)?MT({},e.ALLOWED_ATTR,nt):he,Ye=lE(e,`ALLOWED_NAMESPACES`)&&QT(e.ALLOWED_NAMESPACES)?MT({},e.ALLOWED_NAMESPACES,eE):Xe,He=lE(e,`ADD_URI_SAFE_ATTR`)&&QT(e.ADD_URI_SAFE_ATTR)?MT(NT(Ue),e.ADD_URI_SAFE_ATTR,nt):Ue,Be=lE(e,`ADD_DATA_URI_TAGS`)&&QT(e.ADD_DATA_URI_TAGS)?MT(NT(Ve),e.ADD_DATA_URI_TAGS,nt):Ve,Re=lE(e,`FORBID_CONTENTS`)&&QT(e.FORBID_CONTENTS)?MT({},e.FORBID_CONTENTS,nt):ze,_e=lE(e,`FORBID_TAGS`)&&QT(e.FORBID_TAGS)?MT({},e.FORBID_TAGS,nt):NT({}),ve=lE(e,`FORBID_ATTR`)&&QT(e.FORBID_ATTR)?MT({},e.FORBID_ATTR,nt):NT({}),Le=lE(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?NT(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,E=kre(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kE,qe=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ke,Ze=lE(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?NT(e.MATHML_TEXT_INTEGRATION_POINTS):MT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Qe=lE(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?NT(e.HTML_INTEGRATION_POINTS):MT({},[`annotation-xml`]);let t=lE(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?NT(e.CUSTOM_ELEMENT_HANDLING):UT(null);if(ge=UT(null),lE(t,`tagNameCheck`)&&at(t.tagNameCheck)&&(ge.tagNameCheck=t.tagNameCheck),lE(t,`attributeNameCheck`)&&at(t.attributeNameCheck)&&(ge.attributeNameCheck=t.attributeNameCheck),lE(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(ge.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),we&&(xe=!1),Ae&&(ke=!0),Le&&(fe=MT({},yE),me=UT(null),Le.html===!0&&(MT(fe,pE),MT(me,bE)),Le.svg===!0&&(MT(fe,mE),MT(me,xE),MT(me,CE)),Le.svgFilters===!0&&(MT(fe,hE),MT(me,xE),MT(me,CE)),Le.mathMl===!0&&(MT(fe,_E),MT(me,SE),MT(me,CE))),ye.tagCheck=null,ye.attributeCheck=null,lE(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ye.tagCheck=e.ADD_TAGS:QT(e.ADD_TAGS)&&(fe===pe&&(fe=NT(fe)),MT(fe,e.ADD_TAGS,nt))),lE(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ye.attributeCheck=e.ADD_ATTR:QT(e.ADD_ATTR)&&(me===he&&(me=NT(me)),MT(me,e.ADD_ATTR,nt))),lE(e,`ADD_URI_SAFE_ATTR`)&&QT(e.ADD_URI_SAFE_ATTR)&&MT(He,e.ADD_URI_SAFE_ATTR,nt),lE(e,`FORBID_CONTENTS`)&&QT(e.FORBID_CONTENTS)&&(Re===ze&&(Re=NT(Re)),MT(Re,e.FORBID_CONTENTS,nt)),lE(e,`ADD_FORBID_CONTENTS`)&&QT(e.ADD_FORBID_CONTENTS)&&(Re===ze&&(Re=NT(Re)),MT(Re,e.ADD_FORBID_CONTENTS,nt)),Fe&&(fe[`#text`]=!0),Ee&&MT(fe,[`html`,`head`,`body`]),fe.table&&(MT(fe,[`tbody`]),delete _e.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw fE(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw fE(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);x=e.TRUSTED_TYPES_POLICY,S=x.createHTML(``)}else x===void 0&&(x=IE(m,i)),x!==null&&typeof S==`string`&&(S=x.createHTML(``));VT&&VT(e),rt=e},st=MT({},[...mE,...hE,...gE]),ct=MT({},[..._E,...vE]),lt=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:qe,tagName:`template`});let n=$T(e.tagName),r=$T(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){XT(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},dt=function(e,n){try{XT(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{XT(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=tE(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 p().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 T.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},mt=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`)},ht=function(e){return typeof s==`function`&&e instanceof s};function D(e,n,r){qT(e,e=>{e.call(t,n,r,rt)})}let gt=function(e){let n=null;if(D(re.beforeSanitizeElements,e,null),mt(e))return ut(e),!0;let r=nt(e.nodeName);if(D(re.uponSanitizeElement,e,{tagName:r,allowedTags:fe}),Te&&e.hasChildNodes()&&!ht(e.firstElementChild)&&dE(/<[/\w!]/g,e.innerHTML)&&dE(/<[/\w!]/g,e.textContent)||Te&&e.namespaceURI===Ke&&r===`style`&&ht(e.firstElementChild)||e.nodeType===PE.progressingInstruction||Te&&e.nodeType===PE.comment&&dE(/<[/\w]/g,e.data))return ut(e),!0;if(_e[r]||!(ye.tagCheck instanceof Function&&ye.tagCheck(r))&&!fe[r]){if(!_e[r]&&yt(r)&&(ge.tagNameCheck instanceof RegExp&&dE(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r)))return!1;if(Fe&&!Re[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 ut(e),!0}return e instanceof c&&!lt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&dE(/<\/no(script|embed|frames)/i,e.innerHTML)?(ut(e),!0):(we&&e.nodeType===PE.text&&(n=e.textContent,qT([ie,ae,oe],e=>{n=nE(n,e,` `)}),e.textContent!==n&&(XT(t.removed,{element:e.cloneNode()}),e.textContent=n)),D(re.afterSanitizeElements,e,null),!1)},_t=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]&&dE(se,t))&&!(be&&dE(ce,t))){if(!i||ve[t]){if(!(yt(e)&&(ge.tagNameCheck instanceof RegExp&&dE(ge.tagNameCheck,e)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(e))&&(ge.attributeNameCheck instanceof RegExp&&dE(ge.attributeNameCheck,t)||ge.attributeNameCheck instanceof Function&&ge.attributeNameCheck(t,e))||t===`is`&&ge.allowCustomizedBuiltInElements&&(ge.tagNameCheck instanceof RegExp&&dE(ge.tagNameCheck,r)||ge.tagNameCheck instanceof Function&&ge.tagNameCheck(r))))return!1}else if(!He[t]&&!dE(E,nE(r,ue,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&rE(r,`data:`)===0&&Be[e])&&!(Se&&!dE(le,nE(r,ue,``)))&&r)return!1}return!0},vt=MT({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),yt=function(e){return!vt[$T(e)]&&dE(de,e)},bt=function(e){D(re.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||mt(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),u=c,d=o===`value`?u:iE(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,D(re.uponSanitizeAttribute,e,r),d=r.attrValue,Ne&&(l===`id`||l===`name`)&&rE(d,Pe)!==0&&(dt(o,e),d=Pe+d),Te&&dE(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){dt(o,e);continue}if(l===`attributename`&&tE(d,`href`)){dt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){dt(o,e);continue}if(!Ce&&dE(/\/>/i,d)){dt(o,e);continue}we&&qT([ie,ae,oe],e=>{d=nE(d,e,` `)});let f=nt(e.nodeName);if(!_t(f,l,d)){dt(o,e);continue}if(x&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!s)switch(m.getAttributeType(f,l)){case`TrustedHTML`:d=x.createHTML(d);break;case`TrustedScriptURL`:d=x.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),mt(e)?ut(e):YT(t.removed)}catch{dt(o,e)}}D(re.afterSanitizeAttributes,e,null)},xt=function(e){let t=null,n=pt(e);for(D(re.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)D(re.uponSanitizeShadowNode,t,null),gt(t),bt(t),t.content instanceof a&&xt(t.content);D(re.afterSanitizeShadowDOM,e,null)},St=function(e){if(e.nodeType===PE.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;St(t),xt(t)}let t=e.childNodes;if(!t)return;let n=[];qT(t,e=>{XT(n,e)});for(let e of n)St(e)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Je=!e,Je&&(e=`<!-->`),typeof e!=`string`&&!ht(e)&&(e=Ore(e),typeof e!=`string`))throw fE(`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=e.nodeName;if(typeof t==`string`){let e=nt(t);if(!fe[e]||_e[e])throw fE(`root node is forbidden and cannot be sanitized in-place`)}St(e)}else if(e instanceof s)i=ft(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===PE.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o),St(o);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 u=pt(Ie?e:i);for(;c=u.nextNode();)gt(c),bt(c),c.content instanceof a&&xt(c.content);if(Ie)return e;if(ke){if(we){i.normalize();let e=i.innerHTML;qT([ie,ae,oe],t=>{e=nE(e,t,` `)}),i.innerHTML=e}if(Ae)for(l=ee.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(me.shadowroot||me.shadowrootmode)&&(l=ne.call(r,l,!0)),l}let d=Ee?i.outerHTML:i.innerHTML;return Ee&&fe[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&dE(ME,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
438
- `+d),we&&qT([ie,ae,oe],e=>{d=nE(d,e,` `)}),x&&je?x.createHTML(d):d},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({}),_t(nt(e),nt(t),n)},t.addHook=function(e,t){typeof t==`function`&&XT(re[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=JT(re[e],t);return n===-1?void 0:ZT(re[e],n,1)[0]}return YT(re[e])},t.removeHooks=function(e){re[e]=[]},t.removeAllHooks=function(){re=LE()},t}var 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,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,Are=o((()=>{IT=Object.entries,LT=Object.setPrototypeOf,RT=Object.isFrozen,zT=Object.getPrototypeOf,BT=Object.getOwnPropertyDescriptor,VT=Object.freeze,HT=Object.seal,UT=Object.create,WT=typeof Reflect<`u`&&Reflect,GT=WT.apply,KT=WT.construct,VT||=function(e){return e},HT||=function(e){return e},GT||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},KT||=function(e){return new e(...[...arguments].slice(1))},qT=jT(Array.prototype.forEach),JT=jT(Array.prototype.lastIndexOf),YT=jT(Array.prototype.pop),XT=jT(Array.prototype.push),ZT=jT(Array.prototype.splice),QT=Array.isArray,$T=jT(String.prototype.toLowerCase),eE=jT(String.prototype.toString),tE=jT(String.prototype.match),nE=jT(String.prototype.replace),rE=jT(String.prototype.indexOf),iE=jT(String.prototype.trim),aE=jT(Number.prototype.toString),oE=jT(Boolean.prototype.toString),sE=typeof BigInt>`u`?null:jT(BigInt.prototype.toString),cE=typeof Symbol>`u`?null:jT(Symbol.prototype.toString),lE=jT(Object.prototype.hasOwnProperty),uE=jT(Object.prototype.toString),dE=jT(RegExp.prototype.test),fE=Ere(TypeError),pE=VT(`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(`.`)),mE=VT(`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(`.`)),hE=VT([`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`]),gE=VT([`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`]),_E=VT(`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(`.`)),vE=VT([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),yE=VT([`#text`]),bE=VT(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),xE=VT(`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(`.`)),SE=VT(`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(`.`)),CE=VT([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),wE=HT(/{{[\w\W]*|^[\w\W]*}}/g),TE=HT(/<%[\w\W]*|^[\w\W]*%>/g),EE=HT(/\${[\w\W]*/g),DE=HT(/^data-[\-\w.\u00B7-\uFFFF]+$/),OE=HT(/^aria-[\-\w]+$/),kE=HT(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AE=HT(/^(?:\w+script|data):/i),jE=HT(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ME=HT(/^html$/i),NE=HT(/^[a-z][.\w]*(-[.\w]+)+$/i),PE={element:1,text:3,progressingInstruction:7,comment:8,document:9},FE=function(){return typeof window>`u`?null:window},IE=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}},LE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},RE=FT()})),zE,BE=o((()=>{Are(),zE=RE.sanitize.bind(RE),RE.isSupported,RE.addHook.bind(RE),RE.removeHook.bind(RE),RE.removeHooks.bind(RE),RE.removeAllHooks.bind(RE),RE.setConfig.bind(RE),RE.clearConfig.bind(RE),RE.isValidAttribute.bind(RE),RE.version,RE.removed}));function VE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function HE(e){ZE=e}function UE(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(eD.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function WE(e,t){if(t){if(eD.escapeTest.test(e))return e.replace(eD.escapeReplace,sO)}else if(eD.escapeTestNoEncode.test(e))return e.replace(eD.escapeReplaceNoEncode,sO);return e}function GE(e){try{e=encodeURI(e).replace(eD.percentDecode,`%`)}catch{return null}return e}function KE(e,t){let n=e.replace(eD.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(eD.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(eD.slashPipe,`|`);return n}function qE(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 JE(e){let t=e.split(`
437
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wre(e,t){return xre(e)||Sre(e,t)||Tre(e,t)||Cre()}function Tre(e,t){if(e){if(typeof e==`string`)return AT(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)?AT(e,t):void 0}}function jT(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return GT(e,t,n)}}function Ere(e){return function(){return KT(e,[...arguments])}}function MT(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$T;if(LT&&LT(e,null),!QT(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(RT(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Dre(e){for(let t=0;t<e.length;t++)lE(e,t)||(e[t]=null);return e}function NT(e){let t=UT(null);for(let r of IT(e)){var n=wre(r,2);let i=n[0],a=n[1];lE(e,i)&&(QT(a)?t[i]=Dre(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=NT(a):t[i]=a)}return t}function Ore(e){switch(typeof e){case`string`:return e;case`number`:return aE(e);case`boolean`:return oE(e);case`bigint`:return sE?sE(e):`0`;case`symbol`:return cE?cE(e):`Symbol()`;case`undefined`:return uE(e);case`function`:case`object`:{if(e===null)return uE(e);let t=e,n=PT(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:uE(e)}return uE(e)}default:return uE(e)}}function PT(e,t){for(;e!==null;){let n=BT(e,t);if(n){if(n.get)return jT(n.get);if(typeof n.value==`function`)return jT(n.value)}e=zT(e)}function n(){return null}return n}function kre(e){try{return dE(e,``),!0}catch{return!1}}function FT(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:FE(),t=e=>FT(e);if(t.version=`3.4.5`,t.removed=[],!e||!e.document||e.document.nodeType!==PE.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=PT(h,`cloneNode`),_=PT(h,`remove`),v=PT(h,`nextSibling`),y=PT(h,`childNodes`),b=PT(h,`parentNode`),x=s&&s.prototype?PT(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,T=w.implementation,ee=w.createNodeIterator,te=w.createDocumentFragment,ne=w.getElementsByTagName,re=r.importNode,ie=LE();t.isSupported=typeof IT==`function`&&typeof b==`function`&&T&&T.createHTMLDocument!==void 0;let ae=wE,oe=TE,se=EE,ce=DE,le=OE,ue=AE,de=jE,E=NE,fe=kE,pe=null,me=MT({},[...pE,...mE,...hE,..._E,...yE]),he=null,ge=MT({},[...bE,...xE,...SE,...CE]),_e=Object.seal(UT(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(UT(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=MT({},[`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=MT({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ue=null,We=MT({},[`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=MT({},[Ge,Ke,qe],eE),Qe=MT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=MT({},[`annotation-xml`]),et=MT({},[`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=NT(e),tt=nt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,rt=tt===`application/xhtml+xml`?eE:$T,pe=lE(e,`ALLOWED_TAGS`)&&QT(e.ALLOWED_TAGS)?MT({},e.ALLOWED_TAGS,rt):me,he=lE(e,`ALLOWED_ATTR`)&&QT(e.ALLOWED_ATTR)?MT({},e.ALLOWED_ATTR,rt):ge,Xe=lE(e,`ALLOWED_NAMESPACES`)&&QT(e.ALLOWED_NAMESPACES)?MT({},e.ALLOWED_NAMESPACES,eE):Ze,Ue=lE(e,`ADD_URI_SAFE_ATTR`)&&QT(e.ADD_URI_SAFE_ATTR)?MT(NT(We),e.ADD_URI_SAFE_ATTR,rt):We,Ve=lE(e,`ADD_DATA_URI_TAGS`)&&QT(e.ADD_DATA_URI_TAGS)?MT(NT(He),e.ADD_DATA_URI_TAGS,rt):He,ze=lE(e,`FORBID_CONTENTS`)&&QT(e.FORBID_CONTENTS)?MT({},e.FORBID_CONTENTS,rt):Be,ve=lE(e,`FORBID_TAGS`)&&QT(e.FORBID_TAGS)?MT({},e.FORBID_TAGS,rt):NT({}),ye=lE(e,`FORBID_ATTR`)&&QT(e.FORBID_ATTR)?MT({},e.FORBID_ATTR,rt):NT({}),Re=lE(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?NT(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,fe=kre(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kE,Je=typeof e.NAMESPACE==`string`?e.NAMESPACE:qe,Qe=lE(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?NT(e.MATHML_TEXT_INTEGRATION_POINTS):MT({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=lE(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?NT(e.HTML_INTEGRATION_POINTS):MT({},[`annotation-xml`]);let t=lE(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?NT(e.CUSTOM_ELEMENT_HANDLING):UT(null);if(_e=UT(null),lE(t,`tagNameCheck`)&&ot(t.tagNameCheck)&&(_e.tagNameCheck=t.tagNameCheck),lE(t,`attributeNameCheck`)&&ot(t.attributeNameCheck)&&(_e.attributeNameCheck=t.attributeNameCheck),lE(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(_e.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Te&&(Se=!1),je&&(Ae=!0),Re&&(pe=MT({},yE),he=UT(null),Re.html===!0&&(MT(pe,pE),MT(he,bE)),Re.svg===!0&&(MT(pe,mE),MT(he,xE),MT(he,CE)),Re.svgFilters===!0&&(MT(pe,hE),MT(he,xE),MT(he,CE)),Re.mathMl===!0&&(MT(pe,_E),MT(he,SE),MT(he,CE))),be.tagCheck=null,be.attributeCheck=null,lE(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?be.tagCheck=e.ADD_TAGS:QT(e.ADD_TAGS)&&(pe===me&&(pe=NT(pe)),MT(pe,e.ADD_TAGS,rt))),lE(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?be.attributeCheck=e.ADD_ATTR:QT(e.ADD_ATTR)&&(he===ge&&(he=NT(he)),MT(he,e.ADD_ATTR,rt))),lE(e,`ADD_URI_SAFE_ATTR`)&&QT(e.ADD_URI_SAFE_ATTR)&&MT(Ue,e.ADD_URI_SAFE_ATTR,rt),lE(e,`FORBID_CONTENTS`)&&QT(e.FORBID_CONTENTS)&&(ze===Be&&(ze=NT(ze)),MT(ze,e.FORBID_CONTENTS,rt)),lE(e,`ADD_FORBID_CONTENTS`)&&QT(e.ADD_FORBID_CONTENTS)&&(ze===Be&&(ze=NT(ze)),MT(ze,e.ADD_FORBID_CONTENTS,rt)),Ie&&(pe[`#text`]=!0),De&&MT(pe,[`html`,`head`,`body`]),pe.table&&(MT(pe,[`tbody`]),delete ve.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw fE(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw fE(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);S=e.TRUSTED_TYPES_POLICY,C=S.createHTML(``)}else S===void 0&&(S=IE(m,i)),S!==null&&typeof C==`string`&&(C=S.createHTML(``));VT&&VT(e),it=e},ct=MT({},[...mE,...hE,...gE]),lt=MT({},[..._E,...vE]),ut=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:Je,tagName:`template`});let n=$T(e.tagName),r=$T(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){XT(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},ft=function(e,n){try{XT(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{XT(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=tE(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=T.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 ee.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=ee.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;qT([ae,oe,se],t=>{e=nE(e,t,` `)}),n.data=e,n=t.nextNode()}},D=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`)},gt=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function _t(e,n,r){qT(e,e=>{e.call(t,n,r,it)})}let vt=function(e){let n=null;if(_t(ie.beforeSanitizeElements,e,null),D(e))return dt(e),!0;let r=rt(e.nodeName);if(_t(ie.uponSanitizeElement,e,{tagName:r,allowedTags:pe}),Ee&&e.hasChildNodes()&&!gt(e.firstElementChild)&&dE(/<[/\w!]/g,e.innerHTML)&&dE(/<[/\w!]/g,e.textContent)||Ee&&e.namespaceURI===qe&&r===`style`&&gt(e.firstElementChild)||e.nodeType===PE.progressingInstruction||Ee&&e.nodeType===PE.comment&&dE(/<[/\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&&dE(_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`)&&dE(/<\/no(script|embed|frames)/i,e.innerHTML)?(dt(e),!0):(Te&&e.nodeType===PE.text&&(n=e.textContent,qT([ae,oe,se],e=>{n=nE(n,e,` `)}),e.textContent!==n&&(XT(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]&&dE(ce,t))&&!(xe&&dE(le,t))){if(!i||ye[t]){if(!(xt(e)&&(_e.tagNameCheck instanceof RegExp&&dE(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&dE(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t,e))||t===`is`&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&dE(_e.tagNameCheck,r)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(r))))return!1}else if(!Ue[t]&&!dE(fe,nE(r,de,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&rE(r,`data:`)===0&&Ve[e])&&!(Ce&&!dE(ue,nE(r,de,``)))&&r)return!1}return!0},bt=MT({},[`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[$T(e)]&&dE(E,e)},St=function(e){_t(ie.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||D(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:iE(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`)&&rE(d,Fe)!==0&&(ft(o,e),d=Fe+d),Ee&&dE(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){ft(o,e);continue}if(l===`attributename`&&tE(d,`href`)){ft(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){ft(o,e);continue}if(!we&&dE(/\/>/i,d)){ft(o,e);continue}Te&&qT([ae,oe,se],e=>{d=nE(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),D(e)?dt(e):YT(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===PE.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;wt(t),Ct(t)}let t=e.childNodes;if(!t)return;let n=[];qT(t,e=>{XT(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`&&!gt(e)&&(e=Ore(e),typeof e!=`string`))throw fE(`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 fE(`root node is forbidden and cannot be sanitized in-place`)}wt(e)}else if(gt(e))i=pt(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===PE.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&&dE(ME,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
438
+ `+u),Te&&qT([ae,oe,se],e=>{u=nE(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`&&XT(ie[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=JT(ie[e],t);return n===-1?void 0:ZT(ie[e],n,1)[0]}return YT(ie[e])},t.removeHooks=function(e){ie[e]=[]},t.removeAllHooks=function(){ie=LE()},t}var 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,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,Are=o((()=>{IT=Object.entries,LT=Object.setPrototypeOf,RT=Object.isFrozen,zT=Object.getPrototypeOf,BT=Object.getOwnPropertyDescriptor,VT=Object.freeze,HT=Object.seal,UT=Object.create,WT=typeof Reflect<`u`&&Reflect,GT=WT.apply,KT=WT.construct,VT||=function(e){return e},HT||=function(e){return e},GT||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},KT||=function(e){return new e(...[...arguments].slice(1))},qT=jT(Array.prototype.forEach),JT=jT(Array.prototype.lastIndexOf),YT=jT(Array.prototype.pop),XT=jT(Array.prototype.push),ZT=jT(Array.prototype.splice),QT=Array.isArray,$T=jT(String.prototype.toLowerCase),eE=jT(String.prototype.toString),tE=jT(String.prototype.match),nE=jT(String.prototype.replace),rE=jT(String.prototype.indexOf),iE=jT(String.prototype.trim),aE=jT(Number.prototype.toString),oE=jT(Boolean.prototype.toString),sE=typeof BigInt>`u`?null:jT(BigInt.prototype.toString),cE=typeof Symbol>`u`?null:jT(Symbol.prototype.toString),lE=jT(Object.prototype.hasOwnProperty),uE=jT(Object.prototype.toString),dE=jT(RegExp.prototype.test),fE=Ere(TypeError),pE=VT(`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(`.`)),mE=VT(`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(`.`)),hE=VT([`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`]),gE=VT([`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`]),_E=VT(`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(`.`)),vE=VT([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),yE=VT([`#text`]),bE=VT(`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(`.`)),xE=VT(`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(`.`)),SE=VT(`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(`.`)),CE=VT([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),wE=HT(/{{[\w\W]*|^[\w\W]*}}/g),TE=HT(/<%[\w\W]*|^[\w\W]*%>/g),EE=HT(/\${[\w\W]*/g),DE=HT(/^data-[\-\w.\u00B7-\uFFFF]+$/),OE=HT(/^aria-[\-\w]+$/),kE=HT(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),AE=HT(/^(?:\w+script|data):/i),jE=HT(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ME=HT(/^html$/i),NE=HT(/^[a-z][.\w]*(-[.\w]+)+$/i),PE={element:1,text:3,progressingInstruction:7,comment:8,document:9},FE=function(){return typeof window>`u`?null:window},IE=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}},LE=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},RE=FT()})),zE,BE=o((()=>{Are(),zE=RE.sanitize.bind(RE),RE.isSupported,RE.addHook.bind(RE),RE.removeHook.bind(RE),RE.removeHooks.bind(RE),RE.removeAllHooks.bind(RE),RE.setConfig.bind(RE),RE.clearConfig.bind(RE),RE.isValidAttribute.bind(RE),RE.version,RE.removed}));function VE(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function HE(e){ZE=e}function UE(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(eD.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function WE(e,t){if(t){if(eD.escapeTest.test(e))return e.replace(eD.escapeReplace,sO)}else if(eD.escapeTestNoEncode.test(e))return e.replace(eD.escapeReplaceNoEncode,sO);return e}function GE(e){try{e=encodeURI(e).replace(eD.percentDecode,`%`)}catch{return null}return e}function KE(e,t){let n=e.replace(eD.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(eD.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(eD.slashPipe,`|`);return n}function qE(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 JE(e){let t=e.split(`
439
439
  `),n=t.length-1;for(;n>=0&&eD.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
440
440
  `)}function jre(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 Mre(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 YE(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 Nre(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,31 +641,31 @@ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error
641
641
  }
642
642
  }
643
643
  }
644
- `,SP=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=sP,r=n?20:100,i=[...e],a=[];for(;;){let e=await sM(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]]))},CP=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)},wP=async e=>{Vy.set(0);let t=window.setInterval(()=>{Vy.update((e=0)=>e+1)},e.length/10),n=await SP(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),xP);return window.clearInterval(t),Vy.set(void 0),CP({fetchingFiles:e,blobs:n})},TP=async()=>{await lP(),await QM({repository:sP,fetchDefaultBranchName:dP,fetchLastCommit:mP,fetchFileList:bP,fetchFileContents:wP})},EP=async e=>{let{owner:t,repo:n,branch:r=``}=sP,{path:i}=e;return oM(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),DP,OP,kP,uie=o((()=>{iS(),DP=`https://status.gitlab.com/`,OP=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,kP=async()=>{try{let{result:{status_overall:{status_code:e}}}=await rS(OP);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),AP,jP,die=o((()=>{Ep(),sp(),cie(),vP(),nP(),lie(),fP(),uie(),cM(),kM(),uF(),uN(),AP=()=>{let{backend:e}=A(aF)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=eP,auth_endpoint:i=tP,app_id:a=``,api_root:o=$N,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=`${Sp(r)}/${Sp(i)}`,p=OM(o,d);return Object.assign(sP,{service:ZN,label:QN,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:iP(p),databaseName:`${ZN}:${d}`,isSelfHosted:o!==$N},cP(p,n)),Object.assign(rM,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:Sp(o),graphqlBaseURL:Sp(s),includeCredentials:c}),Object.assign(iM,{fullPath:d,branch:n}),A(lN).devModeEnabled&&console.info(`repositoryInfo`,sP),sP},jP={isGit:!0,name:ZN,label:QN,repository:sP,statusDashboardURL:DP,checkStatus:kP,init:AP,signIn:aP,signOut:oP,fetchFiles:TP,fetchBlob:EP,commitChanges:hP,fetchFileCommits:_P}})),MP,NP,PP,FP,IP,LP,RP,zP=o((()=>{sp(),qre(),Jre(),$re(),oie(),die(),MP={github:XN,gitlab:jP,gitea:fN,local:Ij,"test-repo":Kj},NP={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},PP=Object.keys(MP).filter(e=>e!==`local`),FP=Object.fromEntries(Object.entries(MP).filter(([,e])=>e.isGit)),IP=ln(),LP=un([IP],([e],t,n)=>{n(t=>{let n=e?MP[e]:void 0;return n&&n!==t&&n.init(),n})}),RP=ln(!0)})),BP,VP,HP,UP,WP,GP=o((()=>{Z(),_b(),BP=({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=Ph.current,m=d.length?`${hb(p).format(d)}: `:``,h=X(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${X(`config.${r}`)}`:``}`)},VP=({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)&&BP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},HP=/^[^\s.*:<>]+$/,UP=e=>HP.test(e),WP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return BP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return UP(e)?n[e]===1?(BP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(BP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),KP,fie,pie=o((()=>{Z(),f(),zP(),ob(),GP(),KP=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],fie=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!u(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(!PP.includes(a)){let e=NP[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 FP){let{repo:o,automatic_deployments:s,allow_token_auth:c=!0,auth_type:l,app_id:u}=n;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&&(c?i.add(X(`config.warning.oauth_no_app_id`)):r.add(X(`config.error.oauth_no_app_id`))),s!==void 0&&ab(`automatic_deployments`),VP({UNSUPPORTED_OPTIONS:KP,config:n,context:{cmsConfig:e},collectors:t})}}})),mie,qP,JP,hie,YP,gie=o((()=>{mie=[`code`,`markdown`,`richtext`,`text`],qP=[`md`,`markdown`,`mdx`],JP=[`astro`,`njk`],hie=[...qP,...JP],YP=(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`&&mie.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(qP.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return JP.includes(i)?!1:i!==e}if(a===`frontmatter`)return!hie.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1}})),_ie,vie,yie=o((()=>{GP(),_ie=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],vie=e=>{VP({...e,UNSUPPORTED_OPTIONS:_ie})}})),bie,XP,xie=o((()=>{GP(),bie=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],XP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),VP({...e,UNSUPPORTED_OPTIONS:bie})}})),Sie,Cie,wie=o((()=>{eF(),GP(),Sie=(e,t,n)=>e===`object`?!0:(BP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Cie=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){BP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&QP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&$P(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};WP({...c,name:e,index:a,context:o})&&Sie(t,o,r)&&i&&$P(i,o,r)})}})),Tie,Eie,Die=o((()=>{GP(),Tie=[{prop:`valueType`,newProp:`value_type`}],Eie=e=>{VP({...e,UNSUPPORTED_OPTIONS:Tie})}})),Oie,kie=o((()=>{eF(),GP(),Oie=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){BP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){BP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&$P(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};WP({...s,name:e,index:i,context:a})&&t&&$P(t,a,r)})}})),Aie,jie,Mie=o((()=>{GP(),Aie=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],jie=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||BP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&BP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else BP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});VP({...e,UNSUPPORTED_OPTIONS:Aie}),r.relationFields.add({fieldConfig:i,context:n})}})),Nie,ZP,Pie=o((()=>{GP(),Nie=[{prop:`editorComponents`,newProp:`editor_components`}],ZP=e=>{VP({...e,UNSUPPORTED_OPTIONS:Nie})}})),Fie,QP,$P,eF=o((()=>{yie(),xie(),wie(),Die(),kie(),Mie(),Pie(),GP(),Fie={datetime:vie,file:XP,image:XP,list:Cie,markdown:ZP,number:Eie,object:Oie,relation:jie,richtext:ZP},QP=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}};Fie[i]?.(o),i===`date`&&BP({...o,strKey:`date_field_type`})},$P=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;WP({...r,name:a,index:i})&&QP({config:e,context:t,collectors:n})})}})),Iie,tF,Lie=o((()=>{zp(),gie(),eF(),GP(),Iie=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o}=r,{extension:s}=jp(i);YP(s,a,o)&&BP({strKey:`file_format_mismatch`,context:e,values:{extension:s,format:a},collectors:t}),o?.length||BP({strKey:`collection_file_no_fields`,context:e,collectors:t}),$P(o,e,t)},tF=(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};WP({...a,name:o,index:i,context:s})&&Iie(s,t)})}})),Rie,zie,Bie,Vie,Hie=o((()=>{Z(),ob(),Lie(),gie(),eF(),GP(),Rie=[{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;YP(i,a)&&BP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&ab(`slug_length`),VP({UNSUPPORTED_OPTIONS:Rie,config:r,context:e,collectors:t}),o?.length||BP({strKey:`collection_no_fields`,context:e,collectors:t}),$P(o,e,t),s&&$P(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&BP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Bie=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){BP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){BP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?tF({cmsConfig:e,collection:t},n):a&&zie({cmsConfig:e,collection:t},n)},Vie=(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};WP({...a,name:i,index:r,context:o})&&Bie(o,t)}),Array.isArray(r)&&tF({cmsConfig:e,collection:{name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r}},t)}})),Uie,Wie=o((()=>{Z(),Sw(),Uie=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!xw.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>xw.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`)))}})),Gie,Kie,qie=o((()=>{pie(),Hie(),Wie(),GP(),Gie=[{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`}],Kie=(e,t)=>{fie(e,t),Uie(e,t),Vie(e,t),VP({UNSUPPORTED_OPTIONS:Gie,config:e,context:{cmsConfig:e},collectors:t})}})),Jie,nF,Yie,rF,iF,aF,oF,sF,cF,lF,Xie,uF=o((()=>{Z(),yp(),f(),Ep(),Jie=l(Lh(),1),sp(),zy(),Yp(),rne(),ine(),xne(),qie(),Jy(),uN(),{DEV:nF,VITE_SITE_URL:Yie}={DEV:!1},rF=nF?Yie||`http://localhost:5174`:void 0,iF={},aF=ln(),oF=ln(),sF=ln([]),cF=un([aF,sF],([e,t])=>!!e||!!t.length),lF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},Xie=async e=>{aF.set(void 0),sF.set([]),Object.assign(lF,{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(!u(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Jie.default)(await uS({manualInit:!0}),t))}else t=await uS();if(Object.assign(iF,t),Kie(t,lF),lF.errors.size)throw lF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);lF.warnings.size&&lF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(nF?rF:window.location.origin),n._baseURL=wp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),aF.set(n),oF.set(await vp(Ly(n)))}catch(e){sF.set(lF.errors.size?[...lF.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},aF.subscribe(e=>{if(A(lN).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,lF)),!e)return;let t=mx(e),n=sx(e,[...lF.mediaFields]);Hy.set(t),Bp.set(n),A(lN).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),dF,fF=o((()=>{sp(),uF(),dF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(aF),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)}})),pF,Zie,mF=o((()=>{f(),fF(),tT(),mT(),pF=({fieldConfig:e}={})=>{let t=dF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:u(a)?a:void 0}}},Zie=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(qw.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&&eT.includes(t)?t:`webp`,s=await fT(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}`?Yw.test(e.name)?e.name.replace(Yw,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 pT(e)],e.name,{type:e.type}):e}})),hF,gF=o((()=>{mF(),lw(),hF=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=iw(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await Zie(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),_F,vF,yF,bF,xF,Qie,SF,CF,wF,TF,EF,$ie,DF,eae,tae,OF,kF,AF,nae,jF,MF=o((()=>{zp(),Ep(),fc(),sp(),Yp(),gF(),JO(),$b(),lb(),nb(),ik(),mF(),lw(),_F=ln([]),vF={source:void 0,map:new Map},yF=()=>{let e=A(_F);return e!==vF.source&&(vF.source=e,vF.map=new Map(e.map(e=>[e.path,e]))),vF.map},bF=e=>yF().get(e),xF=ln([]),Qie=un(xF,e=>new Set(e.map(e=>e.path))),SF=ln(),CF=ln(),wF=ln({folder:void 0,files:[]}),TF=ln(),EF=ln(),$ie=un([wF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=pF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>hF(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]))}))})()}),DF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Wp({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=ow(aw([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return yF().get(p)},eae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Wp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Wp({collectionName:n,fileName:r}):void 0,n?Wp({collectionName:n}):void 0,A(Vp)].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=yF().get(aw([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??yF().get(e)}return ek(t).flatMap(n=>{let r=$y(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>DF({...a,file:e})):DF({...a})}).filter(Boolean)[0]??yF().get(e)},tae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=yF().get(Sp(e));if(a)return a;let{dirname:o=``,basename:s}=jp(e),c;return[i?Wp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Wp({collectionName:n,fileName:r}),Wp({collectionName:n}),A(Vp),A(Bp).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?Xb(r):t?ek(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=qO(i,{type:`media_folder`,collection:e,content:uc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:cb(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=aw([i,s]),l=yF().get(a);return l&&(c=l),!!l}),c},OF=e=>!/^[/@]/.test(e),kF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=ew(e.split(`#`)[0]);return OF(a)?eae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):tae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},AF=({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,nae=e=>A(_F).filter(t=>AF(t,e)),jF=e=>A(_F).filter(t=>jp(t.path).dirname===e),Hp.subscribe(()=>{SF.set(void 0)})})),NF,PF,FF=o((()=>{zp(),Ep(),sp(),MF(),Yp(),kT(),$b(),lb(),DA(),NF=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(`^${bp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await OT({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},PF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Xb(t);if(!a)return[];let o=cb(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||OF(a))){let s=bA({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=kF({value:a,entry:e,collectionName:t,fileName:n});if(c&&qp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Wp({collectionName:t,fileName:n})?.entryRelative){let t=jp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(_F).forEach(n=>{let r=jp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),IF,rae,LF,iae,RF,zF=o((()=>{f(),fc(),op(),sp(),FF(),tM(),IF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],rae=[`preSave`,`prePublish`],LF=new Set,iae=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>xd({data:dc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:dc(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:``}),RF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=A(eM),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:d}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==d),{content:h,path:g}=p[d],_=PF({entry:n,collectionName:c,fileName:l});for(let t of LF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:iae({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(rae.includes(e)&&eu(n)){let e=n.toJS();u(e.data)&&u(e.i18n)?(p[d].content=uc(e.data),m.forEach(t=>{u(e.i18n[t]?.data)&&(p[t].content=uc(e.i18n[t].data))})):p[d].content=uc(e)}}}})),BF,VF,HF,UF,WF,GF,KF,qF,aae,JF=o((()=>{sp(),BF=ln(!1),VF=ln(!1),HF=ln({show:!1,multiple:!1}),UF=ln({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),WF=ln(null),GF=ln(null),KF=ln(),qF=new Set,aae=new Map})),oae=o((()=>{})),Q=o((()=>{oae(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),sae,cae=o((()=>{sae=`{"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"}}`})),lae,uae=o((()=>{lae=`{"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":"プレーンテキスト"}}`})),dae,fae=o((()=>{cae(),uae(),Z(),zy(),dae=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":sae,"../locales/ja.yaml":lae})).forEach(([e,t])=>{Ah(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:Iy(t)})}),Ih({fallbackLocale:e,initialLocale:t})}}));function YF(e,t){K(e,mae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=pae();bs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-1b5xgh8`);var i=F(r,!0);D(r),R(()=>W(i,t.name)),U(e,r)}var pae,mae,XF=o((()=>{Q(),Y(),pae=V(`<span> </span>`),mae={hash:`svelte-1b5xgh8`,code:`.icon.small-arrow.svelte-1b5xgh8 {overflow:hidden;width:12px;text-indent:-6px;}`}}));function ZF(e,t){K(e,gae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=hae();bs(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-1wgm17w`);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);YF(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 hae,gae,QF=o((()=>{Q(),Y(),XF(),hae=V(`<div><!> <!></div>`),gae={hash:`svelte-1wgm17w`,code:`.alert.svelte-1wgm17w {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-1wgm17w {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-1wgm17w {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-1wgm17w {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-1wgm17w {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),_ae,$F,vae,yae,bae,eI,tI,nI=o((()=>{$F=()=>(_ae??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),_ae),vae=[`Ctrl`,`Meta`,`Alt`,`Shift`],yae=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}`)]),bae=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:yae.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),eI=(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,$F()?`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=>!vae.includes(e)).every(t=>bae(t,e))})},tI=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,$F()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!eI(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 rI(e,t){K(e,Sae);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=xae();Eo(F(i),()=>r()??E),D(i),R(()=>ds(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var xae,Sae,iI=o((()=>{Q(),Y(),xae=V(`<span role="none" class="sui truncated-text svelte-hcwx1l"><!></span>`),Sae={hash:`svelte-hcwx1l`,code:`.truncated-text.svelte-hcwx1l {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),aI,oI,sI=o((()=>{yp(),aI=(e=`e`,t=7)=>[e,gp(t)].join(`-`),oI=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})}})),Cae,wae,Tae=o((()=>{Y(),sI(),tS(),gh(),Cae=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(Sr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=aI(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ya(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ya(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)}),ya(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),ya(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ya(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 eS(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},wae=(...e)=>new Cae(...e)}));function Eae(e,t){var n=H();Eo(I(n),()=>t.children??E),U(e,n)}var Dae=o((()=>{Q(),Y()}));function Oae(e,t){O(t,!0),K(e,Aae);let n=e=>{var n=kae(),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))};bs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Cs]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-ltc5sz`);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=Xs(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 eS(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return ei(()=>{r()?v():y()}),ac(()=>{let e=Ra(Eae,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Ba(e)}}),k({focus:d,close:f})}var kae,Aae,cI=o((()=>{Q(),Y(),tS(),sc(),Dae(),kae=V(`<dialog><!> <!></dialog>`),Aae={hash:`svelte-ltc5sz`,code:`dialog.svelte-ltc5sz {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-ltc5sz::backdrop {background:transparent;}dialog.backdrop.svelte-ltc5sz {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-ltc5sz {transition-duration:50ms;opacity:1;}dialog.svelte-ltc5sz:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-ltc5sz {transition-duration:1ms !important;}dialog.svelte-ltc5sz:not(.active) {pointer-events:none !important;}dialog.svelte-ltc5sz:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function lI(e,t){O(t,!0),K(e,dI);let n=e=>{var n=uI();let o,s;Eo(F(n),()=>t.children??E),D(n),Us(n,e=>a(e),()=>a()),R(()=>{q(n,`hidden`,!r()),o=cs(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-yluwtg`,o,{touch:z(y)}),s=ds(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`})}),ba(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),ba(`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=Xs(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,wae(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ei(()=>{z(g)&&r(z(g).open)}),ei(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ei(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ei(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ac(()=>(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));Oae(e,Zs(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await eS(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 uI,dI,fI=o((()=>{Q(),Y(),tS(),sc(),Tae(),cI(),uI=V(`<div role="none"><!></div>`),dI={hash:`svelte-yluwtg`,code:`.content.svelte-yluwtg {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-yluwtg {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-yluwtg .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-yluwtg {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-yluwtg .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-yluwtg {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-yluwtg {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-yluwtg {transform:scale(90%);}.content.touch.combobox.svelte-yluwtg .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-yluwtg {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-yluwtg {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function pI(e,t){O(t,!0),K(e,yI);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=Xs(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=vI(),T=I(w);bs(T,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Cs]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-17elcgq`);var ee=F(T);Eo(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=mI();rI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Pa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=hI();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=_I(),r=I(n),i=e=>{var t=gI();rI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Pa();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(T),Us(T,e=>n(e),()=>n()),Xo(T,()=>tI(p()));var ie=L(T,2),ae=e=>{lI(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 mI,hI,gI,_I,vI,yI,bI=o((()=>{Q(),Y(),nI(),iI(),fI(),mI=V(`<span role="none" class="label svelte-17elcgq"><!></span>`),hI=V(`<span role="none" class="label svelte-17elcgq"><!></span>`),gI=V(`<span role="none" class="label svelte-17elcgq"><!></span>`),_I=V(`<!> <!>`,1),vI=V(`<button><!> <!> <!></button> <!>`,1),yI={hash:`svelte-17elcgq`,code:`button.svelte-17elcgq {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-17elcgq {display:none !important;}button.svelte-17elcgq:not(:disabled):focus-visible {z-index:1;}button.svelte-17elcgq:is(.primary:where(.svelte-17elcgq), .secondary:where(.svelte-17elcgq), .tertiary:where(.svelte-17elcgq), .ghost:where(.svelte-17elcgq)) {justify-content:center;border-width:1px;}button.svelte-17elcgq:is(.primary:where(.svelte-17elcgq), .secondary:where(.svelte-17elcgq), .tertiary:where(.svelte-17elcgq), .ghost:where(.svelte-17elcgq)) .label:where(.svelte-17elcgq):only-child {padding:0 4px;}button.primary.svelte-17elcgq {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-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {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-17elcgq: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-17elcgq {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-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {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-17elcgq: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-17elcgq {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-17elcgq {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-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {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-17elcgq: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-17elcgq {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-17elcgq {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus-visible, [aria-expanded=true]:where(.svelte-17elcgq)) {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-17elcgq: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-17elcgq {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-17elcgq {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-17elcgq .label:where(.svelte-17elcgq) {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-17elcgq .label:where(.svelte-17elcgq) {text-decoration:underline;}button.link.svelte-17elcgq:is(:where(.svelte-17elcgq):hover, :where(.svelte-17elcgq):focus, :where(.svelte-17elcgq):active) .label:where(.svelte-17elcgq) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-17elcgq {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-17elcgq .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-17elcgq {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-17elcgq {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-17elcgq {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-17elcgq:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-17elcgq {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-17elcgq {background-color:var(--sui-error-background-color);}button.svelte-17elcgq .label:where(.svelte-17elcgq) {padding:0 4px;}button.svelte-17elcgq > * {pointer-events:none;}button.svelte-17elcgq :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function xI(e,t){O(t,!0),K(e,wI);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=CI(),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());YF(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=SI(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));pI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{YF(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(d,e=>{r()&&e(f)}),D(t),R(()=>cs(t,1,`infobar ${i()??``}`,`svelte-1h3krax`)),U(e,t)};G(c,e=>{n()&&e(l)}),U(e,s),k()}var SI,CI,wI,jae=o((()=>{Q(),Y(),Z(),bI(),XF(),SI=V(`<div role="none"><!></div>`),CI=V(`<div role="none"><div role="alert" class="message svelte-1h3krax"><!> <!></div> <!></div>`),wI={hash:`svelte-1h3krax`,code:`.infobar.svelte-1h3krax {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-1h3krax {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-1h3krax {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-1h3krax {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-1h3krax {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-1h3krax {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-1h3krax button {font-size:inherit !important;}.message.svelte-1h3krax .icon {font-size:16px; /* !hardcoded */}`}}));function Mae(e,t){K(e,EI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=TI();bs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-7fqn7c`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var TI,EI,Nae=o((()=>{Q(),Y(),TI=V(`<div><!></div>`),EI={hash:`svelte-7fqn7c`,code:`.bottom-navigation.svelte-7fqn7c {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-7fqn7c:is([inert]:where(.svelte-7fqn7c), [hidden]:where(.svelte-7fqn7c)) {display:none;}.bottom-navigation.svelte-7fqn7c .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function Pae(e,t){K(e,OI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=DI();bs(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-1u5a30k`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var DI,OI,kI=o((()=>{Q(),Y(),DI=V(`<div><!></div>`),OI={hash:`svelte-1u5a30k`,code:`.button-group.svelte-1u5a30k {flex:none;display:inline-flex;align-items:center;}`}}));function AI(e,t){K(e,MI);let n=J(t,`children`,3,void 0);var r=jI();Eo(F(r),()=>n()??E),D(r),U(e,r)}var jI,MI,Fae=o((()=>{Q(),Y(),jI=V(`<div role="none" class="sui floating-action-button-wrapper svelte-8aykmi"><!></div>`),MI={hash:`svelte-8aykmi`,code:`.floating-action-button-wrapper.svelte-8aykmi {display:contents;}
645
- @media (width < 768px) {.floating-action-button-wrapper.svelte-8aykmi {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-8aykmi button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-8aykmi button .icon {font-size:32px;}
646
- }`}})),NI,PI=o((()=>{Y(),NI=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}}})),FI,II,LI,RI,zI,BI=o((()=>{Y(),Z(),sI(),tS(),PI(),FI=/\p{Diacritic}/gu,II=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(FI,``).toLocaleLowerCase():``),LI={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}},RI=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=aI(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=LI[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 eS(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:NI(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=Eh();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=Eh(),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=II(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=II(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}}))}},zI=e=>t=>{let n=typeof e==`function`,r=new RI(t,n?e():e);return n&&ei(()=>{r.onUpdate(e())}),()=>{r.destroy()}}}));function VI(e,t){O(t,!0),K(e,UI);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var c=HI();bs(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-1a67juv`);var l=F(c);Eo(F(l),()=>t.children??E),D(l),D(c),Xo(c,zI),R(()=>l.inert=r()),U(e,c),k()}var HI,UI,Iae=o((()=>{Q(),Y(),BI(),HI=V(`<div><div role="none" class="inner svelte-1a67juv"><!></div></div>`),UI={hash:`svelte-1a67juv`,code:`.select-button-group.svelte-1a67juv {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-1a67juv:focus-visible {outline-width:0 !important;}.select-button-group.svelte-1a67juv button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-1a67juv button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-1a67juv button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-1a67juv button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-1a67juv button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-1a67juv [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-1a67juv [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-1a67juv [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-1a67juv {display:contents;}`}}));function WI(e,t){O(t,!0);let n=J(t,`selected`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);pI(e,Zs(()=>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 Lae=o((()=>{Q(),Y(),bI()}));function GI(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=Xs(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=KI(),h=I(m);return pI(h,Zs(()=>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=>{YF(e,{name:`more_vert`})},o=e=>{YF(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}})),lI(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup??E),U(e,r)},$$slots:{default:!0}}),U(e,m),k(p)}var KI,qI=o((()=>{Q(),Y(),bI(),XF(),fI(),KI=V(`<!> <!>`,1)}));function JI(e,t){O(t,!0),K(e,XI);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),u=N(void 0);var d=YI(),f=F(d);pI(f,Zs(()=>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=>{YF(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`));GI(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 YI,XI,Rae=o((()=>{Q(),Y(),Z(),XF(),qI(),bI(),YI=V(`<div role="group" class="sui split-button svelte-ktoh5f"><!> <!></div>`),XI={hash:`svelte-ktoh5f`,code:`.split-button.svelte-ktoh5f {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-ktoh5f button {margin:0;}.split-button.svelte-ktoh5f 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-ktoh5f button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}}));function ZI(e,t){K(e,$I);let n=J(t,`hidden`,3,!1),r=J(t,`orientation`,3,`horizontal`),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]);var a=QI();bs(a,()=>({...i,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,void 0,`svelte-19qi2as`),U(e,a)}var QI,$I,eL=o((()=>{Q(),Y(),QI=V(`<div></div>`),$I={hash:`svelte-19qi2as`,code:`.divider.svelte-19qi2as {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-19qi2as {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-19qi2as {margin:0 8px;width:1px;height:100%;}`}}));function tL(e,t){K(e,rL);let n=J(t,`flex`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]);var i=nL();bs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Cs]:{flex:n()}}),void 0,void 0,void 0,`svelte-1put14r`),U(e,i)}var nL,rL,iL=o((()=>{Q(),Y(),nL=V(`<div></div>`),rL={hash:`svelte-1put14r`,code:`.spacer.flex.svelte-1put14r:not([hidden]) {display:block;flex:auto;}.spacer.svelte-1put14r:not(.flex) {width:8px;height:8px;}`}}));function zae(e,t){K(e,oL);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`children`]);var o=aL();bs(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-h5m3we`);var s=F(o);Eo(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),U(e,o)}var aL,oL,Bae=o((()=>{Q(),Y(),aL=V(`<div><div role="none" class="inner svelte-h5m3we"><!></div></div>`),oL={hash:`svelte-h5m3we`,code:`.checkbox-group.svelte-h5m3we {display:inline-flex;}.checkbox-group.horizontal.svelte-h5m3we {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-h5m3we {gap:4px;flex-direction:column;}
647
- @media (pointer: coarse) {.checkbox-group.vertical.svelte-h5m3we {gap:8px;}
648
- }.inner.svelte-h5m3we {display:contents;}`}}));function sL(e,t){let n=Fa();O(t,!0),K(e,uL);let r=J(t,`checked`,15),i=J(t,`name`,3,void 0),a=J(t,`value`,3,void 0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=J(t,`label`,3,void 0),f=J(t,`group`,15),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`aria-label`,`group`,`onChange`,`children`,`checkIcon`]),m=N(void 0),h=M(()=>r()===`mixed`);ei(()=>{Array.isArray(f())&&(f().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var g=lL();let _;var v=F(g),y=F(v);{let e=e=>{var n=H(),i=I(n),a=e=>{var n=H();Eo(I(n),()=>t.checkIcon),U(e,n)},o=e=>{YF(e,{name:`remove`})},s=e=>{YF(e,{name:`check`})};G(i,e=>{t.checkIcon?e(a):z(h)?e(o,1):r()&&e(s,2)}),U(e,n)},d=M(()=>t[`aria-label`]||void 0),g=M(()=>t[`aria-label`]?void 0:`${n}-label`);pI(y,Zs(()=>p,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return z(d)},get"aria-labelledby"(){return z(g)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(z(h)?!0:!r()),Array.isArray(f())&&(r()?f().includes(a())||f([...f(),a()]):f().includes(a())&&f(f().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return z(m)},set element(e){P(m,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var b=L(y,2),x=e=>{var r=cL(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},o=e=>{var t=Pa();R(()=>W(t,d())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(b,e=>{(t.children||d())&&e(x)}),D(v),D(g),R(()=>{_=cs(g,1,`sui checkbox ${t.class??``}`,`svelte-zv1glo`,_,{checked:r(),indeterminate:z(h),disabled:s(),readonly:c()}),q(g,`hidden`,o()),v.inert=s()}),xa(`click`,g,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(m)?.click()}),U(e,g),k()}var cL,lL,uL,Vae=o((()=>{Q(),Y(),bI(),XF(),cL=V(`<label class="svelte-zv1glo"><!></label>`),lL=V(`<div role="none"><div role="none" class="inner svelte-zv1glo"><!> <!></div></div>`),uL={hash:`svelte-zv1glo`,code:`.checkbox.svelte-zv1glo {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-zv1glo:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-zv1glo:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-zv1glo:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-zv1glo:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-zv1glo button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-zv1glo button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-zv1glo button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-zv1glo button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-zv1glo button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-zv1glo label:where(.svelte-zv1glo) {cursor:inherit;}.inner.svelte-zv1glo {display:contents;}`},Sa([`click`])}));function dL(e,t){let n=Fa();O(t,!0),K(e,_L);let r=J(t,`open`,15,!1);J(t,`value`,11,``);let i=J(t,`role`,3,`dialog`),a=J(t,`size`,3,`medium`),o=J(t,`showClose`,3,!1),s=J(t,`showOk`,3,!0),c=J(t,`showCancel`,3,!0),l=J(t,`okLabel`,3,``),u=J(t,`okShortcuts`,3,void 0),d=J(t,`okDisabled`,3,!1),f=J(t,`cancelLabel`,3,``),p=J(t,`cancelShortcuts`,3,void 0),m=J(t,`cancelDisabled`,3,!1),h=J(t,`focusInput`,3,!0),g=Xs(t,`$$slots.$$events.$$legacy.open.value.title.role.size.class.showClose.showOk.showCancel.okLabel.okShortcuts.okDisabled.cancelLabel.cancelShortcuts.cancelDisabled.focusInput.children.header.headerExtra.footer.footerExtra.closeIcon.input`.split(`.`)),_=N(void 0),v=N(void 0);ei(()=>{if(r()&&z(v)){let e=!1;return(async()=>{await eS(50),!e&&(h()?(z(v)?.querySelector(`input, button.primary`)?.focus(),z(v)?.querySelector(`input`)?.select()):z(_)?.focus())})(),()=>{e=!0}}});{let h=M(()=>t.header?void 0:t.title),y=M(()=>t.header?t.title:`${n}-title`);Us(Oae(e,Zs(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return z(h)},get"aria-labelledby"(){return z(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=gL(),h=F(i),g=e=>{var r=pL(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.header),U(e,n)},s=e=>{var r=fL(),i=I(r),a=F(i,!0);D(i);var s=L(i,2);tL(s,{flex:!0});var c=L(s,2);Eo(c,()=>t.headerExtra??E);var l=L(c,2),u=e=>{{let r=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.closeIcon),U(e,n)},a=e=>{YF(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>X(`_sui.close`));pI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{z(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};G(l,e=>{o()&&e(u)}),R(()=>{q(i,`id`,`${n}-title`),W(a,t.title)}),U(e,r)};G(i,e=>{t.header?e(a):e(s,-1)}),D(r),U(e,r)};G(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);Eo(F(y),()=>t.children??E),D(y);var b=L(y,2),x=e=>{var n=hL(),r=F(n),i=e=>{var n=H();Eo(I(n),()=>t.footer??E),U(e,n)},a=e=>{var n=mL(),r=I(n);Eo(r,()=>t.footerExtra??E);var i=L(r,2);tL(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||X(`_sui.ok`));pI(e,{variant:`primary`,get label(){return z(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{z(_)?.close(`ok`)}})}};G(a,e=>{s()&&e(o)});var h=L(a,2),g=e=>{{let t=M(()=>f()||X(`_sui.cancel`));pI(e,{variant:`secondary`,get label(){return z(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{z(_)?.close(`cancel`)}})}};G(h,e=>{c()&&e(g)}),U(e,n)};G(r,e=>{t.footer?e(i):e(a,-1)}),D(n),U(e,n)};G(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),Us(i,e=>P(v,e),()=>z(v)),R(()=>{cs(i,1,`content ${t.class??``} ${a()??``}`,`svelte-pum2qq`),q(y,`id`,`${n}-body`)}),U(e,i)},$$slots:{default:!0}})),e=>P(_,e,!0),()=>z(_))}k()}var fL,pL,mL,hL,gL,_L,vL=o((()=>{Q(),Y(),Z(),tS(),bI(),iL(),XF(),cI(),fL=V(`<div role="none" class="title svelte-pum2qq"> </div> <!> <!> <!>`,1),pL=V(`<div role="none" class="header svelte-pum2qq"><!></div>`),mL=V(`<!> <!> <!> <!>`,1),hL=V(`<div role="none" class="footer svelte-pum2qq"><!></div>`),gL=V(`<div role="none"><!> <div role="none" class="body svelte-pum2qq"><!></div> <!></div>`),_L={hash:`svelte-pum2qq`,code:`.content.svelte-pum2qq {position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--sui-dialog-content-border-radius, 4px);max-width:calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);background-color:var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));box-shadow:var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));-webkit-backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));transition-property:transform;}dialog.open .content.svelte-pum2qq {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-pum2qq {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-pum2qq {width:var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));max-height:var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));}
649
- @media (max-height: 400px) {.content.small.svelte-pum2qq {max-height:calc(100dvh - 32px);}
650
- }.content.medium.svelte-pum2qq {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));}
651
- @media (max-height: 600px) {.content.medium.svelte-pum2qq {max-height:calc(100dvh - 32px);}
652
- }.content.large.svelte-pum2qq {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));}
653
- @media (max-height: 800px) {.content.large.svelte-pum2qq {max-height:calc(100dvh - 32px);}
654
- }.content.x-large.svelte-pum2qq {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));}
655
- @media (max-height: 1000px) {.content.x-large.svelte-pum2qq {max-height:calc(100dvh - 32px);}
656
- }:is(.header.svelte-pum2qq, .footer.svelte-pum2qq) {display:flex;align-items:center;gap:4px;}.header.svelte-pum2qq {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-pum2qq .title:where(.svelte-pum2qq) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-pum2qq {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
657
- @media (width < 768px) {.footer.svelte-pum2qq {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
658
- }.body.svelte-pum2qq {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);}
659
- @media (width < 768px) {.body.svelte-pum2qq {margin:var(--sui-dialog-body-margin, 16px 16px);}
660
- }`}}));function yL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);dL(e,Zs(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var Hae=o((()=>{Q(),Y(),vL()}));function bL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);dL(e,Zs(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var Uae=o((()=>{Q(),Y(),vL()}));function xL(e,t){let n=Fa();O(t,!0),K(e,wL);let r=J(t,`value`,15),i=J(t,`element`,15),a=J(t,`role`,3,`textbox`),o=J(t,`keyShortcuts`,3,void 0),s=J(t,`dir`,3,void 0),c=J(t,`name`,3,void 0),l=J(t,`showInlineLabel`,3,!1),u=J(t,`inputmode`,3,`text`),d=J(t,`flex`,3,!1),f=J(t,`monospace`,3,!1),p=J(t,`debounce`,3,!1),m=J(t,`hidden`,3,!1),h=J(t,`disabled`,3,!1),g=J(t,`readonly`,3,!1),_=J(t,`required`,3,!1),v=J(t,`invalid`,3,!1),y=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`aria-label`,`children`,`oninput`]),b=M(()=>typeof p()==`number`?p():300),x=0;ei(()=>()=>{clearTimeout(x)});let S=e=>{r(i()?.value),t.oninput?.(e)},C=e=>{let t=e;p()?(clearTimeout(x),x=setTimeout(()=>{S(t)},z(b))):S(t)};var w=CL();let T;var ee=F(w);bs(ee,()=>({...y,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":t[`aria-label`],"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:C}),void 0,void 0,void 0,`svelte-f15hgm`,!0),Us(ee,e=>i(e),()=>i()),Xo(ee,()=>tI(o()));var te=L(ee,2),ne=e=>{var i=SL();let a;rI(F(i),{children:(e,n)=>{gt();var r=Pa();R(()=>W(r,t[`aria-label`])),U(e,r)},$$slots:{default:!0}}),D(i),R(()=>{q(i,`id`,`${n}-label`),a=cs(i,1,`label svelte-f15hgm`,null,a,{hidden:!!r()})}),U(e,i)};G(te,e=>{t[`aria-label`]&&l()&&e(ne)}),D(w),R(()=>{T=cs(w,1,`sui text-input ${t.class??``}`,`svelte-f15hgm`,T,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),q(w,`hidden`,m()),ee.dir=ee.dir}),U(e,w),k()}var SL,CL,wL,TL=o((()=>{Q(),Y(),nI(),iI(),SL=V(`<span aria-hidden="true"><!></span>`),CL=V(`<div role="none"><input/> <!></div>`),wL={hash:`svelte-f15hgm`,code:`.text-input.svelte-f15hgm {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-f15hgm:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-f15hgm {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-f15hgm:is(:where(.svelte-f15hgm):-webkit-autofill, :where(.svelte-f15hgm):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-f15hgm {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;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);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-f15hgm:focus {border-color:var(--sui-textbox-border-color-focus, var(--sui-primary-accent-color));color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-f15hgm:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-f15hgm:is(:where(.svelte-f15hgm):disabled, :where(.svelte-f15hgm):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-f15hgm {border-color:var(--sui-error-border-color);}input.svelte-f15hgm ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-f15hgm ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-f15hgm ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-f15hgm {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-f15hgm {opacity:0;}input.svelte-f15hgm:focus + .label:where(.svelte-f15hgm) {opacity:0;}input.svelte-f15hgm::placeholder,
661
- .label.svelte-f15hgm {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`}}));function EL(e,t){O(t,!0),K(e,OL);let n=J(t,`open`,15,!1),r=J(t,`value`,15,``),i=J(t,`textboxAttrs`,19,()=>({})),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]);dL(e,Zs(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=DL(),o=I(a);Eo(o,()=>t.children??E);var s=L(o,2),c=F(s),l=e=>{var n=H();Eo(I(n),()=>t.input),U(e,n)},u=e=>{xL(e,Zs({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};G(c,e=>{t.input?e(l):e(u,-1)}),D(s),U(e,a)},$$slots:{default:!0}})),k()}var DL,OL,Wae=o((()=>{Q(),Y(),TL(),vL(),DL=V(`<!> <div class="input-outer svelte-s3zj7n"><!></div>`,1),OL={hash:`svelte-s3zj7n`,code:`.input-outer.svelte-s3zj7n {margin:12px 0 0;}`}}));function kL(e,t){O(t,!0);let n=J(t,`accept`,3,void 0),r=J(t,`multiple`,3,!1),i=J(t,`onSelect`,3,void 0),a=J(t,`onCancel`,3,void 0),o=N(void 0);var s={open:()=>{z(o)?.click()}},c=AL();return Us(c,e=>P(o,e),()=>z(o)),R(()=>{q(c,`accept`,n()),c.multiple=r()}),xa(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),ba(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),U(e,c),k(s)}var AL,Gae=o((()=>{Q(),Y(),AL=V(`<input class="sui file-picker" type="file" hidden=""/>`),Sa([`change`])}));function jL(e,t){let n=Fa();K(e,PL);let r=J(t,`label`,3,``),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]);var a=NL();bs(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-nyhhl`);var o=F(a),s=e=>{var t=ML();Wo(F(t),()=>`th`,!1,(e,t)=>{bs(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-nyhhl`);var i=Pa();R(()=>W(i,r())),U(t,i)}),D(t),U(e,t)};G(o,e=>{r()&&e(s)}),Eo(L(o,2),()=>t.children??E),D(a),U(e,a)}var ML,NL,PL,Kae=o((()=>{Q(),Y(),ML=V(`<div role="row" class="row-group-caption svelte-nyhhl"><!></div>`),NL=V(`<div><!> <!></div>`),PL={hash:`svelte-nyhhl`,code:`[role=rowgroup].svelte-nyhhl {display:table-row-group;}[role=row].svelte-nyhhl {display:table-row;}[role=columnheader].svelte-nyhhl {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`}}));function FL(e,t){K(e,LL);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=IL();bs(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1kp1x6t`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var IL,LL,qae=o((()=>{Q(),Y(),IL=V(`<div><!></div>`),LL={hash:`svelte-1kp1x6t`,code:`.grid-cell.svelte-1kp1x6t {display:table-cell;}`}}));function RL(e,t){K(e,BL);let n=J(t,`selected`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]);var i=zL();bs(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-tsp7gt`),Eo(F(i),()=>t.children??E),D(i),U(e,i)}var zL,BL,Jae=o((()=>{Q(),Y(),zL=V(`<div><!></div>`),BL={hash:`svelte-tsp7gt`,code:`.grid-row.svelte-tsp7gt {display:table-row;height:var(--sui-primary-row-height);}`}}));function Yae(e,t){O(t,!0),K(e,HL);let n=J(t,`element`,15),r=J(t,`multiple`,3,!1),i=J(t,`clickToSelect`,3,!0),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`children`,`onChange`]);var o=VL(),s=e=>{t.onChange?.(e)};bs(o,()=>({...a,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),onChange:s}),void 0,void 0,void 0,`svelte-7wi8q2`),Eo(F(o),()=>t.children??E),D(o),Us(o,e=>n(e),()=>n()),Xo(o,()=>zI({clickToSelect:i()})),U(e,o),k()}var VL,HL,Xae=o((()=>{Q(),Y(),BI(),VL=V(`<div><!></div>`),HL={hash:`svelte-7wi8q2`,code:`.grid.svelte-7wi8q2 {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-7wi8q2 {border-collapse:collapse;}.grid.data.svelte-7wi8q2 :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function UL(e,t){O(t,!0),K(e,GL);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=J(t,`multiple`,3,!1),c=J(t,`searchTerms`,3,``),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`children`,`onFilter`]),u=N(!1);var d=WL(),f=e=>{let{detail:{matched:n,total:r}}=e;P(u,n!==r),t.onFilter?.(e)};bs(d,()=>({...l,role:`listbox`,class:`sui listbox ${t.class??``}`,tabindex:r()?-1:0,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-multiselectable":s(),onFilter:f,[Cs]:{filtered:z(u)}}),void 0,void 0,void 0,`svelte-1xajquw`);var p=F(d);Eo(F(p),()=>t.children??E),D(p),D(d),Xo(d,()=>zI(()=>({searchTerms:c()}))),R(()=>p.inert=r()),U(e,d),k()}var WL,GL,KL=o((()=>{Q(),Y(),BI(),WL=V(`<div><div role="none" class="inner svelte-1xajquw"><!></div></div>`),GL={hash:`svelte-1xajquw`,code:`[role=listbox].svelte-1xajquw {display:flex;flex-direction:column;margin:var(--sui-focus-ring-width);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);min-width:var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));color:var(--sui-listbox-foreground-color);background-color:var(--sui-listbox-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}
662
- @media (pointer: coarse) {[role=listbox].svelte-1xajquw {gap:8px 0;}
663
- }[role=listbox].svelte-1xajquw [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-1xajquw {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-1xajquw {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-1xajquw .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-1xajquw .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-1xajquw .option button .icon {display:none;}[role=listbox].in-combobox.svelte-1xajquw:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-1xajquw [role=separator] {display:none;}.inner.svelte-1xajquw {display:contents;}`}}));function qL(e,t){let n=Fa();K(e,YL);let r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]);var s=JL();bs(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-137ry1s`);var c=F(s);rI(F(c),{children:(e,t)=>{gt();var n=Pa();R(()=>W(n,a())),U(e,n)},$$slots:{default:!0}}),D(c);var l=L(c,2);Eo(F(l),()=>t.children??E),D(l),D(s),R(()=>{q(c,`id`,`${n}-label`),l.inert=i()}),U(e,s)}var JL,YL,Zae=o((()=>{Q(),Y(),iI(),JL=V(`<div><div role="none" class="label svelte-137ry1s"><!></div> <div role="none" class="inner svelte-137ry1s"><!></div></div>`),YL={hash:`svelte-137ry1s`,code:`.option-group.svelte-137ry1s:not(:first-child) {margin:12px 0 0;}.label.svelte-137ry1s {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-137ry1s {display:contents;}`}}));function XL(e,t){O(t,!0),K(e,$L);let n=J(t,`selected`,15,!1),r=J(t,`hidden`,15,!1),i=J(t,`disabled`,3,!1),a=J(t,`value`,19,()=>t.label),o=J(t,`searchValue`,19,()=>t.label),s=J(t,`wrap`,3,!1),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]);var l=QL();let u;pI(F(l),Zs(()=>c,{role:`option`,tabindex:`-1`,get"aria-selected"(){return n()},get label(){return t.label},get value(){return a()},get hidden(){return r()},get disabled(){return i()},get"data-search-value"(){return o()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)},onToggle:e=>{r(e.detail.hidden),r()&&n(!1),t.onToggle?.(e)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:(e,r)=>{var i=ZL(),a=I(i),o=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.checkIcon),U(e,n)},a=e=>{YF(e,{class:`check`,name:`check`})};G(r,e=>{t.checkIcon?e(i):e(a,-1)}),U(e,n)};G(a,e=>{n()&&e(o)}),Eo(L(a,2),()=>t.children??E),U(e,i)},$$slots:{startIcon:!0,default:!0}})),D(l),R(()=>{u=cs(l,1,`sui option ${t.class??``}`,`svelte-dwas1e`,u,{wrap:s()}),q(l,`hidden`,r())}),U(e,l),k()}var ZL,QL,$L,eR=o((()=>{Q(),Y(),bI(),XF(),ZL=V(`<!> <!>`,1),QL=V(`<div role="none"><!></div>`),$L={hash:`svelte-dwas1e`,code:`.option.svelte-dwas1e {display:contents;}.option.svelte-dwas1e:focus-visible {outline-width:0 !important;}.option.svelte-dwas1e .wrap button {white-space:normal;}.option.svelte-dwas1e button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-dwas1e button:active {background-color:var(--sui-active-background-color);}.option.svelte-dwas1e button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-dwas1e button * {flex:none;}.option.svelte-dwas1e button .label {flex:auto;}.option.svelte-dwas1e :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-dwas1e .icon.check {margin:-2px;}`}}));function tR(e,t){O(t,!0),K(e,rR);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`,`onChange`]);var a=nR(),o=e=>{t.onChange?.(e)};bs(a,()=>({...i,role:`menu`,class:`sui menu ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),onChange:o}),void 0,void 0,void 0,`svelte-jtgluc`),Eo(F(a),()=>t.children??E),D(a),Xo(a,zI),U(e,a),k()}var nR,rR,iR=o((()=>{Q(),Y(),BI(),nR=V(`<div><!></div>`),rR={hash:`svelte-jtgluc`,code:`.menu.svelte-jtgluc {display:flex;flex-direction:column;margin:0;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);}
664
- @media (pointer: coarse) {.menu.svelte-jtgluc {gap:8px 0;}
665
- }.menu.svelte-jtgluc [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}}));function aR(e,t){O(t,!0),K(e,lR);let n=J(t,`role`,3,`menuitem`),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=J(t,`popupPosition`,3,`right-top`),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);ac(()=>{P(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=cR(),m=F(p);{let e=e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},o=e=>{var n=sR(),r=I(n);let i;var o=F(r),s=e=>{var t=Pa();R(()=>W(t,a())),U(e,t)},c=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(o,e=>{a()?e(s):e(c,-1)}),D(r);var l=L(r,2),u=e=>{var n=oR(),r=F(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{{let t=M(()=>Eh()?`chevron_left`:`chevron_right`);YF(e,{get name(){return z(t)}})}};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),D(n),U(e,n)};G(l,e=>{z(f)&&e(u)}),R(()=>i=cs(r,1,`content svelte-aj2anw`,null,i,{label:!!a()})),U(e,n)},d=e=>{var n=H();Eo(I(n),()=>t.endIcon??E),U(e,n)},p=M(()=>z(f)?`menu`:void 0),h=M(()=>z(f)?z(c):void 0);pI(m,Zs(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return z(p)},get"aria-expanded"(){return z(h)},onmouseenter:e=>{z(f)&&window.setTimeout(()=>{P(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{z(f)&&window.setTimeout(()=>{z(l)||P(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{z(f)&&(e.preventDefault(),e.stopPropagation(),P(c,!z(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(u)},set element(e){P(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=L(m,2),g=e=>{lI(e,{get anchor(){return z(u)},get parentDialogElement(){return z(d)},get position(){return o()},get open(){return z(c)},set open(e){P(c,e,!0)},get hovered(){return z(l)},set hovered(e){P(l,e,!0)},children:(e,n)=>{tR(e,{children:(e,n)=>{var r=H();Eo(I(r),()=>t.items??E),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),D(p),R(()=>{cs(p,1,`sui menuitem ${t.class??``}`,`svelte-aj2anw`),q(p,`hidden`,r())}),U(e,p),k()}var oR,sR,cR,lR,uR=o((()=>{Q(),Y(),Z(),sc(),bI(),XF(),fI(),iR(),oR=V(`<span role="none" class="icon-outer svelte-aj2anw"><!></span>`),sR=V(`<div role="none"><!></div> <!>`,1),cR=V(`<div role="none"><!> <!></div>`),lR={hash:`svelte-aj2anw`,code:`.menuitem.svelte-aj2anw {position:relative;}.menuitem.svelte-aj2anw button {display:flex;gap:var(--sui-menuitem-gap, 4px);align-items:var(--sui-menuitem-align-items, center);border-radius:var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));margin:0 !important;padding:var(--sui-menuitem-padding, 0 16px);width:100%;min-width:var(--sui-menuitem-min-width, 160px);height:var(--sui-menuitem-height, var(--sui-option-height));color:var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));background-color:var(--sui-menuitem-background-color, transparent);font-size:var(--sui-menuitem-font-size, var(--sui-option-font-size));font-weight:var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));}.menuitem.svelte-aj2anw button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-aj2anw button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-aj2anw button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-aj2anw :hover > [role=menu] {opacity:1;}.menuitem.svelte-aj2anw > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-aj2anw > [role=menu]:hover {opacity:1;}.content.svelte-aj2anw {flex:auto;}.icon-outer.svelte-aj2anw {flex:none;width:24px;height:24px;}`}}));function dR(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);aR(e,Zs(()=>o,{role:`menuitemcheckbox`,get class(){return`sui menu-item-checkbox ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},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 t=H(),r=I(t),i=e=>{YF(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var fR=o((()=>{Q(),Y(),XF(),uR()}));function pR(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);aR(e,Zs(()=>o,{role:`menuitemradio`,get class(){return`sui menu-item-radio ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},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 t=H(),r=I(t),i=e=>{YF(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var Qae=o((()=>{Q(),Y(),XF(),uR()}));function $ae(e,t){K(e,hR);let n=J(t,`now`,3,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`]);var o=mR();bs(o,()=>({...a,role:`progressbar`,class:`sui progressbar ${t.class??``}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":t.text}),void 0,void 0,void 0,`svelte-17s21ko`);var s=F(o);let c;D(o),R(()=>c=ds(s,``,c,{width:`${n()??``}%`})),U(e,o)}var mR,hR,eoe=o((()=>{Q(),Y(),mR=V(`<div><div role="none" class="svelte-17s21ko"></div></div>`),hR={hash:`svelte-17s21ko`,code:`.progressbar.svelte-17s21ko {overflow:hidden;border-width:var(--sui-progressbar-border-width, 1px);border-style:var(--sui-progressbar-border-style, solid);border-color:var(--sui-progressbar-border-color, var(--sui-control-border-color));border-radius:var(--sui-progressbar-border-radius, 16px);width:var(--sui-progressbar-width, 240px);height:var(--sui-progressbar-height, 10px);background-color:var(--sui-progressbar-background-color, var(--sui-secondary-background-color));}.progressbar.svelte-17s21ko div:where(.svelte-17s21ko) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`}}));function toe(e,t){O(t,!0),K(e,_R);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=J(t,`orientation`,3,`horizontal`),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`children`,`onChange`]);var l=gR(),u=e=>{t.onChange?.(e)};bs(l,()=>({...c,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),onChange:u}),void 0,void 0,void 0,`svelte-1omz5h2`);var d=F(l);Eo(F(d),()=>t.children??E),D(d),D(l),Xo(l,zI),R(()=>d.inert=r()),U(e,l),k()}var gR,_R,noe=o((()=>{Q(),Y(),BI(),gR=V(`<div><div role="none" class="inner svelte-1omz5h2"><!></div></div>`),_R={hash:`svelte-1omz5h2`,code:`.radio-group.svelte-1omz5h2 {display:inline-flex;}.radio-group.svelte-1omz5h2:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-1omz5h2 {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-1omz5h2 {gap:4px;flex-direction:column;}
666
- @media (pointer: coarse) {.radio-group.vertical.svelte-1omz5h2 {gap:8px;}
667
- }.radio-group.svelte-1omz5h2 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-1omz5h2 [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-1omz5h2 [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-1omz5h2 {display:contents;}`}}));function roe(e,t){let n=Fa();O(t,!0),K(e,bR);let r=J(t,`checked`,7,!1),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,3,void 0),l=J(t,`label`,3,void 0),u=J(t,`group`,15),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),f=N(void 0);ei(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=yR(),m=e=>{e.target.matches(`button`)||z(f)?.click()};bs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Cs]:{disabled:a()}}),void 0,void 0,void 0,`svelte-1mf9oz0`);var h=F(p);pI(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=vR(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},o=e=>{var t=Pa();R(()=>W(t,l())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(g,e=>{(t.children||l())&&e(_)}),D(p),U(e,p),k()}var vR,yR,bR,ioe=o((()=>{Q(),Y(),bI(),vR=V(`<label class="svelte-1mf9oz0"><!></label>`),yR=V(`<span><!> <!></span>`),bR={hash:`svelte-1mf9oz0`,code:`.radio.svelte-1mf9oz0 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-1mf9oz0 :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-1mf9oz0 :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-1mf9oz0 :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-1mf9oz0 :active button {background-color:var(--sui-active-background-color);}.radio.svelte-1mf9oz0 :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-1mf9oz0 button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-1mf9oz0 button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-1mf9oz0 button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-1mf9oz0 button[aria-checked=true]::before {opacity:1;}.radio.svelte-1mf9oz0 label:where(.svelte-1mf9oz0) {cursor:inherit;}`}}));function aoe(e,t){O(t,!0),K(e,CR);let n=J(t,`disabled`,3,!1),r=J(t,`showHandleBar`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`children`,`onResizeStart`,`onResizeEnd`]),a=Lt(`paneGroup`);if(!a)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let o=a.registerHandle(),s=M(()=>a.direction===`horizontal`),c=M(()=>a.sizes),l=M(()=>z(c)[o]??0),u=M(()=>Math.max(a.paneDefs[o]?.minSize??0,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.maxSize),0))),d=M(()=>Math.min(a.paneDefs[o]?.maxSize??100,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.minSize),0))),f=N(void 0),p=N(!1),m=N(0),h=N(0),g=N(!1),_=()=>{let e=z(f)?.closest(`.resizable-pane-group`);return e?z(s)?e.clientWidth:e.clientHeight:0},v=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(p)||i!==z(h))return;e.preventDefault(),e.stopPropagation();let c=z(s)?t:r,l=c-z(m),u=_();if(!u)return;let d=l/u*100;z(s)&&Eh()&&(d=-d),P(m,c,!0),a.resize(o,d)},y=e=>{!z(p)||e.pointerId!==z(h)||(P(p,!1),P(m,0),P(h,0),document.removeEventListener(`pointermove`,v),document.removeEventListener(`pointerup`,y),document.removeEventListener(`pointercancel`,y),t.onResizeEnd?.())},b=e=>{n()||(e.preventDefault(),e.stopPropagation(),P(p,!0),P(m,z(s)?e.screenX:e.screenY,!0),P(h,e.pointerId,!0),t.onResizeStart?.(),document.addEventListener(`pointermove`,v),document.addEventListener(`pointerup`,y),document.addEventListener(`pointercancel`,y))},x=e=>{if(n())return;let{key:r,shiftKey:i}=e,c=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),a.toggleCollapse(o);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),a.resize(o,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),a.resize(o,100);return}if(z(s)){let e=Eh();if(r===`ArrowLeft`)l=e?c:-c;else if(r===`ArrowRight`)l=e?-c:c;else return}else if(r===`ArrowUp`)l=-c;else if(r===`ArrowDown`)l=c;else return;e.preventDefault(),e.stopPropagation(),z(g)||(P(g,!0),t.onResizeStart?.()),a.resize(o,l)},S=()=>{z(g)&&(P(g,!1),t.onResizeEnd?.())};var C=SR();bs(C,e=>({...i,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(s)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(u),"aria-valuemax":z(d),"aria-controls":a.paneDefs[o]?.id,"aria-disabled":n()||void 0,class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:b,onkeydown:x,onblur:S,[Cs]:{horizontal:z(s),vertical:!z(s),disabled:n(),dragging:z(p)}}),[()=>Math.round(z(l))],void 0,void 0,`svelte-ab4he`);var w=F(C),T=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},ee=e=>{U(e,xR())};G(w,e=>{t.children?e(T):r()&&e(ee,1)}),D(C),Us(C,e=>P(f,e),()=>z(f)),U(e,C),k()}var xR,SR,CR,ooe=o((()=>{Q(),Y(),Z(),sc(),xR=V(`<div role="none" class="handle-bar svelte-ab4he"></div>`),SR=V(`<div><!></div>`),CR={hash:`svelte-ab4he`,code:`.resizable-handle.svelte-ab4he {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-ab4he:focus-visible, .resizable-handle.svelte-ab4he:hover, .resizable-handle.dragging.svelte-ab4he {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent);}.resizable-handle.svelte-ab4he:focus-visible .handle-bar:where(.svelte-ab4he), .resizable-handle.svelte-ab4he:hover .handle-bar:where(.svelte-ab4he), .resizable-handle.dragging.svelte-ab4he .handle-bar:where(.svelte-ab4he) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-ab4he {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-ab4he {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-ab4he .handle-bar:where(.svelte-ab4he) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-ab4he {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-ab4he .handle-bar:where(.svelte-ab4he) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-ab4he .handle-bar:where(.svelte-ab4he) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}}));function soe(e,t){O(t,!0),K(e,TR);let n=J(t,`direction`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),i=Sr([]),a=Sr([]),o=Sr([]),s=0,c=()=>{if(!i.length)return;let e=i.reduce((e,t)=>e+(t.defaultSize??0),0),t=i.filter(e=>e.defaultSize===void 0).length,n=Math.max(0,100-e),r=t>0?n/t:0,o=i.map(e=>e.defaultSize??r);a.splice(0,a.length,...o)},l=(e,n)=>{let r=e,o=e+1;if(r<0||o>=a.length)return;let{minSize:s=0,maxSize:c=100}=i[r],{minSize:l=0,maxSize:u=100}=i[o],d=a[r],f=a[o],p=Math.min(c-d,f-l),m=Math.min(d-s,u-f),h=n>0?Math.min(n,p):-Math.min(-n,m);a[r]=d+h,a[o]=f-h,t.onResize?.({sizes:a.map(e=>Number(e.toFixed(1)))})};Rt(`paneGroup`,{get direction(){return n()},sizes:a,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=s;return s+=1,e},resize:l,toggleCollapse:e=>{let{minSize:t=0}=i[e];if(o[e]!==void 0){let t=o[e]-a[e];o[e]=void 0,l(e,t)}else o[e]=a[e],l(e,-(a[e]-t))},paneDefs:i}),ei(()=>{i.length&&!a.length&&c()});var u=wR();bs(u,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-geyac`),Eo(F(u),()=>t.children??E),D(u),U(e,u),k()}var wR,TR,coe=o((()=>{Q(),Y(),sc(),wR=V(`<div><!></div>`),TR={hash:`svelte-geyac`,code:`.resizable-pane-group.svelte-geyac {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-geyac {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-geyac {flex-direction:column;width:100%;height:100%;}`}}));function ER(e,t){let n=Fa();O(t,!0);let r=J(t,`defaultSize`,3,void 0),i=J(t,`minSize`,3,0),a=J(t,`maxSize`,3,100),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),s=Lt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>z(u)===void 0?r()??0:z(u));ei(()=>{z(u)!==void 0&&B(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=DR();bs(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[ws]:{"flex-basis":`${z(d)??``}%`,"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),Eo(F(f),()=>t.children??E),D(f),U(e,f),k()}var DR,loe=o((()=>{Q(),Y(),sc(),DR=V(`<div><!></div>`)}));function OR(e,t){O(t,!0),K(e,jR);let n=J(t,`itemChunkSize`,3,25),r=M(n),i=N(void 0),a=M(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?P(r,z(r)+n()):o.disconnect())});ei(()=>{z(i)&&o.observe(z(i))});var s=AR(),c=I(s);mo(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=H();Eo(I(i),()=>t.renderItem,()=>z(n),()=>z(r)),U(e,i)});var l=L(c,2),u=e=>{var t=kR();Us(t,e=>P(i,e),()=>z(i)),U(e,t)};G(l,e=>{z(a)&&e(u)}),U(e,s),k()}var kR,AR,jR,uoe=o((()=>{Q(),Y(),kR=V(`<div role="none" class="spinner svelte-nuii1p"></div>`),AR=V(`<!> <!>`,1),jR={hash:`svelte-nuii1p`,code:`.spinner.svelte-nuii1p {height:1px;}`}}));function MR(e,t){let n=Fa();O(t,!0),K(e,PR);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),d=N(void 0);var f={focus:()=>{z(d)?.focus()}},p=NR();let m;var h=F(p),g=F(h),_=e=>{var n=H();Eo(I(n),()=>t.searchIcon),U(e,n)},v=e=>{YF(e,{name:`search`})};G(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);xL(y,Zs({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.closeIcon),U(e,n)},a=e=>{YF(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},a=M(()=>X(`_sui.clear`));pI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return G(b,e=>{r()&&e(x)}),D(p),R(()=>{q(p,`role`,a()?void 0:`none`),m=cs(p,1,`sui search-bar ${t.class??``}`,`svelte-mnpwqc`,m,{flex:i(),disabled:o(),readonly:s()}),q(p,`hidden`,a()),q(p,`aria-hidden`,a())}),U(e,p),k(f)}var NR,PR,FR=o((()=>{Q(),Y(),Z(),bI(),XF(),TL(),NR=V(`<div><span role="none" class="svelte-mnpwqc"><!></span> <!> <!></div>`),PR={hash:`svelte-mnpwqc`,code:`.search-bar.svelte-mnpwqc {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-mnpwqc:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-mnpwqc > span:where(.svelte-mnpwqc) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-mnpwqc .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-mnpwqc > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-mnpwqc .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-mnpwqc .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-mnpwqc input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}}));function doe(e,t){let n=Fa();O(t,!0),K(e,BR);let r=`[role="option"][aria-selected="true"]`,i=J(t,`value`,15),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=J(t,`editable`,3,!0),d=J(t,`position`,3,`bottom-left`),f=J(t,`filterThreshold`,3,5),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`children`,`chevronIcon`,`onChange`]),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(``),y=N(!1),b=N(``),x=N(!0),S=M(()=>z(h)??z(g)),C=()=>{let e=z(_)?.querySelector(`[role="option"][data-value="${i()}"]`);e&&(P(v,e.dataset.label||e.dataset.value||e.textContent||``,!0),e.getAttribute(`aria-selected`)!==`true`&&(z(_)?.querySelector(r)?.setAttribute(`aria-selected`,`false`),e.setAttribute(`aria-selected`,`true`)))},w=e=>{let n=NI(e);i(n.value),C(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};ei(()=>{z(_)&&globalThis.requestAnimationFrame(()=>{let e=z(_)?.querySelector(r);e&&w(e)})}),ei(()=>{i(),C()});var T=zR(),ee=I(T);bs(ee,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:a(),[Cs]:{editable:u()}}),void 0,void 0,void 0,`svelte-cx7er7`);var te=F(ee),ne=e=>{var t=IR();bs(t,()=>({...p,role:`combobox`,id:n,tabindex:o()?-1:0,"aria-controls":`${n}-popup`,"aria-expanded":z(m),"aria-hidden":a(),"aria-disabled":o(),"aria-readonly":s(),"aria-required":c(),"aria-invalid":l(),"aria-haspopup":`listbox`,[Cs]:{selected:i()!==void 0}}),void 0,void 0,void 0,`svelte-cx7er7`);var r=F(t);rI(F(r),{children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>i()===void 0?X(`_sui.combobox.select_an_option`):z(v)]),U(e,n)},$$slots:{default:!0}}),D(r),D(t),Us(t,e=>P(h,e),()=>z(h)),U(e,t)},re=e=>{{let t=M(()=>i()===void 0?``:String(i()));xL(e,Zs(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get element(){return z(g)},set element(e){P(g,e,!0)}}))}};G(te,e=>{u()?e(re,-1):e(ne)});var ie=L(te,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=>{YF(e,{name:`expand_more`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>!u()||s()||o()?-1:0),i=M(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`));pI(ie,{variant:`ghost`,iconic:!0,get hidden(){return a()},get disabled(){return o()},get tabindex(){return z(r)},get"aria-label"(){return z(i)},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!o()&&!s()&&P(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}D(ee),lI(L(ee,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(S)},get position(){return d()},touchOptimized:!0,onOpen:()=>{P(y,f()===-1?!1:(z(_)?.querySelectorAll(`[role="option"]`)?.length??0)>f(),!0),P(b,``)},get content(){return z(_)},set content(e){P(_,e,!0)},get open(){return z(m)},set open(e){P(m,e,!0)},children:(e,r)=>{var i=RR(),a=F(i),o=e=>{{let t=M(()=>X(`_sui.combobox.filter_options`));MR(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(b)},set value(e){P(b,e,!0)}})}};G(a,e=>{z(y)&&e(o)});var s=L(a,2);UL(s,{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(b)},onclick:e=>{e.target.matches(`[role="option"]`)&&w(e.target)},onFilter:e=>{P(x,!!e.detail.matched)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}});var c=L(s,2),l=e=>{var t=LR(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),U(e,t)};G(c,e=>{z(x)||e(l)}),D(i),U(e,i)},$$slots:{default:!0}}),U(e,T),k()}var IR,LR,RR,zR,BR,VR=o((()=>{Q(),Y(),Z(),PI(),bI(),XF(),KL(),FR(),TL(),iI(),fI(),IR=V(`<div><div role="none" class="label svelte-cx7er7"><!></div></div>`),LR=V(`<div role="alert" class="no-options svelte-cx7er7"> </div>`),RR=V(`<div role="none" class="combobox-inner svelte-cx7er7"><!> <!> <!></div>`),zR=V(`<div><!> <!></div> <!>`,1),BR={hash:`svelte-cx7er7`,code:`.combobox.svelte-cx7er7 {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7):not(.selected) {font-style:italic;}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7):is(:where(.svelte-cx7er7):hover, :where(.svelte-cx7er7):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-cx7er7 div[role=combobox][aria-invalid=true]:where(.svelte-cx7er7) {border-color:var(--sui-error-border-color);}.combobox.svelte-cx7er7 div[role=combobox]:where(.svelte-cx7er7) .label:where(.svelte-cx7er7) {width:100%;}.combobox.svelte-cx7er7 .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-cx7er7 > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-cx7er7 > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-cx7er7 > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-cx7er7 :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-cx7er7 .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-cx7er7 input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-cx7er7 + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);
668
- /* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-cx7er7 + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-cx7er7 {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-cx7er7 .sui.search-bar {flex:none;}.combobox-inner.svelte-cx7er7 .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-cx7er7 .no-options:where(.svelte-cx7er7) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}}));function foe(e){let t=e-1;return t*t*t+1}var poe=o((()=>{}));function moe(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=foe}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=hoe(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function hoe(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var goe=o((()=>{poe()}));function HR(e,t){O(t,!0);let n=J(t,`value`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`readonly`,3,!1),o=J(t,`required`,3,!1),s=J(t,`invalid`,3,!1),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);doe(e,Zs(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),k()}var UR=o((()=>{Q(),Y(),VR()}));function _oe(e,t){O(t,!0),K(e,KR);let n=J(t,`values`,31,()=>Sr([])),r=J(t,`max`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>Eh()?`ArrowRight`:`ArrowLeft`),f=M(()=>Eh()?`ArrowLeft`:`ArrowRight`),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},v=async(e,t)=>{_(e,t),await zi(),z(p)?.querySelectorAll(`.label[tabindex]`)?.[t]?.focus()};var y=GR();let b;var x=F(y);mo(x,30,n,e=>e,(e,r,i)=>{let s=M(()=>z(u).get(r)),c=M(()=>z(s)?.label||z(s)?.value||r);var l=WR();let p;var m=F(l),_=F(m,!0);D(m);var y=L(m,2),b=e=>{{let i=e=>{YF(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));pI(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};G(y,e=>{z(s)&&e(b)}),D(l),R(()=>{q(l,`draggable`,!a()&&!o()),p=cs(l,1,`svelte-1g63og`,null,p,{"drag-source":z(h)===z(i),"drop-before":z(g)===z(i)&&z(h)!==z(i)&&z(h)!==z(i)-1,"drop-after":z(g)===n().length&&z(i)===n().length-1&&z(h)!==n().length-1}),q(m,`tabindex`,a()||o()?void 0:0),W(_,z(c))}),ba(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),ba(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect();P(g,e.clientX<t.left+t.width/2===Eh()?z(i)+1:z(i),!0)}),ba(`drop`,l,async e=>{e.preventDefault();let t=z(h),n=z(g);P(h,void 0),P(g,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await v(t,n>t?n-1:n)}),ba(`dragend`,l,()=>{P(h,void 0),P(g,void 0)}),xa(`keydown`,m,async e=>{let{key:t}=e,r=t===z(d)&&z(i)>0?z(i)-1:t===z(f)&&z(i)<n().length-1?z(i)+1:t===`Home`&&z(i)>0?0:t===`End`&&z(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await v(z(i),r))}),zo(l,()=>moe,()=>({duration:200})),U(e,l)}),D(x);var S=L(x,2),C=e=>{{let r=M(()=>a()||o());HR(e,Zs(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(m)&&(n([...n(),z(m)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(m)}})),P(m,void 0))},get value(){return z(m)},set value(e){P(m,e,!0)},children:(e,r)=>{var i=H();mo(I(i),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;var o=H(),s=I(o),c=e=>{XL(e,{get label(){return r()},get value(){return i()},get searchValue(){return a()}})},l=M(()=>!n().includes(i()));G(s,e=>{z(l)&&e(c)}),U(e,o)}),U(e,i)},$$slots:{default:!0}}))}};G(S,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(C)}),D(y),Us(y,e=>P(p,e),()=>z(p)),R(e=>{b=cs(y,1,`sui select-tags ${t.class??``}`,`svelte-1g63og`,b,{disabled:a()||o()}),q(y,`hidden`,i()),q(x,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),U(e,y),k()}var WR,GR,KR,voe=o((()=>{Q(),Y(),Z(),sc(),goe(),bI(),XF(),eR(),UR(),WR=V(`<span role="none"><span class="label svelte-1g63og" role="option" aria-selected="true"> </span> <!></span>`),GR=V(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-1g63og"></span> <!></div>`),KR={hash:`svelte-1g63og`,code:`.select-tags.svelte-1g63og {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-1g63og {pointer-events:none;}.select-tags.disabled.svelte-1g63og > :where(.svelte-1g63og) {opacity:0.5;}.select-tags.svelte-1g63og span[role=listbox]:where(.svelte-1g63og) {display:contents;}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}.select-tags.svelte-1g63og span[draggable].drag-source:where(.svelte-1g63og) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-1g63og span[draggable].drop-before:where(.svelte-1g63og)::before, .select-tags.svelte-1g63og span[draggable].drop-after:where(.svelte-1g63og)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-1g63og span[draggable].drop-before:where(.svelte-1g63og)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1g63og span[draggable].drop-after:where(.svelte-1g63og)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og) .label:where(.svelte-1g63og) {outline:none;}.select-tags.svelte-1g63og span[draggable]:where(.svelte-1g63og) .icon {font-size:var(--sui-font-size-large);}`},Sa([`keydown`])}));function yoe(e,t){O(t,!0),K(e,XR);let n=J(t,`value`,15,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=J(t,`sliderLabel`,3,``),o=J(t,`values`,15,void 0),s=J(t,`sliderLabels`,3,void 0),c=J(t,`step`,3,1),l=J(t,`optionLabels`,19,()=>[]),u=J(t,`hidden`,3,!1),d=J(t,`disabled`,3,!1),f=J(t,`readonly`,3,!1),p=J(t,`invalid`,3,!1),m=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Sr([])),y=N(Sr([])),b=N(0),x=N(0),S=Sr([0,0]),C=N(!1),w=N(0),T=N(0),ee=e=>{let t=Eh()?z(_)-e:e;if(t<0||t>z(_))return;let r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a=Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i;S[z(T)]===z(v)[a]||z(h)&&(z(T)===0&&S[1]<=z(v)[a]||z(T)===1&&S[0]>=z(v)[a])||(z(h)?(o(o()[z(T)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=Eh(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.stopPropagation();let r=t-z(x);ee(z(b)+r)},re=e=>{let{pointerId:t}=e;if(!(d()||f()||!z(C)||t!==z(w))){if(e.stopPropagation(),e.target.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect();ee(e.clientX-t.left)}P(C,!1),P(b,0),P(x,0),P(w,0),P(T,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)}},ie=(e,t=0)=>{let{clientX:n,screenX:r,pointerId:i}=e;d()||f()||(e.stopPropagation(),P(C,!0),P(b,n-z(g).getBoundingClientRect().left),P(x,r,!0),P(w,i,!0),P(T,t,!0),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re))},ae=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},oe=()=>{if(!z(g))return;P(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),ae()};ac(()=>{let e=new ResizeObserver(()=>oe()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,oe),oe(),()=>{e.disconnect(),t.removeEventListener(`change`,oe)}}),ei(()=>{n(),o(),ae()});var se=YR();ba(`click`,Ir.body,()=>{P(C,!1)}),bs(se,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[Cs]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-1eytp8`);var ce=F(se),le=L(F(ce),2);let ue;var de=L(le,2);let E;var fe=L(de,2),pe=e=>{var t=qR();let n;R(()=>{q(t,`tabindex`,d()?-1:0),q(t,`aria-label`,s()?.[1]),q(t,`aria-hidden`,u()),q(t,`aria-disabled`,d()),q(t,`aria-readonly`,f()),q(t,`aria-invalid`,p()),q(t,`aria-valuemin`,r()),q(t,`aria-valuemax`,i()),q(t,`aria-valuenow`,o()?.[1]),n=ds(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),xa(`pointerdown`,t,e=>ie(e,1)),xa(`keydown`,t,e=>te(e,1)),U(e,t)};G(fe,e=>{z(h)&&e(pe)});var me=L(fe,2),he=e=>{var t=H();mo(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=JR();let i;var a=F(r,!0);D(r),R(()=>{i=ds(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),W(a,z(t))}),U(e,r)}),U(e,t)};G(me,e=>{l().length&&e(he)}),D(ce),Us(ce,e=>P(g,e),()=>z(g)),D(se),R(()=>{ue=ds(le,``,ue,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),q(de,`tabindex`,d()?-1:0),q(de,`aria-label`,z(h)?s()?.[0]:a()),q(de,`aria-hidden`,u()),q(de,`aria-disabled`,d()),q(de,`aria-readonly`,f()),q(de,`aria-invalid`,p()),q(de,`aria-valuemin`,r()),q(de,`aria-valuemax`,i()),q(de,`aria-valuenow`,z(h)?o()?.[0]:n()),E=ds(de,``,E,{"inset-inline-start":`${S[0]??``}px`})}),xa(`pointerdown`,ce,e=>ie(e)),xa(`pointerdown`,de,e=>ie(e,0)),xa(`keydown`,de,e=>te(e,0)),U(e,se),k()}var qR,JR,YR,XR,boe=o((()=>{Q(),Y(),Z(),sc(),qR=V(`<div role="slider" class="svelte-1eytp8"></div>`),JR=V(`<span role="none" class="label svelte-1eytp8"> </span>`),YR=V(`<div><div role="none" class="base svelte-1eytp8"><div role="none" class="base-bar svelte-1eytp8"></div> <div class="slider-bar svelte-1eytp8"></div> <div role="slider" class="svelte-1eytp8"></div> <!> <!></div></div>`),XR={hash:`svelte-1eytp8`,code:`.slider.svelte-1eytp8 {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-1eytp8:hover .base-bar:where(.svelte-1eytp8) {background-color:var(--sui-hover-background-color);}.slider.svelte-1eytp8:active .base-bar:where(.svelte-1eytp8) {background-color:var(--sui-active-background-color);}.base.svelte-1eytp8 {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-1eytp8 {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-1eytp8 {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-1eytp8 .slider-bar:where(.svelte-1eytp8) {background-color:var(--sui-error-border-color);}[role=slider].svelte-1eytp8 {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-1eytp8:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-1eytp8:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-1eytp8 [role=slider]:where(.svelte-1eytp8) {border-color:var(--sui-error-border-color);}.label.svelte-1eytp8 {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-1eytp8:dir(ltr) {transform:translateX(-50%);}.label.svelte-1eytp8:dir(rtl) {transform:translateX(50%);}`},Sa([`pointerdown`,`keydown`])}));function ZR(e,t){O(t,!0),K(e,$R);let n=J(t,`checked`,15),r=J(t,`label`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);var u=QR(),d=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};bs(u,()=>({...l,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),onclick:d}),void 0,void 0,void 0,`svelte-1y56w6a`);var f=L(F(u),2),p=e=>{var t=Pa();R(()=>W(t,r())),U(e,t)},m=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(f,e=>{r()?e(p):e(m,-1)}),D(u),U(e,u),k()}var QR,$R,xoe=o((()=>{Q(),Y(),QR=V(`<button><span role="none" class="svelte-1y56w6a"></span> <!></button>`),$R={hash:`svelte-1y56w6a`,code:`button.svelte-1y56w6a {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);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;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-1y56w6a:focus-visible {outline:0;}button.svelte-1y56w6a:focus-visible span:where(.svelte-1y56w6a) {outline-color:var(--sui-primary-accent-color-translucent);}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-1y56w6a span:where(.svelte-1y56w6a):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-1y56w6a {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-1y56w6a::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`}}));function ez(e,t){K(e,nz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=tz();bs(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1vz5acb`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var tz,nz,Soe=o((()=>{Q(),Y(),tz=V(`<div><!></div>`),nz={hash:`svelte-1vz5acb`,code:`.table-cell.svelte-1vz5acb {display:table-cell;}`}}));function Coe(e,t){K(e,iz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=rz();bs(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-1dh0ns3`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var rz,iz,woe=o((()=>{Q(),Y(),rz=V(`<div><!></div>`),iz={hash:`svelte-1dh0ns3`,code:`.table-row.svelte-1dh0ns3 {display:table-row;height:var(--sui-primary-row-height);}`}}));function Toe(e,t){K(e,oz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=az();bs(r,()=>({...n,role:`table`,class:`sui table ${t.class??``}`}),void 0,void 0,void 0,`svelte-xiqmwg`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var az,oz,Eoe=o((()=>{Q(),Y(),az=V(`<div><!></div>`),oz={hash:`svelte-xiqmwg`,code:`.table.svelte-xiqmwg {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-xiqmwg {border-collapse:collapse;}.table.data.svelte-xiqmwg :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function Doe(e,t){O(t,!0),K(e,cz);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`name`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`children`,`onChange`]),s=N(void 0),c=N(void 0),l=()=>{globalThis.requestAnimationFrame(()=>{let e=z(s)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;P(c,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else P(c,void 0)})};ac(()=>{let e=new ResizeObserver(()=>{l()});return e.observe(z(s)),()=>{e.disconnect()}});var u=sz(),d=()=>{l()},f=e=>{l(),t.onChange?.(e)};bs(u,()=>({...o,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"data-name":a()||void 0,onInitialized:d,onChange:f}),void 0,void 0,void 0,`svelte-1s3yims`);var p=F(u);Eo(F(p),()=>t.children??E),D(p);var m=L(p,2);D(u),Us(u,e=>P(s,e),()=>z(s)),Xo(u,zI),R(()=>{p.inert=r(),ds(m,z(c))}),U(e,u),k()}var sz,cz,Ooe=o((()=>{Q(),Y(),sc(),BI(),sz=V(`<div><div role="none" class="inner svelte-1s3yims"><!></div> <div role="none" class="indicator svelte-1s3yims"></div></div>`),cz={hash:`svelte-1s3yims`,code:`.tab-list.svelte-1s3yims {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-1s3yims {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-1s3yims button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-1s3yims .indicator:where(.svelte-1s3yims) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-1s3yims {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-1s3yims button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-1s3yims .indicator:where(.svelte-1s3yims) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-1s3yims button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-1s3yims {display:contents;}.indicator.svelte-1s3yims {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`}}));function koe(e,t){K(e,uz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=lz();bs(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-11uxko2`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var lz,uz,Aoe=o((()=>{Q(),Y(),lz=V(`<div><!></div>`),uz={hash:`svelte-11uxko2`,code:`.tab-panel.svelte-11uxko2 {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-11uxko2, .tab-panel.svelte-11uxko2:not([aria-hidden]) {display:none;}`}}));function joe(e,t){let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`selected`,3,!1),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`]);pI(e,Zs(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},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();Eo(I(n),()=>t.endIcon??E),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Moe=o((()=>{Q(),Y(),bI()}));function dz(e,t){O(t,!0),K(e,pz);let n=J(t,`show`,15,!1),r=J(t,`id`,3,void 0),i=J(t,`duration`,3,5e3),a=J(t,`position`,7,`auto`),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);ac(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(P(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),ac(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-${document.dir===`rtl`?`left`:`right`}`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),ei(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),ei(()=>{r(),n(),i(),B(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=fz(),f=I(d);Us(f,e=>P(s,e),()=>z(s));var p=L(f,2);bs(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-rf1u10`),Eo(F(p),()=>t.children??E),D(p),Us(p,e=>P(l,e),()=>z(l)),U(e,d),k()}var fz,pz,mz=o((()=>{Q(),Y(),sc(),fz=V(`<div role="none" class="sui toast-base svelte-rf1u10"></div> <div><!></div>`,1),pz={hash:`svelte-rf1u10`,code:`.toast-base.svelte-rf1u10 {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-rf1u10 {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-rf1u10 {display:block;opacity:0;}.toast.top-left.svelte-rf1u10 {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-rf1u10 {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-rf1u10:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-rf1u10:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-rf1u10 {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-rf1u10 {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-rf1u10 {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-rf1u10:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-rf1u10:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-rf1u10 {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})),hz=s(((e,t)=>{
644
+ `,SP=async(e,t)=>{if(!e.length)return{};let{isSelfHosted:n=!1}=sP,r=n?20:100,i=[...e],a=[];for(;;){let e=await sM(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]]))},CP=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)},wP=async e=>{Vy.set(0);let t=window.setInterval(()=>{Vy.update((e=0)=>e+1)},e.length/10),n=await SP(e.filter(({type:e})=>e!==`asset`).map(({path:e})=>e),xP);return window.clearInterval(t),Vy.set(void 0),CP({fetchingFiles:e,blobs:n})},TP=async()=>{await lP(),await QM({repository:sP,fetchDefaultBranchName:dP,fetchLastCommit:mP,fetchFileList:bP,fetchFileContents:wP})},EP=async e=>{let{owner:t,repo:n,branch:r=``}=sP,{path:i}=e;return oM(`/projects/${encodeURIComponent(`${t}/${n}`)}/repository/files/${encodeURIComponent(i)}/raw?lfs=true&ref=${encodeURIComponent(r)}`,{responseType:`blob`})}})),DP,OP,kP,uie=o((()=>{iS(),DP=`https://status.gitlab.com/`,OP=`https://status-api.hostedstatus.com/1.0/status/5b36dc6502d06804c08349f7`,kP=async()=>{try{let{result:{status_overall:{status_code:e}}}=await rS(OP);if(e===100)return`none`;if([200,300,400].includes(e))return`minor`;if([500,600].includes(e))return`major`}catch{}return`unknown`}})),AP,jP,die=o((()=>{Ep(),sp(),cie(),vP(),nP(),lie(),fP(),uie(),cM(),kM(),uF(),uN(),AP=()=>{let{backend:e}=A(aF)??{};if(e?.name!==`gitlab`)return;let{repo:t,branch:n,base_url:r=eP,auth_endpoint:i=tP,app_id:a=``,api_root:o=$N,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=`${Sp(r)}/${Sp(i)}`,p=OM(o,d);return Object.assign(sP,{service:ZN,label:QN,owner:l,repo:u,branch:n,repoURL:p,tokenPageURL:iP(p),databaseName:`${ZN}:${d}`,isSelfHosted:o!==$N},cP(p,n)),Object.assign(rM,{clientId:a,authScope:`api`,authURL:f,tokenURL:f.replace(`/authorize`,`/token`),authScheme:`Bearer`,restBaseURL:Sp(o),graphqlBaseURL:Sp(s),includeCredentials:c}),Object.assign(iM,{fullPath:d,branch:n}),A(lN).devModeEnabled&&console.info(`repositoryInfo`,sP),sP},jP={isGit:!0,name:ZN,label:QN,repository:sP,statusDashboardURL:DP,checkStatus:kP,init:AP,signIn:aP,signOut:oP,fetchFiles:TP,fetchBlob:EP,commitChanges:hP,fetchFileCommits:_P}})),MP,NP,PP,FP,IP,LP,RP,zP=o((()=>{sp(),qre(),Jre(),$re(),oie(),die(),MP={github:XN,gitlab:jP,gitea:fN,local:Ij,"test-repo":Kj},NP={azure:{label:`Azure DevOps`},bitbucket:{label:`Bitbucket`},"git-gateway":{label:`Git Gateway`,deprecated:!0}},PP=Object.keys(MP).filter(e=>e!==`local`),FP=Object.fromEntries(Object.entries(MP).filter(([,e])=>e.isGit)),IP=ln(),LP=un([IP],([e],t,n)=>{n(t=>{let n=e?MP[e]:void 0;return n&&n!==t&&n.init(),n})}),RP=ln(!0)})),BP,VP,HP,UP,WP,GP=o((()=>{Z(),_b(),BP=({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=Ph.current,m=d.length?`${hb(p).format(d)}: `:``,h=X(`config.${e}.${t}`,{values:n});f.add(`${m}${h}${r?` ${X(`config.${r}`)}`:``}`)},VP=({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)&&BP({type:e,strKey:s,values:{prop:i,newProp:a},extraStrKey:`compatibility_link`,context:n,collectors:r})})},HP=/^[^\s.*:<>]+$/,UP=e=>HP.test(e),WP=({name:e,index:t,nameCounts:n,strKeyBase:r,context:i,collectors:a})=>{if(!e||typeof e!=`string`){let e=String(t+1);return BP({strKey:`missing_${r}`,context:i,values:{count:e},collectors:a}),!1}return UP(e)?n[e]===1?(BP({strKey:`duplicate_${r}`,context:i,values:{name:e},collectors:a}),!1):(n[e]=(n[e]??0)+1,!0):(BP({strKey:`invalid_${r}`,context:i,values:{name:e},collectors:a}),!1)}})),KP,fie,pie=o((()=>{Z(),f(),zP(),ob(),GP(),KP=[{type:`warning`,prop:`use_graphql`,strKey:`unsupported_ignored_option`},{type:`warning`,prop:`open_authoring`,strKey:`open_authoring_unsupported`}],fie=(e,t)=>{let{backend:n}=e,{errors:r,warnings:i}=t;if(!u(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(!PP.includes(a)){let e=NP[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 FP){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&&ab(`automatic_deployments`),VP({UNSUPPORTED_OPTIONS:KP,config:n,context:{cmsConfig:e},collectors:t})}}})),mie,qP,JP,hie,YP,gie=o((()=>{mie=[`code`,`markdown`,`richtext`,`text`],qP=[`md`,`markdown`,`mdx`],JP=[`astro`,`njk`],hie=[...qP,...JP],YP=(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`&&mie.includes(t))return!1}let i=e===`yml`?`yaml`:e,a=t===`yml`?`yaml`:t;if(qP.includes(i))return!r;if(a.endsWith(`-frontmatter`)){let e=a.replace(`-frontmatter`,``);return JP.includes(i)?!1:i!==e}if(a===`frontmatter`)return!hie.includes(i);let o=[`yaml`,`toml`,`json`];return o.includes(a)?o.includes(i)&&i!==a:!1}})),_ie,vie,yie=o((()=>{GP(),_ie=[{prop:`dateFormat`,newProp:`date_format`},{prop:`timeFormat`,newProp:`time_format`},{prop:`pickerUtc`,newProp:`picker_utc`}],vie=e=>{VP({...e,UNSUPPORTED_OPTIONS:_ie})}})),bie,XP,xie=o((()=>{GP(),bie=[{prop:`allow_multiple`,newProp:`multiple`,strKey:`allow_multiple`}],XP=e=>{let{config:t,context:n,collectors:r}=e,{media_folder:i}=t;i!==void 0&&r.mediaFields.add({fieldConfig:t,context:n}),VP({...e,UNSUPPORTED_OPTIONS:bie})}})),Sie,Cie,wie=o((()=>{eF(),GP(),Sie=(e,t,n)=>e===`object`?!0:(BP({strKey:`invalid_list_variable_type`,context:t,values:{widget:e},collectors:n}),!1),Cie=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){BP({strKey:`invalid_list_field`,context:n,collectors:r});return}i&&QP({config:i,context:{...n,typedKeyPath:`${s}.*`},collectors:r}),a&&$P(a,{...n,typedKeyPath:`${s}.*`},r),o?.forEach(({name:e,widget:t=`object`,fields:i},a)=>{let o={...n,typedKeyPath:`${s}.*<${e}>`};WP({...c,name:e,index:a,context:o})&&Sie(t,o,r)&&i&&$P(i,o,r)})}})),Tie,Eie,Die=o((()=>{GP(),Tie=[{prop:`valueType`,newProp:`value_type`}],Eie=e=>{VP({...e,UNSUPPORTED_OPTIONS:Tie})}})),Oie,kie=o((()=>{eF(),GP(),Oie=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){BP({strKey:`invalid_object_field`,context:n,collectors:r});return}if(!i&&!a){BP({strKey:`object_field_missing_fields`,context:n,collectors:r});return}i&&$P(i,n,r),a?.forEach(({name:e,fields:t},i)=>{let a={...n,typedKeyPath:`${o}<${e}>`};WP({...s,name:e,index:i,context:a})&&t&&$P(t,a,r)})}})),Aie,jie,Mie=o((()=>{GP(),Aie=[{prop:`displayFields`,newProp:`display_fields`},{prop:`searchFields`,newProp:`search_fields`},{prop:`valueField`,newProp:`value_field`},{type:`warning`,prop:`options_length`,strKey:`unsupported_ignored_option`}],jie=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||BP({strKey:`relation_field_invalid_collection_file`,context:n,collectors:r,values:{file:o}})):e&&BP({strKey:`relation_field_missing_file_name`,context:n,collectors:r,values:{collection:a}})}else BP({strKey:`relation_field_invalid_collection`,context:n,collectors:r,values:{collection:a}});VP({...e,UNSUPPORTED_OPTIONS:Aie}),r.relationFields.add({fieldConfig:i,context:n})}})),Nie,ZP,Pie=o((()=>{GP(),Nie=[{prop:`editorComponents`,newProp:`editor_components`}],ZP=e=>{VP({...e,UNSUPPORTED_OPTIONS:Nie})}})),Fie,QP,$P,eF=o((()=>{yie(),xie(),wie(),Die(),kie(),Mie(),Pie(),GP(),Fie={datetime:vie,file:XP,image:XP,list:Cie,markdown:ZP,number:Eie,object:Oie,relation:jie,richtext:ZP},QP=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}};Fie[i]?.(o),i===`date`&&BP({...o,strKey:`date_field_type`})},$P=(e,t,n)=>{let r={nameCounts:{},strKeyBase:`field_name`,context:t,collectors:n};e?.forEach((e,i)=>{let{name:a}=e;WP({...r,name:a,index:i})&&QP({config:e,context:t,collectors:n})})}})),Iie,tF,Lie=o((()=>{zp(),gie(),eF(),GP(),Iie=(e,t)=>{let{collection:n,collectionFile:r}=e,{file:i,format:a=n.format,fields:o}=r,{extension:s}=jp(i);YP(s,a,o)&&BP({strKey:`file_format_mismatch`,context:e,values:{extension:s,format:a},collectors:t}),o?.length||BP({strKey:`collection_file_no_fields`,context:e,collectors:t}),$P(o,e,t)},tF=(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};WP({...a,name:o,index:i,context:s})&&Iie(s,t)})}})),Rie,zie,Bie,Vie,Hie=o((()=>{Z(),ob(),Lie(),gie(),eF(),GP(),Rie=[{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;YP(i,a)&&BP({strKey:`file_format_mismatch`,values:{extension:i,format:a},context:e,collectors:t}),l!==void 0&&ab(`slug_length`),VP({UNSUPPORTED_OPTIONS:Rie,config:r,context:e,collectors:t}),o?.length||BP({strKey:`collection_no_fields`,context:e,collectors:t}),$P(o,e,t),s&&$P(s===!0?o:s.fields??o,{cmsConfig:n,collection:r,isIndexFile:!0},t),c?.includes(`/`)&&BP({strKey:`invalid_slug_slash`,values:{slug:c},context:e,collectors:t})},Bie=({cmsConfig:e,collection:t},n)=>{let r=`divider`in t,i=`files`in t,a=`folder`in t;if(!r&&!i&&!a){BP({strKey:`invalid_collection_no_options`,context:{cmsConfig:e,collection:t},collectors:n});return}if(r&&i||r&&a||i&&a){BP({strKey:`invalid_collection_multiple_options`,context:{cmsConfig:e,collection:t},collectors:n});return}i?tF({cmsConfig:e,collection:t},n):a&&zie({cmsConfig:e,collection:t},n)},Vie=(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};WP({...a,name:i,index:r,context:o})&&Bie(o,t)}),Array.isArray(r)&&tF({cmsConfig:e,collection:{name:`_singletons`,label:X(`singletons`),label_singular:X(`singleton`),files:r}},t)}})),Uie,Wie=o((()=>{Z(),Sw(),Uie=(e,t)=>{let{media_folder:n,public_folder:r,media_library:i,media_libraries:a}=e,{errors:o}=t;n===void 0?!xw.includes(i?.name??``)&&!Object.keys(a||{}).some(e=>xw.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`)))}})),Gie,Kie,qie=o((()=>{pie(),Hie(),Wie(),GP(),Gie=[{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`}],Kie=(e,t)=>{fie(e,t),Uie(e,t),Vie(e,t),VP({UNSUPPORTED_OPTIONS:Gie,config:e,context:{cmsConfig:e},collectors:t})}})),Jie,nF,Yie,rF,iF,aF,oF,sF,cF,lF,Xie,uF=o((()=>{Z(),yp(),f(),Ep(),Jie=l(Lh(),1),sp(),zy(),Yp(),rne(),ine(),xne(),qie(),Jy(),uN(),{DEV:nF,VITE_SITE_URL:Yie}={DEV:!1},rF=nF?Yie||`http://localhost:5174`:void 0,iF={},aF=ln(),oF=ln(),sF=ln([]),cF=un([aF,sF],([e,t])=>!!e||!!t.length),lF={errors:new Set,warnings:new Set,mediaFields:new Set,relationFields:new Set},Xie=async e=>{aF.set(void 0),sF.set([]),Object.assign(lF,{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(!u(e))throw Error(X(`config.error.parse_failed`));t=e,t.load_config_file!==!1&&(t=(0,Jie.default)(await uS({manualInit:!0}),t))}else t=await uS();if(Object.assign(iF,t),Kie(t,lF),lF.errors.size)throw lF.errors.forEach(e=>{console.error(e)}),Error(`Errors found in configuration`);lF.warnings.size&&lF.warnings.forEach(e=>{console.warn(e)});let n=structuredClone(t);n._siteURL=n.site_url?.trim()||(nF?rF:window.location.origin),n._baseURL=wp(n._siteURL)?new URL(n._siteURL).origin:``,n.collections?.forEach(e=>{`folder`in e&&(e.folder===`.`||e.folder===`/`)&&(e.folder=``)}),aF.set(n),oF.set(await vp(Ly(n)))}catch(e){sF.set(lF.errors.size?[...lF.errors]:[e.name===`Error`?e.message:X(`config.error.unexpected`)]),console.error(e,e.cause)}},aF.subscribe(e=>{if(A(lN).devModeEnabled&&(console.info(`cmsConfig`,e),console.info(`collectors`,lF)),!e)return;let t=mx(e),n=sx(e,[...lF.mediaFields]);Hy.set(t),Bp.set(n),A(lN).devModeEnabled&&(console.info(`allEntryFolders`,t),console.info(`allAssetFolders`,n))})})),dF,fF=o((()=>{sp(),uF(),dF=({libraryName:e=`default`,fieldConfig:t}={})=>{let n=A(aF),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)}})),pF,Zie,mF=o((()=>{f(),fF(),tT(),mT(),pF=({fieldConfig:e}={})=>{let t=dF({fieldConfig:e}),{max_file_size:n,multiple:r,slugify_filename:i,transformations:a}=typeof t==`boolean`?{}:t?.config??{};return{enabled:t!==!1,config:{max_file_size:typeof n==`number`&&Number.isInteger(n)?n:1/0,multiple:typeof r==`boolean`?r:!1,slugify_filename:typeof i==`boolean`?i:!1,transformations:u(a)?a:void 0}}},Zie=async(e,t)=>{let[n,r]=e.type.split(`/`);if(n===`image`&&r!==`svg+xml`){let n;if(qw.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&&eT.includes(t)?t:`webp`,s=await fT(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}`?Yw.test(e.name)?e.name.replace(Yw,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 pT(e)],e.name,{type:e.type}):e}})),hF,gF=o((()=>{mF(),lw(),hF=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=iw(t,{slugificationEnabled:!0});e=new File([e],i,{type:n,lastModified:r})}let i=e;return n&&(e=await Zie(e,n)),{file:e,originalFile:e===i?void 0:i,oversized:e.size>r}}})),_F,vF,yF,bF,xF,Qie,SF,CF,wF,TF,EF,$ie,DF,eae,tae,OF,kF,AF,nae,jF,MF=o((()=>{zp(),Ep(),fc(),sp(),Yp(),gF(),JO(),$b(),lb(),nb(),ik(),mF(),lw(),_F=ln([]),vF={source:void 0,map:new Map},yF=()=>{let e=A(_F);return e!==vF.source&&(vF.source=e,vF.map=new Map(e.map(e=>[e.path,e]))),vF.map},bF=e=>yF().get(e),xF=ln([]),Qie=un(xF,e=>new Set(e.map(e=>e.path))),SF=ln(),CF=ln(),wF=ln({folder:void 0,files:[]}),TF=ln(),EF=ln(),$ie=un([wF],([e],t,n)=>{t({processing:!1,undersizedFiles:[],oversizedFiles:[],transformedFileMap:new WeakMap});let r=e.files,{config:i}=pF();(async()=>{r.length&&i.transformations&&n(e=>({...e,processing:!0}));let e=await Promise.all(r.map(e=>hF(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]))}))})()}),DF=({path:e,entry:t,collection:n,file:r,typedKeyPath:i})=>{let{locales:a}=t,{_i18n:{defaultLocale:o}}=r??n,s=i?Wp({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=ow(aw([d,c,c&&f.startsWith(`${c}/`)?f.slice(c.length+1):f]));return yF().get(p)},eae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{if(!t){let t=[n&&i?Wp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,n?Wp({collectionName:n,fileName:r}):void 0,n?Wp({collectionName:n}):void 0,A(Vp)].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=yF().get(aw([t.internalPath,t.internalSubPath??``,r]));return i&&(a=i),!!i}),a??yF().get(e)}return ek(t).flatMap(n=>{let r=$y(n,t),a={path:e,entry:t,collection:n,typedKeyPath:i};return r.length?r.map(e=>DF({...a,file:e})):DF({...a})}).filter(Boolean)[0]??yF().get(e)},tae=({path:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=yF().get(Sp(e));if(a)return a;let{dirname:o=``,basename:s}=jp(e),c;return[i?Wp({collectionName:n,fileName:r,typedKeyPath:i}):void 0,Wp({collectionName:n,fileName:r}),Wp({collectionName:n}),A(Vp),A(Bp).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?Xb(r):t?ek(t)?.[0]:void 0;if(!(t&&e))return!1;let{content:n,path:a}=t.locales[e._i18n.defaultLocale];i=qO(i,{type:`media_folder`,collection:e,content:uc(n),currentSlug:t.slug,entryFilePath:a,isIndexFile:cb(e,t)})}n&&i&&o&&(n===`/`?i=`${i}${o}`:o.startsWith(`${n}/`)&&(i=o.replace(n,i)));let a=aw([i,s]),l=yF().get(a);return l&&(c=l),!!l}),c},OF=e=>!/^[/@]/.test(e),kF=({value:e,entry:t,collectionName:n,fileName:r,typedKeyPath:i})=>{let a=ew(e.split(`#`)[0]);return OF(a)?eae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i}):tae({path:a,entry:t,collectionName:n,fileName:r,typedKeyPath:i})},AF=({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,nae=e=>A(_F).filter(t=>AF(t,e)),jF=e=>A(_F).filter(t=>jp(t.path).dirname===e),Hp.subscribe(()=>{SF.set(void 0)})})),NF,PF,FF=o((()=>{zp(),Ep(),sp(),MF(),Yp(),kT(),$b(),lb(),DA(),NF=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(`^${bp(e).replace(`\\*`,`.+`)}$`);return s.filter(e=>t.test(e))}return e});for(let e of c){let r=o[e]?await OT({value:o[e],entry:t,collectionName:n,typedKeyPath:e,thumbnail:!0}):void 0;if(r)return r}},PF=({entry:e,collectionName:t,fileName:n,relative:r=!1})=>{let{locales:i}=e,a=Xb(t);if(!a)return[];let o=cb(a,e),s=new Set,c=Object.values(i).flatMap(({content:i})=>Object.entries(i??{}).map(([i,a])=>{if(typeof a==`string`&&(!r||OF(a))){let s=bA({collectionName:t,keyPath:i,isIndexFile:o})?.widget??`string`;if(s!==`image`&&s!==`file`)return;let c=kF({value:a,entry:e,collectionName:t,fileName:n});if(c&&qp(c.path).some(e=>e.collectionName===t&&e.fileName===n&&(r?e.entryRelative:!0)))return c}})).filter(e=>!!e&&!s.has(e)&&(s.add(e),!0));if(r&&Wp({collectionName:t,fileName:n})?.entryRelative){let t=jp(Object.values(e.locales)[0].path).dirname;if(t!==void 0){let e=new Set(c.map(({path:e})=>e));A(_F).forEach(n=>{let r=jp(n.path).dirname;r!==void 0&&(r===t||r.startsWith(`${t}/`))&&!e.has(n.path)&&(c.push(n),e.add(n.path))})}}return c}})),IF,rae,LF,iae,RF,zF=o((()=>{f(),fc(),op(),sp(),FF(),tM(),IF=[`preSave`,`postSave`,`prePublish`,`postPublish`,`preUnpublish`,`postUnpublish`],rae=[`preSave`,`prePublish`],LF=new Set,iae=({content:e,otherLocales:t,locales:n,slug:r,path:i,isNew:a,collectionName:o,associatedAssets:s})=>xd({data:dc(e),i18n:Object.fromEntries(t.map(e=>[e,{data:dc(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:``}),RF=async({type:e,draft:t,savingEntry:n})=>{let{login:r=``,name:i=``}=A(eM),{collection:a,collectionFile:o,isNew:s,collectionName:c,fileName:l}=t,{_i18n:{defaultLocale:d}}=o??a,{slug:f,locales:p}=n,m=Object.keys(p).filter(e=>e!==d),{content:h,path:g}=p[d],_=PF({entry:n,collectionName:c,fileName:l});for(let t of LF){if(t.name!==e)continue;let n=await t.handler({author:{login:r,name:i},entry:iae({content:h,otherLocales:m,locales:p,slug:f,path:g,isNew:s,collectionName:c,associatedAssets:_})});if(rae.includes(e)&&eu(n)){let e=n.toJS();u(e.data)&&u(e.i18n)?(p[d].content=uc(e.data),m.forEach(t=>{u(e.i18n[t]?.data)&&(p[t].content=uc(e.i18n[t].data))})):p[d].content=uc(e)}}}})),BF,VF,HF,UF,WF,GF,KF,qF,aae,JF=o((()=>{sp(),BF=ln(!1),VF=ln(!1),HF=ln({show:!1,multiple:!1}),UF=ln({id:void 0,show:!1,status:`success`,message:void 0,count:1,sourceLanguage:void 0}),WF=ln(null),GF=ln(null),KF=ln(),qF=new Set,aae=new Map})),oae=o((()=>{})),Q=o((()=>{oae(),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`)})),sae,cae=o((()=>{sae=`{"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"}}`})),lae,uae=o((()=>{lae=`{"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":"プレーンテキスト"}}`})),dae,fae=o((()=>{cae(),uae(),Z(),zy(),dae=({fallbackLocale:e=`en`,initialLocale:t=`en`}={})=>{Object.entries(Object.assign({"../locales/en.yaml":sae,"../locales/ja.yaml":lae})).forEach(([e,t])=>{Ah(e.match(/.+\/(?<locale>.+?)\.yaml$/)?.groups?.locale,{_sui:Iy(t)})}),Ih({fallbackLocale:e,initialLocale:t})}}));function YF(e,t){K(e,mae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`name`]);var r=pae();bs(r,()=>({...n,class:`sui icon material-symbols-outlined ${t.class??``}`,"aria-hidden":!(`aria-label`in n)}),void 0,void 0,void 0,`svelte-1x8rbyf`);var i=F(r,!0);D(r),R(()=>W(i,t.name)),U(e,r)}var pae,mae,XF=o((()=>{Q(),Y(),pae=V(`<span> </span>`),mae={hash:`svelte-1x8rbyf`,code:`.icon.small-arrow.svelte-1x8rbyf {overflow:hidden;width:12px;text-indent:-6px;}`}}));function ZF(e,t){K(e,gae);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`status`,`children`,`icon`]);var r=hae();bs(r,()=>({...n,role:`alert`,class:`sui alert ${t.status??``}`}),void 0,void 0,void 0,`svelte-jibupz`);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);YF(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 hae,gae,QF=o((()=>{Q(),Y(),XF(),hae=V(`<div><!> <!></div>`),gae={hash:`svelte-jibupz`,code:`.alert.svelte-jibupz {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-jibupz {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.alert.warning.svelte-jibupz {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.alert.info.svelte-jibupz {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.alert.success.svelte-jibupz {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}`}})),_ae,$F,vae,yae,bae,eI,tI,nI=o((()=>{$F=()=>(_ae??=navigator.userAgentData?.platform===`macOS`||navigator.platform.startsWith(`Mac`),_ae),vae=[`Ctrl`,`Meta`,`Alt`,`Shift`],yae=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}`)]),bae=(e,t)=>/^\d$/.test(e)?t.code===`Digit${e}`:yae.has(e)?t.code===e:e.toLowerCase()===t.key.toLowerCase(),eI=(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,$F()?`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=>!vae.includes(e)).every(t=>bae(t,e))})},tI=(e=``)=>{let t=e?e.replace(/\bAccel\b/g,$F()?`Meta`:`Ctrl`):void 0;return t?e=>{let n=n=>{let{disabled:r}=e;if(!e.getClientRects().length||!eI(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 rI(e,t){K(e,Sae);let n=J(t,`lines`,3,1),r=J(t,`children`,3,void 0);var i=xae();Eo(F(i),()=>r()??E),D(i),R(()=>ds(i,`-webkit-line-clamp: ${n()??``}; line-clamp: ${n()??``};`)),U(e,i)}var xae,Sae,iI=o((()=>{Q(),Y(),xae=V(`<span role="none" class="sui truncated-text svelte-cux2q2"><!></span>`),Sae={hash:`svelte-cux2q2`,code:`.truncated-text.svelte-cux2q2 {display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;overflow-wrap:anywhere;}`}})),aI,oI,sI=o((()=>{yp(),aI=(e=`e`,t=7)=>[e,gp(t)].join(`-`),oI=e=>{if(e)return new Promise(t=>{let n=new IntersectionObserver(([e])=>{e.isIntersecting&&(n.disconnect(),t(void 0))});globalThis.requestAnimationFrame(()=>{n.observe(e)})})}})),Cae,wae,Tae=o((()=>{Y(),sI(),tS(),gh(),Cae=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(Sr({inset:void 0,zIndex:void 0,minWidth:void 0,maxWidth:void 0,height:void 0}));get style(){return z(this.#t)}set style(e){P(this.#t,e,!0)}observer=new IntersectionObserver(e=>{e.forEach(({intersectionRect:e,rootBounds:t})=>{if(!e||!t)return;let{scrollHeight:n,scrollWidth:r}=this.popupElement.querySelector(`.content`),i=e.top-8,a=t.height-e.bottom-8,{position:o}=this,s;document.dir===`rtl`&&(o.endsWith(`-left`)?o=o.replace(`-left`,`-right`):o.endsWith(`-right`)&&(o=o.replace(`-right`,`-left`)),o.startsWith(`left-`)?o=o.replace(`left-`,`right-`):o.startsWith(`right-`)&&(o=o.replace(`right-`,`left-`))),o.startsWith(`bottom-`)&&n>a&&(i>a?(o=o.replace(`bottom-`,`top-`),s=i):s=a),o.endsWith(`-left`)&&e.left+r>t.width-8&&(o=o.replace(`-left`,`-right`)),o.endsWith(`-right`)&&e.right-r<8&&(o=o.replace(`-right`,`-left`));let c={inset:[o.startsWith(`bottom-`)?`${Math.round(e.bottom)}px`:o.endsWith(`-top`)?`${Math.round(e.top)}px`:`auto`,o.startsWith(`left-`)?`${Math.round(t.width-e.left)}px`:o.endsWith(`-right`)?`${Math.round(t.width-e.right)}px`:`auto`,o.startsWith(`top-`)?`${Math.round(t.height-e.top)}px`:o.endsWith(`-bottom`)?`${Math.round(t.height-e.bottom)}px`:`auto`,o.startsWith(`right-`)?`${Math.round(e.right)}px`:o.endsWith(`-left`)?`${Math.round(e.left)}px`:`auto`].join(` `),zIndex:1e3,minWidth:`${Math.round(e.width)}px`,maxWidth:o.endsWith(`-left`)?`${Math.round(t.width-e.left-8)}px`:`${Math.round(e.right-8)}px`,height:s?`${Math.round(s)}px`:`auto`};(c.inset!==this.style.inset||c.zIndex!==this.style.zIndex||c.minWidth!==this.style.minWidth||c.maxWidth!==this.style.maxWidth||c.height!==this.style.height)&&(this.style=c)})});constructor(e,t,n,r){this.anchorElement=e,this.popupElement=t,this.position=n,this.positionBaseElement=r??e,this.id=aI(`popup`),this.anchorElement.setAttribute(`aria-controls`,this.id),this.popupElement.setAttribute(`id`,this.id),this.anchorElement.setAttribute(`aria-expanded`,`false`),ya(e,`click`,()=>{!this.isDisabled&&!this.isReadOnly&&(this.open=!this.open)}),ya(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)}),ya(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),ya(this.popupElement,`click`,e=>{e.stopPropagation();let t=e.target;this.open&&(t===this.popupElement||t.matches(`[role^="menuitem"], [role="option"]`))&&(this.open=!1)}),ya(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 eS(50),this.popupElement.hidden=!1}destroy(){this.intersectionObserver?.disconnect(),this.resizeObserver?.disconnect(),this.observer?.disconnect(),this._rafId&&cancelAnimationFrame(this._rafId)}},wae=(...e)=>new Cae(...e)}));function Eae(e,t){var n=H();Eo(I(n),()=>t.children??E),U(e,n)}var Dae=o((()=>{Q(),Y()}));function Oae(e,t){O(t,!0),K(e,Aae);let n=e=>{var n=kae(),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))};bs(n,()=>({...u,inert:!z(p),role:a(),class:`sui modal ${t.class??``}`,onclick:d,oncancel:f,[Cs]:{backdrop:o(),open:z(p),active:z(m)}}),void 0,void 0,void 0,`svelte-1vazkqg`);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=Xs(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 eS(0),e===g&&(P(p,!0),await _(),e===g&&P(m,!0))},y=async()=>{if(!i()||!i().open)return;g+=1;let e=g,n=z(p),{returnValue:r}=i();t.onClosing?.(new CustomEvent(`Closing`)),document.body.inert=!0,i().close(),document.body.inert=!1,P(m,!1),P(p,!1),n&&await _(),e===g&&(P(h,!1),r===`ok`&&t.onOk?.(new CustomEvent(`Ok`)),r===`cancel`&&t.onCancel?.(new CustomEvent(`Cancel`)),t.onClose?.(new CustomEvent(`Close`,{detail:{returnValue:r}})),i(i().returnValue=``,!0))};return ei(()=>{r()?v():y()}),ac(()=>{let e=Ra(Eae,{target:document.querySelector(`.sui.app-shell`)??document.body,props:{children:n}});return()=>{i()?.close(),Ba(e)}}),k({focus:d,close:f})}var kae,Aae,cI=o((()=>{Q(),Y(),tS(),sc(),Dae(),kae=V(`<dialog><!> <!></dialog>`),Aae={hash:`svelte-1vazkqg`,code:`dialog.svelte-1vazkqg {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-1vazkqg::backdrop {background:transparent;}dialog.backdrop.svelte-1vazkqg {background-color:var(--sui-popup-backdrop-color);}dialog.open.svelte-1vazkqg {transition-duration:50ms;opacity:1;}dialog.svelte-1vazkqg:not(.open) {transition-duration:400ms;opacity:0;}dialog[hidden].svelte-1vazkqg {transition-duration:1ms !important;}dialog.svelte-1vazkqg:not(.active) {pointer-events:none !important;}dialog.svelte-1vazkqg:not(.active) * {transition-duration:0ms !important;pointer-events:none !important;}`}}));function lI(e,t){O(t,!0),K(e,dI);let n=e=>{var n=uI();let o,s;Eo(F(n),()=>t.children??E),D(n),Us(n,e=>a(e),()=>a()),R(()=>{q(n,`hidden`,!r()),o=cs(n,1,`content ${t.class??``} ${z(h)??``}`,`svelte-11qfuy7`,o,{touch:z(y)}),s=ds(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`})}),ba(`mouseenter`,n,()=>{i(!0),l()&&window.clearTimeout(_)}),ba(`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=Xs(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,wae(t.anchor,z(p),s(),c()),!0),P(h,t.anchor?.getAttribute(`aria-haspopup`)??void 0,!0),P(f,!0)};ei(()=>{z(g)&&r(z(g).open)}),ei(()=>{l()&&!z(p)&&a()&&(P(p,l()),z(p).append(a()))}),ei(()=>{t.anchor&&z(p)&&!z(f)&&v()}),ei(()=>{l()&&r()&&z(g)?.checkPosition()});let y=M(()=>u()&&z(m));ac(()=>(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));Oae(e,Zs(()=>d,{role:`none`,class:`popup`,get showBackdrop(){return z(i)},lightDismiss:!0,keepContent:!0,onOpen:async e=>{if(t.onOpen?.(e),await eS(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 uI,dI,fI=o((()=>{Q(),Y(),tS(),sc(),Tae(),cI(),uI=V(`<div role="none"><!></div>`),dI={hash:`svelte-11qfuy7`,code:`.content.svelte-11qfuy7 {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-11qfuy7 {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-11qfuy7 .sui.menu {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.listbox.svelte-11qfuy7 {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-11qfuy7 .sui.listbox {border-width:0;border-radius:0;padding:0;background-color:transparent;}.content.touch.svelte-11qfuy7 {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-11qfuy7 {transform:scale(100%) !important;}dialog:not(.open) .content.touch.svelte-11qfuy7 {transform:scale(90%);}.content.touch.combobox.svelte-11qfuy7 .sui.listbox {gap:4px;padding:8px 4px !important;}dialog.open .content.svelte-11qfuy7 {transition-duration:50ms;opacity:1;transform:translateY(2px);}dialog:not(.open) .content.svelte-11qfuy7 {transition-duration:300ms;opacity:0;transform:translateY(-8px);}`}}));function pI(e,t){O(t,!0),K(e,yI);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=Xs(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=vI(),T=I(w);bs(T,()=>({...C,class:`sui button ${g()??``} ${_()??``} ${r()??``}`,type:i(),name:o(),value:s(),hidden:l(),disabled:u(),role:a(),"aria-hidden":l(),"aria-disabled":u(),"aria-readonly":d(),"aria-pressed":f(),"data-type":c(),"data-name":o(),"data-label":m(),"data-value":s(),[Cs]:{iconic:v(),pill:y(),flex:b()}}),void 0,void 0,void 0,`svelte-1y79ujd`);var ee=F(T);Eo(ee,()=>t.startIcon??E);var te=L(ee,2),ne=e=>{var n=H(),r=I(n),i=e=>{var t=mI();rI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Pa();R(()=>W(n,m())),U(e,n)},$$slots:{default:!0}}),D(t),U(e,t)},a=e=>{var n=hI();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=_I(),r=I(n),i=e=>{var t=gI();rI(F(t),{get lines(){return h()},children:(e,t)=>{gt();var n=Pa();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(T),Us(T,e=>n(e),()=>n()),Xo(T,()=>tI(p()));var ie=L(T,2),ae=e=>{lI(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 mI,hI,gI,_I,vI,yI,bI=o((()=>{Q(),Y(),nI(),iI(),fI(),mI=V(`<span role="none" class="label svelte-1y79ujd"><!></span>`),hI=V(`<span role="none" class="label svelte-1y79ujd"><!></span>`),gI=V(`<span role="none" class="label svelte-1y79ujd"><!></span>`),_I=V(`<!> <!>`,1),vI=V(`<button><!> <!> <!></button> <!>`,1),yI={hash:`svelte-1y79ujd`,code:`button.svelte-1y79ujd {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-1y79ujd {display:none !important;}button.svelte-1y79ujd:not(:disabled):focus-visible {z-index:1;}button.svelte-1y79ujd:is(.primary:where(.svelte-1y79ujd), .secondary:where(.svelte-1y79ujd), .tertiary:where(.svelte-1y79ujd), .ghost:where(.svelte-1y79ujd)) {justify-content:center;border-width:1px;}button.svelte-1y79ujd:is(.primary:where(.svelte-1y79ujd), .secondary:where(.svelte-1y79ujd), .tertiary:where(.svelte-1y79ujd), .ghost:where(.svelte-1y79ujd)) .label:where(.svelte-1y79ujd):only-child {padding:0 4px;}button.primary.svelte-1y79ujd {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-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {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-1y79ujd: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-1y79ujd {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-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {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-1y79ujd: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-1y79ujd {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-1y79ujd {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-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {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-1y79ujd: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-1y79ujd {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-1y79ujd {font-weight:var(--sui-button-ghost-font-weight, var(--sui-font-weight-normal, normal));}button.ghost.svelte-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus-visible, [aria-expanded=true]:where(.svelte-1y79ujd)) {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-1y79ujd: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-1y79ujd {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-1y79ujd {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-1y79ujd .label:where(.svelte-1y79ujd) {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-1y79ujd .label:where(.svelte-1y79ujd) {text-decoration:underline;}button.link.svelte-1y79ujd:is(:where(.svelte-1y79ujd):hover, :where(.svelte-1y79ujd):focus, :where(.svelte-1y79ujd):active) .label:where(.svelte-1y79ujd) {text-decoration:var(--sui-button-link-text-decoration-focus, underline);}button.small.svelte-1y79ujd {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-1y79ujd .icon {font-size:var(--sui-font-size-large);}button.medium.svelte-1y79ujd {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-1y79ujd {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-1y79ujd {border-radius:80px;padding:var(--sui-button-medium-pill-padding, 0 12px);}button.flex.svelte-1y79ujd:not([hidden]) {display:inline-flex;flex:auto;width:-moz-available;width:-webkit-fill-available;width:stretch;}button.iconic.svelte-1y79ujd {justify-content:center;padding:0;aspect-ratio:1/1;}button.danger.svelte-1y79ujd {background-color:var(--sui-error-background-color);}button.svelte-1y79ujd .label:where(.svelte-1y79ujd) {padding:0 4px;}button.svelte-1y79ujd > * {pointer-events:none;}button.svelte-1y79ujd :has([slot=start-icon] + [slot=end-icon]) {gap:0;}`}}));function xI(e,t){O(t,!0),K(e,wI);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=CI(),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());YF(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=SI(),r=F(t);{let e=M(()=>X(`_sui.dismiss`));pI(r,{iconic:!0,size:`small`,variant:`ghost`,get"aria-label"(){return z(e)},onclick:()=>{n(!1)},children:(e,t)=>{YF(e,{name:`close`})},$$slots:{default:!0}})}D(t),U(e,t)};G(d,e=>{r()&&e(f)}),D(t),R(()=>cs(t,1,`infobar ${i()??``}`,`svelte-1g2ya9m`)),U(e,t)};G(c,e=>{n()&&e(l)}),U(e,s),k()}var SI,CI,wI,jae=o((()=>{Q(),Y(),Z(),bI(),XF(),SI=V(`<div role="none"><!></div>`),CI=V(`<div role="none"><div role="alert" class="message svelte-1g2ya9m"><!> <!></div> <!></div>`),wI={hash:`svelte-1g2ya9m`,code:`.infobar.svelte-1g2ya9m {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-1g2ya9m {border-color:var(--sui-info-border-color);color:var(--sui-info-foreground-color);background-color:var(--sui-info-background-color);}.infobar.warning.svelte-1g2ya9m {border-color:var(--sui-warning-border-color);color:var(--sui-warning-foreground-color);background-color:var(--sui-warning-background-color);}.infobar.error.svelte-1g2ya9m {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);background-color:var(--sui-error-background-color);}.infobar.success.svelte-1g2ya9m {border-color:var(--sui-success-border-color);color:var(--sui-success-foreground-color);background-color:var(--sui-success-background-color);}.message.svelte-1g2ya9m {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-1g2ya9m button {font-size:inherit !important;}.message.svelte-1g2ya9m .icon {font-size:16px; /* !hardcoded */}`}}));function Mae(e,t){K(e,EI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=TI();bs(r,()=>({role:`none`,class:`sui bottom-navigation ${t.class??``}`,...n}),void 0,void 0,void 0,`svelte-yy6cyr`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var TI,EI,Nae=o((()=>{Q(),Y(),TI=V(`<div><!></div>`),EI={hash:`svelte-yy6cyr`,code:`.bottom-navigation.svelte-yy6cyr {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-yy6cyr:is([inert]:where(.svelte-yy6cyr), [hidden]:where(.svelte-yy6cyr)) {display:none;}.bottom-navigation.svelte-yy6cyr .buttons {flex:auto;display:flex;align-items:center;justify-content:space-evenly;}`}}));function Pae(e,t){K(e,OI);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=DI();bs(r,()=>({...n,role:`group`,class:`sui button-group ${t.class??``}`}),void 0,void 0,void 0,`svelte-agsia7`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var DI,OI,kI=o((()=>{Q(),Y(),DI=V(`<div><!></div>`),OI={hash:`svelte-agsia7`,code:`.button-group.svelte-agsia7 {flex:none;display:inline-flex;align-items:center;}`}}));function AI(e,t){K(e,MI);let n=J(t,`children`,3,void 0);var r=jI();Eo(F(r),()=>n()??E),D(r),U(e,r)}var jI,MI,Fae=o((()=>{Q(),Y(),jI=V(`<div role="none" class="sui floating-action-button-wrapper svelte-1vina3t"><!></div>`),MI={hash:`svelte-1vina3t`,code:`.floating-action-button-wrapper.svelte-1vina3t {display:contents;}
645
+ @media (width < 768px) {.floating-action-button-wrapper.svelte-1vina3t {display:block;position:fixed;inset-inline-end:16px;inset-block-end:72px;z-index:100;}.floating-action-button-wrapper.svelte-1vina3t button {border-radius:50%;height:56px;box-shadow:0 4px 8px rgba(0, 0, 0, 0.4);}.floating-action-button-wrapper.svelte-1vina3t button .icon {font-size:32px;}
646
+ }`}})),NI,PI=o((()=>{Y(),NI=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}}})),FI,II,LI,RI,zI,BI=o((()=>{Y(),Z(),sI(),tS(),PI(),FI=/\p{Diacritic}/gu,II=e=>(e=e.trim(),e?e.normalize(`NFD`).replace(FI,``).toLocaleLowerCase():``),LI={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}},RI=class{constructor(e,{clickToSelect:t=!0}={}){e.dispatchEvent(new CustomEvent(`Initializing`)),this.parent=e,this.role=e.getAttribute(`role`),this.multi=this.parent.getAttribute(`aria-multiselectable`)===`true`,this.id=aI(this.role),this.parentGroupSelector=`[role="group"], [role="${this.role}"]`,this.clickToSelect=t,this._onClick=e=>{this.onClick(e)},this._onKeyDown=e=>{this.onKeyDown(e)};let{orientation:n,childRoles:r,childSelectedAttr:i,focusChild:a,selectFirst:o}=LI[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 eS(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:NI(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=Eh();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=Eh(),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=II(e),n=t?t.split(/\s+/):[],{allMembers:r,parent:i}=this,a=r.map(e=>{let t=II(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}}))}},zI=e=>t=>{let n=typeof e==`function`,r=new RI(t,n?e():e);return n&&ei(()=>{r.onUpdate(e())}),()=>{r.destroy()}}}));function VI(e,t){O(t,!0),K(e,UI);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var c=HI();bs(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-w7vim4`);var l=F(c);Eo(F(l),()=>t.children??E),D(l),D(c),Xo(c,zI),R(()=>l.inert=r()),U(e,c),k()}var HI,UI,Iae=o((()=>{Q(),Y(),BI(),HI=V(`<div><div role="none" class="inner svelte-w7vim4"><!></div></div>`),UI={hash:`svelte-w7vim4`,code:`.select-button-group.svelte-w7vim4 {flex:none;display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);}.select-button-group.svelte-w7vim4:focus-visible {outline-width:0 !important;}.select-button-group.svelte-w7vim4 button {margin:0 !important;border-radius:0 !important;color:var(--sui-primary-foreground-color);}.select-button-group.svelte-w7vim4 button:first-child {border-start-start-radius:4px !important;border-end-start-radius:4px !important;}.select-button-group.svelte-w7vim4 button:not(:first-child) {border-inline-start-width:0;}.select-button-group.svelte-w7vim4 button:last-child {border-start-end-radius:4px !important;border-end-end-radius:4px !important;}.select-button-group.svelte-w7vim4 button[aria-checked=true] {color:var(--sui-highlight-foreground-color);background-color:var(--sui-selected-background-color);}.select-button-group.svelte-w7vim4 [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.select-button-group.svelte-w7vim4 [aria-disabled=false] button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.select-button-group.svelte-w7vim4 [aria-disabled=false] button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.inner.svelte-w7vim4 {display:contents;}`}}));function WI(e,t){O(t,!0);let n=J(t,`selected`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`class`,`onChange`]);pI(e,Zs(()=>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 Lae=o((()=>{Q(),Y(),bI()}));function GI(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=Xs(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=KI(),h=I(m);return pI(h,Zs(()=>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=>{YF(e,{name:`more_vert`})},o=e=>{YF(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}})),lI(L(h,2),{get anchor(){return z(f)},get position(){return i()},get positionBaseElement(){return a()},get showBackdrop(){return o()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.popup??E),U(e,r)},$$slots:{default:!0}}),U(e,m),k(p)}var KI,qI=o((()=>{Q(),Y(),bI(),XF(),fI(),KI=V(`<!> <!>`,1)}));function JI(e,t){O(t,!0),K(e,XI);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`hidden`,`disabled`,`label`,`variant`,`size`,`popupPosition`,`showPopupBackdrop`,`chevronIcon`,`popup`]),u=N(void 0);var d=YI(),f=F(d);pI(f,Zs(()=>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=>{YF(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`));GI(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 YI,XI,Rae=o((()=>{Q(),Y(),Z(),XF(),qI(),bI(),YI=V(`<div role="group" class="sui split-button svelte-clnzzc"><!> <!></div>`),XI={hash:`svelte-clnzzc`,code:`.split-button.svelte-clnzzc {flex:none;display:inline-flex;margin:var(--sui-focus-ring-width);}.split-button.svelte-clnzzc button {margin:0;}.split-button.svelte-clnzzc 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-clnzzc button:not(.menu-button) {border-start-end-radius:0;border-end-end-radius:0;}`}}));function ZI(e,t){K(e,$I);let n=J(t,`hidden`,3,!1),r=J(t,`orientation`,3,`horizontal`),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`orientation`]);var a=QI();bs(a,()=>({...i,role:`separator`,class:`sui divider ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-orientation":r()}),void 0,void 0,void 0,`svelte-1cv30fj`),U(e,a)}var QI,$I,eL=o((()=>{Q(),Y(),QI=V(`<div></div>`),$I={hash:`svelte-1cv30fj`,code:`.divider.svelte-1cv30fj {flex:none;background-color:var(--sui-secondary-border-color);}.divider[aria-orientation=horizontal].svelte-1cv30fj {margin:8px 0;width:100%;height:1px;}.divider[aria-orientation=vertical].svelte-1cv30fj {margin:0 8px;width:1px;height:100%;}`}}));function tL(e,t){K(e,rL);let n=J(t,`flex`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`flex`]);var i=nL();bs(i,()=>({...r,role:`none`,class:`sui spacer ${t.class??``}`,[Cs]:{flex:n()}}),void 0,void 0,void 0,`svelte-zbmhts`),U(e,i)}var nL,rL,iL=o((()=>{Q(),Y(),nL=V(`<div></div>`),rL={hash:`svelte-zbmhts`,code:`.spacer.flex.svelte-zbmhts:not([hidden]) {display:block;flex:auto;}.spacer.svelte-zbmhts:not(.flex) {width:8px;height:8px;}`}}));function zae(e,t){K(e,oL);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`children`]);var o=aL();bs(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-1to95n1`);var s=F(o);Eo(F(s),()=>t.children??E),D(s),D(o),R(()=>s.inert=r()),U(e,o)}var aL,oL,Bae=o((()=>{Q(),Y(),aL=V(`<div><div role="none" class="inner svelte-1to95n1"><!></div></div>`),oL={hash:`svelte-1to95n1`,code:`.checkbox-group.svelte-1to95n1 {display:inline-flex;}.checkbox-group.horizontal.svelte-1to95n1 {gap:8px;align-items:center;flex-wrap:wrap;}.checkbox-group.vertical.svelte-1to95n1 {gap:4px;flex-direction:column;}
647
+ @media (pointer: coarse) {.checkbox-group.vertical.svelte-1to95n1 {gap:8px;}
648
+ }.inner.svelte-1to95n1 {display:contents;}`}}));function sL(e,t){let n=Fa();O(t,!0),K(e,uL);let r=J(t,`checked`,15),i=J(t,`name`,3,void 0),a=J(t,`value`,3,void 0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=J(t,`label`,3,void 0),f=J(t,`group`,15),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`name`,`value`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`label`,`aria-label`,`group`,`onChange`,`children`,`checkIcon`]),m=N(void 0),h=M(()=>r()===`mixed`);ei(()=>{Array.isArray(f())&&(f().includes(a())?r()!==!0&&r(!0):r()!==!1&&r(!1))});var g=lL();let _;var v=F(g),y=F(v);{let e=e=>{var n=H(),i=I(n),a=e=>{var n=H();Eo(I(n),()=>t.checkIcon),U(e,n)},o=e=>{YF(e,{name:`remove`})},s=e=>{YF(e,{name:`check`})};G(i,e=>{t.checkIcon?e(a):z(h)?e(o,1):r()&&e(s,2)}),U(e,n)},d=M(()=>t[`aria-label`]||void 0),g=M(()=>t[`aria-label`]?void 0:`${n}-label`);pI(y,Zs(()=>p,{role:`checkbox`,get id(){return n},get name(){return i()},get value(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get"aria-invalid"(){return u()},get"aria-checked"(){return r()},get"aria-label"(){return z(d)},get"aria-labelledby"(){return z(g)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!(s()||c())&&(r(z(h)?!0:!r()),Array.isArray(f())&&(r()?f().includes(a())||f([...f(),a()]):f().includes(a())&&f(f().filter(e=>e!==a()))),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:r()}})))},get element(){return z(m)},set element(e){P(m,e,!0)},startIcon:e,$$slots:{startIcon:!0}}))}var b=L(y,2),x=e=>{var r=cL(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},o=e=>{var t=Pa();R(()=>W(t,d())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(b,e=>{(t.children||d())&&e(x)}),D(v),D(g),R(()=>{_=cs(g,1,`sui checkbox ${t.class??``}`,`svelte-1tl7iav`,_,{checked:r(),indeterminate:z(h),disabled:s(),readonly:c()}),q(g,`hidden`,o()),v.inert=s()}),xa(`click`,g,e=>{e.preventDefault(),e.stopPropagation(),e.target.matches(`button`)||z(m)?.click()}),U(e,g),k()}var cL,lL,uL,Vae=o((()=>{Q(),Y(),bI(),XF(),cL=V(`<label class="svelte-1tl7iav"><!></label>`),lL=V(`<div role="none"><div role="none" class="inner svelte-1tl7iav"><!> <!></div></div>`),uL={hash:`svelte-1tl7iav`,code:`.checkbox.svelte-1tl7iav {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.checkbox.svelte-1tl7iav:hover button {background-color:var(--sui-hover-background-color);}.checkbox.svelte-1tl7iav:hover button[aria-checked=true] {background-color:var(--sui-primary-accent-color-light);}.checkbox.svelte-1tl7iav:active button {background-color:var(--sui-active-background-color);}.checkbox.svelte-1tl7iav:active button[aria-checked=true] {background-color:var(--sui-primary-accent-color-dark);}.checkbox.svelte-1tl7iav button {flex:none;align-items:center;justify-content:center;overflow:hidden;margin:0 !important;border-width:var(--sui-checkbox-border-width, 1.5px);border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-border-radius);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);color:var(--sui-primary-accent-text-color);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.checkbox.svelte-1tl7iav button[aria-checked=true] {border-color:var(--sui-checkbox-border-color-checked, var(--sui-primary-accent-color));color:var(--sui-checkbox-foreground-color-checked, var(--sui-primary-accent-color-inverted));background-color:var(--sui-checkbox-background-color-checked, var(--sui-primary-accent-color));}.checkbox.svelte-1tl7iav button[aria-invalid=true] {border-color:var(--sui-error-border-color);color:var(--sui-error-foreground-color);}.checkbox.svelte-1tl7iav button[aria-checked=true][aria-invalid=true] {background-color:var(--sui-checkbox-background-color);}.checkbox.svelte-1tl7iav button .icon {font-size:calc(var(--sui-checkbox-height) - 2px);}.checkbox.svelte-1tl7iav label:where(.svelte-1tl7iav) {cursor:inherit;}.inner.svelte-1tl7iav {display:contents;}`},Sa([`click`])}));function dL(e,t){let n=Fa();O(t,!0),K(e,_L);let r=J(t,`open`,15,!1);J(t,`value`,11,``);let i=J(t,`role`,3,`dialog`),a=J(t,`size`,3,`medium`),o=J(t,`showClose`,3,!1),s=J(t,`showOk`,3,!0),c=J(t,`showCancel`,3,!0),l=J(t,`okLabel`,3,``),u=J(t,`okShortcuts`,3,void 0),d=J(t,`okDisabled`,3,!1),f=J(t,`cancelLabel`,3,``),p=J(t,`cancelShortcuts`,3,void 0),m=J(t,`cancelDisabled`,3,!1),h=J(t,`focusInput`,3,!0),g=Xs(t,`$$slots.$$events.$$legacy.open.value.title.role.size.class.showClose.showOk.showCancel.okLabel.okShortcuts.okDisabled.cancelLabel.cancelShortcuts.cancelDisabled.focusInput.children.header.headerExtra.footer.footerExtra.closeIcon.input`.split(`.`)),_=N(void 0),v=N(void 0);ei(()=>{if(r()&&z(v)){let e=!1;return(async()=>{await eS(50),!e&&(h()?(z(v)?.querySelector(`input, button.primary`)?.focus(),z(v)?.querySelector(`input`)?.select()):z(_)?.focus())})(),()=>{e=!0}}});{let h=M(()=>t.header?void 0:t.title),y=M(()=>t.header?t.title:`${n}-title`);Us(Oae(e,Zs(()=>g,{get role(){return i()},get id(){return n},class:`dialog`,get"aria-label"(){return z(h)},get"aria-labelledby"(){return z(y)},get"aria-describedby"(){return`${n}-body`},showBackdrop:!0,get open(){return r()},set open(e){r(e)},children:(e,r)=>{var i=gL(),h=F(i),g=e=>{var r=pL(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.header),U(e,n)},s=e=>{var r=fL(),i=I(r),a=F(i,!0);D(i);var s=L(i,2);tL(s,{flex:!0});var c=L(s,2);Eo(c,()=>t.headerExtra??E);var l=L(c,2),u=e=>{{let r=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.closeIcon),U(e,n)},a=e=>{YF(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>X(`_sui.close`));pI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{z(_)?.close(`close`)},startIcon:r,$$slots:{startIcon:!0}})}};G(l,e=>{o()&&e(u)}),R(()=>{q(i,`id`,`${n}-title`),W(a,t.title)}),U(e,r)};G(i,e=>{t.header?e(a):e(s,-1)}),D(r),U(e,r)};G(h,e=>{(t.title||o()||t.header||t.headerExtra)&&e(g)});var y=L(h,2);Eo(F(y),()=>t.children??E),D(y);var b=L(y,2),x=e=>{var n=hL(),r=F(n),i=e=>{var n=H();Eo(I(n),()=>t.footer??E),U(e,n)},a=e=>{var n=mL(),r=I(n);Eo(r,()=>t.footerExtra??E);var i=L(r,2);tL(i,{flex:!0});var a=L(i,2),o=e=>{{let t=M(()=>l()||X(`_sui.ok`));pI(e,{variant:`primary`,get label(){return z(t)},get keyShortcuts(){return u()},get disabled(){return d()},onclick:()=>{z(_)?.close(`ok`)}})}};G(a,e=>{s()&&e(o)});var h=L(a,2),g=e=>{{let t=M(()=>f()||X(`_sui.cancel`));pI(e,{variant:`secondary`,get label(){return z(t)},get keyShortcuts(){return p()},get disabled(){return m()},onclick:()=>{z(_)?.close(`cancel`)}})}};G(h,e=>{c()&&e(g)}),U(e,n)};G(r,e=>{t.footer?e(i):e(a,-1)}),D(n),U(e,n)};G(b,e=>{(s()||c()||t.footer||t.footerExtra)&&e(x)}),D(i),Us(i,e=>P(v,e),()=>z(v)),R(()=>{cs(i,1,`content ${t.class??``} ${a()??``}`,`svelte-y90jpt`),q(y,`id`,`${n}-body`)}),U(e,i)},$$slots:{default:!0}})),e=>P(_,e,!0),()=>z(_))}k()}var fL,pL,mL,hL,gL,_L,vL=o((()=>{Q(),Y(),Z(),tS(),bI(),iL(),XF(),cI(),fL=V(`<div role="none" class="title svelte-y90jpt"> </div> <!> <!> <!>`,1),pL=V(`<div role="none" class="header svelte-y90jpt"><!></div>`),mL=V(`<!> <!> <!> <!>`,1),hL=V(`<div role="none" class="footer svelte-y90jpt"><!></div>`),gL=V(`<div role="none"><!> <div role="none" class="body svelte-y90jpt"><!></div> <!></div>`),_L={hash:`svelte-y90jpt`,code:`.content.svelte-y90jpt {position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--sui-dialog-content-border-radius, 4px);max-width:calc(100dvw - var(--sui-dialog-content-margin, 16px) * 2);background-color:var(--sui-dialog-content-background-color, var(--sui-secondary-background-color-translucent));box-shadow:var(--sui-dialog-content-box-shadow, 0 8px 16px var(--sui-popup-shadow-color));-webkit-backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));backdrop-filter:var(--sui-dialog-content-backdrop-filter, blur(16px));transition-property:transform;}dialog.open .content.svelte-y90jpt {transition-duration:150ms;transform:scale(100%);}dialog:not(.open) .content.svelte-y90jpt {transition-duration:300ms;transform:scale(90%);}.content.small.svelte-y90jpt {width:var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));max-height:var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));}
649
+ @media (max-height: 400px) {.content.small.svelte-y90jpt {max-height:calc(100dvh - 32px);}
650
+ }.content.medium.svelte-y90jpt {width:var(--sui-dialog-medium-content-width, var(--sui-dialog-content-width, 600px));max-height:var(--sui-dialog-medium-content-max-height, var(--sui-dialog-content-max-height, 600px));}
651
+ @media (max-height: 600px) {.content.medium.svelte-y90jpt {max-height:calc(100dvh - 32px);}
652
+ }.content.large.svelte-y90jpt {width:var(--sui-dialog-large-content-width, var(--sui-dialog-content-width, 800px));max-height:var(--sui-dialog-large-content-max-height, var(--sui-dialog-content-max-height, 800px));}
653
+ @media (max-height: 800px) {.content.large.svelte-y90jpt {max-height:calc(100dvh - 32px);}
654
+ }.content.x-large.svelte-y90jpt {width:var(--sui-dialog-x-large-content-width, var(--sui-dialog-content-width, 1000px));max-height:var(--sui-dialog-x-large-content-max-height, var(--sui-dialog-content-max-height, 1000px));}
655
+ @media (max-height: 1000px) {.content.x-large.svelte-y90jpt {max-height:calc(100dvh - 32px);}
656
+ }:is(.header.svelte-y90jpt, .footer.svelte-y90jpt) {display:flex;align-items:center;gap:4px;}.header.svelte-y90jpt {box-sizing:content-box;margin:var(--sui-dialog-header-margin, 0 16px);border-width:var(--sui-dialog-header-border-width, 0 0 1px);border-color:var(--sui-dialog-header-border-color, var(--sui-secondary-border-color));padding:var(--sui-dialog-header-padding, 16px 8px);height:var(--sui-dialog-header-height, 32px);}.header.svelte-y90jpt .title:where(.svelte-y90jpt) {font-size:var(--sui-font-size-large);font-weight:var(--sui-font-weight-bold);}.footer.svelte-y90jpt {margin:var(--sui-dialog-footer-margin, 0 24px 24px);}
657
+ @media (width < 768px) {.footer.svelte-y90jpt {margin:var(--sui-dialog-footer-margin, 0 16px 16px);}
658
+ }.body.svelte-y90jpt {overflow:auto;margin:var(--sui-dialog-body-margin, 24px 24px);white-space:normal;line-height:var(--sui-line-height-compact);}
659
+ @media (width < 768px) {.body.svelte-y90jpt {margin:var(--sui-dialog-body-margin, 16px 16px);}
660
+ }`}}));function yL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);dL(e,Zs(()=>r,{role:`alertdialog`,showCancel:!1,get open(){return n()},set open(e){n(e)}})),k()}var Hae=o((()=>{Q(),Y(),vL()}));function bL(e,t){O(t,!0);let n=J(t,`open`,15,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`]);dL(e,Zs(()=>r,{role:`alertdialog`,get open(){return n()},set open(e){n(e)}})),k()}var Uae=o((()=>{Q(),Y(),vL()}));function xL(e,t){let n=Fa();O(t,!0),K(e,wL);let r=J(t,`value`,15),i=J(t,`element`,15),a=J(t,`role`,3,`textbox`),o=J(t,`keyShortcuts`,3,void 0),s=J(t,`dir`,3,void 0),c=J(t,`name`,3,void 0),l=J(t,`showInlineLabel`,3,!1),u=J(t,`inputmode`,3,`text`),d=J(t,`flex`,3,!1),f=J(t,`monospace`,3,!1),p=J(t,`debounce`,3,!1),m=J(t,`hidden`,3,!1),h=J(t,`disabled`,3,!1),g=J(t,`readonly`,3,!1),_=J(t,`required`,3,!1),v=J(t,`invalid`,3,!1),y=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`element`,`role`,`keyShortcuts`,`dir`,`name`,`showInlineLabel`,`inputmode`,`flex`,`monospace`,`debounce`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`aria-label`,`children`,`oninput`]),b=M(()=>typeof p()==`number`?p():300),x=0;ei(()=>()=>{clearTimeout(x)});let S=e=>{r(i()?.value),t.oninput?.(e)},C=e=>{let t=e;p()?(clearTimeout(x),x=setTimeout(()=>{S(t)},z(b))):S(t)};var w=CL();let T;var ee=F(w);bs(ee,()=>({...y,value:r(),type:`text`,role:a(),dir:s(),name:c(),tabindex:h()?-1:0,disabled:h()||void 0,readonly:g()||void 0,inputmode:u(),"aria-label":t[`aria-label`],"aria-hidden":m(),"aria-disabled":h(),"aria-readonly":g(),"aria-required":_(),"aria-invalid":v(),oninputcapture:C}),void 0,void 0,void 0,`svelte-9fsh1h`,!0),Us(ee,e=>i(e),()=>i()),Xo(ee,()=>tI(o()));var te=L(ee,2),ne=e=>{var i=SL();let a;rI(F(i),{children:(e,n)=>{gt();var r=Pa();R(()=>W(r,t[`aria-label`])),U(e,r)},$$slots:{default:!0}}),D(i),R(()=>{q(i,`id`,`${n}-label`),a=cs(i,1,`label svelte-9fsh1h`,null,a,{hidden:!!r()})}),U(e,i)};G(te,e=>{t[`aria-label`]&&l()&&e(ne)}),D(w),R(()=>{T=cs(w,1,`sui text-input ${t.class??``}`,`svelte-9fsh1h`,T,{flex:d(),monospace:f(),disabled:h(),readonly:g()}),q(w,`hidden`,m()),ee.dir=ee.dir}),U(e,w),k()}var SL,CL,wL,TL=o((()=>{Q(),Y(),nI(),iI(),SL=V(`<span aria-hidden="true"><!></span>`),CL=V(`<div role="none"><input/> <!></div>`),wL={hash:`svelte-9fsh1h`,code:`.text-input.svelte-9fsh1h {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.text-input.flex.svelte-9fsh1h:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.text-input.monospace.svelte-9fsh1h {--sui-textbox-font-family: var(--sui-font-family-monospace, monospace);}input.svelte-9fsh1h:is(:where(.svelte-9fsh1h):-webkit-autofill, :where(.svelte-9fsh1h):-webkit-autofill:focus) {transition:background-color 0s 600000s, color 0s 600000s;}input.svelte-9fsh1h {display:inline-block;flex:auto;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-singleline-padding);min-width:0;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);line-height:var(--sui-textbox-singleline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}input.svelte-9fsh1h:focus {border-color:var(--sui-textbox-border-color-focus, var(--sui-primary-accent-color));color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}input.svelte-9fsh1h:read-only {color:var(--sui-tertiary-foreground-color);border-color:var(--sui-textbox-border-color) !important;}input.svelte-9fsh1h:is(:where(.svelte-9fsh1h):disabled, :where(.svelte-9fsh1h):read-only) {background-color:var(--sui-disabled-background-color);}input[aria-invalid=true].svelte-9fsh1h {border-color:var(--sui-error-border-color);}input.svelte-9fsh1h ~ button {flex:none;margin-inline-start:-1px;border-width:1px;border-color:var(--sui-textbox-border-color);height:var(--sui-textbox-height);aspect-ratio:1/1;}input.svelte-9fsh1h ~ button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}input.svelte-9fsh1h ~ button .icon {font-size:var(--sui-font-size-xx-large);}.label.svelte-9fsh1h {position:absolute;inset:var(--sui-textbox-singleline-padding);z-index:2;display:flex;align-items:center;justify-content:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));pointer-events:none;}.label.hidden.svelte-9fsh1h {opacity:0;}input.svelte-9fsh1h:focus + .label:where(.svelte-9fsh1h) {opacity:0;}input.svelte-9fsh1h::placeholder,
661
+ .label.svelte-9fsh1h {color:var(--sui-textbox-placeholder-foreground-color, var(--sui-textbox-foreground-color));opacity:var(--sui-textbox-placeholder-opacity, 0.5);font-family:var(--sui-textbox-placeholder-font-family, var(--sui-textbox-font-family));font-size:var(--sui-textbox-placeholder-font-size, var(--sui-textbox-font-size));line-height:var(--sui-textbox-placeholder-singleline-line-height, var(--sui-textbox-singleline-line-height));font-weight:var(--sui-textbox-placeholder-font-weight, var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal)));text-align:var(--sui-textbox-placeholder-text-align, var(--sui-textbox-text-align, start));text-indent:var(--sui-textbox-placeholder-text-indent, var(--sui-textbox-text-indent, 0));letter-spacing:var(--sui-textbox-placeholder-letter-spacing, var(--sui-textbox-letter-spacing, normal));}`}}));function EL(e,t){O(t,!0),K(e,OL);let n=J(t,`open`,15,!1),r=J(t,`value`,15,``),i=J(t,`textboxAttrs`,19,()=>({})),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`open`,`value`,`textboxAttrs`,`children`,`input`,`onkeydown`,`onkeyup`,`onkeypress`,`oninput`]);dL(e,Zs(()=>a,{role:`alertdialog`,get open(){return n()},set open(e){n(e)},children:(e,n)=>{var a=DL(),o=I(a);Eo(o,()=>t.children??E);var s=L(o,2),c=F(s),l=e=>{var n=H();Eo(I(n),()=>t.input),U(e,n)},u=e=>{xL(e,Zs({dir:`auto`,flex:!0,autofocus:!0},i,{get onkeydown(){return t.onkeydown},get onkeyup(){return t.onkeyup},get onkeypress(){return t.onkeypress},get oninput(){return t.oninput},get value(){return r()},set value(e){r(e)}}))};G(c,e=>{t.input?e(l):e(u,-1)}),D(s),U(e,a)},$$slots:{default:!0}})),k()}var DL,OL,Wae=o((()=>{Q(),Y(),TL(),vL(),DL=V(`<!> <div class="input-outer svelte-1a2ai1k"><!></div>`,1),OL={hash:`svelte-1a2ai1k`,code:`.input-outer.svelte-1a2ai1k {margin:12px 0 0;}`}}));function kL(e,t){O(t,!0);let n=J(t,`accept`,3,void 0),r=J(t,`multiple`,3,!1),i=J(t,`onSelect`,3,void 0),a=J(t,`onCancel`,3,void 0),o=N(void 0);var s={open:()=>{z(o)?.click()}},c=AL();return Us(c,e=>P(o,e),()=>z(o)),R(()=>{q(c,`accept`,n()),c.multiple=r()}),xa(`change`,c,({target:e})=>{let t=[...e.files];i()?.({files:t,file:t[0]})}),ba(`cancel`,c,e=>{e.stopPropagation(),a()?.()}),U(e,c),k(s)}var AL,Gae=o((()=>{Q(),Y(),AL=V(`<input class="sui file-picker" type="file" hidden=""/>`),Sa([`change`])}));function jL(e,t){let n=Fa();K(e,PL);let r=J(t,`label`,3,``),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`label`,`children`]);var a=NL();bs(a,()=>({...i,role:`rowgroup`,class:`sui grid-body row-group ${t.class??``}`,"aria-labelledby":r()?`${n}-label`:void 0,"aria-roledescription":`grid body`}),void 0,void 0,void 0,`svelte-3urzka`);var o=F(a),s=e=>{var t=ML();Wo(F(t),()=>`th`,!1,(e,t)=>{bs(e,()=>({role:`columnheader`,id:`${n}-label`,colspan:`9999`,class:``}),void 0,void 0,void 0,`svelte-3urzka`);var i=Pa();R(()=>W(i,r())),U(t,i)}),D(t),U(e,t)};G(o,e=>{r()&&e(s)}),Eo(L(o,2),()=>t.children??E),D(a),U(e,a)}var ML,NL,PL,Kae=o((()=>{Q(),Y(),ML=V(`<div role="row" class="row-group-caption svelte-3urzka"><!></div>`),NL=V(`<div><!> <!></div>`),PL={hash:`svelte-3urzka`,code:`[role=rowgroup].svelte-3urzka {display:table-row-group;}[role=row].svelte-3urzka {display:table-row;}[role=columnheader].svelte-3urzka {display:table-cell;padding:8px;color:var(--sui-secondary-foreground-color);background-color:var(--sui-secondary-background-color);font-size:var(--sui-font-size-default);text-align:start;}`}}));function FL(e,t){K(e,LL);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=IL();bs(r,()=>({...n,role:`gridcell`,class:`sui grid-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-9kmk9i`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var IL,LL,qae=o((()=>{Q(),Y(),IL=V(`<div><!></div>`),LL={hash:`svelte-9kmk9i`,code:`.grid-cell.svelte-9kmk9i {display:table-cell;}`}}));function RL(e,t){K(e,BL);let n=J(t,`selected`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`selected`,`children`]);var i=zL();bs(i,()=>({...r,role:`row`,class:`sui grid-row ${t.class??``}`,tabindex:`0`,"aria-selected":n()}),void 0,void 0,void 0,`svelte-1kensem`),Eo(F(i),()=>t.children??E),D(i),U(e,i)}var zL,BL,Jae=o((()=>{Q(),Y(),zL=V(`<div><!></div>`),BL={hash:`svelte-1kensem`,code:`.grid-row.svelte-1kensem {display:table-row;height:var(--sui-primary-row-height);}`}}));function Yae(e,t){O(t,!0),K(e,HL);let n=J(t,`element`,15),r=J(t,`multiple`,3,!1),i=J(t,`clickToSelect`,3,!0),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`element`,`class`,`multiple`,`clickToSelect`,`children`,`onChange`]);var o=VL(),s=e=>{t.onChange?.(e)};bs(o,()=>({...a,role:`grid`,class:`sui grid ${t.class??``}`,"aria-multiselectable":r(),onChange:s}),void 0,void 0,void 0,`svelte-jd3b1l`),Eo(F(o),()=>t.children??E),D(o),Us(o,e=>n(e),()=>n()),Xo(o,()=>zI({clickToSelect:i()})),U(e,o),k()}var VL,HL,Xae=o((()=>{Q(),Y(),BI(),VL=V(`<div><!></div>`),HL={hash:`svelte-jd3b1l`,code:`.grid.svelte-jd3b1l {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.grid.data.svelte-jd3b1l {border-collapse:collapse;}.grid.data.svelte-jd3b1l :is(.grid-col-header, .grid-row-header, .grid-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function UL(e,t){O(t,!0),K(e,GL);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=J(t,`multiple`,3,!1),c=J(t,`searchTerms`,3,``),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`multiple`,`searchTerms`,`children`,`onFilter`]),u=N(!1);var d=WL(),f=e=>{let{detail:{matched:n,total:r}}=e;P(u,n!==r),t.onFilter?.(e)};bs(d,()=>({...l,role:`listbox`,class:`sui listbox ${t.class??``}`,tabindex:r()?-1:0,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-multiselectable":s(),onFilter:f,[Cs]:{filtered:z(u)}}),void 0,void 0,void 0,`svelte-kctt5v`);var p=F(d);Eo(F(p),()=>t.children??E),D(p),D(d),Xo(d,()=>zI(()=>({searchTerms:c()}))),R(()=>p.inert=r()),U(e,d),k()}var WL,GL,KL=o((()=>{Q(),Y(),BI(),WL=V(`<div><div role="none" class="inner svelte-kctt5v"><!></div></div>`),GL={hash:`svelte-kctt5v`,code:`[role=listbox].svelte-kctt5v {display:flex;flex-direction:column;margin:var(--sui-focus-ring-width);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);min-width:var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));color:var(--sui-listbox-foreground-color);background-color:var(--sui-listbox-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);}
662
+ @media (pointer: coarse) {[role=listbox].svelte-kctt5v {gap:8px 0;}
663
+ }[role=listbox].svelte-kctt5v [role=separator] {margin:4px 0;background-color:var(--sui-control-border-color);}[role=listbox][aria-invalid=true].svelte-kctt5v {border-color:var(--sui-error-border-color);}[role=listbox].tabs.svelte-kctt5v {padding:0;border-block-start-width:0;border-block-end-width:0;border-inline-end-width:1px;border-inline-start-width:0;border-color:var(--sui-control-border-color);}[role=listbox].tabs.svelte-kctt5v .option button {justify-content:flex-start;border-width:0;border-inline-end-width:2px;border-color:transparent;padding:0 12px;border-start-end-radius:0;border-end-end-radius:0;height:var(--sui-tab-medium-height);}[role=listbox].tabs.svelte-kctt5v .option button[aria-selected=true] {border-color:var(--sui-primary-accent-color-light);}[role=listbox].tabs.svelte-kctt5v .option button .icon {display:none;}[role=listbox].in-combobox.svelte-kctt5v:focus-visible {outline-color:transparent;}[role=listbox].filtered.svelte-kctt5v [role=separator] {display:none;}.inner.svelte-kctt5v {display:contents;}`}}));function qL(e,t){let n=Fa();K(e,YL);let r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`label`,`children`]);var s=JL();bs(s,()=>({...o,role:`group`,id:n,class:`sui option-group ${t.class??``}`,hidden:r(),"aria-hidden":r(),"aria-disabled":i(),"aria-labelledby":`${n}-label`,"aria-roledescription":`option group`}),void 0,void 0,void 0,`svelte-1aq3717`);var c=F(s);rI(F(c),{children:(e,t)=>{gt();var n=Pa();R(()=>W(n,a())),U(e,n)},$$slots:{default:!0}}),D(c);var l=L(c,2);Eo(F(l),()=>t.children??E),D(l),D(s),R(()=>{q(c,`id`,`${n}-label`),l.inert=i()}),U(e,s)}var JL,YL,Zae=o((()=>{Q(),Y(),iI(),JL=V(`<div><div role="none" class="label svelte-1aq3717"><!></div> <div role="none" class="inner svelte-1aq3717"><!></div></div>`),YL={hash:`svelte-1aq3717`,code:`.option-group.svelte-1aq3717:not(:first-child) {margin:12px 0 0;}.label.svelte-1aq3717 {margin:8px;color:var(--sui-secondary-foreground-color);font-size:var(--sui-font-size-small);}.inner.svelte-1aq3717 {display:contents;}`}}));function XL(e,t){O(t,!0),K(e,$L);let n=J(t,`selected`,15,!1),r=J(t,`hidden`,15,!1),i=J(t,`disabled`,3,!1),a=J(t,`value`,19,()=>t.label),o=J(t,`searchValue`,19,()=>t.label),s=J(t,`wrap`,3,!1),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`selected`,`hidden`,`class`,`disabled`,`label`,`value`,`searchValue`,`wrap`,`children`,`checkIcon`,`startIcon`,`onChange`,`onToggle`]);var l=QL();let u;pI(F(l),Zs(()=>c,{role:`option`,tabindex:`-1`,get"aria-selected"(){return n()},get label(){return t.label},get value(){return a()},get hidden(){return r()},get disabled(){return i()},get"data-search-value"(){return o()},onChange:e=>{n(e.detail.selected),t.onChange?.(e)},onToggle:e=>{r(e.detail.hidden),r()&&n(!1),t.onToggle?.(e)},startIcon:e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},children:(e,r)=>{var i=ZL(),a=I(i),o=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.checkIcon),U(e,n)},a=e=>{YF(e,{class:`check`,name:`check`})};G(r,e=>{t.checkIcon?e(i):e(a,-1)}),U(e,n)};G(a,e=>{n()&&e(o)}),Eo(L(a,2),()=>t.children??E),U(e,i)},$$slots:{startIcon:!0,default:!0}})),D(l),R(()=>{u=cs(l,1,`sui option ${t.class??``}`,`svelte-1d0mo69`,u,{wrap:s()}),q(l,`hidden`,r())}),U(e,l),k()}var ZL,QL,$L,eR=o((()=>{Q(),Y(),bI(),XF(),ZL=V(`<!> <!>`,1),QL=V(`<div role="none"><!></div>`),$L={hash:`svelte-1d0mo69`,code:`.option.svelte-1d0mo69 {display:contents;}.option.svelte-1d0mo69:focus-visible {outline-width:0 !important;}.option.svelte-1d0mo69 .wrap button {white-space:normal;}.option.svelte-1d0mo69 button {flex:none;display:flex;gap:4px;margin:0 !important;border-radius:var(--sui-option-border-radius);padding:var(--sui-option-padding);width:100%;height:auto;min-height:var(--sui-option-height);}.option.svelte-1d0mo69 button:active {background-color:var(--sui-active-background-color);}.option.svelte-1d0mo69 button[aria-selected=true] .icon.check {color:var(--sui-primary-accent-color-text);}.option.svelte-1d0mo69 button * {flex:none;}.option.svelte-1d0mo69 button .label {flex:auto;}.option.svelte-1d0mo69 :is(.focused, button:hover) {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.option.svelte-1d0mo69 .icon.check {margin:-2px;}`}}));function tR(e,t){O(t,!0),K(e,rR);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`,`onChange`]);var a=nR(),o=e=>{t.onChange?.(e)};bs(a,()=>({...i,role:`menu`,class:`sui menu ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),onChange:o}),void 0,void 0,void 0,`svelte-sj02jj`),Eo(F(a),()=>t.children??E),D(a),Xo(a,zI),U(e,a),k()}var nR,rR,iR=o((()=>{Q(),Y(),BI(),nR=V(`<div><!></div>`),rR={hash:`svelte-sj02jj`,code:`.menu.svelte-sj02jj {display:flex;flex-direction:column;margin:0;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);}
664
+ @media (pointer: coarse) {.menu.svelte-sj02jj {gap:8px 0;}
665
+ }.menu.svelte-sj02jj [role=separator] {margin:var(--sui-menu-divider-margin, 4px);background-color:var(--sui-menu-divider-color, var(--sui-control-border-color));}`}}));function aR(e,t){O(t,!0),K(e,lR);let n=J(t,`role`,3,`menuitem`),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=J(t,`popupPosition`,3,`right-top`),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`role`,`hidden`,`disabled`,`label`,`popupPosition`,`children`,`startIcon`,`endIcon`,`chevronIcon`,`items`,`onmouseenter`,`onmouseleave`,`onclick`,`onChange`,`onSelect`]),c=N(!1),l=N(!1),u=N(void 0),d=N(void 0),f=M(()=>n()===`menuitem`&&!!t.items);ac(()=>{P(d,z(u)?.closest(`dialog`)??void 0,!0)});var p=cR(),m=F(p);{let e=e=>{var n=H();Eo(I(n),()=>t.startIcon??E),U(e,n)},o=e=>{var n=sR(),r=I(n);let i;var o=F(r),s=e=>{var t=Pa();R(()=>W(t,a())),U(e,t)},c=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(o,e=>{a()?e(s):e(c,-1)}),D(r);var l=L(r,2),u=e=>{var n=oR(),r=F(n),i=e=>{var n=H();Eo(I(n),()=>t.chevronIcon),U(e,n)},a=e=>{{let t=M(()=>Eh()?`chevron_left`:`chevron_right`);YF(e,{get name(){return z(t)}})}};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),D(n),U(e,n)};G(l,e=>{z(f)&&e(u)}),R(()=>i=cs(r,1,`content svelte-1eo3p1z`,null,i,{label:!!a()})),U(e,n)},d=e=>{var n=H();Eo(I(n),()=>t.endIcon??E),U(e,n)},p=M(()=>z(f)?`menu`:void 0),h=M(()=>z(f)?z(c):void 0);pI(m,Zs(()=>s,{get role(){return n()},get hidden(){return r()},get disabled(){return i()},get"aria-haspopup"(){return z(p)},get"aria-expanded"(){return z(h)},onmouseenter:e=>{z(f)&&window.setTimeout(()=>{P(c,!0)},200),t.onmouseenter?.(e)},onmouseleave:e=>{z(f)&&window.setTimeout(()=>{z(l)||P(c,!1)},200),t.onmouseleave?.(e)},onclick:e=>{z(f)&&(e.preventDefault(),e.stopPropagation(),P(c,!z(c))),t.onclick?.(e)},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(u)},set element(e){P(u,e,!0)},startIcon:e,children:o,endIcon:d,$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var h=L(m,2),g=e=>{lI(e,{get anchor(){return z(u)},get parentDialogElement(){return z(d)},get position(){return o()},get open(){return z(c)},set open(e){P(c,e,!0)},get hovered(){return z(l)},set hovered(e){P(l,e,!0)},children:(e,n)=>{tR(e,{children:(e,n)=>{var r=H();Eo(I(r),()=>t.items??E),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(h,e=>{z(f)&&z(u)&&z(d)&&e(g)}),D(p),R(()=>{cs(p,1,`sui menuitem ${t.class??``}`,`svelte-1eo3p1z`),q(p,`hidden`,r())}),U(e,p),k()}var oR,sR,cR,lR,uR=o((()=>{Q(),Y(),Z(),sc(),bI(),XF(),fI(),iR(),oR=V(`<span role="none" class="icon-outer svelte-1eo3p1z"><!></span>`),sR=V(`<div role="none"><!></div> <!>`,1),cR=V(`<div role="none"><!> <!></div>`),lR={hash:`svelte-1eo3p1z`,code:`.menuitem.svelte-1eo3p1z {position:relative;}.menuitem.svelte-1eo3p1z button {display:flex;gap:var(--sui-menuitem-gap, 4px);align-items:var(--sui-menuitem-align-items, center);border-radius:var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));margin:0 !important;padding:var(--sui-menuitem-padding, 0 16px);width:100%;min-width:var(--sui-menuitem-min-width, 160px);height:var(--sui-menuitem-height, var(--sui-option-height));color:var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));background-color:var(--sui-menuitem-background-color, transparent);font-size:var(--sui-menuitem-font-size, var(--sui-option-font-size));font-weight:var(--sui-menuitem-font-weight, var(--sui-option-font-weight, var(--sui-font-weight-normal, normal)));}.menuitem.svelte-1eo3p1z button[aria-checked=true] .icon {color:var(--sui-primary-accent-color-text);}.menuitem.svelte-1eo3p1z button:hover {color:var(--sui-highlight-foreground-color);background-color:var(--sui-hover-background-color);}.menuitem.svelte-1eo3p1z button:active {background-color:var(--sui-active-background-color);}.menuitem.svelte-1eo3p1z :hover > [role=menu] {opacity:1;}.menuitem.svelte-1eo3p1z > [role=menu] {position:absolute;inset-block-start:2px;inset-block-end:auto;inset-inline-start:calc(100% + 4px);inset-inline-end:auto;}.menuitem.svelte-1eo3p1z > [role=menu]:hover {opacity:1;}.content.svelte-1eo3p1z {flex:auto;}.icon-outer.svelte-1eo3p1z {flex:none;width:24px;height:24px;}`}}));function dR(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);aR(e,Zs(()=>o,{role:`menuitemcheckbox`,get class(){return`sui menu-item-checkbox ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},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 t=H(),r=I(t),i=e=>{YF(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var fR=o((()=>{Q(),Y(),XF(),uR()}));function pR(e,t){O(t,!0);let n=J(t,`checked`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`label`,3,``),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`label`,`children`,`startIcon`,`onChange`]);aR(e,Zs(()=>o,{role:`menuitemradio`,get class(){return`sui menu-item-radio ${t.class??``}`},get label(){return a()},get hidden(){return r()},get disabled(){return i()},get"aria-checked"(){return n()},onChange:e=>{t.onChange?.(e),n(e.detail.checked)},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 t=H(),r=I(t),i=e=>{YF(e,{name:`check`})};G(r,e=>{n()&&e(i)}),U(e,t)},$$slots:{startIcon:!0,default:!0,endIcon:!0}})),k()}var Qae=o((()=>{Q(),Y(),XF(),uR()}));function $ae(e,t){K(e,hR);let n=J(t,`now`,3,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`now`,`min`,`max`,`text`]);var o=mR();bs(o,()=>({...a,role:`progressbar`,class:`sui progressbar ${t.class??``}`,"aria-valuenow":n(),"aria-valuemin":r(),"aria-valuemax":i(),"aria-valuetext":t.text}),void 0,void 0,void 0,`svelte-9dpcz`);var s=F(o);let c;D(o),R(()=>c=ds(s,``,c,{width:`${n()??``}%`})),U(e,o)}var mR,hR,eoe=o((()=>{Q(),Y(),mR=V(`<div><div role="none" class="svelte-9dpcz"></div></div>`),hR={hash:`svelte-9dpcz`,code:`.progressbar.svelte-9dpcz {overflow:hidden;border-width:var(--sui-progressbar-border-width, 1px);border-style:var(--sui-progressbar-border-style, solid);border-color:var(--sui-progressbar-border-color, var(--sui-control-border-color));border-radius:var(--sui-progressbar-border-radius, 16px);width:var(--sui-progressbar-width, 240px);height:var(--sui-progressbar-height, 10px);background-color:var(--sui-progressbar-background-color, var(--sui-secondary-background-color));}.progressbar.svelte-9dpcz div:where(.svelte-9dpcz) {height:100%;background-color:var(--sui-progressbar-foreground-color, var(--sui-primary-accent-color-light));transition:width 250ms;}`}}));function toe(e,t){O(t,!0),K(e,_R);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=J(t,`orientation`,3,`horizontal`),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`orientation`,`children`,`onChange`]);var l=gR(),u=e=>{t.onChange?.(e)};bs(l,()=>({...c,role:`radiogroup`,class:`sui radio-group ${t.class??``} ${s()??``}`,tabindex:`-1`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),"aria-orientation":s(),onChange:u}),void 0,void 0,void 0,`svelte-gqauol`);var d=F(l);Eo(F(d),()=>t.children??E),D(d),D(l),Xo(l,zI),R(()=>d.inert=r()),U(e,l),k()}var gR,_R,noe=o((()=>{Q(),Y(),BI(),gR=V(`<div><div role="none" class="inner svelte-gqauol"><!></div></div>`),_R={hash:`svelte-gqauol`,code:`.radio-group.svelte-gqauol {display:inline-flex;}.radio-group.svelte-gqauol:focus-visible {outline-width:0 !important;}.radio-group.horizontal.svelte-gqauol {gap:8px;align-items:center;flex-wrap:wrap;}.radio-group.vertical.svelte-gqauol {gap:4px;flex-direction:column;}
666
+ @media (pointer: coarse) {.radio-group.vertical.svelte-gqauol {gap:8px;}
667
+ }.radio-group.svelte-gqauol [aria-invalid=true] button {border-color:var(--sui-error-border-color);}.radio-group.svelte-gqauol [aria-invalid=true] button[aria-checked=true] {border-color:var(--sui-error-border-color);}.radio-group.svelte-gqauol [aria-invalid=true] button[aria-checked=true]::before {background-color:var(--sui-error-border-color);}.inner.svelte-gqauol {display:contents;}`}}));function roe(e,t){let n=Fa();O(t,!0),K(e,bR);let r=J(t,`checked`,7,!1),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`name`,3,void 0),s=J(t,`value`,3,void 0),c=J(t,`valueType`,3,void 0),l=J(t,`label`,3,void 0),u=J(t,`group`,15),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`class`,`hidden`,`disabled`,`name`,`value`,`valueType`,`label`,`group`,`children`,`onChange`,`onSelect`]),f=N(void 0);ei(()=>{typeof u()==`string`&&(u()===s()?r()||r(!0):r()&&r(!1))});var p=yR(),m=e=>{e.target.matches(`button`)||z(f)?.click()};bs(p,()=>({...d,role:`none`,class:`sui radio ${t.class??``}`,hidden:i(),onclick:m,[Cs]:{disabled:a()}}),void 0,void 0,void 0,`svelte-9gzih3`);var h=F(p);pI(h,{role:`radio`,get id(){return n},get hidden(){return i()},get disabled(){return a()},get name(){return o()},get value(){return s()},get valueType(){return c()},get"aria-checked"(){return r()},get"aria-labelledby"(){return`${n}-label`},onclick:e=>{e.preventDefault(),!(a()||r())&&(r(!0),typeof u()==`string`&&u(s()))},get onChange(){return t.onChange},get onSelect(){return t.onSelect},get element(){return z(f)},set element(e){P(f,e,!0)}});var g=L(h,2),_=e=>{var r=vR(),i=F(r),a=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)},o=e=>{var t=Pa();R(()=>W(t,l())),U(e,t)};G(i,e=>{t.children?e(a):e(o,-1)}),D(r),R(()=>q(r,`id`,`${n}-label`)),U(e,r)};G(g,e=>{(t.children||l())&&e(_)}),D(p),U(e,p),k()}var vR,yR,bR,ioe=o((()=>{Q(),Y(),bI(),vR=V(`<label class="svelte-9gzih3"><!></label>`),yR=V(`<span><!> <!></span>`),bR={hash:`svelte-9gzih3`,code:`.radio.svelte-9gzih3 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);color:var(--sui-control-foreground-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);cursor:pointer;-webkit-user-select:none;user-select:none;}.radio.svelte-9gzih3 :hover button {background-color:var(--sui-hover-background-color);}.radio.svelte-9gzih3 :hover button[aria-checked=true] {border-color:var(--sui-primary-accent-color-light);color:var(--sui-primary-accent-color-text);}.radio.svelte-9gzih3 :hover button[aria-checked=true]::before {background-color:var(--sui-primary-accent-color-light);}.radio.svelte-9gzih3 :active button {background-color:var(--sui-active-background-color);}.radio.svelte-9gzih3 :active button[aria-checked=true] {border-color:var(--sui-primary-accent-color-dark);color:var(--sui-primary-accent-color-dark);}.radio.svelte-9gzih3 button {flex:none;justify-content:center;overflow:hidden;margin:0 !important;border-width:1.5px;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);padding:0;width:var(--sui-checkbox-height);height:var(--sui-checkbox-height);background-color:var(--sui-checkbox-background-color);transition:all 200ms;}.radio.svelte-9gzih3 button::before {content:"";border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 7px);height:calc(var(--sui-checkbox-height) - 7px);background-color:var(--sui-primary-accent-color);opacity:0;transition:all 200ms;will-change:opacity;}.radio.svelte-9gzih3 button[aria-checked=true] {border-color:var(--sui-primary-accent-color);}.radio.svelte-9gzih3 button[aria-checked=true]::before {opacity:1;}.radio.svelte-9gzih3 label:where(.svelte-9gzih3) {cursor:inherit;}`}}));function aoe(e,t){O(t,!0),K(e,CR);let n=J(t,`disabled`,3,!1),r=J(t,`showHandleBar`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`showHandleBar`,`class`,`children`,`onResizeStart`,`onResizeEnd`]),a=Lt(`paneGroup`);if(!a)throw Error(`<ResizableHandle> must be used inside a <ResizablePaneGroup>`);let o=a.registerHandle(),s=M(()=>a.direction===`horizontal`),c=M(()=>a.sizes),l=M(()=>z(c)[o]??0),u=M(()=>Math.max(a.paneDefs[o]?.minSize??0,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.maxSize),0))),d=M(()=>Math.min(a.paneDefs[o]?.maxSize??100,100-a.paneDefs.reduce((e,t,n)=>e+(n===o?0:t.minSize),0))),f=N(void 0),p=N(!1),m=N(0),h=N(0),g=N(!1),_=()=>{let e=z(f)?.closest(`.resizable-pane-group`);return e?z(s)?e.clientWidth:e.clientHeight:0},v=e=>{let{screenX:t,screenY:r,pointerId:i}=e;if(n()||!z(p)||i!==z(h))return;e.preventDefault(),e.stopPropagation();let c=z(s)?t:r,l=c-z(m),u=_();if(!u)return;let d=l/u*100;z(s)&&Eh()&&(d=-d),P(m,c,!0),a.resize(o,d)},y=e=>{!z(p)||e.pointerId!==z(h)||(P(p,!1),P(m,0),P(h,0),document.removeEventListener(`pointermove`,v),document.removeEventListener(`pointerup`,y),document.removeEventListener(`pointercancel`,y),t.onResizeEnd?.())},b=e=>{n()||(e.preventDefault(),e.stopPropagation(),P(p,!0),P(m,z(s)?e.screenX:e.screenY,!0),P(h,e.pointerId,!0),t.onResizeStart?.(),document.addEventListener(`pointermove`,v),document.addEventListener(`pointerup`,y),document.addEventListener(`pointercancel`,y))},x=e=>{if(n())return;let{key:r,shiftKey:i}=e,c=i?10:1,l=0;if(r===`Enter`){e.preventDefault(),e.stopPropagation(),a.toggleCollapse(o);return}if(r===`Home`){e.preventDefault(),e.stopPropagation(),a.resize(o,-100);return}if(r===`End`){e.preventDefault(),e.stopPropagation(),a.resize(o,100);return}if(z(s)){let e=Eh();if(r===`ArrowLeft`)l=e?c:-c;else if(r===`ArrowRight`)l=e?-c:c;else return}else if(r===`ArrowUp`)l=-c;else if(r===`ArrowDown`)l=c;else return;e.preventDefault(),e.stopPropagation(),z(g)||(P(g,!0),t.onResizeStart?.()),a.resize(o,l)},S=()=>{z(g)&&(P(g,!1),t.onResizeEnd?.())};var C=SR();bs(C,e=>({...i,role:`separator`,tabindex:n()?-1:0,"aria-orientation":z(s)?`vertical`:`horizontal`,"aria-valuenow":e,"aria-valuemin":z(u),"aria-valuemax":z(d),"aria-controls":a.paneDefs[o]?.id,"aria-disabled":n()||void 0,class:`sui resizable-handle ${t.class??``??``}`,onpointerdown:b,onkeydown:x,onblur:S,[Cs]:{horizontal:z(s),vertical:!z(s),disabled:n(),dragging:z(p)}}),[()=>Math.round(z(l))],void 0,void 0,`svelte-zen0m9`);var w=F(C),T=e=>{var n=H();Eo(I(n),()=>t.children),U(e,n)},ee=e=>{U(e,xR())};G(w,e=>{t.children?e(T):r()&&e(ee,1)}),D(C),Us(C,e=>P(f,e),()=>z(f)),U(e,C),k()}var xR,SR,CR,ooe=o((()=>{Q(),Y(),Z(),sc(),xR=V(`<div role="none" class="handle-bar svelte-zen0m9"></div>`),SR=V(`<div><!></div>`),CR={hash:`svelte-zen0m9`,code:`.resizable-handle.svelte-zen0m9 {position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;touch-action:none;outline-offset:0;background-color:transparent;transition:background-color 200ms;}.resizable-handle.svelte-zen0m9:focus-visible, .resizable-handle.svelte-zen0m9:hover, .resizable-handle.dragging.svelte-zen0m9 {outline:none;z-index:1;background-color:var(--sui-primary-accent-color-translucent);}.resizable-handle.svelte-zen0m9:focus-visible .handle-bar:where(.svelte-zen0m9), .resizable-handle.svelte-zen0m9:hover .handle-bar:where(.svelte-zen0m9), .resizable-handle.dragging.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {background-color:var(--sui-primary-accent-color);}.resizable-handle.disabled.svelte-zen0m9 {pointer-events:none;opacity:0.4;}.resizable-handle.horizontal.svelte-zen0m9 {width:var(--sui-resizable-handle-size, 4px);height:100%;cursor:col-resize;}.resizable-handle.horizontal.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {width:2px;height:40%;min-height:20px;}.resizable-handle.vertical.svelte-zen0m9 {width:100%;height:var(--sui-resizable-handle-size, 4px);cursor:row-resize;}.resizable-handle.vertical.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {height:2px;width:40%;min-width:20px;}.resizable-handle.svelte-zen0m9 .handle-bar:where(.svelte-zen0m9) {border-radius:1px;background-color:hsl(var(--sui-border-color-1-hsl));transition:background-color 200ms;}`}}));function soe(e,t){O(t,!0),K(e,TR);let n=J(t,`direction`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`direction`,`class`,`children`,`onResize`]),i=Sr([]),a=Sr([]),o=Sr([]),s=0,c=()=>{if(!i.length)return;let e=i.reduce((e,t)=>e+(t.defaultSize??0),0),t=i.filter(e=>e.defaultSize===void 0).length,n=Math.max(0,100-e),r=t>0?n/t:0,o=i.map(e=>e.defaultSize??r);a.splice(0,a.length,...o)},l=(e,n)=>{let r=e,o=e+1;if(r<0||o>=a.length)return;let{minSize:s=0,maxSize:c=100}=i[r],{minSize:l=0,maxSize:u=100}=i[o],d=a[r],f=a[o],p=Math.min(c-d,f-l),m=Math.min(d-s,u-f),h=n>0?Math.min(n,p):-Math.min(-n,m);a[r]=d+h,a[o]=f-h,t.onResize?.({sizes:a.map(e=>Number(e.toFixed(1)))})};Rt(`paneGroup`,{get direction(){return n()},sizes:a,registerPane:({id:e,defaultSize:t,minSize:n,maxSize:r})=>{let a=i.length;return i.push({id:e,defaultSize:t,minSize:n,maxSize:r}),{index:a}},registerHandle:()=>{let e=s;return s+=1,e},resize:l,toggleCollapse:e=>{let{minSize:t=0}=i[e];if(o[e]!==void 0){let t=o[e]-a[e];o[e]=void 0,l(e,t)}else o[e]=a[e],l(e,-(a[e]-t))},paneDefs:i}),ei(()=>{i.length&&!a.length&&c()});var u=wR();bs(u,()=>({...r,role:`none`,class:`sui resizable-pane-group ${n()??``} ${t.class??``??``}`,"data-direction":n()}),void 0,void 0,void 0,`svelte-95yezj`),Eo(F(u),()=>t.children??E),D(u),U(e,u),k()}var wR,TR,coe=o((()=>{Q(),Y(),sc(),wR=V(`<div><!></div>`),TR={hash:`svelte-95yezj`,code:`.resizable-pane-group.svelte-95yezj {display:flex;overflow:hidden;}.resizable-pane-group.horizontal.svelte-95yezj {flex-direction:row;width:100%;height:100%;}.resizable-pane-group.vertical.svelte-95yezj {flex-direction:column;width:100%;height:100%;}`}}));function ER(e,t){let n=Fa();O(t,!0);let r=J(t,`defaultSize`,3,void 0),i=J(t,`minSize`,3,0),a=J(t,`maxSize`,3,100),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`defaultSize`,`minSize`,`maxSize`,`class`,`children`,`onResize`]),s=Lt(`paneGroup`);if(!s)throw Error(`<ResizablePane> must be used inside a <ResizablePaneGroup>`);let{index:c}=s.registerPane({id:n,defaultSize:r(),minSize:i(),maxSize:a()}),l=M(()=>s.direction),u=M(()=>s.sizes[c]),d=M(()=>z(u)===void 0?r()??0:z(u));ei(()=>{z(u)!==void 0&&B(()=>t.onResize?.({size:Number(z(u).toFixed(1))}))});var f=DR();bs(f,()=>({...o,id:n,role:`none`,class:`sui resizable-pane ${t.class??``??``}`,[ws]:{"flex-basis":`${z(d)??``}%`,"flex-grow":`0`,"flex-shrink":`0`,"overflow-x":z(l)===`horizontal`?`auto`:void 0,"overflow-y":z(l)===`vertical`?`auto`:void 0}})),Eo(F(f),()=>t.children??E),D(f),U(e,f),k()}var DR,loe=o((()=>{Q(),Y(),sc(),DR=V(`<div><!></div>`)}));function OR(e,t){O(t,!0),K(e,jR);let n=J(t,`itemChunkSize`,3,25),r=N(Sr(n())),i=N(void 0),a=M(()=>t.items.length>z(r)),o=new IntersectionObserver(([{isIntersecting:e}])=>{e&&(z(a)?P(r,z(r)+n()):o.disconnect())});ei(()=>{z(i)&&o.observe(z(i))});var s=AR(),c=I(s);mo(c,19,()=>t.items.slice(0,z(r)),(e,n)=>e[t.itemKey]??n,(e,n,r)=>{var i=H();Eo(I(i),()=>t.renderItem,()=>z(n),()=>z(r)),U(e,i)});var l=L(c,2),u=e=>{var t=kR();Us(t,e=>P(i,e),()=>z(i)),U(e,t)};G(l,e=>{z(a)&&e(u)}),U(e,s),k()}var kR,AR,jR,uoe=o((()=>{Q(),Y(),kR=V(`<div role="none" class="spinner svelte-1c0wzz2"></div>`),AR=V(`<!> <!>`,1),jR={hash:`svelte-1c0wzz2`,code:`.spinner.svelte-1c0wzz2 {height:1px;}`}}));function MR(e,t){let n=Fa();O(t,!0),K(e,PR);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`searchIcon`,`closeIcon`,`onClear`]),d=N(void 0);var f={focus:()=>{z(d)?.focus()}},p=NR();let m;var h=F(p),g=F(h),_=e=>{var n=H();Eo(I(n),()=>t.searchIcon),U(e,n)},v=e=>{YF(e,{name:`search`})};G(g,e=>{t.searchIcon?e(_):e(v,-1)}),D(h);var y=L(h,2);xL(y,Zs({dir:`auto`},()=>u,{role:`searchbox`,get id(){return n},get flex(){return i()},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},inputmode:`search`,get element(){return z(d)},set element(e){P(d,e,!0)},get value(){return r()},set value(e){r(e)}}));var b=L(y,2),x=e=>{{let i=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.closeIcon),U(e,n)},a=e=>{YF(e,{name:`close`})};G(r,e=>{t.closeIcon?e(i):e(a,-1)}),U(e,n)},a=M(()=>X(`_sui.clear`));pI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{r(``),z(d)?.focus(),t.onClear?.()},startIcon:i,$$slots:{startIcon:!0}})}};return G(b,e=>{r()&&e(x)}),D(p),R(()=>{q(p,`role`,a()?void 0:`none`),m=cs(p,1,`sui search-bar ${t.class??``}`,`svelte-uliapr`,m,{flex:i(),disabled:o(),readonly:s()}),q(p,`hidden`,a()),q(p,`aria-hidden`,a())}),U(e,p),k(f)}var NR,PR,FR=o((()=>{Q(),Y(),Z(),bI(),XF(),TL(),NR=V(`<div><span role="none" class="svelte-uliapr"><!></span> <!> <!></div>`),PR={hash:`svelte-uliapr`,code:`.search-bar.svelte-uliapr {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.search-bar.flex.svelte-uliapr:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.search-bar.svelte-uliapr > span:where(.svelte-uliapr) {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;z-index:2;display:flex;align-items:center;justify-content:center;width:var(--sui-button-medium-height);height:var(--sui-button-medium-height);}.search-bar.svelte-uliapr .icon {font-size:calc(var(--sui-textbox-height) * 0.6);opacity:0.5;}.search-bar.svelte-uliapr > button {position:absolute;inset-block:0;inset-inline-start:auto;inset-inline-end:0;z-index:2;margin:0 !important;height:var(--sui-button-medium-height);}.search-bar.svelte-uliapr .label {--sui-textbox-singleline-padding: 0 36px;}.search-bar.svelte-uliapr .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.search-bar.svelte-uliapr input {z-index:1;padding:0 var(--sui-button-medium-height) !important;width:100%;}`}}));function doe(e,t){let n=Fa();O(t,!0),K(e,BR);let r=`[role="option"][aria-selected="true"]`,i=J(t,`value`,15),a=J(t,`hidden`,3,!1),o=J(t,`disabled`,3,!1),s=J(t,`readonly`,3,!1),c=J(t,`required`,3,!1),l=J(t,`invalid`,3,!1),u=J(t,`editable`,3,!0),d=J(t,`position`,3,`bottom-left`),f=J(t,`filterThreshold`,3,5),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`editable`,`position`,`filterThreshold`,`children`,`chevronIcon`,`onChange`]),m=N(!1),h=N(void 0),g=N(void 0),_=N(void 0),v=N(``),y=N(!1),b=N(``),x=N(!0),S=M(()=>z(h)??z(g)),C=()=>{let e=z(_)?.querySelector(`[role="option"][data-value="${i()}"]`);e&&(P(v,e.dataset.label||e.dataset.value||e.textContent||``,!0),e.getAttribute(`aria-selected`)!==`true`&&(z(_)?.querySelector(r)?.setAttribute(`aria-selected`,`false`),e.setAttribute(`aria-selected`,`true`)))},w=e=>{let n=NI(e);i(n.value),C(),t.onChange?.(new CustomEvent(`Change`,{detail:n}))};ei(()=>{z(_)&&globalThis.requestAnimationFrame(()=>{let e=z(_)?.querySelector(r);e&&w(e)})}),ei(()=>{i(),C()});var T=zR(),ee=I(T);bs(ee,()=>({...p,role:`none`,class:`sui combobox ${t.class??``}`,hidden:a(),[Cs]:{editable:u()}}),void 0,void 0,void 0,`svelte-13vy14`);var te=F(ee),ne=e=>{var t=IR();bs(t,()=>({...p,role:`combobox`,id:n,tabindex:o()?-1:0,"aria-controls":`${n}-popup`,"aria-expanded":z(m),"aria-hidden":a(),"aria-disabled":o(),"aria-readonly":s(),"aria-required":c(),"aria-invalid":l(),"aria-haspopup":`listbox`,[Cs]:{selected:i()!==void 0}}),void 0,void 0,void 0,`svelte-13vy14`);var r=F(t);rI(F(r),{children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>i()===void 0?X(`_sui.combobox.select_an_option`):z(v)]),U(e,n)},$$slots:{default:!0}}),D(r),D(t),Us(t,e=>P(h,e),()=>z(h)),U(e,t)},re=e=>{{let t=M(()=>i()===void 0?``:String(i()));xL(e,Zs(()=>p,{dir:`auto`,role:`combobox`,get id(){return n},get value(){return z(t)},get hidden(){return a()},get disabled(){return o()},get readonly(){return s()},get required(){return c()},get invalid(){return l()},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},"aria-haspopup":`listbox`,get element(){return z(g)},set element(e){P(g,e,!0)}}))}};G(te,e=>{u()?e(re,-1):e(ne)});var ie=L(te,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=>{YF(e,{name:`expand_more`})};G(r,e=>{t.chevronIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>!u()||s()||o()?-1:0),i=M(()=>z(m)?X(`_sui.collapse`):X(`_sui.expand`));pI(ie,{variant:`ghost`,iconic:!0,get hidden(){return a()},get disabled(){return o()},get tabindex(){return z(r)},get"aria-label"(){return z(i)},get"aria-controls"(){return`${n}-popup`},get"aria-expanded"(){return z(m)},onclick:e=>{e.preventDefault(),e.stopPropagation(),!o()&&!s()&&P(m,!z(m))},startIcon:e,$$slots:{startIcon:!0}})}D(ee),lI(L(ee,2),{get id(){return`${n}-popup`},class:`combobox`,get anchor(){return z(S)},get position(){return d()},touchOptimized:!0,onOpen:()=>{P(y,f()===-1?!1:(z(_)?.querySelectorAll(`[role="option"]`)?.length??0)>f(),!0),P(b,``)},get content(){return z(_)},set content(e){P(_,e,!0)},get open(){return z(m)},set open(e){P(m,e,!0)},children:(e,r)=>{var i=RR(),a=F(i),o=e=>{{let t=M(()=>X(`_sui.combobox.filter_options`));MR(e,{flex:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${n}-listbox`},onkeydown:e=>{[`ArrowUp`,`ArrowDown`,`Enter`].includes(e.key)&&(e.preventDefault(),z(_)?.querySelector(`.sui.listbox`)?.dispatchEvent(new KeyboardEvent(`keydown`,e)))},get value(){return z(b)},set value(e){P(b,e,!0)}})}};G(a,e=>{z(y)&&e(o)});var s=L(a,2);UL(s,{get id(){return`${n}-listbox`},class:`in-combobox`,get searchTerms(){return z(b)},onclick:e=>{e.target.matches(`[role="option"]`)&&w(e.target)},onFilter:e=>{P(x,!!e.detail.matched)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}});var c=L(s,2),l=e=>{var t=LR(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`_sui.combobox.no_matching_options`)]),U(e,t)};G(c,e=>{z(x)||e(l)}),D(i),U(e,i)},$$slots:{default:!0}}),U(e,T),k()}var IR,LR,RR,zR,BR,VR=o((()=>{Q(),Y(),Z(),PI(),bI(),XF(),KL(),FR(),TL(),iI(),fI(),IR=V(`<div><div role="none" class="label svelte-13vy14"><!></div></div>`),LR=V(`<div role="alert" class="no-options svelte-13vy14"> </div>`),RR=V(`<div role="none" class="combobox-inner svelte-13vy14"><!> <!> <!></div>`),zR=V(`<div><!> <!></div> <!>`,1),BR={hash:`svelte-13vy14`,code:`.combobox.svelte-13vy14 {margin:var(--sui-focus-ring-width);display:flex;align-items:center;position:relative;min-width:var(--sui-combobox-min-width, calc(var(--sui-option-height) * 5));}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14) {display:flex;align-items:center;border-width:1px;border-color:var(--sui-control-border-color);border-radius:var(--sui-textbox-border-radius);padding-block:0;padding-inline-start:calc(var(--sui-textbox-height) / 4);padding-inline-end:var(--sui-textbox-height);width:100%;height:var(--sui-textbox-height);color:var(--sui-control-foreground-color);background-color:var(--sui-disabled-background-color);font-family:var(--sui-control-font-family);font-size:var(--sui-control-font-size);line-height:var(--sui-control-line-height);-webkit-user-select:none;user-select:none;cursor:pointer;transition:all 200ms;}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14):not(.selected) {font-style:italic;}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14):is(:where(.svelte-13vy14):hover, :where(.svelte-13vy14):focus) {background-color:var(--sui-hover-background-color);}.combobox.svelte-13vy14 div[role=combobox][aria-invalid=true]:where(.svelte-13vy14) {border-color:var(--sui-error-border-color);}.combobox.svelte-13vy14 div[role=combobox]:where(.svelte-13vy14) .label:where(.svelte-13vy14) {width:100%;}.combobox.svelte-13vy14 .icon {font-size:var(--sui-font-size-xx-large);opacity:0.5;}.combobox.svelte-13vy14 > .icon {position:absolute;inset-block-start:8px;inset-inline-start:8px;z-index:1;}.combobox.svelte-13vy14 > button {position:absolute;inset-block-start:0;inset-inline-end:0;z-index:1;margin:0 !important;border-start-start-radius:0;border-end-start-radius:0;background-color:transparent !important;}.combobox.svelte-13vy14 > button[tabindex="-1"] {pointer-events:none;}.combobox.svelte-13vy14 :not(.editable) > button {background-color:transparent !important;}.combobox.svelte-13vy14 .text-input {margin:0 !important;width:100% !important;}.combobox.svelte-13vy14 input {padding-block:0;padding-inline:8px 32px;width:0;}.combobox.svelte-13vy14 + [role=listbox] {position:fixed;z-index:100;border-radius:var(--sui-control-medium-border-radius);box-shadow:0 8px 16px var(--sui-popup-shadow-color);overflow:auto;background-color:var(--sui-secondary-background-color);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);
668
+ /* Add .1s delay before the position can be determined */transition:opacity 100ms 100ms;}.combobox.svelte-13vy14 + [role=listbox]:not(.open) {opacity:0;pointer-events:none;}.combobox-inner.svelte-13vy14 {display:flex;flex-direction:column;overflow:hidden;}.combobox-inner.svelte-13vy14 .sui.search-bar {flex:none;}.combobox-inner.svelte-13vy14 .sui.listbox {flex:auto;overflow-y:auto;}.combobox-inner.svelte-13vy14 .no-options:where(.svelte-13vy14) {flex:none;display:flex;align-items:center;padding:var(--sui-option-padding);height:var(--sui-option-height);color:var(--sui-tertiary-foreground-color);}`}}));function foe(e){let t=e-1;return t*t*t+1}var poe=o((()=>{}));function moe(e,{from:t,to:n},r={}){var{delay:i=0,duration:a=e=>Math.sqrt(e)*120,easing:o=foe}=r,s=getComputedStyle(e),c=s.transform===`none`?``:s.transform,[l,u]=s.transformOrigin.split(` `).map(parseFloat);l/=e.clientWidth,u/=e.clientHeight;var d=hoe(e),f=e.clientWidth/n.width/d,p=e.clientHeight/n.height/d,m=t.left+t.width*l,h=t.top+t.height*u,g=n.left+n.width*l,_=n.top+n.height*u,v=(m-g)*f,y=(h-_)*p,b=t.width/n.width,x=t.height/n.height;return{delay:i,duration:typeof a==`function`?a(Math.sqrt(v*v+y*y)):a,easing:o,css:(e,t)=>`transform: ${c} translate(${t*v}px, ${t*y}px) scale(${e+t*b}, ${e+t*x});`}}function hoe(e){if(`currentCSSZoom`in e)return e.currentCSSZoom;for(var t=e,n=1;t!==null;)n*=+getComputedStyle(t).zoom,t=t.parentElement;return n}var goe=o((()=>{poe()}));function HR(e,t){O(t,!0);let n=J(t,`value`,15),r=J(t,`hidden`,3,!1),i=J(t,`disabled`,3,!1),a=J(t,`readonly`,3,!1),o=J(t,`required`,3,!1),s=J(t,`invalid`,3,!1),c=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);doe(e,Zs(()=>c,{get class(){return`sui select ${t.class??``}`},get hidden(){return r()},get disabled(){return i()},get readonly(){return a()},get required(){return o()},get invalid(){return s()},get onChange(){return t.onChange},editable:!1,get value(){return n()},set value(e){n(e)},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),k()}var UR=o((()=>{Q(),Y(),VR()}));function _oe(e,t){O(t,!0),K(e,KR);let n=J(t,`values`,31,()=>Sr([])),r=J(t,`max`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`values`,`options`,`max`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onAddValue`,`onRemoveValue`,`onReorder`]),u=M(()=>new Map(t.options.map(e=>[e.value,e]))),d=M(()=>Eh()?`ArrowRight`:`ArrowLeft`),f=M(()=>Eh()?`ArrowLeft`:`ArrowRight`),p=N(void 0),m=N(void 0),h=N(void 0),g=N(void 0),_=(e,r)=>{if(e===r)return;let i=[...n()],[a]=i.splice(e,1);i.splice(r,0,a),n(i),t.onReorder?.(new CustomEvent(`Reorder`,{detail:{values:i}}))},v=async(e,t)=>{_(e,t),await zi(),z(p)?.querySelectorAll(`.label[tabindex]`)?.[t]?.focus()};var y=GR();let b;var x=F(y);mo(x,30,n,e=>e,(e,r,i)=>{let s=M(()=>z(u).get(r)),c=M(()=>z(s)?.label||z(s)?.value||r);var l=WR();let p;var m=F(l),_=F(m,!0);D(m);var y=L(m,2),b=e=>{{let i=e=>{YF(e,{name:`close`})},s=M(()=>a()||o()),l=M(()=>X(`_sui.select_tags.remove_x`,{values:{name:z(c)}}));pI(e,{iconic:!0,size:`small`,get disabled(){return z(s)},get"aria-label"(){return z(l)},onclick:()=>{n(n().filter(e=>e!==r)),t.onRemoveValue?.(new CustomEvent(`RemoveValue`,{detail:{value:r}}))},startIcon:i,$$slots:{startIcon:!0}})}};G(y,e=>{z(s)&&e(b)}),D(l),R(()=>{q(l,`draggable`,!a()&&!o()),p=cs(l,1,`svelte-8yhcnv`,null,p,{"drag-source":z(h)===z(i),"drop-before":z(g)===z(i)&&z(h)!==z(i)&&z(h)!==z(i)-1,"drop-after":z(g)===n().length&&z(i)===n().length-1&&z(h)!==n().length-1}),q(m,`tabindex`,a()||o()?void 0:0),W(_,z(c))}),ba(`dragstart`,l,e=>{P(h,z(i),!0),e.dataTransfer&&(e.dataTransfer.setData(`text/plain`,z(c)),e.dataTransfer.effectAllowed=`move`)}),ba(`dragover`,l,e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`);let t=e.currentTarget.getBoundingClientRect();P(g,e.clientX<t.left+t.width/2===Eh()?z(i)+1:z(i),!0)}),ba(`drop`,l,async e=>{e.preventDefault();let t=z(h),n=z(g);P(h,void 0),P(g,void 0),t!==void 0&&n!==void 0&&n!==t&&n!==t+1&&await v(t,n>t?n-1:n)}),ba(`dragend`,l,()=>{P(h,void 0),P(g,void 0)}),xa(`keydown`,m,async e=>{let{key:t}=e,r=t===z(d)&&z(i)>0?z(i)-1:t===z(f)&&z(i)<n().length-1?z(i)+1:t===`Home`&&z(i)>0?0:t===`End`&&z(i)<n().length-1?n().length-1:-1;r!==-1&&(e.preventDefault(),await v(z(i),r))}),zo(l,()=>moe,()=>({duration:200})),U(e,l)}),D(x);var S=L(x,2),C=e=>{{let r=M(()=>a()||o());HR(e,Zs(()=>l,{get disabled(){return z(r)},get readonly(){return o()},get required(){return s()},get invalid(){return c()},onChange:()=>{z(m)&&(n([...n(),z(m)]),t.onAddValue?.(new CustomEvent(`AddValue`,{detail:{value:z(m)}})),P(m,void 0))},get value(){return z(m)},set value(e){P(m,e,!0)},children:(e,r)=>{var i=H();mo(I(i),17,()=>t.options,({label:e,value:t,searchValue:n})=>t,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).value,a=()=>z(t).searchValue;var o=H(),s=I(o),c=e=>{XL(e,{get label(){return r()},get value(){return i()},get searchValue(){return a()}})},l=M(()=>!n().includes(i()));G(s,e=>{z(l)&&e(c)}),U(e,o)}),U(e,i)},$$slots:{default:!0}}))}};G(S,e=>{(typeof r()!=`number`||n().length<r())&&n().length<t.options.length&&e(C)}),D(y),Us(y,e=>P(p,e),()=>z(p)),R(e=>{b=cs(y,1,`sui select-tags ${t.class??``}`,`svelte-8yhcnv`,b,{disabled:a()||o()}),q(y,`hidden`,i()),q(x,`aria-label`,e)},[()=>X(`_sui.select_tags.selected_options`)]),U(e,y),k()}var WR,GR,KR,voe=o((()=>{Q(),Y(),Z(),sc(),goe(),bI(),XF(),eR(),UR(),WR=V(`<span role="none"><span class="label svelte-8yhcnv" role="option" aria-selected="true"> </span> <!></span>`),GR=V(`<div role="none"><span role="listbox" aria-multiselectable="true" class="svelte-8yhcnv"></span> <!></div>`),KR={hash:`svelte-8yhcnv`,code:`.select-tags.svelte-8yhcnv {display:flex;flex-wrap:wrap;align-items:center;}.select-tags.disabled.svelte-8yhcnv {pointer-events:none;}.select-tags.disabled.svelte-8yhcnv > :where(.svelte-8yhcnv) {opacity:0.5;}.select-tags.svelte-8yhcnv span[role=listbox]:where(.svelte-8yhcnv) {display:contents;}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv) {display:inline-flex;align-items:center;position:relative;margin:var(--sui-focus-ring-width);padding:0;padding-inline-start:8px;border-radius:var(--sui-control-medium-border-radius);background-color:var(--sui-secondary-background-color);cursor:grab;outline:none;}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv):focus-within {outline:var(--sui-focus-ring-width) solid var(--sui-primary-accent-color-translucent);outline-offset:1px;}.select-tags.svelte-8yhcnv span[draggable].drag-source:where(.svelte-8yhcnv) {opacity:0.4;cursor:grabbing;}.select-tags.svelte-8yhcnv span[draggable].drop-before:where(.svelte-8yhcnv)::before, .select-tags.svelte-8yhcnv span[draggable].drop-after:where(.svelte-8yhcnv)::after {content:"";position:absolute;top:0;bottom:0;margin-left:-1px;border-radius:1px;width:4px;background-color:var(--sui-primary-accent-color);pointer-events:none;}.select-tags.svelte-8yhcnv span[draggable].drop-before:where(.svelte-8yhcnv)::before {inset-inline-start:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-8yhcnv span[draggable].drop-after:where(.svelte-8yhcnv)::after {inset-inline-end:calc(-1 * var(--sui-focus-ring-width) - 1px);}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv) .label:where(.svelte-8yhcnv) {outline:none;}.select-tags.svelte-8yhcnv span[draggable]:where(.svelte-8yhcnv) .icon {font-size:var(--sui-font-size-large);}`},Sa([`keydown`])}));function yoe(e,t){O(t,!0),K(e,XR);let n=J(t,`value`,15,0),r=J(t,`min`,3,0),i=J(t,`max`,3,100),a=J(t,`sliderLabel`,3,``),o=J(t,`values`,15,void 0),s=J(t,`sliderLabels`,3,void 0),c=J(t,`step`,3,1),l=J(t,`optionLabels`,19,()=>[]),u=J(t,`hidden`,3,!1),d=J(t,`disabled`,3,!1),f=J(t,`readonly`,3,!1),p=J(t,`invalid`,3,!1),m=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`min`,`max`,`sliderLabel`,`values`,`sliderLabels`,`step`,`optionLabels`,`class`,`hidden`,`disabled`,`readonly`,`invalid`,`children`,`onChange`]),h=M(()=>Array.isArray(o())),g=N(void 0),_=N(0),v=N(Sr([])),y=N(Sr([])),b=N(0),x=N(0),S=Sr([0,0]),C=N(!1),w=N(0),T=N(0),ee=e=>{let t=Eh()?z(_)-e:e;if(t<0||t>z(_))return;let r=z(v).findLastIndex(e=>e<=t),i=z(v).findIndex(e=>t<=e),a=Math.abs(z(v)[r]-t)<Math.abs(z(v)[i]-t)?r:i;S[z(T)]===z(v)[a]||z(h)&&(z(T)===0&&S[1]<=z(v)[a]||z(T)===1&&S[0]>=z(v)[a])||(z(h)?(o(o()[z(T)]=z(y)[a],!0),o([...o()])):n(z(y)[a]))},te=(e,t=0)=>{let{key:a,ctrlKey:s,metaKey:c,shiftKey:l,altKey:u}=e,p=l||u||s||c;if(d()||f()||p)return;let m=z(h)?o()[t]:n(),g=-1,_=Eh(),b=_?[`ArrowDown`,`ArrowRight`]:[`ArrowDown`,`ArrowLeft`],x=_?[`ArrowUp`,`ArrowLeft`]:[`ArrowUp`,`ArrowRight`];if(b.includes(a)&&(m>r()&&(g=z(y).indexOf(m)-1),e.preventDefault(),e.stopPropagation()),x.includes(a)&&(m<i()&&(g=z(y).indexOf(m)+1),e.preventDefault(),e.stopPropagation()),g>-1){if(z(h)&&(t===0&&S[1]<=z(v)[g]||t===1&&S[0]>=z(v)[g]))return;z(h)?(o(o()[t]=z(y)[g],!0),o([...o()])):n(z(y)[g])}},ne=e=>{let{screenX:t,pointerId:n}=e;if(d()||f()||!z(C)||n!==z(w))return;e.stopPropagation();let r=t-z(x);ee(z(b)+r)},re=e=>{let{pointerId:t}=e;if(!(d()||f()||!z(C)||t!==z(w))){if(e.stopPropagation(),e.target.matches(`.base-bar, .slider-bar`)){let t=z(g).getBoundingClientRect();ee(e.clientX-t.left)}P(C,!1),P(b,0),P(x,0),P(w,0),P(T,0),document.removeEventListener(`pointermove`,ne),document.removeEventListener(`pointerup`,re),document.removeEventListener(`pointercancel`,re)}},ie=(e,t=0)=>{let{clientX:n,screenX:r,pointerId:i}=e;d()||f()||(e.stopPropagation(),P(C,!0),P(b,n-z(g).getBoundingClientRect().left),P(x,r,!0),P(w,i,!0),P(T,t,!0),document.addEventListener(`pointermove`,ne),document.addEventListener(`pointerup`,re),document.addEventListener(`pointercancel`,re))},ae=()=>{if(z(h)){let[e,n]=o();S[0]=z(v)[z(y).indexOf(e)],S[1]=z(v)[z(y).indexOf(n)],t.onChange?.({values:o()})}else S[0]=z(v)[z(y).indexOf(n())],t.onChange?.({value:n()})},oe=()=>{if(!z(g))return;P(_,z(g).clientWidth,!0);let e=(i()-r())/c()+1,t=z(_)/(e-1),n=Array.from({length:e});P(y,n.map((e,t)=>t*c()+r(),10),!0),P(v,n.map((e,n)=>n*t),!0),ae()};ac(()=>{let e=new ResizeObserver(()=>oe()),t=globalThis.matchMedia(`(pointer: coarse)`);return e.observe(z(g)),t.addEventListener(`change`,oe),oe(),()=>{e.disconnect(),t.removeEventListener(`change`,oe)}}),ei(()=>{n(),o(),ae()});var se=YR();ba(`click`,Ir.body,()=>{P(C,!1)}),bs(se,()=>({...m,role:`none`,class:`sui slider ${t.class??``}`,hidden:u(),[Cs]:{disabled:d(),readonly:f(),invalid:p()}}),void 0,void 0,void 0,`svelte-7mjbzr`);var ce=F(se),le=L(F(ce),2);let ue;var de=L(le,2);let E;var fe=L(de,2),pe=e=>{var t=qR();let n;R(()=>{q(t,`tabindex`,d()?-1:0),q(t,`aria-label`,s()?.[1]),q(t,`aria-hidden`,u()),q(t,`aria-disabled`,d()),q(t,`aria-readonly`,f()),q(t,`aria-invalid`,p()),q(t,`aria-valuemin`,r()),q(t,`aria-valuemax`,i()),q(t,`aria-valuenow`,o()?.[1]),n=ds(t,``,n,{"inset-inline-start":`${S[1]??``}px`})}),xa(`pointerdown`,t,e=>ie(e,1)),xa(`keydown`,t,e=>te(e,1)),U(e,t)};G(fe,e=>{z(h)&&e(pe)});var me=L(fe,2),he=e=>{var t=H();mo(I(t),19,l,(e,t)=>`${t}-${e}`,(e,t,n)=>{var r=JR();let i;var a=F(r,!0);D(r),R(()=>{i=ds(r,``,i,{"inset-inline-start":`${z(_)/(l().length-1)*z(n)}px`}),W(a,z(t))}),U(e,r)}),U(e,t)};G(me,e=>{l().length&&e(he)}),D(ce),Us(ce,e=>P(g,e),()=>z(g)),D(se),R(()=>{ue=ds(le,``,ue,{"inset-inline-start":`${(z(h)?S[0]:0)??``}px`,width:`${(z(h)?S[1]-S[0]:S[0])??``}px`}),q(de,`tabindex`,d()?-1:0),q(de,`aria-label`,z(h)?s()?.[0]:a()),q(de,`aria-hidden`,u()),q(de,`aria-disabled`,d()),q(de,`aria-readonly`,f()),q(de,`aria-invalid`,p()),q(de,`aria-valuemin`,r()),q(de,`aria-valuemax`,i()),q(de,`aria-valuenow`,z(h)?o()?.[0]:n()),E=ds(de,``,E,{"inset-inline-start":`${S[0]??``}px`})}),xa(`pointerdown`,ce,e=>ie(e)),xa(`pointerdown`,de,e=>ie(e,0)),xa(`keydown`,de,e=>te(e,0)),U(e,se),k()}var qR,JR,YR,XR,boe=o((()=>{Q(),Y(),Z(),sc(),qR=V(`<div role="slider" class="svelte-7mjbzr"></div>`),JR=V(`<span role="none" class="label svelte-7mjbzr"> </span>`),YR=V(`<div><div role="none" class="base svelte-7mjbzr"><div role="none" class="base-bar svelte-7mjbzr"></div> <div class="slider-bar svelte-7mjbzr"></div> <div role="slider" class="svelte-7mjbzr"></div> <!> <!></div></div>`),XR={hash:`svelte-7mjbzr`,code:`.slider.svelte-7mjbzr {position:relative;display:inline-block;margin:var(--sui-focus-ring-width);padding:4px 6px;touch-action:none;}.slider.svelte-7mjbzr:hover .base-bar:where(.svelte-7mjbzr) {background-color:var(--sui-hover-background-color);}.slider.svelte-7mjbzr:active .base-bar:where(.svelte-7mjbzr) {background-color:var(--sui-active-background-color);}.base.svelte-7mjbzr {position:relative;width:var(--sui-slider-base-width, 240px);height:calc(var(--sui-checkbox-height) / 2);cursor:pointer;}.base-bar.svelte-7mjbzr {border-width:1px;border-style:solid;border-color:var(--sui-control-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-slider-background-color, var(--sui-secondary-background-color));transition:all 200ms;width:100%;height:100%;}.slider-bar.svelte-7mjbzr {position:absolute;top:0;height:calc(var(--sui-checkbox-height) / 2);border-radius:var(--sui-checkbox-height);background-color:var(--sui-primary-accent-color-light);}.invalid.svelte-7mjbzr .slider-bar:where(.svelte-7mjbzr) {background-color:var(--sui-error-border-color);}[role=slider].svelte-7mjbzr {position:absolute;top:0;border:3px solid var(--sui-primary-accent-color-light);border-radius:var(--sui-checkbox-height);width:calc(var(--sui-checkbox-height) - 2px);height:calc(var(--sui-checkbox-height) - 2px);background-color:var(--sui-primary-accent-color-inverted);cursor:pointer;}[role=slider].svelte-7mjbzr:dir(ltr) {transform:translate(calc((var(--sui-checkbox-height) / 2 - 1px) * -1), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}[role=slider].svelte-7mjbzr:dir(rtl) {transform:translate(calc(var(--sui-checkbox-height) / 2 - 1px), calc((var(--sui-checkbox-height) / 4 - 1px) * -1));}.invalid.svelte-7mjbzr [role=slider]:where(.svelte-7mjbzr) {border-color:var(--sui-error-border-color);}.label.svelte-7mjbzr {position:absolute;top:calc(var(--sui-checkbox-height) / 2 + 8px);font-size:var(--sui-font-size-x-small);}.label.svelte-7mjbzr:dir(ltr) {transform:translateX(-50%);}.label.svelte-7mjbzr:dir(rtl) {transform:translateX(50%);}`},Sa([`pointerdown`,`keydown`])}));function ZR(e,t){O(t,!0),K(e,$R);let n=J(t,`checked`,15),r=J(t,`label`,3,void 0),i=J(t,`hidden`,3,!1),a=J(t,`disabled`,3,!1),o=J(t,`readonly`,3,!1),s=J(t,`required`,3,!1),c=J(t,`invalid`,3,!1),l=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`checked`,`label`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`onChange`]);var u=QR(),d=()=>{!a()&&!o()&&(n(!n()),t.onChange?.(new CustomEvent(`Change`,{detail:{checked:n()}})))};bs(u,()=>({...l,role:`switch`,class:`sui switch ${t.class??``}`,type:`button`,hidden:i(),disabled:a()||void 0,"aria-checked":n(),"aria-hidden":i(),"aria-disabled":a(),"aria-readonly":o(),"aria-required":s(),"aria-invalid":c(),onclick:d}),void 0,void 0,void 0,`svelte-7ihb69`);var f=L(F(u),2),p=e=>{var t=Pa();R(()=>W(t,r())),U(e,t)},m=e=>{var n=H();Eo(I(n),()=>t.children??E),U(e,n)};G(f,e=>{r()?e(p):e(m,-1)}),D(u),U(e,u),k()}var QR,$R,xoe=o((()=>{Q(),Y(),QR=V(`<button><span role="none" class="svelte-7ihb69"></span> <!></button>`),$R={hash:`svelte-7ihb69`,code:`button.svelte-7ihb69 {display:inline-flex;align-items:center;gap:8px;margin:var(--sui-focus-ring-width);border-width:0;border-style:solid;border-color:transparent;padding:0;color:var(--sui-control-foreground-color);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;-webkit-user-select:none;user-select:none;}button[aria-invalid=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-error-border-color) !important;}button:hover[aria-checked=false].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-hover-background-color);}button:hover[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-primary-accent-color-light);}button:active[aria-checked=false].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-active-background-color);}button:active[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-primary-accent-color-dark);}button.svelte-7ihb69:focus-visible {outline:0;}button.svelte-7ihb69:focus-visible span:where(.svelte-7ihb69) {outline-color:var(--sui-primary-accent-color-translucent);}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69) {background-color:var(--sui-primary-accent-color);border-color:transparent;}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69)::before {--translateX: var(--sui-checkbox-height) * 2 - var(--sui-checkbox-height);border-color:var(--sui-primary-accent-color);background-color:var(--sui-primary-accent-color-inverted);}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69):dir(ltr)::before {transform:translateX(calc(var(--translateX)));}button[aria-checked=true].svelte-7ihb69 span:where(.svelte-7ihb69):dir(rtl)::before {transform:translateX(calc((var(--translateX)) * -1));}span.svelte-7ihb69 {position:relative;width:calc(var(--sui-checkbox-height) * 2);height:var(--sui-checkbox-height);padding:0 2px;display:inline-flex;align-items:center;border-width:1.5px;border-style:solid;border-color:var(--sui-checkbox-border-color);border-radius:var(--sui-checkbox-height);background-color:var(--sui-control-background-color);transition:all 200ms;}span.svelte-7ihb69::before {display:inline-block;width:calc(var(--sui-checkbox-height) - 6px);height:calc(var(--sui-checkbox-height) - 6px);border-radius:var(--sui-checkbox-height);background-color:var(--sui-checkbox-border-color);transition:all 200ms;content:"";}`}}));function ez(e,t){K(e,nz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=tz();bs(r,()=>({...n,role:`cell`,class:`sui table-cell ${t.class??``}`}),void 0,void 0,void 0,`svelte-1uchqzk`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var tz,nz,Soe=o((()=>{Q(),Y(),tz=V(`<div><!></div>`),nz={hash:`svelte-1uchqzk`,code:`.table-cell.svelte-1uchqzk {display:table-cell;}`}}));function Coe(e,t){K(e,iz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=rz();bs(r,()=>({...n,role:`row`,class:`sui table-row ${t.class??``}`}),void 0,void 0,void 0,`svelte-nxk0qg`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var rz,iz,woe=o((()=>{Q(),Y(),rz=V(`<div><!></div>`),iz={hash:`svelte-nxk0qg`,code:`.table-row.svelte-nxk0qg {display:table-row;height:var(--sui-primary-row-height);}`}}));function Toe(e,t){K(e,oz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=az();bs(r,()=>({...n,role:`table`,class:`sui table ${t.class??``}`}),void 0,void 0,void 0,`svelte-zssm97`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var az,oz,Eoe=o((()=>{Q(),Y(),az=V(`<div><!></div>`),oz={hash:`svelte-zssm97`,code:`.table.svelte-zssm97 {display:table;margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.table.data.svelte-zssm97 {border-collapse:collapse;}.table.data.svelte-zssm97 :is(.table-col-header, .table-row-header, .table-cell) {border:1px solid var(--sui-secondary-border-color);padding:8px 8px;}`}}));function Doe(e,t){O(t,!0),K(e,cz);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`name`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`name`,`children`,`onChange`]),s=N(void 0),c=N(void 0),l=()=>{globalThis.requestAnimationFrame(()=>{let e=z(s)?.querySelector(`[role="tab"][aria-selected="true"]`);if(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;P(c,Object.entries({top:t,left:n,width:r,height:i}).map(([e,t])=>`${e}: ${t}px`).join(`; `),!0)}else P(c,void 0)})};ac(()=>{let e=new ResizeObserver(()=>{l()});return e.observe(z(s)),()=>{e.disconnect()}});var u=sz(),d=()=>{l()},f=e=>{l(),t.onChange?.(e)};bs(u,()=>({...o,role:`tablist`,class:`sui tab-list ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i(),"data-name":a()||void 0,onInitialized:d,onChange:f}),void 0,void 0,void 0,`svelte-pli61r`);var p=F(u);Eo(F(p),()=>t.children??E),D(p);var m=L(p,2);D(u),Us(u,e=>P(s,e),()=>z(s)),Xo(u,zI),R(()=>{p.inert=r(),ds(m,z(c))}),U(e,u),k()}var sz,cz,Ooe=o((()=>{Q(),Y(),sc(),BI(),sz=V(`<div><div role="none" class="inner svelte-pli61r"><!></div> <div role="none" class="indicator svelte-pli61r"></div></div>`),cz={hash:`svelte-pli61r`,code:`.tab-list.svelte-pli61r {flex:none;position:relative;display:flex;align-items:center;margin:var(--sui-tab-list-margin, var(--sui-focus-ring-width));border-color:var(--sui-tab-list-border-color, var(--sui-control-border-color));border-radius:var(--sui-tab-list-border-radius, 0);background-color:var(--sui-tab-list-background-color, transparent);}.tab-list[aria-orientation=horizontal].svelte-pli61r {gap:var(--sui-horizontal-tab-list-gap, var(--sui-tab-list-gap, 8px));margin-block:var(--sui-horizontal-tab-list-margin-block, 0 32px);margin-inline:var(--sui-horizontal-tab-list-margin-inline, 0);border-block-width:var(--sui-horizontal-tab-list-border-block-width, 0 1px);border-inline-width:var(--sui-horizontal-tab-list-border-inline-width, 0 0);padding:var(--sui-horizontal-tab-list-padding, var(--sui-tab-list-padding, 0 16px));}.tab-list[aria-orientation=horizontal].svelte-pli61r button {width:var(--sui-horizontal-tab-width, var(--sui-tab-width, auto));height:var(--sui-horizontal-tab-height, var(--sui-tab-height, 100%));justify-content:var(--sui-horizontal-tab-justify-content, center);}.tab-list[aria-orientation=horizontal].svelte-pli61r .indicator:where(.svelte-pli61r) {border-block-width:var(--sui-horizontal-tab-list-indicator-border-block-width, 0 2px);border-inline-width:var(--sui-horizontal-tab-list-indicator-border-inline-width, 0 0);}.tab-list[aria-orientation=vertical].svelte-pli61r {gap:var(--sui-vertical-tab-list-gap, var(--sui-tab-list-gap, 8px));flex-direction:column;margin-block:var(--sui-vertical-tab-list-margin-block, 0);margin-inline:var(--sui-vertical-tab-list-margin-inline, 0 32px);border-block-width:var(--sui-vertical-tab-list-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-border-inline-width, 0 1px);padding:var(--sui-vertical-tab-list-padding, var(--sui-tab-list-padding, 8px 0));width:var(--sui-vertical-tab-list-width, auto);}.tab-list[aria-orientation=vertical].svelte-pli61r button {justify-content:var(--sui-vertical-tab-justify-content, flex-start);padding-inline-end:32px;width:var(--sui-vertical-tab-width, var(--sui-tab-width, 100%));height:var(--sui-vertical-tab-height, var(--sui-tab-height, auto));}.tab-list[aria-orientation=vertical].svelte-pli61r .indicator:where(.svelte-pli61r) {border-block-width:var(--sui-vertical-tab-list-indicator-border-block-width, 0 0);border-inline-width:var(--sui-vertical-tab-list-indicator-border-inline-width, 0 2px);}.tab-list.svelte-pli61r button {position:relative;z-index:1;border-color:transparent;margin:0 !important;border-radius:var(--sui-tab-border-radius, 0);font-family:var(--sui-tab-font-family, var(--sui-control-font-family, inherit));font-size:var(--sui-tab-font-size, var(--sui-control-font-size, inherit));font-weight:var(--sui-tab-font-weight, var(--sui-control-font-weight, var(--sui-font-weight-normal, normal)));}.inner.svelte-pli61r {display:contents;}.indicator.svelte-pli61r {position:absolute;z-index:0;inset:auto;border-radius:var(--sui-tab-list-indicator-border-radius, 0);border-color:var(--sui-tab-list-indicator-border-color, var(--sui-primary-accent-color-light));background-color:var(--sui-tab-list-indicator-background-color, transparent);box-shadow:var(--sui-tab-list-indicator-box-shadow, none);pointer-events:none;transition:var(--sui-tab-list-indicator-transition, all 200ms);}`}}));function koe(e,t){K(e,uz);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`children`]);var r=lz();bs(r,()=>({...n,role:`tabpanel`,class:`sui tab-panel ${t.class??``}`}),void 0,void 0,void 0,`svelte-1a9c1n5`),Eo(F(r),()=>t.children??E),D(r),U(e,r)}var lz,uz,Aoe=o((()=>{Q(),Y(),lz=V(`<div><!></div>`),uz={hash:`svelte-1a9c1n5`,code:`.tab-panel.svelte-1a9c1n5 {flex:auto;transition:all 200ms;}.tab-panel[aria-hidden=true].svelte-1a9c1n5, .tab-panel.svelte-1a9c1n5:not([aria-hidden]) {display:none;}`}}));function joe(e,t){let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`selected`,3,!1),a=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`selected`,`children`,`startIcon`,`endIcon`]);pI(e,Zs(()=>a,{role:`tab`,get class(){return`sui tab ${t.class??``}`},get hidden(){return n()},get disabled(){return r()},get"aria-selected"(){return i()},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();Eo(I(n),()=>t.endIcon??E),U(e,n)},$$slots:{startIcon:!0,default:!0,endIcon:!0}}))}var Moe=o((()=>{Q(),Y(),bI()}));function dz(e,t){O(t,!0),K(e,pz);let n=J(t,`show`,15,!1),r=J(t,`id`,3,void 0),i=J(t,`duration`,3,5e3),a=J(t,`position`,7,`auto`),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`show`,`id`,`duration`,`position`,`children`]),s=N(void 0),c=N(void 0),l=N(void 0),u=N(0);ac(()=>(P(c,document.querySelector(`.sui.toast-base.enabled`)??void 0,!0),z(c)?z(s)?.remove():(P(c,z(s),!0),z(c)&&(z(c).classList.add(`enabled`),(document.querySelector(`.sui.app-shell`)??document.body).appendChild(z(c)),z(c).showPopover&&(z(c).popover=`manual`,z(c).showPopover()))),()=>{z(l)?.remove()})),ac(()=>{if(a()!==`auto`)return;let e=globalThis.matchMedia(`(width < 1024px)`),t=()=>{a(e.matches?`bottom-center`:`bottom-${document.dir===`rtl`?`left`:`right`}`)};return t(),e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}),ei(()=>{z(c)&&z(l)&&z(c).appendChild(z(l))}),ei(()=>{r(),n(),i(),B(()=>{globalThis.clearTimeout(z(u))}),n()&&i()&&P(u,globalThis.setTimeout(()=>{n(!1)},i()),!0)});var d=fz(),f=I(d);Us(f,e=>P(s,e),()=>z(s));var p=L(f,2);bs(p,()=>({...o,class:`sui toast ${a()??``}`,"aria-hidden":!n()}),void 0,void 0,void 0,`svelte-16rob9r`),Eo(F(p),()=>t.children??E),D(p),Us(p,e=>P(l,e),()=>z(l)),U(e,d),k()}var fz,pz,mz=o((()=>{Q(),Y(),sc(),fz=V(`<div role="none" class="sui toast-base svelte-16rob9r"></div> <div><!></div>`,1),pz={hash:`svelte-16rob9r`,code:`.toast-base.svelte-16rob9r {position:fixed;inset:16px;z-index:99999;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;gap:8px;margin:0;border:0;padding:0;width:auto;height:auto;background-color:transparent;font-family:var(--sui-font-family-default);font-size:var(--sui-font-size-default);font-weight:var(--sui-font-weight-normal, normal);text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none;}body:has(.sui.bottom-navigation:not([inert]:not([hidden]))) .toast-base {bottom:calc(var(--sui-bottom-navigation-height) + 16px);}.toast.svelte-16rob9r {position:absolute;width:max-content;max-width:80dvw;box-shadow:0 8px 16px var(--sui-popup-shadow-color);opacity:1;transition-duration:250ms;will-change:opacity;}.toast[aria-hidden=true].svelte-16rob9r {display:block;opacity:0;}.toast.top-left.svelte-16rob9r {inset-block-start:0;inset-block-end:auto;inset-inline-start:0;inset-inline-end:auto;}.toast.top-center.svelte-16rob9r {inset-block-start:0;inset-block-end:auto;inset-inline-start:50%;inset-inline-end:auto;}.toast.top-center.svelte-16rob9r:dir(ltr) {transform:translateX(-50%);}.toast.top-center.svelte-16rob9r:dir(rtl) {transform:translateX(50%);}.toast.top-right.svelte-16rob9r {inset-block-start:0;inset-block-end:auto;inset-inline-start:auto;inset-inline-end:0;}.toast.bottom-left.svelte-16rob9r {inset-block-start:auto;inset-block-end:0;inset-inline-start:0;inset-inline-end:auto;}.toast.bottom-center.svelte-16rob9r {inset-block-start:auto;inset-block-end:0;inset-inline-start:50%;inset-inline-end:auto;}.toast.bottom-center.svelte-16rob9r:dir(ltr) {transform:translateX(-50%);}.toast.bottom-center.svelte-16rob9r:dir(rtl) {transform:translateX(50%);}.toast.bottom-right.svelte-16rob9r {inset-block-start:auto;inset-block-end:0;inset-inline-start:auto;inset-inline-end:0;}`}})),hz=s(((e,t)=>{
669
669
  /**
670
670
  * Prism: Lightweight, robust, elegant syntax highlighting
671
671
  *
@@ -712,12 +712,12 @@ _$3_$4`).replace(/(\s+)\*\*([^*\n]+?)\n([^*\n]+?)\*\*(\s+)/gm,`$1**$2**
712
712
  **$3**$4`).replace(/(\s+)~~([^~\n]+?)\n([^~\n]+?)~~(\s+)/gm,`$1~~$2~~
713
713
  ~~$3~~$4`).replace(/(\s+)`([^`\n]+?)\n([^`\n]+?)`(\s+)/gm,"$1`$2`\n`$3`$4"),FQ=e=>e.match(/^\s{2}(?:-|\+|\*|\d+\.)\s/m)?e.replace(/^(\s+)(-|\+|\*|\d+\.)/gm,(e,t,n)=>`${` `.repeat(t.length*2)}${n}`):e})),IQ,Cle=o((()=>{gJ(),IQ={dependencies:[hJ],export:e=>Lse(e)?`***`:null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=Gq();r||e.getNextSibling()!==null?e.replace(i):e.insertBefore(i),i.selectNext()},type:`element`}}));function wle(e){let t=e.getFirstChild();return KZ(t)?t.getChildrenSize():0}var LQ,RQ,zQ,BQ,VQ,Tle=o((()=>{zZ(),EQ(),iq(),LQ=/^(?:\|)(.+)(?:\|)\s?$/,RQ=/^(\| ?:?-*:? ?)+\|\s?$/,zQ=e=>{e=e.replace(/\\n/g,`
714
714
  `);let t=HZ(_Q.NO_STATUS);return XX(e,RZ,t),t},BQ=e=>{let[,t]=e.match(LQ)??[];return t?t.split(`|`).map(e=>zQ(e)):null},VQ={dependencies:[TQ,yQ,vQ],export:e=>{if(!hQ(e))return null;let t=[];return e.getChildren().forEach(e=>{let n=[];if(!KZ(e))return;let r=!1;e.getChildren().forEach(e=>{UZ(e)&&(n.push(ZX(RZ,e).replace(/\n/g,`\\n`).trim()),e.__headerState===_Q.ROW&&(r=!0))}),t.push(`| ${n.join(` | `)} |`),r&&t.push(`| ${n.map(()=>`---`).join(` | `)} |`)}),t.join(`
715
- `)},regExp:LQ,replace:(e,t,[n])=>{if(RQ.test(n)){let t=e.getPreviousSibling();if(!t||!hQ(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!KZ(r))return;r.getChildren().forEach(e=>{UZ(e)&&e.setHeaderStyles(_Q.ROW,_Q.ROW)}),e.remove();return}let r=BQ(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!NV(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!OB(e))break;let t=BQ(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=mQ();i.forEach(e=>{let t=GZ();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:zQ(``))});let c=e.getPreviousSibling();hQ(c)&&wle(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})),HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ=o((()=>{hz(),QJ(),ZJ(),$J(),gJ(),hce(),fY(),MY(),zZ(),LX(),EQ(),Tq(),tS(),iq(),HQ=l(DQ(),1),NQ(),Sle(),Cle(),Tle(),Uw(),UQ=[...RZ,IQ,VQ],WQ=`https://unpkg.com/prismjs@1.30.0`,GQ={namespace:`editor`,nodes:[IX,FX,cY,OY,DY,FJ,IJ,hJ,TQ,vQ,yQ],theme:{text:{italic:`italic`,strikethrough:`strikethrough`},list:{nested:{listitem:`nested`}},code:`code-block`,codeHighlight:{atrule:`token atrule`,attr:`token attr`,boolean:`token boolean`,builtin:`token builtin`,cdata:`token cdata`,char:`token char`,class:`token class`,"class-name":`token class-name`,comment:`token comment`,constant:`token constant`,deleted:`token deleted`,doctype:`token doctype`,entity:`token entity`,function:`token function`,important:`token important`,inserted:`token inserted`,keyword:`token keyword`,namespace:`token namespace`,number:`token number`,operator:`token operator`,prolog:`token prolog`,property:`token property`,punctuation:`token punctuation`,regex:`token regex`,selector:`token selector`,string:`token string`,symbol:`token symbol`,tag:`token tag`,url:`token url`,variable:`token variable`}}},KQ=()=>{let e=XB();if(!FB(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=kQ.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof jK?t:vq(t,jK),nY(n)&&(r.push(`link`),n=vq(n,jK)),SY(n)&&(n=vq(n,OY)));let i=(()=>{if(!n)return`paragraph`;if(xX(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(EY(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(_X(n))return`blockquote`;if(CJ(n)||AJ(n))return`code-block`;let e=n.getType();return jQ.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},qQ=e=>{e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:ZX(UQ.filter(({tag:e})=>e!==`*`)).replace(/\\([_\\])/g,`$1`).replace(/&#32;/g,` `),selection:KQ()}}))},JQ=({components:e=[],isCodeEditor:t=!1,defaultLanguage:n=`plain`})=>{e.forEach(({node:e,transformer:t})=>{GQ.nodes.unshift(e),UQ.unshift(t)});let r=FV(GQ);return rle(r),uce(r),pce(r,mce(),1e3),lce(r,{defaultLanguage:n,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:XJ.$tokenize}),r.registerCommand(uY,e=>(_ce(typeof e==`string`?e:null),!0),2),r.registerCommand(AY,()=>(gY(`bullet`),!0),2),r.registerCommand(jY,()=>(gY(`number`),!0),2),r.registerCommand(iG,()=>Tce(),2),r.registerUpdateListener(()=>{r?.isComposing()||(async()=>{await eS(100),r.update(()=>{if(t){let e=lH(),t=e.getChildren();if(t.length===1&&!CJ(t[0])&&t[0].remove(),t.length===0){let t=SJ();t.setLanguage(n),e.append(t)}}qQ(r)})})()}),r.registerRootListener(e=>{e&&e.addEventListener(`keydown`,e=>{r.update(()=>{if(e.key===`Tab`){let t=XB();if(!FB(t))return;let n=t.anchor.getNode(),i=n instanceof jK?n:vq(n,jK);SY(i)&&i.canIndent()&&(e.shiftKey?i.getIndent()>0&&(e.preventDefault(),r.dispatchCommand(OG,void 0)):(e.preventDefault(),r.dispatchCommand(DG,void 0)))}})})}),r},YQ=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(HQ.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await Hw(()=>import(`${WQ}/components/prism-${t}.min.js`),[])}catch{}},XQ=async(e,t)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>YQ(e))),t=PQ(t),t=FQ(t),new Promise((n,r)=>{e.update(()=>{try{XX(t,UQ),n(void 0)}catch(e){r(Error(`Failed to convert Markdown`,{cause:e}))}})})),ZQ=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})}));function $Q(e,t){O(t,!0),K(e,t$);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),c=Lt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));ei(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};ac(()=>(c.editor=JQ(c.config),z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f)})),ei(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=e$();bs(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[Cs]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-5omf3m`),Us(p,e=>P(l,e),()=>z(l)),U(e,p),k()}var e$,t$,n$=o((()=>{Q(),Y(),sc(),QQ(),e$=V(`<div></div>`),t$={hash:`svelte-5omf3m`,code:`.lexical-root.svelte-5omf3m {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:8em;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);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-5omf3m:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-5omf3m {padding:0;}.lexical-root.code.svelte-5omf3m .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-5omf3m:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-5omf3m {border-color:var(--sui-error-border-color);}.lexical-root.svelte-5omf3m :first-child {margin-top:0;}.lexical-root.svelte-5omf3m :last-child {margin-bottom:0;}.lexical-root.svelte-5omf3m strong.italic {font-style:italic;}.lexical-root.svelte-5omf3m .strikethrough {text-decoration:line-through;}.lexical-root.svelte-5omf3m li.nested {list-style-type:none;}.lexical-root.svelte-5omf3m .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-5omf3m .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-5omf3m .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-5omf3m .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-5omf3m [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-5omf3m :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-5omf3m hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-5omf3m hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.comment, .prolog, .doctype, .cdata) {color:slategray;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token.punctuation {color:#999;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token.namespace {opacity:0.7;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.property, .tag, .boolean, .number, .constant, .symbol, .deleted) {color:#905;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.selector, .attr-name, .string, .char, .builtin, .inserted) {color:#690;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.operator, .entity, .url), :root[data-theme=light] .lexical-root.svelte-5omf3m .language-css .token.string, :root[data-theme=light] .lexical-root.svelte-5omf3m .style .token.string {color:#9a6e3a;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.atrule, .attr-value, .keyword) {color:#07a;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.function, .class-name) {color:#dd4a68;}:root[data-theme=light] .lexical-root.svelte-5omf3m .token:is(.regex, .important, .variable) {color:#e90;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.comment, .block-comment, .prolog, .doctype, .cdata) {color:#999;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.punctuation {color:#ccc;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.tag, .attr-name, .namespace, .deleted) {color:#e2777a;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.function-name {color:#6196cc;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.boolean, .number, .function) {color:#f08d49;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.property, .class-name, .constant, .symbol) {color:#f8c555;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.selector, .important, .atrule, .keyword, .builtin) {color:#cc99cd;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.string, .char, .attr-value, .regex, .variable) {color:#7ec699;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.operator, .entity, .url) {color:#67cdcc;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token:is(.important, .bold) {font-weight:bold;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.italic {font-style:italic;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.entity {cursor:help;}:root[data-theme=dark] .lexical-root.svelte-5omf3m .token.inserted {color:green;}`}})),r$,i$=o((()=>{Y(),sI(),QQ(),r$=()=>{let e=aI(`editor`),t=N(!1),n=N(void 0),r=N(Sr({modes:[],enabledButtons:[],components:[],isCodeEditor:!1})),i=N(``),a=N(Sr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),o=N(!0),s=N(!1),c=N(!1),l=async()=>{if(!z(n)||!z(t))return;let e=z(i);try{await XQ(z(n),z(i)||``)}catch(t){P(s,!0),P(i,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){P(n,e,!0)},get initialized(){return z(t)},set initialized(e){P(t,e,!0)},get config(){return z(r)},set config(e){P(r,e,!0),P(o,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(i)},set inputValue(e){let t=z(i)!==e;t&&P(i,e,!0),z(o)&&(t||z(n)?.getEditorState().isEmpty())&&l()},get selection(){return z(a)},set selection(e){P(a,e,!0)},get useRichText(){return z(o)},set useRichText(e){P(o,e,!0)},get hasConverterError(){return z(s)},set hasConverterError(e){P(s,e,!0),z(s)&&(P(o,!1),P(c,!0))},get showConverterError(){return z(c)},set showConverterError(e){P(c,e,!0)},editorId:e,convertMarkdown:l}}}));function a$(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=Object.entries(o$.default.languages).filter(([,e])=>`title`in e).map(([e,t])=>{let{title:n,aliasTitles:r,alias:i}=t,a=[];return i&&!r&&(a=Array.isArray(i)?i:[i]),[{key:e,label:n,aliases:a},...Object.entries(r??{}).map(([e,t])=>({key:e,label:t,aliases:[]}))]}).flat(1).sort((e,t)=>e.label.localeCompare(t.label)),i=Lt(`editorStore`),a=N(`plain`);ei(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?lH().getChildren()[0]:rH(i.selection.blockNodeKey);CJ(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>X(`_sui.text_editor.language`));HR(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await ZQ(i.editor),i.selection?.blockNodeKey&&(await YQ(e),i.editor.update(()=>{let t=rH(i.selection.blockNodeKey);CJ(t)&&(t.setLanguage(e),P(a,e,!0))})))},children:(e,t)=>{var n=s$(),i=I(n);{let e=M(()=>X(`_sui.text_editor.plain_text`));XL(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}mo(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=M(()=>n()===z(a)||i().includes(z(a)));XL(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),U(e,n)},$$slots:{default:!0}})}k()}var o$,s$,c$=o((()=>{Q(),Y(),hz(),QJ(),Z(),iq(),o$=l(DQ()),sc(),eR(),UR(),QQ(),s$=V(`<!> <!>`,1)}));function l$(e,t){K(e,d$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`variant`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`children`]);var s=u$();bs(s,()=>({...o,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i()}),void 0,void 0,void 0,`svelte-1luf6gc`);var c=F(s);Eo(F(c),()=>t.children??E),D(c),D(s),R(()=>c.inert=r()),U(e,s)}var u$,d$,f$=o((()=>{Q(),Y(),u$=V(`<div><div role="none" class="inner svelte-1luf6gc"><!></div></div>`),d$={hash:`svelte-1luf6gc`,code:`[role=toolbar].svelte-1luf6gc {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-1luf6gc {--toolbar-size: var(--sui-primary-toolbar-size);}
716
- @media (width < 768px) {[role=toolbar].secondary.svelte-1luf6gc {padding-inline:0;}
717
- }[role=toolbar][aria-orientation=horizontal].svelte-1luf6gc {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-1luf6gc {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-1luf6gc button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-1luf6gc h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-1luf6gc h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-1luf6gc h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-1luf6gc .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-1luf6gc .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-1luf6gc {display:contents;}`}}));function p$(e,t){O(t,!0),K(e,h$),J(t,`code`,11,``),J(t,`lang`,11,`plain`);let n=J(t,`disabled`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]);var i=m$();l$(F(i),Zs(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),D(i),U(e,i),k()}var m$,h$,g$=o((()=>{Q(),Y(),f$(),m$=V(`<div role="none" class="wrapper svelte-88rtuq"><!></div>`),h$={hash:`svelte-88rtuq`,code:`.wrapper.svelte-88rtuq {display:contents;}.wrapper.svelte-88rtuq [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);}
718
- @media (width < 768px) {.wrapper.svelte-88rtuq [role=toolbar] {flex-wrap:wrap;height:auto;}
719
- }.wrapper.svelte-88rtuq .sui.menu-button {padding:0 4px;}.wrapper.svelte-88rtuq .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-88rtuq .sui.button-group {gap:4px;}`}}));function Ele(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>X(`_sui.text_editor.code_editor`));p$(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=M(()=>n()||r());a$(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}k()}var Dle=o((()=>{Q(),Y(),Z(),c$(),g$()}));function Ole(e,t){O(t,!0),K(e,v$);let n=J(t,`code`,15,``),r=J(t,`lang`,15,`plain`),i=J(t,`showLanguageSwitcher`,3,!1),a=J(t,`flex`,3,!1),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),f=r$();f.config={...f.config,isCodeEditor:!0,defaultLanguage:r()},Rt(`editorStore`,f),ei(()=>{f.initialized&&(n(),r(),B(()=>{f.inputValue=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``}))}),ei(()=>{f.initialized&&(f.inputValue,B(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?<lang>\w+?)?\n(?:(?<code>.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=_$(),m=I(p);bs(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[Cs]:{flex:a()}}),void 0,void 0,void 0,`svelte-6u8lga`);var h=F(m),g=e=>{Ele(e,{get disabled(){return s()},get readonly(){return c()}})};G(h,e=>{i()&&e(g)}),$Q(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),D(m);var _=L(m,2),v=e=>{dz(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(_,e=>{f.showConverterError&&e(v)}),U(e,p),k()}var _$,v$,kle=o((()=>{Q(),Y(),Z(),sc(),QF(),mz(),n$(),i$(),Dle(),_$=V(`<div><!> <!></div> <!>`,1),v$={hash:`svelte-6u8lga`,code:`.code-editor.svelte-6u8lga {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.code-editor.flex.svelte-6u8lga:not([hidden]) {display:block;}`}}));function y$(e,t){O(t,!0),K(e,S$);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`name`,3,void 0),o=J(t,`autoResize`,3,!1),s=J(t,`hidden`,3,!1),c=J(t,`disabled`,3,!1),l=J(t,`readonly`,3,!1),u=J(t,`required`,3,!1),d=J(t,`invalid`,3,!1),f=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var p=x$();let m;var h=F(p);Hr(h),bs(h,()=>({...f,dir:i(),name:a(),disabled:c()||void 0,readonly:l()||void 0,"aria-hidden":s(),"aria-disabled":c(),"aria-readonly":l(),"aria-required":u(),"aria-invalid":d(),[Cs]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-1nxtpoj`);var g=L(h,2),_=e=>{var t=b$(),r=F(t,!0);D(t),R(()=>{q(t,`dir`,i()),W(r,n()),t.dir=t.dir}),U(e,t)};G(g,e=>{o()&&e(_)}),D(p),R(()=>{m=cs(p,1,`sui text-area ${t.class??``}`,`svelte-1nxtpoj`,m,{flex:r(),disabled:c(),readonly:l()}),q(p,`hidden`,s()),h.dir=h.dir}),Fs(h,n),U(e,p),k()}var b$,x$,S$,C$=o((()=>{Q(),Y(),b$=V(`<div class="clone svelte-1nxtpoj" aria-hidden="true"> </div>`),x$=V(`<div role="none"><textarea></textarea> <!></div>`),S$={hash:`svelte-1nxtpoj`,code:`.text-area.svelte-1nxtpoj {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-1nxtpoj {display:none;}.text-area.flex.svelte-1nxtpoj:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-1nxtpoj, .clone.svelte-1nxtpoj) {grid-area:1/1/2/2;display:block;margin:0;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-multiline-padding);width:100%;min-height:8em;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);line-height:var(--sui-textbox-multiline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}:is(textarea:where(.svelte-1nxtpoj), .clone:where(.svelte-1nxtpoj)).resizing.svelte-1nxtpoj {transition-duration:0ms;}.svelte-1nxtpoj:is(textarea:where(.svelte-1nxtpoj), .clone:where(.svelte-1nxtpoj)):focus {border-color:var(--sui-textbox-border-color-focus, var(--sui-primary-accent-color));color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}.svelte-1nxtpoj:is(textarea:where(.svelte-1nxtpoj), .clone:where(.svelte-1nxtpoj)):is(:where(.svelte-1nxtpoj):disabled, :where(.svelte-1nxtpoj):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-1nxtpoj {resize:vertical;}textarea.auto-resize.svelte-1nxtpoj {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-1nxtpoj {border-color:var(--sui-error-border-color);}.clone.svelte-1nxtpoj {overflow:hidden;visibility:hidden;}textarea.svelte-1nxtpoj,
720
- .clone.svelte-1nxtpoj {white-space:pre-wrap;word-break:break-all;}`}}));function Ale(e,t){O(t,!0);let n=Lt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{YF(e,{get name(){return OQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${OQ[t.type].labelKey}`)),o=M(()=>!n.useRichText);pI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await ZQ(n.editor),n.editor.dispatchCommand(uG,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}var jle=o((()=>{Q(),Y(),Z(),iq(),sc(),bI(),XF(),NQ(),QQ()}));function Mle(e,t){O(t,!0);let n=Lt(`editorStore`);{let r=e=>{YF(e,{get name(){return t.component.icon}})},i=M(()=>!n.useRichText);pI(e,{iconic:!0,get"aria-label"(){return t.component.label},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(i)},onclick:()=>{n.editor?.update(()=>{iV([t.component.createNode(),MV()])})},startIcon:r,$$slots:{startIcon:!0}})}k()}var Nle=o((()=>{Q(),Y(),iq(),sc(),bI(),XF()}));function Ple(e,t){let n=Fa();O(t,!0);let r=`link`,i=Lt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=ese().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(uY,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=XB();if(FB(e)){let t=e.anchor.getNode(),n=(t instanceof cY?t:vq(t,cY))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{eI(e,`Enter`)&&z(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=XB()??ZB()?.clone();if(FB(t)||(t=qB()),!z(c)){P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0);let{anchor:e,focus:n}=t,r=DB(z(u)),i=r.getKey();iV([r]),e.set(i,z(u).length,`text`),n.set(i,0,`text`)}dH(t),e(void 0)})}),await ZQ(i.editor),i.editor.dispatchCommand(uY,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(pG,e=>(eI(e,$F()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};ei(()=>{i.editor&&_()});var v=E$(),y=I(v);{let e=e=>{YF(e,{get name(){return OQ[r].icon}})},t=M(()=>X(`_sui.text_editor.${OQ[r].labelKey}`)),n=M(()=>!i.useRichText);pI(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`_sui.remove`));pI(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};G(n,e=>{z(s)!==`create`&&e(r)}),U(e,t)},t=M(()=>z(s)===`create`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));dL(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){P(o,e,!0)},get value(){return z(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=T$(),i=I(r),a=F(i),o=F(a,!0);D(a),xL(L(a,2),{dir:`ltr`,get id(){return`${n}-url`},flex:!0,"aria-label":`URL`,onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){P(l,e,!0)}}),D(i);var s=L(i,2),d=e=>{var t=w$(),r=F(t),i=F(r,!0);D(r),xL(L(r,2),{dir:`auto`,get id(){return`${n}-text`},flex:!0,onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){P(u,e,!0)}}),D(t),R(e=>{q(r,`for`,`${n}-text`),W(i,e)},[()=>X(`_sui.text_editor.text`)]),U(e,t)};G(s,e=>{z(c)||e(d)}),R(e=>{q(a,`for`,`${n}-url`),W(o,e)},[()=>X(`_sui.text_editor.url`)]),U(e,r)},$$slots:{footerExtra:!0,default:!0}})}U(e,v),k()}var w$,T$,E$,Fle=o((()=>{Q(),Y(),fY(),Tq(),Z(),nI(),iq(),sc(),bI(),vL(),XF(),TL(),NQ(),QQ(),w$=V(`<div role="none"><label> </label> <!></div>`),T$=V(`<div role="none"><label> </label> <!></div> <!>`,1),E$=V(`<!> <!>`,1)}));function Ile(e,t){O(t,!0);let n=Lt(`editorStore`);{let r=e=>{YF(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{tR(e,{children:(e,r)=>{var i=H();mo(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;aR(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{iV([a()()])})},startIcon:e=>{var t=H(),n=I(t),r=e=>{YF(e,{get name(){return i()}})};G(n,e=>{i()&&e(r)}),U(e,t)},$$slots:{startIcon:!0}})}),U(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>X(`_sui.insert`));GI(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}var Lle=o((()=>{Q(),Y(),Z(),iq(),sc(),XF(),qI(),uR(),iR()}));function Rle(e,t){O(t,!0);let n=Lt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await ZQ(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{lq(XB(),()=>bX(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{lq(XB(),()=>MV())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(AY,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(jY,void 0),t.type===`blockquote`&&n.editor.update(()=>{lq(XB(),()=>gX())}),t.type===`code-block`&&n.editor.update(()=>{lq(XB(),()=>SJ())})};var a=H();ao(I(a),()=>z(r),e=>{{let n=e=>{YF(e,{get name(){return OQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${OQ[t.type].labelKey}`));dR(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),U(e,a),k()}var zle=o((()=>{Q(),Y(),hz(),QJ(),MY(),LX(),gq(),Z(),iq(),sc(),XF(),fR(),NQ(),QQ()}));function Ble(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1),i=Lt(`editorStore`),a=M(()=>i.config.components.find(({id:e})=>MQ.includes(e))),o=M(()=>i.config.components.filter(({id:e})=>!MQ.includes(e))),s=M(()=>gS([`paragraph`,...i.config.enabledButtons.filter(e=>jQ.includes(e))])),c=M(()=>gS(i.config.enabledButtons.filter(e=>AQ.includes(e))));{let t=M(()=>n()||r()),l=M(()=>X(`_sui.text_editor.text_editor`));p$(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=j$(),r=I(n);{let e=e=>{{let t=M(()=>OQ[i.selection.blockType??``]?.icon??`format_paragraph`);YF(e,{get name(){return z(t)}})}},t=e=>{{let t=M(()=>X(`_sui.text_editor.text_style_options`));tR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),16,()=>z(s),e=>e,(e,t)=>{Rle(e,{get type(){return t}})}),U(e,n)},$$slots:{default:!0}})}},n=M(()=>!i.useRichText),a=M(()=>X(`_sui.text_editor.show_text_style_options`));GI(r,{get disabled(){return z(n)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})}var l=L(r,2),u=e=>{var t=D$(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);a$(r,{get disabled(){return z(e)}})}U(e,t)},d=e=>{var t=A$(),n=I(t),r=e=>{var t=O$(),n=I(t);ZI(n,{orientation:`vertical`}),Pae(L(n,2),{children:(e,t)=>{var n=H();mo(I(n),16,()=>z(c),e=>e,(e,t)=>{var n=H(),r=I(n),i=e=>{Ple(e,{})},a=e=>{Ale(e,{get type(){return t}})};G(r,e=>{t===`link`?e(i):e(a,-1)}),U(e,n)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(n,e=>{z(c).length&&e(r)});var s=L(n,2),l=e=>{var t=k$(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2),i=e=>{Mle(e,{get component(){return z(a)}})};G(r,e=>{z(a)&&e(i)});var s=L(r,2),c=e=>{Ile(e,{get components(){return z(o)}})};G(s,e=>{z(o).length&&e(c)}),U(e,t)};G(s,e=>{i.config.components.length&&e(l)}),U(e,t)};G(l,e=>{i.selection.blockType===`code-block`?e(u):e(d,-1)});var f=L(l,2);tL(f,{flex:!0});var p=L(f,2),m=e=>{{let t=e=>{YF(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>X(`_sui.text_editor.edit_in_markdown`));pI(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};G(p,e=>{i.config.modes.length>1&&e(m)}),U(e,n)},$$slots:{default:!0}})}k()}var D$,O$,k$,A$,j$,Vle=o((()=>{Q(),Y(),Z(),_S(),sc(),kI(),bI(),eL(),iL(),XF(),qI(),iR(),NQ(),c$(),jle(),Nle(),Fle(),Lle(),zle(),g$(),D$=V(`<!> <!>`,1),O$=V(`<!> <!>`,1),k$=V(`<!> <!> <!>`,1),A$=V(`<!> <!>`,1),j$=V(`<!> <!> <!> <!>`,1)}));function Hle(e,t){O(t,!0),K(e,N$);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=J(t,`buttons`,19,()=>[...AQ,...jQ]),s=J(t,`components`,19,()=>[]),c=J(t,`hidden`,3,!1),l=J(t,`disabled`,3,!1),u=J(t,`readonly`,3,!1),d=J(t,`required`,3,!1),f=J(t,`invalid`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),m=r$();m.config={...m.config,modes:a(),enabledButtons:o(),components:s()},Rt(`editorStore`,m),ei(()=>{if(!m.initialized)return;let e=n();B(()=>{m.inputValue=e})}),ei(()=>{if(!m.initialized)return;let e=m.inputValue;B(()=>{n()!==e&&n(e)})});var h=M$(),g=I(h);bs(g,()=>({...p,role:`none`,class:`sui text-editor`,hidden:c(),[Cs]:{flex:r()}}),void 0,void 0,void 0,`svelte-ilhjak`);var _=F(g);Ble(_,{get disabled(){return l()},get readonly(){return u()}});var v=L(_,2);{let e=M(()=>!m.useRichText||c());$Q(v,{get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()}})}var y=L(v,2);{let e=M(()=>m.useRichText||c());y$(y,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()},get value(){return m.inputValue},set value(e){m.inputValue=e}})}D(g);var b=L(g,2),x=e=>{dz(e,{get show(){return m.showConverterError},set show(e){m.showConverterError=e},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(b,e=>{m.showConverterError&&e(x)}),U(e,h),k()}var M$,N$,Ule=o((()=>{Q(),Y(),Z(),sc(),QF(),C$(),mz(),NQ(),n$(),i$(),Vle(),M$=V(`<div><!> <!> <!></div> <!>`,1),N$={hash:`svelte-ilhjak`,code:`.text-editor.svelte-ilhjak {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.text-editor.flex.svelte-ilhjak:not([hidden]) {display:block;}.text-editor.svelte-ilhjak .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-ilhjak .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`}}));function Wle(e,t){let n=Fa();O(t,!0),K(e,F$);let r=J(t,`value`,15),i=J(t,`invalid`,15,!1),a=J(t,`flex`,3,!1),o=J(t,`min`,3,void 0),s=J(t,`max`,3,void 0),c=J(t,`step`,3,1),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(z(h)||0)>=s());ei(()=>{let e=String(r()??``);B(()=>{z(h)!==e&&P(h,e,!0)})}),ei(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),ei(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)<o()||typeof s()==`number`&&Number(z(h)||0)>s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=P$();let S;var C=F(x),w=F(C);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.increaseIcon),U(e,n)},a=e=>{YF(e,{name:`expand_less`})};G(r,e=>{t.increaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=M(()=>X(`_sui.number_input.increase`));pI(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var T=L(w,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.decreaseIcon),U(e,n)},a=e=>{YF(e,{name:`expand_more`})};G(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=M(()=>X(`_sui.number_input.decrease`));pI(T,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var ee=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>z(g)>0?`decimal`:`numeric`);xL(ee,Zs({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||P(m,!0)},oninput:()=>{z(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){P(h,e,!0)}}))}D(x),R(()=>{S=cs(x,1,`sui number-input ${t.class??``}`,`svelte-m718ho`,S,{flex:a(),disabled:u(),readonly:d()}),q(x,`hidden`,l())}),U(e,x),k()}var P$,F$,Gle=o((()=>{Q(),Y(),Z(),sc(),bI(),XF(),TL(),P$=V(`<div role="none"><div role="none" class="buttons svelte-m718ho"><!> <!></div> <!></div>`),F$={hash:`svelte-m718ho`,code:`.number-input.svelte-m718ho {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-m718ho:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-m718ho :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-m718ho :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-m718ho :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-m718ho :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-m718ho .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-m718ho {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-m718ho button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-m718ho button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-m718ho button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-m718ho button .icon {font-size:20px;}`}}));function I$(e,t){let n=Fa();O(t,!0),K(e,R$);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`monospace`,3,!0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),f=N(void 0),p=N(!1);var m=L$();let h;var g=F(m);xL(g,Zs({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.visibilityIcon),U(e,n)},a=e=>{{let t=M(()=>z(p)?`visibility_off`:`visibility`);YF(e,{get name(){return z(t)}})}};G(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>s()||c()),i=M(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));pI(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),R(()=>{h=cs(m,1,`sui secret-input ${t.class??``}`,`svelte-hwo36v`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),q(m,`hidden`,o())}),U(e,m),k()}var L$,R$,Kle=o((()=>{Q(),Y(),Z(),bI(),XF(),TL(),L$=V(`<div role="none"><!> <!></div>`),R$={hash:`svelte-hwo36v`,code:`.secret-input.svelte-hwo36v {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-hwo36v:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-hwo36v input {-webkit-text-security:none;}.secret-input.svelte-hwo36v .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-hwo36v input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-hwo36v button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-hwo36v button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-hwo36v button .icon {font-size:var(--sui-font-size-xx-large);}`}}));function qle(e,t){O(t,!0),K(e,U$);let n=J(t,`orientation`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),i=[`https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap`,`https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block`],a=N(!1);ac(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(a,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var o=H$();Ko(`1lqki0a`,e=>{var t=B$(),n=I(t);mo(L(n,8),16,()=>i,e=>e,(e,t)=>{var n=z$(),r=I(n),i=L(r,2);R(()=>{q(r,`href`,t),q(i,`href`,t)}),U(e,n)}),R(e=>q(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),U(e,t)});var s=I(o),c=e=>{var t=V$();ds(t,``,{},{opacity:`0`}),U(e,t)};G(s,e=>{z(a)||e(c)});var l=L(s,2),u=e=>e.preventDefault(),d=e=>e.preventDefault(),f=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};bs(l,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:u,ondrop:d,oncontextmenu:f}),void 0,void 0,void 0,`svelte-1lqki0a`),Eo(F(l),()=>t.children??E),D(l),U(e,o),k()}var z$,B$,V$,H$,U$,Jle=o((()=>{Q(),Y(),sc(),z$=V(`<link rel="preload" as="style"/> <link rel="stylesheet"/>`,1),B$=V(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <link rel="preconnect" href="https://fonts.googleapis.com"/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/> <!>`,1),V$=V(`<div class="font-loader svelte-1lqki0a" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),H$=V(`<!> <div><!></div>`,1),U$={hash:`svelte-1lqki0a`,code:`:root,
715
+ `)},regExp:LQ,replace:(e,t,[n])=>{if(RQ.test(n)){let t=e.getPreviousSibling();if(!t||!hQ(t))return;let n=t.getChildren(),r=n[n.length-1];if(!r||!KZ(r))return;r.getChildren().forEach(e=>{UZ(e)&&e.setHeaderStyles(_Q.ROW,_Q.ROW)}),e.remove();return}let r=BQ(n);if(!r)return;let i=[r],a=e.getPreviousSibling(),o=r.length;for(;a&&!(!NV(a)||a.getChildrenSize()!==1);){let e=a.getFirstChild();if(!OB(e))break;let t=BQ(e.getTextContent());if(!t)break;o=Math.max(o,t.length),i.unshift(t);let n=a.getPreviousSibling();a.remove(),a=n}let s=mQ();i.forEach(e=>{let t=GZ();s.append(t);for(let n=0;n<o;n+=1)t.append(n<e.length?e[n]:zQ(``))});let c=e.getPreviousSibling();hQ(c)&&wle(c)===o?(c.append(...s.getChildren()),e.remove()):e.replace(s),s.selectEnd()},type:`element`}})),HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ=o((()=>{hz(),QJ(),ZJ(),$J(),gJ(),hce(),fY(),MY(),zZ(),LX(),EQ(),Tq(),tS(),iq(),HQ=l(DQ(),1),NQ(),Sle(),Cle(),Tle(),Uw(),UQ=[...RZ,IQ,VQ],WQ=`https://unpkg.com/prismjs@1.30.0`,GQ={namespace:`editor`,nodes:[IX,FX,cY,OY,DY,FJ,IJ,hJ,TQ,vQ,yQ],theme:{text:{italic:`italic`,strikethrough:`strikethrough`},list:{nested:{listitem:`nested`}},code:`code-block`,codeHighlight:{atrule:`token atrule`,attr:`token attr`,boolean:`token boolean`,builtin:`token builtin`,cdata:`token cdata`,char:`token char`,class:`token class`,"class-name":`token class-name`,comment:`token comment`,constant:`token constant`,deleted:`token deleted`,doctype:`token doctype`,entity:`token entity`,function:`token function`,important:`token important`,inserted:`token inserted`,keyword:`token keyword`,namespace:`token namespace`,number:`token number`,operator:`token operator`,prolog:`token prolog`,property:`token property`,punctuation:`token punctuation`,regex:`token regex`,selector:`token selector`,string:`token string`,symbol:`token symbol`,tag:`token tag`,url:`token url`,variable:`token variable`}}},KQ=()=>{let e=XB();if(!FB(e))return{blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]};let t=e.anchor.getNode(),n=null,r=kQ.filter(t=>e.hasFormat(t));t.getType()!==`root`&&(n=t instanceof jK?t:vq(t,jK),nY(n)&&(r.push(`link`),n=vq(n,jK)),SY(n)&&(n=vq(n,OY)));let i=(()=>{if(!n)return`paragraph`;if(xX(n))return`heading-${n.getTag().match(/\d/)?.[0]}`;if(EY(n))return n.getListType()===`bullet`?`bulleted-list`:`numbered-list`;if(_X(n))return`blockquote`;if(CJ(n)||AJ(n))return`code-block`;let e=n.getType();return jQ.includes(e)?e:`paragraph`})();return{blockNodeKey:n?.getKey()??null,blockType:i,inlineTypes:r}},qQ=e=>{e.getRootElement()?.dispatchEvent(new CustomEvent(`Update`,{detail:{value:ZX(UQ.filter(({tag:e})=>e!==`*`)).replace(/\\([_\\])/g,`$1`).replace(/&#32;/g,` `),selection:KQ()}}))},JQ=({components:e=[],isCodeEditor:t=!1,defaultLanguage:n=`plain`})=>{e.forEach(({node:e,transformer:t})=>{GQ.nodes.unshift(e),UQ.unshift(t)});let r=FV(GQ);return rle(r),uce(r),pce(r,mce(),1e3),lce(r,{defaultLanguage:n,tokenize:(e,t=`plain`)=>window.Prism.tokenize(e,window.Prism.languages[t]??window.Prism.languages.plain),$tokenize:XJ.$tokenize}),r.registerCommand(uY,e=>(_ce(typeof e==`string`?e:null),!0),2),r.registerCommand(AY,()=>(gY(`bullet`),!0),2),r.registerCommand(jY,()=>(gY(`number`),!0),2),r.registerCommand(iG,()=>Tce(),2),r.registerUpdateListener(()=>{r?.isComposing()||(async()=>{await eS(100),r.update(()=>{if(t){let e=lH(),t=e.getChildren();if(t.length===1&&!CJ(t[0])&&t[0].remove(),t.length===0){let t=SJ();t.setLanguage(n),e.append(t)}}qQ(r)})})()}),r.registerRootListener(e=>{e&&e.addEventListener(`keydown`,e=>{r.update(()=>{if(e.key===`Tab`){let t=XB();if(!FB(t))return;let n=t.anchor.getNode(),i=n instanceof jK?n:vq(n,jK);SY(i)&&i.canIndent()&&(e.shiftKey?i.getIndent()>0&&(e.preventDefault(),r.dispatchCommand(OG,void 0)):(e.preventDefault(),r.dispatchCommand(DG,void 0)))}})})}),r},YQ=async e=>{if(e in window.Prism.languages)return;let t=Object.entries(HQ.default.languages).find(([t,{alias:n}])=>t===e||(Array.isArray(n)?n.includes(e):n===e))?.[0];if(t)try{await Hw(()=>import(`${WQ}/components/prism-${t}.min.js`),[])}catch{}},XQ=async(e,t)=>(await Promise.all([...t.matchAll(/^```(?<lang>.+?)\n/gm)].map(async({groups:{lang:e=`plain`}={}})=>YQ(e))),t=PQ(t),t=FQ(t),new Promise((n,r)=>{e.update(()=>{try{XX(t,UQ),n(void 0)}catch(e){r(Error(`Failed to convert Markdown`,{cause:e}))}})})),ZQ=async e=>new Promise(t=>{e.focus(()=>{t(void 0)})})}));function $Q(e,t){O(t,!0),K(e,t$);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),c=Lt(`editorStore`),l=N(void 0),u=M(()=>!(r()||i()));ei(()=>{c.editor?.setEditable(z(u))});let d=e=>{let{hasConverterError:t,useRichText:n,inputValue:r}=c;if(t||!n)return;let{value:i,selection:a}=e.detail;r!==i&&(c.useRichText=!1,c.inputValue=i,c.useRichText=!0),c.selection=a},f=e=>{e.target?.matches(`a`)&&e.preventDefault()};ac(()=>(c.editor=JQ(c.config),z(l)?.addEventListener(`Update`,d),z(l)?.addEventListener(`click`,f),()=>{z(l)?.removeEventListener(`Update`,d),z(l)?.removeEventListener(`click`,f)})),ei(()=>{c.editor&&z(l)&&(c.editor.setRootElement(z(l)),c.initialized=!0)});var p=e$();bs(p,()=>({...s,role:`textbox`,"aria-multiline":`true`,"aria-hidden":n(),"aria-disabled":r(),"aria-readonly":i(),"aria-required":a(),"aria-invalid":o(),class:`lexical-root`,id:`${c.editorId??``}-lexical-root`,contenteditable:z(u),hidden:n(),[Cs]:{code:c.config.isCodeEditor}}),void 0,void 0,void 0,`svelte-14syb8h`),Us(p,e=>P(l,e),()=>z(l)),U(e,p),k()}var e$,t$,n$=o((()=>{Q(),Y(),sc(),QQ(),e$=V(`<div></div>`),t$={hash:`svelte-14syb8h`,code:`.lexical-root.svelte-14syb8h {overflow:hidden;border:1px solid var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius) !important;padding:var(--sui-textbox-multiline-padding);min-height:8em;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);line-height:var(--sui-textbox-multiline-line-height);}.lexical-root.svelte-14syb8h:not(:first-child) {border-start-start-radius:0 !important;border-start-end-radius:0 !important;}.lexical-root.code.svelte-14syb8h {padding:0;}.lexical-root.code.svelte-14syb8h .code-block {border-radius:0 !important;min-height:120px;}.lexical-root.svelte-14syb8h:focus-visible {outline:0;}.lexical-root[aria-invalid=true].svelte-14syb8h {border-color:var(--sui-error-border-color);}.lexical-root.svelte-14syb8h :first-child {margin-top:0;}.lexical-root.svelte-14syb8h :last-child {margin-bottom:0;}.lexical-root.svelte-14syb8h strong.italic {font-style:italic;}.lexical-root.svelte-14syb8h .strikethrough {text-decoration:line-through;}.lexical-root.svelte-14syb8h li.nested {list-style-type:none;}.lexical-root.svelte-14syb8h .code-block {position:relative;display:block;padding-block:8px;padding-inline-start:56px;padding-inline-end:8px;background-color:var(--sui-code-background-color);overflow-x:auto;white-space:pre;}.lexical-root.svelte-14syb8h .code-block:not(:first-child) {margin-top:1em;}.lexical-root.svelte-14syb8h .code-block:not(:last-child) {margin-bottom:1em;}.lexical-root.svelte-14syb8h .code-block::before {position:absolute;inset-block:0;inset-inline-start:0;inset-inline-end:auto;content:attr(data-gutter);padding:8px;min-width:40px;color:var(--sui-tertiary-foreground-color);background-color:var(--sui-tertiary-background-color);text-align:end;}.lexical-root.svelte-14syb8h [data-lexical-text=true] {cursor:text;}.lexical-root.svelte-14syb8h :is(th, td) > p {margin:0;white-space:normal;word-break:normal;}.lexical-root.svelte-14syb8h hr {margin:var(--sui-paragraph-margin) 0;border:none;padding:0;}.lexical-root.svelte-14syb8h hr::after {display:block;height:2px;background-color:var(--sui-control-border-color);line-height:2px;content:"";}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.comment, .prolog, .doctype, .cdata) {color:slategray;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token.punctuation {color:#999;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token.namespace {opacity:0.7;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.property, .tag, .boolean, .number, .constant, .symbol, .deleted) {color:#905;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.selector, .attr-name, .string, .char, .builtin, .inserted) {color:#690;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.operator, .entity, .url), :root[data-theme=light] .lexical-root.svelte-14syb8h .language-css .token.string, :root[data-theme=light] .lexical-root.svelte-14syb8h .style .token.string {color:#9a6e3a;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.atrule, .attr-value, .keyword) {color:#07a;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.function, .class-name) {color:#dd4a68;}:root[data-theme=light] .lexical-root.svelte-14syb8h .token:is(.regex, .important, .variable) {color:#e90;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.comment, .block-comment, .prolog, .doctype, .cdata) {color:#999;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.punctuation {color:#ccc;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.tag, .attr-name, .namespace, .deleted) {color:#e2777a;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.function-name {color:#6196cc;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.boolean, .number, .function) {color:#f08d49;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.property, .class-name, .constant, .symbol) {color:#f8c555;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.selector, .important, .atrule, .keyword, .builtin) {color:#cc99cd;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.string, .char, .attr-value, .regex, .variable) {color:#7ec699;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.operator, .entity, .url) {color:#67cdcc;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token:is(.important, .bold) {font-weight:bold;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.italic {font-style:italic;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.entity {cursor:help;}:root[data-theme=dark] .lexical-root.svelte-14syb8h .token.inserted {color:green;}`}})),r$,i$=o((()=>{Y(),sI(),QQ(),r$=()=>{let e=aI(`editor`),t=N(!1),n=N(void 0),r=N(Sr({modes:[],enabledButtons:[],components:[],isCodeEditor:!1})),i=N(``),a=N(Sr({blockNodeKey:null,blockType:`paragraph`,inlineTypes:[]})),o=N(!0),s=N(!1),c=N(!1),l=async()=>{if(!z(n)||!z(t))return;let e=z(i);try{await XQ(z(n),z(i)||``)}catch(t){P(s,!0),P(i,e,!0),console.error(t)}};return{get editor(){return z(n)},set editor(e){P(n,e,!0)},get initialized(){return z(t)},set initialized(e){P(t,e,!0)},get config(){return z(r)},set config(e){P(r,e,!0),P(o,e.modes[0]===`rich-text`||e.isCodeEditor,!0)},get inputValue(){return z(i)},set inputValue(e){let t=z(i)!==e;t&&P(i,e,!0),z(o)&&(t||z(n)?.getEditorState().isEmpty())&&l()},get selection(){return z(a)},set selection(e){P(a,e,!0)},get useRichText(){return z(o)},set useRichText(e){P(o,e,!0)},get hasConverterError(){return z(s)},set hasConverterError(e){P(s,e,!0),z(s)&&(P(o,!1),P(c,!0))},get showConverterError(){return z(c)},set showConverterError(e){P(c,e,!0)},editorId:e,convertMarkdown:l}}}));function a$(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=Object.entries(o$.default.languages).filter(([,e])=>`title`in e).map(([e,t])=>{let{title:n,aliasTitles:r,alias:i}=t,a=[];return i&&!r&&(a=Array.isArray(i)?i:[i]),[{key:e,label:n,aliases:a},...Object.entries(r??{}).map(([e,t])=>({key:e,label:t,aliases:[]}))]}).flat(1).sort((e,t)=>e.label.localeCompare(t.label)),i=Lt(`editorStore`),a=N(`plain`);ei(()=>{i.selection.blockNodeKey,i.editor?.read(()=>{let e=i.config.isCodeEditor?lH().getChildren()[0]:rH(i.selection.blockNodeKey);CJ(e)&&P(a,e.getLanguage()??i.config.defaultLanguage??`plain`,!0)})});{let t=M(()=>X(`_sui.text_editor.language`));HR(e,{get disabled(){return n()},get"aria-label"(){return z(t)},get value(){return z(a)},onChange:async({detail:{value:e}})=>{!i.editor||z(a)===e||(await ZQ(i.editor),i.selection?.blockNodeKey&&(await YQ(e),i.editor.update(()=>{let t=rH(i.selection.blockNodeKey);CJ(t)&&(t.setLanguage(e),P(a,e,!0))})))},children:(e,t)=>{var n=s$(),i=I(n);{let e=M(()=>X(`_sui.text_editor.plain_text`));XL(i,{get label(){return z(e)},value:`plain`,dir:`ltr`})}mo(L(i,2),17,()=>r,({key:e,label:t,aliases:n})=>e,(e,t)=>{let n=()=>z(t).key,r=()=>z(t).label,i=()=>z(t).aliases;{let t=M(()=>n()===z(a)||i().includes(z(a)));XL(e,{get label(){return r()},get value(){return n()},get selected(){return z(t)},dir:`ltr`})}}),U(e,n)},$$slots:{default:!0}})}k()}var o$,s$,c$=o((()=>{Q(),Y(),hz(),QJ(),Z(),iq(),o$=l(DQ()),sc(),eR(),UR(),QQ(),s$=V(`<!> <!>`,1)}));function l$(e,t){K(e,d$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=J(t,`orientation`,3,`horizontal`),a=J(t,`variant`,3,void 0),o=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`orientation`,`variant`,`children`]);var s=u$();bs(s,()=>({...o,role:`toolbar`,class:`sui toolbar ${i()??``} ${a()??``} ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r(),"aria-orientation":i()}),void 0,void 0,void 0,`svelte-iwrgg7`);var c=F(s);Eo(F(c),()=>t.children??E),D(c),D(s),R(()=>c.inert=r()),U(e,s)}var u$,d$,f$=o((()=>{Q(),Y(),u$=V(`<div><div role="none" class="inner svelte-iwrgg7"><!></div></div>`),d$={hash:`svelte-iwrgg7`,code:`[role=toolbar].svelte-iwrgg7 {--toolbar-size: var(--sui-secondary-toolbar-size);flex:none !important;display:flex;align-items:center;padding-inline:8px;background-color:var(--toolbar-background-color, transparent);}[role=toolbar].primary.svelte-iwrgg7 {--toolbar-size: var(--sui-primary-toolbar-size);}
716
+ @media (width < 768px) {[role=toolbar].secondary.svelte-iwrgg7 {padding-inline:0;}
717
+ }[role=toolbar][aria-orientation=horizontal].svelte-iwrgg7 {height:var(--toolbar-size);}[role=toolbar][aria-orientation=vertical].svelte-iwrgg7 {flex-direction:column;width:var(--toolbar-size);}[role=toolbar].svelte-iwrgg7 button[role=button]:is([aria-pressed=true], [aria-checked=true]) {background-color:var(--sui-selected-background-color);}[role=toolbar].svelte-iwrgg7 h2 {flex:auto;display:flex;align-items:center;gap:8px;margin:0;padding-inline-end:12px;min-width:0;font-size:var(--sui-font-size-x-large);}[role=toolbar].svelte-iwrgg7 h2:first-child {padding-inline-start:12px;}[role=toolbar].svelte-iwrgg7 h2 span:not(.sui.truncated-text) {font-size:var(--sui-font-size-small);font-weight:var(--sui-font-weight-normal, normal);opacity:0.8;}[role=toolbar].svelte-iwrgg7 .divider[aria-orientation=horizontal] {margin:0 4px;width:calc(100% - 8px);}[role=toolbar].svelte-iwrgg7 .divider[aria-orientation=vertical] {margin:4px 0;height:calc(100% - 8px);}.inner.svelte-iwrgg7 {display:contents;}`}}));function p$(e,t){O(t,!0),K(e,h$),J(t,`code`,11,``),J(t,`lang`,11,`plain`);let n=J(t,`disabled`,3,!1),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`disabled`,`children`]);var i=m$();l$(F(i),Zs(()=>r,{get disabled(){return n()},children:(e,n)=>{var r=H();Eo(I(r),()=>t.children??E),U(e,r)},$$slots:{default:!0}})),D(i),U(e,i),k()}var m$,h$,g$=o((()=>{Q(),Y(),f$(),m$=V(`<div role="none" class="wrapper svelte-gn6att"><!></div>`),h$={hash:`svelte-gn6att`,code:`.wrapper.svelte-gn6att {display:contents;}.wrapper.svelte-gn6att [role=toolbar] {position:sticky;top:0;z-index:100;display:flex;flex-wrap:wrap;gap:4px;border-width:1px 1px 0;border-style:solid;border-color:var(--sui-textbox-border-color);border-start-start-radius:var(--sui-textbox-border-radius);border-start-end-radius:var(--sui-textbox-border-radius);border-end-start-radius:0;border-end-end-radius:0;padding:0 4px;height:auto;min-height:40px;background-color:var(--sui-tertiary-background-color);}
718
+ @media (width < 768px) {.wrapper.svelte-gn6att [role=toolbar] {flex-wrap:wrap;height:auto;}
719
+ }.wrapper.svelte-gn6att .sui.menu-button {padding:0 4px;}.wrapper.svelte-gn6att .sui.button {flex:none;margin:0 !important;}.wrapper.svelte-gn6att .sui.button-group {gap:4px;}`}}));function Ele(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1);{let t=M(()=>n()||r()),i=M(()=>X(`_sui.text_editor.code_editor`));p$(e,{get disabled(){return z(t)},get"aria-label"(){return z(i)},children:(e,t)=>{{let t=M(()=>n()||r());a$(e,{get disabled(){return z(t)}})}},$$slots:{default:!0}})}k()}var Dle=o((()=>{Q(),Y(),Z(),c$(),g$()}));function Ole(e,t){O(t,!0),K(e,v$);let n=J(t,`code`,15,``),r=J(t,`lang`,15,`plain`),i=J(t,`showLanguageSwitcher`,3,!1),a=J(t,`flex`,3,!1),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`code`,`lang`,`showLanguageSwitcher`,`flex`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),f=r$();f.config={...f.config,isCodeEditor:!0,defaultLanguage:r()},Rt(`editorStore`,f),ei(()=>{f.initialized&&(n(),r(),B(()=>{f.inputValue=n()?`\`\`\`${r()}\n${n()}\n\`\`\``:`\`\`\`${r()}\n\`\`\``}))}),ei(()=>{f.initialized&&(f.inputValue,B(()=>{let{lang:e=`plain`,code:t=``}=f.inputValue.match(/^```(?<lang>\w+?)?\n(?:(?<code>.*)\n)?```/s)?.groups??{};r()!==e&&r(e),n()!==t&&n(t)}))});var p=_$(),m=I(p);bs(m,()=>({...d,role:`none`,class:`sui code-editor`,hidden:o(),[Cs]:{flex:a()}}),void 0,void 0,void 0,`svelte-1tf7qqh`);var h=F(m),g=e=>{Ele(e,{get disabled(){return s()},get readonly(){return c()}})};G(h,e=>{i()&&e(g)}),$Q(L(h,2),{get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()}}),D(m);var _=L(m,2),v=e=>{dz(e,{get show(){return f.showConverterError},set show(e){f.showConverterError=e},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(_,e=>{f.showConverterError&&e(v)}),U(e,p),k()}var _$,v$,kle=o((()=>{Q(),Y(),Z(),sc(),QF(),mz(),n$(),i$(),Dle(),_$=V(`<div><!> <!></div> <!>`,1),v$={hash:`svelte-1tf7qqh`,code:`.code-editor.svelte-1tf7qqh {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.code-editor.flex.svelte-1tf7qqh:not([hidden]) {display:block;}`}}));function y$(e,t){O(t,!0),K(e,S$);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`name`,3,void 0),o=J(t,`autoResize`,3,!1),s=J(t,`hidden`,3,!1),c=J(t,`disabled`,3,!1),l=J(t,`readonly`,3,!1),u=J(t,`required`,3,!1),d=J(t,`invalid`,3,!1),f=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`name`,`autoResize`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]);var p=x$();let m;var h=F(p);Hr(h),bs(h,()=>({...f,dir:i(),name:a(),disabled:c()||void 0,readonly:l()||void 0,"aria-hidden":s(),"aria-disabled":c(),"aria-readonly":l(),"aria-required":u(),"aria-invalid":d(),[Cs]:{"auto-resize":o()}}),void 0,void 0,void 0,`svelte-18i6uc8`);var g=L(h,2),_=e=>{var t=b$(),r=F(t,!0);D(t),R(()=>{q(t,`dir`,i()),W(r,n()),t.dir=t.dir}),U(e,t)};G(g,e=>{o()&&e(_)}),D(p),R(()=>{m=cs(p,1,`sui text-area ${t.class??``}`,`svelte-18i6uc8`,m,{flex:r(),disabled:c(),readonly:l()}),q(p,`hidden`,s()),h.dir=h.dir}),Fs(h,n),U(e,p),k()}var b$,x$,S$,C$=o((()=>{Q(),Y(),b$=V(`<div class="clone svelte-18i6uc8" aria-hidden="true"> </div>`),x$=V(`<div role="none"><textarea></textarea> <!></div>`),S$={hash:`svelte-18i6uc8`,code:`.text-area.svelte-18i6uc8 {display:inline-grid;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-multiline-min-width);}.text-area[hidden].svelte-18i6uc8 {display:none;}.text-area.flex.svelte-18i6uc8:not([hidden]) {display:inline-grid;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}:is(textarea.svelte-18i6uc8, .clone.svelte-18i6uc8) {grid-area:1/1/2/2;display:block;margin:0;border-width:var(--sui-textbox-border-width, 1px);border-color:var(--sui-textbox-border-color);border-radius:var(--sui-textbox-border-radius);padding:var(--sui-textbox-multiline-padding);width:100%;min-height:8em;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);line-height:var(--sui-textbox-multiline-line-height);font-weight:var(--sui-textbox-font-weight, var(--sui-font-weight-normal, normal));text-align:var(--sui-textbox-text-align, start);text-indent:var(--sui-textbox-text-indent, 0);text-transform:var(--sui-textbox-text-transform, none);letter-spacing:var(--sui-textbox-letter-spacing, normal);word-spacing:var(--sui-word-spacing-normal, normal);transition:all 200ms;}:is(textarea:where(.svelte-18i6uc8), .clone:where(.svelte-18i6uc8)).resizing.svelte-18i6uc8 {transition-duration:0ms;}.svelte-18i6uc8:is(textarea:where(.svelte-18i6uc8), .clone:where(.svelte-18i6uc8)):focus {border-color:var(--sui-textbox-border-color-focus, var(--sui-primary-accent-color));color:var(--sui-textbox-foreground-color-focus, var(--sui-textbox-foreground-color));background-color:var(--sui-textbox-background-color-focus, var(--sui-textbox-background-color));}.svelte-18i6uc8:is(textarea:where(.svelte-18i6uc8), .clone:where(.svelte-18i6uc8)):is(:where(.svelte-18i6uc8):disabled, :where(.svelte-18i6uc8):read-only) {background-color:var(--sui-disabled-background-color);}textarea.svelte-18i6uc8 {resize:vertical;}textarea.auto-resize.svelte-18i6uc8 {overflow:hidden;resize:none;}textarea[aria-invalid=true].svelte-18i6uc8 {border-color:var(--sui-error-border-color);}.clone.svelte-18i6uc8 {overflow:hidden;visibility:hidden;}textarea.svelte-18i6uc8,
720
+ .clone.svelte-18i6uc8 {white-space:pre-wrap;word-break:break-all;}`}}));function Ale(e,t){O(t,!0);let n=Lt(`editorStore`),r=M(()=>n.selection.inlineTypes.includes(t.type));{let i=e=>{YF(e,{get name(){return OQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${OQ[t.type].labelKey}`)),o=M(()=>!n.useRichText);pI(e,{iconic:!0,get"aria-label"(){return z(a)},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(o)},get pressed(){return z(r)},onclick:async()=>{n.editor&&(await ZQ(n.editor),n.editor.dispatchCommand(uG,t.type))},startIcon:i,$$slots:{startIcon:!0}})}k()}var jle=o((()=>{Q(),Y(),Z(),iq(),sc(),bI(),XF(),NQ(),QQ()}));function Mle(e,t){O(t,!0);let n=Lt(`editorStore`);{let r=e=>{YF(e,{get name(){return t.component.icon}})},i=M(()=>!n.useRichText);pI(e,{iconic:!0,get"aria-label"(){return t.component.label},get"aria-controls"(){return`${n.editorId??``}-lexical-root`},get disabled(){return z(i)},onclick:()=>{n.editor?.update(()=>{iV([t.component.createNode(),MV()])})},startIcon:r,$$slots:{startIcon:!0}})}k()}var Nle=o((()=>{Q(),Y(),iq(),sc(),bI(),XF()}));function Ple(e,t){let n=Fa();O(t,!0);let r=`link`,i=Lt(`editorStore`),a=M(()=>i.selection.inlineTypes.includes(r)),o=N(!1),s=N(`create`),c=N(!1),l=N(``),u=N(``),d=()=>{i.editor?.getEditorState().read(()=>{let e=ese().trim();P(l,e,!0),P(c,!!e),P(s,`create`),P(o,!0)})},f=()=>{i.editor?.dispatchCommand(uY,null)},p=()=>{i.editor?.getEditorState().read(()=>{let e=XB();if(FB(e)){let t=e.anchor.getNode(),n=(t instanceof cY?t:vq(t,cY))?.getURL();if(n){P(c,!0),P(l,n,!0),P(s,`update`),P(o,!0);return}}f()})},m=()=>{z(a)?p():d()},h=e=>{eI(e,`Enter`)&&z(l)&&P(o,!1)},g=async e=>{if(e.detail.returnValue!==`cancel`&&z(s)!==`remove`){if(!i.editor)return;await new Promise(e=>{i.editor?.update(async()=>{let t=XB()??ZB()?.clone();if(FB(t)||(t=qB()),!z(c)){P(u,z(u).trim(),!0),P(u,z(u)||z(l),!0);let{anchor:e,focus:n}=t,r=DB(z(u)),i=r.getKey();iV([r]),e.set(i,z(u).length,`text`),n.set(i,0,`text`)}dH(t),e(void 0)})}),await ZQ(i.editor),i.editor.dispatchCommand(uY,z(l))}P(l,``),P(u,``)},_=()=>{i.editor?.registerCommand(pG,e=>(eI(e,$F()?`Meta+K`:`Ctrl+K`)&&(e.preventDefault(),m()),!1),2)};ei(()=>{i.editor&&_()});var v=E$(),y=I(v);{let e=e=>{YF(e,{get name(){return OQ[r].icon}})},t=M(()=>X(`_sui.text_editor.${OQ[r].labelKey}`)),n=M(()=>!i.useRichText);pI(y,{iconic:!0,get"aria-label"(){return z(t)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},get disabled(){return z(n)},get pressed(){return z(a)},onclick:()=>{m()},startIcon:e,$$slots:{startIcon:!0}})}var b=L(y,2);{let e=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`_sui.remove`));pI(e,{variant:`secondary`,get label(){return z(t)},onclick:()=>{f(),P(s,`remove`),P(o,!1)}})}};G(n,e=>{z(s)!==`create`&&e(r)}),U(e,t)},t=M(()=>z(s)===`create`?X(`_sui.text_editor.insert_link`):X(`_sui.text_editor.update_link`)),r=M(()=>!z(l)),i=M(()=>z(s)===`create`?X(`_sui.insert`):X(`_sui.update`));dL(b,{get title(){return z(t)},get okDisabled(){return z(r)},get okLabel(){return z(i)},onClose:e=>{g(e)},get open(){return z(o)},set open(e){P(o,e,!0)},get value(){return z(l)},set value(e){P(l,e,!0)},footerExtra:e,children:(e,t)=>{var r=T$(),i=I(r),a=F(i),o=F(a,!0);D(a),xL(L(a,2),{dir:`ltr`,get id(){return`${n}-url`},flex:!0,"aria-label":`URL`,onkeydown:e=>{h(e)},get value(){return z(l)},set value(e){P(l,e,!0)}}),D(i);var s=L(i,2),d=e=>{var t=w$(),r=F(t),i=F(r,!0);D(r),xL(L(r,2),{dir:`auto`,get id(){return`${n}-text`},flex:!0,onkeydown:e=>{h(e)},get value(){return z(u)},set value(e){P(u,e,!0)}}),D(t),R(e=>{q(r,`for`,`${n}-text`),W(i,e)},[()=>X(`_sui.text_editor.text`)]),U(e,t)};G(s,e=>{z(c)||e(d)}),R(e=>{q(a,`for`,`${n}-url`),W(o,e)},[()=>X(`_sui.text_editor.url`)]),U(e,r)},$$slots:{footerExtra:!0,default:!0}})}U(e,v),k()}var w$,T$,E$,Fle=o((()=>{Q(),Y(),fY(),Tq(),Z(),nI(),iq(),sc(),bI(),vL(),XF(),TL(),NQ(),QQ(),w$=V(`<div role="none"><label> </label> <!></div>`),T$=V(`<div role="none"><label> </label> <!></div> <!>`,1),E$=V(`<!> <!>`,1)}));function Ile(e,t){O(t,!0);let n=Lt(`editorStore`);{let r=e=>{YF(e,{name:`arrow_drop_down`,class:`small-arrow`})},i=e=>{tR(e,{children:(e,r)=>{var i=H();mo(I(i),17,()=>t.components,({id:e,label:t,icon:n,createNode:r})=>e,(e,t)=>{let r=()=>z(t).label,i=()=>z(t).icon,a=()=>z(t).createNode;aR(e,{get label(){return r()},onclick:()=>{n.editor?.update(()=>{iV([a()()])})},startIcon:e=>{var t=H(),n=I(t),r=e=>{YF(e,{get name(){return i()}})};G(n,e=>{i()&&e(r)}),U(e,t)},$$slots:{startIcon:!0}})}),U(e,i)},$$slots:{default:!0}})},a=M(()=>!n.useRichText),o=M(()=>X(`_sui.insert`));GI(e,{get disabled(){return z(a)},get label(){return z(o)},endIcon:r,popup:i,$$slots:{endIcon:!0,popup:!0}})}k()}var Lle=o((()=>{Q(),Y(),Z(),iq(),sc(),XF(),qI(),uR(),iR()}));function Rle(e,t){O(t,!0);let n=Lt(`editorStore`),r=M(()=>n.selection.blockType===t.type),i=async()=>{if(!n.editor)return;await ZQ(n.editor);let[,e]=t.type.match(/^heading-(\d)$/)??[];e&&n.editor.update(()=>{lq(XB(),()=>bX(`h${e}`))}),t.type===`paragraph`&&n.editor.update(()=>{lq(XB(),()=>MV())}),t.type===`bulleted-list`&&n.editor.dispatchCommand(AY,void 0),t.type===`numbered-list`&&n.editor.dispatchCommand(jY,void 0),t.type===`blockquote`&&n.editor.update(()=>{lq(XB(),()=>gX())}),t.type===`code-block`&&n.editor.update(()=>{lq(XB(),()=>SJ())})};var a=H();ao(I(a),()=>z(r),e=>{{let n=e=>{YF(e,{get name(){return OQ[t.type].icon}})},a=M(()=>X(`_sui.text_editor.${OQ[t.type].labelKey}`));dR(e,{get label(){return z(a)},get checked(){return z(r)},onclick:()=>{z(r)||i()},startIcon:n,$$slots:{startIcon:!0}})}}),U(e,a),k()}var zle=o((()=>{Q(),Y(),hz(),QJ(),MY(),LX(),gq(),Z(),iq(),sc(),XF(),fR(),NQ(),QQ()}));function Ble(e,t){O(t,!0);let n=J(t,`disabled`,3,!1),r=J(t,`readonly`,3,!1),i=Lt(`editorStore`),a=M(()=>i.config.components.find(({id:e})=>MQ.includes(e))),o=M(()=>i.config.components.filter(({id:e})=>!MQ.includes(e))),s=M(()=>gS([`paragraph`,...i.config.enabledButtons.filter(e=>jQ.includes(e))])),c=M(()=>gS(i.config.enabledButtons.filter(e=>AQ.includes(e))));{let t=M(()=>n()||r()),l=M(()=>X(`_sui.text_editor.text_editor`));p$(e,{get disabled(){return z(t)},get"aria-label"(){return z(l)},children:(e,t)=>{var n=j$(),r=I(n);{let e=e=>{{let t=M(()=>OQ[i.selection.blockType??``]?.icon??`format_paragraph`);YF(e,{get name(){return z(t)}})}},t=e=>{{let t=M(()=>X(`_sui.text_editor.text_style_options`));tR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),16,()=>z(s),e=>e,(e,t)=>{Rle(e,{get type(){return t}})}),U(e,n)},$$slots:{default:!0}})}},n=M(()=>!i.useRichText),a=M(()=>X(`_sui.text_editor.show_text_style_options`));GI(r,{get disabled(){return z(n)},get"aria-label"(){return z(a)},get"aria-controls"(){return`${i.editorId??``}-lexical-root`},startIcon:e,popup:t,$$slots:{startIcon:!0,popup:!0}})}var l=L(r,2),u=e=>{var t=D$(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2);{let e=M(()=>!i.useRichText);a$(r,{get disabled(){return z(e)}})}U(e,t)},d=e=>{var t=A$(),n=I(t),r=e=>{var t=O$(),n=I(t);ZI(n,{orientation:`vertical`}),Pae(L(n,2),{children:(e,t)=>{var n=H();mo(I(n),16,()=>z(c),e=>e,(e,t)=>{var n=H(),r=I(n),i=e=>{Ple(e,{})},a=e=>{Ale(e,{get type(){return t}})};G(r,e=>{t===`link`?e(i):e(a,-1)}),U(e,n)}),U(e,n)},$$slots:{default:!0}}),U(e,t)};G(n,e=>{z(c).length&&e(r)});var s=L(n,2),l=e=>{var t=k$(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2),i=e=>{Mle(e,{get component(){return z(a)}})};G(r,e=>{z(a)&&e(i)});var s=L(r,2),c=e=>{Ile(e,{get components(){return z(o)}})};G(s,e=>{z(o).length&&e(c)}),U(e,t)};G(s,e=>{i.config.components.length&&e(l)}),U(e,t)};G(l,e=>{i.selection.blockType===`code-block`?e(u):e(d,-1)});var f=L(l,2);tL(f,{flex:!0});var p=L(f,2),m=e=>{{let t=e=>{YF(e,{name:`markdown`})},n=M(()=>!i.useRichText),r=M(()=>X(`_sui.text_editor.edit_in_markdown`));pI(e,{iconic:!0,get disabled(){return i.hasConverterError},get pressed(){return z(n)},get"aria-label"(){return z(r)},onclick:()=>{i.useRichText=!i.useRichText,i.useRichText&&i.convertMarkdown()},startIcon:t,$$slots:{startIcon:!0}})}};G(p,e=>{i.config.modes.length>1&&e(m)}),U(e,n)},$$slots:{default:!0}})}k()}var D$,O$,k$,A$,j$,Vle=o((()=>{Q(),Y(),Z(),_S(),sc(),kI(),bI(),eL(),iL(),XF(),qI(),iR(),NQ(),c$(),jle(),Nle(),Fle(),Lle(),zle(),g$(),D$=V(`<!> <!>`,1),O$=V(`<!> <!>`,1),k$=V(`<!> <!> <!>`,1),A$=V(`<!> <!>`,1),j$=V(`<!> <!> <!> <!>`,1)}));function Hle(e,t){O(t,!0),K(e,N$);let n=J(t,`value`,15,``),r=J(t,`flex`,3,!1),i=J(t,`dir`,3,void 0),a=J(t,`modes`,19,()=>[`rich-text`,`plain-text`]),o=J(t,`buttons`,19,()=>[...AQ,...jQ]),s=J(t,`components`,19,()=>[]),c=J(t,`hidden`,3,!1),l=J(t,`disabled`,3,!1),u=J(t,`readonly`,3,!1),d=J(t,`required`,3,!1),f=J(t,`invalid`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`dir`,`modes`,`buttons`,`components`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`]),m=r$();m.config={...m.config,modes:a(),enabledButtons:o(),components:s()},Rt(`editorStore`,m),ei(()=>{if(!m.initialized)return;let e=n();B(()=>{m.inputValue=e})}),ei(()=>{if(!m.initialized)return;let e=m.inputValue;B(()=>{n()!==e&&n(e)})});var h=M$(),g=I(h);bs(g,()=>({...p,role:`none`,class:`sui text-editor`,hidden:c(),[Cs]:{flex:r()}}),void 0,void 0,void 0,`svelte-1eoxv9j`);var _=F(g);Ble(_,{get disabled(){return l()},get readonly(){return u()}});var v=L(_,2);{let e=M(()=>!m.useRichText||c());$Q(v,{get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()}})}var y=L(v,2);{let e=M(()=>m.useRichText||c());y$(y,{autoResize:!0,get flex(){return r()},get dir(){return i()},get hidden(){return z(e)},get disabled(){return l()},get readonly(){return u()},get required(){return d()},get invalid(){return f()},get value(){return m.inputValue},set value(e){m.inputValue=e}})}D(g);var b=L(g,2),x=e=>{dz(e,{get show(){return m.showConverterError},set show(e){m.showConverterError=e},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`_sui.text_editor.converter_error`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}})};G(b,e=>{m.showConverterError&&e(x)}),U(e,h),k()}var M$,N$,Ule=o((()=>{Q(),Y(),Z(),sc(),QF(),C$(),mz(),NQ(),n$(),i$(),Vle(),M$=V(`<div><!> <!> <!></div> <!>`,1),N$={hash:`svelte-1eoxv9j`,code:`.text-editor.svelte-1eoxv9j {margin:var(--sui-focus-ring-width);width:calc(100% - var(--sui-focus-ring-width) * 2);}.text-editor.flex.svelte-1eoxv9j:not([hidden]) {display:block;}.text-editor.svelte-1eoxv9j .sui.text-area {margin:0 !important;width:100% !important;min-width:auto;}.text-editor.svelte-1eoxv9j .sui.text-area textarea {border-start-start-radius:0 !important;border-start-end-radius:0 !important;border-end-start-radius:var(--sui-textbox-border-radius) !important;border-end-end-radius:var(--sui-textbox-border-radius) !important;}`}}));function Wle(e,t){let n=Fa();O(t,!0),K(e,F$);let r=J(t,`value`,15),i=J(t,`invalid`,15,!1),a=J(t,`flex`,3,!1),o=J(t,`min`,3,void 0),s=J(t,`max`,3,void 0),c=J(t,`step`,3,1),l=J(t,`hidden`,3,!1),u=J(t,`disabled`,3,!1),d=J(t,`readonly`,3,!1),f=J(t,`required`,3,!1),p=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`invalid`,`flex`,`min`,`max`,`step`,`class`,`hidden`,`disabled`,`readonly`,`required`,`children`,`increaseIcon`,`decreaseIcon`,`onChange`]),m=N(!1),h=N(``),g=M(()=>String(c()).split(`.`)[1]?.length||0),_=M(()=>typeof o()==`number`&&Number(z(h)||0)<=o()),v=M(()=>typeof s()==`number`&&Number(z(h)||0)>=s());ei(()=>{let e=String(r()??``);B(()=>{z(h)!==e&&P(h,e,!0)})}),ei(()=>{let e=z(h).trim()?Number(z(h)):NaN;r(Number.isNaN(e)?void 0:e)}),ei(()=>{z(m)&&i(f()&&(r()===void 0||z(h)===``)||z(h)!==void 0&&z(h)!==``&&(Number.isNaN(Number(z(h)))||typeof o()==`number`&&Number(z(h)||0)<o()||typeof s()==`number`&&Number(z(h)||0)>s()))});let y=()=>{z(_)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)-c()).toFixed(z(g)),!0)},b=()=>{z(v)||Number.isNaN(Number(z(h)))||P(h,Number(Number(z(h)||0)+c()).toFixed(z(g)),!0)};var x=P$();let S;var C=F(x),w=F(C);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.increaseIcon),U(e,n)},a=e=>{YF(e,{name:`expand_less`})};G(r,e=>{t.increaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(v)),a=M(()=>X(`_sui.number_input.increase`));pI(w,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{b()},startIcon:e,$$slots:{startIcon:!0}})}var T=L(w,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.decreaseIcon),U(e,n)},a=e=>{YF(e,{name:`expand_more`})};G(r,e=>{t.decreaseIcon?e(i):e(a,-1)}),U(e,n)},i=M(()=>u()||d()||Number.isNaN(Number(r()))||z(_)),a=M(()=>X(`_sui.number_input.decrease`));pI(T,{iconic:!0,get disabled(){return z(i)},get"aria-label"(){return z(a)},get"aria-controls"(){return n},onclick:()=>{y()},startIcon:e,$$slots:{startIcon:!0}})}D(C);var ee=L(C,2);{let e=M(()=>Number(r()||0)),c=M(()=>z(g)>0?`decimal`:`numeric`);xL(ee,Zs({dir:`ltr`},()=>p,{role:`spinbutton`,get id(){return n},spellcheck:`false`,get flex(){return a()},get hidden(){return l()},get disabled(){return u()},get readonly(){return d()},get required(){return f()},get invalid(){return i()},get"aria-valuenow"(){return z(e)},get"aria-valuemin"(){return o()},get"aria-valuemax"(){return s()},get inputmode(){return z(c)},onkeydown:e=>{let{key:t,ctrlKey:n,metaKey:r,altKey:i,shiftKey:a}=e,o=a||i||n||r;t===`ArrowDown`&&!o&&(e.preventDefault(),y()),t===`ArrowUp`&&!o&&(e.preventDefault(),b()),z(m)||P(m,!0)},oninput:()=>{z(m)||P(m,!0)},get onChange(){return t.onChange},get value(){return z(h)},set value(e){P(h,e,!0)}}))}D(x),R(()=>{S=cs(x,1,`sui number-input ${t.class??``}`,`svelte-19zi0d3`,S,{flex:a(),disabled:u(),readonly:d()}),q(x,`hidden`,l())}),U(e,x),k()}var P$,F$,Gle=o((()=>{Q(),Y(),Z(),sc(),bI(),XF(),TL(),P$=V(`<div role="none"><div role="none" class="buttons svelte-19zi0d3"><!> <!></div> <!></div>`),F$={hash:`svelte-19zi0d3`,code:`.number-input.svelte-19zi0d3 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.number-input.flex.svelte-19zi0d3:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.number-input.svelte-19zi0d3 :not(:first-child) input {border-start-start-radius:0;border-end-start-radius:0;}.number-input.svelte-19zi0d3 :not(:last-child) input {border-start-end-radius:0;border-end-end-radius:0;}.number-input.svelte-19zi0d3 :not(.disabled) button[aria-disabled=true] {filter:grayscale(0) opacity(1);}.number-input.svelte-19zi0d3 :not(.disabled) button[aria-disabled=true] * {filter:grayscale(1) opacity(0.35);}.number-input.svelte-19zi0d3 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.buttons.svelte-19zi0d3 {display:flex;flex-direction:column;width:24px;height:var(--sui-textbox-height);}.buttons.svelte-19zi0d3 button {flex:none;margin:0 !important;border-width:1px;border-color:var(--sui-textbox-border-color);width:100%;height:50%;}.buttons.svelte-19zi0d3 button:first-of-type {border-block-start-width:1px;border-block-end-width:0;border-inline-end-width:0;border-inline-start-width:1px;border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;}.buttons.svelte-19zi0d3 button:last-of-type {border-block-start-width:0;border-block-end-width:1px;border-inline-end-width:0;border-inline-start-width:1px;border-start-start-radius:0;border-start-end-radius:0;border-end-end-radius:0;}.buttons.svelte-19zi0d3 button .icon {font-size:20px;}`}}));function I$(e,t){let n=Fa();O(t,!0),K(e,R$);let r=J(t,`value`,15),i=J(t,`flex`,3,!1),a=J(t,`monospace`,3,!0),o=J(t,`hidden`,3,!1),s=J(t,`disabled`,3,!1),c=J(t,`readonly`,3,!1),l=J(t,`required`,3,!1),u=J(t,`invalid`,3,!1),d=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`value`,`flex`,`monospace`,`class`,`hidden`,`disabled`,`readonly`,`required`,`invalid`,`children`,`visibilityIcon`]),f=N(void 0),p=N(!1);var m=L$();let h;var g=F(m);xL(g,Zs({dir:`ltr`},()=>d,{get id(){return n},spellcheck:`false`,get flex(){return i()},get monospace(){return a()},get hidden(){return o()},get disabled(){return s()},get readonly(){return c()},get required(){return l()},get invalid(){return u()},get element(){return z(f)},set element(e){P(f,e,!0)},get value(){return r()},set value(e){r(e)}}));var _=L(g,2);{let e=e=>{var n=H(),r=I(n),i=e=>{var n=H();Eo(I(n),()=>t.visibilityIcon),U(e,n)},a=e=>{{let t=M(()=>z(p)?`visibility_off`:`visibility`);YF(e,{get name(){return z(t)}})}};G(r,e=>{t.visibilityIcon?e(i):e(a,-1)}),U(e,n)},r=M(()=>s()||c()),i=M(()=>X(z(p)?`_sui.secret_input.hide_secret`:`_sui.secret_input.show_secret`));pI(_,{iconic:!0,get disabled(){return z(r)},get pressed(){return z(p)},get"aria-label"(){return z(i)},get"aria-controls"(){return n},onclick:()=>{P(p,!z(p))},startIcon:e,$$slots:{startIcon:!0}})}D(m),R(()=>{h=cs(m,1,`sui secret-input ${t.class??``}`,`svelte-1r2ein0`,h,{flex:i(),disabled:s(),readonly:c(),show:z(p)}),q(m,`hidden`,o())}),U(e,m),k()}var L$,R$,Kle=o((()=>{Q(),Y(),Z(),bI(),XF(),TL(),L$=V(`<div role="none"><!> <!></div>`),R$={hash:`svelte-1r2ein0`,code:`.secret-input.svelte-1r2ein0 {display:inline-flex;align-items:center;margin:var(--sui-focus-ring-width);min-width:var(--sui-textbox-singleline-min-width);}.secret-input.flex.svelte-1r2ein0:not([hidden]) {display:inline-flex;width:-moz-available;width:-webkit-fill-available;width:stretch;min-width:0;}.secret-input.show.svelte-1r2ein0 input {-webkit-text-security:none;}.secret-input.svelte-1r2ein0 .text-input {flex:auto;margin:0 !important;width:0;min-width:0 !important;}.secret-input.svelte-1r2ein0 input {border-start-end-radius:0;border-end-end-radius:0;-webkit-text-security:disc;}.secret-input.svelte-1r2ein0 button {flex:none;margin-block:0;margin-inline-start:-1px;margin-inline-end:0;border-width:1px;border-color:var(--sui-textbox-border-color);width:var(--sui-textbox-height);aspect-ratio:1/1;}.secret-input.svelte-1r2ein0 button:last-child {border-start-start-radius:0;border-start-end-radius:4px;border-end-end-radius:4px;border-end-start-radius:0;}.secret-input.svelte-1r2ein0 button .icon {font-size:var(--sui-font-size-xx-large);}`}}));function qle(e,t){O(t,!0),K(e,U$);let n=J(t,`orientation`,3,`horizontal`),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`orientation`,`children`]),i=[`https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&family=Noto+Sans+Mono:wght@100..900&display=swap`,`https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block`],a=N(!1);ac(()=>{let e=globalThis.matchMedia(`(prefers-color-scheme: dark)`),{dataset:t}=document.documentElement,n=()=>{t.autoTheming!==`false`&&(t.theme=e.matches?`dark`:`light`)};n(),e.addEventListener(`change`,n);let r=globalThis.setTimeout(()=>{P(a,!0)},1e3);return()=>{e.removeEventListener(`change`,n),globalThis.clearTimeout(r)}});var o=H$();Ko(`1x75kbt`,e=>{var t=B$(),n=I(t);mo(L(n,8),16,()=>i,e=>e,(e,t)=>{var n=z$(),r=I(n),i=L(r,2);R(()=>{q(r,`href`,t),q(i,`href`,t)}),U(e,n)}),R(e=>q(n,`content`,e),[()=>[`width=device-width`,`initial-scale=1`,`maximum-scale=1`,`interactive-widget=resizes-content`].join(`, `)]),U(e,t)});var s=I(o),c=e=>{var t=V$();ds(t,``,{},{opacity:`0`}),U(e,t)};G(s,e=>{z(a)||e(c)});var l=L(s,2),u=e=>e.preventDefault(),d=e=>e.preventDefault(),f=e=>{if(document.documentElement.matches(`[data-env="dev"]`))return;let t=e.target;document.documentElement.matches(`[data-env="dev"]`)||t?.matches(`input, textarea`)&&`maxLength`in t||t?.closest(`[role="textbox"]`)?.contentEditable===`true`||e.preventDefault()};bs(l,()=>({...r,role:`none`,class:`sui app-shell ${n()??``}`,ondragover:u,ondrop:d,oncontextmenu:f}),void 0,void 0,void 0,`svelte-1x75kbt`),Eo(F(l),()=>t.children??E),D(l),U(e,o),k()}var z$,B$,V$,H$,U$,Jle=o((()=>{Q(),Y(),sc(),z$=V(`<link rel="preload" as="style"/> <link rel="stylesheet"/>`,1),B$=V(`<meta name="viewport"/> <meta name="google" content="notranslate"/> <link rel="preconnect" href="https://fonts.googleapis.com"/> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/> <!>`,1),V$=V(`<div class="font-loader svelte-1x75kbt" aria-hidden="true">Loading <strong>Sveltia</strong> <em>UI</em> <span role="none" class="material-symbols-outlined">favorite</span></div>`),H$=V(`<!> <div><!></div>`,1),U$={hash:`svelte-1x75kbt`,code:`:root,
721
721
  :host {--sui-base-hue: 210;--sui-highlight-foreground-color: hsl(var(--sui-foreground-color-1-hsl));--sui-primary-foreground-color: hsl(var(--sui-foreground-color-2-hsl));--sui-secondary-foreground-color: hsl(var(--sui-foreground-color-3-hsl));--sui-tertiary-foreground-color: hsl(var(--sui-foreground-color-4-hsl));--sui-disabled-foreground-color: hsl(var(--sui-foreground-color-5-hsl));--sui-error-foreground-color: hsl(
722
722
  var(--sui-error-color-hue) var(--sui-alert-foreground-color-saturation)
723
723
  var(--sui-alert-foreground-color-lightness)
@@ -775,7 +775,7 @@ _$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-1lqki0a 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-1lqki0a {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-1lqki0a {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-1lqki0a {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-1lqki0a {display:flex;flex-direction:column;overflow:hidden;}`}}));function W$(e,t){K(e,K$);let n=J(t,`children`,3,void 0);var r=G$();Eo(F(r),()=>n()??E),D(r),U(e,r)}var G$,K$,Yle=o((()=>{Q(),Y(),G$=V(`<div role="none" class="sui empty-state svelte-sgkofb"><!></div>`),K$={hash:`svelte-sgkofb`,code:`.empty-state.svelte-sgkofb {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}}));function q$(e,t){K(e,Y$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`]);var a=J$();bs(a,()=>({...i,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,void 0,`svelte-xjgcyd`);var o=F(a);Eo(F(o),()=>t.children??E),D(o),D(a),R(()=>o.inert=r()),U(e,a)}var J$,Y$,Xle=o((()=>{Q(),Y(),J$=V(`<div><div role="none" class="inner svelte-xjgcyd"><!></div></div>`),Y$={hash:`svelte-xjgcyd`,code:`.inner.svelte-xjgcyd {display:contents;}`}})),Zle=o((()=>{})),X$=o((()=>{fae(),QF(),jae(),Nae(),kI(),bI(),Fae(),Iae(),Lae(),Rae(),Q(),Y(),Z(),_h(),eL(),iL(),XF(),Bae(),Vae(),Hae(),Uae(),vL(),Wae(),cI(),Gae(),Kae(),qae(),Jae(),Xae(),KL(),Zae(),eR(),qI(),fR(),Qae(),uR(),iR(),eoe(),noe(),ioe(),ooe(),coe(),loe(),uoe(),VR(),voe(),UR(),boe(),xoe(),Soe(),woe(),Eoe(),Ooe(),Aoe(),Moe(),kle(),Ule(),Gle(),TL(),FR(),Kle(),C$(),mz(),f$(),iI(),Jle(),Yle(),Xle(),Zle(),dae()})),Z$,Q$,$$,e1,t1,n1=o((()=>{mS(),Ep(),Z$=l(aN(),1),sk(),Q$=(e,t,n,r)=>{let i=ok(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])=>Tp(e,t))},$$=(e,t,n)=>n?n.test(String(e??``)):e===t,e1=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?Tp(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},t1=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new dS(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,Z$.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})),r1,Qle=o((()=>{IS(),n1(),sk(),r1=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>FS(e)===n);let r=ok(n);return e.filter(e=>{let i=e[t];return $$(i,n,r)})}})),i1,$le=o((()=>{Z(),n1(),i1=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=X(`other`);return Object.fromEntries(Q$(e,n,e=>e[t],r))}})),a1,o1,s1,eue=o((()=>{a1=l(aN(),1),sp(),Yp(),y1(),n1(),o1=ln(),s1=async({repository:e})=>{await t1(e,`assets-view`,o1),Hp.subscribe(e=>{let t=A(o1)?.[e?.internalPath??`*`]??structuredClone(h1);(0,a1.default)(t,A(g1))||g1.set(t)}),g1.subscribe(e=>{let t=A(Hp)?.internalPath??`*`;(0,a1.default)(e,A(o1)?.[t]??{})||o1.update(n=>({...n,[t]:e}))})}})),c1,l1,tue=o((()=>{n1(),c1=(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]??``},l1=(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 e1(r,e=>{let n=c1(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})),u1,d1,f1,p1,m1,h1,g1,_1,v1,y1=o((()=>{Z(),u1=l(aN(),1),sp(),MF(),Yp(),Qle(),$le(),eue(),tue(),zP(),$b(),nb(),uN(),d1=ln(!1),f1=ln(!1),p1=un([wF],([e],t)=>{t(!!e.files.length)}),m1=({collectionName:e,fileName:t,internalPath:n})=>{if(e===void 0)return X(n===void 0?`all_assets`:`global_assets`);let r=Xb(e),i=r?Zb(r):e;if(!t)return i;let a=r?Zy(r,t):void 0;return`${i} › ${a?Qy(a):t}`},h1={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},g1=ln({type:`grid`,showInfo:!0}),_1=un([_F,Hp],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,u1.default)(e,t))):n(e?[...e]:[])}),v1=un([_1,g1],([e,t],n)=>{let r=[...e];r=l1(r,t.sort),r=r1(r,t.filter);let i=i1(r,t.group);(0,u1.default)(A(v1),i)||n(i)}),LP.subscribe(e=>{e&&!A(o1)&&s1(e)}),_1.subscribe(e=>{xF.set([]),A(lN).devModeEnabled&&console.info(`listedAssets`,e)})})),b1,x1=o((()=>{b1=e=>e?window.open(e,`_blank`,`noopener,noreferrer`):null})),S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1=o((()=>{tS(),sc(),sp(),y1(),uF(),JF(),x1(),S1=un([BF,d1],([e,t])=>e||t),C1=ln(``),w1=ln(``),T1=(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(`,`)]))}},E1=null,D1=(e,t)=>{if(!document.startViewTransition||E1){t();return}let n={types:[e],update:async()=>{t(),await eS(50),await new Promise(e=>{wn(()=>{e(void 0)})})}};try{E1=document.startViewTransition(n),E1.finished.finally(()=>{E1=null})}catch{t()}},O1=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=T1(i).path,s=T1(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;D1(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},k1=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=T1();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&&D1(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},A1=(e,t={})=>{let n=`backwards`;window.history.state?.from?D1(n,()=>{window.history.back()}):k1(e,{...t,transitionType:n})},j1=()=>{let{display_url:e,_siteURL:t}=A(aF);b1(e||t||`/`)}})),N1,P1,F1,I1,L1,R1,z1,B1,V1,H1,U1,W1,G1,K1=o((()=>{Z(),f(),mS(),sp(),M1(),zP(),uF(),Jy(),tM(),uN(),N1=ln({message:``,context:`authentication`}),P1=ln(!0),F1=ln(!1),I1=async()=>{await pS.set(`sveltia-cms.user`,{}),eM.set(void 0),P1.set(!0)},L1=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await I1()},R1=()=>{N1.set({message:``,context:`authentication`})},z1=(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(IP)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),N1.set({message:n,context:t}),console.error(e.name,e.message,e.cause)},B1=()=>{let{path:e}=T1(),{encodedData:t}=e.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};k1(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));u(e)&&typeof e.token==`string`&&(n={token:e.token},u(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},V1=async()=>{let e=await pS.get(`sveltia-cms.user`)||await pS.get(`decap-cms-user`)||await pS.get(`netlify-cms-user`);if(u(e)&&typeof e.backendName==`string`)return e},H1=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:A(aF).backend.name;return IP.set(t),A(LP)},U1=async()=>{R1();let e,t;if({_user:e,copiedPrefs:t}=B1(),e??=await V1(),!e)return;let n=H1(e);if(e&&n){eM.set(e);let{token:t,refreshToken:r}=e;F1.set(!0);try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,eM.set(void 0)}}if(F1.set(!1),P1.set(!e),!(!e||!n)){eM.set(e),t&&lN.update(e=>({...e,...t}));try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?P1.set(!0):z1(e,`dataFetch`),await L1(e)}}},W1=async(e,t)=>{R1(),IP.set(e);let n=A(LP);if(!n)return;let r;F1.set(!0);try{r=await n.signIn({token:t,auto:!1})}catch(e){F1.set(!1),P1.set(!0),t&&e.cause?.status===401?z1(Error(`Invalid token`,{cause:{message:X(`sign_in_error.invalid_token`)}})):z1(e);return}if(F1.set(!1),P1.set(!r),r){eM.set(r);try{await n.fetchFiles()}catch(e){z1(e,`dataFetch`),await L1(e)}}},G1=async()=>{await A(LP)?.signOut(),await I1(),IP.set(void 0),By.set(!1);let e=A(aF)?.logout_redirect_url;e&&(window.location.href=e)}}));function q1(e,t){O(t,!0),K(e,n0);let n=()=>j(aF,`$cmsConfig`,c),r=()=>j(GA,`$isLocalHost`,c),i=()=>j(N1,`$signInError`,c),a=()=>j(F1,`$signingIn`,c),o=()=>j(KA,`$isLocalBackendSupported`,c),s=()=>j(qA,`$isBrave`,c),[c,l]=mn(),u=N(!1),d=N(``),f=M(()=>n()?.backend),p=M(()=>z(f).name),m=M(()=>z(p)?MP[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).allow_token_auth===!1),y=M(()=>z(p)===`gitea`&&z(f).base_url===`https://codeberg.org`?`Codeberg`:z(m)?.label),b=M(()=>z(p)===`gitea`&&!z(f).app_id);ac(()=>{i().message||U1()});var x=t0(),S=I(x),C=F(S),w=e=>{var t=J1(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`signing_in`)]),U(e,t)},T=e=>{var t=Q1(),n=I(t),r=e=>{var t=Z1(),n=I(t);{let e=M(()=>X(`work_with_local_repo`)),t=M(()=>!o());pI(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await W1(`local`)}})}var r=L(n,2),a=e=>{var t=Y1(),n=F(t),r=e=>{var t=H();So(I(t),()=>eA(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=Pa();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=X1(),n=F(t),r=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description`,{values:{repo:z(g)}})]),U(e,t)},i=e=>{var t=Pa();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)}),tL(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)}}));pI(a,{get variant(){return z(e)},get label(){return z(t)},get disabled(){return z(b)},onclick:async()=>{await W1(z(p))}})}var c=L(a,2),l=e=>{{let t=M(()=>X(`sign_in_using_access_token`,{values:{service:z(y)}}));pI(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(T,1)});var ee=L(C,2),te=e=>{var t=$1(),n=F(t);YF(n,{name:`error`});var r=L(n);D(t),R(()=>W(r,` ${i().message??``}`)),U(e,t)};G(ee,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());EL(ne,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{await W1(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)=>{gt();var n=e0(),r=I(n),i=L(r),a=e=>{var t=H();So(I(t),()=>eA(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 J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,nue=o((()=>{Q(),Y(),Z(),X$(),sc(),zP(),uF(),K1(),ej(),tA(),J1=V(`<div role="alert" class="message"> </div>`),Y1=V(`<div role="alert"><!></div>`),X1=V(`<div role="none"><!></div>`),Z1=V(`<!> <!> <!>`,1),Q1=V(`<!> <!> <!>`,1),$1=V(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),e0=V(` <!>`,1),t0=V(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),n0={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);}`}})),r0,rue=o((()=>{r0=`<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>`})),i0,a0,o0,s0,c0,l0=o((()=>{ES(),sp(),rue(),uF(),i0=`Sveltia CMS`,a0=`data:image/svg+xml;base64,${btoa(r0)}`,o0=un([aF],([e])=>e?.app_title||`Sveltia CMS`),s0=un([aF],([e])=>e?.logo?.src||e?.logo_url||a0),c0=un(s0,e=>{let t=e.match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/);return t?t[1]:TS.getType(e)??void 0})}));function iue(e,t){O(t,!0),K(e,x0);let n=()=>j(cF,`$cmsConfigLoaded`,h),r=()=>j(o0,`$appTitle`,h),i=()=>j(s0,`$appLogoURL`,h),a=()=>j(sF,`$cmsConfigErrors`,h),o=()=>j(cN,`$prefsError`,h),s=()=>j(aF,`$cmsConfig`,h),c=()=>j(lN,`$prefs`,h),l=()=>j(N1,`$signInError`,h),u=()=>j(fM,`$inAuthPopup`,h),d=()=>j(eM,`$user`,h),f=()=>j(P1,`$unauthenticated`,h),p=()=>j(By,`$dataLoaded`,h),m=()=>j(Vy,`$dataLoadedProgress`,h),[h,g]=mn();ei(()=>{n()&&pn(w1,X(`welcome_message`,{values:{name:r()}}))});var _=b0(),v=I(_),y=F(v),b=F(y),x=e=>{var t=d0(),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=p0(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);mo(i,5,a,e=>e,(e,t)=>{var n=f0();u0(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=m0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`prefs.error.${o().type}`)]),U(e,t)},T=e=>{var t=h0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading_cms_config`)]),U(e,t)},ee=e=>{var t=g0(),n=I(t),r=F(n),i=F(r,!0);D(r);var a=L(r,2);u0(F(a),()=>l().message),D(a),D(n),q1(L(n,2),{}),R(e=>W(i,e),[()=>X(`loading_site_data_error`)]),U(e,t)},te=e=>{var t=_0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`authorizing`)]),U(e,t)},ne=e=>{q1(e,{})},re=e=>{var t=v0(),n=I(t),r=F(n,!0);D(n);var i=L(n,2),a=e=>{$ae(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(T,2):l().message&&l().context===`dataFetch`?e(ee,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=y0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`powered_by`,{values:{name:i0}})]),U(e,t)};G(ie,e=>{n()&&r()!==`Sveltia CMS`&&e(ae)}),U(e,_),k(),g()}var u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,aue=o((()=>{Q(),Y(),Z(),X$(),BE(),yO(),nue(),l0(),M1(),CM(),uF(),Jy(),tM(),K1(),uN(),u0=(e,t=E)=>{var n=H();So(I(n),()=>zE(XE.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),U(e,n)},d0=V(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),f0=V(`<li><!></li>`),p0=V(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),m0=V(`<div role="alert" class="message"> </div>`),h0=V(`<div role="alert" class="message"> </div>`),g0=V(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),_0=V(`<div role="alert" class="message"> </div>`),v0=V(`<div role="alert" class="message"> </div> <!>`,1),y0=V(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),b0=V(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),x0={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;}
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-1x75kbt 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-1x75kbt {position:absolute;inset-inline-start:-99999px;font-family:var(--sui-font-family-default);}.app-shell.svelte-1x75kbt {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-1x75kbt {display:flex;flex-direction:row;overflow:hidden;}.app-shell.vertical.svelte-1x75kbt {display:flex;flex-direction:column;overflow:hidden;}`}}));function W$(e,t){K(e,K$);let n=J(t,`children`,3,void 0);var r=G$();Eo(F(r),()=>n()??E),D(r),U(e,r)}var G$,K$,Yle=o((()=>{Q(),Y(),G$=V(`<div role="none" class="sui empty-state svelte-2l71wc"><!></div>`),K$={hash:`svelte-2l71wc`,code:`.empty-state.svelte-2l71wc {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px;width:100%;height:100%;text-align:center;}`}}));function q$(e,t){K(e,Y$);let n=J(t,`hidden`,3,!1),r=J(t,`disabled`,3,!1),i=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`class`,`hidden`,`disabled`,`children`]);var a=J$();bs(a,()=>({...i,role:`group`,class:`sui group ${t.class??``}`,hidden:n(),"aria-hidden":n(),"aria-disabled":r()}),void 0,void 0,void 0,`svelte-u0t3xi`);var o=F(a);Eo(F(o),()=>t.children??E),D(o),D(a),R(()=>o.inert=r()),U(e,a)}var J$,Y$,Xle=o((()=>{Q(),Y(),J$=V(`<div><div role="none" class="inner svelte-u0t3xi"><!></div></div>`),Y$={hash:`svelte-u0t3xi`,code:`.inner.svelte-u0t3xi {display:contents;}`}})),Zle=o((()=>{})),X$=o((()=>{fae(),QF(),jae(),Nae(),kI(),bI(),Fae(),Iae(),Lae(),Rae(),Q(),Y(),Z(),_h(),eL(),iL(),XF(),Bae(),Vae(),Hae(),Uae(),vL(),Wae(),cI(),Gae(),Kae(),qae(),Jae(),Xae(),KL(),Zae(),eR(),qI(),fR(),Qae(),uR(),iR(),eoe(),noe(),ioe(),ooe(),coe(),loe(),uoe(),VR(),voe(),UR(),boe(),xoe(),Soe(),woe(),Eoe(),Ooe(),Aoe(),Moe(),kle(),Ule(),Gle(),TL(),FR(),Kle(),C$(),mz(),f$(),iI(),Jle(),Yle(),Xle(),Zle(),dae()})),Z$,Q$,$$,e1,t1,n1=o((()=>{mS(),Ep(),Z$=l(aN(),1),sk(),Q$=(e,t,n,r)=>{let i=ok(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])=>Tp(e,t))},$$=(e,t,n)=>n?n.test(String(e??``)):e===t,e1=(e,t,n,r)=>{let i=e.map(e=>({item:e,key:t(e)}));return i.sort(({key:e},{key:t})=>n?Tp(e,t):e-t),r===`descending`&&i.reverse(),e.splice(0,e.length,...i.map(({item:e})=>e)),e},t1=async(e,t,n)=>{let{databaseName:r}=e??{},i=r?new dS(r,`ui-settings`):null,a=await i?.get(t)??{};n.set(a);let o=a;n.subscribe(e=>{(0,Z$.default)(e,o)||(o=e,(async()=>{try{await i?.set(t,e)}catch{}})())})}})),r1,Qle=o((()=>{IS(),n1(),sk(),r1=(e,{field:t,pattern:n}={field:``,pattern:``})=>{if(!t)return e;if(t===`fileType`)return e.filter(({path:e})=>FS(e)===n);let r=ok(n);return e.filter(e=>{let i=e[t];return $$(i,n,r)})}})),i1,$le=o((()=>{Z(),n1(),i1=(e,{field:t,pattern:n}={field:``,pattern:void 0})=>{if(!t)return e.length?{"*":e}:{};let r=X(`other`);return Object.fromEntries(Q$(e,n,e=>e[t],r))}})),a1,o1,s1,eue=o((()=>{a1=l(aN(),1),sp(),Yp(),y1(),n1(),o1=ln(),s1=async({repository:e})=>{await t1(e,`assets-view`,o1),Hp.subscribe(e=>{let t=A(o1)?.[e?.internalPath??`*`]??structuredClone(h1);(0,a1.default)(t,A(g1))||g1.set(t)}),g1.subscribe(e=>{let t=A(Hp)?.internalPath??`*`;(0,a1.default)(e,A(o1)?.[t]??{})||o1.update(n=>({...n,[t]:e}))})}})),c1,l1,tue=o((()=>{n1(),c1=(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]??``},l1=(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 e1(r,e=>{let n=c1(e,t);return i===String?n??``:Number(n??0)},i===String,n),r}})),u1,d1,f1,p1,m1,h1,g1,_1,v1,y1=o((()=>{Z(),u1=l(aN(),1),sp(),MF(),Yp(),Qle(),$le(),eue(),tue(),zP(),$b(),nb(),uN(),d1=ln(!1),f1=ln(!1),p1=un([wF],([e],t)=>{t(!!e.files.length)}),m1=({collectionName:e,fileName:t,internalPath:n})=>{if(e===void 0)return X(n===void 0?`all_assets`:`global_assets`);let r=Xb(e),i=r?Zb(r):e;if(!t)return i;let a=r?Zy(r,t):void 0;return`${i} › ${a?Qy(a):t}`},h1={type:`grid`,showInfo:!0,sort:{key:`name`,order:`ascending`}},g1=ln({type:`grid`,showInfo:!0}),_1=un([_F,Hp],([e,t],n)=>{e&&t&&t.internalPath!==void 0?n(e.filter(({folder:e})=>(0,u1.default)(e,t))):n(e?[...e]:[])}),v1=un([_1,g1],([e,t],n)=>{let r=[...e];r=l1(r,t.sort),r=r1(r,t.filter);let i=i1(r,t.group);(0,u1.default)(A(v1),i)||n(i)}),LP.subscribe(e=>{e&&!A(o1)&&s1(e)}),_1.subscribe(e=>{xF.set([]),A(lN).devModeEnabled&&console.info(`listedAssets`,e)})})),b1,x1=o((()=>{b1=e=>e?window.open(e,`_blank`,`noopener,noreferrer`):null})),S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1=o((()=>{tS(),sc(),sp(),y1(),uF(),JF(),x1(),S1=un([BF,d1],([e,t])=>e||t),C1=ln(``),w1=ln(``),T1=(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(`,`)]))}},E1=null,D1=(e,t)=>{if(!document.startViewTransition||E1){t();return}let n={types:[e],update:async()=>{t(),await eS(50),await new Promise(e=>{wn(()=>{e(void 0)})})}};try{E1=document.startViewTransition(n),E1.finished.finally(()=>{E1=null})}catch{t()}},O1=(e,t,n)=>{let{isTrusted:r,oldURL:i,newURL:a}=e;if(!r){t();return}let o=T1(i).path,s=T1(a).path,c=n.test(o)&&n.test(s),l=o.split(`/`).length,u=s.split(`/`).length;D1(c&&l>u?`backwards`:c&&l<u?`forwards`:`unknown`,()=>t())},k1=async(e,{state:t={},replaceState:n=!1,notifyChange:r=!0,transitionType:i=`unknown`}={})=>{let{path:a}=T1();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&&D1(i,()=>{window.dispatchEvent(new HashChangeEvent(`hashchange`,{oldURL:l,newURL:u}))})},A1=(e,t={})=>{let n=`backwards`;window.history.state?.from?D1(n,()=>{window.history.back()}):k1(e,{...t,transitionType:n})},j1=()=>{let{display_url:e,_siteURL:t}=A(aF);b1(e||t||`/`)}})),N1,P1,F1,I1,L1,R1,z1,B1,V1,H1,U1,W1,G1,K1=o((()=>{Z(),f(),mS(),sp(),M1(),zP(),uF(),Jy(),tM(),uN(),N1=ln({message:``,context:`authentication`}),P1=ln(!0),F1=ln(!1),I1=async()=>{await pS.set(`sveltia-cms.user`,{}),eM.set(void 0),P1.set(!0)},L1=async e=>{(typeof e?.cause?.status==`number`||e?.message===`Not a collaborator of the repository`)&&await I1()},R1=()=>{N1.set({message:``,context:`authentication`})},z1=(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(IP)===`local`?`sign_in_error.picker_dismissed`:`sign_in_error.authentication_aborted`)),N1.set({message:n,context:t}),console.error(e.name,e.message,e.cause)},B1=()=>{let{path:e}=T1(),{encodedData:t}=e.match(/^\/signin\/(?<encodedData>.+)/)?.groups??{};if(!t)return{_user:void 0,copiedPrefs:void 0};k1(``,{replaceState:!0});let n,r;try{let e=JSON.parse(atob(t));u(e)&&typeof e.token==`string`&&(n={token:e.token},u(e.prefs)&&(r=e.prefs))}catch{}return{_user:n,copiedPrefs:r}},V1=async()=>{let e=await pS.get(`sveltia-cms.user`)||await pS.get(`decap-cms-user`)||await pS.get(`netlify-cms-user`);if(u(e)&&typeof e.backendName==`string`)return e},H1=e=>{let t=e?.backendName===`local`||e?.backendName===`proxy`?`local`:A(aF).backend.name;return IP.set(t),A(LP)},U1=async()=>{R1();let e,t;if({_user:e,copiedPrefs:t}=B1(),e??=await V1(),!e)return;let n=H1(e);if(e&&n){eM.set(e);let{token:t,refreshToken:r}=e;F1.set(!0);try{e=await n.signIn({token:t,refreshToken:r,auto:!0})}catch{e=void 0,eM.set(void 0)}}if(F1.set(!1),P1.set(!e),!(!e||!n)){eM.set(e),t&&lN.update(e=>({...e,...t}));try{await n.fetchFiles()}catch(e){[401,403,404].includes(e.cause?.status)?P1.set(!0):z1(e,`dataFetch`),await L1(e)}}},W1=async(e,t)=>{R1(),IP.set(e);let n=A(LP);if(!n)return;let r;F1.set(!0);try{r=await n.signIn({token:t,auto:!1})}catch(e){F1.set(!1),P1.set(!0),t&&e.cause?.status===401?z1(Error(`Invalid token`,{cause:{message:X(`sign_in_error.invalid_token`)}})):z1(e);return}if(F1.set(!1),P1.set(!r),r){eM.set(r);try{await n.fetchFiles()}catch(e){z1(e,`dataFetch`),await L1(e)}}},G1=async()=>{await A(LP)?.signOut(),await I1(),IP.set(void 0),By.set(!1);let e=A(aF)?.logout_redirect_url;e&&(window.location.href=e)}}));function q1(e,t){O(t,!0),K(e,n0);let n=()=>j(aF,`$cmsConfig`,c),r=()=>j(GA,`$isLocalHost`,c),i=()=>j(N1,`$signInError`,c),a=()=>j(F1,`$signingIn`,c),o=()=>j(KA,`$isLocalBackendSupported`,c),s=()=>j(qA,`$isBrave`,c),[c,l]=mn(),u=N(!1),d=N(``),f=M(()=>n()?.backend),p=M(()=>z(f).name),m=M(()=>z(p)?MP[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);ac(()=>{i().message||U1()});var x=t0(),S=I(x),C=F(S),w=e=>{var t=J1(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`signing_in`)]),U(e,t)},T=e=>{var t=Q1(),n=I(t),r=e=>{var t=Z1(),n=I(t);{let e=M(()=>X(`work_with_local_repo`)),t=M(()=>!o());pI(n,{variant:`primary`,get label(){return z(e)},get disabled(){return z(t)},onclick:async()=>{await W1(`local`)}})}var r=L(n,2),a=e=>{var t=Y1(),n=F(t),r=e=>{var t=H();So(I(t),()=>eA(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=Pa();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=X1(),n=F(t),r=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`work_with_local_repo_description`,{values:{repo:z(g)}})]),U(e,t)},i=e=>{var t=Pa();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)}),tL(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)}}));pI(a,{get variant(){return z(e)},get label(){return z(t)},get disabled(){return z(b)},onclick:async()=>{await W1(z(p))}})}var c=L(a,2),l=e=>{{let t=M(()=>X(`sign_in_using_access_token`,{values:{service:z(y)}}));pI(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(T,1)});var ee=L(C,2),te=e=>{var t=$1(),n=F(t);YF(n,{name:`error`});var r=L(n);D(t),R(()=>W(r,` ${i().message??``}`)),U(e,t)};G(ee,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());EL(ne,{get title(){return z(e)},get textboxAttrs(){return z(t)},get okLabel(){return z(n)},get okDisabled(){return z(r)},onOk:async()=>{await W1(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)=>{gt();var n=e0(),r=I(n),i=L(r),a=e=>{var t=H();So(I(t),()=>eA(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 J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,nue=o((()=>{Q(),Y(),Z(),X$(),sc(),zP(),uF(),K1(),ej(),tA(),J1=V(`<div role="alert" class="message"> </div>`),Y1=V(`<div role="alert"><!></div>`),X1=V(`<div role="none"><!></div>`),Z1=V(`<!> <!> <!>`,1),Q1=V(`<!> <!> <!>`,1),$1=V(`<div role="alert" class="error iconic svelte-1ff54ya"><!> </div>`),e0=V(` <!>`,1),t0=V(`<div role="none" class="buttons svelte-1ff54ya"><!> <!></div> <!>`,1),n0={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);}`}})),r0,rue=o((()=>{r0=`<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>`})),i0,a0,o0,s0,c0,l0=o((()=>{ES(),sp(),rue(),uF(),i0=`Sveltia CMS`,a0=`data:image/svg+xml;base64,${btoa(r0)}`,o0=un([aF],([e])=>e?.app_title||`Sveltia CMS`),s0=un([aF],([e])=>e?.logo?.src||e?.logo_url||a0),c0=un(s0,e=>{let t=e.match(/^data:(image\/[a-zA-Z0-9.+-]+);base64,/);return t?t[1]:TS.getType(e)??void 0})}));function iue(e,t){O(t,!0),K(e,x0);let n=()=>j(cF,`$cmsConfigLoaded`,h),r=()=>j(o0,`$appTitle`,h),i=()=>j(s0,`$appLogoURL`,h),a=()=>j(sF,`$cmsConfigErrors`,h),o=()=>j(cN,`$prefsError`,h),s=()=>j(aF,`$cmsConfig`,h),c=()=>j(lN,`$prefs`,h),l=()=>j(N1,`$signInError`,h),u=()=>j(fM,`$inAuthPopup`,h),d=()=>j(eM,`$user`,h),f=()=>j(P1,`$unauthenticated`,h),p=()=>j(By,`$dataLoaded`,h),m=()=>j(Vy,`$dataLoadedProgress`,h),[h,g]=mn();ei(()=>{n()&&pn(w1,X(`welcome_message`,{values:{name:r()}}))});var _=b0(),v=I(_),y=F(v),b=F(y),x=e=>{var t=d0(),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=p0(),n=F(t),r=F(n,!0);D(n);var i=L(n,2);mo(i,5,a,e=>e,(e,t)=>{var n=f0();u0(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=m0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`prefs.error.${o().type}`)]),U(e,t)},T=e=>{var t=h0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`loading_cms_config`)]),U(e,t)},ee=e=>{var t=g0(),n=I(t),r=F(n),i=F(r,!0);D(r);var a=L(r,2);u0(F(a),()=>l().message),D(a),D(n),q1(L(n,2),{}),R(e=>W(i,e),[()=>X(`loading_site_data_error`)]),U(e,t)},te=e=>{var t=_0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`authorizing`)]),U(e,t)},ne=e=>{q1(e,{})},re=e=>{var t=v0(),n=I(t),r=F(n,!0);D(n);var i=L(n,2),a=e=>{$ae(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(T,2):l().message&&l().context===`dataFetch`?e(ee,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=y0(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`powered_by`,{values:{name:i0}})]),U(e,t)};G(ie,e=>{n()&&r()!==`Sveltia CMS`&&e(ae)}),U(e,_),k(),g()}var u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,aue=o((()=>{Q(),Y(),Z(),X$(),BE(),yO(),nue(),l0(),M1(),CM(),uF(),Jy(),tM(),K1(),uN(),u0=(e,t=E)=>{var n=H();So(I(n),()=>zE(XE.parseInline(t()),{ALLOWED_TAGS:[`a`,`code`],ALLOWED_ATTR:[`href`]})),U(e,n)},d0=V(`<img alt="" class="logo svelte-7ua6x9"/> <h1 class="svelte-7ua6x9"> </h1>`,1),f0=V(`<li><!></li>`),p0=V(`<div role="alert" class="message"><div role="none"> </div> <ul class="error svelte-7ua6x9"></ul></div>`),m0=V(`<div role="alert" class="message"> </div>`),h0=V(`<div role="alert" class="message"> </div>`),g0=V(`<div role="alert"><div role="none" class="message"> </div> <div role="none" class="error svelte-7ua6x9"><!></div></div> <!>`,1),_0=V(`<div role="alert" class="message"> </div>`),v0=V(`<div role="alert" class="message"> </div> <!>`,1),y0=V(`<div role="none" class="powered-by svelte-7ua6x9"> </div>`),b0=V(`<div role="none" class="container svelte-7ua6x9"><div role="none" class="inner svelte-7ua6x9"><!> <!></div></div> <!>`,1),x0={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
779
  @media (width < 768px) {.container.svelte-7ua6x9 .logo:where(.svelte-7ua6x9) {height:120px;}
780
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 oue(e,t){O(t,!0);let n=()=>j(LP,`$backend`,i),r=()=>j(aF,`$cmsConfig`,i),[i,a]=mn(),o=0,s=N(!1),c=N(`none`),l=async()=>{n()?.checkStatus&&P(c,await n().checkStatus(),!0)},u=()=>{l(),o=window.setInterval(()=>{l()},3e5)},d=()=>{window.clearInterval(o),P(c,`none`)},f=()=>{z(s)&&(n()?.checkStatus&&!n().repository?.isSelfHosted?u():d())};ac(()=>(P(s,!0),()=>{d()})),ei(()=>{z(s),n(),r(),f()});var p=H(),m=I(p),h=e=>{var t=C0(),r=I(t);{let e=M(()=>z(c)===`major`?`error`:`warning`);co(r,()=>({"--sui-infobar-message-justify-content":`center`})),xI(r.lastChild,{get status(){return z(e)},children:(e,t)=>{gt();var r=S0(),i=I(r),a=L(i);{let e=M(()=>X(`details`));pI(a,{variant:`link`,get label(){return z(e)},onclick:()=>{b1(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 S0,C0,sue=o((()=>{Q(),Y(),Z(),X$(),sc(),zP(),uF(),x1(),S0=V(` <!>`,1),C0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function cue(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===Lw)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{}};ac(()=>(a(),n=window.setInterval(()=>{a()},36e5),()=>{window.clearInterval(n),window.clearTimeout(r)}));var o=H(),s=I(o),c=e=>{var t=T0(),n=I(t);co(n,()=>({"--sui-infobar-message-justify-content":`center`})),xI(n.lastChild,{children:(e,t)=>{gt();var n=w0(),r=I(n),i=L(r);{let e=M(()=>X(`update_now`));pI(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 w0,T0,lue=o((()=>{Q(),Y(),Z(),X$(),sc(),Rw(),w0=V(` <!>`,1),T0=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)})),E0,D0=o((()=>{E0=(e,t)=>{if(typeof e!=`number`)return NaN;if(!Number.isFinite(e))return e;let n=10**t;return Math.round(e*n)/n}})),O0,uue=o((()=>{Kw(),kT(),D0(),O0=async(e,t)=>{let n=t===`image`?await ST(e):null;if(!n)return{createdDate:void 0,coordinates:void 0};let{parse:r}=await Gw(`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:E0(i,7),longitude:E0(a,7)}:void 0}}})),k0,A0,j0,M0,due=o((()=>{uue(),k0=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})},A0=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})},j0=async(e,t)=>t===`image`?k0(e):A0(e,t),M0=async(e,t,n)=>{let{dimensions:r,duration:i}=await j0(t,n),{createdDate:a,coordinates:o}=await O0(e,n);return{dimensions:r,duration:i,createdDate:a,coordinates:o}}})),N0,P0,F0,I0=o((()=>{sp(),kT(),zP(),hk(),due(),N0={publicURL:void 0,repoBlobURL:void 0,dimensions:void 0,duration:void 0,usedEntries:[]},P0=async e=>{let{kind:t,path:n}=e,{blobBaseURL:r}=A(LP)?.repository??{},i=await CT(e),a={};return[`image`,`video`,`audio`].includes(t)&&i&&(a=await M0(e,i,t)),{...a,publicURL:ET(e),repoBlobURL:r?`${r}/${n}`:void 0}},F0=async e=>{let t=ET(e,{allowSpecial:!0,pathOnly:!0})??await CT(e);return t?pk(t):[]}}));function L0(e,t){O(t,!0);let n=e=>{var t=R0(),n=I(t);{let e=M(()=>X(`public_urls`,{values:{count:r().length}})),t=M(()=>!z(c).length);aR(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}}));aR(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));aR(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(Sr([])),o=N(!1),s=Sr({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 ST(r()[0]),{type:t}=e;return l=e,Ap(t)?!0:$w.includes(t)?typeof navigator.clipboard.write==`function`:!1},d=async()=>{await navigator.clipboard.writeText(z(c).join(`
781
781
  `))},f=async()=>{await navigator.clipboard.writeText(r().map(({path:e})=>`/${e}`).join(`
@@ -847,7 +847,7 @@ svg.leaflet-image-layer.leaflet-interactive path {pointer-events:visiblePainted;
847
847
  @media (width < 768px) {.list-view.svelte-1sfbolp [role=grid] .grid-cell {border-width:0 !important;height:64px;}
848
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
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 Oue(e,t){O(t,!0);let n=()=>j(g1,`$currentView`,o),r=()=>j(Up,`$targetAssetFolder`,o),i=()=>j(v1,`$assetGroups`,o),a=()=>j(_1,`$listedAssets`,o),[o,s]=mn(),c=M(()=>n().type),l=M(r),u=M(()=>!Jp(z(l)));{let t=M(()=>X(`asset_list`));W3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{P3(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{pn(wF,{folder:z(l),files:e})},children:(e,t)=>{var n=H(),r=I(n),o=e=>{{let t=M(()=>X(`assets`));J3(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(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=H();$a(I(a),eS,null,e=>{{let t=M(()=>r()===`*`?void 0:r());jL(e,{get label(){return z(t)},children:(e,t)=>{OR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();ao(I(n),()=>t().sha,e=>{var n=H();$a(I(n),eS,null,e=>{Eue(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=>{W$(e,{children:(e,t)=>{var n=Q3(),r=I(n),i=F(r,!0);D(r);var a=L(r,2),o=e=>{{let t=M(()=>X(`upload_assets`));H3(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 Q3,kue=o((()=>{Q(),Y(),Z(),X$(),tS(),Due(),V3(),U3(),q3(),Z3(),MF(),Yp(),y1(),Q3=V(`<span role="none"> </span> <!>`,1)})),$3,e6,t6=o((()=>{sp(),$3=ln(null),e6=ln(``)}));function n6(e,t){O(t,!0),K(e,a6);let n=()=>j(e6,`$searchTerms`,i),r=()=>j($3,`$searchMode`,i),[i,a]=mn(),o=J(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=T1(),i=r.startsWith(`/search/`);pn(e6,e),e?k1(`/search/${e}`,{replaceState:i}):t&&i&&A1(`/collections`)},c=N(void 0);ei(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=i6(),u=F(l),d=e=>{var t=r6(),n=I(t);{let e=M(()=>X(`search_placeholder_${r()}`));co(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),Us(MR(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 r6,i6,a6,o6=o((()=>{Q(),Y(),Z(),X$(),M1(),t6(),r6=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),i6=V(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),a6={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Aue(e,t){O(t,!0);let n=()=>j(Bp,`$allAssetFolders`,o),r=()=>j(YA,`$isSmallScreen`,o),i=()=>j(Hp,`$selectedAssetFolder`,o),a=()=>j(_F,`$allAssets`,o),[o,s]=mn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Ph.current)),u=M(()=>[...n().filter(({typedKeyPath:e})=>e===void 0).sort((e,t)=>tb(e.collectionName,e.fileName)-tb(t.collectionName,t.fileName)).sort((e,t)=>Qb(e.collectionName)-Qb(t.collectionName))]);var d=u6(),f=F(d),p=e=>{var t=c6(),n=I(t),r=F(n),i=F(r,!0);D(r),D(n),n6(L(n,2),{onclick:e=>{e.preventDefault(),k1(`/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`));UL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>X(`asset_location.repository`));qL(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();$a(I(n),eS,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?Xb(z(n).collectionName):void 0),s=M(()=>z(o)&&z(n).fileName?Zy(z(o),z(n).fileName):void 0),u=M(()=>z(n).entryRelative||z(n).hasTemplateTags),d=M(()=>(0,s6.default)(i(),z(t)));{let i=e=>{{let t=M(()=>z(s)?.icon||z(o)?.icon||`folder`);YF(e,{get name(){return z(t)}})}},f=e=>{var r=H();ao(I(r),a,e=>{var r=H();$a(I(r),eS,null,e=>{let r=M(()=>(z(n).internalPath===void 0?a():nae(z(t))).length);var i=l6(),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(()=>Ph.current?m1(z(t)):``);XL(e,{get selected(){return z(p)},get label(){return z(m)},onSelect:()=>{k1(`/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 s6,c6,l6,u6,jue=o((()=>{Q(),Y(),Z(),X$(),tS(),s6=l(aN()),o6(),M1(),MF(),Yp(),y1(),$b(),nb(),ej(),c6=V(`<header><h2> </h2></header> <!>`,1),l6=V(`<span class="count"> </span>`),u6=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function Mue(e,t){O(t,!0);{let n=M(()=>!t.asset||!MS(t.asset)),r=M(()=>X(`preview`)),i=M(()=>X(`show_preview`));pI(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{k1(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}k()}var Nue=o((()=>{Q(),Y(),Z(),X$(),M1(),IS()}));function Pue(e,t){O(t,!0);let n=()=>j(xF,`$selectedAssets`,l),r=()=>j(SF,`$focusedAsset`,l),i=()=>j(Up,`$targetAssetFolder`,l),a=()=>j(YA,`$isSmallScreen`,l),o=()=>j(Hp,`$selectedAssetFolder`,l),s=()=>j(XA,`$isMediumScreen`,l),c=()=>j(_1,`$listedAssets`,l),[l,u]=mn(),d=M(()=>n().length?[...n()]:r()?[r()]:[]),f=M(()=>!Jp(i()));{let t=M(()=>X(`folder`));l$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=p6(),i=I(n),l=e=>{{let t=M(()=>X(`back_to_asset_folder_list`));c2(e,{get"aria-label"(){return z(t)},onclick:()=>{A1(`/assets`)}})}};G(i,e=>{a()&&e(l)});var u=L(i,2),p=F(u);ao(p,()=>Ph.current,e=>{var t=Pa();R(e=>W(t,e),[()=>o()?m1(o()):``]),U(e,t)});var m=L(p,2),h=e=>{var t=d6(),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=f6(),n=I(t);Mue(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);L0(i,{get assets(){return z(e)}})}var a=L(i,2);n2(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}}));$0(o,{get assets(){return z(d)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}a2(L(o,2),{get asset(){return r()}}),U(e,t)};G(g,e=>{a()||s()||e(_)}),AI(L(g,2),{children:(e,t)=>{var n=H(),r=I(n),i=e=>{{let t=M(()=>a()?void 0:X(`upload`));H3(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 d6,f6,p6,Fue=o((()=>{Q(),Y(),Z(),X$(),B0(),t2(),i2(),s2(),Nue(),U3(),l2(),M1(),MF(),Yp(),y1(),ej(),d6=V(`<span role="none"> </span>`),f6=V(`<!> <!> <!> <!> <!>`,1),p6=V(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)}));function Iue(e,t){O(t,!0);let n=()=>j(ZA,`$isLargeScreen`,a),r=()=>j(g1,`$currentView`,a),i=()=>j(SF,`$focusedAsset`,a),[a,o]=mn();var s=H(),c=I(s),l=e=>{{let t=M(()=>X(`asset_info`));q$(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),a=e=>{w2(e,{get asset(){return i()},showPreview:!0})},o=e=>{W$(e,{children:(e,t)=>{var n=m6(),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 m6,Lue=o((()=>{Q(),Y(),Z(),X$(),H2(),MF(),y1(),ej(),m6=V(`<span role="none"> </span>`)}));function h6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=mn(),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`));tR(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);dR(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=g6(),i=I(r);{let e=M(()=>c()||X(`sort_keys.none`)),r=M(()=>!n().filter);pR(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));pR(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`));GI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var g6,_6=o((()=>{Q(),Y(),Z(),X$(),g6=V(`<!> <!>`,1)}));function v6(e,t){O(t,!0),K(e,x6);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=mn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=b6(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>X(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));sL(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=y6(),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 y6,b6,x6,S6=o((()=>{Q(),Y(),Z(),X$(),y6=V(`<span role="none" class="svelte-1sd2xgz"> </span>`),b6=V(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),x6={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 C6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=mn(),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`));tR(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=w6(),d=I(o);mo(d,16,()=>l,e=>e,(e,r)=>{{let o=M(()=>X(u.includes(i())||c()&&bA({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);pR(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`));GI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var w6,T6=o((()=>{Q(),Y(),Z(),X$(),DA(),w6=V(`<!> <!>`,1)}));function E6(e,t){O(t,!0),K(e,k6);let n=()=>j(t.currentView,`$currentView`,i),r=()=>j(ZA,`$isLargeScreen`,i),[i,a]=mn(),o=J(t,`disabled`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),c=M(()=>n().type===`grid`);var l=O6(),u=F(l),d=e=>{{let n=M(()=>X(`switch_view`));VI(e,Zs({get disabled(){return o()},get"aria-label"(){return z(n)}},()=>s,{children:(e,n)=>{var r=D6(),i=I(r);{let e=e=>{YF(e,{name:`format_list_bulleted`})},n=M(()=>!z(c)),r=M(()=>X(`list_view`));WI(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=>{YF(e,{name:`grid_view`})},n=M(()=>X(`grid_view`));WI(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`);YF(e,{get name(){return z(t)}})}},r=M(()=>X(z(c)?`switch_to_list_view`:`switch_to_grid_view`));pI(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 D6,O6,k6,A6=o((()=>{Q(),Y(),Z(),X$(),ej(),D6=V(`<!> <!>`,1),O6=V(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),k6={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;}`}})),j6,Rue=o((()=>{j6={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`,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:`Are you sure you want to replace “{$name}” with the following file?`,confirm_uploading_files:`.input {$count :integer} .match $count one {{Are you sure you want to save the following file to the “{$folder}” folder?}} * {{Are you sure you want to save the following {$count} files 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.}}`,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.`,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`}}})),M6,zue=o((()=>{M6={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:`サポート`,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} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}}`,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 が定義されていません。`,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`}}})),N6,P6,F6=o((()=>{Rue(),zue(),Z(),zp(),sp(),uN(),N6=iee(()=>Ph.current),P6=()=>{Object.entries(Object.assign({"/src/lib/locales/en.yaml":j6,"/src/lib/locales/ja.yaml":M6})).forEach(([e,t])=>{let n=jp(e).filename;Ah(n,t)}),Ih({fallbackLocale:`en`,initialLocale:A(lN).locale||(Fh()??``).split(`-`)[0]||`en`})}})),I6,Bue=o((()=>{Z(),sp(),F6(),MF(),I6=un([_F,N6],([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 Vue(e,t){O(t,!0);let n=()=>j(_1,`$listedAssets`,c),r=()=>j(YA,`$isSmallScreen`,c),i=()=>j(XA,`$isMediumScreen`,c),a=()=>j(v1,`$assetGroups`,c),o=()=>j(I6,`$sortKeys`,c),s=()=>j(g1,`$currentView`,c),[c,l]=mn(),u=M(()=>!!n().length),d=M(()=>n().length>1);{let t=M(()=>X(`asset_list`));l$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=R6(),c=I(n),l=e=>{{let t=M(()=>Object.values(a()).flat(1));v6(e,{get allItems(){return z(t)},get selectedItems(){return xF}})}};G(c,e=>{r()||i()||e(l)});var f=L(c,2);tL(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(d));C6(p,{get disabled(){return z(e)},get currentView(){return g1},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(()=>kS.map(e=>({label:X(e),field:`fileType`,pattern:e})));h6(m,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return g1},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var h=L(m,2);{let e=M(()=>!z(u));E6(h,{get disabled(){return z(e)},get currentView(){return g1},"aria-controls":`asset-list`})}var g=L(h,2),_=e=>{var t=L6(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{YF(e,{name:`info`})},t=M(()=>!z(u)),n=M(()=>!!s().showInfo),i=M(()=>!!s().showInfo),a=M(()=>X(s().showInfo?`hide_info`:`show_info`));pI(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:()=>{g1.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 L6,R6,Hue=o((()=>{Q(),Y(),Z(),X$(),_6(),S6(),T6(),A6(),MF(),IS(),y1(),Bue(),ej(),L6=V(`<!> <!>`,1),R6=V(`<!> <!> <!> <!> <!> <!>`,1)}));function z6(e,t){K(e,V6);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]);var s=B6();bs(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 B6,V6,H6=o((()=>{Q(),Y(),B6=V(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),V6={hash:`svelte-1x2ldab`,code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}
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 Oue(e,t){O(t,!0);let n=()=>j(g1,`$currentView`,o),r=()=>j(Up,`$targetAssetFolder`,o),i=()=>j(v1,`$assetGroups`,o),a=()=>j(_1,`$listedAssets`,o),[o,s]=mn(),c=M(()=>n().type),l=M(r),u=M(()=>!Jp(z(l)));{let t=M(()=>X(`asset_list`));W3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{P3(e,{get disabled(){return z(u)},multiple:!0,onDrop:({files:e})=>{pn(wF,{folder:z(l),files:e})},children:(e,t)=>{var n=H(),r=I(n),o=e=>{{let t=M(()=>X(`assets`));J3(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(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1];var a=H();$a(I(a),eS,null,e=>{{let t=M(()=>r()===`*`?void 0:r());jL(e,{get label(){return z(t)},children:(e,t)=>{OR(e,{get items(){return i()},itemKey:`path`,renderItem:(e,t=E)=>{var n=H();ao(I(n),()=>t().sha,e=>{var n=H();$a(I(n),eS,null,e=>{Eue(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=>{W$(e,{children:(e,t)=>{var n=Q3(),r=I(n),i=F(r,!0);D(r);var a=L(r,2),o=e=>{{let t=M(()=>X(`upload_assets`));H3(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 Q3,kue=o((()=>{Q(),Y(),Z(),X$(),tS(),Due(),V3(),U3(),q3(),Z3(),MF(),Yp(),y1(),Q3=V(`<span role="none"> </span> <!>`,1)})),$3,e6,t6=o((()=>{sp(),$3=ln(null),e6=ln(``)}));function n6(e,t){O(t,!0),K(e,a6);let n=()=>j(e6,`$searchTerms`,i),r=()=>j($3,`$searchMode`,i),[i,a]=mn(),o=J(t,`onclick`,3,void 0),s=e=>{let t=!!n(),{path:r}=T1(),i=r.startsWith(`/search/`);pn(e6,e),e?k1(`/search/${e}`,{replaceState:i}):t&&i&&A1(`/collections`)},c=N(void 0);ei(()=>{z(c)&&n()!==z(c)?.value&&(z(c).value=n())});var l=i6(),u=F(l),d=e=>{var t=r6(),n=I(t);{let e=M(()=>X(`search_placeholder_${r()}`));co(n,()=>({"--sui-textbox-placeholder-text-align":`center`})),Us(MR(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 r6,i6,a6,o6=o((()=>{Q(),Y(),Z(),X$(),M1(),t6(),r6=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),i6=V(`<div role="none" class="wrapper svelte-lav5fn"><!></div>`),a6={hash:`svelte-lav5fn`,code:`.wrapper.svelte-lav5fn {display:contents;--sui-textbox-border-width: 0;}`}}));function Aue(e,t){O(t,!0);let n=()=>j(Bp,`$allAssetFolders`,o),r=()=>j(YA,`$isSmallScreen`,o),i=()=>j(Hp,`$selectedAssetFolder`,o),a=()=>j(_F,`$allAssets`,o),[o,s]=mn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Ph.current)),u=M(()=>[...n().filter(({typedKeyPath:e})=>e===void 0).sort((e,t)=>tb(e.collectionName,e.fileName)-tb(t.collectionName,t.fileName)).sort((e,t)=>Qb(e.collectionName)-Qb(t.collectionName))]);var d=u6(),f=F(d),p=e=>{var t=c6(),n=I(t),r=F(n),i=F(r,!0);D(r),D(n),n6(L(n,2),{onclick:e=>{e.preventDefault(),k1(`/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`));UL(m,{get"aria-label"(){return z(e)},"aria-controls":`assets-container`,children:(e,t)=>{{let t=M(()=>X(`asset_location.repository`));qL(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();$a(I(n),eS,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?Xb(z(n).collectionName):void 0),s=M(()=>z(o)&&z(n).fileName?Zy(z(o),z(n).fileName):void 0),u=M(()=>z(n).entryRelative||z(n).hasTemplateTags),d=M(()=>(0,s6.default)(i(),z(t)));{let i=e=>{{let t=M(()=>z(s)?.icon||z(o)?.icon||`folder`);YF(e,{get name(){return z(t)}})}},f=e=>{var r=H();ao(I(r),a,e=>{var r=H();$a(I(r),eS,null,e=>{let r=M(()=>(z(n).internalPath===void 0?a():nae(z(t))).length);var i=l6(),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(()=>Ph.current?m1(z(t)):``);XL(e,{get selected(){return z(p)},get label(){return z(m)},onSelect:()=>{k1(`/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 s6,c6,l6,u6,jue=o((()=>{Q(),Y(),Z(),X$(),tS(),s6=l(aN()),o6(),M1(),MF(),Yp(),y1(),$b(),nb(),ej(),c6=V(`<header><h2> </h2></header> <!>`,1),l6=V(`<span class="count"> </span>`),u6=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function Mue(e,t){O(t,!0);{let n=M(()=>!t.asset||!MS(t.asset)),r=M(()=>X(`preview`)),i=M(()=>X(`show_preview`));pI(e,{variant:`ghost`,get disabled(){return z(n)},get label(){return z(r)},get"aria-label"(){return z(i)},onclick:()=>{k1(`/assets/${t.asset?.path}`,{transitionType:`forwards`})}})}k()}var Nue=o((()=>{Q(),Y(),Z(),X$(),M1(),IS()}));function Pue(e,t){O(t,!0);let n=()=>j(xF,`$selectedAssets`,l),r=()=>j(SF,`$focusedAsset`,l),i=()=>j(Up,`$targetAssetFolder`,l),a=()=>j(YA,`$isSmallScreen`,l),o=()=>j(Hp,`$selectedAssetFolder`,l),s=()=>j(XA,`$isMediumScreen`,l),c=()=>j(_1,`$listedAssets`,l),[l,u]=mn(),d=M(()=>n().length?[...n()]:r()?[r()]:[]),f=M(()=>!Jp(i()));{let t=M(()=>X(`folder`));l$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=p6(),i=I(n),l=e=>{{let t=M(()=>X(`back_to_asset_folder_list`));c2(e,{get"aria-label"(){return z(t)},onclick:()=>{A1(`/assets`)}})}};G(i,e=>{a()&&e(l)});var u=L(i,2),p=F(u);ao(p,()=>Ph.current,e=>{var t=Pa();R(e=>W(t,e),[()=>o()?m1(o()):``]),U(e,t)});var m=L(p,2),h=e=>{var t=d6(),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=f6(),n=I(t);Mue(n,{get asset(){return r()}});var i=L(n,2);{let e=M(()=>r()?[r()]:[]);L0(i,{get assets(){return z(e)}})}var a=L(i,2);n2(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}}));$0(o,{get assets(){return z(d)},get buttonDescription(){return z(e)},get dialogDescription(){return z(t)}})}a2(L(o,2),{get asset(){return r()}}),U(e,t)};G(g,e=>{a()||s()||e(_)}),AI(L(g,2),{children:(e,t)=>{var n=H(),r=I(n),i=e=>{{let t=M(()=>a()?void 0:X(`upload`));H3(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 d6,f6,p6,Fue=o((()=>{Q(),Y(),Z(),X$(),B0(),t2(),i2(),s2(),Nue(),U3(),l2(),M1(),MF(),Yp(),y1(),ej(),d6=V(`<span role="none"> </span>`),f6=V(`<!> <!> <!> <!> <!>`,1),p6=V(`<!> <h2 role="none"><!> <!></h2> <!> <!>`,1)}));function Iue(e,t){O(t,!0);let n=()=>j(ZA,`$isLargeScreen`,a),r=()=>j(g1,`$currentView`,a),i=()=>j(SF,`$focusedAsset`,a),[a,o]=mn();var s=H(),c=I(s),l=e=>{{let t=M(()=>X(`asset_info`));q$(e,{id:`asset-info`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=H(),r=I(n),a=e=>{w2(e,{get asset(){return i()},showPreview:!0})},o=e=>{W$(e,{children:(e,t)=>{var n=m6(),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 m6,Lue=o((()=>{Q(),Y(),Z(),X$(),H2(),MF(),y1(),ej(),m6=V(`<span role="none"> </span>`)}));function h6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=mn(),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`));tR(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);dR(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=g6(),i=I(r);{let e=M(()=>c()||X(`sort_keys.none`)),r=M(()=>!n().filter);pR(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));pR(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`));GI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var g6,_6=o((()=>{Q(),Y(),Z(),X$(),g6=V(`<!> <!>`,1)}));function v6(e,t){O(t,!0),K(e,x6);let n=()=>j(t.selectedItems,`$selectedItems`,r),[r,i]=mn(),a=M(()=>t.allItems.length),o=M(()=>n().length),s=M(()=>!!z(o)),c=M(()=>z(s)&&z(o)===z(a));var l=b6(),u=F(l);{let e=M(()=>!z(a)),n=M(()=>X(`select_all`)),r=M(()=>z(s)&&!z(c)?`mixed`:z(s));sL(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=y6(),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 y6,b6,x6,S6=o((()=>{Q(),Y(),Z(),X$(),y6=V(`<span role="none" class="svelte-1sd2xgz"> </span>`),b6=V(`<div role="none" class="wrapper svelte-1sd2xgz"><!> <!></div>`),x6={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 C6(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=mn(),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`));tR(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=w6(),d=I(o);mo(d,16,()=>l,e=>e,(e,r)=>{{let o=M(()=>X(u.includes(i())||c()&&bA({collectionName:c(),keyPath:i()})?.widget===`datetime`?`${r}_date`:r,{values:{label:a()}})),s=M(()=>n().sort?.key===i()&&n().sort.order===r);pR(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`));GI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var w6,T6=o((()=>{Q(),Y(),Z(),X$(),DA(),w6=V(`<!> <!>`,1)}));function E6(e,t){O(t,!0),K(e,k6);let n=()=>j(t.currentView,`$currentView`,i),r=()=>j(ZA,`$isLargeScreen`,i),[i,a]=mn(),o=J(t,`disabled`,3,!1),s=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`disabled`,`currentView`]),c=M(()=>n().type===`grid`);var l=O6(),u=F(l),d=e=>{{let n=M(()=>X(`switch_view`));VI(e,Zs({get disabled(){return o()},get"aria-label"(){return z(n)}},()=>s,{children:(e,n)=>{var r=D6(),i=I(r);{let e=e=>{YF(e,{name:`format_list_bulleted`})},n=M(()=>!z(c)),r=M(()=>X(`list_view`));WI(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=>{YF(e,{name:`grid_view`})},n=M(()=>X(`grid_view`));WI(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`);YF(e,{get name(){return z(t)}})}},r=M(()=>X(z(c)?`switch_to_list_view`:`switch_to_grid_view`));pI(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 D6,O6,k6,A6=o((()=>{Q(),Y(),Z(),X$(),ej(),D6=V(`<!> <!>`,1),O6=V(`<div role="none" class="wrapper svelte-8v3idr"><!></div>`),k6={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;}`}})),j6,Rue=o((()=>{j6={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:`Are you sure you want to replace “{$name}” with the following file?`,confirm_uploading_files:`.input {$count :integer} .match $count one {{Are you sure you want to save the following file to the “{$folder}” folder?}} * {{Are you sure you want to save the following {$count} files 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.}}`,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`}}})),M6,zue=o((()=>{M6={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} を超えているため、アップロードできません。サイズを縮小するか、他のファイルを選んでください。}}`,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`}}})),N6,P6,F6=o((()=>{Rue(),zue(),Z(),zp(),sp(),uN(),N6=iee(()=>Ph.current),P6=()=>{Object.entries(Object.assign({"/src/lib/locales/en.yaml":j6,"/src/lib/locales/ja.yaml":M6})).forEach(([e,t])=>{let n=jp(e).filename;Ah(n,t)}),Ih({fallbackLocale:`en`,initialLocale:A(lN).locale||(Fh()??``).split(`-`)[0]||`en`})}})),I6,Bue=o((()=>{Z(),sp(),F6(),MF(),I6=un([_F,N6],([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 Vue(e,t){O(t,!0);let n=()=>j(_1,`$listedAssets`,c),r=()=>j(YA,`$isSmallScreen`,c),i=()=>j(XA,`$isMediumScreen`,c),a=()=>j(v1,`$assetGroups`,c),o=()=>j(I6,`$sortKeys`,c),s=()=>j(g1,`$currentView`,c),[c,l]=mn(),u=M(()=>!!n().length),d=M(()=>n().length>1);{let t=M(()=>X(`asset_list`));l$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=R6(),c=I(n),l=e=>{{let t=M(()=>Object.values(a()).flat(1));v6(e,{get allItems(){return z(t)},get selectedItems(){return xF}})}};G(c,e=>{r()||i()||e(l)});var f=L(c,2);tL(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(d));C6(p,{get disabled(){return z(e)},get currentView(){return g1},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(()=>kS.map(e=>({label:X(e),field:`fileType`,pattern:e})));h6(m,{get label(){return z(e)},get disabled(){return z(t)},get currentView(){return g1},get noneLabel(){return z(n)},get filters(){return z(r)},"aria-controls":`asset-list`})}var h=L(m,2);{let e=M(()=>!z(u));E6(h,{get disabled(){return z(e)},get currentView(){return g1},"aria-controls":`asset-list`})}var g=L(h,2),_=e=>{var t=L6(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{YF(e,{name:`info`})},t=M(()=>!z(u)),n=M(()=>!!s().showInfo),i=M(()=>!!s().showInfo),a=M(()=>X(s().showInfo?`hide_info`:`show_info`));pI(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:()=>{g1.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 L6,R6,Hue=o((()=>{Q(),Y(),Z(),X$(),_6(),S6(),T6(),A6(),MF(),IS(),y1(),Bue(),ej(),L6=V(`<!> <!>`,1),R6=V(`<!> <!> <!> <!> <!> <!>`,1)}));function z6(e,t){K(e,V6);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=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`primaryToolbar`,`secondaryToolbar`,`mainContent`,`secondarySidebar`]);var s=B6();bs(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 B6,V6,H6=o((()=>{Q(),Y(),B6=V(`<div><!> <div role="none" class="main-inner svelte-1x2ldab"><div role="none" class="main-inner-main svelte-1x2ldab"><!> <!></div> <!></div></div>`),V6={hash:`svelte-1x2ldab`,code:`.wrapper.svelte-1x2ldab {flex:auto;display:flex;flex-direction:column;overflow:hidden;background-color:var(--sui-primary-background-color);}
851
851
  @media (768px <= width) {.wrapper.svelte-1x2ldab {view-transition-name:page-main;}
852
852
  }.wrapper.svelte-1x2ldab:not(:first-child) {border-start-start-radius:16px;}.wrapper.svelte-1x2ldab .sui.toolbar.primary {justify-content:center;}
853
853
  @media (width < 768px) {.wrapper.svelte-1x2ldab .sui.toolbar.primary {background-color:var(--sui-secondary-background-color);}
@@ -931,7 +931,7 @@ IMPORTANT INSTRUCTIONS:\n${[...n,...r,...i].join(`
931
931
 
932
932
  Required JSON structure:
933
933
  ["translation 1", "translation 2", ...]`},D5=e=>`Translate these texts and return ONLY valid JSON (no markdown, no code blocks):
934
- ${JSON.stringify(e)}\n\nRespond with JSON only:`,O5=(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}})),Ude,Wde,Gde,Kde,qde,Jde,Yde=o((()=>{Hde(),k5(),Ude=`anthropic`,Wde=`Anthropic Claude`,Gde=`claude-haiku-4-5`,Kde=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),qde=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await Vde({apiKey:r,model:Gde,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`Anthropic API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Anthropic API.`)}},Jde={serviceId:Ude,serviceLabel:Wde,apiLabel:Lde,developerURL:Rde,apiKeyURL:zde,apiKeyPattern:Bde,markdownSupported:!0,availability:Kde,translate:qde}})),Xde,Zde,Qde,$de,efe,tfe,nfe=o((()=>{Xde=`https://api.deepseek.com/chat/completions`,Zde=`DeepSeek API`,Qde=`https://api-docs.deepseek.com/`,$de=`https://platform.deepseek.com/api_keys`,efe=/sk-[a-zA-Z0-9]{32,}/,tfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,thinking:o=!0})=>{let s=await fetch(Xde,{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()}})),rfe,ife,afe,ofe,sfe,cfe,lfe=o((()=>{nfe(),k5(),rfe=`deepseek`,ife=`DeepSeek`,afe=`deepseek-v4-flash`,ofe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),sfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await tfe({apiKey:r,model:afe,systemPrompt:E5(i,a),userMessage:D5(e),thinking:!1}),e.length,`DeepSeek API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with DeepSeek API.`)}},cfe={serviceId:rfe,serviceLabel:ife,apiLabel:Zde,developerURL:Qde,apiKeyURL:$de,apiKeyPattern:efe,markdownSupported:!0,availability:ofe,translate:sfe}})),ufe,dfe,ffe,pfe,mfe,hfe,A5,j5,gfe,_fe,M5,vfe=o((()=>{ufe=`google`,dfe=`Google Cloud Translation`,ffe=`Cloud Translation API`,pfe=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,mfe=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,hfe=/AIza[0-9A-Za-z-_]{35}/,A5=[`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(`,`),j5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(A5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(A5.includes(n))return n},gfe=async({sourceLanguage:e,targetLanguage:t})=>!!j5(e)&&!!j5(t),_fe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=j5(t)??``,n=j5(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.`)}},M5={serviceId:ufe,serviceLabel:dfe,apiLabel:ffe,developerURL:pfe,apiKeyURL:mfe,apiKeyPattern:hfe,markdownSupported:!1,availability:gfe,translate:_fe}})),yfe,bfe,xfe,Sfe,Cfe,wfe=o((()=>{yfe=`Google AI Studio API`,bfe=`https://ai.google.dev/gemini-api/docs`,xfe=`https://aistudio.google.com/api-keys`,Sfe=/AIza[a-zA-Z0-9_-]{35}/,Cfe=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()}})),Tfe,Efe,Dfe,Ofe,kfe,Afe,jfe=o((()=>{wfe(),k5(),Tfe=`google-ai`,Efe=`Google Gemini`,Dfe=`gemini-3.1-flash-lite`,Ofe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),kfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await Cfe({apiKey:r,model:Dfe,systemPrompt:E5(i,a),userMessage:D5(e),responseFormat:`application/json`}),e.length,`Gemini API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Gemini API.`)}},Afe={serviceId:Tfe,serviceLabel:Efe,apiLabel:yfe,developerURL:bfe,apiKeyURL:xfe,apiKeyPattern:Sfe,markdownSupported:!0,availability:Ofe,translate:kfe}})),Mfe,Nfe,Pfe,Ffe,Ife,Lfe,Rfe,zfe,Bfe=o((()=>{Mfe=`https://api.openai.com/v1/responses`,Nfe=`OpenAI API`,Pfe=`https://platform.openai.com/docs/overview`,Ffe=`https://platform.openai.com/api-keys`,Ife=/sk-[a-zA-Z0-9-_]{40,}/,Lfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content),Rfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`,zfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(Mfe,{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(Lfe),l=(Array.isArray(c?.content)?c.content:[]).find(Rfe);if(typeof l?.text==`string`)return l.text.trim();throw Error(`Invalid response format from OpenAI API.`)}})),Vfe,Hfe,Ufe,Wfe,Gfe,Kfe,qfe=o((()=>{Bfe(),k5(),Vfe=`openai`,Hfe=`OpenAI GPT`,Ufe=`gpt-5.4-nano`,Wfe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Gfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await zfe({apiKey:r,model:Ufe,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`OpenAI API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with OpenAI API.`)}},Kfe={serviceId:Vfe,serviceLabel:Hfe,apiLabel:Nfe,developerURL:Pfe,apiKeyURL:Ffe,apiKeyPattern:Ife,markdownSupported:!0,availability:Wfe,translate:Gfe}})),N5,P5,F5=o((()=>{sp(),uN(),Yde(),lfe(),vfe(),jfe(),qfe(),N5={google:M5,"google-ai":Afe,anthropic:Jde,deepseek:cfe,openai:Kfe},P5=un([lN],([e])=>{let{defaultTranslationService:t=`google`}=e;return N5[t]??M5})})),I5,Jfe,L5,Yfe,Xfe,R5,Zfe=o((()=>{yO(),sp(),Nde(),$4(),JF(),DA(),w5(),F5(),uN(),I5=new h5({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),I5.keep([`span`,`div`]),Jfe=({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=bA({...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`&&C5(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},L5=(e,t,{count:n,sourceLanguage:r})=>{UF.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},Yfe=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r,markdownSupported:i,translate:a}=A(P5),{sourceLanguage:o,targetLanguage:s}=t,c=Object.keys(n).length,l=A(lN).apiKeys?.[r]||await new Promise(e=>{HF.set({show:!0,multiple:c>1,resolve:e})});if(l){L5(`info`,`translation.started`,{count:c,sourceLanguage:o});try{let t=await a(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!i?vO(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?I5.turndown(o):o}),L5(`success`,`translation.complete`,{count:c,sourceLanguage:o})}catch(e){L5(`error`,`translation.error`,{count:c,sourceLanguage:o}),console.error(e)}}},Xfe=({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}),L5(`success`,`copy.complete`,{count:a,sourceLanguage:r})},R5=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=A(J4),{currentValues:i}=r,a=Jfe({draft:r,options:e}),o=Object.keys(a).length;if(!o){L5(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await Yfe({currentValues:i,options:e,copingFieldMap:a}):Xfe({currentValues:i,options:e,copingFieldMap:a}),J4.update(e=>({...e,currentValues:i}))}}));function z5(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=mn(),o=J(t,`keyPath`,3,``),s=J(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!At(n().currentValues[e])[o()]||!s()&&!!o()&&At(n().currentValues[e])[o()]===At(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();$a(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>X(s()?`translate_from_x`:`copy_from_x`,{values:{locale:pb(n)}}));aR(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{R5({...z(r),keyPath:o(),translate:s()})}})}}),U(e,i)}),U(e,l),k(),a()}var B5=o((()=>{Q(),Y(),Z(),X$(),$4(),Zfe(),_b(),F5()}));function Qfe(e,t){O(t,!0),K(e,epe);let n=J(t,`children`,3,void 0),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`children`]),i=N(void 0);ac(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=$fe();bs(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 $fe,epe,tpe=o((()=>{Q(),Y(),sc(),$fe=V(`<section><!></section>`),epe={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 npe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=mn(),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:pb(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=H();$a(I(a),()=>l(z(i)),null,(e,t)=>{pI(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:()=>{R5({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{YF(e,{name:`translate`})},$$slots:{startIcon:!0}})}),U(e,a)},p=e=>{{let n=e=>{YF(e,{name:`translate`})},r=e=>{{let n=M(()=>X(`translation_options`));tR(e,{get"aria-label"(){return z(n)},children:(e,n)=>{z5(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>X(`translate`));GI(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 rpe=o((()=>{Q(),Y(),Z(),X$(),B5(),$4(),Zfe(),_b(),F5()}));function V5(e,t){K(e,ape);let n=J(t,`id`,3,void 0),r=J(t,`live`,3,`polite`);var i=ipe(),a=F(i),o=F(a);YF(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 ipe,ape,H5=o((()=>{Q(),Y(),X$(),ipe=V(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),ape={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 ope(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);ZR(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 spe=o((()=>{Q(),Y(),X$()}));function cpe(e,t){O(t,!0);let n=J(t,`currentValue`,3,!1);var r=H(),i=I(r),a=e=>{var t=lpe(),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 lpe,upe=o((()=>{Q(),Y(),Z(),lpe=V(`<p> </p>`)}));function dpe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),{valueStoreKey:a=`currentValues`}=Lt(`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(()=>At(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)&&gn(J4,B(n)[a][t.locale][z(_)]=z(u),B(n)),z(g)[z(v)]!==z(d)&&gn(J4,B(n)[a][t.locale][z(v)]=z(d),B(n)))};ei(()=>{z(g),B(()=>{y()})}),ei(()=>{z(u),z(d),B(()=>{b()})});var x=H();$a(I(x),eS,null,e=>{var n=H();ao(I(n),()=>JSON.stringify(t.fieldConfig),e=>{Ole(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 fpe=o((()=>{Q(),Y(),X$(),tS(),sc(),$4()}));function ppe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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(()=>At(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=mpe(),n=F(t,!0);D(t),R(()=>{cs(t,1,ts(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 mpe,hpe=o((()=>{Q(),Y(),$4(),mpe=V(`<pre> </pre>`)}));function gpe(e,t){let n=Fa();O(t,!0),K(e,bpe);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)};ei(()=>{r(),B(()=>{p()})}),ei(()=>{z(s),z(c),B(()=>{m()})});var h=ype(),g=F(h);_s(g);var _=L(g,2),v=e=>{var r=vpe(),d=F(r),f=e=>{xL(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=_pe(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>X(`opacity`));yoe(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`:``}`);pI(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`)}),Fs(g,()=>z(s),e=>P(s,e)),U(e,h),k()}var _pe,vpe,ype,bpe,xpe=o((()=>{Q(),Y(),Z(),X$(),sc(),_pe=V(` <!>`,1),vpe=V(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),ype=V(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),bpe={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 Spe(e,t){O(t,!0),K(e,wpe);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=Cpe(),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=ds(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 Cpe,wpe,Tpe=o((()=>{Q(),Y(),Cpe=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>`),wpe={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 Epe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),{valueStoreKey:a=`currentValues`}=Lt(`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(()=>At(n()?.[a][t.locale])??{}),h=M(()=>hb(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=wA({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)};ei(()=>{z(m),B(()=>{_()})});{let n=M(()=>String(o()));xL(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 Dpe=o((()=>{Q(),Y(),X$(),sc(),$4(),DA(),_b()}));function Ope(e,t){O(t,!0);var n=kpe(),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},[()=>ub(t.locale),()=>db(t.locale)]),U(e,n),k()}var kpe,Ape=o((()=>{Q(),Y(),_b(),kpe=V(`<p> </p>`)}));function jpe(e,t){O(t,!0),K(e,Ppe);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(()=>hC(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=xC(n(),t.fieldConfig);e!==void 0&&e!==z(o)&&P(o,e,!0)},h=()=>{let e=bC(z(o),n(),t.fieldConfig);e!==void 0&&e!==n()&&Number(vC(e,t.fieldConfig))!==Number(vC(n(),t.fieldConfig))&&n(e)};ei(()=>{n(),B(()=>{m()})}),ei(()=>{z(o),B(()=>{h()})});var g=Npe(),_=F(g);bs(_,()=>({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,Mpe())};G(v,e=>{z(p)&&e(y)});var b=L(v,2),x=e=>{{let n=M(()=>X(z(f)?`today`:`now`));pI(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{let e=yC(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());pI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};G(S,e=>{!i()&&!r()&&e(C)}),D(g),Fs(_,()=>z(o),e=>P(o,e)),U(e,g),k()}var Mpe,Npe,Ppe,Fpe=o((()=>{Q(),Y(),Z(),X$(),sc(),CC(),Mpe=V(`<span role="none" class="utc svelte-1dnhck7">UTC</span>`),Npe=V(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!> <!></div>`),Ppe={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 Ipe(e,t){O(t,!0);let n=M(()=>SC({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var r=H(),i=I(r),a=e=>{var r=Lpe(),i=F(r),a=L(i),o=e=>{U(e,Pa(`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},[()=>ub(t.locale),()=>db(t.locale)]),U(e,r)};G(i,e=>{z(n)&&e(a)}),U(e,r),k()}var Lpe,Rpe=o((()=>{Q(),Y(),CC(),_b(),Lpe=V(`<p> <!></p>`)}));function zpe(e,t){O(t,!0),K(e,Hpe);let n=J(t,`multiple`,3,!1),r=J(t,`hidden`,3,!1),i=M(()=>FC(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])=>Wne.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}`},d=()=>{let e={...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>Gne.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),Une)},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}u(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))}};ac(()=>(l(),window.addEventListener(`message`,p),()=>{window.removeEventListener(`message`,p)})),ei(()=>{z(i)&&z(s)&&d()});var m=Vpe(),h=I(m);Us(h,e=>P(c,e),()=>z(c));var g=L(h,2),_=e=>{W$(e,{children:(e,t)=>{var n=Bpe(),r=I(n);{let e=M(()=>X(`cloud_storage.cloudinary.activate.button_label`));pI(r,{variant:`primary`,get label(){return z(e)},onclick:async()=>{b1(`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 Bpe,Vpe,Hpe,Upe=o((()=>{Q(),Y(),Z(),X$(),f(),sc(),IC(),x1(),Bpe=V(`<!> <div role="none"> </div>`,1),Vpe=V(`<iframe allow="camera; storage-access" class="svelte-p06t0o"></iframe> <!>`,1),Hpe={hash:`svelte-p06t0o`,code:`iframe.svelte-p06t0o {display:block;width:100%;height:100%;border:none;&[hidden] {display:none;}}`}}));function Wpe(e,t){O(t,!0),K(e,Jpe);let n=J(t,`children`,3,void 0),r=M(()=>t.path?Sp(t.path).split(`/`):t.caption?[t.caption]:[]),i={ALLOWED_TAGS:[`wbr`]},a=e=>zE(e.replace(/([-_.])/g,`$1<wbr>`),i);var o=H(),s=I(o),c=e=>{var t=qpe(),i=F(t);rI(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=Gpe();So(n,()=>a(z(t)),!0),D(n),U(e,n)},c=e=>{var n=Kpe();So(I(n),()=>a(z(t))),gt(),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 Gpe,Kpe,qpe,Jpe,Ype=o((()=>{Q(),Y(),X$(),Ep(),BE(),Gpe=V(`<strong></strong>`),Kpe=V(`<!>/`,1),qpe=V(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),Jpe={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 Xpe(e,t){K(e,$pe);let n=J(t,`viewType`,3,`grid`);var r=Qpe();XL(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=Zpe();YF(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(()=>cs(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),U(e,r)}var Zpe,Qpe,$pe,eme=o((()=>{Q(),Y(),X$(),Zpe=V(`<span role="none" class="icon check-background"><!></span>`),Qpe=V(`<div role="none"><!></div>`),$pe={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 tme(e,t){O(t,!0),K(e,rme);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=nme();let l;var u=F(c);{let e=M(()=>X(`assets_dialog.available_images`));UL(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=cs(c,1,`wrapper svelte-umbokg`,null,l,{"show-title":a()})),U(e,c),k()}var nme,rme,ime=o((()=>{Q(),Y(),Z(),X$(),nme=V(`<div role="none"><!></div>`),rme={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 ame(e,t){O(t,!0);let n=J(t,`open`,15,!1);{let r=M(()=>X(`assets_dialog.large_file.title`));yL(e,{get title(){return z(r)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=ome(),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:nw(t.maxSize)}}),()=>hb(Ph.current).format(t.oversizedFileNames)]),U(e,r)},$$slots:{default:!0}})}k()}var ome,sme=o((()=>{Q(),Y(),Z(),X$(),_b(),lw(),ome=V(`<div> </div> <div> </div>`,1)}));function cme(e,t){O(t,!0),K(e,bme);let n=()=>j(KF,`$selectAssetsView`,o),r=()=>j(aF,`$cmsConfig`,o),i=()=>j(lN,`$prefs`,o),a=()=>j(YA,`$isSmallScreen`,o),[o,s]=mn(),c=e=>{var t=H(),n=I(t),r=e=>{W$(e,{children:(e,t)=>{var n=lme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(d()?`searching`:`loading`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{W$(e,{children:(e,t)=>{var n=ume(),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=fme();tme(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();$a(I(n),eS,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()));Xpe(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=dme(),i=I(r);f2(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);Wpe(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)??[]);OR(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,()=>Sr([])),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),te=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=Sr({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(Sr({show:!1,status:`info`,length:0})),_e=N(Sr([])),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(te)?.(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=>hF(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)};ac(()=>{(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=ee(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))})()}),ei(()=>{d(),z(le),B(()=>{z(le)&&be(d())})});var Te={uploadFiles:xe},Ee=yme(),De=I(Ee),Oe=e=>{var t=H(),n=I(t),r=e=>{W$(e,{children:(e,t)=>{var n=pme(),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);P3(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=>{W$(e,{children:(e,t)=>{var n=gme(),r=I(n),a=F(r),o=e=>{var t=H();So(I(t),()=>zE(X(`prefs.media.stock_photos.description`,{values:{service:z(g),homeHref:`href="${z(y)}"`,apiKeyHref:`href="${z(b)}"`}}),{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),()=>zE(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=mme(),n=F(t);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(g)}}));xL(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),gn(lN,B(i).apiKeys??={},B(i)),gn(lN,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=hme(),n=I(t),r=F(n);{let e=M(()=>X(`user_name`)),t=M(()=>z(pe)===`requested`);xL(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`);I$(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`);pI(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),gn(lN,B(i).logins??={},B(i)),gn(lN,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=>{W$(e,{children:(e,t)=>{var n=_me(),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);dz(je,{get show(){return z(ge).show},set show(e){z(ge).show=e},children:(e,t)=>{ZF(e,{get status(){return z(ge).status},children:(e,t)=>{var n=vme(),r=I(n),i=e=>{var t=Pa();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=Pa();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}}),ame(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 lme,ume,dme,fme,pme,mme,hme,gme,_me,vme,yme,bme,xme=o((()=>{Q(),Y(),Z(),X$(),tS(),BE(),sc(),Ype(),eme(),ime(),y2(),V3(),sme(),gF(),uF(),JF(),ej(),uN(),lme=V(`<span role="alert"> </span>`),ume=V(`<span role="alert"> </span>`),dme=V(`<!> <!>`,1),fme=V(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),pme=V(`<span role="alert"> </span>`),mme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),hme=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),gme=V(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),_me=V(`<span role="alert"> </span>`),vme=V(`<!> <!>`,1),yme=V(`<!> <!> <!>`,1),bme={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 Sme(e,t){O(t,!0),K(e,Ome);let n=()=>j(YA,`$isSmallScreen`,r),[r,i]=mn(),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,()=>Sr([])),p=J(t,`onSelect`,3,void 0),m=M(()=>(c()?o().filter(({name:e})=>Y6(e).includes(c())):o()).filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)),h=e=>f().some(t=>(0,U5.default)(t.asset,e)),g=(e,t)=>{let n=f().filter(t=>!(0,U5.default)(t.asset,e));t?(f([...n,{asset:e}]),p()?.({asset:e})):f(n)};var _=H(),v=I(_),y=e=>{var t=Eme();tme(F(t),{get multiple(){return a()},get gridId(){return u()},get viewType(){return s()},showTitle:!0,children:(e,t)=>{OR(e,{get items(){return z(m)},itemKey:`path`,renderItem:(e,t=E)=>{var r=H();$a(I(r),eS,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?Sp(z(r).path.replace(l(),``)):z(r).name);{let o=M(()=>h(t()));Xpe(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=Tme(),c=I(o),l=e=>{var t=Cme(),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);f2(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=>{Wpe(e,{get path(){return z(i)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=wme(),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=>{W$(e,{children:(e,t)=>{var n=Dme(),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 U5,Cme,wme,Tme,Eme,Dme,Ome,kme=o((()=>{Q(),Y(),Z(),X$(),tS(),Ep(),U5=l(aN()),Ype(),eme(),ime(),y2(),Q6(),ej(),Cme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),wme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Tme=V(`<!> <!> <!>`,1),Eme=V(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),Dme=V(`<span role="none"> </span>`),Ome={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 Ame(e,t){O(t,!0);let n=()=>j(KF,`$selectAssetsView`,r),[r,i]=mn(),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,()=>Sr([])),d=N(void 0);ei(()=>{u().length||B(()=>{z(d)?.reset()})}),Us(P3(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);Sme(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 jme=o((()=>{Q(),Y(),sc(),kme(),V3(),JF()})),W5,G5,K5,q5,Mme,J5,Y5=o((()=>{yp(),W5=l(aN(),1),BE(),sp(),MF(),kT(),IS(),gF(),lw(),G5=async({draft:e,file:t,folder:n})=>{let r=await vp(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await vp(t.file)===r&&(!n?.entryRelative||(0,W5.default)(t.folder,n))&&(i=e)})),i},K5=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 cw(e),size:a,kind:FS(i),folder:n}},q5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>K5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),Mme=(e,t)=>{let n=A(_F);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}/`))},J5=async({draft:e,resource:t,libraryConfig:n})=>{let{url:r,credit:i}=t,{asset:a,file:o}=t,s=``,c;if(o){let{folder:r}=t,i=await G5({draft:e,file:o,folder:r});if(i)s=i;else{let{file:t,oversized:i}=await hF(o,n??{});o=t;let l=await cw(o),u=[...Mme(e,r),...await q5({draft:e})].find(e=>e.sha===l&&(0,W5.default)(e.folder,r));u?(a=u,o=void 0):i?(c=o.name,o=void 0):(s=URL.createObjectURL(o),e.files[s]={file:o,folder:r})}}return a&&(a.unsaved?a.file&&(s=await G5({draft:e,file:a.file,folder:a.folder})):s=ET(a,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!o&&!a&&(s=r),{value:s,credit:i?zE(i,{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`]}):``,oversizedFileName:c}}})),X5,Z5,Q5,Nme,$5,Pme,Fme,Ime,Lme=o((()=>{Z(),tS(),X5=[`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(`,`),Z5=`https://api.pexels.com/v1`,Q5={per_page:80},Nme=()=>{let e=Ph.current.toLowerCase(),[t]=e.split(`-`);return X5.find(t=>t.toLowerCase()===e)??X5.find(e=>e.split(`-`)[0]===t)??`en-US`},$5=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>`})),Pme=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams(Q5),r=await fetch(`${Z5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return $5(i)},Fme=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...Q5,query:e,locale:Nme()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${Z5}/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 eS(50)}return $5(i)},Ime={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:Pme,search:Fme}})),Rme,zme,Bme,Vme,Hme,Ume,Wme,Gme=o((()=>{Rme=`https://picsum.photos/v2/list`,zme=100,Bme=10,Vme=3,Hme=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`}}),Ume=async()=>{let e=Array.from({length:Bme},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,Vme),t=await Promise.all(e.map(e=>fetch(`${Rme}?page=${e}&limit=${zme}`)));return t.some(e=>!e.ok)?Promise.reject():Hme((await Promise.all(t.map(e=>e.json()))).flat().sort(()=>Math.random()-.5))},Wme={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:Ume}})),Kme,e7,t7,n7,r7,qme,Jme,Yme,Xme=o((()=>{Z(),Kme=`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(`,`),e7=`https://pixabay.com/api`,t7={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},n7=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`})),r7=()=>{let[e]=Ph.current.toLowerCase().split(`-`);return Kme.includes(e)?e:`en`},qme=async({apiKey:e})=>{let t=new URLSearchParams({...t7,key:e,lang:r7(),editors_choice:`true`}),n=await fetch(`${e7}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return n7(r)},Jme=async(e,{apiKey:t})=>{let n=new URLSearchParams({...t7,key:t,lang:r7(),q:e}),r=await fetch(`${e7}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return n7(i)},Yme={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:qme,search:Jme}})),i7,a7,o7,s7,Zme,c7,Qme,$me,ehe,the=o((()=>{Z(),tS(),i7=[`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(`,`),a7=`https://api.unsplash.com`,o7=`utm_source=sveltia-cms&utm_medium=referral`,s7={per_page:30},Zme=()=>{let e=Ph.current.toLowerCase(),[t]=e.split(`-`);return i7.find(t=>t.toLowerCase()===e)??i7.find(e=>e.split(`-`)[0]===t)??`en`},c7=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}?${o7}">${o}</a> on <a href="https://unsplash.com/?${o7}">Unsplash</a>`})),Qme=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(s7),r=await fetch(`${a7}/photos?${n}`,{headers:t});return r.ok?c7(await r.json()):Promise.reject()},$me=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...s7,query:e,lang:Zme()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${a7}/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 eS(50)}return c7(i)},ehe={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:Qme,search:$me}})),l7,u7,nhe=o((()=>{fF(),Lme(),Gme(),Xme(),the(),l7={pexels:Ime,picsum:Wme,pixabay:Yme,unsplash:ehe},u7=({fieldConfig:e}={})=>{let t=dF({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(l7),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}}));function rhe(e,t){let n=Fa();O(t,!0),K(e,mhe);let r=()=>j(t.entryDraft,`$entryDraft`,l),i=()=>j(_F,`$allAssets`,l),a=()=>j(lN,`$prefs`,l),o=()=>j(YA,`$isSmallScreen`,l),s=()=>j(BF,`$showContentOverlay`,l),c=()=>j(KF,`$selectAssetsView`,l),[l,u]=mn(),d=e=>{var n=ohe(),r=I(n),i=e=>{var n=ahe(),r=I(n),i=e=>{{let t=M(()=>KF);E6(e,{get currentView(){return z(t)},"aria-controls":`select-assets-grid`})}};G(r,e=>{c()&&e(i)});var a=L(r,2);{let e=M(()=>!z(ae)),n=M(()=>z(w).some(e=>e.file)),r=M(()=>X(`assets_dialog.search_for_${t.kind??`file`}`));MR(a,{dir:`auto`,get flex(){return o()},get debounce(){return z(e)},get disabled(){return z(n)},get"aria-label"(){return z(r)},get value(){return z(y)},set value(e){P(y,e,!0)}})}U(e,n)};G(r,e=>{(z(ae)||z(E)&&z(b)!==`cloudinary`||z(fe)&&z(b)!==`picsum`)&&e(i)});var a=L(r,2),s=e=>{{let t=e=>{YF(e,{name:`cloud_upload`})},n=M(()=>X(`upload`));pI(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(C)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};G(a,e=>{(z(ae)||z(E)&&z(b)!==`cloudinary`)&&e(s)}),U(e,n)},f=J(t,`open`,15,!1),p=J(t,`multiple`,3,!1),m=J(t,`accept`,19,()=>t.kind===`image`?$w.join(`,`):void 0),h=J(t,`canEnterURL`,3,!0),g=J(t,`onSelect`,3,void 0),_=J(t,`pendingFiles`,31,()=>Sr([])),v=N(``),y=N(``),b=N(`default-global`),x=N(Sr([])),S=N(Sr([])),C=N(void 0),w=N(Sr([])),T=N(void 0),te=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},ne=M(()=>t.kind===`image`?X(`assets_dialog.title.image`):X(`assets_dialog.title.file`)),re=M(()=>Y6(z(y))),ie=M(()=>dF({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),ae=M(()=>z(b).startsWith(`default-`)),oe=M(()=>{if(!z(ae))return;let e=z(b).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),se=M(()=>{let{originalEntry:e}=r()??{},{entryRelative:t,internalPath:n,internalSubPath:i}=z(oe)??{};if(!t)return n?.replace(`{{slug}}`,e?.slug??`-`);let a=i||void 0;if(e){let t=jp(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${n}/${a}/-`:`${n}/-`}),ce=M(()=>[...i(),...z(S)].filter(e=>!t.kind||t.kind===e.kind).sort((e,t)=>e.name.localeCompare(t.name)).sort((e,t)=>Number(!!t.unsaved)-Number(!!e.unsaved))),le=M(()=>{let{providers:e=[]}=u7({fieldConfig:t.fieldConfig});return Object.entries(l7).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(ie))).sort(te)}),ue=M(()=>z(le).some(([e,{authType:t}])=>e===z(b)&&(t===`none`||!!a()?.apiKeys?.[z(b)]))),de=M(()=>[...t.enabledCloudServiceEntries,...z(le)].sort(te)),E=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(b))),fe=M(()=>z(le).map(([e])=>e).includes(z(b))),pe=M(()=>o()?HR:UL),me=e=>z(se)!==void 0&&(e===z(se)||`${e}/-`===z(se)||e.startsWith(`${z(se)}/`)),he=e=>{if(z(oe)===void 0||e.folder?.internalPath!==z(oe).internalPath||e.folder?.entryRelative!==z(oe).entryRelative)return!1;if(!z(oe).entryRelative)return me(e.path);let{dirname:t}=jp(e.path);return t===void 0?!1:me(t)},ge=async({hash:e,folder:t})=>(await Promise.all(z(S).map(async n=>!!n.file&&(0,ihe.default)(n.folder,t)&&await vp(n.file)===e))).includes(!0),_e=async e=>{let t=await vp(e),n=z(oe);if(await ge({hash:t,folder:n}))return;let r=await K5({file:e,folder:n,targetFolderPath:z(se)});return z(x).push(r),{asset:r}},ve=async e=>{P(w,(await Promise.all(e.map(_e))).filter(e=>!!e),!0)},ye=()=>{P(v,``),P(y,``),P(x,[],!0),P(S,[],!0),P(w,[],!0)},be=()=>{if(!z(w).length)return;let e=At(z(w)).map(e=>{let{unsaved:t,file:n,folder:r}=e.asset??{};return t?{file:n,folder:r}:e});g()?.(e)};ni(()=>{let e=z(ie)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(b,`default-${e}`):P(b,z(de)[0]?.[0],!0)}),ei(()=>{r()?.files,At(z(x)),(async()=>{P(S,[...r()?.files?await q5({draft:r(),targetFolderPath:z(se)}):[],...Object.values(z(x))],!0)})()}),ei(()=>{s()||f(!1)}),ei(()=>{z(T)&&_().length&&(z(T).uploadFiles(_()),_([]))});var xe=phe(),Se=I(xe);{let e=e=>{var t=H(),n=I(t),r=e=>{d(e)};G(n,e=>{o()||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}=l7[z(b)]??{};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(ue)&&e(r)}),U(e,t)},i=M(()=>X(`insert`)),a=M(()=>!z(w).length);dL(Se,{get title(){return z(ne)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(a)},keepContent:!0,focusInput:!1,onOk:be,onClose:()=>{ye()},get open(){return f()},set open(e){f(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=fhe(),a=F(i),s=F(a);{let e=M(()=>X(`assets_dialog.locations`));Oo(s,()=>z(pe),(r,i)=>{i(r,{class:`tabs`,get"aria-label"(){return z(e)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:e=>{P(b,e.detail.name,!0),P(w,[],!0)},children:(e,n)=>{var r=lhe(),i=I(r),a=e=>{{let n=M(()=>X(`asset_location.repository`));qL(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(()=>ee(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(b)===z(t));XL(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(ie)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`asset_location.external`));qL(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(()=>ee(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());XL(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(b)===`enter-url`);XL(e,{name:`enter-url`,get label(){return z(t)},get selected(){return z(n)}})}};G(a,e=>{h()&&e(o)}),U(e,r)},$$slots:{default:!0}})}},c=M(()=>h()||!!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`));qL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(le),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());XL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),U(e,n)},$$slots:{default:!0}})}};G(l,e=>{z(le).length&&e(u)}),U(e,r)},$$slots:{default:!0}})})}var c=L(s,2),l=e=>{var t=uhe();d(F(t)),D(t),U(e,t)};G(c,e=>{o()&&e(l)}),D(a);var u=L(a,2),g=F(u),_=e=>{{let t=M(()=>z(ce).filter(he));Ame(e,{get accept(){return m()},get multiple(){return p()},get assets(){return z(t)},get searchTerms(){return z(re)},get basePath(){return z(oe).internalPath},onDrop:({files:e})=>{ve(e)},get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}})}};G(g,e=>{z(ae)&&z(oe)&&e(_)});var y=L(g,2),x=e=>{W$(e,{children:(e,n)=>{var r=dhe(),i=I(r),a=F(i,!0);D(i),xL(L(i,2),{dir:`ltr`,flex:!0,oninput:()=>{let e=z(v).trim();P(w,e?[{url:e}]:[],!0)},get value(){return z(v)},set value(e){P(v,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(y,e=>{h()&&z(b)===`enter-url`&&e(x)}),mo(L(y,2),17,()=>z(de),([e,t])=>e,(e,n)=>{var r=M(()=>ee(z(n),2));let i=()=>z(r)[0],a=()=>z(r)[1];var o=H(),s=I(o),c=e=>{{let n=M(()=>z(b)!==`cloudinary`);zpe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get hidden(){return z(n)},onSelect:e=>{f()&&(P(w,e,!0),be(),f(!1))}})}},l=e=>{Us(cme(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get searchTerms(){return z(re)},get serviceProps(){return a()},gridId:`select-assets-grid`,get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}}),e=>P(T,e,!0),()=>z(T))};G(s,e=>{i()===`cloudinary`?e(c):z(b)===i()&&e(l,1)}),U(e,o)}),D(u),D(i),R(()=>q(u,`id`,`${n}-content-pane`)),U(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}Us(kL(L(Se,2),{get accept(){return m()},get multiple(){return p()},onSelect:({files:e})=>{z(E)?z(T)?.uploadFiles(e):ve(e)}}),e=>P(C,e,!0),()=>z(C)),U(e,xe),k(),u()}var ihe,ahe,ohe,she,che,lhe,uhe,dhe,fhe,phe,mhe,hhe=o((()=>{Q(),Y(),Z(),X$(),yp(),zp(),ihe=l(aN()),Upe(),xme(),jme(),A6(),MF(),JF(),Y5(),fF(),nhe(),Q6(),ej(),uN(),tT(),ahe=V(`<!> <!>`,1),ohe=V(`<!> <!>`,1),she=V(`<a> </a>`),che=V(`<!> <!>`,1),lhe=V(`<!> <!> <!>`,1),uhe=V(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),dhe=V(`<div role="none"> </div> <!>`,1),fhe=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>`),phe=V(`<!> <!>`,1),mhe={hash:`svelte-5b1zbe`,code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;max-height:800px;--tile-padding: 4px;}
934
+ ${JSON.stringify(e)}\n\nRespond with JSON only:`,O5=(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}})),Ude,Wde,Gde,Kde,qde,Jde,Yde=o((()=>{Hde(),k5(),Ude=`anthropic`,Wde=`Anthropic Claude`,Gde=`claude-haiku-4-5`,Kde=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),qde=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await Vde({apiKey:r,model:Gde,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`Anthropic API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Anthropic API.`)}},Jde={serviceId:Ude,serviceLabel:Wde,apiLabel:Lde,developerURL:Rde,apiKeyURL:zde,apiKeyPattern:Bde,markdownSupported:!0,availability:Kde,translate:qde}})),Xde,Zde,Qde,$de,efe,tfe,nfe=o((()=>{Xde=`https://api.deepseek.com/chat/completions`,Zde=`DeepSeek API`,Qde=`https://api-docs.deepseek.com/`,$de=`https://platform.deepseek.com/api_keys`,efe=/sk-[a-zA-Z0-9]{32,}/,tfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3,thinking:o=!0})=>{let s=await fetch(Xde,{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()}})),rfe,ife,afe,ofe,sfe,cfe,lfe=o((()=>{nfe(),k5(),rfe=`deepseek`,ife=`DeepSeek`,afe=`deepseek-v4-flash`,ofe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),sfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await tfe({apiKey:r,model:afe,systemPrompt:E5(i,a),userMessage:D5(e),thinking:!1}),e.length,`DeepSeek API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with DeepSeek API.`)}},cfe={serviceId:rfe,serviceLabel:ife,apiLabel:Zde,developerURL:Qde,apiKeyURL:$de,apiKeyPattern:efe,markdownSupported:!0,availability:ofe,translate:sfe}})),ufe,dfe,ffe,pfe,mfe,hfe,A5,j5,gfe,_fe,M5,vfe=o((()=>{ufe=`google`,dfe=`Google Cloud Translation`,ffe=`Cloud Translation API`,pfe=`https://console.cloud.google.com/apis/library/translate.googleapis.com`,mfe=`https://console.cloud.google.com/apis/api/translate.googleapis.com/credentials`,hfe=/AIza[0-9A-Za-z-_]{35}/,A5=[`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(`,`),j5=e=>{let t=e.replace(/^([a-z]{2,3})[-_]([a-z]{2,4})$/i,(e,t,n)=>`${t.toLowerCase()}-${n.toUpperCase()}`);if(A5.includes(t))return t;if([`zh-HK`,`zh-MO`].includes(t))return`zh-TW`;let[n]=t.split(`-`);if(A5.includes(n))return n},gfe=async({sourceLanguage:e,targetLanguage:t})=>!!j5(e)&&!!j5(t),_fe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{if(t=j5(t)??``,n=j5(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.`)}},M5={serviceId:ufe,serviceLabel:dfe,apiLabel:ffe,developerURL:pfe,apiKeyURL:mfe,apiKeyPattern:hfe,markdownSupported:!1,availability:gfe,translate:_fe}})),yfe,bfe,xfe,Sfe,Cfe,wfe=o((()=>{yfe=`Google AI Studio API`,bfe=`https://ai.google.dev/gemini-api/docs`,xfe=`https://aistudio.google.com/api-keys`,Sfe=/AIza[a-zA-Z0-9_-]{35}/,Cfe=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()}})),Tfe,Efe,Dfe,Ofe,kfe,Afe,jfe=o((()=>{wfe(),k5(),Tfe=`google-ai`,Efe=`Google Gemini`,Dfe=`gemini-3.1-flash-lite`,Ofe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),kfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await Cfe({apiKey:r,model:Dfe,systemPrompt:E5(i,a),userMessage:D5(e),responseFormat:`application/json`}),e.length,`Gemini API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with Gemini API.`)}},Afe={serviceId:Tfe,serviceLabel:Efe,apiLabel:yfe,developerURL:bfe,apiKeyURL:xfe,apiKeyPattern:Sfe,markdownSupported:!0,availability:Ofe,translate:kfe}})),Mfe,Nfe,Pfe,Ffe,Ife,Lfe,Rfe,zfe,Bfe=o((()=>{Mfe=`https://api.openai.com/v1/responses`,Nfe=`OpenAI API`,Pfe=`https://platform.openai.com/docs/overview`,Ffe=`https://platform.openai.com/api-keys`,Ife=/sk-[a-zA-Z0-9-_]{40,}/,Lfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`message`&&`content`in e&&Array.isArray(e.content),Rfe=e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`output_text`&&`text`in e&&typeof e.text==`string`,zfe=async({apiKey:e,model:t,systemPrompt:n,userMessage:r,temperature:i=.3,maxTokens:a=4e3})=>{let o=await fetch(Mfe,{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(Lfe),l=(Array.isArray(c?.content)?c.content:[]).find(Rfe);if(typeof l?.text==`string`)return l.text.trim();throw Error(`Invalid response format from OpenAI API.`)}})),Vfe,Hfe,Ufe,Wfe,Gfe,Kfe,qfe=o((()=>{Bfe(),k5(),Vfe=`openai`,Hfe=`OpenAI GPT`,Ufe=`gpt-5.4-nano`,Wfe=async({sourceLanguage:e,targetLanguage:t})=>!!T5(e)&&!!T5(t),Gfe=async(e,{sourceLanguage:t,targetLanguage:n,apiKey:r})=>{let i=T5(t),a=T5(n);if(!i)throw Error(`Source locale is not supported.`);if(!a)throw Error(`Target locale is not supported.`);try{return O5(await zfe({apiKey:r,model:Ufe,systemPrompt:E5(i,a),userMessage:D5(e)}),e.length,`OpenAI API`)}catch(e){throw e instanceof Error?e:Error(`Failed to translate text with OpenAI API.`)}},Kfe={serviceId:Vfe,serviceLabel:Hfe,apiLabel:Nfe,developerURL:Pfe,apiKeyURL:Ffe,apiKeyPattern:Ife,markdownSupported:!0,availability:Wfe,translate:Gfe}})),N5,P5,F5=o((()=>{sp(),uN(),Yde(),lfe(),vfe(),jfe(),qfe(),N5={anthropic:Jde,deepseek:cfe,google:M5,"google-ai":Afe,openai:Kfe},P5=un([lN],([e])=>{let{defaultTranslationService:t=`google`}=e;return N5[t]??M5})})),I5,Jfe,L5,Yfe,Xfe,R5,Zfe=o((()=>{yO(),sp(),Nde(),$4(),JF(),DA(),w5(),F5(),uN(),I5=new h5({headingStyle:`atx`,bulletListMarker:`-`,codeBlockStyle:`fenced`}),I5.keep([`span`,`div`]),Jfe=({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=bA({...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`&&C5(r).hasSubFields||!l&&t===n||!c&&l&&n?null:[e,{value:t,isMarkdown:a===`richtext`||a===`markdown`}]}).filter(e=>!!e))},L5=(e,t,{count:n,sourceLanguage:r})=>{UF.set({id:Date.now(),show:!0,status:e,message:t,count:n,sourceLanguage:r})},Yfe=async({currentValues:e,options:t,copingFieldMap:n})=>{let{serviceId:r,markdownSupported:i,translate:a}=A(P5),{sourceLanguage:o,targetLanguage:s}=t,c=Object.keys(n).length,l=A(lN).apiKeys?.[r]||await new Promise(e=>{HF.set({show:!0,multiple:c>1,resolve:e})});if(l){L5(`info`,`translation.started`,{count:c,sourceLanguage:o});try{let t=await a(Object.entries(n).map(([,{value:e,isMarkdown:t}])=>t&&!i?vO(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?I5.turndown(o):o}),L5(`success`,`translation.complete`,{count:c,sourceLanguage:o})}catch(e){L5(`error`,`translation.error`,{count:c,sourceLanguage:o}),console.error(e)}}},Xfe=({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}),L5(`success`,`copy.complete`,{count:a,sourceLanguage:r})},R5=async e=>{let{sourceLanguage:t,translate:n=!1}=e,r=A(J4),{currentValues:i}=r,a=Jfe({draft:r,options:e}),o=Object.keys(a).length;if(!o){L5(`info`,`${n?`translation`:`copy`}.none`,{count:o,sourceLanguage:t});return}n?await Yfe({currentValues:i,options:e,copingFieldMap:a}):Xfe({currentValues:i,options:e,copingFieldMap:a}),J4.update(e=>({...e,currentValues:i}))}}));function z5(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=mn(),o=J(t,`keyPath`,3,``),s=J(t,`translate`,3,!1),c=async({sourceLanguage:e,targetLanguage:t})=>!n()?.currentLocales[t]||!n().currentLocales[e]||!!o()&&!At(n().currentValues[e])[o()]||!s()&&!!o()&&At(n().currentValues[e])[o()]===At(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();$a(I(i),()=>c(z(r)),null,(e,t)=>{{let i=M(()=>X(s()?`translate_from_x`:`copy_from_x`,{values:{locale:pb(n)}}));aR(e,{get label(){return z(i)},get disabled(){return z(t)},onclick:()=>{R5({...z(r),keyPath:o(),translate:s()})}})}}),U(e,i)}),U(e,l),k(),a()}var B5=o((()=>{Q(),Y(),Z(),X$(),$4(),Zfe(),_b(),F5()}));function Qfe(e,t){O(t,!0),K(e,epe);let n=J(t,`children`,3,void 0),r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`children`]),i=N(void 0);ac(()=>()=>{z(i)?.dispatchEvent(new CustomEvent(`Unmount`))});var a=$fe();bs(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 $fe,epe,tpe=o((()=>{Q(),Y(),sc(),$fe=V(`<section><!></section>`),epe={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 npe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,i),r=()=>j(P5,`$translator`,i),[i,a]=mn(),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:pb(z(n).otherLocale)??z(n).otherLocale}})),i=M(()=>({sourceLanguage:z(n).otherLocale,targetLanguage:t.locale}));var a=H();$a(I(a),()=>l(z(i)),null,(e,t)=>{pI(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:()=>{R5({...z(i),keyPath:s(),translate:!0})},startIcon:e=>{YF(e,{name:`translate`})},$$slots:{startIcon:!0}})}),U(e,a)},p=e=>{{let n=e=>{YF(e,{name:`translate`})},r=e=>{{let n=M(()=>X(`translation_options`));tR(e,{get"aria-label"(){return z(n)},children:(e,n)=>{z5(e,{get locale(){return t.locale},get otherLocales(){return t.otherLocales},get keyPath(){return s()},translate:!0})},$$slots:{default:!0}})}},i=M(()=>X(`translate`));GI(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 rpe=o((()=>{Q(),Y(),Z(),X$(),B5(),$4(),Zfe(),_b(),F5()}));function V5(e,t){K(e,ape);let n=J(t,`id`,3,void 0),r=J(t,`live`,3,`polite`);var i=ipe(),a=F(i),o=F(a);YF(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 ipe,ape,H5=o((()=>{Q(),Y(),X$(),ipe=V(`<div role="alert" class="validation svelte-6wra4i"><div role="none" class="svelte-6wra4i"><!> <!></div></div>`),ape={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 ope(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);ZR(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 spe=o((()=>{Q(),Y(),X$()}));function cpe(e,t){O(t,!0);let n=J(t,`currentValue`,3,!1);var r=H(),i=I(r),a=e=>{var t=lpe(),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 lpe,upe=o((()=>{Q(),Y(),Z(),lpe=V(`<p> </p>`)}));function dpe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),{valueStoreKey:a=`currentValues`}=Lt(`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(()=>At(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)&&gn(J4,B(n)[a][t.locale][z(_)]=z(u),B(n)),z(g)[z(v)]!==z(d)&&gn(J4,B(n)[a][t.locale][z(v)]=z(d),B(n)))};ei(()=>{z(g),B(()=>{y()})}),ei(()=>{z(u),z(d),B(()=>{b()})});var x=H();$a(I(x),eS,null,e=>{var n=H();ao(I(n),()=>JSON.stringify(t.fieldConfig),e=>{Ole(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 fpe=o((()=>{Q(),Y(),X$(),tS(),sc(),$4()}));function ppe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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(()=>At(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=mpe(),n=F(t,!0);D(t),R(()=>{cs(t,1,ts(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 mpe,hpe=o((()=>{Q(),Y(),$4(),mpe=V(`<pre> </pre>`)}));function gpe(e,t){let n=Fa();O(t,!0),K(e,bpe);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)};ei(()=>{r(),B(()=>{p()})}),ei(()=>{z(s),z(c),B(()=>{m()})});var h=ype(),g=F(h);_s(g);var _=L(g,2),v=e=>{var r=vpe(),d=F(r),f=e=>{xL(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=_pe(),n=I(t),r=L(n);{let e=M(()=>!z(s)),t=M(()=>X(`opacity`));yoe(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`:``}`);pI(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`)}),Fs(g,()=>z(s),e=>P(s,e)),U(e,h),k()}var _pe,vpe,ype,bpe,xpe=o((()=>{Q(),Y(),Z(),X$(),sc(),_pe=V(` <!>`,1),vpe=V(`<span role="none" class="value svelte-udhsyb"><!> <!></span>`),ype=V(`<div role="none" class="svelte-udhsyb"><input type="color" class="svelte-udhsyb"/> <!> <!></div>`),bpe={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 Spe(e,t){O(t,!0),K(e,wpe);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=Cpe(),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=ds(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 Cpe,wpe,Tpe=o((()=>{Q(),Y(),Cpe=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>`),wpe={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 Epe(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),{valueStoreKey:a=`currentValues`}=Lt(`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(()=>At(n()?.[a][t.locale])??{}),h=M(()=>hb(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=wA({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)};ei(()=>{z(m),B(()=>{_()})});{let n=M(()=>String(o()));xL(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 Dpe=o((()=>{Q(),Y(),X$(),sc(),$4(),DA(),_b()}));function Ope(e,t){O(t,!0);var n=kpe(),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},[()=>ub(t.locale),()=>db(t.locale)]),U(e,n),k()}var kpe,Ape=o((()=>{Q(),Y(),_b(),kpe=V(`<p> </p>`)}));function jpe(e,t){O(t,!0),K(e,Ppe);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(()=>hC(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=xC(n(),t.fieldConfig);e!==void 0&&e!==z(o)&&P(o,e,!0)},h=()=>{let e=bC(z(o),n(),t.fieldConfig);e!==void 0&&e!==n()&&Number(vC(e,t.fieldConfig))!==Number(vC(n(),t.fieldConfig))&&n(e)};ei(()=>{n(),B(()=>{m()})}),ei(()=>{z(o),B(()=>{h()})});var g=Npe(),_=F(g);bs(_,()=>({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,Mpe())};G(v,e=>{z(p)&&e(y)});var b=L(v,2),x=e=>{{let n=M(()=>X(z(f)?`today`:`now`));pI(e,{variant:`tertiary`,get label(){return z(n)},onclick:()=>{let e=yC(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());pI(e,{variant:`tertiary`,get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{n(``)}})}};G(S,e=>{!i()&&!r()&&e(C)}),D(g),Fs(_,()=>z(o),e=>P(o,e)),U(e,g),k()}var Mpe,Npe,Ppe,Fpe=o((()=>{Q(),Y(),Z(),X$(),sc(),CC(),Mpe=V(`<span role="none" class="utc svelte-1dnhck7">UTC</span>`),Npe=V(`<div role="none" class="svelte-1dnhck7"><input/> <!> <!> <!></div>`),Ppe={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 Ipe(e,t){O(t,!0);let n=M(()=>SC({locale:t.locale,fieldConfig:t.fieldConfig,currentValue:t.currentValue}));var r=H(),i=I(r),a=e=>{var r=Lpe(),i=F(r),a=L(i),o=e=>{U(e,Pa(`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},[()=>ub(t.locale),()=>db(t.locale)]),U(e,r)};G(i,e=>{z(n)&&e(a)}),U(e,r),k()}var Lpe,Rpe=o((()=>{Q(),Y(),CC(),_b(),Lpe=V(`<p> <!></p>`)}));function zpe(e,t){O(t,!0),K(e,Hpe);let n=J(t,`multiple`,3,!1),r=J(t,`hidden`,3,!1),i=M(()=>FC(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])=>Wne.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}`},d=()=>{let e={...Object.fromEntries(Object.entries(z(i).config??{}).filter(([e])=>Gne.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),Une)},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}u(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))}};ac(()=>(l(),window.addEventListener(`message`,p),()=>{window.removeEventListener(`message`,p)})),ei(()=>{z(i)&&z(s)&&d()});var m=Vpe(),h=I(m);Us(h,e=>P(c,e),()=>z(c));var g=L(h,2),_=e=>{W$(e,{children:(e,t)=>{var n=Bpe(),r=I(n);{let e=M(()=>X(`cloud_storage.cloudinary.activate.button_label`));pI(r,{variant:`primary`,get label(){return z(e)},onclick:async()=>{b1(`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 Bpe,Vpe,Hpe,Upe=o((()=>{Q(),Y(),Z(),X$(),f(),sc(),IC(),x1(),Bpe=V(`<!> <div role="none"> </div>`,1),Vpe=V(`<iframe allow="camera; storage-access" class="svelte-p06t0o"></iframe> <!>`,1),Hpe={hash:`svelte-p06t0o`,code:`iframe.svelte-p06t0o {display:block;width:100%;height:100%;border:none;&[hidden] {display:none;}}`}}));function Wpe(e,t){O(t,!0),K(e,Jpe);let n=J(t,`children`,3,void 0),r=M(()=>t.path?Sp(t.path).split(`/`):t.caption?[t.caption]:[]),i={ALLOWED_TAGS:[`wbr`]},a=e=>zE(e.replace(/([-_.])/g,`$1<wbr>`),i);var o=H(),s=I(o),c=e=>{var t=qpe(),i=F(t);rI(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=Gpe();So(n,()=>a(z(t)),!0),D(n),U(e,n)},c=e=>{var n=Kpe();So(I(n),()=>a(z(t))),gt(),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 Gpe,Kpe,qpe,Jpe,Ype=o((()=>{Q(),Y(),X$(),Ep(),BE(),Gpe=V(`<strong></strong>`),Kpe=V(`<!>/`,1),qpe=V(`<span class="name svelte-1ngvthn" aria-hidden="true"><!> <!></span>`),Jpe={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 Xpe(e,t){K(e,$pe);let n=J(t,`viewType`,3,`grid`);var r=Qpe();XL(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=Zpe();YF(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(()=>cs(r,1,`wrapper ${n()??``}`,`svelte-1fitgoo`)),U(e,r)}var Zpe,Qpe,$pe,eme=o((()=>{Q(),Y(),X$(),Zpe=V(`<span role="none" class="icon check-background"><!></span>`),Qpe=V(`<div role="none"><!></div>`),$pe={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 tme(e,t){O(t,!0),K(e,rme);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=nme();let l;var u=F(c);{let e=M(()=>X(`assets_dialog.available_images`));UL(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=cs(c,1,`wrapper svelte-umbokg`,null,l,{"show-title":a()})),U(e,c),k()}var nme,rme,ime=o((()=>{Q(),Y(),Z(),X$(),nme=V(`<div role="none"><!></div>`),rme={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 ame(e,t){O(t,!0);let n=J(t,`open`,15,!1);{let r=M(()=>X(`assets_dialog.large_file.title`));yL(e,{get title(){return z(r)},get open(){return n()},set open(e){n(e)},children:(e,n)=>{var r=ome(),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:nw(t.maxSize)}}),()=>hb(Ph.current).format(t.oversizedFileNames)]),U(e,r)},$$slots:{default:!0}})}k()}var ome,sme=o((()=>{Q(),Y(),Z(),X$(),_b(),lw(),ome=V(`<div> </div> <div> </div>`,1)}));function cme(e,t){O(t,!0),K(e,bme);let n=()=>j(KF,`$selectAssetsView`,o),r=()=>j(aF,`$cmsConfig`,o),i=()=>j(lN,`$prefs`,o),a=()=>j(YA,`$isSmallScreen`,o),[o,s]=mn(),c=e=>{var t=H(),n=I(t),r=e=>{W$(e,{children:(e,t)=>{var n=lme(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(d()?`searching`:`loading`)]),U(e,n)},$$slots:{default:!0}})},i=e=>{W$(e,{children:(e,t)=>{var n=ume(),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=fme();tme(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();$a(I(n),eS,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()));Xpe(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=dme(),i=I(r);f2(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);Wpe(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)??[]);OR(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,()=>Sr([])),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),te=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=Sr({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(Sr({show:!1,status:`info`,length:0})),_e=N(Sr([])),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(te)?.(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=>hF(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)};ac(()=>{(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=ee(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))})()}),ei(()=>{d(),z(le),B(()=>{z(le)&&be(d())})});var Te={uploadFiles:xe},Ee=yme(),De=I(Ee),Oe=e=>{var t=H(),n=I(t),r=e=>{W$(e,{children:(e,t)=>{var n=pme(),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);P3(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=>{W$(e,{children:(e,t)=>{var n=gme(),r=I(n),a=F(r),o=e=>{var t=H();So(I(t),()=>zE(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),()=>zE(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=mme(),n=F(t);{let e=M(()=>X(`prefs.media.stock_photos.field_label`,{values:{service:z(g)}}));xL(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),gn(lN,B(i).apiKeys??={},B(i)),gn(lN,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=hme(),n=I(t),r=F(n);{let e=M(()=>X(`user_name`)),t=M(()=>z(pe)===`requested`);xL(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`);I$(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`);pI(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),gn(lN,B(i).logins??={},B(i)),gn(lN,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=>{W$(e,{children:(e,t)=>{var n=_me(),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);dz(je,{get show(){return z(ge).show},set show(e){z(ge).show=e},children:(e,t)=>{ZF(e,{get status(){return z(ge).status},children:(e,t)=>{var n=vme(),r=I(n),i=e=>{var t=Pa();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=Pa();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}}),ame(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 lme,ume,dme,fme,pme,mme,hme,gme,_me,vme,yme,bme,xme=o((()=>{Q(),Y(),Z(),X$(),tS(),BE(),sc(),Ype(),eme(),ime(),y2(),V3(),sme(),gF(),uF(),JF(),ej(),uN(),lme=V(`<span role="alert"> </span>`),ume=V(`<span role="alert"> </span>`),dme=V(`<!> <!>`,1),fme=V(`<div role="none" class="grid-wrapper svelte-mqll9n"><!></div>`),pme=V(`<span role="alert"> </span>`),mme=V(`<div role="none" class="input-outer svelte-mqll9n"><!></div>`),hme=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),gme=V(`<p role="alert" class="svelte-mqll9n"><!> <!></p> <!> <!>`,1),_me=V(`<span role="alert"> </span>`),vme=V(`<!> <!>`,1),yme=V(`<!> <!> <!>`,1),bme={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 Sme(e,t){O(t,!0),K(e,Ome);let n=()=>j(YA,`$isSmallScreen`,r),[r,i]=mn(),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,()=>Sr([])),p=J(t,`onSelect`,3,void 0),m=M(()=>(c()?o().filter(({name:e})=>Y6(e).includes(c())):o()).filter((e,t,n)=>n.findIndex(t=>t.path===e.path)===t)),h=e=>f().some(t=>(0,U5.default)(t.asset,e)),g=(e,t)=>{let n=f().filter(t=>!(0,U5.default)(t.asset,e));t?(f([...n,{asset:e}]),p()?.({asset:e})):f(n)};var _=H(),v=I(_),y=e=>{var t=Eme();tme(F(t),{get multiple(){return a()},get gridId(){return u()},get viewType(){return s()},showTitle:!0,children:(e,t)=>{OR(e,{get items(){return z(m)},itemKey:`path`,renderItem:(e,t=E)=>{var r=H();$a(I(r),eS,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?Sp(z(r).path.replace(l(),``)):z(r).name);{let o=M(()=>h(t()));Xpe(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=Tme(),c=I(o),l=e=>{var t=Cme(),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);f2(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=>{Wpe(e,{get path(){return z(i)},children:(e,t)=>{var n=H(),i=I(n),a=e=>{var t=wme(),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=>{W$(e,{children:(e,t)=>{var n=Dme(),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 U5,Cme,wme,Tme,Eme,Dme,Ome,kme=o((()=>{Q(),Y(),Z(),X$(),tS(),Ep(),U5=l(aN()),Ype(),eme(),ime(),y2(),Q6(),ej(),Cme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),wme=V(`<div role="none" class="unsaved svelte-1ong0f1"> </div>`),Tme=V(`<!> <!> <!>`,1),Eme=V(`<div role="none" class="grid-wrapper svelte-1ong0f1"><!></div>`),Dme=V(`<span role="none"> </span>`),Ome={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 Ame(e,t){O(t,!0);let n=()=>j(KF,`$selectAssetsView`,r),[r,i]=mn(),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,()=>Sr([])),d=N(void 0);ei(()=>{u().length||B(()=>{z(d)?.reset()})}),Us(P3(e,{get multiple(){return a()},get accept(){return o()},get onDrop(){return t.onDrop},children:(e,t)=>{{let t=M(()=>n()?.type);Sme(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 jme=o((()=>{Q(),Y(),sc(),kme(),V3(),JF()})),W5,G5,K5,q5,Mme,J5,Y5=o((()=>{yp(),W5=l(aN(),1),BE(),sp(),MF(),kT(),IS(),gF(),lw(),G5=async({draft:e,file:t,folder:n})=>{let r=await vp(t),i;return await Promise.all(Object.entries(e.files??{}).map(async([e,t])=>{!i&&await vp(t.file)===r&&(!n?.entryRelative||(0,W5.default)(t.folder,n))&&(i=e)})),i},K5=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 cw(e),size:a,kind:FS(i),folder:n}},q5=async({draft:e,targetFolderPath:t})=>Promise.all(Object.entries(e.files).map(async([e,{file:n,folder:r}])=>K5({file:n,blobURL:e,folder:r,targetFolderPath:t}))),Mme=(e,t)=>{let n=A(_F);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}/`))},J5=async({draft:e,resource:t,libraryConfig:n})=>{let{url:r,credit:i}=t,{asset:a,file:o}=t,s=``,c;if(o){let{folder:r}=t,i=await G5({draft:e,file:o,folder:r});if(i)s=i;else{let{file:t,oversized:i}=await hF(o,n??{});o=t;let l=await cw(o),u=[...Mme(e,r),...await q5({draft:e})].find(e=>e.sha===l&&(0,W5.default)(e.folder,r));u?(a=u,o=void 0):i?(c=o.name,o=void 0):(s=URL.createObjectURL(o),e.files[s]={file:o,folder:r})}}return a&&(a.unsaved?a.file&&(s=await G5({draft:e,file:a.file,folder:a.folder})):s=ET(a,{pathOnly:!0,allowSpecial:!0,entry:e.originalEntry})),r&&!o&&!a&&(s=r),{value:s,credit:i?zE(i,{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`]}):``,oversizedFileName:c}}})),X5,Z5,Q5,Nme,$5,Pme,Fme,Ime,Lme=o((()=>{Z(),tS(),X5=[`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(`,`),Z5=`https://api.pexels.com/v1`,Q5={per_page:80},Nme=()=>{let e=Ph.current.toLowerCase(),[t]=e.split(`-`);return X5.find(t=>t.toLowerCase()===e)??X5.find(e=>e.split(`-`)[0]===t)??`en-US`},$5=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>`})),Pme=async({apiKey:e})=>{let t={Authorization:e},n=new URLSearchParams(Q5),r=await fetch(`${Z5}/curated?${n}`,{headers:t});if(!r.ok)return Promise.reject();let i=(await r.json()).photos;return $5(i)},Fme=async(e,{apiKey:t})=>{let n={Authorization:t},r=new URLSearchParams({...Q5,query:e,locale:Nme()}),i=[];for(let e=1;e<=2;e+=1){r.set(`page`,String(e));let t=await fetch(`${Z5}/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 eS(50)}return $5(i)},Ime={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:Pme,search:Fme}})),Rme,zme,Bme,Vme,Hme,Ume,Wme,Gme=o((()=>{Rme=`https://picsum.photos/v2/list`,zme=100,Bme=10,Vme=3,Hme=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`}}),Ume=async()=>{let e=Array.from({length:Bme},(e,t)=>t+1).sort(()=>Math.random()-.5).slice(0,Vme),t=await Promise.all(e.map(e=>fetch(`${Rme}?page=${e}&limit=${zme}`)));return t.some(e=>!e.ok)?Promise.reject():Hme((await Promise.all(t.map(e=>e.json()))).flat().sort(()=>Math.random()-.5))},Wme={serviceType:`stock_assets`,serviceId:`picsum`,serviceLabel:`Lorem Picsum`,serviceURL:`https://picsum.photos/`,showServiceLink:!0,hotlinking:!0,authType:`none`,list:Ume}})),Kme,e7,t7,n7,r7,qme,Jme,Yme,Xme=o((()=>{Z(),Kme=`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(`,`),e7=`https://pixabay.com/api`,t7={image_type:`photo`,min_width:1280,safesearch:!0,per_page:150},n7=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`})),r7=()=>{let[e]=Ph.current.toLowerCase().split(`-`);return Kme.includes(e)?e:`en`},qme=async({apiKey:e})=>{let t=new URLSearchParams({...t7,key:e,lang:r7(),editors_choice:`true`}),n=await fetch(`${e7}/?${t}`);if(!n.ok)return Promise.reject();let r=(await n.json()).hits;return n7(r)},Jme=async(e,{apiKey:t})=>{let n=new URLSearchParams({...t7,key:t,lang:r7(),q:e}),r=await fetch(`${e7}/?${n}`);if(!r.ok)return Promise.reject();let i=(await r.json()).hits;return n7(i)},Yme={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:qme,search:Jme}})),i7,a7,o7,s7,Zme,c7,Qme,$me,ehe,the=o((()=>{Z(),tS(),i7=[`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(`,`),a7=`https://api.unsplash.com`,o7=`utm_source=sveltia-cms&utm_medium=referral`,s7={per_page:30},Zme=()=>{let e=Ph.current.toLowerCase(),[t]=e.split(`-`);return i7.find(t=>t.toLowerCase()===e)??i7.find(e=>e.split(`-`)[0]===t)??`en`},c7=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}?${o7}">${o}</a> on <a href="https://unsplash.com/?${o7}">Unsplash</a>`})),Qme=async({apiKey:e})=>{let t={Authorization:`Client-ID ${e}`},n=new URLSearchParams(s7),r=await fetch(`${a7}/photos?${n}`,{headers:t});return r.ok?c7(await r.json()):Promise.reject()},$me=async(e,{apiKey:t})=>{let n={Authorization:`Client-ID ${t}`},r=new URLSearchParams({...s7,query:e,lang:Zme()}),i=[];for(let e=1;e<=5;e+=1){r.set(`page`,String(e));let t=await fetch(`${a7}/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 eS(50)}return c7(i)},ehe={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:Qme,search:$me}})),l7,u7,nhe=o((()=>{fF(),Lme(),Gme(),Xme(),the(),l7={pexels:Ime,picsum:Wme,pixabay:Yme,unsplash:ehe},u7=({fieldConfig:e}={})=>{let t=dF({libraryName:`stock_assets`,fieldConfig:e});if(t===!1)return{providers:[]};let n=Object.keys(l7),{providers:r}=t;return{providers:Array.isArray(r)?r:n}}}));function rhe(e,t){let n=Fa();O(t,!0),K(e,mhe);let r=()=>j(t.entryDraft,`$entryDraft`,l),i=()=>j(_F,`$allAssets`,l),a=()=>j(lN,`$prefs`,l),o=()=>j(YA,`$isSmallScreen`,l),s=()=>j(BF,`$showContentOverlay`,l),c=()=>j(KF,`$selectAssetsView`,l),[l,u]=mn(),d=e=>{var n=ohe(),r=I(n),i=e=>{var n=ahe(),r=I(n),i=e=>{{let t=M(()=>KF);E6(e,{get currentView(){return z(t)},"aria-controls":`select-assets-grid`})}};G(r,e=>{c()&&e(i)});var a=L(r,2);{let e=M(()=>!z(ae)),n=M(()=>z(w).some(e=>e.file)),r=M(()=>X(`assets_dialog.search_for_${t.kind??`file`}`));MR(a,{dir:`auto`,get flex(){return o()},get debounce(){return z(e)},get disabled(){return z(n)},get"aria-label"(){return z(r)},get value(){return z(y)},set value(e){P(y,e,!0)}})}U(e,n)};G(r,e=>{(z(ae)||z(E)&&z(b)!==`cloudinary`||z(fe)&&z(b)!==`picsum`)&&e(i)});var a=L(r,2),s=e=>{{let t=e=>{YF(e,{name:`cloud_upload`})},n=M(()=>X(`upload`));pI(e,{variant:`primary`,get label(){return z(n)},onclick:()=>{z(C)?.open()},startIcon:t,$$slots:{startIcon:!0}})}};G(a,e=>{(z(ae)||z(E)&&z(b)!==`cloudinary`)&&e(s)}),U(e,n)},f=J(t,`open`,15,!1),p=J(t,`multiple`,3,!1),m=J(t,`accept`,19,()=>t.kind===`image`?$w.join(`,`):void 0),h=J(t,`canEnterURL`,3,!0),g=J(t,`onSelect`,3,void 0),_=J(t,`pendingFiles`,31,()=>Sr([])),v=N(``),y=N(``),b=N(`default-global`),x=N(Sr([])),S=N(Sr([])),C=N(void 0),w=N(Sr([])),T=N(void 0),te=(e,t)=>{let n=e[1].serviceLabel.toLowerCase(),r=t[1].serviceLabel.toLowerCase();return n.localeCompare(r)},ne=M(()=>t.kind===`image`?X(`assets_dialog.title.image`):X(`assets_dialog.title.file`)),re=M(()=>Y6(z(y))),ie=M(()=>dF({fieldConfig:t.fieldConfig})!==!1&&Object.values(t.assetLibraryFolderMap).some(({enabled:e})=>e)),ae=M(()=>z(b).startsWith(`default-`)),oe=M(()=>{if(!z(ae))return;let e=z(b).replace(`default-`,``),{folder:n}=t.assetLibraryFolderMap[e];return n}),se=M(()=>{let{originalEntry:e}=r()??{},{entryRelative:t,internalPath:n,internalSubPath:i}=z(oe)??{};if(!t)return n?.replace(`{{slug}}`,e?.slug??`-`);let a=i||void 0;if(e){let t=jp(Object.values(e.locales)[0].path).dirname;return a?`${t}/${a}`:t}return a?`${n}/${a}/-`:`${n}/-`}),ce=M(()=>[...i(),...z(S)].filter(e=>!t.kind||t.kind===e.kind).sort((e,t)=>e.name.localeCompare(t.name)).sort((e,t)=>Number(!!t.unsaved)-Number(!!e.unsaved))),le=M(()=>{let{providers:e=[]}=u7({fieldConfig:t.fieldConfig});return Object.entries(l7).filter(([t,{hotlinking:n}])=>e.includes(t)&&(n||z(ie))).sort(te)}),ue=M(()=>z(le).some(([e,{authType:t}])=>e===z(b)&&(t===`none`||!!a()?.apiKeys?.[z(b)]))),de=M(()=>[...t.enabledCloudServiceEntries,...z(le)].sort(te)),E=M(()=>t.enabledCloudServiceEntries.map(([e])=>e).includes(z(b))),fe=M(()=>z(le).map(([e])=>e).includes(z(b))),pe=M(()=>o()?HR:UL),me=e=>z(se)!==void 0&&(e===z(se)||`${e}/-`===z(se)||e.startsWith(`${z(se)}/`)),he=e=>{if(z(oe)===void 0||e.folder?.internalPath!==z(oe).internalPath||e.folder?.entryRelative!==z(oe).entryRelative)return!1;if(!z(oe).entryRelative)return me(e.path);let{dirname:t}=jp(e.path);return t===void 0?!1:me(t)},ge=async({hash:e,folder:t})=>(await Promise.all(z(S).map(async n=>!!n.file&&(0,ihe.default)(n.folder,t)&&await vp(n.file)===e))).includes(!0),_e=async e=>{let t=await vp(e),n=z(oe);if(await ge({hash:t,folder:n}))return;let r=await K5({file:e,folder:n,targetFolderPath:z(se)});return z(x).push(r),{asset:r}},ve=async e=>{P(w,(await Promise.all(e.map(_e))).filter(e=>!!e),!0)},ye=()=>{P(v,``),P(y,``),P(x,[],!0),P(S,[],!0),P(w,[],!0)},be=()=>{if(!z(w).length)return;let e=At(z(w)).map(e=>{let{unsaved:t,file:n,folder:r}=e.asset??{};return t?{file:n,folder:r}:e});g()?.(e)};ni(()=>{let e=z(ie)?Object.entries(t.assetLibraryFolderMap).find(([,{enabled:e}])=>e)?.[0]:void 0;e?P(b,`default-${e}`):P(b,z(de)[0]?.[0],!0)}),ei(()=>{r()?.files,At(z(x)),(async()=>{P(S,[...r()?.files?await q5({draft:r(),targetFolderPath:z(se)}):[],...Object.values(z(x))],!0)})()}),ei(()=>{s()||f(!1)}),ei(()=>{z(T)&&_().length&&(z(T).uploadFiles(_()),_([]))});var xe=phe(),Se=I(xe);{let e=e=>{var t=H(),n=I(t),r=e=>{d(e)};G(n,e=>{o()||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}=l7[z(b)]??{};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(ue)&&e(r)}),U(e,t)},i=M(()=>X(`insert`)),a=M(()=>!z(w).length);dL(Se,{get title(){return z(ne)},size:`x-large`,get okLabel(){return z(i)},get okDisabled(){return z(a)},keepContent:!0,focusInput:!1,onOk:be,onClose:()=>{ye()},get open(){return f()},set open(e){f(e)},headerExtra:e,footerExtra:r,children:(e,r)=>{var i=fhe(),a=F(i),s=F(a);{let e=M(()=>X(`assets_dialog.locations`));Oo(s,()=>z(pe),(r,i)=>{i(r,{class:`tabs`,get"aria-label"(){return z(e)},get"aria-controls"(){return`${n}-content-pane`},filterThreshold:-1,onChange:e=>{P(b,e.detail.name,!0),P(w,[],!0)},children:(e,n)=>{var r=lhe(),i=I(r),a=e=>{{let n=M(()=>X(`asset_location.repository`));qL(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(()=>ee(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(b)===z(t));XL(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(ie)&&e(a)});var o=L(i,2),s=e=>{{let n=M(()=>X(`asset_location.external`));qL(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(()=>ee(z(t),2));let r=()=>z(n)[1].serviceId,i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());XL(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(b)===`enter-url`);XL(e,{name:`enter-url`,get label(){return z(t)},get selected(){return z(n)}})}};G(a,e=>{h()&&e(o)}),U(e,r)},$$slots:{default:!0}})}},c=M(()=>h()||!!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`));qL(e,{get label(){return z(t)},children:(e,t)=>{var n=H();mo(I(n),17,()=>z(le),([e,{serviceLabel:t}])=>e,(e,t)=>{var n=M(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1].serviceLabel;{let t=M(()=>z(b)===r());XL(e,{get name(){return r()},get label(){return i()},get selected(){return z(t)}})}}),U(e,n)},$$slots:{default:!0}})}};G(l,e=>{z(le).length&&e(u)}),U(e,r)},$$slots:{default:!0}})})}var c=L(s,2),l=e=>{var t=uhe();d(F(t)),D(t),U(e,t)};G(c,e=>{o()&&e(l)}),D(a);var u=L(a,2),g=F(u),_=e=>{{let t=M(()=>z(ce).filter(he));Ame(e,{get accept(){return m()},get multiple(){return p()},get assets(){return z(t)},get searchTerms(){return z(re)},get basePath(){return z(oe).internalPath},onDrop:({files:e})=>{ve(e)},get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}})}};G(g,e=>{z(ae)&&z(oe)&&e(_)});var y=L(g,2),x=e=>{W$(e,{children:(e,n)=>{var r=dhe(),i=I(r),a=F(i,!0);D(i),xL(L(i,2),{dir:`ltr`,flex:!0,oninput:()=>{let e=z(v).trim();P(w,e?[{url:e}]:[],!0)},get value(){return z(v)},set value(e){P(v,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(y,e=>{h()&&z(b)===`enter-url`&&e(x)}),mo(L(y,2),17,()=>z(de),([e,t])=>e,(e,n)=>{var r=M(()=>ee(z(n),2));let i=()=>z(r)[0],a=()=>z(r)[1];var o=H(),s=I(o),c=e=>{{let n=M(()=>z(b)!==`cloudinary`);zpe(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get hidden(){return z(n)},onSelect:e=>{f()&&(P(w,e,!0),be(),f(!1))}})}},l=e=>{Us(cme(e,{get kind(){return t.kind},get fieldConfig(){return t.fieldConfig},get multiple(){return p()},get searchTerms(){return z(re)},get serviceProps(){return a()},gridId:`select-assets-grid`,get selectedResources(){return z(w)},set selectedResources(e){P(w,e,!0)}}),e=>P(T,e,!0),()=>z(T))};G(s,e=>{i()===`cloudinary`?e(c):z(b)===i()&&e(l,1)}),U(e,o)}),D(u),D(i),R(()=>q(u,`id`,`${n}-content-pane`)),U(e,i)},$$slots:{headerExtra:!0,footerExtra:!0,default:!0}})}Us(kL(L(Se,2),{get accept(){return m()},get multiple(){return p()},onSelect:({files:e})=>{z(E)?z(T)?.uploadFiles(e):ve(e)}}),e=>P(C,e,!0),()=>z(C)),U(e,xe),k(),u()}var ihe,ahe,ohe,she,che,lhe,uhe,dhe,fhe,phe,mhe,hhe=o((()=>{Q(),Y(),Z(),X$(),yp(),zp(),ihe=l(aN()),Upe(),xme(),jme(),A6(),MF(),JF(),Y5(),fF(),nhe(),Q6(),ej(),uN(),tT(),ahe=V(`<!> <!>`,1),ohe=V(`<!> <!>`,1),she=V(`<a> </a>`),che=V(`<!> <!>`,1),lhe=V(`<!> <!> <!>`,1),uhe=V(`<div role="none" class="filter-tools svelte-5b1zbe"><!></div>`),dhe=V(`<div role="none"> </div> <!>`,1),fhe=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>`),phe=V(`<!> <!>`,1),mhe={hash:`svelte-5b1zbe`,code:`.wrapper.svelte-5b1zbe {display:flex;gap:16px;height:60dvh;max-height:800px;--tile-padding: 4px;}
935
935
  @media (width < 768px) {.wrapper.svelte-5b1zbe {flex-direction:column;overflow:hidden;height:72dvh;}
936
936
  }.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {display:flex;gap:4px;}
937
937
  @media (width < 768px) {.wrapper.svelte-5b1zbe .nav:where(.svelte-5b1zbe) {flex-direction:column;}
@@ -945,7 +945,7 @@ td.svelte-u0prcz {border-width:0;}th.svelte-u0prcz {padding-block:4px;color:var(
945
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(`^${bp(t.keyPath)}\\.\\d+$`)&&delete n()?.[a][r][e]}),e.forEach((e,i)=>{gn(J4,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())};ac(()=>{P(u,!0)}),ei(()=>{z(u)&&(o(),B(()=>{p()}))});{let n=M(()=>db(t.locale));y$(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 t_e=o((()=>{Q(),Y(),X$(),Ep(),sc(),$4(),_b()}));function n_e(e,t){let n=Fa();O(t,!0);let r=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);q$(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}));Hge(e,Zs(()=>z(n)))}},s=M(()=>C5(t.fieldConfig).hasSubFields),c=e=>{{let n=M(()=>({...r,fieldConfig:t.fieldConfig}));e_e(e,Zs(()=>z(n)))}};G(a,e=>{z(s)?e(o):e(c,-1)}),U(e,i)},$$slots:{default:!0}}),k()}var r_e=o((()=>{Q(),Y(),X$(),$ge(),t_e(),w5()}));function i_e(e,t){let n=Fa();K(e,s_e);let r=`${n}-header`;var i=o_e(),a=F(i),o=e=>{var n=a_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 a_e,o_e,s_e,c_e=o((()=>{Q(),Y(),a_e=V(`<div role="none" class="header svelte-ygwzbn"> </div>`),o_e=V(`<div role="group" class="subsection svelte-ygwzbn"><!> <div role="none" class="items svelte-ygwzbn"><!></div></div>`),s_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,d_e);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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(()=>_A(t.fieldConfig)),f=M(()=>z(s)===`list`||z(d)),p=M(()=>n()?.collection),m=M(()=>n()?.collectionFile),h=M(()=>At(n()?.currentValues[t.locale]??{})),g=M(()=>(z(m)??z(p))?._i18n??Ab),_=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(`^${bp(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=u_e(),r=F(n),i=e=>{var t=l_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)}),xa(`keydown`,n,e=>{e.key===`Enter`&&(e.stopPropagation(),C())}),xa(`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 l_e,u_e,d_e,M7=o((()=>{Q(),Y(),Ep(),sbe(),$4(),DA(),Lb(),l_e=V(`<h4 class="svelte-s650n2"> </h4>`),u_e=V(`<section role="group" tabindex="0" class="svelte-s650n2"><!> <!></section>`),d_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
946
 
947
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
- }`},Sa([`keydown`,`click`])}));function f_e(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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`)),d=M(()=>C5(t.fieldConfig)),f=M(()=>z(d).hasSingleSubField),p=M(()=>z(d).hasVariableTypes),m=M(()=>RegExp(`^${bp(t.keyPath)}\\.\\d+`)),h=M(()=>dc(Object.fromEntries(Object.entries(At(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)=>u(e)?e.__sc_item_id??t:t,(e,r,i)=>{J8(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)]:[]));i_e(e,{get label(){return z(m)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{J8(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 p_e=o((()=>{Q(),Y(),f(),Ep(),fc(),Z8(),c_e(),M7(),$4(),w5()}));function m_e(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=g_e();mo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=h_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},[()=>ub(t.locale),()=>db(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 h_e,g_e,__e=o((()=>{Q(),Y(),_b(),h_e=V(`<li> </li>`),g_e=V(`<ul></ul>`)}));function v_e(e,t){O(t,!0);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);var r=H(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));f_e(e,Zs(()=>z(r)))}},o=M(()=>C5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));m_e(e,Zs(()=>z(r)))}};G(i,e=>{z(o)?e(a):e(s,-1)}),U(e,r),k()}var y_e=o((()=>{Q(),Y(),p_e(),__e(),w5()})),b_e,x_e,S_e,C_e=o((()=>{f(),D0(),b_e=(e,t=`Point`)=>{try{let n=JSON.parse(e);return u(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},x_e=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>E0(e,t)):E0(e,t)):E0(e,t)),S_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 w_e(e,t){O(t,!0),K(e,O_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()),d=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 Gw(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await Gw(`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()||!b_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:x_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=S_e(e);t&&y?.fitBounds(t)}},C=()=>{if(!z(f))return;let e=n()??``,t;try{if(t=JSON.parse(e),!u(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 rS(t),!0)}catch{P(h,[],!0)}P(g,!1)},te=({latitude:e,longitude:t})=>{if(!z(f)||(e=E0(e,z(a)),t=E0(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(``)};ei(()=>{z(f),n(),B(()=>{C()})}),ei(()=>{z(p),B(()=>{w()})}),ei(()=>{z(m),B(()=>{ee()})});var ae=D_e(),oe=I(ae),se=F(oe);{let e=M(()=>X(`find_place`));MR(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=>{YF(e,{name:`near_me`})},t=M(()=>X(`use_your_location`)),n=M(()=>X(`use_your_location`));pI(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());pI(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=T_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`searching`)]),U(e,t)},E=e=>{var t=H(),n=I(t),r=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`search_results`));UL(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)=>{XL(e,{get label(){return z(t).display_name},onSelect:()=>{ne(z(t))}})}),U(e,n)},$$slots:{default:!0}})}},i=e=>{var t=E_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(E,1)});var fe=L(ue,2),pe=F(fe);{let e=M(()=>i()?`invalid`:void 0);b2(pe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(d)},set mapElement(e){P(d,e,!0)}})}D(fe);var me=L(fe,2);{let e=M(()=>X(`geolocation_error_title`));yL(me,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{gt();var n=Pa();R(()=>W(n,z(v))),U(e,n)},$$slots:{default:!0}})}U(e,ae),k()}var T_e,E_e,D_e,O_e,k_e=o((()=>{Q(),Y(),Z(),X$(),f(),sc(),S2(),Kw(),C_e(),iS(),D0(),T_e=V(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),E_e=V(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),D_e=V(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),O_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 A_e(e,t){K(e,M_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,M_e,N_e=o((()=>{Q(),Y(),j_e=V(`<pre class="svelte-1ox6w30"> </pre>`),M_e={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}}));function P_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)};ei(()=>{n(),B(()=>{p()})}),ei(()=>{z(o),B(()=>{m()})}),Wle(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 F_e=o((()=>{Q(),Y(),X$(),sc()}));function I_e(e,t){O(t,!0);let n=M(()=>ub(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=H(),a=I(i),o=e=>{var i=L_e(),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},[()=>db(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 L_e,R_e=o((()=>{Q(),Y(),_b(),L_e=V(`<p> </p>`)})),N7,P7,F7=o((()=>{f(),sp(),$4(),M8(),C7(),DA(),N7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=A(J4),{defaultLocale:c}=(a??i)._i18n,l=d(o[c]),u={...d(e),...l},f={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},p=[];return Object.keys(u).forEach(n=>{let r=bA({...f,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=>{J4.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]:j8({draft:{collectionName:o,fileName:s},locale:e,target:N7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})),z_e,B_e,V_e=o((()=>{Ep(),DA(),Gx(),z_e=new Map,B_e=({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 wA({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:i})}):TA({valueMap:r,locale:a,keyPath:n,keyPathRegex:Wx(z_e,n,()=>RegExp(`^${bp(n)}\\.`)),getFieldArgs:s})}}));function H_e(e,t){let n=Fa();O(t,!0),K(e,K_e);let r=()=>j(J4,`$entryDraft`,a),i=()=>j(YA,`$isSmallScreen`,a),[a,o]=mn(),{fieldContext:s,valueStoreKey:c=`currentValues`}=Lt(`field-editor`)??{},l=s===`single-subfield-list-field`,u=J(t,`required`,3,!0),f=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??Ab),ee=M(()=>z(w).defaultLocale),te=M(()=>At(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)),E=M(()=>t.locale!==z(ee)&&z(p)===`duplicate`),fe=()=>{if(l)return;let e=z(ae);O7({[e]:D7({key:e,locale:t.locale,collapsed:z(m)})})},pe=async({type:e}={})=>{pn(Y4,!1),e&&(Object.keys(r()?.[c]??{}).forEach(n=>{(n===t.locale||z(p)===`duplicate`)&&gn(J4,B(r)[c][n][z(ce)]=e,B(r))}),await zi());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`)&&(gn(J4,B(r)[c][e]=Object.assign(n,d({...i,...n})),B(r)),delete r()[c][e][t.keyPath])}),pn(Y4,!0)},me=()=>{pn(Y4,!1),Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(gn(J4,B(r)[c][e][n]=null,B(r)),delete r()?.[c][e][n])}),gn(J4,B(r)[c][e][t.keyPath]=null,B(r)))}),pn(Y4,!0)},he=()=>B_e({...z(ne),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(de)});ac(()=>{fe()});var ge=G_e(),_e=I(ge),ve=e=>{{let n=M(()=>X(`add_x`,{values:{name:t.fieldLabel||z(f)}}));sL(e,{get label(){return z(n)},get checked(){return z(re)},get disabled(){return z(E)},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(E)},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=W_e(),a=F(r),o=e=>{{let t=e=>{var t=H(),n=I(t),r=e=>{{let t=e=>{YF(e,{name:`close`})},n=M(()=>X(`remove`));pI(e,{size:`small`,iconic:!0,get disabled(){return z(E)},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}`);J8(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=U_e(),a=F(r);{let e=M(()=>i()?2:1);rI(a,{get lines(){return z(e)},children:(e,n)=>{gt();var r=Pa();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 U_e,W_e,G_e,K_e,q_e=o((()=>{Q(),Y(),Z(),X$(),f(),sc(),Z8(),a9(),uge(),g7(),$4(),C7(),F7(),A7(),V_e(),Lb(),ej(),U_e=V(`<div role="none" class="summary svelte-pauyt3"><!></div>`),W_e=V(`<div role="group" class="wrapper svelte-pauyt3"><!> <div role="none" class="item-list"><!></div></div>`),G_e=V(`<!> <!> <!>`,1),K_e={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 J_e(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>T(t.fieldConfig.typeKey,`type`)),c=M(()=>At(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=>{i_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}`);J8(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 Y_e=o((()=>{Q(),Y(),Z8(),c_e(),M7(),$4()}));function X_e(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),{valueStoreKey:a=`currentValues`}=Lt(`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(At(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=>{_oe(e,Zs({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=>{zae(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);sL(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 Z_e=o((()=>{Q(),Y(),X$(),sc(),$4(),zge()}));function Q_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=J(t,`options`,7),s=M(()=>T(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);ei(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),ei(()=>{!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=>{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 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());XL(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=>{toe(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());roe(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 $_e=o((()=>{Q(),Y(),Z(),X$()}));function eve(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)?X_e:Q_e),d=M(()=>{let e=z(s).map(e=>u(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>Tp(e.label,t.label)),e});var f=H();ao(I(f),()=>JSON.stringify(z(d)),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(d)},get currentValue(){return n()},set currentValue(e){n(e)}})}),U(e,o)}),U(e,f),k()}var tve=o((()=>{Q(),Y(),f(),Ep(),Z_e(),$_e()}));function nve(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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)?[eb(z(l),z(u))].filter(e=>!!e):dk(z(l))),f=M(()=>n()?.currentValues[t.locale]),p=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),m=M(()=>({...t.fieldConfig,widget:`select`,options:Bk({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(d),currentLocaleValues:z(f),currentSlug:z(p)})}));var h=rve();eve(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 rve,ive=o((()=>{Q(),Y(),tve(),hk(),nb(),$4(),Hk(),rve=V(`<div role="none" class="wrapper"><!></div>`)}));function ave(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(()=>hb(t.locale)),s=M(()=>z(r)?[eb(z(n),z(r))].filter(e=>!!e):dk(z(n))),c=M(()=>Bk({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=ove(),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},[()=>ub(t.locale),()=>db(t.locale),()=>z(o).format(z(l))]),U(e,n)};G(d,e=>{z(l).length&&e(f)}),U(e,u),k()}var ove,sve=o((()=>{Q(),Y(),hk(),nb(),Hk(),_b(),ove=V(`<p> </p>`)})),I7,cve,lve,uve,dve,L7,R7=o((()=>{I7=/^.+?:\w+:/,cve=[`rich_text`,`raw`],lve={rich_text:`rich-text`,raw:`plain-text`},uve=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],dve={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`]})),fve,pve,z7,mve,hve=o((()=>{CC(),fve=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=hC(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=xC(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}}},pve=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),z7=e=>pve.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),mve=(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,gve=o((()=>{Z(),DA(),CC(),hve(),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]:mve(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?hC(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`||_A(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}})),_ve,vve=o((()=>{_ve=({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}`]}}})),yve,bve=o((()=>{$4(),DA(),p7(),R7(),yve=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=bA({...t,keyPath:c.replace(I7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=f7({entryDraft:J4,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}}})),xve,Sve,Cve=o((()=>{Ep(),Gx(),xve=new Map,Sve=({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=Wx(xve,e,()=>RegExp(`^${bp(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}}})),wve,Tve=o((()=>{DA(),wve=({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`)&&xA({fieldConfig:e,locale:t})&&n===null}}}})),H7,Eve=o((()=>{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,Dve,Ove,kve,Ave,jve,W7,Mve,G7,Nve=o((()=>{sp(),$4(),gve(),DA(),MC(),vve(),hve(),bve(),w5(),Cve(),Tve(),R7(),Eve(),sk(),U7=/\.\d+$/,Dve={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},Ove={datetime:fve,number:wve,string:H7,text:H7},kve={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},Ave=({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=ok(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=bA({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=_A(h),{min:b=0,max:x=1/0}=Hne.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),T=xA({fieldConfig:h,locale:n}),ee={...Dve};if(g===`list`||y){let{skip:e}=Sve({keyPath:f,value:p,valueEntries:w,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e)return}if(g===`object`&&T&&!p&&(ee.valueMissing=!0),g===`keyvalue`){let e=yve({keyPath:f,getFieldArgs:m,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=_ve({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}AC.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||Ave({value:p,required:T,validation:v,validity:ee});let te=Ove[g];return te&&Object.assign(ee,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(ee,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},Mve=({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`&&!C5(e).hasSubFields||_A(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},G7=e=>{let t=A(J4),{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=bA({...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}=Mve({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 Pve(e,t){let n=Fa();O(t,!0),K(e,zve);let r=()=>j(J4,`$entryDraft`,i),[i,a]=mn(),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 dc(Object.fromEntries(Object.entries(At(r()[S][z(d)]??{})).filter(([e])=>e.startsWith(z(v))).map(([e,t])=>[e.replace(z(v),``),t])))}),T=()=>{P(g,z(w)?{...z(w)}:void 0,!0),P(h,!0)},ee=()=>{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(uc(z(g))).map(([e,t])=>[`${z(v)}${e}`,t]))))},te=()=>{P(h,!1),l()(new CustomEvent(`remove`))},ne=()=>{let{validities:e}=G7(`extraValues`);J4.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(h,!1),l()(new CustomEvent(`update`,{detail:z(w)})),P(g,void 0))},re=()=>{z(_)?(P(h,!1),l()(new CustomEvent(`remove`))):(ee(),P(h,!1),P(g,void 0))},ie=(e,n)=>{if(!e||!n)return null;let r=uc(n);return 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=OC({fieldConfig:t.fields.find(e=>e.name===o),value:s,transformations:a,locale:z(d)})),String(s))}).trim()||null},ae=M(()=>{if(t.summary&&z(w)){let e=ie(t.summary,z(w));if(e)return e}if(z(b)&&z(w)){let e=z(w)[z(b).name];if(typeof e==`string`&&e.trim())return e.trim()}return t.label});ac(()=>(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(_)&&T()}),()=>{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]}))})),ei(()=>{c(),z(d),z(f),B(()=>{if(r()&&z(d)&&z(f)){let{defaultLocale:e}=r();c(c()??dc(S7({fields:t.fields,locale:z(d),defaultLocale:e}))??{}),c().__sc_component_name=t.componentName,(0,K7.default)(c(),z(w))||Object.assign(r()[S][z(d)],Object.fromEntries(Object.entries(uc(c())).map(([e,t])=>[`${z(v)}${e}`,t])))}})}),ei(()=>{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=Lve(),r=I(n),i=F(r,!0);D(r),Us(r,e=>P(u,e),()=>z(u)),dL(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=Fve(),n=I(t);{let e=M(()=>X(`remove`));pI(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{te()}})}var r=L(n,2);tL(r,{flex:!0});var i=L(r,2);{let e=M(()=>X(z(_)?`insert`:`update`));pI(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{ne()}})}var a=L(i,2);{let e=M(()=>X(`cancel`));pI(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{re()}})}U(e,t)},children:(e,n)=>{var r=Ive(),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))}),xa(`click`,r,()=>{T()}),xa(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),T()),e.key===`Backspace`&&(e.preventDefault(),l()(new CustomEvent(`remove`)))}),U(e,n)},ue=e=>{var r=Rve(),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=>{YF(e,{name:`close`})},n=M(()=>X(`remove`));pI(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)=>{J8(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`)}),ba(`keydown`,r,e=>{e.stopPropagation()},!0),xa(`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,Fve,Ive,Lve,Rve,zve,Bve=o((()=>{Q(),Y(),Z(),X$(),K7=l(aN()),fc(),sc(),Z8(),a9(),g7(),kC(),$4(),C7(),Nve(),Fve=V(`<!> <!> <!> <!>`,1),Ive=V(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),Lve=V(`<span role="button" class="placeholder svelte-1l1n28m" contenteditable="false" tabindex="0"> </span> <!>`,1),Rve=V(`<div role="group" class="wrapper svelte-1l1n28m" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),zve={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);}
948
+ }`},Sa([`keydown`,`click`])}));function f_e(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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`)),d=M(()=>C5(t.fieldConfig)),f=M(()=>z(d).hasSingleSubField),p=M(()=>z(d).hasVariableTypes),m=M(()=>RegExp(`^${bp(t.keyPath)}\\.\\d+`)),h=M(()=>dc(Object.fromEntries(Object.entries(At(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)=>u(e)?e.__sc_item_id??t:t,(e,r,i)=>{J8(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)]:[]));i_e(e,{get label(){return z(m)},children:(e,n)=>{var r=H();mo(I(r),17,()=>z(h),e=>e.name,(e,n)=>{J8(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 p_e=o((()=>{Q(),Y(),f(),Ep(),fc(),Z8(),c_e(),M7(),$4(),w5()}));function m_e(e,t){O(t,!0);var n=H(),r=I(n),i=e=>{var n=g_e();mo(n,23,()=>t.currentValue,(e,t)=>`${e}-${t}`,(e,t)=>{var n=h_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},[()=>ub(t.locale),()=>db(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 h_e,g_e,__e=o((()=>{Q(),Y(),_b(),h_e=V(`<li> </li>`),g_e=V(`<ul></ul>`)}));function v_e(e,t){O(t,!0);let n=Xs(t,[`$$slots`,`$$events`,`$$legacy`,`fieldConfig`]);var r=H(),i=I(r),a=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));f_e(e,Zs(()=>z(r)))}},o=M(()=>C5(t.fieldConfig).hasSubFields),s=e=>{{let r=M(()=>({...n,fieldConfig:t.fieldConfig}));m_e(e,Zs(()=>z(r)))}};G(i,e=>{z(o)?e(a):e(s,-1)}),U(e,r),k()}var y_e=o((()=>{Q(),Y(),p_e(),__e(),w5()})),b_e,x_e,S_e,C_e=o((()=>{f(),D0(),b_e=(e,t=`Point`)=>{try{let n=JSON.parse(e);return u(n)&&n.type===t&&Array.isArray(n.coordinates)}catch{return!1}},x_e=(e,t)=>e.map(e=>Array.isArray(e)?e.map(e=>Array.isArray(e)?e.map(e=>E0(e,t)):E0(e,t)):E0(e,t)),S_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 w_e(e,t){O(t,!0),K(e,O_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()),d=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 Gw(`terra-draw`,`dist/terra-draw.module.js`),{TerraDrawLeafletAdapter:d}=await Gw(`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()||!b_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:x_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=S_e(e);t&&y?.fitBounds(t)}},C=()=>{if(!z(f))return;let e=n()??``,t;try{if(t=JSON.parse(e),!u(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 rS(t),!0)}catch{P(h,[],!0)}P(g,!1)},te=({latitude:e,longitude:t})=>{if(!z(f)||(e=E0(e,z(a)),t=E0(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(``)};ei(()=>{z(f),n(),B(()=>{C()})}),ei(()=>{z(p),B(()=>{w()})}),ei(()=>{z(m),B(()=>{ee()})});var ae=D_e(),oe=I(ae),se=F(oe);{let e=M(()=>X(`find_place`));MR(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=>{YF(e,{name:`near_me`})},t=M(()=>X(`use_your_location`)),n=M(()=>X(`use_your_location`));pI(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());pI(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=T_e(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>X(`searching`)]),U(e,t)},E=e=>{var t=H(),n=I(t),r=e=>{var t=H(),n=I(t),r=e=>{{let t=M(()=>X(`search_results`));UL(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)=>{XL(e,{get label(){return z(t).display_name},onSelect:()=>{ne(z(t))}})}),U(e,n)},$$slots:{default:!0}})}},i=e=>{var t=E_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(E,1)});var fe=L(ue,2),pe=F(fe);{let e=M(()=>i()?`invalid`:void 0);b2(pe,{get inert(){return r()},get class(){return z(e)},onReady:b,get mapElement(){return z(d)},set mapElement(e){P(d,e,!0)}})}D(fe);var me=L(fe,2);{let e=M(()=>X(`geolocation_error_title`));yL(me,{get title(){return z(e)},get open(){return z(_)},set open(e){P(_,e,!0)},children:(e,t)=>{gt();var n=Pa();R(()=>W(n,z(v))),U(e,n)},$$slots:{default:!0}})}U(e,ae),k()}var T_e,E_e,D_e,O_e,k_e=o((()=>{Q(),Y(),Z(),X$(),f(),sc(),S2(),Kw(),C_e(),iS(),D0(),T_e=V(`<div role="alert" class="search-result searching svelte-ktr5k7"> </div>`),E_e=V(`<div role="alert" class="search-result no-result svelte-ktr5k7"> </div>`),D_e=V(`<div role="none" class="toolbar svelte-ktr5k7"><!> <!> <!></div> <!> <div class="map-wrapper svelte-ktr5k7"><!></div> <!>`,1),O_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 A_e(e,t){K(e,M_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,M_e,N_e=o((()=>{Q(),Y(),j_e=V(`<pre class="svelte-1ox6w30"> </pre>`),M_e={hash:`svelte-1ox6w30`,code:`pre.svelte-1ox6w30 {white-space:pre-wrap;}`}}));function P_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)};ei(()=>{n(),B(()=>{p()})}),ei(()=>{z(o),B(()=>{m()})}),Wle(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 F_e=o((()=>{Q(),Y(),X$(),sc()}));function I_e(e,t){O(t,!0);let n=M(()=>ub(t.locale)),r=M(()=>Intl.NumberFormat(z(n)));var i=H(),a=I(i),o=e=>{var i=L_e(),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},[()=>db(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 L_e,R_e=o((()=>{Q(),Y(),_b(),L_e=V(`<p> </p>`)})),N7,P7,F7=o((()=>{f(),sp(),$4(),M8(),C7(),DA(),N7=(e,t)=>{let{collectionName:n,fileName:r,collection:i,collectionFile:a,currentValues:o,isIndexFile:s}=A(J4),{defaultLocale:c}=(a??i)._i18n,l=d(o[c]),u={...d(e),...l},f={collectionName:n,fileName:r,valueMap:u,isIndexFile:s},p=[];return Object.keys(u).forEach(n=>{let r=bA({...f,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=>{J4.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]:j8({draft:{collectionName:o,fileName:s},locale:e,target:N7(u,e)})}}}return{...t,currentLocales:{...i,[e]:c},validities:{...o,[e]:{}},validationMessages:{...s,[e]:{}}}})}})),z_e,B_e,V_e=o((()=>{Ep(),DA(),Gx(),z_e=new Map,B_e=({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 wA({...s,keyPath:`${n}.${r.replace(/^fields\./,``)}`,locale:a,transformations:i})}):TA({valueMap:r,locale:a,keyPath:n,keyPathRegex:Wx(z_e,n,()=>RegExp(`^${bp(n)}\\.`)),getFieldArgs:s})}}));function H_e(e,t){let n=Fa();O(t,!0),K(e,K_e);let r=()=>j(J4,`$entryDraft`,a),i=()=>j(YA,`$isSmallScreen`,a),[a,o]=mn(),{fieldContext:s,valueStoreKey:c=`currentValues`}=Lt(`field-editor`)??{},l=s===`single-subfield-list-field`,u=J(t,`required`,3,!0),f=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??Ab),ee=M(()=>z(w).defaultLocale),te=M(()=>At(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)),E=M(()=>t.locale!==z(ee)&&z(p)===`duplicate`),fe=()=>{if(l)return;let e=z(ae);O7({[e]:D7({key:e,locale:t.locale,collapsed:z(m)})})},pe=async({type:e}={})=>{pn(Y4,!1),e&&(Object.keys(r()?.[c]??{}).forEach(n=>{(n===t.locale||z(p)===`duplicate`)&&gn(J4,B(r)[c][n][z(ce)]=e,B(r))}),await zi());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`)&&(gn(J4,B(r)[c][e]=Object.assign(n,d({...i,...n})),B(r)),delete r()[c][e][t.keyPath])}),pn(Y4,!0)},me=()=>{pn(Y4,!1),Object.entries(r()?.[c]??{}).forEach(([e,n])=>{(e===t.locale||z(p)===`duplicate`)&&(Object.keys(n).forEach(n=>{n.startsWith(`${t.keyPath}.`)&&(gn(J4,B(r)[c][e][n]=null,B(r)),delete r()?.[c][e][n])}),gn(J4,B(r)[c][e][t.keyPath]=null,B(r)))}),pn(Y4,!0)},he=()=>B_e({...z(ne),keyPath:t.keyPath,locale:t.locale,summaryTemplate:z(de)});ac(()=>{fe()});var ge=G_e(),_e=I(ge),ve=e=>{{let n=M(()=>X(`add_x`,{values:{name:t.fieldLabel||z(f)}}));sL(e,{get label(){return z(n)},get checked(){return z(re)},get disabled(){return z(E)},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(E)},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=W_e(),a=F(r),o=e=>{{let t=e=>{var t=H(),n=I(t),r=e=>{{let t=e=>{YF(e,{name:`close`})},n=M(()=>X(`remove`));pI(e,{size:`small`,iconic:!0,get disabled(){return z(E)},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}`);J8(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=U_e(),a=F(r);{let e=M(()=>i()?2:1);rI(a,{get lines(){return z(e)},children:(e,n)=>{gt();var r=Pa();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 U_e,W_e,G_e,K_e,q_e=o((()=>{Q(),Y(),Z(),X$(),f(),sc(),Z8(),a9(),uge(),g7(),$4(),C7(),F7(),A7(),V_e(),Lb(),ej(),U_e=V(`<div role="none" class="summary svelte-pauyt3"><!></div>`),W_e=V(`<div role="group" class="wrapper svelte-pauyt3"><!> <div role="none" class="item-list"><!></div></div>`),G_e=V(`<!> <!> <!>`,1),K_e={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 J_e(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),a=M(()=>t.fieldConfig.fields),o=M(()=>t.fieldConfig.types),s=M(()=>T(t.fieldConfig.typeKey,`type`)),c=M(()=>At(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=>{i_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}`);J8(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 Y_e=o((()=>{Q(),Y(),Z8(),c_e(),M7(),$4()}));function X_e(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),{valueStoreKey:a=`currentValues`}=Lt(`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(At(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=>{_oe(e,Zs({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=>{zae(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);sL(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 Z_e=o((()=>{Q(),Y(),X$(),sc(),$4(),zge()}));function Q_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=J(t,`options`,7),s=M(()=>T(t.fieldConfig.dropdown_threshold,5)),c=N(void 0);ei(()=>{z(c)||P(c,o()[0]?.value===void 0?`string`:typeof o()[0]?.value,!0)}),ei(()=>{!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=>{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 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());XL(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=>{toe(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());roe(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 $_e=o((()=>{Q(),Y(),Z(),X$()}));function eve(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)?X_e:Q_e),d=M(()=>{let e=z(s).map(e=>u(e)?e:{label:e,value:e});return o()&&e.sort((e,t)=>Tp(e.label,t.label)),e});var f=H();ao(I(f),()=>JSON.stringify(z(d)),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(d)},get currentValue(){return n()},set currentValue(e){n(e)}})}),U(e,o)}),U(e,f),k()}var tve=o((()=>{Q(),Y(),f(),Ep(),Z_e(),$_e()}));function nve(e,t){O(t,!0);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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)?[eb(z(l),z(u))].filter(e=>!!e):dk(z(l))),f=M(()=>n()?.currentValues[t.locale]),p=M(()=>n()?.currentSlugs[t.locale]??n()?.currentSlugs._),m=M(()=>({...t.fieldConfig,widget:`select`,options:Bk({locale:t.locale,fieldConfig:t.fieldConfig,refEntries:z(d),currentLocaleValues:z(f),currentSlug:z(p)})}));var h=rve();eve(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 rve,ive=o((()=>{Q(),Y(),tve(),hk(),nb(),$4(),Hk(),rve=V(`<div role="none" class="wrapper"><!></div>`)}));function ave(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(()=>hb(t.locale)),s=M(()=>z(r)?[eb(z(n),z(r))].filter(e=>!!e):dk(z(n))),c=M(()=>Bk({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=ove(),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},[()=>ub(t.locale),()=>db(t.locale),()=>z(o).format(z(l))]),U(e,n)};G(d,e=>{z(l).length&&e(f)}),U(e,u),k()}var ove,sve=o((()=>{Q(),Y(),hk(),nb(),Hk(),_b(),ove=V(`<p> </p>`)})),I7,cve,lve,uve,dve,L7,R7=o((()=>{I7=/^.+?:\w+:/,cve=[`rich_text`,`raw`],lve={rich_text:`rich-text`,raw:`plain-text`},uve=[`bold`,`italic`,`strikethrough`,`code`,`link`,`heading-one`,`heading-two`,`heading-three`,`heading-four`,`heading-five`,`heading-six`,`bulleted-list`,`numbered-list`,`quote`],dve={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`]})),fve,pve,z7,mve,hve=o((()=>{CC(),fve=({fieldConfig:e,value:t})=>{let n=e,{type:r,min:i,max:a}=hC(n),o=typeof i==`string`&&!!i,s=typeof a==`string`&&!!a,c=!1,l=!1;if(t&&(o||s)){let e=xC(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}}},pve=new Intl.DateTimeFormat(`en-GB`,{hour12:!0,timeZone:`UTC`,hour:`2-digit`,minute:`2-digit`}),z7=e=>pve.format(new Date(`1970-01-01T${e}Z`)).toUpperCase(),mve=(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,gve=o((()=>{Z(),DA(),CC(),hve(),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]:mve(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?hC(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`||_A(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}})),_ve,vve=o((()=>{_ve=({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}`]}}})),yve,bve=o((()=>{$4(),DA(),p7(),R7(),yve=({keyPath:e,getFieldArgs:t,validity:n,validities:r,locale:i,required:a,min:o,max:s})=>{let c=e.match(/(.+?)(?:\.[^.]*)?$/)?.[1],l=bA({...t,keyPath:c.replace(I7,``)});if(c in r[i]||l?.widget!==`keyvalue`)return{skip:!0,keyPath:e};let u=f7({entryDraft:J4,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}}})),xve,Sve,Cve=o((()=>{Ep(),Gx(),xve=new Map,Sve=({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=Wx(xve,e,()=>RegExp(`^${bp(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}}})),wve,Tve=o((()=>{DA(),wve=({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`)&&xA({fieldConfig:e,locale:t})&&n===null}}}})),H7,Eve=o((()=>{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,Dve,Ove,kve,Ave,jve,W7,Mve,G7,Nve=o((()=>{sp(),$4(),gve(),DA(),MC(),vve(),hve(),bve(),w5(),Cve(),Tve(),R7(),Eve(),sk(),U7=/\.\d+$/,Dve={valueMissing:!1,tooShort:!1,tooLong:!1,rangeUnderflow:!1,rangeOverflow:!1,patternMismatch:!1,typeMismatch:!1},Ove={datetime:fve,number:wve,string:H7,text:H7},kve={get:(e,t)=>t===`valid`?!Object.values(e).some(Boolean):e[t]},Ave=({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=ok(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=bA({...m});if(!h)return;let{widget:g=`string`,i18n:_=!1,pattern:v}=h,y=_A(h),{min:b=0,max:x=1/0}=Hne.includes(g)?h:{},{i18nEnabled:S,defaultLocale:C}=(l??o)._i18n;if(!i&&n!==C&&(!S||_===!1||_===`none`||_===`duplicate`))return;let w=Object.entries(r),T=xA({fieldConfig:h,locale:n}),ee={...Dve};if(g===`list`||y){let{skip:e}=Sve({keyPath:f,value:p,valueEntries:w,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e)return}if(g===`object`&&T&&!p&&(ee.valueMissing=!0),g===`keyvalue`){let e=yve({keyPath:f,getFieldArgs:m,validity:ee,validities:a,locale:n,required:T,min:b,max:x});if(e.skip)return;f=e.keyPath}if(g===`code`){let e=_ve({keyPath:f,value:p,valueMap:r,fieldConfig:h,validities:a,locale:n});if(e.skip)return;f=e.keyPath,p=e.value}AC.includes(g)&&typeof p==`string`&&p.startsWith(`blob:`)&&(p=u[p]?.file?.name),[`object`,`list`,`hidden`,`compute`,`keyvalue`].includes(g)||y||Ave({value:p,required:T,validation:v,validity:ee});let te=Ove[g];return te&&Object.assign(ee,te({fieldConfig:h,locale:n,value:p}).validity),new Proxy(ee,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},Mve=({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`&&!C5(e).hasSubFields||_A(e)?{valid:a,validateItems:!1}:{valid:a,validateItems:!0}},G7=e=>{let t=A(J4),{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=bA({...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}=Mve({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 Pve(e,t){let n=Fa();O(t,!0),K(e,zve);let r=()=>j(J4,`$entryDraft`,i),[i,a]=mn(),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 dc(Object.fromEntries(Object.entries(At(r()[S][z(d)]??{})).filter(([e])=>e.startsWith(z(v))).map(([e,t])=>[e.replace(z(v),``),t])))}),T=()=>{P(g,z(w)?{...z(w)}:void 0,!0),P(h,!0)},ee=()=>{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(uc(z(g))).map(([e,t])=>[`${z(v)}${e}`,t]))))},te=()=>{P(h,!1),l()(new CustomEvent(`remove`))},ne=()=>{let{validities:e}=G7(`extraValues`);J4.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`))):(ee(),P(h,!1),P(g,void 0))},ie=(e,n)=>{if(!e||!n)return null;let r=uc(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=OC({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});ac(()=>(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(_)&&T()}),()=>{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]}))})),ei(()=>{c(),z(d),z(f),B(()=>{if(r()&&z(d)&&z(f)){let{defaultLocale:e}=r();if(c(c()??dc(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(uc(c())).map(([e,t])=>[`${z(v)}${e}`,t]));J4.update(t=>t&&(Object.assign(t[S][z(d)],e),t))}}})}),ei(()=>{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=Lve(),r=I(n),i=F(r,!0);D(r),Us(r,e=>P(u,e),()=>z(u)),dL(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=Fve(),n=I(t);{let e=M(()=>X(`remove`));pI(n,{variant:`secondary`,get label(){return z(e)},onclick:()=>{te()}})}var r=L(n,2);tL(r,{flex:!0});var i=L(r,2);{let e=M(()=>X(z(_)?`insert`:`update`));pI(i,{variant:`primary`,get label(){return z(e)},onclick:()=>{ne()}})}var a=L(i,2);{let e=M(()=>X(`cancel`));pI(a,{variant:`secondary`,get label(){return z(e)},onclick:()=>{re()}})}U(e,t)},children:(e,n)=>{var r=Ive(),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))}),xa(`click`,r,()=>{T()}),xa(`keydown`,r,e=>{e.key===`Enter`&&(e.preventDefault(),T()),e.key===`Backspace`&&(e.preventDefault(),l()(new CustomEvent(`remove`)))}),U(e,n)},ue=e=>{var r=Rve(),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=>{YF(e,{name:`close`})},n=M(()=>X(`remove`));pI(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)=>{J8(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`)}),ba(`keydown`,r,e=>{e.stopPropagation()},!0),xa(`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,Fve,Ive,Lve,Rve,zve,Bve=o((()=>{Q(),Y(),Z(),X$(),K7=l(aN()),fc(),sc(),Z8(),a9(),g7(),kC(),$4(),C7(),Nve(),Fve=V(`<!> <!> <!> <!>`,1),Ive=V(`<div role="none" class="fields svelte-1l1n28m"><!></div>`),Lve=V(`<span role="button" class="placeholder svelte-1l1n28m" contenteditable="false" tabindex="0"> </span> <!>`,1),Rve=V(`<div role="group" class="wrapper svelte-1l1n28m" contenteditable="false" tabindex="0"><!> <div role="none" class="item-list"><!></div></div>`),zve={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
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
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;}`},Sa([`click`,`keydown`])})),Vve,Hve=o((()=>{iq(),sc(),Bve(),Kk(),Vve=e=>{let{id:t,label:n,collapsed:r,mode:i,summary:a,fields:o,pattern:s,toBlock:c,toPreview:l}=e,u=Uk(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 MK{__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{...Wk(this.__props??{}),type:t,version:1}}createDOM(){let e,s=null,c,l=!1,u=()=>{l||(l=!0,Ba(c))};return c=Ra(Pve,{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 zi(),s??=WV(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)))}})}}}),wn(),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}})),Uve,Wve=o((()=>{Kk(),Uve=({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(Wk(e.__props??{})):null;return Uk(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
951
  `),[a]=i.match(o)??[];if(!a||!i.startsWith(a))return null;let c=a.match(o),l=r+a.split(`
@@ -1020,9 +1020,9 @@ Error generating stack: `+e.message+`
1020
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 Qbe(e,t){O(t,!0);let n=()=>j(t.thisPane,`$thisPane`,r),[r,i]=mn();{let r=e=>{YF(e,{name:`visibility`})},i=M(()=>X(`preview`)),a=M(()=>n()?.mode===`preview`);pI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(i)},get pressed(){return z(a)},onclick:()=>{pn(t.thisPane,{mode:n()?.mode===`preview`?`edit`:`preview`,locale:n()?.locale??``})},startIcon:r,$$slots:{startIcon:!0}})}k(),i()}var $be=o((()=>{Q(),Y(),Z(),X$()}));function exe(e,t){O(t,!0),K(e,uxe);let n=()=>j(J4,`$entryDraft`,c),r=()=>j(t.thisPane,`$thisPane`,c),i=()=>j(YA,`$isSmallScreen`,c),a=()=>j(XA,`$isMediumScreen`,c),o=()=>j(lN,`$prefs`,c),s=()=>j(LP,`$backend`,c),[c,l]=mn(),u=J(t,`thatPane`,19,()=>ln(null)),d=M(()=>n()?.collection),f=M(()=>n()?.collectionFile),p=M(()=>n()?.originalEntry),m=M(()=>n()?.originalValues??{}),h=M(()=>(z(f)??z(d))?._i18n??Ab),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,txe.default)(z(m)[r().locale],Z4(At(n()?.currentValues[r().locale])??{}))),T=M(()=>n()?.canPreview??!0),ee=M(()=>z(d)&&z(p)&&r()?.locale?nk(z(p),r().locale,z(d),z(f)):void 0);var te=lxe(),ne=F(te);{let e=M(()=>X(`secondary`));l$(ne,{variant:`secondary`,get"aria-label"(){return z(e)},children:(e,c)=>{var l=cxe(),d=I(l),f=e=>{var n=nxe(),r=I(n);Kbe(r,{get id(){return t.id},get thisPane(){return t.thisPane},get thatPane(){return u()}});var o=L(r,2),s=e=>{Qbe(e,{get thisPane(){return t.thisPane}})};G(o,e=>{(i()||a())&&z(T)&&e(s)}),U(e,n)},m=e=>{var t=rxe(),n=F(t,!0);D(t),R(e=>W(n,e),[()=>r()?.mode===`preview`?X(`preview`):X(`edit`)]),U(e,t)},h=e=>{Qbe(e,{get thisPane(){return t.thisPane}})};G(d,e=>{z(g)&&z(v).length>1?e(f):i()||a()?z(T)&&e(h,2):e(m,1)});var te=L(d,2);tL(te,{flex:!0});var ne=L(te,2),re=e=>{let t=M(()=>pb(r().locale)??r().locale);var i=sxe(),a=I(i),c=e=>{npe(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)}}));tR(e,{get"aria-label"(){return z(i)},children:(e,i)=>{var a=oxe(),c=I(a),l=e=>{z5(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));aR(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=ixe(),a=I(i);ZI(a,{});var o=L(a,2);{let e=M(()=>X(z(b)?`disable_x_locale`:At(n()?.currentValues[r().locale])?`reenable_x_locale`:`enable_x_locale`,{values:{locale:z(t)}})),i=M(()=>r().locale===z(y)||z(b)&&z(x));aR(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=axe(),n=I(t);ZI(n,{});var i=L(n,2),a=e=>{{let t=M(()=>X(`view_on_live_site`));aR(e,{get label(){return z(t)},onclick:()=>{b1(z(ee))}})}};G(i,e=>{z(ee)&&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`)}));aR(e,{get disabled(){return z(t)},get label(){return z(n)},onclick:()=>{z(p)&&r()&&b1(rk(z(p),r().locale))}})}};G(c,e=>{o().devModeEnabled&&e(l)}),U(e,t)};G(m,e=>{z(p)&&(z(ee)||o().devModeEnabled)&&e(h)}),U(e,a)},$$slots:{default:!0}})}},i=M(()=>X(`show_content_options_x_locale`,{values:{locale:z(t)}}));GI(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 txe,nxe,rxe,ixe,axe,oxe,sxe,cxe,lxe,uxe,dxe=o((()=>{Q(),Y(),Z(),X$(),txe=l(aN()),sp(),B5(),rpe(),Zbe(),$be(),zP(),$4(),F7(),n9(),ik(),_b(),Lb(),ej(),uN(),x1(),nxe=V(`<!> <!>`,1),rxe=V(`<h3 role="none"> </h3>`),ixe=V(`<!> <!>`,1),axe=V(`<!> <!> <!>`,1),oxe=V(`<!> <!> <!> <!>`,1),sxe=V(`<!> <!>`,1),cxe=V(`<!> <!> <!>`,1),lxe=V(`<div role="none" class="header svelte-uj56is"><!></div>`),uxe={hash:`svelte-uj56is`,code:`.header.svelte-uj56is {flex:none !important;}.header.svelte-uj56is > .sui.toolbar {margin-inline:auto;max-width:800px;}
1021
1021
  @media (width < 768px) {.header.svelte-uj56is > .sui.toolbar {padding:0;}
1022
1022
  }.header.svelte-uj56is > .sui.toolbar h3 {margin:0 8px;font-size:var(--sui-font-size-default);}`}}));function u9(e,t){let n=Fa();K(e,pxe);let r=J(t,`children`,3,void 0);var i=fxe(),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 fxe,pxe,d9=o((()=>{Q(),Y(),fxe=V(`<section role="group" class="panel svelte-1bq1or9"><header class="svelte-1bq1or9"><h3 class="svelte-1bq1or9"> </h3></header> <div class="svelte-1bq1or9"><!></div></section>`),pxe={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,mxe,hxe,gxe,_xe=o((()=>{Ep(),sp(),uF(),Jy(),$b(),hk(),PO(),Hk(),f9=(e,t,n)=>{if(n)return Object.entries(e).filter(([e])=>RegExp(`^${bp(t)}\\.\\d+$`).test(e)).map(([,e])=>e);let r=e[t];return r==null?[]:[r]},mxe=(e,t,n)=>{let{collection:r,file:i}=e;if(!Xb(r))return new Set;let a=Bk({locale:n,fieldConfig:e,refEntries:i?A(Uy).filter(e=>Object.values(e.locales).some(({path:e})=>e.includes(i))):dk(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},hxe=(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)),gxe=({collectionName:e,fileName:t,entry:n})=>{let r=Xb(e);if(!r)return[];let{_i18n:{defaultLocale:i}}=r,a=[...lF.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,mxe(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=Xb(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(`^${bp(f).replace(/\\\*/g,`\\d+`)}$`):void 0;return(a===e?dk(a).filter(e=>e.slug!==n.slug):dk(a)).map(e=>{let n=e.locales[c]?.content??Object.values(e.locales)[0]?.content;if(!(!n||!hxe(n,f,!!t.multiple,l,p)))return{collectionName:a,collectionLabel:s.label??a,fieldLabel:t.label??d,entry:e,summary:NO(s,e)}}).filter(e=>!!e)})}}));function vxe(e,t){O(t,!0),K(e,Sxe);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),a=M(()=>{let e=n();return e?.originalEntry?gxe({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=bxe(),a=F(i),o=F(a,!0);D(a),mo(L(a,2),17,r,e=>e.entry.id,(e,t)=>{pI(e,{class:`ref`,variant:`ghost`,onclick:()=>{k1(`/collections/${z(t).collectionName}/entries/${z(t).entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{var r=yxe(),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=xxe(),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 yxe,bxe,xxe,Sxe,Cxe=o((()=>{Q(),Y(),Z(),X$(),d9(),M1(),$4(),_xe(),yxe=V(`<span class="summary"> </span>`),bxe=V(`<section class="collection svelte-1lhuwki" role="group"><h4> </h4> <!></section>`),xxe=V(`<div class="empty"> </div>`),Sxe={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,wxe,Txe,Exe=o((()=>{sp(),zP(),p9=new Map,wxe=async e=>{let{id:t,locales:n}=e,r=p9.get(t);if(r)return r;let i=A(LP);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}},Txe=e=>{p9.delete(e)}}));function Dxe(e,t){O(t,!0),K(e,Fxe);let n=()=>j(J4,`$entryDraft`,i),r=()=>j(LP,`$backend`,i),[i,a]=mn(),o=N(Sr([])),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 wxe(e)),P(s,!1))};ac(()=>{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=Oxe(),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=Nxe();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));pI(e,{class:`ref`,variant:`ghost`,role:`link`,get disabled(){return z(r)},onclick:()=>{z(n)&&b1(z(n))},children:(e,n)=>{var r=Mxe(),i=I(r),a=e=>{var n=Axe();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)},[()=>lC(z(t).date,Ph.current)]),U(e,r)},$$slots:{default:!0}})}}),D(t),U(e,t)},d=e=>{var t=Pxe(),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 Oxe,kxe,Axe,jxe,Mxe,Nxe,Pxe,Fxe,Ixe=o((()=>{Q(),Y(),Z(),X$(),sc(),d9(),zP(),$4(),Exe(),uC(),x1(),Oxe=V(`<div class="empty"> </div>`),kxe=V(`<div class="empty"> </div>`),Axe=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>`),Mxe=V(`<!> <span class="details svelte-14rpg2i"><span class="author svelte-14rpg2i"> </span> <span class="date svelte-14rpg2i"> </span></span>`,1),Nxe=V(`<div role="list" class="commits svelte-14rpg2i"></div>`),Pxe=V(`<div class="empty"> </div>`),Fxe={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 Lxe(e,t){O(t,!0),K(e,Uxe);let n=()=>j(J4,`$entryDraft`,r),[r,i]=mn(),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(()=>ee(z(t),2));let r=()=>z(n)[0],i=()=>z(n)[1],a=M(()=>z(l)?.[r()]),o=M(()=>pb(r()));var s=Vxe(),c=F(s),u=e=>{var t=Rxe(),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(()=>bA({...z(p),valueMap:z(a),keyPath:t})),o=M(()=>i()[t]??[]);var s=H(),c=I(s),l=e=>{pI(e,{class:`ref`,variant:`ghost`,onclick:()=>{m({locale:r(),keyPath:t})},children:(e,t)=>{var r=zxe(),i=I(r),a=F(i,!0);D(i),mo(L(i,2),17,()=>z(o),uo,(e,t)=>{V5(e,{live:`off`,children:(e,n)=>{gt();var r=Pa();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=Bxe(),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=Hxe(),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 Rxe,zxe,Bxe,Vxe,Hxe,Uxe,Wxe=o((()=>{Q(),Y(),Z(),X$(),H5(),d9(),$4(),DA(),_b(),Rxe=V(`<h4 class="svelte-mwf2jd"> </h4>`),zxe=V(`<span class="summary svelte-mwf2jd"> </span> <!>`,1),Bxe=V(`<div class="empty svelte-mwf2jd"> </div>`),Vxe=V(`<section class="locale svelte-mwf2jd" role="group"><!> <!></section>`),Hxe=V(`<div class="empty"> </div>`),Uxe={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 Gxe(e,t){O(t,!0),K(e,Jxe);let n=()=>j(J4,`$entryDraft`,a),r=()=>j(LP,`$backend`,a),i=()=>j(s9,`$entryEditorSettings`,a),[a,o]=mn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...lF.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:`task_alt`,disabled:!1,panel:Lxe},{key:`history`,label:X(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:Dxe},{key:`backlinks`,label:X(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:vxe}]),l=N(Sr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ei(()=>{s9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=qxe(),f=F(d);{let e=M(()=>X(`entry_sidebar.sidebar_panels`));VI(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());WI(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)=>{YF(e,{get name(){return i()}})},$$slots:{default:!0}})}}),U(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=Kxe();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 Kxe,qxe,Jxe,Yxe=o((()=>{Q(),Y(),Z(),X$(),Cxe(),Ixe(),Wxe(),zP(),uF(),$4(),l9(),Kxe=V(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),qxe=V(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),Jxe={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 Xxe(e,t){let n=Fa();O(t,!0),K(e,tSe);let r=()=>j(J4,`$entryDraft`,i),[i,a]=mn(),o=J(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Sr([])),u=Sr({}),d=Sr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,dk(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])))};ei(()=>{o()&&f()});{let t=M(()=>X(`edit_slug`)),i=M(()=>X(`update`)),a=M(()=>(0,Zxe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));dL(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{gn(J4,B(r).currentSlugs=u,B(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=eSe(),i=I(r);co(i,()=>({"--font-size":`var(--sui-font-size-small)`})),ZF(i.lastChild,{status:`warning`,children:(e,t)=>{gt();var n=Pa();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=$xe(),i=F(r),a=e=>{var n=Qxe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>pb(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);xL(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=Pa();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=Pa();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 Zxe,Qxe,$xe,eSe,tSe,nSe=o((()=>{Q(),Y(),Z(),X$(),Zxe=l(aN()),hk(),$4(),_b(),Qxe=V(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),$xe=V(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),eSe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),tSe={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);}`}})),rSe,m9,iSe=o((()=>{_S(),mS(),sp(),MF(),zP(),X0(),Jy(),$b(),U0(),G4(),p3(),rSe=({ids:e,assetPaths:t})=>{let n=A(Uy),r=new Set(e);if(Uy.set(n.filter(e=>!r.has(e.id))),H0.set({...V0,deleted:!0,count:e.length}),t.length){let e=new Set(t);_F.update(t=>t.filter(t=>!e.has(t.path)))}},m9=async(e,t=[])=>{let n=A(LP)?.repository?.databaseName,r=n?new dS(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=gS(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await l3({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 W4(A(Rb),{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...c),await Y0({changes:i,savingEntries:l,options:{commitType:`delete`,collection:A(Rb)}}),rSe({ids:o,assetPaths:s})}})),h9,aSe=o((()=>{f(),h9=(e,t)=>{if(Array.isArray(e))return{options:e};if(u(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,oSe,sSe,cSe,lSe=o((()=>{sp(),n1(),$b(),M9(),aSe(),DA(),sk(),g9=e=>h9(e,`filters`),oSe=(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:ok(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=EA({...o,resolveRef:!1}),c=EA({...o});return s===void 0||c===void 0?!1:$$(s,n,i)||$$(c,n,i)}))},sSe=(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)}))},cSe=un([Rb],([e],t)=>{sSe(e,t)})})),uSe,dSe,fSe,pSe,mSe=o((()=>{Z(),sp(),n1(),$b(),M9(),aSe(),DA(),uSe=e=>h9(e,`groups`),dSe=(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=Q$(e,i,e=>EA({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},fSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=uSe(e.view_groups);t(n),S9.update(e=>({...e,group:e.group===void 0?r:e.group}))},pSe=un([Rb],([e],t)=>{fSe(e,t)})})),hSe,_9,gSe,_Se=o((()=>{hSe=l(aN(),1),sp(),n1(),$b(),M9(),_9=ln(),gSe=async({repository:e})=>{await t1(e,`contents-view`,_9),S9.subscribe(e=>{let{name:t}=A(Rb)??{},n=A(_9)?.[t??``]??{};t&&!(0,hSe.default)(e,n)&&_9.update(n=>({...n,[t]:e}))})}})),vSe,v9,y9,b9,x9,ySe,bSe,xSe,SSe,CSe,wSe,TSe=o((()=>{Z(),_S(),f(),vSe=l(aN(),1),sp(),F6(),Jy(),$b(),G4(),M9(),_Se(),DA(),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`),ySe=e=>{if(x9(e))return{keys:e};if(u(e)){let{fields:t,default:n}=e;return x9(t)?u(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},bSe=e=>e?{keys:[e,...v9.filter(t=>t!==e)],defaultKey:e}:{keys:[...v9]},xSe=({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?ySe(a):bSe(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=gS(s).filter(e=>!!e&&(b9.includes(e)||!!bA({collectionName:r,keyPath:e})));let f=N4(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}}},SSe=({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},CSe=({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 bA({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,wSe=un([Rb,Uy,N6],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=A(_9)?.[e.name]??{type:`list`},{keys:i,default:a}=xSe({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:CSe({collection:e,key:t})}))),(0,vSe.default)(r,A(S9))||S9.set(r)})})),ESe,DSe=o((()=>{ESe=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}})),OSe,kSe,ASe,jSe=o((()=>{n1(),lb(),G4(),TSe(),DA(),PO(),CC(),DSe(),OSe=[`title`,`summary`,`description`],kSe=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>NO(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=EA({entry:t,locale:r,collectionName:i,key:e});return n?Number(vC(n,a)??0):0}:t===String?t=>{let n=EA({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?ESe(a):a}:t=>{let n=EA({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},ASe=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=N4(t),c=n===`_manual`?s??n:n,l=bA({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:SSe({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`||OSe.includes(n)}),p=Object.fromEntries(i.map(e=>[e.slug,f(e)]));e1(i,e=>p[e.slug],!d&&u===String,r);let m=sb(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,MSe,O9,k9,A9,j9,M9=o((()=>{sp(),F6(),zP(),Jy(),$b(),hk(),nb(),lSe(),mSe(),_Se(),jSe(),uN(),S9=ln({type:`list`}),C9=ln(!1),w9=ln([]),T9=ln(!1),D9=un([Uy,Rb],([e,t],n)=>{n(e&&t?dk(t.name):[])}),MSe=5,O9=un([D9,Rb],([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<=MSe,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=un([D9,S9,N6],([e,t],n)=>{if(e===k9&&t===A9)return;k9=e,A9=t;let r=A(Rb),i=[...e];if(!i.length||$y(r,i[0]).length){n([]);return}t.sort&&(i=ASe(i,r,t.sort)),t.filters&&(i=oSe(i,r,t.filters)),n(dSe(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})}),LP.subscribe(e=>{e&&!A(_9)&&gSe(e)}),D9.subscribe(e=>{lk.set([]),A(lN).devModeEnabled&&console.info(`listedEntries`,e)}),Rb.subscribe(e=>{E9=void 0,C9.set(!1),e&&A(lN).devModeEnabled&&console.info(`selectedCollection`,e)})})),NSe,N9,P9,F9=o((()=>{sp(),uF(),lb(),$4(),K8(),M8(),C7(),NSe=`{{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(NSe),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=cb(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?sb(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??A(aF)?.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},T=Object.fromEntries(S.map(e=>f?[e,S7({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));J4.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:T,currentValues:Object.fromEntries(S.map(e=>[e,j8({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(T[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})}),H8({collectionName:s,fileName:c,slug:u})}})),PSe,FSe=o((()=>{sp(),G4(),$4(),F9(),JF(),DA(),wge(),ebe(),PSe=()=>{let e=A(J4),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=N4(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=bA({...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]={}}),J4.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:N9({collection:r,collectionFile:i,originalSlugs:{}})}),VF.set(!0)}})),ISe,LSe=o((()=>{sp(),$4(),ISe=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=A(J4),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}}})),RSe,zSe=o((()=>{$4(),Nve(),LSe(),RSe=()=>{let{valid:e,validities:t,validationMessages:n}=G7(`currentValues`),{valid:r,validities:i,validationMessages:a}=G7(`extraValues`),{valid:o,validities:s}=ISe();return J4.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}})),BSe,VSe,HSe,USe=o((()=>{sp(),zP(),$2(),X0(),U0(),hk(),G4(),$4(),K8(),zF(),p3(),h4(),zSe(),A7(),Exe(),BSe=({skipCI:e})=>{let t=A(Z2)&&!(e??A(Q2));H0.set({...V0,saved:!0,published:t,count:1}),RP.set(t)},VSe=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=N4(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=dk(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})},HSe=async({skipCI:e=void 0}={})=>{let t=A(J4),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!RSe())throw Vge({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&VSe(t);let c=m4({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await f3({draft:t,slugs:c}),p;try{p=await Y0({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 RF({type:`postSave`,draft:t,savingEntry:u}),BSe({skipCI:e}),R8(i,n?``:l),s&&Txe(s.id),p.savedEntries[0]}}));function WSe(e,t){O(t,!0),K(e,ZSe);let n=()=>j(J4,`$entryDraft`,f),r=()=>j(Q4,`$entryDraftModified`,f),i=()=>j(lN,`$prefs`,f),a=()=>j(YA,`$isSmallScreen`,f),o=()=>j(O9,`$collectionState`,f),s=()=>j(XA,`$isMediumScreen`,f),c=()=>j(s9,`$entryEditorSettings`,f),l=()=>j(Z2,`$skipCIConfigured`,f),u=()=>j(Q2,`$skipCIEnabled`,f),d=()=>j(UF,`$copyFromLocaleToast`,f),[f,p]=mn(),m=e=>{let t=M(()=>a()?aR:pI),n=M(()=>!z(T)&&z(te)?.duplicate!==!1&&!o().creationDisabled&&!z(te)?.path),r=M(()=>z(te)?.delete!==!1);var i=GSe(),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:()=>{k1(`/collections/${z(oe)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),PSe()}})})}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),T=M(()=>n()?.isIndexFile??!1),ee=M(()=>n()?.collection),te=M(()=>z(ee)?._type===`entry`?z(ee):void 0),ne=M(()=>n()?.collectionFile),re=M(()=>n()?.originalEntry),ie=M(()=>(z(ne)??z(ee))?._i18n??Ab),ae=M(()=>z(ie).defaultLocale),oe=M(()=>z(ee)?.name),se=M(()=>z(ne)?.name),ce=M(()=>Ph.current&&z(ee)?Zb(z(ee)):``),le=M(()=>Ph.current&&z(ee)?Zb(z(ee),{useSingular:!0}):``),ue=M(()=>n()?.canPreview??!0),de=M(()=>z(w)||r()),E=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),fe=M(()=>z(oe)&&z(re)&&Wp({collectionName:z(oe),fileName:z(se)})?.entryRelative?PF({entry:z(re),collectionName:z(oe),fileName:z(se),relative:!0}):[]),pe=M(()=>z(ee)&&z(re)?nk(z(re),z(ae),z(ee),z(ne)):void 0),me=()=>{A1(z(oe)===`_singletons`?`/collections`:`/collections/${z(oe)}`)},he=async({skipCI:e=void 0}={})=>{if(P(x,!0),z(ee))try{let t=await HSe({skipCI:e});i()?.closeOnSave??!0?(me(),pn(J4,null)):(z(w)&&k1(`/collections/${z(oe)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),P9({collection:z(ee),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=XSe(),_e=I(ge);{let e=M(()=>X(`primary`));l$(_e,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=qSe(),o=I(r);{let e=M(()=>X(`cancel_editing`));c2(o,{get"aria-label"(){return z(e)},get useShortcut(){return i().closeWithEscape},onclick:()=>{me()}})}var d=L(o,2),f=F(d),p=e=>{rI(e,{children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`create_entry_title`,{values:{name:z(le)}})]),U(e,t)},o=e=>{let t=M(()=>z(ne)?Qy(z(ne)):z(ee)&&z(re)&&Ph.current?NO(z(ee),z(re)):``);var n=H(),r=I(n),i=e=>{var n=Pa();R(()=>W(n,z(t))),U(e,n)},o=e=>{var n=Pa();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`));pI(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{b1(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`));tR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=KSe(),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(T)||z(te)?.delete===!1);aR(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));aR(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9()}})}var d=L(u,2),f=e=>{var t=I9(),r=I(t);ZI(r,{});var i=L(r,2);{let e=M(()=>X(`show_preview`)),t=M(()=>c()?.showPreview),n=M(()=>!z(ue));dR(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);dR(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(GI(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=>{tR(e,{children:(e,t)=>{{let t=M(()=>X(u()?`save_and_publish`:`save_without_publishing`));aR(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));JI(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));pI(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);dz(ve,{get show(){return z(g)},set show(e){P(g,e,!0)},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`entry_validation_errors`,{values:{count:z(E)}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ye=L(ve,2);dz(ye,{get id(){return d().id},get show(){return d().show},set show(e){gn(UF,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}});ZF(e,{get status(){return z(n).status},children:(e,t)=>{gt();var r=Pa();R(e=>W(r,e),[()=>X(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?pb(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=L(ye,2);Xxe(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`));bL(xe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(re)&&await m9([z(re)],z(fe)),me()},onClose:()=>{z(S)?.focus()},get open(){return z(v)},set open(e){P(v,e,!0)},children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(z(fe).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`));yL(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)=>{gt();var n=YSe(),r=I(n),i=L(r),a=e=>{var t=JSe(),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 GSe,I9,KSe,qSe,JSe,YSe,XSe,ZSe,QSe=o((()=>{Q(),Y(),Z(),X$(),l2(),nSe(),M1(),Yp(),$2(),$b(),iSe(),nb(),M9(),$4(),F9(),FSe(),USe(),n9(),JF(),l9(),ik(),FF(),PO(),_b(),Lb(),ej(),uN(),x1(),GSe=V(`<!> <!>`,1),I9=V(`<!> <!> <!>`,1),KSe=V(`<!> <!> <!> <!>`,1),qSe=V(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),JSe=V(`<div role="none" class="error svelte-zjrq31"> </div>`),YSe=V(` <!>`,1),XSe=V(`<!> <!> <!> <!> <!> <!>`,1),ZSe={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 $Se(e,t){O(t,!0),K(e,uCe);let n=()=>j(J4,`$entryDraft`,f),r=()=>j(s9,`$entryEditorSettings`,f),i=()=>j(O9,`$collectionState`,f),a=()=>j(WF,`$editorFirstPane`,f),o=()=>j(GF,`$editorSecondPane`,f),s=()=>j(YA,`$isSmallScreen`,f),c=()=>j(XA,`$isMediumScreen`,f),l=()=>j(X4,`$entryDraftInteracted`,f),u=()=>j(BF,`$showContentOverlay`,f),d=()=>j(VF,`$showDuplicateToast`,f),[f,p]=mn(),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=tCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:pb(z(t).locale)??z(t).locale}}));q$(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=eCe(),r=I(n);exe(r,{id:`first-pane-header`,get thisPane(){return WF},get thatPane(){return GF}}),Bbe(L(r,2),{id:`first-pane-body`,get thisPane(){return WF},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=rCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:pb(z(t).locale)??z(t).locale}}));q$(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=nCe(),r=I(n);exe(r,{id:`second-pane-header`,get thisPane(){return GF},get thatPane(){return WF}}),Bbe(L(r,2),{id:`second-pane-body`,get thisPane(){return GF},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()??{}),te=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??Ab),E=M(()=>z(de).i18nEnabled),fe=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(()=>ee(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(fe).includes(e.locale)||t.locale&&!z(fe).includes(t.locale)||(!z(ue)||!z(ne))&&(e.mode===`preview`||t.mode===`preview`)||z(fe).length===2&&e.locale!==z(pe)?!1:(_=!0,await zi(),pn(WF,e),pn(GF,s()||c()?null:t),await zi(),_=!1,!0)},we=async()=>{if(!(!n()||v)){if(v=!0,await Ce()){v=!1;return}if(pn(WF,{mode:`edit`,locale:a()?.locale??z(pe)}),s()||c())pn(GF,null);else if(!z(ue)||!z(ne)){let e=z(E)?z(fe).filter(e=>e!==a()?.locale):[];pn(GF,e.length?{mode:`edit`,locale:e[0]}:null)}else pn(GF,{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()&&pn(X4,!0)},De=async()=>{await zi(),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`?pn(GF,{mode:`edit`,locale:e}):t?.mode===`preview`?pn(WF,{mode:`edit`,locale:e}):pn(n?GF:WF,{mode:`edit`,locale:e}),await eS(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)};ac(()=>(u()||pn(J4,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),ei(()=>{z(me)&&(pn(WF,null),pn(GF,null))}),ei(()=>{z(re),z(ue),z(ne),s(),c(),B(()=>{we()})}),ei(()=>{a(),o(),Te()}),ei(()=>{z(b)&&(u()?z(y)&&(P(y,!1),we(),De(),W8()):U8())});var je=lCe(),Me=I(je);ao(F(Me),()=>n()?.id,e=>{var t=cCe(),r=I(t);{let e=M(()=>z(te)&&z(_e));WSe(r,{get disabled(){return z(e)}})}var i=L(r,2),c=e=>{},l=e=>{W$(e,{children:(e,t)=>{var n=iCe(),r=I(n),i=F(r),a=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`entry_not_found`)]),U(e,t)},o=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},s=e=>{var t=Pa();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);pI(F(c),{variant:`primary`,onclick:()=>{k1(`/collection/${z(re)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{gt();var n=Pa();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=sCe();ao(F(t),()=>`${z(ie)}|${z(oe)}|${z(se)}`,e=>{var t=oCe(),n=I(t),r=F(n),i=e=>{var t=H(),n=I(t),r=e=>{soe(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=ee(e,2);gn(WF,B(a).width=t[0],B(a)),gn(GF,B(o).width=t[1],B(o))})(e)},children:(e,t)=>{var n=aCe(),r=I(n);ER(r,{get defaultSize(){return z(be)},get minSize(){return z(Se)},children:(e,t)=>{m(e)},$$slots:{default:!0}});var i=L(r,2);aoe(i,{children:(e,t)=>{{let t=M(()=>X(`swap_panes`));pI(e,{class:`swap-button`,iconic:!0,size:`small`,variant:`tertiary`,get"aria-label"(){return z(t)},onclick:()=>{(e=>{var t=ee(e,2);pn(WF,t[0]),pn(GF,t[1])})([o(),a()])},children:(e,t)=>{YF(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),ER(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=>{tL(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=>{Gxe(e,{})};G(d,e=>{s()||e(f)}),U(e,t)}),D(t),xa(`pointerdown`,t,Ee),xa(`keydown`,t,Ee),U(e,t)};G(i,e=>{n()===null?e(c):z(C)||z(te)&&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);cde(Ne,{}),dz(L(Ne,2),{get show(){return _n(),d()},set show(e){pn(VF,e)},children:(e,t)=>{ZF(e,{status:`success`,children:(e,t)=>{gt();var n=Pa();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 eCe,tCe,nCe,rCe,iCe,aCe,oCe,sCe,cCe,lCe,uCe,dCe=o((()=>{Q(),Y(),Z(),X$(),tS(),sc(),lde(),Gbe(),dxe(),Yxe(),QSe(),M1(),M9(),$4(),K8(),JF(),A7(),l9(),_b(),Lb(),ej(),eCe=V(`<!> <!>`,1),tCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),nCe=V(`<!> <!>`,1),rCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),iCe=V(`<div role="none"><!></div> <div role="none"><!></div>`,1),aCe=V(`<!> <!> <!>`,1),oCe=V(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),sCe=V(`<div role="none" class="body svelte-jrunrx"><!></div>`),cCe=V(`<!> <!>`,1),lCe=V(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),uCe={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;}`},Sa([`pointerdown`,`keydown`])}));function fCe(e,t){O(t,!0),K(e,gCe);let n=()=>j(YA,`$isSmallScreen`,a),r=()=>j(XA,`$isMediumScreen`,a),i=()=>j(uk,`$selectedEntryIdSet`,a),[a,o]=mn(),s=J(t,`showCheckbox`,3,!1),c=J(t,`onSelect`,3,void 0);var l=hCe(),u=I(l),d=e=>{FL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.entry.id));sL(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=>{FL(e,{class:`image`,children:(e,n)=>{var r=H();$a(I(r),()=>NF(t.collection,t.entry),null,(e,n)=>{var r=H(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);E3(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)}),FL(L(f,2),{class:`title`,children:(e,n)=>{var r=mCe();rI(F(r),{lines:2,children:(e,n)=>{var r=pCe(),i=I(r);ao(i,()=>Ph.current,e=>{var n=H();So(I(n),()=>NO(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>sb(t.collection)?.icon);YF(e,{get name(){return z(n)},class:`home`})}},s=M(()=>cb(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 pCe,mCe,hCe,gCe,_Ce=o((()=>{Q(),Y(),Z(),X$(),D3(),hk(),lb(),FF(),PO(),ej(),pCe=V(`<!> <!>`,1),mCe=V(`<div role="none" class="label svelte-b1f01"><!></div>`),hCe=V(`<!> <!> <!>`,1),gCe={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}`}}));function vCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=mn(),a=e=>{lk.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));RL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{k1(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{fCe(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 yCe=o((()=>{Q(),Y(),X$(),_Ce(),M1(),hk(),M9()}));function bCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=mn(),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(` `));RL(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=SCe(),i=I(r);fCe(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),FL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=xCe(),r=I(n);{let e=e=>{YF(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>X(`move_up`));pI(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=>{YF(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>X(`move_down`));pI(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 xCe,SCe,CCe=o((()=>{Q(),Y(),Z(),X$(),_Ce(),M9(),xCe=V(`<!> <!>`,1),SCe=V(`<!> <!>`,1)}));function wCe(e,t){O(t,!0),K(e,ECe);let n=()=>j(j9,`$entryGroups`,r),[r,i]=mn(),a=N(Sr({})),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()};ac(()=>{let e=sb(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,P4(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=TCe();mo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=H();$a(I(l),eS,null,e=>{{let n=M(()=>r()===`*`?void 0:r());jL(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);bCe(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 TCe,ECe,DCe=o((()=>{Q(),Y(),X$(),tS(),sc(),CCe(),lb(),G4(),M9(),TCe=V(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),ECe={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 OCe(e,t){O(t,!0);let n=()=>j(Uy,`$allEntries`,a),r=()=>j(Rb,`$selectedCollection`,a),i=()=>j(O9,`$collectionState`,a),[a,o]=mn(),s=J(t,`label`,3,void 0),c=J(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?mk(r()):!1),u=M(()=>Ph.current&&r()?sb(r())?.label:``),d=M(()=>z(l)?JI:pI),f=(e=!1)=>{k1(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=H(),m=I(p);{let e=e=>{YF(e,{name:`edit`})},t=e=>{var t=H(),n=I(t),r=e=>{tR(e,{children:(e,t)=>{var n=kCe(),r=I(n);{let e=M(()=>X(`entry`));aR(r,{get label(){return z(e)},onclick:()=>f()})}aR(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,ACe=o((()=>{Q(),Y(),Z(),X$(),M1(),Jy(),$b(),hk(),lb(),M9(),kCe=V(`<!> <!>`,1)}));function jCe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,s),r=()=>j(C9,`$reordering`,s),i=()=>j(S9,`$currentView`,s),a=()=>j(j9,`$entryGroups`,s),o=()=>j(D9,`$listedEntries`,s),[s,c]=mn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>X(`entry_list`));W3(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`));J3(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=>{wCe(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();$a(I(a),eS,null,e=>{{let n=M(()=>r()===`*`?void 0:r());jL(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=H();$a(I(n),eS,null,e=>{vCe(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));OR(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=>{W$(e,{children:(e,t)=>{var n=MCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{W$(e,{children:(e,t)=>{var n=NCe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`create_new_entry`));OCe(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=>{W$(e,{children:(e,t)=>{var n=PCe(),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 MCe,NCe,PCe,FCe=o((()=>{Q(),Y(),Z(),X$(),tS(),q3(),Z3(),yCe(),DCe(),ACe(),$b(),M9(),MCe=V(`<span role="none"> </span>`),NCe=V(`<span role="none"> </span> <!>`,1),PCe=V(`<span role="none"> </span>`)}));function ICe(e,t){O(t,!0),K(e,zCe);let n=()=>j(Rb,`$selectedCollection`,r),[r,i]=mn(),a=M(()=>n()?.files.filter(Yy)??[]);{let t=M(()=>X(`file_list`));W3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=H(),i=I(r),o=e=>{{let t=M(()=>X(`files`));J3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{OR(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=H();$a(I(o),eS,null,e=>{RL(e,{onclick:()=>{k1(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{FL(e,{class:`title`,children:(e,t)=>{var n=LCe(),o=F(n),s=e=>{YF(e,{get name(){return a()}})};G(o,e=>{a()&&e(s)}),rI(L(o,2),{lines:2,children:(e,t)=>{gt();var n=Pa();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=>{W$(e,{children:(e,t)=>{var n=RCe(),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 LCe,RCe,zCe,BCe=o((()=>{Q(),Y(),Z(),X$(),tS(),q3(),Z3(),M1(),$b(),nb(),LCe=V(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),RCe=V(`<span role="none"> </span>`),zCe={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 VCe(e,t){O(t,!0),K(e,UCe);let[n,r]=mn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=HCe(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);YF(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));XL(u,{get label(){return z(t)},onSelect:()=>{pn(w1,X(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{k1(`/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 HCe,UCe,WCe=o((()=>{Q(),Y(),Z(),X$(),M1(),HCe=V(`<div class="wrapper svelte-w0jevb"><!></div>`),UCe={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}}));function GCe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,s),r=()=>j(LP,`$backend`,s),i=()=>j(RP,`$isLastCommitPublished`,s),a=()=>j(Z2,`$skipCIConfigured`,s),o=()=>j(YA,`$isSmallScreen`,s),[s,c]=mn(),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)&&!nS(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`);pn(RP,!0)}catch(e){P(p,`error`),P(m,!0),console.error(e)}};var g=H(),_=I(g),v=e=>{var t=KCe(),n=I(t);{let e=M(()=>o()?`small`:`medium`),t=M(()=>X(`publish_changes`)),r=M(()=>!z(f));pI(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>h()})}dz(L(n,2),{get show(){return z(m)},set show(e){P(m,e,!0)},children:(e,t)=>{ZF(e,{get status(){return z(p)},children:(e,t)=>{gt();var n=Pa();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 KCe,qCe=o((()=>{Q(),Y(),Z(),X$(),zP(),$2(),ej(),uN(),iS(),KCe=V(`<!> <!>`,1)}));function JCe(e,t){O(t,!0);let n=()=>j(aF,`$cmsConfig`,o),r=()=>j(YA,`$isSmallScreen`,o),i=()=>j(Rb,`$selectedCollection`,o),a=()=>j(Uy,`$allEntries`,o),[o,s]=mn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Ph.current)),u=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),d=M(()=>n()?.singletons??[]);var f=$Ce(),p=F(f),m=e=>{var t=YCe(),n=I(t),r=F(n),i=F(r,!0);D(r),GCe(L(r,2),{}),D(n),n6(L(n,2),{onclick:e=>{e.preventDefault(),k1(`/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`));UL(h,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=QCe(),o=I(n),s=e=>{{let t=M(()=>X(`collections`));qL(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();$a(I(n),eS,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`);YF(e,{get name(){return z(t)}})}},s=e=>{var r=H();ao(I(r),a,e=>{let r=M(()=>(`files`in z(t)?z(t).files:dk(z(n).name)).length);var i=XCe(),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);XL(e,{get label(){return z(u)},get selected(){return z(d)},onSelect:()=>{k1(`/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`));qL(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();$a(I(n),eS,null,e=>{var n=H(),r=I(n),i=e=>{VCe(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`));qL(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{YF(e,{name:`bookmark_manager`})},r=e=>{var n=ZCe(),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`);XL(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{k1(`/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 YCe,XCe,ZCe,QCe,$Ce,ewe=o((()=>{Q(),Y(),Z(),X$(),tS(),WCe(),qCe(),o6(),M1(),uF(),Jy(),$b(),hk(),ej(),YCe=V(`<header><h2> </h2> <!></header> <!>`,1),XCe=V(`<span class="count"> </span>`),ZCe=V(`<span class="count"> </span>`),QCe=V(`<!> <!>`,1),$Ce=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function twe(e,t){O(t,!0);let n=()=>j(T9,`$reorderDirty`,a),r=()=>j(Rb,`$selectedCollection`,a),i=()=>j(w9,`$reorderedEntries`,a),[a,o]=mn(),s=N(!1),c=N(!1);var l=nwe(),u=I(l);{let e=M(()=>X(`done`)),t=M(()=>X(`done_reordering_entries`)),a=M(()=>z(s)||!n());pI(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 H4(e,i()),pn(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`));pI(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{pn(C9,!1)}})}dz(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`saving_reorder_failed`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,l),k(),o()}var nwe,rwe=o((()=>{Q(),Y(),Z(),X$(),$b(),G4(),M9(),nwe=V(`<!> <!> <!>`,1)}));function iwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,a),r=()=>j(lk,`$selectedEntries`,a),i=()=>j(D9,`$listedEntries`,a),[a,o]=mn(),s=J(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&Wp({collectionName:e})?.entryRelative?r().flatMap(t=>PF({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>X(`delete_entries`,{values:{count:r().length}})),n=M(()=>X(`delete`));bL(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);gt();var a=Pa();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 awe=o((()=>{Q(),Y(),Z(),X$(),Yp(),$b(),iSe(),hk(),M9(),FF()}));function owe(e,t){O(t,!0),K(e,pwe);let n=()=>j(Rb,`$selectedCollection`,c),r=()=>j(O9,`$collectionState`,c),i=()=>j(YA,`$isSmallScreen`,c),a=()=>j(C9,`$reordering`,c),o=()=>j(lk,`$selectedEntries`,c),s=()=>j(D9,`$listedEntries`,c),[c,l]=mn(),u=N(!1),d=e=>zE(XE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),f=M(()=>n()?.name??``),p=M(()=>n()?.description),m=M(()=>Ph.current&&n()?Zb(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=fwe(),w=I(C),T=e=>{var t=dwe(),n=I(t);{let e=M(()=>X(`collection`));l$(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=lwe(),r=I(n),c=e=>{{let t=M(()=>X(`back_to_collection_list`));c2(e,{get"aria-label"(){return z(t)},onclick:()=>{A1(`/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=>{tL(e,{flex:!0})},x=e=>{var t=swe();rI(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=>{twe(e,{})},T=e=>{var t=cwe(),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(_));pI(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);pI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(C9,!0)}})}};G(a,e=>{z(v)&&e(c)}),AI(L(a,2),{children:(e,t)=>{var n=H(),r=I(n),a=e=>{{let t=M(()=>i()?void 0:X(`create`));OCe(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(T,1)}),R(()=>W(g,z(m))),U(e,n)},$$slots:{default:!0}})}var r=L(n,2),c=e=>{var t=uwe(),n=I(t);co(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),xI(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},a=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(y)}})]),U(e,t)},o=e=>{var t=Pa();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(T)}),iwe(L(w,2),{get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,C),k(),l()}var swe,cwe,lwe,uwe,dwe,fwe,pwe,mwe=o((()=>{Q(),Y(),Z(),X$(),BE(),yO(),l2(),rwe(),awe(),ACe(),M1(),$b(),hk(),M9(),ej(),swe=V(`<div role="none" class="description svelte-83jnuc"><!></div>`),cwe=V(`<!> <!> <!>`,1),lwe=V(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),uwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),dwe=V(`<!> <!>`,1),fwe=V(`<!> <!>`,1),pwe={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 hwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,o),r=()=>j(_F,`$allAssets`,o),i=()=>j(ZA,`$isLargeScreen`,o),a=()=>j(S9,`$currentView`,o),[o,s]=mn(),c=M(()=>Wp({collectionName:n()?.name})),l=M(()=>z(c)?r().filter(e=>AF(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`));q$(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{P3(e,{get disabled(){return z(m)},multiple:!0,onDrop:({files:e})=>{pn(wF,{folder:z(c),files:e})},children:(e,t)=>{Sme(e,{get assets(){return z(l)},onSelect:({asset:e})=>{k1(`/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 gwe=o((()=>{Q(),Y(),Z(),X$(),kme(),V3(),M1(),MF(),Yp(),$b(),M9(),ej()}));function _we(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=mn(),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`));tR(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=vwe(),a=I(i);{let e=M(()=>s()||X(`sort_keys.none`)),r=M(()=>!n().group);pR(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));pR(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`));GI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var vwe,ywe=o((()=>{Q(),Y(),Z(),X$(),vwe=V(`<!> <!>`,1)}));function bwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,f),r=()=>j(D9,`$listedEntries`,f),i=()=>j(C9,`$reordering`,f),a=()=>j(YA,`$isSmallScreen`,f),o=()=>j(XA,`$isMediumScreen`,f),s=()=>j(j9,`$entryGroups`,f),c=()=>j(wSe,`$sortKeys`,f),l=()=>j(cSe,`$viewFilters`,f),u=()=>j(pSe,`$viewGroups`,f),d=()=>j(S9,`$currentView`,f),[f,p]=mn(),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`));l$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Swe(),r=I(n),i=e=>{{let t=M(()=>s().flatMap(({entries:e})=>e));v6(e,{get allItems(){return z(t)},get selectedItems(){return lk}})}};G(r,e=>{a()||o()||e(i)});var f=L(r,2);tL(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(v)||!c().length);C6(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));h6(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));_we(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(_));E6(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),T=e=>{var t=xwe(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{YF(e,{name:`photo_library`})},t=M(()=>!z(_)||!Wp({collectionName:z(h)})),n=M(()=>!!d().showMedia),i=M(()=>X(d().showMedia?`hide_assets`:`show_assets`));pI(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(T)}),U(e,n)},$$slots:{default:!0}})}};G(b,e=>{z(m)&&!i()&&e(x)}),U(e,y),k(),p()}var xwe,Swe,Cwe=o((()=>{Q(),Y(),Z(),X$(),_6(),ywe(),S6(),T6(),A6(),Yp(),$b(),hk(),M9(),lSe(),mSe(),TSe(),ej(),xwe=V(`<!> <!>`,1),Swe=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function wwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,s),r=()=>j(BF,`$showContentOverlay`,s),i=()=>j(YA,`$isSmallScreen`,s),a=()=>j(D9,`$listedEntries`,s),o=()=>j(H0,`$contentUpdatesToast`,s),[s,c]=mn(),l=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,u=N(!1),d=N(!1),f=N(void 0),p=M(()=>`files`in(n()??{})?ICe:jCe),m=()=>{let{path:e,params:t}=T1(),r=e.match(l);if(P(u,!1),P(d,!1),P(f,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&Wb().length&&pn(Rb,void 0),!r?.groups){pn(BF,!1),P(d,v8(e),!0);return}let{_collectionName:o,routeType:s,subPath:c}=r.groups;if(!o){i()?(pn(Rb,void 0),pn(BF,!1),pn(w1,X(`viewing_collection_list`)),P(u,!0)):k1(`/collections/${(n()||Gb()||Yb())?.name}`,{replaceState:!0});return}let p=Xb(o);if(!p||p.hide?pn(Rb,void 0):n()?.name!==p.name&&pn(Rb,p),!p||!n()){pn(BF,!1),pn(w1,X(`collection_not_found`));return}let{name:m}=n(),h=Zb(n()),g=`_fileMap`in n()?n()._fileMap:void 0;if(!s){pn(BF,!1),pn(w1,X(`viewing_x_collection`,{values:{collection:h,count:a().length}}));return}if(pn(BF,!0),g){if(s===`entries`&&c){let e=eb(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,{}]))}}),pn(w1,X(`edit_${p._type}_announcement`,{values:{collection:h,file:Qy(t)}}))}}else if(s===`new`&&!c&&(P9({collection:p,dynamicValues:t,isIndexFile:!!window.history.state?.index}),pn(w1,X(`create_entry_announcement`,{values:{collection:h}}))),s===`entries`&&c){let e=a().find(e=>e.subPath===c);e&&Ph.current&&(P9({collection:p,originalEntry:e}),pn(w1,X(`edit_entry_announcement`,{values:{collection:h,entry:NO(n(),e)}})))}};ac(()=>(m(),()=>{pn(BF,!1)}));var h=Twe();ba(`hashchange`,Fr,e=>{O1(e,m,l)});var g=I(h);{let e=e=>{var t=H(),n=I(t),r=e=>{JCe(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=>{p8(e,{})},s=e=>{{let t=e=>{owe(e,{})},r=e=>{var t=H(),r=I(t),i=e=>{bwe(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=>{hwe(e,{})},s=M(()=>X(`x_collection`,{values:{collection:Ph.current&&n()?Zb(n()):``}})),c=M(()=>n()?.description);z6(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`));U6(g,{get"aria-label"(){return z(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var _=L(g,2),v=e=>{$Se(e,{get editorLocale(){return z(f)}})};G(_,e=>{r()&&e(v)});var y=L(_,2);dz(y,{get show(){return o().saved},set show(e){gn(H0,B(o).saved=e,B(o))},children:(e,t)=>{ZF(e,{status:`success`,children:(e,t)=>{gt();var n=Pa();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}}),dz(L(y,2),{get show(){return o().deleted},set show(e){gn(H0,B(o).deleted=e,B(o))},children:(e,t)=>{ZF(e,{status:`success`,children:(e,t)=>{gt();var n=Pa();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 Twe,Ewe=o((()=>{Q(),Y(),Z(),X$(),sc(),H6(),K6(),dCe(),FCe(),BCe(),ewe(),mwe(),gwe(),Cwe(),g8(),M1(),$b(),U0(),nb(),M9(),F9(),JF(),PO(),y8(),ej(),Twe=V(`<!> <!> <!> <!>`,1)}));function Dwe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();{let t=M(()=>X(`prefs.i18n.translators.default.select_service`));HR(e,{get"aria-label"(){return z(t)},get value(){return n().defaultTranslationService},onChange:e=>{pn(lN,{...n(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),17,()=>Object.entries(N5),([e,{serviceLabel:t}])=>e,(e,t)=>{var r=M(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1].serviceLabel;{let t=M(()=>i()===n().defaultTranslationService);XL(e,{get label(){return a()},get value(){return i()},get selected(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var Owe=o((()=>{Q(),Y(),Z(),X$(),F5(),uN()}));function kwe(e,t){O(t,!0);let n=()=>j(P5,`$translator`,o),r=()=>j(BF,`$showContentOverlay`,o),i=()=>j(HF,`$translatorApiKeyDialogState`,o),a=()=>j(lN,`$prefs`,o),[o,s]=mn(),c=M(()=>n().serviceId),l=M(()=>n().apiLabel),u=M(()=>n().developerURL),d=M(()=>n().apiKeyURL),f=M(()=>n().apiKeyPattern);ei(()=>{!r()&&i().show&&(gn(HF,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`)}));EL(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)&&(gn(lN,B(a).apiKeys??={},B(a)),gn(lN,B(a).apiKeys[z(c)]=t,B(a)),gn(HF,B(i).show=!1,B(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){gn(HF,B(i).show=e,B(i))},children:(e,t)=>{var n=Awe(),r=I(n);Dwe(r,{});var i=L(r,2);tL(i,{}),So(L(i,2),()=>zE(X(`prefs.i18n.translators.description`,{values:{service:z(l),homeHref:`href="${z(u)}"`,apiKeyHref:`href="${z(d)}"`}}),{ALLOWED_TAGS:[`a`],ALLOWED_ATTR:[`href`,`target`,`rel`]})),U(e,n)},$$slots:{default:!0}})}k(),s()}var Awe,jwe=o((()=>{Q(),Y(),Z(),X$(),BE(),Owe(),JF(),F5(),uN(),Awe=V(`<!> <!> <!>`,1)}));function Mwe(e,t){O(t,!0);let n=()=>j(Wy,`$entryParseErrors`,r),[r,i]=mn(),a=N(!!n().length);dz(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var r=Pa();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 Nwe=o((()=>{Q(),Y(),Z(),X$(),Jy()})),L9,R9,z9=o((()=>{sp(),zP(),tM(),ej(),L9=un([ZA,QA,GA,LP,eM],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),R9=ln(!1)}));function Pwe(e,t){O(t,!0);let n=()=>j(LP,`$backend`,r),[r,i]=mn(),a,o=N(!1);ei(()=>{let{databaseName:e}=n()?.repository??{};e&&(a=new dS(e,`ui-settings`),(async()=>{let e=await a.get(`onboarding`)??{};e.mobileCta||P(o,!0),await a.set(`onboarding`,{...e,mobileCta:!0})})())});var s=Iwe(),c=I(s);co(c,()=>({"--sui-infobar-message-justify-content":`center`})),xI(c.lastChild,{get show(){return z(o)},dismissible:!1,children:(e,t)=>{gt();var n=Fwe(),r=I(n),i=L(r);{let e=M(()=>X(`mobile_promo_button`));pI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1),pn(R9,!0)}})}var a=L(i,2);{let e=M(()=>X(`later`));pI(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 Fwe,Iwe,Lwe=o((()=>{Q(),Y(),Z(),X$(),mS(),z9(),zP(),Fwe=V(` <!> <!>`,1),Iwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Rwe(e,t){O(t,!0),K(e,Bwe);let n=()=>j(Bp,`$allAssetFolders`,l),r=()=>j(YA,`$isSmallScreen`,l),i=()=>j(Hp,`$selectedAssetFolder`,l),a=()=>j(aF,`$cmsConfig`,l),o=()=>j(IP,`$backendName`,l),s=()=>j(C1,`$selectedPageName`,l),c=()=>j($3,`$searchMode`,l),[l,u]=mn(),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=zwe(),p=F(f);{let e=M(()=>X(`switch_page`));VI(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=>{YF(e,{get name(){return a()}})},u=M(()=>s()===r()||c()===l()),d=M(()=>z(n)+1);WI(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{k1(o())},startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),u()}var zwe,Bwe,Vwe=o((()=>{Q(),Y(),Z(),X$(),M1(),Yp(),zP(),uF(),t6(),ej(),zwe=V(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),Bwe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
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 Gxe(e,t){O(t,!0),K(e,Jxe);let n=()=>j(J4,`$entryDraft`,a),r=()=>j(LP,`$backend`,a),i=()=>j(s9,`$entryEditorSettings`,a),[a,o]=mn(),s=M(()=>{let e=n()?.collectionName,t=n()?.fileName;return e?[...lF.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:`task_alt`,disabled:!1,panel:Lxe},{key:`history`,label:X(`entry_sidebar.history.title`),icon:`history`,disabled:!r()?.isGit||!!n()?.isNew,panel:Dxe},{key:`backlinks`,label:X(`entry_sidebar.backlinks.title`),icon:`article_shortcut`,disabled:!z(s),panel:vxe}]),l=N(Sr(i()?.sidebarPanel??null)),u=M(()=>z(l)?z(c).find(e=>e.key===z(l))??z(c)[0]:null);ei(()=>{s9.update((e={})=>({...e,sidebarPanel:z(l)}))});var d=qxe(),f=F(d);{let e=M(()=>X(`entry_sidebar.sidebar_panels`));VI(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());WI(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)=>{YF(e,{get name(){return i()}})},$$slots:{default:!0}})}}),U(e,n)},$$slots:{default:!0}})}var p=L(f,2),m=e=>{var t=Kxe();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 Kxe,qxe,Jxe,Yxe=o((()=>{Q(),Y(),Z(),X$(),Cxe(),Ixe(),Wxe(),zP(),uF(),$4(),l9(),Kxe=V(`<div role="none" class="content svelte-19e8zut" id="entry-sidebar-content"><!></div>`),qxe=V(`<div role="none" class="sidebar svelte-19e8zut"><!> <!></div>`),Jxe={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 Xxe(e,t){let n=Fa();O(t,!0),K(e,tSe);let r=()=>j(J4,`$entryDraft`,i),[i,a]=mn(),o=J(t,`open`,15,!1),s=M(()=>r()?.collectionName??``),c=M(()=>r()?.currentSlugs??{}),l=N(Sr([])),u=Sr({}),d=Sr({}),f=()=>{let e=new Set(Object.values(z(c)));P(l,dk(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])))};ei(()=>{o()&&f()});{let t=M(()=>X(`edit_slug`)),i=M(()=>X(`update`)),a=M(()=>(0,Zxe.default)(z(c),u)||Object.values(d).some(e=>e!==!1));dL(e,{get title(){return z(t)},get okLabel(){return z(i)},get okDisabled(){return z(a)},onOk:()=>{gn(J4,B(r).currentSlugs=u,B(r))},get open(){return o()},set open(e){o(e)},children:(e,t)=>{var r=eSe(),i=I(r);co(i,()=>({"--font-size":`var(--sui-font-size-small)`})),ZF(i.lastChild,{status:`warning`,children:(e,t)=>{gt();var n=Pa();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=$xe(),i=F(r),a=e=>{var n=Qxe(),r=F(n),i=F(r,!0);D(r),D(n),R(e=>W(i,e),[()=>pb(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);xL(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=Pa();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=Pa();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 Zxe,Qxe,$xe,eSe,tSe,nSe=o((()=>{Q(),Y(),Z(),X$(),Zxe=l(aN()),hk(),$4(),_b(),Qxe=V(`<div role="none" class="svelte-wdavy7"><h3 class="svelte-wdavy7"> </h3></div>`),$xe=V(`<section class="svelte-wdavy7"><!> <div role="none" class="svelte-wdavy7"><!> <p class="error svelte-wdavy7"><!> <!></p></div></section>`),eSe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper> <div role="none" class="locales svelte-wdavy7"></div>`,1),tSe={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);}`}})),rSe,m9,iSe=o((()=>{_S(),mS(),sp(),MF(),zP(),X0(),Jy(),$b(),U0(),G4(),p3(),rSe=({ids:e,assetPaths:t})=>{let n=A(Uy),r=new Set(e);if(Uy.set(n.filter(e=>!r.has(e.id))),H0.set({...V0,deleted:!0,count:e.length}),t.length){let e=new Set(t);_F.update(t=>t.filter(t=>!e.has(t.path)))}},m9=async(e,t=[])=>{let n=A(LP)?.repository?.databaseName,r=n?new dS(n,`file-cache`):void 0,i=[],a=`delete`,o=await Promise.all(e.map(async({id:e,locales:t,slug:n})=>{let o=gS(Object.values(t).map(e=>e.path));return await Promise.all(o.map(async e=>{let t=await l3({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 W4(A(Rb),{excludeIds:new Set(e.map(({id:e})=>e)),cacheDB:r});i.push(...c),await Y0({changes:i,savingEntries:l,options:{commitType:`delete`,collection:A(Rb)}}),rSe({ids:o,assetPaths:s})}})),h9,aSe=o((()=>{f(),h9=(e,t)=>{if(Array.isArray(e))return{options:e};if(u(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,oSe,sSe,cSe,lSe=o((()=>{sp(),n1(),$b(),M9(),aSe(),DA(),sk(),g9=e=>h9(e,`filters`),oSe=(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:ok(t)}));return e.filter(e=>s.every(({field:t,pattern:n,regex:i})=>{let o={entry:e,locale:a,collectionName:r,key:t},s=EA({...o,resolveRef:!1}),c=EA({...o});return s===void 0||c===void 0?!1:$$(s,n,i)||$$(c,n,i)}))},sSe=(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)}))},cSe=un([Rb],([e],t)=>{sSe(e,t)})})),uSe,dSe,fSe,pSe,mSe=o((()=>{Z(),sp(),n1(),$b(),M9(),aSe(),DA(),uSe=e=>h9(e,`groups`),dSe=(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=Q$(e,i,e=>EA({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},fSe=(e,t)=>{if(!e||!(`folder`in e)){t([]);return}let{options:n,default:r}=uSe(e.view_groups);t(n),S9.update(e=>({...e,group:e.group===void 0?r:e.group}))},pSe=un([Rb],([e],t)=>{fSe(e,t)})})),hSe,_9,gSe,_Se=o((()=>{hSe=l(aN(),1),sp(),n1(),$b(),M9(),_9=ln(),gSe=async({repository:e})=>{await t1(e,`contents-view`,_9),S9.subscribe(e=>{let{name:t}=A(Rb)??{},n=A(_9)?.[t??``]??{};t&&!(0,hSe.default)(e,n)&&_9.update(n=>({...n,[t]:e}))})}})),vSe,v9,y9,b9,x9,ySe,bSe,xSe,SSe,CSe,wSe,TSe=o((()=>{Z(),_S(),f(),vSe=l(aN(),1),sp(),F6(),Jy(),$b(),G4(),M9(),_Se(),DA(),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`),ySe=e=>{if(x9(e))return{keys:e};if(u(e)){let{fields:t,default:n}=e;return x9(t)?u(n)?{keys:t,defaultKey:n.field,defaultOrder:[`descending`,`Descending`].includes(n.direction??``)?`descending`:`ascending`}:{keys:t}:{keys:[]}}return{keys:[]}},bSe=e=>e?{keys:[e,...v9.filter(t=>t!==e)],defaultKey:e}:{keys:[...v9]},xSe=({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?ySe(a):bSe(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=gS(s).filter(e=>!!e&&(b9.includes(e)||!!bA({collectionName:r,keyPath:e})));let f=N4(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}}},SSe=({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},CSe=({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 bA({collectionName:e.name,keyPath:i})?.label||t}).filter(Boolean).join(` – `):e.fields?.find(({name:e})=>e===t)?.label||t,wSe=un([Rb,Uy,N6],([e,t],n)=>{if(!e||!(`folder`in e)){n([]);return}let r=A(_9)?.[e.name]??{type:`list`},{keys:i,default:a}=xSe({collection:e,isCommitAuthorAvailable:t.some(e=>!!e.commitAuthor),isCommitDateAvailable:t.some(e=>!!e.commitDate)});r.sort??=a,n(i.map(t=>({key:t,label:CSe({collection:e,key:t})}))),(0,vSe.default)(r,A(S9))||S9.set(r)})})),ESe,DSe=o((()=>{ESe=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}})),OSe,kSe,ASe,jSe=o((()=>{n1(),lb(),G4(),TSe(),DA(),PO(),CC(),DSe(),OSe=[`title`,`summary`,`description`],kSe=({key:e,type:t,collection:n,locale:r,collectionName:i,dateFieldConfig:a,isMarkdownField:o})=>e===`_summary`?e=>NO(n,e,{locale:r,useTemplate:!0}):a?t=>{let n=EA({entry:t,locale:r,collectionName:i,key:e});return n?Number(vC(n,a)??0):0}:t===String?t=>{let n=EA({entry:t,locale:r,collectionName:i,key:e}),a=n?String(n):``;return o?ESe(a):a}:t=>{let n=EA({entry:t,locale:r,collectionName:i,key:e});return Number(n??0)},ASe=(e,t,{key:n,order:r}={})=>{let i=[...e];if(n===void 0)return i;let{name:a,_i18n:{defaultLocale:o}}=t,s=N4(t),c=n===`_manual`?s??n:n,l=bA({collectionName:a,keyPath:c}),u=n===`_manual`||c===s?Number:SSe({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`||OSe.includes(n)}),p=Object.fromEntries(i.map(e=>[e.slug,f(e)]));e1(i,e=>p[e.slug],!d&&u===String,r);let m=sb(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,MSe,O9,k9,A9,j9,M9=o((()=>{sp(),F6(),zP(),Jy(),$b(),hk(),nb(),lSe(),mSe(),_Se(),jSe(),uN(),S9=ln({type:`list`}),C9=ln(!1),w9=ln([]),T9=ln(!1),D9=un([Uy,Rb],([e,t],n)=>{n(e&&t?dk(t.name):[])}),MSe=5,O9=un([D9,Rb],([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<=MSe,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=un([D9,S9,N6],([e,t],n)=>{if(e===k9&&t===A9)return;k9=e,A9=t;let r=A(Rb),i=[...e];if(!i.length||$y(r,i[0]).length){n([]);return}t.sort&&(i=ASe(i,r,t.sort)),t.filters&&(i=oSe(i,r,t.filters)),n(dSe(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})}),LP.subscribe(e=>{e&&!A(_9)&&gSe(e)}),D9.subscribe(e=>{lk.set([]),A(lN).devModeEnabled&&console.info(`listedEntries`,e)}),Rb.subscribe(e=>{E9=void 0,C9.set(!1),e&&A(lN).devModeEnabled&&console.info(`selectedCollection`,e)})})),NSe,N9,P9,F9=o((()=>{sp(),uF(),lb(),$4(),K8(),M8(),C7(),NSe=`{{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(NSe),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=cb(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?sb(e):void 0,g=h?.fields??p,_=h?.editor?.preview??t?.editor?.preview??e.editor?.preview??A(aF)?.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},T=Object.fromEntries(S.map(e=>f?[e,S7({fields:g,locale:e,defaultLocale:b,dynamicValues:r})]:[e,structuredClone(d?.[e]?.content)]));J4.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:T,currentValues:Object.fromEntries(S.map(e=>[e,j8({draft:{collectionName:s,fileName:c,isIndexFile:o},locale:e,target:structuredClone(T[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})}),H8({collectionName:s,fileName:c,slug:u})}})),PSe,FSe=o((()=>{sp(),G4(),$4(),F9(),JF(),DA(),wge(),ebe(),PSe=()=>{let e=A(J4),{collectionName:t,fileName:n,collection:r,collectionFile:i,currentValues:a,validities:o,isIndexFile:s}=e,{defaultLocale:c,canonicalSlug:{key:l}}=(i??r)._i18n,u=N4(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=bA({...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]={}}),J4.set({...e,id:crypto.randomUUID(),createdAt:Date.now(),isNew:!0,originalEntry:void 0,originalSlugs:{},currentSlugs:{},slugEditor:N9({collection:r,collectionFile:i,originalSlugs:{}})}),VF.set(!0)}})),ISe,LSe=o((()=>{sp(),$4(),ISe=()=>{let{currentLocales:e,currentSlugs:t,slugEditor:n}=A(J4),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}}})),RSe,zSe=o((()=>{$4(),Nve(),LSe(),RSe=()=>{let{valid:e,validities:t,validationMessages:n}=G7(`currentValues`),{valid:r,validities:i,validationMessages:a}=G7(`extraValues`),{valid:o,validities:s}=ISe();return J4.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}})),BSe,VSe,HSe,USe=o((()=>{sp(),zP(),$2(),X0(),U0(),hk(),G4(),$4(),K8(),zF(),p3(),h4(),zSe(),A7(),Exe(),BSe=({skipCI:e})=>{let t=A(Z2)&&!(e??A(Q2));H0.set({...V0,saved:!0,published:t,count:1}),RP.set(t)},VSe=e=>{let{collection:t,collectionFile:n,currentValues:r}=e,i=N4(t);if(!i)return;let{defaultLocale:a}=(n??t)._i18n,o=dk(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})},HSe=async({skipCI:e=void 0}={})=>{let t=A(J4),{isNew:n,collection:r,collectionName:i,fileName:a,currentValues:o,originalEntry:s}=t;if(!RSe())throw Vge({collectionName:i,fileName:a,currentValues:o}),Error(`validation_failed`);n&&r._type===`entry`&&VSe(t);let c=m4({draft:t}),{defaultLocaleSlug:l}=c,{savingEntry:u,changes:d,savingAssets:f}=await f3({draft:t,slugs:c}),p;try{p=await Y0({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 RF({type:`postSave`,draft:t,savingEntry:u}),BSe({skipCI:e}),R8(i,n?``:l),s&&Txe(s.id),p.savedEntries[0]}}));function WSe(e,t){O(t,!0),K(e,ZSe);let n=()=>j(J4,`$entryDraft`,f),r=()=>j(Q4,`$entryDraftModified`,f),i=()=>j(lN,`$prefs`,f),a=()=>j(YA,`$isSmallScreen`,f),o=()=>j(O9,`$collectionState`,f),s=()=>j(XA,`$isMediumScreen`,f),c=()=>j(s9,`$entryEditorSettings`,f),l=()=>j(Z2,`$skipCIConfigured`,f),u=()=>j(Q2,`$skipCIEnabled`,f),d=()=>j(UF,`$copyFromLocaleToast`,f),[f,p]=mn(),m=e=>{let t=M(()=>a()?aR:pI),n=M(()=>!z(T)&&z(te)?.duplicate!==!1&&!o().creationDisabled&&!z(te)?.path),r=M(()=>z(te)?.delete!==!1);var i=GSe(),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:()=>{k1(`/collections/${z(oe)}/new`,{replaceState:!0,notifyChange:!1,transitionType:`forwards`}),PSe()}})})}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),T=M(()=>n()?.isIndexFile??!1),ee=M(()=>n()?.collection),te=M(()=>z(ee)?._type===`entry`?z(ee):void 0),ne=M(()=>n()?.collectionFile),re=M(()=>n()?.originalEntry),ie=M(()=>(z(ne)??z(ee))?._i18n??Ab),ae=M(()=>z(ie).defaultLocale),oe=M(()=>z(ee)?.name),se=M(()=>z(ne)?.name),ce=M(()=>Ph.current&&z(ee)?Zb(z(ee)):``),le=M(()=>Ph.current&&z(ee)?Zb(z(ee),{useSingular:!0}):``),ue=M(()=>n()?.canPreview??!0),de=M(()=>z(w)||r()),E=M(()=>Object.values(n()?.validities??{}).flatMap(e=>Object.values(e).map(({valid:e})=>!e)).filter(Boolean).length),fe=M(()=>z(oe)&&z(re)&&Wp({collectionName:z(oe),fileName:z(se)})?.entryRelative?PF({entry:z(re),collectionName:z(oe),fileName:z(se),relative:!0}):[]),pe=M(()=>z(ee)&&z(re)?nk(z(re),z(ae),z(ee),z(ne)):void 0),me=()=>{A1(z(oe)===`_singletons`?`/collections`:`/collections/${z(oe)}`)},he=async({skipCI:e=void 0}={})=>{if(P(x,!0),z(ee))try{let t=await HSe({skipCI:e});i()?.closeOnSave??!0?(me(),pn(J4,null)):(z(w)&&k1(`/collections/${z(oe)}/entries/${t.subPath}`,{replaceState:!0,notifyChange:!1,transitionType:`backwards`}),P9({collection:z(ee),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=XSe(),_e=I(ge);{let e=M(()=>X(`primary`));l$(_e,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var r=qSe(),o=I(r);{let e=M(()=>X(`cancel_editing`));c2(o,{get"aria-label"(){return z(e)},get useShortcut(){return i().closeWithEscape},onclick:()=>{me()}})}var d=L(o,2),f=F(d),p=e=>{rI(e,{children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`create_entry_title`,{values:{name:z(le)}})]),U(e,t)},o=e=>{let t=M(()=>z(ne)?Qy(z(ne)):z(ee)&&z(re)&&Ph.current?NO(z(ee),z(re)):``);var n=H(),r=I(n),i=e=>{var n=Pa();R(()=>W(n,z(t))),U(e,n)},o=e=>{var n=Pa();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`));pI(e,{variant:`tertiary`,get label(){return z(t)},onclick:()=>{b1(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`));tR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=KSe(),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(T)||z(te)?.delete===!1);aR(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));aR(u,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{t9()}})}var d=L(u,2),f=e=>{var t=I9(),r=I(t);ZI(r,{});var i=L(r,2);{let e=M(()=>X(`show_preview`)),t=M(()=>c()?.showPreview),n=M(()=>!z(ue));dR(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);dR(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(GI(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=>{tR(e,{children:(e,t)=>{{let t=M(()=>X(u()?`save_and_publish`:`save_without_publishing`));aR(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));JI(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));pI(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);dz(ve,{get show(){return z(g)},set show(e){P(g,e,!0)},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`entry_validation_errors`,{values:{count:z(E)}})]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}});var ye=L(ve,2);dz(ye,{get id(){return d().id},get show(){return d().show},set show(e){gn(UF,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}});ZF(e,{get status(){return z(n).status},children:(e,t)=>{gt();var r=Pa();R(e=>W(r,e),[()=>X(`editor.${z(n).message}`,{values:{count:z(n).count,source:z(n).sourceLanguage?pb(z(n).sourceLanguage)??z(n).sourceLanguage:``}})]),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}});var be=L(ye,2);Xxe(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`));bL(xe,{get title(){return z(e)},get okLabel(){return z(t)},onOk:async()=>{z(re)&&await m9([z(re)],z(fe)),me()},onClose:()=>{z(S)?.focus()},get open(){return z(v)},set open(e){P(v,e,!0)},children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(z(fe).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`));yL(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)=>{gt();var n=YSe(),r=I(n),i=L(r),a=e=>{var t=JSe(),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 GSe,I9,KSe,qSe,JSe,YSe,XSe,ZSe,QSe=o((()=>{Q(),Y(),Z(),X$(),l2(),nSe(),M1(),Yp(),$2(),$b(),iSe(),nb(),M9(),$4(),F9(),FSe(),USe(),n9(),JF(),l9(),ik(),FF(),PO(),_b(),Lb(),ej(),uN(),x1(),GSe=V(`<!> <!>`,1),I9=V(`<!> <!> <!>`,1),KSe=V(`<!> <!> <!> <!>`,1),qSe=V(`<!> <h2 role="none"><!></h2> <!> <!> <!> <!>`,1),JSe=V(`<div role="none" class="error svelte-zjrq31"> </div>`),YSe=V(` <!>`,1),XSe=V(`<!> <!> <!> <!> <!> <!>`,1),ZSe={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 $Se(e,t){O(t,!0),K(e,uCe);let n=()=>j(J4,`$entryDraft`,f),r=()=>j(s9,`$entryEditorSettings`,f),i=()=>j(O9,`$collectionState`,f),a=()=>j(WF,`$editorFirstPane`,f),o=()=>j(GF,`$editorSecondPane`,f),s=()=>j(YA,`$isSmallScreen`,f),c=()=>j(XA,`$isMediumScreen`,f),l=()=>j(X4,`$entryDraftInteracted`,f),u=()=>j(BF,`$showContentOverlay`,f),d=()=>j(VF,`$showDuplicateToast`,f),[f,p]=mn(),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=tCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:pb(z(t).locale)??z(t).locale}}));q$(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=eCe(),r=I(n);exe(r,{id:`first-pane-header`,get thisPane(){return WF},get thatPane(){return GF}}),Bbe(L(r,2),{id:`first-pane-body`,get thisPane(){return WF},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=rCe(),r=F(n);{let e=M(()=>X(z(t).mode===`edit`?`edit_x_locale`:`preview_x_locale`,{values:{locale:pb(z(t).locale)??z(t).locale}}));q$(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=nCe(),r=I(n);exe(r,{id:`second-pane-header`,get thisPane(){return GF},get thatPane(){return WF}}),Bbe(L(r,2),{id:`second-pane-body`,get thisPane(){return GF},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()??{}),te=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??Ab),E=M(()=>z(de).i18nEnabled),fe=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(()=>ee(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(fe).includes(e.locale)||t.locale&&!z(fe).includes(t.locale)||(!z(ue)||!z(ne))&&(e.mode===`preview`||t.mode===`preview`)||z(fe).length===2&&e.locale!==z(pe)?!1:(_=!0,await zi(),pn(WF,e),pn(GF,s()||c()?null:t),await zi(),_=!1,!0)},we=async()=>{if(!(!n()||v)){if(v=!0,await Ce()){v=!1;return}if(pn(WF,{mode:`edit`,locale:a()?.locale??z(pe)}),s()||c())pn(GF,null);else if(!z(ue)||!z(ne)){let e=z(E)?z(fe).filter(e=>e!==a()?.locale):[];pn(GF,e.length?{mode:`edit`,locale:e[0]}:null)}else pn(GF,{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()&&pn(X4,!0)},De=async()=>{await zi(),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`?pn(GF,{mode:`edit`,locale:e}):t?.mode===`preview`?pn(WF,{mode:`edit`,locale:e}):pn(n?GF:WF,{mode:`edit`,locale:e}),await eS(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)};ac(()=>(u()||pn(J4,null),window.addEventListener(`message`,Ae),()=>{window.removeEventListener(`message`,Ae)})),ei(()=>{z(me)&&(pn(WF,null),pn(GF,null))}),ei(()=>{z(re),z(ue),z(ne),s(),c(),B(()=>{we()})}),ei(()=>{a(),o(),Te()}),ei(()=>{z(b)&&(u()?z(y)&&(P(y,!1),we(),De(),W8()):U8())});var je=lCe(),Me=I(je);ao(F(Me),()=>n()?.id,e=>{var t=cCe(),r=I(t);{let e=M(()=>z(te)&&z(_e));WSe(r,{get disabled(){return z(e)}})}var i=L(r,2),c=e=>{},l=e=>{W$(e,{children:(e,t)=>{var n=iCe(),r=I(n),i=F(r),a=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`entry_not_found`)]),U(e,t)},o=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},s=e=>{var t=Pa();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);pI(F(c),{variant:`primary`,onclick:()=>{k1(`/collection/${z(re)?.name}`,{replaceState:!0,transitionType:`backwards`})},children:(e,t)=>{gt();var n=Pa();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=sCe();ao(F(t),()=>`${z(ie)}|${z(oe)}|${z(se)}`,e=>{var t=oCe(),n=I(t),r=F(n),i=e=>{var t=H(),n=I(t),r=e=>{soe(e,{onResize:({sizes:e})=>{a()&&o()&&(e=>{var t=ee(e,2);gn(WF,B(a).width=t[0],B(a)),gn(GF,B(o).width=t[1],B(o))})(e)},children:(e,t)=>{var n=aCe(),r=I(n);ER(r,{get defaultSize(){return z(be)},get minSize(){return z(Se)},children:(e,t)=>{m(e)},$$slots:{default:!0}});var i=L(r,2);aoe(i,{children:(e,t)=>{{let t=M(()=>X(`swap_panes`));pI(e,{class:`swap-button`,iconic:!0,size:`small`,variant:`tertiary`,get"aria-label"(){return z(t)},onclick:()=>{(e=>{var t=ee(e,2);pn(WF,t[0]),pn(GF,t[1])})([o(),a()])},children:(e,t)=>{YF(e,{name:`swap_horiz`})},$$slots:{default:!0}})}},$$slots:{default:!0}}),ER(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=>{tL(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=>{Gxe(e,{})};G(d,e=>{s()||e(f)}),U(e,t)}),D(t),xa(`pointerdown`,t,Ee),xa(`keydown`,t,Ee),U(e,t)};G(i,e=>{n()===null?e(c):z(C)||z(te)&&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);cde(Ne,{}),dz(L(Ne,2),{get show(){return _n(),d()},set show(e){pn(VF,e)},children:(e,t)=>{ZF(e,{status:`success`,children:(e,t)=>{gt();var n=Pa();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 eCe,tCe,nCe,rCe,iCe,aCe,oCe,sCe,cCe,lCe,uCe,dCe=o((()=>{Q(),Y(),Z(),X$(),tS(),sc(),lde(),Gbe(),dxe(),Yxe(),QSe(),M1(),M9(),$4(),K8(),JF(),A7(),l9(),_b(),Lb(),ej(),eCe=V(`<!> <!>`,1),tCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),nCe=V(`<!> <!>`,1),rCe=V(`<div class="pane-wrapper svelte-jrunrx"><!></div>`),iCe=V(`<div role="none"><!></div> <div role="none"><!></div>`,1),aCe=V(`<!> <!> <!>`,1),oCe=V(`<div role="none" class="content-area svelte-jrunrx"><!></div> <!>`,1),sCe=V(`<div role="none" class="body svelte-jrunrx"><!></div>`),cCe=V(`<!> <!>`,1),lCe=V(`<div role="group" class="wrapper content-editor svelte-jrunrx"><!></div> <!> <!>`,1),uCe={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;}`},Sa([`pointerdown`,`keydown`])}));function fCe(e,t){O(t,!0),K(e,gCe);let n=()=>j(YA,`$isSmallScreen`,a),r=()=>j(XA,`$isMediumScreen`,a),i=()=>j(uk,`$selectedEntryIdSet`,a),[a,o]=mn(),s=J(t,`showCheckbox`,3,!1),c=J(t,`onSelect`,3,void 0);var l=hCe(),u=I(l),d=e=>{FL(e,{class:`checkbox`,children:(e,n)=>{{let n=M(()=>i().has(t.entry.id));sL(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=>{FL(e,{class:`image`,children:(e,n)=>{var r=H();$a(I(r),()=>NF(t.collection,t.entry),null,(e,n)=>{var r=H(),i=I(r),a=e=>{{let r=M(()=>t.viewType===`list`?`icon`:`tile`);E3(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)}),FL(L(f,2),{class:`title`,children:(e,n)=>{var r=mCe();rI(F(r),{lines:2,children:(e,n)=>{var r=pCe(),i=I(r);ao(i,()=>Ph.current,e=>{var n=H();So(I(n),()=>NO(t.collection,t.entry,{useTemplate:!0,allowMarkdown:!0})),U(e,n)});var a=L(i,2),o=e=>{{let n=M(()=>sb(t.collection)?.icon);YF(e,{get name(){return z(n)},class:`home`})}},s=M(()=>cb(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 pCe,mCe,hCe,gCe,_Ce=o((()=>{Q(),Y(),Z(),X$(),D3(),hk(),lb(),FF(),PO(),ej(),pCe=V(`<!> <!>`,1),mCe=V(`<div role="none" class="label svelte-b1f01"><!></div>`),hCe=V(`<!> <!> <!>`,1),gCe={hash:`svelte-b1f01`,code:`.label.svelte-b1f01 .icon.home {opacity:0.5;font-size:20px;vertical-align:-4px;}`}}));function vCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=mn(),a=e=>{lk.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));RL(e,{get"aria-rowindex"(){return z(r)},onChange:e=>{a(e.detail.selected)},onclick:()=>{k1(`/collections/${t.collection.name}/entries/${t.entry.subPath}`,{transitionType:`forwards`})},children:(e,n)=>{fCe(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 yCe=o((()=>{Q(),Y(),X$(),_Ce(),M1(),hk(),M9()}));function bCe(e,t){O(t,!0);let n=()=>j(D9,`$listedEntries`,r),[r,i]=mn(),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(` `));RL(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=SCe(),i=I(r);fCe(i,{get collection(){return t.collection},get entry(){return t.entry},get viewType(){return t.viewType}}),FL(L(i,2),{class:`reorder-actions`,children:(e,t)=>{var n=xCe(),r=I(n);{let e=e=>{YF(e,{name:`arrow_upward`})},t=M(()=>!c()),n=M(()=>X(`move_up`));pI(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=>{YF(e,{name:`arrow_downward`})},t=M(()=>!l()),n=M(()=>X(`move_down`));pI(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 xCe,SCe,CCe=o((()=>{Q(),Y(),Z(),X$(),_Ce(),M9(),xCe=V(`<!> <!>`,1),SCe=V(`<!> <!>`,1)}));function wCe(e,t){O(t,!0),K(e,ECe);let n=()=>j(j9,`$entryGroups`,r),[r,i]=mn(),a=N(Sr({})),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()};ac(()=>{let e=sb(t.collection)?.name,r=Object.fromEntries(n().map(({name:n,entries:r})=>[n,P4(e?r.filter(t=>t.slug!==e):r,t.collection)]));P(a,r,!0),l(r)});var d=TCe();mo(d,5,n,({name:e,entries:t})=>e,(e,n)=>{let r=()=>z(n).name,i=()=>z(n).entries;var l=H();$a(I(l),eS,null,e=>{{let n=M(()=>r()===`*`?void 0:r());jL(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);bCe(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 TCe,ECe,DCe=o((()=>{Q(),Y(),X$(),tS(),sc(),CCe(),lb(),G4(),M9(),TCe=V(`<div role="none" class="wrapper svelte-1txp9gj"></div>`),ECe={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 OCe(e,t){O(t,!0);let n=()=>j(Uy,`$allEntries`,a),r=()=>j(Rb,`$selectedCollection`,a),i=()=>j(O9,`$collectionState`,a),[a,o]=mn(),s=J(t,`label`,3,void 0),c=J(t,`keyShortcuts`,3,void 0),l=M(()=>n()&&r()?mk(r()):!1),u=M(()=>Ph.current&&r()?sb(r())?.label:``),d=M(()=>z(l)?JI:pI),f=(e=!1)=>{k1(`/collections/${t.collectionName}/new`,{state:{index:e},transitionType:`forwards`})};var p=H(),m=I(p);{let e=e=>{YF(e,{name:`edit`})},t=e=>{var t=H(),n=I(t),r=e=>{tR(e,{children:(e,t)=>{var n=kCe(),r=I(n);{let e=M(()=>X(`entry`));aR(r,{get label(){return z(e)},onclick:()=>f()})}aR(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,ACe=o((()=>{Q(),Y(),Z(),X$(),M1(),Jy(),$b(),hk(),lb(),M9(),kCe=V(`<!> <!>`,1)}));function jCe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,s),r=()=>j(C9,`$reordering`,s),i=()=>j(S9,`$currentView`,s),a=()=>j(j9,`$entryGroups`,s),o=()=>j(D9,`$listedEntries`,s),[s,c]=mn(),l=M(n),u=M(()=>r()?`list`:i().type),d=M(()=>a().flatMap(({entries:e})=>e));{let t=M(()=>X(`entry_list`));W3(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`));J3(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=>{wCe(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();$a(I(a),eS,null,e=>{{let n=M(()=>r()===`*`?void 0:r());jL(e,{get label(){return z(n)},children:(e,n)=>{{let n=(e,t=E)=>{var n=H();$a(I(n),eS,null,e=>{vCe(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));OR(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=>{W$(e,{children:(e,t)=>{var n=MCe(),r=F(n,!0);D(n),R(e=>W(r,e),[()=>X(`no_entries_found`)]),U(e,n)},$$slots:{default:!0}})},c=e=>{W$(e,{children:(e,t)=>{var n=NCe(),r=I(n),i=F(r,!0);D(r);var a=L(r,2);{let e=M(()=>X(`create_new_entry`));OCe(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=>{W$(e,{children:(e,t)=>{var n=PCe(),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 MCe,NCe,PCe,FCe=o((()=>{Q(),Y(),Z(),X$(),tS(),q3(),Z3(),yCe(),DCe(),ACe(),$b(),M9(),MCe=V(`<span role="none"> </span>`),NCe=V(`<span role="none"> </span> <!>`,1),PCe=V(`<span role="none"> </span>`)}));function ICe(e,t){O(t,!0),K(e,zCe);let n=()=>j(Rb,`$selectedCollection`,r),[r,i]=mn(),a=M(()=>n()?.files.filter(Yy)??[]);{let t=M(()=>X(`file_list`));W3(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var r=H(),i=I(r),o=e=>{{let t=M(()=>X(`files`));J3(e,{viewType:`list`,get"aria-label"(){return z(t)},get"aria-rowcount"(){return z(a).length},children:(e,t)=>{OR(e,{get items(){return z(a)},itemKey:`name`,renderItem:(e,t)=>{let r=()=>t?.().name,i=()=>t?.().label,a=()=>t?.().icon;var o=H();$a(I(o),eS,null,e=>{RL(e,{onclick:()=>{k1(`/collections/${n()?.name}/entries/${r()}`,{transitionType:`forwards`})},children:(e,t)=>{FL(e,{class:`title`,children:(e,t)=>{var n=LCe(),o=F(n),s=e=>{YF(e,{get name(){return a()}})};G(o,e=>{a()&&e(s)}),rI(L(o,2),{lines:2,children:(e,t)=>{gt();var n=Pa();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=>{W$(e,{children:(e,t)=>{var n=RCe(),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 LCe,RCe,zCe,BCe=o((()=>{Q(),Y(),Z(),X$(),tS(),q3(),Z3(),M1(),$b(),nb(),LCe=V(`<div role="none" class="label svelte-1nfjp1"><!> <!></div>`),RCe=V(`<span role="none"> </span>`),zCe={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 VCe(e,t){O(t,!0),K(e,UCe);let[n,r]=mn(),i=M(()=>t.file.name),a=M(()=>t.file.label),o=M(()=>t.file.icon),s=N(!1),c=N(void 0);var l=HCe(),u=F(l);{let e=e=>{{let t=M(()=>z(o)||`edit_document`);YF(e,{get name(){return z(t)}})}},t=M(()=>z(a)||z(i));XL(u,{get label(){return z(t)},onSelect:()=>{pn(w1,X(`singleton_selected_announcement`,{values:{file:z(a)||z(i)}}))},onclick:()=>{k1(`/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 HCe,UCe,WCe=o((()=>{Q(),Y(),Z(),X$(),M1(),HCe=V(`<div class="wrapper svelte-w0jevb"><!></div>`),UCe={hash:`svelte-w0jevb`,code:`.wrapper.svelte-w0jevb {display:contents;}`}}));function GCe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,s),r=()=>j(LP,`$backend`,s),i=()=>j(RP,`$isLastCommitPublished`,s),a=()=>j(Z2,`$skipCIConfigured`,s),o=()=>j(YA,`$isSmallScreen`,s),[s,c]=mn(),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)&&!nS(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`);pn(RP,!0)}catch(e){P(p,`error`),P(m,!0),console.error(e)}};var g=H(),_=I(g),v=e=>{var t=KCe(),n=I(t);{let e=M(()=>o()?`small`:`medium`),t=M(()=>X(`publish_changes`)),r=M(()=>!z(f));pI(n,{variant:`secondary`,get size(){return z(e)},get label(){return z(t)},get disabled(){return z(r)},onclick:()=>h()})}dz(L(n,2),{get show(){return z(m)},set show(e){P(m,e,!0)},children:(e,t)=>{ZF(e,{get status(){return z(p)},children:(e,t)=>{gt();var n=Pa();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 KCe,qCe=o((()=>{Q(),Y(),Z(),X$(),zP(),$2(),ej(),uN(),iS(),KCe=V(`<!> <!>`,1)}));function JCe(e,t){O(t,!0);let n=()=>j(aF,`$cmsConfig`,o),r=()=>j(YA,`$isSmallScreen`,o),i=()=>j(Rb,`$selectedCollection`,o),a=()=>j(Uy,`$allEntries`,o),[o,s]=mn(),c=J(t,`isSearchPage`,3,!1),l=M(()=>Intl.NumberFormat(Ph.current)),u=M(()=>n()?.collections?.filter(({hide:e})=>!e)??[]),d=M(()=>n()?.singletons??[]);var f=$Ce(),p=F(f),m=e=>{var t=YCe(),n=I(t),r=F(n),i=F(r,!0);D(r),GCe(L(r,2),{}),D(n),n6(L(n,2),{onclick:e=>{e.preventDefault(),k1(`/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`));UL(h,{get"aria-label"(){return z(e)},"aria-controls":`collection-container`,children:(e,t)=>{var n=QCe(),o=I(n),s=e=>{{let t=M(()=>X(`collections`));qL(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();$a(I(n),eS,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`);YF(e,{get name(){return z(t)}})}},s=e=>{var r=H();ao(I(r),a,e=>{let r=M(()=>(`files`in z(t)?z(t).files:dk(z(n).name)).length);var i=XCe(),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);XL(e,{get label(){return z(u)},get selected(){return z(d)},onSelect:()=>{k1(`/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`));qL(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();$a(I(n),eS,null,e=>{var n=H(),r=I(n),i=e=>{VCe(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`));qL(e,{get label(){return z(n)},children:(e,n)=>{{let n=e=>{YF(e,{name:`bookmark_manager`})},r=e=>{var n=ZCe(),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`);XL(e,{get label(){return z(a)},get selected(){return z(o)},onSelect:()=>{k1(`/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 YCe,XCe,ZCe,QCe,$Ce,ewe=o((()=>{Q(),Y(),Z(),X$(),tS(),WCe(),qCe(),o6(),M1(),uF(),Jy(),$b(),hk(),ej(),YCe=V(`<header><h2> </h2> <!></header> <!>`,1),XCe=V(`<span class="count"> </span>`),ZCe=V(`<span class="count"> </span>`),QCe=V(`<!> <!>`,1),$Ce=V(`<div role="none" class="primary-sidebar"><!> <!></div>`)}));function twe(e,t){O(t,!0);let n=()=>j(T9,`$reorderDirty`,a),r=()=>j(Rb,`$selectedCollection`,a),i=()=>j(w9,`$reorderedEntries`,a),[a,o]=mn(),s=N(!1),c=N(!1);var l=nwe(),u=I(l);{let e=M(()=>X(`done`)),t=M(()=>X(`done_reordering_entries`)),a=M(()=>z(s)||!n());pI(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 H4(e,i()),pn(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`));pI(d,{variant:`secondary`,get label(){return z(e)},get"aria-label"(){return z(t)},get disabled(){return z(s)},onclick:()=>{pn(C9,!1)}})}dz(L(d,2),{get show(){return z(c)},set show(e){P(c,e,!0)},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`saving_reorder_failed`)]),U(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,l),k(),o()}var nwe,rwe=o((()=>{Q(),Y(),Z(),X$(),$b(),G4(),M9(),nwe=V(`<!> <!> <!>`,1)}));function iwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,a),r=()=>j(lk,`$selectedEntries`,a),i=()=>j(D9,`$listedEntries`,a),[a,o]=mn(),s=J(t,`open`,15,!1),c=M(()=>{let e=n()?.name;return r().length&&e&&Wp({collectionName:e})?.entryRelative?r().flatMap(t=>PF({entry:t,collectionName:e,relative:!0})):[]});{let t=M(()=>X(`delete_entries`,{values:{count:r().length}})),n=M(()=>X(`delete`));bL(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);gt();var a=Pa();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 awe=o((()=>{Q(),Y(),Z(),X$(),Yp(),$b(),iSe(),hk(),M9(),FF()}));function owe(e,t){O(t,!0),K(e,pwe);let n=()=>j(Rb,`$selectedCollection`,c),r=()=>j(O9,`$collectionState`,c),i=()=>j(YA,`$isSmallScreen`,c),a=()=>j(C9,`$reordering`,c),o=()=>j(lk,`$selectedEntries`,c),s=()=>j(D9,`$listedEntries`,c),[c,l]=mn(),u=N(!1),d=e=>zE(XE.parseInline(e),{ALLOWED_TAGS:[`strong`,`em`,`del`,`code`,`a`],ALLOWED_ATTR:[`href`]}),f=M(()=>n()?.name??``),p=M(()=>n()?.description),m=M(()=>Ph.current&&n()?Zb(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=fwe(),w=I(C),T=e=>{var t=dwe(),n=I(t);{let e=M(()=>X(`collection`));l$(n,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=lwe(),r=I(n),c=e=>{{let t=M(()=>X(`back_to_collection_list`));c2(e,{get"aria-label"(){return z(t)},onclick:()=>{A1(`/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=>{tL(e,{flex:!0})},x=e=>{var t=swe();rI(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=>{twe(e,{})},T=e=>{var t=cwe(),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(_));pI(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);pI(e,{variant:`ghost`,get label(){return z(t)},get"aria-label"(){return z(n)},get disabled(){return z(r)},onclick:()=>{pn(C9,!0)}})}};G(a,e=>{z(v)&&e(c)}),AI(L(a,2),{children:(e,t)=>{var n=H(),r=I(n),a=e=>{{let t=M(()=>i()?void 0:X(`create`));OCe(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(T,1)}),R(()=>W(g,z(m))),U(e,n)},$$slots:{default:!0}})}var r=L(n,2),c=e=>{var t=uwe(),n=I(t);co(n,()=>({"--sui-infobar-border-width":`1px 0`,"--sui-infobar-message-justify-content":`center`})),xI(n.lastChild,{dismissible:!1,children:(e,t)=>{var n=H(),r=I(n),i=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_admin`)]),U(e,t)},a=e=>{var t=Pa();R(e=>W(t,e),[()=>X(`creating_entries_disabled_by_quota`,{values:{quota:z(y)}})]),U(e,t)},o=e=>{var t=Pa();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(T)}),iwe(L(w,2),{get open(){return z(u)},set open(e){P(u,e,!0)}}),U(e,C),k(),l()}var swe,cwe,lwe,uwe,dwe,fwe,pwe,mwe=o((()=>{Q(),Y(),Z(),X$(),BE(),yO(),l2(),rwe(),awe(),ACe(),M1(),$b(),hk(),M9(),ej(),swe=V(`<div role="none" class="description svelte-83jnuc"><!></div>`),cwe=V(`<!> <!> <!>`,1),lwe=V(`<!> <h2 role="none" class="svelte-83jnuc"> </h2> <!> <!>`,1),uwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1),dwe=V(`<!> <!>`,1),fwe=V(`<!> <!>`,1),pwe={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 hwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,o),r=()=>j(_F,`$allAssets`,o),i=()=>j(ZA,`$isLargeScreen`,o),a=()=>j(S9,`$currentView`,o),[o,s]=mn(),c=M(()=>Wp({collectionName:n()?.name})),l=M(()=>z(c)?r().filter(e=>AF(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`));q$(e,{id:`collection-assets`,class:`secondary-sidebar`,get"aria-label"(){return z(t)},children:(e,t)=>{P3(e,{get disabled(){return z(m)},multiple:!0,onDrop:({files:e})=>{pn(wF,{folder:z(c),files:e})},children:(e,t)=>{Sme(e,{get assets(){return z(l)},onSelect:({asset:e})=>{k1(`/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 gwe=o((()=>{Q(),Y(),Z(),X$(),kme(),V3(),M1(),MF(),Yp(),$b(),M9(),ej()}));function _we(e,t){O(t,!0);let n=()=>j(t.currentView,`$currentView`,r),[r,i]=mn(),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`));tR(e,{get"aria-label"(){return z(r)},get"aria-controls"(){return t[`aria-controls`]},children:(e,r)=>{var i=vwe(),a=I(i);{let e=M(()=>s()||X(`sort_keys.none`)),r=M(()=>!n().group);pR(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));pR(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`));GI(e,{variant:`ghost`,get label(){return z(i)},get disabled(){return o()},popupPosition:`bottom-right`,popup:r,$$slots:{popup:!0}})}k(),i()}var vwe,ywe=o((()=>{Q(),Y(),Z(),X$(),vwe=V(`<!> <!>`,1)}));function bwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,f),r=()=>j(D9,`$listedEntries`,f),i=()=>j(C9,`$reordering`,f),a=()=>j(YA,`$isSmallScreen`,f),o=()=>j(XA,`$isMediumScreen`,f),s=()=>j(j9,`$entryGroups`,f),c=()=>j(wSe,`$sortKeys`,f),l=()=>j(cSe,`$viewFilters`,f),u=()=>j(pSe,`$viewGroups`,f),d=()=>j(S9,`$currentView`,f),[f,p]=mn(),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`));l$(e,{variant:`secondary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Swe(),r=I(n),i=e=>{{let t=M(()=>s().flatMap(({entries:e})=>e));v6(e,{get allItems(){return z(t)},get selectedItems(){return lk}})}};G(r,e=>{a()||o()||e(i)});var f=L(r,2);tL(f,{flex:!0});var p=L(f,2);{let e=M(()=>!z(v)||!c().length);C6(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));h6(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));_we(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(_));E6(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),T=e=>{var t=xwe(),n=I(t);ZI(n,{orientation:`vertical`});var r=L(n,2);{let e=e=>{YF(e,{name:`photo_library`})},t=M(()=>!z(_)||!Wp({collectionName:z(h)})),n=M(()=>!!d().showMedia),i=M(()=>X(d().showMedia?`hide_assets`:`show_assets`));pI(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(T)}),U(e,n)},$$slots:{default:!0}})}};G(b,e=>{z(m)&&!i()&&e(x)}),U(e,y),k(),p()}var xwe,Swe,Cwe=o((()=>{Q(),Y(),Z(),X$(),_6(),ywe(),S6(),T6(),A6(),Yp(),$b(),hk(),M9(),lSe(),mSe(),TSe(),ej(),xwe=V(`<!> <!>`,1),Swe=V(`<!> <!> <!> <!> <!> <!> <!>`,1)}));function wwe(e,t){O(t,!0);let n=()=>j(Rb,`$selectedCollection`,s),r=()=>j(BF,`$showContentOverlay`,s),i=()=>j(YA,`$isSmallScreen`,s),a=()=>j(D9,`$listedEntries`,s),o=()=>j(H0,`$contentUpdatesToast`,s),[s,c]=mn(),l=/^\/collections(?:\/(?<_collectionName>[^/]+)(?:\/(?<routeType>new|entries))?(?:\/(?<subPath>.+?))?)?$/,u=N(!1),d=N(!1),f=N(void 0),p=M(()=>`files`in(n()??{})?ICe:jCe),m=()=>{let{path:e,params:t}=T1(),r=e.match(l);if(P(u,!1),P(d,!1),P(f,t._locale,!0),delete t._locale,n()?.name===`_singletons`&&Wb().length&&pn(Rb,void 0),!r?.groups){pn(BF,!1),P(d,v8(e),!0);return}let{_collectionName:o,routeType:s,subPath:c}=r.groups;if(!o){i()?(pn(Rb,void 0),pn(BF,!1),pn(w1,X(`viewing_collection_list`)),P(u,!0)):k1(`/collections/${(n()||Gb()||Yb())?.name}`,{replaceState:!0});return}let p=Xb(o);if(!p||p.hide?pn(Rb,void 0):n()?.name!==p.name&&pn(Rb,p),!p||!n()){pn(BF,!1),pn(w1,X(`collection_not_found`));return}let{name:m}=n(),h=Zb(n()),g=`_fileMap`in n()?n()._fileMap:void 0;if(!s){pn(BF,!1),pn(w1,X(`viewing_x_collection`,{values:{collection:h,count:a().length}}));return}if(pn(BF,!0),g){if(s===`entries`&&c){let e=eb(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,{}]))}}),pn(w1,X(`edit_${p._type}_announcement`,{values:{collection:h,file:Qy(t)}}))}}else if(s===`new`&&!c&&(P9({collection:p,dynamicValues:t,isIndexFile:!!window.history.state?.index}),pn(w1,X(`create_entry_announcement`,{values:{collection:h}}))),s===`entries`&&c){let e=a().find(e=>e.subPath===c);e&&Ph.current&&(P9({collection:p,originalEntry:e}),pn(w1,X(`edit_entry_announcement`,{values:{collection:h,entry:NO(n(),e)}})))}};ac(()=>(m(),()=>{pn(BF,!1)}));var h=Twe();ba(`hashchange`,Fr,e=>{O1(e,m,l)});var g=I(h);{let e=e=>{var t=H(),n=I(t),r=e=>{JCe(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=>{p8(e,{})},s=e=>{{let t=e=>{owe(e,{})},r=e=>{var t=H(),r=I(t),i=e=>{bwe(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=>{hwe(e,{})},s=M(()=>X(`x_collection`,{values:{collection:Ph.current&&n()?Zb(n()):``}})),c=M(()=>n()?.description);z6(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`));U6(g,{get"aria-label"(){return z(r)},primarySidebar:e,main:t,$$slots:{primarySidebar:!0,main:!0}})}var _=L(g,2),v=e=>{$Se(e,{get editorLocale(){return z(f)}})};G(_,e=>{r()&&e(v)});var y=L(_,2);dz(y,{get show(){return o().saved},set show(e){gn(H0,B(o).saved=e,B(o))},children:(e,t)=>{ZF(e,{status:`success`,children:(e,t)=>{gt();var n=Pa();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}}),dz(L(y,2),{get show(){return o().deleted},set show(e){gn(H0,B(o).deleted=e,B(o))},children:(e,t)=>{ZF(e,{status:`success`,children:(e,t)=>{gt();var n=Pa();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 Twe,Ewe=o((()=>{Q(),Y(),Z(),X$(),sc(),H6(),K6(),dCe(),FCe(),BCe(),ewe(),mwe(),gwe(),Cwe(),g8(),M1(),$b(),U0(),nb(),M9(),F9(),JF(),PO(),y8(),ej(),Twe=V(`<!> <!> <!> <!>`,1)}));function Dwe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();{let t=M(()=>X(`prefs.i18n.translators.default.select_service`));HR(e,{get"aria-label"(){return z(t)},get value(){return n().defaultTranslationService},onChange:e=>{pn(lN,{...n(),defaultTranslationService:e.detail.value})},children:(e,t)=>{var r=H();mo(I(r),17,()=>Object.entries(N5),([e,{serviceLabel:t}])=>e,(e,t)=>{var r=M(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1].serviceLabel;{let t=M(()=>i()===n().defaultTranslationService);XL(e,{get label(){return a()},get value(){return i()},get selected(){return z(t)}})}}),U(e,r)},$$slots:{default:!0}})}k(),i()}var Owe=o((()=>{Q(),Y(),Z(),X$(),F5(),uN()}));function kwe(e,t){O(t,!0);let n=()=>j(P5,`$translator`,o),r=()=>j(BF,`$showContentOverlay`,o),i=()=>j(HF,`$translatorApiKeyDialogState`,o),a=()=>j(lN,`$prefs`,o),[o,s]=mn(),c=M(()=>n().serviceId),l=M(()=>n().apiLabel),u=M(()=>n().developerURL),d=M(()=>n().apiKeyURL),f=M(()=>n().apiKeyPattern);ei(()=>{!r()&&i().show&&(gn(HF,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`)}));EL(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)&&(gn(lN,B(a).apiKeys??={},B(a)),gn(lN,B(a).apiKeys[z(c)]=t,B(a)),gn(HF,B(i).show=!1,B(i)),i().resolve?.(t))},onCancel:()=>{i().resolve?.()},get open(){return i().show},set open(e){gn(HF,B(i).show=e,B(i))},children:(e,t)=>{var n=Awe(),r=I(n);Dwe(r,{});var i=L(r,2);tL(i,{}),So(L(i,2),()=>zE(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 Awe,jwe=o((()=>{Q(),Y(),Z(),X$(),BE(),Owe(),JF(),F5(),uN(),Awe=V(`<!> <!> <!>`,1)}));function Mwe(e,t){O(t,!0);let n=()=>j(Wy,`$entryParseErrors`,r),[r,i]=mn(),a=N(!!n().length);dz(e,{get show(){return z(a)},set show(e){P(a,e,!0)},children:(e,t)=>{ZF(e,{status:`error`,children:(e,t)=>{gt();var r=Pa();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 Nwe=o((()=>{Q(),Y(),Z(),X$(),Jy()})),L9,R9,z9=o((()=>{sp(),zP(),tM(),ej(),L9=un([ZA,QA,GA,LP,eM],([e,t,n,r,i])=>e&&t&&!n&&!!r?.isGit&&!!i?.token),R9=ln(!1)}));function Pwe(e,t){O(t,!0);let n=()=>j(LP,`$backend`,r),[r,i]=mn(),a,o=N(!1);ei(()=>{let{databaseName:e}=n()?.repository??{};e&&(a=new dS(e,`ui-settings`),(async()=>{let e=await a.get(`onboarding`)??{};e.mobileCta||P(o,!0),await a.set(`onboarding`,{...e,mobileCta:!0})})())});var s=Iwe(),c=I(s);co(c,()=>({"--sui-infobar-message-justify-content":`center`})),xI(c.lastChild,{get show(){return z(o)},dismissible:!1,children:(e,t)=>{gt();var n=Fwe(),r=I(n),i=L(r);{let e=M(()=>X(`mobile_promo_button`));pI(i,{variant:`link`,get label(){return z(e)},onclick:()=>{P(o,!1),pn(R9,!0)}})}var a=L(i,2);{let e=M(()=>X(`later`));pI(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 Fwe,Iwe,Lwe=o((()=>{Q(),Y(),Z(),X$(),mS(),z9(),zP(),Fwe=V(` <!> <!>`,1),Iwe=V(`<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>`,1)}));function Rwe(e,t){O(t,!0),K(e,Bwe);let n=()=>j(Bp,`$allAssetFolders`,l),r=()=>j(YA,`$isSmallScreen`,l),i=()=>j(Hp,`$selectedAssetFolder`,l),a=()=>j(aF,`$cmsConfig`,l),o=()=>j(IP,`$backendName`,l),s=()=>j(C1,`$selectedPageName`,l),c=()=>j($3,`$searchMode`,l),[l,u]=mn(),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=zwe(),p=F(f);{let e=M(()=>X(`switch_page`));VI(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=>{YF(e,{get name(){return a()}})},u=M(()=>s()===r()||c()===l()),d=M(()=>z(n)+1);WI(e,{variant:`ghost`,iconic:!0,get selected(){return z(u)},get"aria-label"(){return i()},get keyShortcuts(){return`Alt+${z(d)??``}`},onclick:()=>{k1(o())},startIcon:t,$$slots:{startIcon:!0}})}}),U(e,n)},$$slots:{default:!0}})}D(f),U(e,f),k(),u()}var zwe,Bwe,Vwe=o((()=>{Q(),Y(),Z(),X$(),M1(),Yp(),zP(),uF(),t6(),ej(),zwe=V(`<div role="none" class="wrapper svelte-t2r4ty"><!></div>`),Bwe={hash:`svelte-t2r4ty`,code:`.wrapper.svelte-t2r4ty {display:contents;}.wrapper.svelte-t2r4ty .sui.select-button-group {gap:4px;}
1024
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 Hwe(e,t){O(t,!0);let n=()=>j(S1,`$hasOverlay`,r),[r,i]=mn();Mae(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>X(`global`));l$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Uwe();Rwe(F(n),{}),D(n),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),k(),i()}var Uwe,Wwe=o((()=>{Q(),Y(),Z(),X$(),Vwe(),M1(),Uwe=V(`<div role="none" class="buttons"><!></div>`)}));function Gwe(e,t){O(t,!0),K(e,Ywe);let n=()=>j(JA,`$isMacOS`,r),[r,i]=mn(),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`));dL(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=Jwe(),i=F(r);{let e=M(()=>X(`keyboard_shortcuts`));Toe(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;Coe(e,{children:(e,t)=>{var a=qwe(),o=I(a);ez(o,{class:`feature`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`keyboard_shortcuts_.${r()}`)]),U(e,n)},$$slots:{default:!0}}),ez(L(o,2),{class:`keys`,children:(e,t)=>{var r=H();mo(I(r),16,()=>i().split(`+`),e=>e,(e,t)=>{var r=Kwe(),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 Kwe,qwe,Jwe,Ywe,Xwe=o((()=>{Q(),Y(),Z(),X$(),ej(),Kwe=V(`<kbd class="svelte-13q15u"> </kbd>`),qwe=V(`<!> <!>`,1),Jwe=V(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),Ywe={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 Zwe(e,t){O(t,!0);let n=()=>j(QA,`$hasMouse`,r),[r,i]=mn(),a=N(!1);var o=Qwe(),s=I(o),c=e=>{{let t=M(()=>X(`keyboard_shortcuts`));aR(e,{get label(){return z(t)},onclick:()=>{P(a,!0)}})}};G(s,e=>{n()&&e(c)}),Gwe(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 Qwe,$we=o((()=>{Q(),Y(),Z(),X$(),Xwe(),ej(),Qwe=V(`<!> <!>`,1)}));function B9(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn(),a=J(t,`defaultValue`,3,!0),o=N(!0);ei(()=>{P(o,!!(n()[t.key]??a()),!0)}),ei(()=>{n()[t.key]!==z(o)&&gn(lN,B(n)[t.key]=z(o),B(n))}),ZR(e,{get label(){return t.label},get checked(){return z(o)},set checked(e){P(o,e,!0)}}),k(),i()}var V9=o((()=>{Q(),Y(),X$(),uN()}));function eTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=tTe(),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 tTe,nTe=o((()=>{Q(),Y(),Z(),V9(),tTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)}));function rTe(e,t){O(t,!0);let n=()=>j(Z2,`$skipCIConfigured`,i),r=()=>j(lN,`$prefs`,i),[i,a]=mn(),o=J(t,`onChange`,3,void 0);var s=aTe(),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=iTe(),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`));xL(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){gn(lN,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`));xL(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){gn(lN,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 iTe,aTe,oTe=o((()=>{Q(),Y(),Z(),X$(),V9(),$2(),uN(),iTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),aTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)}));function sTe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();J(t,`onChange`,3,void 0);var a=cTe(),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`));VI(l,{get"aria-label"(){return z(e)},onChange:e=>{pn(lN,{...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);WI(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 cTe,lTe=o((()=>{Q(),Y(),Z(),X$(),uN(),cTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function uTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=dTe(),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 dTe,fTe=o((()=>{Q(),Y(),Z(),V9(),dTe=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(lN,`$prefs`,r),[r,i]=mn(),a=J(t,`onChange`,3,void 0),o=M(()=>t.service.apiKeyPattern),s=N(``);ac(()=>{P(s,n().apiKeys?.[t.serviceId]??``,!0)}),I$(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);gn(lN,B(n).apiKeys??={},B(n)),gn(lN,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 pTe=o((()=>{Q(),Y(),Z(),X$(),sc(),uN()}));function mTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0);var r=gTe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);Dwe(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,()=>eA(X(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),D(d),mo(L(d,2),17,()=>Object.entries(N5),([e,t])=>e,(e,t)=>{var r=M(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=hTe(),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 hTe,gTe,_Te=o((()=>{Q(),Y(),Z(),pTe(),Owe(),F5(),tA(),hTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),gTe=V(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)}));function vTe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();J(t,`onChange`,3,void 0);var a=yTe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2);ao(F(c),()=>Ph.current,e=>{{let t=M(()=>X(`prefs.language.ui_language.select_language`));HR(e,{get"aria-label"(){return z(t)},get value(){return Ph.current},onChange:e=>{pn(lN,{...n(),locale:e.detail.value})},children:(e,t)=>{var n=H();mo(I(n),16,()=>yh,e=>e,(e,t)=>{{let n=M(()=>pb(t,{displayLocale:t})??t),r=M(()=>t===Ph.current);XL(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 yTe,bTe=o((()=>{Q(),Y(),Z(),X$(),_b(),uN(),yTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function xTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=u7();return Object.entries(l7).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(bw).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=wTe(),o=I(a),s=F(o),c=F(s,!0);D(s);var l=L(s,2);So(l,()=>eA(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(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=STe(),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,()=>eA(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(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=CTe(),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 STe,CTe,wTe,TTe=o((()=>{Q(),Y(),Z(),pTe(),Sw(),nhe(),tA(),STe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),CTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),wTe=V(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})),U9,ETe=o((()=>{sp(),nTe(),oTe(),lTe(),fTe(),_Te(),bTe(),TTe(),uF(),U9=un([aF],([e])=>[{key:`appearance`,icon:`palette`,component:sTe},{key:`language`,icon:`language`,component:vTe},{key:`contents`,icon:`library_books`,component:uTe},{key:`i18n`,icon:`translate`,component:mTe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:xTe},{key:`accessibility`,icon:`accessibility_new`,component:eTe},{key:`advanced`,icon:`build`,component:rTe}])}));function DTe(e,t){K(e,kTe);let n=N(``),r=N(`success`),i=N(!1);var a=OTe(),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),dz(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{ZF(e,{get status(){return z(r)},children:(e,t)=>{gt();var r=Pa();R(()=>W(r,z(n))),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,a)}var OTe,kTe,ATe=o((()=>{Q(),Y(),X$(),OTe=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,NTe);let n=J(t,`open`,15,!1),r=J(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>X(`settings`));dL(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=MTe(),r=F(n);{let e=M(()=>X(`categories`));Doe(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=>{YF(e,{get name(){return r()}})},a=M(()=>X(`prefs.${n()}.title`)),o=M(()=>n()===z(i));joe(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;koe(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{DTe(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),D(n),U(e,n)},$$slots:{default:!0}})}k()}var MTe,NTe,PTe=o((()=>{Q(),Y(),Z(),X$(),sp(),ETe(),ATe(),MTe=V(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),NTe={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 FTe(e,t){O(t,!0);let n=()=>j(IP,`$backendName`,c),r=()=>j(eM,`$user`,c),i=()=>j(lN,`$prefs`,c),a=()=>j(LP,`$backend`,c),o=()=>j(YA,`$isSmallScreen`,c),s=()=>j(L9,`$canShowMobileSignInDialog`,c),[c,l]=mn(),u=N(!1),d=M(()=>n()===`local`),f=M(()=>n()===`test-repo`);var p=RTe(),m=I(p);{let e=M(()=>X(`account`));tR(m,{get"aria-label"(){return z(e)},children:(e,n)=>{var c=LTe(),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));aR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{b1(r()?.profileURL)}})}var p=L(l,2);ZI(p,{});var m=L(p,2);{let e=M(()=>X(`live_site`));aR(m,{get label(){return z(e)},onclick:()=>{j1()}})}var h=L(m,2),g=e=>{var t=ITe(),n=I(t);{let e=M(()=>X(`git_repository`)),t=M(()=>!a()?.repository?.treeBaseURL);aR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{b1(a()?.repository?.treeBaseURL)}})}var r=L(n,2);{let e=M(()=>X(`cms_config`));aR(r,{get label(){return z(e)},onclick:()=>{k1(`/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`));aR(v,{get label(){return z(e)},onclick:()=>{o()?k1(`/settings`,{transitionType:`forwards`}):P(u,!0)}})}var y=L(v,2),b=e=>{Zwe(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`));aR(e,{get label(){return z(t)},onclick:()=>{pn(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`));aR(w,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{G1()})}})}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 ITe,LTe,RTe,zTe=o((()=>{Q(),Y(),Z(),X$(),$we(),PTe(),M1(),z9(),zP(),tM(),K1(),ej(),uN(),x1(),ITe=V(`<!> <!>`,1),LTe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),RTe=V(`<!> <!>`,1)}));function BTe(e,t){O(t,!0),K(e,UTe);let n=()=>j(IP,`$backendName`,i),r=()=>j(eM,`$user`,i),[i,a]=mn(),o=N(void 0),s=M(()=>n()===`local`),c=M(()=>!!r()?.avatarURL);var l=HTe(),u=F(l);{let e=e=>{var t=H(),n=I(t),i=e=>{YF(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=VTe();R(()=>q(t,`src`,r()?.avatarURL)),U(e,t)},o=e=>{YF(e,{name:`account_circle`})};G(n,e=>{z(s)?e(i):z(c)?e(a,1):e(o,-1)}),U(e,t)},t=e=>{FTe(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(GI(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 VTe,HTe,UTe,WTe=o((()=>{Q(),Y(),Z(),X$(),zTe(),zP(),tM(),VTe=V(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),HTe=V(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),UTe={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 GTe(e,t){O(t,!0);let[n,r]=mn(),i=M(()=>Wb({visible:!0,type:`entry`}));{let t=e=>{YF(e,{name:`add`})},n=e=>{{let t=M(()=>X(`create_entry_or_assets`));tR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=qTe(),r=I(n),a=e=>{var t=KTe(),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||dk(z(n).name).length>=z(n).limit);aR(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{k1(`/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`));aR(o,{get label(){return z(e)},onclick:async()=>{k1(`/assets`,{transitionType:`forwards`}),await eS(100),pn(f1,!0)}})}U(e,n)},$$slots:{default:!0}})}},r=M(()=>X(`create_entry_or_assets`));GI(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 KTe,qTe,JTe=o((()=>{Q(),Y(),Z(),X$(),tS(),M1(),y1(),$b(),hk(),KTe=V(`<!> <!>`,1),qTe=V(`<!> <!>`,1)}));function YTe(e,t){O(t,!0),K(e,ZTe);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();{let t=e=>{var t=H(),r=I(t),i=e=>{var t=XTe(),n=F(t);D(t),R(e=>{q(t,`aria-label`,`(${e??``})`),W(n,`v${Lw??``}`)},[()=>X(`version_x`,{values:{version:Lw}})]),U(e,t)};G(r,e=>{n().devModeEnabled&&e(i)}),U(e,t)},r=M(()=>X(`release_notes`));aR(e,{get label(){return z(r)},onclick:()=>{b1(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}k(),i()}var XTe,ZTe,QTe=o((()=>{Q(),Y(),Z(),X$(),Rw(),uN(),x1(),XTe=V(`<span class="version svelte-wmw2gz"> </span>`),ZTe={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 $Te(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();{let r=M(()=>X(`help`));tR(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=tEe(),a=I(i);Zwe(a,{get menuButton(){return t.menuButton}});var o=L(a,2),s=e=>{var t=eEe(),n=I(t);W9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);YTe(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);ZI(l,{});var u=L(l,2);W9(u,()=>`bluesky`,()=>`https://bsky.app/profile/sveltiacms.app`),W9(L(u,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,eEe,tEe,nEe=o((()=>{Q(),Y(),Z(),X$(),QTe(),$we(),uN(),x1(),W9=(e,t=E,n=E)=>{{let r=M(()=>X(t()));aR(e,{get label(){return z(r)},onclick:()=>{b1(n())}})}},eEe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),tEe=V(`<!> <!>`,1)}));function rEe(e,t){O(t,!0),K(e,aEe);let n=N(void 0),r=N(!1);var i=iEe(),a=I(i),o=F(a);{let e=e=>{YF(e,{name:`help`})},t=e=>{$Te(e,{get menuButton(){return z(n)}})},r=M(()=>X(`show_help_menu`));Us(GI(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),Gwe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),U(e,i),k()}var iEe,aEe,oEe=o((()=>{Q(),Y(),Z(),X$(),nEe(),Xwe(),iEe=V(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),aEe={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}}));function sEe(e,t){O(t,!0);{let t=e=>{YF(e,{name:`notifications`})},n=M(()=>X(`show_notifications`));pI(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}k()}var cEe=o((()=>{Q(),Y(),Z(),X$()}));function lEe(e,t){O(t,!0),K(e,dEe);let n=()=>j(s0,`$appLogoURL`,i),r=()=>j(aF,`$cmsConfig`,i),[i,a]=mn();var o=H(),s=I(o),c=e=>{{let t=M(()=>X(`visit_live_site`));pI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{j1()},children:(e,t)=>{var r=uEe();R(()=>q(r,`src`,n())),U(e,r)},$$slots:{default:!0}})}};G(s,e=>{n()!==a0&&(r()?.logo?.show_in_header??!0)&&e(c)}),U(e,o),k(),a()}var uEe,dEe,fEe=o((()=>{Q(),Y(),Z(),X$(),l0(),M1(),uF(),uEe=V(`<img alt="" class="logo svelte-15c9hhi"/>`),dEe={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}}));function pEe(e,t){O(t,!0),K(e,gEe);let n=()=>j(S1,`$hasOverlay`,i),r=()=>j(lN,`$prefs`,i),[i,a]=mn();var o=hEe(),s=F(o);{let e=M(()=>X(`global`));l$(s,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=mEe(),i=I(n),a=F(i);lEe(a,{}),Rwe(L(a,2),{}),D(i);var o=L(i,2);n6(o,{});var s=L(o,2),c=F(s);GCe(c,{});var l=L(c,2);GTe(l,{});var u=L(l,2);sEe(u,{});var d=L(u,2),f=e=>{rEe(e,{})};G(d,e=>{r().devModeEnabled&&e(f)}),BTe(L(d,2),{}),D(s),U(e,n)},$$slots:{default:!0}})}D(o),R(()=>o.inert=n()),U(e,o),k(),a()}var mEe,hEe,gEe,_Ee=o((()=>{Q(),Y(),Z(),X$(),WTe(),JTe(),oEe(),cEe(),Vwe(),qCe(),o6(),fEe(),M1(),uN(),mEe=V(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),hEe=V(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),gEe={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh .sui.search-bar {display:none !important;}
1025
+ }.wrapper.svelte-t2r4ty .sui.button {border-radius:var(--sui-button-medium-border-radius) !important;}`}}));function Hwe(e,t){O(t,!0);let n=()=>j(S1,`$hasOverlay`,r),[r,i]=mn();Mae(e,{get inert(){return n()},children:(e,t)=>{{let t=M(()=>X(`global`));l$(e,{variant:`primary`,get"aria-label"(){return z(t)},children:(e,t)=>{var n=Uwe();Rwe(F(n),{}),D(n),U(e,n)},$$slots:{default:!0}})}},$$slots:{default:!0}}),k(),i()}var Uwe,Wwe=o((()=>{Q(),Y(),Z(),X$(),Vwe(),M1(),Uwe=V(`<div role="none" class="buttons"><!></div>`)}));function Gwe(e,t){O(t,!0),K(e,Ywe);let n=()=>j(JA,`$isMacOS`,r),[r,i]=mn(),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`));dL(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=Jwe(),i=F(r);{let e=M(()=>X(`keyboard_shortcuts`));Toe(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;Coe(e,{children:(e,t)=>{var a=qwe(),o=I(a);ez(o,{class:`feature`,children:(e,t)=>{gt();var n=Pa();R(e=>W(n,e),[()=>X(`keyboard_shortcuts_.${r()}`)]),U(e,n)},$$slots:{default:!0}}),ez(L(o,2),{class:`keys`,children:(e,t)=>{var r=H();mo(I(r),16,()=>i().split(`+`),e=>e,(e,t)=>{var r=Kwe(),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 Kwe,qwe,Jwe,Ywe,Xwe=o((()=>{Q(),Y(),Z(),X$(),ej(),Kwe=V(`<kbd class="svelte-13q15u"> </kbd>`),qwe=V(`<!> <!>`,1),Jwe=V(`<div role="none" class="wrapper svelte-13q15u"><!></div>`),Ywe={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 Zwe(e,t){O(t,!0);let n=()=>j(QA,`$hasMouse`,r),[r,i]=mn(),a=N(!1);var o=Qwe(),s=I(o),c=e=>{{let t=M(()=>X(`keyboard_shortcuts`));aR(e,{get label(){return z(t)},onclick:()=>{P(a,!0)}})}};G(s,e=>{n()&&e(c)}),Gwe(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 Qwe,$we=o((()=>{Q(),Y(),Z(),X$(),Xwe(),ej(),Qwe=V(`<!> <!>`,1)}));function B9(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn(),a=J(t,`defaultValue`,3,!0),o=N(!0);ei(()=>{P(o,!!(n()[t.key]??a()),!0)}),ei(()=>{n()[t.key]!==z(o)&&gn(lN,B(n)[t.key]=z(o),B(n))}),ZR(e,{get label(){return t.label},get checked(){return z(o)},set checked(e){P(o,e,!0)}}),k(),i()}var V9=o((()=>{Q(),Y(),X$(),uN()}));function eTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=tTe(),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 tTe,nTe=o((()=>{Q(),Y(),Z(),V9(),tTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section>`)}));function rTe(e,t){O(t,!0);let n=()=>j(Z2,`$skipCIConfigured`,i),r=()=>j(lN,`$prefs`,i),[i,a]=mn(),o=J(t,`onChange`,3,void 0);var s=aTe(),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=iTe(),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`));xL(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){gn(lN,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`));xL(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){gn(lN,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 iTe,aTe,oTe=o((()=>{Q(),Y(),Z(),X$(),V9(),$2(),uN(),iTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div> <div role="none"><!></div></section>`),aTe=V(`<section><h3> </h3> <p> </p> <div role="none"><!></div></section> <section><h3> </h3> <p> </p> <div role="none"><!></div></section> <!>`,1)}));function sTe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();J(t,`onChange`,3,void 0);var a=cTe(),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`));VI(l,{get"aria-label"(){return z(e)},onChange:e=>{pn(lN,{...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);WI(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 cTe,lTe=o((()=>{Q(),Y(),Z(),X$(),uN(),cTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function uTe(e,t){O(t,!0),J(t,`onChange`,3,void 0);var n=dTe(),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 dTe,fTe=o((()=>{Q(),Y(),Z(),V9(),dTe=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(lN,`$prefs`,r),[r,i]=mn(),a=J(t,`onChange`,3,void 0),o=M(()=>t.service.apiKeyPattern),s=N(``);ac(()=>{P(s,n().apiKeys?.[t.serviceId]??``,!0)}),I$(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);gn(lN,B(n).apiKeys??={},B(n)),gn(lN,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 pTe=o((()=>{Q(),Y(),Z(),X$(),sc(),uN()}));function mTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0);var r=gTe(),i=I(r),a=F(i),o=F(a,!0);D(a);var s=L(a,2);Dwe(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,()=>eA(X(`prefs.i18n.translators.api_keys.description`),`https://sveltiacms.app/en/docs/integrations/translations`),!0),D(d),mo(L(d,2),17,()=>Object.entries(N5),([e,t])=>e,(e,t)=>{var r=M(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=hTe(),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 hTe,gTe,_Te=o((()=>{Q(),Y(),Z(),pTe(),Owe(),F5(),tA(),hTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),gTe=V(`<section><h3> </h3> <div role="none"><!></div></section> <section><h3> </h3> <p></p> <!></section>`,1)}));function vTe(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();J(t,`onChange`,3,void 0);var a=yTe(),o=F(a),s=F(o,!0);D(o);var c=L(o,2);ao(F(c),()=>Ph.current,e=>{{let t=M(()=>X(`prefs.language.ui_language.select_language`));HR(e,{get"aria-label"(){return z(t)},get value(){return Ph.current},onChange:e=>{pn(lN,{...n(),locale:e.detail.value})},children:(e,t)=>{var n=H();mo(I(n),16,()=>yh,e=>e,(e,t)=>{{let n=M(()=>pb(t,{displayLocale:t})??t),r=M(()=>t===Ph.current);XL(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 yTe,bTe=o((()=>{Q(),Y(),Z(),X$(),_b(),uN(),yTe=V(`<section><h3> </h3> <div role="none"><!></div></section>`)}));function xTe(e,t){O(t,!0);let n=J(t,`onChange`,3,void 0),r=M(()=>{let{providers:e=[]}=u7();return Object.entries(l7).filter(([t,{authType:n}])=>e.includes(t)&&n!==`none`)}),i=M(()=>Object.entries(bw).filter(([,{isEnabled:e,authType:t}])=>(e?.()??!0)&&t!==`widget`));var a=wTe(),o=I(a),s=F(o),c=F(s,!0);D(s);var l=L(s,2);So(l,()=>eA(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(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=STe(),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,()=>eA(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(()=>ee(z(t),2));let i=()=>z(r)[0],a=()=>z(r)[1],o=M(()=>a().serviceLabel);var s=CTe(),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 STe,CTe,wTe,TTe=o((()=>{Q(),Y(),Z(),pTe(),Sw(),nhe(),tA(),STe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),CTe=V(`<section><h4> </h4> <div role="none"><!></div></section>`),wTe=V(`<section><h3> </h3> <p></p> <!></section> <section><h3> </h3> <p></p> <!></section>`,1)})),U9,ETe=o((()=>{sp(),nTe(),oTe(),lTe(),fTe(),_Te(),bTe(),TTe(),uF(),U9=un([aF],([e])=>[{key:`appearance`,icon:`palette`,component:sTe},{key:`language`,icon:`language`,component:vTe},{key:`contents`,icon:`library_books`,component:uTe},{key:`i18n`,icon:`translate`,component:mTe,enabled:(e?.i18n?.locales?.length??0)>1},{key:`media`,icon:`photo_library`,component:xTe},{key:`accessibility`,icon:`accessibility_new`,component:eTe},{key:`advanced`,icon:`build`,component:rTe}])}));function DTe(e,t){K(e,kTe);let n=N(``),r=N(`success`),i=N(!1);var a=OTe(),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),dz(L(o,2),{get show(){return z(i)},set show(e){P(i,e,!0)},children:(e,t)=>{ZF(e,{get status(){return z(r)},children:(e,t)=>{gt();var r=Pa();R(()=>W(r,z(n))),U(e,r)},$$slots:{default:!0}})},$$slots:{default:!0}}),U(e,a)}var OTe,kTe,ATe=o((()=>{Q(),Y(),X$(),OTe=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,NTe);let n=J(t,`open`,15,!1),r=J(t,`onClose`,3,void 0),i=N(`appearance`);{let t=M(()=>X(`settings`));dL(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=MTe(),r=F(n);{let e=M(()=>X(`categories`));Doe(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=>{YF(e,{get name(){return r()}})},a=M(()=>X(`prefs.${n()}.title`)),o=M(()=>n()===z(i));joe(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;koe(e,{get id(){return`prefs-tab-${n()??``}`},children:(e,t)=>{DTe(e,{get Panel(){return r()}})},$$slots:{default:!0}})}),D(n),U(e,n)},$$slots:{default:!0}})}k()}var MTe,NTe,PTe=o((()=>{Q(),Y(),Z(),X$(),sp(),ETe(),ATe(),MTe=V(`<div role="none" class="wrapper svelte-pwxwga"><!> <!></div>`),NTe={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 FTe(e,t){O(t,!0);let n=()=>j(IP,`$backendName`,c),r=()=>j(eM,`$user`,c),i=()=>j(lN,`$prefs`,c),a=()=>j(LP,`$backend`,c),o=()=>j(YA,`$isSmallScreen`,c),s=()=>j(L9,`$canShowMobileSignInDialog`,c),[c,l]=mn(),u=N(!1),d=M(()=>n()===`local`),f=M(()=>n()===`test-repo`);var p=RTe(),m=I(p);{let e=M(()=>X(`account`));tR(m,{get"aria-label"(){return z(e)},children:(e,n)=>{var c=LTe(),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));aR(l,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{b1(r()?.profileURL)}})}var p=L(l,2);ZI(p,{});var m=L(p,2);{let e=M(()=>X(`live_site`));aR(m,{get label(){return z(e)},onclick:()=>{j1()}})}var h=L(m,2),g=e=>{var t=ITe(),n=I(t);{let e=M(()=>X(`git_repository`)),t=M(()=>!a()?.repository?.treeBaseURL);aR(n,{get label(){return z(e)},get disabled(){return z(t)},onclick:()=>{b1(a()?.repository?.treeBaseURL)}})}var r=L(n,2);{let e=M(()=>X(`cms_config`));aR(r,{get label(){return z(e)},onclick:()=>{k1(`/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`));aR(v,{get label(){return z(e)},onclick:()=>{o()?k1(`/settings`,{transitionType:`forwards`}):P(u,!0)}})}var y=L(v,2),b=e=>{Zwe(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`));aR(e,{get label(){return z(t)},onclick:()=>{pn(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`));aR(w,{get label(){return z(e)},onclick:async()=>{window.requestAnimationFrame(()=>{G1()})}})}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 ITe,LTe,RTe,zTe=o((()=>{Q(),Y(),Z(),X$(),$we(),PTe(),M1(),z9(),zP(),tM(),K1(),ej(),uN(),x1(),ITe=V(`<!> <!>`,1),LTe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),RTe=V(`<!> <!>`,1)}));function BTe(e,t){O(t,!0),K(e,UTe);let n=()=>j(IP,`$backendName`,i),r=()=>j(eM,`$user`,i),[i,a]=mn(),o=N(void 0),s=M(()=>n()===`local`),c=M(()=>!!r()?.avatarURL);var l=HTe(),u=F(l);{let e=e=>{var t=H(),n=I(t),i=e=>{YF(e,{name:`arrow_drop_down`,class:`small-arrow`})},a=e=>{var t=VTe();R(()=>q(t,`src`,r()?.avatarURL)),U(e,t)},o=e=>{YF(e,{name:`account_circle`})};G(n,e=>{z(s)?e(i):z(c)?e(a,1):e(o,-1)}),U(e,t)},t=e=>{FTe(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(GI(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 VTe,HTe,UTe,WTe=o((()=>{Q(),Y(),Z(),X$(),zTe(),zP(),tM(),VTe=V(`<img class="avatar svelte-q0ng4j" loading="lazy" alt=""/>`),HTe=V(`<div role="none" class="wrapper svelte-q0ng4j"><!></div>`),UTe={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 GTe(e,t){O(t,!0);let[n,r]=mn(),i=M(()=>Wb({visible:!0,type:`entry`}));{let t=e=>{YF(e,{name:`add`})},n=e=>{{let t=M(()=>X(`create_entry_or_assets`));tR(e,{get"aria-label"(){return z(t)},children:(e,t)=>{var n=qTe(),r=I(n),a=e=>{var t=KTe(),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||dk(z(n).name).length>=z(n).limit);aR(e,{get label(){return z(t)},get disabled(){return z(r)},onclick:()=>{k1(`/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`));aR(o,{get label(){return z(e)},onclick:async()=>{k1(`/assets`,{transitionType:`forwards`}),await eS(100),pn(f1,!0)}})}U(e,n)},$$slots:{default:!0}})}},r=M(()=>X(`create_entry_or_assets`));GI(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 KTe,qTe,JTe=o((()=>{Q(),Y(),Z(),X$(),tS(),M1(),y1(),$b(),hk(),KTe=V(`<!> <!>`,1),qTe=V(`<!> <!>`,1)}));function YTe(e,t){O(t,!0),K(e,ZTe);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();{let t=e=>{var t=H(),r=I(t),i=e=>{var t=XTe(),n=F(t);D(t),R(e=>{q(t,`aria-label`,`(${e??``})`),W(n,`v${Lw??``}`)},[()=>X(`version_x`,{values:{version:Lw}})]),U(e,t)};G(r,e=>{n().devModeEnabled&&e(i)}),U(e,t)},r=M(()=>X(`release_notes`));aR(e,{get label(){return z(r)},onclick:()=>{b1(`https://github.com/sveltia/sveltia-cms/releases`)},endIcon:t,$$slots:{endIcon:!0}})}k(),i()}var XTe,ZTe,QTe=o((()=>{Q(),Y(),Z(),X$(),Rw(),uN(),x1(),XTe=V(`<span class="version svelte-wmw2gz"> </span>`),ZTe={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 $Te(e,t){O(t,!0);let n=()=>j(lN,`$prefs`,r),[r,i]=mn();{let r=M(()=>X(`help`));tR(e,{get"aria-label"(){return z(r)},children:(e,r)=>{var i=tEe(),a=I(i);Zwe(a,{get menuButton(){return t.menuButton}});var o=L(a,2),s=e=>{var t=eEe(),n=I(t);W9(n,()=>`documentation`,()=>`https://sveltiacms.app/en/docs`);var r=L(n,2);YTe(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,eEe,tEe,nEe=o((()=>{Q(),Y(),Z(),X$(),QTe(),$we(),uN(),x1(),W9=(e,t=E,n=E)=>{{let r=M(()=>X(t()));aR(e,{get label(){return z(r)},onclick:()=>{b1(n())}})}},eEe=V(`<!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!>`,1),tEe=V(`<!> <!>`,1)}));function rEe(e,t){O(t,!0),K(e,aEe);let n=N(void 0),r=N(!1);var i=iEe(),a=I(i),o=F(a);{let e=e=>{YF(e,{name:`help`})},t=e=>{$Te(e,{get menuButton(){return z(n)}})},r=M(()=>X(`show_help_menu`));Us(GI(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),Gwe(L(a,2),{onClose:()=>{z(n)?.focus()},get open(){return z(r)},set open(e){P(r,e,!0)}}),U(e,i),k()}var iEe,aEe,oEe=o((()=>{Q(),Y(),Z(),X$(),nEe(),Xwe(),iEe=V(`<div role="none" class="wrapper svelte-bzzge3"><!></div> <!>`,1),aEe={hash:`svelte-bzzge3`,code:`.wrapper.svelte-bzzge3 {display:contents;}`}}));function sEe(e,t){O(t,!0);{let t=e=>{YF(e,{name:`notifications`})},n=M(()=>X(`show_notifications`));pI(e,{variant:`ghost`,iconic:!0,hidden:!0,get"aria-label"(){return z(n)},onclick:()=>{},startIcon:t,$$slots:{startIcon:!0}})}k()}var cEe=o((()=>{Q(),Y(),Z(),X$()}));function lEe(e,t){O(t,!0),K(e,dEe);let n=()=>j(s0,`$appLogoURL`,i),r=()=>j(aF,`$cmsConfig`,i),[i,a]=mn();var o=H(),s=I(o),c=e=>{{let t=M(()=>X(`visit_live_site`));pI(e,{variant:`ghost`,iconic:!0,get"aria-label"(){return z(t)},onclick:()=>{j1()},children:(e,t)=>{var r=uEe();R(()=>q(r,`src`,n())),U(e,r)},$$slots:{default:!0}})}};G(s,e=>{n()!==a0&&(r()?.logo?.show_in_header??!0)&&e(c)}),U(e,o),k(),a()}var uEe,dEe,fEe=o((()=>{Q(),Y(),Z(),X$(),l0(),M1(),uF(),uEe=V(`<img alt="" class="logo svelte-15c9hhi"/>`),dEe={hash:`svelte-15c9hhi`,code:`img.svelte-15c9hhi {width:24px;height:24px;object-fit:contain;}`}}));function pEe(e,t){O(t,!0),K(e,gEe);let n=()=>j(S1,`$hasOverlay`,i),r=()=>j(lN,`$prefs`,i),[i,a]=mn();var o=hEe(),s=F(o);{let e=M(()=>X(`global`));l$(s,{variant:`primary`,get"aria-label"(){return z(e)},children:(e,t)=>{var n=mEe(),i=I(n),a=F(i);lEe(a,{}),Rwe(L(a,2),{}),D(i);var o=L(i,2);n6(o,{});var s=L(o,2),c=F(s);GCe(c,{});var l=L(c,2);GTe(l,{});var u=L(l,2);sEe(u,{});var d=L(u,2),f=e=>{rEe(e,{})};G(d,e=>{r().devModeEnabled&&e(f)}),BTe(L(d,2),{}),D(s),U(e,n)},$$slots:{default:!0}})}D(o),R(()=>o.inert=n()),U(e,o),k(),a()}var mEe,hEe,gEe,_Ee=o((()=>{Q(),Y(),Z(),X$(),WTe(),JTe(),oEe(),cEe(),Vwe(),qCe(),o6(),fEe(),M1(),uN(),mEe=V(`<div role="none" class="buttons"><!> <!></div> <!> <div role="none" class="buttons"><!> <!> <!> <!> <!></div>`,1),hEe=V(`<div role="none" class="toolbar-wrapper svelte-1kz79fh"><!></div>`),gEe={hash:`svelte-1kz79fh`,code:`.toolbar-wrapper.svelte-1kz79fh {display:contents;}.toolbar-wrapper[inert].svelte-1kz79fh .sui.search-bar {display:none !important;}
1026
1026
  @media (width < 768px) {.toolbar-wrapper.svelte-1kz79fh > .sui.toolbar {padding:0 4px;}
1027
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
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;}